3341 lines
104 KiB
Plaintext
3341 lines
104 KiB
Plaintext
|
|
types EconomyLateralviewTypes
|
|
{
|
|
type budget_card = widget {
|
|
background = {
|
|
using = tile_card_bg_texture
|
|
alpha = 0.5
|
|
|
|
# block "background_color" {
|
|
using = color_dark_blue
|
|
# }
|
|
|
|
modify_texture = {
|
|
using = overlay_stone_texture
|
|
blend_mode = overlay
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
using = bg_paper_card
|
|
|
|
icon = {
|
|
size = { 24 24 }
|
|
block "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/others.dds"
|
|
}
|
|
|
|
texture_density = 2
|
|
}
|
|
|
|
text_single = {
|
|
default_format = "#explanation_link"
|
|
using = layoutpolicy_expanding
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
block "label" {
|
|
text = ""
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
align = right|nobaseline
|
|
block "income_text" {
|
|
raw_text = ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
type adjustable_budget_card = widget {
|
|
using = bg_paper_card
|
|
vbox = {
|
|
widget = {
|
|
using = layoutpolicy_expanding
|
|
block "adjustable_card_header_bg"{
|
|
using = bg_card_header_01
|
|
}
|
|
|
|
block "top_widget" {}
|
|
block "budget_card_frame" {
|
|
using = bg_cabinet_card_frame
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
using = layoutpolicy_expanding
|
|
block "bottom_widget" {}
|
|
}
|
|
}
|
|
}
|
|
|
|
type economy_slider = ranged_slider {
|
|
direction = horizontal
|
|
allow_outside = yes
|
|
|
|
step = 0.01
|
|
wheelstep = 0.01
|
|
|
|
# block "track_type"{
|
|
track = { using = economy_slider_track }
|
|
# }
|
|
track_range = { # Available progress
|
|
using = economy_slider_track_range
|
|
}
|
|
|
|
track_highlight = { # Active Progress
|
|
using = economy_slider_track_highlight
|
|
}
|
|
|
|
slider = {
|
|
using = economy_slider_slider
|
|
}
|
|
|
|
dec_button = {
|
|
using = economy_slider_dec_button
|
|
|
|
# blockoverride "economy_slider_dec_button_config"{
|
|
#
|
|
# alpha = 0
|
|
#
|
|
# state = {
|
|
# name = show_slider_buttons
|
|
# alpha = 1
|
|
# position_x = 0
|
|
# duration = 0.25
|
|
# using = Animation_Curve_Default
|
|
# }
|
|
# state = {
|
|
# name = hide_slider_buttons
|
|
# alpha = 0
|
|
# position_x = -5
|
|
# duration = 0.25
|
|
# using = Animation_Curve_Default
|
|
# }
|
|
# }
|
|
}
|
|
|
|
inc_button = {
|
|
using = economy_slider_inc_button
|
|
|
|
# blockoverride "economy_slider_inc_button_config"{
|
|
# alpha = 0
|
|
#
|
|
# state = {
|
|
# name = show_slider_buttons
|
|
# alpha = 1
|
|
# position_x = 123
|
|
# duration = 0.25
|
|
# using = Animation_Curve_Default
|
|
# }
|
|
# state = {
|
|
# name = hide_slider_buttons
|
|
# alpha = 0
|
|
# position_x = 128
|
|
# duration = 0.25
|
|
# using = Animation_Curve_Default
|
|
# }
|
|
# }
|
|
}
|
|
}
|
|
}
|
|
|
|
# template income_card {
|
|
# blockoverride "background_color" {
|
|
# using = color_light_blue
|
|
# }
|
|
# }
|
|
|
|
template economy_main_tabs {
|
|
button_main_tab_alt = {
|
|
layoutpolicy_horizontal = expanding
|
|
tooltipwidget = {
|
|
using = SubTabBalanceTooltip
|
|
}
|
|
widget = {
|
|
visible = "[Not(IsLateralViewOpened('economy'))]"
|
|
size = { 100% 100% }
|
|
name = "tab_balance"
|
|
}
|
|
down = "[IsLateralViewOpened('economy')]"
|
|
datacontext = "[GetAutomatedSystemItem('finances')]"
|
|
using = automated_tab
|
|
|
|
blockoverride "on_action_left" { on_action = "[OpenLateralView('economy')]" }
|
|
blockoverride "text" { text = "BALANCE_TEXT" }
|
|
}
|
|
|
|
button_main_tab_alt = {
|
|
using = layoutpolicy_expanding
|
|
tooltipwidget = {
|
|
using = SubTabCreditTooltip
|
|
}
|
|
widget = {
|
|
visible = "[Not(IsLateralViewOpened('credit'))]"
|
|
size = { 100% 100% }
|
|
name = "tab_credit"
|
|
}
|
|
down = "[IsLateralViewOpened('credit')]"
|
|
datacontext = "[GetAutomatedSystemItem('credit')]"
|
|
using = automated_tab
|
|
|
|
blockoverride "on_action_left" { on_action = "[OpenLateralView('credit')]" }
|
|
blockoverride "text" { text = "lateralview_credit_entry_name" }
|
|
}
|
|
|
|
button_main_tab_alt = {
|
|
using = layoutpolicy_expanding
|
|
tooltipwidget = {
|
|
using = SubTabMarketsTooltip
|
|
}
|
|
widget = {
|
|
visible = "[Not(And(IsLateralViewOpened('trade'), LateralView.Vars.NotExistOrHasValue( 'subtab', 'markets' )))]"
|
|
size = { 100% 100% }
|
|
name = "tab_markets"
|
|
}
|
|
|
|
down = "[And(IsLateralViewOpened('trade'), LateralView.Vars.NotExistOrHasValue( 'subtab', 'markets' ))]"
|
|
blockoverride "tab_text" { text = "SUBTAB_TRADE_MARKETS" }
|
|
action_tooltip = {
|
|
title = "OPEN_TAB"
|
|
on_action = "[OpenLateralViewWithParams('trade', 'subtab = markets')]"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
button_main_tab_alt = {
|
|
using = layoutpolicy_expanding
|
|
enabled = "[Player.HasOwnedMarket]"
|
|
datacontext = "[GetAutomatedSystemItem('TradePolicies')]"
|
|
tooltipwidget = {
|
|
using = SubTabTariffsTooltip
|
|
}
|
|
widget = {
|
|
visible = "[Not(IsLateralViewOpened('trade_policies'))]"
|
|
size = { 100% 100% }
|
|
name = "tab_trade_policies"
|
|
}
|
|
down = "[IsLateralViewOpened('trade_policies')]"
|
|
using = automated_tab
|
|
|
|
blockoverride "on_action_left" {
|
|
click_mode = single
|
|
enabled = "[Player.HasOwnedMarket]"
|
|
conditions = "[MakeItFailIfLoc(Not(Player.HasOwnedMarket), 'TRADE_POLICIES_TAB_REQUIRES_MARKET')]"
|
|
on_action = "[OpenLateralView('trade_policies')]"
|
|
}
|
|
blockoverride "text" { text = "lateralview_trade_policies_name" }
|
|
}
|
|
button_main_tab_alt = {
|
|
using = layoutpolicy_expanding
|
|
tooltipwidget = {
|
|
using = SubTabTradingTooltip
|
|
}
|
|
|
|
down = "[And(IsLateralViewOpened('trade'), LateralView.Vars.HasValue( 'subtab', 'trades' ))]"
|
|
blockoverride "tab_text" { text = "TRADE_TAB" }
|
|
action_tooltip = {
|
|
title = "OPEN_TAB"
|
|
on_action = "[OpenLateralViewWithParams('trade', 'subtab = trades')]"
|
|
}
|
|
}
|
|
}
|
|
|
|
template EstateIncomeBreakdownTooltip {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
text = "TAXING_ESTATE_INCOME_BREAKDOWN"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[GetEstateIcon(TaxRateSetting.GetEstate.GetType)]"
|
|
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
tooltipwidget = {
|
|
using = Estate_tooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [estate_tax_base|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
TooltipTextBlock = {
|
|
blockoverride "text" {
|
|
text = "ESTATE_CURRENT_TAX_TT"
|
|
}
|
|
}
|
|
|
|
TooltipStringPairList = {
|
|
visible = "[Not(StringIsEmpty(TaxRateSetting.GetTaxSettingsTooltip))]"
|
|
textcontext = "[TaxRateSetting.GetTaxSettingsTooltip]"
|
|
}
|
|
|
|
TooltipTextBlock = {
|
|
visible = "[Not(TaxRateSetting.GetEstate.CanCollectTaxes)]"
|
|
blockoverride "text" {
|
|
text = "[TaxRateSetting.GetEstate.GetCollectTaxesInfo]"
|
|
}
|
|
}
|
|
|
|
TooltipStringPairList = {
|
|
visible = "[And(TaxRateSetting.GetEstate.CanCollectTaxes, Not(StringIsEmpty(TaxRateSetting.GetIncomeBreakdown)))]"
|
|
textcontext = "[TaxRateSetting.GetIncomeBreakdown]"
|
|
}
|
|
|
|
caesar_plotline = {
|
|
visible = "[TaxRateSetting.GetEstate.HasTaxHistory]"
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 180 }
|
|
|
|
blockoverride "header" {
|
|
text = "ESTATE_TAX_LAST_YEAR"
|
|
}
|
|
blockoverride "line_color" {
|
|
color = { .9 .9 .9 1.0 }
|
|
}
|
|
blockoverride "line_plotpoints" {
|
|
plotpoints = "[Estate.GetTaxHistoryTrend]"
|
|
}
|
|
blockoverride "tooltip" {
|
|
marker = {
|
|
text_single = {
|
|
position = { 0 -20 }
|
|
autoresize = yes
|
|
|
|
margin_right = 4
|
|
margin_top = 4
|
|
align = left|nobaseline
|
|
using = bg_number_container_bckg
|
|
default_format = "#t"
|
|
|
|
text = "[Estate.GetTaxDataPointValue(PlotLine.GetSnappedIndexNearMouse)]"
|
|
}
|
|
}
|
|
}
|
|
blockoverride "maxvalue" {
|
|
raw_text = "[Estate.GetMaxTaxForPlot|1]@gold!"
|
|
}
|
|
blockoverride "minvalue" {
|
|
raw_text = "[Estate.GetMinTaxForPlot|1]@gold!"
|
|
}
|
|
blockoverride "startdate" {
|
|
text = "[Estate.GetTaxHistoryStartDate]"
|
|
}
|
|
blockoverride "enddate" {
|
|
text = "[Estate.GetTaxHistoryEndDate]"
|
|
}
|
|
blockoverride "multiitem" {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
lateralview = {
|
|
name = "economy_lateralview"
|
|
widgetid = "economy_lateralview"
|
|
|
|
blockoverride "lateralview_topbuttons_extra" {
|
|
widget = {
|
|
parentanchor = vcenter
|
|
size = { 40 40 }
|
|
position = { 30 0 }
|
|
|
|
button_automation_shortcut = {
|
|
parentanchor = vcenter
|
|
size = { 25 25 }
|
|
|
|
action_tooltip = {
|
|
title = "OPEN_AUTOMATION_PANEL_FILTER"
|
|
on_action = "[OpenLateralViewWithFilter('automation', 'automation_filter_economy')]"
|
|
}
|
|
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
parentanchor = right|vcenter
|
|
size = { 40 40 }
|
|
position = { -30 0 }
|
|
|
|
button_minimize = {
|
|
visible = "[Not(LateralView.Vars.Exists('graph_hide'))]"
|
|
parentanchor = right|vcenter
|
|
|
|
action_tooltip = {
|
|
title = "HIDE_ECONOMY_CHART"
|
|
on_action = "[LateralView.Vars.Toggle('graph_hide')]"
|
|
}
|
|
}
|
|
|
|
button_minimize = {
|
|
visible = "[LateralView.Vars.Exists('graph_hide')]"
|
|
parentanchor = right|vcenter
|
|
|
|
blockoverride "button_texture" {
|
|
using = max_button_alt_texture
|
|
}
|
|
|
|
action_tooltip = {
|
|
title = "SHOW_ECONOMY_CHART"
|
|
on_action = "[LateralView.Vars.Toggle('graph_hide')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "panel_header" {
|
|
window_header_alt = {
|
|
blockoverride "header_text" {
|
|
text = "THE_ECONOMY_OVERVIEW_TITLE"
|
|
}
|
|
blockoverride "window_header_alt_color_texture"{
|
|
using = color_economy_texture
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "panel_content" {
|
|
header_main_tabs = {
|
|
blockoverride "content" {
|
|
using = economy_main_tabs
|
|
}
|
|
}
|
|
|
|
vbox = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_main_inner_alt
|
|
using = window_main_tabs_margin_alt
|
|
spacing = 3
|
|
|
|
AutomatedSection = {
|
|
datacontext = "[GetAutomatedSystemItem('finances')]"
|
|
|
|
blockoverride "glow_anim_automation_visible" {
|
|
visible = "[AutomatedSystemsItem.IsEnabled]"
|
|
}
|
|
}
|
|
|
|
# Initialize satisfaction target variables (default 50%) when economy view is opened
|
|
overlappingitembox = {
|
|
visible = no
|
|
state = {
|
|
name = taxing_initial_init
|
|
trigger_on_create = yes
|
|
next = taxing_init
|
|
on_finish = "[PdxGuiWidget.TriggerAnimation('taxing_init')]"
|
|
}
|
|
state = {
|
|
name = taxing_init
|
|
duration = 1
|
|
on_start = "[PdxGuiWidget.Hide]"
|
|
on_finish = "[GetScriptedGui('taxing_setup').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).End)]"
|
|
next = taxing_init
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
minimumsize = { -1 50 }
|
|
margin = { 4 4 }
|
|
spacing = 4
|
|
using = bg_paper_card
|
|
using = bg_cabinet_card_frame
|
|
|
|
tooltipmeta = {
|
|
texture = "[GetConceptTexture('wealth')]"
|
|
}
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_text_mask_container_brown
|
|
datacontext = "[Player]"
|
|
spacing = 3
|
|
margin = { 2 2 }
|
|
|
|
tooltipwidget = {
|
|
using = EconomicalBaseTooltip
|
|
}
|
|
|
|
icon = {
|
|
size = { 20 20 }
|
|
texture = "[GetConceptTexture('economical_base')]"
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = { 0.0 0.0 0.0 1.0 }
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 15 }
|
|
fontsize = 11
|
|
default_format = "#explanation_link"
|
|
align = top|left
|
|
text = "game_concept_economical_base"
|
|
}
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 17 }
|
|
fontsize = 12
|
|
align = left|nobaseline
|
|
text = "[Player.GetEconomicalBase|L2]"
|
|
}
|
|
}
|
|
}
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_text_mask_container_brown
|
|
datacontext = "[Player]"
|
|
spacing = 3
|
|
margin = { 2 2 }
|
|
|
|
blockoverride "text_mask_extra" {
|
|
alpha = 0.1
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = TotalWealthTooltip
|
|
}
|
|
|
|
icon = {
|
|
size = { 20 20 }
|
|
texture = "[GetConceptTexture('wealth')]"
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = { 0.0 0.0 0.0 1.0 }
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 15 }
|
|
fontsize = 11
|
|
default_format = "#explanation_link"
|
|
align = top|left
|
|
text = "game_concept_wealth"
|
|
}
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 17 }
|
|
fontsize = 12
|
|
align = left|nobaseline
|
|
text = "[Player.GetTotalWealth|2L]"
|
|
}
|
|
}
|
|
}
|
|
hbox = {
|
|
name = "tax_base"
|
|
using = layoutpolicy_expanding
|
|
using = bg_text_mask_container_brown
|
|
datacontext = "[Player]"
|
|
spacing = 3
|
|
margin = { 2 2 }
|
|
|
|
tooltipwidget = {
|
|
using = TaxBaseTooltip
|
|
}
|
|
|
|
icon = {
|
|
size = { 20 20 }
|
|
texture = "[GetConceptTexture('tax_base')]"
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = { 0.0 0.0 0.0 1.0 }
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 15 }
|
|
fontsize = 11
|
|
default_format = "#explanation_link"
|
|
align = top|left
|
|
text = "game_concept_tax_base"
|
|
}
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 17 }
|
|
fontsize = 12
|
|
align = left|nobaseline
|
|
text = "[Player.GetTotalTaxBase]"
|
|
}
|
|
}
|
|
}
|
|
button = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_text_mask_container_brown
|
|
datacontext = "[Player]"
|
|
|
|
blockoverride "text_mask_extra" {
|
|
alpha = 0.1
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = TaxBaseWealthRatioTooltip
|
|
}
|
|
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
title = "TAX_BASE_WEALTH_RATIO_BUILD_CONTROL"
|
|
on_action = "[ShowProductionViewWithFilterAndNoMarket('local_max_control', '(bool)yes')]"
|
|
on_action = "[ShowProductionViewWithFilter('global_max_control', '(bool)no')]"
|
|
}
|
|
|
|
hbox = {
|
|
size = { 100% 100% }
|
|
spacing = 3
|
|
margin = { 2 2 }
|
|
|
|
icon = {
|
|
size = { 20 20 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/efficiency.dds"
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = { 0.0 0.0 0.0 1.0 }
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 15 }
|
|
fontsize = 11
|
|
default_format = "#explanation_link"
|
|
align = top|left
|
|
text = "game_concept_tax_base_ratio"
|
|
}
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 17 }
|
|
fontsize = 12
|
|
align = left|nobaseline
|
|
text = "[Player.GetTaxBaseWealthRatioColored]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_text_mask_container_brown
|
|
datacontext = "[Player]"
|
|
spacing = 3
|
|
margin = { 2 2 }
|
|
|
|
tooltipwidget = {
|
|
using = TaxEfficiencyTooltip
|
|
}
|
|
|
|
icon = {
|
|
size = { 20 20 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/tax_efficiency.dds"
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = { 0.0 0.0 0.0 1.0 }
|
|
alpha = 0.3
|
|
}
|
|
}
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 15 }
|
|
fontsize = 11
|
|
default_format = "#explanation_link"
|
|
align = top|left
|
|
text = "game_concept_tax_efficiency"
|
|
}
|
|
text_single = {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = no
|
|
size = { -1 17 }
|
|
fontsize = 12
|
|
align = left|nobaseline
|
|
text = "[Player.GetModifierValueNoFormat('tax_income_efficiency')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
economy_plotline = {
|
|
visible = "[Not(LateralView.Vars.Exists('graph_hide'))]"
|
|
using = bg_age_event_frame
|
|
|
|
blockoverride "size" {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 220 }
|
|
}
|
|
blockoverride "background" {
|
|
using = bg_text_mask_container_dark_brown
|
|
|
|
background = {
|
|
texture = "gfx/interface/illustrations/institutions/banking.dds"
|
|
frame_grid = {1 2}
|
|
frame = 2
|
|
fittype = centercrop
|
|
alpha = 0.4
|
|
}
|
|
|
|
background = {
|
|
using = color_default_brown_texture
|
|
alpha = 0.8
|
|
modify_texture = {
|
|
using = overlay_paper_03
|
|
}
|
|
}
|
|
|
|
background = {
|
|
using = color_black_texture
|
|
alpha = 0.4
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds"
|
|
texture_density = 2
|
|
spriteType = corneredstretched
|
|
spriteborder = { 20 20 }
|
|
blend_mode = alphamultiply
|
|
alpha = 0.9
|
|
}
|
|
|
|
}
|
|
|
|
background = {
|
|
using = color_black_texture
|
|
alpha = 0.3
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/overview_mask.dds"
|
|
texture_density = 2
|
|
spriteType = corneredstretched
|
|
spriteborder = { 20 20 }
|
|
blend_mode = alphamultiply
|
|
alpha = 0.7
|
|
}
|
|
}
|
|
|
|
background = {
|
|
using = plotchart_grid_texture
|
|
alpha = 0.5
|
|
|
|
modify_texture = {
|
|
using = color_super_dark_brown_texture
|
|
blend_mode = add
|
|
alpha = 0.7
|
|
}
|
|
modify_texture = {
|
|
using = color_super_dark_brown_texture
|
|
blend_mode = overlay
|
|
}
|
|
}
|
|
|
|
}
|
|
blockoverride "graph_fade_background" {}
|
|
blockoverride "line_width" {
|
|
width = 3
|
|
}
|
|
blockoverride "header" {
|
|
# raw_text = "[balance|e]: [EconomyView.GetEstimatedBalance|2+=]@gold!"
|
|
}
|
|
blockoverride "line_color" {
|
|
color = { 0.30 0.75 0.35 1.0 }
|
|
}
|
|
blockoverride "line_plotpoints" {
|
|
plotpoints = "[EconomyView.GetRecentIncome]"
|
|
}
|
|
blockoverride "tooltip" {
|
|
using = tooltip_se
|
|
tooltipwidget = {
|
|
BasicFunctionalTooltip = {
|
|
alwaystransparent = yes
|
|
blockoverride "tooltip_content" {
|
|
TooltipBlockList = {
|
|
textcontext = "[EconomyView.GetDataPointValue(PlotLine.GetSnappedIndexNearMouse)]"
|
|
}
|
|
}
|
|
|
|
blockoverride "tooltip_minimumsize" {
|
|
minimumsize = { -1 -1 }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
blockoverride "maxvalue" {
|
|
position = { 0 0 }
|
|
align = right|nobaseline
|
|
raw_text = "[EconomyView.GetHistoricalMaxAmount|2L]@gold!"
|
|
tooltipwidget = {
|
|
SimpleContextualStringPairTooltipType = {
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('income')]"
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[income|e]"
|
|
}
|
|
|
|
lowpriotextcontext = "[EconomyView.GetHistoricalMaxAmountTooltip]"
|
|
}
|
|
}
|
|
}
|
|
blockoverride "minvalue" {
|
|
position = { 0 0 }
|
|
align = right|nobaseline
|
|
raw_text = "0@gold!"
|
|
}
|
|
blockoverride "datamodel" {
|
|
size = { 99% 80% }
|
|
}
|
|
blockoverride "startdate" {
|
|
text = "[EconomyView.GetGraphStartDate]"
|
|
# visible = no
|
|
}
|
|
blockoverride "enddate" {
|
|
text = "[EconomyView.GetGraphEndDate]"
|
|
# visible = no
|
|
}
|
|
blockoverride "multiitem" {}
|
|
|
|
blockoverride "extra_plotlines" {
|
|
plotline = {
|
|
size = { 100% 100% }
|
|
using = plot_line
|
|
width = 3
|
|
color = { 0.85 0.25 0.25 1.0 }
|
|
plotpoints = "[EconomyView.GetRecentExpense]"
|
|
|
|
using = tooltip_se
|
|
tooltipwidget = {
|
|
BasicFunctionalTooltip = {
|
|
alwaystransparent = yes
|
|
blockoverride "tooltip_content" {
|
|
TooltipBlockList = {
|
|
textcontext = "[EconomyView.GetDataPointValue(PlotLine.GetSnappedIndexNearMouse)]"
|
|
}
|
|
}
|
|
|
|
blockoverride "tooltip_minimumsize" {
|
|
minimumsize = { -1 -1 }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "empty_state_visibility" {}
|
|
|
|
blockoverride "empty_state_text" {}
|
|
|
|
|
|
widget = {
|
|
parentanchor = center
|
|
size = { 100% 40 }
|
|
visible = "[GetPlayer.GetEconomy.IsDuringBankruptcy]"
|
|
|
|
|
|
tooltipwidget = {
|
|
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
|
|
text = "IN_BANKRUPTCY"
|
|
}
|
|
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('bankrupt')]"
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [bankrupt|e]
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
datacontext = "[GetPlayer]"
|
|
TooltipStringPairList = {
|
|
blockoverride "block_title" { text = "BANKRUPTCY_UNTIL" }
|
|
textcontext = "[ShowModifierEffect('is_bankrupt')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
background = {
|
|
texture = "gfx/interface/colors/black.dds"
|
|
alpha = 1
|
|
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds"
|
|
blend_mode = alphamultiply
|
|
}
|
|
}
|
|
|
|
background = {
|
|
texture = "gfx/interface/colors/red.dds"
|
|
alpha = 0.5
|
|
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds"
|
|
blend_mode = alphamultiply
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
spacing = 5
|
|
|
|
expand = {}
|
|
piechart = {
|
|
size = { 32 32 }
|
|
|
|
using = piechart_angles
|
|
using = bg_circle_alt_brown
|
|
using = bg_circle_piechart
|
|
|
|
icon = {
|
|
texture = "[GetConceptTexture('bankrupt')]"
|
|
size = { 60% 60% }
|
|
parentanchor = center
|
|
}
|
|
|
|
pieslice_no_highlight = {
|
|
alwaystransparent = yes
|
|
texture = "gfx/interface/pie_charts/pie_chart_blue_progress.dds"
|
|
value = "[GetPlayer.GetBankruptcyProgress]"
|
|
color = { 1 1 1 1 }
|
|
}
|
|
|
|
pieslice_no_highlight = {
|
|
alwaystransparent = yes
|
|
texture = "gfx/interface/pie_charts/pie_chart_blue_progress.dds"
|
|
value = "[Subtract_float('(float)1.0', GetPlayer.GetBankruptcyProgress)]"
|
|
color = { 1 1 1 0 }
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
maximumsize = { 200 -1}
|
|
text = "IN_BANKRUPTCY"
|
|
using = Font_Type_Headers
|
|
using = Font_Size_Big
|
|
}
|
|
expand = {}
|
|
}
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
using = layoutpolicy_expanding
|
|
|
|
vbox = {
|
|
widget = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 40 }
|
|
|
|
background = {
|
|
using = tile_card_bg_up_texture
|
|
modify_texture = {
|
|
using = color_bg_blue_texture
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
name = "balance_subheader"
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 2
|
|
|
|
header_button_left = {
|
|
name = "take_estate_loan_button"
|
|
size = { 160 40 }
|
|
|
|
blockoverride "icon_overlay" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/estates_loan.dds"
|
|
size = { 80% 80% }
|
|
parentanchor = center
|
|
}
|
|
|
|
blockoverride "text_top" {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = yes
|
|
text = "LOAN_TOOLTIP_SZ"
|
|
}
|
|
|
|
blockoverride "text_bottom" {
|
|
layoutpolicy_horizontal = expanding
|
|
autoresize = yes
|
|
raw_text = "[EconomyView.GetNextLoanSize|2]@gold!"
|
|
}
|
|
|
|
enabled = "[PdxGuiWidget.IsUberButtonEnabled]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "take_estate_loan"
|
|
}
|
|
blockoverride "title_icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/estates_loan.dds"
|
|
}
|
|
blockoverride "concept_link" {
|
|
text = "[loan|e]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
using = action_tooltip_inner_content
|
|
}
|
|
}
|
|
}
|
|
|
|
scripted_action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
action_name = "take_estate_loan"
|
|
actor = "[Player]"
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 40 }
|
|
using = bg_paper_card
|
|
using = bg_cabinet_card_frame
|
|
widget = {
|
|
size = { 100% 100% }
|
|
ignore_layout = yes
|
|
background = {
|
|
texture = "gfx/interface/component_masks/age_event_mask_frame_horizontal.dds"
|
|
texture_density = 2
|
|
margin = {30 -4}
|
|
|
|
modify_texture = {
|
|
visible = "[GreaterThanOrEqualTo_CFixedPoint(GetPlayer.GetCurrencyBalance('gold'), '(CFixedPoint)0')]"
|
|
using = color_light_green_texture
|
|
}
|
|
|
|
modify_texture = {
|
|
visible = "[LessThanOrEqualTo_CFixedPoint(GetPlayer.GetCurrencyBalance('gold'), '(CFixedPoint)0')]"
|
|
using = color_red_texture
|
|
}
|
|
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds"
|
|
blend_mode = alphamultiply
|
|
}
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
parentanchor = center
|
|
autoresize = yes
|
|
align = nobaseline
|
|
raw_text = "[GetPlayer.GetCurrencyBalance('gold')|2+=]@gold_balance!"
|
|
using = Font_Size_Big
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('balance')]"
|
|
}
|
|
|
|
blockoverride "title_text" {
|
|
text = "BALANCE_TOOLTIP_T"
|
|
}
|
|
blockoverride "concept_link" {
|
|
text = [balance|e]
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 450 } }
|
|
textcontext = "[EconomyView.GetEstimatedBalanceInfo]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
header_button_right = {
|
|
name = "repay_all_possible_loans_button"
|
|
size = { 160 40 }
|
|
|
|
blockoverride "icon_overlay" {
|
|
size = { 80% 80% }
|
|
parentanchor = center
|
|
texture = "[GetConceptTexture('debt')]"
|
|
}
|
|
|
|
blockoverride "text_top" {
|
|
layoutpolicy_horizontal = expanding
|
|
align = right
|
|
autoresize = yes
|
|
text = "REPAY_THIS_LOAN"
|
|
}
|
|
|
|
blockoverride "text_bottom" {
|
|
layoutpolicy_horizontal = expanding
|
|
align = right
|
|
autoresize = yes
|
|
text = "[GetRepayAllPossibleLoansCostForPlayer]"
|
|
}
|
|
|
|
visible = "[PlayerCanRepayAnyLoan]"
|
|
using = repay_all_possible_loans_action_provider
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "REPAY_ALL_POSSIBLE_LOANS_TITLE"
|
|
}
|
|
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('debt')]"
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
TooltipTextBlock = {
|
|
blockoverride "text" { text = "[GetRepayAllPossibleLoansDescriptionForPlayer]" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
header_button_right = {
|
|
name = "repay_all_loans_button"
|
|
size = { 160 40 }
|
|
|
|
blockoverride "icon_overlay" {
|
|
size = { 80% 80% }
|
|
parentanchor = center
|
|
texture = "[GetConceptTexture('debt')]"
|
|
}
|
|
|
|
blockoverride "text_top" {
|
|
layoutpolicy_horizontal = expanding
|
|
align = right
|
|
autoresize = yes
|
|
text = "REPAY_ALL_LOANS_BT"
|
|
}
|
|
|
|
blockoverride "text_bottom" {
|
|
layoutpolicy_horizontal = expanding
|
|
align = right
|
|
autoresize = yes
|
|
text = "[GetRepayAllLoansCostForPlayer]"
|
|
}
|
|
|
|
visible = "[Not(PlayerCanRepayAnyLoan)]"
|
|
using = repay_all_loans_action_provider
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "REPAY_ALL_LOANS"
|
|
}
|
|
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('debt')]"
|
|
}
|
|
|
|
blockoverride "concept_link_obj" {}
|
|
blockoverride "tooltip_content" {
|
|
TooltipTextBlock = {
|
|
visible = "[Not(StringIsEmpty(GetRepayAllLoansDescriptionForPlayer))]"
|
|
blockoverride "text" { text = "[GetRepayAllLoansDescriptionForPlayer]" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
vbox = {
|
|
using = layoutpolicy_expanding
|
|
using = bg_secondary_inner_alt
|
|
|
|
# onmousehierarchyenter = "[PdxGuiInterruptThenTriggerAllAnimations('hide_slider_buttons','show_slider_buttons')]"
|
|
# onmousehierarchyleave = "[PdxGuiInterruptThenTriggerAllAnimations('show_slider_buttons','hide_slider_buttons')]"
|
|
|
|
vbox = {
|
|
using = layoutpolicy_expanding
|
|
|
|
hbox = {
|
|
name = income_and_expenses
|
|
layoutpolicy_horizontal = expanding
|
|
margin = { 0 4 }
|
|
|
|
widget = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
|
|
background = {
|
|
texture = "gfx/interface/component_masks/age_event_mask_frame_horizontal.dds"
|
|
texture_density = 2
|
|
|
|
modify_texture = {
|
|
using = color_light_green_texture
|
|
}
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds"
|
|
blend_mode = alphamultiply
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
size = { 100% 100% }
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
|
|
text = "INCOME_TITLE"
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
name = "BALANCE_INCOME_TOOLTIP"
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('income')]"
|
|
}
|
|
blockoverride "title_text" { text = "INCOME_TOOLTIP_T" }
|
|
blockoverride "concept_link" { text = "[income|e]"}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 300 }}
|
|
textcontext = "[EconomyView.GetAllIncomeInfo]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# Button for unused maintenance settings visibility
|
|
button_check_visibility = {
|
|
size = { 32 32 }
|
|
tooltipwidget = {
|
|
SimpleContextualTooltipType = {
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/resources/gold.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[balance|e]"
|
|
}
|
|
|
|
lowpriotextcontext = "[SelectLocalization( EconomyView.UnusedMaintenanceSettingsVisible, 'UNUSED_MAINTENANCE_SETTINGS_TOGGLE_IS_ON', 'UNUSED_MAINTENANCE_SETTINGS_TOGGLE_IS_OFF' )]"
|
|
|
|
}
|
|
}
|
|
|
|
down = "[EconomyView.UnusedMaintenanceSettingsVisible]"
|
|
onclick = "[EconomyView.ToggleUnusedMaintenanceSettings]"
|
|
|
|
}
|
|
|
|
widget = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
|
|
background = {
|
|
texture = "gfx/interface/component_masks/age_event_mask_frame_horizontal.dds"
|
|
texture_density = 2
|
|
|
|
modify_texture = {
|
|
using = color_red_texture
|
|
}
|
|
modify_texture = {
|
|
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds"
|
|
blend_mode = alphamultiply
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
size = { 100% 100% }
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
|
|
text = "EXPENSE_TITLE"
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
name = "BALANCE_EXPENSE_TOOLTIP"
|
|
blockoverride "title_icon_texture" {
|
|
texture = "[GetConceptTexture('expenses')]"
|
|
}
|
|
blockoverride "title_text" { text = "EXPENSE_TOOLTIP_T" }
|
|
blockoverride "concept_link" { text = "[expense|e]"}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 300 }}
|
|
textcontext = "[EconomyView.GetAllExpenseInfo]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
scroll_list = {
|
|
using = bg_secondary_inner_image_alt
|
|
blockoverride "image" {
|
|
texture = "gfx/interface/illustrations/bg/bg_economy.dds"
|
|
}
|
|
|
|
blockoverride "scroll_list_layout" {
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
margin_left = 5
|
|
margin_right = 5
|
|
spacing = 5
|
|
|
|
#income
|
|
vbox = {
|
|
name = income
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
|
|
#minting
|
|
adjustable_budget_card = {
|
|
name = mint_slider
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 55 }
|
|
blockoverride "header_color" {
|
|
using = color_economy_texture
|
|
}
|
|
|
|
visible = "[EconomyView.HasTaxes]"
|
|
|
|
blockoverride "top_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
icon = {
|
|
size = { 24 24 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/minting_coins.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
text_single = {
|
|
using = layoutpolicy_expanding
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
text = "INCOME_MINTING"
|
|
default_format = "#explanation_link"
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
align = right|nobaseline
|
|
raw_text = "[EconomyView.GetCoinMintingIncome|2+=]@income!"
|
|
}
|
|
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/minting_coins.dds"
|
|
game_concept = "[minting|e]"
|
|
}
|
|
|
|
|
|
tooltipwidget = {
|
|
using = MintingMaitenanceTooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "bottom_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
|
|
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
economy_slider = {
|
|
# parentanchor = left|vcenter
|
|
size = { 110 10 }
|
|
min = 0
|
|
max = 1
|
|
value = "[EconomyView.GetDefaultCoinMinting]"
|
|
onvaluechanged = "[EconomyView.OnChangedCoinMinting]"
|
|
onchangefinish = "[EconomyView.PostTaxes]"
|
|
enabled = "[Not(Player.AutoCoinMinting)]"
|
|
alpha = "[TransparentIfFalse(Not(Player.AutoCoinMinting))]"
|
|
blockoverride "economy_slider_inc_button_config"{
|
|
enabled = "[EconomyView.IsCoinMintingIncEnabled]"
|
|
}
|
|
blockoverride "economy_slider_dec_button_config"{
|
|
enabled = "[EconomyView.IsCoinMintingDecEnabled]"
|
|
}
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoCoinMinting]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoCoinMinting, 'AUTOMATION_MINTING_ZERO_OFF_TT', 'AUTOMATION_MINTING_ZERO_ON_TT' )]"
|
|
on_action = "[ToggleAutoMinting]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
expand = {}
|
|
|
|
tooltipwidget = {
|
|
using = MintingMaitenanceTooltip
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
datacontext = "[GetPlayer]"
|
|
spacing = 2
|
|
tooltipwidget = {
|
|
using = InflationTooltip
|
|
}
|
|
text_single = {
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
size = { 85 20 }
|
|
raw_text = "[GetPlayer.GetFixedPointCurrencyValue('inflation')|2%] ([EconomyView.GetInflationChange|2-=%])"
|
|
|
|
}
|
|
icon = {
|
|
texture = "[GetConceptTexture('inflation')]"
|
|
size = { 16 16 }
|
|
glow = {
|
|
name = "drop_shadow"
|
|
glow_radius = 3
|
|
color = {0.0 0.0 0.0 1.0}
|
|
alpha = 0.1
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#all the estates and their taxes
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 5
|
|
datamodel = "[EconomyView.GetTaxRateSettings]"
|
|
item = {
|
|
adjustable_budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 55 }
|
|
blockoverride "header_color" {
|
|
using = color_economy_texture
|
|
}
|
|
|
|
visible = "[TaxRateSetting.ShouldShow]"
|
|
|
|
widget = {
|
|
size = { 100% 100% }
|
|
name = "tax_slider"
|
|
visible = "[Not(TaxRateSetting.IsUsingAutoTaxRate)]"
|
|
}
|
|
|
|
blockoverride "top_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
icon = {
|
|
size = { 31 31 }
|
|
texture = "[GetEstateIcon(TaxRateSetting.GetEstate.GetType)]"
|
|
texture_density = 2
|
|
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
tooltipwidget = {
|
|
using = Estate_tooltip
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
using = layoutpolicy_expanding
|
|
maximumsize = {175 -1}
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
text = "[TaxRateSetting.GetName]"
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
visible = "[TaxRateSetting.GetEstate.CanCollectTaxes]"
|
|
align = right|nobaseline
|
|
raw_text = "[TaxRateSetting.GetIncome|2+=]@income!"
|
|
|
|
}
|
|
icon = {
|
|
size = { 20 20 }
|
|
using = warning_icon_texture
|
|
visible = "[Not(TaxRateSetting.GetEstate.CanCollectTaxes)]"
|
|
}
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = EstateIncomeBreakdownTooltip
|
|
}
|
|
}
|
|
|
|
blockoverride "bottom_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
economy_slider = {
|
|
# parentanchor = left|vcenter
|
|
# layoutpolicy_horizontal = expanding
|
|
size = { 110 10 }
|
|
#set value first or setting the min/max/mincap/maxcap changes the existing value from 0 to something inside the min/max/mincap/maxcap values
|
|
value = "[TaxRateSetting.GetDefault]"
|
|
min = 0
|
|
max = 1
|
|
mincap = "[TaxRateSetting.GetMin]"
|
|
maxcap = "[TaxRateSetting.GetMax]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[GetEstateIcon(TaxRateSetting.GetEstate.GetType)]"
|
|
texture_density = 2
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
datacontext = "[TaxRateSetting.GetEstate.GetCountry]"
|
|
tooltipwidget = {
|
|
using = Estate_tooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "title_text" {
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
text = "ESTATE_TAX_MIN_MAX_T"
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [tax|E]
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
TooltipTextBlock = {
|
|
blockoverride "text" {
|
|
text = "ESTATE_CURRENT_TAX_TT"
|
|
}
|
|
}
|
|
|
|
TooltipStringPairList = {
|
|
textcontext = "[TaxRateSetting.GetTaxSettingsTooltip]"
|
|
}
|
|
|
|
TooltipTextBlock = {
|
|
visible = "[TaxRateSetting.IsUsingAutoTaxRate]"
|
|
blockoverride "text" {
|
|
text = "ESTATE_CURRENT_TAX_AUTOMATED_TT"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
onvaluechanged = "[TaxRateSetting.OnTaxChanged]"
|
|
onchangefinish = "[TaxRateSetting.Post]"
|
|
|
|
enabled = "[And(TaxRateSetting.IsTaxRateSliderEnabled, Or(TaxRateSetting.IsTaxRateSettingIncEnabled, TaxRateSetting.IsTaxRateSettingDecEnabled))]"
|
|
alpha = "[TransparentIfFalse(Not(IsPlayerAIEnabled('finances')))]"
|
|
blockoverride "economy_slider_inc_button_config"{
|
|
enabled = "[TaxRateSetting.IsTaxRateSettingIncEnabled]"
|
|
}
|
|
blockoverride "economy_slider_dec_button_config"{
|
|
enabled = "[TaxRateSetting.IsTaxRateSettingDecEnabled]"
|
|
}
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[TaxRateSetting.IsUsingAutoTaxRate]"
|
|
onclick = "[TaxRateSetting.ToggleAutoTaxRate]"
|
|
|
|
widget = {
|
|
size = { 100% 100% }
|
|
name = "tax_automation"
|
|
visible = "[Not(TaxRateSetting.IsUsingAutoTaxRate)]"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
LeftClickButtonTooltip = {
|
|
blockoverride "onclick_text" {
|
|
text = "[SelectLocalization( TaxRateSetting.IsUsingAutoTaxRate, 'DEACTIVATE_AUTO_TAX_RATE', 'ACTIVATE_AUTO_TAX_RATE' )]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
|
|
tooltipwidget = {
|
|
using = estate_satisfaction_tooltip
|
|
}
|
|
|
|
hbox = {
|
|
visible = "[TaxRateSetting.HasImpact]"
|
|
using = layoutpolicy_expanding
|
|
text_single = {
|
|
visible = "[Not(GreaterThanOrEqualTo_CFixedPoint(Estate.GetSatisfaction,'(CFixedPoint)0.5'))]"
|
|
autoresize = no
|
|
align = right|nobaseline
|
|
size = { 25 20 }
|
|
using = Font_Size_Very_Small
|
|
# visible = "[TaxRateSetting.HasImpact]"
|
|
raw_text = "[Estate.GetSatisfaction|R0%]"
|
|
}
|
|
|
|
text_single = {
|
|
visible = "[GreaterThanOrEqualTo_CFixedPoint(Estate.GetSatisfaction,'(CFixedPoint)0.5')]"
|
|
autoresize = no
|
|
align = right|nobaseline
|
|
size = { 25 20 }
|
|
using = Font_Size_Very_Small
|
|
# visible = "[TaxRateSetting.HasImpact]"
|
|
raw_text = "[Estate.GetSatisfaction|G0%]"
|
|
}
|
|
icon = {
|
|
name = "sad face"
|
|
visible = "[LessThanOrEqualTo_CFixedPoint(Estate.GetSatisfaction,'(CFixedPoint)0.25')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/sad.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
icon = {
|
|
name = "neutral face"
|
|
visible = "[BetweenInclusiveOfMax_CFixedPoint(Estate.GetSatisfaction,'(CFixedPoint)0.25', '(CFixedPoint)0.5')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/neutral.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
icon = {
|
|
name = "happy face"
|
|
visible = "[GreaterThan_CFixedPoint(Estate.GetSatisfaction,'(CFixedPoint)0.5')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/happy.dds"
|
|
texture_density = 2
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
size = {14 14}
|
|
icon = {
|
|
parentanchor = center
|
|
position = { -1 0 }
|
|
allow_outside = yes
|
|
size = {20 20}
|
|
texture = "gfx/interface/buttons/flats/button_simple.dds"
|
|
|
|
modify_texture = {
|
|
using = color_bone_texture
|
|
blend_mode = normal
|
|
}
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
size = { 55 24 }
|
|
hbox = {
|
|
visible = "[And(Not(TaxRateSetting.IsTaxRateSliderEnabled), Or(Not(TaxRateSetting.IsTaxRateSettingIncEnabled), Not(TaxRateSetting.IsTaxRateSettingDecEnabled)))]"
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
datacontext = "[TaxRateSetting.GetEstate.GetCountry]"
|
|
using = bg_number_container_bckg
|
|
blockoverride "number_container_extra" {
|
|
alpha = 0.4
|
|
margin = {1 -3}
|
|
}
|
|
|
|
button_square_minus = {
|
|
size = { 15 15 }
|
|
enabled = "[TaxRateSetting.IsSatisfactionTargetDecEnabled]"
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = default
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_MINUS_1"
|
|
on_action = "[GetScriptedGui('subtract_one_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = alt
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_MINUS_10"
|
|
on_action = "[GetScriptedGui('subtract_ten_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = shift
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_SET_ZERO"
|
|
on_action = "[GetScriptedGui('set_to_zero_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = ctrl
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_MINUS_5"
|
|
on_action = "[GetScriptedGui('subtract_five_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
size = {25 20}
|
|
autoresize = no
|
|
using = Font_Size_Very_Small
|
|
raw_text = "[GuiScope.AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).AddScope('country', TaxRateSetting.GetEstate.GetCountry.MakeScope).ScriptValue('current_target_satisfaction')|%0]"
|
|
align = center
|
|
tooltipwidget = {
|
|
SimpleContextualTooltipType = {
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/happy.dds"
|
|
}
|
|
}
|
|
blockoverride "title_text" {
|
|
text = "AUTOMATION_TARGET_SATISFACTION_TITLE"
|
|
}
|
|
lowpriotextcontext = "AUTOMATION_TARGET_SATISFACTION_TT"
|
|
}
|
|
}
|
|
}
|
|
|
|
button_square_plus = {
|
|
size = { 15 15 }
|
|
enabled = "[TaxRateSetting.IsSatisfactionTargetIncEnabled]"
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = default
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_PLUS_1"
|
|
on_action = "[GetScriptedGui('add_one_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = alt
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_PLUS_10"
|
|
on_action = "[GetScriptedGui('add_ten_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = shift
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_SET_HUNDRED"
|
|
on_action = "[GetScriptedGui('set_to_one_hundred_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
action_tooltip = {
|
|
click_type = left
|
|
click_mode = single
|
|
click_modifier = ctrl
|
|
enabled = yes
|
|
title = "SATISFACTION_TARGET_PLUS_5"
|
|
on_action = "[GetScriptedGui('add_five_percent').Execute(GuiScope.SetRoot(TaxRateSetting.GetEstate.GetCountry.MakeScope).AddScope('estate_type', TaxRateSetting.GetEstate.GetType.MakeScope).End)]"
|
|
}
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
visible = "[Or(TaxRateSetting.IsTaxRateSliderEnabled, And(TaxRateSetting.IsTaxRateSettingIncEnabled, TaxRateSetting.IsTaxRateSettingDecEnabled))]"
|
|
spacing = 1
|
|
text_single = {
|
|
autoresize = no
|
|
align = right|nobaseline
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 20 }
|
|
using = Font_Size_Very_Small
|
|
visible = "[TaxRateSetting.HasImpact]"
|
|
raw_text = "[TaxRateSetting.GetImpact]"
|
|
|
|
datacontext = "[TaxRateSetting.GetEstate]"
|
|
}
|
|
|
|
icon = {
|
|
name = "sad face"
|
|
visible = "[LessThanOrEqualTo_CFixedPoint(TaxRateSetting.GetImpactValue,'(CFixedPoint)0.25')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/sad.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
icon = {
|
|
name = "neutral face"
|
|
visible = "[BetweenInclusiveOfMax_CFixedPoint(TaxRateSetting.GetImpactValue,'(CFixedPoint)0.25', '(CFixedPoint)0.5')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/neutral.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
icon = {
|
|
name = "happy face"
|
|
visible = "[GreaterThan_CFixedPoint(TaxRateSetting.GetImpactValue,'(CFixedPoint)0.5')]"
|
|
|
|
size = { 14 14 }
|
|
texture = "gfx/interface/icons/flat_icons/happy.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = estate_satisfaction_tooltip
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#shown when there are no taxes
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Not(EconomyView.HasTaxes)]"
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/efficiency.dds"
|
|
|
|
modify_texture = {
|
|
using = color_white_texture
|
|
alpha = 0.1
|
|
blend_mode = overlay
|
|
}
|
|
|
|
modify_texture = {
|
|
using = color_light_blue_texture
|
|
alpha = 1
|
|
blend_mode = overlay
|
|
}
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "[EconomyView.GetNoTaxInfo]"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = " "
|
|
}
|
|
}
|
|
|
|
#interest
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('interest'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "INTEREST_INC_HEADER"
|
|
}
|
|
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/interest.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [interest|E]
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('interest')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/interest.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "INTEREST_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('interest')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#trade
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('trade'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
game_concept = "[trade_income|e]"
|
|
}
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_trade_income"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [trade_income|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('trade')]"
|
|
}
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
blockoverride "block_title" {
|
|
text = "TRADE_CONNECTIONS_TITLE"
|
|
}
|
|
lowpriotextcontext = "[Player.GetTradeConnectionsTooltip]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "TRADE_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('trade')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#tariff income
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('tariff'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipmeta = {
|
|
texture = "[GetConceptTexture('tariffs')]"
|
|
game_concept = "[tariffs|e]"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_tariffs"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[GetConceptTexture('tariffs')]"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [tariffs|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('tariff')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "[GetConceptTexture('tariffs')]"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "TARIFF_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('tariff')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#food
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('food'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/food.dds"
|
|
game_concept = "[food|e]"
|
|
}
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_food"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/food.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [food|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 300 }}
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('food')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/food.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "FOOD_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('food')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#diplomacy
|
|
budget_card = {
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/diplomacy.dds"
|
|
game_concept = "[diplomatic_income_s|E]"
|
|
}
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('diplomacy'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "DIPLOMACY_INCOME_H"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/diplomacy.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [diplomatic_income_s|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('diplomacy')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/diplomacy.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "DIPLOMACY_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('diplomacy')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#io payments
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('io_payments'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "IO_PAYMENTS_ECONOMY"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/international_organizations/payments.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [payments|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('io_payments')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/international_organizations/payments.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "IO_PAYMENTS_ECONOMY_ITEM_NAME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('io_payments')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#mercenaries
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('mercenary'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_mercenary_income"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
size = { 48 48 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [mercenary|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('mercenary')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "MERCENARY_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('mercenary')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
|
|
#mercenaries
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('privateer'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "PRIVATEER_INCOME"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
size = { 48 48 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [privateer|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('privateer')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/geopolitics/privateer.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "[privateer|E]"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('privateer')|2+=]@income!"
|
|
}
|
|
}
|
|
#foreign income
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('foreign'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "FOREIGN_GOLD_BUILDINGS_T"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/buildings_abroad.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [foreign_buildings|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('foreign')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/buildings_abroad.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "FOREIGN_GOLD_BUILDINGS"
|
|
}
|
|
|
|
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('foreign')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
#other income
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetIncome('other'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "OTHER_INCOME"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/other_incomes.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetIncomeInfo('other')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/other_incomes.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "OTHER_INCOME"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetIncome('other')|2+=]@income!"
|
|
}
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
|
|
#expenses
|
|
vbox = {
|
|
name = expenses
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
|
|
#anything that uses maintenance settings
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 5
|
|
|
|
datamodel = "[EconomyView.GetMaintenanceSettings]"
|
|
item = {
|
|
adjustable_budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 55 }
|
|
blockoverride "header_color" {
|
|
using = color_economy_texture
|
|
}
|
|
|
|
visible = "[And3( MaintenanceSetting.ShowSlider, Or(MaintenanceSetting.IsVisible, EconomyView.UnusedMaintenanceSettingsVisible), Or4(MaintenanceSetting.IsArmy, MaintenanceSetting.IsNavy, MaintenanceSetting.IsFort, MaintenanceSetting.IsCourt))]"
|
|
enabled = "[MaintenanceSetting.IsEnabled]"
|
|
|
|
blockoverride "top_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
icon = {
|
|
size = { 24 24 }
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
texture_density = 2
|
|
}
|
|
|
|
text_single = {
|
|
default_format = "#explanation_link"
|
|
using = layoutpolicy_expanding
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
align = right|nobaseline
|
|
raw_text = "[MaintenanceSetting.GetExpenseWithCurrency]"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = ExpenseSettingTooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "bottom_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
}
|
|
}
|
|
|
|
blockoverride "title_text" {
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[maintenance|E]"
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
TooltipTextBlock = {
|
|
blockoverride "text" {
|
|
text = "EXPENSE_MAINT_TT_TEXT_LONG_ALT"
|
|
}
|
|
}
|
|
|
|
TooltipStringPairList = {
|
|
textcontext = "MAINTENANCE_INVESTMENT_MIN_MAX"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
economy_slider = {
|
|
# parentanchor = left|vcenter
|
|
size = { 110 10 }
|
|
min = 0
|
|
max = 1
|
|
#set value first or setting the min/max/mincap/maxcap changes the existing value from 0 to something inside the min/max/mincap/maxcap values
|
|
value = "[MaintenanceSetting.GetDefault]"
|
|
mincap = "[Select_float(MaintenanceSetting.IsCourt, '(float)0.1', '(float)0.25')]"
|
|
maxcap = "[MaintenanceSetting.GetMax]"
|
|
|
|
onvaluechanged = "[MaintenanceSetting.OnChanged]"
|
|
onchangefinish = "[MaintenanceSetting.Post]"
|
|
enabled = "[And(MaintenanceSetting.IsEnabled,Not(IsPlayerAIEnabled('finances')))]"
|
|
alpha = "[TransparentIfFalse(Not(IsPlayerAIEnabled('finances')))]"
|
|
blockoverride "economy_slider_inc_button_config"{
|
|
enabled = "[MaintenanceSetting.IsIncEnabled]"
|
|
}
|
|
blockoverride "economy_slider_dec_button_config"{
|
|
enabled = "[MaintenanceSetting.IsDecEnabled]"
|
|
}
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsArmy]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('army')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('army'), 'TOGGLE_AUTO_ARMY_MAINTENANCE_TOOLTIP_ON_TT', 'TOGGLE_AUTO_ARMY_MAINTENANCE_TOOLTIP_OFF_TT' )]"
|
|
on_action = "[ToggleAutoMaintenance('army')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsNavy]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('navy')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('navy'), 'TOGGLE_AUTO_NAVY_MAINTENANCE_TOOLTIP_ON_TT', 'TOGGLE_AUTO_NAVY_MAINTENANCE_TOOLTIP_OFF_TT' )]"
|
|
on_action = "[ToggleAutoMaintenance('navy')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsFort]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('fort')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('fort'), 'TOGGLE_AUTO_FORT_MAINTENANCE_TOOLTIP_IS_ON', 'TOGGLE_AUTO_FORT_MAINTENANCE_TOOLTIP_IS_OFF' )]"
|
|
on_action = "[ToggleAutoMaintenance('fort')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
|
|
hbox = {
|
|
# visible = "[GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)0')]"
|
|
visible = "[Not(StringIsEmpty(MaintenanceSetting.GetExpenseBenefit))]"
|
|
spacing = 2
|
|
text_single = {
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
size = { 60 20 }
|
|
fontsize = 14
|
|
text = "[MaintenanceSetting.GetExpenseBenefit]"
|
|
visible = "[Not(GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)1'))]"
|
|
}
|
|
|
|
extra_list = {
|
|
visible = "[GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)1')]"
|
|
blockoverride "extra_list_size" {
|
|
size = { 40 20 }
|
|
}
|
|
blockoverride "extra_list_text_size" {
|
|
size = { 15 20 }
|
|
}
|
|
blockoverride "extra_list_text_content" {
|
|
raw_text = "[MaintenanceSetting.GetExpenseBenefitAmount]"
|
|
align = center|nobaseline
|
|
}
|
|
blockoverride "extra_list_icon" {
|
|
texture = "gfx/interface/icons/modifiers/_default.dds"
|
|
texture_density = 2
|
|
}
|
|
}
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[MaintenanceSetting.GetName]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipStringPairList = {
|
|
textcontext = "[MaintenanceSetting.GetExpenseBenefitTooltip]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#stability investment
|
|
adjustable_budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 55 }
|
|
blockoverride "header_color" {
|
|
using = color_economy_texture
|
|
}
|
|
|
|
visible = "[EconomyView.CanDoStabilityInvestment]"
|
|
|
|
blockoverride "top_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
icon = {
|
|
size = { 24 24 }
|
|
texture = "gfx/interface/icons/flat_icons/balance/cost_of_stability.dds"
|
|
texture_density = 2
|
|
}
|
|
|
|
text_single = {
|
|
using = layoutpolicy_expanding
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
text = "EXPENSE_STABILITY"
|
|
default_format = "#explanation_link"
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
align = right|nobaseline
|
|
raw_text = "[EconomyView.GetStabilityInvestmentExpense|2+=]@expense!"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = StabilityExpenseSettingParentTooltip
|
|
blockoverride "content_datacontext" {
|
|
datacontext = "[Player.GetEconomy]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "bottom_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
widget = {
|
|
using = layoutpolicy_expanding
|
|
economy_slider = {
|
|
parentanchor = left|vcenter
|
|
size = { 110 10 }
|
|
min = 0
|
|
max = 1
|
|
value = "[EconomyView.GetDefaultStabilityInvestment]"
|
|
mincap = 0.1
|
|
onvaluechanged = "[EconomyView.OnChangedStabilityInvestment]"
|
|
onchangefinish = "[EconomyView.PostStability]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
blockoverride "economy_slider_dec_button_config"{
|
|
enabled = "[EconomyView.IsStabilityDecEnabled]"
|
|
}
|
|
blockoverride "economy_slider_inc_button_config"{
|
|
enabled = "[EconomyView.IsStabilityIncEnabled]"
|
|
}
|
|
}
|
|
tooltipwidget = {
|
|
using = StabilityExpenseSettingParentTooltip
|
|
blockoverride "content_datacontext" {
|
|
datacontext = "[Player.GetEconomy]"
|
|
}
|
|
}
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
size = { 60 20 }
|
|
raw_text = "[EconomyView.GetStabilityChange|2+=]@stability!"
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "MODIFIER_TYPE_NAME_stability_investment"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
using = icon_stability
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [stability|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipStringPairList = {
|
|
textcontext = "[EconomyView.GetStabilityInvestmentTooltip]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#remaining maintenance settings (cultural, diplomatic, food, colonial, exploration, building maintenance, IO, bureaucracies)
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 5
|
|
|
|
datamodel = "[EconomyView.GetMaintenanceSettings]"
|
|
item = {
|
|
adjustable_budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 55 }
|
|
blockoverride "header_color" {
|
|
using = color_economy_texture
|
|
}
|
|
|
|
visible = "[And3( MaintenanceSetting.ShowSlider, Or(MaintenanceSetting.IsVisible, EconomyView.UnusedMaintenanceSettingsVisible), Not(Or4(MaintenanceSetting.IsArmy, MaintenanceSetting.IsNavy, MaintenanceSetting.IsFort, MaintenanceSetting.IsCourt)))]"
|
|
enabled = "[MaintenanceSetting.IsEnabled]"
|
|
|
|
blockoverride "top_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
spacing = 5
|
|
|
|
icon = {
|
|
size = { 24 24 }
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
texture_density = 2
|
|
}
|
|
|
|
text_single = {
|
|
default_format = "#explanation_link"
|
|
using = layoutpolicy_expanding
|
|
autoresize = no
|
|
align = left|nobaseline
|
|
text = "[MaintenanceSetting.GetNameColored]"
|
|
}
|
|
|
|
text_single = {
|
|
autoresize = yes
|
|
align = right|nobaseline
|
|
raw_text = "[MaintenanceSetting.GetExpense|2+=]@expense!"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
using = ExpenseSettingTooltip
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "bottom_widget" {
|
|
hbox = {
|
|
margin = { 5 0 }
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
}
|
|
}
|
|
|
|
blockoverride "title_text" {
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[maintenance|E]"
|
|
}
|
|
|
|
blockoverride "tooltip_content" {
|
|
TooltipTextBlock = {
|
|
blockoverride "text" {
|
|
text = "EXPENSE_MAINT_TT_TEXT_LONG_ALT"
|
|
}
|
|
}
|
|
|
|
TooltipStringPairList = {
|
|
textcontext = "MAINTENANCE_INVESTMENT_MIN_MAX"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
hbox = {
|
|
using = layoutpolicy_expanding
|
|
spacing = 5
|
|
economy_slider = {
|
|
# parentanchor = left|vcenter
|
|
size = { 110 10 }
|
|
min = 0
|
|
max = 1
|
|
#set value first or setting the min/max/mincap/maxcap changes the existing value from 0 to something inside the min/max/mincap/maxcap values
|
|
value = "[MaintenanceSetting.GetDefault]"
|
|
mincap = 0.1
|
|
maxcap = "[MaintenanceSetting.GetMax]"
|
|
|
|
onvaluechanged = "[MaintenanceSetting.OnChanged]"
|
|
onchangefinish = "[MaintenanceSetting.Post]"
|
|
enabled = "[And(MaintenanceSetting.IsEnabled,Not(IsPlayerAIEnabled('finances')))]"
|
|
alpha = "[TransparentIfFalse(Not(IsPlayerAIEnabled('finances')))]"
|
|
blockoverride "economy_slider_inc_button_config"{
|
|
enabled = "[MaintenanceSetting.IsIncEnabled]"
|
|
}
|
|
blockoverride "economy_slider_dec_button_config"{
|
|
enabled = "[MaintenanceSetting.IsDecEnabled]"
|
|
}
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsArmy]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('army')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('army'), 'TOGGLE_AUTO_ARMY_MAINTENANCE_TOOLTIP_ON_TT', 'TOGGLE_AUTO_ARMY_MAINTENANCE_TOOLTIP_OFF_TT' )]"
|
|
on_action = "[ToggleAutoMaintenance('army')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsNavy]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('navy')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('navy'), 'TOGGLE_AUTO_NAVY_MAINTENANCE_TOOLTIP_ON_TT', 'TOGGLE_AUTO_NAVY_MAINTENANCE_TOOLTIP_OFF_TT' )]"
|
|
on_action = "[ToggleAutoMaintenance('navy')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
button_checkbox_auto = {
|
|
size = { 20 20 }
|
|
visible = "[MaintenanceSetting.IsFort]"
|
|
enabled = "[Not(IsPlayerAIEnabled('finances'))]"
|
|
down = "[Player.AutoRaiseMaintenanceAtWar('fort')]"
|
|
action_tooltip = {
|
|
title = "[SelectLocalization( Player.AutoRaiseMaintenanceAtWar('fort'), 'TOGGLE_AUTO_FORT_MAINTENANCE_TOOLTIP_IS_ON', 'TOGGLE_AUTO_FORT_MAINTENANCE_TOOLTIP_IS_OFF' )]"
|
|
on_action = "[ToggleAutoMaintenance('fort')]"
|
|
}
|
|
tooltipwidget = { BasicFunctionalTooltip = {} }
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
|
|
hbox = {
|
|
# visible = "[GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)0')]"
|
|
visible = "[Not(StringIsEmpty(MaintenanceSetting.GetExpenseBenefit))]"
|
|
spacing = 2
|
|
text_single = {
|
|
autoresize = no
|
|
align = center|nobaseline
|
|
size = { 60 20 }
|
|
fontsize = 14
|
|
text = "[MaintenanceSetting.GetExpenseBenefit]"
|
|
visible = "[Not(GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)1'))]"
|
|
}
|
|
|
|
extra_list = {
|
|
visible = "[GreaterThan_CFixedPoint(MaintenanceSetting.GetExpenseBenefitAmount, '(CFixedPoint)1')]"
|
|
blockoverride "extra_list_size" {
|
|
size = { 40 20 }
|
|
}
|
|
blockoverride "extra_list_text_size" {
|
|
size = { 15 20 }
|
|
}
|
|
blockoverride "extra_list_text_content" {
|
|
raw_text = "[MaintenanceSetting.GetExpenseBenefitAmount]"
|
|
align = center|nobaseline
|
|
}
|
|
blockoverride "extra_list_icon" {
|
|
texture = "gfx/interface/icons/modifiers/_default.dds"
|
|
texture_density = 2
|
|
}
|
|
}
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[MaintenanceSetting.GetName]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipStringPairList = {
|
|
textcontext = "[MaintenanceSetting.GetExpenseBenefitTooltip]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#unused maintenence settings
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 5
|
|
|
|
datamodel = "[EconomyView.GetMaintenanceSettings]"
|
|
item = {
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
|
|
|
|
|
|
visible = "[And( Not(MaintenanceSetting.ShowSlider), Or(MaintenanceSetting.IsVisible, EconomyView.UnusedMaintenanceSettingsVisible))]"
|
|
enabled = "[MaintenanceSetting.IsEnabled]"
|
|
|
|
tooltipwidget = {
|
|
using = ExpenseSettingTooltip
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "[MaintenanceSetting.GetIcon]"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "[MaintenanceSetting.GetNameWithNoTooltip]"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[MaintenanceSetting.GetExpenseWithCurrency]"
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#interest
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('interest'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "INTEREST_COST_HEADER"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/interest.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [interest|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('interest')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/interest.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "INTEREST_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('interest')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#trade
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('trade'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
game_concept = "[trade_expense|e]"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_trade_expense"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "concept_link" {
|
|
text = [trade_expense|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('trade')]"
|
|
}
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
blockoverride "block_title" {
|
|
text = "TRADE_CONNECTIONS_TITLE"
|
|
}
|
|
lowpriotextcontext = "[Player.GetTradeConnectionsTooltip]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/trade.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "TRADE_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('trade')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#tariff expense (subsidy cost)
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('tariff'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipmeta = {
|
|
texture = "[GetConceptTexture('subvention')]"
|
|
game_concept = "[subvention|e]"
|
|
}
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "game_concept_subvention"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "[GetConceptTexture('subvention')]"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [subvention|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipStringPairList = {
|
|
textcontext = "[EconomyView.GetExpenseInfo('tariff')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "[GetConceptTexture('subvention')]"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "TARIFF_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('tariff')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#diplomacy
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('diplomacy'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "DIPLOMATIC_EXPENSES_H"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/diplomacy.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = [diplomatic_expense_s|E]
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('diplomacy')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/diplomacy.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "DIPLOMACY_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('diplomacy')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#mercenaries
|
|
budget_card = {
|
|
tooltipmeta = {
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
game_concept = "[mercenary_expense|e]"
|
|
}
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('mercenary'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "MERCENARY_EXPENSES_H"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[mercenary_expense|e]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('mercenary')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/mercenary.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "MERCENARY_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('mercenary')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#subsidising buildings
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('subsidize'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "SUBSIDIZE_EXPENSES_H"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/building_subsidize.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[subsidy_expense|e]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('subsidize')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/building_subsidize.dds"
|
|
}
|
|
|
|
|
|
blockoverride "label" {
|
|
text = "SUBSIDIZE_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('subsidize')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#privateers
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('privateer'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "PRIVATEER_EXPENSES_H"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/geopolitics/privateer.dds"
|
|
}
|
|
}
|
|
|
|
blockoverride "concept_link" {
|
|
text = "[privateer_maintenance|e]"
|
|
}
|
|
blockoverride "tooltip_content" {
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('privateer')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/geopolitics/privateer.dds"
|
|
}
|
|
|
|
|
|
blockoverride "label" {
|
|
text = "PRIVATEER_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('privateer')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
#other expenses
|
|
budget_card = {
|
|
layoutpolicy_horizontal = expanding
|
|
size = { -1 30 }
|
|
visible = "[Or(Not(EqualTo_CFixedPoint(EconomyView.GetExpense('other'), '(CFixedPoint)0')), EconomyView.UnusedMaintenanceSettingsVisible)]"
|
|
|
|
|
|
tooltipwidget = {
|
|
ContextualTooltipType = {
|
|
blockoverride "title_text" {
|
|
text = "OTHER_EXPENSE"
|
|
}
|
|
blockoverride "title_icon" {
|
|
icon = {
|
|
using = tooltip_title_icon_size
|
|
texture = "gfx/interface/icons/flat_icons/balance/other_expenses.dds"
|
|
}
|
|
}
|
|
|
|
|
|
blockoverride "tooltip_content" {
|
|
|
|
TooltipScrolledStringPairList = {
|
|
blockoverride "block_scrollarea" { maximumsize = { -1 400 } }
|
|
lowpriotextcontext = "[EconomyView.GetExpenseInfo('other')]"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
blockoverride "icon_texture" {
|
|
texture = "gfx/interface/icons/flat_icons/balance/other_expenses.dds"
|
|
}
|
|
|
|
blockoverride "label" {
|
|
text = "OTHER_EXPENSE"
|
|
}
|
|
|
|
blockoverride "income_text" {
|
|
raw_text = "[EconomyView.GetExpense('other')|2+=]@expense!"
|
|
}
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
expand = {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|