From 7469f00c5b8d0dc5cc2034eb9dc91c6e8721ac03 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Sun, 5 Sep 2021 14:22:27 -0400 Subject: Feature: Hide block signals in GUI by default (#8688) --- src/table/settings/gui_settings.ini | 59 ++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 34 deletions(-) (limited to 'src/table') 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 @@ -468,6 +471,19 @@ strhelp = STR_CONFIG_SETTING_COLOURED_NEWS_YEAR_HELPTEXT 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 @@ -597,31 +613,6 @@ strhelp = STR_CONFIG_SETTING_SHOW_TRACK_RESERVATION_HELPTEXT 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 -- cgit v1.2.3-70-g09d2