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

Function trackWindow

src/OpenLoco/src/Ui/Windows/Construction/Common.cpp:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 static Window* trackWindow()
63 {
64 auto window = WindowManager::find(WindowType::construction);
65
66 if (window != nullptr)
67 {
68 Common::setDisabledWidgets(window);
69 }
70
71 Construction::activateSelectedConstructionWidgets();
72 window = WindowManager::find(WindowType::construction);
73
74 if (window != nullptr)
75 {
76 window->callOnMouseUp(Construction::widx::rotate_90, window->widgets[Construction::widx::rotate_90].id);
77 }
78
79 return window;
80 }
81
82 static Window* createTrackConstructionWindow()
83 {

Callers 2

Calls 4

findFunction · 0.85
callOnMouseUpMethod · 0.80
setDisabledWidgetsFunction · 0.70

Tested by

no test coverage detected