[Change] Moved tooltip-related settings to a dedicated category.
This commit is contained in:
@@ -292,12 +292,6 @@ STR_CONFIG_SETTING_VEHICLE_NAMES_LONG :Long
|
|||||||
STR_CONFIG_SETTING_SHADED_TREES_ON_SLOPES :Shade trees on slopes: {STRING2}
|
STR_CONFIG_SETTING_SHADED_TREES_ON_SLOPES :Shade trees on slopes: {STRING2}
|
||||||
STR_CONFIG_SETTING_SHADED_TREES_ON_SLOPES_HELPTEXT :Change brightness of trees drawn on slopes. Improves the look of tree cover in mountainous areas.
|
STR_CONFIG_SETTING_SHADED_TREES_ON_SLOPES_HELPTEXT :Change brightness of trees drawn on slopes. Improves the look of tree cover in mountainous areas.
|
||||||
|
|
||||||
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE :Station rating tooltips: {STRING2}
|
|
||||||
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_HELPTEXT :Set whether station rating tooltips are shown and the level of information detail.
|
|
||||||
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_OFF :Off
|
|
||||||
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_SIMPLE :Simple
|
|
||||||
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_DETAILED :Detailed
|
|
||||||
|
|
||||||
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE :Ask before demolishing structures: {STRING2}
|
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE :Ask before demolishing structures: {STRING2}
|
||||||
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE_HELPTEXT :Ask for confirmation before irreversibly demolishing structures.
|
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE_HELPTEXT :Ask for confirmation before irreversibly demolishing structures.
|
||||||
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE_OFF :Off
|
STR_CONFIG_SETTING_DEMOLISH_CONFIRM_MODE_OFF :Off
|
||||||
@@ -2122,5 +2116,13 @@ STR_TOWN_DIRECTORY_INFO :{BLACK}{STRING1
|
|||||||
STR_GAME_OPTIONS_GUI_SCALE_MAIN_TOOLBAR :{BLACK}Bigger main toolbar
|
STR_GAME_OPTIONS_GUI_SCALE_MAIN_TOOLBAR :{BLACK}Bigger main toolbar
|
||||||
STR_GAME_OPTIONS_GUI_SCALE_MAIN_TOOLBAR_TOOLTIP :{BLACK}Check this box to increase the scale of the main toolbar
|
STR_GAME_OPTIONS_GUI_SCALE_MAIN_TOOLBAR_TOOLTIP :{BLACK}Check this box to increase the scale of the main toolbar
|
||||||
|
|
||||||
|
STR_CONFIG_SETTING_INTERFACE_TOOLTIPS :{ORANGE}Tooltips
|
||||||
|
|
||||||
STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP :Show viewport tooltips for tiles without a right-click: {STRING2}
|
STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP :Show viewport tooltips for tiles without a right-click: {STRING2}
|
||||||
STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP_HELPTEXT :Show viewport tooltips for tile types such as industries without requiring a right-click, when the show tooltips setting is set to right-click.
|
STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP_HELPTEXT :Show viewport tooltips for tile types such as industries without requiring a right-click, when the show tooltips setting is set to right-click.
|
||||||
|
|
||||||
|
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE :Station rating tooltips: {STRING2}
|
||||||
|
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_HELPTEXT :Set whether station rating tooltips are shown and the level of information detail.
|
||||||
|
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_OFF :Off
|
||||||
|
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_SIMPLE :Simple
|
||||||
|
STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_DETAILED :Detailed
|
||||||
|
@@ -1923,14 +1923,19 @@ static SettingsContainer &GetSettingsTree()
|
|||||||
SettingsPage *general = interface->Add(new SettingsPage(STR_CONFIG_SETTING_INTERFACE_GENERAL));
|
SettingsPage *general = interface->Add(new SettingsPage(STR_CONFIG_SETTING_INTERFACE_GENERAL));
|
||||||
{
|
{
|
||||||
general->Add(new SettingEntry("gui.osk_activation"));
|
general->Add(new SettingEntry("gui.osk_activation"));
|
||||||
general->Add(new SettingEntry("gui.hover_delay_ms"));
|
|
||||||
general->Add(new ConditionallyHiddenSettingEntry("gui.instant_tile_tooltip", []() -> bool { return _settings_client.gui.hover_delay_ms != 0; }));
|
|
||||||
general->Add(new SettingEntry("gui.errmsg_duration"));
|
general->Add(new SettingEntry("gui.errmsg_duration"));
|
||||||
general->Add(new SettingEntry("gui.window_snap_radius"));
|
general->Add(new SettingEntry("gui.window_snap_radius"));
|
||||||
general->Add(new SettingEntry("gui.window_soft_limit"));
|
general->Add(new SettingEntry("gui.window_soft_limit"));
|
||||||
general->Add(new SettingEntry("gui.right_mouse_wnd_close"));
|
general->Add(new SettingEntry("gui.right_mouse_wnd_close"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SettingsPage *tooltips = interface->Add(new SettingsPage(STR_CONFIG_SETTING_INTERFACE_TOOLTIPS));
|
||||||
|
{
|
||||||
|
tooltips->Add(new SettingEntry("gui.hover_delay_ms"));
|
||||||
|
tooltips->Add(new ConditionallyHiddenSettingEntry("gui.instant_tile_tooltip", []() -> bool { return _settings_client.gui.hover_delay_ms != 0; }));
|
||||||
|
tooltips->Add(new SettingEntry("gui.station_rating_tooltip_mode"));
|
||||||
|
}
|
||||||
|
|
||||||
SettingsPage *save = interface->Add(new SettingsPage(STR_CONFIG_SETTING_INTERFACE_SAVE));
|
SettingsPage *save = interface->Add(new SettingsPage(STR_CONFIG_SETTING_INTERFACE_SAVE));
|
||||||
{
|
{
|
||||||
save->Add(new SettingEntry("gui.autosave"));
|
save->Add(new SettingEntry("gui.autosave"));
|
||||||
@@ -2090,7 +2095,6 @@ static SettingsContainer &GetSettingsTree()
|
|||||||
interface->Add(new SettingEntry("gui.prefer_teamchat"));
|
interface->Add(new SettingEntry("gui.prefer_teamchat"));
|
||||||
interface->Add(new SettingEntry("gui.sort_track_types_by_speed"));
|
interface->Add(new SettingEntry("gui.sort_track_types_by_speed"));
|
||||||
interface->Add(new SettingEntry("gui.allow_hiding_waypoint_labels"));
|
interface->Add(new SettingEntry("gui.allow_hiding_waypoint_labels"));
|
||||||
interface->Add(new SettingEntry("gui.station_rating_tooltip_mode"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsPage *advisors = main->Add(new SettingsPage(STR_CONFIG_SETTING_ADVISORS));
|
SettingsPage *advisors = main->Add(new SettingsPage(STR_CONFIG_SETTING_ADVISORS));
|
||||||
|
@@ -133,6 +133,7 @@ struct GUISettings : public TimeSettings {
|
|||||||
byte errmsg_duration; ///< duration of error message
|
byte errmsg_duration; ///< duration of error message
|
||||||
uint16 hover_delay_ms; ///< time required to activate a hover event, in milliseconds
|
uint16 hover_delay_ms; ///< time required to activate a hover event, in milliseconds
|
||||||
bool instant_tile_tooltip; ///< don't require a right click to activate a hover event to show a tooltip for an in-game tile (e.g. industry).
|
bool instant_tile_tooltip; ///< don't require a right click to activate a hover event to show a tooltip for an in-game tile (e.g. industry).
|
||||||
|
uint8 station_rating_tooltip_mode; ///< Station rating tooltip mode
|
||||||
bool link_terraform_toolbar; ///< display terraform toolbar when displaying rail, road, water and airport toolbars
|
bool link_terraform_toolbar; ///< display terraform toolbar when displaying rail, road, water and airport toolbars
|
||||||
uint8 smallmap_land_colour; ///< colour used for land and heightmap at the smallmap
|
uint8 smallmap_land_colour; ///< colour used for land and heightmap at the smallmap
|
||||||
uint8 scroll_mode; ///< viewport scroll mode
|
uint8 scroll_mode; ///< viewport scroll mode
|
||||||
@@ -249,7 +250,6 @@ struct GUISettings : public TimeSettings {
|
|||||||
uint8 linkgraph_colours; ///< linkgraph overlay colours
|
uint8 linkgraph_colours; ///< linkgraph overlay colours
|
||||||
uint8 vehicle_names; ///< Vehicle naming scheme
|
uint8 vehicle_names; ///< Vehicle naming scheme
|
||||||
bool shade_trees_on_slopes; ///< Shade trees on slopes
|
bool shade_trees_on_slopes; ///< Shade trees on slopes
|
||||||
uint8 station_rating_tooltip_mode; ///< Station rating tooltip mode
|
|
||||||
uint8 demolish_confirm_mode; ///< Demolition confirmation mode
|
uint8 demolish_confirm_mode; ///< Demolition confirmation mode
|
||||||
bool dual_pane_train_purchase_window; ///< Dual pane train purchase window
|
bool dual_pane_train_purchase_window; ///< Dual pane train purchase window
|
||||||
bool dual_pane_train_purchase_window_dual_buttons; ///< Dual pane train purchase window: dual buttons
|
bool dual_pane_train_purchase_window_dual_buttons; ///< Dual pane train purchase window: dual buttons
|
||||||
|
@@ -4552,6 +4552,17 @@ def = false
|
|||||||
str = STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP
|
str = STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP
|
||||||
strhelp = STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP_HELPTEXT
|
strhelp = STR_CONFIG_SETTING_INSTANT_TILE_TOOLTIP_HELPTEXT
|
||||||
|
|
||||||
|
[SDTC_VAR]
|
||||||
|
var = gui.station_rating_tooltip_mode
|
||||||
|
type = SLE_UINT8
|
||||||
|
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
||||||
|
def = 1
|
||||||
|
min = 0
|
||||||
|
max = 2
|
||||||
|
str = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE
|
||||||
|
strhelp = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_HELPTEXT
|
||||||
|
strval = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_OFF
|
||||||
|
|
||||||
[SDTC_OMANY]
|
[SDTC_OMANY]
|
||||||
var = gui.osk_activation
|
var = gui.osk_activation
|
||||||
type = SLE_UINT8
|
type = SLE_UINT8
|
||||||
@@ -5724,17 +5735,6 @@ strhelp = STR_CONFIG_SETTING_SHADED_TREES_ON_SLOPES_HELPTEXT
|
|||||||
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
post_cb = [](auto) { MarkWholeScreenDirty(); }
|
||||||
cat = SC_BASIC
|
cat = SC_BASIC
|
||||||
|
|
||||||
[SDTC_VAR]
|
|
||||||
var = gui.station_rating_tooltip_mode
|
|
||||||
type = SLE_UINT8
|
|
||||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
|
|
||||||
def = 1
|
|
||||||
min = 0
|
|
||||||
max = 2
|
|
||||||
str = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE
|
|
||||||
strhelp = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_HELPTEXT
|
|
||||||
strval = STR_CONFIG_SETTING_STATION_RATING_TOOLTIP_MODE_OFF
|
|
||||||
|
|
||||||
[SDTC_VAR]
|
[SDTC_VAR]
|
||||||
var = gui.demolish_confirm_mode
|
var = gui.demolish_confirm_mode
|
||||||
type = SLE_UINT8
|
type = SLE_UINT8
|
||||||
|
Reference in New Issue
Block a user