mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
parent
11f5ac72a9
commit
82470f5c0d
@ -228,7 +228,7 @@ enum OptionMenuEntries {
|
||||
OME_AI_SETTINGS,
|
||||
OME_GAMESCRIPT_SETTINGS,
|
||||
OME_NEWGRFSETTINGS,
|
||||
ONE_SANDBOX,
|
||||
OME_SANDBOX,
|
||||
OME_TRANSPARENCIES,
|
||||
OME_SHOW_TOWNNAMES,
|
||||
OME_SHOW_STATIONNAMES,
|
||||
@ -261,7 +261,7 @@ static CallBackFunction ToolbarOptionsClick(Window *w)
|
||||
}
|
||||
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_NEWGRF_SETTINGS, OME_NEWGRFSETTINGS, false));
|
||||
if (_game_mode != GM_EDITOR && !_networking) {
|
||||
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_SANDBOX_OPTIONS, ONE_SANDBOX, false));
|
||||
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_SANDBOX_OPTIONS, OME_SANDBOX, false));
|
||||
}
|
||||
list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_TRANSPARENCY_OPTIONS, OME_TRANSPARENCIES, false));
|
||||
list.push_back(std::make_unique<DropDownListDividerItem>(-1, false));
|
||||
@ -294,7 +294,7 @@ static CallBackFunction MenuClickSettings(int index)
|
||||
case OME_AI_SETTINGS: ShowAIConfigWindow(); return CBF_NONE;
|
||||
case OME_GAMESCRIPT_SETTINGS: ShowGSConfigWindow(); return CBF_NONE;
|
||||
case OME_NEWGRFSETTINGS: ShowNewGRFSettings(!_networking && _settings_client.gui.UserIsAllowedToChangeNewGRFs(), true, true, &_grfconfig); return CBF_NONE;
|
||||
case ONE_SANDBOX: ShowCheatWindow(); break;
|
||||
case OME_SANDBOX: ShowCheatWindow(); break;
|
||||
case OME_TRANSPARENCIES: ShowTransparencyToolbar(); break;
|
||||
|
||||
case OME_SHOW_TOWNNAMES: ToggleBit(_display_opt, DO_SHOW_TOWN_NAMES); break;
|
||||
|
Loading…
Reference in New Issue
Block a user