mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 20:43:04 +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:
@@ -371,7 +371,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
void window_text_input_raw_open(
|
||||
void WindowTextInputRawOpen(
|
||||
rct_window* call_w, rct_widgetindex call_widget, rct_string_id title, rct_string_id description,
|
||||
const Formatter& descriptionArgs, const_utf8string existing_text, int32_t maxLength)
|
||||
{
|
||||
@@ -387,7 +387,7 @@ void window_text_input_raw_open(
|
||||
}
|
||||
}
|
||||
|
||||
void window_text_input_open(
|
||||
void WindowTextInputOpen(
|
||||
std::string_view title, std::string_view description, std::string_view initialValue, size_t maxLength,
|
||||
std::function<void(std::string_view)> callback, std::function<void()> cancelCallback)
|
||||
{
|
||||
@@ -401,15 +401,15 @@ void window_text_input_open(
|
||||
}
|
||||
}
|
||||
|
||||
void window_text_input_open(
|
||||
void WindowTextInputOpen(
|
||||
rct_window* call_w, rct_widgetindex call_widget, rct_string_id title, rct_string_id description,
|
||||
const Formatter& descriptionArgs, rct_string_id existing_text, uintptr_t existing_args, int32_t maxLength)
|
||||
{
|
||||
auto existingText = format_string(existing_text, &existing_args);
|
||||
window_text_input_raw_open(call_w, call_widget, title, description, descriptionArgs, existingText.c_str(), maxLength);
|
||||
WindowTextInputRawOpen(call_w, call_widget, title, description, descriptionArgs, existingText.c_str(), maxLength);
|
||||
}
|
||||
|
||||
void window_text_input_key(rct_window* w, char keychar)
|
||||
void WindowTextInputKey(rct_window* w, char keychar)
|
||||
{
|
||||
const auto wndNumber = w->number;
|
||||
const auto wndClass = w->classification;
|
||||
|
||||
Reference in New Issue
Block a user