Rename close window functions to match upstream
This commit is contained in:
@@ -136,7 +136,7 @@ struct BaseSetTextfileWindow : public TextfileWindow {
|
||||
template <class TBaseSet>
|
||||
void ShowBaseSetTextfileWindow(TextfileType file_type, const TBaseSet* baseset, StringID content_type)
|
||||
{
|
||||
DeleteWindowById(WC_TEXTFILE, file_type);
|
||||
CloseWindowById(WC_TEXTFILE, file_type);
|
||||
new BaseSetTextfileWindow<TBaseSet>(file_type, baseset, content_type);
|
||||
}
|
||||
|
||||
@@ -218,8 +218,8 @@ struct GameOptionsWindow : Window {
|
||||
|
||||
~GameOptionsWindow()
|
||||
{
|
||||
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
|
||||
DeleteWindowByClass(WC_TEXTFILE);
|
||||
CloseWindowById(WC_CUSTOM_CURRENCY, 0);
|
||||
CloseWindowByClass(WC_TEXTFILE);
|
||||
if (this->reload) _switch_mode = SM_MENU;
|
||||
}
|
||||
|
||||
@@ -730,7 +730,7 @@ struct GameOptionsWindow : Window {
|
||||
|
||||
case WID_GO_LANG_DROPDOWN: // Change interface language
|
||||
ReadLanguagePack(&_languages[index]);
|
||||
DeleteWindowByClass(WC_QUERY_STRING);
|
||||
CloseWindowByClass(WC_QUERY_STRING);
|
||||
CheckForMissingGlyphs();
|
||||
ClearAllCachedNames();
|
||||
UpdateAllVirtCoords();
|
||||
@@ -1010,7 +1010,7 @@ static WindowDesc _game_options_desc(
|
||||
/** Open the game options window. */
|
||||
void ShowGameOptions()
|
||||
{
|
||||
DeleteWindowByClass(WC_GAME_OPTIONS);
|
||||
CloseWindowByClass(WC_GAME_OPTIONS);
|
||||
new GameOptionsWindow(&_game_options_desc);
|
||||
}
|
||||
|
||||
@@ -3209,7 +3209,7 @@ static WindowDesc _settings_selection_desc(
|
||||
/** Open advanced settings window. */
|
||||
void ShowGameSettings()
|
||||
{
|
||||
DeleteWindowByClass(WC_GAME_OPTIONS);
|
||||
CloseWindowByClass(WC_GAME_OPTIONS);
|
||||
new GameSettingsWindow(&_settings_selection_desc);
|
||||
}
|
||||
|
||||
@@ -3508,6 +3508,6 @@ static WindowDesc _cust_currency_desc(
|
||||
/** Open custom currency window. */
|
||||
static void ShowCustCurrency()
|
||||
{
|
||||
DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
|
||||
CloseWindowById(WC_CUSTOM_CURRENCY, 0);
|
||||
new CustomCurrencyWindow(&_cust_currency_desc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user