Codechange: let OneOfMany and ManyOfMany be their own classes as well

This commit is contained in:
rubidium42
2021-05-23 19:16:56 +02:00
committed by rubidium42
parent 860003458f
commit e666a962b1
5 changed files with 123 additions and 143 deletions

View File

@@ -7,7 +7,8 @@
[pre-amble]
extern std::string _config_language_file;
static const char *_support8bppmodes = "no|system|hardware";
static std::initializer_list<const char*> _support8bppmodes{"no", "system" , "hardware"};
static std::initializer_list<const char*> _display_opt_modes{"SHOW_TOWN_NAMES", "SHOW_STATION_NAMES", "SHOW_SIGNS", "FULL_ANIMATION", "", "FULL_DETAIL", "WAYPOINTS", "SHOW_COMPETITOR_SIGNS"};
#ifdef WITH_COCOA
extern bool _allow_hidpi_window;
@@ -53,7 +54,7 @@ name = ""display_opt""
type = SLE_UINT8
var = _display_opt
def = (1 << DO_SHOW_TOWN_NAMES | 1 << DO_SHOW_STATION_NAMES | 1 << DO_SHOW_SIGNS | 1 << DO_FULL_ANIMATION | 1 << DO_FULL_DETAIL | 1 << DO_SHOW_WAYPOINT_NAMES | 1 << DO_SHOW_COMPETITOR_SIGNS)
full = ""SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION||FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS""
full = _display_opt_modes
[SDTG_BOOL]
name = ""fullscreen""