mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +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:
@@ -27,14 +27,14 @@ static rct_widget window_title_logo_widgets[] = {
|
||||
WIDGETS_END,
|
||||
};
|
||||
|
||||
static void window_title_menu_mouseup(rct_window* w, rct_widgetindex widgetIndex);
|
||||
static void window_title_logo_paint(rct_window* w, rct_drawpixelinfo* dpi);
|
||||
static void WindowTitleMenuMouseup(rct_window* w, rct_widgetindex widgetIndex);
|
||||
static void WindowTitleLogoPaint(rct_window* w, rct_drawpixelinfo* dpi);
|
||||
|
||||
// clang-format off
|
||||
static rct_window_event_list window_title_logo_events([](auto& events)
|
||||
{
|
||||
events.mouse_up = &window_title_menu_mouseup;
|
||||
events.paint = &window_title_logo_paint;
|
||||
events.mouse_up = &WindowTitleMenuMouseup;
|
||||
events.paint = &WindowTitleLogoPaint;
|
||||
});
|
||||
// clang-format on
|
||||
|
||||
@@ -42,7 +42,7 @@ static rct_window_event_list window_title_logo_events([](auto& events)
|
||||
* Creates the window containing the logo and the expansion packs on the title screen.
|
||||
* rct2: 0x0066B679 (part of 0x0066B3E8)
|
||||
*/
|
||||
rct_window* window_title_logo_open()
|
||||
rct_window* WindowTitleLogoOpen()
|
||||
{
|
||||
rct_window* window = WindowCreate(
|
||||
ScreenCoordsXY(0, 0), WW, WH, &window_title_logo_events, WC_TITLE_LOGO, WF_STICK_TO_BACK | WF_TRANSPARENT);
|
||||
@@ -56,12 +56,12 @@ rct_window* window_title_logo_open()
|
||||
return window;
|
||||
}
|
||||
|
||||
static void window_title_menu_mouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
static void WindowTitleMenuMouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
{
|
||||
switch (widgetIndex)
|
||||
{
|
||||
case WIDX_LOGO:
|
||||
window_about_open();
|
||||
WindowAboutOpen();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@ static void window_title_menu_mouseup(rct_window* w, rct_widgetindex widgetIndex
|
||||
*
|
||||
* rct2: 0x0066B872
|
||||
*/
|
||||
static void window_title_logo_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
static void WindowTitleLogoPaint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
{
|
||||
auto screenCoords = w->windowPos + ScreenCoordsXY{ 2, 2 };
|
||||
gfx_draw_sprite(dpi, ImageId(SPR_G2_LOGO), screenCoords);
|
||||
|
||||
Reference in New Issue
Block a user