Setting for a compact vertical toolbar, no implementation yet

This commit is contained in:
Sergii Pylypenko
2017-06-23 19:46:19 +03:00
parent 7b6bfad6c1
commit 2a9275900a
5 changed files with 13 additions and 0 deletions
+2
View File
@@ -1214,6 +1214,8 @@ STR_CONFIG_SETTING_SIGNALSIDE_DRIVING_SIDE :On the driving
STR_CONFIG_SETTING_SIGNALSIDE_RIGHT :On the right
STR_CONFIG_SETTING_VERTICAL_TOOLBAR :{BLACK}Vertical toolbar
STR_CONFIG_SETTING_VERTICAL_TOOLBAR_HELPTEXT :{BLACK}Main toolbar is split into two vertical toolbars on the sides of the screen
STR_CONFIG_SETTING_COMPACT_VERTICAL_TOOLBAR :{BLACK}Compact vertical toolbar
STR_CONFIG_SETTING_COMPACT_VERTICAL_TOOLBAR_HELPTEXT :{BLACK}No 'Switch toolbars' button in the vertical toolbar, but more sub-menus
STR_CONFIG_SETTING_BUTTON_SIZE :{BLACK}Button size
STR_CONFIG_SETTING_BUTTON_SIZE_TOOLTIP :{BLACK}Size of all user interface elements
STR_CONFIG_SETTING_FONT_SIZE :{BLACK}Font size
+1
View File
@@ -1650,6 +1650,7 @@ static SettingsContainer &GetSettingsTree()
interface->Add(new SettingEntry("gui.autosave"));
interface->Add(new SettingEntry("gui.vertical_toolbar"));
interface->Add(new SettingEntry("gui.compact_vertical_toolbar"));
interface->Add(new SettingEntry("gui.build_confirmation"));
interface->Add(new SettingEntry("gui.windows_titlebars"));
interface->Add(new SettingEntry("gui.windows_decorations"));
+1
View File
@@ -78,6 +78,7 @@ struct GUISettings {
uint8 order_review_system; ///< perform order reviews on vehicles
bool vehicle_income_warn; ///< if a vehicle isn't generating income, show a warning
bool vertical_toolbar; ///< main toolbar is split into two vertical toolbars
bool compact_vertical_toolbar; ///< compact mode for vertical toolbars, with more sub-menus
bool build_confirmation; ///< show confirmation dialog when building roads and stations
bool windows_titlebars; ///< show or hide titlebars for all windows to increase scrren space
bool windows_decorations; ///< draw ornament on all window edges
+8
View File
@@ -2558,6 +2558,14 @@ strhelp = STR_CONFIG_SETTING_VERTICAL_TOOLBAR_HELPTEXT
proc = VerticalToolbarChanged
cat = SC_BASIC
[SDTC_BOOL]
var = gui.compact_vertical_toolbar
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
def = false
str = STR_CONFIG_SETTING_COMPACT_VERTICAL_TOOLBAR
strhelp = STR_CONFIG_SETTING_COMPACT_VERTICAL_TOOLBAR_HELPTEXT
cat = SC_BASIC
[SDTC_BOOL]
var = gui.build_confirmation
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC