mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
This commit is contained in:
@@ -299,6 +299,8 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||
{
|
||||
this->dtype = type;
|
||||
this->dest = dest;
|
||||
this->cancel_button = WID_NC_CLOSE;
|
||||
this->ok_button = WID_NC_SENDBUTTON;
|
||||
this->afilter = CS_ALPHANUMERAL;
|
||||
this->text.Initialize(this->edit_str_buf, this->edit_str_size);
|
||||
|
||||
@@ -521,11 +523,6 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOpenOSKWindow(int wid)
|
||||
{
|
||||
ShowOnScreenKeyboard(this, wid, WID_NC_CLOSE, WID_NC_SENDBUTTON);
|
||||
}
|
||||
|
||||
/**
|
||||
* Some data on this window has become invalid.
|
||||
* @param data Information about the changed data.
|
||||
|
@@ -2123,6 +2123,8 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
|
||||
this->InitNested(desc, 0);
|
||||
|
||||
this->parent = parent;
|
||||
this->cancel_button = WID_NCP_CANCEL;
|
||||
this->ok_button = WID_NCP_OK;
|
||||
this->afilter = CS_ALPHANUMERAL;
|
||||
this->text.Initialize(this->edit_str_buf, this->edit_str_size);
|
||||
this->SetFocusedWidget(WID_NCP_PASSWORD);
|
||||
@@ -2171,11 +2173,6 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOpenOSKWindow(int wid)
|
||||
{
|
||||
ShowOnScreenKeyboard(this, wid, WID_NCP_CANCEL, WID_NCP_OK);
|
||||
}
|
||||
};
|
||||
|
||||
static const NWidgetPart _nested_network_company_password_window_widgets[] = {
|
||||
|
Reference in New Issue
Block a user