1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 18:55:23 +01:00

Simplify setting existing text

This commit is contained in:
duncanspumpkin
2024-03-22 08:53:22 +00:00
committed by Gymnasiast
parent 3448926251
commit bd3ae5cbb9
9 changed files with 17 additions and 30 deletions

View File

@@ -95,19 +95,19 @@ static Widget _windowServerStartWidgets[] = {
Close();
break;
case WIDX_PORT_INPUT:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _port, 6);
WindowStartTextbox(*this, widgetIndex, _port, 6);
break;
case WIDX_NAME_INPUT:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _name, 64);
WindowStartTextbox(*this, widgetIndex, _name, 64);
break;
case WIDX_DESCRIPTION_INPUT:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _description, MAX_SERVER_DESCRIPTION_LENGTH);
WindowStartTextbox(*this, widgetIndex, _description, MAX_SERVER_DESCRIPTION_LENGTH);
break;
case WIDX_GREETING_INPUT:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _greeting, kChatInputSize);
WindowStartTextbox(*this, widgetIndex, _greeting, kChatInputSize);
break;
case WIDX_PASSWORD_INPUT:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _password, 32);
WindowStartTextbox(*this, widgetIndex, _password, 32);
break;
case WIDX_MAXPLAYERS_INCREASE:
if (gConfigNetwork.Maxplayers < 255)