### TITLE WINDOW window = { name = "title_view_window" size = { 628 100% } movable = no allow_outside = yes alwaystransparent = yes layer = middle state = { name = _show position = { 0 0 } on_start = "[GetVariableSystem.Clear( 'display_allegiance' )]" on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" using = Animation_FadeIn_Quick using = Sound_WindowShow_Standard } state = { name = _hide position_x = -60 on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" using = Animation_FadeOut_Quick using = Sound_WindowHide_Standard } ###################################################### #################### TITLE VIEW ###################### ###################################################### vbox = { datacontext = "[TitleViewWindow.GetTitle]" using = Window_Margins_Sidebar ### Widget to push down window when viewing a Clerical Region or Holy Order title widget = { visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" layoutpolicy_vertical = expanding layoutstretchfactor_vertical = 2 } ### Window decoration that is only being used when viewing a Clerical Region or Holy Order title widget = { visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" size = { 612 22 } icon = { parentanchor = bottom|hcenter position = { 0 5 } size = { 660 100% } spriteType = Corneredtiled spriteborder = { 60 0 } texture_density = 2 texture = "gfx/interface/skinned/component_decoration/decoration_frame_top.dds" } icon = { parentanchor = hcenter position = { 0 -33 } size = { 142 60 } texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_center.dds" } } vbox = { name = "title_view_main_tab" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding layoutstretchfactor_vertical = 1 alwaystransparent = no using = Window_Background_Sidebar using = Window_Margins_Sidebar state = { name = _show using = Animation_FadeIn_Quick } state = { name = _hide using = Animation_FadeOut_Quick } ### HEADER ### hbox_window_title_header = {} ### Rulers in region label and portraits vbox = { visible = "[And( DataModelHasItems( TitleViewWindow.GetRealmsInRegion ), Title.HasHolder )]" layoutpolicy_horizontal = expanding margin_bottom = 5 spacing = 5 text_label_center = { text = "TITLE_VIEW_RULERS_IN_REGION" max_width = 500 } widget = { layoutpolicy_horizontal = expanding scrollbox = { layoutpolicy_horizontal = expanding resizeparent = yes maximumsize = { -1 220 } blockoverride "scrollbox_content" { set_parent_size_to_minimum = yes widget = { size = { 558 0 } # min width } fixedgridbox = { visible = "[Title.HasClericalRegion]" layoutpolicy_horizontal = expanding addcolumn = 90 addrow = 124 flipdirection = yes datamodel_wrap = 6 datamodel = "[TitleViewWindow.GetRealmsInRegion]" item = { widget = { size = { 90 120 } proportional_icon = { parentanchor = center position = { -2 4 } size = { 90 120 } framesize = { 148 220 } frame = 3 texture = "gfx/interface/icons/roco_tabs/banner_tab_rank_02.dds" modify_texture = { texture = "gfx/interface/colors/black.dds" blend_mode = normal alpha = 0.9 } modify_texture = { visible = "[And( GetPlayer.IsValid, Not( ObjectsEqual( Character.GetRite.Self, GetPlayer.GetRite.Self ) ) )]" texture = "gfx/interface/colors/orange.dds" blend_mode = normal alpha = 0.12 } } portrait_head_small = {} button_rite_icon = { datacontext = "[Character.GetRite]" parentanchor = hcenter|bottom position = { -2 0 } size = { 30 30 } glow = { visible = "[And( GetPlayer.IsValid, Not( ObjectsEqual( Character.GetFaith.Self, GetPlayer.GetFaith.Self ) ) )]" color = { 0.3 0.1 0.1 0.8 } glow_radius = 3 } } } } } } } } } spacer = { visible = "[TitleViewWindow.GetTitle.GetHolder.HasDomicile]" size = { 10 10 } } vbox = { datacontext = "[Title.GetHolder]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding ### TABS ### hbox = { name = "tabs" visible = "[Not(IsDataModelEmpty(TitleViewWindow.GetTitleAllegianceVassals))]" layoutpolicy_horizontal = expanding button_tab = { name = "show_vassals" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_DE_JURE" default_format = "#weak" down = "[Not( GetVariableSystem.Exists( 'display_allegiance' ) )]" onclick = "[GetVariableSystem.Clear( 'display_allegiance' )]" } button_tab = { name = "show_allegiance" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_VASSALS" default_format = "#weak" down = "[GetVariableSystem.Exists( 'display_allegiance' )]" onclick = "[GetVariableSystem.Set( 'display_allegiance', 'true' )]" } } vbox = { name = "dejure_tab_contents" datacontext = "[TitleViewWindow.GetTitle]" visible = "[And(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), Not(Or(GetVariableSystem.Exists( 'display_allegiance' ), Or(Title.IsMercenaryCompany,Title.IsHolyOrder))))]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin_top = 15 spacing = 10 text_label_center = { text = "[TitleViewWindow.GetDeJureDescription]" max_width = 565 } scrollbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding minimumsize = { 0 250 } background = { using = Background_Area_Holding } blockoverride "scrollbox_content" { vbox = { layoutpolicy_horizontal = expanding datamodel = "[TitleViewWindow.GetVassalGroupItems]" spacing = 10 item = { vbox = { layoutpolicy_horizontal = expanding vbox = { datamodel = "[DeJureVassalGroupItem.GetTitleItems]" layoutpolicy_horizontal = expanding spacing = 5 text_single = { layoutpolicy_horizontal = expanding text = "[DeJureVassalGroupItem.GetOwnedBy]" default_format = "#low" max_width = 555 margin = { 0 10 } } item = { button_standard_list = { datacontext = "[TitleItem.GetTitle]" layoutpolicy_horizontal = expanding minimumsize = { 0 60 } onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" button_ignore = none tooltipwidget = { using = LandedTitleTooltip } coa_title_tiny_crown = { parentanchor = left|vcenter position = { 8 -3} } hbox = { margin_left = 50 spacing = 5 text_single = { layoutpolicy_horizontal = expanding text = "TITLE_NAME_NO_TOOLTIP" default_format = "#high" max_width = 515 align = nobaseline } } } } } } } } } } } scrollbox = { name = "tab_contents_empty" visible = "[And(Not(Or(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), GetVariableSystem.Exists( 'display_allegiance' ))), Not(Or(Title.HasClericalRegion, Title.IsHolyOrder)))]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding background = { using = Background_Area_Holding } blockoverride "scrollbox_content" { vbox = { layoutpolicy_vertical = expanding container = { visible = "[Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems))]" text_single = { visible = "[Not(TitleViewWindow.GetTitle.IsBarony)]" text = "TITLE_VIEW_TITULAR" default_format = "#weak" } text_single = { visible = "[TitleViewWindow.GetTitle.IsBarony]" text = "TITLE_VIEW_BARONY_NO_DEJURE" default_format = "#weak" } } } } } vbox = { name = "vassals_tab_contents" visible = "[GetVariableSystem.Exists( 'display_allegiance' )]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin_top = 10 spacing = 15 text_label_center = { text = "TITLE_ALLEGIANCE_VASSAL_LIST" max_width = 500 } scrollbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding minimumsize = { 0 300 } blockoverride "scrollbox_content" { vbox = { datamodel = "[TitleViewWindow.GetTitleAllegianceVassals]" layoutpolicy_horizontal = expanding spacing = 3 item = { button_standard_list = { layoutpolicy_horizontal = expanding minimumsize = { 0 50 } onclick = "[DefaultOnCharacterClick(Character.GetID)]" onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" button_ignore = none hbox = { margin = { 5 0 } position = {0 -2 } coa_realm_tiny_crown = {} text_single = { text = "[Character.GetNameNoTooltip]" layoutpolicy_horizontal = expanding margin = { 10 0 } autoresize = no align = nobaseline default_format = "#clickable" } } } } } } } } vbox_domicile_button = { name = "title_view_cathedral_complex_tutorial_uses_this" visible = "[And( Title.HasHolder, And( Title.HasDomicile, Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems)) ) )]" } spacer = { visible = "[TitleViewWindow.GetTitle.GetHolder.HasDomicile]" size = { 10 10 } } hbox = { layoutpolicy_horizontal = expanding visible = "[Title.IsLeasedOut]" datacontext = "[Title.GetLessee]" spacing = 5 margin = { 10 10 } background = { using = Background_Area_Dark alpha = 0.6 } portrait_head_small = {} text_single = { layoutpolicy_horizontal = expanding text = "TITLE_VIEW_LEASED_OUT" align = nobaseline } expand = {} } ### Military Section vbox = { datacontext = "[Title.GetHolyOrder]" visible = "[And( Title.IsHolyOrder, HolyOrder.IsMilitary )]" layoutpolicy_horizontal = expanding background = { using = Background_Area_Dark alpha = 0.6 } ### Regiments type & size hbox = { datacontext = "[TitleViewWindow.GetHiredTroopsItem]" layoutpolicy_horizontal = expanding margin_top = 10 margin_bottom = 10 margin_left = 15 text_single = { min_width = 150 max_width = 150 text = "FAITH_VIEW_HOLY_ORDER_DETAILS_MAA" align = nobaseline } overlappingitembox = { layoutpolicy_horizontal = expanding size = { -1 40 } datamodel = "[HiredTroopItem.GetRegiments]" item = { icon = { name = "men_at_arms_icon" datacontext = "[HiredTroopRegiment.GetRegiment]" size = { 40 40 } texture = "[Regiment.GetMAAType.GetIcon]" tooltipwidget = regiment_container_tooltip using = tooltip_se } } } hbox_soldiers_and_quality_small = { datacontext = "[HiredTroopItem.GetComposition]" } } } hbox = { datacontext = "[Title.GetHolyOrder]" visible = "[And( Title.IsHolyOrder, HolyOrder.GetTenet.IsValid )]" layoutpolicy_horizontal = expanding margin = { 10 5 } hbox = { spacing = 10 container_tenet_item_small = { datacontext = "[HolyOrder.GetTenet]" datacontext = "[HolyOrder.GetRite]" } vbox = { layoutpolicy_vertical = expanding margin_top = 5 hbox = { layoutpolicy_horizontal = expanding text_label_left = { datacontext = "[HolyOrder.GetTenet]" align = nobaseline text = "[TenetType.GetName( HolyOrder.GetRite.Self )]" using = Font_Size_Medium max_width = 486 } expand = {} } text_multi = { min_width = 486 layoutpolicy_horizontal = expanding text = "TITLE_VIEW_HOLY_ORDER_TENET_HEADING" align = nobaseline default_format = "#weak" } expand = {} } } expand = {} } ### Leased Holdings # TODO_UX_PAM horizontal scrollarea is a temporary solution, we probably want a button that opens a title list subwindow # but needs proper UX evaluation hbox = { visible = "[Title.IsHolyOrder]" layoutpolicy_horizontal = expanding margin = { 15 0 } background = { using = Background_Area_Dark alpha = 0.6 } text_single = { min_width = 150 max_width = 150 text = "FAITH_VIEW_HOLY_ORDER_DETAILS_LEASED_TITLES" align = nobaseline layoutpolicy_vertical = expanding } flowcontainer = { datacontext = "[Title.GetHolyOrder]" visible = "[Title.IsHolyOrder]" layoutpolicy_horizontal = expanding margin = { 0 10 } wrap_count = 11 datamodel = "[HolyOrder.GetLeasedTitles]" item = { coa_title_tiny_crown_with_status_icons = { allow_outside = yes } } } } hbox = { datacontext = "[TitleViewWindow.GetTitle.GetPreferredCapital]" visible = "[And( And( And( And( Title.IsValid, Not( TitleViewWindow.GetTitle.HasFaction ) ), Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) ), Or( Not( TitleViewWindow.GetTitle.IsClericalRegion ), Not( TitleViewWindow.GetTitle.HasHolder ) ) ), Not( TitleViewWindow.GetTitle.HasClericalElector ) ) ]" layoutpolicy_horizontal = expanding margin = { 15 10 } background = { using = Background_Area_Dark alpha = 0.6 } text_single = { text = "[SelectLocalization( TitleViewWindow.GetTitle.HasClericalRegion, 'TITLE_VIEW_CLERICAL_REGION_CAPITAL', 'TITLE_VIEW_DE_JURE_CAPITAL' )]" align = nobaseline min_width = 150 max_width = 150 } hbox = { datacontext = "[Title.GetCountyData.GetCount.GetFaith]" visible = "[TitleViewWindow.GetTitle.IsClericalRegion]" margin_left = 10 button_religion_icon = { size = { 40 40 } } } widget = { size = { 36 44 } coa_title_tiny_crown = { parentanchor = center position = { 0 -3 } } } text_single = { layoutpolicy_horizontal = expanding autoresize = no text = "[Title.GetName|U]" align = nobaseline max_width = 245 margin_left = 5 } expand = {} hbox = { name = "buttons" visible = "[Not( Title.HasFaction )]" divider_light = { layoutpolicy_vertical = expanding } spacer = { size = { 10 0 } } # character interactions hbox = { datacontext = "[TitleViewWindow.GetTitle.GetHolder]" datacontext = "[TitleViewWindow.GetTitle]" visible = "[And( Title.HasHolder, Not( Or( Title.IsMercenaryCompany, Title.IsHolyOrder ) ) )]" spacing = 2 container_single_interaction = { visible = "[Character.IsLocalPlayer]" blockoverride "interaction_name" { name = "request_unformed_title_interaction" } blockoverride "button_round_interaction" { button_round_interaction = { blockoverride "icon" {} button_icon_highlight = { parentanchor = center size = { 27 27 } texture = "gfx/interface/icons/flat_icons/ecclesiastical_bestow_title_interaction.dds" } } } } button_round_interaction = { name = "ecclesiastical_bestow_title_interaction" blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/ecclesiastical_bestow_title_interaction.dds" alwaystransparent = yes } } } button_round_interaction = { name = "demand_church_succession_interaction" blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/clerical_score.dds" alwaystransparent = yes } } } button_round_interaction = { name = "demand_church_succession_religious_head_interaction" blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/clerical_score.dds" alwaystransparent = yes } } } button_round_interaction_title = { name = "buy_claim_interaction" blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 30 30 } texture = "gfx/interface/icons/flat_icons/buy_claim_interaction.dds" alwaystransparent = yes } } } } hbox_title_shared_buttons = { datacontext = "[TitleViewWindow.GetTitle]" datacontext = "[Title.GetHolder]" } button_round = { name = "toggle_find_vassal" visible = "[And( And( TitleViewWindow.GetTitle.GetHolder.IsValid, ObjectsEqual( TitleViewWindow.GetTitle.GetHolder, GetPlayer ) ), And( TitleViewWindow.GetTitle.CanUseFindVassal( GetPlayer ), Not( TitleViewWindow.GetTitle.IsLeasedOut ) ) )]" onclick = "[TitleViewWindow.ToggleFindVassalListWindow]" tooltip = "FIND_VASSAL_BUTTON_TOOLTIP" button_grant_title_to_vassal = { parentanchor = center alwaystransparent = yes } } hbox = { datacontext = "[TitleViewWindow.GetTitle]" datacontext = "[Title.GetHolder]" visible = "[And( Title.HasHolder, Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder)))]" ignoreinvisible = yes spacing = 3 button_round = { name = "remove_law" visible = "[And( Character.IsLocalPlayer, TitleViewWindow.GetTitle.HasLaws )]" enabled = "[IsValidCommand( TitleViewWindow.GetClearLaws )]" onclick = "[CreateCommandPopup( TitleViewWindow.GetClearLaws )]" tooltip = "[TitleViewWindow.GetClearLawsButtonTooltip]" button_remove_laws = { parentanchor = center alwaystransparent = yes } } button_round = { name = "open_laws" visible = "[And( Character.IsLocalPlayer, TitleViewWindow.CanAddLaws )]" onclick = "[TitleViewWindow.ToggleLaws]" tooltip = "ADD_LAWS_TOOLTIP" button_add_laws = { parentanchor = center alwaystransparent = yes } } } hbox = { datacontext = "[TitleViewWindow.GetTitle]" datacontext = "[TitleViewWindow.GetTitle.GetHolder]" visible = "[Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder))]" spacing = 3 button_round = { name = "destroy_title" visible = "[And( TitleViewWindow.ShowDestroy, And( Not( TitleViewWindow.GetTitle.IsClericalRegion ), Not( TitleViewWindow.GetTitle.HasClericalElector ) ) )]" enabled = "[IsValidCommand( TitleViewWindow.GetDestroyTitle )]" onclick = "[CreateCommandPopup( TitleViewWindow.GetDestroyTitle )]" tooltip = "[TitleViewWindow.GetDestroyTitleButtonTooltip]" button_destroy_title = { parentanchor = center alwaystransparent = yes } } button_round = { name = "make_primary_title" visible = "[And( And( Character.IsLocalPlayer, TitleViewWindow.CanMakePrimary ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_make_primary_title').GetValue, '(CFixedPoint)0' ) ))]" onclick = "[TitleViewWindow.MakePrimary]" tooltip = "TITLE_MAKE_PRIMARY_TOOLTIP" button_make_primary = { parentanchor = center alwaystransparent = yes } } button_round = { name = "usurp_title" visible = "[And4( Not(Character.IsLocalPlayer), TitleViewWindow.ShowUsurp, Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ), Or( Not( IsRepublican( GetPlayer ) ), Not( LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) ) )]" enabled = "[IsValidCommand( TitleViewWindow.GetUsurpTitle )]" onclick = "[CreateCommandPopup( TitleViewWindow.GetUsurpTitle )]" tooltip = "[TitleViewWindow.GetUsurpTitleButtonTooltip]" button_usurp_title = { parentanchor = center alwaystransparent = yes } } } } } vbox = { name = "create_title" visible = "[And( Nor4( Title.IsBarony, TitleViewWindow.GetTitle.HasHolder, Title.IsNobleFamilyTitle, Title.HasClericalRegion ), Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" margin = { 0 25 } spacing = 15 text_single = { text = "TITLE_VIEW_NOT_CREATED" using = Font_Size_Big } vbox = { layoutpolicy_horizontal = expanding hbox = { layoutpolicy_horizontal = expanding tooltip = "[TitleViewWindow.GetMinimumDeJureTooltip]" icon = { name = "icon_yes" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" visible = "[TitleViewWindow.HasEnoughCounties]" } icon = { name = "icon_no" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" visible = "[Not(TitleViewWindow.HasEnoughCounties)]" } text_single = { text = "[TitleViewWindow.GetMinimumDeJureText]" } expand = {} } hbox = { layoutpolicy_horizontal = expanding visible = "[Not( GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" tooltip = "[TitleViewWindow.GetMinimumGoldTooltip]" icon = { name = "icon_yes" visible = "[TitleViewWindow.HasEnoughGold]" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" } icon = { name = "icon_no" visible = "[Not(TitleViewWindow.HasEnoughGold)]" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" } text_single = { text = "[TitleViewWindow.GetMinimumGoldText]" } expand = {} } hbox = { layoutpolicy_horizontal = expanding tooltip = "[TitleViewWindow.GetMinimumPietyCostTooltip]" visible = "[GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )]" text_single = { text = "[TitleViewWindow.GetMinimumPietyText]" } expand = {} } hbox = { layoutpolicy_horizontal = expanding visible = "[And( Not(GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )), Not( TitleViewWindow.HasTitlesOfTier ))]" tooltip = "[TitleViewWindow.GetTitlesOfTierTooltip]" icon = { name = "icon_yes" visible = "[TitleViewWindow.HasTitlesOfTier]" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" } icon = { name = "icon_no" visible = "[Not( TitleViewWindow.HasTitlesOfTier )]" size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" } text_single = { text = "[TitleViewWindow.GetTitlesOfTierText]" } expand = {} } hbox = { layoutpolicy_horizontal = expanding visible = "[And( GreaterThan_int32( Title.GetTierFrame, '(int32)3' ), GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" text_single = { text = "[TitleViewWindow.GetMinimumPietyLevelText]" } expand = {} } hbox = { layoutpolicy_horizontal = expanding datacontext = "[GetScriptedGui( 'empire_faith_gate_organized_faith_check' )]" visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" } icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" } text_single = { text = "empire_faith_gate_panel_organized_faith" } expand = {} } hbox = { layoutpolicy_horizontal = expanding datacontext = "[GetScriptedGui( 'empire_faith_gate_hof_check' )]" visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" } icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" } text_single = { text = "empire_faith_gate_panel_hof_approval" } expand = {} } hbox = { layoutpolicy_horizontal = expanding datacontext = "[GetScriptedGui( 'empire_faith_gate_vassals_check' )]" visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_check.dds" visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" } icon = { size = { 25 25 } texture = "gfx/interface/icons/symbols/icon_cross.dds" visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" } text_single = { text = "empire_faith_gate_panel_vassals_approve" } expand = {} } } text_single = { text = "[TitleViewWindow.GetGainText]" } button_primary = { visible = "[Or( Not( IsRepublican( GetPlayer ) ), Not( LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" enabled = "[IsValidCommand( TitleViewWindow.GetCreateTitle )]" onclick = "[CreateCommandPopup( TitleViewWindow.GetCreateTitle )]" tooltip = "[TitleViewWindow.GetCreateTitleButtonTooltip]" hbox = { layoutpolicy_horizontal = expanding margin = { 10 0 } expand = {} text_single = { text = "TITLE_VIEW_CREATE_TITLE" align = nobaseline default_format = "#high" } spacer = { size = { 5 0 } } icon = { texture = "gfx/interface/icons/title_actions/create_title.dds" size = { 25 25 } alwaystransparent = yes modify_texture = { texture = "gfx/interface/colors/gold.dds" alpha = 1 } } expand = {} } } # Republic version: we disable creation of higher-tier titles, as republics may only create lower-tier titles button_primary = { visible = "[And( IsRepublican( GetPlayer ), LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) )]" enabled = no onclick = "[CreateCommandPopup( TitleViewWindow.GetCreateTitle )]" tooltip = "republic_create_title_button_desc" hbox = { layoutpolicy_horizontal = expanding margin = { 10 0 } expand = {} text_single = { text = "TITLE_VIEW_CREATE_TITLE" align = nobaseline default_format = "#high" } spacer = { size = { 5 0 } } icon = { texture = "gfx/interface/icons/title_actions/create_title.dds" size = { 25 25 } alwaystransparent = yes modify_texture = { texture = "gfx/interface/colors/gold.dds" alpha = 1 } } expand = {} } } } vbox = { name = "create_title_nomad" datacontext = "[GetDecisionWithKey('nomad_higher_tier_title_decision')]" visible = "[And( Decision.IsShownForPlayer, ObjectsEqual( Title.Self, GetPlayer.GetPrimaryTitle.GetDeJureLiege ) )]" margin = { 0 25 } spacing = 15 text_single = { visible = "[Not( Title.HasHolder )]" text = "TITLE_VIEW_NOT_CREATED" using = Font_Size_Big } button_primary = { tooltip = "nomad_higher_tier_title_tooltip_desc" onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" hbox = { layoutpolicy_horizontal = expanding margin = { 10 0 } expand = {} text_single = { text = "TITLE_VIEW_CREATE_TITLE_NOMAD" align = nobaseline default_format = "#high" } spacer = { size = { 5 0 } } icon = { texture = "gfx/interface/icons/title_actions/create_title.dds" size = { 25 25 } alwaystransparent = yes modify_texture = { texture = "gfx/interface/colors/gold.dds" alpha = 1 } } expand = {} } } } vbox = { name = "create_title_clerical_region" datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount]" datacontext = "[Character.GetFaith]" visible = "[And( Not( Title.HasHolder ), Title.IsClericalRegion )]" layoutpolicy_horizontal = expanding margin = { 10 5 } spacing = 15 # capital holder vbox = { visible = "[Or( Not( Faith.HasParameterByKey( 'has_clerical_regions' ) ), Nor( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) ) )]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding spacing = 15 margin_bottom = 15 background = { using = Background_Area margin = { 10 0 } margin_top = 10 } hbox = { layoutpolicy_horizontal = expanding spacing = 10 portrait_head_small = {} vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding text_single = { layoutpolicy_horizontal = expanding text = "TITLE_VIEW_COUNT_FAITH" } hbox = { layoutpolicy_horizontal = expanding datacontext = "[Character.GetFaith]" spacing = 15 hbox = { spacing = 4 margin_right = 10 background = { visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.Self, Faith.Self ) )]" using = Status_Bad margin_top = 2 alpha = 0.6 } button_religion_icon = { size = { 45 45 } } text_single = { max_width = 200 text = "[Faith.GetName]" align = nobaseline } } text_single = { visible = "[Faith.HasParameterByKey( 'has_clerical_regions' )]" layoutpolicy_horizontal = expanding autoresize = no text = "FAITH_USES_CLERICAL_REGIONS" align = nobaseline } text_single = { visible = "[Not( Faith.HasParameterByKey( 'has_clerical_regions' ) )]" layoutpolicy_horizontal = expanding autoresize = no text = "FAITH_DOESNT_USE_CLERICAL_REGIONS" align = nobaseline } expand = {} } } expand = {} } } vbox = { layoutpolicy_horizontal = expanding spacing = 10 hbox = { layoutpolicy_horizontal = expanding spacing = 5 margin = { 10 5 } # you can't grant text_multi = { visible = "[Or( Not( Faith.HasParameterByKey( 'has_clerical_regions' ) ), Nor( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) ) )]" layoutpolicy_horizontal = expanding autoresize = yes max_width = 550 margin_bottom = 15 text = "TITLE_VIEW_CANNOT_GRANT_CLERICAL_REGION" default_format = "#low" } # you can grant hbox = { visible = "[Faith.HasParameterByKey( 'has_clerical_regions' )]" # you can grant it hbox = { visible = "[Or( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) )]" layoutpolicy_horizontal = expanding text_multi = { layoutpolicy_horizontal = expanding autoresize = yes max_width = 550 text = "TITLE_VIEW_YOU_CAN_GRANT_CLERICAL_REGION" default_format = "#low" } } } expand = {} } # suggestions # if you are HoF or HoR of the main rite with no HoF vbox = { visible = "[Or( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) )]" layoutpolicy_horizontal = expanding spacing = 10 text_label_left = { visible = "[GreaterThan_int32( PdxGuiWidget.AccessParent.FindChild('suggested').CountVisibleChildren, '(int32)0')]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_SUGGESTED_CLERGY" } vbox = { name = "suggested" layoutpolicy_horizontal = expanding spacing = 10 hbox_suggested_clergy_item = { datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetCouncillor( 'councillor_court_chaplain' )]" visible = "[And( Character.IsValid, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" } hbox_suggested_clergy_item = { datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.GetCouncillor( 'councillor_court_chaplain' )]" visible = "[And3( Character.IsValid, Title.GetPreferredCapital.GetCountyData.GetCount.HasLiege, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" } hbox_suggested_clergy_item = { datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.GetLiege.GetCouncillor( 'councillor_court_chaplain' )]" visible = "[And3( Character.IsValid, Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.HasLiege, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" } } } } } vbox_strength_info = { visible = "[Title.IsMercenaryCompany]" datacontext = "[Title.GetMercenaryCompany]" blockoverride "hired_troops_knights" { text = "TITLE_VIEW_MERCENARY_NUMBER_OF_KNIGHTS" } blockoverride "hired_troops_soldiers" { text = "TITLE_VIEW_MERCENARY_NUMBER_OF_SOLDIERS" } blockoverride "strength_values" { value = "[CurrentAndMaxToProgressbarValueInt32( MercenaryCompany.GetCurrentSoldiers, MercenaryCompany.GetMaxSoldiers )]" } } #### PORTRAITS ### vbox_title_associated_characters = { visible = "[TitleViewWindow.GetTitle.HasHolder]" layoutpolicy_horizontal = expanding } ### Hire Buttons vbox = { datacontext = "[Title.GetHolyOrder]" datacontext = "[TitleViewWindow.GetHiredTroopsItem]" visible = "[And( Title.IsHolyOrder, HolyOrder.IsMilitary )]" layoutpolicy_horizontal = expanding vbox_hired_troops_hire_buttons = {} } } } } } ###################################################### ################ TYPES AND TEMPLATES ################# ###################################################### template title_view_window_side_pop_out { position = { 0 80 } state = { name = _show using = Animation_FadeIn_Standard position_x = 630 } state = { name = _hide using = Animation_FadeOut_Standard position_x = 500 } } template Background_Area_Holding { texture = "[GetIllustration( 'title_holding' ).GetTexture( Title.MakeScope )]" alpha = 0.5 fittype = centercrop modify_texture = { texture = "gfx/interface/component_masks/mask_fade_vertical.dds" blend_mode = alphamultiply mirror = vertical } using = Mask_Rough_Edges } types Title { type vbox_title_type_text = vbox { text_single = { layoutpolicy_horizontal = expanding visible = "[StringIsEmpty(Title.GetSpecialDescription)]" max_width = 340 text = "TV_TIER_INFO" } text_single = { layoutpolicy_horizontal = expanding visible = "[Not(StringIsEmpty(Title.GetSpecialDescription))]" max_width = 340 text = "[Title.GetSpecialDescription]" align = nobaseline } } type vbox_domicile_button = vbox { datacontext = "[Character.GetDomicile]" layoutpolicy_horizontal = expanding margin = { 10 0 } background = { fittype = centercrop alpha = 0.4 texture = "[Domicile.GetType.GetIllustration( Domicile.Self )]" margin = { -10 0 } 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 block "size" { size = { 0 80 } } onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" background = { visible = "[IsGameViewOpen( 'domicile' )]" using = Background_Button_Illustration } using = Background_Vignette_Button hbox = { layoutpolicy_horizontal = expanding vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin = { 10 0 } hbox = { name = "domicile_header" layoutpolicy_horizontal = expanding hbox = { layoutpolicy_horizontal = expanding background = { margin_left = 15 margin_right = 25 margin_top = 0 margin_bottom = 5 texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" spriteType = Corneredtiled spriteborder = { 40 8 } texture_density = 2 modify_texture = { name = "mask" texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" blend_mode = alphamultiply mirror = horizontal } } text_single = { layoutpolicy_horizontal = expanding autoresize = no text = "[Domicile.GetMainLevelText]" max_width = 545 } expand = {} } block "header_extra" {} } block "domicile_extra" {} hbox = { name = "domicile_construction_info" layoutpolicy_horizontal = expanding minimumsize = { 0 40 } vbox = { tooltip = "[Domicile.GetBuildingUnderConstruction.GetConstructionTooltip( Character.Self )]" using = tooltip_ne text_single = { max_width = 420 text = "[Domicile.GetConstructionStatusText]" align = nobaseline } hbox = { layoutpolicy_horizontal = expanding progressbar_standard = { name = "building_progressbar" visible = "[Domicile.IsConstructing]" alwaystransparent = yes layoutpolicy_horizontal = expanding maximumsize = { -1 15 } value = "[Multiply_float( FixedPointToFloat( Domicile.GetConstructionProgress ), '(float)100' )]" direction = horizontal } expand = {} } } text_single = { margin_right = 52 visible = "[And( ObjectsEqual( Domicile.GetOwner.Self, GetPlayer ), Domicile.CanUpgradeMain )]" text = "[Domicile.GetUpgradeMainText]" default_format = "#P" } expand = {} } } widget_access_domicile_button = { block "big_button" { visible = "[And( Character.HasDomicile, ObjectsEqual( Character.Self, GetPlayer ) )]" } } widget = { size = { 12 0 } } expand = {} } } } ### Widget that displays current holder, and line of succession, at the bottom of the title view. # # Holder | Line of Succession # +---+ | # |^ ^| | +-+ +-+ +-+ +-+ +-+ # | _ | | | | | | | | | | | | # +---+ | +-+ +-+ +-+ +-+ +-+ # type vbox_title_associated_characters = vbox { ignoreinvisible = yes margin_top = 6 hbox = { layoutpolicy_horizontal = expanding margin_left = 10 margin_bottom = 10 vbox_title_current_holder = { layoutpolicy_vertical = expanding datacontext = "[TitleViewWindow.GetTitle.GetHolder]" } vbox = { visible = "[Title.IsHolyOrder]" layoutpolicy_vertical = expanding margin = { 10 10 } margin_top = 42 divider_light = { layoutpolicy_vertical = expanding } } vbox_title_line_of_succession = { name = "title_view_succession_tutorial_uses_this" visible = "[Not( Title.HasFaction )]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding } expand = {} } } ## Current holder of the title (displayed in the bottom left of the title view) type vbox_title_current_holder = vbox { background = { visible = "[And( GetPlayer.IsValid, Title.HasClericalRegion )]" texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" spriteType = Corneredtiled margin_top = -30 margin_left = 10 alpha = 0.2 modify_texture = { visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ) )]" using = Color_Grey blend_mode = normal } modify_texture = { visible = "[And( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ), ObjectsEqual( GetPlayer.GetRite.Self, Character.GetRite.Self ) )]" using = Color_Bright_Yellow blend_mode = normal } modify_texture = { visible = "[And( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ), Not( ObjectsEqual( GetPlayer.GetRite.Self, Character.GetRite.Self ) ) )]" using = Color_Red blend_mode = normal } modify_texture = { texture = "gfx/interface/component_masks/mask_fade_corner.dds" blend_mode = alphamultiply mirror = horizontal|vertical } modify_texture = { texture = "gfx/interface/component_masks/mask_rough_edges.dds" spriteType = Corneredtiled spriteborder = { 20 20 } texture_density = 2 blend_mode = alphamultiply } } background = { visible = "[And( GetPlayer.IsValid, Not( Title.HasClericalRegion ) )]" texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" using = Color_Blue spriteType = Corneredtiled margin_top = -30 margin_left = 10 alpha = 0.3 modify_texture = { texture = "gfx/interface/component_masks/mask_fade_corner.dds" blend_mode = alphamultiply mirror = horizontal|vertical } modify_texture = { texture = "gfx/interface/component_masks/mask_rough_edges.dds" spriteType = Corneredtiled spriteborder = { 20 20 } texture_density = 2 blend_mode = alphamultiply } } text_label_center = { layoutpolicy_horizontal = expanding text = "TITLE_VIEW_HOLDER" max_width = 250 } # Spacer that is only visible when viewing a Clerical Region to align with Succession portraits spacer = { visible = "[Title.HasClericalRegion]" layoutpolicy_horizontal = expanding alwaystransparent = yes size = { 0 45 } allow_outside = yes widget = { size = { 75 75 } scissor = yes position = { -10 5 } widget = { size = { 100% 100% } background = { texture = "gfx/interface/component_masks/mask_arrow.dds" margin_bottom = 75 mirror = horizontal using = Color_Black alpha = 0.65 } } } button_rite_icon = { datacontext = "[Character.GetRite]" size = { 55 55 } position = { -5 13 } } } expand = {} hbox = { # Current Holder Portrait widget = { size = { 165 200 } allow_outside = no portrait_torso = { blockoverride "portrait_button_size" { size = { 300 280 } } blockoverride "portrait_mask" { mask = "gfx/portraits/portrait_mask_body.dds" } blockoverride "portrait_texture" { portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" } blockoverride "portrait_status_icons" { portrait_status_icons = { parentanchor = bottom|right position = { -15 -5 } scale = 0.85 background = { using = Background_Area_Dark margin = { 2 3 } alpha = 0.8 } } } } } # Patron small portrait, only visible for holy orders vbox = { datacontext = "[Title.GetHolyOrder]" visible = "[Title.IsHolyOrder]" layoutpolicy_vertical = expanding margin_top = 15 portrait_head_small = { datacontext = "[HolyOrder.GetPatron]" } text_label_center = { text = "FAITH_VIEW_HOLY_ORDER_DETAILS_PATRON" max_width = 85 } expand = {} hbox = { visible = "[And( Character.IsValid, Not( IsObserver ) )]" layoutpolicy_horizontal = expanding button_round = { onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'interaction_category_religion')]" tooltip = "RELIGIOUS_INTERACTIONS_BUTTON_TOOLTIP" tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'interaction_category_religion'))]" button_icon = { alwaystransparent = yes parentanchor = center size = { 30 30 } texture = "gfx/interface/icons/flat_icons/character_interactions.dds" } text_single = { position = { 0 3 } parentanchor = bottom|hcenter background = { margin = { 5 0 } margin_top = -5 using = Background_Area_Dark } text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, 'interaction_category_religion' )]" default_format = "#glow_color:{0.1,0.1,0.1,1.0}" } } expand = {} } } } # interactions hbox = { visible = "[Title.IsClericalRegion]" layoutpolicy_horizontal = expanding allow_outside = yes margin_top = 10 margin_bottom = 4 margin_left = 5 spacing = 6 expand = {} button_interactions_religion = { glow = { color = { 0 0 0 0.5 } glow_radius = 8 } } container_single_interaction = { visible = "[Title.GetHolder.IsLocalPlayer]" blockoverride "interaction_name" { name = "request_ecclesiastical_title_expansion_interaction" } blockoverride "button_round_interaction" { button_round_interaction = { blockoverride "icon" {} button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/request_ecclesiastical_title_expansion_interaction.dds" } } } # we don't ask ourselves and ignore the archbishop check, jumping straight to religious authority blockoverride "show_archbishop" { visible = no } blockoverride "ignore_archbishop" {} blockoverride "show_interaction" { visible = "[And3( Character.IsPlayerInteractionShown( PdxGuiWidget.GetName ), Character.IsValid, Character.IsPlayerInteractionValid( PdxGuiWidget.GetName ) )]" } } button_round_interaction = { name = "expand_ecclesiastical_title_interaction" blockoverride "show_interaction" { visible = "[And3( Character.IsPlayerInteractionShown( PdxGuiWidget.GetName ), Character.IsValid, Character.IsPlayerInteractionValid( PdxGuiWidget.GetName ) )]" } blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/request_ecclesiastical_title_expansion_interaction.dds" alwaystransparent = yes } } } container_single_interaction = { blockoverride "interaction_name" { name = "request_elevation_interaction" } blockoverride "ignore_archbishop" {} blockoverride "button_round_interaction" { button_round_interaction_title = { blockoverride "icon" { button_icon_highlight = { parentanchor = center position = { 0 1 } size = { 25 25 } texture = "gfx/interface/icons/flat_icons/faith.dds" alwaystransparent = yes } } } } } # if you have a best candidate who isn't you, this lets you invest yourself hbox = { datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)0' )]" datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" visible = "[And( And( TitleViewWindow.ShowAppointment, AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) ), Not( Character.IsLocalPlayer ) )]" button_round_interaction_title = { name = "influence_clerical_candidacy_interaction" datacontext = "[GetPlayer]" blockoverride "icon" { button_promote_candidate = { parentanchor = center alwaystransparent = yes } } } } } } ## Titles line of succession (displayed at the bottom right of the title view) type vbox_title_line_of_succession = vbox { datacontext = "[TitleViewWindow.GetTitle]" ### Title Destroyed vbox = { visible = "[Title.IsDestroyedOnSuccession]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding hbox = { layoutpolicy_horizontal = expanding text_single = { text = "TITLE_VIEW_SUCCESSION_NONE" default_format = "#weak" } } } ### Succession Exists vbox = { visible = "[Not( Title.IsDestroyedOnSuccession )]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding hbox = { layoutpolicy_horizontal = expanding text_label_center = { text = "TITLE_VIEW_SUCCESSION" max_width = 330 } } expand = {} vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding hbox = { layoutpolicy_horizontal = expanding spacing = 10 hbox = { layoutpolicy_horizontal = expanding visible = "[Title.HasLaws]" vbox = { layoutpolicy_vertical = expanding margin_top = 2 margin_left = 2 icon = { name = "has_laws" size = { 25 25 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } expand = {} } text_multi = { layoutpolicy_horizontal = expanding size = { 0 100 } margin = { 4 5 } max_width = 310 text = "[Title.GetSuccessionDescription]" } } text_multi = { visible = "[Not( Title.HasLaws )]" layoutpolicy_horizontal = expanding size = { 0 80 } margin = { 20 5 } max_width = 310 text = "[Title.GetSuccessionDescription]" align = center|nobaseline } vbox = { visible = "[Or( And( Title.HasSuccessionOrder( 'election' ), Not( Title.HasClericalRegion ) ), Title.HasElectionType( 'priest_kings_familial_elective' ) )]" layoutpolicy_vertical = expanding margin_right = 20 expand = {} # Round button in the top right that opens the election window button_round = { name = "show_election_window" datacontext = "[Title.GetHolder]" size = { 60 60 } tooltip = "TITLE_VIEW_SHOW_ELECTION_TT" onclick = "[TitleViewWindow.OpenElection]" button_election_vote = { alwaystransparent = yes parentanchor = center position = { 1 -1 } size = { 40 40 } } } expand = {} } } hbox = { visible = "[Not( TitleViewWindow.ShowAppointment )]" datamodel = "[TitleViewWindow.GetLineOfSuccession]" item = { portrait_head_small = {} } } hbox = { visible = "[And3( Not( TitleViewWindow.ShowAppointment ), ObjectsEqual( Title.GetHolder, GetTitleByKey( 'k_papal_state' ).GetHolder ), ObjectsEqual( GetPlayer.GetRite, Title.GetHolder.GetRite ) )]" margin_top = 10 margin_right = 5 button_standard = { size = { 250 40 } text = "TITLE_VIEW_COLLEGE_OF_CARDINALS" onclick = "[ToggleGameView( 'cardinals_window' )]" tooltip = "TITLE_VIEW_COLLEGE_OF_CARDINALS_TOOLTIP" } } hbox = { datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" visible = "[TitleViewWindow.ShowAppointment]" blockoverride "score_breakdown" { datacontext = "[TitleViewWindow.GetSuccessionScoreBreakdown( Character.Self )]" } # default admin succession hbox_admin_title_successor_candidates_list = { visible = "[Not( Title.GetHolder.HasClericalRegion )]" } # clerical succession with bigger portraits, with one less for all numbers hbox_admin_title_successor_candidates_list = { visible = "[Title.GetHolder.HasClericalRegion]" blockoverride "show_candidate" { visible = "[AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)2' )]" } blockoverride "candidates_datamodel_small" { datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)2')]" } blockoverride "candidate_datacontext" { datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)2' )]" } blockoverride "not_show_candidate" { visible = "[Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)2' ) )]" datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)3')]" } } } hbox = { visible = "[And( TitleViewWindow.ShowAppointment, TitleViewWindow.ShouldShowFollowAppointment )]" layoutpolicy_horizontal = expanding spacer = { size = { 30 0 } } vbox = { datacontext = "[Title.GetHolder]" coa_title_small_crown = { datacontext = "[TitleViewWindow.GetFollowAppointmentTitle]" } } text_multi = { layoutpolicy_horizontal = expanding size = { 0 80 } text = "TITLE_VIEW_APPOINTMENT_FOLLOW" align = center|nobaseline } spacer = { size = { 10 0 } } } hbox = { name = "title_appointment" visible = "[TitleViewWindow.ShowAppointment]" margin_top = 10 spacing = 5 button_standard = { size = { 150 40 } text = "TITLE_VIEW_APPOINTMENT" onclick = "[ToggleGameViewData( 'title_appointment', Title.GetID )]" tooltip = "TITLE_VIEW_APPOINTMENT_TOOLTIP" } # INVEST IN BEST LOCAL PLAYER CANDIDATE IF THEY EXIST hbox = { datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)0' )]" datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" visible = "[And( TitleViewWindow.ShowAppointment, AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) )]" layoutpolicy_horizontal = expanding # appointment # show for county or higher in japan and duchy or higher elsewhere button_standard = { visible = "[And3( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown( 'influence_candidacy_interaction' ), Not( Title.IsClericalRegion ) )]" size = { 180 40 } enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" onclick = "[Character.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" hbox = { layoutpolicy_horizontal = expanding margin = { 8 4 } button_promote_candidate = { alwaystransparent = yes } text_single = { text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON align = nobaseline default_format = "#clickable" max_width = 130 } } } # clerical appointment button_standard = { visible = "[And5( GetPlayer.GetGovernment.IsType( 'ecclesiastical_government' ), TitleViewWindow.ShowAppointment, Title.IsPrimary, Character.IsPlayerInteractionShown( 'influence_clerical_candidacy_interaction' ), Title.IsClericalRegion )]" size = { 180 40 } onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_clerical_candidacy_interaction', Title.Self )]" enabled = "[And( Character.IsPlayerInteractionWithTargetTitleValid( 'influence_clerical_candidacy_interaction', Title.Self ), Character.IsPlayerInteractionShownAndCanPickTitle( 'influence_clerical_candidacy_interaction', Title.Self ) )]" tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'influence_clerical_candidacy_interaction', Title.Self )]" hbox = { layoutpolicy_horizontal = expanding margin = { 8 4 } button_promote_candidate = { alwaystransparent = yes } text_single = { text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON align = nobaseline default_format = "#clickable" max_width = 130 } } } } # INVEST IN ANYONE (FALLBACK) hbox = { datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" visible = "[And( TitleViewWindow.ShowAppointment, Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) ) )]" layoutpolicy_horizontal = expanding # appointment button_standard = { visible = "[And3( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown( 'influence_candidacy_interaction' ), Not( Title.IsClericalRegion ) )]" size = { 180 40 } enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" onclick = "[Character.GetTopLiege.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" hbox = { layoutpolicy_horizontal = expanding margin = { 8 4 } button_promote_candidate = { alwaystransparent = yes } text_single = { text = "influence_clerical_candidacy_interaction_short" align = nobaseline default_format = "#clickable" } } } # clerical appointment button_standard = { datacontext = "[GetPlayer]" visible = "[And5( GetPlayer.GetGovernment.IsType( 'ecclesiastical_government' ), TitleViewWindow.ShowAppointment, Title.IsPrimary, Character.IsPlayerInteractionShown( 'influence_clerical_candidacy_interaction' ), Title.IsClericalRegion )]" size = { 180 40 } onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_clerical_candidacy_interaction', Title.Self )]" enabled = "[And( Character.IsPlayerInteractionWithTargetTitleValid( 'influence_clerical_candidacy_interaction', Title.Self ), Character.IsPlayerInteractionShownAndCanPickTitle( 'influence_clerical_candidacy_interaction', Title.Self ) )]" tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'influence_clerical_candidacy_interaction', Title.Self )]" hbox = { layoutpolicy_horizontal = expanding margin = { 8 4 } button_promote_candidate = { alwaystransparent = yes } text_single = { text = "influence_clerical_candidacy_interaction_short" align = nobaseline default_format = "#clickable" max_width = 130 } } } } } } } hbox = { visible = "[Title.GetHolder.HasRealmTermEndDate]" layoutpolicy_horizontal = expanding margin = { 4 0 } progressbar_republic_term = { value = "[Title.GetHolder.GetRealmTermProgressPercent]" } } expand = {} } type hbox_suggested_clergy_item = hbox { layoutpolicy_horizontal = expanding spacing = 10 portrait_head_small = {} vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding hbox = { layoutpolicy_horizontal = expanding spacing = 10 background = { using = Background_Area margin = { 4 4 } } text_single = { layoutpolicy_horizontal = expanding autoresize = no text = "[Character.GetShortUINameNoTooltip]" align = nobaseline } expand = {} hbox = { using = character_age_or_death_text } hbox_skills_grid_character_model = {} } hbox = { layoutpolicy_horizontal = expanding datacontext = "[Character.GetRite]" spacing = 10 button_rite_icon = { size = { 35 35 } } text_single = { layoutpolicy_horizontal = expanding autoresize = no text = "[Character.GetRelationToString( Character.GetLiege.Self )]" tooltip = "[Character.GetRelationToStringExtended( Character.GetLiege.Self )]" align = nobaseline } expand = {} hbox = { spacing = 10 text_single = { text = "TITLE_VIEW_GRANT" default_format = "#clickable" align = nobaseline } button_round = { datacontext = "[GetCharacterInteraction( 'grant_ecclesiastical_title_interaction' )]" enabled = "[Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self )]" onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'grant_ecclesiastical_title_interaction', Title.Self )]" tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'grant_ecclesiastical_title_interaction', Title.Self )]" button = { parentanchor = center size = { 60% 60% } alwaystransparent = yes texture = "[CharacterInteraction.GetIcon( Character.Self )]" } } } } } expand = {} } type hbox_window_title_header = hbox { name = "header_area" layoutpolicy_horizontal = expanding # Two variations of the header background so it can adapt better to the amount of information in the # header for Clerical Regions and Monastic Orders vs regular titles background = { visible = "[Not( Or( Title.HasClericalRegion, Title.IsHolyOrder ) )]" using = Background_Header margin = { 4 0 } margin_bottom = 20 } background = { visible = "[Not( Or( Title.HasClericalRegion, Title.IsHolyOrder ) )]" using = Background_Header_Pattern margin = { 4 0 } margin_bottom = 20 } background = { visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" using = Background_Header margin = { 4 0 } margin_bottom = 5 } background = { visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" using = Background_Header_Pattern margin = { 4 0 } margin_bottom = 5 } vbox = { layoutpolicy_vertical = expanding margin = { 5 0 } #Different sized widgets so crowns of each tier align with the header #Hegemony and Empire Titles widget = { visible = "[GreaterThanOrEqualTo_int32(Title.GetTierFrame, '(int32)6')]" size = { 96 150 } coa_title_big_crown = { datacontext = "[TitleViewWindow.GetTitle]" parentanchor = bottom|hcenter scale = 0.9 tooltip = "[Title.GetCOADeJureTooltip]" icon = { name = "has_laws" visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" parentanchor = bottom|right position = { -5 0 } size = { 42 42 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } } } # Kingdom Titles widget = { visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)5')]" size = { 96 142 } coa_title_big_crown = { datacontext = "[TitleViewWindow.GetTitle]" parentanchor = bottom|hcenter scale = 0.9 tooltip = "[Title.GetCOADeJureTooltip]" icon = { name = "has_laws" visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" parentanchor = bottom|right position = { -5 0 } size = { 42 42 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } } } # Duchy Titles widget = { visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)4')]" size = { 96 133 } coa_title_big_crown = { datacontext = "[TitleViewWindow.GetTitle]" parentanchor = bottom|hcenter scale = 0.9 tooltip = "[Title.GetCOADeJureTooltip]" icon = { name = "has_laws" visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" parentanchor = bottom|right position = { -5 0 } size = { 42 42 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } } } # County Titles widget = { visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)3')]" size = { 96 128 } coa_title_big_crown = { datacontext = "[TitleViewWindow.GetTitle]" parentanchor = bottom|hcenter scale = 0.9 tooltip = "[Title.GetCOADeJureTooltip]" icon = { name = "has_laws" visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" parentanchor = bottom|right position = { -5 0 } size = { 42 42 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } } } # Barony Titles widget = { visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)2')]" size = { 96 110 } coa_title_big_crown = { datacontext = "[TitleViewWindow.GetTitle]" parentanchor = bottom|hcenter scale = 0.9 tooltip = "[Title.GetCOADeJureTooltip]" icon = { name = "has_laws" visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" parentanchor = bottom|right position = { -5 0 } size = { 42 42 } texture = "gfx/interface/icons/title_status/icon_title_law.dds" } } } expand = {} } vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding vbox = { datacontext = "[TitleViewWindow.GetTitle]" layoutpolicy_horizontal = expanding ignoreinvisible = yes spacing = 5 hbox = { layoutpolicy_horizontal = expanding vbox = { margin_top = 5 hbox_title_name_text = {} vbox_title_type_text = { datacontext = "[GuiScope.SetRoot( TitleViewWindow.GetTitle.MakeScope ).GetScriptValueBreakdown( 'appointment_title_value' )]" layoutpolicy_horizontal = expanding text_single = { visible = "[TitleViewWindow.HasMeritPoolData]" layoutpolicy_horizontal = expanding text = "[TitleViewWindow.GetMeritPoolDescription]" max_width = 330 } using = tooltip_ne tooltip_visible = "[ValueBreakdown.HasTooltip]" tooltipwidget = { visible = "[ValueBreakdown.HasTooltip]" widget_value_breakdown_tooltip = { blockoverride "header" { text_label_left = { layoutpolicy_horizontal = expanding text = prominence_breakdown_header default_format = "#T" } } } } } } watch_window_button = { size = { 60 40 } onclick = "[AddWatchWindow( TitleViewWindow.GetTitle.MakeScope )]" } expand = {} vbox = { layoutpolicy_vertical = expanding buttons_window_control = { blockoverride "extra_buttons" { button_pin = { shortcut = "pin" tooltip = "TITLE_PIN_TT" onclick = "[Title.ToggleTitlePinned]" visible = "[Not(Title.IsPinned)]" } button_unpin = { shortcut = "pin" tooltip = "TITLE_PIN_TT" onclick = "[Title.ToggleTitlePinned]" visible = "[Title.IsPinned]" } } blockoverride "button_close" { onclick = "[TitleViewWindow.Close]" onclick = "[TitleViewWindow.CloseHistory]" onclick = "[TitleViewWindow.CloseClaimants]" } blockoverride "button_back" { visible = "[HasViewHistory]" onclick = "[OpenFromViewHistory]" tooltip = "[GetViewHistoryTooltip]" } blockoverride "button_me" { onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" } } expand = {} } } divider_light = { layoutpolicy_horizontal = expanding } hbox = { layoutpolicy_horizontal = expanding margin_right = 10 spacing = 5 text_single = { visible = "[And( Title.IsHolyOrder, Not( Title.HasHolder ) )]" layoutpolicy_horizontal = expanding text = "TV_NOT_CREATED" } text_single = { visible = "[And( Title.HasClericalRegion, Not( Title.HasHolder ) )]" layoutpolicy_horizontal = expanding text = "TV_NO_HOLDER" } text_single = { datacontext = "[Title.GetFaction]" visible = "[Title.HasFaction]" text = "TITLE_VIEW_FACTION" max_width = 280 } hbox = { name = "title_view_rite_button_tutorial_uses_this" datacontext = "[Title.GetHolder.GetRite.GetFaith]" visible = "[And( Or( Title.HasClericalRegion, Title.IsHolyOrder ), Title.HasHolder )]" layoutpolicy_horizontal = expanding spacing = 5 button_rite_icon = { datacontext = "[Title.GetHolder.GetRite]" visible = "[Not( Title.IsHolyOrder )]" size = { 45 45 } } button_rite_icon = { datacontext = "[Title.GetHolyOrder.GetRite]" visible = "[Title.IsHolyOrder]" size = { 45 45 } } vbox = { layoutpolicy_vertical = expanding layoutpolicy_horizontal = expanding text_single = { visible = "[Title.IsHolyOrder]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_HOLY_ORDER_RITE_NAME" align = nobaseline autoresize = no max_width = 300 state = { name = "faith_view_refresh" using = Animation_Refresh_FadeOut } state = { using = Animation_Refresh_FadeIn } } text_single = { visible = "[Not( Title.IsHolyOrder )]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_RITE_NAME" align = nobaseline autoresize = no max_width = 300 state = { name = "faith_view_refresh" using = Animation_Refresh_FadeOut } state = { using = Animation_Refresh_FadeIn } } hbox = { layoutpolicy_horizontal = expanding spacing = 10 text_single = { name = "my_clerical_region" visible = "[And( Title.HasClericalRegion, Or( TitleViewWindow.IsPlayerInRegion, Title.GetHolder.IsLocalPlayer ) )]" max_width = 200 text = "TV_MY_CLERICAL_REGION" } text_single = { name = "holder_treasury" visible = "[Title.GetHolder.HasTreasury]" max_width = 70 tooltip = "[Title.GetHolder.GetTreasuryTooltipWithBalance]" using = tooltip_ne text = "TITLE_VIEW_HOLDER_TREASURY" align = nobaseline } expand = {} } text_single = { datacontext = "[Title.GetHolyOrder]" visible = "[Title.IsHolyOrder]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_HOLY_ORDER_HEADING" align = nobaseline max_width = 300 state = { name = "faith_view_refresh" using = Animation_Refresh_FadeOut } state = { using = Animation_Refresh_FadeIn } } } expand = {} } vbox = { visible = "[Not( Title.HasClericalRegion )]" layoutpolicy_vertical = expanding text_single = { name = "is_created" visible = "[Not(Title.HasHolder)]" layoutpolicy_horizontal = expanding text = "TV_NOT_CREATED" } vbox = { name = "existing_title" visible = "[Title.HasHolder]" layoutpolicy_horizontal = expanding ignoreinvisible = yes spacing = 5 text_single = { name = "my_title" visible = "[EqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID )]" layoutpolicy_horizontal = expanding text = "TV_MY_TITLE" max_width = 340 } text_single = { visible = "[And(And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), Not(GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))),Title.CanHaveClaim)]" layoutpolicy_horizontal = expanding text = "TV_NO_CLAIM" max_width = 340 } text_multi = { name = "have_claim" visible = "[And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))]" layoutpolicy_horizontal = expanding text = "[Title.GetClaimStateFor(GetPlayer)]" align = nobaseline minimumsize = { 200 50 } max_width = 340 autoresize = yes } text_single = { visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_not_redirected_to_border_wars_law')]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_DISABLED_BORDER_WARS" align = nobaseline max_width = 340 fontsize_min = 9 } text_multi = { visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_redirected_to_border_wars_law')]" layoutpolicy_horizontal = expanding text = "TITLE_VIEW_ENABLED_BORDER_WARS" align = nobaseline autoresize = yes max_width = 340 fontsize_min = 9 } } expand = {} } expand = {} flowcontainer = { direction = vertical ignoreinvisible = yes spacing = 3 button_sidepanel_right = { name = "view_claimants" visible = "[And(Title.CanHaveClaim, Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) )]" parentanchor = right enabled = "[GreaterThan_int32( TitleViewWindow.GetNumberOfClaimants, '(int32)0' )]" onclick = "[TitleViewWindow.ToggleClaimants]" tooltip = "TITLE_CLAIMANTS_TOOLTIP" blockoverride "button_text" { text = "TITLE_VIEW_CLAIMANTS" max_width = 90 } } button_sidepanel_right = { name = "title history" visible = "[And( Not( Title.IsBarony ), Not( Title.HasFaction ) )]" parentanchor = right onclick = "[TitleViewWindow.ToggleHistory]" tooltip = "SHOW_TITLE_HISTORY" blockoverride "button_text" { text = "TITLE_HISTORY" max_width = 90 } } text_single = { visible = "[Not(Title.CanHaveClaim)]" parentanchor = right text = "TITLE_VIEW_NO_CLAIMANTS" align = right|nobaseline default_format = "#weak" max_width = 110 fontsize_min = 5 tooltip = "TITLE_VIEW_NO_CLAIMANTS_TOOLTIP" } } } ### COUNTY PART OF #### hbox = { layoutpolicy_horizontal = expanding spacing = 10 margin_right = 10 margin_bottom = 10 hbox = { spacing = 5 margin_top = 10 text_single = { visible = "[DataModelHasItems(TitleViewWindow.GetLiegeItems)]" text = "TITLE_VIEW_DE_JURE_PART_OF" max_width = 180 align = nobaseline } fixedgridbox = { name = "dejure_liege_grid" datamodel = "[TitleViewWindow.GetLiegeItems]" flipdirection = yes addcolumn = 40 addrow = 40 maxverticalslots = 1 setitemsizefromcell = yes item = { widget = { size = { 40 50 } coa_title_tiny_crown = { datacontext = "[TitleItem.GetTitle]" parentanchor = center using = tooltip_se } } } } } expand = {} vbox = { visible = "[And(TitleViewWindow.GetTitle.HasHolder,TitleViewWindow.GetTitle.IsLanded)]" spacing = 5 text_single = { layoutpolicy_horizontal = expanding align = center max_width = 130 raw_text = "[TitleViewWindow.GetTypeOfLanded]: " } button_tertiary = { datacontext = "[TitleViewWindow.GetHolding]" onclick = "[TitleViewWindow.GoToHolding]" size = { 120 30 } text = "[Holding.GetProvince.GetTitle.GetNameNoTierNoTooltip]" max_width = 130 tooltip = "TITLE_VIEW_GO_TO_HOLDING" } } } } expand = {} } } type hbox_title_name_text = hbox { layoutpolicy_horizontal = expanding ignoreinvisible = yes spacing = 5 text_multi = { text = "TITLE_NAME_NO_TOOLTIP" default_format = "#high" block "max_width" { max_width = 330 } autoresize = yes using = Font_Size_Big } button_edit_text = { visible = "[TitleViewWindow.GetTitle.CanPlayerCustomizeTitle]" onclick = "[OpenTitleCustomizationWindow(TitleViewWindow.GetTitle)]" tooltip = "CUSTOMIZE_TITLE" } expand = {} } }