1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Rename global window functions to TitleCase (#19167)

This commit is contained in:
Hielke Morsink
2023-01-16 21:13:42 +01:00
committed by GitHub
parent 7f5934cc95
commit 6dafbbfb65
150 changed files with 1713 additions and 1720 deletions

View File

@@ -110,7 +110,7 @@ namespace OpenRCT2::Scripting
{
if (ActiveCustomTool->Owner == owner)
{
tool_cancel();
ToolCancel();
}
}
@@ -261,14 +261,14 @@ namespace OpenRCT2::Scripting
customTool.onUp = dukValue["onUp"];
customTool.onFinish = dukValue["onFinish"];
auto toolbarWindow = window_find_by_class(WindowClass::TopToolbar);
auto toolbarWindow = WindowFindByClass(WindowClass::TopToolbar);
if (toolbarWindow != nullptr)
{
// Use a widget that does not exist on top toolbar but also make sure it isn't -1 as that
// prevents abort from being called.
WidgetIndex widgetIndex = -2;
tool_cancel();
tool_set(*toolbarWindow, widgetIndex, static_cast<Tool>(customTool.Cursor));
ToolCancel();
ToolSet(*toolbarWindow, widgetIndex, static_cast<Tool>(customTool.Cursor));
ActiveCustomTool = std::move(customTool);
ActiveCustomTool->Start();
}