###################################################### ##################### MY REALM ####################### ###################################################### @realm_header_text_width = 190 window = { name = "my_realm_window" widgetid = "my_realm_window" datacontext = "[GetVariableSystem]" datacontext = "[GetPlayer]" parentanchor = top|right allow_outside = yes movable = no layer = windows_layer using = Window_Size_MainTab container = { visible = "[MyRealmWindow.IsActiveTab( 'bookmark_domain' )]" visible_at_creation = no state = { name = _show on_finish = "[GetVariableSystem.Set( 'bookmark', 'domain' )]" } } container = { visible = "[MyRealmWindow.IsActiveTab( 'bookmark_subjects' )]" visible_at_creation = no state = { name = _show on_finish = "[GetVariableSystem.Set( 'bookmark', 'subjects' )]" } } container = { visible = "[MyRealmWindow.IsActiveTab( 'bookmark_laws' )]" visible_at_creation = no state = { name = _show on_finish = "[GetVariableSystem.Set( 'bookmark', 'laws' )]" } } container = { visible = "[MyRealmWindow.IsActiveTab( 'bookmark_succession' )]" visible_at_creation = no state = { name = _show on_finish = "[GetVariableSystem.Set( 'bookmark', 'succession' )]" } } state = { name = _show using = Animation_FadeIn_Quick using = Sound_WindowShow_Standard using = Window_Position_MainTab } state = { name = _hide using = Animation_FadeOut_Quick using = Sound_WindowHide_Standard using = Window_Position_MainTab_Hide on_finish = "[GetVariableSystem.Clear('mass_directives_window')]" # on_finish = "[GetVariableSystem.Clear( 'bookmark' )]" # so you can keep same tab opened # also, due to some unknown reason (probably executing order), cleaning this actually cause open_view_data go wrong page } margin_widget = { size = { 100% 100% } margin_top = 30 margin_bottom = 25 margin_right = 13 widget = { size = { 100% 100% } ### WINDOW CONTENT vbox = { widgetid = "realm_panel_contents" #tutorial uses this using = Window_Margins header_pattern = { layoutpolicy_horizontal = expanding blockoverride "header_text" { text = "MY_REALM_WINDOW_TITLE" } blockoverride "button_close" { onclick = "[MyRealmWindow.Close]" } } ### Default Header widget_my_realm_header = { datacontext = "[GetPlayer]" visible = "[Not( IsLandlessAdventurerOrMerchant( Character ) )]" blockoverride "show_overlord" { visible = "[MyRealmWindow.GetCharacter.HasOverlord]" } blockoverride "show_diarchy" {} } ### Adventurer / Merchant Header widget_my_realm_header = { datacontext = "[GetPlayer]" visible = "[IsLandlessAdventurerOrMerchant( Character )]" blockoverride "header_subtitle" { hbox = { layoutpolicy_horizontal = expanding margin = { 15 15 } spacing = 10 vbox = { layoutpolicy_vertical = expanding coa_realm_small_crown = {} expand = {} } 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" ### Added on creation triggers for the default tab to trigger expand animation when opening the window for the first time oncreate = "[PdxGuiWidget.TriggerAnimation('tab_active')]" oncreate = "[PdxGuiWidget.FindChild('tab_name').TriggerAnimation('tab_name_hidden')]" onclick = "[GetVariableSystem.Set( 'bookmark', 'domain' )]" onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_domain' )]" ### Alwaystransparent state to not be able to click tab button again once it's active to keep animations from playing again alwaystransparent = "[Or(GetVariableSystem.HasValue( 'bookmark', 'domain' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" down = "[Or(GetVariableSystem.HasValue( 'bookmark', 'domain' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" blockoverride "tab_label_visibility" { visible = "[Or(GetVariableSystem.HasValue( 'bookmark', 'domain' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" } 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 } ### Subjects Tab button_tab = { onclick = "[MyRealmWindow.ResetMapMode]" shortcut = "tab_2" visible = "[Not( Or( IsLandlessAdventurerOrMerchant( GetPlayer ), IsPatrician(GetPlayer) ) )]" onclick = "[GetVariableSystem.Set( 'bookmark', 'subjects' )]" onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_subjects' )]" ### Alwaystransparent state to not be able to click tab button again once it's active to keep animations from playing again alwaystransparent = "[GetVariableSystem.HasValue( 'bookmark', 'subjects' )]" down = "[GetVariableSystem.HasValue( 'bookmark', 'subjects' )]" blockoverride "tab_label_visibility" { visible = "[GetVariableSystem.HasValue( 'bookmark', 'subjects' )]" } 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 } ### Laws Tab button_tab = { onclick = "[MyRealmWindow.ResetMapMode]" shortcut = "tab_3" onclick = "[GetVariableSystem.Set( 'bookmark', 'laws' )]" onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_laws' )]" ### Alwaystransparent state to not be able to click tab button again once it's active to keep animations from playing again alwaystransparent = "[GetVariableSystem.HasValue( 'bookmark', 'laws' )]" down = "[GetVariableSystem.HasValue( 'bookmark', 'laws' )]" blockoverride "tab_label_visibility" { visible = "[GetVariableSystem.HasValue( 'bookmark', 'laws' )]" } 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 } ### Succession Tab button_tab = { onclick = "[MyRealmWindow.ResetMapMode]" shortcut = "tab_4" 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_visibility" { 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" } tooltip = "MY_REALM_WINDOW_BOOKMARK_SUCCESSION_TT" using = tooltip_ne } } ## MY_REALM BODY HEADERS vbox = { layoutpolicy_horizontal = expanding vbox_my_realm_subjects_top = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'subjects' )]" } mandala_laws = { visible = "[And(GetPlayer.GetGovernment.IsType( 'mandala_government' ), GetVariableSystem.HasValue( 'bookmark', 'laws' ))]" } vbox_my_realm_laws_top = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'laws' )]" } vbox_my_realm_succession_body_top = { 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_tutorial_uses_this" datacontext = "[MyRealmWindow.GetCharacter]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding background = { visible = "[IsLandlessAdventurer( GetPlayer )]" texture = "gfx/interface/skinned/illustrations/camp_bg.dds" fittype = end alpha = 0.5 framesize = { 1500 848 } using = Mask_Rough_Edges modify_texture = { texture = "gfx/interface/component_masks/mask_fade_corner.dds" blend_mode = alphamultiply } } background = { visible = "[IsNomad( GetPlayer )]" texture = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds" fittype = end alpha = 0.5 using = Mask_Rough_Edges modify_texture = { texture = "gfx/interface/component_masks/mask_fade_corner.dds" blend_mode = alphamultiply } } 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 margin_right = 10 } blockoverride "scrollbox_content" { vbox_my_realm_domain_body = { widgetid = "my_realm_domain_body" #ra_merit_governor_holdings_open uses this visible = "[Or(GetVariableSystem.HasValue( 'bookmark', 'domain' ), Not(GetVariableSystem.Exists( 'bookmark' )))]" } vbox_my_realm_subjects_body = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'subjects' )]" } vbox_my_realm_succession_body = { visible = "[GetVariableSystem.HasValue( 'bookmark', 'succession' )]" } 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 = {} } } } } } } } } ### MY_REALM FOOTER STATS hbox_my_realm_footer_stats = { visible = "[And( GreaterThan_int32(MyRealmWindow.GetCharacter.RealmSize, '(int32)0' ), Or( Or(GetVariableSystem.HasValue( 'bookmark', 'domain' ), Not(GetVariableSystem.Exists( 'bookmark' ))), GetVariableSystem.HasValue( 'bookmark', 'subjects' ) ) )]" } } } } 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 } } } } } ###################################################### ################ TYPES AND TEMPLATES ################# ###################################################### template My_Realm_Cell_Size { min_width = 95 max_width = 95 } types MyRealmWindow { type acumen_bar_tooltip = container { alwaystransparent = no object_tooltip_pop_out = { blockoverride "header_additions" { icon = { size = { 48 48 } texture = "gfx/interface/icons/trade/acumen.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_size" { visible = no } blockoverride "illustration_texture" { texture = "gfx/interface/skinned/illustrations/header_illustrations/header_my_realm.dds" modify_texture = { texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" blend_mode = alphamultiply } } blockoverride "button_close" { visible = no } vbox = { parentanchor = center ### MY_REALM HEADER CENTER vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding ### SUBTITLE vbox = { layoutpolicy_horizontal = expanding block "header_subtitle" { hbox = { datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' )]" layoutpolicy_horizontal = expanding margin = { 15 15 } spacing = 10 vbox = { layoutpolicy_vertical = expanding coa_realm_small_crown = {} expand = {} } 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" layoutpolicy_vertical = expanding layoutpolicy_horizontal = expanding spacing = 4 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 = {} } ## REGENCY / DIARCHY hbox = { datacontext = "[MyRealmWindow.GetCharacter]" datacontext = "[MyRealmWindow.GetKurultaiSuccession]" layoutpolicy_horizontal = expanding 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 = { name = "kurultai_succession_stability" datacontext = "[MyRealmWindow.GetKurultaiSuccession]" visible = "[KurultaiSuccession.IsValid]" layoutpolicy_horizontal = expanding spacing = 5 tooltipwidget = { widget_kurultai_succession_tooltip = {} } ### 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 = "[KurultaiSuccession.IsStable]" max_width = @realm_header_text_width text = "MY_REALM_WINDOW_KURULTAI_STABLE" align = nobaseline } text_single = { visible = "[Not( KurultaiSuccession.IsStable )]" max_width = @realm_header_text_width text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" align = nobaseline } expand = {} } expand = {} } } } } } } } type hbox_my_realm_footer_stats = hbox { datacontext = "[MyRealmWindow.GetCharacter]" layoutpolicy_horizontal = expanding margin = { 10 0 } margin_top = 15 margin_bottom = 5 expand = { visible = "[Not( Character.HasOverlord )]" } ### YOUR INCOME vbox = { layoutpolicy_vertical = expanding margin_left = 10 hbox = { layoutpolicy_horizontal = expanding text_label_left = { layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_YOUR_INCOME" } expand = {} } hbox = { layoutpolicy_horizontal = expanding margin_right = 15 min_height = 25 expand = {} ### SUBJECT / VASSAL LABEL hbox = { layoutpolicy_horizontal = expanding using = My_Realm_Cell_Size expand = {} text_single = { text = "MY_REALM_WINDOW_FROM_VASSALS" align = nobaseline|right max_width = 70 } } ### TRIBUTARY LABEL hbox = { layoutpolicy_horizontal = expanding using = My_Realm_Cell_Size expand = {} text_single = { text = "MY_REALM_WINDOW_FROM_TRIBUTARIES" align = nobaseline|right max_width = 90 } } ### DOMAIN LABEL hbox = { layoutpolicy_horizontal = expanding spacing = 2 using = My_Realm_Cell_Size expand = {} warning_icon = { visible = "[MyRealmWindow.IsOverDomainLimit]" size = { 25 25 } tooltip = "[Character.GetDomainLimitTooltip]" } text_single = { text = "MY_REALM_WINDOW_FROM_HOLDINGS" align = nobaseline|right max_width = 70 } } } ### TAXES hbox_realm_stats_row = { margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_TAXES" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_gold.dds" } blockoverride "cell_subjects" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetVassalsIncome]" } } } blockoverride "cell_tributaries" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetTributariesIncome]" } } } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetDomainIncome]" } } } } ### LEVIES hbox_realm_stats_row = { margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_LEVIES" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_levies.dds" } blockoverride "cell_subjects" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetVassalsLevy]" } } } blockoverride "cell_tributaries" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetTributariesLevy]" } } } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetDomainLevy]" } } } } ### HERD hbox_realm_stats_row = { visible = "[IsNomad( Character )]" margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_HERD" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_herd.dds" } blockoverride "cell_subjects" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetVassalsHerd]" } } } blockoverride "cell_tributaries" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetTributariesHerd]" } } } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetDomainHerd]" } } } } ### BARTER GOODS hbox_realm_stats_row = { visible = "[Character.HasBarterGoods]" margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_BARTER_GOODS" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_barter.dds" } blockoverride "cell_subjects" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetVassalsBarterGoods]" } } } blockoverride "cell_tributaries" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetTributariesBarterGoods]" } } } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetDomainBarterGoods]" } } } } expand = {} } ### TO LIEGE vbox = { visible = "[Character.HasOverlord]" layoutpolicy_vertical = expanding 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')]" } hbox = { layoutpolicy_horizontal = expanding min_height = 25 ### LIEGE NAME text_single = { layoutpolicy_horizontal = expanding max_width = 170 text = "[Character.GetOverlord.GetShortUIName]" align = nobaseline } expand = {} } ### TAXES TO LIEGE hbox = { layoutpolicy_horizontal = expanding vbox = { hbox_realm_stats_row = { margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_TAXES" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_gold.dds" } blockoverride "cell_subjects" { visible = no } blockoverride "cell_tributaries" { visible = no } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetIncomeTax]" } blockoverride "cell_value_tooltip" { tooltipwidget = { tooltip_my_realm_to_liege = {} } } } } } ### LEVIES TO LIEGE hbox_realm_stats_row = { visible = "[Not( IsNomad( Character ) )]" margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_LEVIES" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_levies.dds" } blockoverride "cell_subjects" { visible = no } blockoverride "cell_tributaries" { visible = no } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetLevyTax]" } blockoverride "cell_value_tooltip" { tooltipwidget = { tooltip_my_realm_to_liege = {} } } } } } ### HERD TO LIEGE hbox_realm_stats_row = { visible = "[IsNomad( Character )]" margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_HERD" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_herd.dds" } blockoverride "cell_subjects" { visible = no } blockoverride "cell_tributaries" { visible = no } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetHerdTax]" } blockoverride "cell_value_tooltip" { tooltipwidget = { tooltip_my_realm_to_liege = {} } } } } } ### BARTER GOODS TO LIEGE hbox_realm_stats_row = { visible = "[Character.HasBarterGoods]" margin_right = 15 blockoverride "icon_tooltip" { tooltip = "MY_REALM_WINDOW_BARTER_GOODS" } blockoverride "icon_texture" { texture = "gfx/interface/icons/icon_barter.dds" } blockoverride "cell_subjects" { visible = no } blockoverride "cell_tributaries" { visible = no } blockoverride "cell_domain" { cell_value_text = { blockoverride "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetBarterGoodsTax]" } blockoverride "cell_value_tooltip" { tooltipwidget = { tooltip_my_realm_to_liege = {} } } } } } expand = {} } ### BUTTONS ( TO LIEGE ) vbox = { ### MODIFY YOUR VASSAL CONTRACT button_round = { datacontext = "[MyRealmWindow.GetCharacter.GetLiege]" datacontext = "[MyRealmWindow.GetCharacter.GetVassalContract]" visible = "[Character.IsPlayerInteractionShown( 'vassal_modify_vassal_contract_interaction' )]" onclick = "[Character.OpenPlayerInteraction('vassal_modify_vassal_contract_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('vassal_modify_vassal_contract_interaction')]" using = tooltip_se button_feudal_contract = { parentanchor = center alwaystransparent = yes size = { 30 30 } } } ### MODIFY YOUR ADMIN VASSAL CONTRACT button_round = { datacontext = "[MyRealmWindow.GetCharacter.GetLiege]" datacontext = "[MyRealmWindow.GetCharacter.GetVassalContract]" visible = "[Character.IsPlayerInteractionShown( 'admin_vassal_modify_vassal_contract_interaction' )]" onclick = "[Character.OpenPlayerInteraction('admin_vassal_modify_vassal_contract_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('admin_vassal_modify_vassal_contract_interaction')]" using = tooltip_se button_add_laws = { parentanchor = center alwaystransparent = yes } } ### MODIFY TRIBUTARY CONTRACT button_round = { datacontext = "[MyRealmWindow.GetCharacter.GetSuzerain]" visible = "[GetPlayer.HasSuzerain]" onclick = "[Character.OpenPlayerInteraction('subject_modify_tributary_contract_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('subject_modify_tributary_contract_interaction')]" using = tooltip_se button_feudal_contract = { parentanchor = center alwaystransparent = yes } } ### BREAK FREE OF SUZERAIN button_round = { datacontext = "[MyRealmWindow.GetCharacter.GetSuzerain]" visible = no onclick = "[Character.OpenPlayerInteraction('cease_paying_tribute_interaction')]" enabled = "[Character.IsPlayerInteractionValid('cease_paying_tribute_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('cease_paying_tribute_interaction')]" button_icon = { parentanchor = center alwaystransparent = yes position = { 1 -1 } size = { 40 40 } texture = "gfx/interface/icons/faction_type/liberty_faction.dds" } } } expand = {} } } expand = { visible = "[Not( Character.HasOverlord )]" } } type hbox_realm_stats_row = hbox { layoutpolicy_horizontal = expanding background = { margin = { -5 -5 } using = Background_Area } icon = { size = { 30 30 } block "icon_texture" {} } expand = {} ### SUBJECT / VASSAL STATS hbox = { using = My_Realm_Cell_Size block "cell_subjects" {} } ### TRIBUTARY STATS hbox = { using = My_Realm_Cell_Size block "cell_tributaries" {} } ### DOMAIN STATS hbox = { using = My_Realm_Cell_Size block "cell_domain" {} } } type cell_value_text = text_single { using = My_Realm_Cell_Size align = right|nobaseline block "cell_value_datacontext" { datacontext = "[MyRealmWindow.GetDomainIncome]" } text = "[ValueBreakdown.GetValue]" block "cell_value_tooltip" { tooltipwidget = { widget_gold_breakdown_tooltip = { blockoverride "income" { visible = no } } } } } type vbox_my_realm_laws_top = vbox { name = "realm_laws" widgetid = "realm_panel_top_laws" datacontext = "[GetPlayer]" layoutpolicy_horizontal = expanding # using = Animation_Tab_Switch ### MERCHANT LAW ITEM vbox = { datacontext = "[MyRealmWindow.GetCompanySizeLawGroup]" layoutpolicy_horizontal = expanding visible = "[IsLandlessMerchant( GetPlayer )]" spacing = 16 margin_bottom = -4 # Company Size vbox = { name = "merchant_company_size_tutorial_uses_this" layoutpolicy_horizontal = expanding margin = { 0 8 } widget = { size = { 530 0 } } 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 = {} } spacer = { size = { 0 25 } } widget = { size = { 0 0 } hbox = { datacontext = "[Character.GetDomicile]" allow_outside = yes position = { -180 105 } size = { 360 20 } spacing = 0 progressbar_standard = { size = { 120 20 } min = 0 max = "[GetDefine( 'NDomicile', 'MERCHANT_ACUMEN_LEVEL_2_THRESHOLD' )]" value = "[FixedPointToFloat( Domicile.GetAcumen )]" icon = { parentanchor = left widgetanchor = left 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_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" } } } } } } fixedgridbox = { name = "company_size_levels" addcolumn = 120 addrow = 96 setitemsizefromcell = yes datamodel_wrap = 5 flipdirection = yes layoutanchor = bottomleft datamodel = "[GuiLawGroup.GetLaws]" item = { button_realm_law_merchant_size = { datacontext = "[GuiLawGroup.GetLevelByIndex( PdxGuiWidget.GetIndexInDataModel ).GetLaw]" } } } # 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 = { 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 } } } } } } type icon_my_realm_law = icon { size = { 42 42 } alwaystransparent = yes texture = "[Law.GetIcon]" modify_texture = { 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 } spritetype = corneredtiled } } type button_realm_law = icon_button_decorative { datacontext = "[GuiLaw.GetLaw]" size = { 55 55 } alwaystransparent = "[GuiLaw.IsEnacted]" down = "[GuiLaw.IsEnacted]" onclick = "[GuiLaw.Enact]" enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" tooltipwidget = { pass_law_tooltip = {} } using = tooltip_sw tooltip_offset = { 40 0 } icon_button_decorative = { size = { 54 54 } parentanchor = center alwaystransparent = yes } button_icon = { visible = "[Not( GuiLaw.IsEnacted )]" size = { 42 42 } parentanchor = center alwaystransparent = yes texture = "[Law.GetIcon]" } icon = { visible = "[And( GuiLaw.IsEnacted , Not( GuiLaw.CanEnact ) )]" parentanchor = center size = { 42 42 } texture = "[Law.GetIcon]" alwaystransparent = yes using = Master_Button_Modify_Texture blockoverride "master_color_frame" { frame = 2 } } } type mandala_laws = vbox { name = "mandala emperor laws" layoutpolicy_vertical = expanding using = Animation_Tab_Switch block "crown_laws" {} widget = { size = { 450 150 } scissor = yes widget = { size = { 450 150 } block "mandala_laws_position" {} vbox = { datacontext = "[GetPlayer]" datamodel = "[MyRealmWindow.GetRealmLaws]" item = { vbox = { datacontext = "[GuiLawGroup.GetLawGroup]" visible = "[And( GuiLawGroup.GetLawGroup.HasFlag( 'mandala_law' ), GuiLawGroup.IsAvailable )]" margin_top = 10 spacing = 7 text_label_center = { visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' )]" datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" text = "MY_REALM_WINDOW_LAW_NAME" } text_label_center = { visible = "[Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ) )]" datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" text = "MY_REALM_WINDOW_LAW_NAME_AND_LEVEL" } ### MANDALA LAW ITEMS fixedgridbox = { name = "mandala_dominance_items" visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" addcolumn = 100 addrow = 100 setitemsizefromcell = yes datamodel_wrap = 4 flipdirection = yes layoutanchor = bottomleft datamodel = "[GuiLawGroup.GetLaws]" item = { button_mandala_realm_law = {} } } spacer = { visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" size = { 0 3 } } } } } } } } type button_mandala_realm_law = button_round { datacontext = "[GuiLaw.GetLaw]" size = { 100 100 } alwaystransparent = "[GuiLaw.IsEnacted]" down = "[GuiLaw.IsEnacted]" onclick = "[GuiLaw.Enact]" enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" tooltipwidget = { pass_law_tooltip = {} } using = tooltip_sw icon = { size = { 90 90 } texture = "gfx/interface/buttons/button_lifestyles_base.dds" parentanchor = center alwaystransparent = yes } highlight_icon = { visible = "[GuiLaw.IsEnacted]" parentanchor = center size = { 100 100 } texture = "gfx/interface/buttons/button_round_frame.dds" modify_texture = { texture = "gfx/interface/colors/gold.dds" } } button_icon = { visible = "[Not( GuiLaw.IsEnacted )]" size = { 90 90 } parentanchor = center alwaystransparent = yes texture = "[Law.GetIcon]" } icon = { visible = "[And( GuiLaw.IsEnacted , Not( GuiLaw.CanEnact ) )]" parentanchor = center size = { 100 100 } texture = "[Law.GetIcon]" alwaystransparent = yes using = Master_Button_Modify_Texture blockoverride "master_color_frame" { frame = 2 } } } type widget_realm_law_camp_purpose = widget { datacontext = "[GuiLaw.GetLaw]" size = { 160 160 } tooltipwidget = { pass_law_tooltip = { blockoverride "concept_link" { text = "[camp_purpose|E]" } } } # easier to mouse around the grid tooltip_offset = { 0 40 } using = tooltip_ws button_standard_clean = { name = "camp_purpose_button" size = { 160 160 } alwaystransparent = "[GuiLaw.IsEnacted]" enabled = "[Or(GuiLaw.CanEnact, GuiLaw.IsEnacted)]" down = "[GuiLaw.IsEnacted]" onclick = "[GuiLaw.Enact]" background = { texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" spriteType = Corneredtiled spriteborder = { 5 5 } margin = { -2 -2 } } icon = { size = { 160 160 } texture = "[Law.GetIcon]" } widget = { parentanchor = bottom size = { 100% 30 } background = { using = Background_Area_Dark } text_single = { visible = "[Not(GuiLaw.IsEnacted)]" parentanchor = center position = { 3 -2 } text = "PASS_LAW_TOOLTIP_TITLE" default_format = "#weak" max_width = 150 margin = { 5 0 } } text_single = { visible = "[GuiLaw.IsEnacted]" parentanchor = center position = { 3 -2 } text = "ADVENTURER_LAW_SELECTED" default_format = "#high;EMP" max_width = 150 margin = { 5 0 } } } selection_glow = { visible = "[GuiLaw.IsEnacted]" } } } type button_realm_law_nomad_dominance = button { size = { 100 100 } allow_outside = yes down = "[GuiLaw.IsEnacted]" onclick = "[GuiLaw.Enact]" enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" tooltipwidget = { pass_law_tooltip = {} } using = tooltip_ws icon = { visible = "[GuiLaw.IsEnacted]" parentanchor = center size = { 72 72 } texture = "gfx/interface/icons/flat_icons/circle.dds" using = Animation_Glow_Pulse glow = { glow_radius = 13 using = Glow_Standard using = Color_Bright_Yellow } } icon_round_button_base = { parentanchor = center size = { 72 72 } } highlight_icon = { visible = "[GuiLaw.IsEnacted]" parentanchor = center size = { 84 84 } texture = "gfx/interface/window_realm/dominance_frame_active.dds" } highlight_icon = { visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), Not( GuiLaw.IsEnacted ) )]" parentanchor = center position = { 1 1 } size = { 77 77 } texture = "gfx/interface/window_realm/dominance_frame_gurkhan_inactive.dds" } highlight_icon = { visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), GuiLaw.IsEnacted )]" parentanchor = center position = { 1 1 } size = { 77 77 } texture = "gfx/interface/window_realm/dominance_frame_gurkhan_active.dds" } highlight_icon = { parentanchor = center size = { 72 72 } texture = "[Law.GetIcon]" } icon_flat_standard_ash = { visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), Not( MyRealmWindow.IsGurkhan ) )]" parentanchor = top|right position = { 3 -3 } size = { 30 30 } texture = "gfx/interface/window_activities/tournament/contest_selection_locked_icon.dds" glow = { glow_radius = 2 using = Color_Black glow_generation_rules = { glow_alpha_mask = 0 glow_blur_passes = 10 glow_texture_downscale = 2.5f glow_ignore_inside_pixels = yes } } } widget = { parentanchor = hcenter|bottom position = { 0 3 } size = { 68 16 } allow_outside = yes flowcontainer = { parentanchor = vcenter position = { 5 0 } spacing = 2 allow_outside = yes visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' )]" widget = { size = { 10 10 } dominance_pip = { parentanchor = center } dominance_pip_on = { visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" parentanchor = center } } widget = { size = { 10 10 } dominance_pip = { parentanchor = center } dominance_pip_on = { visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" parentanchor = center } } widget = { size = { 10 10 } dominance_pip = { parentanchor = center } dominance_pip_on = { visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" parentanchor = center } } widget = { size = { 10 10 } dominance_pip = { parentanchor = center } dominance_pip_on = { visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" parentanchor = center } } widget = { size = { 10 10 } dominance_pip = { parentanchor = center } dominance_pip_on = { visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4')]" parentanchor = center } } } icon = { size = { 68 16 } texture = "gfx/interface/window_realm/dominance_bar_frame.dds" } } } 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 } oncreate = "[BindFoldOutContext]" oncreate = "[PdxGuiFoldOut.Unfold]" button_expandable_toggle_field = { blockoverride "text" { text = "MY_REALM_WINDOW_PARTITION_SHARE" } } vbox = { visible = "[PdxGuiFoldOut.IsUnfolded]" layoutpolicy_horizontal = expanding margin_top = 5 overlappingitembox = { name = "partition_share_box" datamodel = "[MyRealmWindow.GetMyPartitionShare]" layoutpolicy_horizontal = expanding size = { 460 44 } spacing = 5 item = { coa_title_tiny_crown = { datacontext = "[TitleItem.GetTitle]" using = tooltip_ne } } } } } type vbox_kurultai_group_foldout = vbox { layoutpolicy_horizontal = expanding margin = { 10 0 } oncreate = "[BindFoldOutContext]" oncreate = "[PdxGuiFoldOut.Unfold]" button_expandable_toggle_field = { blockoverride "text" { text = "MY_REALM_WINDOW_KURULTAI_ELECTORS" max_width = 510 } } vbox = { visible = "[PdxGuiFoldOut.IsUnfolded]" layoutpolicy_horizontal = expanding margin_bottom = 5 fixedgridbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding addcolumn = 85 addrow = 90 setitemsizefromcell = yes datamodel_wrap = 6 flipdirection = yes datamodel = "[KurultaiSuccession.GetElectors]" item = { portrait_head_small = { blockoverride "glow_visible" { visible = no } } } } } } type vbox_succession_content_kurultai = vbox { layoutpolicy_horizontal = expanding background = { visible = "[KurultaiSuccession.IsStable]" texture = "gfx/interface/window_realm/succession_pattern_peaceful.dds" alpha = 0.1 spritetype = corneredtiled texture_density = 2 using = Color_Blue using = Mask_Rough_Edges margin = { -5 0 } margin_top = -68 modify_texture = { texture = "gfx/interface/component_overlay/seamless_noise.dds" alpha = 0.1 blend_mode = overlay spritetype = corneredtiled texture_density = 2 } modify_texture = { texture = "gfx/interface/component_masks/mask_scratches.dds" alpha = 0.9 blend_mode = alphamultiply spritetype = corneredtiled } modify_texture = { texture = "gfx/interface/component_masks/mask_scratches.dds" alpha = 0.9 blend_mode = alphamultiply spritetype = corneredtiled mirror = horizontal } modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" blend_mode = alphamultiply mirror = horizontal } modify_texture = { texture = "gfx/interface/component_masks/mask_fade_vertical.dds" blend_mode = alphamultiply } } background = { visible = "[Not( KurultaiSuccession.IsStable )]" texture = "gfx/interface/window_realm/succession_pattern_chaotic.dds" alpha = 0.1 mirror = horizontal spritetype = corneredtiled texture_density = 2 using = Color_Red using = Mask_Rough_Edges margin = { -5 0 } margin_top = -68 modify_texture = { texture = "gfx/interface/component_overlay/seamless_noise.dds" blend_mode = overlay spritetype = corneredtiled texture_density = 2 alpha = 0.1 } modify_texture = { texture = "gfx/interface/component_masks/mask_scratches.dds" alpha = 0.9 blend_mode = alphamultiply spritetype = corneredtiled } modify_texture = { texture = "gfx/interface/component_masks/mask_scratches.dds" alpha = 0.9 blend_mode = alphamultiply spritetype = corneredtiled mirror = horizontal } modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" blend_mode = alphamultiply mirror = horizontal } modify_texture = { texture = "gfx/interface/component_masks/mask_fade_vertical.dds" blend_mode = alphamultiply } } ### STATUS BANNER hbox = { layoutpolicy_horizontal = expanding tooltipwidget = { widget_kurultai_succession_tooltip = {} } ### STABLE SUCCESSION widget = { visible = "[KurultaiSuccession.IsStable]" size = { 550 84 } icon = { parentanchor = vcenter size = { 550 64 } texture = "gfx/interface/window_realm/succession_banner_peaceful.dds" } widget = { parentanchor = left|vcenter position = { 12 0 } 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" } } text_single = { layoutpolicy_vertical = expanding parentanchor = left|vcenter position = { 100 -2 } text = "MY_REALM_WINDOW_KURULTAI_STABLE" max_width = 400 using = Font_Size_Medium } } ### CHAOTIC SUCCESSION widget = { visible = "[Not( KurultaiSuccession.IsStable )]" size = { 550 84 } icon = { parentanchor = vcenter size = { 550 64 } texture = "gfx/interface/window_realm/succession_banner_chaotic.dds" } widget = { parentanchor = left|vcenter position = { 12 0 } 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" } } text_single = { layoutpolicy_vertical = expanding parentanchor = left|vcenter position = { 100 -2 } text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" max_width = 400 using = Font_Size_Medium } } } ### HEIR INFO hbox = { datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" visible = "[Character.IsValid]" layoutpolicy_horizontal = expanding vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin = { 15 0 } text_label_left = { layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_PREFERRED" using = Font_Size_Medium max_width = 360 } text_single = { margin_top = 10 layoutpolicy_horizontal = expanding text = "[Character.GetUINameNoTooltip]" align = nobaseline default_format = "#high" max_width = 360 using = Font_Size_Medium } text_single = { layoutpolicy_horizontal = expanding text = "MRW_YOUR_PLAYER_HEIR" default_format = "#weak" max_width = 360 } text_single = { visible = "[Not( KurultaiSuccession.IsStable )]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_CHAOS_WARNING" max_width = 360 } ### CHANGE HEIR BUTTON hbox = { layoutpolicy_horizontal = expanding margin_top = 20 button_standard = { size = { 150 32 } text = "MY_REALM_WINDOW_DESIGNATE_HEIR" enabled = "[MyRealmWindow.CanDesignateHeir]" onclick = "[OpenGameView( 'designate_heir' )]" tooltip = "MRW_DESIGNATE_HEIR_TT" } expand = {} } expand = {} } expand = {} portrait_torso = { blockoverride "portrait_status_icons" {} blockoverride "opinion_box" {} } } ### KURULTAI PROGRESS BAR vbox = { visible = "[GreaterThan_int32( KurultaiSuccession.GetVoteCount, '(int32)0' )]" layoutpolicy_horizontal = expanding margin = { 15 0 } margin_bottom = 5 hbox = { layoutpolicy_horizontal = expanding spacing = 10 text_single = { text = "MY_REALM_WINDOW_KURULTAI_APPROVES" align = nobaseline max_width = 150 } progressbar_standard = { name = "kurultai_votes" layoutpolicy_horizontal = expanding size = { 200 20 } using = Animation_ShowHide_Standard max = "[IntToFloat( KurultaiSuccession.GetVoteCount )]" value = "[IntToFloat( KurultaiSuccession.GetObedientCount )]" } text_single = { text = "MY_REALM_WINDOW_KURULTAI_OPPOSES" align = nobaseline max_width = 150 } } text_multi = { text = "MY_REALM_WINDOW_KURULTAI_OBEDIENT" autoresize = yes align = center default_format = "#italic" max_width = 500 margin = { 0 5 } } } } type widget_kurultai_succession_tooltip = widget { alwaystransparent = no using = GeneralTooltipSetup widget = { name = "background" alwaystransparent = no size = { 100% 100% } using = DefaultTooltipBackground } vbox = { set_parent_size_to_minimum = yes margin = { 20 0 } margin_top = 5 margin_bottom = 20 spacing = 20 ### HEADER hbox = { layoutpolicy_horizontal = expanding spacing = 10 background = { using = Background_Header } background = { using = Background_Header_Pattern } icon = { visible = "[KurultaiSuccession.IsStable]" size = { 60 60 } texture = "gfx/interface/icons/succession_peaceful.dds" } icon = { visible = "[Not( KurultaiSuccession.IsStable )]" size = { 60 60 } texture = "gfx/interface/icons/succession_chaotic.dds" } text_single = { visible = "[KurultaiSuccession.IsStable]" text = "MY_REALM_WINDOW_KURULTAI_STABLE" align = nobaseline default_format = "#bold" using = Font_Size_Medium } text_single = { visible = "[Not( KurultaiSuccession.IsStable )]" text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" align = nobaseline default_format = "#bold" using = Font_Size_Medium } expand = {} text_single = { text = "[succession|E]" } } ### SUB HEADER vbox = { layoutpolicy_horizontal = expanding text_multi = { visible = "[KurultaiSuccession.IsStable]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_STABLE_TOOLTIP_HEADER" autoresize = yes minimumsize = { 100 -1 } maximumsize = { 500 300 } } text_multi = { visible = "[Not( KurultaiSuccession.IsStable )]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC_TOOLTIP_HEADER" autoresize = yes minimumsize = { 100 -1 } maximumsize = { 500 300 } } } divider_light = { layoutpolicy_horizontal = expanding } text_multi = { layoutpolicy_horizontal = expanding text = "[KurultaiSuccession.GetStatusTooltip]" autoresize = yes fontsize = 16 fontsize_min = 12 minimumsize = { 100 -1 } maximumsize = { 500 300 } } divider_light = { layoutpolicy_horizontal = expanding } vbox = { layoutpolicy_horizontal = expanding text_multi = { visible = "[KurultaiSuccession.IsStable]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_STABLE_TOOLTIP_FOOTER" autoresize = yes minimumsize = { 100 -1 } maximumsize = { 500 300 } } text_multi = { visible = "[Not( KurultaiSuccession.IsStable )]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC_TOOLTIP_FOOTER" autoresize = yes minimumsize = { 100 -1 } maximumsize = { 500 300 } } } } } type vbox_my_realm_succession_title_lost_item = vbox { datacontext = "[TitleSuccessionItem.GetHeir]" layoutpolicy_horizontal = expanding margin = { 16 8 } margin_bottom = 15 background = { using = Background_Frame } hbox = { layoutpolicy_horizontal = expanding vbox = { layoutpolicy_horizontal = expanding text_single = { name = "heir_name" visible = "[Character.IsValid]" text = "MY_REALM_WINDOW_TITLES_LOST_LABEL" layoutpolicy_horizontal = expanding autoresize = no } text_single = { name = "heir_not_your_dynasty" visible = "[And( Character.IsValid, Not( ObjectsEqual( Character.GetHouse.GetDynasty.Self, GetPlayer.GetHouse.GetDynasty.Self ) ) )]" text = "MY_REALM_WINDOW_HEIR_NOT_MY_DYNASTY" using = Font_Size_Small layoutpolicy_horizontal = expanding autoresize = no } text_single = { name = "heir_share" datacontext = "[GetPlayer]" visible = "[DataModelHasItems( TitleSuccessionItem.GetPartitionTitles )]" text = "MY_REALM_WINDOW_SUCCESSION_LAW_AND_DESC" default_format = "#weak" layoutpolicy_horizontal = expanding autoresize = no } } expand = {} fixedgridbox = { name = "titles_box" datamodel = "[TitleSuccessionItem.GetPartitionTitles]" visible = "[DataModelHasItems( TitleSuccessionItem.GetPartitionTitles )]" addcolumn = 36 addrow = 60 maxhorizontalslots = 7 flipdirection = yes item = { widget = { size = { 36 60 } datacontext = "[TitleItem.GetTitle]" coa_title_tiny_crown = { using = tooltip_ne parentanchor = center } icon_title_has_laws_status = { parentanchor = bottom|right position = { 5 0 } } } } } fixedgridbox = { name = "exception_box" datamodel = "[TitleSuccessionItem.GetExceptionTitles]" visible = "[DataModelHasItems( TitleSuccessionItem.GetExceptionTitles )]" addcolumn = 36 addrow = 45 maxhorizontalslots = 7 flipdirection = yes item = { container = { datacontext = "[TitleItem.GetTitle]" coa_title_tiny_crown = { using = tooltip_ne } icon_title_has_laws_status = { parentanchor = bottom|right position = { 5 0 } } } } } text_single = { name = "required_government_label" visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_REQUIRED_GOVERNMENT_TITLES" } text_single = { name = "required_government_warning" visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_REQUIRED_GOVERNMENT_TITLES_WARNING" using = Font_Size_Small } fixedgridbox = { name = "required_government_box" datamodel = "[TitleSuccessionItem.GetRequiredGovernmentTitles]" visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" addcolumn = 36 addrow = 45 maxhorizontalslots = 7 flipdirection = yes item = { container = { datacontext = "[TitleItem.GetTitle]" coa_title_tiny_crown = { using = tooltip_ne } icon_title_has_laws_status = { parentanchor = bottom|right position = { 5 0 } } } } } } } type vbox_succession_content_default = vbox { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding spacing = 10 hbox = { name = "current_heir" # vassals in merit governments don't really care that your heir inherits your province, it is all transient anyway, so no need to show the warning visible = "[And( And( Not(GetPlayer.GetGovernment.HasRule( 'merit' )), Not(GetPlayer.IsIndependentRuler)), And( MyRealmWindow.HasHeir, Not( ObjectsEqual( MyRealmWindow.GetCharacter.GetPlayerHeir, MyRealmWindow.GetCharacter.GetPrimaryTitle.GetHeir.Self ) ) ) )]" layoutpolicy_horizontal = expanding margin_bottom = 5 background = { using = Background_Area_Dark alpha = 0.8 modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" blend_mode = alphamultiply mirror = horizontal } } vbox = { layoutpolicy_vertical = expanding layoutpolicy_horizontal = expanding margin = { 5 0 } margin_top = 5 text_single = { name = "not_primary_heir" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_NOT_PRIMARY_HEIR" align = nobaseline } expand = {} } } ##### FROM REALM'S PARTITION ##### vbox = { layoutpolicy_horizontal = expanding vbox = { name = "their_partition_share" visible = "[And( MyRealmWindow.HasPartition, DataModelHasItems( MyRealmWindow.GetMyPartitionShare ) )]" layoutpolicy_horizontal = expanding margin_left = 5 hbox = { layoutpolicy_horizontal = expanding text_label_left = { layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_SUCCESSION_TITLES_INHERITED" max_width = 500 } expand = {} } overlappingitembox = { name = "partition_share_box" datamodel = "[MyRealmWindow.GetMyPartitionShare]" layoutpolicy_horizontal = expanding size = { 460 65 } spacing = 5 item = { coa_title_tiny_crown = { datacontext = "[TitleItem.GetTitle]" using = tooltip_ne } } } } vbox = { name = "title_succession" visible = "[DataModelHasItems(MyRealmWindow.GetTitleSuccession)]" layoutpolicy_horizontal = expanding margin = { 5 0 } oncreate = "[BindFoldOutContext]" oncreate = "[PdxGuiFoldOut.Unfold]" button_expandable_toggle_field = { blockoverride "text" { text = "MY_REALM_WINDOW_TITLES_LOST_ON_SUCCESSION" default_format = "#X" } } vbox = { datamodel = "[MyRealmWindow.GetTitleSuccession]" visible = "[PdxGuiFoldOut.IsUnfolded]" layoutpolicy_horizontal = expanding item = { vbox_my_realm_succession_title_lost_item = {} } } } vbox = { name = "exceptions" visible = "[DataModelHasItems( MyRealmWindow.GetSuccessionExceptions )]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = growing margin_left = 5 hbox = { layoutpolicy_horizontal = expanding text_label_left = { layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_EXCEPTIONS" max_width = 520 } expand = {} } vbox = { name = "exceptions_box" datamodel = "[MyRealmWindow.GetSuccessionExceptions]" layoutpolicy_horizontal = expanding item = { hbox = { layoutpolicy_horizontal = expanding margin = { 8 8 } datacontext = "[TitleItem.GetTitle]" background = { using = Background_Area } widget = { size = { 75 0 } layoutpolicy_vertical = expanding coa_title_small_crown = { position = { 0 -16 } parentanchor = center } } vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding spacing = 2 text_label_left = { layoutpolicy_horizontal = expanding autoresize = no text = "TITLE_NAME_NO_TOOLTIP" } hbox = { layoutpolicy_horizontal = expanding icon_title_succession = {} text_single = { layoutpolicy_horizontal = expanding text = "[Title.GetTitleLawsTooltip]" align = nobaseline autoresize = no } } expand = {} } vbox = { portrait_head_small = { datacontext = "[Title.GetHeir]" } text_label_center = { text = "[heir|E]" } } } } } } } vbox = { name = "line_of_succession" visible = "[MyRealmWindow.HasSingleHeir]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = growing margin = { 5 0 } spacing = 10 hbox = { layoutpolicy_horizontal = expanding text_label_left = { name = "line_of_succession_label" layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_LINE_OF_SUCCESSION" } expand = {} } dynamicgridbox = { name = "line_of_succession_box" datamodel = "[MyRealmWindow.GetLineOfSuccession]" layoutpolicy_horizontal = expanding item = { hbox = { datacontext = "[LineOfSuccessionItem.GetCharacter]" maximumsize = { -1 100 } margin_left = 10 margin_bottom = 5 background = { using = Background_Area_With_Header } vbox = { layoutpolicy_vertical = growing margin_bottom = 5 spacing = 2 hbox_character_view_name_age_health = { blockoverride "name_text" { text = "MY_REALM_WINDOW_LINE_OF_SUCCESSION_ORDERED_NAME" } blockoverride "health_margin" { margin_left = 4 } } spacer = { size = { 10 3 } } hbox = { layoutpolicy_horizontal = expanding text_single = { name = "character_relation_to_you" text = "[Character.GetRelationToString( GetPlayer )]" align = nobaseline fontsize_min = 13 max_width = 300 tooltip = "EXTENDED_RELATIONS_TOOLTIP" } expand = {} } hbox_traits_list_small = { name = "traits_list" datacontext = "[LineOfSuccessionItem.GetTraitArrays]" } text_single = { name = "vassal_stances_that_prefer" visible = "[And( And( Not( IsLandlessAdventurer( GetPlayer ) ), Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) ), Not( IsLandlessMerchant( GetPlayer ) ) )]" layoutpolicy_horizontal = expanding text = "MRW_HEIR_PREFERRED" autoresize = no using = Font_Size_Medium } expand = {} } expand = {} vbox = { layoutpolicy_vertical = expanding portrait_shoulders = { name = "heir_portrait" blockoverride "portrait_button" { using = tooltip_ws } } expand = {} } } } } } expand = {} } type tooltip_my_realm_to_liege = container_my_realm_window_contribution_tooltip { datacontext = "[MyRealmWindow.GetCharacter]" blockoverride "contribution_tooltip_header" { text = "[SelectLocalization(Character.HasSuzerain, 'MRW_TT_TAXES_TO_MY_SUZERAIN', 'MRW_TT_TAXES_TO_MY_LIEGE')]" } blockoverride "contribution_tooltip_content_suffix" {} } type container_my_realm_window_contribution_tooltip = container { alwaystransparent = no using = GeneralTooltipSetup using = DefaultTooltipBackground widget_gold_breakdown_tooltip = { layoutpolicy_horizontal = expanding blockoverride "margins" { margin = { 15 10 } margin_bottom = 5 spacing = 15 } blockoverride "income" { visible = no } blockoverride "background" {} blockoverride "extra_info" { block "contribution_tooltip_content_suffix" { text_single = { visible = "[Character.IsTheocraticLessee]" text = "MY_REALM_WINDOW_CONTRIBUTION_TO_THEOCRATIC_LIEGE" default_format = "#weak" multiline = yes maximumsize = { 300 -1 } } } text_single = { layoutpolicy_horizontal = expanding margin_bottom = 10 block "contribution_tooltip_header" { align = left } } } } } type vbox_my_realm_domain_body = vbox { layoutpolicy_horizontal = expanding margin_top = 5 spacing = 20 using = Animation_Tab_Switch vbox = { visible = "[Character.HasDomicile]" layoutpolicy_horizontal = expanding margin_top = 10 spacing = 10 text_label_center = { max_width = 500 text = "[Character.GetDomicile.GetYourDomicileText]" default_format = "#low" using = Font_Size_Medium } vbox_domicile_button = {} } vbox = { layoutpolicy_horizontal = expanding datamodel = "[MyRealmWindow.GetTradeMarketDomainItems]" item = { vbox = { name = "trade_market_group" layoutpolicy_horizontal = expanding vbox = { layoutpolicy_horizontal = expanding margin = { 8 0 } button_trade_market_group_header = { name = "trade_market_heading_tutorial_uses_this" datacontext = "[TradeMarketGroup.GetTradeMarket]" } 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 } } } } } vbox = { name = "county_group" visible = "[TradeMarketGroup.IsExpanded]" datamodel = "[TradeMarketGroup.GetCounties]" layoutpolicy_horizontal = expanding margin_top = 10 margin_left = 15 margin_bottom = 10 spacing = 20 item = { vbox = { datacontext = "[CountyGroup.GetCounty]" datacontext = "[CountyGroup.GetCapitalProvince.GetCounty]" datacontext = "[CountyGroup.AccessBreakdowns]" datacontext = "[CountyGroup.AccessComplexBars]" layoutpolicy_horizontal = expanding background = { margin_top = 10 margin_bottom = 5 margin_left = 20 margin_right = 40 texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" spriteType = Corneredtiled spriteborder = { 40 8 } texture_density = 1 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 layoutpolicy_vertical = expanding spacing = 10 margin_bottom = 10 coa_title_tiny = {} vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin_top = -10 text_single = { 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 = {} } } } 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 = { 12 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" 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]" } } hbox = { name = "holding_buildings" layoutpolicy_horizontal = expanding minimumsize = { 0 40 } ignoreinvisible = yes 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" } 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 { widgetid = "tab_vassals" layoutpolicy_horizontal = expanding using = Animation_Tab_Switch vbox = { layoutpolicy_horizontal = expanding margin = { 15 5 } margin_bottom = 10 spacing = 5 hbox = { layoutpolicy_horizontal = expanding text_single = { text = "MY_REALM_WINDOW_VASSAL_OPINION" max_width = 180 tooltip = "MY_REALM_WINDOW_VASSAL_OPINION_TT" } expand = {} hbox = { tooltip = "[GetPlayer.GetDreadBreakdown]" icon = { name = "dread_icon" size = { 30 30 } texture = "gfx/interface/icons/icon_dread.dds" } text_single = { name = "dread_name" text = "[dread|E]: [GetPlayer.GetDread|0]" default_format = "#high" max_width = 90 } } expand = {} hbox = { name = "tutorial_highlight_vassal_limit" spacing = 4 tooltip = "[Character.GetVassalLimitTooltip]" background = { visible = "[GreaterThan_int32( Character.GetNumVassalsTowardsLimit, Character.GetVassalLimit )]" using = Status_Bad } icon = { size = { 30 30 } texture = "gfx/interface/icons/icon_vassal.dds" } text_single = { text = "MY_REALM_WINDOW_VASSAL_LIMIT" max_width = 130 } text_single = { text = "MY_REALM_WINDOW_VASSAL_LIMIT_VALUE" max_width = 50 } } } hbox = { layoutpolicy_horizontal = expanding spacing = 10 text_single = { text = MY_REALM_WINDOW_VASSAL_STANCES align = nobaseline max_width = 100 } hbox = { datamodel = "[GetAllVassalStances]" spacing = 5 item = { text_single = { visible = "[NotEqualTo_int32( MyRealmWindow.GetNumVassalsWithStance( VassalStance.Self ), '(int32)0' )]" text = "MY_REALM_WINDOW_VASSAL_STANCE_COUNT" align = nobaseline fonttintcolor = "[GetOpinionTint(FixedPointToInt(VassalStance.GetModifierValueFor( MyRealmWindow.GetCharacter )))]" margin = { 0 2 } margin_left = 5 margin_right = 10 using = Background_Area_Border tooltip = "MY_REALM_WINDOW_VASSAL_STANCE_COUNT_TT" max_width = 56 } } } expand = {} } } hbox = { name = "vassal_filters_container" layoutpolicy_horizontal = expanding spacing = 10 margin = { 10 0 } margin_bottom = 10 button_standard = { size = { 50 30 } onclick = "[GetVariableSystem.Toggle('mass_directives_window')]" onclick = "[GetVariableSystem.Set('compact_vassal_list_realm', 'yes')]" shortcut = "mass_directives" tooltip = "MY_REALM_MASS_DIRECTIVES" down = "[GetVariableSystem.Exists('mass_directives_window')]" button_give_directive = { # mirror = horizontal parentanchor = center size = { 30 30 } alwaystransparent = yes } } button_menu = { onclick = "[GetVariableSystem.Toggle('compact_vassal_list_realm')]" onclick = "[GetVariableSystem.Clear('mass_directives_window')]" tooltip = "MY_REALM_COMPACT_SUBJECT_LIST" shortcut = "compact_subject_list_realm" } expand = {} blockoverride "dropdown_size" { size = { 210 32 } } blockoverride "dropdown_list_maxsize" { maximumsize = { 202 250 } } dropdown_menu_standard = { name = "government_filters_dropdown" blockoverride "dropdown_properties" { datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" } blockoverride "dropdown_active_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" } blockoverride "dropdown_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_TT" } } dropdown_menu_standard = { name = "vassal_stance_filters_dropdown" blockoverride "dropdown_properties" { datamodel = "[MyRealmWindow.GetVassalStanceFilters]" onselectionchanged = "[MyRealmWindow.SelectActiveVassalStanceFilter]" selectedindex = "[MyRealmWindow.GetActiveVassalStanceFilterIndex]" } blockoverride "dropdown_active_item_properties" { text = "MRW_VASSAL_STANCE_FILTER" tooltip = "MRW_VASSAL_STANCE_FILTER_DROPDOWN_TT" } blockoverride "dropdown_item_properties" { text = "MRW_VASSAL_STANCE_FILTER" tooltip = "MRW_VASSAL_STANCE_FILTER_TT" } } } text_single = { name = "government_filter_label" visible = "[MyRealmWindow.HasActiveGovernmentTypeFilter]" text = "[MyRealmWindow.GetActiveGovernmentTypeFilter.GetVassalsLabel]" margin_bottom = 10 } } type vbox_my_realm_subjects_body = vbox { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin = { 0 10 } using = Animation_Tab_Switch vbox = { visible = "[Not(GetVariableSystem.Exists('compact_vassal_list_realm'))]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding fixedgridbox = { datacontext = "[MyRealmWindow.GetPowerfulVassals]" datamodel = "[CharacterSelectionList.GetList]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" layoutpolicy_horizontal = expanding addcolumn = 538 addrow = 176 setitemsizefromcell = yes item = { widget_vassal_list_item = { datacontext = "[CharacterListItem.GetCharacter]" datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" datacontext = "[MyRealmWindowVassalItem.GetContract]" background = { using = Background_Frame } } } } fixedgridbox = { datacontext = "[MyRealmWindow.GetTributaries]" datamodel = "[CharacterSelectionList.GetList]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" layoutpolicy_horizontal = expanding addcolumn = 538 addrow = 176 setitemsizefromcell = yes item = { widget_vassal_list_item = { name = tutorial_highlight_vassal datacontext = "[CharacterListItem.GetCharacter]" datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" datacontext = "[MyRealmWindowVassalItem.GetContract]" } } } fixedgridbox = { datacontext = "[MyRealmWindow.GetRegularVassals]" datamodel = "[CharacterSelectionList.GetList]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" layoutpolicy_horizontal = expanding addcolumn = 538 addrow = 185 setitemsizefromcell = yes item = { widget_vassal_list_item = { name = tutorial_highlight_vassal datacontext = "[CharacterListItem.GetCharacter]" datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" datacontext = "[MyRealmWindowVassalItem.GetContract]" } } } expand = {} } vbox = { visible = "[GetVariableSystem.Exists('compact_vassal_list_realm')]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding vbox_compact_subjects = { datacontext = "[MyRealmWindow.GetPowerfulVassals]" blockoverride "text" { raw_text = "[GetDataModelSize(CharacterSelectionList.GetList)] [powerful_vassals|e]" max_width = 510 } } vbox_compact_subjects = { datacontext = "[MyRealmWindow.GetRegularVassals]" blockoverride "text" { raw_text = "[GetDataModelSize(CharacterSelectionList.GetList)] [vassals|e]" max_width = 510 } } vbox_compact_subjects = { datacontext = "[MyRealmWindow.GetTributaries]" blockoverride "text" { raw_text = "[GetDataModelSize(CharacterSelectionList.GetList)] [tributaries|e]" max_width = 510 } } expand = {} } text_single = { visible = "[EqualTo_int32( MyRealmWindow.GetVassalCount, '(int32)0' )]" layoutpolicy_vertical = expanding text = "MY_REALM_WINDOW_SUBJECTS_NO_SUBJECTS" default_format = "#weak" } expand = {} } type vbox_compact_subjects = vbox { visible = "[DataModelHasItems(CharacterSelectionList.GetList)]" layoutpolicy_horizontal = expanding oncreate = "[BindFoldOutContext]" oncreate = "[PdxGuiFoldOut.Unfold]" button_expandable_toggle_field = {} blockoverride "show_portrait_status_icons" { visible = "[Not(GetVariableSystem.Exists('mass_directives_window'))]" } vbox = { visible = "[PdxGuiFoldOut.IsUnfolded]" margin_left = 5 layoutpolicy_horizontal = expanding fixedgridbox_compact_subjects = {} } } type fixedgridbox_compact_subjects = fixedgridbox { datamodel = "[CharacterSelectionList.GetList]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" block "gridbox_size" { layoutpolicy_horizontal = expanding addcolumn = 90 addrow = 115 } datamodel_wrap = 6 flipdirection = yes item = { widget_compact_vassal_list_item = { datacontext = "[CharacterListItem.GetCharacter]" widget = { size = { 40 40 } parentanchor = bottom|right position = { 0 -33 } block "directive_button" { visible = "[GetVariableSystem.Exists('mass_directives_window')]" } widget = { visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]" size = { 100% 100% } button_round = { size = { 100% 100% } enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]" onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]" using = tooltip_se text_single = { parentanchor = center text = "[Character.Custom('vassal_directive_icon')]" align = nobaseline using = Font_Size_Tiny alwaystransparent = yes alpha = "[Select_float( Character.IsPlayerInteractionValid('give_vassal_directive_interaction') , '(float)1.0', '(float)0.25' )]" tooltip = "VASSAL_DIRECTIVE_ICON_TOOLTIP" using = tooltip_se } } } } } } } type vbox_my_realm_succession_body_top = vbox { layoutpolicy_horizontal = expanding margin_bottom = 5 using = Animation_Tab_Switch text_single = { visible = "[MyRealmWindow.HasHeir]" margin = { 0 10 } text = "MRW_YOUR_PLAYER_HEIR" align = nobaseline default_format = "#I" max_width = 500 } text_single = { name = "no_heir_warning" visible = "[Not( MyRealmWindow.HasHeir )]" margin = { 0 4 } text = "MY_REALM_WINDOW_NO_HEIR_FLAVOR" align = nobaseline } hbox = { layoutpolicy_horizontal = expanding allow_outside = yes margin = { 10 0 } ### HEIR INFO vbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding margin_left = 10 spacing = 2 text_label_left = { layoutpolicy_horizontal = expanding text = "game_concept_player_heir" align = nobaseline using = Font_Size_Medium margin = { 0 2 } } text_single = { visible = "[MyRealmWindow.HasHeir]" layoutpolicy_horizontal = expanding text = "[MyRealmWindow.GetCharacter.GetPlayerHeir.GetUINameNoTooltip]" default_format = "#low" max_width = 415 using = Font_Size_Medium } text_single = { name = "vassal_stances_that_prefer" datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" visible = "[And3( Not( IsLandlessAdventurerOrMerchant( GetPlayer ) ), MyRealmWindow.HasHeir, Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) )]" layoutpolicy_horizontal = expanding autoresize = no text = "MY_REALM_WINDOW_SUCCESSION_PREFERRED_BY" default_format = "#weak" } hbox = { visible = [MyRealmWindow.HasHeir] layoutpolicy_horizontal = expanding margin = { 5 5 } 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 using = Font_Size_Medium layoutpolicy_horizontal = expanding autoresize = no } } hbox = { layoutpolicy_horizontal = expanding margin_top = 2 button_standard = { size = { 150 32 } text = "MY_REALM_WINDOW_SUCCESSION_DESIGNATE_HEIR" enabled = "[MyRealmWindow.CanDesignateHeir]" onclick = "[OpenGameView( 'designate_heir' )]" tooltip = "MRW_DESIGNATE_HEIR_TT" } expand = {} } expand = {} } portrait_shoulders = { datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" visible = "[Character.IsValid]" allow_outside = yes blockoverride "glow_visible" { visible = no } } } } type vbox_my_realm_succession_body = vbox { name = "tab_succession" widgetid = "tab_succession" datacontext = "[MyRealmWindow.GetKurultaiSuccession]" layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding using = Animation_Tab_Switch vbox = { layoutpolicy_horizontal = expanding vbox_succession_content_kurultai = { visible = "[KurultaiSuccession.IsValid]" } vbox_succession_content_default = { visible = "[Not( KurultaiSuccession.IsValid )]" } } vbox_kurultai_group_foldout = { visible = "[And( KurultaiSuccession.IsValid, Not( IsDataModelEmpty( KurultaiSuccession.GetElectors ) ) )]" } vbox_kurultai_inherited_titles_group_foldout = { visible = "[KurultaiSuccession.IsValid]" } 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 autoresize = no size = { 0 22 } text = "MY_REALM_WINDOW_LAW_GROUP_NAME" align = nobaseline alwaystransparent = yes } text_single = { layoutpolicy_horizontal = expanding autoresize = no size = { 0 22 } block "law_name" { text = "[GuiLawGroup.GetCurrentLevel.GetLaw.GetName]" } align = nobaseline default_format = "#high" alwaystransparent = yes } } expand = {} vbox = { visible = "[Not( LawGroup.HasFlag( 'treasury_budget_law' ) )]" enabled = "[LawGroup.CanRulerChange(GetPlayer)]" tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" layoutpolicy_vertical = expanding widget = { size = { 24 24 } 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' )]" } } } } type vbox_law_item = vbox { layoutpolicy_horizontal = expanding spacing = 8 text_label_center = { block "item_title" { text = "MY_REALM_WINDOW_LAWS_REALM_LAWS" } } text_multi = { block "item_desc" { visible = no } align = nobaseline default_format = "#weak" autoresize = yes max_width = 500 } flowcontainer = { datamodel = "[MyRealmWindow.GetRealmLaws]" ignoreinvisible = yes wrap_count = 2 spacing = 15 item = { widget_my_realm_law_item = { block "show_law" { visible = "[And( GuiLawGroup.IsAvailable, Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law' ) ))]" } } } } } type vbox_election_title_law_item = vbox { datacontext = "[TitleItem.GetTitle]" layoutpolicy_horizontal = expanding background = { using = Background_Frame } hbox = { layoutpolicy_horizontal = expanding margin = { 10 0 } margin_top = 2 margin_bottom = 4 spacing = 10 container = { coa_title_tiny_crown_with_status_icons = { parentanchor = left|vcenter using = tooltip_ne } } text_single = { layoutpolicy_horizontal = expanding text = "[Title.GetSuccessionLawText]" align = nobaseline } expand = {} 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 } } } } type vbox_my_realm_laws_body = vbox { using = Animation_Tab_Switch ### LAWS TOP AND PROGRESS BAR vbox = { visible = "[And( And( GreaterThan_int32( MyRealmWindow.GetPowerfulVassalLawVoteCount, '(int32)0' ), Not( IsNomad( GetPlayer ) ) ), Not( GetPlayer.GetGovernment.HasRule( 'deny_powerful_vassal' )))]" margin_top = 15 spacing = 5 text_single = { text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_TITLE" align = nobaseline max_width = 500 } ### POWERFUL VASSALS PROGRESS BAR vbox = { layoutpolicy_horizontal = expanding margin = { 20 0 } hbox = { layoutpolicy_horizontal = expanding spacing = 10 text_single = { text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_APPROVES" align = nobaseline max_width = 150 } progressbar_standard = { layoutpolicy_horizontal = expanding size = { 140 20 } using = Animation_ShowHide_Standard max = "[IntToFloat( MyRealmWindow.GetPowerfulVassalLawVoteCount )]" value = "[IntToFloat( MyRealmWindow.GetPowerfulVassalLawApproves )]" } text_single = { text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_OPPOSES" align = nobaseline max_width = 150 } } } text_multi = { text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_DESC" align = center|nobaseline autoresize = yes default_format = "#weak" max_width = 500 } } ### KURULTAI PROGRESS BAR vbox = { datacontext = "[MyRealmWindow.GetKurultaiSuccession]" visible = "[And( GreaterThan_int32( KurultaiSuccession.GetVoteCount, '(int32)0' ), IsNomad( GetPlayer ) )]" layoutpolicy_horizontal = expanding margin_top = 15 hbox = { layoutpolicy_horizontal = expanding spacing = 10 text_single = { text = "MY_REALM_WINDOW_KURULTAI_APPROVES" align = nobaseline max_width = 150 } progressbar_standard = { name = "kurultai_votes" layoutpolicy_horizontal = expanding size = { 200 20 } using = Animation_ShowHide_Standard max = "[IntToFloat( KurultaiSuccession.GetVoteCount )]" value = "[IntToFloat( KurultaiSuccession.GetObedientCount )]" } text_single = { text = "MY_REALM_WINDOW_KURULTAI_OPPOSES" align = nobaseline max_width = 150 } } text_multi = { text = "MY_REALM_WINDOW_KURULTAI_OBEDIENT" autoresize = yes default_format = "#italic" align = center max_width = 500 margin = { 0 5 } } } vbox = { layoutpolicy_horizontal = expanding 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" { visible = no } blockoverride "show_law" { visible = "[And( GuiLawGroup.IsAvailable, Or4( GuiLawGroup.GetLawGroup.HasFlag( 'succession_order_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'succession_gender_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'imperial_policy' ), GuiLawGroup.GetLawGroup.HasFlag( 'church_policy' ) ) )]" } } ### PRIMARY TITLE ELECTION (if exists) flowcontainer = { name = "primary_title_election" datacontext = "[GetPlayer]" datamodel = "[MyRealmWindow.GetTitlesCanVote]" visible = "[MyRealmWindow.CanVote]" ignoreinvisible = yes item = { button_standard = { datacontext = "[TitleItem.GetTitle]" visible = "[ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self )]" text = "MY_REALM_WINDOW_VOTE" onclick = "[OpenGameViewData( 'title_election', Title.Self )]" tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" } } } #### ELECTIONS BUTTON vbox = { visible = "[MyRealmWindow.CanVote]" layoutpolicy_horizontal = expanding text_label_left = { layoutpolicy_horizontal = expanding text = "MY_REALM_WINDOW_LAWS_SPECIFIC_SUCCESSION_LAWS" } vbox = { name = "elections" datacontext = "[GetPlayer]" datamodel = "[MyRealmWindow.GetTitlesCanVote]" layoutpolicy_horizontal = expanding ignoreinvisible = yes margin_top = 5 item = { vbox_election_title_law_item = { visible = "[Not( ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self ) )]" } } } } ### PROVINCIAL LAWS vbox_law_item = { datacontext = "[GetPlayer]" visible = "[ProvincialLawCharacter( Character )]" blockoverride "item_title" { text = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS" } blockoverride "item_desc" { text = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS_DESC" } blockoverride "show_law" { visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'admin_law' ) )]" } blockoverride "law_enabled" { enabled = "[Not( Character.HasOverlord )]" } 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.HasTreasury, MyRealmWindow.HasBudgetLaws )]" blockoverride "item_title" { text = "MY_REALM_WINDOW_LAWS_TREASURY_BUDGET_LAWS" } blockoverride "show_law" { visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'treasury_budget_law' ) )]" } } button_standard = { visible = "[And3( Character.IsIndependentRuler, Character.HasTreasury, Not( Character.GetGovernment.HasGovernmentFlag( 'government_is_ecclesiastical' ) ) )]" size = { 320 44 } onclick = "[OpenGameViewData( 'treasury_budget_change', GetPlayer.Self )]" tooltip = "TREASURY_BUDGET_TT" using = tooltip_ws hbox = { layoutpolicy_horizontal = expanding spacing = 12 expand = {} icon = { size = { 32 32 } texture = "gfx/interface/icons/icon_imperial_treasury.dds" } text_single = { text = "MY_REALM_WINDOW_MANAGE_TREASURY_BUDGET" align = nobaseline default_format = "#clickable" } expand = {} } } } } type authority_icon = vbox { hbox = { visible = "[IsNomad( Character )]" icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" size = { 30 30 } texture = "gfx/interface/icons/dominance_01.dds" tooltipwidget = { general_law_tooltip = {} } } icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" size = { 30 30 } texture = "gfx/interface/icons/dominance_02.dds" tooltipwidget = { general_law_tooltip = {} } } icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" size = { 30 30 } texture = "gfx/interface/icons/dominance_03.dds" tooltipwidget = { general_law_tooltip = {} } } icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" size = { 30 30 } texture = "gfx/interface/icons/dominance_04.dds" tooltipwidget = { general_law_tooltip = {} } } icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)4')]" size = { 30 30 } texture = "gfx/interface/icons/dominance_05.dds" tooltipwidget = { general_law_tooltip = {} } } } hbox = { visible = "[And(Not(IsNomad( Character )),Not(Character.GetGovernment.HasGovernmentFlag( 'government_is_tribal' )))]" button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" size = { 30 30 } texture = "gfx/interface/icons/laws/crown_authority_0.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" size = { 30 30 } texture = "gfx/interface/icons/laws/crown_authority_1.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" size = { 30 30 } texture = "gfx/interface/icons/laws/crown_authority_2.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" size = { 30 30 } texture = "gfx/interface/icons/laws/crown_authority_3.dds" tooltipwidget = { general_law_tooltip = {} } } } hbox = { visible = "[Character.GetGovernment.HasGovernmentFlag( 'government_is_tribal' )]" button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" size = { 30 30 } texture = "gfx/interface/icons/laws/tribal_authority_0.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" size = { 30 30 } texture = "gfx/interface/icons/laws/tribal_authority_1.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" size = { 30 30 } texture = "gfx/interface/icons/laws/tribal_authority_2.dds" tooltipwidget = { general_law_tooltip = {} } } button_icon = { visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" size = { 30 30 } texture = "gfx/interface/icons/laws/tribal_authority_3.dds" tooltipwidget = { general_law_tooltip = {} } } } } 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 } parentanchor = right|vcenter position = { -630 0 } using = Window_Background_Subwindow # visible = "[GetVariableSystem.Exists('mass_directives_window')]" visible = no state = { name = _show using = Animation_FadeIn_Quick position = { -630 0 } } state = { name = _hide using = Animation_FadeOut_Quick position_x = -620 } vbox = { layoutpolicy_horizontal = expanding margin = { 4 4 } header_pattern = { layoutpolicy_horizontal = expanding blockoverride "header_text" { text = "MASS_DIRECTIVES_TITLE" margin = { 30 0 } } blockoverride "button_close" { onclick = "[GetVariableSystem.Clear('mass_directives_window')]" } } vbox = { layoutpolicy_horizontal = expanding margin = { 15 0 } margin_top = 5 spacing = 10 hbox = { layoutpolicy_horizontal = expanding text_single = { layoutpolicy_horizontal = expanding autoresize = no multiline = yes text = "MASS_DIRECTIVES_TIP" align = nobaseline|center } } vbox = { layoutpolicy_horizontal = expanding spacing = 10 # all the filters can be left for the future # visible = no button_standard_list = { enabled = no size = { 0 40 } layoutpolicy_horizontal = expanding raw_text = "#D WORK IN PROGRESS" using = Font_Type_Flavor using = Font_Size_Medium } hbox = { layoutpolicy_horizontal = expanding blockoverride "dropdown_size" { size = { 230 32 } } blockoverride "dropdown_list_maxsize" { maximumsize = { 222 250 } } # TODO Faith filter dropdown_menu_standard = { blockoverride "dropdown_properties" { datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" } blockoverride "dropdown_active_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" } blockoverride "dropdown_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_TT" } } expand = {} # TODO Culture filter dropdown_menu_standard = { blockoverride "dropdown_properties" { datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" } blockoverride "dropdown_active_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" } blockoverride "dropdown_item_properties" { text = "MRW_GOVERNMENT_FILTER" tooltip = "MRW_GOVERNMENT_FILTER_TT" } } } hbox = { visible = "[GetPlayer.IsValid]" layoutpolicy_horizontal = expanding margin_left = 3 spacing = 5 button_checkbox_label = { background = { using = Background_Area_Border } layoutpolicy_horizontal = expanding # visible = " can anyone convert counties to your faith" # onclick = "" blockoverride "checkbox" { # checked = "" } blockoverride "text" { raw_text = "Convert to [GetPlayer.GetFaith.GetNameNoTooltip] (3)" max_width = 190 min_width = 190 } } button_checkbox_label = { layoutpolicy_horizontal = expanding background = { using = Background_Area_Border } # visible = " can anyone convert counties to your culture" # onclick = "" blockoverride "checkbox" { # checked = "" } blockoverride "text" { raw_text = "Convert to [GetPlayer.GetCulture.GetNameNoTooltip] (3)" max_width = 190 min_width = 190 } } } hbox = { layoutpolicy_horizontal = expanding # visible = has admin vassals # datamodel = "[GetAllAdministrativeObligations]" datamodel = "[GetNullCharacterDataModel( '(int32)6')]" spacing = 5 item = { button_standard_list = { layoutpolicy_horizontal = expanding size = { 0 30 } hbox = { layoutpolicy_horizontal = expanding margin = { 5 0 } text_single = { raw_text = "@naval_administration!" align = nobaseline alwaystransparent = yes } text_single = { layoutpolicy_horizontal = expanding autoresize = no align = nobaseline|center raw_text = "1" alwaystransparent = yes } } } } expand = {} } hbox = { layoutpolicy_horizontal = expanding margin_left = 10 text_label_left = { layoutpolicy_horizontal = expanding autoresize = no margin = { 0 5 } align = nobaseline text = "ACTIVE_DIRECTIVES_HEADER" } } hbox = { layoutpolicy_horizontal = expanding margin_left = 5 dynamicgridbox = { datamodel = "[GetNullCharacterDataModel( '(int32)10')]" flipdirection = yes datamodel_wrap = 7 layoutpolicy_horizontal = expanding item = { widget = { size = { 65 35 } button_standard_list = { size = { 60 30 } hbox = { layoutpolicy_horizontal = expanding margin = { 5 0 } text_single = { raw_text = "@task_develop_county!" align = nobaseline alwaystransparent = yes using = Font_Size_Tiny } text_single = { layoutpolicy_horizontal = expanding autoresize = no align = nobaseline|center raw_text = "1" alwaystransparent = yes } } } } } } } } hbox = { layoutpolicy_horizontal = expanding margin = { 10 5 } background = { using = Background_Area_Dark alpha = 0.7 margin_left = 16 margin_right = 10 modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" blend_mode = alphamultiply } } text_single = { layoutpolicy_horizontal = expanding autoresize = no margin = { 0 5 } align = nobaseline text = "ISSUE_DIRECTIVES_HEADER" } text_single = { layoutpolicy_horizontal = expanding autoresize = no align = nobaseline|right default_format = "#low" text = "VASSALS_AFFECTED_HEADER" } } } scrollbox = { layoutpolicy_horizontal = expanding layoutpolicy_vertical = expanding blockoverride "scrollbox_content" { vbox = { layoutpolicy_horizontal = expanding datamodel = "[GetNullCharacterDataModel('(int32)10')]" # datamodel = "all directives that can be applied to selected vassals, including No Directive" spacing = 1 item = { button_standard = { layoutpolicy_horizontal = expanding size = { 0 38 } # onclick = " apply this directive to selected vassals" hbox = { layoutpolicy_horizontal = expanding margin = { 10 0 } margin_right = 15 spacing = 5 text_single = { raw_text = "@task_develop_county!" align = nobaseline using = Font_Size_Tiny } text_single = { layoutpolicy_horizontal = expanding autoresize = no align = nobaseline raw_text = "Directive name" alwaystransparent = yes } expand = {} text_single = { autoresize = no size = { 35 20 } align = nobaseline|right raw_text = "10" # raw_text = " amount of vassals that can switch to this directive" #TODO default_format = "#low" } } } } } } } } } }