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

Function toolGetActiveWindow

src/OpenLoco/src/Ui/ToolManager.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 static uint16_t _toolWidgetIndex = 0; // 0x00523394
17
18 Window* toolGetActiveWindow()
19 {
20 if (!Input::hasFlag(Input::Flags::toolActive))
21 {
22 return nullptr;
23 }
24
25 return WindowManager::find(_toolWindowType, _toolWindowNumber);
26 }
27
28 bool isToolActive(Ui::WindowType type)
29 {

Callers 1

scrollMouseDownFunction · 0.85

Calls 2

findFunction · 0.85
hasFlagFunction · 0.50

Tested by

no test coverage detected