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

Function isToolActive

src/OpenLoco/src/Ui/ToolManager.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 bool isToolActive(Ui::WindowType type)
29 {
30 if (!Input::hasFlag(Input::Flags::toolActive))
31 {
32 return false;
33 }
34
35 return _toolWindowType == type;
36 }
37
38 bool isToolActive(Ui::WindowType type, Ui::WindowNumber_t number)
39 {

Callers 15

toolCancelFunction · 0.85
rightReleasedSignalFunction · 0.85
drawMethod · 0.85
onCloseFunction · 0.85
onUpdateFunction · 0.85
switchTabFunction · 0.85
openFunction · 0.85
switchTabFunction · 0.85
openFunction · 0.85
onMouseUpFunction · 0.85
openFunction · 0.85

Calls 2

getToolWidgetIndexFunction · 0.85
hasFlagFunction · 0.50

Tested by 1

prepareDrawFunction · 0.68