mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +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:
@@ -24,20 +24,20 @@ static rct_widget window_title_options_widgets[] = {
|
||||
WIDGETS_END,
|
||||
};
|
||||
|
||||
static void window_title_options_mouseup(rct_window *w, rct_widgetindex widgetIndex);
|
||||
static void window_title_options_paint(rct_window *w, rct_drawpixelinfo *dpi);
|
||||
static void WindowTitleOptionsMouseup(rct_window *w, rct_widgetindex widgetIndex);
|
||||
static void WindowTitleOptionsPaint(rct_window *w, rct_drawpixelinfo *dpi);
|
||||
|
||||
static rct_window_event_list window_title_options_events([](auto& events)
|
||||
{
|
||||
events.mouse_up = &window_title_options_mouseup;
|
||||
events.paint = &window_title_options_paint;
|
||||
events.mouse_up = &WindowTitleOptionsMouseup;
|
||||
events.paint = &WindowTitleOptionsPaint;
|
||||
});
|
||||
// clang-format on
|
||||
|
||||
/**
|
||||
* Creates the window containing the options button on the title screen.
|
||||
*/
|
||||
rct_window* window_title_options_open()
|
||||
rct_window* WindowTitleOptionsOpen()
|
||||
{
|
||||
rct_window* window = WindowCreate(
|
||||
ScreenCoordsXY(context_get_width() - 80, 0), 80, 15, &window_title_options_events, WC_TITLE_OPTIONS,
|
||||
@@ -49,7 +49,7 @@ rct_window* window_title_options_open()
|
||||
return window;
|
||||
}
|
||||
|
||||
static void window_title_options_mouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
static void WindowTitleOptionsMouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
{
|
||||
if (gIntroState != IntroState::None)
|
||||
return;
|
||||
@@ -62,7 +62,7 @@ static void window_title_options_mouseup(rct_window* w, rct_widgetindex widgetIn
|
||||
}
|
||||
}
|
||||
|
||||
static void window_title_options_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
static void WindowTitleOptionsPaint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
{
|
||||
WindowDrawWidgets(w, dpi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user