Fix graph background setting
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
[pre-amble]
|
||||
static void cm_v_RedrawStatusBar(int32 p1);
|
||||
static void cm_v_RedrawStatusBar(int32 new_value);
|
||||
static void cm_v_RedrawGraphs(int32 new_value);
|
||||
|
||||
static std::initializer_list<const char*> _order_mod_actions{"nothing", "full_load", "transfer", "unload_all", "feeder_load", "feeder_unload", "no_load"};
|
||||
static std::initializer_list<const char*> _mod_keys{"none", "shift", "ctrl", "alt"};
|
||||
static std::initializer_list<const char*> _shaded_tree_options{"always_off", "always_on", "as_server"};
|
||||
static std::initializer_list<const char*> _graph_background_options{"black", "grey"};
|
||||
|
||||
static const SettingVariant _cmclient_settings_table[] = {
|
||||
[post-amble]
|
||||
@@ -211,7 +213,7 @@ cat = SC_ADVANCED
|
||||
[SDTC_OMANY]
|
||||
var = gui.cm_shaded_trees
|
||||
type = SLE_UINT8
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
||||
flags = SF_GUI_DROPDOWN
|
||||
full = _shaded_tree_options
|
||||
def = 2
|
||||
min = 0
|
||||
@@ -230,10 +232,11 @@ strhelp = STR_CM_CONFIG_SETTING_SHOW_APM_HELPTEXT
|
||||
cat = SC_ADVANCED
|
||||
post_cb = cm_v_RedrawStatusBar
|
||||
|
||||
[SDTC_VAR]
|
||||
[SDTC_OMANY]
|
||||
var = gui.cm_graph_background
|
||||
type = SLE_UINT8
|
||||
guiflags = SGF_MULTISTRING
|
||||
flags = SF_GUI_DROPDOWN
|
||||
full = _graph_background_options
|
||||
def = 0
|
||||
min = 0
|
||||
max = 1
|
||||
@@ -241,6 +244,7 @@ str = STR_CM_CONFIG_SETTING_GRAPH_BACKGROUND
|
||||
strhelp = STR_CM_CONFIG_SETTING_GRAPH_BACKGROUND_HELPTEXT
|
||||
strval = STR_CM_CONFIG_SETTING_GRAPH_BACKGROUND_BLACK
|
||||
cat = SC_ADVANCED
|
||||
post_cb = cm_v_RedrawGraphs
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.cm_open_vehicle_for_shared_clone
|
||||
|
||||
Reference in New Issue
Block a user