Add settings to set depot order modifier hotkeys

This commit is contained in:
dP
2025-07-10 18:23:24 +05:00
parent 251f90f0d8
commit 2ba9439554
8 changed files with 152 additions and 84 deletions

View File

@@ -2,7 +2,8 @@
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*> _station_mod_actions{"nothing", "full_load", "transfer", "unload_all", "feeder_load", "feeder_unload", "no_load"};
static std::initializer_list<const char*> _depot_mod_actions{"nothing", "service", "stop", "unbunch"};
static std::initializer_list<const char*> _mod_keys{"none", "shift", "ctrl", "alt", "command"};
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"};
@@ -62,69 +63,102 @@ def = true
str = CM_STR_CONFIG_SETTING_AUTOSET_NOLOAD_ON_UNLOAD
[SDTC_OMANY]
var = gui.cm_ctrl_order_mod
var = gui.cm_ctrl_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 1
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_CTRL
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_CTRL
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_shift_order_mod
var = gui.cm_shift_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 0
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_SHIFT
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_SHIFT
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_ctrl_shift_order_mod
var = gui.cm_ctrl_shift_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 2
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_CTRL_SHIFT
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_CTRL_SHIFT
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_alt_order_mod
var = gui.cm_alt_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 4
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_ALT
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_ALT
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_alt_shift_order_mod
var = gui.cm_alt_shift_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 3
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_ALT_SHIFT
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_ALT_SHIFT
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_alt_ctrl_order_mod
var = gui.cm_alt_ctrl_station_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 5
max = 6
full = _order_mod_actions
str = CM_STR_CONFIG_SETTING_ORDER_MOD_ALT_CTRL
strval = CM_STR_CONFIG_SETTING_ORDER_MOD_ACTION_NONE
full = _station_mod_actions
str = CM_STR_CONFIG_SETTING_STATION_MOD_ALT_CTRL
strval = CM_STR_CONFIG_SETTING_STATION_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_ctrl_depot_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 3
max = 3
full = _depot_mod_actions
str = CM_STR_CONFIG_SETTING_DEPOT_MOD_CTRL
strval = CM_STR_CONFIG_SETTING_DEPOT_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_shift_depot_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 1
max = 3
full = _depot_mod_actions
str = CM_STR_CONFIG_SETTING_DEPOT_MOD_SHIFT
strval = CM_STR_CONFIG_SETTING_DEPOT_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_OMANY]
var = gui.cm_ctrl_shift_depot_mod
type = SLE_UINT8
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN | CM_SF_CITYMANIA
def = 2
max = 3
full = _depot_mod_actions
str = CM_STR_CONFIG_SETTING_DEPOT_MOD_CTRL_SHIFT
strval = CM_STR_CONFIG_SETTING_DEPOT_MOD_ACTION_NONE
cat = SC_BASIC
[SDTC_BOOL]