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

Function paintToolBegin

src/OpenLoco/src/Ui/Windows/Vehicle.cpp:1830–1836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828 }
1829
1830 static void paintToolBegin(Window& self)
1831 {
1832 bool active = ToolManager::toolSet(self, widx::paintBrush, CursorId::brush);
1833 self.activatedWidgets &= ~(1U << widx::paintBrush);
1834 self.activatedWidgets |= (1U << widx::paintBrush) * active;
1835 self.invalidate();
1836 }
1837
1838 static void paintToolAbort(Window& self)
1839 {

Callers 1

onDropdownFunction · 0.85

Calls 2

toolSetFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected