mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Clang tidy Part 1: Ui Project Function Names (#15956)
* Add NOLINT around STL using classes and vendor functions * Apply clang-tidy to ui project function names * Undo scripting clang-format * Upper case OpenRCT2 and RCT2
This commit is contained in:
@@ -131,7 +131,7 @@ static const ScreenCoordsXY ScreenCoordsForHistoryIndex(
|
||||
return coords;
|
||||
}
|
||||
|
||||
static const FinancialTooltipInfo finance_tooltip_info_from_money(
|
||||
static const FinancialTooltipInfo FinanceTooltipInfoFromMoney(
|
||||
const money64* history, const int32_t historyCount, const int32_t modifier, const int32_t offset,
|
||||
const ScreenRect& chartFrame, const ScreenCoordsXY& cursorPosition)
|
||||
{
|
||||
@@ -246,8 +246,7 @@ namespace Graph
|
||||
return;
|
||||
}
|
||||
|
||||
const auto info = finance_tooltip_info_from_money(
|
||||
history, ChartMaxDataCount, modifier, offset, chartFrame, cursorPosition);
|
||||
const auto info = FinanceTooltipInfoFromMoney(history, ChartMaxDataCount, modifier, offset, chartFrame, cursorPosition);
|
||||
|
||||
if (info.money == MONEY64_UNDEFINED)
|
||||
{
|
||||
|
||||
@@ -436,7 +436,7 @@ static void WidgetTextInset(rct_drawpixelinfo* dpi, rct_window* w, rct_widgetind
|
||||
WidgetText(dpi, w, widgetIndex);
|
||||
}
|
||||
|
||||
static std::pair<rct_string_id, void*> widget_get_stringid_and_args(const rct_widget& widget)
|
||||
static std::pair<rct_string_id, void*> WidgetGetStringidAndArgs(const rct_widget& widget)
|
||||
{
|
||||
auto stringId = widget.text;
|
||||
void* formatArgs = gCommonFormatArgs;
|
||||
@@ -471,7 +471,7 @@ static void WidgetGroupboxDraw(rct_drawpixelinfo* dpi, rct_window* w, rct_widget
|
||||
auto textRight = l;
|
||||
|
||||
// Text
|
||||
auto [stringId, formatArgs] = widget_get_stringid_and_args(widget);
|
||||
auto [stringId, formatArgs] = WidgetGetStringidAndArgs(widget);
|
||||
if (stringId != STR_NONE)
|
||||
{
|
||||
uint8_t colour = w->colours[widget.colour] & 0x7F;
|
||||
@@ -639,7 +639,7 @@ static void WidgetCheckboxDraw(rct_drawpixelinfo* dpi, rct_window* w, rct_widget
|
||||
if (widget.text == STR_NONE)
|
||||
return;
|
||||
|
||||
auto [stringId, formatArgs] = widget_get_stringid_and_args(widget);
|
||||
auto [stringId, formatArgs] = WidgetGetStringidAndArgs(widget);
|
||||
gfx_draw_string_left_centred(dpi, stringId, formatArgs, colour, { midLeft + ScreenCoordsXY{ 14, 0 } });
|
||||
}
|
||||
|
||||
|
||||
@@ -756,5 +756,5 @@ void Window::TextInputOpen(
|
||||
rct_widgetindex callWidget, rct_string_id title, rct_string_id description, const Formatter& descriptionArgs,
|
||||
rct_string_id existingText, uintptr_t existingArgs, int32_t maxLength)
|
||||
{
|
||||
window_text_input_open(this, callWidget, title, description, descriptionArgs, existingText, existingArgs, maxLength);
|
||||
WindowTextInputOpen(this, callWidget, title, description, descriptionArgs, existingText, existingArgs, maxLength);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user