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

Function toolDrag

src/OpenLoco/src/Ui/Windows/TerraForm.cpp:1100–1112  ·  view source on GitHub ↗

0x004BC682

Source from the content-addressed store, hash-verified

1098
1099 // 0x004BC682
1100 static void toolDrag([[maybe_unused]] Window& self, const WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, [[maybe_unused]] const int16_t x, [[maybe_unused]] const int16_t y)
1101 {
1102 if (widgetIndex != Common::widx::panel)
1103 {
1104 return;
1105 }
1106
1107 auto window = WindowManager::find(WindowType::error);
1108 if (window == nullptr)
1109 {
1110 clearLand(Flags::apply);
1111 }
1112 }
1113
1114 // 0x004BC701
1115 static void toolUp([[maybe_unused]] Window& self, const WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, [[maybe_unused]] const int16_t x, [[maybe_unused]] const int16_t y)

Callers

nothing calls this directly

Calls 11

findFunction · 0.85
paintLandFunction · 0.85
findAtFunction · 0.85
getDragLastLocationFunction · 0.85
setDragLastLocationFunction · 0.85
findWidgetAtMethod · 0.80
clearLandFunction · 0.70
raiseLandFunction · 0.70
lowerLandFunction · 0.70
raiseWaterFunction · 0.70
lowerWaterFunction · 0.70

Tested by

no test coverage detected