mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +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:
@@ -67,16 +67,16 @@ static constexpr const rct_string_id window_save_prompt_labels[][2] = {
|
||||
};
|
||||
|
||||
|
||||
static void window_save_prompt_close(rct_window *w);
|
||||
static void window_save_prompt_mouseup(rct_window *w, rct_widgetindex widgetIndex);
|
||||
static void window_save_prompt_paint(rct_window *w, rct_drawpixelinfo *dpi);
|
||||
static void window_save_prompt_callback(int32_t result, const utf8 * path);
|
||||
static void WindowSavePromptClose(rct_window *w);
|
||||
static void WindowSavePromptMouseup(rct_window *w, rct_widgetindex widgetIndex);
|
||||
static void WindowSavePromptPaint(rct_window *w, rct_drawpixelinfo *dpi);
|
||||
static void WindowSavePromptCallback(int32_t result, const utf8 * path);
|
||||
|
||||
static rct_window_event_list window_save_prompt_events([](auto& events)
|
||||
{
|
||||
events.close = &window_save_prompt_close;
|
||||
events.mouse_up = &window_save_prompt_mouseup;
|
||||
events.paint = &window_save_prompt_paint;
|
||||
events.close = &WindowSavePromptClose;
|
||||
events.mouse_up = &WindowSavePromptMouseup;
|
||||
events.paint = &WindowSavePromptPaint;
|
||||
});
|
||||
// clang-format on
|
||||
|
||||
@@ -84,7 +84,7 @@ static rct_window_event_list window_save_prompt_events([](auto& events)
|
||||
*
|
||||
* rct2: 0x0066DCBE
|
||||
*/
|
||||
rct_window* window_save_prompt_open()
|
||||
rct_window* WindowSavePromptOpen()
|
||||
{
|
||||
int32_t width, height;
|
||||
rct_string_id stringId;
|
||||
@@ -176,7 +176,7 @@ rct_window* window_save_prompt_open()
|
||||
*
|
||||
* rct2: 0x0066DF17
|
||||
*/
|
||||
static void window_save_prompt_close(rct_window* w)
|
||||
static void WindowSavePromptClose(rct_window* w)
|
||||
{
|
||||
// Unpause the game
|
||||
if (network_get_mode() == NETWORK_MODE_NONE)
|
||||
@@ -192,7 +192,7 @@ static void window_save_prompt_close(rct_window* w)
|
||||
*
|
||||
* rct2: 0x0066DDF2
|
||||
*/
|
||||
static void window_save_prompt_mouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
static void WindowSavePromptMouseup(rct_window* w, rct_widgetindex widgetIndex)
|
||||
{
|
||||
if (gScreenFlags & (SCREEN_FLAGS_TITLE_DEMO | SCREEN_FLAGS_TRACK_DESIGNER | SCREEN_FLAGS_TRACK_MANAGER))
|
||||
{
|
||||
@@ -226,7 +226,7 @@ static void window_save_prompt_mouseup(rct_window* w, rct_widgetindex widgetInde
|
||||
intent = static_cast<Intent*>(create_save_game_as_intent());
|
||||
}
|
||||
window_close(w);
|
||||
intent->putExtra(INTENT_EXTRA_CALLBACK, reinterpret_cast<void*>(window_save_prompt_callback));
|
||||
intent->putExtra(INTENT_EXTRA_CALLBACK, reinterpret_cast<void*>(WindowSavePromptCallback));
|
||||
context_open_intent(intent);
|
||||
delete intent;
|
||||
break;
|
||||
@@ -241,12 +241,12 @@ static void window_save_prompt_mouseup(rct_window* w, rct_widgetindex widgetInde
|
||||
}
|
||||
}
|
||||
|
||||
static void window_save_prompt_paint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
static void WindowSavePromptPaint(rct_window* w, rct_drawpixelinfo* dpi)
|
||||
{
|
||||
WindowDrawWidgets(w, dpi);
|
||||
}
|
||||
|
||||
static void window_save_prompt_callback(int32_t result, const utf8* path)
|
||||
static void WindowSavePromptCallback(int32_t result, const utf8* path)
|
||||
{
|
||||
if (result == MODAL_RESULT_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user