(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).

This commit is contained in:
rubidium
2009-02-09 01:22:29 +00:00
parent 9907742a0f
commit 861e9cefb3
13 changed files with 232 additions and 55 deletions

View File

@@ -196,6 +196,7 @@ struct SignWindow : QueryStringBaseWindow, SignList {
this->LowerWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
UpdateSignEditWindow(si);
this->SetFocusedWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
this->FindWindowPlacementAndResize(desc);
}
@@ -216,6 +217,7 @@ struct SignWindow : QueryStringBaseWindow, SignList {
InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, MAX_LENGTH_SIGN_NAME_PIXELS);
this->InvalidateWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
this->SetFocusedWidget(QUERY_EDIT_SIGN_WIDGET_TEXT);
}
/**
@@ -347,9 +349,8 @@ void HandleClickOnSign(const Sign *si)
void ShowRenameSignWindow(const Sign *si)
{
/* Delete all other edit windows and the save window */
/* Delete all other edit windows */
DeleteWindowById(WC_QUERY_STRING, 0);
DeleteWindowById(WC_SAVELOAD, 0);
new SignWindow(&_query_sign_edit_desc, si);
}