Changeset - r28715:9cc1cca7bfb7
[Not reviewed]
master
0 1 0
Loïc Guilloux - 3 months ago 2024-02-08 00:22:01
glx22@users.noreply.github.com
Codechange 80ebcc7: OptionMenuEntries prefix is OME not ONE (#12036)
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -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 ToolbarOptionsCl
 
	}
 
	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 MenuClickSetting
 
		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;
0 comments (0 inline, 0 general)