diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 13:59:05 +0000 |
commit | 72d89337eea73156b6667874444919695f1cca28 (patch) | |
tree | f69467d5bbbf0587e6289219150ab4a8313edf8c /src/network/network_gui.cpp | |
parent | f31679662908a38f09415e319a8855e314f32d37 (diff) | |
download | openttd-72d89337eea73156b6667874444919695f1cca28.tar.xz |
(svn r14804) -Codechange: unify opening the OSK (Zuu)
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 2c1ca0537..007901341 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -473,10 +473,6 @@ public: { this->field = widget; switch (widget) { - case NGWW_CLIENT: - ShowOnScreenKeyboard(this, NGWW_CLIENT, 0, 0); - break; - case NGWW_CANCEL: // Cancel button DeleteWindowById(WC_NETWORK_WINDOW, 0); break; @@ -917,10 +913,6 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow { ShowNetworkGameWindow(); break; - case NSSW_GAMENAME: - ShowOnScreenKeyboard(this, NSSW_GAMENAME, 0, 0); - break; - case NSSW_SETPWD: // Set password button this->widget_id = NSSW_SETPWD; SetDParamStr(0, _settings_client.network.server_password); @@ -1907,10 +1899,6 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow { this->ToggleWidgetLoweredState(NCPWW_SAVE_AS_DEFAULT_PASSWORD); this->SetDirty(); break; - - case NCPWW_PASSWORD: - ShowOnScreenKeyboard(this, NCPWW_PASSWORD, NCPWW_CANCEL, NCPWW_OK); - break; } } @@ -1935,6 +1923,11 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow { } return state; } + + virtual void OnOpenOSKWindow(int wid) + { + ShowOnScreenKeyboard(this, wid, NCPWW_CANCEL, NCPWW_OK); + } }; static const Widget _ncp_window_widgets[] = { |