MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / goToPreviousStep

Function goToPreviousStep

src/OpenLoco/src/EditorController.cpp:243–270  ·  view source on GitHub ↗

0x0043D0FA

Source from the content-addressed store, hash-verified

241
242 // 0x0043D0FA
243 void goToPreviousStep()
244 {
245 switch (getCurrentStep())
246 {
247 case Step::null:
248 case Step::objectSelection:
249 break;
250
251 case Step::landscapeEditor:
252 // 0x0043D119
253 WindowManager::closeAllFloatingWindows();
254 Scenario::getOptions().editorStep = Step::objectSelection;
255 break;
256
257 case Step::scenarioOptions:
258 // 0x0043D12C
259 WindowManager::closeAllFloatingWindows();
260 Windows::Terraform::resetLastSelections();
261 Scenario::getOptions().editorStep = Step::landscapeEditor;
262 Windows::LandscapeGeneration::open();
263 break;
264
265 case Step::saveScenario:
266 break;
267 }
268
269 Gfx::invalidateScreen();
270 }
271
272 // 0x004747D4
273 static StringId validateHeadquarterBuilding()

Callers 2

onMouseUpFunction · 0.85
onMouseUpFunction · 0.85

Calls 5

getCurrentStepFunction · 0.85
resetLastSelectionsFunction · 0.85
invalidateScreenFunction · 0.85
closeAllFloatingWindowsFunction · 0.50
openFunction · 0.50

Tested by

no test coverage detected