window = { name = "advcm_culture_window" parentanchor = top|right position = { -600 200 } size = { 500 700 } layer = windows_layer filter_mouse = all allow_outside = yes alwaystransparent = no using = Window_Background using = Window_Decoration movable = yes datacontext = "[GetVariableSystem]" datacontext = "[GetPlayer]" visible = "[GetVariableSystem.Exists('advcm_culture_window_visible')]" state = { name = init trigger_on_create = yes on_start = "[GetScriptedGui('advcm_culture_list_load').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).End)]" } state = { name = _show using = Animation_FadeIn_Quick } state = { name = _hide using = Animation_FadeOut_Quick } vbox = { restrictparent_min = yes using = Window_Margins header_pattern = { layoutpolicy_horizontal = expanding blockoverride "header_text" { text = advcm_culture_menu_title } blockoverride "button_close" { onclick = "[GetVariableSystem.Toggle('advcm_culture_window_visible')]" } } scrollbox = { layoutpolicy_vertical = expanding layoutpolicy_horizontal = expanding minimumsize = { 400 100% } blockoverride "scrollbox_content" { vbox = { name = "cultures" layoutpolicy_horizontal = expanding datamodel = "[GetGlobalList('advcm_heritage_list')]" item = { vbox = { name = "culture_group" layoutpolicy_horizontal = expanding datacontext = "[Scope.Culture.GetHeritage]" button_standard_hover = { layoutpolicy_horizontal = expanding size = { 0 40 } onclick = "[GetVariableSystem.Toggle(ConcatIfNeitherEmpty(CulturePillar.GetNameNoTooltip,'children_visible'))]" tooltip = RULER_DESIGNER_LIST_CULTURE_ENTRY_TOOLTIP hbox = { margin = { 5 0 } spacing = 10 button_list_expand = { checked = "[GetVariableSystem.Exists(ConcatIfNeitherEmpty(CulturePillar.GetNameNoTooltip,'children_visible'))]" onclick = "[GetVariableSystem.Toggle(ConcatIfNeitherEmpty(CulturePillar.GetNameNoTooltip,'children_visible'))]" } text_single = { layoutpolicy_horizontal = expanding text = "[CulturePillar.GetNameNoTooltip]" default_format = "#clickable" autoresize = no } } } vbox = { name = "cultures" layoutpolicy_horizontal = expanding datamodel = "[CulturePillar.GetCulturesWithPillar]" visible = "[GetVariableSystem.Exists(ConcatIfNeitherEmpty(CulturePillar.GetNameNoTooltip,'children_visible'))]" item = { hbox = { layoutpolicy_horizontal = expanding datacontext = "[Culture.GetTemplate]" button_standard_hover = { name = "culture_item" layoutpolicy_horizontal = expanding size = { 0 35 } tooltipwidget = { ruler_designer_culture_tooltip = {} } using = Button_Select_Culture onclick = "[GetScriptedGui('advcm_culture_change').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).AddScope('selected_culture', Culture.MakeScope).End)]" hbox = { margin_left = 50 text_single = { margin = { 5 0 } text = "[Culture.GetNameNoTooltip]" default_format = "#clickable" align = nobaseline } expand = {} button_edit_text = { name = advcm_innovation_selected_culture onclick = "[GetScriptedGui('advcm_innovation_selected_culture').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).AddScope('innovation_culture', Culture.MakeScope).End)]" onclick = "[GetVariableSystem.Toggle('advcm_innovation_window_visible')]" } } } } } } } } } } } vbox = { margin = { 10 10 } size = {300 45} spacing = 10 hbox = { spacing = 10 button_standard = { size = {200 35} text = advcm_change_to_my_culture tooltip = advcm_change_to_my_culture onclick = "[GetScriptedGui('advcm_change_myculture').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).End)]" } button_standard = { size = {200 35} text = advcm_change_counties_to_my_culture tooltip = advcm_change_counties_to_my_culture_tt onclick = "[GetScriptedGui('advcm_change_myculture_county').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).End)]" } } hbox = { spacing = 10 button_standard = { size = {270 35} text = advcm_change_counties_to_marked_character_culture tooltip = advcm_change_counties_to_marked_character_culture_tt onclick = "[GetScriptedGui('advcm_change_otherculture_county').Execute(GuiScope.SetRoot(GetPlayer.MakeScope).End)]" } } } } }