forked from mirror/OpenTTD
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
This commit is contained in:
@@ -446,6 +446,8 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS)
|
||||
{
|
||||
this->caption = STR_EDIT_SIGN_CAPTION;
|
||||
this->cancel_button = WID_QES_CANCEL;
|
||||
this->ok_button = WID_QES_OK;
|
||||
this->afilter = CS_ALPHANUMERAL;
|
||||
|
||||
this->InitNested(desc, WN_QUERY_STRING_SIGN);
|
||||
@@ -562,11 +564,6 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOpenOSKWindow(int wid)
|
||||
{
|
||||
ShowOnScreenKeyboard(this, wid, WID_QES_CANCEL, WID_QES_OK);
|
||||
}
|
||||
};
|
||||
|
||||
static const NWidgetPart _nested_query_sign_edit_widgets[] = {
|
||||
|
Reference in New Issue
Block a user