mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-29 14:14:37 +00:00
Better Language Support, move custom strings to stringsProjectZenith.xml
This commit is contained in:
@@ -2429,7 +2429,7 @@ void UIScene_LoadCreateJoinMenu::RebuildJoinGamesListVisual(bool syncFocus)
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
// Always add the "Add Server" button as the first entry in the games list
|
||||
m_buttonListGames.addItem(wstring(L"Add Server"));
|
||||
m_buttonListGames.addItem(app.GetString(IDS_SERVER_ADD));
|
||||
TrySetButtonListIcon(
|
||||
m_buttonListGames,
|
||||
m_buttonListGames.getItemCount() - 1,
|
||||
@@ -5914,7 +5914,7 @@ void UIScene_LoadCreateJoinMenu::BeginAddServer()
|
||||
|
||||
UIKeyboardInitData kbData;
|
||||
|
||||
kbData.title = L"Server Address";
|
||||
kbData.title = app.GetString(IDS_SERVER_ADDRESS);
|
||||
kbData.defaultText = L"";
|
||||
kbData.maxChars = 128;
|
||||
kbData.callback = &UIScene_LoadCreateJoinMenu::AddServerKeyboardCallback;
|
||||
@@ -6059,7 +6059,7 @@ int UIScene_LoadCreateJoinMenu::AddServerKeyboardCallback(LPVOID lpParam, bool b
|
||||
|
||||
UIKeyboardInitData kbData;
|
||||
|
||||
kbData.title = L"Server Port";
|
||||
kbData.title = app.GetString(IDS_SERVER_PORT);
|
||||
kbData.defaultText = L"25565";
|
||||
kbData.maxChars = 6;
|
||||
kbData.callback = &UIScene_LoadCreateJoinMenu::AddServerKeyboardCallback;
|
||||
@@ -6079,8 +6079,8 @@ int UIScene_LoadCreateJoinMenu::AddServerKeyboardCallback(LPVOID lpParam, bool b
|
||||
|
||||
UIKeyboardInitData kbData;
|
||||
|
||||
kbData.title = L"Server Name";
|
||||
kbData.defaultText = L"Minecraft Server";
|
||||
kbData.title = app.GetString(IDS_SERVER_NAME);
|
||||
kbData.defaultText = app.GetString(IDS_SERVER_MINECRAFT);
|
||||
kbData.maxChars = 64;
|
||||
kbData.callback = &UIScene_LoadCreateJoinMenu::AddServerKeyboardCallback;
|
||||
kbData.lpParam = pClass;
|
||||
|
||||
Reference in New Issue
Block a user