[mod menu] change: make it obvious that changing the server or port requires a restart

Also: call it `server address` instead of `server IP`, because domains work too.
This commit is contained in:
Robin C. Ladiges 2024-05-15 22:34:31 +02:00
parent 75aa29776a
commit d46b55ef5b
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99
2 changed files with 8 additions and 8 deletions

View File

@ -116,16 +116,16 @@ bool Client::startConnection() {
bool isOverride = al::isPadHoldZL(-1);
if (mServerIP.isEmpty() || isOverride) {
mKeyboard->setHeaderText(u"Save File does not contain an IP!");
mKeyboard->setSubText(u"Please set a Server IP Below.");
mKeyboard->setHeaderText(u"Save file does not contain a server address!");
mKeyboard->setSubText(u"Set a server address below.");
mServerIP = "127.0.0.1";
Client::openKeyboardIP();
isNeedSave = true;
}
if (!mServerPort || isOverride) {
mKeyboard->setHeaderText(u"Save File does not contain a port!");
mKeyboard->setSubText(u"Please set a Server Port Below.");
mKeyboard->setHeaderText(u"Save file does not contain a server port!");
mKeyboard->setSubText(u"Set a server port below.");
mServerPort = 1027;
Client::openKeyboardPort();
isNeedSave = true;

View File

@ -46,8 +46,8 @@ StageSceneStateServerConfig::StageSceneStateServerConfig(const char *name, al::S
mMainMenuOptions = new sead::SafeArray<sead::WFixedSafeString<0x200>, mMainMenuOptionsCount>();
mMainMenuOptions->mBuffer[ServerConfigOption::GAMEMODECONFIG].copy(u"Gamemode Config");
mMainMenuOptions->mBuffer[ServerConfigOption::GAMEMODESWITCH].copy(u"Change Gamemode");
mMainMenuOptions->mBuffer[ServerConfigOption::SETIP].copy(u"Change Server IP");
mMainMenuOptions->mBuffer[ServerConfigOption::SETPORT].copy(u"Change Server Port");
mMainMenuOptions->mBuffer[ServerConfigOption::SETIP].copy(u"Change Server (needs restart)");
mMainMenuOptions->mBuffer[ServerConfigOption::SETPORT].copy(u"Change Port (needs restart)");
mMainMenuOptions->mBuffer[ServerConfigOption::HIDESERVER].copy(u"Hide Server in Debug (OFF)"); // TBD
mMainOptionsList->addStringData(getMainMenuOptions(), "TxtContent");
@ -202,7 +202,7 @@ void StageSceneStateServerConfig::exeOpenKeyboardIP() {
mCurrentList->deactivate();
Client::getKeyboard()->setHeaderText(u"Set a Server IP Below.");
Client::getKeyboard()->setHeaderText(u"Set a server address below.");
Client::getKeyboard()->setSubText(u"");
bool isSave = Client::openKeyboardIP(); // anything that happens after this will be ran after the keyboard closes
@ -221,7 +221,7 @@ void StageSceneStateServerConfig::exeOpenKeyboardPort() {
mCurrentList->deactivate();
Client::getKeyboard()->setHeaderText(u"Set a Server Port Below.");
Client::getKeyboard()->setHeaderText(u"Set a server port below.");
Client::getKeyboard()->setSubText(u"");
bool isSave = Client::openKeyboardPort(); // anything that happens after this will be ran after the keyboard closes