diff options
author | Tyler Trahan <tyler@tylertrahan.com> | 2021-09-05 14:22:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 20:22:27 +0200 |
commit | 7469f00c5b8d0dc5cc2034eb9dc91c6e8721ac03 (patch) | |
tree | 5a587cb8e7a12af3d15e120001edacfd89807048 /src/table | |
parent | f656b0ae966052327a6341be8dee65cfd2f395b8 (diff) | |
download | openttd-7469f00c5b8d0dc5cc2034eb9dc91c6e8721ac03.tar.xz |
Feature: Hide block signals in GUI by default (#8688)
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/settings/gui_settings.ini | 59 |
1 files changed, 25 insertions, 34 deletions
diff --git a/src/table/settings/gui_settings.ini b/src/table/settings/gui_settings.ini index f08c84981..277586f91 100644 --- a/src/table/settings/gui_settings.ini +++ b/src/table/settings/gui_settings.ini @@ -10,7 +10,6 @@ static void v_PositionMainToolbar(int32 new_value); static void v_PositionStatusbar(int32 new_value); static void RedrawSmallmap(int32 new_value); -static void CloseSignalGUI(int32 new_value); static void InvalidateCompanyLiveryWindow(int32 new_value); static void InvalidateNewGRFChangeWindows(int32 new_value); static void ZoomMinMaxChanged(int32 new_value); @@ -446,14 +445,18 @@ strhelp = STR_CONFIG_SETTING_DEFAULT_RAIL_TYPE_HELPTEXT strval = STR_CONFIG_SETTING_DEFAULT_RAIL_TYPE_FIRST cat = SC_BASIC -[SDTC_BOOL] -var = gui.enable_signal_gui -flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC -def = true -str = STR_CONFIG_SETTING_ENABLE_SIGNAL_GUI -strhelp = STR_CONFIG_SETTING_ENABLE_SIGNAL_GUI_HELPTEXT -post_cb = CloseSignalGUI -cat = SC_EXPERT +[SDTC_VAR] +var = gui.signal_gui_mode +type = SLE_UINT8 +flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN +def = 0 +min = 0 +max = 1 +str = STR_CONFIG_SETTING_SIGNAL_GUI_MODE +strhelp = STR_CONFIG_SETTING_SIGNAL_GUI_MODE_HELPTEXT +strval = STR_CONFIG_SETTING_SIGNAL_GUI_MODE_PATH +post_cb = [](auto) { CloseWindowByClass(WC_BUILD_SIGNAL); } +cat = SC_ADVANCED [SDTC_VAR] var = gui.coloured_news_year @@ -469,6 +472,19 @@ strval = STR_JUST_INT cat = SC_EXPERT [SDTC_VAR] +var = gui.cycle_signal_types +type = SLE_UINT8 +flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN +def = 0 +min = 0 +max = 1 +interval = 1 +str = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES +strhelp = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES_HELPTEXT +strval = STR_CONFIG_SETTING_CYCLE_SIGNAL_PBS +cat = SC_ADVANCED + +[SDTC_VAR] var = gui.drag_signals_density type = SLE_UINT8 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC @@ -598,31 +614,6 @@ post_cb = [](auto) { MarkWholeScreenDirty(); } cat = SC_BASIC [SDTC_VAR] -var = gui.default_signal_type -type = SLE_UINT8 -flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN -def = 1 -min = 0 -max = 2 -interval = 1 -str = STR_CONFIG_SETTING_DEFAULT_SIGNAL_TYPE -strhelp = STR_CONFIG_SETTING_DEFAULT_SIGNAL_TYPE_HELPTEXT -strval = STR_CONFIG_SETTING_DEFAULT_SIGNAL_NORMAL -cat = SC_BASIC - -[SDTC_VAR] -var = gui.cycle_signal_types -type = SLE_UINT8 -flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN -def = 2 -min = 0 -max = 2 -interval = 1 -str = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES -strhelp = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES_HELPTEXT -strval = STR_CONFIG_SETTING_CYCLE_SIGNAL_NORMAL - -[SDTC_VAR] var = gui.station_numtracks type = SLE_UINT8 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC |