1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Change window functions to use lowerCamelCase

This commit is contained in:
Gymnasiast
2025-09-17 20:10:06 +02:00
parent d4a0bca091
commit 3a803e13e2
96 changed files with 4166 additions and 4239 deletions

View File

@@ -8,7 +8,7 @@
namespace OpenRCT2
{
void WindowBase::SetViewportLocation(const CoordsXYZ& coords)
void WindowBase::setViewportLocation(const CoordsXYZ& coords)
{
WindowScrollToLocation(*this, coords);
flags &= ~WF_SCROLLING_TO_LOCATION;
@@ -19,15 +19,15 @@ namespace OpenRCT2
viewport->viewPos = savedViewPos;
}
Invalidate();
invalidate();
}
void WindowBase::Invalidate()
void WindowBase::invalidate()
{
GfxSetDirtyBlocks({ windowPos, windowPos + ScreenCoordsXY{ width, height } });
}
void WindowBase::RemoveViewport()
void WindowBase::removeViewport()
{
if (viewport == nullptr)
return;
@@ -36,15 +36,15 @@ namespace OpenRCT2
viewport = nullptr;
}
void WindowBase::SetWidgets(const std::span<const Widget> newWidgets)
void WindowBase::setWidgets(const std::span<const Widget> newWidgets)
{
widgets.clear();
widgets.insert(widgets.end(), newWidgets.begin(), newWidgets.end());
ResizeFrame();
resizeFrame();
}
CursorID WindowBase::OnCursor(WidgetIndex, const ScreenCoordsXY&, CursorID)
CursorID WindowBase::onCursor(WidgetIndex, const ScreenCoordsXY&, CursorID)
{
return CursorID::Arrow;
}
@@ -70,7 +70,7 @@ namespace OpenRCT2
closeButton.string = !translucent ? kCloseBoxStringBlackNormal : kCloseBoxStringWhiteNormal;
}
void WindowBase::ResizeFrame()
void WindowBase::resizeFrame()
{
if (widgets.size() < 3)
return;
@@ -116,7 +116,7 @@ namespace OpenRCT2
if (!hasTitleWidget || heightDifference == 0)
return;
Invalidate();
invalidate();
// Offset title and close button
titleWidget.bottom += heightDifference;
@@ -126,7 +126,7 @@ namespace OpenRCT2
minHeight += heightDifference;
maxHeight += heightDifference;
Invalidate();
invalidate();
// Resize frame again to match new height
frameWidget.bottom = height - 1;