[Feature] Extended functionality of industry viewport tooltips.
Added ability to turn them off or to show any combination of the following: name, required, stockpiled or produced cargoes.
This commit is contained in:
@@ -4563,6 +4563,51 @@ str = STR_CONFIG_SETTING_TOWN_NAME_TOOLTIP_MODE
|
||||
strhelp = STR_CONFIG_SETTING_TOWN_NAME_TOOLTIP_MODE_HELPTEXT
|
||||
strval = STR_CONFIG_SETTING_TOWN_NAME_TOOLTIP_MODE_OFF
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_SHOW
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_SHOW_HELPTEXT
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_GAME_OPTIONS); }
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show_name
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_NAME
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_NAME_HELPTEXT
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show_required
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_REQUIRED
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_REQUIRED_HELPTEXT
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_GAME_OPTIONS); }
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show_stockpiled
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_STOCKPILED
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_STOCKPILED_HELPTEXT
|
||||
post_cb = [](auto) { InvalidateWindowClassesData(WC_GAME_OPTIONS); }
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show_stockpiled_as_required
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_STOCKPILED_AS_REQUIRED
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_STOCKPILED_AS_REQUIRED_HELPTEXT
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.industry_tooltip_show_produced
|
||||
flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_PRODUCED
|
||||
strhelp = STR_CONFIG_SETTING_INDUSTRY_TOOLTIP_PRODUCED_HELPTEXT
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.station_rating_tooltip_mode
|
||||
type = SLE_UINT8
|
||||
|
Reference in New Issue
Block a user