From f866dd83d02ded0d50cc2228fe5a95ed38d5fa20 Mon Sep 17 00:00:00 2001 From: Fishedotjpg Date: Thu, 19 Nov 2026 03:48:13 +0000 Subject: [PATCH] GUI --- .../hud_maintab/maintab_ritsuryo_japan.dds | 0 .../hud_maintab/maintab_soryo_japan.dds | 0 gui/hud.gui | 810 +++-- gui/shared/cooltip.gui | 1068 +++++- gui/texticons.gui | 842 ++++- gui/window_faith.gui | 45 +- gui/window_intrigue.gui | 102 +- gui/window_my_realm.gui | 3008 +++++++++++++---- 8 files changed, 4726 insertions(+), 1149 deletions(-) rename gfx/interface/{skinned => icons}/hud_maintab/maintab_ritsuryo_japan.dds (100%) rename gfx/interface/{skinned => icons}/hud_maintab/maintab_soryo_japan.dds (100%) diff --git a/gfx/interface/skinned/hud_maintab/maintab_ritsuryo_japan.dds b/gfx/interface/icons/hud_maintab/maintab_ritsuryo_japan.dds similarity index 100% rename from gfx/interface/skinned/hud_maintab/maintab_ritsuryo_japan.dds rename to gfx/interface/icons/hud_maintab/maintab_ritsuryo_japan.dds diff --git a/gfx/interface/skinned/hud_maintab/maintab_soryo_japan.dds b/gfx/interface/icons/hud_maintab/maintab_soryo_japan.dds similarity index 100% rename from gfx/interface/skinned/hud_maintab/maintab_soryo_japan.dds rename to gfx/interface/icons/hud_maintab/maintab_soryo_japan.dds diff --git a/gui/hud.gui b/gui/hud.gui index 39cb00ddd..271f814b4 100644 --- a/gui/hud.gui +++ b/gui/hud.gui @@ -1,4 +1,4 @@ -###################################################### +###################################################### ###################### BOTTOM ######################## ###################################################### @@ -277,10 +277,11 @@ widget = { } ### Outliner Button - container = { + flowcontainer = { visible = "[And(Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_outliner').GetValue, '(CFixedPoint)0' ) ), And( Not( IsGameViewOpen('barbershop') ), And( Not( IsPauseMenuShown ), And(Not(IsRightWindowOpen), IsDefaultGUIMode))))]" parentanchor = top|right position = { -5 55 } + direction = vertical using = Animation_ShowHide_Quick @@ -290,6 +291,7 @@ widget = { alpha = 0.7 onclick = "[ToggleGameView('outliner')]" + onclick = "[CloseGameView('build_queue')]" tooltip = "TOGGLE_OUTLINER" shortcut = outliner @@ -307,12 +309,65 @@ widget = { using = Animation_Curve_Default } + state = { + name = "build_queue_close_outliner" + trigger_when = "[And( IsGameViewOpen('build_queue'), IsGameViewOpen('outliner') )]" + on_start = "[GetVariableSystem.Set( 'build_queue_reopen_outliner', 'true' )]" + on_start = "[CloseGameView('outliner')]" + } + + state = { + name = "build_queue_reopen_outliner" + trigger_when = "[And( Not(IsGameViewOpen('build_queue')), GetVariableSystem.Exists( 'build_queue_reopen_outliner' ) )]" + on_start = "[OpenGameView('outliner')]" + on_start = "[GetVariableSystem.Clear( 'build_queue_reopen_outliner' )]" + } + button_outliner = { parentanchor = center alwaystransparent = yes size = { 25 25 } } } + + button_round = { + name = "build_queue_button_tutorial_uses_this" + widgetid = "build_queue_button_tutorial_uses_this" + visible = "[GetPlayer.UsesBuildQueue]" + size = { 35 35 } + + alpha = 0.7 + + tooltip = "OPEN_BUILD_QUEUE" + using = tooltip_ws + onclick = "[ToggleGameView('build_queue')]" + shortcut = "build_queue" + + button_icon = { + name = "build_queue_window" + parentanchor = center + position = { -1 -1 } + size = { 20 20 } + alwaystransparent = yes + texture = "gfx/interface/icons/flat_icons/hammer.dds" + } + + text_single = { + position = { 0 3 } + parentanchor = bottom|hcenter + visible = "[GreaterThan_int32( GetPlayer.GetBuildQueueLength, '(int32)0' )]" + alwaystransparent = yes + + background = { + margin = { 5 0 } + margin_top = -5 + using = Background_Area_Dark + } + + text = "[GetPlayer.GetBuildQueueLength|V]" + default_format = "#glow_color:{0.1,0.1,0.1,1.0}" + } + } } ### Main Tabs @@ -320,7 +375,7 @@ widget = { name = "main_tabs" visible = "[And(And(And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)), Not(IsGameViewOpen('struggle'))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_main_tabs').GetValue, '(CFixedPoint)0' ) ))]" parentanchor = top|right - position = { 0 90 } + position = { 0 120 } size = { 50 0 } allow_outside = yes @@ -378,13 +433,35 @@ widget = { vbox = { name = "tab_government_administration" #tutorial uses this + # TODO_GDP [TIT-68231]: Clean this up a bit + # These widgets all open the same tab but use the visible conditional to change the icon. Can we not make that change dynamically? + # Take into consideration that japan_feudal wants the widget to display but is not actually administrative and republic gov uses noble families but is not admin + # UsesStandardAdminView reduces the clutter of nested And/Or statements for now but is hard coded for this specific purpose and not ideal + widget_hud_main_tab = { - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[And(Or(Character.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.HasRule( 'noble_families' )),Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ),GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))]" + name = "republic_hud_button_tutorial_uses_this" + datacontext = "[GetPlayer]" + visible = "[Character.GetGovernment.IsType( 'republic_government' )]" blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_administrative.dds" + # TODO_GDP_ART Skinned icon for republics + texture = "gfx/interface/icons/hud_maintab/maintab_republic.dds" + + onclick = "[ToggleGameView( 'government_republic' )]" + down = "[IsGameViewOpen( 'government_republic' )]" + shortcut = government_hud + + tooltip = "REPUBLIC_BUTTON" + } + } + + widget_hud_main_tab = { + datacontext = "[GetPlayer.GetTopLiege]" + visible = "[Character.GetGovernment.UsesStandardAdminView]" + blockoverride "maintab_button" + { + texture = "gfx/interface/icons/hud_maintab/maintab_administrative.dds" shortcut = government_hud onclick = "[ToggleGameView( 'government_administration' )]" @@ -400,9 +477,10 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_soryo_japan.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_soryo_japan.dds" shortcut = government_hud + onclick = "[ToggleGameView( 'government_administration' )]" down = "[IsGameViewOpen( 'government_administration' )]" @@ -416,7 +494,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_ritsuryo_japan.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_ritsuryo_japan.dds" shortcut = government_hud onclick = "[ToggleGameView( 'government_administration' )]" @@ -432,7 +510,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_administrative_china.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_administrative_china.dds" shortcut = government_hud onclick = "[ToggleGameView( 'government_administration' )]" @@ -449,7 +527,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_college_of_cardinals.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_college_of_cardinals.dds" onclick = "[ToggleGameView( 'cardinals_window' )]" down = "[IsGameViewOpen('cardinals_window')]" @@ -480,7 +558,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_my_realm.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_my_realm.dds" onclick = "[ToggleGameView('my_realm')]" shortcut = "my_realm_window" tooltip = "MY_REALM_BUTTON" @@ -493,7 +571,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_military.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_military.dds" onclick = "[ToggleGameViewData('military', GetPlayer.GetID)]" shortcut = "military_window" @@ -508,7 +586,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_council.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_council.dds" onclick = "[ToggleGameViewData('council_window', GetPlayer.GetID)]" shortcut = "council_window" @@ -516,6 +594,21 @@ widget = { down = "[IsGameViewOpen('council_window')]" } } + + widget_hud_main_tab = { + name = "tab_trade" # tutorial uses this + visible = "[Or( GetPlayer.GetGovernment.HasRule( 'profit_trade_routes' ), GetPlayer.IsLandedRuler )]" + + blockoverride "maintab_button" + { + texture = "gfx/interface/icons/hud_maintab/maintab_trade.dds" + onclick = "[ToggleGameView('trade_window')]" + shortcut = "trade_window" + tooltip = "TRADE_BUTTON" + down = "[IsGameViewOpen('trade_window')]" + } + } + } widget = { @@ -538,7 +631,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_court.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_court.dds" onclick = "[ToggleGameViewData( 'court_window', GetPlayer.GetID )]" shortcut = "court_window" @@ -552,7 +645,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_intrigue.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_intrigue.dds" onclick = "[ToggleGameViewData('intrigue_window', GetPlayer.GetID)]" shortcut = "intrigue_window" @@ -564,11 +657,11 @@ widget = { widget_hud_main_tab = { name = "tab_factions" #tutorial uses this - visible = "[Or( Or( GetPlayer.IsInAFaction, GetPlayer.IsLandedRuler ), GetPlayer.HasLiege)]" + visible = "[And( Not( IsPatrician( GetPlayer ) ), Or( Or( GetPlayer.IsInAFaction, GetPlayer.IsLandedRuler ), GetPlayer.HasLiege) )]" blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_factions.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_factions.dds" onclick = "[ToggleGameView('factions_window')]" shortcut = "factions_window" @@ -599,7 +692,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_decisions.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_decisions.dds" onclick = "[ToggleGameView('decisions')]" shortcut = "decision_window" @@ -613,10 +706,9 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_activities.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_activities.dds" onclick = "[ToggleGameView('activity_list_window')]" - shortcut = "activity_list_window" tooltip = "ACTIVITY_LIST_BUTTON" down = "[IsGameViewOpen('activity_list_window')]" } @@ -628,7 +720,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_contracts.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_contracts.dds" onclick = "[ToggleGameView('decisions')]" shortcut = "decision_window" @@ -644,7 +736,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_situations.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_situations.dds" # Looping glow when you have a new story using = Animation_Glow_Pulse @@ -717,7 +809,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_courtview.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_courtview.dds" onclick = "[Character.OpenRoyalCourtView( 'throne' )]" shortcut = "royal_court" @@ -794,7 +886,7 @@ widget = { blockoverride "maintab_button" { - texture = "gfx/interface/skinned/hud_maintab/maintab_tax_jurisdictions.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_tax_jurisdictions.dds" onclick = "[ToggleGameViewData('manage_tax_slots', GetPlayer.GetID)]" down = "[IsGameViewOpen('manage_tax_slots')]" @@ -808,7 +900,7 @@ widget = { icon = { size = { 100% 100% } visible = "[GreaterThan_int32( GetPlayer.GetUnassignedVassalsCount, '(int32)0' )]" - texture = "gfx/interface/skinned/hud_maintab/maintab_tax_jurisdictions.dds" + texture = "gfx/interface/icons/hud_maintab/maintab_tax_jurisdictions.dds" glow = { glow_radius = 8 @@ -920,6 +1012,12 @@ widget = { } } + # We put extra mapmodes here so they sit on top of the HUD, including the Byzantine emperor tabs + flowcontainer_additional_mapmodes = { + parentanchor = bottom|right + position = { 21 -148 } + } + widget_stress_sounds = {} widget_fulfillment_sounds = {} } @@ -2143,6 +2241,12 @@ widget = { } } + ### Republic voting session ### + button_voting_session = { + parentanchor = vcenter + visible = "[InGameBottomBar.ShouldShowVotingSessionWidget]" + } + ### Schemes ### flowcontainer = { name = "player_schemes" @@ -2297,9 +2401,9 @@ widget = { framesize = { 128 128 } frame = 2 - min = [GetPlayer.GetLiege.GetDiarchy.GetSwingForPrevLevel] - max = [GetPlayer.GetLiege.GetDiarchy.GetSwingForNextLevel] - value = [GetPlayer.GetLiege.GetDiarchy.GetScalesSwing] + min = "[Select_CFixedPoint( GetPlayer.GetDiarchy.IsValid, GetPlayer.GetDiarchy.GetSwingForPrevLevel, GetPlayer.GetLiege.GetDiarchy.GetSwingForPrevLevel )]" + max = "[Select_CFixedPoint( GetPlayer.GetDiarchy.IsValid, GetPlayer.GetDiarchy.GetSwingForNextLevel, GetPlayer.GetLiege.GetDiarchy.GetSwingForNextLevel )]" + value = "[Select_CFixedPoint( GetPlayer.GetDiarchy.IsValid, GetPlayer.GetDiarchy.GetScalesSwing, GetPlayer.GetLiege.GetDiarchy.GetScalesSwing )]" } ### diarchy level @@ -2388,9 +2492,7 @@ widget = { text_single = { parentanchor = center - datacontext = "[GetPlayer.GetLiege.GetDiarchy]" - - raw_text = "[Diarchy.GetPowerLevel]" + raw_text = "[Select_int32( GetPlayer.GetDiarchy.IsValid, GetPlayer.GetDiarchy.GetPowerLevel, GetPlayer.GetLiege.GetDiarchy.GetPowerLevel )]" default_format = "#high" align = nobaseline } @@ -2567,7 +2669,7 @@ notifications_message_feed = { ### Toasts notifications_toasts = { parentanchor = top|hcenter - layer = middle + layer = toasts } ### Suggestions / Current Situation @@ -3502,7 +3604,7 @@ types HUD widget_new_artifacts = { position = { 6 2 } parentanchor = bottom|right - visible = "[Or( GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'inventory' ), '(int32)0' ), And( Not( GetPlayer.HasRoyalCourt ), GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' ) ) )]" + visible = "[Or( GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'inventory' ), '(int32)0' ), And( Nor( GetPlayer.HasRoyalCourt, Character.GetDomicile.GetType.IsDomicileType( 'merchant_company' ) ), GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' ) ) )]" } } @@ -3574,12 +3676,17 @@ types HUD } button_icon = { - size = { 40 40 } + size = { 38 38 } position = { 0 -1 } parentanchor = center alwaystransparent = yes texture = "[Domicile.GetType.GetIcon]" } + widget_new_court_artifacts = { + visible = "[And( Character.GetDomicile.GetType.IsDomicileType( 'merchant_company' ), GreaterThan_int32( Add_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( 'library' ), Add_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( 'curio' ), LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( 'creature' ) ) ), '(int32)0' ) ) ]" + position = { 6 2 } + parentanchor = bottom|right + } } # Potential Domicile @@ -3604,37 +3711,6 @@ types HUD } } - # Bloc - button_normal = { - name = "confederation_button" #tutorial uses this - datacontext = "[GetPlayer.GetConfederation]" - visible = "[InGameBottomBar.ShouldShowBlocInHUD]" - parentanchor = left - size = { 56 56 } - - onclick = "[OpenGameViewData( 'confederation_window', Confederation.GetID )]" - - using = tooltip_ne - tooltip_offset = { 20 0 } - - tooltipwidget = { - using = confederation_tooltip - } - - icon_round_button_base = { - alwaystransparent = yes - parentanchor = center - size = { 100% 100% } - - button_icon = { - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/confederations.dds" - size = { 60% 60% } - parentanchor = center - } - } - } - button_normal = { name = "house_power_hud_button" #tutorial uses this datacontext = "[Character.GetHouse]" @@ -3663,6 +3739,98 @@ types HUD visible = "[ObjectsEqual( GetHouseAspiration('no_aspect'), HouseAspiration.Self)]" } } + + widget = { + visible = "[GetPlayer.GetActiveLawInGroupWithFlag( 'company_size' ).IsValid]" + datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag('company_size')]" + datacontext = "[Character.GetDomicile]" + size = { 56 56 } + allow_outside = yes + + # copy of button_realm_law_merchant_size + button = { + size = { 100% 100% } + onclick = "[ToggleGameViewData( 'my_realm', 'bookmark_laws' )]" + + tooltipwidget = { + general_law_tooltip = { + blockoverride "call_to_action" { + text_single = { + layoutpolicy_horizontal = expanding + text = "MERCHANT_WIDGET_CALL_TO_ACTION" + margin_bottom = 16 + } + } + } + } + + using = tooltip_es + + allow_outside = yes + + icon_round_button_base = { + parentanchor = center + size = { 100% 100% } + } + + icon = { + name = "progress_frame" + texture = "gfx/interface/progressbars/action_progress_frame.dds" + size = { 100% 100% } + alpha = 0.5 + } + + progresspie = { + parentanchor = center + size = { 48 48 } + texture = "gfx/interface/progressbars/action_progress_thin.dds" + framesize = { 128 128 } + frame = 2 + widgetanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" + min = 0 + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_2_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" + tooltip = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_2" + } + + progresspie = { + parentanchor = center + size = { 48 48 } + texture = "gfx/interface/progressbars/action_progress_thin.dds" + framesize = { 128 128 } + frame = 2 + widgetanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" + min = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_2_THRESHOLD' )]" + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_3_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" + tooltip = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_3" + } + + progresspie = { + parentanchor = center + size = { 48 48 } + texture = "gfx/interface/progressbars/action_progress_thin.dds" + framesize = { 128 128 } + frame = 2 + widgetanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" + min = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_3_THRESHOLD' )]" + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_4_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" + tooltip = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_4" + } + + highlight_icon = { + parentanchor = center + size = { 85% 85% } + texture = "[Law.GetSmallIcon]" + } + + + } + } } spacer = { @@ -3674,10 +3842,10 @@ types HUD datacontext = "[InGameBottomBar.GetDomainFertilityProgressBar]" } + widget_stress_sounds = {} } - type left_edge_tabs = flowcontainer { name = "side_bottom_left_tabs" visible = "[And(And( Not( IsPauseMenuShown ), And(And(IsDefaultGUIMode, Character.IsValid), Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD')))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" @@ -3728,11 +3896,13 @@ types HUD } flowcontainer = { + name = "left_edge_buttons" parentanchor = bottom ignoreinvisible = yes allow_outside = yes direction = vertical + # Culture # Rite widget = { name = "faith_button_container" @@ -3925,7 +4095,7 @@ types HUD button_hud_character_bar = { name = "confederation_button" #tutorial uses this datacontext = "[GetPlayer.GetConfederation]" - visible = "[And(Confederation.IsValid, Not(Confederation.GetType.IsHouseBasedConfederation))]" + visible = "[Confederation.IsValid]" parentanchor = left onclick = "[OpenGameViewData( 'confederation_window', Confederation.GetID )]" @@ -3937,15 +4107,17 @@ types HUD using = confederation_tooltip } + # Confederation Icon + # House based confederations show a coat of arms frame instead, see coa_bloc_tiny below button = { visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" parentanchor = top|hcenter alwaystransparent = yes - position = { 0 -10 } - size = { 42 42 } + position = { 0 -3 } + size = { 36 18 } texture = "gfx/interface/icons/diplomatic_icons.dds" - frame = "5" - framesize = { 120 120 } + frame = "[Confederation.GetType.GetDiplomaticIconFrameIndex]" + framesize = { 120 60 } tooltip_visible = no } @@ -3972,6 +4144,24 @@ types HUD size = { 36 36 } } } + + coa_bloc_tiny = { + visible = "[Confederation.GetType.IsHouseBasedConfederation]" + parentanchor = center + position = { 0 1 } + scale = 0.92 + + blockoverride "coa_button" + { + alwaystransparent = yes + } + + blockoverride "coa_tooltip" + {} + + blockoverride "glow" + {} + } } # Dynasty House @@ -4882,6 +5072,125 @@ types HUD } } + type button_voting_session = button_normal { + name = "voting_session_item" + size = { 90 90 } + datacontext = "[InGameBottomBar.GetOngoingVotingSession]" + + onclick = "[InGameBottomBar.OpenVotingSessionInfo]" + + state = { + name = _show + next = idle + using = Animation_FadeIn_Quick + bezier = { 1 0 0.5 0.5 } + size = { 40 40 } + alpha = 1 + trigger_on_create = yes + } + + state = { + name = idle + using = Animation_FadeIn_Standard + size = { 90 90 } + } + + state = { + name = _hide + using = Animation_FadeOut_Standard + bezier = { 1 0 0.5 0.5 } + alpha = 0 + size = { 40 40 } + } + + block "tooltipwidget" + { + tooltipwidget = voting_session_tooltip + using = tooltip_nw + } + + icon = { + name = "below_glow" + visible = "[VotingSession.IsUndecided( GetPlayer )]" + size = { 100% 100% } + texture = "gfx/interface/icons/character_interactions/icon_bg.dds" + + using = Animation_Glow_Pulse_Fast + + glow = { + glow_radius = 30 + using = Glow_Standard + using = Color_Bright_Yellow + } + } + + widget = { + size = { 100% 100% } + parentanchor = center + + button = { + size = { 88% 88% } + parentanchor = center + + block "background_texture" + { + texture = "gfx/interface/window_situations/hud_situation_widget.dds" + } + alwaystransparent = yes + } + + icon = { + parentanchor = center + block "icon_size" + { + size = { 60% 60% } + } + + block "button_icon" + { + texture = "gfx/interface/icons/voting_session.dds" + } + } + } + + progresspie = { + visible = "[InGameBottomBar.HasOngoingVotingSession]" + block "progress_pie_visibility" {} + block "progresspie_size" + { + size = { 70% 70% } + } + parentanchor = center + value = "[VotingSession.GetProgress]" + max = 1 + texture = "gfx/interface/progressbars/action_progress_thin.dds" + framesize = { 128 128 } + frame = 2 + } + + icon = { + visible = "[VotingSession.IsApprovingChange( GetPlayer )]" + parentanchor = bottom|hcenter + block "icon_size" + { + size = { 30% 30% } + } + + texture = "gfx/interface/icons/laws/law_approve.dds" + } + + icon = { + visible = "[VotingSession.IsRejectingChange( GetPlayer )]" + parentanchor = bottom|hcenter + block "icon_size" + { + size = { 30% 30% } + } + + texture = "gfx/interface/icons/laws/law_dissent.dds" + } + } + type button_situation_group_banner = button_normal { name = "situation_group_banner_item" size = { 56 56 } @@ -5478,7 +5787,7 @@ types HUD } } - type button_hud_scheme = button { + type button_hud_scheme = button_normal { name = "tutorial_highlight_lifestyle_HUD_button" block "click_behavior" @@ -6099,93 +6408,93 @@ types HUD # Mapmodes button_normal = { onclick = "[SetMapMode('players')]" - shortcut = "map_mode_8" + shortcut = "map_mode_players" enabled = "[Or(GameHasMultiplePlayers, InDebugMode)]" } button_normal = { onclick = "[SetMapMode('dejure_duchies')]" - shortcut = "map_mode_9" + shortcut = "map_mode_dejure_duchies" shortcut = "mapmode_duchies_secondary" } button_normal = { onclick = "[SetMapMode('dejure_kingdoms')]" - shortcut = "map_mode_10" + shortcut = "map_mode_dejure_kingdoms" shortcut = "mapmode_kingdoms_secondary" } button_normal = { onclick = "[SetMapMode('dejure_empires')]" - shortcut = "map_mode_11" + shortcut = "map_mode_dejure_empires" shortcut = "mapmode_empires_secondary" } button_normal = { onclick = "[SetMapMode('religions')]" onclick = "[ClearExploredFaiths]" - shortcut = "map_mode_3" + shortcut = "map_mode_religions" shortcut = "mapmode_faith_secondary" } button_normal = { onclick = "[SetMapMode('cultures')]" - shortcut = "map_mode_2" + shortcut = "map_mode_cultures" shortcut = "mapmode_culture_secondary" } button_normal = { onclick = "[SetMapMode('houses')]" onclick = "[ClearExploredHouses]" - shortcut = "map_mode_4" + shortcut = "map_mode_houses" shortcut = "mapmode_house_secondary" } button_normal = { onclick = "[SetMapMode('realms')]" onclick = "[ClearExploredRealms]" - shortcut = "map_mode_1" + shortcut = "map_mode_realms" } button_normal = { onclick = "[SetMapMode('government')]" - shortcut = "map_mode_5" + shortcut = "map_mode_government" } button_normal = { onclick = "[SetMapMode('epidemics')]" - shortcut = "map_mode_16" + shortcut = "map_mode_epidemics" } button_normal = { onclick = "[SetMapMode('legends')]" - shortcut = "map_mode_17" + shortcut = "map_mode_legends" } button_normal = { onclick = "[SetMapMode('landless_rulers')]" - shortcut = "map_mode_18" + shortcut = "map_mode_landless_rulers" } button_normal = { onclick = "[SetMapMode('migration_counties')]" - shortcut = "map_mode_19" + shortcut = "map_mode_migration_counties" } button_normal = { onclick = "[SetMapMode('dejure_counties')]" - shortcut = "map_mode_6" + shortcut = "map_mode_dejure_counties" } button_normal = { onclick = "[SetMapMode('dejure_hegemonies')]" - shortcut = "map_mode_20" + shortcut = "map_mode_dejure_hegemonies" } button_normal = { onclick = "[SetMapMode('court_languages')]" - shortcut = "map_mode_7" + shortcut = "map_mode_court_languages" } button_normal = { @@ -6195,22 +6504,27 @@ types HUD button_normal = { onclick = "[SetMapMode('simple_terrain')]" - shortcut = "map_mode_12" + shortcut = "map_mode_simple_terrain" } button_normal = { - onclick = "[SetMapMode('county_development')]" - shortcut = "map_mode_13" + onclick = "[SetMapMode('settlement_size')]" + shortcut = "map_mode_settlement_size" + } + + button_normal = { + onclick = "[SetMapMode('county_prosperity')]" + shortcut = "map_mode_county_prosperity" } button_normal = { onclick = "[SetMapMode( 'economy_buildings' )]" - shortcut = "map_mode_14" + shortcut = "map_mode_economy_buildings" } button_normal = { onclick = "[SetMapMode( 'county_control' )]" - shortcut = "map_mode_15" + shortcut = "map_mode_county_control" } button_normal = { @@ -6271,6 +6585,15 @@ types HUD button_normal = { onclick = "[SetMapMode( 'mandala' )]" shortcut = "map_mode_mandala" + enabled = "[GetPlayer.ShouldShowRadiance]" + } + button_normal = { + onclick = "[SetMapMode( 'trade_markets' )]" + shortcut = "map_mode_trade_markets" + } + button_normal = { + onclick = "[SetMapMode( 'trade_good_top_production' )]" + shortcut = "map_mode_trade_good_top_production" } } @@ -6383,12 +6706,14 @@ types HUD type resources_top_right_bar = hbox { layer = top + min_width = 656 using = Animation_ShowHide_Quick ## Resources hbox = { name = "resources" + layoutpolicy_horizontal = expanding visible = "[Not( IsGameViewOpen('barbershop') )]" hbox = { @@ -6404,6 +6729,7 @@ types HUD widget = { name = "gold" size = { 144 70 } + layoutpolicy_horizontal = expanding state = { name = _mouse_enter @@ -6411,7 +6737,7 @@ types HUD } widget = { - size = { 144 45 } + size = { 100% 45 } tooltipwidget = { widget_gold_breakdown_tooltip = { @@ -6507,6 +6833,114 @@ types HUD } } + + widget = { + name = "provisions" + visible = "[IsLandlessAdventurer( GetPlayer )]" + size = { 112 70 } + + widget = { + datacontext = "[GetPlayer.GetDomicile]" + size = { 112 45 } + + tooltip = "[Domicile.GetProvisionsBreakdown]" + using = tooltip_ne + } + + background = { + texture = "gfx/interface/skinned/resource_panel_piece.dds" + } + + vbox = { + datacontext = "[GetPlayer.GetDomicile]" + margin_top = -2 + + hbox = { + layoutpolicy_horizontal = expanding + expand = {} + + hbox = { + spacing = 7 + + icon = { + name = "provisions_icon" + size = { 30 30 } + + framesize = { 60 60 } + frame = 0 + texture = "gfx/interface/icons/icon_camp_supply.dds" + } + + flowcontainer = { + margin_bottom = 7 + spacing = -6 + direction = vertical + ignoreinvisible = yes + + text_single = { + name = "provisions_value_positive" + visible = "[Not( Or( Domicile.IsProvisionsLow, Domicile.IsProvisionsCritical ) )]" + + text = "[Domicile.GetProvisions|0]" + max_width = 50 + default_format = "#high" + using = Font_Size_Medium + } + + text_single = { + name = "provisions_value_low" + visible = "[Domicile.IsProvisionsLow]" + + text = "[Domicile.GetProvisions|0]" + max_width = 50 + default_format = "#color_yellow" + using = Font_Size_Medium + } + + text_single = { + name = "provisions_value_critical" + visible = "[Domicile.IsProvisionsCritical]" + + text = "[Domicile.GetProvisions|0]" + max_width = 50 + default_format = "#N" + using = Font_Size_Medium + } + + container = { + text_single = { + name = "provisions_max" + text = "[Domicile.GetProvisionsMax]" + max_width = 50 + default_format = "#low" + } + } + } + } + expand = {} + divider_light = { + layoutpolicy_vertical = expanding + alpha = 0.8 + } + } + expand = {} + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 6 + + + vbox = { + margin_top = -2 + layoutpolicy_vertical = expanding + + expand = {} + } + } + expand = {} + } + } + widget = { name = "treasury" visible = "[GetPlayer.HasTreasury]" @@ -6912,112 +7346,6 @@ types HUD } - widget = { - name = "provisions" - visible = "[IsLandlessAdventurer( GetPlayer )]" - size = { 112 70 } - - widget = { - datacontext = "[GetPlayer.GetDomicile]" - size = { 112 45 } - - tooltip = "[Domicile.GetProvisionsBreakdown]" - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - datacontext = "[GetPlayer.GetDomicile]" - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "provisions_icon" - size = { 30 30 } - - framesize = { 60 60 } - frame = 0 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "provisions_value_positive" - visible = "[Not( Or( Domicile.IsProvisionsLow, Domicile.IsProvisionsCritical ) )]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "provisions_value_low" - visible = "[Domicile.IsProvisionsLow]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#color_yellow" - using = Font_Size_Medium - } - - text_single = { - name = "provisions_value_critical" - visible = "[Domicile.IsProvisionsCritical]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#N" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "provisions_max" - text = "[Domicile.GetProvisionsMax]" - max_width = 50 - default_format = "#low" - } - } - } - } - expand = {} - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - - vbox = { - margin_top = -2 - layoutpolicy_vertical = expanding - - expand = {} - } - } - expand = {} - } - } widget = { name = "influence" @@ -7268,6 +7596,7 @@ types HUD datacontext = "[GetPlayer]" widget = { + visible = "[Not( Character.IsMerchant )]" button = { size = { 112 45 } onclick = "[ToggleGameViewData('military', GetPlayer.GetID)]" @@ -7352,7 +7681,7 @@ types HUD widget = { name = "domain_limit" - visible = "[Not( IsLandlessAdventurer( GetPlayer ) )]" + visible = "[Not( GetPlayer.IsLandlessRuler )]" layoutpolicy_vertical = expanding @@ -7405,6 +7734,85 @@ types HUD expand = {} } } + + button = { + size = { 140 70 } + + visible = "[Character.IsMerchant]" + onclick = "[ToggleGameView( 'trade_window' )]" + + background = { + texture = "gfx/interface/skinned/resource_panel_end.dds" + } + + vbox = { + layoutpolicy_vertical = expanding + margin_bottom = 24 + + expand = {} + + hbox = { + margin = { 8 0 } + layoutpolicy_horizontal = expanding + + + hbox_trade_window_stat = { + datacontext = "[Character.GetCompetitivenessTooltip]" + spacing = 0 + + blockoverride "icon" { + texture = "gfx/interface/icons/trade/icon_trade_competitiveness.dds" + } + + blockoverride "text" { + text = "[ValueBreakdown.GetValue]" + } + + blockoverride "size" { + size = { 32 22} + } + + tooltipwidget = { + widget_value_breakdown_tooltip = {} + } + + using = tooltip_se + } + + expand = {} + + hbox = { + name = "trade_route_limit" + tooltip = "HUD_TRADE_ROUTE_LIMIT_TT" + using = tooltip_ne + + background = { + visible = "[GreaterThan_int32( Character.GetCurrentTradeRouteCount, Character.GetMaxTradeRouteCount )]" + using = Status_Bad + margin_bottom = -3 + } + + icon = { + texture = "gfx/interface/icons/trade/icon_trade_route.dds" + size = { 25 25 } + alwaystransparent = yes + } + + text_single = { + name = "value" + text = "[Character.GetCurrentTradeRouteCount]/[Character.GetMaxTradeRouteCount]" + align = nobaseline + max_width = 110 + alwaystransparent = yes + } + } + + expand = {} + } + + expand = {} + } + } } } } diff --git a/gui/shared/cooltip.gui b/gui/shared/cooltip.gui index d3ec4f082..4296bb369 100644 --- a/gui/shared/cooltip.gui +++ b/gui/shared/cooltip.gui @@ -857,6 +857,7 @@ types GameTooltipTypes vbox = { set_parent_size_to_minimum = yes margin = { 20 5 } + block "tooltip_bottom_margin" {} hbox = { layoutpolicy_horizontal = expanding @@ -1293,12 +1294,19 @@ types GameTooltipTypes } text_single = { - visible = "[And( Character.IsAlive, Not( Character.IsImprisoned ) )]" + visible = "[And3( Character.IsAlive, Not( Character.IsImprisoned ), Not( Character.IsTrader ) )]" layoutpolicy_horizontal = expanding text = "CHARACTER_LOCATION_TOOLTIP" align = nobaseline fonttintcolor = "[TooltipInfo.GetTintColor]" + } + text_single = { + visible = "[And3( Character.IsAlive, Not( Character.IsImprisoned ), Character.IsTrader )]" + layoutpolicy_horizontal = expanding + text = "[Character.Custom('GetTraderLocationDesc')]" + align = nobaseline + fonttintcolor = "[TooltipInfo.GetTintColor]" } text_single = { @@ -2145,6 +2153,8 @@ widget = { text = "[MenAtArmsType.GetReinforcementCostString( GetPlayer )]" } expand = {} + + tooltip = "[MenAtArmsType.CalcHighMonthlyCostBreakdown( GetPlayer )]" } hbox = { @@ -2155,6 +2165,8 @@ widget = { } expand = {} + + tooltip = "[MenAtArmsType.CalcLowMonthlyCostBreakdown( GetPlayer )]" } hbox = { @@ -2521,12 +2533,16 @@ template regiment_container_text_tooltip layoutpolicy_horizontal = expanding text = "MAA_REINFORCEMENT_COST_ENTRY" fonttintcolor = "[TooltipInfo.GetTintColor]" + + tooltip = "[Regiment.CalcHighMonthlyCostBreakdown]" } text_single = { layoutpolicy_horizontal = expanding text = "MAA_MAINTENANCE" fonttintcolor = "[TooltipInfo.GetTintColor]" + + tooltip = "[Regiment.CalcLowMonthlyCostBreakdown]" } text_single = { @@ -3760,7 +3776,7 @@ types RiteTooltips min_width = 340 margin_top = -7 margin_bottom = 5 - text = "[Localize(Rite.GetDescription)]" + text = "[Rite.GetDescription]" autoresize = yes fonttintcolor = "[TooltipInfo.GetTintColor]" } @@ -4133,39 +4149,146 @@ template DynastyTooltip { container = { alwaystransparent = no name = "BuildingTooltip" + datacontext = "[GetPlayer]" + using = BuildingTypeTooltip - object_tooltip_pop_out = { + blockoverride "building_description_text" { + text = "BUILDING_TOOLTIP_TEXT" + } + blockoverride "building_needs" { + visible = "[Not( IsDataModelEmpty( BuildingType.GetNeeds ) )]" + datamodel = "[BuildingType.GetNeeds]" + } +} + +container = { + alwaystransparent = no + name = "BuildingInstanceTooltip" + datacontext = "[Building.GetType]" + datacontext = "[Building.GetProvince.GetHolding]" + datacontext = "[GetPlayer]" + using = BuildingTypeTooltip +} + +template BuildingTypeTooltip { + scrollable_object_tooltip_pop_out = { + blockoverride "scrolltip_size" { + size = { 300 0 } + } blockoverride "title_text" { margin = { 0 8 } - text = "[Building.GetNameNoTooltip]" - } - blockoverride "subtitle_text" { - text = "[Building.GetTypeName]" - default_format = "#weak" + text = "[BuildingType.GetNameNoTooltip]" } blockoverride "concept_link" { text = "[building|E]" } - blockoverride "description_text" { - text = "BUILDING_TOOLTIP_TEXT" - } blockoverride "header_additions" { hbox = { margin_right = 10 margin_top = 8 margin_left = -4 - icon = { - texture = "[Building.GetTypeIcon]" - size = { 75 65 } + icon_flat_standard = { + texture = "[BuildingType.GetTypeIcon]" + size = { 52 52 } + } + } + } + blockoverride "main_description" { + hbox = { + layoutpolicy_horizontal = expanding - using = Master_Button_Modify_Texture + textbox = { + name = "Description" + layoutpolicy_horizontal = expanding + using = DefaultTooltipText + max_width = 400 + block "building_description_text" { + text = "BUILDING_HOLDING_TOOLTIP_TEXT" + } + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + + expand = {} + } + + vbox = { + layoutpolicy_horizontal = expanding + margin_top = 8 + spacing = 4 + block "building_needs" { + visible = "[Not( IsDataModelEmpty( BuildingType.GetNeedsAtProvince( Holding.GetProvince ) ) )]" + datamodel = "[BuildingType.GetNeedsAtProvince( Holding.GetProvince )]" + } + + item = { + building_need_segment_tooltip = {} } } } } } +container = { + alwaystransparent = no + name = "DistrictTooltip" + using = DistrictTypeTooltip +} + +template DistrictTypeTooltip { + object_tooltip_pop_out = { + blockoverride "title_text" { + margin = { 0 8 } + text = "[DistrictType.GetNameNoTooltip]" + } + blockoverride "concept_link" { + text = "[district|E]" + } + blockoverride "main_description" { + vbox_district_type_info = {} + } + blockoverride "header_additions" { + hbox = { + margin_right = 10 + margin_top = 8 + margin_left = -4 + + icon_building = { + texture = "[DistrictType.GetPrimaryBuildingType.GetTypeIcon]" + size = { 64 64 } + } + } + } + } +} + +types DistrictTypeCooltip { + type vbox_district_type_info = vbox { + # needs a DistrictType datacontext + layoutpolicy_horizontal = expanding + spacing = 16 + + cooltip_paragraph = { + visible = "[DistrictType.HasGameplayDescription]" + text = "[DistrictType.GetGameplayDescription]" + } + cooltip_paragraph = { + + visible = "[DistrictType.HasFlavorDescription]" + text = "[DistrictType.GetFlavorDescription]" + margin = { 16 8 } + default_format = "#F" + + background = { + using = Background_Area + alpha = 0.8 + } + } + } +} + + + container = { name = "ArmyTooltip" using = unit_icon_item_tooltip @@ -4207,7 +4330,15 @@ types Cooltips } blockoverride "description_text" { - text = "[Title.GetCOADefaultTooltip]" + text = "[TrimBack( Title.GetCOADefaultTooltip )]" + } + + blockoverride "tooltip_bottom_margin" { + margin_bottom = 16 + } + + blockoverride "tooltip_text_shortcut" { + visible = no } blockoverride "concept_link" { @@ -4266,6 +4397,45 @@ container = { using = LandedTitleTooltipTextLink } + +## Title type (debug only) +# +template title_type_tooltip { + container = { + alwaystransparent = no + + object_tooltip_pop_out = { + blockoverride "title_text" { + margin = { 0 8 } + text = "[TitleType.GetNameNoTooltip]" + default_format = "#T" + } + + blockoverride "concept_link" + { + text = "[title|E]" + } + + blockoverride "main_description" + { + cooltip_paragraph = { + text = "TITLE_TYPE_TOOLTIP_DESCRIPTION" + default_format = "#D" + } + } + } + } +} + +container = { + name = "TitleTypeTooltip" + alwaystransparent = no + using = title_type_tooltip +} + + +## Province tooltip (container) +# container = { alwaystransparent = no name = "ProvinceTooltip" @@ -4348,14 +4518,27 @@ types StaticModifierTooltipTypes } blockoverride "concept_link" { - text = "" + visible = "[StaticModifier.IsStacking]" + text = "[stacking_modifier|E]" } blockoverride "description_text" { block "description_text_data" { - text = "[StaticModifier.GetDescWithEffects]" + text = "[TrimBack( StaticModifier.GetDescWithEffects )]" } } + + blockoverride "tooltip_bottom_margin" { + margin_bottom = 16 + } + + blockoverride "input_info_text" { + visible = no + } + + blockoverride "tooltip_text_shortcut" { + visible = no + } } type scaled_static_modifier_tooltip = object_tooltip_pop_out { @@ -4379,7 +4562,8 @@ types StaticModifierTooltipTypes } blockoverride "concept_link" { - text = "" + visible = "[StaticModifier.IsStacking]" + text = "[stacking_modifier|E]" } blockoverride "main_description" { @@ -4463,7 +4647,7 @@ types LawTooltipTypes tintcolor = "[TooltipInfo.GetTintColor]" modify_texture = { - visible = "[Not( Or( EqualTo_string( LawGroup.GetKey, 'camp_purpose'), EqualTo_string( LawGroup.GetKey, 'nomadic_authority') ) )]" + visible = "[Not( LawGroup.HasFlag('BlockLightTexture') )]" texture = "gfx/interface/colors/colors_textured.dds" blend_mode = add @@ -4482,7 +4666,7 @@ types LawTooltipTypes } blockoverride "title_text" { - margin = { 0 8 } + margin = { 0 2 } text = "PASS_LAW_TOOLTIP_TITLE" } @@ -4496,7 +4680,7 @@ types LawTooltipTypes } } - blockoverride "extra_data" { + blockoverride "main_description" { cooltip_paragraph = { text = "[GuiLaw.GetCanEnactDescription]" max_width = 440 @@ -4527,10 +4711,28 @@ types LawTooltipTypes } cooltip_paragraph = { - visible = "[GuiLaw.CanEnact]" + visible = "[And( GuiLaw.CanEnact, Not( IsLandlessAdventurerOrMerchant(GetPlayer) ) ) ]" text = "CLICK_TO_PASS_LAW" max_width = 440 } + + cooltip_paragraph = { + visible = "[And( GuiLaw.CanEnact, IsLandlessAdventurer(GetPlayer ) ) ]" + text = "CLICK_TO_PASS_LAW_ADVENTURER" + max_width = 440 + } + + cooltip_paragraph = { + visible = "[And( GuiLaw.CanEnact, GuiLawGroup.GetLawGroup.HasFlag( 'company_size' ) ) ]" + text = "CLICK_TO_PASS_LAW_COMPANY_PURPOSE" + max_width = 440 + } + + cooltip_paragraph = { + visible = "[And( GuiLaw.CanEnact, GuiLawGroup.GetLawGroup.HasFlag( 'company_purpose' ) ) ]" + text = "CLICK_TO_PASS_LAW_COMPANY_PURPOSE" + max_width = 440 + } } } } @@ -4648,6 +4850,12 @@ template dynasty_house_tooltip { text = "DYNASTY_HOUSE_TT_HEAD_OF_HOUSE" } + cooltip_paragraph = { + name = "house_title" # Dev. only + visible = "[And( DynastyHouse.HasHouseTitle, InDebugMode )]" + text = "DYNASTY_HOUSE_TT_HOUSE_TITLE" + } + cooltip_paragraph = { name = "living_members" text = "DYNASTY_HOUSE_TT_LIVING_MEMBERS" @@ -4670,10 +4878,10 @@ template dynasty_house_tooltip { hbox = { layoutpolicy_horizontal = expanding + visible = "[DynastyHouse.HasHouseUnity]" datacontext = "[DynastyHouse.GetCurrentHouseUnityStage]" - - visible = "[DynastyHouse.HasHouseUnity]" + datacontext = "[DynastyHouse.GetHouseUnityType]" spacing = 5 @@ -4683,6 +4891,7 @@ template dynasty_house_tooltip { } icon = { + visible = "[Not( DynastyHouse.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment') )]" size = { 30 30 } texture = "[HouseUnityStage.GetIcon]" @@ -4700,10 +4909,29 @@ template dynasty_house_tooltip { } text_single = { + visible = "[Not( DynastyHouse.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment') )]" text = "[DynastyHouse.GetHouseUnityValue|0]" fonttintcolor = "[TooltipInfo.GetTintColor]" } + text_single = { + visible = "[And( DynastyHouse.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment'), GreaterThan_int32( DynastyHouse.GetHouseUnityValue, '(int32)0' ) )]" + text = "COMPANY_DIRECTION_HEADER_PROGRESS_ENNOBLED" + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + + text_single = { + visible = "[And( DynastyHouse.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment'), LessThan_int32( DynastyHouse.GetHouseUnityValue, '(int32)0' ) )]" + text = "COMPANY_DIRECTION_HEADER_PROGRESS_RAPACIOUS" + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + + text_single = { + visible = "[And( DynastyHouse.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment'), EqualTo_int32( DynastyHouse.GetHouseUnityValue, '(int32)0' ) )]" + text = "COMPANY_DIRECTION_HEADER_NO_CURRENT_DIRECTION" + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + expand = {} } @@ -4724,7 +4952,7 @@ container = { ### These templates can very likely be extended to most custom tooltips with header, blocker, effects, flavor, etc -local_template era_innov_blockers +template era_innov_blockers { minimumsize = { 100% 0 } @@ -4745,7 +4973,7 @@ local_template era_innov_blockers } } -local_template era_innov_effects +template era_innov_effects { flowcontainer = { name = "effects" @@ -4775,7 +5003,7 @@ local_template era_innov_effects # progress -local_template era_innov_flavor +template era_innov_flavor { textbox = { name = "description" @@ -6424,7 +6652,7 @@ types InventoryTooltips text_single = { name = "artifact_category" - text = "[Artifact.GetCategory]" + text = "[Select_CString( And( Artifact.IsCourtArtifact, Artifact.GetOwner.IsValid ), Artifact.GetOwner.Custom('GetCourtOrDomicileArtifactConcept'), Artifact.GetCategory )]" align = right|nobaseline fonttintcolor = "[TooltipInfo.GetTintColor]" } @@ -6620,6 +6848,17 @@ types InventoryTooltips max_width = 490 } + text_multi = { + name = "charter_abuse_stance" + visible = "[And( Artifact.GetOwner.IsLocalPlayer, GreaterThan_CFixedPoint( Artifact.MakeScope.ScriptValue('merchant_charter_abuse_stance_shown_value'), '(CFixedPoint)0' ) )]" + layoutpolicy_horizontal = expanding + text = "[Artifact.Custom('GetMerchantCharterAbuseStanceDesc')]" + align = left + autoresize = yes + fonttintcolor = "[TooltipInfo.GetTintColor]" + max_width = 490 + } + expand = {} } } @@ -6894,7 +7133,7 @@ types CourtPositionTooltips { } blockoverride "concept_link" { - text = "[SelectLocalization(IsLandlessAdventurer( GetPlayer ) , 'OFFICER', 'COURT_POISTION' )]" + text = "[GetPlayer.Custom('GetCourtPositionConcept')]" } blockoverride "header_additions" @@ -8523,7 +8762,7 @@ template situation_participant_group_type_tooltip { blockoverride "header_additions" { header_icon = { - visible = "[SituationParticipantGroupType.HasIcon]" + visible = "[And( SituationParticipantGroupType.HasIcon, Not( ObjectsEqual( SituationParticipantGroupType.GetParentSituationType.Self, GetSituationType( 'silk_road_situation' ).Self ) ) )]" blockoverride "header_texture" { @@ -8533,6 +8772,17 @@ template situation_participant_group_type_tooltip { using = Master_Button_Modify_Texture } } + + header_icon = { + visible = "[And( SituationParticipantGroupType.HasIcon, ObjectsEqual( SituationParticipantGroupType.GetParentSituationType.Self, GetSituationType( 'silk_road_situation' ).Self ) )]" + + blockoverride "header_texture" + { + size = { 48 48 } + + texture = "[SituationParticipantGroupType.GetIcon]" + } + } } blockoverride "title_text" { @@ -8845,10 +9095,32 @@ template house_unity_stage_tooltip { fonttintcolor = "[TooltipInfo.GetTintColor]" alwaystransparent = no } + + vbox = { + visible = "[GetPlayer.GetHouse.HasHouseUnity]" + datacontext = "[GetPlayer.GetHouse.GetHouseUnityType]" + layoutpolicy_horizontal = expanding + spacing = 3 + margin_top = 15 + margin_bottom = 10 + + text_label_left = { + layoutpolicy_horizontal = expanding + margin_left = 16 + text = "HOUSE_UNITY_EFFECTS_TITLE" + } + + text_multi = { + layoutpolicy_horizontal = expanding + max_width = 400 + autoresize = yes + text = "[HouseUnityStage.GetModifierDesc]" + } + } } blockoverride "concept_link" { - text = "[house_unity_level|E]" + text = "[SelectLocalization( GetPlayer.GetGovernment.HasGovernmentFlag('government_uses_company_sentiment'), 'company_direction_level_concept', 'house_unity_level_concept' )]" } } } @@ -9354,20 +9626,7 @@ template holy_order_tooltip { datamodel = "[HolyOrder.GetLeasedTitles]" item = { - coa_title_tiny_crown = { - using = tooltip_ne - - icon_title_has_laws_status = {} - - icon = { - name = "is_nomad" - visible = "[Title.IsNomad]" - parentanchor = bottom|right - size = { 25 25 } - position = { 5 0 } - texture = "gfx/interface/icons/title_status/icon_title_nomad.dds" - } - } + coa_title_tiny_crown_with_status_icons = {} } } @@ -9628,6 +9887,23 @@ template point_of_interest_tooltip { types GameTooltipTypes { + # Category badge with its name and expertise level + # Callers not already scoped to a TradeGoodCategory set the datacontext on the instance + type trade_good_category_badge_row = hbox { + layoutpolicy_horizontal = expanding + visible = "[GetPlayer.HasCompanyTitle]" + datacontext = "[GetPlayer]" + spacing = 4 + + widget_trade_good_category_tiny = {} + + cooltip_paragraph = { + text = TRADE_GOOD_CATEGORY_NAME_AND_LEVEL + } + + expand = {} + } + type tax_slot_obligation_tooltip = object_tooltip_pop_out { blockoverride "header_additions" @@ -10567,7 +10843,7 @@ template bazaar_building_tooltip { object_tooltip_pop_out = { blockoverride "title_text" { margin = { 0 8 } - text = "[Building.GetNameNoTooltip]" + text = "[BuildingType.GetNameNoTooltip]" } blockoverride "subtitle_text" { @@ -10889,7 +11165,6 @@ template puppet_type_tooltip { } } } - } } } @@ -10929,6 +11204,626 @@ container = { using = lease_contract_type_tooltip } +template trade_market_tooltip { + container = { + alwaystransparent = no + + object_tooltip_pop_out = { + blockoverride "header_additions" + { + hbox = { + margin_right = 10 + + icon = { + size = { 36 36 } + block "header_icon" + { + texture = "gfx/interface/icons/trade/icon_trade_market.dds" + } + } + } + } + + blockoverride "concept_link" { + text = "[trade_market|E]" + } + + blockoverride "title_text" { + block "title_text" { + text = "[TradeMarket.GetNameNoTooltip]" + } + default_format = "#T" + } + + blockoverride "main_description" { + vbox = { + layoutpolicy_horizontal = expanding + + cooltip_paragraph = { + text = "TRADE_MARKET_TOOLTIP_CAPITAL" + } + + cooltip_paragraph = { + text = "TRADE_MARKET_TOOLTIP_OWNER" + } + + cooltip_paragraph = { + text = "TRADE_MARKET_TOOLTIP_TOLL" + } + + cooltip_paragraph = { + text = "TRADE_MARKET_TOOLTIP_PROSPERITY" + } + } + + block "extra_info" {} + } + } + } +} + +container = { + name = "TradeMarketTooltip" + alwaystransparent = no + using = trade_market_tooltip + using = TradeMarket_Mouse_Entry +} + +template trade_market_map_icon_tooltip { + container = { + alwaystransparent = no + using = trade_market_tooltip + + blockoverride "extra_info" + { + cooltip_paragraph = { + visible = "[TradeMarketIcon.HasPlayerHolding]" + text = "TRADE_MAP_ICON_PLAYER_HOLDING_TT" + } + + vbox = { + datacontext = "[TradeMarketIcon.GetFocusedGood]" + visible = "[TradeMarketIcon.HasFocusedGood]" + layoutpolicy_horizontal = expanding + spacing = 6 + + text_multi = { + visible = "[And( Not( TradeMarketIcon.IsInNeedsMode ), TradeMarketIcon.IsFocusedGoodSurplus )]" + layoutpolicy_horizontal = expanding + autoresize = yes + text = "TRADE_MAP_CARD_DRAFT_ROUTE_BUY_TT" + align = nobaseline + } + + text_multi = { + visible = "[And( Not( TradeMarketIcon.IsInNeedsMode ), TradeMarketIcon.IsFocusedGoodDeficit )]" + layoutpolicy_horizontal = expanding + autoresize = yes + text = "TRADE_MAP_CARD_DRAFT_ROUTE_SELL_TT" + align = nobaseline + } + + text_multi = { + visible = "[TradeMarketIcon.HasFocusedGoodDistributionBalance]" + layoutpolicy_horizontal = expanding + autoresize = yes + text = "[TradeMarketIcon.GetFocusedGoodDistributionBalanceDesc]" + align = nobaseline + } + } + } + } +} + +template trade_route_tooltip { + container = { + alwaystransparent = no + object_tooltip_pop_out = { + blockoverride "concept_link" { + text = "[SelectLocalization( TradeRoute.IsProfitRoute, 'TRADE_ROUTE_TOOLTIP_TYPE_PROFIT', SelectLocalization( TradeRoute.IsCommissionRoute, 'TRADE_ROUTE_TOOLTIP_TYPE_COMMISSION', 'TRADE_ROUTE_TOOLTIP_TYPE_DISTRIBUTION' ) )]" + } + + blockoverride "title_text" { + block "title_text" { + text = "[TradeRoute.GetNameNoTooltip]" + } + default_format = "#T" + } + + blockoverride "main_description" { + vbox = { + layoutpolicy_horizontal = expanding + + cooltip_paragraph = { + text = "TRADE_ROUTE_OWNER" + } + + cooltip_paragraph = { + visible = "[TradeRoute.GetTrader.IsValid]" + text = "TRADE_ROUTE_TOOLTIP_TRADER" + } + + cooltip_paragraph = { + visible = "[TradeRoute.IsCommissionRoute]" + text = "TRADE_ROUTE_TOOLTIP_COMMISSIONER" + } + + cooltip_paragraph = { + visible = "[TradeRoute.IsCommissionRoute]" + text = "TRADE_ROUTE_COMMISSION_ENDS_IN" + } + + cooltip_paragraph = { + text = "TRADE_ROUTE_TOOLTIP_INCOME" + } + + cooltip_paragraph = { + visible = "[TradeRoute.HasPrimaryGood]" + text = "TRADE_ROUTE_TOOLTIP_PRIMARY_GOOD" + } + + cooltip_paragraph = { + visible = "[And( Not( TradeRoute.IsDistributionRoute ), Not( TradeRoute.IsCommissionRoute ) )]" + text = "TRADE_ROUTE_TOOLTIP_CAPACITY" + } + + cooltip_paragraph = { + visible = "[TradeRoute.IsSuspended]" + text = "TRADE_ROUTE_TOOLTIP_SUSPENDED" + } + } + + spacer = { + size = { 0 10 } + } + + cooltip_paragraph = { + visible = "[Not( IsDataModelEmpty( TradeRoute.GetTradeGoods ) )]" + text = "TRADE_ROUTE_TOOLTIP_GOODS_HEADER" + } + + vbox = { + visible = "[Not( IsDataModelEmpty( TradeRoute.GetTradeGoods ) )]" + datamodel = "[TradeRoute.GetTradeGoods]" + layoutpolicy_horizontal = expanding + margin_left = 30 + + item = { + hbox = { + layoutpolicy_horizontal = expanding + cooltip_paragraph = { + text = "[TradeGoodType.GetNameWithIcon]: [TradeRoute.GetSellAmountForGood( TradeGoodType.Self )|V0]" + } + + expand = {} + } + } + } + + spacer = { + visible = "[Not( IsDataModelEmpty( TradeRoute.GetTradeGoods ) )]" + size = { 0 15 } + } + + cooltip_paragraph = { + text = "MARKETS_HEADER" + } + + vbox = { + datamodel = "[TradeRoute.GetMarkets]" + layoutpolicy_horizontal = expanding + + item = { + hbox = { + layoutpolicy_horizontal = expanding + cooltip_paragraph = { + text = "TRADE_MARKET_LIST_ENTRY" + } + + expand = {} + } + } + } + + + spacer = { + size = { 0 15 } + } + + block "extra_info" {} + } + } + } +} + +container = { + name = "TradeRouteTooltip" + alwaystransparent = no + using = trade_route_tooltip +} + +template trade_monopoly_tooltip { + container = { + alwaystransparent = no + object_tooltip_pop_out = { + blockoverride "concept_link" { + text = "[trade_monopoly|E]" + } + + blockoverride "header_additions" { + hbox = { + margin_right = 10 + widget_trade_monopoly_icon = { + blockoverride "trade_monopoly_tooltip" + { + # no tooltip + } + } + } + } + + blockoverride "title_text" { + text = "[TradeMonopoly.GetName]" + default_format = "#T" + } + + blockoverride "main_description" { + cooltip_paragraph = { + visible = "[TradeMonopoly.IsExploitative]" + text = "[exploitative_monopoly|E]" + } + + cooltip_paragraph = { + visible = "[TradeMonopoly.IsComplete]" + text = "TRADE_MONOPOLY_TOOLTIP_COMPLETE" + } + + cooltip_paragraph = { + visible = "[Not( TradeMonopoly.IsComplete )]" + text = "TRADE_MONOPOLY_TOOLTIP_SPECIFIC_CATEGORY" + } + + cooltip_paragraph = { + visible = "[GreaterThan_CFixedPoint( TradeMonopoly.GetExploitativeExports, '(CFixedPoint)0' )]" + text = "TRADE_MONOPOLY_TOOLTIP_EXPLOITATIVE_EXPORTS" + } + + cooltip_paragraph = { + visible = "[TradeMonopoly.HasOwningCharacter]" + text = "TRADE_MONOPOLY_TOOLTIP_OWNER_CHARACTER" + } + + cooltip_paragraph = { + visible = "[TradeMonopoly.HasOwningConfederation]" + text = "TRADE_MONOPOLY_TOOLTIP_OWNER_CONFEDERATION" + } + + cooltip_paragraph = { + visible = "[TradeMonopoly.HasOwningTitle]" + text = "TRADE_MONOPOLY_TOOLTIP_OWNER_TITLE" + } + } + } + } +} + +container = { + name = "TradeMonopolyTooltip" + alwaystransparent = no + using = trade_monopoly_tooltip +} + +template trade_good_type_tooltip { + container = { + alwaystransparent = no + datacontext = "[GetPlayer]" + + object_tooltip_pop_out = { + blockoverride "concept_link" { + text = "[trade_good|E]" + } + + blockoverride "header_additions" + { + hbox = { + visible = "[TradeGoodType.HasIcon]" + margin_right = 10 + + icon = { + size = { 40 40 } + texture = "[TradeGoodType.GetIcon]" + } + } + } + + blockoverride "title_text" { + text = "[TradeGoodType.GetNameNoTooltip]" + default_format = "#T" + } + + blockoverride "description_text" + { + max_width = 400 + margin_bottom = 10 + text = "[TradeGoodType.GetDesc]" + default_format = "#F" + } + + blockoverride "extra_data_after_description" { + margin_bottom = 20 + spacing = 4 + + text_multi = { + visible = "[TradeGoodType.IsBasic]" + layoutpolicy_horizontal = expanding + autoresize = yes + max_width = 400 + text = TRADE_GOOD_TYPE_IS_BASIC + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + + hbox = { + layoutpolicy_horizontal = expanding + text_label_left = { + layoutpolicy_horizontal = expanding + text = TRADE_GOOD_TYPE_NEED_CATEGORY + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + } + + block "trade_transactions" {} + + trade_good_category_badge_row = { + datacontext = "[TradeGoodType.GetNeedCategory]" + margin_top = 10 + } + } + + blockoverride "tooltip_text_shortcut" { + visible = no + } + + blockoverride "input_info_text" { + visible = no + } + } + } +} + +container = { + name = "TradeGoodTypeTooltip" + alwaystransparent = no + using = trade_good_type_tooltip +} + +template carried_trade_good_type_tooltip { + using = trade_good_type_tooltip + blockoverride "extra_data" { + cooltip_paragraph = { + visible = "[Not( TradeRoutePlanner.HasSurplusDeficitPair( TradeGoodType.Self ) )]" + text = "TRADE_ROUTE_PLANNER_NO_VALID_TRADE" + } + cooltip_paragraph = { + text = "CARRIED_GOOD_DETAILS" + } + } +} + +template trade_good_type_tooltip_with_transactions { + using = trade_good_type_tooltip + blockoverride "trade_transactions" { + + text_multi = { + visible = "[Not( TradeRoute.HasAnyTransactionForGood( TradeGoodType.Self ) )]" + margin_top = 10 + + text = "NO_TRANSACTIONS" + default_format = "#weak" + autoresize = yes + } + + vbox = { + visible = "[TradeRoute.HasAnyTransactionForGood( TradeGoodType.Self )]" + datamodel = "[TradeRouteItem.GetMarkets]" + layoutpolicy_horizontal = expanding + margin_top = 10 + + item = { + hbox_trade_route_transaction = { + datacontext = "[TradeMarketItem.GetTradeMarket]" + blockoverride "entry_name" { + text = "[TradeMarket.GetName]" + } + } + } + } + } +} + +template trade_good_category_type_tooltip { + container = { + alwaystransparent = no + object_tooltip_pop_out = { + blockoverride "concept_link" { + text = "[trade_category|E]" + } + + blockoverride "header_additions" + { + icon = { + size = { 40 40 } + texture = "[TradeGoodCategory.GetIcon]" + } + } + + blockoverride "title_text" { + text = "[TradeGoodCategory.GetNameNoTooltip]" + default_format = "#T" + } + + blockoverride "description_text" + { + max_width = 550 + text = "[TradeGoodCategory.GetDesc]" + } + + blockoverride "extra_data_after_description" { + spacing = 4 + margin_bottom = 20 + + vbox = { + layoutpolicy_horizontal = expanding + visible = "[DataModelHasItems( TradeGoodCategory.GetTradeGoodTypes )]" + margin_top = 10 + spacing = 10 + + text_label_left = { + layoutpolicy_horizontal = expanding + text = "TRADE_GOOD_CATEGORY_GOODS_HEADER" + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + + fixedgridbox = { + layoutpolicy_horizontal = expanding + datamodel = "[TradeGoodCategory.GetTradeGoodTypes]" + addcolumn = 180 + addrow = 24 + datamodel_wrap = 3 + flipdirection = yes + + item = { + text_single = { + text = "[TradeGoodType.GetNameWithIcon]" + fonttintcolor = "[TooltipInfo.GetTintColor]" + } + } + } + } + + trade_good_category_badge_row = { + visible = "[And( GetPlayer.HasCompanyTitle, GreaterThan_int32( TradeGoodCategory.GetTradeGoodCategoryMaxLevel, '(int32)0' ) )]" + margin_top = 10 + } + } + + blockoverride "tooltip_text_shortcut" { + visible = no + } + + blockoverride "input_info_text" { + visible = no + } + } + } +} + +container = { + name = "TradeGoodCategoryTypeTooltip" + alwaystransparent = no + using = trade_good_category_type_tooltip +} + +template trade_good_category_expertise_tooltip { + container = { + alwaystransparent = no + + object_tooltip_pop_out = { + blockoverride "header_additions" { + hbox = { + margin_right = 7 + margin_left = -7 + + icon = { + texture = "[TradeGoodCategory.GetIcon]" + size = { 40 40 } + } + } + } + + blockoverride "title_text" { + margin = { 0 5 } + text = TRADE_GOOD_CATEGORY_NAME_AND_LEVEL + default_format = "#T" + } + + blockoverride "main_description" { + vbox = { + spacing = 10 + layoutpolicy_horizontal = expanding + + cooltip_paragraph = { + visible = "[StringIsEmpty(TradeGoodCategory.GetTradeGoodCategoryActiveEffectsDesc( Character.Self ))]" + text = "TRADE_EXPERIENCE_NO_EFFECTS" + default_format = "#weak" + } + + cooltip_paragraph = { + visible = "[Not(StringIsEmpty(TradeGoodCategory.GetTradeGoodCategoryActiveEffectsDesc( Character.Self )))]" + text = "[TradeGoodCategory.GetTradeGoodCategoryActiveEffectsDesc( Character.Self )]" + } + + cooltip_paragraph = { + text = "[TradeGoodCategory.GetTradeGoodCategoryXpDesc( Character.Self )]" + } + + + cooltip_paragraph = { + block "trade_expertise_increase_text" { + text = "TRADE_EXPERTISE_INCREASE_DESC" + default_format = "#weak" + } + } + + cooltip_paragraph = { + text = TRADE_WINDOW_TRADE_EXPERIENCE_EFFECTS_PER_LEVEL + tooltip = "[TradeGoodCategory.GetTradeGoodCategoryEffectsPerLevelDesc( Character.Self )]" + } + } + } + + blockoverride "concept_link" {} + + blockoverride "tooltip_bottom_margin" { + margin_bottom = 16 + } + } + } +} + +container = { + name = "TradeGoodCategoryExpertiseTooltip" + alwaystransparent = no + datacontext = "[GetPlayer]" + using = trade_good_category_expertise_tooltip +} + +template merchant_tooltip { + container = { + alwaystransparent = no + object_tooltip_pop_out = { + blockoverride "concept_link" { + text = "[merchant|E]" + } + + blockoverride "title_text" { + text = "[Character.GetNameNoTooltip]" + default_format = "#T" + } + + blockoverride "description_text" + { + max_width = 600 + raw_text = "#D DEBUG #!" + } + } + } +} + +container = { + name = "MerchantTooltip" + alwaystransparent = no + using = merchant_tooltip +} template Scrolltip_Height { max_height = 780 } @@ -11254,3 +12149,80 @@ types ScrollableTooltipTypes { } } } + +template voting_session_tooltip { + container = { + alwaystransparent = no + + object_tooltip_pop_out = { + blockoverride "header_additions" + { + hbox = { + margin_right = 10 + margin_top = 8 + margin_left = -4 + + icon = { + size = { 52 52 } + texture = "gfx/interface/icons/voting_session.dds" + } + } + } + + blockoverride "title_text" { + margin = { 0 5 } + text = "VOTING_SESSION_HEADER" + default_format = "#T" + } + + blockoverride "main_description" { + vbox = { + visible = "[VotingSession.IsValid]" + name = "voting_session_information" + layoutpolicy_horizontal = expanding + + cooltip_paragraph = { + visible = "[VotingSession.IsUndecided( GetPlayer )]" + text = "VOTING_SESSION_UNDECIDED" + } + + cooltip_paragraph = { + visible = "[VotingSession.IsApprovingChange( GetPlayer )]" + text = "VOTING_SESSION_VOTED_APPROVE" + } + + cooltip_paragraph = { + visible = "[VotingSession.IsRejectingChange( GetPlayer )]" + text = "VOTING_SESSION_VOTED_REJECT" + } + + cooltip_paragraph = { + text = "VOTING_SESSION_TIME_REMAINING" + } + + cooltip_paragraph = { + margin_top = 10 + text = "CLICK_TO_VIEW" + } + } + + vbox = { + visible = "[Not( VotingSession.IsValid )]" + name = "finished_voting_session_information" + layoutpolicy_horizontal = expanding + + cooltip_paragraph = { + text = "VOTING_SESSION_RESULT" + } + + cooltip_paragraph = { + margin_top = 10 + text = "CLICK_TO_VIEW" + } + } + } + + blockoverride "concept_link" {} + } + } +} diff --git a/gui/texticons.gui b/gui/texticons.gui index f819b0c92..e92735c78 100644 --- a/gui/texticons.gui +++ b/gui/texticons.gui @@ -467,82 +467,6 @@ texticon = { fontsize = 16 } } -texticon = { - icon = handgonne_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/handgonne.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = NEOW_militia_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/NEOW_militia.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = NEOW_militia_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/NEOW_militia_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = NEOW_militia_skirmisher_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/NEOW_militia_skirmisher.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = horse_gunmen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/horse_gunmen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = chemical_weapons_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/chemical_weapons.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = airship_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/airship.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = super_heavy_infantry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/super_heavy_infantry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} texticon = { icon = horse_archers_icon @@ -1386,15 +1310,6 @@ texticon = { fontsize = 16 } } -texticon = { - icon = tells - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/tells.dds" - fontsize = 16 - } -} texticon = { icon = terraced_hills @@ -1546,15 +1461,6 @@ texticon = { } } -texticon = { - icon = tells_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/tells.dds" - fontsize = 16 - } -} texticon = { icon = terraced_hills_big iconsize = { @@ -2707,6 +2613,106 @@ texticon = { } } +texticon = { + icon = dynasty_house_unity_divided + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/divided.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_fractious + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/fractious.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_independent + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/independent.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_cooperative + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/cooperative.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_concerted + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/concerted.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_rapacious_cs + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/divided.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_opportunistic_cs + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/fractious.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_balanced_cs + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/independent.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_grasping_cs + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/cooperative.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = dynasty_house_unity_ennobled_cs + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/concerted.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + texticon = { icon = damage_icon iconsize = { @@ -3344,17 +3350,25 @@ texticon = { } } - texticon = { - icon = development_icon + icon = prosperity_icon iconsize = { - texture = "gfx/interface/icons/development.dds" + texture = "gfx/interface/icons/prosperity.dds" size = { 24 24 } offset = { 0 6 } fontsize = 16 } } +texticon = { + icon = settlement_size_icon + iconsize = { + texture = "gfx/interface/icons/settlement_size.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} texticon = { icon = activity_hunt @@ -3525,14 +3539,13 @@ texticon = { texticon = { icon = tenet_popularity + iconsize = { texture = "gfx/interface/icons/icon_tenet_popularity.dds" - size = { 25 25 } - offset = { 0 6 } + size = { 30 30 } + offset = { 0 10 } framesize = { 60 60 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - # color = "color_red" + fontsize = 18 } } @@ -4131,9 +4144,19 @@ texticon = { } texticon = { - icon = neow_icon + icon = by_god_alone iconsize = { - texture = "gfx/interface/icons/neow_icon.dds" + texture = "gfx/interface/icons/dlc/dlc_030.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = silk_and_silver + iconsize = { + texture = "gfx/interface/icons/dlc/dlc_031.dds" size = { 25 25 } offset = { 0 6 } fontsize = 16 @@ -4755,44 +4778,6 @@ texticon = { } } -texticon = { - icon = government_type_landless_minority - iconsize = { - texture = "gfx/interface/icons/government_types/landless_minority_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_peasantrepublic - iconsize = { - texture = "gfx/interface/icons/government_types/peasantrepublic_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_urbanrepublic - iconsize = { - texture = "gfx/interface/icons/government_types/urbanrepublic_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = domicile_palace_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/map_icon_urban.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} texticon = { icon = government_type_celestial iconsize = { @@ -4946,6 +4931,15 @@ texticon = { } } +texticon = { + icon = government_type_merchant + iconsize = { + texture = "gfx/interface/icons/government_types/merchant_government.dds" + size = { 28 28 } + offset = { 0 6 } + fontsize = 16 + } +} texticon = { icon = followers_icon @@ -5110,7 +5104,7 @@ texticon = { texticon = { icon = task_develop_county iconsize = { - texture = "gfx/interface/icons/vassal_directives/improve_development.dds" + texture = "gfx/interface/icons/vassal_directives/improve_prosperity.dds" size = { 35 35 } offset = { 0 11 } fontsize = 16 @@ -5207,6 +5201,16 @@ texticon = { } } +texticon = { + icon = icon_scheme_fabricate_hook + iconsize = { + texture = "gfx/interface/icons/scheme_types/icon_scheme_fabricate_hook.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + texticon = { icon = activity_feast iconsize = { @@ -5866,6 +5870,16 @@ texticon = { } } +texticon = { + icon = popular_opinion_icon + iconsize = { + texture = "gfx/interface/icons/popular_opinion.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + texticon = { icon = divergence_icon iconsize = { @@ -5876,6 +5890,213 @@ texticon = { } } +texticon = { + icon = law_approve_icon + iconsize = { + texture = "gfx/interface/icons/laws/law_approve.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = law_dissent_icon + iconsize = { + texture = "gfx/interface/icons/laws/law_dissent.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = law_pass_icon + iconsize = { + texture = "gfx/interface/icons/laws/law_pass_threshold.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_market_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_market.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_goods_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_goods.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_route_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_route.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = distribution_route_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_distribution_route.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_monopoly + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_monopoly.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_monopoly_exploitative + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_monopoly_exploitative.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = competitiveness + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_competitiveness.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = competitiveness_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_competitiveness.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = competitive_pressure_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_competitive_pressure.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_opportunity_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_market.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_post_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_post.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_capacity + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_capacity.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_route_length_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_trade_route_length.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = luxury_contract + iconsize = { + texture = "gfx/interface/icons/character_interactions/icon_luxury_contract.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = unity_contract + iconsize = { + texture = "gfx/interface/icons/character_interactions/house_unity_sword.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = tributary_merchant + iconsize = { + texture = "gfx/interface/icons/subject_contracts/portrait_icons/tributary_merchant.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} +texticon = { + icon = guelph_ghibelline_icon + iconsize = { + texture = "gfx/interface/icons/situation_types/guelph_ghibelline.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} +texticon = { + icon = gg_involvement_icon + iconsize = { + texture = "gfx/interface/icons/situations/guelph_ghibelline/involvement_icon.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} texticon = { icon = badge_icon iconsize = { @@ -5895,7 +6116,6 @@ texticon = { fontsize = 16 } } - texticon = { icon = spiritual_fulfillment_gain_icon iconsize = { @@ -5905,7 +6125,6 @@ texticon = { fontsize = 16 } } - texticon = { icon = spiritual_fulfillment_loss_icon iconsize = { @@ -5916,6 +6135,187 @@ texticon = { } } +texticon = { + icon = republic_commerce_icon + iconsize = { + texture = "gfx/interface/icons/powerful_family_bonus/republic_commerce_small.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = republic_aggrandizement_icon + iconsize = { + texture = "gfx/interface/icons/powerful_family_bonus/republic_aggrandizement_small.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = republic_communal_icon + iconsize = { + texture = "gfx/interface/icons/powerful_family_bonus/republic_communal_small.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = republic_signorial_icon + iconsize = { + texture = "gfx/interface/icons/powerful_family_bonus/republic_signorial_small.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = republic_agitation_icon + iconsize = { + texture = "gfx/interface/icons/powerful_family_bonus/republic_agitation_small.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = trade_acumen + iconsize = { + texture = "gfx/interface/icons/trade/acumen.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = befriend_icon + iconsize = { + texture = "gfx/interface/icons/character_interactions/icon_scheme_befriend.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = charter_icon + iconsize = { + texture = "gfx/interface/icons/trade/icon_merchant_charter.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = free_city_icon + iconsize = { + texture = "gfx/interface/icons/character_interactions/icon_free_city_grant.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = hunter_trait_icon + iconsize = { + texture = "gfx/interface/icons/traits/hunter.dds" + size = { 28 28 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = reveler_trait_icon + iconsize = { + texture = "gfx/interface/icons/traits/reveler.dds" + size = { 28 28 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/independent.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_divided_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/divided.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_fractious_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/fractious.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_independent_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/independent.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_cooperative_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/cooperative.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = company_sentiment_concerted_icon + iconsize = { + texture = "gfx/interface/icons/currencies/house_unity/concerted.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = merchant_company_icon + iconsize = { + texture = "gfx/interface/icons/map_icons/map_icon_company.dds" + size = { 28 28 } + offset = { 0 6 } + fontsize = 16 + } +} + + texticon = { icon = theological_agent_puppet_icon iconsize = { @@ -5925,7 +6325,6 @@ texticon = { fontsize = 16 } } - texticon = { icon = external_theological_agent_puppet_icon iconsize = { @@ -5935,7 +6334,6 @@ texticon = { fontsize = 16 } } - texticon = { icon = external_ruler_puppet_icon iconsize = { @@ -5945,7 +6343,24 @@ texticon = { fontsize = 16 } } - +texticon = { + icon = move_company_icon + iconsize = { + texture = "gfx/interface/icons/character_interactions/icon_contract_escort.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} +texticon = { + icon = commission_trade_route_icon + iconsize = { + texture = "gfx/interface/icons/character_interactions/commission_trade_route_interaction.dds" + size = { 25 25 } + offset = { 0 6 } + fontsize = 16 + } +} texticon = { icon = election_icon iconsize = { @@ -5955,7 +6370,6 @@ texticon = { fontsize = 16 } } - texticon = { icon = study_scripture_icon iconsize = { @@ -5966,6 +6380,136 @@ texticon = { } } +texticon = { + icon = agricultural_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 1 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = woodland_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 2 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = artisan_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 3 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = civic_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 4 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = urban_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 5 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = mining_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 6 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = maritime_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 7 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = religious_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 8 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = commerce_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 9 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = tribal_tax_icon + iconsize = { + texture = "gfx/interface/icons/tax_types.dds" + size = { 25 25 } + framesize = { 128 128 } + frame = 10 + offset = { 0 6 } + fontsize = 16 + } +} + +texticon = { + icon = creditor_icon + iconsize = { + texture = "gfx/interface/icons/laws/company_purpose_creditor_small.dds" + size = { 24 24 } + offset = { 0 6 } + fontsize = 16 + } +} + # the christian church chapters texticon = { icon = pam_the_christian_church_fragile_unity_icon diff --git a/gui/window_faith.gui b/gui/window_faith.gui index b777e59b1..391b5803f 100644 --- a/gui/window_faith.gui +++ b/gui/window_faith.gui @@ -2114,7 +2114,7 @@ types FaithWindow button_standard = { size = { 205 33 } - onclick = "[ToggleGameViewData( 'holy_site', HolySite.Self )]" + onclick = "[HolySite.ToggleView( Faith.Self )]" text = "OPEN_HOLY_SITE_WINDOW" } } @@ -2649,6 +2649,8 @@ types FaithWindow widget = { parentanchor = top|right + position = { 2 15 } + allow_outside = yes block "tenet_badges_layout" { @@ -2658,6 +2660,7 @@ types FaithWindow vbox = { container_tenet_divergence = {} container_tenet_popularity = {} + expand = {} } } @@ -2679,6 +2682,7 @@ types FaithWindow } } } + type widget_tenet_creation_item = widget_tenet_item { datacontext = "[TenetItem.GetTenet]" datacontext = "[TenetItem.GetFaith]" @@ -2770,9 +2774,11 @@ types FaithWindow ### Banner highlight_icon = { - size = { 72 88 } parentanchor = vcenter + size = { 72 88 } texture = "[Faith.GetTenetBackgroundSmallIcon( Rite.Self, TenetType.Self )]" + + allow_outside = yes using = Tenet_Glows_Small @@ -2786,12 +2792,15 @@ types FaithWindow } widget = { - size = { 25 50 } parentanchor = top|right - position = { 6 -2 } + position = { 5 0 } + size = { 25 50 } + + allow_outside = yes vbox = { container_tenet_divergence = {} + container_tenet_popularity = { blockoverride "text_popularity" { visible = no @@ -2817,6 +2826,7 @@ types FaithWindow datacontext = "[GetScriptedGui( 'using_tenet_popularity_gui' )]" visible = "[And( TenetType.IsValid, IsUsingTenetPopularity( Faith ) )]" ignoreinvisible = yes + tooltip = "FAITH_TENET_ITEM_POPULARITY_TT" background = { @@ -2824,11 +2834,11 @@ types FaithWindow spriteType = Corneredtiled spriteborder = { 40 8 } texture_density = 2 + margin = { 5 0 } block "margin_popularity_bg" { margin = { 10 0 } } - margin_bottom = 2 modify_texture = { name = "mask" @@ -2838,6 +2848,7 @@ types FaithWindow blend_mode = alphamultiply } } + icon_tenet_popularity = { name = "tenet_popularity_value_very_popular" datacontext = "[GetScriptedGui( 'tenet_popularity_gui_very_popular' )]" @@ -2876,7 +2887,7 @@ types FaithWindow type icon_tenet_popularity = icon { visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( TenetType.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End )]" alwaystransparent = yes - size = { 25 25 } + size = { 30 30 } texture = "gfx/interface/icons/icon_tenet_popularity.dds" framesize = { 60 60 } } @@ -3045,7 +3056,7 @@ types FaithWindow } blockoverride "tenet_badges_layout" { size = { 70 50 } - position = { 0 10 } + position = { 15 15 } } } } @@ -4029,7 +4040,7 @@ types FaithWindow } } - button_interactions_religion = {} + button_interactions_faith = {} } } } @@ -4151,7 +4162,7 @@ types FaithWindow size = { 60 100% } alwaystransparent = no - button_interactions_religion = { + button_interactions_faith = { parentanchor = right position = { -15 0 } @@ -4229,7 +4240,7 @@ types FaithWindow text_single = { layoutpolicy_horizontal = expanding autoresize = no - text = "[Title.GetNameNoTooltip]" + text = "TITLE_NAME_NO_TOOLTIP" align = nobaseline } } @@ -5677,7 +5688,7 @@ types FaithWindow direction = vertical - button_interactions_religion = { + button_interactions_faith = { glow = { color = { 0 0 0 0.5 } glow_radius = 8 @@ -5834,6 +5845,12 @@ types FaithWindow } } } + + type button_interactions_faith = button_interactions_religion { + blockoverride "num_valid_interactions" { + text = "[FaithWindow.GetNumberOfValidInteractionsWithFilter( Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.AccessParent.GetName ) )]" + } + } type button_interactions_religion = button_interactions { name = "religion" @@ -5863,8 +5880,10 @@ types FaithWindow margin_top = -5 using = Background_Area_Dark } - - text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.AccessParent.GetName ) )]" + + block "num_valid_interactions" { + text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.AccessParent.GetName ) )]" + } default_format = "#glow_color:{0.1,0.1,0.1,1.0}" } } diff --git a/gui/window_intrigue.gui b/gui/window_intrigue.gui index 4c49bdfa5..8d3bb342d 100644 --- a/gui/window_intrigue.gui +++ b/gui/window_intrigue.gui @@ -240,6 +240,7 @@ types IntrigueWindow vbox = { set_parent_size_to_minimum = yes + spacing = 4 background = { using = Background_Area @@ -629,12 +630,6 @@ types IntrigueWindow expand = {} } - text_multi = { - visible = "[And( Scheme.HasTaskContract, InDebugMode )]" - layoutpolicy_horizontal = expanding - raw_text= "#D Contract: [Scheme.GetTaskContract.GetNameNoTooltip]#!" - } - expand = {} hbox = { @@ -652,11 +647,11 @@ types IntrigueWindow spacer = { visible = "[IsDataModelEmpty(Scheme.GetModifiers)]" - size = { 0 10 } + size = { 0 6 } } hbox = { - visible = "[Not( IsDataModelEmpty(Scheme.GetModifiers))]" + visible = "[Not( IsDataModelEmpty(Scheme.GetModifiers) )]" layoutpolicy_horizontal = expanding margin_bottom = 5 margin_left = 10 @@ -721,6 +716,52 @@ types IntrigueWindow } } + button_standard = { + name = "open_push_for_advantages" + visible = "[And( Not(SchemeItem.GetScheme.GetSchemeType.IsBasic), Scheme.GetTaskContract.GetType.HasGroup( 'merchant_trade_opportunity_group' ) )]" + enabled = "[Not( SchemeItem.GetScheme.GetOwner.MakeScope.HasFlag('push_for_advantage_cooldown') )]" + size = { 490 44 } + + onclick = "[PostCommand( SchemeItem.TriggerPushForAdvantages )]" + + tooltip = "SCHEME_WINDOW_OPEN_PUSH_FOR_ADVANTAGES_TT" + + icon = { + parentanchor = vcenter + position = { 2 0 } + size = { 98 56 } + texture = "gfx/interface/window_scheme/scheme_push_illustration.dds" + alpha = 0.6 + scale = 0.7 + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" + blend_mode = alphamultiply + } + } + + icon = { + parentanchor = center + size = { 99.3% 40 } + + texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" + spriteType = Corneredtiled + spriteborder = { 5 5 } + } + + hbox = { + datacontext = "[SchemeItem.GetScheme]" + layoutpolicy_horizontal = expanding + + text_single = { + alwaystransparent = yes + text = "SCHEME_WINDOW_PUSH_FOR_ADVANTAGES_TT" + align = left|nobaseline + max_width = 480 + } + } + } + button_standard = { name = "open_scheme_prep" visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]" @@ -949,7 +990,7 @@ types IntrigueWindowTypes text_label_center = { layoutpolicy_horizontal = expanding - text = "[contract_schemes|E]" + text = "CONTRACT_SCHEMES_CONCEPT" } vbox = { @@ -1049,7 +1090,7 @@ types IntrigueWindowTypes name = "my_political_schemes" datacontext = "[IntrigueWindow.GetPoliticalSchemes]" datacontext = "[IntrigueWindow.GetCharacter]" - visible = "[Or4( Character.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'japan_feudal_government' ), Character.GetTopLiege.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'mandala_government' ) )]" + visible = "[Or3( Character.GetGovernment.HasGovernmentFlag( 'government_is_republic' ), GetSituation( 'guelph_ghibelline' ).IsParticipant( Character.Self ), Or4( Character.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'japan_feudal_government' ), Character.GetTopLiege.GetGovernment.HasMechanic( 'administrative' ), Character.GetGovernment.IsType( 'mandala_government' ) ) )]" layoutpolicy_horizontal = expanding text_label_center = { @@ -1085,6 +1126,47 @@ types IntrigueWindowTypes } } } + + vbox = { + name = "my_trade_schemes" + datacontext = "[IntrigueWindow.GetTradeSchemes]" + datacontext = "[IntrigueWindow.GetCharacter]" + visible = "[Character.GetGovernment.HasRule( 'profit_trade_routes' )]" + layoutpolicy_horizontal = expanding + + text_label_center = { + layoutpolicy_horizontal = expanding + text = "[trade_schemes|E]" + } + + vbox = { + name = "my_own_trade_schemes" + visible = "[SkillSchemeGroup.HasSchemes]" + layoutpolicy_horizontal = expanding + + datamodel = "[SkillSchemeGroup.GetSchemes]" + item = { + widget_own_scheme_item = { + layoutpolicy_horizontal = expanding + } + } + } + + text_multi = { + name = "no_own_trade_schemes" + visible = "[Not( SkillSchemeGroup.HasSchemes )]" + layoutpolicy_horizontal = expanding + minimumsize = { 0 110 } + + text = "SCHEME_WINDOW_NOT_OWNED_SCHEMES" + default_format = "#low;italic" + align = center + + background = { + using = Background_Area + } + } + } } ## Known schemes diff --git a/gui/window_my_realm.gui b/gui/window_my_realm.gui index 14cc6ec0a..da4facac6 100644 --- a/gui/window_my_realm.gui +++ b/gui/window_my_realm.gui @@ -1,6 +1,7 @@ ###################################################### ##################### MY REALM ####################### ###################################################### +@realm_header_text_width = 190 window = { name = "my_realm_window" @@ -97,46 +98,99 @@ window = { ### Default Header widget_my_realm_header = { datacontext = "[GetPlayer]" - visible = "[Not( IsLandlessAdventurer( Character ) )]" + visible = "[Not( IsLandlessAdventurerOrMerchant( Character ) )]" blockoverride "show_overlord" { - visible = "[Character.HasOverlord]" + visible = "[MyRealmWindow.GetCharacter.HasOverlord]" } blockoverride "show_diarchy" {} } - ### Adventurer Header + ### Adventurer / Merchant Header widget_my_realm_header = { datacontext = "[GetPlayer]" - visible = "[IsLandlessAdventurer( Character )]" + visible = "[IsLandlessAdventurerOrMerchant( Character )]" blockoverride "header_subtitle" { - vbox = { - spacing = 2 + hbox = { + layoutpolicy_horizontal = expanding + margin = { 15 15 } + spacing = 10 - text_single = { - name = "realm_type_adv" - text = "you_are_an_adventurer_tt" - align = nobaseline + vbox = { + layoutpolicy_vertical = expanding + coa_realm_small_crown = {} + expand = {} } - text_single = { - text = "MY_REALM_WINDOW_DOMICILE_LOCATION" - align = nobaseline + vbox = { + layoutpolicy_vertical = expanding + spacing = 5 + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 0 6 } + + background = { + using = Background_Title + margin = { 40 0 } + } + + text_single = { + name = "realm_name" + text = "[GetPlayer.GetPrimaryTitle.GetNameNoTooltip|U]" + max_width = 280 + align = nobaseline + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + + text_single = { + name = "realm_type_adv" + text = "[SelectLocalization( IsLandlessAdventurer( Character ), 'you_are_an_adventurer_tt', 'you_are_a_merchant_tt' )]" + max_width = 280 + align = nobaseline + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + + text_single = { + text = "MY_REALM_WINDOW_DOMICILE_LOCATION" + max_width = 280 + align = nobaseline + } + + expand = {} + } + + expand = {} } + + expand = {} } } } ### Tabs hbox = { + visible = "[Not( IsLandlessMerchant( GetPlayer ) )]" layoutpolicy_horizontal = expanding ### Domain Tab button_tab = { + name = "tab_domain" + widgetid = "tab_domain" # reactive_advice_building_needs uses this onclick = "[MyRealmWindow.ResetMapMode]" shortcut = "tab_1" @@ -158,8 +212,13 @@ window = { blockoverride "tab_label" { + layoutpolicy_horizontal = expanding + autoresize = no text = "MY_REALM_WINDOW_HEADER" } + blockoverride "tab_align" { + align = center|nobaseline + } tooltip = "MY_REALM_WINDOW_BOOKMARK_DOMAIN_TT" using = tooltip_ne @@ -169,7 +228,7 @@ window = { button_tab = { onclick = "[MyRealmWindow.ResetMapMode]" shortcut = "tab_2" - visible = "[Not( IsLandlessAdventurer( GetPlayer ) )]" + visible = "[Not( Or( IsLandlessAdventurerOrMerchant( GetPlayer ), IsPatrician(GetPlayer) ) )]" onclick = "[GetVariableSystem.Set( 'bookmark', 'subjects' )]" onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_subjects' )]" @@ -185,8 +244,13 @@ window = { blockoverride "tab_label" { + layoutpolicy_horizontal = expanding + autoresize = no text = "MY_REALM_WINDOW_BODY_TITLE_SUBJECTS" } + blockoverride "tab_align" { + align = center|nobaseline + } tooltip = "MY_REALM_WINDOW_BOOKMARK_SUBJECTS_TT" using = tooltip_ne @@ -211,8 +275,13 @@ window = { blockoverride "tab_label" { + layoutpolicy_horizontal = expanding + autoresize = no text = "MY_REALM_WINDOW_BODY_TITLE_LAWS" } + blockoverride "tab_align" { + align = center|nobaseline + } tooltip = "MY_REALM_WINDOW_BOOKMARK_LAWS_TT" using = tooltip_ne @@ -235,6 +304,94 @@ window = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'succession' )]" } + blockoverride "tab_label" + { + layoutpolicy_horizontal = expanding + autoresize = no + text = "MY_REALM_WINDOW_BODY_TITLE_SUCCESSION" + } + blockoverride "tab_align" { + align = center|nobaseline + } + + tooltip = "MY_REALM_WINDOW_BOOKMARK_SUCCESSION_TT" + using = tooltip_ne + } + } + + hbox = { + layoutpolicy_horizontal = expanding + visible = "[IsLandlessMerchant( GetPlayer )]" + + state = { + name = "auto_select_merchant_tab" + trigger_when = "[And( Or3( Not( GetVariableSystem.Exists( 'bookmark' ) ), GetVariableSystem.HasValue( 'bookmark', 'domain' ), GetVariableSystem.HasValue( 'bookmark', 'subjects' ) ), Not( MyRealmWindow.IsActiveTab( 'change_company_purpose' ) ) )]" # to be safer, when we switch characters + on_finish = "[GetVariableSystem.Set('bookmark', 'laws')]" + on_finish = "[MyRealmWindow.SetActiveTab( 'bookmark_laws' )]" + } + + state = { + name = "auto_open_change_company_purpose" + trigger_when = "[MyRealmWindow.IsActiveTab( 'change_company_purpose' )]" + on_finish = "[GetVariableSystem.Set('bookmark', 'laws')]" + on_finish = "[MyRealmWindow.SetActiveTab( 'bookmark_laws' )]" + on_finish = "[GetVariableSystem.Set('change_company_purpose', 'yes')]" + } + + ### Overview Tab + button_tab = { + name = "merchant_overview_tab_tutorial_uses_this" + onclick = "[MyRealmWindow.ResetMapMode]" + shortcut = "tab_1" + + onclick = "[GetVariableSystem.Set( 'bookmark', 'laws' )]" + onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_laws' )]" + + alwaystransparent = "[Or(GetVariableSystem.HasValue( 'bookmark', 'laws' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" + down = "[Or(GetVariableSystem.HasValue( 'bookmark', 'laws' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" + + blockoverride "tab_label" + { + text = "MY_REALM_WINDOW_BODY_TITLE_OVERVIEW" + } + + tooltip = "MY_REALM_WINDOW_BOOKMARK_OVERVIEW_TT" + using = tooltip_ne + } + + ### Patronage Tab + button_tab = { + name = "merchant_patronage_tab_tutorial_uses_this" + onclick = "[MyRealmWindow.ResetMapMode]" + shortcut = "tab_2" + + onclick = "[GetVariableSystem.Set( 'bookmark', 'patronage' )]" + onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_patronage' )]" + + alwaystransparent = "[GetVariableSystem.HasValue( 'bookmark', 'patronage' )]" + down = "[GetVariableSystem.HasValue( 'bookmark', 'patronage' )]" + + blockoverride "tab_label" + { + text = "MY_REALM_WINDOW_BODY_TITLE_PATRONAGE" + } + + tooltip = "MY_REALM_WINDOW_BOOKMARK_PATRONAGE_TT" + using = tooltip_ne + } + + ### Succession Tab + button_tab = { + onclick = "[MyRealmWindow.ResetMapMode]" + shortcut = "tab_3" + + onclick = "[GetVariableSystem.Set( 'bookmark', 'succession' )]" + onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_succession' )]" + + ### Alwaystransparent state to not be able to click tab button again once it's active to keep animations from playing again + down = "[GetVariableSystem.HasValue( 'bookmark', 'succession' )]" + alwaystransparent = "[GetVariableSystem.HasValue( 'bookmark', 'succession' )]" + blockoverride "tab_label" { text = "MY_REALM_WINDOW_BODY_TITLE_SUCCESSION" @@ -265,11 +422,62 @@ window = { datacontext = "[MyRealmWindow.GetKurultaiSuccession]" visible = "[And( GetVariableSystem.HasValue( 'bookmark', 'succession' ), Not( KurultaiSuccession.IsValid ) )]" } + + vbox = { + layoutpolicy_horizontal = expanding + visible = "[And( GetVariableSystem.HasValue( 'bookmark', 'patronage' ), IsLandlessMerchant( GetPlayer ) )]" + + vbox_merchant_patron_section = { + name = "merchant_patron_section_tutorial_uses_this" + widgetid = "merchant_patron_section_tutorial_uses_this" + margin = { 16 20 } + } + + datacontext = "[MyRealmWindow.GetPatronBeneficiaries]" + + hbox = { + layoutpolicy_horizontal = expanding + min_height = 40 + margin = { 16 0 } + background = { using = Background_Label } + + text_single = { + text = "REALM_MERCHANT_PATRON_BENEFICIARIES" + align = nobaseline + autoresize = no + layoutpolicy_horizontal = expanding + } + + dropdown_sort_characterlist = { + name = "patron_beneficiary_sort_options" + } + + expand = {} + + # TODO_GDP_CODE TIT-73117 flip sorting for beneficiaries + button_standard = { + name = "sort_order" + size = { 25 25 } + + using = tooltip_ne + onclick = "[BeneficiaryCharacterList.RevertSortOrder]" + + button_icon = { + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/sort_icon.dds" + framesize = { 66 66 } + # frame = "[BoolTo1And2( )]" + + alwaystransparent = yes + } + } + } + } } ### MY_REALM MAIN CONTENTS / BODY scrollbox = { - name = "my_realm_body" + name = "my_realm_body_tutorial_uses_this" datacontext = "[MyRealmWindow.GetCharacter]" layoutpolicy_horizontal = expanding @@ -304,6 +512,20 @@ window = { } } + background = { + visible = "[IsLandlessMerchant( GetPlayer )]" + texture = "gfx/interface/illustrations/event_scenes/gdp_merchant_domicile.dds" + fittype = end + alpha = 0.5 + + using = Mask_Rough_Edges + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_corner.dds" + blend_mode = alphamultiply + } + } + blockoverride "scrollbox_margins" { margin = { 0 5 } margin_left = 10 @@ -328,6 +550,167 @@ window = { vbox_my_realm_laws_body = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'laws' )]" } + + vbox = { + visible = "[GetVariableSystem.HasValue( 'bookmark', 'patronage' )]" + layoutpolicy_horizontal = expanding + + fixedgridbox = { + layoutpolicy_horizontal = expanding + addcolumn = 538 + addrow = 135 + datacontext = "[MyRealmWindow.GetPatronBeneficiaries]" + datamodel = "[BeneficiaryCharacterList.GetList]" + + item = { + widget = { + datacontext = "[CharacterListItem.GetCharacter]" + size = { 538 120 } + + vbox = { + layoutpolicy_horizontal = expanding + spacing = 8 + + background = { + using = Background_Area_With_Header + } + + text_single = { + layoutpolicy_horizontal = expanding + autoresize = no + size = { 0 30 } + margin = { 10 5 } + + text = "BENEFICIARY_NAME_TITLE" + using = Font_Size_Medium + align = nobaseline + } + + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + margin_right = 16 + + portrait_head_small = {} + + coa_house_small = { + datacontext = "[Character.GetHouse]" + + icon_house_relation = { + parentanchor = bottom|right + position = { -4 -4 } + size = { 18 18 } + } + } + + spacer = { + size = { 8 0 } + } + + vbox = { + layoutpolicy_horizontal = expanding + spacing = 4 + + hbox = { + layoutpolicy_horizontal = expanding + + spacing = 4 + + widget_company_size = {} + + spacer = { + size = { 6 0 } + } + + hbox_merchant_stat = { + datacontext = "[BeneficiaryCharacterList.GetCompetitivenessTooltip( CharacterListItem.GetIndex )]" + blockoverride "icon" { + texture = "gfx/interface/icons/trade/icon_trade_competitiveness.dds" + } + blockoverride "text" { + text = "[ValueBreakdown.GetValue]" + } + tooltipwidget = { + widget_value_breakdown_tooltip = {} + } + } + + hbox_merchant_stat = { + tooltip = "REALM_MERCHANT_ROUTES_TT" + blockoverride "icon" { + texture = "gfx/interface/icons/trade/icon_trade_route.dds" + } + blockoverride "text" { + text = "[GetDataModelSize(Character.GetTradeRoutes)]" + default_format = "#high" + } + } + + hbox_merchant_stat = { + visible = "[MerchantHasCharterFromScopePatron( Character, GetPlayer.GetSuzerain )]" + tooltip = "BENEFICIARY_PATRON_CHARTER_HOLDER_TT" + blockoverride "icon" { + texture = "gfx/interface/icons/trade/icon_merchant_charter.dds" + } + blockoverride "text" { + text = "" + } + } + + expand = {} + + button_round_interaction = { + name = "put_on_notice_interaction" + blockoverride "icon" { + icon_placeholder = { # TODO_GDP_ART TIT-73120 flat icon for put on notice + size = { 100% 100% } + } + } + } + } + + hbox = { + visible = "[Not( Character.IsLocalPlayer )]" + layoutpolicy_horizontal = expanding + spacing = 8 + + hbox = { + visible = "[Character.GetHouse.IsValid]" + + text_single = { + datacontext = "[Character.GetHouse.GetHouseRelationWith( GetPlayer.GetHouse )]" + visible = "[HouseRelation.IsValid]" + text = "[HouseRelation.GetLevel.GetName]" + } + } + + divider_light = { + visible = "[Character.HasRelationTo( GetPlayer )]" + layoutpolicy_vertical = expanding + } + + text_single = { + visible = "[Character.HasRelationTo( GetPlayer )]" + layoutpolicy_horizontal = expanding + autoresize = no + text = "[Character.GetRelationToStringShort( GetPlayer )]" + tooltip = "[Character.GetRelationToStringExtended( GetPlayer )]" + } + + expand = {} + } + + } + + expand = {} + } + + } + } + } + } + } } } @@ -340,6 +723,99 @@ window = { } window_mass_directives = {} + + window_instant_law_picker = { + blockoverride "instant_law_visible" + { + visible = "[GetVariableSystem.Exists('change_company_purpose')]" + } + + blockoverride "instant_law_on_hide" + { + on_finish = "[GetVariableSystem.Clear('selected_company_purpose')]" + } + + blockoverride "instant_law_common_desc" + { + text = "SHORT_COMPANY_PURPOSE_DESC" + } + + blockoverride "header_text" { + text = "CHANGE_COMPANY_PURPOSE_TITLE" + } + blockoverride "button_close" { + onclick = "[GetVariableSystem.Clear('change_company_purpose')]" + } + + blockoverride "instant_law_laws_datamodel" + { + datamodel = "[MyRealmWindow.GetRealmLaws]" + } + + blockoverride "instant_law_item_visible" + { + visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'company_purpose' )]" + } + + blockoverride "instant_law_selected_law_check" + { + visible = "[Or( EqualTo_string( GuiLaw.GetLaw.GetKey, GetVariableSystem.Get( 'selected_company_purpose' ) ), And(Not(GetVariableSystem.Exists( 'selected_company_purpose') ), GuiLaw.IsEnacted ))]" + } + + blockoverride "instant_law_cancel_button" + { + onclick = "[GetVariableSystem.Clear('change_company_purpose')]" + } + + blockoverride "instant_law_confirm_button" + { + onclick = "[GetVariableSystem.Clear('change_company_purpose')]" + text = "CHANGE_PURPOSE_BUTTON" + } + + blockoverride "instant_law_item_button" + { + alwaystransparent = "[GetVariableSystem.HasValue('selected_company_purpose', GuiLaw.GetLaw.GetKey)]" + down = "[GetVariableSystem.HasValue('selected_company_purpose', GuiLaw.GetLaw.GetKey)]" + onclick = "[GetVariableSystem.Set('selected_company_purpose', GuiLaw.GetLaw.GetKey)]" + } + + blockoverride "instant_law_item_extra_space" + { + visible = no + } + blockoverride "instant_law_picker_label_width" + { + max_width = 490 + } + blockoverride "instant_law_picker_spacing" + { + spacing = 15 + } + blockoverride "instant_law_wrap_count" + { + wrap_count = 2 + } + blockoverride "law_icon_size" + { + size = { 170 170 } + } + blockoverride "law_icon_button_size" + { + size = { 170 170 } + } + blockoverride "instant_law_picker_margin" + { + margin = { 0 16 } + } + blockoverride "law_icons_background_area" + { + background = { + using = Background_Area + margin = { -55 0 } + } + } + } } ###################################################### @@ -354,56 +830,44 @@ template My_Realm_Cell_Size types MyRealmWindow { - type my_realm_coa_tiny_item = coa_title_tiny_crown - { - datacontext = "[TitleItem.GetTitle]" - parentanchor = left|vcenter - using = tooltip_ne + type acumen_bar_tooltip = container { + alwaystransparent = no - icon_title_has_laws_status = {} + object_tooltip_pop_out = { + blockoverride "header_additions" { + icon = { + size = { 48 48 } + texture = "gfx/interface/icons/trade/acumen.dds" + } + } - icon = { - name = "is_nomad" - visible = "[TitleItem.GetTitle.IsNomad]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_nomad.dds" + blockoverride "title_text" { + text = "MERCHANT_ACUMEN_TITLE" + default_format = "#T" + } + + blockoverride "main_description" { + cooltip_paragraph = { + block "tooltip_text" {} + default_format = "#high" + margin_top = -10 + } + } + + blockoverride "concept_link" { + text = "[acumen|E]" + } } } type widget_my_realm_header = widget_header_with_picture { layoutpolicy_horizontal = expanding - blockoverride "header_text" { - text = "[GetPlayer.GetPrimaryTitle.GetNameNoTooltip|U]" - } - - blockoverride "size" { - size = { 100% 130 } - } - blockoverride "header_size" { - size = { 100% 40 } - } - - blockoverride "header_position" { - position = { 0 -12 } - } - - blockoverride "header_background_visibility" { visible = no } - blockoverride header_pattern_visibility { - visible = no - } - - blockoverride header_label_visibility { - visible = yes - } - blockoverride "illustration_texture" { texture = "gfx/interface/skinned/illustrations/header_illustrations/header_my_realm.dds" @@ -420,8 +884,6 @@ types MyRealmWindow vbox = { parentanchor = center - margin_top = 36 - max_width = 350 ### MY_REALM HEADER CENTER vbox = { @@ -430,232 +892,412 @@ types MyRealmWindow ### SUBTITLE vbox = { + layoutpolicy_horizontal = expanding block "header_subtitle" { hbox = { datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' )]" + layoutpolicy_horizontal = expanding + margin = { 15 15 } + spacing = 10 - ### AUTHORITY ICON - authority_icon = {} - - hbox = { - margin_left = 5 - spacing = 15 - - text_single = { - name = "realm_type" - text = "MY_REALM_WINDOW_TYPE" - max_width = 160 - align = nobaseline - } - - text_single = { - text = "REALM_WINDOW_SIZE" - align = nobaseline - max_width = 140 - tooltip = "REALM_WINDOW_SIZE_TT" - } + vbox = { + layoutpolicy_vertical = expanding + coa_realm_small_crown = {} + expand = {} } - } - vbox = { - spacing = -8 - margin_bottom = 12 + vbox = { + visible = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + spacing = 5 + + hbox = { + layoutpolicy_horizontal = expanding + + hbox = { + spacing = 5 + + background = { + using = Background_Title + margin = { 40 0 } + } + + button_icon_highlight = { + visible = "[And( Not(IsNomad( Character )), Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid )]" + datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" + size = { 32 32 } + texture = "[Law.GetIcon]" + tooltipwidget = { general_law_tooltip = {} } + using = tooltip_ws + } + + icon = { + visible = "[And( IsNomad( Character ), Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid )]" + datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" + size = { 32 32 } + texture = "[Law.GetIcon]" + tooltipwidget = { general_law_tooltip = {} } + using = tooltip_ws + } + + text_single = { + name = "realm_name" + text = "[GetPlayer.GetPrimaryTitle.GetNameNoTooltip|U]" + max_width = @realm_header_text_width + align = nobaseline + } + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 5 + + icon = { + size = { 26 26 } + texture = "[Character.GetGovernment.GetIcon]" + } + + text_single = { + name = "realm_type" + text = "MY_REALM_WINDOW_TYPE" + max_width = @realm_header_text_width + align = nobaseline + } + + expand = {} + } + + ## TERM LIMIT (a.k.a. In power at least until..) + hbox = { + visible = "[GetPlayer.HasRealmTermEndDate]" + layoutpolicy_horizontal = expanding + + text_single = { + text = "MY_REALM_WINDOW_TERM_END_DATE" + default_format = "#weak" + } + expand = {} + } + + hbox = { + visible = "[Not( GetPlayer.HasRealmTermEndDate )]" + layoutpolicy_horizontal = expanding + + text_single = { + text = "REALM_WINDOW_SIZE" + align = nobaseline + max_width = @realm_header_text_width + tooltip = "REALM_WINDOW_SIZE_TT" + } + expand = {} + + } + + expand = {} + } + + vbox = { + visible = "[Not( Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid )]" + layoutpolicy_vertical = expanding + layoutpolicy_horizontal = expanding + + hbox = { + layoutpolicy_horizontal = expanding + + hbox = { + spacing = 5 + margin = { 0 6 } + + background = { + using = Background_Title + margin = { 40 0 } + } + + text_single = { + name = "realm_name" + text = "[GetPlayer.GetPrimaryTitle.GetNameNoTooltip|U]" + max_width = @realm_header_text_width + align = nobaseline + } + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 5 + + icon = { + size = { 24 24 } + texture = "[Character.GetGovernment.GetIcon]" + } + + text_single = { + name = "realm_type" + text = "MY_REALM_WINDOW_TYPE" + max_width = @realm_header_text_width + align = nobaseline + } + expand = {} + } + + ## TERM LIMIT (a.k.a. In power at least until..) + hbox = { + visible = "[GetPlayer.HasRealmTermEndDate]" + layoutpolicy_horizontal = expanding + + text_single = { + text = "MY_REALM_WINDOW_TERM_END_DATE" + default_format = "#weak" # TODO_CD_TGP: investigate why this was debug pink + } + expand = {} + } + + hbox = { + visible = "[Not( GetPlayer.HasRealmTermEndDate )]" + layoutpolicy_horizontal = expanding + text_single = { + text = "REALM_WINDOW_SIZE" + align = nobaseline + max_width = @realm_header_text_width + tooltip = "REALM_WINDOW_SIZE_TT" + } + expand = {} + } + + expand = {} + } + + expand = {} ## OVERLORD INFO vbox = { name = "overlord" - margin_top = -8 - - block "show_overlord" - { - visible = no - } - - hbox = { - datacontext = "[MyRealmWindow.GetCharacter.GetOverlord]" - spacing = 4 - - button_icon_highlight = { - visible = "[Not(IsNomad( Character ))]" - datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" - size = { 32 32 } - texture = "[Law.GetIcon]" - tooltipwidget = { general_law_tooltip = {} } - using = tooltip_ws - } - - icon = { - visible = "[IsNomad( Character )]" - datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" - size = { 32 32 } - texture = "[Law.GetIcon]" - tooltipwidget = { general_law_tooltip = {} } - using = tooltip_ws - } - - text_single = { - visible = "[GetPlayer.HasSuzerain]" - text = "MY_REALM_WINDOW_SUZERAIN_NAME" - align = nobaseline - max_width = 280 - } - - text_single = { - visible = "[GetPlayer.HasLiege]" - text = "MY_REALM_WINDOW_LIEGE_NAME" - align = nobaseline - max_width = 280 - } - - coa_realm_tiny_crown = {} - } - } - - ## REGENCY / DIARCHY - hbox = { - datacontext = "[MyRealmWindow.GetCharacter]" + layoutpolicy_vertical = expanding layoutpolicy_horizontal = expanding + spacing = 4 - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - margin = { 40 -3 } - margin_left = 10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal + hbox = { + block "show_overlord" + { + visible = no } + + datacontext = "[MyRealmWindow.GetCharacter.GetOverlord]" + layoutpolicy_horizontal = expanding + + hbox = { + background = { + using = Background_Title + margin = { 40 0 } + } + + button_icon_highlight = { + visible = "[And( Not(IsNomad( Character )), Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid )]" + datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" + size = { 32 32 } + texture = "[Law.GetIcon]" + tooltipwidget = { general_law_tooltip = {} } + using = tooltip_ws + } + + icon = { + visible = "[And( IsNomad( Character ), Character.GetActiveLawInGroupWithFlag( 'realm_law' ).IsValid )]" + datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" + size = { 32 32 } + texture = "[Law.GetIcon]" + tooltipwidget = { general_law_tooltip = {} } + using = tooltip_ws + } + + text_single = { + visible = "[GetPlayer.HasLiege]" + text = "MY_REALM_WINDOW_LIEGE_NAME" + align = nobaseline + max_width = @realm_header_text_width + } + + text_single = { + visible = "[GetPlayer.HasSuzerain]" + text = "MY_REALM_WINDOW_SUZERAIN_NAME" + align = nobaseline + max_width = @realm_header_text_width + } + } + + expand = {} } - block "show_diarchy" - { - visible = no - } + ## REGENCY / DIARCHY + hbox = { + datacontext = "[MyRealmWindow.GetCharacter]" + datacontext = "[MyRealmWindow.GetKurultaiSuccession]" + layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - button_round = { - name = "open_future_diarchy_tutorial_uses_this" - widgetid = "open_future_diarchy_tutorial_uses_this" - size = { 32 32 } - - onclick = "[ToggleGameViewData( 'diarchy', Character.GetID )]" - tooltip = "DIARCHY_WINDOW_OPEN_TOOLTIP" - - button_icon = { - parentanchor = center - position = { 0 -1 } - size = { 24 24 } - alwaystransparent = yes - texture = "gfx/interface/window_regency/scale_of_power.dds" + block "show_diarchy" + { + visible = no } + + hbox = { + spacing = 5 + + background = { + using = Background_Title + margin = { 40 0 } + alpha = 0.6 + } + + button_round = { + name = "open_future_diarchy_tutorial_uses_this" + widgetid = "open_future_diarchy_tutorial_uses_this" + size = { 32 32 } + + onclick = "[ToggleGameViewData( 'diarchy', Character.GetID )]" + tooltip = "DIARCHY_WINDOW_OPEN_TOOLTIP" + + button_icon = { + parentanchor = center + position = { 0 -1 } + size = { 24 24 } + alwaystransparent = yes + texture = "gfx/interface/window_regency/scale_of_power.dds" + } + } + + hbox = { + datacontext = "[Character.GetDiarchy]" + visible = "[KurultaiSuccession.IsValid]" + + text_single = { + visible = "[Diarchy.IsValid]" + + text = "DIARCHY_WINDOW_STATUS_ACTIVE_DIARCHY" + align = nobaseline + max_width = @realm_header_text_width + } + + text_single = { + visible = "[Not( Diarchy.IsValid )]" + + text = "DIARCHY_WINDOW_STATUS_INACTIVE_DIARCHY" + align = nobaseline + max_width = @realm_header_text_width + } + } + + hbox = { + datacontext = "[Character.GetDiarchy]" + visible = "[Not( KurultaiSuccession.IsValid )]" + + text_multi = { + visible = "[Diarchy.IsValid]" + autoresize = yes + max_width = @realm_header_text_width + max_height = 60 + + text = "DIARCHY_WINDOW_STATUS_ACTIVE_DIARCHY" + align = nobaseline + } + + text_multi = { + visible = "[Not( Diarchy.IsValid )]" + autoresize = yes + max_width = @realm_header_text_width + max_height = 60 + + text = "DIARCHY_WINDOW_STATUS_INACTIVE_DIARCHY" + align = nobaseline + } + } + } + + expand = {} } hbox = { - datacontext = "[Character.GetDiarchy]" + name = "kurultai_succession_stability" + datacontext = "[MyRealmWindow.GetKurultaiSuccession]" + visible = "[KurultaiSuccession.IsValid]" + layoutpolicy_horizontal = expanding + spacing = 5 - text_single = { - visible = "[Diarchy.IsValid]" + tooltipwidget = { + widget_kurultai_succession_tooltip = {} + } - text = "DIARCHY_WINDOW_STATUS_ACTIVE_DIARCHY" - align = nobaseline - max_width = 400 + ### HEADER RIGHT WIDGET + widget = { + size = { 32 32 } + allow_outside = yes + + ### KURULTAI SUCCESSION ICON PEACEFUL + widget = { + visible = "[KurultaiSuccession.IsStable]" + parentanchor = center + size = { 100% 100% } + + icon = { + parentanchor = center + size = { 100% 100% } + texture = "gfx/interface/window_realm/succession_icon_background_peaceful.dds" + } + + icon_flat_standard = { + parentanchor = center + size = { 22 22 } + texture = "gfx/interface/icons/flat_icons/succession_peaceful.dds" + } + } + + ### KURULTAI SUCCESSION ICON CHAOTIC + widget = { + visible = "[Not( KurultaiSuccession.IsStable )]" + parentanchor = center + size = { 100% 100% } + + icon = { + parentanchor = center + size = { 100% 100% } + texture = "gfx/interface/window_realm/succession_icon_background_chaotic.dds" + } + + icon_flat_standard_red = { + parentanchor = center + size = { 22 22 } + texture = "gfx/interface/icons/flat_icons/succession_chaotic.dds" + } + } } text_single = { - visible = "[Not( Diarchy.IsValid )]" - - text = "DIARCHY_WINDOW_STATUS_INACTIVE_DIARCHY" + visible = "[KurultaiSuccession.IsStable]" + max_width = @realm_header_text_width + text = "MY_REALM_WINDOW_KURULTAI_STABLE" align = nobaseline - margin_right = 10 } + + text_single = { + visible = "[Not( KurultaiSuccession.IsStable )]" + max_width = @realm_header_text_width + text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" + align = nobaseline + } + + expand = {} } expand = {} - } } } } - - ### BELOW SUBTITLE - - expand = {} - } - } - - ### HEADER LEFT WIDGET - widget = { - size = { 64 99 } - allow_outside = yes - - ### COAT OF ARMS - coa_realm_medium_crown = { - position = { 30 0 } - } - } - - ### HEADER RIGHT WIDGET - widget = { - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - visible = "[KurultaiSuccession.IsValid]" - parentanchor = right|vcenter - position = { -25 0 } - size = { 84 84 } - allow_outside = yes - name = "kurultai_succession_stability" - - tooltipwidget = { - widget_kurultai_succession_tooltip = {} - } - - ### KURULTAI SUCCESSION ICON PEACEFUL - widget = { - visible = "[KurultaiSuccession.IsStable]" - parentanchor = center - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_peaceful.dds" - } - - icon_flat_standard = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_peaceful.dds" - } - } - - ### KURULTAI SUCCESSION ICON CHAOTIC - widget = { - visible = "[Not( KurultaiSuccession.IsStable )]" - parentanchor = center - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_chaotic.dds" - } - - icon_flat_standard_red = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_chaotic.dds" - } } } } @@ -941,6 +1583,7 @@ types MyRealmWindow margin_left = 10 text_label_left = { + autoresize = no layoutpolicy_horizontal = expanding text = "[SelectLocalization(Character.HasSuzerain, 'MY_REALM_WINDOW_FROM_TO_SUZERAIN', 'MY_REALM_WINDOW_FROM_TO_LIEGE')]" @@ -1281,77 +1924,169 @@ types MyRealmWindow name = "realm_laws" widgetid = "realm_panel_top_laws" datacontext = "[GetPlayer]" - datamodel = "[MyRealmWindow.GetRealmLaws]" layoutpolicy_horizontal = expanding - using = Animation_Tab_Switch + # using = Animation_Tab_Switch - item = { + ### MERCHANT LAW ITEM + vbox = { + datacontext = "[MyRealmWindow.GetCompanySizeLawGroup]" + layoutpolicy_horizontal = expanding + visible = "[IsLandlessMerchant( GetPlayer )]" + spacing = 16 + margin_bottom = -4 + + # Company Size vbox = { - name = "realm_law_group" #tutorial uses this - datacontext = "[GuiLawGroup.GetLawGroup]" - visible = "[And( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law' ), GuiLawGroup.IsAvailable )]" - margin_top = 10 - spacing = 10 + name = "merchant_company_size_tutorial_uses_this" + layoutpolicy_horizontal = expanding + margin = { 0 8 } - text_label_center = { - visible = "[IsLandlessAdventurer( Character )]" - text = "[camp_purpose|E]" + widget = { + size = { 530 0 } } - text_label_center = { - visible = "[And(GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ), Not(IsLandlessAdventurer( Character )) )]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME" + hbox = { + layoutpolicy_horizontal = expanding + + margin = { 16 0 } + + background = { using = Background_Label_Center } + + expand = {} + + text_single = { + min_height = 30 + max_width = 300 + text = "REALM_COMPANY_SIZE_LABEL" + align = nobaseline + } + + expand = {} } - text_label_center = { - visible = "[And(Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' )), Not(IsLandlessAdventurer( Character )) )]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME_AND_LEVEL" + spacer = { + size = { 0 25 } } - ### REGULAR LAW ITEMS - fixedgridbox = { - name = "regular_law_items" - visible = "[And( Not( IsLandlessAdventurer( Character ) ), Or(Not( IsNomad( Character ) ), Not( GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) ) ) )]" + widget = { + size = { 0 0 } + hbox = { + datacontext = "[Character.GetDomicile]" + allow_outside = yes + position = { -180 105 } + size = { 360 20 } + spacing = 0 - addcolumn = 55 - addrow = 55 - flipdirection = yes - layoutanchor = bottomleft + progressbar_standard = { + size = { 120 20 } + min = 0 + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_2_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" - datamodel = "[GuiLawGroup.GetLaws]" + icon = { + parentanchor = left + widgetanchor = left + size = { 6 20 } + allow_outside = yes + texture = "gfx/interface/colors/white.dds" + using = Mask_Rough_Edges + alpha = 0.5 + } - item = { - button_realm_law = {} + blockoverride "progress_textures" { + progresstexture = "gfx/interface/progressbars/progress_domicile_banner.dds" + noprogresstexture = "gfx/interface/progressbars/progress_black.dds" + } + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_2" + } + } + } + } + progressbar_standard = { + size = { 120 20 } + min = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_2_THRESHOLD' )]" + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_3_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" + allow_outside = yes + + + icon = { + parentanchor = left|vcenter + widgetanchor = center + size = { 6 20 } + allow_outside = yes + texture = "gfx/interface/colors/white.dds" + using = Mask_Rough_Edges + alpha = 0.3 + } + + blockoverride "progress_textures" { + progresstexture = "gfx/interface/progressbars/progress_domicile_banner.dds" + noprogresstexture = "gfx/interface/progressbars/progress_black.dds" + } + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_3" + } + } + } + } + progressbar_standard = { + size = { 120 20 } + min = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_3_THRESHOLD' )]" + max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_4_THRESHOLD' )]" + value = "[FixedPointToFloat( Domicile.GetAcumen )]" + allow_outside = yes + + icon = { + parentanchor = left|vcenter + widgetanchor = center + size = { 6 20 } + allow_outside = yes + texture = "gfx/interface/colors/white.dds" + using = Mask_Rough_Edges + alpha = 0.3 + } + + icon = { + parentanchor = right + widgetanchor = right + size = { 6 20 } + allow_outside = yes + texture = "gfx/interface/colors/white.dds" + using = Mask_Rough_Edges + alpha = 0.5 + } + + blockoverride "progress_textures" { + progresstexture = "gfx/interface/progressbars/progress_domicile_banner.dds" + noprogresstexture = "gfx/interface/progressbars/progress_black.dds" + } + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_4" + } + } + } + } } } - ### ADVENTURER LAW ITEMS + fixedgridbox = { - name = "camp_purpose_items" - visible = "[IsLandlessAdventurer( Character )]" + name = "company_size_levels" - addcolumn = 170 - addrow = 170 - datamodel_wrap = 3 - flipdirection = yes - - datamodel = "[GuiLawGroup.GetLaws]" - - item = { - widget_realm_law_camp_purpose = {} - } - } - - ### NOMAD LAW ITEMS - fixedgridbox = { - name = "nomad_dominance_items" - visible = "[And( IsNomad( Character ), GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) )]" - - addcolumn = 78 - addrow = 80 + addcolumn = 120 + addrow = 96 setitemsizefromcell = yes datamodel_wrap = 5 flipdirection = yes @@ -1360,20 +2095,271 @@ types MyRealmWindow datamodel = "[GuiLawGroup.GetLaws]" item = { - button_realm_law_nomad_dominance = { + button_realm_law_merchant_size = { datacontext = "[GuiLawGroup.GetLevelByIndex( PdxGuiWidget.GetIndexInDataModel ).GetLaw]" } } } - spacer = { - visible = "[IsNomad( Character )]" - size = { 0 5 } + # Hover targets for the acumen bar, which renders behind the law buttons and so cannot receive the mouse itself. + hbox = { + datacontext = "[Character.GetDomicile]" + size = { 360 29 } + spacing = 0 + + widget = { + size = { 120 29 } + alwaystransparent = no + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_2" + } + } + } + } + + widget = { + size = { 120 29 } + alwaystransparent = no + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_3" + } + } + } + } + + widget = { + size = { 120 29 } + alwaystransparent = no + + tooltipwidget = { + acumen_bar_tooltip = { + blockoverride "tooltip_text" { + text = "MERCHANT_ACUMEN_BAR_TOOLTIP_LEVEL_4" + } + } + } + } } + spacer = { - visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" - size = { 0 3 } + size = { 0 21 } + } + + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + background = { + using = Background_Area_Dark + margin = { 0 5 } + alpha = 0.5 + + modify_texture = { + texture = "gfx/interface/component_masks/mask_dlc.dds" + blend_mode = alphamultiply + } + } + + vbox = { + datacontext = "[Character.GetDomicile]" + margin = { 16 0 } + spacing = 5 + + + hbox = { + spacing = 5 + text_single = { + text = "MERCHANT_TOTAL_ACUMEN" + } + text_single = { + text = "MERCHANT_ACUMEN_DISPLAY" + } + } + + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + icon = { + size = { 30 30 } + texture = "gfx/interface/icons/trade/acumen.dds" + } + text_single = { + text = "MERCHANT_ACUMEN_PER_MONTH" + tooltipwidget = { + widget_value_breakdown_tooltip = { + datacontext = "[Character.GetMonthlyAcumenBreakdown]" + } + } + } + expand = {} + } + } + expand = {} + } + } + + # domicile + vbox_domicile_button = { + name = "merchant_domicile_tutorial_uses_this" + } + + + text_label_center = { + layoutpolicy_horizontal = expanding + text = "MY_REALM_SUBHEADER_LAWS" + } + } + + vbox = { + layoutpolicy_horizontal = expanding + datamodel = "[MyRealmWindow.GetRealmLaws]" + + item = { + vbox = { + name = "realm_law_group" #tutorial uses this + datacontext = "[GuiLawGroup.GetLawGroup]" + visible = "[And3( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law' ), GuiLawGroup.IsAvailable, Not( IsLandlessMerchant( Character ) ) )]" + margin = { 0 10 } + spacing = 10 + + text_label_center = { + visible = "[IsLandlessAdventurer( Character )]" + text = "[camp_purpose|E]" + } + + text_label_center = { + visible = "[And( Not( IsLandlessAdventurerOrMerchant( Character ) ), And( Not( GuiLawGroup.GetLawGroup.HasFlag( 'republican_type_law' ) ), GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ) ) )]" + datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" + text = "MY_REALM_WINDOW_LAW_NAME" + } + + text_label_center = { + visible = "[And( Not( IsLandlessAdventurerOrMerchant( Character ) ), And( Not( GuiLawGroup.GetLawGroup.HasFlag( 'republican_type_law' ) ), Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ) ) ) )]" + datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" + text = "MY_REALM_WINDOW_LAW_NAME_AND_LEVEL" + } + + text_label_center = { + visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'republican_type_law' )]" + text = "[GetLawGroup('republic_type').GetName]" + } + + ### REGULAR LAW ITEMS + fixedgridbox = { + name = "regular_law_items" + visible = "[And( Not( IsLandlessAdventurer( Character ) ), And( Or( Not( IsNomad( Character ) ), Not( GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) ) ), And( Not( GuiLawGroup.GetLawGroup.HasFlag( 'republican_type_law' ) ), Not( IsLandlessMerchant( Character ) ) ) ) )]" + + addcolumn = 55 + addrow = 55 + flipdirection = yes + # layoutanchor = bottomleft + + datamodel = "[GuiLawGroup.GetLaws]" + + item = { + button_realm_law = {} + } + } + + ### ADVENTURER LAW ITEMS + fixedgridbox = { + name = "camp_purpose_items" + visible = "[IsLandlessAdventurer( Character )]" + + addcolumn = 170 + addrow = 170 + datamodel_wrap = 3 + flipdirection = yes + + datamodel = "[GuiLawGroup.GetLaws]" + + item = { + widget_realm_law_camp_purpose = {} + } + } + + ### NOMAD LAW ITEMS + fixedgridbox = { + name = "nomad_dominance_items" + visible = "[And( IsNomad( Character ), GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) )]" + + addcolumn = 78 + addrow = 80 + setitemsizefromcell = yes + datamodel_wrap = 5 + flipdirection = yes + layoutanchor = bottomleft + + datamodel = "[GuiLawGroup.GetLaws]" + + item = { + button_realm_law_nomad_dominance = { + datacontext = "[GuiLawGroup.GetLevelByIndex( PdxGuiWidget.GetIndexInDataModel ).GetLaw]" + } + } + } + + ### REPUBLIC LAW ITEM + button_standard_clean = { + datacontext = "[GuiLawGroup.GetLawGroup]" + datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" + visible = "[LawGroup.HasFlag( 'republican_type_law' )]" + enabled = "[LawGroup.CanRulerChange(GetPlayer)]" + tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" + size = { 480 160 } + + onclick = "[OpenLawChangeWindow( GuiLawGroup.Self )]" + + background = { + using = Background_Area + } + + icon = { + parentanchor = center + size = { 160 160 } + texture = "[Law.GetIcon]" + } + + widget = { + parentanchor = bottom + size = { 100% 30 } + + background = { + using = Background_Area_Dark + } + + text_single = { + parentanchor = center + position = { 3 -2 } + + text = "[Law.GetNameNoTooltip]" + default_format = "#high;EMP" + max_width = 150 + + margin = { 5 0 } + } + } + + tooltipwidget = { + general_law_tooltip = {} + } + } + + spacer = { + visible = "[Or( IsNomad( Character ), LawGroup.HasFlag( 'republican_type_law' ) )]" + size = { 0 5 } + } + + spacer = { + visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" + size = { 0 3 } + } } } } @@ -1386,7 +2372,7 @@ types MyRealmWindow texture = "[Law.GetIcon]" modify_texture = { - visible = "[And( Not( IsNomad( Character ) ), Not( IsLandlessAdventurer( Character ) ) )]" + visible = "[And( And( Not( IsNomad( Character ) ), Not( IsLandlessMerchant( Character ) ) ), Not( IsLandlessAdventurer( Character ) ) )]" texture = "gfx/interface/colors/colors_textured.dds" blend_mode = add framesize = { 96 96 } @@ -1818,6 +2804,114 @@ types MyRealmWindow } } + type button_realm_law_merchant_size = button { + size = { 125 125 } + allow_outside = yes + + down = "[GuiLaw.IsEnacted]" + onclick = "[GuiLaw.Enact]" + enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" + + tooltipwidget = { + pass_law_tooltip = { + blockoverride "concept_link" { + text = "[company_size|E]" + } + } + } + + using = tooltip_ws + + icon = { + visible = "[GuiLaw.IsEnacted]" + parentanchor = center + size = { 98 98 } + + texture = "gfx/interface/icons/flat_icons/circle.dds" + + using = Animation_Glow_Pulse + + glow = { + glow_radius = 16 + using = Glow_Standard + using = Color_Bright_Yellow + } + } + + icon_round_button_base = { + parentanchor = center + size = { 98 98 } + } + + highlight_icon = { + visible = "[GuiLaw.IsEnacted]" + parentanchor = center + size = { 110 110 } + + texture = "gfx/interface/window_realm/merchant_frame_active.dds" + } + + highlight_icon = { + parentanchor = center + size = { 90 90 } + texture = "[Law.GetIcon]" + } + + widget = { + parentanchor = bottom + position = { 0 3 } + size = { 94 16 } + allow_outside = yes + + flowcontainer = { + parentanchor = center + position = { 13 0 } + spacing = 9 + allow_outside = yes + visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'company_size' )]" + + widget = { + size = { 10 10 } + + icon_button_decorative = { + size = { 43 43 } + parentanchor = center + alwaystransparent = yes + } + + icon_flat_standard_gold = { + parentanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" + texture = "gfx/interface/icons/building_types/building_level_01.dds" + size = { 20 20 } + } + + icon_flat_standard_gold = { + parentanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" + texture = "gfx/interface/icons/building_types/building_level_02.dds" + size = { 20 20 } + } + + icon_flat_standard_gold = { + parentanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" + texture = "gfx/interface/icons/building_types/building_level_03.dds" + size = { 20 20 } + } + + icon_flat_standard_gold = { + parentanchor = center + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" + texture = "gfx/interface/icons/building_types/building_level_04.dds" + size = { 20 20 } + } + } + } + + } + } + type vbox_kurultai_inherited_titles_group_foldout = vbox { layoutpolicy_horizontal = expanding margin = { 10 0 } @@ -2416,12 +3510,14 @@ types MyRealmWindow datacontext = "[TitleItem.GetTitle]" coa_title_tiny_crown = { - using = tooltip_ne parentanchor = center } - icon_title_has_laws_status = {} + icon_title_has_laws_status = { + parentanchor = bottom|right + position = { 5 0 } + } } } } @@ -2443,7 +3539,10 @@ types MyRealmWindow using = tooltip_ne } - icon_title_has_laws_status = {} + icon_title_has_laws_status = { + parentanchor = bottom|right + position = { 5 0 } + } } } } @@ -2483,26 +3582,16 @@ types MyRealmWindow using = tooltip_ne } - icon_title_has_laws_status = {} + icon_title_has_laws_status = { + parentanchor = bottom|right + position = { 5 0 } + } } } } } } - type icon_title_succession = icon { - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - - type icon_title_has_laws_status = icon_title_succession { - name = "has_laws" - visible = "[Title.HasLaws]" - - parentanchor = bottom|right - position = { 5 0 } - } - type vbox_succession_content_default = vbox { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding @@ -2789,7 +3878,7 @@ types MyRealmWindow text_single = { name = "vassal_stances_that_prefer" - visible = "[And( Not( IsLandlessAdventurer( GetPlayer ) ), Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) )]" + visible = "[And( And( Not( IsLandlessAdventurer( GetPlayer ) ), Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) ), Not( IsLandlessMerchant( GetPlayer ) ) )]" layoutpolicy_horizontal = expanding text = "MRW_HEIR_PREFERRED" @@ -2898,6 +3987,7 @@ types MyRealmWindow spacing = 10 text_label_center = { + max_width = 500 text = "[Character.GetDomicile.GetYourDomicileText]" default_format = "#low" using = Font_Size_Medium @@ -2906,421 +3996,360 @@ types MyRealmWindow vbox_domicile_button = {} } - datamodel = "[MyRealmWindow.GetDomainItems]" + vbox = { + layoutpolicy_horizontal = expanding + datamodel = "[MyRealmWindow.GetTradeMarketDomainItems]" - item = { - vbox = { - name = "duchy_group" - layoutpolicy_horizontal = expanding + item = { - hbox = { - spacing = 5 + vbox = { + name = "trade_market_group" + layoutpolicy_horizontal = expanding - background = { - margin_top = -10 - margin_bottom = -5 - margin_left = 20 - margin_right = 40 + vbox = { + layoutpolicy_horizontal = expanding + margin = { 8 0 } - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 + button_trade_market_group_header = { + name = "trade_market_heading_tutorial_uses_this" + datacontext = "[TradeMarketGroup.GetTradeMarket]" + } - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply + hbox = { + margin = { 0 8 } + layoutpolicy_horizontal = expanding + button_group = { + layoutpolicy_horizontal = expanding + onclick = "[TradeMarketGroup.ToggleExpanded]" + + flowcontainer = { + spacing = 5 + + widget = { + size = { 18 22 } + + button_expand = { + parentanchor = center + frame = "[Select_int32( TradeMarketGroup.IsExpanded, '(int32)2', '(int32)1' )]" + } + } + + text_single = { + text = "MY_REALM_WINDOW_MARKET_COUNTIES" + default_format = "#low" + align = nobaseline + } + } + } } } - coa_title_tiny_crown = { - datacontext = "[DuchyGroup.GetDuchy]" + vbox = { + name = "county_group" + visible = "[TradeMarketGroup.IsExpanded]" + datamodel = "[TradeMarketGroup.GetCounties]" + layoutpolicy_horizontal = expanding - using = tooltip_ws - } + margin_top = 10 + margin_left = 15 + margin_bottom = 10 + spacing = 20 - text_single = { - text = "[DuchyGroup.GetDuchy.GetNameNoTooltip|U]" - default_format = "#low" - max_width = 420 - using = Font_Size_Medium - } - } + item = { - vbox = { - name = "county_group" - datamodel = "[DuchyGroup.GetCounties]" - layoutpolicy_horizontal = expanding - - spacing = 20 - - item = { - - vbox = { - datacontext = "[CountyGroup.GetCounty]" - datacontext = "[CountyGroup.GetCapitalProvince.GetCounty]" - - layoutpolicy_horizontal = expanding - - hbox = { + vbox = { + datacontext = "[CountyGroup.GetCounty]" + datacontext = "[CountyGroup.GetCapitalProvince.GetCounty]" datacontext = "[CountyGroup.AccessBreakdowns]" + datacontext = "[CountyGroup.AccessComplexBars]" + layoutpolicy_horizontal = expanding - margin_left = 5 - margin_right = 10 - spacing = 7 + background = { + margin_top = 10 + margin_bottom = 5 + margin_left = 20 + margin_right = 40 - coa_title_tiny = {} + texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" + spriteType = Corneredtiled + spriteborder = { 40 8 } + texture_density = 1 - text_single = { + modify_texture = { + name = "mask" + texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" + spriteType = Corneredstretched + spriteborder = { 0 0 } + blend_mode = alphamultiply + } + } + + hbox = { layoutpolicy_horizontal = expanding - text = "TITLE_NAME_NO_TOOLTIP" - max_width = 180 - } + layoutpolicy_vertical = expanding - expand = {} + spacing = 10 + margin_bottom = 10 - text_single = { - text = "[development|E]: [County.GetDevelopmentLevel|V]" - max_width = 140 + coa_title_tiny = {} - tooltipwidget = { - county_development_tooltip_container = {} - } - } - - text_single = { - name = "tutorial_highlight_control" - text = "[CountyGroup.GetCountyControlColored]" - max_width = 130 - - tooltipwidget = { - county_control_tooltip_container = {} - } - } - } - - vbox = { - datamodel = "[CountyGroup.GetHoldings]" - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 10 - margin_bottom = 5 - spacing = 3 - - item = { vbox = { - name = "holding_realm_list_item" #ra_merit_governor_holdings_list uses this - - datacontext = "[HoldingItem.GetHolding]" layoutpolicy_horizontal = expanding - - background = { - texture = "[HoldingItem.GetHolding.GetIllustration]" - alpha = 0.7 - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - button_standard_clean = { - layoutpolicy_horizontal = expanding - size = { 0 80 } - - onclick = "[HoldingItem.OnClick]" - - tooltipwidget = { holding_tooltip_click = {} } - - background = { - visible = "[Holding.IsSelected]" - using = Background_Button_Illustration - } - - using = Background_Vignette_Button - using = Holding_Mouse_Entry - - vbox = { - margin = { 10 2 } - - hbox = { - name = "holding_header" - layoutpolicy_horizontal = expanding - spacing = 6 - - hbox = { - spacing = 6 - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - margin_left = 15 - margin_right = 25 - margin_top = 0 - margin_bottom = 5 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon = { - name = "realm_capital_icon" - visible = "[HoldingItem.IsRealmCapital]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - - tooltip = "REALM_CAPITAL_TOOLTIP" - } - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_NAME" - } - } - - expand = {} - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_TAX" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetTaxTooltip]" - } - - text_single = { - visible = "[Holding.GetHolder.HasBarterGoods]" - text = "MY_REALM_WINDOW_HOLDING_BARTER_GOODS" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetBarterGoodsIncomeTooltip]" - } - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_LEVY" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetLeviesTooltip]" - } - } - - hbox = { - name = "holding_buildings" - layoutpolicy_horizontal = expanding - minimumsize = { 0 40 } - - vbox = { - tooltip = "MY_REALM_WINDOW_BUILDING_CONSTRUCTION_TT" - using = tooltip_ne - - text_single = { - text = "[HoldingItem.GetStatusText]" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard = { - name = "building_progressbar" - visible = "[HoldingItem.GetHolding.IsConstructionInProgress]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - maximumsize = { -1 15 } - value = "[HoldingItem.GetHolding.GetConstructionProgress]" - direction = horizontal - } - - expand = {} - } - } - - text_single = { - visible = "[HoldingItem.GetHolding.CanConstructAnyBuilding(GetPlayer)]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" - default_format = "#P" - } - - expand = {} - } - } - } - } - } - } - - vbox = { - visible = "[DataModelHasItems(CountyGroup.GetEmptyHoldings)]" - layoutpolicy_horizontal = expanding - - spacing = 5 - margin_left = 10 - margin_right = 10 - - button_group = { - layoutpolicy_horizontal = expanding - - onclick = "[CountyGroup.ToggleExpanded]" - - flowcontainer = { - spacing = 5 - - widget = { - size = { 18 22 } - - button_expand = { - parentanchor = center - frame = "[Select_int32( CountyGroup.IsExpanded, '(int32)2', '(int32)1' )]" - } - } + layoutpolicy_vertical = expanding + margin_top = -10 text_single = { - text = "ME_REALM_WINDOW_EMPTY_HOLDINGS" - default_format = "#low" - align = nobaseline + layoutpolicy_horizontal = expanding + text = "TITLE_NAME_NO_TOOLTIP" + } + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + hbox = { + text_single = { + text = MY_REALM_WINDOW_PROSPERITY + max_width = 130 + tooltipwidget = { + county_prosperity_tooltip_container = {} + } + } + } + + hbox = { + layoutpolicy_horizontal = expanding + text_single = { + name = "tutorial_highlight_control" + text = MY_REALM_WINDOW_CONTROL + max_width = 130 + tooltipwidget = { + county_control_cooltip = { + blockoverride "county_context" { + datacontext = "[CountyDataBreakdowns.AccessControl( County.Self )]" + datacontext = "[CountyComplexBars.AccessCountyControlBar( County.Self )]" + } + } + } + } + } + + hbox = { + layoutpolicy_horizontal = expanding + hbox = { + spacing = 5 + + icon = { + texture = "gfx/interface/icons/popular_opinion_levels.dds" + framesize = { 64 64 } + frame = "[Add_int32( County.GetOpinionLevel, '(int32)1' )]" + size = { 15 15 } + } + + text_single = { + text = MY_REALM_WINDOW_POPULAR_OPINION + max_width = 130 + } + + tooltipwidget = { + county_opinion_cooltip = { + datacontext = "[CountyDataBreakdowns.AccessOpinion( County.Self )]" + datacontext = "[CountyComplexBars.AccessPopularOpinionBar( County.Self )]" + # Unlike the other two cooltips, county_opinion does not use HoldingView, so we provide the context directly without overriding it + } + } + } + } + expand = {} } } } - expand = {} - vbox = { - datamodel = "[CountyGroup.GetEmptyHoldings]" - visible = "[CountyGroup.IsExpanded]" + datamodel = "[CountyGroup.GetHoldings]" layoutpolicy_horizontal = expanding - - margin_left = 23 + margin_left = 10 + margin_right = 10 margin_bottom = 5 - spacing = 4 + spacing = 3 item = { vbox = { + name = "holding_realm_list_item" #ra_merit_governor_holdings_list uses this + datacontext = "[HoldingItem.GetHolding]" layoutpolicy_horizontal = expanding - button_standard = { - datacontext = "[HoldingItem.GetHolding]" + background = { + texture = "[HoldingItem.GetHolding.GetIllustration]" + alpha = 0.7 + fittype = centercrop + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" + blend_mode = alphamultiply + } + + modify_texture = { + texture = "gfx/interface/component_overlay/overlay_effect.dds" + blend_mode = overlay + } + } + + button_standard_clean = { layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 45 } + size = { 0 80 } onclick = "[HoldingItem.OnClick]" - down = "[Holding.IsSelected]" + tooltipwidget = { holding_tooltip_click = {} } + + background = { + visible = "[Holding.IsSelected]" + using = Background_Button_Illustration + } + + using = Background_Vignette_Button using = Holding_Mouse_Entry - tooltipwidget = { - holding_tooltip_click = {} - } + vbox = { + margin = { 12 2 } - using = tooltip_ne - - widget = { - parentanchor = right|top - position = { -2 2 } - size = { 350 41 } - scissor = yes - - icon = { - name = "illustration" - parentanchor = right|top - size = { 180 90 } - texture = "[HoldingItem.GetHolding.GetProvince.GetTerrain.GetIllustration]" - alpha = 0.4 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - icon = { - parentanchor = center - size = { 99% 92% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - hbox = { - margin = { 10 0 } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 - - text_single = { - text = "[HoldingItem.GetBarony.GetNameNoTierNoTooltip]" - } - - expand = {} - } - - expand = {} - - vbox = { - visible = "[HoldingItem.GetHolding.IsConstructionInProgress]" - layoutpolicy_vertical = expanding - - margin = { 0 4 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[HoldingItem.GetStatusText]" - - align = nobaseline - } - - expand = {} + hbox = { + name = "holding_header" + layoutpolicy_horizontal = expanding + spacing = 6 hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 3 + spacing = 6 - progressbar_standard = { - name = "building_progressbar" - alwaystransparent = yes - direction = horizontal - size = { 180 12 } - value = "[HoldingItem.GetHolding.GetConstructionProgress]" + background = { + texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" + spriteType = Corneredtiled + spriteborder = { 40 8 } + texture_density = 2 + + margin_left = 15 + margin_right = 25 + margin_top = 0 + margin_bottom = 5 + + modify_texture = { + name = "mask" + texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" + blend_mode = alphamultiply + mirror = horizontal + } } + + icon = { + name = "realm_capital_icon" + visible = "[HoldingItem.IsRealmCapital]" + size = { 25 25 } + texture = "gfx/interface/icons/icon_capital.dds" + framesize = { 60 60 } + frame = 2 + + tooltip = "REALM_CAPITAL_TOOLTIP" + } + + text_single = { + text = "MY_REALM_WINDOW_HOLDING_NAME" + max_width = 240 + } + } + + expand = {} + + text_single = { + datacontext = "[Holding.GetProvince]" + + text = "MY_REALM_WINDOW_HOLDING_PROVINCE_SIZE" + alwaystransparent = yes + default_format = "#high" + + tooltipwidget = { + province_size_cooltip = { + blockoverride "county_and_province_context" { + datacontext = "[CountyDataBreakdowns.AccessProvinceSizeChange( Province.Self )]" + datacontext = "[CountyComplexBars.AccessProvinceSizeBar( Province.Self )]" + } + } + } + } + + text_single = { + text = "MY_REALM_WINDOW_HOLDING_TAX" + alwaystransparent = yes + default_format = "#high" + + datacontext = "[HoldingItem.GetTaxBreakdown]" + tooltip_visible = "[ValueBreakdown.HasTooltip]" + tooltipwidget = { + widget_value_breakdown_tooltip = { } + } + } + + text_single = { + visible = "[Holding.GetHolder.HasBarterGoods]" + text = "MY_REALM_WINDOW_HOLDING_BARTER_GOODS" + alwaystransparent = yes + default_format = "#high" + + tooltip = "[Holding.GetBarterGoodsIncomeTooltip]" + } + + text_single = { + text = "MY_REALM_WINDOW_HOLDING_LEVY" + alwaystransparent = yes + default_format = "#high" + + tooltip = "[Holding.GetLeviesTooltip]" } } - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 + hbox = { + name = "holding_buildings" + layoutpolicy_horizontal = expanding + minimumsize = { 0 40 } + ignoreinvisible = yes - text_label_right = { - visible = "[HoldingItem.GetHolding.CanConstructAnyBuilding(GetPlayer)]" - layoutpolicy_vertical = fixed - text = "MY_REALM_WINDOW_CONSTRUCT_HOLDING" + vbox = { + visible = "[And( Holding.IsHoldingConstructionInProgress, Not( Holding.CanConstructAnyDistrict( GetPlayer ) ) )]" + tooltip = "MY_REALM_WINDOW_BUILDING_CONSTRUCTION_TT" + using = tooltip_ne + + text_single = { + text = "[HoldingItem.GetStatusText]" + align = nobaseline + } + + hbox = { + layoutpolicy_horizontal = expanding + + progressbar_standard = { + name = "building_progressbar" + layoutpolicy_horizontal = expanding + alwaystransparent = yes + + size = { 0 15 } + maximumsize = { -1 15 } + min = 0 + max = 100 + value = "[Holding.GetConstructionProgress]" + direction = horizontal + } + + expand = {} + } + } + + text_single = { + visible = "[Holding.CanConstructAnyDistrict( GetPlayer )]" + layoutpolicy_horizontal = expanding + + text = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" default_format = "#P" } @@ -3331,14 +4360,195 @@ types MyRealmWindow } } } - } - expand = {} + vbox = { + visible = "[DataModelHasItems(CountyGroup.GetEmptyHoldings)]" + layoutpolicy_horizontal = expanding + + spacing = 5 + margin_left = 10 + margin_right = 10 + + button_group = { + layoutpolicy_horizontal = expanding + + onclick = "[CountyGroup.ToggleExpanded]" + + flowcontainer = { + spacing = 5 + + widget = { + size = { 18 22 } + + button_expand = { + parentanchor = center + frame = "[Select_int32( CountyGroup.IsExpanded, '(int32)2', '(int32)1' )]" + } + } + + text_single = { + text = "ME_REALM_WINDOW_EMPTY_HOLDINGS" + default_format = "#low" + align = nobaseline + } + } + } + + expand = {} + + vbox = { + visible = "[CountyGroup.IsExpanded]" + datamodel = "[CountyGroup.GetEmptyHoldings]" + layoutpolicy_horizontal = expanding + + margin_left = 23 + margin_bottom = 5 + spacing = 4 + + item = { + vbox = { + datacontext = "[HoldingItem.GetHolding]" + layoutpolicy_horizontal = expanding + + button_standard = { + datacontext = "[HoldingItem.GetHolding]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + minimumsize = { 0 45 } + + onclick = "[HoldingItem.OnClick]" + down = "[Holding.IsSelected]" + + using = Holding_Mouse_Entry + + tooltipwidget = { + holding_tooltip_click = {} + } + + using = tooltip_ne + + widget = { + parentanchor = right|top + position = { -2 2 } + size = { 350 41 } + scissor = yes + + icon = { + name = "illustration" + parentanchor = right|top + size = { 180 90 } + texture = "[HoldingItem.GetHolding.GetProvince.GetTerrain.GetIllustration]" + alpha = 0.4 + mirror = horizontal + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" + blend_mode = alphamultiply + } + } + } + + icon = { + parentanchor = center + size = { 99% 92% } + + texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" + spriteType = Corneredtiled + spriteborder = { 5 5 } + } + + hbox = { + margin = { 10 0 } + + vbox = { + layoutpolicy_vertical = expanding + margin_top = 2 + + text_single = { + text = "[HoldingItem.GetBarony.GetNameNoTierNoTooltip]" + } + + expand = {} + } + + expand = {} + + vbox = { + visible = "[HoldingItem.GetHolding.IsHoldingConstructionInProgress]" + layoutpolicy_vertical = expanding + + margin = { 0 4 } + + text_single = { + layoutpolicy_horizontal = expanding + text = "[HoldingItem.GetStatusText]" + + align = nobaseline + } + + expand = {} + + hbox = { + layoutpolicy_horizontal = expanding + margin_bottom = 3 + + progressbar_standard = { + name = "building_progressbar" + alwaystransparent = yes + direction = horizontal + size = { 180 12 } + value = "[HoldingItem.GetHolding.GetConstructionProgress]" + } + } + } + + vbox = { + layoutpolicy_vertical = expanding + margin_top = 2 + + text_label_right = { + visible = "[HoldingItem.GetHolding.CanConstructAnyDistrict(GetPlayer)]" + layoutpolicy_vertical = fixed + text = "MY_REALM_WINDOW_CONSTRUCT_HOLDING" + default_format = "#P" + } + + expand = {} + } + } + } + } + } + } + } + + expand = {} + } } } } } } + + vbox = { + visible = "[GreaterThanOrEqualTo_int32( Character.GetNumTradePosts, '(int32)1' )]" + + text_label_center = { + text = MY_REALM_WINDOW_TRADE_POST_HEADER + default_format = "#low" + using = Font_Size_Medium + } + + vbox = { + datamodel = "[Character.GetTradePosts]" + datacontext = "[AccessHoldingView]" + spacing = 5 + + item = { + vbox_trade_post_item = {} + } + } + } } type vbox_my_realm_subjects_top = vbox { @@ -3456,6 +4666,7 @@ types MyRealmWindow layoutpolicy_horizontal = expanding spacing = 10 margin = { 10 0 } + margin_bottom = 10 button_standard = { size = { 50 30 } @@ -3562,11 +4773,11 @@ types MyRealmWindow using = Animation_Tab_Switch vbox = { + visible = "[Not(GetVariableSystem.Exists('compact_vassal_list_realm'))]" + layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding - visible = "[Not(GetVariableSystem.Exists('compact_vassal_list_realm'))]" - fixedgridbox = { datacontext = "[MyRealmWindow.GetPowerfulVassals]" datamodel = "[CharacterSelectionList.GetList]" @@ -3634,11 +4845,10 @@ types MyRealmWindow } vbox = { + visible = "[GetVariableSystem.Exists('compact_vassal_list_realm')]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding - visible = "[GetVariableSystem.Exists('compact_vassal_list_realm')]" - vbox_compact_subjects = { datacontext = "[MyRealmWindow.GetPowerfulVassals]" blockoverride "text" { @@ -3676,8 +4886,9 @@ types MyRealmWindow } type vbox_compact_subjects = vbox { - layoutpolicy_horizontal = expanding visible = "[DataModelHasItems(CharacterSelectionList.GetList)]" + layoutpolicy_horizontal = expanding + oncreate = "[BindFoldOutContext]" oncreate = "[PdxGuiFoldOut.Unfold]" @@ -3689,9 +4900,9 @@ types MyRealmWindow } vbox = { + visible = "[PdxGuiFoldOut.IsUnfolded]" margin_left = 5 layoutpolicy_horizontal = expanding - visible = "[PdxGuiFoldOut.IsUnfolded]" fixedgridbox_compact_subjects = {} } @@ -3760,7 +4971,7 @@ types MyRealmWindow text_single = { visible = "[MyRealmWindow.HasHeir]" - margin = { 0 4 } + margin = { 0 10 } text = "MRW_YOUR_PLAYER_HEIR" align = nobaseline @@ -3811,7 +5022,7 @@ types MyRealmWindow text_single = { name = "vassal_stances_that_prefer" datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" - visible = "[And( Not( IsLandlessAdventurer( GetPlayer ) ), And( MyRealmWindow.HasHeir, Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) ) )]" + visible = "[And3( Not( IsLandlessAdventurerOrMerchant( GetPlayer ) ), MyRealmWindow.HasHeir, Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) )]" layoutpolicy_horizontal = expanding autoresize = no @@ -3826,6 +5037,7 @@ types MyRealmWindow text_single = { datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" + visible = "[And3( Not( IsLandlessAdventurerOrMerchant( GetPlayer ) ), MyRealmWindow.HasHeir, Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) )]" text = "[MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self )]" align = nobaseline @@ -3903,49 +5115,202 @@ types MyRealmWindow expand = {} } + type vbox_trade_post_item = vbox { + datacontext = "[District.GetHolding]" + datacontext = "[Holding.GetProvince.GetTitle]" + datacontext = "[Title.GetTradeMarket]" + layoutpolicy_horizontal = expanding + + button_standard = { + size = { 520 120 } + + onclick = "[OpenGameViewData( 'holding_view', Holding.GetProvince )]" + onclick = "[HoldingView.SetViewToTradePostDistrict]" + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + margin = { 2 5 } + spacing = 2 + + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + margin_top = 10 + + background = { + using = Background_Trade_Good_Banner_Right + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + modify_texture = { + texture = "gfx/interface/colors/grey.dds" + blend_mode = overlay + alpha = 0.2 + } + } + + hbox = { + margin_left = 10 + coa_title_tiny = {} + + text_single = { + text = "[Holding.GetProvince.GetCounty.GetName]" + layoutpolicy_horizontal = expanding + margin_bottom = 20 + } + } + + expand = {} + + text_single = { + text = [TradeMarket.GetName] + margin_right = 10 + margin_bottom = 20 + } + } + + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + margin_left = 10 + + ## TODO_GDP: Tooltip this with the info we want + hbox = { + datamodel = "[District.GetBuildings]" + + item = { + icon_building = { + size = { 30 30 } + texture = "[District.GetType.GetPrimaryBuildingType.GetTypeIcon]" + } + } + } + + expand = {} + } + + expand = {} + + text_single = { + visible = "[District.CanConstructInDistrict( GetPlayer )]" + layoutpolicy_horizontal = expanding + margin_left = 10 + margin_bottom = 10 + + text = "MY_REALM_WINDOW_CONSTRUCT_IN_TRADE_POST" + default_format = "#P" + } + } + } + } + type widget_my_realm_law_item = widget { datacontext = "[GuiLawGroup]" + datacontext = "[GuiLawGroup.GetLawGroup]" size = { 246 62 } background = { using = Background_Area } + button_standard_clean = { + visible = "[And3( Not( LawGroup.HasFlag( 'treasury_budget_law' ) ), IsGameViewOpen( 'law_change' ), GetVariableSystem.HasValue( 'law_change_open_group', LawGroup.GetKey ) )]" + size = { 100% 100% } + + onclick = "[ToggleGameViewData( 'law_change', GuiLawGroup.Self )]" + onclick = "[GetVariableSystem.Clear( 'law_change_open_group' )]" + block "law_enabled" { + enabled = "[LawGroup.CanRulerChange(GetPlayer)]" + } + block "law_tooltip_disabled" { + tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" + } + } + + button_standard_clean = { + visible = "[And( Not( LawGroup.HasFlag( 'treasury_budget_law' ) ), Not( And( IsGameViewOpen( 'law_change' ), GetVariableSystem.HasValue( 'law_change_open_group', LawGroup.GetKey ) ) ) )]" + size = { 100% 100% } + + onclick = "[OpenGameViewData( 'law_change', GuiLawGroup.Self )]" + onclick = "[GetVariableSystem.Set( 'law_change_open_group', LawGroup.GetKey )]" + block "law_enabled" { + enabled = "[LawGroup.CanRulerChange(GetPlayer)]" + } + block "law_tooltip_disabled" { + tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" + } + } + hbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding margin = { 10 0 } vbox = { + layoutpolicy_horizontal = expanding + text_single = { layoutpolicy_horizontal = expanding - raw_text = "[GuiLawGroup.GetLawGroup.GetNameSingular]:" + autoresize = no + size = { 0 22 } + + text = "MY_REALM_WINDOW_LAW_GROUP_NAME" align = nobaseline - max_width = 170 + alwaystransparent = yes } text_single = { layoutpolicy_horizontal = expanding - text = "[GuiLawGroup.GetCurrentLevel.GetLaw.GetName]" + autoresize = no + size = { 0 22 } + + block "law_name" { + text = "[GuiLawGroup.GetCurrentLevel.GetLaw.GetName]" + } align = nobaseline default_format = "#high" - max_width = 170 + alwaystransparent = yes } } expand = {} - button_round = { - datacontext = "[GuiLawGroup.GetLawGroup]" + vbox = { visible = "[Not( LawGroup.HasFlag( 'treasury_budget_law' ) )]" enabled = "[LawGroup.CanRulerChange(GetPlayer)]" tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" - size = { 30 30 } - button_change = { + layoutpolicy_vertical = expanding + widget = { size = { 24 24 } - parentanchor = center - onclick = "[OpenGameViewData( 'succession_law_change', GuiLawGroup.Self )]" + + button_change = { + size = { 24 24 } + visible = "[And( IsGameViewOpen( 'law_change' ), GetVariableSystem.HasValue( 'law_change_open_group', LawGroup.GetKey ) )]" + onclick = "[ToggleGameViewData( 'law_change', GuiLawGroup.Self )]" + onclick = "[GetVariableSystem.Clear( 'law_change_open_group' )]" + } + + button_change = { + size = { 24 24 } + visible = "[Not( And( IsGameViewOpen( 'law_change' ), GetVariableSystem.HasValue( 'law_change_open_group', LawGroup.GetKey ) ) )]" + onclick = "[OpenGameViewData( 'law_change', GuiLawGroup.Self )]" + onclick = "[GetVariableSystem.Set( 'law_change_open_group', LawGroup.GetKey )]" + } } + + text_single = { + block "law_number_visible" { + visible = "[LawGroup.CanRulerChange(GetPlayer)]" + } + text = "[GuiLawGroup.GetNumberOfAvailableLaws( Character.Self )]" + align = nobaseline + alpha = "[Select_float( GreaterThan_int32( GuiLawGroup.GetNumberOfAvailableLaws( Character.Self ), '(int32)0' ), '(float)1.0', '(float)0.5' )]" + } + } + } } @@ -3975,6 +5340,7 @@ types MyRealmWindow datamodel = "[MyRealmWindow.GetRealmLaws]" ignoreinvisible = yes wrap_count = 2 + spacing = 15 item = { widget_my_realm_law_item = { @@ -4004,13 +5370,16 @@ types MyRealmWindow spacing = 10 container = { - my_realm_coa_tiny_item = {} + coa_title_tiny_crown_with_status_icons = { + parentanchor = left|vcenter + using = tooltip_ne + } } text_single = { layoutpolicy_horizontal = expanding - text = "[Title.GetTitleLawsTooltip]" + text = "[Title.GetSuccessionLawText]" align = nobaseline } @@ -4019,11 +5388,13 @@ types MyRealmWindow button_round = { visible = "[Not( ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self ) )]" + onclick = "[OpenGameViewData( 'title_election', Title.Self )]" + tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" + button_election_vote = { + alwaystransparent = yes parentanchor = center - onclick = "[OpenGameViewData( 'title_election', Title.Self )]" - tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" } } } @@ -4038,14 +5409,6 @@ types MyRealmWindow margin_top = 15 spacing = 5 - text_multi = { - text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_DESC" - align = center|nobaseline - autoresize = yes - default_format = "#I" - max_width = 500 - } - text_single = { text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_TITLE" align = nobaseline @@ -4084,6 +5447,14 @@ types MyRealmWindow } } } + + text_multi = { + text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_DESC" + align = center|nobaseline + autoresize = yes + default_format = "#weak" + max_width = 500 + } } ### KURULTAI PROGRESS BAR @@ -4137,6 +5508,26 @@ types MyRealmWindow margin_top = 10 spacing = 18 + # Company Purpose + vbox = { + visible = "[IsLandlessMerchant( GetPlayer )]" + datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag('company_purpose')]" + + button_instant_law = { + name = "merchant_company_purpose_tutorial_uses_this" + onclick = "[GetVariableSystem.Toggle('change_company_purpose')]" + down = "[GetVariableSystem.Exists('change_company_purpose')]" + + blockoverride "call_to_action" { + text_single = { + layoutpolicy_horizontal = expanding + text = "CHANGE_COMPANY_PURPOSE_CALL_TO_ACTION" + margin_bottom = 16 + } + } + } + } + ### REALM LAWS (except the flag 'realm_law' as those are reserved for Crown Authority) vbox_law_item = { blockoverride "item_title" @@ -4216,17 +5607,20 @@ types MyRealmWindow blockoverride "show_law" { visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'admin_law' ) )]" - + } + blockoverride "law_enabled" { enabled = "[Not( Character.HasOverlord )]" - - tooltip_when_disabled = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS_DESC_DISABLED" + } + blockoverride "law_tooltip_disabled" { + tooltip = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS_DESC_DISABLED" + tooltip_visible = "[Character.HasOverlord]" } } ### TREASURY BUDGET LAWS vbox_law_item = { datacontext = "[GetPlayer]" - visible = "[And( Character.IsIndependentRuler, Character.HasTreasury )]" + visible = "[And( Character.HasTreasury, MyRealmWindow.HasBudgetLaws )]" blockoverride "item_title" { @@ -4236,10 +5630,6 @@ types MyRealmWindow blockoverride "show_law" { visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'treasury_budget_law' ) )]" - - enabled = "[Not( Character.HasOverlord )]" - - tooltip_when_disabled = "MY_REALM_WINDOW_LAWS_TREASURY_BUDGET_LAWS_DESC_DISABLED" } } @@ -4249,6 +5639,9 @@ types MyRealmWindow onclick = "[OpenGameViewData( 'treasury_budget_change', GetPlayer.Self )]" + tooltip = "TREASURY_BUDGET_TT" + using = tooltip_ws + hbox = { layoutpolicy_horizontal = expanding spacing = 12 @@ -4415,6 +5808,164 @@ types MyRealmWindow } } + type merchant_pip = icon_flat_standard_black { + size = { 10 10 } + texture = "gfx/interface/window_realm/merchant_bar_fill.dds" + } + + type merchant_pip_on = icon_flat_standard_gold { + size = { 10 10 } + texture = "gfx/interface/window_realm/merchant_bar_fill.dds" + } + + type widget_company_size = widget { + datacontext = "[Character.GetActiveLawInGroupWithFlag('company_size')]" + size = { 35 35 } + + block "company_size_tooltip" { + tooltipwidget = { + general_law_tooltip = {} + } + } + + icon_button_decorative = { + size = { 100% 100% } + parentanchor = center + alwaystransparent = yes + } + + icon_flat_standard_gold = { + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" + parentanchor = center + texture = "gfx/interface/icons/building_types/building_level_01.dds" + size = { 18 18 } + } + + icon_flat_standard_gold = { + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" + parentanchor = center + texture = "gfx/interface/icons/building_types/building_level_02.dds" + size = { 18 18 } + } + + icon_flat_standard_gold = { + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" + parentanchor = center + texture = "gfx/interface/icons/building_types/building_level_03.dds" + size = { 18 18 } + } + + icon_flat_standard_gold = { + visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" + parentanchor = center + texture = "gfx/interface/icons/building_types/building_level_04.dds" + size = { 18 18 } + } + } + + type hbox_merchant_stat = hbox { + spacing = 2 + icon = { + size = { 30 30 } + block "icon" {} + } + text_single = { + size = { 40 22 } + autoresize = no + # background = { using = Background_Area_Border_Solid } + block "text" { + raw_text = "0" + default_format = "#D" + } + align = nobaseline|center + } + } + + type vbox_merchant_patron_section = vbox { + visible = "[GetPlayer.HasSuzerain]" + layoutpolicy_horizontal = expanding + + spacing = 4 + + background = { + using = Background_Area + } + + text_label_left = { + datacontext = "[GetPlayer]" + layoutpolicy_horizontal = expanding + text = "SUZERAIN_OR_PATRON" + margin_left = 6 + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[GetPlayer.GetSuzerain]" + datacontext = "[GetPlayer.GetVassalContract]" + + spacing = 8 + + portrait_head_small = {} + + vbox = { + layoutpolicy_horizontal = expanding + + spacing = 12 + + text_single = { + text = "[Character.GetUINameNoTooltip]" + autoresize = no + layoutpolicy_horizontal = expanding + } + + flowcontainer = { + layoutpolicy_horizontal = expanding + ignoreinvisible = yes + wrap_count = 10 + button_round_interaction = { + name = "subject_modify_tributary_contract_interaction" + blockoverride "icon" { + button_feudal_contract = { + alwaystransparent = yes + size = { 100% 100% } + } + } + } + button_round_interaction = { + name = "patron_request_interaction" + blockoverride "icon" { + button_make_request = { + alwaystransparent = yes + size = { 100% 100% } + } + } + } + button_round_interaction = { + name = "request_trade_monopoly_for_character_interaction" + blockoverride "icon" { + button_request_trade_monopoly = { + alwaystransparent = yes + size = { 100% 100% } + } + } + } + button_round_interaction = { + name = "request_merchant_charter_interaction" + blockoverride "icon" { + button_request_merchant_charter = { + alwaystransparent = yes + size = { 100% 100% } + } + } + } + } + } + } + } + + # requires a character interaction as a widget name + # requires Character datacontext for the target of the interaction + type window_mass_directives = window { size = { 500 900 } @@ -4560,8 +6111,9 @@ types MyRealmWindow } hbox = { - layoutpolicy_horizontal = expanding visible = "[GetPlayer.IsValid]" + layoutpolicy_horizontal = expanding + margin_left = 3 spacing = 5 @@ -4571,7 +6123,7 @@ types MyRealmWindow # visible = " can anyone convert counties to your faith" # onclick = "" blockoverride "checkbox" { - # checked = "" + # checked = "" } blockoverride "text" { raw_text = "Convert to [GetPlayer.GetFaith.GetNameNoTooltip] (3)" @@ -4586,7 +6138,7 @@ types MyRealmWindow # visible = " can anyone convert counties to your culture" # onclick = "" blockoverride "checkbox" { - # checked = "" + # checked = "" } blockoverride "text" { raw_text = "Convert to [GetPlayer.GetCulture.GetNameNoTooltip] (3)"