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

Function init

src/OpenLoco/src/Gui.cpp:17–47  ·  view source on GitHub ↗

0x00438A6C

Source from the content-addressed store, hash-verified

15{
16 // 0x00438A6C
17 void init()
18 {
19 Windows::Main::open();
20
21 Windows::Terraform::setAdjustLandToolSize(1);
22 Windows::Terraform::setAdjustWaterToolSize(1);
23 Windows::Terraform::setClearAreaToolSize(2);
24
25 if (SceneManager::isTitleMode())
26 {
27 Ui::Windows::TitleMenu::open();
28 Ui::Windows::TitleExit::open();
29 Ui::Windows::TitleLogo::open();
30 Ui::Windows::TitleVersion::open();
31 Ui::Windows::TitleOptions::open();
32 }
33 else if (SceneManager::isPlayMode())
34 {
35 Windows::ToolbarTop::Game::open();
36
37 Windows::PlayerInfoPanel::open();
38 Windows::TimePanel::open();
39
40 if (OpenLoco::Tutorial::state() != Tutorial::State::none)
41 {
42 Windows::Tutorial::open();
43 }
44 }
45
46 resize();
47 }
48
49 // 0x004392BD
50 void resize()

Callers 5

startFunction · 0.70
resetSubsystemsFunction · 0.70
initialiseFunction · 0.70
mainFunction · 0.70
updateEnd2Function · 0.70

Calls 8

setAdjustLandToolSizeFunction · 0.85
setAdjustWaterToolSizeFunction · 0.85
setClearAreaToolSizeFunction · 0.85
isTitleModeFunction · 0.85
isPlayModeFunction · 0.85
resizeFunction · 0.85
stateFunction · 0.70
openFunction · 0.50

Tested by

no test coverage detected