mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Rename global window functions to TitleCase (#19167)
This commit is contained in:
@@ -97,19 +97,19 @@ public:
|
||||
Close();
|
||||
break;
|
||||
case WIDX_PORT_INPUT:
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, _port, 6);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, _port, 6);
|
||||
break;
|
||||
case WIDX_NAME_INPUT:
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, _name, 64);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, _name, 64);
|
||||
break;
|
||||
case WIDX_DESCRIPTION_INPUT:
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, _description, MAX_SERVER_DESCRIPTION_LENGTH);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, _description, MAX_SERVER_DESCRIPTION_LENGTH);
|
||||
break;
|
||||
case WIDX_GREETING_INPUT:
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, _greeting, CHAT_INPUT_SIZE);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, _greeting, CHAT_INPUT_SIZE);
|
||||
break;
|
||||
case WIDX_PASSWORD_INPUT:
|
||||
window_start_textbox(*this, widgetIndex, STR_STRING, _password, 32);
|
||||
WindowStartTextbox(*this, widgetIndex, STR_STRING, _password, 32);
|
||||
break;
|
||||
case WIDX_MAXPLAYERS_INCREASE:
|
||||
if (gConfigNetwork.Maxplayers < 255)
|
||||
@@ -158,11 +158,11 @@ public:
|
||||
{
|
||||
if (gCurrentTextBox.window.classification == classification && gCurrentTextBox.window.number == number)
|
||||
{
|
||||
window_update_textbox_caret();
|
||||
widget_invalidate(*this, WIDX_NAME_INPUT);
|
||||
widget_invalidate(*this, WIDX_DESCRIPTION_INPUT);
|
||||
widget_invalidate(*this, WIDX_GREETING_INPUT);
|
||||
widget_invalidate(*this, WIDX_PASSWORD_INPUT);
|
||||
WindowUpdateTextboxCaret();
|
||||
WidgetInvalidate(*this, WIDX_NAME_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_DESCRIPTION_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_GREETING_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_PASSWORD_INPUT);
|
||||
}
|
||||
}
|
||||
void OnTextInput(WidgetIndex widgetIndex, std::string_view text) override
|
||||
@@ -187,7 +187,7 @@ public:
|
||||
gConfigNetwork.DefaultPort = atoi(_port);
|
||||
ConfigSaveDefault();
|
||||
|
||||
widget_invalidate(*this, WIDX_NAME_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_NAME_INPUT);
|
||||
break;
|
||||
case WIDX_NAME_INPUT:
|
||||
if (strcmp(_name, temp.c_str()) == 0)
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
ConfigSaveDefault();
|
||||
}
|
||||
|
||||
widget_invalidate(*this, WIDX_NAME_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_NAME_INPUT);
|
||||
break;
|
||||
case WIDX_DESCRIPTION_INPUT:
|
||||
if (strcmp(_description, temp.c_str()) == 0)
|
||||
@@ -223,7 +223,7 @@ public:
|
||||
ConfigSaveDefault();
|
||||
}
|
||||
|
||||
widget_invalidate(*this, WIDX_DESCRIPTION_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_DESCRIPTION_INPUT);
|
||||
break;
|
||||
case WIDX_GREETING_INPUT:
|
||||
if (strcmp(_greeting, temp.c_str()) == 0)
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
ConfigSaveDefault();
|
||||
}
|
||||
|
||||
widget_invalidate(*this, WIDX_GREETING_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_GREETING_INPUT);
|
||||
break;
|
||||
case WIDX_PASSWORD_INPUT:
|
||||
if (strcmp(_password, temp.c_str()) == 0)
|
||||
@@ -253,7 +253,7 @@ public:
|
||||
safe_strcpy(_password, temp.c_str(), sizeof(_password));
|
||||
}
|
||||
|
||||
widget_invalidate(*this, WIDX_PASSWORD_INPUT);
|
||||
WidgetInvalidate(*this, WIDX_PASSWORD_INPUT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user