Crusader Kings III

Crusader Kings III

RUI:Character
Lord DGP 27 May, 2023 @ 6:34pm
Show Secondary Spouse and Concubines on Politics Tab
Thank you for creating the best GUI mod for CK3!

I wanted to ask if you could show secondary spouses and concubines on the main/politics tab?
To be specific: In file RUI_Ch_family_section.gui between parents and children add:

### Wifes ### vbox = { visible = "[GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' )]" layoutpolicy_horizontal = expanding button_standard_hover = { layoutpolicy_horizontal = expanding size = { -1 24 } onclick = "[CharacterWindow.SetTab( 'relations' )]" onclick = "[GetVariableSystem.Set( 'RUI_Ch_expanded', 'spouses' )]" onrightclick = "[CharacterWindow.SetTab( 'relations' )]" onrightclick = "[GetVariableSystem.Set( 'RUI_Ch_expanded', 'spouses' )]" onrightclick = "[GetVariableSystem.Toggle( 'RUI_Ch_enlarged_mode' )]" button_ignore = none text = "SECONDARY_SPOUSES" align = center|nobaseline background = { using = Background_Area_Dark alpha = 0.75 modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" blend_mode = alphamultiply } } tooltip = "RUI_Ch_show_list_TT" } scrollarea = { layoutpolicy_horizontal = expanding size = { -1 87 } scrollbarpolicy_vertical = always_off scrollbarpolicy_horizontal = as_needed scrollbar_horizontal = { using = Scrollbar_Horizontal_Alpha } scrollwidget = { vbox = { layoutpolicy_horizontal = expanding hbox = { datamodel = "[CharacterWindow.GetSecondarySpouses]" item = { portrait_head_tiny = { visible = "[Character.IsAlive]" } } } expand = {} } } } } ### Concubines ### vbox = { visible = "[GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' )]" layoutpolicy_horizontal = expanding button_standard_hover = { layoutpolicy_horizontal = expanding size = { -1 24 } onclick = "[CharacterWindow.SetTab( 'relations' )]" onclick = "[GetVariableSystem.Set( 'RUI_Ch_expanded', 'concubines' )]" onrightclick = "[CharacterWindow.SetTab( 'relations' )]" onrightclick = "[GetVariableSystem.Set( 'RUI_Ch_expanded', 'concubines' )]" onrightclick = "[GetVariableSystem.Toggle( 'RUI_Ch_enlarged_mode' )]" button_ignore = none text = "CONCUBINES" align = center|nobaseline background = { using = Background_Area_Dark alpha = 0.75 modify_texture = { texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" blend_mode = alphamultiply } } tooltip = "RUI_Ch_show_list_TT" } scrollarea = { layoutpolicy_horizontal = expanding size = { -1 87 } scrollbarpolicy_vertical = always_off scrollbarpolicy_horizontal = as_needed scrollbar_horizontal = { using = Scrollbar_Horizontal_Alpha } scrollwidget = { vbox = { layoutpolicy_horizontal = expanding hbox = { datamodel = "[CharacterWindow.GetConcubines]" item = { portrait_head_tiny = { visible = "[Character.IsAlive]" } } } expand = {} } } } }

Thank you very much!