[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:
parent
75aa29776a
commit
d46b55ef5b
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue