mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to Window::OnEditboxChanged.
This commit is contained in:
@@ -514,7 +514,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOSKInput(int wid)
|
||||
virtual void OnEditboxChanged(int wid)
|
||||
{
|
||||
_chat_tab_completion_active = false;
|
||||
}
|
||||
|
@@ -779,7 +779,7 @@ public:
|
||||
return ES_HANDLED;
|
||||
}
|
||||
|
||||
virtual void OnOSKInput(int wid)
|
||||
virtual void OnEditboxChanged(int wid)
|
||||
{
|
||||
if (wid == WID_NCL_FILTER) {
|
||||
this->string_filter.SetFilterTerm(this->edit_str_buf);
|
||||
|
@@ -847,7 +847,7 @@ public:
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOSKInput(int wid)
|
||||
virtual void OnEditboxChanged(int wid)
|
||||
{
|
||||
if (wid == WID_NG_CLIENT) {
|
||||
/* The name is only allowed when it starts with a letter! */
|
||||
@@ -1170,7 +1170,7 @@ struct NetworkStartServerWindow : public QueryStringBaseWindow {
|
||||
this->SetDirty();
|
||||
}
|
||||
|
||||
virtual void OnOSKInput(int wid)
|
||||
virtual void OnEditboxChanged(int wid)
|
||||
{
|
||||
if (wid == WID_NSS_GAMENAME) {
|
||||
strecpy(_settings_client.network.server_name, this->text.buf, lastof(_settings_client.network.server_name));
|
||||
|
Reference in New Issue
Block a user