ZingFreelancer

Better Character UI with improved traits visibility

Jan 2nd, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 120.22 KB | None | 0 0
  1. ######################################################
  2. ################# CHARACTER WINDOW ###################
  3. ######################################################
  4.  
  5. window = {
  6.     name = "character_window"
  7.     datacontext = "[GetVariableSystem]"
  8.     datacontext = "[CharacterWindow.GetCharacter]"
  9.     movable = no
  10.     layer = middle
  11.  
  12.     using = Window_Size_Sidebar
  13.     using = Window_Background_Sidebar
  14.  
  15.     state = {
  16.         name = _show
  17.         using = Animation_FadeIn_Quick
  18.         using = Sound_WindowShow_Standard
  19.         position_x = 0
  20.  
  21.         on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]"
  22.     }
  23.  
  24.     state = {
  25.         name = _hide
  26.         using = Animation_FadeOut_Quick
  27.         using = Sound_WindowHide_Standard
  28.         position_x = -60
  29.  
  30.         on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]"
  31.     }
  32.  
  33.     scrollarea = {
  34.         scrollbarpolicy_horizontal = always_off
  35.         size = { 600 100% }
  36.  
  37.         scrollbar_vertical = {
  38.                 using = Scrollbar_Vertical
  39.         }
  40.  
  41.         scrollwidget = {
  42.  
  43.             vbox = {
  44.                 name = "main_content"
  45.                 using = Window_Margins_Sidebar
  46.                 minimumsize = { -1 1090 }
  47.  
  48.                 ###############
  49.                 # Character box
  50.                 widget = {
  51.                     name = "main_characters"
  52.                     datacontext = "[GetIllustration( 'character_view_bg' )]"
  53.                     layoutpolicy_horizontal = expanding
  54.                     size = { 0 305 }
  55.  
  56.  
  57.                     widget = {
  58.                         size = { 100% 100% }
  59.                         using = Animation_Character_Window_Refresh
  60.  
  61.                         background = {
  62.                             texture = "[Illustration.GetTexture( Character.Self )]"
  63.                             fittype = centercrop
  64.                             margin_bottom = 5
  65.                             margin_left = 1
  66.  
  67.                             modify_texture = {
  68.                                 texture = "gfx/interface/component_masks/mask_rough_edges_down_right.dds"
  69.                                 spriteType = Corneredtiled
  70.                                 spriteborder = { 20 20 }
  71.                                 blend_mode = alphamultiply
  72.                                 texture_density = 2
  73.                             }
  74.                         }
  75.                     }
  76.  
  77.                     buttons_window_control = {
  78.                         parentanchor = top|right
  79.  
  80.                         blockoverride "button_close"
  81.                         {
  82.                             onclick = "[CharacterWindow.Close]"
  83.                         }
  84.  
  85.                         blockoverride "button_back"
  86.                         {
  87.                             visible = "[HasViewHistory]"
  88.                             onclick = "[OpenFromViewHistory]"
  89.                             tooltip = "[GetViewHistoryTooltip]"
  90.                         }
  91.  
  92.                         blockoverride "button_me"
  93.                         {
  94.                             visible = "[Not(Character.IsLocalPlayer)]"
  95.                             onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]"
  96.                         }
  97.  
  98.                         blockoverride "button_pin" {}
  99.                     }
  100.  
  101.                     ### Primary Spouse
  102.                     container = {
  103.                         visible = "[CharacterWindow.ShouldShowSpouses]"
  104.                         parentanchor = bottom|hcenter
  105.                         position = { 15 0 }
  106.  
  107.                         using = Animation_Character_Window_Refresh_Short
  108.  
  109.                         button = {
  110.                             name = "marry_off_button"
  111.                             visible = "[And(And( Not( ObjectsEqual( GetPlayer, Character.Self ) ), CharacterWindow.ShouldShowFindSpouse ), Not(Character.IsConcubine))]"
  112.                             parentanchor = center
  113.                             position = { 0 35 }
  114.  
  115.                             onclick = "[Character.OpenPlayerInteraction('marry_off_interaction')]"
  116.                             tooltip = "CHARACTER_WINDOW_FIND_SPOUSE_SELFND_SPOUSE"
  117.                             enabled = "[Character.IsPlayerInteractionValid('marry_off_interaction')]"
  118.                             gfxtype = framedbuttongfx
  119.                             effectname = "NoHighlight"
  120.                             texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds"
  121.                             size = { 195 282 }
  122.                             framesize = { 554 780 }
  123.                             upframe = 1
  124.                             overframe = 2
  125.                             alpha = 0.8
  126.  
  127.                             button_icon = {
  128.                                 parentanchor = center
  129.                                 alwaystransparent = yes
  130.                                 size = { 50 50 }
  131.                                 position = { 0 45 }
  132.                                 texture = "gfx/interface/icons/faith_doctrine_groups/doctrine_marriage_type.dds"
  133.                             }
  134.                         }
  135.  
  136.                         button = {
  137.                             name = "marry_off_button_player"
  138.                             visible = "[And( ObjectsEqual( GetPlayer, Character.Self ), CharacterWindow.ShouldShowFindSpouse)]"
  139.                             parentanchor = center
  140.                             position = { 0 35 }
  141.                             onclick = "[Character.OpenPlayerInteraction('marry_off_interaction')]"
  142.                             tooltip = "CHARACTER_WINDOW_FIND_SPOUSE_SELF"
  143.                             gfxtype = framedbuttongfx
  144.                             effectname = "NoHighlight"
  145.                             texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds"
  146.                             size = { 195 282 }
  147.                             framesize = { 554 780 }
  148.                             upframe = 1
  149.                             overframe = 2
  150.                             alpha = 0.8
  151.  
  152.                             button_icon = {
  153.                                 parentanchor = center
  154.                                 alwaystransparent = yes
  155.                                 size = { 50 50 }
  156.                                 position = { 0 45 }
  157.                                 texture = "gfx/interface/icons/faith_doctrine_groups/doctrine_marriage_type.dds"
  158.                             }
  159.                         }
  160.  
  161.                         portrait_character_view_spouse = {
  162.                             datacontext = "[CharacterWindow.GetSpouse]"
  163.                             visible = "[CharacterWindow.GetSpouse.IsValid]"
  164.  
  165.                             state = {
  166.                                 name = cw_spouse_cycle
  167.                                 using = Animation_Refresh_FadeOut
  168.                             }
  169.  
  170.                             state = {
  171.                                 using = Animation_Refresh_FadeIn
  172.                             }
  173.                         }
  174.  
  175.                         widget = {
  176.                             parentanchor = bottom|hcenter
  177.                             size = { 145 40 }
  178.  
  179.                             flowcontainer = {
  180.                                 parentanchor = bottom|hcenter
  181.                                 widgetanchor = bottom|left
  182.                                 position = { -20 -3 }
  183.                                 ignoreinvisible = yes
  184.  
  185.                                 text_label_center = {
  186.                                     visible = "[Not(CharacterWindow.GetCharacter.IsBetrothed)]"
  187.                                     text = "[CharacterWindow.GetSpouseText]"
  188.                                     align = nobaseline
  189.                                 }
  190.  
  191.                                 text_label_center = {
  192.                                     visible = "[CharacterWindow.GetCharacter.IsBetrothed]"
  193.                                     text = "BETROTHED"
  194.                                     align = nobaseline
  195.                                 }
  196.  
  197.                                 flowcontainer = {
  198.                                     visible = "[CharacterWindow.ShouldShowSpouseButtons]"
  199.                                     margin_top = 2
  200.                                     spacing = -5
  201.  
  202.                                     using = Animation_ShowHide_Standard
  203.  
  204.                                     button_expand = {
  205.                                         enabled = "[CharacterWindow.IsShowPrevious]"
  206.                                         onclick = "[CharacterWindow.PreviousSpouse]"
  207.                                         onclick = "[PdxGuiTriggerAllAnimations('cw_spouse_cycle')]"
  208.                                         tooltip = "[CharacterWindow.GetPreviousSpouseTooltip]"
  209.                                         mirror = horizontal
  210.                                     }
  211.  
  212.                                     button_expand = {
  213.                                         enabled = "[CharacterWindow.IsShowNext]"
  214.                                         onclick = "[CharacterWindow.NextSpouse]"
  215.                                         onclick = "[PdxGuiTriggerAllAnimations('cw_spouse_cycle')]"
  216.                                         tooltip = "[CharacterWindow.GetNextSpouseTooltip]"
  217.                                     }
  218.                                 }
  219.                             }
  220.  
  221.                             icon = {
  222.                                 name = "marriage_type_icon"
  223.                                 visible = "[CharacterWindow.ShowMarriageIcon]"
  224.                                 position = { 20 7 }
  225.  
  226.                                 size = { 30 30 }
  227.                                 framesize = { 60 60 }
  228.                                 texture = "gfx/interface/icons/marriage_types.dds"
  229.                                 frame = "[CharacterWindow.GetMarriageIcon]"
  230.                                 tooltip = "[CharacterWindow.GetMarriageIconTooltip]"
  231.                             }
  232.                         }
  233.                     }
  234.  
  235.                     ### Main Character
  236.                     portrait_character_view_main = {
  237.                         name = "tutorial_highlight_main_character_button"
  238.                         parentanchor = bottom|left
  239.                         position = { 0 0 }
  240.  
  241.                         using = Animation_Character_Window_Refresh_Short
  242.  
  243.                         # icon_button_small_round = {
  244.                         #   name = "interact_button"
  245.                         #   visible = "[Character.IsAlive]"
  246.                         #   parentanchor = bottom|right
  247.                         #   position = { -30 0 }
  248.                         #   size = { 35 35 }
  249.  
  250.                         #   onclick = "[DefaultOnCharacterRightClick(Character.GetID)]"
  251.  
  252.                         #   tooltip = "CV_TT_INTERACT"
  253.                         #   using = tooltip_ne
  254.  
  255.                         #   icon = {
  256.                         #       name = "icon"
  257.                         #       texture = "gfx/interface/prototype/interact_temp.png"
  258.                         #       size = {18 18}
  259.                         #       parentanchor = center
  260.                         #   }
  261.                         # }
  262.                     }
  263.  
  264.                     ### Jailor / Imprisoner / Imprisoned by
  265.                     container = {
  266.                         name = "imprisoned_by"
  267.                         datacontext = "[CharacterWindow.GetCharacter.GetImprisonedBy]"
  268.                         visible = "[Character.IsValid]"
  269.                         parentanchor = bottom|right
  270.                         widgetanchor = top|left
  271.                         position = { -195 -250 }
  272.  
  273.                         using = Animation_Character_Window_Refresh
  274.  
  275.                         portrait_head_small = {
  276.                             blockoverride "portrait_transformation"
  277.                             {
  278.                                 portrait_scale = { -1 1 }
  279.                                 portrait_offset = { 1 0 }
  280.                             }
  281.                         }
  282.  
  283.                         text_label_center = {
  284.                             parentanchor = top|hcenter
  285.                             position = { 0 85 }
  286.                             text = "IMPRISONED_BY"
  287.                         }
  288.                     }
  289.  
  290.                     ### Liege
  291.                     container = {
  292.                         name = "liege"
  293.                         datacontext = "[CharacterWindow.GetCharacter.GetLiegeEvenWhenDead]"
  294.                         visible = "[CharacterWindow.HasLiegeEvenWhenDead]"
  295.                         parentanchor = bottom|right
  296.                         widgetanchor = top|left
  297.                         position = { -105 -250 }
  298.                         allow_outside = yes
  299.  
  300.                         using = Animation_Character_Window_Refresh
  301.  
  302.                         portrait_head_small = {
  303.                             blockoverride "portrait_transformation"
  304.                             {
  305.                                 portrait_scale = { -1 1 }
  306.                                 portrait_offset = { 1 0 }
  307.                             }
  308.  
  309.                             blockoverride "coa" {
  310.                                 coa_realm_tiny = {
  311.                                     visible = "[And(CharacterWindow.GetCharacter.IsAlive, CharacterWindow.HasLiegeTitleEvenWhenDead)]"
  312.                                     parentanchor = bottom|left
  313.                                     position = { 3 -2 }
  314.                                     scale = 0.85
  315.                                 }
  316.  
  317.                                 coa_title_tiny = {
  318.                                     visible = "[And(Not(CharacterWindow.GetCharacter.IsAlive), CharacterWindow.HasLiegeTitleEvenWhenDead)]"
  319.                                     datacontext = "[CharacterWindow.GetCharacter.GetLiegeTitleEvenWhenDead]"
  320.                                     parentanchor = bottom|left
  321.                                     position = { 3 -2 }
  322.                                     scale = 0.85
  323.                                 }
  324.                             }
  325.                         }
  326.  
  327.                         text_label_center = {
  328.                             parentanchor = top|hcenter
  329.                             position = { 0 85 }
  330.                             text = "[liege|E]"
  331.                             allow_outside = yes
  332.  
  333.                             icon = {
  334.                                 name = "non_dejure_liege"
  335.                                 datacontext = "[CharacterWindow.GetCharacter]"
  336.                                 visible = "[Not( Character.GetVassalContract.IsRightfulLiege )]"
  337.                                 position = { 3 0 }
  338.                                 parentanchor = right
  339.                                 widgetanchor = left
  340.                                 size = { 30 30 }
  341.                                 texture = "gfx/interface/icons/levy_tax_reduction.dds"
  342.  
  343.                                 using = tooltip_ws
  344.                                 tooltip = "MRW_TT_NOT_RIGHTFUL_LIEGE"
  345.                             }
  346.                         }
  347.  
  348.                         portrait_opinion = {
  349.                             name = "liege_opinion"
  350.                             parentanchor = top|hcenter
  351.                             position = { 0 110 }
  352.  
  353.                             datacontext = "[CharacterWindow.GetCharacter]"
  354.                             visible = "[And( Character.GetLiege.IsValid, And( Character.IsAlive, Not(Character.IsLocalPlayer ) ) )]"
  355.  
  356.                             blockoverride "dread_logic" {
  357.                                 visible = "[Character.ShouldShowDreadEffectIconFor( Character.GetLiege )]"
  358.                                 frame = "[Character.GetDreadEffectIconFrameFor( Character.GetLiege )]"
  359.                                 tooltip = "[Character.GetDreadEffectTooltipFor( Character.GetLiege )]"
  360.                             }
  361.  
  362.                             blockoverride "opinion_text"
  363.                             {
  364.                                 text = "[Character.GetOpinionOf( Character.GetLiege )|=]"
  365.                                 fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetLiege )]"
  366.                             }
  367.  
  368.                             blockoverride "ott_heading_text"
  369.                             {
  370.                                 text = "[Character.GetOpinionHeadingText( CharacterWindow.GetCharacter.GetLiege )]"
  371.                             }
  372.  
  373.                             blockoverride "ott_opinion_value_text"
  374.                             {
  375.                                 text = "[Character.GetOpinionOf( Character.GetLiege )|=]"
  376.                                 fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetLiege )]"
  377.                             }
  378.  
  379.                             blockoverride "ott_opinion_breakdown_text"
  380.                             {
  381.                                 text = "[Character.GetOpinionBreakdownText( CharacterWindow.GetCharacter.GetLiege )]"
  382.                             }
  383.                         }
  384.                     }
  385.  
  386.                     ### Host
  387.                     container = {
  388.                         name = "host"
  389.                         datacontext = "[CharacterWindow.GetCourtOwner]"
  390.                         visible = "[And( Not( CharacterWindow.HasLiegeEvenWhenDead ), And( CharacterWindow.GetCourtOwner.IsValid, Not( CharacterWindow.GetCharacter.IsRuler ) ) )]"
  391.                         parentanchor = bottom|right
  392.                         widgetanchor = top|left
  393.                         position = { -105 -250 }
  394.  
  395.                         using = Animation_Character_Window_Refresh
  396.  
  397.                         portrait_head_small = {
  398.                             blockoverride "portrait_transformation"
  399.                             {
  400.                                 portrait_scale = { -1 1 }
  401.                                 portrait_offset = { 1 0 }
  402.                             }
  403.                         }
  404.  
  405.                         text_label_center = {
  406.                             parentanchor = top|hcenter
  407.                             position = { 0 85 }
  408.                             text = "[host|E]"
  409.                         }
  410.  
  411.                         portrait_opinion = {
  412.                             name = "liege_opinion"
  413.                             datacontext = "[CharacterWindow.GetCharacter]"
  414.                             visible = "[And(Character.IsAlive, Not(Character.IsLocalPlayer))]"
  415.                             parentanchor = top|hcenter
  416.                             position = { -10 110 }
  417.  
  418.                             blockoverride "dread_logic" {
  419.                                 visible = "[Character.ShouldShowDreadEffectIconFor( CharacterWindow.GetCourtOwner )]"
  420.                                 frame = "[Character.GetDreadEffectIconFrameFor( CharacterWindow.GetCourtOwner )]"
  421.                                 tooltip = "[Character.GetDreadEffectTooltipFor( CharacterWindow.GetCourtOwner )]"
  422.                             }
  423.  
  424.                             blockoverride "opinion_text"
  425.                             {
  426.                                 text = "[Character.GetOpinionOf( CharacterWindow.GetCourtOwner )|=]"
  427.                                 fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCourtOwner )]"
  428.                             }
  429.  
  430.                             blockoverride "ott_heading_text"
  431.                             {
  432.                                 text = "[Character.GetOpinionHeadingText( CharacterWindow.GetCourtOwner )]"
  433.                             }
  434.  
  435.                             blockoverride "ott_opinion_value_text"
  436.                             {
  437.                                 text = "[Character.GetOpinionOf( CharacterWindow.GetCourtOwner )|=]"
  438.                                 fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCourtOwner )]"
  439.                             }
  440.  
  441.                             blockoverride "ott_opinion_breakdown_text"
  442.                             {
  443.                                 text = "[Character.GetOpinionBreakdownText( CharacterWindow.GetCourtOwner )]"
  444.                             }
  445.                         }
  446.                     }
  447.  
  448.                     container = { # Player Heir for the local player
  449.                         name = "heir_player"
  450.                         datacontext = "[CharacterWindow.GetCharacter.GetPlayerHeir]"
  451.                         visible = "[And( Character.IsValid, CharacterWindow.GetCharacter.IsLocalPlayer )]"
  452.                         parentanchor = bottom|right
  453.                         position = { -20 -6 }
  454.  
  455.                         using = Animation_Character_Window_Refresh
  456.  
  457.                         portrait_head_small = {
  458.                             blockoverride "portrait_transformation"
  459.                             {
  460.                                 portrait_scale = { -1 1 }
  461.                                 portrait_offset = { 1 0 }
  462.                             }
  463.                         }
  464.  
  465.                         text_label_center = {
  466.                             parentanchor = top|hcenter
  467.                             position = { 0 85 }
  468.                             text = "[player_heir|E]"
  469.                             multiline = yes
  470.                             autoresize = yes
  471.                             max_width = 100
  472.                         }
  473.                     }
  474.                     container = { # Primary Heir for everyone else
  475.                         name = "heir_primary"
  476.                         datacontext = "[CharacterWindow.GetCharacter.GetPrimaryTitle.GetHeir]"
  477.                         visible = "[And( And( Character.IsValid, Not(CharacterWindow.GetCharacter.IsLocalPlayer) ), CharacterWindow.GetCharacter.IsAlive )]"
  478.                         parentanchor = bottom|right
  479.                         position = { -20 -6 }
  480.  
  481.                         using = Animation_Character_Window_Refresh
  482.  
  483.                         portrait_head_small = {
  484.                             blockoverride "portrait_transformation"
  485.                             {
  486.                                 portrait_scale = { -1 1 }
  487.                                 portrait_offset = { 1 0 }
  488.                             }
  489.                         }
  490.  
  491.                         text_label_center = {
  492.                             parentanchor = top|hcenter
  493.                             position = { 0 85 }
  494.                             text = "[primary_heir|E]"
  495.                         }
  496.                     }
  497.  
  498.                     ### DEBUG STUFF, please make sure those are visible and usable, especially the watch button, type "watch" into the console to show it
  499.                     flowcontainer = {
  500.                         name = "debug_buttons"
  501.                         parentanchor = top|left
  502.                         position = { 200 20 }
  503.                         ignoreinvisible = yes
  504.  
  505.                         # Debug personality
  506.                         text_single = {
  507.                             visible = "[InDebugMode]"
  508.                             tooltip = "CHARACTER_AI_VALUES_DEBUG_TOOLTIP"
  509.                             text = "#D AIValue#!"
  510.                             align = nobaseline
  511.                         }
  512.  
  513.                         button = {
  514.                             using = editor_button
  515.                             name = "ai_watch_button"
  516.                             size = { 60 40 }
  517.                             text = "AI Watch"
  518.                             align = center|nobaseline
  519.                             onclick = "[CharacterWindow.OnAIWatch]"
  520.                             visible = "[AIWatchWindowsEnabled]"
  521.                             fontcolor = { 1.0 1.0 1.0 1.0 }
  522.                         }
  523.  
  524.                         watch_window_button = {
  525.                             size = { 60 40 }
  526.                             onclick = "[AddWatchWindow( CharacterWindow.GetCharacter.MakeScope )]"
  527.                         }
  528.  
  529.                         button = {
  530.                             using = editor_button
  531.                             name = "copy_portrait_button"
  532.                             parentanchor = right
  533.                             size = { 60 40 }
  534.                             text = "portrait"
  535.                             align = center|nobaseline
  536.                             onclick = "[CharacterWindow.OnCopyPortrait]"
  537.                             visible = "[IsGameViewOpen('portrait_editor')]"
  538.                             fontcolor = { 1.0 1.0 1.0 1.0 }
  539.                         }
  540.                     }
  541.  
  542.                     flowcontainer = {
  543.                         parentanchor = bottom|left
  544.                         position = { 5 -5 }
  545.                         spacing = 5
  546.                         ignoreinvisible = yes
  547.                         direction = vertical
  548.  
  549.                         button_normal = {
  550.                             name = "open_kill_list"
  551.                             visible = "[Character.HasKillsKnownTo( GetPlayer )]"
  552.  
  553.                             size = { 35 35 }
  554.  
  555.                             datacontext = "[Character]"
  556.                             tooltip = "OPEN_KILL_LIST_TOOLTIP"
  557.                             using = tooltip_es
  558.  
  559.  
  560.                             icon = {
  561.                                 texture = "gfx/interface/buttons/button_lifestyles_base.dds"
  562.                                 size = { 100% 100% }
  563.                             }
  564.  
  565.                             button_kill_list = {
  566.                                 onclick = "[ToggleGameViewData( 'kill_list', Character.GetID  )]"
  567.                                 size = { 25 25 }
  568.                                 parentanchor = center
  569.                                
  570.                                 modify_texture = {
  571.                                     texture = "gfx/interface/icons/focuses/hud_icon_mask.dds"
  572.                                     blend_mode = alphamultiply
  573.                                 }
  574.                             }
  575.                         }
  576.  
  577.                         container = {
  578.                             visible = "[Character.IsPlayer]"
  579.                             tooltip = "PLAYER_STRESS_TOOLTIP"
  580.                             using = tooltip_es
  581.  
  582.                             widget = {
  583.                                 visible = "[Not(GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3'))]"
  584.                                 size = { 100% 100%}
  585.  
  586.                                 using = Animation_ShowHide_Standard
  587.  
  588.                                 background = {
  589.                                     texture = "gfx/interface/component_masks/mask_fade_circle.dds"
  590.                                     color = { 0.15 0.15 0.15 1 }
  591.                                     margin = { 12 12 }
  592.                                 }
  593.                             }
  594.  
  595.                             widget = {
  596.                                 visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]"
  597.                                 parentanchor = center
  598.                                 size = { 180% 180% }
  599.                                 using = Animation_ShowHide_Standard
  600.  
  601.                                 icon = {
  602.                                     size = { 100% 100% }
  603.                                     texture = "gfx/interface/component_masks/mask_fade_circle.dds"
  604.                                     using = Color_Red
  605.                                     alpha = 0
  606.  
  607.                                     state = {
  608.                                         name = a
  609.                                         next = b
  610.                                         trigger_on_create = yes
  611.                                         alpha = 0.5
  612.                                         duration = 0.4
  613.                                         using = Animation_Curve_Default
  614.                                     }
  615.  
  616.                                     state = {
  617.                                         name = b
  618.                                         next = a
  619.                                         alpha = 0
  620.                                         duration = 1
  621.                                         using = Animation_Curve_Default
  622.                                     }
  623.                                 }
  624.                             }
  625.  
  626.  
  627.                             icon = {
  628.                                 parentanchor = vcenter
  629.                                 size = { 35 35 }
  630.                                 texture = "gfx/interface/icons/stress/icon_stress_level.dds"
  631.                                 framesize = { 70 70 }
  632.                                 frame = "[IntToFrameIndex( GetPlayer.GetStressLevel )]"
  633.  
  634.  
  635.                                 modify_texture = {
  636.                                     visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]"
  637.                                     name = "glow"
  638.                                     texture = "gfx/interface/colors/gold.dds"
  639.                                     blend_mode = colordodge
  640.                                     alpha = 0
  641.                                 }
  642.  
  643.                                 state = {
  644.                                     name = a
  645.                                     next = b
  646.                                     duration = 0.4
  647.                                     trigger_on_create = yes
  648.                                     using = Animation_Curve_Default
  649.  
  650.                                     modify_texture = {
  651.                                         name = "glow"
  652.                                         alpha = 0.3
  653.                                     }
  654.                                 }
  655.  
  656.                                 state = {
  657.                                     name = b
  658.                                     next = a
  659.                                     duration = 1
  660.                                     using = Animation_Curve_Default
  661.  
  662.                                     modify_texture = {
  663.                                         name = "glow"
  664.                                         alpha = 0
  665.                                     }
  666.                                 }
  667.                             }
  668.                         }
  669.  
  670.                         button_normal = {
  671.                             name = "open_focus_button"
  672.  
  673.                             size = { 35 35 }
  674.                            
  675.                             visible = "[Or( Character.GetFocus.IsValid, Character.PlayerCanManageFocus )]"
  676.                             tooltip = "PLAYER_LIFESTYLE_TOOLTIP"
  677.                             using = tooltip_ne
  678.  
  679.  
  680.                             icon = {
  681.                                 texture = "gfx/interface/buttons/button_lifestyles_base.dds"
  682.                                 size = { 100% 100% }
  683.                             }
  684.  
  685.                             highlight_icon_lifestyle_focus = {
  686.                                 size = { 100% 100% }
  687.                                 texture = "[CharacterWindow.GetCharacter.GetFocus.GetIcon]"
  688.                                 onclick = "[CharacterWindow.OnClickFocusButton]"
  689.                                 enabled = "[CharacterWindow.CanClickFocusButton]"
  690.                                 tooltip = "[CharacterWindow.GetFocusButtonTooltip]"
  691.  
  692.                                 modify_texture = {
  693.                                     texture = "gfx/interface/icons/focuses/hud_icon_mask.dds"
  694.                                     blend_mode = alphamultiply
  695.                                 }
  696.                             }
  697.                         }
  698.                     }
  699.                 }
  700.  
  701.                 ############################
  702.                 ### Character internal info
  703.                 hbox = {
  704.                     name = "character_info"
  705.                     layoutpolicy_horizontal = expanding
  706.                     margin = { 0 5 }
  707.                     margin_left = 5
  708.  
  709.                     background = {
  710.                         using = Background_Area_Dark
  711.                         margin_left = 5
  712.                     }
  713.  
  714.                     vbox = {
  715.                         layoutpolicy_horizontal = expanding
  716.  
  717.                         vbox = {
  718.                             name = "name_and_traits"
  719.                             layoutpolicy_horizontal = expanding
  720.  
  721.                             using = Animation_Character_Window_Refresh
  722.  
  723.  
  724.                             vbox = {
  725.                                 name = "name_etc"
  726.                                 layoutpolicy_horizontal = expanding
  727.  
  728.                                 ## Name
  729.                                 hbox = {
  730.                                     layoutpolicy_horizontal = expanding
  731.                                     margin = { 3 0 }
  732.                                     margin_top = 1
  733.  
  734.                                     text_single = {
  735.                                         name = "character_name"
  736.                                         margin_left = 2
  737.                                         text = "[Character.GetUINameNotMeNoTooltip], "
  738.                                         default_format = "#medium"
  739.                                         fontsize = 20
  740.                                         max_width = 388
  741.                                         align = nobaseline
  742.                                         fontsize_min = 14
  743.                                         tooltip = "[Character.GetUINameNotMeNoTooltip]"
  744.                                     }
  745.  
  746.                                     text_single = {
  747.                                         name = "character_age"
  748.                                         text = " [Character.GetAge]"
  749.                                         default_format = "#low"
  750.                                         tooltip = "[Character.GetDeathOrBirthDateInfo]"
  751.                                         fontsize = 20
  752.                                         align = nobaseline
  753.                                     }
  754.  
  755.                                     hbox = {
  756.                                         margin_left = 4
  757.                                         spacing = -3
  758.  
  759.                                         icon = {
  760.                                             visible = "[Not(Character.IsDeadAndValid)]"
  761.                                             size = { 23 23 }
  762.                                             framesize = { 60 60 }
  763.                                             frame = "[Character.GetHealthIconFrame]"
  764.                                             texture = "gfx/interface/icons/character_status/icon_health.dds"
  765.                                             tooltip = "[Character.GetHealthInfo]"
  766.                                         }
  767.                                     }
  768.  
  769.                                     expand = {}
  770.                                     hbox_mod_renamer = {}
  771.                                 }
  772.                                 hbox_mod_birth_death_dates = {}
  773.                                 hbox = {
  774.                                     name = "AI_personality"
  775.                                     layoutpolicy_horizontal = expanding
  776.                                     margin = { 3 0 }
  777.                                     spacing = 2
  778.  
  779.                                     text_single = {
  780.                                         name = "character_relation_to_you"
  781.                                         max_width = 432
  782.                                         text = "[Character.GetCharacterRelationCombine( GetPlayer )]"
  783.                                         fontsize_min = 13
  784.                                         align = nobaseline
  785.                                     }
  786.  
  787.                                     icon = {
  788.                                         visible = "[Not(Character.IsFemale)]"
  789.                                         size = { 20 20 }
  790.                                         framesize = { 40 40 }
  791.                                         frame = "[Character.GetSexualityFrame]"
  792.                                         texture = "gfx/interface/icons/character_status/sexuality_icons_male.dds"
  793.                                         tooltip = "SEXUALITY_TT"
  794.                                     }
  795.  
  796.                                     icon = {
  797.                                         visible = "[Character.IsFemale]"
  798.                                         size = { 20 20 }
  799.                                         framesize = { 40 40 }
  800.                                         frame = "[Character.GetSexualityFrame]"
  801.                                         texture = "gfx/interface/icons/character_status/sexuality_icons_female.dds"
  802.                                         tooltip = "SEXUALITY_TT"
  803.                                     }
  804.  
  805.                                     expand = {}
  806.                                 }
  807.                             }
  808.  
  809.                             ## Traits
  810.                             hbox = {
  811.                                 name = "tutorial_highlight_traits"
  812.                                 layoutpolicy_horizontal = expanding
  813.                                 margin_bottom = 2
  814.  
  815.                                 widget = {
  816.                                     layoutpolicy_horizontal = expanding
  817.                                     size = { 0 55 }
  818.  
  819.                                     hbox = {
  820.                                         name = "3_personality_traits"
  821.                                         visible = "[LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetPersonalityTraits), '(int32)3')]"
  822.  
  823.                                         fixedgridbox = {
  824.                                             name = "personality_traits"
  825.                                             datamodel = "[CharacterWindow.GetPersonalityTraits]"
  826.                                             flipdirection = yes
  827.                                             addcolumn = 54
  828.                                             addrow = 55
  829.                                             maxhorizontalslots = 3
  830.  
  831.                                             item = {
  832.                                                 icon_trait = {
  833.                                                     blockoverride "icon_size"
  834.                                                     {
  835.                                                         size = { 55 55 }
  836.                                                     }
  837.                                                 }
  838.                                             }
  839.                                         }
  840.  
  841.                                         hbox = {
  842.                                             visible = "[Not(IsDataModelEmpty( CharacterWindow.GetTraits ))]"
  843.                                             layoutpolicy_vertical = expanding
  844.                                             margin = { 2 10 }
  845.  
  846.                                             divider_light = {
  847.                                                 layoutpolicy_vertical = expanding
  848.                                             }
  849.                                         }
  850.  
  851.                                         fixedgridbox = {
  852.                                             name = "traits_big"
  853.                                             datamodel = "[CharacterWindow.GetTraits]"
  854.                                             visible = "[LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)5')]"
  855.                                             flipdirection = yes
  856.                                             addcolumn = 54
  857.                                             addrow = 55
  858.                                             maxhorizontalslots = 5
  859.                                             maxverticalslots = 1
  860.  
  861.                                             item = {
  862.                                                 icon_trait = {
  863.                                                     blockoverride "icon_size"
  864.                                                     {
  865.                                                         size = { 55 55 }
  866.                                                     }
  867.                                                 }
  868.                                             }
  869.                                         }
  870.  
  871.                                     #### Changed ####
  872.                                     # Slightly increased size of the icons to reduce wasted space
  873.                                     #################
  874.                                     fixedgridbox = {
  875.                                         name = "traits_medium"
  876.                                         datamodel = "[CharacterWindow.GetTraits]"
  877.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)5'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)7'))]"
  878.                                         flipdirection = yes
  879.                                         addcolumn = 40
  880.                                         addrow = 41
  881.                                         maxhorizontalslots = 7
  882.                                         maxverticalslots = 1
  883.  
  884.                                         item = {
  885.                                             icon_trait = {
  886.                                                 blockoverride "icon_size"
  887.                                                 {
  888.                                                     size = { 48 48 }
  889.                                                 }
  890.                                                
  891.                                                 blockoverride "glow_radius"
  892.                                                 {
  893.                                                     glow_radius = 4
  894.                                                 }
  895.                                             }
  896.                                         }
  897.                                     }
  898.  
  899.                                     #### NEW ####
  900.                                     # 1 row 8 icons, smaller size to make transition to 10 icons more gradual
  901.                                     #############
  902.                                     fixedgridbox = {
  903.                                         name = "traits_medium_8_icons_step"
  904.                                         datamodel = "[CharacterWindow.GetTraits]"
  905.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)7'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)8'))]"
  906.                                         flipdirection = yes
  907.                                         addcolumn = 35
  908.                                         addrow = 36
  909.                                         maxhorizontalslots = 8
  910.                                         maxverticalslots = 1
  911.  
  912.                                         item = {
  913.                                             icon_trait = {
  914.                                                 blockoverride "icon_size"
  915.                                                 {
  916.                                                     size = { 43 43 }
  917.                                                 }
  918.                                                
  919.                                                 blockoverride "glow_radius"
  920.                                                 {
  921.                                                     glow_radius = 4
  922.                                                 }
  923.                                             }
  924.                                         }
  925.                                     }
  926.  
  927.                                     #### NEW ####
  928.                                     # 1 row 9 icons, smaller size to make transition to 10 icons more gradual
  929.                                     #############
  930.                                     fixedgridbox = {
  931.                                         name = "traits_medium_9_icons_step"
  932.                                         datamodel = "[CharacterWindow.GetTraits]"
  933.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)8'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)9'))]"
  934.                                         flipdirection = yes
  935.                                         addcolumn = 31
  936.                                         addrow = 32
  937.                                         maxhorizontalslots = 9
  938.                                         maxverticalslots = 1
  939.  
  940.                                         item = {
  941.                                             icon_trait = {
  942.                                                 blockoverride "icon_size"
  943.                                                 {
  944.                                                     size = { 38 38 }
  945.                                                 }
  946.                                                
  947.                                                 blockoverride "glow_radius"
  948.                                                 {
  949.                                                     glow_radius = 4
  950.                                                 }
  951.                                             }
  952.                                         }
  953.                                     }
  954.  
  955.                                     #### Changed ####
  956.                                     # 1 row 10 icons, made size of icons slightly bigger for better visibility and reduced space between them
  957.                                     #################
  958.                                     fixedgridbox = {
  959.                                         name = "traits_small"
  960.                                         datamodel = "[CharacterWindow.GetTraits]"
  961.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)9'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)10'))]"
  962.                                         flipdirection = yes
  963.                                         addcolumn = 28
  964.                                         addrow = 29
  965.                                         maxhorizontalslots = 10
  966.                                         maxverticalslots = 1
  967.  
  968.                                         item = {
  969.                                             icon_trait = {
  970.                                                 blockoverride "icon_size"
  971.                                                 {
  972.                                                     size = { 34 34 }
  973.                                                 }
  974.  
  975.                                                 blockoverride "glow_radius"
  976.                                                 {
  977.                                                     glow_radius = 3
  978.                                                 }
  979.                                             }
  980.                                         }
  981.                                     }
  982.  
  983.                                     #### Changed ####
  984.                                     # added extra traits to fill out some of the blank spacethe space
  985.                                     # changed visibility condition to display this preset between 10 and 24 traits
  986.                                     # Now traits_tiny will display up to 24 traits at once
  987.                                     #################
  988.                                     fixedgridbox = {
  989.                                         name = "traits_tiny"
  990.                                         datamodel = "[CharacterWindow.GetTraits]"
  991.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)10')]"
  992.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)10'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24'))]"
  993.                                         flipdirection = yes
  994.                                         addcolumn = 23.2
  995.                                         addrow = 24.2
  996.                                         maxhorizontalslots = 12
  997.                                         datamodel_wrap = 12
  998.                                         maxverticalslots = 2
  999.  
  1000.                                         item = {
  1001.                                             icon_trait = {
  1002.                                                 blockoverride "icon_size"
  1003.                                                 {
  1004.                                                     size = { 30 30 }
  1005.                                                 }
  1006.  
  1007.                                                 blockoverride "glow_radius"
  1008.                                                 {
  1009.                                                     glow_radius = 2
  1010.                                                 }
  1011.                                             }
  1012.                                         }
  1013.                                     }
  1014.  
  1015.                                     ### NEW ###
  1016.                                     # Added new to make trait size transition more gradual
  1017.                                     # Will display up to 28 traits on 2 rows at once
  1018.                                     ###########
  1019.                                     fixedgridbox = {
  1020.                                         name = "traits_tiny_second_row_extra_icons"
  1021.                                         datamodel = "[CharacterWindow.GetTraits]"
  1022.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24')]"
  1023.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)28'))]"
  1024.                                         flipdirection = yes
  1025.                                         addcolumn = 20
  1026.                                         addrow = 21
  1027.                                         maxhorizontalslots = 14
  1028.                                         datamodel_wrap = 14
  1029.                                         maxverticalslots = 2
  1030.  
  1031.                                         item = {
  1032.                                             icon_trait = {
  1033.                                                 blockoverride "icon_size"
  1034.                                                 {
  1035.                                                     size = { 25 25 }
  1036.                                                 }
  1037.  
  1038.                                                 blockoverride "glow_radius"
  1039.                                                 {
  1040.                                                     glow_radius = 2
  1041.                                                 }
  1042.                                             }
  1043.                                         }
  1044.                                     }
  1045.  
  1046.                                     ### NEW ###
  1047.                                     # Further decreasing icon size, but keeping the row count to 2
  1048.                                     # This will make transition even more smooth when we hit third row
  1049.                                     # Will display up to 32 traits on 2 rows at once
  1050.                                     ###########
  1051.                                     fixedgridbox = {
  1052.                                         name = "traits_tiny_second_row_extra_icons_smaller"
  1053.                                         datamodel = "[CharacterWindow.GetTraits]"
  1054.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)28')]"
  1055.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)28'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)32'))]"
  1056.                                         flipdirection = yes
  1057.                                         addcolumn = 17.5
  1058.                                         addrow = 18.5
  1059.                                         maxhorizontalslots = 16
  1060.                                         datamodel_wrap = 16
  1061.                                         maxverticalslots = 2
  1062.  
  1063.                                         item = {
  1064.                                             icon_trait = {
  1065.                                                 blockoverride "icon_size"
  1066.                                                 {
  1067.                                                     size = { 22 22 }
  1068.                                                 }
  1069.  
  1070.                                                 blockoverride "glow_radius"
  1071.                                                 {
  1072.                                                     glow_radius = 2
  1073.                                                 }
  1074.                                             }
  1075.                                         }
  1076.                                     }
  1077.  
  1078.                                     ### NEW ###
  1079.                                     # Add third row and display up to 48 traits
  1080.                                     # This is the potential max without making icons super tiny.
  1081.                                     ###########
  1082.                                     fixedgridbox = {
  1083.                                         name = "traits_tiny_third_row"
  1084.                                         datamodel = "[CharacterWindow.GetTraits]"
  1085.                                         visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)32')]"
  1086.                                         #visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)28'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)32'))]"
  1087.                                         flipdirection = yes
  1088.                                         addcolumn = 17.5
  1089.                                         addrow = 18.5
  1090.                                         maxhorizontalslots = 16
  1091.                                         datamodel_wrap = 16
  1092.                                         maxverticalslots = 3
  1093.  
  1094.                                         item = {
  1095.                                             icon_trait = {
  1096.                                                 blockoverride "icon_size"
  1097.                                                 {
  1098.                                                     size = { 22 22 }
  1099.                                                 }
  1100.  
  1101.                                                 blockoverride "glow_radius"
  1102.                                                 {
  1103.                                                     glow_radius = 2
  1104.                                                 }
  1105.                                             }
  1106.                                         }
  1107.                                     }
  1108.  
  1109.                                         expand = {}
  1110.                                     }
  1111.  
  1112.                                     hbox = {
  1113.                                         name = "4_personality_traits"
  1114.                                         visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetPersonalityTraits), '(int32)3')]"
  1115.  
  1116.                                         fixedgridbox = {
  1117.                                             name = "personality_traits"
  1118.                                             datamodel = "[CharacterWindow.GetPersonalityTraits]"
  1119.                                             flipdirection = yes
  1120.                                             addcolumn = 54
  1121.                                             addrow = 55
  1122.                                             maxhorizontalslots = 4
  1123.  
  1124.                                             item = {
  1125.                                                 icon_trait = {
  1126.                                                     blockoverride "icon_size"
  1127.                                                     {
  1128.                                                         size = { 55 55 }
  1129.                                                     }
  1130.                                                 }
  1131.                                             }
  1132.                                         }
  1133.  
  1134.                                         hbox = {
  1135.                                             visible = "[Not(IsDataModelEmpty( CharacterWindow.GetTraits ))]"
  1136.                                             layoutpolicy_vertical = expanding
  1137.                                             margin = { 2 10 }
  1138.  
  1139.                                             divider_light = {
  1140.                                                 layoutpolicy_vertical = expanding
  1141.                                             }
  1142.                                         }
  1143.  
  1144.                                     #### Changed ####
  1145.                                     # maxhorizontalslots from 5 to 4, the extra slot did not appear to serve any purpose anyway
  1146.                                     #################
  1147.                                     fixedgridbox = {
  1148.                                         name = "traits_big"
  1149.                                         datamodel = "[CharacterWindow.GetTraits]"
  1150.                                         visible = "[LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)4')]"
  1151.                                         flipdirection = yes
  1152.                                         addcolumn = 54
  1153.                                         addrow = 55
  1154.                                         maxhorizontalslots = 4
  1155.                                         maxverticalslots = 1
  1156.  
  1157.                                         item = {
  1158.                                             icon_trait = {
  1159.                                                 blockoverride "icon_size"
  1160.                                                 {
  1161.                                                     size = { 55 55 }
  1162.                                                 }
  1163.                                             }
  1164.                                         }
  1165.                                     }
  1166.  
  1167.                                     #### Changed ####
  1168.                                     # Reduced maxhorizontalslots to 6 from 7 to make transition to 10 more smooth
  1169.                                     # Slightly increased size of the icons to reduce wasted space
  1170.                                     #################
  1171.                                     fixedgridbox = {
  1172.                                         name = "traits_medium"
  1173.                                         datamodel = "[CharacterWindow.GetTraits]"
  1174.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)6'))]"
  1175.                                         flipdirection = yes
  1176.                                         addcolumn = 37.8
  1177.                                         addrow = 38.8
  1178.                                         maxhorizontalslots = 6
  1179.                                         maxverticalslots = 1
  1180.  
  1181.                                         item = {
  1182.                                             icon_trait = {
  1183.                                                 blockoverride "icon_size"
  1184.                                                 {
  1185.                                                     size = { 45 45 }
  1186.                                                 }
  1187.  
  1188.                                                 blockoverride "glow_radius"
  1189.                                                 {
  1190.                                                     glow_radius = 4
  1191.                                                 }
  1192.                                             }
  1193.                                         }
  1194.                                     }
  1195.  
  1196.                                     ### NEW ####
  1197.                                     # 1 row 8 icons, smaller size to make transition to 10 icons more gradual
  1198.                                     ###########
  1199.                                     fixedgridbox = {
  1200.                                         name = "traits_medium_8_icons_step"
  1201.                                         datamodel = "[CharacterWindow.GetTraits]"
  1202.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)6'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)8'))]"
  1203.                                         flipdirection = yes
  1204.                                         addcolumn = 28.2
  1205.                                         addrow = 29.2
  1206.                                         maxhorizontalslots = 8
  1207.                                         maxverticalslots = 1
  1208.  
  1209.                                         item = {
  1210.                                             icon_trait = {
  1211.                                                 blockoverride "icon_size"
  1212.                                                 {
  1213.                                                     size = { 35 35 }
  1214.                                                 }
  1215.  
  1216.                                                 blockoverride "glow_radius"
  1217.                                                 {
  1218.                                                     glow_radius = 4
  1219.                                                 }
  1220.                                             }
  1221.                                         }
  1222.                                     }
  1223.  
  1224.                                     #### Changed ####
  1225.                                     # Changed to fit 10 slightly smaller icons in one row
  1226.                                     #################
  1227.                                     fixedgridbox = {
  1228.                                         name = "traits_small"
  1229.                                         datamodel = "[CharacterWindow.GetTraits]"
  1230.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)8'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)10'))]"
  1231.                                         flipdirection = yes
  1232.                                         addcolumn = 22.8
  1233.                                         addrow = 23.8
  1234.                                         maxhorizontalslots = 10
  1235.                                         maxverticalslots = 1
  1236.  
  1237.                                         item = {
  1238.                                             icon_trait = {
  1239.                                                 blockoverride "icon_size"
  1240.                                                 {
  1241.                                                     size = { 27 27 }
  1242.                                                 }
  1243.  
  1244.                                                 blockoverride "glow_radius"
  1245.                                                 {
  1246.                                                     glow_radius = 3
  1247.                                                 }
  1248.                                             }
  1249.                                         }
  1250.                                     }
  1251.  
  1252.                                     #### Changed ####
  1253.                                     # added extra traits to make the row more compact, both rows row will display 10 traits each
  1254.                                     # For a total of 20 traits at once
  1255.                                     # Increased size of icons to 27 to make them slightly bigger since a lot of space between each icon
  1256.                                     #################
  1257.                                     fixedgridbox = {
  1258.                                         name = "traits_tiny"
  1259.                                         datamodel = "[CharacterWindow.GetTraits]"
  1260.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)8')]"
  1261.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)10'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)20'))]"
  1262.                                         flipdirection = yes
  1263.                                         addcolumn = 22.8
  1264.                                         addrow = 23.8
  1265.                                         maxhorizontalslots = 10
  1266.                                         datamodel_wrap = 10
  1267.                                         maxverticalslots = 2
  1268.  
  1269.                                         item = {
  1270.                                             icon_trait = {
  1271.                                                 blockoverride "icon_size"
  1272.                                                 {
  1273.                                                     size = { 27 27 }
  1274.                                                 }
  1275.  
  1276.                                                 blockoverride "glow_radius"
  1277.                                                 {
  1278.                                                     glow_radius = 2
  1279.                                                 }
  1280.                                             }
  1281.                                         }
  1282.                                     }
  1283.  
  1284.                                     fixedgridbox = {
  1285.                                         #### NEW ####
  1286.                                         # added extra icon to the row, altered their size and spacing a little
  1287.                                         # this makes transition more smooth between icon amounts
  1288.                                         # Maximum of 22 traits displayed at once
  1289.                                         ##############
  1290.                                         name = "traits_tiny_second_row_extra_icons"
  1291.                                         datamodel = "[CharacterWindow.GetTraits]"
  1292.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)20')]"
  1293.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)20'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22'))]"
  1294.                                         flipdirection = yes
  1295.                                         addcolumn = 20.8
  1296.                                         addrow = 21.8
  1297.                                         maxhorizontalslots = 11
  1298.                                         datamodel_wrap = 11
  1299.                                         maxverticalslots = 2
  1300.  
  1301.                                         item = {
  1302.                                             icon_trait = {
  1303.                                                 blockoverride "icon_size"
  1304.                                                 {
  1305.                                                     size = { 25 25 }
  1306.                                                 }
  1307.  
  1308.                                                 blockoverride "glow_radius"
  1309.                                                 {
  1310.                                                     glow_radius = 2
  1311.                                                 }
  1312.                                             }
  1313.                                         }
  1314.                                     }
  1315.  
  1316.                                     #### NEW ####
  1317.                                     # added extra icon to the row, altered their size and spacing a little
  1318.                                     # this makes transition more smooth between icon amounts
  1319.                                     # Maximum of 24 traits displayed at once
  1320.                                     #############
  1321.                                     fixedgridbox = {
  1322.                                         name = "traits_tiny_second_row_extra_icons_smaller"
  1323.                                         datamodel = "[CharacterWindow.GetTraits]"
  1324.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22')]"
  1325.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24'))]"
  1326.                                         flipdirection = yes
  1327.                                         addcolumn = 19
  1328.                                         addrow = 20
  1329.                                         maxhorizontalslots = 12
  1330.                                         datamodel_wrap = 12
  1331.                                         maxverticalslots = 2
  1332.  
  1333.                                         item = {
  1334.                                             icon_trait = {
  1335.                                                 blockoverride "icon_size"
  1336.                                                 {
  1337.                                                     size = { 24 24 }
  1338.                                                 }
  1339.  
  1340.                                                 blockoverride "glow_radius"
  1341.                                                 {
  1342.                                                     glow_radius = 2
  1343.                                                 }
  1344.                                             }
  1345.                                         }
  1346.                                     }
  1347.  
  1348.                                     #### NEW ####
  1349.                                     # added extra icon to the row, altered their size and spacing a little
  1350.                                     # this makes transition more smooth between icon amounts
  1351.                                     # Maximum of 24 traits displayed at once
  1352.                                     #############
  1353.                                     fixedgridbox = {
  1354.                                         name = "traits_tiny_third_row"
  1355.                                         datamodel = "[CharacterWindow.GetTraits]"
  1356.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24')]"
  1357.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)39'))]"
  1358.                                         flipdirection = yes
  1359.                                         addcolumn = 17.5
  1360.                                         addrow = 18.5
  1361.                                         maxhorizontalslots = 13
  1362.                                         datamodel_wrap = 13
  1363.                                         maxverticalslots = 3
  1364.  
  1365.                                         item = {
  1366.                                             icon_trait = {
  1367.                                                 blockoverride "icon_size"
  1368.                                                 {
  1369.                                                     size = { 21 21 }
  1370.                                                 }
  1371.  
  1372.                                                 blockoverride "glow_radius"
  1373.                                                 {
  1374.                                                     glow_radius = 2
  1375.                                                 }
  1376.                                             }
  1377.                                         }
  1378.                                     }
  1379.  
  1380.                                     #### NEW ####
  1381.                                     # added extra icon to the row, altered their size and spacing a little
  1382.                                     # this in order to bring it in line with 3 personal traits maximum trait size
  1383.                                     # Maximum of 45 traits displayed at once
  1384.                                     #################
  1385.                                     fixedgridbox = {
  1386.                                         name = "traits_tiny_third_row_45_icons"
  1387.                                         datamodel = "[CharacterWindow.GetTraits]"
  1388.                                         #visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)39')]"
  1389.                                         visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)39'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)45'))]"
  1390.                                         flipdirection = yes
  1391.                                         addcolumn = 15.2
  1392.                                         addrow = 16.2
  1393.                                         maxhorizontalslots = 15
  1394.                                         datamodel_wrap = 15
  1395.                                         maxverticalslots = 3
  1396.  
  1397.                                         item = {
  1398.                                             icon_trait = {
  1399.                                                 blockoverride "icon_size"
  1400.                                                 {
  1401.                                                     size = { 19 19 }
  1402.                                                 }
  1403.  
  1404.                                                 blockoverride "glow_radius"
  1405.                                                 {
  1406.                                                     glow_radius = 2
  1407.                                                 }
  1408.                                             }
  1409.                                         }
  1410.                                     }
  1411.  
  1412.                                     #### NEW ####
  1413.                                     # With this, the number of trait icons will be the same for characters with 3 personality traits
  1414.                                     # and characters with 4 personality traits.
  1415.                                     # Maximum of 48 traits displayed at once
  1416.                                     ##############
  1417.                                     fixedgridbox = {
  1418.                                         name = "traits_tiny_third_row_48_icons"
  1419.                                         datamodel = "[CharacterWindow.GetTraits]"
  1420.                                         visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)45')]"
  1421.                                         #visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)24'))]"
  1422.                                         flipdirection = yes
  1423.                                         addcolumn = 14.2
  1424.                                         addrow = 15.2
  1425.                                         maxhorizontalslots = 16
  1426.                                         datamodel_wrap = 16
  1427.                                         maxverticalslots = 3
  1428.  
  1429.                                         item = {
  1430.                                             icon_trait = {
  1431.                                                 blockoverride "icon_size"
  1432.                                                 {
  1433.                                                     size = { 18 18 }
  1434.                                                 }
  1435.  
  1436.                                                 blockoverride "glow_radius"
  1437.                                                 {
  1438.                                                     glow_radius = 2
  1439.                                                 }
  1440.                                             }
  1441.                                         }
  1442.                                     }
  1443.                                         expand = {}
  1444.                                     }
  1445.                                 }
  1446.  
  1447.                                 expand = {}
  1448.                             }
  1449.                         }
  1450.  
  1451.                         divider_light = {
  1452.                             layoutpolicy_horizontal = expanding
  1453.                         }
  1454.  
  1455.                         ## Skills, Culture, Religion
  1456.                         hbox = {
  1457.                             name = "skills_culture_religion"
  1458.                             layoutpolicy_horizontal = expanding
  1459.  
  1460.                             background = {
  1461.                                 using = Background_Area
  1462.                             }
  1463.  
  1464.                             hbox = {
  1465.                                 name = "tutorial_highlight_skills"
  1466.  
  1467.                                 hbox = {
  1468.                                     name = "skills_grid"
  1469.                                     datamodel = "[CharacterWindow.GetSkills]"
  1470.                                     margin = { 2 0 }
  1471.  
  1472.                                     using = Animation_Character_Window_Refresh
  1473.  
  1474.                                     item = {
  1475.                                         vbox = {
  1476.                                             tooltip = "SKILL_ITEM_TOOLTIP"
  1477.                                             using = tooltip_ne
  1478.                                             spacing = -3
  1479.  
  1480.                                             icon = {
  1481.                                                 name = "skill_icon"
  1482.                                                 size = { 32 32 }
  1483.                                                 framesize = { 60 60 }
  1484.                                                 frame = "[SkillItem.GetFrame]"
  1485.                                                 texture = "gfx/interface/icons/icon_skills.dds"
  1486.                                             }
  1487.  
  1488.                                             text_single = {
  1489.                                                 name = "skill_value"
  1490.                                                 text = "[SkillItem.GetValue]"
  1491.                                                 default_format = "#high"
  1492.                                                 align = nobaseline
  1493.  
  1494.                                                 background = {
  1495.                                                     name = "skill_icon_bg"
  1496.                                                     texture = "gfx/interface/window_character/character_view_skills_bg.dds"
  1497.                                                     frame = "[SkillItem.GetFrame]"
  1498.                                                     framesize = { 70 26 }
  1499.                                                     margin = { 10 0 }
  1500.                                                 }
  1501.                                             }
  1502.                                         }
  1503.                                     }
  1504.                                 }
  1505.  
  1506.                                 spacer = {
  1507.                                     size = { 10 0 }
  1508.                                 }
  1509.  
  1510.                                 vbox = {
  1511.                                     tooltip = "[CharacterWindow.GetCharacter.GetProwessBreakdown]"
  1512.                                     spacing = -3
  1513.  
  1514.                                     using = Animation_Character_Window_Refresh
  1515.  
  1516.                                     icon = {
  1517.                                         name = "prowess_icon"
  1518.                                         size = { 32 32 }
  1519.                                         texture = "gfx/interface/icons/icon_prowess.dds"
  1520.                                     }
  1521.  
  1522.                                     text_single = {
  1523.                                         name = "prowess_value"
  1524.                                         text = "[CharacterWindow.GetCharacter.GetProwess|0]"
  1525.                                         align = nobaseline
  1526.                                     }
  1527.                                 }
  1528.  
  1529.                                 divider_light = {
  1530.                                     layoutpolicy_vertical = expanding
  1531.                                 }
  1532.  
  1533.                                 spacer = {
  1534.                                     size = { 5 5 }
  1535.                                 }
  1536.                             }
  1537.  
  1538.                             hbox = {
  1539.                                 name = "faith_and_culture"
  1540.                                 layoutpolicy_horizontal = expanding
  1541.  
  1542.                                 using = Animation_Character_Window_Refresh
  1543.  
  1544.                                 button_religion_icon = {
  1545.                                     name = "faith_button"
  1546.                                     datacontext = "[Character.GetFaith]"
  1547.                                     size = { 45 45 }
  1548.                                 }
  1549.  
  1550.                                 vbox = {
  1551.                                     layoutpolicy_horizontal = expanding
  1552.  
  1553.                                     button_standard_hover  = {
  1554.                                         datacontext = "[Character.GetFaith]"
  1555.                                         layoutpolicy_horizontal = expanding
  1556.                                         size = { 0 25 }
  1557.                                         onclick = "[DefaultOnFaithClick(Faith.GetID)]"
  1558.                                         text = "FAITH_CHARACTER_WINDOW"
  1559.                                         default_format = "#clickable;italic"
  1560.                                         align = left|nobaseline
  1561.                                         margin_left = 5
  1562.  
  1563.                                         tooltipwidget = { faith_tooltip_click = {} }
  1564.                                     }
  1565.  
  1566.                                     button_standard_hover = {
  1567.                                         datacontext = "[Character.GetCulture]"
  1568.                                         layoutpolicy_horizontal = expanding
  1569.                                         size = { 0 25 }
  1570.                                         onclick = "[DefaultOnCultureClick(Culture.GetID)]"
  1571.                                         text = "CULTURE_CHARACTER_WINDOW"
  1572.                                         default_format = "#clickable;italic"
  1573.                                         align = left|nobaseline
  1574.                                         margin_left = 5
  1575.  
  1576.                                         tooltipwidget = {
  1577.                                             culture_tooltip_click = {}
  1578.                                         }
  1579.                                     }
  1580.                                 }
  1581.                             }
  1582.  
  1583.                             vbox = {
  1584.                                 layoutpolicy_vertical = expanding
  1585.                                 margin = { 0 2 }
  1586.  
  1587.                                 using = Animation_Character_Window_Refresh
  1588.  
  1589.                                 fixedgridbox = {
  1590.                                     name = "modifiers_grid"
  1591.                                     datamodel = "[CharacterWindow.GetTimedModifiers]"
  1592.                                     addcolumn = 25
  1593.                                     addrow = 23
  1594.                                     datamodel_wrap = 2
  1595.                                     maxhorizontalslots = 5
  1596.  
  1597.                                     item = {
  1598.                                         icon = {
  1599.                                             size = { 22 22 }
  1600.                                             alwaystransparent = no
  1601.                                             texture = "[ModifierItem.GetIcon]"
  1602.                                             tooltip = "[ModifierItem.GetTooltip]"
  1603.                                         }
  1604.                                     }
  1605.                                 }
  1606.  
  1607.                                 expand = {}
  1608.                             }
  1609.  
  1610.                             expand = {}
  1611.                         }
  1612.                     }
  1613.  
  1614.                     divider_light = {
  1615.                         layoutpolicy_vertical = expanding
  1616.                     }
  1617.  
  1618.                     ## House
  1619.                     widget = {
  1620.                         name = "house"
  1621.                         datacontext = "[Character.GetHouse]"
  1622.                         layoutpolicy_vertical = expanding
  1623.                         size = { 125 0 }
  1624.  
  1625.                         using = Animation_Character_Window_Refresh
  1626.  
  1627.                         vbox = {
  1628.                             expand = {
  1629.                                 maximumsize = { 0 5 }
  1630.                             }
  1631.  
  1632.                             coa_house_big = {
  1633.                                 flowcontainer = {
  1634.                                     name = "characters_status_in_house"
  1635.                                     parentanchor = bottom|right
  1636.                                     position = { -10 0 }
  1637.                                     ignoreinvisible = yes
  1638.  
  1639.                                     icon = {
  1640.                                         name = "bastard"
  1641.                                         visible = "[Not(Character.IsLegitimateMemberOfHouse)]"
  1642.                                         framesize = { 40 40 }
  1643.                                         frame = 4
  1644.                                         size = { 20 20 }
  1645.                                         texture = "gfx/interface/icons/portraits/relation.dds"
  1646.                                         tooltip = "CV_TT_BASTARD"
  1647.                                     }
  1648.  
  1649.                                     icon = {
  1650.                                         name = "head_icon"
  1651.                                         visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)no'), '(int32)9')]"
  1652.                                         size = { 20 20 }
  1653.  
  1654.                                         texture = "gfx/interface/icons/portraits/relation.dds"
  1655.                                         framesize = { 40 40 }
  1656.                                         frame = "[Character.GetDynastyHeadRelationFrame('(bool)no')]"
  1657.                                         tooltip = "[Character.GetDynastyHeadTooltip]"
  1658.                                     }
  1659.                                 }
  1660.                             }
  1661.  
  1662.                             text_multi = {
  1663.                                 autoresize = yes
  1664.                                 maximumsize = { 118 50 }
  1665.                                 text = "[DynastyHouse.GetBaseNameNoTooltip]"
  1666.                                 default_format = "#high"
  1667.                                 align = top|hcenter
  1668.                             }
  1669.  
  1670.                             text_multi = {
  1671.                                 autoresize = yes
  1672.                                 maximumsize = { 118 50 }
  1673.                                 visible = "[Not(DynastyHouse.IsValid)]"
  1674.                                 text = "[lowborn|E]"
  1675.                                 default_format = "#high"
  1676.                                 align = top|hcenter
  1677.                             }
  1678.  
  1679.                             expand = {}
  1680.                         }
  1681.                     }
  1682.                 }
  1683.  
  1684.                 #########################
  1685.                 ### Realm, external info
  1686.  
  1687.                 widget = {
  1688.                     datacontext = "[GetIllustration( 'character_location_exterior' )]"
  1689.                     layoutpolicy_horizontal = expanding
  1690.                     size = { 0 232 }
  1691.  
  1692.                     background = {
  1693.                         using = Background_Bottom_Fade
  1694.                         margin_bottom = 3
  1695.                         alpha = 0.75
  1696.                     }
  1697.  
  1698.                     widget = {
  1699.                         size = { 100% 100% }
  1700.  
  1701.                         using = Animation_Character_Window_Refresh
  1702.  
  1703.                         background = {
  1704.                             texture = "[Illustration.GetTexture( Character.Self )]"
  1705.                             alpha = 0.35
  1706.                             fittype = centercrop
  1707.  
  1708.                             modify_texture = {
  1709.                                 texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds"
  1710.                                 blend_mode = alphamultiply
  1711.                             }
  1712.  
  1713.                             using = Mask_Rough_Edges
  1714.                         }
  1715.                     }
  1716.  
  1717.                     hbox = {
  1718.                         name = "realm_info"
  1719.                         layoutpolicy_horizontal = expanding
  1720.  
  1721.                         vbox = {
  1722.                             #name = "realm_shield"
  1723.                             visible = "[Character.HasLandedTitles]"
  1724.                             layoutpolicy_vertical = expanding
  1725.                             spacing = 7
  1726.                             margin_bottom = 5
  1727.  
  1728.                             using = Animation_Character_Window_Refresh
  1729.  
  1730.                             coa_realm_medium_crown = {
  1731.                                 datacontext = "[Character]"
  1732.  
  1733.                                 blockoverride "coa_button"
  1734.                                 {
  1735.                                     name = "realm_shield"
  1736.                                     tooltip = "[Character.GetDefaultRealmFlagTooltipPrimaryTitleClickInfo]"
  1737.                                     onclick = "[DefaultOnCoatOfArmsClick(Character.GetPrimaryTitle.GetID)]"
  1738.                                 }
  1739.                             }
  1740.  
  1741.                             vbox = {
  1742.                                 datacontext = "[CharacterWindow.GetCharacter]"
  1743.                                 visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), And( Character.HasLandedTitles, Character.IsAlive ) )]"
  1744.                                 tooltip = "[Character.GetDomainLimitTooltip]"
  1745.                                 spacing = -2
  1746.  
  1747.                                 background = {
  1748.                                     visible = "[GreaterThan_int32( Character.GetDomainSize, Character.GetDomainLimit )]"
  1749.                                     using = Status_Bad
  1750.                                 }
  1751.  
  1752.                                 icon = {
  1753.                                     name = "domain_icon"
  1754.                                     size = { 30 30 }
  1755.                                     texture = "gfx/interface/icons/icon_domain.dds"
  1756.                                 }
  1757.  
  1758.                                 text_single = {
  1759.                                     name = "domain_limit"
  1760.                                     text = "[Character.GetDomainSize]/[Character.GetDomainLimit]"
  1761.                                     default_format = "#high"
  1762.                                     align = center|nobaseline
  1763.                                 }
  1764.                             }
  1765.  
  1766.                             expand = {}
  1767.  
  1768.                             flowcontainer = {
  1769.                                 margin = { 3 2 }
  1770.                                 ignoreinvisible = yes
  1771.  
  1772.                                 background = {
  1773.                                     using = Background_Area_Dark
  1774.                                 }
  1775.  
  1776.                                 flowcontainer = {
  1777.                                     visible = "[Character.IsTheocraticLessee]"
  1778.                                     tooltip = "CV_THEOCRACY_LESSEE_TOOLTIP"
  1779.                                     spacing = -2
  1780.                                     direction = vertical
  1781.  
  1782.                                     icon = {
  1783.                                         name = "theocracy_lessee_info"
  1784.                                         texture = "gfx/interface/icons/icon_holding_church.dds"
  1785.                                         size = { 30 30 }
  1786.                                     }
  1787.  
  1788.                                     text_single = {
  1789.                                         name = "domain_limit"
  1790.                                         parentanchor = hcenter
  1791.                                         text = "[Character.GetNumTitlesFromTheocraticLease]"
  1792.                                         default_format = "#high"
  1793.                                         align = center|nobaseline
  1794.                                     }
  1795.                                 }
  1796.  
  1797.                                 icon = {
  1798.                                     name = "religious_head_info"
  1799.                                     visible = "[Character.IsReligiousHead]"
  1800.                                     size = { 30 30 }
  1801.                                     texture = "gfx/interface/icons/icon_head_of_faith_income.dds"
  1802.                                     tooltip = "CV_THEOCRACY_RELIGIOUS_HEAD_TOOLTIP"
  1803.                                 }
  1804.                             }
  1805.                         }
  1806.  
  1807.                         vbox = {
  1808.                             layoutpolicy_horizontal = expanding
  1809.                             layoutpolicy_vertical = expanding
  1810.                             margin_left = 5
  1811.  
  1812.                             ## Realm name and stats
  1813.                             hbox = {
  1814.                                 name = "name_and_stats"
  1815.                                 layoutpolicy_horizontal = expanding
  1816.                                 margin_right = 10
  1817.  
  1818.                                 using = Animation_Character_Window_Refresh
  1819.  
  1820.                                 vbox = {
  1821.                                     visible = "[Not(Character.HasLandedTitles)]"
  1822.                                     layoutpolicy_horizontal = expanding
  1823.                                     margin = { 10 0 }
  1824.  
  1825.                                     text_single = {
  1826.                                         name = "character_title"
  1827.                                         layoutpolicy_horizontal = expanding
  1828.                                         text = "CV_UNLANDED"
  1829.                                         using = Font_Size_Medium
  1830.                                         align = nobaseline
  1831.                                     }
  1832.  
  1833.                                     text_single = {
  1834.                                         name = "government_type"
  1835.                                         layoutpolicy_horizontal = expanding
  1836.                                         text = "[Character.GetLocationDesc]"
  1837.                                         default_format = "#low"
  1838.                                         format_override = { high medium }
  1839.                                         format_override = { V medium }
  1840.                                         align = nobaseline
  1841.                                         autoresize = no
  1842.                                     }
  1843.                                 }
  1844.  
  1845.                                 vbox = {
  1846.                                     visible = "[Character.HasLandedTitles]"
  1847.                                     layoutpolicy_horizontal = expanding
  1848.                                     datacontext = "[Character.GetPrimaryTitle]"
  1849.                                     text_single = {
  1850.                                         name = "character_title"
  1851.                                         layoutpolicy_horizontal = expanding
  1852.                                         text = "[Title.GetNameNoTooltip|U]"
  1853.                                         max_width = 280
  1854.                                         #default_format = "#low"
  1855.                                         using = Font_Size_Medium
  1856.                                         align = nobaseline
  1857.                                         fontsize_min = 14
  1858.                                     }
  1859.  
  1860.                                     text_single = {
  1861.                                         name = "faction"
  1862.                                         visible = "[Title.HasFaction]"
  1863.                                         layoutpolicy_horizontal = expanding
  1864.                                         text = "CV_CIVIL_WAR_FACTION"
  1865.                                         default_format = "#low"
  1866.                                         align = nobaseline
  1867.                                     }
  1868.  
  1869.                                     text_single = {
  1870.                                         name = "government_type"
  1871.                                         visible = "[Not( Title.HasFaction )]"
  1872.                                         layoutpolicy_horizontal = expanding
  1873.                                         text = "CV_REALM_TYPE"
  1874.                                         default_format = "#low"
  1875.                                         align = nobaseline
  1876.                                     }
  1877.                                 }
  1878.  
  1879.                                 expand = {}
  1880.  
  1881.                                 hbox = {
  1882.                                     name = "stats"
  1883.                                     spacing = 8
  1884.                                     margin_bottom = 6
  1885.                                     margin_top = 3
  1886.                                     visible = "[Character.IsAlive]"
  1887.  
  1888.                                     vbox = {
  1889.                                         visible = "[Character.HasLandedTitles]"
  1890.                                         spacing = -2
  1891.                                         min_width = 40
  1892.                                         tooltip = "[Character.GetDreadBreakdown]"
  1893.  
  1894.                                         icon = {
  1895.                                             name = "dread_icon"
  1896.                                             size = { 30 30 }
  1897.                                             texture = "gfx/interface/icons/icon_dread.dds"
  1898.                                         }
  1899.  
  1900.                                         text_single = {
  1901.                                             name = "total_gold"
  1902.                                             text = "[Character.GetDread|0]"
  1903.                                             default_format = "#high"
  1904.                                             align = center|nobaseline
  1905.                                         }
  1906.                                     }
  1907.  
  1908.                                     vbox = {
  1909.                                         tooltip = "[Character.GetGoldTooltipWithBalance]"
  1910.                                         min_width = 40
  1911.                                         spacing = -2
  1912.  
  1913.                                         icon = {
  1914.                                             name = "icon_gold"
  1915.                                             size = { 30 30 }
  1916.                                             texture = "gfx/interface/icons/icon_gold.dds"
  1917.                                         }
  1918.  
  1919.                                         text_single = {
  1920.                                             name = "total_gold"
  1921.                                             text = "[Character.GetGold|0]"
  1922.                                             default_format = "#high"
  1923.                                             align = center|nobaseline
  1924.                                         }
  1925.                                     }
  1926.  
  1927.                                     vbox = {
  1928.                                         tooltip = "[Character.GetPrestigeTooltipWithBalance]"
  1929.                                         min_width = 40
  1930.                                         spacing = -2
  1931.  
  1932.                                         icon = {
  1933.                                             name = "icon_prestige"
  1934.                                             size = { 30 30 }
  1935.                                             texture = "[Character.GetPrestigeLevelTexture]"
  1936.                                         }
  1937.  
  1938.                                         text_single = {
  1939.                                             name = "prestige"
  1940.                                             text = "[Character.GetPrestige|0]"
  1941.                                             default_format = "#high"
  1942.                                             align = center|nobaseline
  1943.                                         }
  1944.                                     }
  1945.  
  1946.                                     vbox = {
  1947.                                         tooltip = "[Character.GetPietyTooltipWithBalance]"
  1948.                                         min_width = 40
  1949.                                         spacing = -2
  1950.  
  1951.                                         icon = {
  1952.                                             name = "icon_piety"
  1953.                                             size = { 30 30 }
  1954.                                             texture = "[Character.GetPietyLevelTexture]"
  1955.                                         }
  1956.  
  1957.                                         text_single = {
  1958.                                             name = "piety"
  1959.                                             text = "[Character.GetPiety|0]"
  1960.                                             default_format = "#high"
  1961.                                             align = center|nobaseline
  1962.                                         }
  1963.                                     }
  1964.  
  1965.                                     spacer = {
  1966.                                         size = { 0 3 }
  1967.                                     }
  1968.  
  1969.                                     vbox = {
  1970.                                         visible = "[Character.HasLandedTitles]"
  1971.                                         tooltip = "[CharacterWindow.GetMilitaryStrengthTooltip]"
  1972.                                         spacing = -2
  1973.                                         min_width = 40
  1974.  
  1975.                                         background = {
  1976.                                             using = Background_Frame
  1977.                                             margin = { 10 5 }
  1978.                                             margin_bottom = 7
  1979.                                             alpha = 0.7
  1980.                                         }
  1981.  
  1982.                                         icon = {
  1983.                                             name = "icon_combat_strength"
  1984.                                             size = { 30 30 }
  1985.                                             texture = "gfx/interface/icons/icon_soldier.dds"
  1986.                                         }
  1987.  
  1988.                                         text_single = {
  1989.                                             name = "military_total_strength"
  1990.                                             text = "[CharacterWindow.GetCachedMilitaryStrengthText]"
  1991.                                             default_format = "#high"
  1992.                                             align = center|nobaseline
  1993.  
  1994.                                             progressbar_standard = {
  1995.                                                 name = "soldiers_max"
  1996.                                                 parentanchor = bottom|hcenter
  1997.                                                 position = { 0 5 }
  1998.                                                 size = { 33 8 }
  1999.                                                 min = 0
  2000.                                                 max = "[IntToFloat(CharacterWindow.GetMaxSoldiers)]"
  2001.                                                 value = "[IntToFloat(CharacterWindow.GetCurrentSoldiers)]"
  2002.                                             }
  2003.                                         }
  2004.                                     }
  2005.                                 }
  2006.                             }
  2007.  
  2008.                             divider = {
  2009.                                 layoutpolicy_horizontal = expanding
  2010.                             }
  2011.  
  2012.                             vbox_titles_claims_box = {
  2013.                                 visible = "[Not( Or( Character.GetPrimaryTitle.HasFaction, DataModelHasItems( CharacterWindow.GetDiplomacyItems )))]"
  2014.                                 layoutpolicy_horizontal = expanding
  2015.                                 layoutpolicy_vertical = expanding
  2016.                                 margin_right = 3
  2017.  
  2018.                                 using = Animation_Character_Window_Refresh
  2019.  
  2020.                                 blockoverride "titles_extra_items"
  2021.                                 {
  2022.                                     visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTitles), '(int32)13' )]"
  2023.                                     text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)13' )|=]"
  2024.                                 }
  2025.  
  2026.                                 blockoverride "titles_max_slots"
  2027.                                 {
  2028.                                     datamodel_wrap = 13
  2029.                                 }
  2030.  
  2031.                                 blockoverride "claims_extra_items"
  2032.                                 {
  2033.                                     visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)13' )]"
  2034.                                     text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)13' )|=]"
  2035.                                 }
  2036.  
  2037.                                 blockoverride "claims_max_slots"
  2038.                                 {
  2039.                                     datamodel_wrap = 13
  2040.                                 }
  2041.                             }
  2042.  
  2043.                             hbox = {
  2044.                                 visible = "[DataModelHasItems( CharacterWindow.GetDiplomacyItems )]"
  2045.                                 layoutpolicy_horizontal = expanding
  2046.                                 layoutpolicy_vertical = expanding
  2047.                                 margin_right = 2
  2048.  
  2049.                                 vbox_titles_claims_box = {
  2050.                                     visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4'))]"
  2051.                                     layoutpolicy_horizontal = expanding
  2052.                                     layoutpolicy_vertical = expanding
  2053.  
  2054.                                     using = Animation_Character_Window_Refresh
  2055.  
  2056.                                     blockoverride "titles_extra_items"
  2057.                                     {
  2058.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)10' )]"
  2059.                                         text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)10' )|=]"
  2060.                                     }
  2061.  
  2062.                                     blockoverride "titles_max_slots"
  2063.                                     {
  2064.                                         datamodel_wrap = 10
  2065.                                     }
  2066.  
  2067.                                     blockoverride "claims_extra_items"
  2068.                                     {
  2069.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)10' )]"
  2070.                                         text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)10' )|=]"
  2071.                                     }
  2072.  
  2073.  
  2074.                                     blockoverride "claims_max_slots"
  2075.                                     {
  2076.                                         datamodel_wrap = 10
  2077.                                     }
  2078.                                 }
  2079.  
  2080.                                 vbox_titles_claims_box = {
  2081.                                     visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)6')))]"
  2082.                                     layoutpolicy_horizontal = expanding
  2083.                                     layoutpolicy_vertical = expanding
  2084.  
  2085.                                     using = Animation_Character_Window_Refresh
  2086.  
  2087.                                     blockoverride "titles_extra_items"
  2088.                                     {
  2089.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)9' )]"
  2090.                                         text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)9' )|=]"
  2091.                                     }
  2092.  
  2093.                                     blockoverride "titles_max_slots"
  2094.                                     {
  2095.                                         datamodel_wrap = 9
  2096.                                     }
  2097.  
  2098.                                     blockoverride "claims_extra_items"
  2099.                                     {
  2100.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)9' )]"
  2101.                                         text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)9' )|=]"
  2102.                                     }
  2103.  
  2104.                                     blockoverride "claims_max_slots"
  2105.                                     {
  2106.                                         datamodel_wrap = 9
  2107.                                     }
  2108.                                 }
  2109.  
  2110.                                 vbox_titles_claims_box = {
  2111.                                     visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)6'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)8')))]"
  2112.                                     layoutpolicy_horizontal = expanding
  2113.                                     layoutpolicy_vertical = expanding
  2114.  
  2115.                                     using = Animation_Character_Window_Refresh
  2116.  
  2117.                                     blockoverride "titles_extra_items"
  2118.                                     {
  2119.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )]"
  2120.                                         text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )|=]"
  2121.                                     }
  2122.  
  2123.                                     blockoverride "titles_max_slots"
  2124.                                     {
  2125.                                         datamodel_wrap = 8
  2126.                                     }
  2127.  
  2128.                                     blockoverride "claims_extra_items"
  2129.                                     {
  2130.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )]"
  2131.                                         text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )|=]"
  2132.                                     }
  2133.  
  2134.                                     blockoverride "claims_max_slots"
  2135.                                     {
  2136.                                         datamodel_wrap = 8
  2137.                                     }
  2138.                                 }
  2139.  
  2140.                                 vbox_titles_claims_box = {
  2141.                                     visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)8'))]"
  2142.                                     layoutpolicy_horizontal = expanding
  2143.                                     layoutpolicy_vertical = expanding
  2144.  
  2145.                                     using = Animation_Character_Window_Refresh
  2146.  
  2147.                                     blockoverride "titles_extra_items"
  2148.                                     {
  2149.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)7' )]"
  2150.                                         text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)7' )|=]"
  2151.                                     }
  2152.  
  2153.                                     blockoverride "titles_max_slots"
  2154.                                     {
  2155.                                         datamodel_wrap = 7
  2156.                                     }
  2157.  
  2158.                                     blockoverride "claims_extra_items"
  2159.                                     {
  2160.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)7' )]"
  2161.                                         text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)7' )|=]"
  2162.                                     }
  2163.  
  2164.                                     blockoverride "claims_max_slots"
  2165.                                     {
  2166.                                         datamodel_wrap = 7
  2167.                                     }
  2168.                                 }
  2169.  
  2170.                                 expand = {
  2171.                                     layoutpolicy_horizontal = expanding
  2172.                                     visible = "[Character.GetPrimaryTitle.HasFaction]"
  2173.                                 }
  2174.  
  2175.                                 divider = {
  2176.                                     layoutpolicy_vertical = expanding
  2177.                                 }
  2178.  
  2179.                                 vbox_diplomacy_box = {
  2180.                                     visible = "[And(Not(IsDataModelEmpty(CharacterWindow.GetDiplomacyItems)), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4'))]"
  2181.                                     layoutpolicy_vertical = expanding
  2182.  
  2183.                                     using = Animation_Character_Window_Refresh
  2184.  
  2185.                                     blockoverride "diplomacy_slots"
  2186.                                     {
  2187.                                         maxverticalslots = 2
  2188.                                         maxhorizontalslots = 2
  2189.                                         datamodel_wrap = 2
  2190.                                     }
  2191.                                 }
  2192.  
  2193.                                 vbox_diplomacy_box = {
  2194.                                     visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)6'))]"
  2195.                                     layoutpolicy_vertical = expanding
  2196.  
  2197.                                     using = Animation_Character_Window_Refresh
  2198.  
  2199.                                     blockoverride "diplomacy_slots"
  2200.                                     {
  2201.                                         maxverticalslots = 2
  2202.                                         maxhorizontalslots = 3
  2203.                                         datamodel_wrap = 3
  2204.                                     }
  2205.                                 }
  2206.  
  2207.                                 vbox_diplomacy_box = {
  2208.                                     visible = "[And(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)6'), LessThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)8'))]"
  2209.                                     layoutpolicy_vertical = expanding
  2210.  
  2211.                                     using = Animation_Character_Window_Refresh
  2212.  
  2213.                                     blockoverride "diplomacy_slots"
  2214.                                     {
  2215.                                         maxverticalslots = 2
  2216.                                         maxhorizontalslots = 4
  2217.                                         datamodel_wrap = 4
  2218.                                     }
  2219.                                 }
  2220.  
  2221.                                 vbox_diplomacy_box = {
  2222.                                     visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)8')]"
  2223.                                     layoutpolicy_vertical = expanding
  2224.  
  2225.                                     using = Animation_Character_Window_Refresh
  2226.  
  2227.                                     blockoverride "diplomacy_extra_items"
  2228.                                     {
  2229.                                         visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)10' )]"
  2230.                                         text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)10' )|=]"
  2231.                                     }
  2232.  
  2233.                                     blockoverride "diplomacy_slots"
  2234.                                     {
  2235.                                         maxverticalslots = 2
  2236.                                         maxhorizontalslots = 5
  2237.                                         datamodel_wrap = 5
  2238.                                     }
  2239.                                 }
  2240.  
  2241.                                 expand = {}
  2242.                             }
  2243.  
  2244.                             expand = {}
  2245.                         }
  2246.                     }
  2247.                 }
  2248.  
  2249.                 ######################################################
  2250.                 ################### BOTTOM AREA ######################
  2251.                 ######################################################
  2252.  
  2253.                 ### TABS
  2254.                 hbox = {
  2255.                     name = "tabs"
  2256.                     visible = "[CharacterWindow.AreNoneExpanded]"
  2257.                     layoutpolicy_horizontal = expanding
  2258.  
  2259.                     button_tab = {
  2260.                         name = "family_button"
  2261.                         datacontext = "[CharacterWindow.GetCharacter]"
  2262.                         layoutpolicy_horizontal = expanding
  2263.  
  2264.                         onclick = "[CharacterWindow.SetTab('family')]"
  2265.                         down = "[CharacterWindow.IsTabShown('family')]"
  2266.  
  2267.                         using = tooltip_above
  2268.  
  2269.                         hbox = {
  2270.                             text_single = {
  2271.                                 layoutpolicy_horizontal = expanding
  2272.                                 align = center
  2273.                                 text = "CV_TAB_FAMILY"
  2274.                                 default_format = "#low"
  2275.                             }
  2276.  
  2277.                             text_single = {
  2278.                                 align = center
  2279.                                 text = "[CharacterWindow.GetTabItemsCount('family')]"
  2280.                                 default_format = "#low"
  2281.                                 margin_right = 15
  2282.                                 min_width = 30
  2283.  
  2284.                                 using = Animation_Character_Window_Refresh
  2285.                             }
  2286.                         }
  2287.                     }
  2288.  
  2289.                     button_tab = {
  2290.                         name = "relations_button"
  2291.                         datacontext = "[CharacterWindow.GetCharacter]"
  2292.                         layoutpolicy_horizontal = expanding
  2293.  
  2294.                         onclick = "[CharacterWindow.SetTab('relations')]"
  2295.                         down = "[CharacterWindow.IsTabShown('relations')]"
  2296.  
  2297.                         using = tooltip_above
  2298.  
  2299.                         hbox = {
  2300.                             text_single = {
  2301.                                 layoutpolicy_horizontal = expanding
  2302.                                 align = center
  2303.                                 text = "CV_TAB_RELATIONS"
  2304.                                 default_format = "#low"
  2305.                             }
  2306.  
  2307.                             text_single = {
  2308.                                 align = center
  2309.                                 text = "[CharacterWindow.GetTabItemsCount('relations')]"
  2310.                                 default_format = "#low"
  2311.                                 margin_right = 15
  2312.                                 min_width = 30
  2313.  
  2314.                                 using = Animation_Character_Window_Refresh
  2315.                             }
  2316.                         }
  2317.                     }
  2318.  
  2319.                     button_tab = {
  2320.                         name = "court_button"
  2321.                         datacontext = "[CharacterWindow.GetCharacter]"
  2322.                         #   visible = "[Not(Character.IsPlayer)]"
  2323.                         layoutpolicy_horizontal = expanding
  2324.  
  2325.                         onclick = "[CharacterWindow.SetTab('court')]"
  2326.                         down = "[CharacterWindow.IsTabShown('court')]"
  2327.  
  2328.                         using = tooltip_above
  2329.  
  2330.                         hbox = {
  2331.                             text_single = {
  2332.                                 layoutpolicy_horizontal = expanding
  2333.                                 align = center
  2334.                                 text = "CV_TAB_COURT"
  2335.                                 default_format = "#low"
  2336.                             }
  2337.  
  2338.                             text_single = {
  2339.                                 align = center
  2340.                                 text = "[CharacterWindow.GetTabItemsCount('court')]"
  2341.                                 default_format = "#low"
  2342.                                 margin_right = 15
  2343.                                 min_width = 30
  2344.  
  2345.                                 using = Animation_Character_Window_Refresh
  2346.                             }
  2347.                         }
  2348.                     }
  2349.  
  2350.                     button_tab = {
  2351.                         name = "vassals_button"
  2352.                         datacontext = "[CharacterWindow.GetCharacter]"
  2353.                         visible = "[Character.IsRuler]"
  2354.                         #   visible = "[And(Character.IsRuler, Not(Character.IsPlayer))]"
  2355.                         layoutpolicy_horizontal = expanding
  2356.  
  2357.                         onclick = "[CharacterWindow.SetTab('vassals')]"
  2358.                         down = "[CharacterWindow.IsTabShown('vassals')]"
  2359.  
  2360.                         using = tooltip_above
  2361.  
  2362.                         hbox = {
  2363.                             text_single = {
  2364.                                 layoutpolicy_horizontal = expanding
  2365.                                 align = center
  2366.                                 text = "CV_TAB_VASSALS"
  2367.                                 default_format = "#low"
  2368.                             }
  2369.  
  2370.                             text_single = {
  2371.                                 align = center
  2372.                                 text = "[CharacterWindow.GetTabItemsCount('vassals')]"
  2373.                                 default_format = "#low"
  2374.                                 margin_right = 15
  2375.                                 min_width = 30
  2376.  
  2377.                                 using = Animation_Character_Window_Refresh
  2378.                             }
  2379.                         }
  2380.                     }
  2381.                 }
  2382.  
  2383.                 spacer = { size = { 0 2 } }
  2384.  
  2385.                 widget = {
  2386.                     visible = "[CharacterWindow.AreNoneExpanded]"
  2387.                     layoutpolicy_vertical = preferred
  2388.                     layoutpolicy_horizontal = expanding
  2389.                     #size = { 0 460 }
  2390.  
  2391.                     using = Animation_Tab_Switch
  2392.  
  2393.                     ####################################
  2394.                     ########### FAMILY TAB #############
  2395.                     ####################################
  2396.  
  2397.                     widget = {
  2398.                         name = "family"
  2399.                         visible = "[CharacterWindow.IsTabShown('family')]"
  2400.                         size = { 100% 100% }
  2401.  
  2402.                         using = Animation_Tab_Switch
  2403.  
  2404.                         scrollbox = {
  2405.                             name = "family_main_view"
  2406.                             visible = "[Not(Or(Or(CharacterWindow.IsRelationExpanded( 'siblings' ), CharacterWindow.IsRelationExpanded( 'children' )), Or(CharacterWindow.IsRelationExpanded( 'secondary_spouses' ), CharacterWindow.IsRelationExpanded( 'consorts' ))))]"
  2407.                             size = { 605 100% }
  2408.                             position = {-15 -5}
  2409.                             blockoverride "scrollbox_content" {
  2410.                                 widget = {
  2411.                                     name = "parents_grandparents_spouses"
  2412.                                     layoutpolicy_horizontal = expanding
  2413.                                     layoutpolicy_vertical = expanding
  2414.                                     #maximumsize = { -1 110 }
  2415.                                     size = { 0 110 }
  2416.                                     scissor = yes
  2417.  
  2418.                                     hbox = {
  2419.                                         vbox_character_row_item = {
  2420.                                             name = "parents"
  2421.                                             layoutpolicy_vertical = expanding
  2422.  
  2423.                                             blockoverride "portrait_datamodel" {
  2424.                                                 datamodel = "[CharacterWindow.GetParents]"
  2425.                                             }
  2426.  
  2427.                                             blockoverride "header_text"
  2428.                                             {
  2429.                                                 text = "PARENTS"
  2430.                                             }
  2431.  
  2432.                                             blockoverride "expand_button" {}
  2433.                                         }
  2434.  
  2435.                                         vbox_character_row_item = {
  2436.                                             name = "grandparents"
  2437.                                             visible = "[Not(Or(GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' ), GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' )))]"
  2438.                                             layoutpolicy_vertical = expanding
  2439.  
  2440.                                             blockoverride "portrait_datamodel" {
  2441.                                                 datamodel = "[CharacterWindow.GetGrandparents]"
  2442.                                             }
  2443.  
  2444.                                             blockoverride "header_text"
  2445.                                             {
  2446.                                                 text = "GRANDPARENTS"
  2447.                                             }
  2448.  
  2449.                                             blockoverride "expand_button" {}
  2450.                                         }
  2451.  
  2452.                                         vbox_character_row_item = {
  2453.                                             name = "grandparents_contracted"
  2454.                                             visible = "[Or(GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' ), GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' ))]"
  2455.                                             layoutpolicy_vertical = expanding
  2456.  
  2457.                                             blockoverride "portrait_datamodel" {
  2458.                                                 datamodel = "[CharacterWindow.GetGrandparents]"
  2459.                                             }
  2460.  
  2461.                                             blockoverride "header_text"
  2462.                                             {
  2463.                                                 text = "GRANDPARENTS"
  2464.                                             }
  2465.  
  2466.                                             blockoverride "expand_button" {}
  2467.  
  2468.                                         }
  2469.  
  2470.                                         expand = {}
  2471.                                     }
  2472.                                 }
  2473.  
  2474.                                 widget = {
  2475.                                     name = "secondary_spouses"
  2476.                                     layoutpolicy_horizontal = expanding
  2477.                                     layoutpolicy_vertical = expanding
  2478.                                     #maximumsize = { -1 110 }
  2479.                                     size = { 0 110 }
  2480.                                     scissor = yes
  2481.                                     visible = "[GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' )]"
  2482.  
  2483.                                     vbox_character_row_item = {
  2484.                                         name = "secondary_spouses"
  2485.  
  2486.                                         blockoverride "portrait_datamodel" {
  2487.                                             datamodel = "[CharacterWindow.GetSecondarySpouses]"
  2488.                                         }
  2489.  
  2490.                                         blockoverride "header_text"
  2491.                                         {
  2492.                                             text = "[SelectLocalization( Character.IsFemale, 'SECONDARY_SPOUSES', 'SECONDARY_SPOUSES' )]#weak ([GetDataModelSize(CharacterWindow.GetSecondarySpouses)])#!"
  2493.                                         }
  2494.  
  2495.                                         blockoverride "remaining_items"
  2496.                                         {
  2497.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSecondarySpouses), '(int32)7' )]"
  2498.                                             text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetSecondarySpouses), '(int32)7' )|=]"
  2499.                                         }
  2500.  
  2501.                                         blockoverride "expand_button_inside" {
  2502.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSecondarySpouses), '(int32)0' )]"
  2503.                                             onclick = "[CharacterWindow.ToggleExpandedRelation( 'secondary_spouses' )]"
  2504.                                         }
  2505.  
  2506.                                         blockoverride "find_partner" {
  2507.                                             fixedgridbox = {
  2508.                                                 name = "potential"
  2509.                                                 datamodel = "[GetNullCharacterDataModel( Character.CalcUnusedSecondarySpouseSlots )]"
  2510.                                                 visible = "[Character.IsPlayerInteractionShown('marry_off_interaction')]"
  2511.  
  2512.                                                 flipdirection = yes
  2513.                                                 addcolumn = 85
  2514.                                                 addrow = 90
  2515.  
  2516.                                                 item = {
  2517.                                                     container = {
  2518.                                                         datacontext = "[CharacterRef.Get]"
  2519.  
  2520.                                                         portrait_head_small = {
  2521.                                                             visible = "[Not( ObjectsEqual( GetPlayer, CharacterWindow.GetCharacter ) )]"
  2522.                                                             blockoverride "portrait_button_template_onclick"
  2523.                                                             {
  2524.                                                                 onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]"
  2525.                                                             }
  2526.                                                             blockoverride "portrait_button_template_tooltip"
  2527.                                                             {
  2528.                                                                 tooltip = "CHARACTER_WINDOW_FIND_SPOUSE"
  2529.                                                             }
  2530.                                                             blockoverride "onclick"
  2531.                                                             {
  2532.                                                                 onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]"
  2533.  
  2534.                                                                 button_icon = {
  2535.                                                                     parentanchor = center
  2536.                                                                     alwaystransparent = yes
  2537.                                                                     size = { 20 20 }
  2538.                                                                     position = {-5 -5}
  2539.                                                                     texture = "gfx/interface/icons/flat_icons/plus.dds"
  2540.                                                                 }
  2541.                                                             }
  2542.                                                         }
  2543.  
  2544.                                                         portrait_head_small = {
  2545.                                                             visible = "[ObjectsEqual( GetPlayer, CharacterWindow.GetCharacter )]"
  2546.                                                             blockoverride "portrait_button_template_onclick"
  2547.                                                             {
  2548.                                                                 onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]"
  2549.                                                             }
  2550.                                                             blockoverride "portrait_button_template_tooltip"
  2551.                                                             {
  2552.                                                                 tooltip = "CHARACTER_WINDOW_FIND_SPOUSE_SELF"
  2553.                                                             }
  2554.                                                             blockoverride "onclick"
  2555.                                                             {
  2556.                                                                 onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]"
  2557.  
  2558.                                                                 button_icon = {
  2559.                                                                     parentanchor = center
  2560.                                                                     alwaystransparent = yes
  2561.                                                                     size = { 26 26 }
  2562.                                                                     position = {-5 0}
  2563.                                                                     texture = "gfx/interface/icons/flat_icons/plus.dds"
  2564.                                                                 }
  2565.                                                             }
  2566.                                                         }
  2567.                                                     }
  2568.                                                 }
  2569.                                             }
  2570.                                         }
  2571.                                     }
  2572.                                 }
  2573.  
  2574.                                 widget = {
  2575.                                     name = "consorts"
  2576.                                     layoutpolicy_horizontal = expanding
  2577.                                     layoutpolicy_vertical = expanding
  2578.                                     #maximumsize = { -1 110 }
  2579.                                     size = { 0 110 }
  2580.                                     scissor = yes
  2581.                                     visible = "[GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' )]"
  2582.  
  2583.                                     vbox_character_row_item = {
  2584.                                         name = "consorts"
  2585.  
  2586.                                         blockoverride "portrait_datamodel" {
  2587.                                             datamodel = "[CharacterWindow.GetConcubines]"
  2588.                                         }
  2589.  
  2590.                                         blockoverride "header_text"
  2591.                                         {
  2592.                                             text = "[SelectLocalization( Character.IsFemale, 'CONCUBINES_MEN', 'CONCUBINES_WOMEN' )]#weak ([GetDataModelSize(CharacterWindow.GetConcubines)])#!"
  2593.                                         }
  2594.  
  2595.                                         blockoverride "remaining_items"
  2596.                                         {
  2597.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)7' )]"
  2598.                                             text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)7' )|=]"
  2599.                                         }
  2600.  
  2601.                                         blockoverride "expand_button_inside" {
  2602.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)0' )]"
  2603.                                             onclick = "[CharacterWindow.ToggleExpandedRelation( 'consorts' )]"
  2604.                                         }
  2605.  
  2606.                                         blockoverride "find_partner" {
  2607.                                             fixedgridbox = {
  2608.                                                 name = "potential"
  2609.                                                 datamodel = "[GetNullCharacterDataModel( Character.CalcUnusedConsortSlots )]"
  2610.                                                 visible = "[Character.IsPlayerInteractionShown('find_concubine')]"
  2611.  
  2612.                                                 flipdirection = yes
  2613.                                                 addcolumn = 85
  2614.                                                 addrow = 90
  2615.  
  2616.                                                 item = {
  2617.                                                     container = {
  2618.                                                         datacontext = "[CharacterRef.Get]"
  2619.  
  2620.                                                         portrait_head_small = {
  2621.                                                             blockoverride "portrait_button_template_onclick"
  2622.                                                             {
  2623.                                                                 onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('find_concubine')]"
  2624.  
  2625.                                                                 button_plus = {
  2626.                                                                     parentanchor = center
  2627.                                                                     alwaystransparent = yes
  2628.                                                                 }
  2629.                                                             }
  2630.                                                             blockoverride "portrait_button_template_tooltip"
  2631.                                                             {
  2632.                                                                 tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip('find_concubine')]"
  2633.                                                             }
  2634.                                                         }
  2635.                                                     }
  2636.                                                 }
  2637.                                             }
  2638.                                         }
  2639.                                     }
  2640.                                 }
  2641.  
  2642.                                 widget = {
  2643.                                     name = "children"
  2644.                                     layoutpolicy_horizontal = expanding
  2645.                                     layoutpolicy_vertical = expanding
  2646.                                     #maximumsize = { -1 110 }
  2647.                                     size = { 0 110 }
  2648.                                     scissor = yes
  2649.  
  2650.                                     vbox_character_row_item = {
  2651.                                         name = "children"
  2652.  
  2653.                                         blockoverride "portrait_datamodel" {
  2654.                                             datamodel = "[CharacterWindow.GetChildren]"
  2655.                                         }
  2656.  
  2657.                                         blockoverride "header_text"
  2658.                                         {
  2659.                                             text = "CV_CHILDREN_HEADING"
  2660.                                         }
  2661.  
  2662.                                         blockoverride "remaining_items"
  2663.                                         {
  2664.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)7' )]"
  2665.                                             text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)7' )|=]"
  2666.                                         }
  2667.  
  2668.                                         blockoverride "expand_button_inside" {
  2669.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)0' )]"
  2670.                                             onclick = "[CharacterWindow.ToggleExpandedRelation( 'children' )]"
  2671.                                         }
  2672.                                     }
  2673.                                 }
  2674.  
  2675.                                 widget = {
  2676.                                     name = "siblings"
  2677.                                     layoutpolicy_horizontal = expanding
  2678.                                     layoutpolicy_vertical = expanding
  2679.                                     #maximumsize = { -1 110 }
  2680.                                     size = { 0 110 }
  2681.                                     scissor = yes
  2682.  
  2683.                                     vbox_character_row_item = {
  2684.                                         name = "siblings"
  2685.  
  2686.                                         blockoverride "portrait_datamodel" {
  2687.                                             datamodel = "[CharacterWindow.GetSiblings]"
  2688.                                         }
  2689.  
  2690.                                         blockoverride "header_text"
  2691.                                         {
  2692.                                             text = "CV_SIBLINGS_HEADING"
  2693.                                         }
  2694.  
  2695.                                         blockoverride "remaining_items"
  2696.                                         {
  2697.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)7' )]"
  2698.                                             text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)7' )|=]"
  2699.                                         }
  2700.  
  2701.                                         blockoverride "expand_button_inside" {
  2702.                                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)0' )]"
  2703.                                             onclick = "[CharacterWindow.ToggleExpandedRelation( 'siblings' )]"
  2704.                                         }
  2705.                                     }
  2706.                                 }
  2707.  
  2708.                                 expand = {}
  2709.                             }
  2710.                         }
  2711.  
  2712.                         ### SIBLINGS EXPANDED
  2713.                         scrollbox = {
  2714.                             name = "family_siblings_expanded"
  2715.                             visible = "[CharacterWindow.IsRelationExpanded( 'siblings' )]"
  2716.                             size = { 100% 100% }
  2717.  
  2718.                             blockoverride "scrollbox_replace_vbox" {
  2719.                                 vbox_character_row_item = {
  2720.                                     name = "siblings"
  2721.                                     margin_top = 10
  2722.                                     spacing = 5
  2723.  
  2724.  
  2725.                                     blockoverride "portrait_datamodel" {
  2726.                                         datamodel = "[CharacterWindow.GetSiblings]"
  2727.                                     }
  2728.  
  2729.                                     blockoverride "header_text"
  2730.                                     {
  2731.                                         text = "CV_SIBLINGS_HEADING"
  2732.                                     }
  2733.  
  2734.                                     blockoverride "expand_button_inside" {
  2735.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'siblings' )]"
  2736.                                         down = "[CharacterWindow.IsRelationExpanded( 'siblings' )]"
  2737.                                     }
  2738.  
  2739.                                     blockoverride "gridbox_slots" {}
  2740.                                 }
  2741.                             }
  2742.                         }
  2743.  
  2744.                         ### CHILDREN EXPANDED
  2745.                         scrollbox = {
  2746.                             name = "family_children_expanded"
  2747.                             visible = "[CharacterWindow.IsRelationExpanded( 'children' )]"
  2748.                             size = { 100% 100% }
  2749.  
  2750.                             blockoverride "scrollbox_replace_vbox" {
  2751.                                 vbox_character_row_item = {
  2752.                                     name = "children"
  2753.                                     margin_top = 10
  2754.                                     spacing = 5
  2755.  
  2756.                                     blockoverride "portrait_datamodel" {
  2757.                                         datamodel = "[CharacterWindow.GetChildren]"
  2758.                                     }
  2759.  
  2760.                                     blockoverride "header_text"
  2761.                                     {
  2762.                                         text = "CV_CHILDREN_HEADING"
  2763.                                     }
  2764.  
  2765.                                     blockoverride "expand_button_inside" {
  2766.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'children' )]"
  2767.                                         down = "[CharacterWindow.IsRelationExpanded( 'children' )]"
  2768.                                     }
  2769.  
  2770.                                     blockoverride "gridbox_slots" {}
  2771.                                 }
  2772.                             }
  2773.                         }
  2774.  
  2775.                         ### LOVERS EXPANDED
  2776.                         scrollbox = {
  2777.                             name = "lovers_expanded"
  2778.                             visible = "[CharacterWindow.IsRelationExpanded( 'lovers' )]"
  2779.                             size = { 100% 100% }
  2780.  
  2781.                             blockoverride "scrollbox_replace_vbox" {
  2782.                                 vbox_character_row_item = {
  2783.                                     name = "lovers"
  2784.                                     margin_top = 10
  2785.                                     spacing = 5
  2786.  
  2787.  
  2788.                                     blockoverride "portrait_datamodel" {
  2789.                                         datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]"
  2790.                                     }
  2791.  
  2792.                                     blockoverride "header_text"
  2793.                                     {
  2794.                                         text = "[SelectLocalization( Character.IsFemale, 'LOVERS_LABEL', 'LOVERS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ))])#!"
  2795.                                     }
  2796.  
  2797.                                     blockoverride "expand_button_inside" {
  2798.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]"
  2799.                                         down = "[CharacterWindow.IsRelationExpanded( 'lovers' )]"
  2800.                                     }
  2801.  
  2802.                                     blockoverride "gridbox_slots" {}
  2803.                                 }
  2804.                             }
  2805.                         }
  2806.  
  2807.                         ### SECONDARY SPOUSES EXPANDED
  2808.                         scrollbox = {
  2809.                             name = "family_secondary_spouses_expanded"
  2810.                             visible = "[CharacterWindow.IsRelationExpanded( 'secondary_spouses' )]"
  2811.                             size = { 100% 100% }
  2812.  
  2813.                             blockoverride "scrollbox_replace_vbox" {
  2814.                                 vbox_character_row_item = {
  2815.                                     name = "secondary_spouses"
  2816.                                     margin_top = 10
  2817.                                     spacing = 5
  2818.  
  2819.  
  2820.                                     blockoverride "portrait_datamodel" {
  2821.                                         datamodel = "[CharacterWindow.GetSecondarySpouses]"
  2822.                                     }
  2823.  
  2824.                                     blockoverride "header_text"
  2825.                                     {
  2826.                                         text = "[SelectLocalization( Character.IsFemale, 'SECONDARY_SPOUSES', 'SECONDARY_SPOUSES' )]#weak ([GetDataModelSize(CharacterWindow.GetSecondarySpouses)])#!"
  2827.                                     }
  2828.  
  2829.                                     blockoverride "expand_button_inside" {
  2830.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'secondary_spouses' )]"
  2831.                                         down = "[CharacterWindow.IsRelationExpanded( 'secondary_spouses' )]"
  2832.                                     }
  2833.  
  2834.                                     blockoverride "gridbox_slots" {}
  2835.                                 }
  2836.                             }
  2837.                         }
  2838.  
  2839.                         ### CONSORTS EXPANDED
  2840.                         scrollbox = {
  2841.                             name = "family_consorts_expanded"
  2842.                             visible = "[CharacterWindow.IsRelationExpanded( 'consorts' )]"
  2843.                             size = { 100% 100% }
  2844.  
  2845.                             blockoverride "scrollbox_replace_vbox" {
  2846.                                 vbox_character_row_item = {
  2847.                                     name = "consorts"
  2848.                                     margin_top = 10
  2849.                                     spacing = 5
  2850.  
  2851.  
  2852.                                     blockoverride "portrait_datamodel" {
  2853.                                         datamodel = "[CharacterWindow.GetConcubines]"
  2854.                                     }
  2855.  
  2856.                                     blockoverride "header_text"
  2857.                                     {
  2858.                                         text = "[SelectLocalization( Character.IsFemale, 'CONCUBINES_MEN', 'CONCUBINES_WOMEN' )]#weak ([GetDataModelSize(CharacterWindow.GetConcubines)])#!"
  2859.                                     }
  2860.  
  2861.                                     blockoverride "expand_button_inside" {
  2862.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'consorts' )]"
  2863.                                         down = "[CharacterWindow.IsRelationExpanded( 'consorts' )]"
  2864.                                     }
  2865.  
  2866.                                     blockoverride "gridbox_slots" {}
  2867.                                 }
  2868.                             }
  2869.                         }
  2870.                     }
  2871.  
  2872.                     ####################################
  2873.                     ########## RELATIONS TAB ###########
  2874.                     ####################################
  2875.  
  2876.                     widget = {
  2877.                         name = "relations"
  2878.                         visible = "[CharacterWindow.IsTabShown('relations')]"
  2879.                         size = { 100% 100% }
  2880.  
  2881.                         using = Animation_Tab_Switch
  2882.  
  2883.                         scrollbox = {
  2884.                             name = "relations_main_view"
  2885.                             visible = "[Not(Or(Or(CharacterWindow.IsRelationExpanded( 'friends' ), CharacterWindow.IsRelationExpanded( 'lovers' )), Or(CharacterWindow.IsRelationExpanded( 'rivals' ), CharacterWindow.IsRelationExpanded( 'wards' ))))]"
  2886.                             size = { 605 100% }
  2887.                             position = {-15 -5}
  2888.                             blockoverride "scrollbox_content" {
  2889.  
  2890.                                 widget = {
  2891.                                     name = "first_row"
  2892.                                     layoutpolicy_horizontal = expanding
  2893.                                     layoutpolicy_vertical = expanding
  2894.                                     #maximumsize = { -1 110 }
  2895.                                     size = { 0 110 }
  2896.                                     scissor = yes
  2897.  
  2898.                                     hbox = {
  2899.                                         vbox_character_row_item = {
  2900.                                             name = "wards"
  2901.                                             visible = "[CharacterWindow.GetCharacter.IsAdult]"
  2902.                                             layoutpolicy_vertical = expanding
  2903.  
  2904.                                             blockoverride "portrait_datamodel" {
  2905.                                                 datamodel = "[CharacterWindow.GetRelationsOfTypeFillEmpty( GetRelation( 'ward' ), '(int32)2' )]"
  2906.                                             }
  2907.  
  2908.                                             blockoverride "header_text"
  2909.                                             {
  2910.                                                 text = "[SelectLocalization( Character.IsFemale, 'WARDS_LABEL', 'WARDS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) ))])#!"
  2911.                                             }
  2912.  
  2913.                                             blockoverride "remaining_items"
  2914.                                             {
  2915.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) )), '(int32)7' ))]"
  2916.                                                 text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) )), '(int32)7' )|=]"
  2917.                                             }
  2918.  
  2919.                                             blockoverride "expand_button_inside" {
  2920.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) )), '(int32)0' )]"
  2921.                                                 onclick = "[CharacterWindow.ToggleExpandedRelation( 'wards' )]"
  2922.                                             }
  2923.  
  2924.                                             blockoverride "empty_character"
  2925.                                             {
  2926.                                                 visible = "[Character.IsValid]"
  2927.                                             }
  2928.                                         }
  2929.  
  2930.                                         vbox_character_row_item = {
  2931.                                             name = "guardian"
  2932.                                             visible = "[Not(CharacterWindow.GetCharacter.IsAdult)]"
  2933.                                             layoutpolicy_vertical = expanding
  2934.  
  2935.                                             blockoverride "portrait_datamodel" {
  2936.                                                 datamodel = "[CharacterWindow.GetRelationsOfTypeFillEmpty( GetRelation( 'guardian' ), '(int32)1' )]"
  2937.                                             }
  2938.  
  2939.                                             blockoverride "header_text"
  2940.                                             {
  2941.                                                 text = "GUARDIAN_LABEL"
  2942.                                             }
  2943.  
  2944.                                             blockoverride "expand_button" {}
  2945.                                         }
  2946.  
  2947.                                         expand = {}
  2948.                                     }
  2949.                                 }
  2950.  
  2951.                                 widget = {
  2952.                                     name = "love"
  2953.                                     layoutpolicy_horizontal = expanding
  2954.                                     layoutpolicy_vertical = expanding
  2955.                                     #maximumsize = { -1 110 }
  2956.                                     size = { 0 110 }
  2957.                                     scissor = yes
  2958.  
  2959.                                     hbox = {                               
  2960.                                         vbox_character_row_item = {
  2961.                                             name = "lovers"
  2962.                                             visible = "[CharacterWindow.GetCharacter.IsAdult]"
  2963.                                             layoutpolicy_vertical = expanding
  2964.  
  2965.                                             blockoverride "portrait_datamodel" {
  2966.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]"
  2967.                                             }
  2968.  
  2969.                                             blockoverride "header_text"
  2970.                                             {
  2971.                                                 text = "[SelectLocalization( Character.IsFemale, 'LOVERS_LABEL', 'LOVERS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ))])#!"
  2972.                                             }
  2973.  
  2974.                                             blockoverride "remaining_items"
  2975.                                             {
  2976.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )), '(int32)7' ))]"
  2977.                                                 text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )), '(int32)7' )|=]"
  2978.                                             }
  2979.  
  2980.                                             blockoverride "expand_button_inside" {
  2981.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )), '(int32)0' )]"
  2982.                                                 onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]"
  2983.                                             }
  2984.                                         }
  2985.  
  2986.                                         vbox_character_row_item = {
  2987.                                             name = "crushes"
  2988.                                             visible = "[Not(CharacterWindow.GetCharacter.IsAdult)]"
  2989.                                             layoutpolicy_vertical = expanding
  2990.  
  2991.                                             blockoverride "portrait_datamodel" {
  2992.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'crush' ) )]"
  2993.                                             }
  2994.  
  2995.                                             blockoverride "header_text"
  2996.                                             {
  2997.                                                 text = "CRUSHES_LABEL"
  2998.                                             }
  2999.  
  3000.                                             blockoverride "expand_button" {}
  3001.                                         }
  3002.  
  3003.                                         expand = {}
  3004.                                     }
  3005.                                 }
  3006.  
  3007.                                 widget = {
  3008.                                     name = "second_row"
  3009.                                     layoutpolicy_horizontal = expanding
  3010.                                     layoutpolicy_vertical = expanding
  3011.                                     #maximumsize = { -1 110 }
  3012.                                     size = { 0 110 }
  3013.                                     scissor = yes
  3014.  
  3015.                                     hbox = {
  3016.                                         layoutpolicy_horizontal = expanding
  3017.  
  3018.                                         vbox_character_row_item = {
  3019.                                             name = "friends"
  3020.                                             layoutpolicy_vertical = expanding
  3021.                                             layoutpolicy_horizontal = expanding
  3022.  
  3023.                                             blockoverride "portrait_datamodel" {
  3024.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )]"
  3025.                                             }
  3026.  
  3027.                                             blockoverride "header_text"
  3028.                                             {
  3029.                                                 text = "[SelectLocalization( Character.IsFemale, 'FRIENDS_LABEL', 'FRIENDS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ))])#!"
  3030.                                             }
  3031.  
  3032.                                             blockoverride "remaining_items"
  3033.                                             {
  3034.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )), '(int32)7' ))]"
  3035.                                                 text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )), '(int32)7' )|=]"
  3036.                                             }
  3037.  
  3038.                                             blockoverride "expand_button_inside" {
  3039.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )), '(int32)0' )]"
  3040.                                                 onclick = "[CharacterWindow.ToggleExpandedRelation( 'friends' )]"
  3041.                                             }
  3042.                                         }
  3043.  
  3044.                                         expand = {}
  3045.                                     }
  3046.                                 }
  3047.  
  3048.                                 widget = {
  3049.                                     name = "third_row"
  3050.                                     layoutpolicy_horizontal = expanding
  3051.                                     layoutpolicy_vertical = expanding
  3052.                                     #maximumsize = { -1 110 }
  3053.                                     size = { 0 110 }
  3054.                                     scissor = yes
  3055.  
  3056.                                     hbox = {
  3057.                                         layoutpolicy_horizontal = expanding
  3058.  
  3059.                                         vbox_character_row_item = {
  3060.                                             name = "rivals"
  3061.                                             visible = "[CharacterWindow.GetCharacter.IsAdult]"
  3062.                                             layoutpolicy_vertical = expanding
  3063.                                             layoutpolicy_horizontal = expanding
  3064.  
  3065.                                             blockoverride "portrait_datamodel" {
  3066.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )]"
  3067.                                             }
  3068.  
  3069.                                             blockoverride "header_text"
  3070.                                             {
  3071.                                                 text = "[SelectLocalization( Character.IsFemale, 'RIVALS_LABEL', 'RIVALS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) ))])#!"
  3072.                                             }
  3073.  
  3074.                                             blockoverride "remaining_items"
  3075.                                             {
  3076.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)7' ))]"
  3077.                                                 text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)7' )|=]"
  3078.                                             }
  3079.  
  3080.                                             blockoverride "expand_button_inside" {
  3081.                                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)0' )]"
  3082.                                                 onclick = "[CharacterWindow.ToggleExpandedRelation( 'rivals' )]"
  3083.                                             }
  3084.                                         }
  3085.  
  3086.                                         vbox_character_row_item = {
  3087.                                             name = "bullies"
  3088.                                             visible = "[Not( CharacterWindow.GetCharacter.IsAdult )]"
  3089.                                             layoutpolicy_vertical = expanding
  3090.                                             layoutpolicy_horizontal = expanding
  3091.  
  3092.                                             blockoverride "portrait_datamodel" {
  3093.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'bully' ) )]"
  3094.                                             }
  3095.  
  3096.                                             blockoverride "header_text"
  3097.                                             {
  3098.                                                 text = "BULLIES_LABEL"
  3099.                                             }
  3100.  
  3101.                                             blockoverride "expand_button" {}
  3102.                                         }
  3103.  
  3104.                                         vbox_character_row_item = {
  3105.                                             name = "victims"
  3106.                                             visible = "[Not( CharacterWindow.GetCharacter.IsAdult )]"
  3107.                                             layoutpolicy_vertical = expanding
  3108.                                             layoutpolicy_horizontal = expanding
  3109.  
  3110.                                             blockoverride "portrait_datamodel" {
  3111.                                                 datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'victim' ) )]"
  3112.                                             }
  3113.  
  3114.                                             blockoverride "header_text"
  3115.                                             {
  3116.                                                 text = "VICTIMS_LABEL"
  3117.                                             }
  3118.  
  3119.                                             blockoverride "expand_button" {}
  3120.                                         }
  3121.  
  3122.                                         expand = {}
  3123.                                     }
  3124.                                 }
  3125.  
  3126.                             }
  3127.                         }
  3128.                         ### WARDS EXPANDED
  3129.                         scrollbox = {
  3130.                             name = "wards_expanded"
  3131.                             visible = "[CharacterWindow.IsRelationExpanded( 'wards' )]"
  3132.                             size = { 100% 100% }
  3133.  
  3134.                             blockoverride "scrollbox_replace_vbox" {
  3135.                                 vbox_character_row_item = {
  3136.                                     name = "wards"
  3137.                                     margin_top = 10
  3138.                                     spacing = 5
  3139.  
  3140.  
  3141.                                     blockoverride "portrait_datamodel" {
  3142.                                         datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) )]"
  3143.                                     }
  3144.  
  3145.                                     blockoverride "header_text"
  3146.                                     {
  3147.                                         text = "[SelectLocalization( Character.IsFemale, 'WARDS_LABEL', 'WARDS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) ))])#!"
  3148.                                     }
  3149.  
  3150.                                     blockoverride "expand_button_inside" {
  3151.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'wards' )]"
  3152.                                         down = "[CharacterWindow.IsRelationExpanded( 'wards' )]"
  3153.                                     }
  3154.  
  3155.                                     blockoverride "gridbox_slots" {}
  3156.                                 }
  3157.                             }
  3158.                         }
  3159.                         ### LOVERS EXPANDED
  3160.                         scrollbox = {
  3161.                             name = "lovers_expanded"
  3162.                             visible = "[CharacterWindow.IsRelationExpanded( 'lovers' )]"
  3163.                             size = { 100% 100% }
  3164.  
  3165.                             blockoverride "scrollbox_replace_vbox" {
  3166.                                 vbox_character_row_item = {
  3167.                                     name = "lovers"
  3168.                                     margin_top = 10
  3169.                                     spacing = 5
  3170.  
  3171.  
  3172.                                     blockoverride "portrait_datamodel" {
  3173.                                         datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]"
  3174.                                     }
  3175.  
  3176.                                     blockoverride "header_text"
  3177.                                     {
  3178.                                         text = "[SelectLocalization( Character.IsFemale, 'LOVERS_LABEL', 'LOVERS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ))])#!"
  3179.                                     }
  3180.  
  3181.                                     blockoverride "expand_button_inside" {
  3182.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]"
  3183.                                         down = "[CharacterWindow.IsRelationExpanded( 'lovers' )]"
  3184.                                     }
  3185.  
  3186.                                     blockoverride "gridbox_slots" {}
  3187.                                 }
  3188.                             }
  3189.                         }
  3190.                         ### RIVALS EXPANDED
  3191.                         scrollbox = {
  3192.                             name = "rivals_expanded"
  3193.                             visible = "[CharacterWindow.IsRelationExpanded( 'rivals' )]"
  3194.                             size = { 100% 100% }
  3195.  
  3196.                             blockoverride "scrollbox_replace_vbox" {
  3197.                                 vbox_character_row_item = {
  3198.                                     name = "rivals"
  3199.                                     margin_top = 10
  3200.                                     spacing = 5
  3201.  
  3202.  
  3203.                                     blockoverride "portrait_datamodel" {
  3204.                                         datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )]"
  3205.                                     }
  3206.  
  3207.                                     blockoverride "header_text"
  3208.                                     {
  3209.                                         text = "[SelectLocalization( Character.IsFemale, 'RIVALS_LABEL', 'RIVALS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) ))])#!"
  3210.                                     }
  3211.  
  3212.                                     blockoverride "expand_button_inside" {
  3213.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'rivals' )]"
  3214.                                         down = "[CharacterWindow.IsRelationExpanded( 'rivals' )]"
  3215.                                     }
  3216.  
  3217.                                     blockoverride "gridbox_slots" {}
  3218.                                 }
  3219.                             }
  3220.                         }
  3221.  
  3222.                         ### FRIENDS EXPANDED
  3223.                         scrollbox = {
  3224.                             name = "friends_expanded"
  3225.                             visible = "[CharacterWindow.IsRelationExpanded( 'friends' )]"
  3226.                             size = { 100% 100% }
  3227.  
  3228.                             blockoverride "scrollbox_replace_vbox" {
  3229.                                 vbox_character_row_item = {
  3230.                                     name = "friends"
  3231.                                     margin_top = 10
  3232.                                     spacing = 5
  3233.  
  3234.  
  3235.                                     blockoverride "portrait_datamodel" {
  3236.                                         datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )]"
  3237.                                     }
  3238.  
  3239.                                     blockoverride "header_text"
  3240.                                     {
  3241.                                         text = "[SelectLocalization( Character.IsFemale, 'FRIENDS_LABEL', 'FRIENDS_LABEL' )]#weak ([GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ))])#!"
  3242.                                     }
  3243.  
  3244.                                     blockoverride "expand_button_inside" {
  3245.                                         onclick = "[CharacterWindow.ToggleExpandedRelation( 'friends' )]"
  3246.                                         down = "[CharacterWindow.IsRelationExpanded( 'friends' )]"
  3247.                                     }
  3248.  
  3249.                                     blockoverride "gridbox_slots" {}
  3250.                                 }
  3251.                             }
  3252.                         }
  3253.                         expand = {}
  3254.                     }
  3255.  
  3256.                     ####################################
  3257.                     ############ COURT TAB #############
  3258.                     ####################################
  3259.  
  3260.                     vbox_character_list = {
  3261.                         datacontext = "[CharacterWindow.GetCourt]"
  3262.                         visible = "[CharacterWindow.IsTabShown('court')]"
  3263.                         layoutpolicy_vertical = expanding
  3264.                         layoutpolicy_horizontal = expanding
  3265.  
  3266.                         blockoverride "sort_buttons" {}
  3267.                         blockoverride "character_count" {}
  3268.                         blockoverride "scrollbox_margins" {
  3269.                             margin_right = 15
  3270.                         }
  3271.  
  3272.                         blockoverride "container_implementation" {
  3273.                             fixedgridbox = {
  3274.                                 name = "characters_grid"
  3275.                                 datamodel = "[CharacterSelectionList.GetList]"
  3276.                                 visible = "[Not(CharacterSelectionList.IsBuildingList)]"
  3277.                                 addcolumn = 580
  3278.                                 addrow = 125
  3279.                                 setitemsizefromcell = yes
  3280.  
  3281.                                 item = {
  3282.                                     widget_courtier_item = {
  3283.                                         datacontext = "[CharacterListItem.GetCharacter]"
  3284.  
  3285.                                         # blockoverride "description_relation_text" {
  3286.                                         #   text = "[Character.GetSpecialGuestRelationDescription]"
  3287.                                         # }
  3288.  
  3289.                                         blockoverride "action_buttons" {}
  3290.                                     }
  3291.                                 }
  3292.                             }
  3293.                         }
  3294.                     }
  3295.  
  3296.                     ####################################
  3297.                     ########### VASSALS TAB ############
  3298.                     ####################################
  3299.  
  3300.                     vbox_character_list = {
  3301.                         visible = "[CharacterWindow.IsTabShown('vassals')]"
  3302.                         layoutpolicy_vertical = expanding
  3303.                         layoutpolicy_horizontal = expanding
  3304.                         datacontext = "[CharacterWindow.GetVassals]"
  3305.  
  3306.                         blockoverride "sort_buttons" {}
  3307.                         blockoverride "character_count" {}
  3308.                         blockoverride "scrollbox_margins" {
  3309.                             margin = { 0 5 }
  3310.                             margin_right = 10
  3311.                         }
  3312.  
  3313.                         blockoverride "container_implementation" {
  3314.                             fixedgridbox = {
  3315.                                 name = "characters_grid"
  3316.                                 datamodel = "[CharacterSelectionList.GetList]"
  3317.                                 visible = "[Not(CharacterSelectionList.IsBuildingList)]"
  3318.                                 addcolumn = 590
  3319.                                 addrow = 90
  3320.                                 setitemsizefromcell = yes
  3321.  
  3322.                                 item = {
  3323.                                     widget_vassal_list_item = {
  3324.                                         datacontext = "[CharacterListItem.GetCharacter]"
  3325.                                         layoutpolicy_horizontal = expanding
  3326.  
  3327.                                         blockoverride "own_vassal" {}
  3328.                                     }
  3329.                                 }
  3330.                             }
  3331.                         }
  3332.                     }
  3333.                 }
  3334.  
  3335.                 ### EXPANDED VIEWS
  3336.  
  3337.                 # TRAITS EXPANDED
  3338.                 scrollbox = {
  3339.                     name = "traits_expanded"
  3340.                     visible = "[CharacterWindow.AreTraitsExpanded]"
  3341.                     layoutpolicy_vertical = expanding
  3342.                     layoutpolicy_horizontal = expanding
  3343.  
  3344.                     using = Animation_Tab_Switch
  3345.  
  3346.                     blockoverride "scrollbox_content"
  3347.                     {
  3348.                         spacing = 10
  3349.  
  3350.                         vbox = {
  3351.                             spacing = 10
  3352.  
  3353.                             text_label_center = {
  3354.                                 text = "MODIFIERS"
  3355.                             }
  3356.  
  3357.                             text_single = {
  3358.                                 visible = "[IsDataModelEmpty(CharacterWindow.GetTimedModifiers)]"
  3359.                                 text = "CV_NO_MODIFIERS"
  3360.                                 default_format = "#low;italic"
  3361.                             }
  3362.  
  3363.                             dynamicgridbox = {
  3364.                                 name = "modifiers_grid"
  3365.                                 datamodel = "[CharacterWindow.GetTimedModifiers]"
  3366.                                 datamodel_wrap = 8
  3367.                                 flipdirection = yes
  3368.  
  3369.                                 item = {
  3370.                                     icon = {
  3371.                                         size = { 35 35 }
  3372.                                         alwaystransparent = no
  3373.                                         texture = "[ModifierItem.GetIcon]"
  3374.                                         tooltip = "[ModifierItem.GetTooltip]"
  3375.                                     }
  3376.                                 }
  3377.                             }
  3378.                         }
  3379.  
  3380.                         divider_light = {
  3381.                             layoutpolicy_horizontal = expanding
  3382.                         }
  3383.  
  3384.                         vbox = {
  3385.                             spacing = 10
  3386.  
  3387.                             text_label_center = {
  3388.                                 text = "TRAITS"
  3389.                             }
  3390.  
  3391.                             fixedgridbox = {
  3392.                                 name = "personality_traits_grid"
  3393.                                 datamodel = "[CharacterWindow.GetPersonalityTraits]"
  3394.                                 addcolumn = 85
  3395.                                 addrow = 105
  3396.                                 flipdirection = yes
  3397.                                 datamodel_wrap = 6
  3398.  
  3399.                                 item = {
  3400.                                     icon_trait = {
  3401.                                         text_multi = {
  3402.                                             parentanchor = bottom|hcenter
  3403.                                             widgetanchor = top|hcenter
  3404.                                             position = { 0 -5 }
  3405.                                             autoresize = yes
  3406.                                             max_width = 80
  3407.                                             text = "[Trait.GetNameNoTooltip(Character.Self)]"
  3408.                                             default_format = "#high"
  3409.                                             align = hcenter
  3410.                                         }
  3411.                                     }
  3412.                                 }
  3413.                             }
  3414.  
  3415.                             fixedgridbox = {
  3416.                                 name = "traits_grid"
  3417.                                 datamodel = "[CharacterWindow.GetTraits]"
  3418.                                 addcolumn = 85
  3419.                                 addrow = 105
  3420.                                 flipdirection = yes
  3421.                                 datamodel_wrap = 6
  3422.  
  3423.                                 item = {
  3424.                                     icon_trait = {
  3425.                                         text_multi = {
  3426.                                             parentanchor = bottom|hcenter
  3427.                                             widgetanchor = top|hcenter
  3428.                                             position = { 0 -5 }
  3429.                                             autoresize = yes
  3430.                                             max_width = 80
  3431.                                             text = "[Trait.GetNameNoTooltip(Character.Self)]"
  3432.                                             default_format = "#high"
  3433.                                             align = hcenter
  3434.                                         }
  3435.                                     }
  3436.                                 }
  3437.                             }
  3438.                         }
  3439.                     }
  3440.                 }
  3441.  
  3442.                 # TITLES EXPANDED
  3443.                 scrollbox = {
  3444.                     name = "titles_expanded"
  3445.                     visible = "[CharacterWindow.AreTitlesExpanded]"
  3446.                     layoutpolicy_vertical = expanding
  3447.                     layoutpolicy_horizontal = expanding
  3448.  
  3449.                     using = Animation_Tab_Switch
  3450.  
  3451.                     blockoverride "scrollbox_content"
  3452.                     {
  3453.                         spacing = 15
  3454.  
  3455.                         text_label_center = {
  3456.                             text = "CV_TITLES_NOCOUNT"
  3457.                         }
  3458.  
  3459.                         fixedgridbox = {
  3460.                             name = "titles_box_bishop"
  3461.                             datacontext = "[CharacterWindow.GetCharacter]"
  3462.                             flipdirection = yes
  3463.                             addrow = 90
  3464.                             addcolumn = 270
  3465.                             datamodel_wrap = 2
  3466.  
  3467.                             datamodel = "[CharacterWindow.GetTitles]"
  3468.  
  3469.                             item = {
  3470.                                 flowcontainer = {
  3471.                                     datacontext = "[TitleItem.GetTitle]"
  3472.                                     spacing = 5
  3473.  
  3474.                                     coa_title_small_crown = {
  3475.                                         using = tooltip_ne
  3476.                                     }
  3477.  
  3478.                                     text_multi = {
  3479.                                         text = "[Title.GetNameNoTooltip]"
  3480.                                         parentanchor = vcenter
  3481.                                         autoresize = yes
  3482.                                         default_format = "#high"
  3483.                                         using = Font_Size_Medium
  3484.                                         max_width = 190
  3485.                                         margin_top = 5
  3486.                                     }
  3487.                                 }
  3488.                             }
  3489.                         }
  3490.                     }
  3491.                 }
  3492.  
  3493.                 # CLAIMS EXPANDED
  3494.                 scrollbox = {
  3495.                     name = "claims_expanded"
  3496.                     visible = "[CharacterWindow.AreClaimsExpanded]"
  3497.                     layoutpolicy_vertical = expanding
  3498.                     layoutpolicy_horizontal = expanding
  3499.  
  3500.                     using = Animation_Tab_Switch
  3501.  
  3502.                     blockoverride "scrollbox_content"
  3503.                     {
  3504.                         spacing = 10
  3505.  
  3506.                         text_label_center = {
  3507.                             text = "CV_CLAIMS_NOCOUNT"
  3508.                         }
  3509.  
  3510.                         flowcontainer = {
  3511.                             name = "titles_box_bishop"
  3512.                             datacontext = "[CharacterWindow.GetCharacter]"
  3513.                             datamodel = "[CharacterWindow.GetClaims]"
  3514.                             direction = vertical
  3515.                             spacing = 10
  3516.  
  3517.                             item = {
  3518.                                 flowcontainer = {
  3519.                                     spacing = 5
  3520.                                     using = tooltip_ne
  3521.                                     tooltip = "[Claim.GetTooltip]"
  3522.  
  3523.                                     coa_title_medium = {
  3524.                                         datacontext = "[Claim.GetTitle]"
  3525.                                     }
  3526.  
  3527.                                     flowcontainer = {
  3528.                                         direction = vertical
  3529.                                         ignoreinvisible = yes
  3530.  
  3531.                                         text_single = {
  3532.                                             text = "[Claim.GetTitle.GetNameNoTooltip]"
  3533.                                             default_format = "#high"
  3534.                                             using = Font_Size_Big
  3535.                                         }
  3536.  
  3537.                                         text_single = {
  3538.                                             name = "pressed_claim"
  3539.                                             visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]"
  3540.                                             text = "[pressed_claim_i][pressed_claim|E]"
  3541.                                         }
  3542.  
  3543.                                         text_single = {
  3544.                                             name = "unpressed_claim"
  3545.                                             visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]"
  3546.                                             text = "[unpressed_claim_i][unpressed_claim|E]"
  3547.                                         }
  3548.  
  3549.                                         text_single = {
  3550.                                             name = "implicit_claim"
  3551.                                             visible = "[Claim.IsImplicit]"
  3552.                                             text = "[implicit_claim_i][implicit_claim|E]"
  3553.                                         }
  3554.  
  3555.                                         text_multi = {
  3556.                                             visible = "[Claim.GetTitle.GetHolder.IsValid]"
  3557.                                             text = "CLAIM_TITLE_HOLDER"
  3558.                                             max_width = 400
  3559.                                             autoresize = yes
  3560.                                         }
  3561.  
  3562.                                         text_single = {
  3563.                                             visible = "[Not(Claim.GetTitle.GetHolder.IsValid)]"
  3564.                                             text = "CLAIM_TITLE_NOT_CREATED"
  3565.                                             default_format = "#weak"
  3566.                                             align = nobaseline
  3567.                                         }
  3568.                                     }
  3569.                                 }
  3570.                             }
  3571.                         }
  3572.                     }
  3573.                 }
  3574.  
  3575.                 # DIPLOMACY EXPANDED
  3576.                 scrollbox = {
  3577.                     name = "diplomacy_expanded"
  3578.                     visible = "[CharacterWindow.AreDiplomacyExpanded]"
  3579.                     layoutpolicy_vertical = expanding
  3580.                     layoutpolicy_horizontal = expanding
  3581.  
  3582.                     using = Animation_Tab_Switch
  3583.  
  3584.                     blockoverride "scrollbox_content"
  3585.                     {
  3586.                         spacing = 15
  3587.  
  3588.                         text_label_center = {
  3589.                             text = "CV_DIPLOMACY"
  3590.                         }
  3591.  
  3592.                         vbox = {
  3593.                             name = "diplomacy_items"
  3594.                             datamodel = "[CharacterWindow.GetDiplomacyItems]"
  3595.  
  3596.                             item = {
  3597.                                 vbox = {
  3598.                                     layoutpolicy_horizontal = expanding
  3599.                                     spacing = 20
  3600.  
  3601.                                     divider_light = {
  3602.                                         layoutpolicy_horizontal = expanding
  3603.                                     }
  3604.  
  3605.                                     button_group = {
  3606.                                         layoutpolicy_horizontal = expanding
  3607.                                         onclick = "[DiplomacyItem.OnClick]"
  3608.                                         tooltip = "[DiplomacyItem.GetTooltip]"
  3609.                                         using = tooltip_se
  3610.  
  3611.  
  3612.                                         hbox = {
  3613.                                             layoutpolicy_horizontal = expanding
  3614.                                             spacing = 20
  3615.  
  3616.                                             widget = {
  3617.                                                 size = { 65 74 }
  3618.  
  3619.                                                 button = {
  3620.                                                     texture = "gfx/interface/icons/diplomatic_icons.dds"
  3621.                                                     frame = "[DiplomacyItem.GetDiplomacyFrame]"
  3622.                                                     parentanchor = top|hcenter
  3623.                                                     position = { 0 -30 }
  3624.                                                     framesize = { 120 120 }
  3625.                                                     size = { 50 50 }
  3626.                                                     tooltip_enabled = no
  3627.                                                     scale = 1.3
  3628.                                                 }
  3629.  
  3630.                                                 coa_realm_medium = {
  3631.                                                     datacontext = "[DiplomacyItem.GetTargetCharacter]"
  3632.                                                     tooltip = "[DiplomacyItem.GetTooltip]"
  3633.                                                     parentanchor = hcenter
  3634.  
  3635.                                                     text_single = {
  3636.                                                         name = "warscore"
  3637.                                                         visible = "[DiplomacyItem.HasWarScore]"
  3638.                                                         parentanchor = hcenter
  3639.                                                         position = { 0 -20 }
  3640.                                                         text = "[DiplomacyItem.GetWarScoreFraction|0%=+]"
  3641.                                                         using = Font_Size_Medium
  3642.                                                     }
  3643.                                                 }
  3644.                                             }
  3645.  
  3646.                                             text_multi = {
  3647.                                                 text = "[DiplomacyItem.GetInfo]"
  3648.                                                 layoutpolicy_horizontal = expanding
  3649.                                                 autoresize = yes
  3650.                                                 max_width = 400
  3651.                                             }
  3652.                                         }
  3653.                                     }
  3654.  
  3655.                                     hbox = {
  3656.                                         name = "reason_characters"
  3657.                                         visible = "[DiplomacyItem.HasReasonCharacters]"
  3658.  
  3659.                                         portrait_head_small = {
  3660.                                             name = "reason_character_left"
  3661.                                             datacontext = "[DiplomacyItem.GetLeftReasonCharacter]"
  3662.                                             blockoverride "opinion_box" {}
  3663.                                             blockoverride "status_icons" {}
  3664.                                         }
  3665.  
  3666.                                         portrait_head_small = {
  3667.                                             name = "reason_character_right"
  3668.                                             datacontext = "[DiplomacyItem.GetRightReasonCharacter]"
  3669.                                             blockoverride "opinion_box" {}
  3670.                                             blockoverride "status_icons" {}
  3671.  
  3672.                                             blockoverride "portrait_transformation"
  3673.                                             {
  3674.                                                 portrait_scale = { -1 1 }
  3675.                                                 portrait_offset = { 1 0 }
  3676.                                             }
  3677.                                         }
  3678.                                     }
  3679.                                 }
  3680.                             }
  3681.                         }
  3682.                     }
  3683.                 }
  3684.             }
  3685.         }
  3686.     }
  3687. }
  3688.     ######################################################
  3689.     ################ TYPES AND TEMPLATES #################
  3690.     ######################################################
  3691.  
  3692.     types CharacterWindow
  3693.     {
  3694.         type skill_icon_label_vertical = widget {
  3695.             size = { 40 60 }
  3696.             datacontext = "[SkillItem]"
  3697.  
  3698.             icon = {
  3699.                 name = "skill_icon"
  3700.                 texture = "gfx/interface/icons/icon_skills.dds"
  3701.                 size = { 24 24 }
  3702.                 framesize = { 60 60 }
  3703.                 position = { -10 17 }
  3704.  
  3705.                 block "icon"
  3706.                 {
  3707.                     frame = "[SkillItem.GetFrame]"
  3708.                 }
  3709.             }
  3710.  
  3711.             block "tooltip"
  3712.             {
  3713.                 tooltip = "SKILL_ITEM_TOOLTIP"
  3714.                 using = tooltip_ne
  3715.             }
  3716.  
  3717.             text_single = {
  3718.                 name = "skill_value"
  3719.                 parentanchor = top|hcenter
  3720.                 position = { 5 17 }
  3721.                 align = center
  3722.  
  3723.                 block "value"
  3724.                 {
  3725.                     text = "[SkillItem.GetValue]"
  3726.                 }
  3727.             }
  3728.         }
  3729.  
  3730.         type icon_row_header_background = icon
  3731.         {
  3732.             size = { 100% 25 }
  3733.  
  3734.             texture = "gfx/interface/component_tiles/tile_title_bg_01.dds"
  3735.             spritetype = corneredtiled
  3736.             spriteborder = { 20 0 }
  3737.             texture_density = 2
  3738.             alpha = 0.5
  3739.         }
  3740.  
  3741.         type widget_family_row_item = widget
  3742.         {
  3743.             layoutpolicy_horizontal = expanding
  3744.             layoutpolicy_vertical = expanding
  3745.             maximumsize = { -1 110 }
  3746.             scissor = yes
  3747.  
  3748.             icon_row_header_background = {}
  3749.  
  3750.             hbox = {
  3751.  
  3752.                 block "item_list"
  3753.                 {
  3754.                 }
  3755.  
  3756.                 expand = {}
  3757.             }
  3758.         }
  3759.  
  3760.         type vbox_character_row_item = vbox {
  3761.             spacing = -3
  3762.  
  3763.             widget = {
  3764.                 layoutpolicy_horizontal = expanding
  3765.                 size = { 0 25 }
  3766.                 min_width = 110
  3767.  
  3768.                 block "expand_button" {
  3769.                     button_standard_hover = {
  3770.                         size = { 100% 100% }
  3771.  
  3772.                         block "expand_button_inside" {}
  3773.                     }
  3774.                 }
  3775.  
  3776.                 hbox = {
  3777.                     margin = { 10 0 }
  3778.  
  3779.                     background = {
  3780.                         using = Text_Label_Background
  3781.                         alpha = 0.5
  3782.                         margin = { 0 -2 }
  3783.                     }
  3784.  
  3785.                     text_single = {
  3786.                         align = nobaseline
  3787.                         fontsize = 14
  3788.  
  3789.                         block "header_text"
  3790.                         {
  3791.                             text = "#D NEEDS TEXT#!"
  3792.                         }
  3793.                     }
  3794.  
  3795.                     expand = {}
  3796.  
  3797.                     text_single = {
  3798.                         align = nobaseline
  3799.                         default_format = "#weak"
  3800.  
  3801.                         block "remaining_items" {
  3802.                             visible = no
  3803.                         }
  3804.                     }
  3805.                 }
  3806.             }
  3807.  
  3808.             hbox = {
  3809.                 layoutpolicy_horizontal = expanding
  3810.  
  3811.                 using = Animation_Character_Window_Refresh
  3812.  
  3813.                 block "gridbox" {
  3814.                     fixedgridbox = {
  3815.                         flipdirection = yes
  3816.                         addcolumn = 85
  3817.                         addrow = 90
  3818.                         datamodel_wrap = 7
  3819.  
  3820.                         block "gridbox_slots"
  3821.                         {
  3822.                             maxverticalslots = 1
  3823.                         }
  3824.  
  3825.                         block "portrait_datamodel" {
  3826.                             datamodel = "[CharacterWindow.GetParents]"
  3827.                         }
  3828.  
  3829.                         item = {
  3830.                             portrait_head_small = {
  3831.                                 datacontext = "[CharacterRef.Get]"
  3832.                                 blockoverride "portrait_button"
  3833.                                 {
  3834.                                     using = tooltip_ne
  3835.                                 }
  3836.                                 blockoverride "glow_visible"
  3837.                                 {
  3838.                                     visible = no
  3839.                                 }
  3840.                             }
  3841.                         }
  3842.                     }
  3843.                 }
  3844.  
  3845.                 block "find_partner" {}
  3846.  
  3847.                 expand = {}
  3848.             }
  3849.  
  3850.             expand = {}
  3851.         }
  3852.  
  3853.         type vbox_titles_claims_box = vbox {
  3854.  
  3855.             ## Titles
  3856.             vbox = {
  3857.                 name = "titles"
  3858.                 visible = "[Not( IsDataModelEmpty( CharacterWindow.GetTitles ) )]"
  3859.                 layoutpolicy_horizontal = expanding
  3860.  
  3861.                 button_standard_hover = {
  3862.                     layoutpolicy_horizontal = expanding
  3863.                     size = { 0 25 }
  3864.                     onclick = "[CharacterWindow.ToggleExpandedTitles]"
  3865.                     down = "[CharacterWindow.AreTitlesExpanded]"
  3866.                     tooltip = "[SelectLocalization( CharacterWindow.AreTitlesExpanded, 'CV_TITLES_HIDE_TT', 'CV_TITLES_SHOW_TT' )]"
  3867.  
  3868.                     hbox = {
  3869.                         margin = { 5 0 }
  3870.                         margin_bottom = 3
  3871.                         margin_right = 10
  3872.  
  3873.                         text_label_left = {
  3874.                             visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)1' )]"
  3875.                             text = "CV_TITLES"
  3876.                         }
  3877.  
  3878.                         text_label_left = {
  3879.                             visible = "[Not(GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)1' ))]"
  3880.                             text = "CV_TITLES_SINGULAR"
  3881.                         }
  3882.  
  3883.                         expand = {}
  3884.  
  3885.                         text_single = {
  3886.                             block "titles_extra_items"
  3887.                             {
  3888.                                 visible = "[GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )]"
  3889.                                 text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )|=]"
  3890.                             }
  3891.                             default_format = "#weak"
  3892.                         }
  3893.                     }
  3894.                 }
  3895.  
  3896.                 hbox = {
  3897.                     layoutpolicy_horizontal = expanding
  3898.  
  3899.                     hbox = {
  3900.                         layoutpolicy_horizontal = expanding
  3901.  
  3902.                         fixedgridbox = {
  3903.                             datamodel = "[CharacterWindow.GetTitles]"
  3904.                             flipdirection = yes
  3905.                             addrow = 60
  3906.                             addcolumn = 38
  3907.                             maxverticalslots = 1
  3908.  
  3909.                             block "titles_max_slots" {
  3910.                                 datamodel_wrap = 2
  3911.                             }
  3912.  
  3913.                             item = {
  3914.                                 coa_title_tiny_crown = {
  3915.                                     datacontext = "[TitleItem.GetTitle]"
  3916.                                     #   visible = "[GreaterThan_int32( Title.GetTierFrame, '(int32)3' )]"
  3917.                                     using = tooltip_ne
  3918.  
  3919.                                     icon = {
  3920.                                         name = "has_laws"
  3921.                                         visible = "[TitleItem.GetTitle.HasLaws]"
  3922.                                         parentanchor = bottom|right
  3923.                                         size = { 25 25 }
  3924.                                         position = { 5 0 }
  3925.                                         texture = "gfx/interface/icons/title_status/icon_title_law.dds"
  3926.                                     }
  3927.                                 }
  3928.                             }
  3929.                         }
  3930.  
  3931.                         expand = {}
  3932.                     }
  3933.                 }
  3934.             }
  3935.  
  3936.             ## Claims
  3937.             vbox = {
  3938.                 name = "claims"
  3939.                 visible = "[Not(IsDataModelEmpty(CharacterWindow.GetClaims))]"
  3940.                 layoutpolicy_horizontal = expanding
  3941.  
  3942.                 vbox = {
  3943.                     layoutpolicy_horizontal = expanding
  3944.  
  3945.                     button_standard_hover = {
  3946.                         layoutpolicy_horizontal = expanding
  3947.                         margin_left = 5
  3948.                         size = { 0 25 }
  3949.                         onclick = "[CharacterWindow.ToggleExpandedClaims]"
  3950.                         down = "[CharacterWindow.AreClaimsExpanded]"
  3951.                         tooltip = "[SelectLocalization( CharacterWindow.AreClaimsExpanded, 'CV_CLAIMS_HIDE_TT', 'CV_CLAIMS_SHOW_TT' )]"
  3952.  
  3953.                         hbox = {
  3954.                             margin = { 5 0 }
  3955.                             margin_bottom = 3
  3956.                             margin_right = 10
  3957.  
  3958.                             text_label_left = {
  3959.                                 visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)1' )]"
  3960.                                 text = "CV_CLAIMS"
  3961.                             }
  3962.  
  3963.                             text_label_left = {
  3964.                                 visible = "[Not(GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)1' ))]"
  3965.                                 text = "CV_CLAIMS_SINGULAR"
  3966.                             }
  3967.  
  3968.                             expand = {}
  3969.  
  3970.                             text_single = {
  3971.                                 block "claims_extra_items"
  3972.                                 {
  3973.                                     visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)10' )]"
  3974.                                     text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)10' )|=]"
  3975.                                 }
  3976.                                 default_format = "#weak"
  3977.                             }
  3978.                         }
  3979.                     }
  3980.  
  3981.                     expand = {}
  3982.                 }
  3983.  
  3984.                 hbox = {
  3985.                     layoutpolicy_horizontal = expanding
  3986.  
  3987.                     fixedgridbox = {
  3988.                         name = "claims_box"
  3989.                         datamodel = "[CharacterWindow.GetClaims]"
  3990.                         flipdirection = yes
  3991.                         addrow = 60
  3992.                         addcolumn = 38
  3993.                         maxverticalslots = 1
  3994.  
  3995.                         block "claims_max_slots" {
  3996.                             datamodel_wrap = 8
  3997.                         }
  3998.  
  3999.                         item = {
  4000.                             container = {
  4001.                                 datacontext = "[Claim.GetTitle]"
  4002.                                 using = tooltip_ne
  4003.                                 tooltip = "CHARACTER_WINDOW_CLAIM_TOOLTIP"
  4004.  
  4005.                                 coa_title_tiny_crown = {
  4006.                                     name = "claim"
  4007.                                     tooltip_enabled = no
  4008.  
  4009.  
  4010.                                     highlight_icon = {
  4011.                                         name = "pressed_claim"
  4012.                                         visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]"
  4013.                                         texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds"
  4014.                                         size = { 24 24 }
  4015.                                         parentanchor = bottom|right
  4016.                                     }
  4017.  
  4018.                                     highlight_icon = {
  4019.                                         name = "unpressed_claim"
  4020.                                         visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]"
  4021.                                         texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds"
  4022.                                         size = { 24 24 }
  4023.                                         parentanchor = bottom|right
  4024.                                     }
  4025.  
  4026.                                     highlight_icon = {
  4027.                                         name = "implicit_claim"
  4028.                                         visible = "[Claim.IsImplicit]"
  4029.                                         texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds"
  4030.                                         size = { 24 24 }
  4031.                                         parentanchor = bottom|right
  4032.                                     }
  4033.                                 }
  4034.                             }
  4035.                         }
  4036.                     }
  4037.  
  4038.                     expand = {}
  4039.                 }
  4040.             }
  4041.  
  4042.             expand = {}
  4043.         }
  4044.  
  4045.         type vbox_diplomacy_box = vbox {
  4046.             name = "diplomacy"
  4047.  
  4048.             button_standard_hover = {
  4049.                 layoutpolicy_horizontal = expanding
  4050.                 size = { 0 25 }
  4051.                 onclick = "[CharacterWindow.ToggleExpandedDiplomacy]"
  4052.                 down = "[CharacterWindow.AreDiplomacyExpanded]"
  4053.                 tooltip = "[SelectLocalization( CharacterWindow.AreDiplomacyExpanded, 'CV_DIPLOMACY_HIDE_TT', 'CV_DIPLOMACY_SHOW_TT' )]"
  4054.  
  4055.                 hbox = {
  4056.                     margin = { 5 0 }
  4057.                     margin_left = 10
  4058.                     margin_bottom = 3
  4059.  
  4060.                     text_label_left = {
  4061.                         layoutpolicy_horizontal = expanding
  4062.                         text = "CV_DIPLOMACY"
  4063.                         margin_right = 0
  4064.                     }
  4065.                 }
  4066.  
  4067.                 hbox = {
  4068.                     margin = { 10 0 }
  4069.                     margin_bottom = 3
  4070.  
  4071.                     expand = {}
  4072.  
  4073.                     text_single = {
  4074.                         default_format = "#weak"
  4075.  
  4076.                         block "diplomacy_extra_items"
  4077.                         {
  4078.                             visible = no
  4079.                         }
  4080.                     }
  4081.                 }
  4082.             }
  4083.  
  4084.             vbox = {
  4085.                 margin_top = 20
  4086.                 min_width = 100
  4087.  
  4088.                 fixedgridbox = {
  4089.                     name = "diplomacy_items"
  4090.                     datamodel = "[CharacterWindow.GetDiplomacyItems]"
  4091.                     flipdirection = yes
  4092.                     addrow = 65
  4093.                     addcolumn = 50
  4094.  
  4095.                     block "diplomacy_slots"
  4096.                     {
  4097.                         maxverticalslots = 2
  4098.                         maxhorizontalslots = 2
  4099.                         datamodel_wrap = 2
  4100.                     }
  4101.  
  4102.                     item = {
  4103.                         container = {
  4104.                             button = {
  4105.                                 parentanchor = top|hcenter
  4106.                                 position = { 0 -22 }
  4107.                                 texture = "gfx/interface/icons/diplomatic_icons.dds"
  4108.                                 frame = "[DiplomacyItem.GetDiplomacyFrame]"
  4109.                                 framesize = { 120 120 }
  4110.                                 size = { 50 50 }
  4111.                                 tooltip_enabled = no
  4112.  
  4113.                                 text_single = {
  4114.                                     name = "warscore"
  4115.                                     visible = "[DiplomacyItem.HasWarScore]"
  4116.                                     parentanchor = top|hcenter
  4117.                                     position = { 0 10 }
  4118.                                     text = "[DiplomacyItem.GetWarScoreFraction|0%=+]"
  4119.                                     fontsize = 13
  4120.                                 }
  4121.                             }
  4122.  
  4123.                             coa_realm_small = {
  4124.                                 datacontext = "[DiplomacyItem.GetTargetCharacter]"
  4125.                                 tooltip = "[DiplomacyItem.GetTooltip]"
  4126.                                 using = tooltip_es
  4127.                                 tooltip_offset = { 0 22 }
  4128.                                 onrightclick = "[DefaultOnRealmFlagClick(Character.GetID)]"
  4129.  
  4130.                                 state = {
  4131.                                     name = _mouse_hierarchy_enter
  4132.                                     start_sound = {
  4133.                                         soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  4134.                                     }
  4135.                                 }
  4136.  
  4137.                                 blockoverride "coa_button"
  4138.                                 {
  4139.                                     onclick = "[DiplomacyItem.OnClick]"
  4140.                                     button_ignore = none
  4141.                                 }
  4142.                             }
  4143.                         }
  4144.                     }
  4145.                 }
  4146.             }
  4147.  
  4148.             expand = {}
  4149.         }
  4150.     }
  4151.  
  4152.     template Animation_Character_Window_Refresh
  4153.     {
  4154.         state = {
  4155.             name = character_window_refresh
  4156.             using = Animation_Refresh_FadeOut
  4157.             alpha = 0.65
  4158.         }
  4159.  
  4160.         state = {
  4161.             using = Animation_Refresh_FadeIn
  4162.         }
  4163.     }
  4164.  
  4165.     template Animation_Character_Window_Refresh_Short
  4166.     {
  4167.         state = {
  4168.             name = character_window_refresh
  4169.             using = Animation_Refresh_FadeOut
  4170.             alpha = 0.8
  4171.         }
  4172.  
  4173.         state = {
  4174.             using = Animation_Refresh_FadeIn
  4175.             duration = 0.25
  4176.         }
  4177.     }
  4178.  
Advertisement
Add Comment
Please, Sign In to add comment