diff --git a/N3OW/gui/POPS/pops_base_types.gui b/N3OW/gui/POPS/pops_base_types.gui deleted file mode 100644 index b5e4e0c7..00000000 --- a/N3OW/gui/POPS/pops_base_types.gui +++ /dev/null @@ -1,363 +0,0 @@ -template POPSTextStyle -{ - using = Font_Type_Standard - using = Font_Size_Small - align = left - default_format = "#medium" - - block "pops_text_style" - { - } -} - -template POPSButtonTextStyle -{ - block "pops_button_text_style" - { - name = "pops_button_text" - parentanchor = vcenter|hcenter - font = StandardGameFont - fontsize = 15 - fontcolor = { 0.86 0.86 0.73 1 } - autoresize = yes - position = { 0 0 } - align = center - } -} - -template POPSErrorTextStyle -{ - block "pops_error_text_style" - { - font = StandardGameFont - align = left - fontcolor = { 1 0 0 1 } - fontsize = 13 - } -} - -template POPSButtonStyle -{ - block "pops_button_style" - { - texture = "gfx/editor_gui/editor_button.dds" - gfxtype = framedbuttongfx - spriteType = CorneredStretched - spriteborder = { 4 4 } - effectname = "NoHighlight" - framesize = { 16 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - intersectionmask = yes - } -} - -template POPSDropdownButtonStyle -{ - block "pops_dropdown_button_style" - { - texture = "gfx/editor_gui/editor_dropdown.dds" - spriteType = CorneredStretched - gfxtype = framedbuttongfx - effectname = "NoHighlight" - spriteborder = { 4 4 } - spriteborder_right = 24 - button_trigger = none - framesize = { 32 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - } -} - -template pops_dropdown_enum -{ - block "pops_dropdown_enum" - { - alwaystransparent = no - active_item = { - widget = { - size = { 250 30 } - block "active_item" - { - - } - - button = { - size = { 100% 100% } - using = POPSDropdownButtonStyle - } - - editor_textbox = { - block "item_text" - { - text = "" - } - position = { 10 0 } - parentanchor = vcenter|left - fontsize = 12 - } - } - } - - item = { - widget = { - size = { 250 20 } - block "item" - { - } - - button = { - size = { 100% 100% } - texture = "gfx/editor_gui/editor_dropdown_item.dds" - spriteType = CorneredTiled - spriteborder = { 1 1 } - gfxtype = framedbuttongfx - framesize = { 8 8 } - upframe = 1 - downframe = 2 - overframe = 2 - disableframe = 1 - button_trigger = none - } - - editor_textbox = { - block "item_text" - { - text = "" - } - position = { 10 8 } - fontsize = 12 - } - } - } - - list = { - scrollarea = { - position = { 2 30 } - autoresizescrollarea = yes - alwaystransparent = yes - maximumsize = { 250 210 } - block "scrollarea" - { - } - - background = { - margin = { 2 2 } - margin_bottom = 6 - margin_right = 6 - texture = "gfx/editor_gui/editor_dropdown_list.dds" - spriteType = CorneredStretched - spriteborder = { 6 6 } - spriteborder_right = 8 - spriteborder_bottom = 8 - shaderfile = "gfx/FX/pdxgui_default.shader" - } - - scrollwidget = { - dynamicgridbox = { - alwaystransparent = no - } - } - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollbar_horizontal = { - using = editor_horizontal_scrollbar - } - } - } - } -} - -types POPS -{ - type pops_vertical_spacer = widget { - block "pops_vertical_spacer" - { - size = { 0 5 } - } - } - - type pops_horizontal_spacer = widget { - block "pops_horizontal_spacer" - { - size = { 5 0 } - } - } - - type pops_window = window { - - block "pops_window" - { - using = Window_Movable - - vbox = { - using = Window_Margins - - block "content_layout" - {} - } - } - } - - type pops_button = button { - block "pops_button_size" - { - size = { 150 50 } - minimumsize = { 150 50 } - } - - using = POPSButtonStyle - - buttonText = { - textbox = { - using = POPSButtonTextStyle - } - } - } - - type pops_button_wide = pops_button { - block "pops_button_size" - { - size = { 200 50 } - minimumsize = { 150 50 } - } - } - - type pops_load_indicator = progressbar - { - # parentanchor = vcenter|hcenter - size = { 44 44 } - gfxtype = framedprogressbargfx - texture = "gfx/interface/loading_progress.dds" - framesize = { 44 44 } - loopinterval = 1.5 - max = 0 - block "load_indicator" - { - visible = no - } - } - - type pops_button_load_indicator = button_standard { - pops_load_indicator = {} - } - - type pops_textbox = textbox { - text = "" - block "textbox_size" - { - size = { 200 30 } - } - using = POPSTextStyle - block "textboxstyle" - { - } - } - - type pops_error_textbox = textbox { - text = "" - multiline = yes - layoutpolicy_vertical = expanding - using = POPSErrorTextStyle - block "textboxstyle" - { - } - } - - type pops_required_textbox = textbox { - block "required_field" - { - raw_text = "*" - } - minimumsize = { 10 -1 } - using = POPSTextStyle - autoresize = yes - block "textboxstyle" - { - } - fontcolor = { 1 0 0 1 } - } - - type pops_dropdown = dropDown { - layoutpolicy_horizontal = expanding - block "pops_dropdown_name" - { - name = "pops_dropdown" - } - block "pops_dropdown" - { - } - using = pops_dropdown_enum - } - - type pops_textbox_entry = hbox { - layoutpolicy_horizontal = expanding - restrictparent_min = yes - layoutpolicy_vertical = fixed - - editbox_standard_with_label = { - blockoverride "editbox_label" - { - block "title" - { - raw_text = "#D Title:#!" - } - } - layoutpolicy_horizontal = expanding - block "editbox_size" - { - size = { 130 30 } - } - } - } - - type pops_dropdown_entry = hbox { - layoutpolicy_horizontal = expanding - pops_required_textbox={} - pops_vertical_spacer={} - pops_textbox = { - block "title" - { - raw_text = "#D Title:#!" - } - } - pops_dropdown = { - } - } - - type pops_checkbutton = hbox { - checkbutton = { - gfxtype = checkbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "gfx/editor_gui/editor_checkbox.dds" - framesize = { 16 16 } - size = { 32 32 } - - block "checkbutton" - { - } - } - - pops_horizontal_spacer={} - - pops_textbox = { - multiline = yes - #size = { 300 100% } - maximumsize = { 300 800 } - minimumsize = { 200 50 } - align = top - - block "label" - { - raw_text = "#D Label#!" - } - } - } -} diff --git a/N3OW/gui/POPS/pops_login_window.gui b/N3OW/gui/POPS/pops_login_window.gui deleted file mode 100644 index 46fc47c8..00000000 --- a/N3OW/gui/POPS/pops_login_window.gui +++ /dev/null @@ -1,668 +0,0 @@ - -types POPS -{ - type pops_login_window = window { - name = "pops_login_window" - size = { 100% 100% } - movable = no - layer = confirmation - - using = Animation_ShowHide_Quick - using = Background_Full_Dim - - button = { - size = { 100% 100% } - onclick = "[POPSLoginView.Hide]" - } - - widget = { - size = { 600 400 } - parentanchor = center - alwaystransparent = no - - using = Window_Decoration_Frontend_Spike - using = Window_Background - - widget = { - position = { 45 20 } - allow_outside = yes - - highlight_icon = { - size = { 44 44 } - texture = "gfx/interface/icons/flat_icons/account.dds" - alpha = 0.4 - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 4 - } - } - } - - vbox = { - using = Window_Margins - - vbox = { - name = "log_in" - visible = "[POPSLoginView.IsLogin]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "POPS_LOGIN" - } - - blockoverride "button_close" - { - onclick = "[POPSLoginView.Hide]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 500 0 } - spacing = 5 - margin = { 20 10 } - - pops_textbox_entry = { - name = "pops_login_entry_email" - layoutpolicy_horizontal = expanding - - blockoverride "title" - { - text = "EMAIL" - } - blockoverride "editbox_properties" - { - name = "pops_editbox" - text = "[POPSLoginView.GetEmail]" - focus_on_visible = yes - ontextchanged = "[POPSLoginView.SetEmail]" - onreturnpressed = "[POPSLoginView.Login]" - maxcharacters = 255 - } - } - - pops_textbox_entry = { - name = "pops_login_entry_password" - layoutpolicy_horizontal = expanding - - blockoverride "title" - { - text = "PASSWORD" - } - - blockoverride "editbox_properties" - { - name = "pops_editbox" - text = "[POPSLoginView.GetPassword]" - ontextchanged = "[POPSLoginView.SetPassword]" - onreturnpressed = "[POPSLoginView.Login]" - password = yes - } - } - - text_multi = { - text = "[POPSLoginView.GetErrorMessage]" - default_format = "#X" - visible = "[Not(POPSStatusIsLoggingIn)]" - multiline = yes - layoutpolicy_horizontal = expanding - align = center - autoresize = yes - max_width = 500 - } - - expand = { - layoutpolicy_vertical = expanding - visible = "[Not(POPSStatusIsLoggingIn)]" - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And(Not(POPSStatusIsLoggingIn), Not(POPSStatusIsLoggedIn))]" - spacing = 10 - - button_tertiary = { - text = "POPS_LOGIN_RESET_PASSWORD" - onclick = "[POPSLoginView.SetState( 'password_reset' )]" - } - - expand = {} - - button_primary = { - text = "[POPSLoginView.GetLoginString]" - layoutpolicy_horizontal = fixed - enabled = "[POPSLoginView.IsValidLoginInfo]" - onclick = "[POPSLoginView.Login]" - } - } - - ### ANIMATIONS #### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[POPSStatusIsLoggingIn]" - hbox = { - spacing = 5 - - text_single = { - text = "LOGGING_IN" - } - - pops_load_indicator = { - blockoverride "load_indicator" - { - visible = yes - } - } - } - - background = { - using = Background_Area_Border - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[And(Not(POPSStatusIsLoggingIn), POPSStatusIsLoggedIn)]" - - text_single = { - text = "POPS_LOGIN_LOGGED_IN" - } - - button_standard = { - text = "CLOSE_LABEL" - layoutpolicy_horizontal = fixed - onclick = "[POPSLoginView.Hide]" - } - - background = { - using = Background_Area_Border_Solid - } - } - - ### CREATE ACCOUNT ### - hbox = { - visible = "[And(And(Not(POPSLoginView.IsRestoringPassword), Not(POPSStatusIsLoggedIn)), Not(POPSLoginView.IsEmailSent))]" - layoutpolicy_horizontal = expanding - margin = { 20 10 } - - background = { - using = Background_Area - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "POPS_CREATE_ACCOUNT_CREARE_SUGGESTION" - align = nobaseline - } - - expand = {} - - button_standard = { - text = "CREATE_ACCOUNT" - onclick = "[OnCreateAccount]" - } - } - } - - vbox = { - name = "forgot_password" - visible = "[POPSLoginView.IsRestoringPassword]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "POPS_FORGOT_PASSWORD" - } - - blockoverride "button_close" - { - onclick = "[POPSLoginView.Hide]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 5 - - vbox = { - layoutpolicy_vertical = expanding - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 500 - text = "POPS_LOGIN_RESET_PASSWORD_DESC" - } - - spacer = { - size = { -1 20 } - } - - pops_textbox_entry = { - name = "pops_login_entry_email" - layoutpolicy_horizontal = expanding - - blockoverride "title" - { - text = "EMAIL" - } - - blockoverride "editbox_properties" - { - name = "pops_editbox" - text = "[POPSLoginView.GetEmail]" - ontextchanged = "[POPSLoginView.SetEmail]" - onreturnpressed = "[POPSLoginView.ResetPassword]" - maxcharacters = 255 - } - block "editbox_size" - { - size = { 100 0 } - } - } - - expand = { - } - } - - - hbox = { - spacing = 10 - - button_standard = { - text = "CANCEL" - onclick = "[POPSLoginView.SetState( 'login' )]" - } - - - button_standard = { - text = "POPS_LOGIN_RESET_PASSWORD_SEND" - onclick = "[POPSLoginView.ResetPassword]" - onclick = "[POPSLoginView.SetState( 'email_sent' )]" - } - } - } - } - - vbox = { - name = "forgot_password_sent" - visible = "[POPSLoginView.IsEmailSent]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "POPS_FORGOT_PASSWORD" - } - - blockoverride "button_close" - { - onclick = "[POPSLoginView.Hide]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 20 10 } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 500 - autoresize = yes - text = "POPS_LOGIN_RESET_PASSWORD_EMAIL_SENT" - } - - expand = {} - - button_standard_back = { - text = "BACK_LABEL" - layoutpolicy_horizontal = fixed - onclick = "[POPSLoginView.SetState( 'login' )]" - } - } - } - - vbox = { - name = "account_info" - visible = "[POPSLoginView.IsLoggedIn]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "PARADOX_ACCOUNT" - } - - blockoverride "button_close" - { - onclick = "[POPSLoginView.Hide]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 10 } - - spacer = { - size = { -1 20 } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 350 0 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - text_single = { - text = "EMAIL" - align = nobaseline - } - - text_single = { - raw_text = ":" - align = nobaseline - } - } - - text_single = { - default_format = "#high" - text = "[POPStatusGetUserEmailMasked]" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - minimumsize = { 0 33 } - - hbox = { - text_single = { - text = "USER_NAME" - align = nobaseline - } - - text_single = { - raw_text = ":" - align = nobaseline - } - } - - hbox = { - visible = "[Not( POPStatusIsUserNameEmpty )]" - spacing = 5 - - text_single = { - default_format = "#high" - text = "[POPStatusGetUserName]" - align = nobaseline - } - - button_change = { - size = { 24 24 } - onclick = "[POPSLoginView.SetState( 'change_username' )]" - } - } - - hbox = { - visible = "[POPStatusIsUserNameEmpty]" - - button_standard = { - text = "POPS_LOGIN_ADD_USER_NAME" - onclick = "[POPSLoginView.SetState( 'change_username' )]" - } - } - - expand = {} - } - - spacer = { - size = { 10 30 } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[And( POPSStatusIsLoggedIn, POPSStatusIsSupportConnectedAccount )]" - - button_checkbox = { - visible = "[Not( POPSLoginView.IsConnectingAccount )]" - size = { 24 24 } - checked = "[POPSStatusIsAccountConnected]" - onclick = "[POPSLoginView.ToggleConnected]" - } - - pops_load_indicator = { - size = { 24 24 } - visible = "[POPSLoginView.IsConnectingAccount]" - blockoverride "load_indicator" - { - visible = yes - } - } - - text_single = { - text = "POPS_LOGIN_BIND_STEAM" - align = nobaseline - } - - expand = {} - } - - text_multi = { - text = "[POPSLoginView.GetErrorMessage]" - default_format = "#X" - multiline = yes - layoutpolicy_horizontal = expanding - align = center - autoresize = yes - max_width = 500 - } - } - - expand = {} - - hbox = { - spacing = 10 - - button_standard = { - text = "CLOSE_LABEL" - layoutpolicy_horizontal = fixed - onclick = "[POPSLoginView.Hide]" - } - - button_standard = { - text = "LOGOUT" - onclick = [POPSLoginView.Logout] - onclick = "[POPSLoginView.SetState( 'login' )]" - } - } - } - } - } - - vbox = { - name = "change_username" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[POPSLoginView.IsChangingUserName]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "PDX_USERNAME" - } - - blockoverride "button_close" - { - onclick = "[POPSLoginView.Hide]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 20 10 } - - text_multi = { - text = "POPS_LOGIN_CHANGE_USER_NAME_DESC" - max_width = 500 - autoresize = yes - } - - spacer = { - size = { -1 20 } - } - - hbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 2 - layoutpolicy_horizontal = expanding - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_label" - { - text = "USERNAME" - } - size = { 320 30 } - blockoverride "editbox_properties" - { - name = "edit_username" - text = "[POPStatusGetUserName]" - onreturnpressed = "[POPSLoginView.SetUserName]" - ontextedited = "[POPSLoginView.OnUserNameChange]" - maxcharacters = 255 - } - } - - hbox = { - visible = "[POPSLoginView.IsEmptyUserNamePrompt]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "POPS_LOGIN_EMPTY_USERNAME" - default_format = "#negative_value;italic" - } - } - - text_multi = { - text = "[POPSLoginView.GetErrorMessage]" - default_format = "#X" - multiline = yes - layoutpolicy_horizontal = expanding - align = center - autoresize = yes - } - - text_single = { - visible = "[POPSLoginView.IsSuccessfulSetName]" - text = "POPS_LOGIN_CHANGE_USERNAME_SUCCESS" - align = left - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - - - expand = {} - - hbox = { - spacing = 10 - - button_standard_back = { - text = "BACK_LABEL" - layoutpolicy_horizontal = fixed - onclick = "[POPSLoginView.SetState( 'logged_in' )]" - } - - button_standard = { - text = "UPDATE_USERNAME" - layoutpolicy_horizontal = fixed - onclick = "[POPSLoginView.SetUserName]" - } - } - } - } - } - } - } - - type pops_login_accountwidget = button_account { - name = "account" - tooltip = "[SelectLocalization( POPSStatusIsLoggedIn, 'FRONTEND_LOGGED_IN', 'FRONTEND_LOGIN_FOR_MUTLIPLAYER_TT' )]" - - block "properties" { - onclick = "[POPSStatusWidget.ToggleLoginWindow]" - } - enabled = "[Not(POPSStatusIsLoggingIn)]" - - pops_load_indicator = { - blockoverride "load_indicator" - { - visible = "[POPSStatusIsLoggingIn]" - size = { 15 15 } - parentanchor = right|top - widgetanchor = left - } - } - - icon_circle_green = { - name = "online" - visible = "[POPSStatusIsLoggedIn]" - parentanchor = right|top - widgetanchor = left - } - - icon_ring = { - name = "offline" - visible = "[Not(POPSStatusIsLoggedIn)]" - size = { 15 15 } - alpha = 0.5 - parentanchor = right|top - widgetanchor = left - } - - block "text" {} - } -} diff --git a/N3OW/gui/POPS/pops_login_window_instanced.gui b/N3OW/gui/POPS/pops_login_window_instanced.gui deleted file mode 100644 index ef92dd99..00000000 --- a/N3OW/gui/POPS/pops_login_window_instanced.gui +++ /dev/null @@ -1,3 +0,0 @@ -pops_login_window = { - visible_at_creation = no -} \ No newline at end of file diff --git a/N3OW/gui/achievements/jomini_achievements_types.gui b/N3OW/gui/achievements/jomini_achievements_types.gui deleted file mode 100644 index 51c3ba27..00000000 --- a/N3OW/gui/achievements/jomini_achievements_types.gui +++ /dev/null @@ -1,161 +0,0 @@ -types Achievements -{ - type vbox_achievement_group = vbox { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 10 - - button_normal = { - layoutpolicy_horizontal = expanding - size = { 0 25 } - onclick = "[Group.ToggleCollapsed]" - - hbox = { - margin = { 10 0 } - spacing = 10 - - background = { - using = Background_Area - margin = { 0 5 } - } - - button_expand = { - onclick = "[Group.ToggleCollapsed]" - frame = "[Select_int32( Group.IsCollapsed, '(int32)1', '(int32)2' )]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ACHIEVEMENT_GROUP_TITLE" - default_format = "#low" - align = nobaseline - tooltip = "ACHIEVEMENT_GROUP_TOOLTIP" - alwaystransparent = yes - } - - expand = {} - } - } - - spacer = { - size = { 5 5 } - } - - vbox = { - datamodel = "[Group.AccessVisibleAchievements]" - visible = "[Not(Group.IsCollapsed)]" - layoutpolicy_horizontal = expanding - - item = { - widget_achievement_list_entry = { - layoutpolicy_horizontal = expanding - } - } - } - } - - type widget_achievement_list_entry = widget { - minimumsize = { 0 80 } - - hbox = { - set_parent_size_to_minimum = yes - spacing = 10 - margin = { 0 5 } - - vbox = { - layoutpolicy_vertical = expanding - - ### IMAGE #### - widget = { - layoutpolicy_vertical = expanding - size = { 70 70 } - - icon = { - visible = "[GUIAchievement.GetAchievement.IsUnlocked]" - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - tooltip = "ACHIEVEMENT_UNLOCKED" - - block "achievement_icon" {} - } - - #### LOCKED - highlight_icon = { - visible = "[Not(GUIAchievement.GetAchievement.IsUnlocked)]" - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - tooltip = "ACHIEVEMENT_LOCKED" - - effectname = "GreyedOut" - - highlight_icon = { - size = { 96% 97% } - parentanchor = center - texture = "gfx/interface/component_masks/mask_frame_horizontal.dds" - tintcolor = { 0 0 0 0.6 } - } - } - - ##### IS NOT POSSIBLE - highlight_icon = { - visible = "[Not(GUIAchievement.IsPossible)]" - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - tooltip = "ACHIEVEMENT_NOT_POSSIBLE" - - effectname = "GreyedOut" - } - } - - expand = {} - } - - ##TEXT### - vbox = { - layoutpolicy_horizontal = expanding - - margin_bottom = 4 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUIAchievement.GetName]" - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - tooltip = "[GUIAchievement.GetHappenedDescription]" - default_format = "#high" - max_width = 470 - using = Font_Size_Medium - align = nobaseline - - block "achievement_name" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = "[GUIAchievement.GetDescription]" - align = nobaseline - autoresize = yes - max_width = 470 - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - tooltip = "[GUIAchievement.GetHappenedDescription]" - - block "achievement_description" {} - } - - expand = {} - } - } - } - - divider_light = { - parentanchor = bottom|hcenter - size = { 100% 3 } - position = { 0 -2 } - alpha = 0.5 - } - } -} diff --git a/N3OW/gui/achievements/jomini_achievements_window.gui b/N3OW/gui/achievements/jomini_achievements_window.gui deleted file mode 100644 index 2f2451ae..00000000 --- a/N3OW/gui/achievements/jomini_achievements_window.gui +++ /dev/null @@ -1,129 +0,0 @@ -window = { - name = "achievements_window" - size = { 100% 100% } - movable = no - layer = confirmation - - using = Animation_ShowHide_Quick - using = Background_Full_Dim - - button_normal = { - size = { 100% 100% } - onclick = "[AchievementWindow.Hide]" - } - - widget = { - parentanchor = center - size = { 700 880 } - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - vbox = { - alwaystransparent = yes - using = Window_Margins - datacontext = "[GetGameRules]" - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "ACHIEVEMENTS" - } - - blockoverride "button_close" - { - onclick = "[AchievementWindow.Hide]" - shortcut = "close_window" - } - } - - hbox_achievements_info = { - name = "ironman_and_achievements_info" - visible = "[AchievementWindow.HasGameStarted]" - } - - hbox = { - block "filter_locked_hbox" {} - margin = { 0 10 } - spacing = 5 - - text_single = { - text = "ACHIEVEMENT_FILTER_SHOW" - align = nobaseline - margin_right = 5 - } - - button_standard_list = { - size = { 80 25 } - text = "ACHIEVEMENT_FILTER_BUTTON_ALL" - tooltip = "ACHIEVEMENT_FILTER_ALL_TOOLTIP" - - down = "[AchievementWindow.ShouldShowAll]" - onclick = "[AchievementWindow.ShowAll]" - alwaystransparent = "[AchievementWindow.ShouldShowAll]" - } - - button_standard_list = { - visible = "[AchievementWindow.HasGameStarted]" - size = { 80 25 } - text = "ACHIEVEMENT_FILTER_BUTTON_POSSIBLE" - tooltip = "ACHIEVEMENT_FILTER_POSSIBLE_TOOLTIP" - - down = "[AchievementWindow.ShouldShowPossible]" - onclick = "[AchievementWindow.ShowPossible]" - } - - button_standard_list = { - size = { 80 25 } - text = "ACHIEVEMENT_FILTER_BUTTON_UNLOCKED" - tooltip = "ACHIEVEMENT_FILTER_UNLOCKED_TOOLTIP" - - down = "[AchievementWindow.ShouldShowUnlocked]" - onclick = "[AchievementWindow.ShowUnlocked]" - } - - button_standard_list = { - visible = "[Not( AchievementWindow.HasGameStarted )]" - size = { 80 25 } - text = "ACHIEVEMENT_FILTER_BUTTON_LOCKED" - tooltip = "ACHIEVEMENT_FILTER_LOCKED_TOOLTIP" - - down = "[AchievementWindow.ShouldShowLocked]" - onclick = "[AchievementWindow.ShowLocked]" - } - } - - ### CONTENT ### - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[AchievementWindow.AccessGroups]" - layoutpolicy_horizontal = expanding - - item = { - vbox_achievement_group = { - } - } - } - } - } - - hbox = { - margin = { 0 10 } - margin_top = 5 - - button_primary = { - text = "CLOSE_LABEL" - onclick = "[AchievementWindow.Hide]" - shortcut = "close_window" - } - } - } - } -} diff --git a/N3OW/gui/achievements/popup.gui b/N3OW/gui/achievements/popup.gui deleted file mode 100644 index dc441d58..00000000 --- a/N3OW/gui/achievements/popup.gui +++ /dev/null @@ -1,103 +0,0 @@ -types Achievements -{ - type achievement_spacer_horizontal = widget { - size = { 5 0 } - } - type achievement_spacer_vertical = widget { - size = { 0 3 } - } -} - -window = { - name = "achievement_popup_window" - alwaystransparent = yes - scissor = no - movable = no - size = { 300 500 } - widgetanchor = top|left - focuspolicy = all - block "popup_window" - {} - - - vbox = { - restrictparent_min = yes - block "popup_window_layout" - {} - - dynamicgridbox = { - alwaystransparent = yes - datamodel = "[AchievementPopup.AccessJustUnlockedAchievements]" - layoutpolicy_vertical = expanding - block "popups_gridbox" - {} - - item = { - button = { - size = { 300 64 } - maximumsize = { 300 64 } - visible = yes - focuspolicy = click - onclick = "[GUIAchievement.OnClick]" - block "achievement_unlock_popup" - {} - hbox = { - margin = { 5 5 } - - using = Window_Background_Subwindow - - icon = { - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - } - - spacer = { - size = { 5 5 } - } - - state = { - name = on_create - duration = 0.5 - trigger_on_create = yes - alpha = 0 - delay = 5 - on_finish = "[GUIAchievement.Remove]" - block "popup_on_create_state" - {} - } - - vbox = { - margin = { 0 3 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - text = "ACHIEVEMENT_UNLOCKED" - margin_right = 3 - autoresize = no - layoutpolicy_horizontal = expanding - default_format = "#low" - minimumsize = { -1 10 } - block "achievement_unlocked_text" - {} - } - - text_single = { - text = "[GUIAchievement.GetName]" - layoutpolicy_horizontal = expanding - minimumsize = { -1 16 } - default_format = "#high" - autoresize = no - using = Font_Size_Medium - align = nobaseline - margin_right = 3 - block "achievement_name" - {} - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_armorsmith_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_armorsmith_west.gui deleted file mode 100644 index 3b863236..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_armorsmith_west.gui +++ /dev/null @@ -1,41 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_armorsmith_west" - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_armorsmith_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_armorsmith_west_1_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 80% 80% } - position = { 16.5% -35% } - entity_instance = "ui_tavern_smoke_small_entity" - } - - activity_locale_vfx = { - size = { 80% 80% } - position = { -3.5% -24% } - entity_instance = "ui_tavern_smoke_large_entity" - } - } - - widget = { - widgetid = "locale_artisan_armorsmith_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_armorsmith_west_banner" - widgetid = "locale_artisan_armorsmith_west_banner" - - attachto = { - widgetid = locale_artisan_armorsmith_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_farrier_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_farrier_west.gui deleted file mode 100644 index 267ba2ee..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_farrier_west.gui +++ /dev/null @@ -1,34 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_farrier_west" - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_farrier_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_farrier_west_1_interaction_mask.png" - } - - #blockoverride "locale_vfx" - #{ - #activity_locale_vfx = { - # size = { 30% 30% } - # position = { 1000 1000 } - # entity_instance = "ui_tavern_smoke_entity" - #} - #} - - widget = { - widgetid = "locale_artisan_farrier_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_farrier_west_banner" - - attachto = { - widgetid = locale_artisan_farrier_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_fletcher_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_fletcher_west.gui deleted file mode 100644 index 496371b5..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_fletcher_west.gui +++ /dev/null @@ -1,34 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_fletcher_west" - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_fletcher_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_fletcher_west_1_interaction_mask.png" - } - - #blockoverride "locale_vfx" - #{ - #activity_locale_vfx = { - # size = { 30% 30% } - # position = { 1000 1000 } - # entity_instance = "ui_tavern_smoke_entity" - #} - #} - - widget = { - widgetid = "locale_artisan_fletcher_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_fletcher_west_banner" - - attachto = { - widgetid = locale_artisan_fletcher_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_india.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_india.gui deleted file mode 100644 index 316c4f36..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_india.gui +++ /dev/null @@ -1,38 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_india" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_artisan_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_artisan_india_interaction_mask.png" - } - - #blockoverride "locale_vfx" - # { - # activity_locale_vfx = { - # size = { 100% 100% } - # position = { 8% -50% } - # entity_instance = "ui_tavern_smoke_large_entity" - # } - # } - - widget = { - widgetid = "locale_artisan_india" - position = { 0% 80% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - attachto = { - widgetid = locale_artisan_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_mena.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_mena.gui deleted file mode 100644 index e2b14104..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_mena.gui +++ /dev/null @@ -1,38 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_mena" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_artisan_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_artisan_mena_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - # activity_locale_vfx = { - # size = { 100% 100% } - # position = { 8% -50% } - # entity_instance = "ui_tavern_smoke_large_entity" - # } - } - - widget = { - widgetid = "locale_artisan_mena" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - attachto = { - widgetid = locale_artisan_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_tailor_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_tailor_west.gui deleted file mode 100644 index a76ea695..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_tailor_west.gui +++ /dev/null @@ -1,33 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_tailor_west" - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_tailor_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tailor_west_1_interaction_mask.png" - } - - #blockoverride "locale_vfx" - #{ - #activity_locale_vfx = { - # size = { 30% 30% } - # position = { 1000 1000 } - # entity_instance = "ui_tavern_smoke_entity" - #} - #} - widget = { - widgetid = "locale_artisan_tailor_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_tailor_west_banner" - - attachto = { - widgetid = locale_artisan_tailor_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_weaponsmith_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_weaponsmith_west.gui deleted file mode 100644 index a654a93c..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_weaponsmith_west.gui +++ /dev/null @@ -1,39 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_weaponsmith_west" - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_weaponsmith_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_weaponsmith_west_1_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 60% 60% } - position = { 31.0% -4% } - entity_instance = "ui_tavern_smoke_large_entity" - } - activity_locale_vfx = { - size = { 25% 25% } - position = { 39.4% 48.8% } - entity_instance = "ui_smithy_entity" - } - } - - widget = { - widgetid = "locale_artisan_weaponsmith_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_weaponsmith_west_banner" - - attachto = { - widgetid = locale_artisan_weaponsmith_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_artisan_west.gui b/N3OW/gui/activity_locale_widgets/locale_artisan_west.gui deleted file mode 100644 index ab5788a9..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_artisan_west.gui +++ /dev/null @@ -1,38 +0,0 @@ -activity_locale_widget = { - name = "locale_artisan_west" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - blockoverride "locale_texture" - { - size = { 27.1% 29.6% } - position = { 67% 27.6% } - texture = "gfx/interface/illustrations/activity_locales/locale_armorsmith_west_1.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_armorsmith_west_1_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 100% 100% } - position = { 8% -50% } - entity_instance = "ui_tavern_smoke_large_entity" - } - } - - widget = { - widgetid = "locale_artisan_west" - position = { -10% 25% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_artisan_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Artisan - - attachto = { - widgetid = locale_artisan_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_camp_india.gui b/N3OW/gui/activity_locale_widgets/locale_camp_india.gui deleted file mode 100644 index 76a00ca5..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_camp_india.gui +++ /dev/null @@ -1,30 +0,0 @@ -activity_locale_widget = { - name = "locale_camp_india" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - blockoverride "locale_texture" - { - parentanchor = top|right - size = { 38% 38% } - position = { 0% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_camp_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_camp_india_interaction_mask.png" - } - - widget = { - widgetid = "locale_camp_india" - position = { 10% 40% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_camp_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - attachto = { - widgetid = locale_camp_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_camp_mena.gui b/N3OW/gui/activity_locale_widgets/locale_camp_mena.gui deleted file mode 100644 index af98d50d..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_camp_mena.gui +++ /dev/null @@ -1,30 +0,0 @@ -activity_locale_widget = { - name = "locale_camp_mena" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - blockoverride "locale_texture" - { - parentanchor = top|right - size = { 38% 38% } - position = { 0% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_camp_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_camp_mena_interaction_mask.png" - } - - widget = { - widgetid = "locale_camp_mena" - position = { 10% 40% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_camp_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - attachto = { - widgetid = locale_camp_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_camp_west.gui b/N3OW/gui/activity_locale_widgets/locale_camp_west.gui deleted file mode 100644 index b917825d..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_camp_west.gui +++ /dev/null @@ -1,30 +0,0 @@ -activity_locale_widget = { - name = "locale_camp_west" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - blockoverride "locale_texture" - { - parentanchor = top|right - size = { 38% 38% } - position = { 0% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_camp_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_camp_west_interaction_mask.png" - } - - widget = { - widgetid = "locale_camp_west" - position = { 10% 40% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_camp_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Camp - - attachto = { - widgetid = locale_camp_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_entertainment_india.gui b/N3OW/gui/activity_locale_widgets/locale_entertainment_india.gui deleted file mode 100644 index e1138580..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_entertainment_india.gui +++ /dev/null @@ -1,30 +0,0 @@ -activity_locale_widget = { - name = "locale_entertainment_india" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - blockoverride "locale_texture" - { - name = "pparent" - size = { 27.6% 33.3% } - position = { 16.4% 46.2% } - texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_india_interaction_mask.png" - } - - widget = { - widgetid = "locale_entertainment_india" - position = { 20% 10% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_entertainment_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - attachto = { - widgetid = locale_entertainment_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_entertainment_mena.gui b/N3OW/gui/activity_locale_widgets/locale_entertainment_mena.gui deleted file mode 100644 index a2e9c678..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_entertainment_mena.gui +++ /dev/null @@ -1,45 +0,0 @@ -activity_locale_widget = { - name = "locale_entertainment_mena" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - blockoverride "locale_texture" - { - name = "pparent" - size = { 27.6% 33.3% } - position = { 16.4% 46.2% } - texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_mena_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - # activity_locale_vfx = { - # size = { 50% 100% } - # position = { 21% -55% } - # entity_instance = "ui_tavern_smoke_large_entity" - # } - - # activity_locale_vfx = { - # size = { 50% 100% } - # position = { 37% -61% } - # entity_instance = "ui_tavern_smoke_small_entity" - # } - } - - widget = { - widgetid = "locale_entertainment_mena" - position = { 20% 0% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_entertainment_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - attachto = { - widgetid = locale_entertainment_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_entertainment_west.gui b/N3OW/gui/activity_locale_widgets/locale_entertainment_west.gui deleted file mode 100644 index ba58e773..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_entertainment_west.gui +++ /dev/null @@ -1,45 +0,0 @@ -activity_locale_widget = { - name = "locale_entertainment_west" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - blockoverride "locale_texture" - { - name = "pparent" - size = { 27.6% 33.3% } - position = { 16.4% 46.2% } - texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_entertainment_west_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 50% 100% } - position = { 20.5% -58% } - entity_instance = "ui_tavern_smoke_large_entity" - } - - activity_locale_vfx = { - size = { 50% 100% } - position = { 37% -61% } - entity_instance = "ui_tavern_smoke_small_entity" - } - } - - widget = { - widgetid = "locale_entertainment_west" - position = { 20% 0% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_entertainment_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Tavern - - attachto = { - widgetid = locale_entertainment_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_temple_india.gui b/N3OW/gui/activity_locale_widgets/locale_temple_india.gui deleted file mode 100644 index 4cdbabc2..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_temple_india.gui +++ /dev/null @@ -1,35 +0,0 @@ -activity_locale_widget = { - name = "locale_temple_india" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - blockoverride "locale_texture" - { - size = { 21.9% 30.5% } - position = { 26.5% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_temple_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_temple_india_interaction_mask.png" - } - - # activity_locale_vfx = { - # size = { 100% 100% } - # position = { 10.5% -11.0% } - # entity_instance = "ui_bird_01_entity" - # } - - widget = { - widgetid = "locale_temple_india" - position = { 10% 80% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_temple_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - attachto = { - widgetid = locale_temple_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_temple_mena.gui b/N3OW/gui/activity_locale_widgets/locale_temple_mena.gui deleted file mode 100644 index 65830ce5..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_temple_mena.gui +++ /dev/null @@ -1,35 +0,0 @@ -activity_locale_widget = { - name = "locale_temple_mena" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - blockoverride "locale_texture" - { - size = { 21.9% 30.5% } - position = { 26.5% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_temple_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_temple_mena_interaction_mask.png" - } - - activity_locale_vfx = { - size = { 100% 100% } - position = { 10.5% -11.0% } - entity_instance = "ui_bird_01_entity" - } - - widget = { - widgetid = "locale_temple_mena" - position = { 10% 80% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_temple_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - attachto = { - widgetid = locale_temple_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_temple_west.gui b/N3OW/gui/activity_locale_widgets/locale_temple_west.gui deleted file mode 100644 index af9f1ab9..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_temple_west.gui +++ /dev/null @@ -1,35 +0,0 @@ -activity_locale_widget = { - name = "locale_temple_west" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - blockoverride "locale_texture" - { - size = { 21.9% 30.5% } - position = { 26.5% 0% } - texture = "gfx/interface/illustrations/activity_locales/locale_temple_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_temple_west_interaction_mask.png" - } - - activity_locale_vfx = { - size = { 100% 100% } - position = { 10.5% -11.0% } - entity_instance = "ui_bird_01_entity" - } - - widget = { - widgetid = "locale_temple_west" - position = { 10% 80% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_temple_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Temple - - attachto = { - widgetid = locale_temple_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament1_india.gui b/N3OW/gui/activity_locale_widgets/locale_tournament1_india.gui deleted file mode 100644 index 275cc8a6..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament1_india.gui +++ /dev/null @@ -1,66 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament1_india" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_india_interaction_mask.png" - } - - # blockoverride "locale_vfx" - # { - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 32.0% 36% } - # entity_instance = "ui_flag_red_entity" - # } - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 36.7% 26.5% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 67.8% 33.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 64.0% 43.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 4% } - # position = { 61.8% 23.5% } - - # entity_instance = "ui_flag_blue_entity" - # } - # } - - widget = { - widgetid = "locale_tournament1_india" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament1_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament1_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament1_mena.gui b/N3OW/gui/activity_locale_widgets/locale_tournament1_mena.gui deleted file mode 100644 index 5a16835c..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament1_mena.gui +++ /dev/null @@ -1,66 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament1_mena" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_mena_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 32.0% 36% } - # entity_instance = "ui_flag_red_entity" - # } - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 36.7% 26.5% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 67.8% 33.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 64.0% 43.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 4% } - # position = { 61.8% 23.5% } - - # entity_instance = "ui_flag_blue_entity" - # } - } - - widget = { - widgetid = "locale_tournament1_mena" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament1_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament1_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament1_west.gui b/N3OW/gui/activity_locale_widgets/locale_tournament1_west.gui deleted file mode 100644 index 6df26d69..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament1_west.gui +++ /dev/null @@ -1,66 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament1_west" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament1_west_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 5% 5% } - position = { 32.0% 36% } - entity_instance = "ui_flag_red_entity" - } - activity_locale_vfx = { - size = { 5% 5% } - position = { 36.7% 26.5% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 67.8% 33.9% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 64.0% 43.9% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 5% 4% } - position = { 61.8% 23.5% } - - entity_instance = "ui_flag_blue_entity" - } - } - - widget = { - widgetid = "locale_tournament1_west" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament1_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament1_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament3_india.gui b/N3OW/gui/activity_locale_widgets/locale_tournament3_india.gui deleted file mode 100644 index 10035dae..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament3_india.gui +++ /dev/null @@ -1,165 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament3_india" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_india_interaction_mask.png" - } - - # blockoverride "locale_vfx" - # { - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 21.8% 37% } - - # entity_instance = "ui_flag_blue_entity" - # } - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 23.6% 34% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 25.4% 31% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 29.4% 22.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 31.0% 19.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 6% 6% } - # position = { 27.0% 22.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 41.9% 16.0% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 46.5% 17.0% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 48.9% 17.4% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 53.9% 17.4% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 56.7% 15.4% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 61.9% 16.4% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 64.4% 19.8% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 75.6% 23.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 81.0% 30.8% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 74.4% 49.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 75.6% 46.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 76.8% 43.1% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 78.4% 37.8% } - - # entity_instance = "ui_flag_red_entity" - # } - # } - - widget = { - widgetid = "locale_tournament3_india" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament3_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament3_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament3_mena.gui b/N3OW/gui/activity_locale_widgets/locale_tournament3_mena.gui deleted file mode 100644 index 23d4db71..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament3_mena.gui +++ /dev/null @@ -1,165 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament3_mena" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_mena_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 21.8% 37% } - - # entity_instance = "ui_flag_blue_entity" - # } - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 23.6% 34% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 25.4% 31% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 29.4% 22.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 31.0% 19.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 6% 6% } - # position = { 27.0% 22.9% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 41.9% 16.0% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 46.5% 17.0% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 48.9% 17.4% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 53.9% 17.4% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 56.7% 15.4% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 61.9% 16.4% } - - # entity_instance = "ui_flag_red_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 64.4% 19.8% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 75.6% 23.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 4% 4% } - # position = { 81.0% 30.8% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 74.4% 49.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 75.6% 46.6% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 76.8% 43.1% } - - # entity_instance = "ui_flag_blue_entity" - # } - - # activity_locale_vfx = { - # size = { 5% 5% } - # position = { 78.4% 37.8% } - - # entity_instance = "ui_flag_red_entity" - # } - } - - widget = { - widgetid = "locale_tournament3_mena" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament3_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament3_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_tournament3_west.gui b/N3OW/gui/activity_locale_widgets/locale_tournament3_west.gui deleted file mode 100644 index 643dd3bc..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_tournament3_west.gui +++ /dev/null @@ -1,165 +0,0 @@ -activity_locale_widget = { - name = "locale_tournament3_west" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - blockoverride "locale_texture" - { - name = "pparent" - size = { 40.5% 44.5% } - position = { 29.8% 21.5% } - texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_tournament3_west_interaction_mask.png" - } - - blockoverride "locale_vfx" - { - activity_locale_vfx = { - size = { 5% 5% } - position = { 21.8% 37% } - - entity_instance = "ui_flag_blue_entity" - } - activity_locale_vfx = { - size = { 5% 5% } - position = { 23.6% 34% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 25.4% 31% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 29.4% 22.6% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 31.0% 19.6% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 6% 6% } - position = { 27.0% 22.9% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 41.9% 16.0% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 46.5% 17.0% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 48.9% 17.4% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 53.9% 17.4% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 56.7% 15.4% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 61.9% 16.4% } - - entity_instance = "ui_flag_red_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 64.4% 19.8% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 75.6% 23.6% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 4% 4% } - position = { 81.0% 30.8% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 74.4% 49.6% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 75.6% 46.6% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 76.8% 43.1% } - - entity_instance = "ui_flag_blue_entity" - } - - activity_locale_vfx = { - size = { 5% 5% } - position = { 78.4% 37.8% } - - entity_instance = "ui_flag_red_entity" - } - } - - widget = { - widgetid = "locale_tournament3_west" - position = { 33% 75% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_tournament3_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Grounds - - attachto = { - widgetid = locale_tournament3_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_town_india.gui b/N3OW/gui/activity_locale_widgets/locale_town_india.gui deleted file mode 100644 index 8a942693..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_town_india.gui +++ /dev/null @@ -1,28 +0,0 @@ -activity_locale_widget = { - name = "locale_town_india" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - blockoverride "locale_texture" - { - size = { 41.1% 63% } - texture = "gfx/interface/illustrations/activity_locales/locale_town_india.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_town_india_interaction_mask.png" - } - - widget = { - widgetid = "locale_town_india" - position = { 25% 58% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_town_india_banner" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - attachto = { - widgetid = locale_town_india - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_town_mena.gui b/N3OW/gui/activity_locale_widgets/locale_town_mena.gui deleted file mode 100644 index 6d4ba7c3..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_town_mena.gui +++ /dev/null @@ -1,28 +0,0 @@ -activity_locale_widget = { - name = "locale_town_mena" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - blockoverride "locale_texture" - { - size = { 41.1% 63% } - texture = "gfx/interface/illustrations/activity_locales/locale_town_mena.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_town_mena_interaction_mask.png" - } - - widget = { - widgetid = "locale_town_mena" - position = { 25% 58% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_town_mena_banner" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - attachto = { - widgetid = locale_town_mena - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_town_west.gui b/N3OW/gui/activity_locale_widgets/locale_town_west.gui deleted file mode 100644 index 1a255194..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_town_west.gui +++ /dev/null @@ -1,28 +0,0 @@ -activity_locale_widget = { - name = "locale_town_west" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - blockoverride "locale_texture" - { - size = { 41.1% 63% } - texture = "gfx/interface/illustrations/activity_locales/locale_town_west.dds" - intersectionmask_texture = "gfx/interface/illustrations/activity_locales/locale_town_west_interaction_mask.png" - } - - widget = { - widgetid = "locale_town_west" - position = { 25% 58% } - } -} - -## Locale Banner -widget_locale_banner = { - name = "locale_town_west_banner" - - using = Sound_EP2_Tournament_Locale_Button_Settlement - - attachto = { - widgetid = locale_town_west - } -} diff --git a/N3OW/gui/activity_locale_widgets/locale_widget_base.gui b/N3OW/gui/activity_locale_widgets/locale_widget_base.gui deleted file mode 100644 index a708313b..00000000 --- a/N3OW/gui/activity_locale_widgets/locale_widget_base.gui +++ /dev/null @@ -1,96 +0,0 @@ -types LocaleWidgetTypes -{ - type activity_locale_vfx = cameracontrolwidget - { - #parentanchor = center - alwaystransparent = yes - gfxtype = jomini_entitygfx - - # entity_instance = "[ActivityLocale.GetEntity( Activity.Self )]" - } - - type widget_locale_banner = button { - allow_outside = yes - - enabled = "[ActivityLocaleWindow.IsOnEnterLocaleAvailable( ActivityLocale.Self )]" - - tooltip_offset = { 20% 110% } - - tooltipwidget = { - container = { - alwaystransparent = no - name = "ActivityLocaleTooltip" - using = activity_locale_tooltip - } - } - - button = { - size = { 256 52 } - position = { 36 8 } - - onclick = "[ActivityLocaleWindow.ExecuteOnEnterLocale( ActivityLocale.Self )]" - - highlight_icon = { - size = { 220 80 } - position = { 0 -16 } - - texture = "gfx/interface/icons/activity_locales/locale_building_banner_bg.dds" - } - - text_single = { - position = { 36 -2 } - parentanchor = left|vcenter - max_width = 160 - - - text = "[ActivityLocale.GetName]" - - using = Font_Type_Flavor - using = Font_Size_Medium - } - - text_single = { - position = { 36 24 } - parentanchor = left|vcenter - visible = "[AIWatchWindowsEnabled]" - - raw_text = "AI Weight: [ActivityLocaleWindow.GetAIWillDoForLocale(ActivityLocale.Self)]" - - using = Text_Placeholder - } - } - - highlight_icon = { - size = { 72 72 } - framesize = { 180 180 } - texture = "gfx/interface/icons/activity_locales/locale_building_icon_bg.dds" - frame = 2 - } - - highlight_icon = { - texture = "[ActivityLocale.GetIcon]" - size = { 72 72 } - } - } - - type activity_locale_widget = button - { - allow_outside = yes - effectname = "NoDisabled" - - block "locale_texture" - { - } - - onclick = "[ActivityLocaleWindow.ExecuteOnEnterLocale( ActivityLocale.Self )]" - enabled = "[ActivityLocaleWindow.IsOnEnterLocaleAvailable( ActivityLocale.Self )]" - - tooltip_offset = { 60 -55 } - using = tooltip_sw - - - block "locale_vfx" - { - } - } -} diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland.gui deleted file mode 100644 index abf33136..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland.gui +++ /dev/null @@ -1,25 +0,0 @@ -widget = { - name = "tournament_terrain_europe_farmland" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_europe_farmland.dds" - } - - - - activity_locale_vfx = { - size = { 10% 20% } - position = { 92% 44% } - entity_instance = "ui_water_highlights_entity" - } - - widget = { - name = "ambience_sound_effect" - - state = { - name = _show - using = Sound_Window_Ambience_Tournament_Locale_West - } - } -} diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland_top_layer.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland_top_layer.gui deleted file mode 100644 index 76578a0f..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_europe_farmland_top_layer.gui +++ /dev/null @@ -1,34 +0,0 @@ -widget = { - name = "tournament_terrain_europe_farmland_top_layer" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_europe_farmland.dds" - } - - - # Terrian swaying - icon_sway = { - size = { 100% 100% } - texture = "gfx/interface/illustrations/activity_backgrounds/terrain_top_europe_farmland_vegetation.dds" - - modify_texture = { - texture = "gfx/interface/illustrations/activity_backgrounds/terrain_top_europe_farmland_vegetation_mask.dds" - blend_mode = normal - } - } - - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_cloud_shadows_entity" - } - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_bird_flying_01_entity" - } - -} diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle.gui deleted file mode 100644 index 11f03022..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle.gui +++ /dev/null @@ -1,34 +0,0 @@ -widget = { - name = "tournament_terrain_jungle" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_jungle.dds" - } - - # Terrian swaying - # icon_sway = { - # size = { 100% 100% } - # texture = "gfx/interface/illustrations/activity_locales/locale_terrain_lush.dds" -# - # modify_texture = { - # texture = "gfx/interface/illustrations/activity_locales/locale_terrain_lush_mask.dds" - # blend_mode = normal - # } - # } - - # activity_locale_vfx = { - # size = { 100% 100% } - # entity_instance = "ui_cloud_shadows_entity" - # } - - # activity_locale_vfx = { - # size = { 100% 100% } - # entity_instance = "ui_bird_01_entity" - # } - - # activity_locale_vfx = { - # size = { 10% 10% } - # entity_instance = "ui_bird_flying_01_entity" - # } -} diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle_top_layer.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle_top_layer.gui deleted file mode 100644 index 4d6212bb..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_jungle_top_layer.gui +++ /dev/null @@ -1,33 +0,0 @@ -widget = { - name = "tournament_terrain_jungle_top_layer" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_jungle.dds" - } - - - # Terrain swaying - icon_sway = { - size = { 100% 100% } - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_jungle_vegetation.dds" - - modify_texture = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_jungle_vegetation_mask.dds" - blend_mode = normal - } - } - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_cloud_shadows_entity" - } - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_bird_flying_01_entity" - } - -} \ No newline at end of file diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_mena.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_mena.gui deleted file mode 100644 index 7aaba10e..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_mena.gui +++ /dev/null @@ -1,43 +0,0 @@ -widget = { - name = "tournament_terrain_mena" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_mena.dds" - } - - # Terrian swaying - # icon_sway = { - # size = { 100% 100% } - # texture = "gfx/interface/illustrations/activity_locales/locale_terrain_lush.dds" -# - # modify_texture = { - # texture = "gfx/interface/illustrations/activity_locales/locale_terrain_lush_mask.dds" - # blend_mode = normal - # } - # } - - # activity_locale_vfx = { - # size = { 100% 100% } - # entity_instance = "ui_cloud_shadows_entity" - # } - - # activity_locale_vfx = { - # size = { 100% 100% } - # entity_instance = "ui_bird_01_entity" - # } - - # activity_locale_vfx = { - # size = { 10% 10% } - # entity_instance = "ui_bird_flying_01_entity" - # } - - widget = { - name = "ambience_sound_effect" - - state = { - name = _show - using = Sound_Window_Ambience_Tournament_Locale_Mena - } - } -} diff --git a/N3OW/gui/activity_locale_widgets/tournament_terrain_mena_top_layer.gui b/N3OW/gui/activity_locale_widgets/tournament_terrain_mena_top_layer.gui deleted file mode 100644 index 0da46fa8..00000000 --- a/N3OW/gui/activity_locale_widgets/tournament_terrain_mena_top_layer.gui +++ /dev/null @@ -1,33 +0,0 @@ -widget = { - name = "tournament_terrain_mena_top_layer" - size = { 100% 100% } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_mena.dds" - } - - - # Terrain swaying - icon_sway = { - size = { 100% 100% } - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_mena_vegetation.dds" - - modify_texture = { - texture = "gfx/interface/illustrations/activity_backgrounds/tournament_terrain_top_mena_vegetation_mask.dds" - blend_mode = normal - } - } - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_cloud_shadows_entity" - } - - - activity_locale_vfx = { - size = { 100% 100% } - entity_instance = "ui_bird_flying_01_entity" - } - -} \ No newline at end of file diff --git a/N3OW/gui/activity_window_widgets/activity_special_type_progression.gui b/N3OW/gui/activity_window_widgets/activity_special_type_progression.gui deleted file mode 100644 index 2ae2c736..00000000 --- a/N3OW/gui/activity_window_widgets/activity_special_type_progression.gui +++ /dev/null @@ -1,60 +0,0 @@ -hbox = { - name = "activity_special_type_progression" #Needs to match the name of the GUI file - spacing = 10 - - datacontext = "[ActivityWindow.GetActivity]" - - text_single = { - text = "activity_special_type" - align = nobaseline - max_width = 120 - - tooltip = activity_special_type_desc - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 250 20 } - allow_outside = yes - - datacontext = "[ActivityWindow.AccessSpecialTypeComplexBar( 'activity_special_type_progression' )]" - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - tooltip = "ACTIVITY_WINDOW_SPECIAL_PROGRESS_TOOLTIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" - { - widget_level_marker = { - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0')]" - - blockoverride "visible_active" - { - visible = "[ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue )]" - } - - blockoverride "visible_inactive" - { - visible = "[Not( ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue ) )]" - } - - blockoverride "marker_text" - { - text = "[PdxGuiWidget.GetIndexInDataModel]" - } - - blockoverride "marker_tooltip" - { - tooltip = "[ActivityWindow.GetSpecialTypeComplexBarSegmentDescription( Subtract_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)1' ) )]" - using = tooltip_se - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/artifact_rewards.gui b/N3OW/gui/activity_window_widgets/artifact_rewards.gui deleted file mode 100644 index 7a69dfe7..00000000 --- a/N3OW/gui/activity_window_widgets/artifact_rewards.gui +++ /dev/null @@ -1,17 +0,0 @@ -hbox = { - name = "artifact_rewards" - margin = { 16 16 } - spacing = 4 - - datacontext = "[ActivityWindow.GetActivity]" - - hbox = { - datamodel = "[Activity.MakeScope.GetList( 'artifact_rewards' )]" - - item = { - icon_artifact = { - datacontext = "[Scope.Artifact]" - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/chariot_race_pivotal_moment_widget.gui b/N3OW/gui/activity_window_widgets/chariot_race_pivotal_moment_widget.gui deleted file mode 100644 index 3b82bf8d..00000000 --- a/N3OW/gui/activity_window_widgets/chariot_race_pivotal_moment_widget.gui +++ /dev/null @@ -1,5 +0,0 @@ -widget_pivotal_moment_event_window_small = { - name = "chariot_race_pivotal_moment_widget" - size = { 100% 100% } - parentanchor = hcenter|top -} diff --git a/N3OW/gui/activity_window_widgets/chariot_race_progress_to_victory_widget.gui b/N3OW/gui/activity_window_widgets/chariot_race_progress_to_victory_widget.gui deleted file mode 100644 index 5eef46ff..00000000 --- a/N3OW/gui/activity_window_widgets/chariot_race_progress_to_victory_widget.gui +++ /dev/null @@ -1,142 +0,0 @@ -widget = { - name = "chariot_race_progress_to_victory_widget" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible = "[And( Not( VariableSystem.Exists('activity_charioteers_view') ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - visible_at_creation = no # required to make sure we trigger the '_show' state - size = { 250 630 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - - text = "CHARIOTEERS_WINDOW_LABEL" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 22 - fontsize_min = 16 - using = Font_Type_Flavor - } - - text_single = { - visible = "[And( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_gambling' ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - text = "CHARIOTEER_SORT_METHOD_APTITUDE" - default_format = "#weak" - using = Font_Size_Small - align = nobaseline - } - - text_single = { - visible = "[And( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase' ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - text = "CHARIOTEER_SORT_METHOD_PLACE" - default_format = "#weak" - using = Font_Size_Small - align = nobaseline - } - - vbox_chariot_race_contestants = { - name = "chariot_race_contestant_passive_phase" - visible = "[And( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_gambling' ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[And( Not( GetVariableSystem.Exists( 'activity_charioteers_view' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'charioteers', 'charioteer_passive_phase_gui_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)3' )]" - } - - blockoverride "contestants_attributes" - { - datamodel = "[DataModelSkipFirst( DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)12' ), '(int32)3' )]" - } - } - - vbox_chariot_race_contestants = { - name = "chariot_race_contestant_active_phase" - visible = "[And( Or( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase' ), EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase_ceremony' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) ) )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending('charioteers', 'charioteer_victory_score_value')]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)3' )]" - } - - blockoverride "contestants_attributes" - { - datamodel = "[DataModelSkipFirst( DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ), '(int32)12' ), '(int32)3' )]" - } - - blockoverride "dead_contestants" - { - datamodel = "[ActivityWindow.GetActivity.MakeScope.GetList( 'dead_charioteers' )]" - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/chariot_race_widget_types.gui b/N3OW/gui/activity_window_widgets/chariot_race_widget_types.gui deleted file mode 100644 index e0941573..00000000 --- a/N3OW/gui/activity_window_widgets/chariot_race_widget_types.gui +++ /dev/null @@ -1,728 +0,0 @@ -types ChariotRaceWidgetTypes -{ - type vbox_chariot_race_contestants = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_charioteer_item = { - datacontext_from_model = { - block "first_place_datacontext" {} - index = 0 - } - } - - widget_charioteer_item = { - datacontext_from_model = { - block "second_place_datacontext" {} - index = 1 - } - } - - widget_charioteer_item = { - datacontext_from_model = { - block "third_place_datacontext" {} - index = 2 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - block "contestants_attributes" {} - - item = { - button_tertiary = { - layoutpolicy_horizontal = expanding - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - hbox = { - alwaystransparent = yes - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 10 - - text_single = { - name = "character_place" - visible = "[And( Or( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase' ), EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase_ceremony' ) ), Not( Activity.IsComplete ) )]" - size = { 20 20 } - alwaystransparent = yes - autoresize = no - - align = nobaseline - default_format = "#high" - using = Font_Size_Small - - text = "[Character.MakeScope.Var('current_place_in_race').GetValue|0]" - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - using = Font_Size_Small - default_format = "#high" - fontsize_min = 10 - align = nobaseline - - text = "[Character.GetTitledFirstNameNoTooltip]" - - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_se - - tooltipwidget = { - cooltip_type = {} - } - } - - # Icons - hbox = { - alwaystransparent = yes - margin_right = 10 - - icon = { - visible = "[ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, Character.Self )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - tooltip = chariot_wager_tooltip - using = tooltip_se - } - - icon = { - visible = "[Character.IsEmployedInPositionBy( GetPlayer, GetCourtPositionType( 'charioteer_court_position' ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/charioteer_court_position.dds" - - tooltip = YOUR_CHARIOTEER_TOOLTIP - using = tooltip_se - } - - - # Icons only visible when the player has placed a wager on a TEAM and NOT a specific CHARACTER - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_blue') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'blues' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_green') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'greens' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_white') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'whites' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_red') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'reds' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - } - - background = { - using = Mask_Rough_Edges - alpha = 0.8 - margin = { 4 4 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - # Colored background based on charioteer's team - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_blue' ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_green' ) )]" - tintcolor = { 0.8 0.9 0.5 0.6 } - texture = "gfx/interface/colors/green.dds" - - using = Mask_Rough_Edges - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_white' ) )]" - tintcolor = { 0.6 0.6 0.6 0.7 } - texture = "gfx/interface/colors/white.dds" - - using = Mask_Rough_Edges - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_red' ) )]" - tintcolor = { 0.9 0.7 0.8 0.6 } - texture = "gfx/interface/colors/red.dds" - - using = Mask_Rough_Edges - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - expand = {} - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 1 - - block "dead_contestants" {} - - item = { - button_tertiary = { - datacontext = "[Scope.Char]" - layoutpolicy_horizontal = expanding - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - hbox = { - alwaystransparent = yes - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - text_single = { - name = "character_name" - text = "[Character.GetUINameNotMeNoTooltip]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 2 - - using = Font_Size_Small - align = nobaseline - - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_se - - tooltipwidget = { - cooltip_type = {} - } - } - - hbox = { - alwaystransparent = yes - margin_right = 10 - - icon = { - visible = "[ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, Character.Self )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - tooltip = chariot_wager_tooltip - using = tooltip_se - } - - icon = { - visible = "[Character.IsEmployedInPositionBy( GetPlayer, GetCourtPositionType( 'charioteer_court_position' ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/charioteer_court_position.dds" - - tooltip = YOUR_CHARIOTEER_TOOLTIP - using = tooltip_se - } - - icon = { - visible = "[ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, Character.Self )]" - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - # Icons only visible when the player has placed a wager on a TEAM and NOT a specific CHARACTER - # BLUES - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_blue') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'blues' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - # GREENS - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_green') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'greens' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - # WHITES - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_white') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'whites' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - # REDS - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_red') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'reds' ) ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - } - - background = { - using = Mask_Rough_Edges - alpha = 0.8 - margin = { 4 4 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_blue' ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_green' ) )]" - tintcolor = { 0.8 0.9 0.5 0.6 } - texture = "gfx/interface/colors/green.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_white' ) )]" - tintcolor = { 0.6 0.6 0.6 0.7 } - texture = "gfx/interface/colors/white.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_red' ) )]" - tintcolor = { 0.9 0.7 0.8 0.6 } - texture = "gfx/interface/colors/red.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - expand = {} - } - } - } - } - - expand = {} - } - - - type widget_charioteer_item = vbox { - layoutpolicy_horizontal = expanding - - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - # NAME AND PLACE - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - hbox = { - layoutpolicy_horizontal = expanding - - # PLACE - text_single = { - name = "place" - margin_left = 10 - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - visible = "[And( Or( EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase' ), EqualTo_string( ActivityPhase.GetKey, 'chariot_race_phase_ceremony' ) ), Not( Activity.IsComplete ) )]" - raw_text = "[Character.MakeScope.Var('current_place_in_race').GetValue|0)]" - } - - # NAME - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Character.GetTitledFirstNameNoTooltip]" - using = Font_Size_Medium - fontsize_min = 8 - default_format = "#high" - autoresize = yes - align = nobaseline - margin_left = 10 - } - - hbox = { - margin_right = 15 - - icon = { - visible = "[ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, Character.Self )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - tooltip = chariot_wager_tooltip - using = tooltip_se - } - - icon = { - visible = "[Character.IsEmployedInPositionBy( GetPlayer, GetCourtPositionType( 'charioteer_court_position' ) )]" - size = { 20 20 } - texture = "gfx/interface/icons/court_position_types/charioteer_court_position.dds" - - tooltip = YOUR_CHARIOTEER_TOOLTIP - using = tooltip_se - } - - # Icons only visible when the player has placed a wager on a TEAM and NOT a specific CHARACTER - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_blue') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'blues' ) ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_green') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'greens' ) ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_white') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'whites' ) ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - - icon = { - visible = "[And( ObjectsEqual( GetPlayer.MakeScope.Var('wager_target').Char, GetPlayer.Self ), And( Character.HasTrait( GetTrait('charioteer_red') ), ObjectsEqual( GetPlayer.MakeScope.Var('wager_team').GetFlagName, 'reds' ) ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/bookmaker_court_position.dds" - - raw_tooltip = "[GetPlayer.Custom('BuildChariotRaceWagerTooltip')]" - using = tooltip_se - } - } - - background = { - using = Mask_Rough_Edges - alpha = 0.8 - margin = { 2 5 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_blue' ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_green' ) )]" - tintcolor = { 0.8 0.9 0.5 0.6 } - texture = "gfx/interface/colors/green.dds" - - margin = { 0 2 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_white' ) )]" - tintcolor = { 0.6 0.6 0.6 0.7 } - texture = "gfx/interface/colors/white.dds" - - margin = { 0 2 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.HasTrait( GetTrait( 'charioteer_red' ) )]" - tintcolor = { 0.9 0.7 0.8 0.6 } - texture = "gfx/interface/colors/red.dds" - - margin = { 0 2 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - portrait_head_small = {} - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # APTITUDE - text_single = { - layoutpolicy_horizontal = expanding - text = "[aptitude|E]: [Character.GetCourtPositionAptitude( GetCourtPositionType( 'charioteer_court_position' ) )]" - align = nobaseline - max_width = 160 - margin_right = 5 - - tooltip = CHARIOTEER_APTITUDE_GUI_TOOLTIP - } - - expand = {} - - # CHARIOTEER TRAIT - hbox = { - layoutpolicy_horizontal = expanding - - icon_trait = { - datacontext = "[GetTrait( 'charioteer_blue' )]" - visible = "[Character.HasTrait( GetTrait( 'charioteer_blue' ) )]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - icon_trait = { - datacontext = "[GetTrait( 'charioteer_green' )]" - visible = "[Character.HasTrait( GetTrait( 'charioteer_green' ) )]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - icon_trait = { - datacontext = "[GetTrait( 'charioteer_white' )]" - visible = "[Character.HasTrait( GetTrait( 'charioteer_white' ) )]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - icon_trait = { - datacontext = "[GetTrait( 'charioteer_red' )]" - visible = "[Character.HasTrait( GetTrait( 'charioteer_red' ) )]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - expand = {} - } - - expand = {} - } - } - } - - - ### Brief: widget_pivotal_moment_event_window_small - type widget_pivotal_moment_event_window_small = activity_event_widget { - datacontext = "[ActivityWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[EventWindowViewInsert.HasOpenEvent]" - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiWidget.FindChild( 'event_video' ).GfxVideoControl.Restart]" - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - blockoverride "event_transition_picture_properties" - { - parentanchor = center - using = PivotalMomentTransitionAnimation - - state = { - name = activity_event_appear - alpha = 1 - scale = 1.25 - next = transition_still - } - } - - blockoverride "event_transition_video_properties" - { - parentanchor = center - loop = no - restart_on_show = yes - } - - video_icon = { - name = "shrouded_event_effect" - video = "gfx/interface/component_masks/animated_masks/contest_reveal_fin.bk2" - size = { 95.5% 99% } - parentanchor = top|hcenter - loop = no - restart_on_show = yes - } - } -} diff --git a/N3OW/gui/activity_window_widgets/coronation_special_type_progression.gui b/N3OW/gui/activity_window_widgets/coronation_special_type_progression.gui deleted file mode 100644 index 1543142c..00000000 --- a/N3OW/gui/activity_window_widgets/coronation_special_type_progression.gui +++ /dev/null @@ -1,59 +0,0 @@ -hbox = { - name = "coronation_special_type_progression" #Needs to match the name of the GUI file - spacing = 10 - - datacontext = "[ActivityWindow.GetActivity]" - - text_single = { - text = "activity_coronation_special_type_title" - align = nobaseline - max_width = 120 - - tooltip = activity_coronation_special_type_desc - } - - hbox = { - margin_right = 10 - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 350 20 } - allow_outside = yes - - datacontext = "[ActivityWindow.AccessSpecialTypeComplexBar( 'activity_special_type_progression' )]" - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - tooltip = "CORONATION_WINDOW_SPECIAL_PROGRESS_TOOLTIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" - { - widget_level_marker = { - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)-1')]" - - blockoverride "visible_active" - { - visible = "[ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue )]" - } - - blockoverride "visible_inactive" - { - visible = "[Not( ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue ) )]" - } - - blockoverride "marker_tooltip" - { - tooltip = "[ActivityWindow.GetSpecialTypeComplexBarSegmentDescription( Subtract_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' ) )]" - using = tooltip_se - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/coronation_supporter_detractor_widget.gui b/N3OW/gui/activity_window_widgets/coronation_supporter_detractor_widget.gui deleted file mode 100644 index 6478c5af..00000000 --- a/N3OW/gui/activity_window_widgets/coronation_supporter_detractor_widget.gui +++ /dev/null @@ -1,233 +0,0 @@ -widget = { - name = "coronation_supporter_detractor_widget" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible = "[Or( DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) ) )]" - visible_at_creation = no # required to make sure we trigger the '_show' state - size = { 275 690 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - - text = "SUPPORTER_WINDOW_LABEL" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 22 - fontsize_min = 16 - using = Font_Type_Flavor - tooltip = "SUPPORTER_WINDOW_LABEL_HOVER" - } - - # 3 Supporters or More - coronation_widget_types_3 = { - name = "coronation_supporter_view_3" - visible = "[GreaterThan_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) ), '(int32)2' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'supporter', 'coronation_supporter_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)3' )]" - } - } - - # 2 Supporters - coronation_widget_types_2 = { - name = "coronation_supporter_view_2" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) ), '(int32)2' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'supporter', 'coronation_supporter_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)2' )]" - } - } - - # 1 Supporter - coronation_widget_types_1 = { - name = "coronation_supporter_view_1" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) ), '(int32)1' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'supporter', 'coronation_supporter_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ), '(int32)1' )]" - } - } - - # 0 Supporters - coronation_widget_types_0 = { - name = "coronation_supporter_view_0" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'supporter' ) ), '(int32)0' )]" - layoutpolicy_horizontal = expanding - } - - expand = {} - - text_label_center = { - layoutpolicy_horizontal = expanding - - text = "DETRACTOR_WINDOW_LABEL" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 22 - fontsize_min = 16 - using = Font_Type_Flavor - tooltip = "DETRACTOR_WINDOW_LABEL_HOVER" - } - - # 3 Detractors or More - coronation_widget_types_3 = { - name = "coronation_detractor_view_3" - visible = "[GreaterThan_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) ), '(int32)2' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'detractor', 'coronation_detractor_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)3' )]" - } - } - - # 2 Detractors - coronation_widget_types_2 = { - name = "coronation_detractor_view_2" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) ), '(int32)2' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'detractor', 'coronation_detractor_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - ## Uses a bit of a hack to ensure the datacontext is updated - ## when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)2' )]" - } - } - - # 1 Detractor - coronation_widget_types_1 = { - name = "coronation_detractor_view_1" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) ), '(int32)1' )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'detractor', 'coronation_detractor_sort_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ), '(int32)1' )]" - } - } - - # 0 Detractors - coronation_widget_types_0 = { - name = "coronation_detractor_view_0" - visible = "[EqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'detractor' ) ), '(int32)0' )]" - layoutpolicy_horizontal = expanding - } - } -} diff --git a/N3OW/gui/activity_window_widgets/coronation_widget_types.gui b/N3OW/gui/activity_window_widgets/coronation_widget_types.gui deleted file mode 100644 index 73d17a72..00000000 --- a/N3OW/gui/activity_window_widgets/coronation_widget_types.gui +++ /dev/null @@ -1,243 +0,0 @@ -types CoronationWidgetTypes -{ - type coronation_widget_types_3 = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_coronation_character_item = { - datacontext_from_model = { - block "first_place_datacontext" {} - index = 0 - } - } - - widget_coronation_character_item = { - datacontext_from_model = { - block "second_place_datacontext" {} - index = 1 - } - } - - widget_coronation_character_item = { - datacontext_from_model = { - block "third_place_datacontext" {} - index = 2 - } - } - - expand = {} - } - - type coronation_widget_types_2 = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_coronation_character_item = { - datacontext_from_model = { - block "first_place_datacontext" {} - index = 0 - } - } - - widget_coronation_character_item = { - datacontext_from_model = { - block "second_place_datacontext" {} - index = 1 - } - } - - widget_coronation_character_item_empty = {} - - expand = {} - } - - type coronation_widget_types_1 = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_coronation_character_item = { - datacontext_from_model = { - block "first_place_datacontext" {} - index = 0 - } - } - - widget_coronation_character_item_empty = {} - - widget_coronation_character_item_empty = {} - - expand = {} - } - - type coronation_widget_types_0 = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_coronation_character_item_empty = {} - - widget_coronation_character_item_empty = {} - - widget_coronation_character_item_empty = {} - - expand = {} - } - - type widget_coronation_character_item = vbox { - layoutpolicy_horizontal = expanding - - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - portrait_head_small = {} - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # NAME AND PLACE - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - hbox = { - layoutpolicy_horizontal = expanding - - # NAME - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Character.GetTitledFirstNameNoTooltip]" - using = Font_Size_Medium - fontsize_min = 8 - default_format = "#high" - autoresize = yes - align = nobaseline - margin_left = 10 - } - - background = { - using = Mask_Rough_Edges - alpha = 0.8 - margin = { 2 5 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - background = { - visible = "[Character.GetInvolvedActivity.GetCurrentPhase.IsCharacterInGuestSubset( Character.Self, 'supporter' )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[Character.GetInvolvedActivity.GetCurrentPhase.IsCharacterInGuestSubset( Character.Self, 'detractor' )]" - tintcolor = { 0.9 0.7 0.8 0.6 } - texture = "gfx/interface/colors/red.dds" - - margin = { 0 2 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - vbox = { - name = "current_intent" - datacontext = "[Character.GetInvolvedActivityIntent]" - visible = "[Not( Activity.IsComplete )]" - margin_left = 15 - tooltip = "CORONATION_ACTIVITY_INTENT_TOOLTIP" - - icon = { - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "CORONATION_ACTIVITY_INTENT_NAME" - align = left|nobaseline - max_width = 230 - } - - expand = {} - } - } - } - } - } - - type widget_coronation_character_item_empty = vbox { - layoutpolicy_horizontal = expanding - - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - icon = { - name = "portrait_unknown_head_small_glow" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/activity_window_widgets/debate_success_chance.gui b/N3OW/gui/activity_window_widgets/debate_success_chance.gui deleted file mode 100644 index 882f2971..00000000 --- a/N3OW/gui/activity_window_widgets/debate_success_chance.gui +++ /dev/null @@ -1,258 +0,0 @@ -widget = { - name = "debate_success_chance" - - datacontext = "[ActivityWindow.GetActivity]" - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'debate_outcome_value' )]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'debate_outcome_value' )]" - } - } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - visible = "[And( Activity.IsCurrentPhaseActive, Not(Activity.IsComplete))]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 15 - - widget = { - name = "progressbar_outer" - size = { 340 45 } - widget = { - name = "progressbar_outer" - size = { 340 10 } - parentanchor = center - widgetanchor = center - - background = { - texture = "gfx/interface/component_overlay/overlay_stone.dds" - texture_density = 2 - spritetype = corneredtiled - color = { 0.2 0.2 0.2 1 } - alpha = 0.9 - } - - # PROGRESS BAR - hbox = { - layoutpolicy_horizontal = expanding - arrow_progressbar_icon = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 50 - - blockoverride "color" - { - using = Color_Green - mirror = horizontal - } - } - widget = { - layoutstretchfactor_horizontal = 50 - layoutpolicy_horizontal = expanding - } - } - - hbox = { - layoutpolicy_horizontal = expanding - widget = { - layoutstretchfactor_horizontal = 50 - layoutpolicy_horizontal = expanding - } - arrow_progressbar_icon = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - layoutstretchfactor_horizontal = 50 - - blockoverride "color" - { - using = Color_Red - } - } - } - } - - # SIDE/CENTRAL MARKERS - icon = { - name = "marker_icon_left" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - - widgetanchor = center - parentanchor = left|vcenter - - tooltip = "DEBATE_PROGRESS_YOU_TT" - using = tooltip_above - alwaystransparent = no - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/symbols/arrow_most_favored.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - - icon = { - name = "marker_icon_middle" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 30 30 } - - widgetanchor = center - parentanchor = center - - alwaystransparent = yes - } - - icon = { - name = "marker_icon_right" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - widgetanchor = center - parentanchor = right|vcenter - tooltip = "DEBATE_PROGRESS_OPPONENT_TT" - using = tooltip_above - alwaystransparent = no - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/symbols/arrow_unfavored.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - - # PROGRESS MARKERS - icon = { - name = "marker_icon_progress_1" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)3' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 10 0 } - tooltip = "DEBATE_PROGRESS_MARKER_1_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - - icon = { - name = "marker_icon_progress_2" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)2' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 50 0 } - tooltip = "DEBATE_PROGRESS_MARKER_2_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - icon = { - name = "marker_icon_progress_3" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)1' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 99 0 } - tooltip = "DEBATE_PROGRESS_MARKER_3_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - icon = { - name = "marker_icon_progress_4" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)0' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - widgetanchor = center - parentanchor = center - tooltip = "DEBATE_PROGRESS_MARKER_4_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - icon = { - name = "marker_icon_progress_5" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)-1' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 197 0 } - tooltip = "DEBATE_PROGRESS_MARKER_5_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - icon = { - name = "marker_icon_progress_6" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)-2' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 246 0 } - tooltip = "DEBATE_PROGRESS_MARKER_6_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - icon = { - name = "marker_icon_progress_7" - visible = "[EqualTo_CFixedPoint( Activity.MakeScope.ScriptValue( 'debate_outcome_value' ), '(CFixedPoint)-3' )]" - texture = "gfx/interface/window_regency/regency_level_bg.dds" - size = { 45 45 } - position = { 285 0 } - tooltip = "DEBATE_PROGRESS_MARKER_7_TT" - using = tooltip_above - - icon = { - name = "marker_icon_middle_overlay" - texture = "gfx/interface/icons/character_interactions/debug_chars.dds" - size = { 25 25 } - position = { 10 10 } - alwaystransparent = yes - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/funeral_deceased_portrait.gui b/N3OW/gui/activity_window_widgets/funeral_deceased_portrait.gui deleted file mode 100644 index 0d73c09b..00000000 --- a/N3OW/gui/activity_window_widgets/funeral_deceased_portrait.gui +++ /dev/null @@ -1,26 +0,0 @@ -widget = { - name = "funeral_deceased_portrait" - datacontext = "[Activity.MakeScope().Var( 'body_to_bury' ).Char]" - - size = { 120 170 } - parentanchor = top|right - position = { -50 60 } - - vbox = { - margin = { 5 5 } - - text_label_center = { - text = "body_to_bury_for_host" - } - - portrait_head = { } - - text_label_center = { - text = "[Character.GetShortUINameNoTooltip]" - align = center - max_width = 130 - multiline = yes - } - } -} - diff --git a/N3OW/gui/activity_window_widgets/funeral_deceased_selection_button.gui b/N3OW/gui/activity_window_widgets/funeral_deceased_selection_button.gui deleted file mode 100644 index ed0518cf..00000000 --- a/N3OW/gui/activity_window_widgets/funeral_deceased_selection_button.gui +++ /dev/null @@ -1,77 +0,0 @@ - -hbox = { - name = "funeral_deceased_selection_button" - datacontext = "[GetFuneralDeceasedToHonorPlannerContext]" - layoutpolicy_vertical = expanding - - vbox = { - margin = { 16 0 } - margin_top = 8 - margin_bottom = 16 - spacing = 7 - layoutpolicy_vertical = expanding - - hbox = { - spacing = 10 - - tooltip = "body_to_bury_desc_for_host" - using = tooltip_ne - - text_label_center = { - text = "body_to_bury_for_host" - } - - button_change ={ - button_ignore = none - - onclick = "[GetScriptedGui('funeral_fill_available_targets_gui').Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]" - onclick = "[ToggleFuneralDeceasedSelection]" - onrightclick = "[ActivityPlanner.ClearOnCreateObject( 'body_to_bury' )]" - - tooltip = "ACTIVITY_PLANNER_CHANGE_SPECIAL_GUEST_TT" - } - - warning_icon = { - visible = "[Not( Character.IsValid )]" - size = { 30 30 } - - tooltip = "body_to_bury_desc_for_host_required_tt" - } - } - - expand = {} - - selectable_target_portrait_widget = { - - block "selectable_target_portrait_properties" - { - } - - blockoverride "empty_slot" - { - onclick = "[GetScriptedGui('funeral_fill_available_targets_gui').Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]" - onclick = "[ToggleFuneralDeceasedSelection]" - } - } - - expand = {} - - button_standard = { - onclick = "[GetScriptedGui('funeral_fill_available_targets_gui').Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]" - onclick = "[ToggleFuneralDeceasedSelection]" - text = "SELECT" - size = { 210 44 } - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin_top = 8 - margin_bottom = 16 - - divider = { - layoutpolicy_vertical = expanding - } - } -} diff --git a/N3OW/gui/activity_window_widgets/funeral_deceased_selection_widget.gui b/N3OW/gui/activity_window_widgets/funeral_deceased_selection_widget.gui deleted file mode 100644 index 380df4ae..00000000 --- a/N3OW/gui/activity_window_widgets/funeral_deceased_selection_widget.gui +++ /dev/null @@ -1,98 +0,0 @@ -widget = { - name = "funeral_deceased_selection_widget" - visible = "[IsShowingFuneralDeceasedSelection]" - size = { 600 90% } - layer = middle - - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "deceased_selection_widget_header" - } - blockoverride "button_close" - { - onclick = "[ToggleFuneralDeceasedSelection]" - } - } - - vbox = { - name = "contents" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 3 - - text_label_center = { - name = "guest_list_instruction_text" - layoutpolicy_horizontal = expanding - - text = "body_to_bury_selection_info" - default_format = "#I" - align = center|nobaseline - - margin = {4 4} - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - name = "character_grid" - datamodel = "[GetPlayer.MakeScope.GetList('funeral_activity_targets')]" - - item = { - potential_selectable_target_portrait_widget = { - datacontext = "[Scope.Char]" - - size = { 475 100 } - visible = "[FuneralIsBodyAvailable]" - - blockoverride "onclick" - { - onclick = "[ActivityPlanner.AddOrSetOnCreationObject( 'body_to_bury', Character.MakeScope )]" - - onclick = "[ToggleFuneralDeceasedSelection]" - down = "[ObjectsEqual( GetFuneralDeceasedToHonorPlannerContext, Character.Self )]" - } - } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 16 16 } - - background = { - using = Background_Area - } - button_primary = { - text = "CLOSE_LABEL" - onclick = "[ToggleFuneralDeceasedSelection]" - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/hunt_success_chance.gui b/N3OW/gui/activity_window_widgets/hunt_success_chance.gui deleted file mode 100644 index 58535f1a..00000000 --- a/N3OW/gui/activity_window_widgets/hunt_success_chance.gui +++ /dev/null @@ -1,45 +0,0 @@ -hbox = { - name = "hunt_success_chance" - spacing = 5 - - datacontext = "[ActivityWindow.GetActivity]" - - visible = "[And( EqualTo_string( ActivityType.GetKey(), 'activity_hunt'), Not( GreaterThan_CFixedPoint( Activity.MakeScope.Var('nerge_activity').GetValue, '(CFixedPoint)0' ) ) )]" - - text_single = { - text = "hunt_success_bar" - align = nobaseline - max_width = 200 - } - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { 200 30 } - value = "[Activity.MakeScope.Var( 'hunt_success_chance' ).GetValue]" - max = 100 - min = 0 - - using = Progressbar_Changed_Animation - - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'hunt_success_chance_value' )]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'hunt_success_chance_value' )]" - } - } - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 25 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.80 0.90 1 0.9 } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/imperial_examination_progress_widget.gui b/N3OW/gui/activity_window_widgets/imperial_examination_progress_widget.gui deleted file mode 100644 index 2d48f588..00000000 --- a/N3OW/gui/activity_window_widgets/imperial_examination_progress_widget.gui +++ /dev/null @@ -1,57 +0,0 @@ -widget = { - name = "imperial_examination_progress_widget" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible_at_creation = no # required to make sure we trigger the '_show' state - visible = "[And(Or(NotZero_CFixedPoint( Character.MakeScope().Var('has_exam_advantage').GetValue ), NotZero_CFixedPoint( Character.MakeScope().ScriptValue( 'exam_cheats_count' ) ) ),Or(EqualTo_string( ActivityType.GetKey(), 'activity_local_examination'),EqualTo_string( ActivityType.GetKey(), 'activity_imperial_examination')))]" - - layoutpolicy_vertical = expanding - max_width = 200 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - background = { - using = Background_Area - margin = { 10 3 } - } - - expand = {} - hbox = { - expand = {} - - icon = { - texture = "[Activity.GetType.GetIcon]" - size = { 40 40 } - } - - vbox = { - margin_left = 10 - - text_single = { - text = "[exam_cheat|E]: [Character.MakeScope().ScriptValue( 'exam_cheats_count' )]" - visible = "[NotZero_CFixedPoint( Character.MakeScope().ScriptValue( 'exam_cheats_count' ) )]" - - align = nobaseline - min_width = 200 - } - - text_single = { - text = "[exam_advantage|E]: [Character.MakeScope().Var('has_exam_advantage').GetValue]" - visible = "[NotZero_CFixedPoint( Character.MakeScope().Var('has_exam_advantage').GetValue )]" - - align = nobaseline - min_width = 200 - } - } - expand = {} - } - expand = {} -} diff --git a/N3OW/gui/activity_window_widgets/imperial_examination_scoreboard_widget.gui b/N3OW/gui/activity_window_widgets/imperial_examination_scoreboard_widget.gui deleted file mode 100644 index 61027266..00000000 --- a/N3OW/gui/activity_window_widgets/imperial_examination_scoreboard_widget.gui +++ /dev/null @@ -1,171 +0,0 @@ -widget = { - name = "imperial_examination_scoreboard_widget" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible = "[And( Not( VariableSystem.Exists('activity_scoreboard_view') ), And( GreaterThanOrEqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ) ), '(int32)3' ), GreaterThanOrEqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ), '(int32)3' ) ) )]" - visible_at_creation = no # required to make sure we trigger the '_show' state - size = { 250 700 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - #Name of the window - text_label_center = { - layoutpolicy_horizontal = expanding - - text = "ENTRANTS_WINDOW_LABEL" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 22 - fontsize_min = 16 - using = Font_Type_Flavor - } - - #Sorting method: Predicted Excellence - text_single = { - visible = "[And( EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_assembly' ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ) )]" - text = "ENTRANTS_SORT_METHOD_PREDICTION" - default_format = "#weak" - using = Font_Size_Small - align = nobaseline - } - - #Sorting method: Score - text_single = { - visible = "[And( Not( EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_assembly' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ) )]" - text = "ENTRANTS_SORT_METHOD_SCORE" - default_format = "#weak" - using = Font_Size_Small - align = nobaseline - } - - #The predicted score based on the entrant's skill going into the exams - vbox_examination_scoreboard = { - name = "imperial_examination_excelling_entrants" - visible = "[And( Or( EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_assembly' ), EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_palace_examination' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ) )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[And( Not( GetVariableSystem.Exists( 'activity_scoreboard_view' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending( 'scoreboard', 'imperial_examination_score_value' )]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ), '(int32)3' )]" - } - - blockoverride "contestants_attributes" - { - datamodel = "[DataModelSubSpan( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ), '(int32)3', Min_int32( Subtract_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) ), '(int32)3' ), '(int32)7' ) )]" - } - - blockoverride "contestant_not_in_list" - { - datacontext = "[GetPlayer]" - visible = "[And( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self), Not( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'scoreboard', GetPlayer.Self) ) )]" - } - - blockoverride "contestant_button" - { - size = "[Select_CVector2f( And( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self), Not( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'scoreboard', GetPlayer.Self) ) ), '(CVector2f)200,26', '(CVector2f)200,33' )]" - } - } - - # The actual score once we've passed a round of exams - vbox_examination_scoreboard = { - name = "imperial_examination_current_score" - visible = "[And( Not( Or( EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_assembly' ), EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_palace_examination' ) ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ) ) )]" - layoutpolicy_horizontal = expanding - - state = { - name = _show - trigger_when = "[And( Not( GetVariableSystem.Exists( 'activity_scoreboard_view' ) ), DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ) ) )]" - on_start = "[ActivityWindow.SetAllPhasesGuestSubsetSortingDescending('entrants', 'imperial_examination_score_value')]" - } - - blockoverride "first_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ), '(int32)1' )]" - } - blockoverride "second_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ), '(int32)2' )]" - } - blockoverride "third_place_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ), '(int32)3' )]" - } - - blockoverride "contestants_attributes" - { - visible = "[GreaterThanOrEqualTo_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ) ), '(int32)3' )]" - datamodel = "[DataModelSubSpan( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ), '(int32)3', Min_int32( Subtract_int32( GetDataModelSize( ActivityWindow.GetCurrentPhaseGuestSubset( 'entrants' ) ), '(int32)3' ), '(int32)7' ) )]" - } - - blockoverride "dead_contestants" - { - datamodel = "[ActivityWindow.GetActivity.MakeScope.GetList( 'dead_charioteers' )]" - } - - blockoverride "contestant_not_in_list" - { - datacontext = "[GetPlayer]" - visible = "[And( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self), GreaterThan_int32( ActivityWindow.GetCharacterIndexInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self ), '(int32)9' ) )]" - } - - blockoverride "contestant_button" - { - size = "[Select_CVector2f( And( ActivityWindow.IsCharacterInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self), GreaterThan_int32( ActivityWindow.GetCharacterIndexInCurrentPhaseGuestSubset( 'entrants', GetPlayer.Self ), '(int32)9' ) ), '(CVector2f)200,26', '(CVector2f)200,33' )]" - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/imperial_examination_widget_types.gui b/N3OW/gui/activity_window_widgets/imperial_examination_widget_types.gui deleted file mode 100644 index ea31c40c..00000000 --- a/N3OW/gui/activity_window_widgets/imperial_examination_widget_types.gui +++ /dev/null @@ -1,453 +0,0 @@ -types ImperialExaminationWidgetTypes -{ - type vbox_examination_scoreboard = vbox { - layoutpolicy_vertical = expanding - alwaystransparent = no - - widget_scoreboard_item = { - datacontext_from_model = { - block "first_place_datacontext" {} - index = 0 - } - } - - widget_scoreboard_item = { - datacontext_from_model = { - block "second_place_datacontext" {} - index = 1 - } - } - - widget_scoreboard_item = { - datacontext_from_model = { - block "third_place_datacontext" {} - index = 2 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - block "contestants_attributes" {} - - item = { - button_tertiary = { - layoutpolicy_horizontal = expanding - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - block "contestant_button" {} - - hbox = { - alwaystransparent = yes - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 10 - - text_single = { - name = "character_place" - visible = "[Not( Activity.IsComplete )]" - size = { 20 20 } - alwaystransparent = yes - autoresize = yes - - align = nobaseline - default_format = "#high" - using = Font_Size_Small - - text = "[Character.MakeScope.Var('imperial_examination_score').GetValue|0]" - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 5 - margin_right = 5 - max_width = 200 - fontsize_min = 10 - - align = nobaseline - default_format = "#high" - using = Font_Size_Small - - text = "[Character.GetTitledFirstNameNoTooltip]" - - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_se - - tooltipwidget = { - cooltip_type = {} - } - } - - # Icons - #hbox = { - # alwaystransparent = yes - # margin_right = 10 - - # icon = { - # visible = "[Character.IsEmployedInPositionBy( GetPlayer, GetCourtPositionType( #'charioteer_court_position' ) )]" - # size = { 20 20 } - # texture = "gfx/interface/icons/court_position_types/charioteer_court_position.dds" - - # tooltip = YOUR_CHARIOTEER_TOOLTIP - # using = tooltip_se - # } - - #background = { - # using = Mask_Rough_Edges - # alpha = 0.8 - # margin = { 4 4 } - - # texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - # spriteType = Corneredtiled - # spriteborder = { 40 8 } - # texture_density = 2 - - # modify_texture = { - # name = "mask" - # texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - # spriteType = Corneredstretched - # spriteborder = { 0 0 } - # blend_mode = alphamultiply - # mirror = horizontal - # } - #} - } - - # Colored background - background = { - visible = "[Character.IsPlayer]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[And( Not( Character.IsPlayer ), Character.HasTrait( GetTrait( 'confucian_education' ) ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/gold_darker.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - expand = {} - } - } - } - } - - # Not in-list - vbox = { - layoutpolicy_horizontal = expanding - - block "contestant_not_in_list" { - visible = no - datamodel = "[GetPlayer]" - } - - expand = { - min_height = 5 - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - expand = { - min_height = 5 - } - - button_tertiary = { - - margin_top = 5 - - layoutpolicy_horizontal = expanding - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - - hbox = { - alwaystransparent = yes - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 10 - - text_single = { - name = "character_place" - visible = "[Not( Activity.IsComplete )]" - size = { 20 20 } - alwaystransparent = yes - autoresize = yes - - align = nobaseline - default_format = "#high" - using = Font_Size_Small - - text = "[Character.MakeScope.Var('imperial_examination_score').GetValue|0]" - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 5 - margin_right = 5 - max_width = 200 - fontsize_min = 10 - - align = nobaseline - default_format = "#high" - using = Font_Size_Small - - text = "[Character.GetTitledFirstNameNoTooltip]" - - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_se - - tooltipwidget = { - cooltip_type = {} - } - } - } - - # Colored background - background = { - visible = "[Character.IsPlayer]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[And( Not( Character.IsPlayer ), Character.HasTrait( GetTrait( 'confucian_education' ) ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/gold_darker.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - expand = {} - } - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 1 - - block "dead_contestants" {} - - item = { - button_tertiary = { - datacontext = "[Scope.Char]" - layoutpolicy_horizontal = expanding - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - hbox = { - alwaystransparent = yes - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - text_single = { - name = "character_name" - text = "[Character.GetUINameNotMeNoTooltip]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - margin_left = 2 - - using = Font_Size_Small - align = nobaseline - - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_se - - tooltipwidget = { - cooltip_type = {} - } - } - - hbox = { - alwaystransparent = yes - margin_right = 10 - } - - background = { - using = Mask_Rough_Edges - alpha = 0.8 - margin = { 4 4 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - expand = {} - } - } - } - } - - expand = {} - } - - - type widget_scoreboard_item = vbox { - layoutpolicy_horizontal = expanding - - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - # NAME AND SCORE - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - hbox = { - layoutpolicy_horizontal = expanding - - # SCORE - text_single = { - name = "score" - margin_left = 10 - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - visible = "[Or( Not( EqualTo_string( ActivityPhase.GetKey, 'imperial_examination_phase_assembly' ) ), Not( Activity.IsComplete ) )]" - raw_text = "[Character.MakeScope.Var('imperial_examination_score').GetValue|0]" - } - - # NAME - text_single = { - name = "name" - margin_left = 5 - margin_right = 10 - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 200 - fontsize_min = 8 - text = "[Character.GetTitledFirstNameNoTooltip]" - } - } - - background = { - visible = "[Character.IsPlayer]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/blue.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - - background = { - visible = "[And( Not( Character.IsPlayer ), Character.HasTrait( GetTrait( 'confucian_education' ) ) )]" - tintcolor = { 0.7 0.8 1 0.8 } - texture = "gfx/interface/colors/gold_darker.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - portrait_head_small = {} - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - # RELEVANT TRAITS - hbox = { - layoutpolicy_horizontal = expanding - - icon_trait = { - datacontext = "[GetTrait( 'confucian_education' )]" - visible = "[Character.HasTrait( GetTrait( 'confucian_education' ) )]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - expand = {} - } - - expand = {} - } - } - } - -} diff --git a/N3OW/gui/activity_window_widgets/inspection_success_chance.gui b/N3OW/gui/activity_window_widgets/inspection_success_chance.gui deleted file mode 100644 index a8b34379..00000000 --- a/N3OW/gui/activity_window_widgets/inspection_success_chance.gui +++ /dev/null @@ -1,42 +0,0 @@ -vbox = { - name = "inspection_success_chance" - margin = { 16 0 } - spacing = 4 - - datacontext = "[ActivityWindow.GetActivity]" - - text_label_center = { - text = "inspection_success_bar" - } - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { 300 30 } - value = "[Activity.MakeScope.Var( 'inspection_success_chance' ).GetValue]" - max = 100 - min = 0 - - using = Progressbar_Changed_Animation - - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'inspection_success_chance_value' )]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[GuiScope.SetRoot( Activity.MakeScope ).GetScriptValueBreakdown( 'inspection_success_chance_value' )]" - } - } - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 25 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.80 0.90 1 0.9 } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/nerge_special_type_progression.gui b/N3OW/gui/activity_window_widgets/nerge_special_type_progression.gui deleted file mode 100644 index 3542aeb3..00000000 --- a/N3OW/gui/activity_window_widgets/nerge_special_type_progression.gui +++ /dev/null @@ -1,61 +0,0 @@ -hbox = { - name = "nerge_special_type_progression" #Needs to match the name of the GUI file - spacing = 10 - - datacontext = "[ActivityWindow.GetActivity]" - - visible = "[GreaterThan_CFixedPoint( Activity.MakeScope.Var('nerge_activity').GetValue, '(CFixedPoint)0' )]" - - text_single = { - text = "activity_hunt_special_type_title" - align = nobaseline - max_width = 120 - - tooltip = activity_hunt_special_type_desc - } - - hbox = { - margin_right = 10 - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 350 20 } - allow_outside = yes - - datacontext = "[ActivityWindow.AccessSpecialTypeComplexBar( 'activity_special_type_progression' )]" - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - tooltip = "NERGE_WINDOW_SPECIAL_PROGRESS_TOOLTIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" - { - widget_level_marker = { - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)-1')]" - - blockoverride "visible_active" - { - visible = "[ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue )]" - } - - blockoverride "visible_inactive" - { - visible = "[Not( ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue ) )]" - } - - blockoverride "marker_tooltip" - { - tooltip = "[ActivityWindow.GetSpecialTypeComplexBarSegmentDescription( Subtract_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' ) )]" - using = tooltip_se - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tour_conclusion_stops.gui b/N3OW/gui/activity_window_widgets/tour_conclusion_stops.gui deleted file mode 100644 index ffbd6c20..00000000 --- a/N3OW/gui/activity_window_widgets/tour_conclusion_stops.gui +++ /dev/null @@ -1,55 +0,0 @@ -vbox = { - name = "tour_conclusion_stops" - spacing = 10 - - text_label_center = { - text = "activity_tour_conclusion_characters_header" - default_format = "#T" - } - - fixedgridbox = { - name = "tour_stops" - - # Last phase is the return home, so we skip that one - datamodel = "[DataModelSkipLast( Activity.GetPlannedPhases, '(int32)1' )]" - - addrow = 130 - addcolumn = 125 - - flipdirection = yes - datamodel_wrap = 3 - - item = { - widget = { - size = { 125 130 } - - portrait_head = { - datacontext = "[PlannedActivityPhase.GetLocation.GetTitle.GetHolder]" - parentanchor = center - } - - widget = { - parentanchor = top|left - position = { 10 6 } - size = { 40 40 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - icon_flat_standard = { - datacontext = "[PlannedActivityPhase.GetPhase]" - parentanchor = center - size = { 40 40 } - - texture = "[ActivityPhase.GetIcon]" - - tooltip = "ACTIVITY_PHASE_TOOLTIP" - - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tour_success_bar.gui b/N3OW/gui/activity_window_widgets/tour_success_bar.gui deleted file mode 100644 index 85a7f065..00000000 --- a/N3OW/gui/activity_window_widgets/tour_success_bar.gui +++ /dev/null @@ -1,60 +0,0 @@ -hbox = { - name = "tour_success_bar" #Needs to match the name of the GUI file - spacing = 10 - - datacontext = "[ActivityWindow.GetActivity]" - - text_single = { - text = "activity_tour_special_type_title" - align = nobaseline - max_width = 200 - - tooltip = "activity_tour_special_type_desc" - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 250 20 } - allow_outside = yes - - datacontext = "[ActivityWindow.AccessSpecialTypeComplexBar( 'tour_success_var' )]" - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - tooltip = "ACTIVITY_WINDOW_SPECIAL_PROGRESS_TOOLTIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" - { - widget_level_marker = { - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0')]" - - blockoverride "visible_active" - { - visible = "[ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue )]" - } - - blockoverride "visible_inactive" - { - visible = "[Not( ActivityWindow.IsActiveSpecialProgressLevel( ComplexBarItem.GetValue ) )]" - } - - blockoverride "marker_text" - { - text = "[PdxGuiWidget.GetIndexInDataModel]" - } - - blockoverride "marker_tooltip" - { - tooltip = "[ActivityWindow.GetSpecialTypeComplexBarSegmentDescription( Subtract_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)1' ) )]" - using = tooltip_se - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_active_phase_background.gui b/N3OW/gui/activity_window_widgets/tournament_active_phase_background.gui deleted file mode 100644 index e88896d4..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_active_phase_background.gui +++ /dev/null @@ -1,51 +0,0 @@ -widget = { - name = "tournament_active_phase_background" - size = { 100% 100% } - alwaystransparent = no - - visible = "[And( Activity.IsCurrentPhaseActive, Not( IsContestType( 'tournament_phase_ceremony' ) ) )]" - - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - - ## If this shows up, we're missing handling for a contest type - background = { - using = Placeholder_Pink_Checkered_Texture - } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/contest_bg_archery.dds" - - visible = "[IsBowContest]" - } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/contest_bg_boardgames.dds" - - visible = "[IsWitContest]" - } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/contest_bg_melee.dds" - - visible = "[IsFootContest]" - } - - background = { - texture = "gfx/interface/illustrations/event_scenes/genericcamp.dds" - - visible = "[IsContestType( 'tournament_phase_melee' )]" - } - - background = { - texture = "gfx/interface/illustrations/activity_backgrounds/contest_bg_horseracing.dds" - - visible = "[Or( IsContestType( 'tournament_phase_horse_race' ), IsContestType( 'tournament_phase_joust' ) )]" - } - - background = { - #texture = "gfx/interface/illustrations/activity_backgrounds/contest_bg_ceremony.dds" - - visible = "[IsContestType( 'tournament_phase_ceremony' )]" - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_active_phase_contest_info_button.gui b/N3OW/gui/activity_window_widgets/tournament_active_phase_contest_info_button.gui deleted file mode 100644 index 090ecaa5..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_active_phase_contest_info_button.gui +++ /dev/null @@ -1,49 +0,0 @@ -widget = { - name = "tournament_active_phase_contest_info_button" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible = "[And( And( Not( Activity.IsComplete ), Activity.IsCurrentPhaseActive ), Not( IsContestType( 'tournament_phase_ceremony' ) ) )]" - - size = { 138 84 } - - icon = { - parentanchor = center - size = { 134 80 } - - texture = "[PlannedActivityPhase.GetPhase.GetIllustrationSmall]" - } - - icon = { - parentanchor = center - size = { 134 80} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - button_planned_phase_button = { - size = { 138 84 } - allow_outside = yes - - onclick = "[SetContestInfoTab( 'overview' )]" - - widget = { - parentanchor = right|top - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - size = { 40 -1 } - - allow_outside = yes - - vbox_contest_type_affinities_container = { - datacontext = "[PlannedActivityPhase.GetPhase]" - parentanchor = right|top - position = { -4 4 } - - allow_outside = yes - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_bottom_middle_widget.gui b/N3OW/gui/activity_window_widgets/tournament_bottom_middle_widget.gui deleted file mode 100644 index 3b4859da..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_bottom_middle_widget.gui +++ /dev/null @@ -1,744 +0,0 @@ -widget = { - name = "tournament_bottom_middle_widget" - size = { 864 262 } - - datacontext = "[GetPlayer]" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - - parentanchor = bottom|hcenter - - widget_active_phase = { - visible = "[And( And( Not( Activity.IsComplete ), Activity.IsCurrentPhaseActive ), Not( IsContestType( 'tournament_phase_ceremony' ) ) )]" - size = { 100% 100% } - } - - widget_passive_phase = { - visible = "[Or( Or( Activity.IsComplete, Not( Activity.IsCurrentPhaseActive ) ), IsContestType( 'tournament_phase_ceremony' ) )]" - parentanchor = bottom - size = { 100% 90% } - allow_outside = yes - } -} - -types TournamentMiddleWidgetTypes -{ - type widget_active_phase = widget { - - icon = { - name = "top_shape" - texture = "gfx/interface/window_activities/tournament/tournament_window_top_shape.dds" - position = { 0 -8} - size = { 864 80 } - - allow_outside = yes - } - - widget = { - parentanchor = top|hcenter - position = { 0 -12} - size = { 864 80} - - allow_outside = yes - - background = { - using = Background_Area - - margin_top = -20 - margin_bottom = -19 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - alpha = 0.05 - - margin_top = -24 - margin_bottom = -22 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - widget = { - position = { 0 48 } - size = { 864 20 } - - hbox = { - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - } - - widget = { - parentanchor = hcenter - position = { -30 26 } - size = { 864 30 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - expand = {} - - widget = { - size = { 30 30 } - - icon_flat_standard = { - parentanchor = center - size = { 60 60 } - texture = "[PlannedActivityPhase.GetPhase.GetIcon]" - } - } - - text_single = { - name = "contest_name" - text = [Activity.GetCurrentPhase.GetPhase.GetName] - align = nobaseline - default_format = "#high;weak_glow" - - using = Font_Size_Big - using = Font_Type_Flavor - } - - expand = {} - } - } - } - - widget = { - parentanchor = hcenter - position = { 0 54 } - size = { 480 30 } - - hbox_activity_progress = { - name = "activity_progress" - layoutpolicy_vertical = expanding - maximumsize = { 480 40 } - parentanchor = bottom - spacing = 4 - } - } - - vbox = { - name = "ptv" - - parentanchor = hcenter|top - position = { 0 94 } - maximumsize = { 650 100 } - - margin_bottom = 8 - - enabled = "[And( CharacterHasPtV, IsCharacterQualified )]" - tooltip = locale_window_widget_progress_to_victory_active_tooltip - - background = { - using = Background_Area - - margin = { 0 4 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - text_single = { - maximumsize = { 332 -1 } - - text = locale_window_widget_progress_to_victory_header - default_format = "#high" - using = Font_Size_Medium - } - - widget = { - size = { 530 64 } - - widget_active_phase_progress_to_victory = { - - parentanchor = center - - blockoverride "widget_size" { - size = { 424 40 } - } - } - - widget = { - parentanchor = left|vcenter - size = { 64 64 } - - allow_outside = yes - - icon = { - texture = "gfx/interface/window_activities/tournament/icon_chance_of_victory_bg.dds" - parentanchor = center - size = { 64 64 } - - allow_outside = yes - } - - icon_flat_standard = { - parentanchor = center - size = { 35 35 } - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - } - } - - widget = { - position = { 4 2 } - size = { 50 36 } - parentanchor = right|vcenter - - text_single = { - raw_text = "[Multiply_CFixedPoint( Character.MakeScope().ScriptValue( 'character_chance_of_victory' ), '(CFixedPoint)100' )|v0] %" - align = nobaseline - - using = Font_Size_Big - } - } - } - } - - hbox = { - name = "contestants" - parentanchor = hcenter|bottom - spacing = 8 - maximumsize = { 450 50 } - minimumsize = { 450 50 } - - expand = {} - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/window_activities/tournament/mask_contestants.dds" - blend_mode = alphamultiply - } - } - - icon = { - size = { 40 40 } - texture = "gfx/interface/window_activities/tournament/icon_tournament_participants.dds" - } - - text_single = { - datacontext = "[GetPlayer]" - text = locale_window_contestants_remaining - default_format = "#weak;high" - } - - expand = {} - } - } - - type tournament_phase_timeline_icon = icon - { - size = { 50 50 } - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - - block "label" - { - raw_tooltip = "#D Fill me in#!" - } - - using = tooltip_se - - icon_flat_standard = { - parentanchor = center - size = { 40 40 } - - block "texture" - { - } - } - } - - type widget_passive_phase = widget { - size = { 864 262 } - - allow_outside = yes - - icon = { - name = "top_shape" - texture = "gfx/interface/window_activities/tournament/tournament_window_top_shape.dds" - position = { 0 -34} - size = { 864 80 } - - allow_outside = yes - } - - widget = { - parentanchor = top|hcenter - position = { 0 -40} - size = { 864 80} - - allow_outside = yes - - background = { - using = Background_Area - - margin_top = -20 - margin_bottom = -19 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - alpha = 0.05 - - margin_top = -24 - margin_bottom = -22 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - widget = { - position = { 0 48 } - size = { 864 20 } - - hbox = { - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 4 - - allow_outside = yes - - expand = {} - - hbox = { - margin_top = 2 - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_time.dds" - } - - hbox_activity_progress = { - name = "activity_progress" - spacing = 4 - - allow_outside = yes - } - } - - expand = {} - } - } - - hbox = { - spacing = 8 - visible = no - - allow_outside = yes - - icon_placeholder = { - size = { 30 30 } - } - - text_single = { - text = locale_window_widget_current_phase_header - align = nobaseline - } - } - - widget = { - name = "phase_progres_timeline" - position = { 0 84 } - size = { 864 90 } - - widget = { - position = { 0 -30 } - size = { 864 20 } - - alpha = 0.8 - - hbox = { - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - } - - widget = { - position = { 0 96 } - size = { 864 20 } - - alpha = 0.8 - - hbox = { - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 16 - - expand = {} - - background = { - - margin_top = -34 - margin_bottom = -34 - - using = Background_Area_Dark - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - background = { - - margin_top = 24 - margin_bottom = 20 - - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - hbox = { - name = "starting_phase" - - tournament_phase_timeline_icon = { - name = "starting_phase_icon" - - blockoverride "label" - { - tooltip = "ACTIVITY_TIMELINE_START" - } - blockoverride "texture" - { - texture = "gfx/interface/icons/activity_phases/phase_planning.dds" - } - } - } - - hbox = { - name = "planned_phases" - datamodel = "[Activity.GetPlannedPhases]" - spacing = 10 - - allow_outside = yes - - item = { - widget = { - name = "phase_item" - size = { 138 84 } - - allow_outside = yes - - # icon = { - # visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - # texture = "gfx/interface/illustrations/activity_phases/planned_phase_button_glow_01.dds" - # parentanchor = center - # position = { 1 -9 } - # size = { 149 112 } - # tintcolor = { 1 0.8 0.6 1 } - - # state = { - # name = max_glow - # next = min_glow - # trigger_on_create = yes - # duration = 1 - # using = Animation_Curve_Default - # alpha = 1 - # } - - # state = { - # name = min_glow - # next = max_glow - # duration = 1.6 - # using = Animation_Curve_Default - # alpha = 0.7 - # } - # } - - icon = { - size = { 134 80 } - parentanchor = center - texture = "[PlannedActivityPhase.GetPhase.GetIllustrationSmall]" - } - - icon = { - parentanchor = center - size = { 134 80} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - widget = { - visible = "[Not( EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex ) )]" - size = { 138 84 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - } - - button_planned_phase_button = { - name = "phase_non_ceremony" - datacontext = "[PlannedActivityPhase.GetPhase]" - visible = "[Not( IsContestType( 'tournament_phase_ceremony' ) )]" - size = { 138 84 } - - onclick = "[SetContestInfoTab( 'overview' )]" - - allow_outside = yes - - widget = { - name = "phase_info" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - parentanchor = right|top - position = { -4 4 } - size = { 40 -1 } - - allow_outside = yes - - vbox_contest_type_affinities_container = { - datacontext = "[PlannedActivityPhase.GetPhase]" - parentanchor = right|top - - allow_outside = yes - } - } - - widget = { - name = "contest_involvement" - visible = "[Not( EqualTo_string( PlannedActivityPhase.GetPhase.GetKey, 'tournament_phase_ceremony' ) )]" - parentanchor = top|hcenter - - allow_outside = yes - - highlight_icon = { - size = { 40 40 } - texture = "gfx/interface/window_activities/tournament/contest_selection_inactive_icon_bg.dds" - parentanchor = center - - allow_outside = yes - - modify_texture = { - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.5 - } - } - - icon_flat_standard = { - size = { 30 30 } - visible = "[IsPlayerCompetingInPhase]" - parentanchor = center - - texture = "gfx/interface/window_activities/tournament/icon_tournament_phase_participating.dds" - - allow_outside = yes - - modify_texture = { - visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.2 - } - - modify_texture = { - visible = "[Not( EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex ) )]" - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.5 - } - - blockoverride "master_color_frame" { - frame = 1 - } - } - - icon_flat_standard = { - size = { 30 30 } - visible = "[Not(IsPlayerCompetingInPhase)]" - parentanchor = center - - texture = "gfx/interface/window_activities/tournament/icon_tournament_phase_spectating.dds" - - allow_outside = yes - - modify_texture = { - visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.2 - } - - modify_texture = { - visible = "[Not( EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex ) )]" - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.5 - } - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - } - - widget = { - name = "ceremony_item" - datacontext = "[PlannedActivityPhase.GetPhase]" - visible = "[IsContestType( 'tournament_phase_ceremony' )]" - size = { 138 84 } - parentanchor = center - - background = { - texture = "gfx/interface/illustrations/activity_phases/tournament_phase_ceremony_small.dds" - using = Mask_Rough_Edges - } - - # icon = { - # visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - # texture = "gfx/interface/illustrations/activity_phases/planned_phase_button_glow_02.dds" - # size = { 146 94 } - # parentanchor = center - # tintcolor = { 1 0.8 0.6 1 } - - # state = { - # name = max_glow - # next = min_glow - # trigger_on_create = yes - # duration = 1 - # using = Animation_Curve_Default - # alpha = 1 - # } - - # state = { - # name = min_glow - # next = max_glow - # duration = 1.6 - # using = Animation_Curve_Default - # alpha = 0.7 - # } - # } - - widget = { - visible = "[Not( EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex ) )]" - size = { 138 84 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - } - - background = { - name = "ceremony_item_frame" - visible = "[IsContestType( 'tournament_phase_ceremony' )]" - - margin = { 2 2 } - - using = Background_Frame - - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -2 } - text = "[PlannedActivityPhase.GetPhase.GetName]" - } - } - } - } - } - - hbox = { - name = "conclusion_phase" - - tournament_phase_timeline_icon = { - name = "conclusion_phase_icon" - - blockoverride "label" - { - tooltip = "ACTIVITY_TIMELINE_CONCLUSION" - } - blockoverride "texture" - { - texture = "gfx/interface/icons/activity_phases/phase_conclusion.dds" - } - } - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_contest_information.gui b/N3OW/gui/activity_window_widgets/tournament_contest_information.gui deleted file mode 100644 index d08be1f9..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_contest_information.gui +++ /dev/null @@ -1,1265 +0,0 @@ -window = { - name = "tournament_contest_information" - visible = "[And(CanDisplayLocaleView('phase_information'), ActivityLocaleWindow.HasSelectedPhase)]" - - #alwaystransparent = no - - size = { 1100 636 } - parentanchor = center - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = -60 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[ClearContestInfoTab]" - on_start = "[VariableSystem.Clear( 'activity_contest_info_debugview' )]" - position_y = 40 - } - - vbox = { - using = Window_Margins - - ## Headers - header_pattern = { - layoutpolicy_horizontal = expanding - visible = "[Not( Activity.IsComplete )]" - - blockoverride "header_text" - { - text = locale_window_contest_information_header - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Clear( 'activity_locale_view' )]" - onclick = "[ActivityLocaleWindow.ClearSelectedPhase]" - } - } - - header_pattern = { - visible = "[Activity.IsComplete]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = ACTIVITY_CONCLUSION_HEADER - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Clear( 'activity_locale_view' )]" - onclick = "[ActivityLocaleWindow.ClearSelectedPhase]" - } - } - - hbox = { - datacontext = "[ActivityLocaleWindow.GetSelectedPhase]" - visible = "[And( Not( Activity.IsComplete ), ActivityLocaleWindow.HasSelectedPhase)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ## Left bar - widget_contest_info_left_bar = { - name = "contest_info_left_bar" - datacontext = "[ActivityLocaleWindow.GetSelectedPhase.GetPhase]" - #visible = "[Not( IsContestType( 'tournament_phase_ceremony' ) )]" - size = { 300 540 } - } - - ## Contents - vbox = { - name = "contest_info_contents" - datacontext = "[ActivityLocaleWindow.GetSelectedPhase.GetPhase]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "contest_info_contents_tabs" - visible = "[Not( IsContestType( 'tournament_phase_ceremony' ) )]" - layoutpolicy_horizontal = expanding - - button_tab = { - name = "contest_info_contents_tabs_overview" - layoutpolicy_horizontal = expanding - - text = locale_window_tab_button_overview - - onclick = "[SetContestInfoTab('overview')]" - down = "[IsContestInfoTabViewing('overview')]" - } - - button_tab = { - name = "contest_info_contents_tabs_participants" - layoutpolicy_horizontal = expanding - visible = "[And( Or( Activity.IsPhaseInTheFuture(PlannedActivityPhase.Self), Activity.IsPhaseOngoing(PlannedActivityPhase.Self) ), Not( Activity.IsComplete ) )]" - - raw_text = "[SelectLocalization( Activity.IsCurrentPhaseActive, 'locale_window_tab_button_qualified', 'locale_window_tab_button_participants' )]" - - onclick = "[SetContestInfoTab('participants')]" - down = "[IsContestInfoTabViewing('participants')]" - } - - button_tab = { - name = "contest_info_contents_tabs_log" - layoutpolicy_horizontal = expanding - visible = "[Or( Activity.IsPhaseInThePast(PlannedActivityPhase.Self), Activity.IsComplete )]" - - - text = locale_window_tab_button_log - - onclick = "[SetContestInfoTab('log')]" - down = "[IsContestInfoTabViewing('log')]" - } - - button_tab = { - name = "contest_info_contents_tabs_debugging" - layoutpolicy_horizontal = expanding - visible = "[AIWatchWindowsEnabled]" - - raw_text = "DEBUGGING" - - onclick = "[SetContestInfoTab('debug')]" - down = "[IsContestInfoTabViewing('debug')]" - - using = Text_Placeholder - } - } - - vbox_contest_info_overview_before = { - name = "contest_info_overview_before" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[And( IsContestInfoTabViewing('overview'), And( Or( Activity.IsPhaseInTheFuture(PlannedActivityPhase.Self), Activity.IsPhaseOngoing(PlannedActivityPhase.Self) ), Not( Activity.IsComplete ) ) )]" - } - - vbox_contest_info_overview_after = { - name = "contest_info_overview_after" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[And( IsContestInfoTabViewing( 'overview' ), Or( Activity.IsPhaseInThePast(PlannedActivityPhase.Self), Activity.IsComplete ) )]" - } - - widget_contest_info_participants = { - name = "contest_info_participants" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[IsContestInfoTabViewing('participants')]" - } - - widget_contest_info_log = { - name = "contest_info_log" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[IsContestInfoTabViewing('log')]" - } - - vbox_contest_info_debug = { - name = "contest_info_debug" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[IsContestInfoTabViewing('debug')]" - - state = { - name = _show - on_start = "[ActivityLocaleWindow.UpdateGuestSubsetFor(PlannedActivityPhase.Self)]" - } - } - } - } - } -} - -types TournamentContestInformationTypes -{ - type widget_contest_info_left_bar = widget { - - background = { - texture = "[PlannedActivityPhase.GetPhase.GetIllustration]" - fittype = centercrop - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "tournament_contest_information_name" - layoutpolicy_horizontal = expanding - - text = "[ActivityPhase.GetName]" - align = center|nobaseline - max_width = 300 - - using = Font_Type_Flavor - using = Font_Size_Big - - margin = { 0 4 } - - background = { - using = Background_Area_Dark - } - } - - text_multi = { - name = "contest_desc" - text = "[ActivityPhase.GetDescription]" - align = left|nobaseline - autoresize = yes - max_width = 280 - - margin = { 0 4 } - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 0 8 } - spacing = 8 - - text_single = { - text = locale_window_your_participation - default_format = "#high" - } - - background = { - using = Background_Area_Dark - } - - widget = { - name = "tournament_contest_information_participation_buttons" - size = { 220 30 } - - hbox = { - parentanchor = bottom|hcenter - visible = "[And( And( Or( Activity.IsPhaseInTheFuture(PlannedActivityPhase.Self), Activity.IsPhaseOngoing(PlannedActivityPhase.Self) ), Not( Activity.IsCurrentPhaseActive) ), Not( Activity.IsComplete ) )]" - - enabled = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( Activity.GetHost ), IsPlayerAvailableToCompeteMartial ) ) )]" - - tooltip = tournament_participation_cannot_participate_tt - - expand = { } - - button_contest_spectate = { - size = { 100 30 } - - alwaystransparent = "[PlannedActivityPhase.IsCharacterInGuestSubset(GetPlayer, 'spectator')]" - down = "[PlannedActivityPhase.IsCharacterInGuestSubset(GetPlayer, 'spectator')]" - onclick = "[Activity.AddCharacterToPhaseSubset(PlannedActivityPhase.Self, GetPlayer, 'spectator')]" - onclick = "[Activity.RemoveCharacterFromPhaseSubset(PlannedActivityPhase.Self, GetPlayer, 'contestant')]" - - tooltip_visible = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( Activity.GetHost ), IsPlayerAvailableToCompeteMartial ) ) )]" - } - - button_contest_participate = { - size = { 100 30 } - - alwaystransparent = "[Not(PlannedActivityPhase.IsCharacterInGuestSubset(GetPlayer, 'spectator'))]" - down = "[Not(PlannedActivityPhase.IsCharacterInGuestSubset(GetPlayer, 'spectator'))]" - onclick = "[Activity.RemoveCharacterFromPhaseSubset(PlannedActivityPhase.Self, GetPlayer, 'spectator')]" - onclick = "[Activity.AddCharacterToPhaseSubset(PlannedActivityPhase.Self, GetPlayer, 'contestant')]" - - tooltip_visible = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( Activity.GetHost ), IsPlayerAvailableToCompeteMartial ) ) )]" - } - - expand = { } - } - } - - text_single = { - visible = "[And( Or( Activity.IsPhaseInTheFuture(PlannedActivityPhase.Self), Activity.IsPhaseOngoing(PlannedActivityPhase.Self) ), Not( Activity.IsComplete ) )]" - - text = locale_window_your_participation_status_selection - default_format = "#weak" - } - - text_single = { - visible = "[Or( Activity.IsPhaseInThePast(PlannedActivityPhase.Self), Activity.IsComplete )]" - - text = locale_window_your_participation_status_selection_past - default_format = "#weak" - } - - expand = { } - } - } - } - } - - type vbox_contest_info_overview_before = vbox { - - vbox = { - name = "contest_info_overview_before_rewards" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 16 - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - icon_progess_to_victory = { - size = { 36 36 } - } - - text_label_center = { - text = locale_window_before_rewards_header - using = Font_Type_Flavor - using = Font_Size_Big - } - - text_single = { - text = locale_window_before_rewards_desc - default_format = "#P" - } - - expand = {} - - hbox_contest_reward_preview = { - name = "reward_preview_container" - layoutpolicy_horizontal = expanding - - # background = { - # using = Background_Area_Dark - - # margin = { -120 -72 } - - # modify_texture = { - # texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - # blend_mode = alphamultiply - # } - # } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - background = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin_top = -10 - texture_density = 0.8 - spriteborder_top = 60 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - #expand = {} - } - - vbox = { - name = "contest_info_overview_before_structure" - layoutpolicy_horizontal = expanding - - margin_bottom = 16 - spacing = 16 - - background = { - using = Background_Area - } - - text_label_center = { - name = "contest_info_overview_before_structure_header" - layoutpolicy_horizontal = expanding - - text = locale_window_contest_structure_header - using = Font_Type_Flavor - using = Font_Size_Medium - } - - hbox = { - name = "contest_info_overview_before_structure_versus" - visible = "[IsContestFormatVersus]" - - spacing = 16 - - expand = {} - - widget_contest_structure = { - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_qualifier - max_width = 150 - } - } - } - - widget_contest_structure = { - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_round_1 - max_width = 150 - } - } - } - - widget_contest_structure = { - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_round_2 - max_width = 150 - } - } - } - - widget_contest_structure = { - - blockoverride "arrow" {} - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_last_round - max_width = 150 - } - } - } - - expand = {} - } - - hbox = { - name = "contest_info_overview_before_structure_ffa" - visible = "[IsContestFormatFFA]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 16 - - expand = {} - - widget_contest_structure = { - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_qualifier - max_width = 150 - } - } - } - - widget_contest_structure = { - - blockoverride "arrow" {} - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_ffa - max_width = 150 - } - } - } - - expand = { } - } - - hbox = { - name = "contest_info_overview_before_structure_team" - visible = "[IsContestFormatTeam]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 16 - - expand = { } - - widget_contest_structure = { - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_qualifier - max_width = 150 - } - } - } - - widget_contest_structure = { - - blockoverride "arrow" {} - - blockoverride "contest_stucture_text" { - text_single = { - parentanchor = center - text = locale_window_contest_structure_team_battle - max_width = 150 - } - } - } - - expand = { } - } - } - } - - type widget_contest_structure = widget { - size = { 160 70 } - - background = { - using = Background_Area_Dark - } - - block "arrow" { - icon = { - parentanchor = right|vcenter - position = { 14 0 } - size = { 30 35 } - - texture = "gfx/interface/icons/flat_icons/window_back.dds" - alpha = 0.6 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - block "contest_stucture_text" {} - } - - type vbox_contest_info_overview_after = vbox { - name = "overview_summary_after" - visible = "[Not(IsDataModelEmpty(ActivityLocaleWindow.GetGuestSublist(PlannedActivityPhase.Self, 'winner')))]" - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - background = { - using = Background_Area_Dark - margin_bottom = -188 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - datacontext_from_model = { - datamodel = "[ActivityLocaleWindow.GetGuestSublist(PlannedActivityPhase.Self, 'winner')]" - index = 0 - } - - portrait_body = { - size = { 240 240 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 8 } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 8 - - text_single = { - layoutpolicy_horizontal = expanding - - text = locale_window_contest_results - align = nobaseline - fontsize = 28 - fontsize_min = 16 - - using = Font_Type_Flavor - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 8 - spacing = 8 - - icon_flat_standard = { - size = { 70 70 } - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = locale_window_contest_results_winner - } - - text_single = { - layoutpolicy_horizontal = expanding - text = locale_window_contest_results_winner_name - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - } - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - text_multi = { - minimumsize = { 480 -1 } - maximumsize = { 480 48 } - autoresize = yes - fontsize = 16 - fontsize_min = 12 - - text = locale_window_contest_results_winner_desc - } - - expand = { } - - text_single = { - name = "your_contest_result_summary" - minimumsize = { 480 -1 } - maximumsize = { 480 48 } - fontsize = 16 - fontsize_min = 12 - visible = "[PlannedActivityPhase.IsCharacterInGuestSubset(GetPlayer, 'contestant')]" - - text = locale_window_contest_your_result - } - - expand = { } - } - } - } - } - - type widget_contest_info_participants = widget { - - vbox = { - maximumsize = { 790 502 } - parentanchor = bottom|hcenter - - text_single = { - visible = "[Not( Activity.IsCurrentPhaseActive )]" - } - - text_single = { - visible = "[Activity.IsCurrentPhaseActive]" - } - - scrollbox = { - name = "contestant_list" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - addcolumn = 700 - addrow = 96 - visible = "[Not( Activity.IsCurrentPhaseActive )]" - - datamodel = "[ActivityLocaleWindow.GetGuestSublist(PlannedActivityPhase.Self, 'contestant')]" - datamodel_reuse_widgets = yes - - item = { - widget_contestant_item = { - size = { 690 94 } - } - } - } - - fixedgridbox = { - addcolumn = 700 - addrow = 96 - visible = "[Activity.IsCurrentPhaseActive]" - - datamodel = "[ActivityLocaleWindow.GetGuestSublist(PlannedActivityPhase.Self, 'qualified')]" - datamodel_reuse_widgets = yes - - item = { - widget_contestant_item = { - size = { 690 94 } - } - } - } - } - } - } - } - - type widget_contestant_item = widget { - hbox = { - margin_right = 8 - - background = { - using = Background_Area_With_Header - } - - portrait_head_small = {} - - hbox = { - name = "contestant_information_button" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ## Top row - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 4 - margin_left = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip]" - align = nobaseline - max_width = 440 - } - - hbox_skills_grid_character_model = {} - } - - hbox = { - visible = "[And(Character.HasRelationTo( GetPlayer ), Not(Character.IsPlayer))]" - layoutpolicy_horizontal = expanding - - margin_top = 4 - - using = character_age_or_death_text - - blockoverride "list_layout" {} - - divider_light = { - size = { 3 18 } - block "filters_visible" {} - } - - text_single = { - name = "character_relation" - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - align = nobaseline - fontsize_min = 14 - max_width = 440 - margin_left = 4 - } - - expand = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - } - } - } - - ## Bottom row - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - blockoverride "contest_aptitude_level_size" - { - size = { 12 12 } - } - - hbox_character_archery_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_foot_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_horse_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_wit_contest_aptitude = { - margin = { 2 2 } - } - - expand = {} - } - } - } - } - } - - type widget_contest_info_log = widget { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - scrollbox = { - name = "locale_log_entries" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( Activity.GetLogEntries )]" - text = locale_window_activity_log_no_entries - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "contest_log_entries_list" - datamodel = "[Activity.GetLogEntries]" - layoutpolicy_horizontal = expanding - spacing = 8 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - name = "log_entry" - visible = "[And( EqualTo_int32( ActivityLogEntry.GetPhaseIndex, Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ) ), CanPlayerSeeActivityLogEntry)]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 4 } - - # An ActivityLogEntry can have multiple tags, - # be aware of this when implementing tag - # related art. Speak with design and code if - # you need more tags. - # - # At time of writing this, the current tags - # are provided by design: - # good, bad, contest_info, highlight, - # intent, secret, death - - #################### - ### NO TAG EVENT ### - #################### - background = { - visible = "[ActivityLogEntry.HasNoTags]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - margin = { -2 -2 } - - using = Color_Black - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasNoTags]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ################# - ### BAD EVENT ### - ################# - background = { - visible = "[ActivityLogEntry.HasTag( 'bad' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Red - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'bad' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ################## - ### GOOD EVENT ### - ################## - background = { - visible = "[ActivityLogEntry.HasTag( 'good' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Green - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'good' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - #################### - ### GENERAL INFO ### - #################### - background = { - visible = "[ActivityLogEntry.HasTag( 'contest_info' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - margin = { -2 -2 } - - using = Color_Black - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'contest_info' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ####################### - ### IMPORTANT EVENT ### - ####################### - background = { - visible = "[ActivityLogEntry.HasTag( 'highlight' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'highlight' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - #################### - ### INTENT EVENT ### - #################### - background = { - visible = "[ActivityLogEntry.HasTag( 'intent' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Purple - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'intent' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - #################### - ### SECRET EVENT ### - #################### - # Secret, will only be shown if local player is the Character - background = { - visible = "[ActivityLogEntry.HasTag( 'secret' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.1 - - using = Color_Grey - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'secret' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ################### - ### DEATH EVENT ### - ################### - # A character has died during the contest - background = { - visible = "[ActivityLogEntry.HasTag( 'death' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Red - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'death' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - name = "log_title" - text = "[ActivityLogEntry.GetTitle]" - align = nobaseline - max_width = 270 - } - - expand = { } - - text_single = { - name = "log_time" - text = "[ActivityLogEntry.GetDate.GetStringShort]" - align = nobaseline - max_width = 270 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - text_multi = { - name = "log_desc" - text = "[ActivityLogEntry.GetDescription]" - - maximumsize = { 480 -1 } - - autoresize = yes - multiline = yes - } - - expand = { } - - portrait_head_small = { - datacontext = "[ActivityLogEntry.GetCharacter]" - visible = "[ActivityLogEntry.GetCharacter.IsValid]" - } - - portrait_head_small = { - datacontext = "[ActivityLogEntry.GetTarget]" - visible = "[ActivityLogEntry.GetTarget.IsValid]" - } - } - } - } - } - } - } - } - } - - type vbox_contest_info_debug = vbox { - state = { - name = _show - on_start = "[ActivityLocaleWindow.UpdateGuestSubsetFor(PlannedActivityPhase.Self)]" - } - - fixedgridbox = { - name = "contest_info_debug_tabs" - addcolumn = 100 - addrow = 30 - datamodel_wrap = 8 - flipdirection = yes - - datamodel = "[ActivityLocaleWindow.GetGuestSubsetKeys]" - - item = { - button_tab = { - raw_text = "[CString.GetString]" - - onclick = "[ActivityLocaleWindow.UpdateGuestSubsetFor(PlannedActivityPhase.Self)]" - onclick = "[VariableSystem.Set( 'activity_contest_info_debugview', CString.GetString )]" - down = "[VariableSystem.HasValue( 'activity_contest_info_debugview', CString.GetString )]" - } - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - visible = "[VariableSystem.Exists( 'activity_contest_info_debugview' )]" - - blockoverride "scrollbox_content" { - fixedgridbox = { - addcolumn = 100 - addrow = 120 - datamodel_wrap = 8 - flipdirection = yes - - datamodel = "[ActivityLocaleWindow.GetGuestSublist(PlannedActivityPhase.Self, VariableSystem.Get( 'activity_contest_info_debugview') )]" - - item = { - portrait_head = { - text_single = { - parentanchor = hcenter - raw_text = "[Character.GetShortUINameNoTooltip]" - } - } - } - } - } - } - expand = {} - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_contest_selection.gui b/N3OW/gui/activity_window_widgets/tournament_contest_selection.gui deleted file mode 100644 index b5c40fdf..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_contest_selection.gui +++ /dev/null @@ -1,1107 +0,0 @@ -widget = { - name = "tournament_contest_selection" - visible = "[ActivityPlanner.IsPlanningStage( 'phases' )]" - size = { 100% 100% } - - using = Activity_Planner_Widget - - background = { - using = Background_Area_Dark - margin = { 10 10 } - alpha = 0.5 - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - on_start = "[ActivityPlanner.AccessPhasePageData.SetShownItems( '(int32)4')]" - on_start = "[ActivityPlanner.AccessPhasePageData.ResetShown( GetDataModelSize( ActivityType.GetPickablePhases ) )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - widget = { - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = { - minimumsize = { 0 130 } - } - - hbox = { - name = "contest_selection_middle" - allow_outside = yes - layoutpolicy_horizontal = expanding - - margin = { 16 0 } - margin_left = -316 - spacing = 16 - - background = { - using = Background_Area_ExtraDark - - margin = { 16 0 } - margin_top = 180 - margin_bottom = 220 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - blend_mode = alphamultiply - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - margin = { 16 0 } - spacing = 8 - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - - text = contest_planner_selection_header - align = left - default_format = "#T" - max_width = 280 - using = Font_Size_Medium - } - - text_multi = { - layoutpolicy_horizontal = expanding - - text = contest_planner_selection_description - autoresize = yes - max_width = 280 - } - - expand = {} - } - - vbox = { - allow_outside = yes - - hbox = { - allow_outside = yes - spacing = 8 - - hbox = { - name = "contest_active_slots" - datamodel = "[ActivityPlanner.AccessPlayerPickedPhases]" - spacing = 8 - - allow_outside = yes - - item = { - tournament_contest_slot_widget = { } - } - } - - hbox = { - name = "contest_empty_slots" - spacing = 8 - - tournament_empty_contest_slot_widget = { - visible = "[And( LessThan_int32( GetDataModelSize( ActivityPlanner.AccessPlayerPickedPhases ), '(int32)1' ), GreaterThanOrEqualTo_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)1' ) )]" - } - - tournament_empty_contest_slot_widget = { - visible = "[And( LessThan_int32( GetDataModelSize( ActivityPlanner.AccessPlayerPickedPhases ), '(int32)2' ), GreaterThanOrEqualTo_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)2' ) )]" - } - - tournament_empty_contest_slot_widget = { - visible = "[And( LessThan_int32( GetDataModelSize( ActivityPlanner.AccessPlayerPickedPhases ), '(int32)3' ), GreaterThanOrEqualTo_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)3' ) )]" - } - - tournament_empty_contest_slot_widget = { - visible = "[And( LessThan_int32( GetDataModelSize( ActivityPlanner.AccessPlayerPickedPhases ), '(int32)4' ), GreaterThanOrEqualTo_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)4' ) )]" - } - - tournament_empty_contest_slot_widget = { - visible = "[And( LessThan_int32( GetDataModelSize( ActivityPlanner.AccessPlayerPickedPhases ), '(int32)5' ), GreaterThanOrEqualTo_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)5' ) )]" - } - } - - hbox = { - name = "contest_unavailable_slots" - spacing = 8 - - tournament_unavailable_contest_slot = { - visible = "[LessThan_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)2' )]" - } - - tournament_unavailable_contest_slot = { - visible = "[LessThan_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)3' )]" - } - - tournament_unavailable_contest_slot = { - visible = "[LessThan_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)4' )]" - } - - tournament_unavailable_contest_slot = { - visible = "[LessThan_int32( ActivityPlanner.GetActivityType.CalcNumPickablePhasesAllowed( GetPlayer ), '(int32)5' )]" - } - } - } - - vbox_available_contests = { - visible = "[ActivityPlanner.IsEditingAnyPhase]" - } - } - - expand = {} - } - - expand = { - visible = "[Not( ActivityPlanner.IsEditingAnyPhase )]" - maximumsize = { 0 80 } - } - - expand = { - visible = "[ActivityPlanner.IsEditingAnyPhase]" - maximumsize = { 0 32 } - } - - vbox = { - name = "contest_selection_bottom" - spacing = 4 - #margin = { 0 26 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 64 0 } - margin_top = 22 - margin_bottom = 28 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - cost_breakdown_vbox = { - datacontext = "[ActivityPlanner.AccessTotalPhaseCostBreakdown]" - name = "activity_cost" - - blockoverride "heading_text" - { - text = "contest_planner_contest_costs" - } - } - - button_standard_back = { - name = "contest_selection_bottom_cancel_planning" - text = CANCEL_BUTTON - - visible = "[Or( Not( ActivityPlanner.HasPickedPhase ), ActivityPlanner.IsFirstPickedPhase( ActivityPlanner.GetEditingPhase ) )]" - - onclick = "[ActivityPlanner.Close]" - shortcut = "close_window" - } - - button_standard = { - name = "contest_selection_bottom_cancel_selection" - text = CANCEL_BUTTON - visible = "[And( ActivityPlanner.IsEditingAnyPhase, Not( ActivityPlanner.IsFirstPickedPhase( ActivityPlanner.GetEditingPhase ) ) )]" - onclick = "[ActivityPlanner.RemovePhase( ActivityPlanner.AccessEditingPhase )]" - onclick = "[ActivityPlanner.CancelEditingPhase]" - } - - button_primary_big = { - visible = "[And( ActivityPlanner.HasPickedPhase, Not(ActivityPlanner.IsEditingAnyPhase))]" - text = "[SelectLocalization( ActivityPlanner.IsPlanningStage( 'options' ), 'START', 'CONTINUE' )]" - onclick = "[ActivityPlanner.ProgressPlanningStage]" - enabled = "[ActivityPlanner.CanProgressPlanningStage]" - tooltip = "[ActivityPlanner.GetCanProgressPlanningStageTooltip]" - } - } - - expand = {} - } - } - } - - widget = { - name = "contest_selection_top" - datacontext = "[ActivityPlanner.AccessSingleLocationPhase]" - - size = { 600 140 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 16 16 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 8 } - - ignoreinvisible = yes - - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - - margin = { 20 16 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[ActivityType.GetName]" - align = left - } - } - - expand = {} - - vbox = { - name = "contest_selection_header_change_destination" - datacontext = "[ActivityPlanner.AccessSingleLocationPhase]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 4 } - - # Background if you have no Type, just using regular Activity image - background = { - visible = "[Or( ActivityPlanner.IsPlanningStage( 'special_option_category' ), Not(ActivityPlanner.HasSelectedSpecialOption))]" - - texture = "[ActivityType.GetHeaderBackground]" - alpha = 0.3 - fittype = centercrop - - margin = { 16 0 } - margin_top = 4 - margin_bottom = 8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 8 - - text_single = { - text = "TRAVEL_PLAN_DESTINATION" - using = Font_Size_Big - align = left|nobaseline - default_format = "#high" - } - - button_round = { - onclick = "[ActivityPlanner.StartEditingPhase( PlannedActivityPhase.AccessSelf, 'destination' )]" - tooltip = ACTIVITY_PLANNER_CHANGE_LOCATION_TT - - button_replace = { - alwaystransparent = yes - parentanchor = center - - } - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - name = "contest_selection_header_cancel" - text = CANCEL_BUTTON - min_width = 300 - - onclick = "[ActivityPlanner.Close]" - shortcut = "close_window" - - } - - expand = {} - } - } - } - } -} - -types ActivityPlannerTypes -{ - type tournamnet_contest_slot = widget { - size = { 230 550 } - } - - type tournament_contest_slot_widget = tournamnet_contest_slot - { - allow_outside = yes - - icon = { - parentanchor = center - size = { 226 546 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_active_bg.dds" - } - - widget = { - visible = "[PlannedActivityPhase.HasPhase]" - parentanchor = hcenter - size = { 226 350 } - scissor = yes - - icon = { - size = { 226 546 } - texture = "[PlannedActivityPhase.GetPhase.GetIllustration]" - parentanchor = top|hcenter - position = { 0 2 } - } - } - - icon = { - visible = "[PlannedActivityPhase.HasPhase]" - parentanchor = center - size = { 226 178 } - texture = "gfx/interface/window_activities/tournament/contest_selection_active_blue_bg.dds" - position = { 0 136} - } - - icon = { - parentanchor = center - size = { 226 546} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - button_standard_clean = { - size = { 100% 100% } - - allow_outside = yes - - alwaystransparent = "[PlannedActivityPhase.HasPhase]" - - # Contest Icon - widget = { - parentanchor = top|hcenter - position = { 0 -28} - size = { 60 60 } - - # Background - highlight_icon = { - parentanchor = top|hcenter - size = { 60 60 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_inactive_icon_bg.dds" - - modify_texture = { - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.5 - } - } - - icon_flat_standard = { - visible = "[PlannedActivityPhase.HasPhase]" - parentanchor = center - size = { 60 60 } - - texture = "[PlannedActivityPhase.GetPhase.GetIcon]" - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - widget = { - visible = "[Not( PlannedActivityPhase.HasPhase )]" - parentanchor = center - position = { 0 30 } - size = { 230 250 } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 4 - - button_round = { - size = { 50 50 } - - button_plus = { - name = "select_contest" - parentanchor = center - onclick = "[ActivityPlanner.StartEditingPhase( PlannedActivityPhase.AccessSelf, 'phase' )]" - size = { 40 40 } - - tooltip = contest_planner_add_contest_tooltip - } - } - - text_single = { - text = contest_planner_empty_slot - using = Font_Size_Big - max_width = 190 - } - - text_multi = { - text = contest_planner_empty_slot_picking_desc - autoresize = yes - max_width = 190 - align = center - } - - expand = {} - } - } - - widget = { - name = "active_contest" - visible = "[PlannedActivityPhase.HasPhase]" - datacontext = "[PlannedActivityPhase.GetPhase]" - size = { 100% 100% } - allow_outside = yes - - tooltip = contest_planner_contest_selected_tooltip - - widget = { - name = "contest_info" - layoutpolicy_horizontal = expanding - parentanchor = bottom|hcenter - size = { 230 260 } - - text_single = { - name = "contest_type" - text = "[PlannedActivityPhase.GetPhase.GetName]" - parentanchor = top|hcenter - position = { 0 48 } - using = Font_Size_Big - default_format = "#high" - } - - text_single = { - visible = "[IsContestFormatRace]" - parentanchor = hcenter - position = { 0 92 } - text = tournament_contest_format_race - max_width = 220 - } - - text_single = { - visible = "[IsContestFormatVersus]" - parentanchor = hcenter - position = { 0 92 } - text = tournament_contest_format_versus - max_width = 220 - } - - text_single = { - visible = "[IsContestFormatTurn]" - parentanchor = hcenter - position = { 0 92 } - text = tournament_contest_formaty_turn - max_width = 220 - } - - text_single = { - visible = "[IsContestFormatTeam]" - parentanchor = hcenter - position = { 0 92 } - text = tournament_contest_format_team - max_width = 220 - } - - widget = { - position = { 0 122 } - size = { 230 90 } - allow_outside = yes - - alpha = "[Select_float( Not(ActivityPlanner.IsCharacterInPlanningSubset( PlannedActivityPhase.Self, GetPlayer, 'spectator')), '(float)1.0', '(float)0.4' )]" - - text_label_center = { - parentanchor = top|hcenter - text = contest_planner_selected_slot_xp_gain - allow_outside = yes - } - - hbox_contest_type_affinities_container = { - datacontext = "[PlannedActivityPhase.GetPhase]" - layoutpolicy_horizontal = expanding - parentanchor = bottom|hcenter - allow_outside = yes - - blockoverride "icon_sizes" - { - size = { 30 30 } - } - } - } - - widget = { - name = "participation" - parentanchor = bottom|hcenter - position = { 0 -12} - size = { 200 30 } - allow_outside = yes - datacontext = "[PlannedActivityPhase.GetPhase]" - - widget = { - name = "auto_participate_if_eligible" - visible = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( GetPlayer ), IsPlayerAvailableToCompeteMartial ) ) )]" - - visible_at_creation = no # required to make sure we trigger the '_show' state - - state = { - name = _show - on_start = "[ActivityPlanner.RemoveGuestFromPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'spectator')]" - on_start = "[ActivityPlanner.AddGuestToPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'contestant')]" - } - } - - widget = { - name = "auto_spectate_if_not_eligible" - visible = "[Not( Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( GetPlayer ), IsPlayerAvailableToCompeteMartial ) ) ) )]" - - visible_at_creation = no # required to make sure we trigger the '_show' state - - state = { - name = _show - on_start = "[ActivityPlanner.RemoveGuestFromPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'contestant')]" - on_start = "[ActivityPlanner.AddGuestToPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'spectator')]" - } - } - - hbox = { - allow_outside = yes - - enabled = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( GetPlayer ), IsPlayerAvailableToCompeteMartial ) ) )]" - - tooltip = contest_planner_contest_cannot_participate - - button_contest_spectate = { - size = { 100 30 } - - alwaystransparent = "[ActivityPlanner.IsCharacterInPlanningSubset( PlannedActivityPhase.Self, GetPlayer, 'spectator')]" - down = "[ActivityPlanner.IsCharacterInPlanningSubset( PlannedActivityPhase.Self, GetPlayer, 'spectator')]" - onclick = "[ActivityPlanner.AddGuestToPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'spectator')]" - onclick = "[ActivityPlanner.RemoveGuestFromPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'contestant')]" - - tooltip_visible = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( GetPlayer ), IsPlayerAvailableToCompeteMartial ) ) )]" - } - - button_contest_participate = { - size = { 100 30 } - - alwaystransparent = "[Not(ActivityPlanner.IsCharacterInPlanningSubset( PlannedActivityPhase.Self, GetPlayer, 'spectator'))]" - down = "[Not(ActivityPlanner.IsCharacterInPlanningSubset( PlannedActivityPhase.Self, GetPlayer, 'spectator'))]" - onclick = "[ActivityPlanner.RemoveGuestFromPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'spectator')]" - onclick = "[ActivityPlanner.AddGuestToPlanningGuestSubset(PlannedActivityPhase.AccessSelf, GetPlayer, 'contestant')]" - - tooltip_visible = "[Or( And( Not( IsMartialContest ), IsPlayerAvailableToCompeteNonMartial ), And( IsMartialContest, And( CanPlayerCompeteInMartialContest( GetPlayer ), IsPlayerAvailableToCompeteMartial ) ) )]" - } - } - } - } - } - } - - button_round = { - visible = "[Not( ActivityPlanner.IsEditingAnyPhase )]" - parentanchor = bottom|hcenter - position = { 0 60 } - size = { 50 50 } - - datacontext = "[PlannedActivityPhase.GetPhase]" - - onclick = "[ActivityPlanner.RemovePhase( PlannedActivityPhase.AccessSelf )]" - - tooltip = contest_planner_remove_contest_tooltip - - button_cancel = { - name = "remove_contest" - parentanchor = center - size = { 40 40 } - alwaystransparent = yes - } - } - - widget = { - name = "planning_contest" - visible = "[Not( PlannedActivityPhase.HasPhase )]" - size = { 100% 100% } - - widget = { - size = { 218 536 } - parentanchor = center - alpha = 0 - - background = { - using = Background_Frame_Gold - - modify_texture = { - texture = "gfx/interface/window_activities/tournament/mask_corners_contest_selection.dds" - blend_mode = alphamultiply - } - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 1 - duration = 1 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0 - duration = 1 - - using = Animation_Curve_Default - } - } - } - } - - type tournament_empty_contest_slot_widget = tournamnet_contest_slot - { - icon = { - parentanchor = center - size = { 226 546 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_active_bg.dds" - } - - icon = { - parentanchor = center - size = { 226 546} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - button_standard_clean = { - size = { 100% 100% } - onclick = "[ActivityPlanner.AddPhase( 'phase' )]" - - tooltip = contest_planner_add_contest_tooltip - - # Contest Icon - widget = { - parentanchor = top|hcenter - position = { 0 -28} - size = { 60 60 } - - # Background - highlight_icon = { - parentanchor = top|hcenter - size = { 60 60 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_inactive_icon_bg.dds" - - modify_texture = { - blend_mode = multiply - alpha = 0.7 - } - } - } - - widget = { - name = "empty_contest" - parentanchor = center - position = { 0 30 } - size = { 230 250 } - - alwaystransparent = yes - - vbox = { - layoutpolicy_vertical = expanding - spacing = 4 - - button_round = { - size = { 50 50 } - alwaystransparent = yes - - button_plus = { - name = "select_contest" - size = { 40 40 } - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - text = contest_planner_empty_slot - using = Font_Size_Big - max_width = 190 - alwaystransparent = yes - } - - text_multi = { - text = contest_planner_empty_slot_desc - autoresize = yes - max_width = 190 - align = center - alwaystransparent = yes - } - - expand = {} - } - } - } - } - - type tournament_unavailable_contest_slot = tournamnet_contest_slot - { - enabled = no - - icon = { - parentanchor = center - size = { 226 546 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_active_bg.dds" - alpha = 0.5 - } - - icon = { - parentanchor = center - size = { 226 546} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - button_standard_clean = { - size = { 100% 100% } - - blockoverride "disabled" {} - - # Contest Icon - widget = { - parentanchor = top|hcenter - position = { 0 -28} - size = { 60 60 } - - # Background - highlight_icon = { - parentanchor = top|hcenter - size = { 60 60 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_inactive_icon_bg.dds" - - modify_texture = { - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.7 - } - } - } - - widget = { - name = "unavailable_contest" - parentanchor = center - position = { 0 30 } - size = { 230 250 } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 4 - - button_round = { - size = { 50 50 } - - icon_flat_standard = { - texture = "gfx/interface/window_activities/tournament/contest_selection_locked_icon.dds" - parentanchor = center - size = { 40 40 } - } - } - - text_single = { - text = contest_planner_unavailable_slot - using = Font_Size_Big - max_width = 190 - } - - text_multi = { - text = contest_planner_unavailable_slot_desc - autoresize = yes - max_width = 190 - align = center - default_format = "#weak" - } - - expand = {} - } - } - } - } - - type button_select_contest = button_standard_clean { - size = { 230 140 } - - visible = "[ActivityPhase.IsShown( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - enabled = "[PlannerCanPickActivityPhase( ActivityPhase, ActivityPlanner.GetSingleLocationPhase.GetLocation )]" - - onclick = "[ActivityPlanner.SelectPhaseType( ActivityPhase.Self )]" - - tooltip = contest_planner_contest_tooltip - - icon = { - parentanchor = center - size = { 226 136 } - texture = "[ActivityPhase.GetIllustrationSmall]" - } - - icon = { - parentanchor = center - size = { 226 136} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - widget = { - parentanchor = right|top - position = { -4 4 } - size = { 40 -1 } - allow_outside = yes - - vbox_contest_type_affinities_container = {} - } - - widget = { - parentanchor = bottom|hcenter - position = { 0 -4 } - size = { 230 50 } - - background = { - using = Background_Area_ExtraDark - - margin = { 0 4 } - } - - text_single = { - parentanchor = hcenter - text = "[ActivityPhase.GetName]" - max_width = 220 - } - - widget = { - parentanchor = bottom|hcenter - size = { 230 30 } - - hbox = { - margin_right = 8 - - hbox_character_archery_contest_aptitude = { - visible = "[IsBowContest]" - margin = { 2 2 } - } - - hbox_character_foot_contest_aptitude = { - visible = "[IsFootContest]" - margin = { 2 2 } - } - - hbox_character_horse_contest_aptitude = { - visible = "[IsHorseContest]" - margin = { 2 2 } - } - - hbox_character_wit_contest_aptitude = { - visible = "[IsWitContest]" - margin = { 2 2 } - } - } - } - } - } - - type vbox_available_contests = vbox { - datacontext = "[ActivityPlanner.AccessPhasePageData]" - margin_top = 16 - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 8 - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - spacing = 16 - - button_round = { - size = { 50 50 } - - enabled = "[PagedContainerData.CanShowPreviousPage]" - onclick = "[PagedContainerData.ShowPreviousPage]" - - button_back = { - parentanchor = center - position = { -2 0 } - - alwaystransparent = yes - } - } - - fixedgridbox = { - name = "activity_type_phases" - datamodel = "[PagedContainerData.DataModelPage( ActivityType.GetPickablePhases )]" - - visible = "[ActivityPlanner.IsEditingAnyPhase]" - - addcolumn = 240 - addrow = 150 - flipdirection = yes - - item = { - widget_available_contests_item = { } - } - } - - button_round = { - size = { 50 50 } - - enabled = "[PagedContainerData.CanShowNextPage( GetDataModelSize( ActivityType.GetPickablePhases ) )]" - onclick = "[PagedContainerData.ShowNextPage( GetDataModelSize(ActivityType.GetPickablePhases) )]" - - button_forward = { - parentanchor = center - position = { 2 0 } - - alwaystransparent = yes - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 16 - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - align = nobaseline - raw_text = "[PagedContainerData.GetCurrentPage] / [PagedContainerData.GetMaxPage( GetDataModelSize( ActivityType.GetPickablePhases ) )]" - } - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - } - - type widget_available_contests_item = widget { - size = { 230 150 } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 4 - - blockoverride "contest_aptitude_level_size" - { - size = { 12 12 } - } - - button_select_contest = { - name = "activity_phase" - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_contestant_leaderboard_widget.gui b/N3OW/gui/activity_window_widgets/tournament_contestant_leaderboard_widget.gui deleted file mode 100644 index e484f8b8..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_contestant_leaderboard_widget.gui +++ /dev/null @@ -1 +0,0 @@ -# Intentionally left blank diff --git a/N3OW/gui/activity_window_widgets/tournament_fullscreen_pivotal_event_widget.gui b/N3OW/gui/activity_window_widgets/tournament_fullscreen_pivotal_event_widget.gui deleted file mode 100644 index ee09e650..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_fullscreen_pivotal_event_widget.gui +++ /dev/null @@ -1,5 +0,0 @@ -widget_pivotal_moment_event_window = { - name = "tournament_fullscreen_pivotal_event_widget" - size = { 100% 100% } - parentanchor = hcenter|top -} diff --git a/N3OW/gui/activity_window_widgets/tournament_my_aptitudes.gui b/N3OW/gui/activity_window_widgets/tournament_my_aptitudes.gui deleted file mode 100644 index 8ce41717..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_my_aptitudes.gui +++ /dev/null @@ -1,45 +0,0 @@ -widget = { - name = "tournament_my_aptitudes" - datacontext = "[GetPlayer]" - parentanchor = bottom|right - - position = { -6 -6 } - size = { 300 120 } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 8 - - blockoverride "contest_aptitude_level_size" - { - size = { 12 12 } - } - - vbox = { - vbox_character_archery_contest_aptitude = { - margin = { 4 4 } - } - - vbox_character_foot_contest_aptitude = { - margin = { 4 4 } - } - } - - vbox = { - vbox_character_horse_contest_aptitude = { - margin = { 4 4 } - } - - vbox_character_wit_contest_aptitude = { - margin = { 4 4 } - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_my_attending_knights_view.gui b/N3OW/gui/activity_window_widgets/tournament_my_attending_knights_view.gui deleted file mode 100644 index 18529161..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_my_attending_knights_view.gui +++ /dev/null @@ -1,195 +0,0 @@ -widget = { - name = "tournament_my_attending_knights_view" - datacontext = "[ActivityLocaleWindow.GetActivity]" - visible = "[CanDisplayLocaleView('my_knights_window')]" - parentanchor = top|right - position = { -8 0 } - size = { 510 740 } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position_y = 100 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_y = 200 - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Window_Background_Subwindow - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = locale_window_your_attending_knights_header - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Clear( 'activity_locale_view' )]" - } - } - - scrollbox = { - name = "tournament_my_attending_knights" - visible = "[DataModelHasItems( GetPlayer.GetKnights )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - name = "attedning_characters_list" - datamodel = "[GetPlayer.GetKnights]" - - spacing = 8 - ignoreinvisible = yes - - - item = { - widget = { - visible = "[ObjectsEqual(Character.GetInvolvedActivity, Activity.Self)]" - layoutpolicy_horizontal = expanding - size = { 0 130 } - - vbox = { - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 8 - - portrait_head = { - alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_top = 2 - margin_bottom = 4 - margin_left = 14 - } - - icon = { - visible = "[Character.IsKnight]" - size = { 40 40 } - texture = "gfx/interface/icons/icon_knight_small.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - raw_text = "#D PTV:[Character.MakeScope.Var('progress_to_victory').GetValue|0]#!" - default_format = "#high;D" - - raw_tooltip = "#D [Character.GetNamePossessiveNoTooltip] progress towards victory in the upcoming contest.#!" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - blockoverride "contest_aptitude_level_size" - { - size = { 8 8 } - } - - hbox_character_archery_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_foot_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_horse_contest_aptitude = { - margin = { 2 2 } - } - - hbox_character_wit_contest_aptitude = { - margin = { 2 2 } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_contest_spectate = { - size = { 90 30 } - - enabled = "[Not(Activity.GetCurrentPhase.IsCharacterInGuestSubset(Character.Self, 'spectator'))]" - onclick = "[Activity.AddCharacterToSubset(Character.Self, 'spectator')]" - tooltip = locale_window_button_my_knights_force_spectate_tooltip - } - - button_contest_participate = { - size = { 90 30 } - - enabled = "[Activity.GetCurrentPhase.IsCharacterInGuestSubset(Character.Self, 'spectator')]" - onclick = "[Activity.RemoveCharacterFromSubset(Character.Self, 'spectator')]" - tooltip = locale_window_button_my_knights_allow_participate_tooltip - } - - expand = {} - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - - alpha = 0.4 - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_my_status_icon.gui b/N3OW/gui/activity_window_widgets/tournament_my_status_icon.gui deleted file mode 100644 index e484f8b8..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_my_status_icon.gui +++ /dev/null @@ -1 +0,0 @@ -# Intentionally left blank diff --git a/N3OW/gui/activity_window_widgets/tournament_planning_selected_contests.gui b/N3OW/gui/activity_window_widgets/tournament_planning_selected_contests.gui deleted file mode 100644 index 08ab5622..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_planning_selected_contests.gui +++ /dev/null @@ -1,58 +0,0 @@ -hbox = { - name = "tournament_planning_selected_contests" - visible = "[And(ActivityType.IsSingleLocation, ActivityType.HasPickablePhases)]" - - margin = { 16 0 } - margin_bottom = 4 - - spacing = 8 - - expand = {} - - hbox = { - datamodel = "[ActivityPlanner.AccessPlayerPickedPhases]" - - spacing = 8 - - text_single = { - text = "ACTIVITY_PLANNER_CONTEST_HEADER" - align = nobaseline - } - - item = { - hbox = { - spacing = 4 - - widget = { - size = { 30 30 } - - icon_flat_standard = { - parentanchor = center - size = { 60 60 } - texture = "[PlannedActivityPhase.GetPhase.GetIcon]" - } - } - - text_single = { - visible = "[PlannedActivityPhase.HasPhase]" - text = "[PlannedActivityPhase.GetPhase.GetName]" - align = nobaseline - - margin_left = 0 - } - } - } - } - - button_round = { - onclick = "[ActivityPlanner.StartPhasePlanning]" - - tooltip = "ACTIVITY_PLANNER_CHANGE_CONTEST_TT" - - button_replace = { - parentanchor = center - alwaystransparent = yes - - } - } -} \ No newline at end of file diff --git a/N3OW/gui/activity_window_widgets/tournament_progress_to_victory_widget.gui b/N3OW/gui/activity_window_widgets/tournament_progress_to_victory_widget.gui deleted file mode 100644 index 88e0f322..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_progress_to_victory_widget.gui +++ /dev/null @@ -1,223 +0,0 @@ -vbox = { - name = "tournament_progress_to_victory_widget" - datacontext = "[Activity.GetCurrentPhase]" - datacontext = "[Activity.GetCurrentPhase.GetPhase]" - visible = "[And( And( Not(VariableSystem.Exists('activity_locale_view') ), DataModelHasItems( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'contestant' ) ) ), Not( IsContestType( 'tournament_phase_ceremony' ) ) )]" - visible_at_creation = no # required to make sure we trigger the '_show' state - layoutpolicy_horizontal = expanding - - alwaystransparent = no - - minimumsize = { 300 -1 } - maximumsize = { 300 -1 } - spacing = 4 - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - hbox = { - margin = { 0 4 } - visible = "[Not( Activity.IsCurrentPhaseActive )]" - - - text_single = { - text = locale_window_widget_progress_to_victory_next_contest - max_width = 280 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( Activity.IsCurrentPhaseActive )]" - - margin_bottom = 16 - spacing = 4 - - text_label_center = { - layoutpolicy_horizontal = expanding - - text = locale_window_widget_progress_to_victory_header - using = Font_Size_Big - using = Font_Type_Flavor - } - - text_single = { - visible = "[Not( Activity.IsCurrentPhaseActive )]" - max_width = 280 - text = locale_window_widget_leaderboard_qualification - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 14 - } - - widget = { - size = { 240 64 } - allow_outside = yes - - tooltip = locale_window_widget_progress_to_victory_tooltip - - widget_passive_phase_progress_to_victory = { - parentanchor = center - - blockoverride "widget_size" { - size = { 230 40 } - } - } - - widget = { - parentanchor = left|vcenter - size = { 64 64 } - position = { -22 0 } - - allow_outside = yes - - icon = { - texture = "gfx/interface/window_activities/tournament/icon_chance_of_victory_bg.dds" - parentanchor = center - size = { 64 64 } - - allow_outside = yes - } - - icon_flat_standard = { - parentanchor = center - size = { 35 35 } - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - } - } - } - - text_single = { - text = locale_window_widget_progress_to_victory_label - max_width = 280 - } - } - - button_standard = { - layoutpolicy_horizontal = expanding - size = { 296 30 } - - visible = "[Not( GetVariableSystem.Exists( 'expand_tournament_leaderboard' ) )]" - - onclick = "[GetVariableSystem.Toggle( 'expand_tournament_leaderboard' )]" - - tooltip = locale_window_widget_show_leaderboard_tt - - button_expand = { - parentanchor = center - frame = 2 - onclick = "[GetVariableSystem.Toggle( 'expand_tournament_leaderboard' )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[GetVariableSystem.Exists( 'expand_tournament_leaderboard' )]" - - background = { - using = Background_Area - } - - text_label_center = { - layoutpolicy_horizontal = expanding - max_width = 280 - - text = locale_window_widget_leaderboard - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 22 - fontsize_min = 16 - using = Font_Type_Flavor - } - - vbox_tournament_favoured_contestants = { - name = "tournament_contestant_passive_phase" - visible = "[And( Not( Activity.IsCurrentPhaseActive ), DataModelHasItems( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'contestant' ) ) )]" - - state = { - name = _show - on_start = "[ActivityLocaleWindow.SetAllPhasesGuestSubsetSortingDescending('contestant', 'progress_to_victory_current')]" - } - - blockoverride "most_favoured_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'contestant' ), '(int32)1' )]" - } - - blockoverride "contestants_attributes" - { - datamodel = "[DataModelSkipFirst( DataModelFirst( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'contestant' ), '(int32)8' ), '(int32)1' )]" - } - - blockoverride "visible_bottom_bar" - { - visible = "[GreaterThan_int32( GetDataModelSize( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'contestant' ) ), '(int32)8' )]" - } - - blockoverride "bottom_bar_text" - { - text = "locale_window_widget_leaderboard_remaining_contestants" - } - } - - vbox_tournament_favoured_contestants = { - name = "tournament_contestant_active_phase" - visible = "[And( Activity.IsCurrentPhaseActive, DataModelHasItems( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'qualified' ) ) )]" - - state = { - name = _show - on_start = "[ActivityLocaleWindow.SetAllPhasesGuestSubsetSortingDescending('qualified', 'progress_to_victory_current')]" - } - - blockoverride "most_favoured_datacontext" - { - # Uses a bit of a hack to ensure the datacontext is updated - # when the underlying datamodel is sorted. - datamodel = "[DataModelFirst( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'qualified' ), '(int32)1' )]" - } - - blockoverride "contestants_attributes" - { - datamodel = "[DataModelSkipFirst( DataModelFirst( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'qualified' ), '(int32)8' ), '(int32)1' )]" - } - - blockoverride "visible_bottom_bar" - { - visible = "[GreaterThan_int32( GetDataModelSize( ActivityLocaleWindow.GetCurrentPhaseGuestSubset( 'qualified' ) ), '(int32)8' )]" - } - - blockoverride "bottom_bar_text" - { - text = "locale_window_widget_leaderboard_other_qualified" - } - } - - button_standard = { - size = { 296 30 } - - onclick = "[GetVariableSystem.Toggle( 'expand_tournament_leaderboard' )]" - - tooltip = locale_window_widget_hide_leaderboard_tt - - button_expand = { - parentanchor = center - frame = 2 - mirror = vertical - alwaystransparent = yes - } - } - } -} diff --git a/N3OW/gui/activity_window_widgets/tournament_toggle_my_knights_button.gui b/N3OW/gui/activity_window_widgets/tournament_toggle_my_knights_button.gui deleted file mode 100644 index 79ba0c6a..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_toggle_my_knights_button.gui +++ /dev/null @@ -1,11 +0,0 @@ -button_standard = { - name = "tournament_toggle_my_knights_button" - size = { 200 32 } - - text = locale_window_button_my_knights - tooltip = locale_window_button_my_knights_tooltip - - onclick = "[SetOrToggleLocaleView( 'my_knights_window' )]" - enabled = "[Not(ActivityLocaleWindow.HasActiveEvent)]" - down = "[IsShowingLocaleView( 'my_knights_window' )]" -} diff --git a/N3OW/gui/activity_window_widgets/tournament_widget_types.gui b/N3OW/gui/activity_window_widgets/tournament_widget_types.gui deleted file mode 100644 index 5a5e95da..00000000 --- a/N3OW/gui/activity_window_widgets/tournament_widget_types.gui +++ /dev/null @@ -1,1141 +0,0 @@ -# -# Put widgets we reuse within the tournament plugin widgets here. -# -types TournamentWidgetTypes -{ - ### Brief: vbox_tournament_favoured_contestants - # Has the following blocks: - # - # "most_favoured_datacontext" - # Used to specify the character in the most favoured contestant - # widget. Usage: - # datamodel = "[SomeCharacterDatamodel]" - # - # "most_favoured_attributes" - # Used to specify other attributes of the most favoured contestants - # widget. - # visible = yes - # - # "contestants_attributes" - # Used to populate the list of characters and set other attributes - # for the list Usage: - # datamodel = "[SomeCharacterDatamodel]" - # visible = yes - # - # "visible_bottom_bar" - # Controls whether or not the bottom bar below the character list - # will show. Usage: - # visible = yes - # - # "bottom_bar_text" - # Which text the bottom bar displays. Usage: - # text = "my_localization_key" - # - type vbox_tournament_favoured_contestants = vbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "most_favoured" - layoutpolicy_horizontal = expanding - - datacontext_from_model = { - block "most_favoured_datacontext" - { - } - index = 0 - } - - block "most_favoured_attributes" - { - } - - tooltipwidget = { - cooltip_type = {} - } - - hbox = { - margin_top = 4 - - text_single = { - alwaystransparent = yes - name = "character_name" - text = "[Character.GetUINameNotMeNoTooltip]" - max_width = 280 - align = nobaseline - default_format = "#medium" - - using = Font_Size_Small - } - - ## Debug info - hbox = { - visible = "[AIWatchWindowsEnabled]" - - text_single = { - visible = "[GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, Activity.MakeScope.Var('progress_to_victory_threshold').GetValue )]" - raw_text = " - [Character.MakeScope.Var('progress_to_victory').GetValue|0]" - default_format = "#high;D" - - using = Font_Size_Small - } - text_single = { - visible = "[And( Not( GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, Activity.MakeScope.Var('progress_to_victory_threshold').GetValue ) ), GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, '(CFixedPoint)0' ) )]" - raw_text = " - [Character.MakeScope.Var('progress_to_victory').GetValue|0]" - default_format = "#low;D" - - using = Font_Size_Small - } - text_single = { - visible = "[Not( GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, '(CFixedPoint)0' ) )]" - raw_text = " - -" - default_format = "#D" - - using = Font_Size_Small - } - } - } - - hbox = { - spacing = 8 - margin = { 0 4 } - - blockoverride "contest_aptitude_level_size" - { - size = { 12 12 } - } - - vbox = { - vbox_character_archery_contest_aptitude = { - margin = { 4 4 } - } - vbox_character_foot_contest_aptitude = { - margin = { 4 4 } - } - } - - portrait_head = { } - - vbox = { - vbox_character_horse_contest_aptitude = { - margin = { 4 4 } - } - vbox_character_wit_contest_aptitude = { - margin = { 4 4 } - } - } - } - } - - vbox = { - block "contestants_attributes" - { - } - - item = { - button_tertiary = { - size = { 296 24 } - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - hbox = { - alwaystransparent = yes - - hbox = { - margin_left = 8 - - icon = { - visible = "[Not( GreaterThan_CFixedPoint( GetCharacterPtV, '(CFixedPoint)0') )]" - size = { 16 16 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - tooltip = locale_window_widget_leaderboard_knocked_out_tt - } - } - - hbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - enabled = "[GreaterThan_CFixedPoint( GetCharacterPtV, '(CFixedPoint)0')]" - - hbox = { - name = "relation_icons" - - icon = { - name = "is_you_icon" - alwaystransparent = yes - visible = "[Character.IsLocalPlayer]" - size = { 15 15 } - texture = "gfx/interface/icons/portraits/me.dds" - framesize = { 36 36 } - raw_tooltip = "[Character.Custom('ThisIsYou')]" - } - - icon = { - name = "your_knight_icon" - alwaystransparent = yes - visible = "[And( Character.GetLiege.IsLocalPlayer, Not( Character.HasLandedTitles ))]" - size = { 15 15 } - texture = "gfx/interface/icons/portraits/knight.dds" - framesize = { 36 36 } - raw_tooltip = "[Character.GetRelationToString( GetPlayer )]" - } - - icon = { - name = "liege_icon" - visible = "[And( ObjectsEqual( GetPlayer.GetLiege, Character.Self ) , Not( GetPlayer.IsIndependentRuler ) ) ]" - size = { 15 15 } - - texture = "gfx/interface/icons/portraits/liege.dds" - tooltip = "FRAME_RELATION_MY_LIEGE" - } - - icon = { - name = "powerful_vassal_icon" - visible = "[Character.IsMyPowerfulVassal]" - size = { 15 15 } - - texture = "gfx/interface/icons/portraits/powerful_vassal.dds" - framesize = { 40 40 } - frame = "[Character.GetPowerfulVassalFrame]" - tooltip = "[Character.GetPowerfulVassalTooltip]" - } - - icon = { - name = "head_icon" - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)yes'), '(int32)9')]" - size = { 15 15 } - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)yes')]" - tooltip = "[Character.GetDynastyHeadRelationTooltip]" - } - - using = Portrait_Relation_Icons_Small - } - - text_single = { - alwaystransparent = yes - name = "character_name" - text = "[Character.GetUINameNotMeNoTooltip]" - margin_left = 4 - max_width = 280 - fontsize = 14 - align = nobaseline - default_format = "#medium" - tooltip = "[Character.GetUINameNotMeNoTooltip]" - using = tooltip_ws - - tooltipwidget = { - cooltip_type = {} - } - } - - expand = {} - - ## Debug info - hbox = { - margin_right = 8 - visible = "[AIWatchWindowsEnabled]" - - text_single = { - visible = "[GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, Activity.MakeScope.Var('progress_to_victory_threshold').GetValue )]" - raw_text = "[Character.MakeScope.Var('progress_to_victory').GetValue|0]" - default_format = "#high;D" - - using = Font_Size_Small - } - text_single = { - visible = "[And( Not( GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, Activity.MakeScope.Var('progress_to_victory_threshold').GetValue ) ), GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, '(CFixedPoint)0' ) )]" - raw_text = "[Character.MakeScope.Var('progress_to_victory').GetValue|0]" - default_format = "#low;D" - - using = Font_Size_Small - } - text_single = { - visible = "[Not( GreaterThan_CFixedPoint( Character.MakeScope.Var('progress_to_victory').GetValue, '(CFixedPoint)0' ) )]" - raw_text = "-" - default_format = "#D" - - using = Font_Size_Small - } - } - } - } - } - } - } - - hbox = { - margin = { 0 8 } - layoutpolicy_horizontal = expanding - - block "visible_bottom_bar" - { - } - - button_tertiary = { - layoutpolicy_horizontal = expanding - size = { -1 32 } - - onclick = "[ActivityLocaleWindow.SetSelectedPhase( Activity.GetCurrentPhase )]" - onclick = "[SetLocaleView( 'phase_information' )]" - onclick = "[SetContestInfoTab( 'participants' )]" - - block "bottom_bar_text" - { - } - } - } - - expand = {} - } - - ### Brief: widget_passive_phase_progress_to_victory - # Used to display the player's progress to victory and qualification - # threshold. - # - # Has the following blocks: - # - # "widget_size" - # The size of the bar. Usage: - # size = { 100 50 } - # - # "threshold_visibility" - # Whether or not to display the qualification threshold bar. - # Usage: - # visible = yes/no - # - # "current_visibility" - # Whether or not to display the player's current value. - # Usage: - # visible = yes/no - # - # "value_marker" - # Configure value marker for the bars, if any. - # Usage: - # marker = { widget = { ... } } - type widget_passive_phase_progress_to_victory = widget { - block "widget_size" - { - } - - position = { 20 0 } - - ## Progressbar used as background to properly be able to layer threshold and bar textures - progressbar = { - size = { 230 39 } - - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/progress_black.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - - } - - progress_bar_to_victory = { - name = "current_progress_to_victory" - - block "widget_size" - { - } - - value = "[GetPlayer.MakeScope.Var('progress_to_victory').GetValue]" - min = 0 - max = 100 - - progresstexture = "gfx/interface/window_activities/tournament/bar_chance_of_victory.dds" - noprogresstexture = "gfx/interface/progressbars/blank.dds" - - marker = { - name = "current_value" - - widget = { - icon = { - size = { 25 32 } - position = { -20 4 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - } - } - } - } - - progress_bar_to_victory = { - name = "progress_to_victory_threshold" - - block "widget_size" - { - } - - value = "[Activity.MakeScope.Var('progress_to_victory_threshold').GetValue]" - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/blank.dds" - noprogresstexture = "gfx/interface/progressbars/blank.dds" - - marker = { - name = "current_value" - widget = { - size = { 18 54 } - - icon = { - parentanchor = vcenter - size = { 2 34 } - using = Background_Area_Light - } - - icon = { - position = { -8 -8} - size = { 18 56} - texture = "gfx/interface/window_activities/tournament/icon_chance_of_victory_threshold.dds" - } - } - } - } - } - - type widget_actual_victory_chance_marker = widget { - visible = "[And( CharacterHasPtV, IsCharacterQualified )]" - - widget = { - icon = { - size = { 25 32 } - position = { -20 4 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - } - } - } - - type icon_progress_to_victory_bar_glow = icon { - size = { 100% 100% } - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 3 - } - - state = { - name = mask_a - next = mask_b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - - state = { - name = mask_b - next = mask_a - duration = 8 - - modify_texture = { - name = "clouds" - translate_uv = { 0 1 } - } - } - - state = { - name = progress_changed - next = "fade_out" - - duration = 0.2 - delay = 0.3 - bezier = { 0.5 0 1 0.5 } - alpha = 1 - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - } - - type progress_bar_to_victory = progressbar_standard { - - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/blank.dds" - noprogresstexture = "gfx/interface/progressbars/blank.dds" - - using = Progressbar_Changed_Animation - } - - type widget_active_phase_progress_to_victory = widget { - block "widget_size" - { - } - - progress_bar_to_victory = { - block "widget_size" - { - } - - value = "[Activity.MakeScope.Var('progress_to_victory_threshold').GetValue]" - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/progress_black.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - - } - - progress_bar_to_victory = { - block "widget_size" - { - } - - value = "[Multiply_CFixedPoint( Character.MakeScope().ScriptValue( 'character_chance_of_victory' ), '(CFixedPoint)100' )]" - - progresstexture = "gfx/interface/window_activities/tournament/bar_chance_of_victory.dds" - noprogresstexture = "gfx/interface/progressbars/blank.dds" - - marker = { - name = "current_value" - - widget_actual_victory_chance_marker = { - size = { 48 36 } - position = { 0 -2 } - parentanchor = vcenter - } - } - } - - text_single = { - visible = "[And( AIWatchWindowsEnabled, And( CharacterHasPtV, IsCharacterQualified ) )]" - raw_text = "#I [GetPlayerPtV]#! -- vs -- #X [Character.MakeScope().ScriptValue( 'debug_opposing_progress_to_victory' )]#!" - parentanchor = right - default_format = "#D" - position = { 0 -30 } - } - } - - type hbox_contest_reward_preview = hbox { - - expand = {} - - icon = { - size = { 240 240 } - - framesize = { 400 400 } - frame = "[Add_int32(GetTournamentPrizeLevel.GetIndexInCategory, '(int32)1' )]" # frame is 1 indexed, GetIndexInCategory is 0 indexed. - texture = "gfx/interface/window_activities/tournament/tournament_price_chests.dds" - - tooltip = locale_window_before_rewards_tooltip - } - - expand = {} - } - - type icon_progess_to_victory = icon { - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - - using = Master_Button_Modify_Texture - } - - type icon_contest_affinity_base = icon_flat_standard { - datacontext = "[GetTrait( 'tourney_participant' )]" - datacontext = "[GetPlayer]" - } - - type icon_contest_affinity_bow = icon_contest_affinity_base { - datacontext = "[GetTrait( 'tourney_participant' ).GetTraitTrackByKey( 'bow' )]" - texture = "gfx/interface/window_activities/tournament/icon_tournament_skill_bow.dds" - } - - type icon_contest_affinity_foot = icon_contest_affinity_base { - datacontext = "[GetTrait( 'tourney_participant' ).GetTraitTrackByKey( 'foot' )]" - texture = "gfx/interface/window_activities/tournament/icon_tournament_skill_foot.dds" - } - - type icon_contest_affinity_horse = icon_contest_affinity_base { - datacontext = "[GetTrait( 'tourney_participant' ).GetTraitTrackByKey( 'horse' )]" - texture = "gfx/interface/window_activities/tournament/icon_tournament_skill_horse.dds" - } - - type icon_contest_affinity_wit = icon_contest_affinity_base { - datacontext = "[GetTrait( 'tourney_participant' ).GetTraitTrackByKey( 'wit' )]" - texture = "gfx/interface/window_activities/tournament/icon_tournament_skill_wit.dds" - } - - type icon_contest_type_favoured = icon { - texture = "gfx/interface/icons/symbols/arrow_favored.dds" - } - - type widget_contest_type_most_favoured = icon { - texture = "gfx/interface/icons/symbols/arrow_most_favored.dds" - } - - ### Brief: hbox_contest_type_affinies_bow - # Has the following blocks: - # - # "icon_sizes" - # The size of the icons. Usage: - # size = { 24 24 } - # - type hbox_contest_type_affinies_bow = hbox { - visible = "[IsBowContest]" - - icon = { - texture = "gfx/interface/icons/trait_level_tracks/bow.dds" - block "icon_sizes" - { - size = { 20 20 } - } - tooltip = "BOW_EXPERIENCE_GREATER_TOOLTIP" - } - - icon_contest_type_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - tooltip = "BOW_EXPERIENCE_REGULAR_TOOLTIP" - visible = no # Add here if some are added at any point - } - - widget_contest_type_most_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - tooltip = "BOW_EXPERIENCE_GREATER_TOOLTIP" - visible = "[IsContestType( 'tournament_phase_archery' )]" - } - } - - ### Brief: hbox_contest_type_affinies_foot - # Has the following blocks: - # - # "icon_sizes" - # The size of the icons. Usage: - # size = { 24 24 } - # - type hbox_contest_type_affinies_foot = hbox { - visible = "[IsFootContest]" - - icon = { - texture = "gfx/interface/icons/trait_level_tracks/foot.dds" - block "icon_sizes" - { - size = { 20 20 } - } - visible = "[IsContestType( 'tournament_phase_joust' )]" - tooltip = "FOOT_EXPERIENCE_REGULAR_TOOLTIP" - } - - icon = { - texture = "gfx/interface/icons/trait_level_tracks/foot.dds" - block "icon_sizes" - { - size = { 20 20 } - } - visible = "[Or( Or( IsContestType( 'tournament_phase_wrestling' ), IsContestType( 'tournament_phase_melee' ) ), IsContestType( 'tournament_phase_duel' ) )]" - - tooltip = "FOOT_EXPERIENCE_GREATER_TOOLTIP" - } - - icon_contest_type_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = "[IsContestType( 'tournament_phase_joust' )]" - tooltip = "FOOT_EXPERIENCE_REGULAR_TOOLTIP" - } - - widget_contest_type_most_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = "[Or( Or( IsContestType( 'tournament_phase_wrestling' ), IsContestType( 'tournament_phase_melee' ) ), IsContestType( 'tournament_phase_duel' ) )]" - - tooltip = "FOOT_EXPERIENCE_GREATER_TOOLTIP" - } - } - - ### Brief: hbox_contest_type_affinies_horse - # Has the following blocks: - # - # "icon_sizes" - # The size of the icons. Usage: - # size = { 24 24 } - # - type hbox_contest_type_affinies_horse = hbox { - visible = "[IsHorseContest]" - - icon = { - texture = "gfx/interface/icons/trait_level_tracks/horse.dds" - block "icon_sizes" - { - size = { 20 20 } - } - tooltip = "HORSE_EXPERIENCE_GREATER_TOOLTIP" - } - - icon_contest_type_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = no # Add here if some are added at any point - tooltip = "HORSE_EXPERIENCE_REGULAR_TOOLTIP" - } - - widget_contest_type_most_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = "[Or( Or( IsContestType( 'tournament_phase_horse_race' ), IsContestType( 'tournament_phase_joust' ) ), IsContestType( 'tournament_phase_melee' ) )]" - - tooltip = "HORSE_EXPERIENCE_GREATER_TOOLTIP" - } - } - - ### Brief: hbox_contest_type_affinies_wit - # Has the following blocks: - # - # "icon_sizes" - # The size of the icons. Usage: - # size = { 24 24 } - # - type hbox_contest_type_affinies_wit = hbox { - visible = "[IsWitContest]" - - icon = { - texture = "gfx/interface/icons/trait_level_tracks/wit.dds" - block "icon_sizes" - { - size = { 20 20 } - } - tooltip = "WIT_EXPERIENCE_GREATER_TOOLTIP" - } - - icon_contest_type_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = no # Add here if some are added at any point - tooltip = "WIT_EXPERIENCE_REGULAR_TOOLTIP" - } - - widget_contest_type_most_favoured = { - block "icon_sizes" - { - size = { 14 14 } - } - visible = "[Or( IsContestType( 'tournament_phase_board_game' ), IsContestType( 'tournament_phase_recital' ) )]" - tooltip = "WIT_EXPERIENCE_GREATER_TOOLTIP" - } - } - - type vbox_contest_type_affinities_container = vbox { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_ExtraDark - - margin = { 4 4 } - } - - hbox_contest_type_affinies_bow = { } - - hbox_contest_type_affinies_foot = { } - - hbox_contest_type_affinies_horse = { } - - hbox_contest_type_affinies_wit = { } - } - - type hbox_contest_type_affinities_container = hbox { - - layoutpolicy_horizontal = expanding - spacing = 8 - - expand = {} - - hbox_contest_type_affinies_bow = { } - - hbox_contest_type_affinies_foot = { } - - hbox_contest_type_affinies_horse = { } - - hbox_contest_type_affinies_wit = { } - - expand = {} - } - - ### Brief: vbox_character_contest_aptitude - # Aligns the contest affinities a character has with icon on top and then - # stars below. - # - # Has the following blocks: - # - # "contest_affinity_icon" - # Used to decide which affinity icon this represents. Use: - # icon_contest_affinity_bow - # icon_contest_affinity_foot - # icon_contest_affinity_horse - # icon_contest_affinity_wit - # - # "contest_affinity_datamodel" - # Put script value target here - # - # - # "contest_aptitude_level_size" - # Size of the boxes that indicate aptitude - # - type vbox_character_contest_aptitude = vbox { - - spacing = 4 - - block "contest_affinity_icon" - { - } - - progressbar_segmented_target = { - block "contest_affinity_datamodel" - { - } - - spacing = 2 - - background = { - using = Background_Area_Light - margin = { 6 6 } - - using = Mask_Rough_Edges - } - - background = { - using = Background_Area_Border_Solid - - margin = { 2 2 } - } - - item = { - icon = { - texture = "gfx/interface/progressbars/progress_magnificence.dds" - framesize = { 45 45 } - frame = "[int32.GetInt]" - - block "contest_aptitude_level_size" - { - } - } - } - } - } - - type vbox_character_archery_contest_aptitude = vbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_archery - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_bow = { - size = { 32 32 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetArcheryContestTypeAptitude ), FixedPointToInt( GetArcheryContestTypeAptitude ) )]" - } - } - - type vbox_character_foot_contest_aptitude = vbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_foot - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_foot = { - size = { 32 32 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetFootContestTypeAptitude ), FixedPointToInt( GetFootContestTypeAptitude ) )]" - } - } - - type vbox_character_horse_contest_aptitude = vbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_horse - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_horse = { - size = { 32 32 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetHorseContestTypeAptitude ), FixedPointToInt( GetHorseContestTypeAptitude ) )]" - } - } - - type vbox_character_wit_contest_aptitude = vbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_wit - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_wit = { - size = { 32 32 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetWitContestTypeAptitude ), FixedPointToInt( GetWitContestTypeAptitude ) )]" - } - } - - ### Brief: hbox_character_contest_aptitude - # Aligns the contest affinities a character has with icon on to the left and then - # stars next to it. - # - # Has the following blocks: - # - # "contest_affinity_icon" - # Used to decide which affinity icon this represents. Use: - # icon_contest_affinity_bow - # icon_contest_affinity_foot - # icon_contest_affinity_horse - # icon_contest_affinity_wit - # - # "contest_affinity_datamodel" - # Put script value target here - # - # "contest_aptitude_level_size" - # Size of the boxes that indicate aptitude - # - type hbox_character_contest_aptitude = hbox { - - spacing = 4 - - using = tooltip_se - - block "contest_affinity_icon" - { - } - - progressbar_segmented_target = { - block "contest_affinity_datamodel" - { - } - - spacing = 2 - - background = { - using = Background_Area_Light - margin = { 6 6 } - - using = Mask_Rough_Edges - } - - background = { - using = Background_Area_Border_Solid - - margin = { 2 2 } - } - - item = { - icon = { - texture = "gfx/interface/progressbars/progress_magnificence.dds" - framesize = { 45 45 } - frame = "[int32.GetInt]" - - block "contest_aptitude_level_size" - { - } - } - } - } - } - - type hbox_character_archery_contest_aptitude = hbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_archery - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_bow = { - size = { 26 26 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetArcheryContestTypeAptitude ), FixedPointToInt( GetArcheryContestTypeAptitude ) )]" - } - } - - type hbox_character_foot_contest_aptitude = hbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_foot - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_foot = { - size = { 26 26 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetFootContestTypeAptitude ), FixedPointToInt( GetFootContestTypeAptitude ) )]" - } - } - - type hbox_character_horse_contest_aptitude = hbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_horse - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_horse = { - size = { 26 26 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetHorseContestTypeAptitude ), FixedPointToInt( GetHorseContestTypeAptitude ) )]" - } - } - - type hbox_character_wit_contest_aptitude = hbox_character_contest_aptitude { - - tooltip = character_contest_type_aptitude_wit - - blockoverride "contest_affinity_icon" - { - icon_contest_affinity_wit = { - size = { 26 26 } - } - } - - blockoverride "contest_affinity_datamodel" - { - datamodel = "[GetSegmentedProgressTargetBar( '(int32)5', FixedPointToInt( GetWitContestTypeAptitude ), FixedPointToInt( GetWitContestTypeAptitude ) )]" - } - } - - type button_contest_participate = button_standard { - - tooltip = tournament_participation_participate_tt - using = tooltip_se - - icon_flat_standard = { - size = { 46 46 } - parentanchor = center - texture = "gfx/interface/window_activities/tournament/icon_tournament_phase_participating.dds" - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - type button_contest_spectate = button_standard { - tooltip = tournament_participation_spectate_tt - using = tooltip_se - - icon_flat_standard = { - size = { 46 46 } - parentanchor = center - texture = "gfx/interface/window_activities/tournament/icon_tournament_phase_spectating.dds" - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - ### Brief: widget_pivotal_moment_event_window - # - # Has the same blocks as widget_pivotal_moment_outcome_animation - type widget_pivotal_moment_event_window = widget_activity_locale_fullscreen_event { - datacontext = "[ActivityLocaleWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[EventWindowViewInsert.HasOpenEvent]" - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiWidget.FindChild( 'event_video' ).GfxVideoControl.Restart]" - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - blockoverride "fullscreen_event_attributes" - { - visible = "[Or( Not( EventWindowData.GetEventBackgroundData.HasVideo ), PdxGuiWidget.AccessParent.FindChild( 'event_video' ).GfxVideoControl.IsPlaybackComplete )]" - - state = { - name = _show - using = Animation_Curve_Default - duration = 1 - alpha = 1 - } - } - blockoverride "event_transition_picture_properties" - { - parentanchor = center - using = PivotalMomentTransitionAnimation - - state = { - name = activity_event_appear - alpha = 1 - scale = 1.25 - next = transition_still - } - } - blockoverride "event_transition_video_properties" - { - parentanchor = center - loop = no - restart_on_show = yes - } - - video_icon = { - name = "shrouded_event_effect" - video = "gfx/interface/component_masks/animated_masks/contest_reveal_fin.bk2" - size = { 100% 100% } - loop = no - restart_on_show = yes - } - } -} - -template PivotalMomentTransitionAnimation -{ - state = { - name = transition_still - trigger_on_create = yes - next = transition_zoom - scale = 1.25 - bezier = { 0.25 0.1 0.25 1 } - } - state = { - delay = 2.5 - name = transition_zoom - duration = 2 - scale = 1 - bezier = { 0.25 0.1 0.25 1 } - } -} diff --git a/N3OW/gui/activity_window_widgets/trait_rewards.gui b/N3OW/gui/activity_window_widgets/trait_rewards.gui deleted file mode 100644 index ac6032e4..00000000 --- a/N3OW/gui/activity_window_widgets/trait_rewards.gui +++ /dev/null @@ -1,23 +0,0 @@ -hbox = { - name = "trait_rewards" - margin = { 16 16 } - spacing = 4 - - datacontext = "[ActivityWindow.GetActivity]" - datacontext = "[GetPlayer]" - - hbox = { - datamodel = "[Activity.MakeScope.GetList( 'trait_rewards' )]" - - item = { - icon_trait = { - datacontext = "[Scope.Trait]" - - blockoverride "icon_size" - { - size = { 90 90 } - } - } - } - } -} diff --git a/N3OW/gui/applicationutils/screenshot.gui b/N3OW/gui/applicationutils/screenshot.gui deleted file mode 100644 index 8f2c413f..00000000 --- a/N3OW/gui/applicationutils/screenshot.gui +++ /dev/null @@ -1,37 +0,0 @@ -vbox = { - name = "screenshotutils_window" - layer = confirmation - - widget = { - layoutpolicy_horizontal = Expanding - layoutpolicy_vertical = Expanding - layoutstretchfactor_vertical = 20 - - text_label_center = { - name = "screenshot_text" - text = "SCREENSHOT_TAKEN" - parentanchor = center|hcenter - position = { 0 -20 } - } - - } -} - -vbox = { - name = "screenshot_map_window" - layer = confirmation - - widget = { - layoutpolicy_horizontal = Expanding - layoutpolicy_vertical = Expanding - layoutstretchfactor_vertical = 20 - - text_label_center = { - name = "screenshot_text" - text = "MAP_SCREENSHOT_TAKEN" - parentanchor = center|hcenter - position = { 0 -20 } - } - - } -} diff --git a/N3OW/gui/console.gui b/N3OW/gui/console.gui deleted file mode 100644 index 6d235543..00000000 --- a/N3OW/gui/console.gui +++ /dev/null @@ -1,725 +0,0 @@ -textbox = { - name = "console_output_item" - maximumsize = { 389 -1 } - align = left|top - using = editor_font - multiline = yes - autoresize = yes - alwaystransparent = no - fontsize = 15 - pseudo_localization_enabled = no -} - -flowcontainer = { - name = "console_window" - parentanchor = left|vcenter - position = { 20 0 } - alwaystransparent = no - filter_mouse = all - layer = confirmation - direction = vertical - spacing = 2 - ignoreinvisible = yes - allow_outside = yes - - flowcontainer = { - spacing = 3 - ignoreinvisible = yes - allow_outside = yes - - margin_widget = { - size = { 400 510 } - margin = { 10 5 } - - using = dockable_background - - scrollarea = { - name = "console_output_scrollarea" - size = { 389 500 } - - scrollwidget = { - flowcontainer = { - name = "console_output" - direction = "vertical" - ignoreinvisible = no - - # Help-text to be super-helpful - editor_textbox = { - maximumsize = { 389 -1 } - align = left|top - multiline = yes - autoresize = yes - alwaystransparent = no - fontsize = 13 - pseudo_localization_enabled = no - raw_text = "#weak;italic Use 'help ' for information, and or to autocomplete commands and arguments." - } - } - } - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollbar_horizontal = { - using = editor_horizontal_scrollbar - } - } - } - - dockable_button = { - size = { 24 24 } - raw_text = "M" - onclick = "[ConsoleWindow.ToggleMenu]" - } - - flowcontainer = { - name = "menu" - visible = "[ConsoleWindow.IsMenuShown]" - spacing = 3 - - scrollarea = { - name = "menu_scroll_area" - size = { 200 505 } - scrollbarpolicy_horizontal = always_off - - # background = { - # using = Debug_Background_Dark - # } - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "menu_grid" - addcolumn = 150 - addrow = 24 - - item = { - container = { - - icon = { - visible = "[ConsoleMenuItem.IsCurrentGroup]" - position = { 0 0 } - size = { 106 28 } - } - - dockable_button = { - position = { 3 3 } - size = { 180 22 } - onclick = "[ConsoleMenuItem.Select]" - - text = "[ConsoleMenuItem.GetName]" - - tooltip = "[ConsoleMenuItem.GetHelp]" - using = tooltip_es - } - } - } - } - } - } - - scrollarea = { - name = "command_scroll_area" - size = { 400 505 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "command_grid" - position = { 0 0 } - addcolumn = 400 - addrow = 29 - - item = { - dockable_button = { - size = { 400 24 } - onclick = "[ConsoleMenuItem.Select]" - tooltip = "[ConsoleMenuItem.GetHelp]" - text = "[ConsoleMenuItem.GetName]" - } - } - } - } - } - } - } - - editor_textinput = { - name = "console_edit" - size = { 400 40 } - margin = { 5 0 } - alwaystransparent = no - focuspolicy = all - fontsize = 15 - } - - spacer = { - size = { 3 3 } - } - - window = { - name = "toolbars_window" - movable = no - size = { 400 180 } - - using = dockable_background - - vbox = { - margin = { 10 5 } - margin_bottom = 10 - - restrictparent_min = yes - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 5 } - - expand = {} - - dockable_button = { - name = "run_file_button" - onclick = "[ExecuteConsoleCommand('run run.txt')]" - raw_tooltip = "Run file #weak (Edit Run.txt to change what this button does)#!" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - size = { 30 30 } - texture = "gfx/interface/icons/character_interactions/send_poem_interaction.dds" - } - } - - dockable_button = { - name = "save_button" - onclick = "[ExecuteConsoleCommand('save_every 5')]" - onrightclick = "[ExecuteConsoleCommand('save_every 15')]" - button_ignore = none - - raw_tooltip = "Left-click: Create a Save every 5 years, Right-click: Create a Save every 15 years" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 25 25 } - texture = "gfx/interface/icons/court_position_types/chronicler_court_position.dds" - } - } - - dockable_button = { - name = "ai_observe_button" - onclick = "[ExecuteConsoleCommand('observe')]" - raw_tooltip = "Go into Observe Mode" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - size = { 25 25 } - texture = "gfx/interface/icons/icon_commander_trait.dds" - } - } - - dockable_button = { - name = "ai_console_button" - onclick = "[ExecuteConsoleCommand('AI.ToggleAll')]" - raw_tooltip = "Enable/Disable the AI for all characters" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - size = { 25 25 } - texture = "gfx/interface/icons/icon_group_of_characters.dds" - } - } - - dockable_button = { - name = "yesmen_console_button" - onclick = "[ExecuteConsoleCommand('yesmen')]" - onrightclick = "[ExecuteConsoleCommand('yesmen_instant')]" - button_ignore = none - raw_tooltip = "Enable/Disable Yesmen. Right-click for instant interaction responses" - using = tooltip_ne - - icon = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - - icon = { - name = "gold_negative_console_button_minus" - position = { 4 7 } - size = { 23 23 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - } - } - - dockable_button = { - name = "renown_console_button" - onclick = "[ExecuteConsoleCommand('effect dynasty = { add_dynasty_prestige = 1000 }')]" - onrightclick = "[ExecuteConsoleCommand('effect dynasty = { add_dynasty_prestige = -1000 }')]" - button_ignore = none - raw_tooltip = "Left-click: Gain 1000 Renown, Right-click: Lose 1000 Renown" - using = tooltip_ne - - icon = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_03.dds" - } - } - - dockable_button = { - name = "legitimacy_console_button" - onclick = "[ExecuteConsoleCommand('effect add_legitimacy = 100')]" - onrightclick = "[ExecuteConsoleCommand('effect add_legitimacy = -100')]" - button_ignore = none - raw_tooltip = "Left-click: Gain 100 Legitimacy, Right-click: Lose 100 Legitimacy" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/legitimacy_types/_default.dds" - } - } - - dockable_button = { - name = "prestige_console_button" - onclick = "[ExecuteConsoleCommand('prestige 1000')]" - onrightclick = "[ExecuteConsoleCommand('prestige -1000')]" - button_ignore = none - - raw_tooltip = "Left-click: Gain 1000 Prestige, Right-click: Lose 1000 Prestige" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/icon_prestige_04.dds" - } - } - - dockable_button = { - name = "piety_console_button" - onclick = "[ExecuteConsoleCommand('piety 1000')]" - onrightclick = "[ExecuteConsoleCommand('piety -1000')]" - button_ignore = none - raw_tooltip = "Left-click: Gain 1000 Piety, Right-click: Lose 1000 Piety" - using = tooltip_ne - - icon = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/icon_piety_christian_04.dds" - } - } - - dockable_button = { - name = "gold_console_button" - onclick = "[ExecuteConsoleCommand('gold 5000')]" - onrightclick = "[ExecuteConsoleCommand('gold -5000')]" - button_ignore = none - raw_tooltip = "Left-click: Gain 5000 Gold, Right-click: Lose 5000 Gold" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 5 } - - expand = {} - - dockable_button = { - name = "kill_console_button" - onclick = "[ExecuteConsoleCommand('kill')]" - raw_tooltip = "Kill Currently Played Character" - using = tooltip_ne - - icon = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/icon_dead.dds" - } - } - - dockable_button = { - name = "instabuild_button" - onclick = "[ExecuteConsoleCommand('instabuild')]" - raw_tooltip = "Build buildings instantly, click again to turn off" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - size = { 35 35 } - texture = "gfx/interface/icons/icon_holding_city.dds" - } - } - - dockable_button = { - name = "tech_button" - onclick = "[ExecuteConsoleCommand('discover_all_eras')]" - raw_tooltip = "Discover all Innovations" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - size = { 35 35 } - texture = "gfx/interface/icons/message_feed/technology.dds" - } - } - - dockable_button = { - name = "perks_button" - onclick = "[ExecuteConsoleCommand('gain_all_perks')]" - raw_tooltip = "Gain all Lifestyle Perks" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 1 1 } - framesize = { 60 60 } - frame = 2 - size = { 25 25 } - texture = "gfx/interface/icons/lifestyles_perks/node_diplomacy.dds" - } - } - - dockable_button = { - name = "birth_button" - onclick = "[ExecuteConsoleCommand('instant_birth')]" - button_ignore = none - raw_tooltip = "Instant Birth, click again to disable" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/traits/born_in_the_purple.dds" - } - } - - dockable_button = { - name = "legacies_button" - onclick = "[ExecuteConsoleCommand('gain_all_dynasty_perks')]" - button_ignore = none - raw_tooltip = "Gain all Dynasty Legacies" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 25 25 } - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_05.dds" - } - } - - dockable_button = { - name = "stress_button" - onclick = "[ExecuteConsoleCommand('add_stress 50')]" - onrightclick = "[ExecuteConsoleCommand('add_stress -50')]" - button_ignore = none - raw_tooltip = "Left-click: Gain 50 Stress, Right-click: Lose 50 Stress" - using = tooltip_ne - - icon = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/stress/icon_stress.dds" - } - } - - dockable_button = { - name = "influence_console_button" - onclick = "[ExecuteConsoleCommand('influence 1000')]" - onrightclick = "[ExecuteConsoleCommand('influence -1000')]" - button_ignore = none - - raw_tooltip = "Left-click: Gain 1000 Influence, Right-click: Lose 1000 Influence" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/icon_influence_04.dds" - } - } - - dockable_button = { - name = "herd_console_button" - onclick = "[ExecuteConsoleCommand('effect domicile = { change_herd = 1000 }')]" - onrightclick = "[ExecuteConsoleCommand('effect domicile = { change_herd = -1000 }')]" - button_ignore = none - - raw_tooltip = "Left-click: Gain 1000 Herd, Right-click: Lose 1000 Herd" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/icon_herd.dds" - } - } - - dockable_button = { - name = "barter_goods_console_button" - onclick = "[ExecuteConsoleCommand('change_barter_goods 1000')]" - onrightclick = "[ExecuteConsoleCommand('change_barter_goods -1000')]" - button_ignore = none - - raw_tooltip = "Left-click: Gain 1000 Barter Goods, Right-click: Lose 1000 Barter Goods" - using = tooltip_ne - - icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "gfx/interface/icons/icon_barter.dds" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Environment" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui environment_debug_window')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Switch between environment lighting cubemaps" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Tweak" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui tweak_window')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Show Tweakable Values" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Portrait Editor" - onclick = "[ExecuteConsoleCommand('pe')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Portrait Editor" - } - - dockable_button = { - size = { 40 30 } - raw_text = "Purge" - onclick = "[ExecuteConsoleCommand('PurgePortraits')]" - tintcolor = { 1 0.5 0.1 0.8 } - raw_tooltip = "Purge Portrait cache" - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Language" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui language_window')]" - tintcolor = { 200 20 0 0.8 } - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Court" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui court_debug_menu')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Court debug menu" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Map" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui map_debug_menu')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Map Object debug menu" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Flag Preview" - onclick = "[ExecuteConsoleCommand('gui.CreateDockable gui/debug/debug_menus.gui flag_preview_window')]" - tintcolor = { 200 20 0 0.8 } - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Watch Windows" - onclick = "[ExecuteConsoleCommand('watch')]" - tintcolor = { 1 0.5 0.1 0.8 } - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Explore Objects" - onclick = "[ExecuteConsoleCommand('explorer')]" - tintcolor = { 1 0.5 0.1 0.8 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Reload Textures" - onclick = "[ExecuteConsoleCommand('reload texture')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "Reload all game textures from disk" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Animation Info" - onclick = "[ExecuteConsoleCommand('Portrait.Animation.Info')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "List what animations are playing in the character tooltip" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "GUI Editor" - onclick = "[ExecuteConsoleCommand('gui_editor')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "Visualize and edit GUI widgets" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Gui.Debug" - onclick = "[ExecuteConsoleCommand('Gui.Debug')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "Visualize GUI widgets" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - #dockable_button = { - # layoutpolicy_horizontal = expanding - # size = { 0 30 } - # raw_text = "Test Window" - # onclick = "[ExecuteConsoleCommand('gui.CreateWidget gui/debug/test_gui.gui test_window')]" - # tintcolor = { 0.9 0.9 0 0.8 } - # raw_tooltip = "Window for GUI testing (test_gui.gui)" - #} - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Script Profiler" - onclick = "[ExecuteConsoleCommand('Script.Profiling.Gui')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "Tool for profiling script performance" - } - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "UI Library" - onclick = "[ExecuteConsoleCommand('GUI.CreateWidget gui/debug/window_component_library.gui component_library_window')]" - tintcolor = { 0.9 0.9 0 0.8 } - raw_tooltip = "Open UI Library" - visible = "[Not(ReleaseMode)]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - dockable_button = { - layoutpolicy_horizontal = expanding - size = { 0 30 } - raw_text = "Debug Mode" - onclick = "[ExecuteConsoleCommand('debug_mode')]" - tintcolor = { 1.0 0.5 1.0 0.8 } - raw_tooltip = "Enter/Exit Debug Mode" - - editor_textbox = { - visible = "[InDebugMode]" - parentanchor = right|vcenter - position = { -11 0 } - align = right|nobaseline - raw_text = "Active" - default_format = "#low" - autoresize = yes - - background = { - texture = "gfx/interface/_debug/pink_square_chill.png" - spriteType = Corneredtiled - spriteborder = { 1 1 } - margin = { 6 1 } - } - } - } - - dockable_button = { - visible = "[IsDefaultGUIMode]" - size = { 150 30 } - raw_text = "Toggle Release Mode" - onclick = "[ExecuteConsoleCommand('release_mode')]" - tintcolor = { 0.5 0.5 0.5 0.8 } - raw_tooltip = "Toggles build number, Error Horse, FPS Warning visibility in HUD" - } - } - } - } -} diff --git a/N3OW/gui/credits_window.gui b/N3OW/gui/credits_window.gui deleted file mode 100644 index 885faea9..00000000 --- a/N3OW/gui/credits_window.gui +++ /dev/null @@ -1,203 +0,0 @@ -margin_widget = { - name = "JominiCreditsWindow" - parentanchor = vcenter|hcenter - size = { 100% 100% } - allow_outside = yes - alwaystransparent = yes - margin = { 150 0 } - - state = { - name = _show - on_start = "[CreditsWindow.OnSlower]" - next = "auto_scrollbar" - } - - state = { - name = "auto_scrollbar" - delay = 1 - on_finish = "[CreditsWindow.OnTogglePause]" - } - - scrollarea = { - name = "credits_scroll_area" - parentanchor = center - size = { 100% 100% } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - scrollbar = { - name = "vertical_scrollbar" - wheelstep = 60 - direction = vertical - - track = { - button = {} - } - - slider = { - button = {} - } - - dec_button = { - button = {} - } - - inc_button = { - button = {} - } - } - } - - scrollwidget = { - container = { - parentanchor = top|hcenter - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - - delay = 0 - duration = 2 - alpha = 1 - } - - gridbox_credits_portraits = { - position = { 100 400 } - datamodel = "[GetCreditPortraitsForGroup( 'left' )]" - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - - delay = 0 - duration = 2 - alpha = 1 - } - } - - gridbox_credits_portraits = { - position = { 850 700 } - datamodel = "[GetCreditPortraitsForGroup( 'right' )]" - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - - delay = 0 - duration = 2 - alpha = 1 - } - } - - # The single textbox that contains the entire credits - textbox = { - parentanchor = top|hcenter - position = { -0 100 } - font = StandardGameFont - default_format = "#credits_entries" - align = center - autoresize = yes - multiline = yes - max_width = 1400 - text = "[CreditsWindow.GetCredits]" - } - } - } - } - - button_tertiary = { - visible = "[Not( CreditsWindow.HasReachedEnd )]" - name = "toggle_pause_button" - parentanchor = bottom|left - position = { 0 -20 } - size = { 120 25 } - text = "[SelectLocalization(CreditsWindow.IsPaused,'CREDITS_CONTINUE','CREDITS_PAUSE')]" - - onclick = "[CreditsWindow.OnTogglePause]" - } -} - -types FrontEndCreditsView -{ - # This widget is the background, it's added by code magic - type JominiFrontEndCreditsView = widget { - name = "JominiFrontEndCreditsView" - parentanchor = center - size = { 1920 1200 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - background = { - texture = "gfx/interface/illustrations/frontend/credits.dds" - fittype = centercrop - } - - button_primary = { - name = "back_button" - parentanchor = bottom|left - position = { 20 -20 } - size = { 120 25 } - text = "CREDITS_BACK" - shortcut = "close_window" - onclick = "[FrontEndCreditsView.OnBack]" - } - } - - type gridbox_credits_portraits = fixedgridbox { - addcolumn = 500 - addrow = 500 - - item = { - widget = { - size = { 450 450 } - - icon = { - size = { 100% 95% } - texture = "[CreditPortraitData.GetBookmarkPortrait.GetPortrait( 'environment_body', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self ) )]" - - modify_texture = { - texture = "gfx/portraits/portrait_mask_event_letter.dds" - blend_mode = alphamultiply - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -50 } - text = "[CreditPortraitData.GetText]" - default_format = "#credits_subheader" - } - } - } - } -} diff --git a/N3OW/gui/debug/ai_war_coordinator_watch_window.gui b/N3OW/gui/debug/ai_war_coordinator_watch_window.gui deleted file mode 100644 index 65561d6a..00000000 --- a/N3OW/gui/debug/ai_war_coordinator_watch_window.gui +++ /dev/null @@ -1,352 +0,0 @@ -window = { - using = editor_window - name = "ai_war_coordinator_watch_window" - parentanchor = top|left - size = { 50% 600 } - position = { 50% 50% } - widgetanchor = center - layer = top - - margin_widget = { - size = { 100% 25 } - margin = { 4 4 } - widgetanchor = top - - hbox = { - spacing = 4 - - button = { - using = editor_button - size = { 150 25 } - raw_text = "[SelectLocalization( AIWarCoordinatorWatchWindow.IsAllAttackersActive, 'Disable All Attackers', 'Enable All Attackers' )]" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.ToggleAllAttackers]" - } - - button = { - using = editor_button - size = { 150 25 } - raw_text = "[SelectLocalization( AIWarCoordinatorWatchWindow.IsAllDefendersActive, 'Disable All Defenders', 'Enable All Defenders' )]" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.ToggleAllDefenders]" - } - - button = { - using = editor_button - size = { 150 25 } - raw_text = "Reset All Shown Units" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.ResetAllShownUnits]" - } - - button = { - using = editor_button - size = { 150 25 } - raw_text = "Rebuild List" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.RebuildWarInfos]" - } - - expand = { } - } - } - - button = { - using = editor_button - name = "close_button" - position = { -4 5 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.Close]" - shortcut = "close_window" - } - - button = { - using = editor_button - position = { -28 5 } - size = { 20 20 } - parentanchor = top|right - raw_text = "-" - align = center|nobaseline - onclick = "[AIWarCoordinatorWatchWindow.Minimize]" - } - - scrollarea = { - position = { 1% 60 } - size = { 98% 535 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - vbox = { - name = "war_grid" - datamodel = "[AIWarCoordinatorWatchWindow.AccessWarInfoItems]" - position = { 0 0 } - - item = { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 8 - - background = { - using = Background_Frame - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 12 12 } - - background = { - using = Background_Area - } - - text_single = { - fontsize = 14 - align = left|top - autoresize = yes - text = "[WarInfo.GetWar.GetName]" - } - - expand = {} - - button = { - size = { 60 24 } - raw_text = "Show" - onclick = "[WarInfo.ToggleCollapsed]" - visible = "[WarInfo.IsCollapsed]" - - using = editor_button - } - - button = { - size = { 60 24 } - raw_text = "Hide" - onclick = "[WarInfo.ToggleCollapsed]" - visible = "[Not( WarInfo.IsCollapsed )]" - - using = editor_button - } - } - - hbox = { - visible = "[Not( WarInfo.IsCollapsed )]" - margin_bottom = 12 - spacing = 50 - - # Test info - war_coordinator_info = { - datacontext = "[WarInfo.AccessGuiAttackerAiWarCoordinator]" - blockoverride "type" { - raw_text = "Attacker:" - } - } - - divider = { - layoutpolicy_vertical = expanding - } - - war_coordinator_info = { - datacontext = "[WarInfo.AccessGuiDefenderAiWarCoordinator]" - blockoverride "type" { - raw_text = "Defender:" - } - } - } - } - } - } - } - } -} - -window = { - using = editor_window - name = "unit_watch_window" - parentanchor = top|left - size = { 350 300 } - position = { 50% 50% } - widgetanchor = center - layer = top - - button = { - using = editor_button - name = "close_button" - position = { -4 5 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[AIUnitWatchWindow.Close]" - shortcut = "close_window" - } - - scrollarea = { - position = { 5 30 } - size = { 340 265 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - datamodel = "[AIUnitWatchWindow.AccessUnits]" - size = { 100% 100% } - position = { 0 0 } - addcolumn = 100% - addrow = 50 - maxhorizontalslots = 1 - - item = { - widget = { - size = { 100% 50 } - unit_info = { } - } - } - } - } - } -} - -types WarCoordinatorWatchWindow -{ - type war_coordinator_info = vbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - visible = "[GuiAIWarCoordinator.IsValid]" - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - textbox = { - fontsize = 14 - align = left|top - autoresize = yes - block "type" { - } - } - - button = { - using = editor_button - size = { 80 25 } - raw_text = "[SelectLocalization( GuiAIWarCoordinator.IsActive, 'Disable', 'Enable' )]" - align = center|nobaseline - onclick = "[GuiAIWarCoordinator.ToggleActivity]" - } - - button = { - using = editor_button - size = { 80 25 } - raw_text = "[SelectLocalization( GuiAIWarCoordinator.IsShown, 'Hide', 'Show' )]" - align = center|nobaseline - onclick = "[GuiAIWarCoordinator.ToggleVisibility]" - } - - button = { - using = editor_button - size = { 80 25 } - raw_text = "Show Units" - align = center|nobaseline - visible = "[GuiAIWarCoordinator.IsShown]" - onclick = "[GuiAIWarCoordinator.ShowUnitsList]" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "AI War Stance: #bold [GuiAIWarCoordinator.GetStance]#!" - using = Font_Size_Tiny - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "[SelectLocalization( GuiAIWarCoordinator.IsDesperate, 'Is Desperate', 'Is #bold NOT#! Desperate' )]" - using = Font_Size_Tiny - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "Strength (Current/Max): [GuiAIWarCoordinator.GetCurrentStrength]/[GuiAIWarCoordinator.GetMaxStrength]" - using = Font_Size_Tiny - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "Cached Strength (Allied/Enemy): [GuiAIWarCoordinator.GetCachedStrength]/[GuiAIWarCoordinator.GetCachedEnemyStrength]" - using = Font_Size_Tiny - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "Power (Current/Max): [GuiAIWarCoordinator.GetCurrentPower|0]/[GuiAIWarCoordinator.GetMaxPower|0]" - using = Font_Size_Tiny - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left|top - raw_text = "Cached Power (Allied/Enemy): [GuiAIWarCoordinator.GetCachedPower|0]/[GuiAIWarCoordinator.GetCachedEnemyPower|0]" - using = Font_Size_Tiny - } - } - } -} - -types UnitWatchWindow -{ - type unit_info = hbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - visible = "[GuiUnitInfo.IsValid]" - - button = { - using = editor_button - tooltip = "[GuiUnitInfo.GetWarName]" - size = { 100 25 } - raw_text = "[GuiUnitInfo.GetId]" - align = center|nobaseline - onclick = "[GuiUnitInfo.PanToUnit]" - } - - textbox = { - fontsize = 14 - align = left|top - autoresize = yes - raw_text = "[GuiUnitInfo.GetOwnerName]" - } - - expand = {} - } -} \ No newline at end of file diff --git a/N3OW/gui/debug/animation_test_window.gui b/N3OW/gui/debug/animation_test_window.gui deleted file mode 100644 index edb95c07..00000000 --- a/N3OW/gui/debug/animation_test_window.gui +++ /dev/null @@ -1,279 +0,0 @@ -template animation_test_portrait -{ - using = pe_torso_button_template - alwaystransparent = no - size = { 330 330 } - - background_texture = "gfx/portraits/portrait_transparent.dds" - framesize = { 80 120 } - mask = "gfx/portraits/portrait_editor_mask.dds" -} - -window = { - name = "animation_test_window" - size = { 1600 1050 } - parentanchor = top|right - position = { -80 130 } - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - using = Animation_ShowHide_Standard - - textbox = { - size = { 80 25 } - position = { 50 30 } - fontsize = 16 - using = editor_font - raw_text = "Animation" - } - - blockoverride "button_close" - { - parentanchor = top|right - } - - flowcontainer = { - position = { 30 60 } - direction = horizontal - - dropDown = { - alwaystransparent = no - name = "animations_dropdown" - size = { 250 20 } - datamodel = "[AnimationTestWindow.GetAnimationGroupItems]" - onselectionchanged = "[AnimationTestWindow.SetSelectedAnimationGroup]" - selectedindex = "[AnimationTestWindow.GetSelectedAnimationGroupIndex]" - - active_item = { - widget = { - alwaystransparent = no - size = { 250 20 } - - button = { - size = { 200 20 } - position = { 0 0 } - texture = "gfx/editor_gui/editor_dropdown.dds" - spriteType = CorneredStretched - gfxtype = framedbuttongfx - effectname = "NoHighlight" - spriteborder = { 4 4 } - spriteborder_right = 24 - button_trigger = none - framesize = { 32 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - } - - pe_text = { - text = "[AnimationTestGroupItem.GetName]" - position = { 0 0 } - size = { 200 20 } - } - } - } - - item = { - widget = { - alwaystransparent = no - size = { 180 20 } - - button = { - size = { 180 18 } - texture = "gfx/editor_gui/editor_dropdown_item.dds" - spriteType = CorneredTiled - spriteborder = { 1 1 } - gfxtype = framedbuttongfx - framesize = { 8 8 } - upframe = 1 - downframe = 2 - overframe = 2 - disableframe = 1 - button_trigger = none - } - - pe_text = { - text = "[AnimationTestGroupItem.GetName]" - position = { 16 0 } - size = { 160 18 } - } - } - } - - list = { - scrollarea = { - position = { 15 20 } - maximumsize = { 200 610 } - autoresizescrollarea = yes - - background = { - margin = { 2 2 } - margin_bottom = 6 - margin_right = 6 - texture = "gfx/editor_gui/editor_dropdown_list.dds" - spriteType = CorneredStretched - spriteborder = { 6 6 } - spriteborder_right = 8 - spriteborder_bottom = 8 - shaderfile = "gfx/FX/pdxgui_default.shader" - } - - scrollwidget = { - fixedgridbox = { - alwaystransparent = no - addcolumn = 175 - addrow = 18 - } - } - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - scrollbar_horizontal = { - using = editor_horizontal_scrollbar - } - } - } - } - } - - vbox = { - position = { -20 -40 } - hbox = { - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_female', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Average Female" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_male', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Average Male" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_dwarf_female', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Dwarf Female" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_dwarf_male', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Dwarf Male" - } - } - } - hbox = {#These can be removed if you add positions to the portraits - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_fat_dwarf_female', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Fat Dwarf Female" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_fat_dwarf_male', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Fat Dwarf Male" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_female_pregnant', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Pregnant Female(9 months)" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_muscular_female', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Muscular Female" - } - } - } - - hbox = {#These can be removed if you add positions to the portraits - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_muscular_male', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Muscular Male" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_female_child', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Children Female" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_male_child', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Children Male" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_hunchbacked_female', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Hunchbacked female" - } - } - - vbox = { - button = { - using = animation_test_portrait - portrait_texture = "[GetAnimatedBookmarkPortrait('bookmark_animation_test_hunchbacked_male', AnimationTestWindow.GetSelectedAnimationGroup,'environment_body', 'camera_lifestyles', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - text_label_center = { - raw_text = "Hunchbacked Male" - } - } - } - } -} - diff --git a/N3OW/gui/debug/debug_menus.gui b/N3OW/gui/debug/debug_menus.gui deleted file mode 100644 index 404d4bef..00000000 --- a/N3OW/gui/debug/debug_menus.gui +++ /dev/null @@ -1,1533 +0,0 @@ -# OPEN WITH: gui.CreateDockable gui/debug_menus.gui toolbars_window§ -template editor_text -{ - font = StandardGameFont - fontsize = 13 - fontcolor = { 1 1 1 1 } -} - -widget = { - name = "language_window" - position = { 50 50 } - size = { 600 80 } - layer = debug - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - vbox = { - restrictparent_min = yes - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - raw_text = "Switch Languages" - layoutpolicy_horizontal = expanding - autoresize = yes - } - } - - hbox = { - margin = { 5 5 } - spacing = 3 - using = dockable_background - - dockable_button = { - size = { 150 35 } - raw_text = "English" - onclick = "[ExecuteConsoleCommand('switchlanguage english')]" - } - - dockable_button = { - size = { 150 35 } - raw_text = "Latin" - onclick = "[ExecuteConsoleCommand('switchlanguage latin')]" - } - - dockable_button = { - size = { 150 35 } - raw_text = "German" - onclick = "[ExecuteConsoleCommand('switchlanguage german')]" - } - - dockable_button = { - size = { 150 35 } - raw_text = "French" - onclick = "[ExecuteConsoleCommand('switchlanguage french')]" - } - } - } -} - -window = { - name = "environment_debug_window" - size = { 355 220 } - position = { 630 300 } - layer = debug - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - vbox = { - restrictparent_min = yes - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Lighting environments" - } - } - - hbox = { - margin = { 5 5 } - spacing = 3 - - using = dockable_background - - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - editor_textbox = { - autoresize = yes - raw_text = "Environment Settings" - fontcolor = { 1 1 1 0.5 } - } - - dockable_button = { - size = { 180 30 } - raw_text = "Standard" - onclick = "[ExecuteConsoleCommand('Environment.Debug.LoadEnvironment gfx/map/environment/environment.txt')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Top Left Sun" - onclick = "[ExecuteConsoleCommand('Environment.Debug.LoadEnvironment gfx/map/environment/environment_top_left.txt')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Bottom Left Sun" - onclick = "[ExecuteConsoleCommand('Environment.Debug.LoadEnvironment gfx/map/environment/environment_bottom_left.txt')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "CE2" - onclick = "[ExecuteConsoleCommand('Environment.Debug.LoadEnvironment gfx/map/environment/environment_ce2.txt')]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - editor_textbox = { - autoresize = yes - raw_text = "Portrait Environments" - fontcolor = { 1 1 1 0.5 } - } - - dockable_button = { - size = { 180 30 } - raw_text = "Portrait Standard" - onclick = "[ExecuteConsoleCommand('PortraitEnv.Debug.LoadEnvironment gfx/portraits/jomini_environment.txt')]" - } - - # dockable_button = { - # size = { 180 30 } - # raw_text = "Old" - # onclick = "[ExecuteConsoleCommand('PortraitEnv.Debug.LoadEnvironment gfx/portraits/jomini_environment_old.txt')]" - # } - - dockable_button = { - size = { 180 30 } - raw_text = "Portrait Neutral" - onclick = "[ExecuteConsoleCommand('PortraitEnv.Debug.LoadEnvironment gfx/portraits/jomini_environment_neutral.txt')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Purge Portrait Cache" - onclick = "[ExecuteConsoleCommand('PurgePortraits')]" - tintcolor = { 1 0.5 0.1 0.8 } - raw_tooltip = "Purge Portrait cache" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Toggle Tonemap Curve" - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_TONEMAP_CURVE')]" - tintcolor = { 200 20 0 0.8 } - raw_tooltip = "Toggle Tonemap Curve" - } - } - } - } -} - -window = { - name = "map_debug_menu" - size = { 630 390 } - #parentanchor = top|right - layer = debug - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - flowcontainer = { - parentanchor = center - spacing = 3 - - flowcontainer = { - direction = vertical - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - raw_text = "Camera" - autoresize = yes - fontcolor = { 0.1 .7 0.75 1 } - } - } - dockable_button = { - size = { 150 28 } - raw_text = "England" - onclick = "[ExecuteConsoleCommand('camera.settransform 813 0 3337 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "Spain" - onclick = "[ExecuteConsoleCommand('camera.settransform 769 0 2326 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "Norway" - onclick = "[ExecuteConsoleCommand('camera.settransform 1573 0 3896 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "Africa" - onclick = "[ExecuteConsoleCommand('camera.settransform 2875 0 1313 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "HRE" - onclick = "[ExecuteConsoleCommand('camera.settransform 1297 0 3113 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "Steppe" - onclick = "[ExecuteConsoleCommand('camera.settransform 5014 0 3028 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "India North" - onclick = "[ExecuteConsoleCommand('camera.settransform 5106 0 1523 300 72 0')]" - } - dockable_button = { - size = { 150 28 } - raw_text = "India South" - onclick = "[ExecuteConsoleCommand('camera.settransform 5156 0 1102 300 72 0')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Free Camera" - raw_tooltip = "Unlock the camera constraints while holding the right mouse button" - onclick = "[ExecuteConsoleCommand('Camera.Restrictions')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/compass_positive.dds" - } - } - dockable_button = { - size = { 150 28 } - raw_text = "Debug info" - raw_tooltip = "Show Camera debug values in the top right" - onclick = "[ExecuteConsoleCommand('Camera.Debug')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/compass_positive.dds" - } - } - } - - flowcontainer = { - direction = vertical - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - raw_text = "General" - autoresize = yes - fontcolor = { 0.1 .7 0.75 1 } - } - } - dockable_button = { - size = { 150 28 } - raw_text = "3D Stats" - raw_tooltip = "Show CPU/GPU stats and performance" - - onclick = "[ExecuteConsoleCommand('3dstats')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/travel_speed_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Reload Assets" - raw_tooltip = "Reloads all asset files" - onclick = "[ExecuteConsoleCommand('reload assets')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/magic_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Reload Texture" - raw_tooltip = "Reloads all texture files" - onclick = "[ExecuteConsoleCommand('reload texture')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/magic_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Reload Terrain" - raw_tooltip = "Reload all Terrain files" - onclick = "[ExecuteConsoleCommand('reload terrain')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/magic_positive.dds" - } - } - #Purpose unknown - # dockable_button = { - # size = { 150 28 } - # raw_text = "Add Map Objects" - # onclick = "[ExecuteConsoleCommand('gui.createwidget gui/debug_menus.gui map_object_menu')]" - # } - - dockable_button = { - size = { 150 28 } - raw_text = "Map Modes" - raw_tooltip = "Access the special map mode menu" - onclick = "[ExecuteConsoleCommand('Dockables.Create GameMapModeSelector')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/intrigue_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Map Editor" - raw_tooltip = "Intialize Map Editor (No guaranteed return from this mode)" - onclick = "[ExecuteConsoleCommand('Dockables.Create GameMapModeSelector')]" - - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/rock_positive.dds" - } - } - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - raw_text = "Debug Names" - autoresize = yes - fontcolor = { 0.5 1 0.2 1 } - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Entity" - raw_tooltip = "Show entity names" - onclick = "[ExecuteConsoleCommand('entity.info')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/wit_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Mesh" - raw_tooltip = "Show mesh names" - onclick = "[ExecuteConsoleCommand('mesh.info')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/grandeur_positive.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Texture" - raw_tooltip = "Show texture names" - onclick = "[ExecuteConsoleCommand('mesh.texturenames')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/magic_negative.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Joint" - raw_tooltip = "Show skeletal joint names (When reeeeeally zoomed in)" - onclick = "[ExecuteConsoleCommand('mesh.jointnames')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/magic_positive.dds" - } - } - } - - - flowcontainer = { - direction = vertical - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - autoresize = yes - raw_text = "Show On/Off" - fontcolor = { 0.75 .2 .2 1 } - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Fog of War" - raw_tooltip = "Toggle Fog of War" - onclick = "[ExecuteConsoleCommand('FogOfWar.Enable')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/traits/calm.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Borders" - raw_tooltip = "Borders" - onclick = "[ExecuteConsoleCommand('Border.Draw')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/message_feed/alliance.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Gradient Borders" - raw_tooltip = "Toggle gradient borders and fills" - onclick = "[ExecuteConsoleCommand('GradientBorders.Enable')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/message_feed/generic_good_effect.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Rivers" - raw_tooltip = "Toggle rivers" - onclick = "[ExecuteConsoleCommand('Draw.Rivers')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/combat_effects/defender_river.dds" - } - } - dockable_button = { - size = { 150 28 } - raw_text = "Ocean" - raw_tooltip = "Toggle Ocean" - onclick = "[ExecuteConsoleCommand('Draw.Water')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/terrain_types/sea.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Bloom" - raw_tooltip = "Toggle Bloom" - onclick = "[ExecuteConsoleCommand('Draw.Bloom')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/war_status/war_won_icon.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Map names" - raw_tooltip = "Toggle map names" - onclick = "[ExecuteConsoleCommand('Draw.MapNames')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/traits/stuttering.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Map Objects" - raw_tooltip = "Toggle map objects" - onclick = "[ExecuteConsoleCommand('Draw.MapObjects')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/vassal_stances/barons_and_minor_landholders.dds" - } - } - - #No roads in CK3 - dockable_button = { - size = { 150 28 } - raw_text = "Roads" - raw_tooltip = "No roads in CK3" - onclick = "[ExecuteConsoleCommand('Draw.Roads')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/travel/icon_travel_hud_placeholder.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Shadows" - raw_tooltip = "Toggle Shadows" - onclick = "[ExecuteConsoleCommand('Mesh.DrawShadows')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/message_feed/spy_master.dds" - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Surround Mask" - raw_tooltip = "Toggle surrounding edge fog" - onclick = "[ExecuteConsoleCommand('Draw.Surround')]" - icon = { - parentanchor = left - position = { 0 -1 } - size = { 30 30 } - texture = "gfx/interface/icons/traits/curious.dds" - } - } - } - - flowcontainer = { - direction = vertical - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - autoresize = yes - raw_text = "Tweak" - fontcolor = { 0.75 .35 .65 1 } - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Water" - raw_tooltip = "Tweak water settings" - onclick = "[ExecuteConsoleCommand('tweak water')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Environment" - raw_tooltip = "Tweak environment settings" - onclick = "[ExecuteConsoleCommand('tweak environment')]" - } - - - flowcontainer = { - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - autoresize = yes - raw_text = "Debug" - fontcolor = { 0.75 .35 .65 1 } - } - } - - dockable_button = { - size = { 150 28 } - raw_text = "Collision" - raw_tooltip = "Show collision boxes" - onclick = "[ExecuteConsoleCommand('mesh.collisionmeshes')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Bounding Box" - raw_tooltip = "Show bounding boxes" - onclick = "[ExecuteConsoleCommand('mesh.boundingvolumes')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Normals" - raw_tooltip = "Show normals" - onclick = "[ExecuteConsoleCommand('mesh.normals')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Skeleton" - raw_tooltip = "Show skeleton joints" - onclick = "[ExecuteConsoleCommand('mesh.skeleton')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Mip levels" - raw_tooltip = "Show mip-mapping levels" - onclick = "[ExecuteConsoleCommand('mesh.miplevels')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "LOD Levels" - raw_tooltip = "Show LOD levels" - onclick = "[ExecuteConsoleCommand('Mesh.LodLevels')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Lod Screen" - raw_tooltip = "Show LOD screen percentage" - onclick = "[ExecuteConsoleCommand('Mesh.ScreenPercentage')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Post-FX Volumes" - raw_tooltip = "Show post-effect volumes" - onclick = "[ExecuteConsoleCommand('Draw.DebugPostEffectVolumes')]" - } - - dockable_button = { - size = { 150 28 } - raw_text = "Clear Spawns" - raw_tooltip = "Clear away any custom spawned entities from the map" - onclick = "[ExecuteConsoleCommand('clearspawnedentities')]" - } - } - } -} - - -window = { - name = "flag_preview_window" - size = { 1000 800 } - layer = debug - - datacontext = "[GetVariableSystem]" - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - state = { - name = _show - - on_start = "[GetVariableSystem.Set( 'flag_preview_mode', 'realm' )]" - on_start = "[GetVariableSystem.Set( 'flag_mask_type', 'huge' )]" - } - - vbox = { - hbox = { - margin = { 10 5 } - margin_bottom = 10 - layoutpolicy_horizontal = expanding - - editor_button = { - min_width = 150 - min_height = 30 - - raw_text = "Realm Sizes" - onclick = "[VariableSystem.Set( 'flag_preview_mode', 'realm' )]" - } - - editor_button = { - min_width = 190 - min_height = 30 - - raw_text = "Realm Government Flags" - onclick = "[VariableSystem.Set( 'flag_preview_mode', 'government_masks' )]" - } - - editor_button = { - min_width = 150 - min_height = 30 - - raw_text = "Culture Frames" - onclick = "[VariableSystem.Set( 'flag_preview_mode', 'culture_masks' )]" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = dockable_background - - vbox = { - visible = "[And( IsInGame, VariableSystem.HasValue( 'flag_preview_mode', 'realm' ) )]" - - hbox = { - - coa_realm_huge = { - datacontext = "[GetPlayer]" - } - - coa_realm_big = { - datacontext = "[GetPlayer]" - } - - coa_realm_medium = { - datacontext = "[GetPlayer]" - } - - coa_realm_small = { - datacontext = "[GetPlayer]" - } - } - - hbox = { - spacing = 5 - - icon = { - name = "hourglass" - texture = "gfx/interface/icons/temp_icon_search.dds" - color = { 0.788235 0.643137 0.419608 1 } - size = { 35 35 } - } - - editor_textinput = { - name = "console_edit" - size = { 400 35 } - margin = { 5 0 } - alwaystransparent = no - focuspolicy = all - fontsize = 15 - - # onreturnpressed = "[FindTitleView.OnDone]" - # ontextedited = "[FindTitleView.OnEdit]" - } - } - } - - vbox = { - visible = "[And( IsInGame, VariableSystem.HasValue( 'flag_preview_mode', 'government_masks' ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - margin_bottom = 20 - layoutpolicy_horizontal = expanding - - hbox = { - margin_left = 20 - margin_right = 20 - - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Tiny" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'tiny' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Small" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'small' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Medium" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'medium' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Big" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'big' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Huge" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'huge' )]" - } - } - - coat_of_arms_icon = { - size = { 124 124 } - - block "coa_icon_additions" {} - - block "coat_of_arms" - { - coat_of_arms = "[GetPlayer.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[GetPlayer.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)230','(int32)230')]" - } - coat_of_arms_mask = "gfx/interface/colors/white.dds" - } - - expand = {} - expand = {} - } - - editor_scrollarea = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "content" - { - fixedgridbox = { - datamodel = "[GetAllGovernmentTypes]" - addcolumn = 140 - addrow = 200 - datamodel_wrap = 6 - flipdirection = yes - - item = { - widget = { - min_width = 140 - min_height = 160 - editor_textbox = { - position = { 0 5 } - min_width = 140 - text = "[GovernmentType.GetName]" - align = center - } - coa_realm_tiny = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'tiny' )]" - parentanchor = center - position = { 0 30 } - datacontext = "[GetPlayer]" - blockoverride "government_datacontext" {} - } - coa_realm_small = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'small' )]" - parentanchor = center - position = { 0 30 } - datacontext = "[GetPlayer]" - blockoverride "government_datacontext" {} - } - coa_realm_medium = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'medium' )]" - parentanchor = center - position = { 0 30 } - datacontext = "[GetPlayer]" - blockoverride "government_datacontext" {} - } - coa_realm_big = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'big' )]" - parentanchor = center - position = { 0 30 } - datacontext = "[GetPlayer]" - blockoverride "government_datacontext" {} - } - coa_realm_huge = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'huge' )]" - parentanchor = center - position = { 0 30 } - datacontext = "[GetPlayer]" - blockoverride "government_datacontext" {} - } - } - } - } - } - } - - expand = {} - } - vbox = { - visible = "[And( IsInGame, VariableSystem.HasValue( 'flag_preview_mode', 'culture_masks' ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - margin_bottom = 20 - layoutpolicy_horizontal = expanding - - hbox = { - margin_left = 20 - margin_right = 20 - - editor_button = { - min_width = 120 - min_height = 30 - raw_text = "Microscopic" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'microscopic' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Tiny" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'tiny' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Small" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'small' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Medium" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'medium' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Big" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'big' )]" - } - editor_button = { - min_width = 80 - min_height = 30 - raw_text = "Huge" - onclick = "[VariableSystem.Set( 'flag_mask_type', 'huge' )]" - } - expand = {} - } - - coat_of_arms_icon = { - size = { 124 124 } - - block "coa_icon_additions" {} - - block "coat_of_arms" - { - coat_of_arms = "[GetPlayer.GetHouse.GetHouseCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[GetPlayer.GetHouse.GetHouseCoA.GetSlot('(int32)230','(int32)230')]" - } - coat_of_arms_mask = "gfx/interface/colors/white.dds" - } - - expand = {} - } - - editor_scrollarea = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[GetPlayer.GetDynasty]" - datacontext = "[GetPlayer.GetHouse]" - - blockoverride "content" - { - fixedgridbox = { - datamodel = "[GetAllCultureTemplates]" - addcolumn = 160 - addrow = 200 - datamodel_wrap = 6 - flipdirection = yes - - item = { - widget = { - datacontext = "[CultureTemplate.GetTemplateData]" - - min_width = 140 - min_height = 160 - editor_textbox = { - position = { 0 5 } - min_width = 140 - raw_text = "[CultureTemplate.GetName]" - align = center - } - editor_textbox = { - position = { 0 25 } - min_width = 140 - raw_text = "([CultureTemplateData.GetCultureHouseCoAFrameName])" - align = center - } - coa_house_microscopic = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'microscopic' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - coa_house_tiny = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'tiny' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - coa_house_small = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'small' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - coa_house_medium = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'medium' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - coa_house_big = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'big' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - coa_house_huge = { - visible = "[VariableSystem.HasValue( 'flag_mask_type', 'huge' )]" - parentanchor = center - position = { 0 30 } - blockoverride "culture_template_data_datacontext" {} - } - } - } - } - } - } - - expand = {} - } - - } - } -} - -widget = { - name = "tweak_window" - size = { 200 200 } - layer = debug - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - } - - vbox = { - restrictparent_min = yes - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Tweak" - } - } - - vbox = { - margin = { 5 5 } - spacing = 3 - - using = dockable_background - - dockable_button = { - size = { 180 30 } - raw_text = "Defines" - onclick = "[ExecuteConsoleCommand('tweak NDefines')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Graphics Defines" - onclick = "[ExecuteConsoleCommand('tweak NGraphics')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Audio Defines" - onclick = "[ExecuteConsoleCommand('tweak NAudio')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Rivers" - onclick = "[ExecuteConsoleCommand('tweak river')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Environment" - onclick = "[ExecuteConsoleCommand('tweak environment')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Borders" - onclick = "[ExecuteConsoleCommand('tweak border')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Draw" - onclick = "[ExecuteConsoleCommand('tweak draw')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Mesh" - onclick = "[ExecuteConsoleCommand('tweak mesh')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Terrain" - onclick = "[ExecuteConsoleCommand('tweak terrain')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Map objects" - onclick = "[ExecuteConsoleCommand('tweak MapObjects')]" - } - - } - } -} -widget = { - name = "court_debug_menu" - size = { 320 375 } - parentanchor = top|right - layer = debug - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 1 1 } - spacing = 3 -# using = dockable_background - - - vbox = { - restrictparent_min = yes - - hbox = { - layoutpolicy_horizontal = expanding - size = { 150 50 } - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Court Debug Menu" - } - } - - dockable_button = { - size = { 150 25 } - raw_text = "3D Stats" - raw_tooltip = "Show CPU/GPU stats and performance" - - onclick = "[ExecuteConsoleCommand('3dstats')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Reload Assets" - raw_tooltip = "Reloads all asset files" - onclick = "[ExecuteConsoleCommand('reload assets')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Reload Texture" - raw_tooltip = "Reloads all texture files" - onclick = "[ExecuteConsoleCommand('reload texture')]" - } - - hbox = { - #SIZEBUMPER - layoutpolicy_horizontal = expanding - size = { 0 0 } - margin = { 10 5 } - margin_bottom = 20 - - } - - hbox = { - layoutpolicy_horizontal = expanding - size = { 150 50 } - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Texture Debug" - } - } - - - dockable_button = { - size = { 150 25 } - raw_text = "Albedo / Diffuse" - raw_tooltip = "Render only Diffuse (Att! Long initial load time)" - - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_DIFFUSE ')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Normal" - raw_tooltip = "Render only Normals (Att! Long initial load time)" - - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_NORMAL ')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Roughness" - raw_tooltip = "Render only Roughness (Att! Long initial load time)" - - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_ROUGHNESS ')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Metalness" - raw_tooltip = "Render only Metalness (Att! Long initial load time)" - - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_METALNESS ')]" - } - - - hbox = { - #BOTTOM-SIZEBUMPER - layoutpolicy_horizontal = expanding - size = { 150 100 } - margin = { 10 5 } - margin_bottom = 14 - - } - hbox = { - layoutpolicy_horizontal = expanding - size = { 150 50 } - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Lighting Debug" - } - } - - dockable_button = { - size = { 150 25 } - raw_text = "SSAO" - raw_tooltip = "Render only Screen Space Ambient Occlusion" - - onclick = "[ExecuteConsoleCommand('shader_debug PDX_DEBUG_SHADOW ')]" - } - - } - - vbox = { - restrictparent_min = yes - - - hbox = { - layoutpolicy_horizontal = expanding - size = { 150 50 } - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Debug Names" - } - } - - dockable_button = { - size = { 150 25 } - raw_text = "Entity" - raw_tooltip = "Show entity names" - onclick = "[ExecuteConsoleCommand('entity.info')]" - - } - - dockable_button = { - size = { 150 25 } - raw_text = "Mesh" - raw_tooltip = "Show mesh names" - onclick = "[ExecuteConsoleCommand('mesh.info')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Texture" - raw_tooltip = "Show texture names" - onclick = "[ExecuteConsoleCommand('mesh.texturenames')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Joint" - raw_tooltip = "Show skeletal joint names" - onclick = "[ExecuteConsoleCommand('mesh.jointnames')]" - } - - hbox = { - layoutpolicy_horizontal = expanding - size = { 150 50 } - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Debug Tools" - } - } - - dockable_button = { - size = { 150 25 } - raw_text = "Collision" - raw_tooltip = "Show collision boxes" - onclick = "[ExecuteConsoleCommand('mesh.collisionmeshes')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Bounding Box" - raw_tooltip = "Show bounding boxes" - onclick = "[ExecuteConsoleCommand('mesh.boundingvolumes')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Normals" - raw_tooltip = "Show normals" - onclick = "[ExecuteConsoleCommand('mesh.normals')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Skeleton" - raw_tooltip = "Show skeleton joints" - onclick = "[ExecuteConsoleCommand('mesh.skeleton')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Mip levels" - raw_tooltip = "Show mip-mapping levels" - onclick = "[ExecuteConsoleCommand('Debug.TextureMode MipLevel')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Texel Density" - raw_tooltip = "Show texel density levels" - onclick = "[ExecuteConsoleCommand('Debug.TextureMode TexelDensity ')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "LOD Levels" - raw_tooltip = "Show LOD levels" - onclick = "[ExecuteConsoleCommand('Mesh.LodLevels')]" - } - - dockable_button = { - size = { 150 25 } - raw_text = "Lod Screen Percentage" - raw_tooltip = "Show LOD screen percentage" - onclick = "[ExecuteConsoleCommand('Mesh.ScreenPercentage')]" - } - - - } - } -} - -widget = { - name = "map_object_menu" - size = { 100% 100% } - position = { 1 1 } - - textbox = { - position = { 0 25% } - size = { 100% 20 } - using = editor_text - align = center - raw_text = "Click anywhere to place map objects" - } - - button = { - size = { 100% 100% } - onclick = "[ExecuteConsoleCommand('MapObjects.Painter.AddPosition')]" - } - - widget = { - name = "background" - size = { 70 110 } - position = { 100 25 } - - vbox = { - restrictparent_min = yes - - background = { - texture = "gfx/editor_gui/editor_toolbar_background.dds" - spriteType = CorneredStretched - spriteborder = { 5 5 } - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 5 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 10 - - editor_textbox = { - layoutpolicy_horizontal = expanding - autoresize = yes - raw_text = "Place Map Objects" - } - } - - vbox = { - dockable_button = { - size = { 180 30 } - raw_text = "Config" - onclick = "[ExecuteConsoleCommand('tweak MapObjects.Painter')]" - } - - dockable_button = { - size = { 180 30 } - raw_text = "Cancel" - onclick = "[ExecuteConsoleCommand('GUI.ClearWidgets')]" - } - } - } - } - -} diff --git a/N3OW/gui/debug/debug_tutorial_window.gui b/N3OW/gui/debug/debug_tutorial_window.gui deleted file mode 100644 index ce015927..00000000 --- a/N3OW/gui/debug/debug_tutorial_window.gui +++ /dev/null @@ -1,316 +0,0 @@ -window = { - using = editor_window - name = "debug_tutorial_window" - parentanchor = top|right - position = { -10 105 } - size = { 500 800 } - resizable = yes - layer = top - - textbox = { - position = { 7 0 } - size = { 100% 30 } - fontsize = 16 - raw_text = "Tutorial" - align = left|nobaseline - } - button = { - using = editor_button - name = "close_button" - position = { -4 4 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[DebugTutorialWindow.Close]" - shortcut = "close_window" - } - - vbox = { - margin = { 3 5 } - margin_top = 29 - - hbox = { - margin = { 6 5 } - layoutpolicy_horizontal = expanding - spacing = 6 - - button = { - using = editor_button - name = "button_toggle_enabled" - size = { 100 20 } - text = "[Select_CString( DebugTutorialWindow.IsTutorialEnabled, 'Disable', 'Enable' )]" - onclick = "[DebugTutorialWindow.ToggleTutorialEnabled]" - } - button = { - using = editor_button - name = "button_reset" - size = { 100 20 } - raw_text = "Reset" - onclick = "[DebugTutorialWindow.ResetTutorial]" - } - - expand = {} - - icon = { - datacontext = "[GetPlayer]" - size = { 30 30 } - texture = "gfx/interface/icons/icon_group_of_characters.dds" - tooltip = "CHARACTER_AI_VALUES_DEBUG_TOOLTIP" - } - - textbox = { - raw_text = "Delays" - autoresize = yes - } - checkbutton = { - using = editor_checkbutton - checked = "[Not(DebugTutorialWindow.IsIgnoringDelays)]" - onclick = "[DebugTutorialWindow.ToggleIgnoreDelays]" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[DebugTutorialWindow.GetChains]" - layoutpolicy_horizontal = expanding - item = { - debug_tutorial_chain_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } -} - -types DebugTutorialWindow -{ - type debug_tutorial_chain_item = vbox - { - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - alpha = "[Select_float( DebugTutorialChainItem.IsCompleted,'(float)0.6','(float)1.0')]" - - background = { - visible = "[DebugTutorialChainItem.IsCurrent]" - texture = "gfx/interface/colors/white.dds" - alpha = 0.05 - } - - text_single = { - margin = { 5 0 } - layoutpolicy_horizontal = expanding - autoresize = no - text = "[DebugTutorialChainItem.GetTitle]" - tooltip = "[DebugTutorialChainItem.GetTitle]" - using = tooltip_ne - } - - hbox = { - spacing = 3 - textbox = { - raw_text = "(Is Last)" - autoresize = yes - visible = "[And(Not(DebugTutorialChainItem.IsCurrent), DebugTutorialChainItem.IsLast)]" - } - textbox = { - raw_text = "(Valid to Trigger)" - autoresize = yes - visible = "[And(Not(DebugTutorialChainItem.IsCompleted), And(Not(DebugTutorialChainItem.IsCurrent), DebugTutorialChainItem.IsValidToTrigger))]" - } - textbox = { - raw_text = "(Finished)" - autoresize = yes - visible = "[DebugTutorialChainItem.IsCompleted]" - } - } - - hbox = { - spacing = 3 - - button = { - using = editor_button - name = "button_start" - size = { 44 20 } - raw_text = "Start" - enabled = "[DebugTutorialChainItem.CanStart]" - onclick = "[DebugTutorialChainItem.Start]" - } - button = { - using = editor_button - name = "button_complete" - size = { 50 20 } - raw_text = "Finish" - enabled = "[DebugTutorialChainItem.CanComplete]" - onclick = "[DebugTutorialChainItem.Complete]" - } - button = { - using = editor_button - name = "button_reset" - size = { 45 20 } - raw_text = "Reset" - enabled = "[DebugTutorialChainItem.CanReset]" - onclick = "[DebugTutorialChainItem.Reset]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[DebugTutorialChainItem.GetLessons]" - item = { - hbox = { - layoutpolicy_horizontal = expanding - debug_tutorial_list_indentation = {} - debug_tutorial_lesson_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - - type debug_tutorial_lesson_item = vbox - { - margin_top = 5 - - alpha = "[Select_float( DebugTutorialLessonItem.IsCompleted,'(float)0.6','(float)1.0')]" - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - visible = "[DebugTutorialLessonItem.IsCurrent]" - texture = "gfx/interface/colors/white.dds" - alpha = 0.1 - } - - text_single = { - margin = { 5 0 } - layoutpolicy_horizontal = expanding - autoresize = no - text = "[DebugTutorialLessonItem.GetTitle]" - tooltip = "[DebugTutorialLessonItem.GetTitle]" - using = tooltip_ne - } - - hbox = { - spacing = 3 - textbox = { - raw_text = "(Current)" - visible = "[DebugTutorialLessonItem.IsCurrent]" - autoresize = yes - } - textbox = { - raw_text = "(Valid to Trigger)" - autoresize = yes - visible = "[And(Not(DebugTutorialLessonItem.IsCompleted), And(Not(DebugTutorialLessonItem.IsCurrent), DebugTutorialLessonItem.IsValidToTrigger))]" - } - textbox = { - raw_text = "(Manual)" - autoresize = yes - visible = "[And(Not(DebugTutorialLessonItem.IsCompleted), And(Not(DebugTutorialLessonItem.IsCurrent), Not(DebugTutorialLessonItem.ShouldStartAutomatically)))]" - } - textbox = { - raw_text = "(Delayed)" - autoresize = yes - visible = "[DebugTutorialLessonItem.IsDelayed]" - } - textbox = { - raw_text = "(Finished)" - autoresize = yes - visible = "[DebugTutorialLessonItem.IsCompleted]" - } - } - - hbox = { - spacing = 3 - - button = { - using = editor_button - name = "button_start" - size = { 44 20 } - raw_text = "Start" - enabled = "[DebugTutorialLessonItem.CanStart]" - onclick = "[DebugTutorialLessonItem.Start]" - } - button = { - using = editor_button - name = "button_complete" - size = { 50 20 } - raw_text = "Finish" - enabled = "[DebugTutorialLessonItem.CanComplete]" - onclick = "[DebugTutorialLessonItem.Complete]" - } - button = { - using = editor_button - name = "button_reset" - size = { 45 20 } - raw_text = "Reset" - enabled = "[DebugTutorialLessonItem.CanReset]" - onclick = "[DebugTutorialLessonItem.Reset]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[DebugTutorialLessonItem.GetSteps]" - item = { - hbox = { - layoutpolicy_horizontal = expanding - debug_tutorial_list_indentation = {} - debug_tutorial_step_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - - type debug_tutorial_step_item = hbox - { - margin_top = 3 - - hbox = { - tooltip = "[DebugTutorialStepItem.GetTooltip]" - using = tooltip_ne - layoutpolicy_horizontal = expanding - - - background = { - visible = "[DebugTutorialStepItem.IsCurrent]" - texture = "gfx/interface/colors/white.dds" - alpha = 0.2 - } - - text_single = { - text = "[DebugTutorialStepItem.GetTitle]" - } - - expand = {} - - text_single = { - text = "[DebugTutorialStepItem.GetKey]" - default_format = "#weak" - max_width = 120 - elide = left - } - } - } - - type debug_tutorial_list_indentation = widget - { - size = { 15 0 } - } -} diff --git a/N3OW/gui/debug/placeholder_types_templates.gui b/N3OW/gui/debug/placeholder_types_templates.gui deleted file mode 100644 index e7a07d17..00000000 --- a/N3OW/gui/debug/placeholder_types_templates.gui +++ /dev/null @@ -1,369 +0,0 @@ -############################################################## -################ PLACEHOLDER TYPES & TEMPLATES ############### -############################################################## - -####################### -######## TYPES ######## -####################### -types Placeholders -{ - type debug_square = icon { - size = { 100 100 } - texture = "gfx/interface/_debug/pink_square_chill.png" - spriteType = Corneredtiled - spriteborder = { 2 2 } - } - - type icon_placeholder = icon - { - size = { 30 30 } - texture = "gfx/interface/_debug/icon_placeholder_02.dds" - } - - type icon_flat_standard_placeholder = icon - { - texture = "gfx/interface/_debug/icon_placeholder_01.dds" - - modify_texture = { - texture = "gfx/interface/_debug/colors_textured_placeholder.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - type button_icon_placeholder = button { - size = { 30 30 } - texture = "gfx/interface/_debug/icon_placeholder_01.dds" - - using = Placeholder_Button_Soundeffect - - block "button_icon_modify_texture_placeholder" - { - using = Button_Modify_Texture_Placeholder - } - - block "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 2 - downhoverframe = 2 - downpressedframe = 3 - disableframe = 4 - } - } - - type button_round_placeholder = button_icon_placeholder { - size = { 40 40 } - texture = "gfx/interface/buttons/button_round_frame.dds" - - using = Placeholder_Button_Soundeffect - - blockoverride "button_icon_modify_texture_placeholder" - { - using = Button_Modify_Texture_Placeholder - } - - background = { - texture = "gfx/interface/buttons/button_round_bg.dds" - using = Color_Button_Background - - block "button_bg_color" {} - } - } - - type button_standard_placeholder = button_normal - { - texture = "gfx/interface/buttons/button_standard.dds" - size = { 170 33 } - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 4 - disableframe = 7 - - spriteType = Corneredtiled - spriteborder = { 4 4 } - framesize = { 252 80 } - - using = Placeholder_Button_Soundeffect - - buttonText = { - text_single = { - alwaystransparent = yes - size = { 100% 100% } - - block "placeholder_text" - { - raw_text = "Placeholder" - } - align = center|nobaseline - autoresize = no - default_format = "#D" - - margin = { 10 0 } - } - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - alpha = 0.3 - } - - block "disabled" - { - highlight_icon = { - size = { 100% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_disabled_stripes.dds" - spriteType = Corneredtiled - spriteborder = { 2 2 } - framesize = { 238 63 } - - upframe = 1 - uphoverframe = 1 - uppressedframe = 1 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 2 - - alpha = 0.4 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - } - - block "button_standard_mouseover" {} - } - } - - highlight_icon = { - size = { 100% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_mouseover.dds" - spriteType = Corneredstretched - spriteborder = { 20 20 } - framesize = { 238 63 } - - upframe = 1 - uphoverframe = 2 - uppressedframe = 1 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 1 - - alpha = 0.5 - - block "button_standard_mouseover" {} - } - - margin_widget = { - size = { 100% 100% } - margin = { 3 3 } - - block "vignette" - { - icon = { - name = "vignette" - size = { 100% 100% } - alpha = 0.2 - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - } - } - } - } - - type button_standard_big_placeholder = button_standard_placeholder - { - size = { 250 42 } - - buttonText = { - text_single = { - alwaystransparent = yes - autoresize = no - size = { 100% 100% } - - raw_text = "Placeholder" - align = center|nobaseline - margin = { 10 0 } - - using = Text_Placeholder - using = Font_Size_Medium - - } - } - } - - type button_primary_placeholder = button_standard_placeholder - { - texture = "gfx/interface/buttons/button_verb_primary.dds" - shortcut = confirm - - buttonText = { - text_single = { - size = { 100% 100% } - alwaystransparent = yes - - - raw_text = "Placeholder" - align = center|nobaseline - autoresize = no - default_format = "#D" - - margin = { 10 0 } - } - } - } - - type button_primary_big_placeholder = button_standard_placeholder - { - texture = "gfx/interface/buttons/button_verb_primary.dds" - shortcut = confirm - - size = { 250 42 } - - buttonText = { - text_single = { - size = { 100% 100% } - alwaystransparent = yes - - - raw_text = "Placeholder" - align = center|nobaseline - autoresize = no - using = Font_Size_Medium - using = Text_Placeholder - - margin = { 10 0 } - } - } - } - - type button_tertiary_placeholder = button_frontend - { - size = { 170 33 } - texture = "gfx/interface/buttons/button_tertiary.dds" - - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - framesize = { 210 36 } - - - spriteType = Corneredtiled - spriteborder = { 22 20 } - - using = Placeholder_Button_Soundeffect - - buttonText = { - text_single = { - alwaystransparent = yes - size = { 100% 100% } - - raw_text = "Placeholder" - align = center|nobaseline - autoresize = no - default_format = "#D" - using = Font_Size_Small - - margin = { 10 0 } - - } - } - } -} - -####################### -###### TEMPLATES ###### -####################### - -template Background_Frame_Placeholder -{ - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredtiled - spriteborder = { 10 10 } - color = { 0.9 0.2 0.7 0.8 } - - margin = { 4 4 } -} - -template Texture_Placeholder -{ - modify_texture = { - texture = "gfx/interface/_debug/pink_square.png" - blend_mode = colordodge - alpha = 0.3 - } -} - -template Placeholder_Pink_Checkered_Texture -{ - texture = "gfx/interface/_debug/placeholder.dds" - spriteType = Corneredtiled - color = { 0.7 0.7 0.7 1 } -} - -template Text_Placeholder -{ - default_format = "#D" -} - -template Placeholder_Inactive_Button -{ - enabled = no - default_format = "#X" - raw_tooltip = "#X Not yet implemented button.#!" -} - -template Placeholder_Pink_Soundeffect -{ - start_sound = { - soundeffect = "event:/Error/placeholder_obnoxious_ui" - } -} - -### Used on placeholder buttons. When placeholder tag is removed from the button this sound effect is removed with it since it's only part of the placeholder type. -template Placeholder_Button_Soundeffect -{ - clicksound = "event:/Error/placeholder_obnoxious_ui" -} - -texticon = { - icon = placeholder_text_warning - - iconsize = { - texture = "gfx/interface/_debug/placeholder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} diff --git a/N3OW/gui/debug/test_gui.gui b/N3OW/gui/debug/test_gui.gui deleted file mode 100644 index 85dfac9e..00000000 --- a/N3OW/gui/debug/test_gui.gui +++ /dev/null @@ -1,38 +0,0 @@ - - -# This window is just for testing. You can spawn it from the console menu. -window = { - name = "test_window" - parentanchor = center - size = { 1000 800 } - layer = top - filter_mouse = all - alwaystransparent = no - - using = Window_Background - using = Window_Decoration - using = Window_Movable - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - raw_text = "Test Window" - } - - blockoverride "button_close" - { - onclick = "[ExecuteConsoleCommand( 'gui.clearwidgets test_window')]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } -} diff --git a/N3OW/gui/debug/window_component_library.gui b/N3OW/gui/debug/window_component_library.gui deleted file mode 100644 index b2e86644..00000000 --- a/N3OW/gui/debug/window_component_library.gui +++ /dev/null @@ -1,2435 +0,0 @@ -window = { - name = "component_library_window" - parentanchor = center - size = { 1400 950 } - layer = windows_layer - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - - on_start = "[GetVariableSystem.Set( 'ui_library_tabs', 'action_buttons' )]" - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - raw_text = "UI Components" - } - - blockoverride "button_close" - { - onclick = "[ExecuteConsoleCommand('gui.clearwidgets')]" - } - - button_checkbox_label = { - parentanchor = vcenter - position = { 10 0 } - - onclick = "[GetVariableSystem.Toggle( 'ui_library_down_state')]" - blockoverride "checkbox" - { - - checked = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - blockoverride "text" - { - raw_text = "Down State" - } - } - - button_tertiary = { - parentanchor = vcenter - position = { 1050 0 } - size = { 200 40 } - layoutpolicy_horizontal = expanding - raw_text = "Spawn a Test Window" - raw_tooltip = "Window for GUI testing (test_gui.gui)" - - onclick = "[ExecuteConsoleCommand('gui.CreateWidget gui/debug/test_gui.gui test_window')]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Action Buttons" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'action_buttons' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'action_buttons' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Other Input" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'other_inputs' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'other_inputs' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "View Controls" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'view_controls' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'view_controls' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Selectors" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'selectors' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'selectors' )]" - } - button_tab = { - layoutpolicy_horizontal = expanding - - raw_text = "Separators" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'separators' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'separators' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - - raw_text = "Indicators" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'indicators' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'indicators' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - - raw_text = "Text Formats" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'text_formats' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'text_formats' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Portraits" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'portraits' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'portraits' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Coat of Arms" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'coas' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'coas' )]" - } - - #button_tab = { - # layoutpolicy_horizontal = expanding - # - # raw_text = "Tooltips" - # - # onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'tooltips' )]" - # down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'tooltips' )]" - #} - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Animations" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'animations' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'animations' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Placeholders" - - onclick = "[GetVariableSystem.Set( 'ui_library_tabs', 'placeholders' )]" - down = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'placeholders' )]" - } - } - - scrollbox = { - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - name = "action_buttons" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'action_buttons' )]" - - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Action buttons represent an action you can DO, that change the game state or applies changes." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Primary Button" - } - - blockoverride "vce_area" - { - button_primary = { - raw_text = "Verb Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - button_primary_big = { - raw_text = "Verb Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "The Primary Action of a View. There should only be at most one of these per view, though not all views need one. It represents the most important action you can take in the view. It should not have an icon, simply a text. The label should contain a verb, and ideally also a noun." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Secondary Button" - } - - blockoverride "vce_area" - { - button_round = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - - button_prison_ransom = { - parentanchor = center - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - button_standard = { - - raw_text = "Verb Noun" - - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - button_standard_big = { - raw_text = "Verb Noun" - - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - } - - blockoverride "vce_desc" - { - raw_text = "Secondary Actions of a View. There can be many of these in a view. To save space, we sometimes use an icon-only version. The label should contain a verb, and ideally also a noun. Currently we use button_standard for this type, but possibly some of the button_standard should really be button_primary or button_tertiary" - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Back Button" - } - - blockoverride "vce_area" - { - button_standard_back = { - raw_text = "Verb Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "This back button type should be used everytime there is a need for a back button, always including the icon to the left." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Tertiary Button" - } - - blockoverride "vce_area" - { - button_me = { - name = "button_me" - block "button_me" { - visible = yes - } - - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - button_tertiary = { - raw_text = "Verb Noun" - - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Rare and non-recommended Actions. Does not currently have an icon-only version. Could possibly have its own unique look instead of being the same as the frontend button" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Frontend Button" - } - - blockoverride "vce_area" - { - button_frontend = { - raw_text = "Verb Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Action button for the Main Menu and Ingame Menu parts of the game. The same visual importance as a Secondary Button, but one that looks a bit more flavorful." - } - } - } - - vbox = { - name = "other_inputs" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'other_inputs' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Other forms of input" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "editbox_standard" - } - - blockoverride "vce_area" - { - editbox_standard = {} - } - - blockoverride "vce_desc" - { - raw_text = "Regular editbox, allows entry of text on one or more lines" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "editbox_standard_with_label" - } - - blockoverride "vce_area" - { - editbox_standard_with_label = { - blockoverride "editbox_label" - { - raw_text = "Label:" - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Regular editbox, with a label. This is preferrable if there is space. The label is above to make sure there is maximum room for the text itself" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "editbox_search_field" - } - - blockoverride "vce_area" - { - editbox_search_field = { - } - } - - blockoverride "vce_desc" - { - raw_text = "Editbox for searching/filtering" - } - } - } - - vbox = { - name = "view_controls" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'view_controls' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "View Controls hide or show parts of a UI, but they have no direct effect on the game itself." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Tab" - } - - blockoverride "vce_area" - { - button_tab = { - raw_text = "Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - } - - blockoverride "vce_desc" - { - raw_text = "A tab, gives a mutually exclusive choice of what subview to show. The text on them should simply be a Noun." - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Vertical Tab" - } - - blockoverride "vce_area" - { - button_tab_vertical = { - raw_text = "Noun" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - } - - blockoverride "vce_desc" - { - raw_text = "Works the same as a tab, but the tabs are arranged vertically instead. Currently, the only way to toggle it 'selected' is to change the upframe property, instead of using the down property as you would expect." - } - - } - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Sidepanel Open" - } - - blockoverride "vce_area" - { - button_sidepanel_right = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - - blockoverride "button_text" - { - raw_text = "View Blablablas" - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Opens a sidepanel in a window. Has two versions, one opens a panel to the right, another to the left." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Expand/Collapse Heading" - } - - blockoverride "vce_area" - { - - - } - - blockoverride "vce_desc" - { - raw_text = "A heading you can click to expand/collapse what is under it." - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Window Controls" - } - - blockoverride "vce_area" - { - buttons_window_control = { - blockoverride "button_go_to" { - visible = yes - } - - blockoverride "button_pin" - { - visible = yes - } - - blockoverride "button_me" { - visible = yes - } - - blockoverride "button_back" { - visible = yes - } - - blockoverride "button_minimize" { - visible = yes - } - } - - } - - blockoverride "vce_desc" - { - raw_text = "Controls in top right that acts on the UI itself, such as closing, minimizing, or pinning the UI for opening at a later time." - } - - } - } - - vbox = { - name = "selectors" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'selectors' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Selectors allow the player to choose among a few options. Currently we make no distinction between if this selection affects the gamestate or just what is shown/hidden, or if it is applied immediately or requires some confirmation." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Checkbox" - } - - blockoverride "vce_area" - { - button_checkbox_label = {} - } - - blockoverride "vce_desc" - { - raw_text = "Used to choose between two states. Ideally a checkbox should always have a label, though we sometimes use button_checkbox if there is no room. Some Jomini interfaces do not use button_checkbox_label, mostly because it is too much work to change it." - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Segmented Control" - } - - blockoverride "vce_area" - { - - - } - - blockoverride "vce_desc" - { - text = "" - } - - } - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Radiobutton" - } - - blockoverride "vce_area" - { - button_radio_label = {} - - } - - blockoverride "vce_desc" - { - raw_text = "Used to pick one of many options. We don't use this gui type currently because all our radiobuttons are in jomini" - } - - } - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "dropdown_menu_standard" - } - - blockoverride "vce_area" - { - dropdown_menu_standard = { - - - blockoverride "dropdown_properties" - { - datamodel = "[GetPlayer.GetCourt]" - } - - blockoverride "dropdown_size" - { - size = { 300 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 291 250 } - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Used to pick one from many options. Use this if space is limited. Note that you NEED a datamodel otherwise it will not even appear" - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "widget_game_rule_option" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "this type spawns errors..." - } - # widget_game_rule_option = { - # } - } - - blockoverride "vce_desc" - { - raw_text = "Stepper only used in game rules, can be used in more places if needed" - } - } - } - - vbox = { - name = "portraits" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'portraits' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Portraits are essentially Object Buttons for Characters, but we use a few different size so it nice to see them all in one place." - } - } - - hbox_text_entry = { - visible = "[Not(IsInGame)]" - blockoverride "hte_text" - { - raw_text = "You have to be in-game to see portraits and coat of arms" - } - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "portrait_head_small" - } - - blockoverride "vce_area" - { - - portrait_head_small = { - datacontext = "[GetPlayer]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Smallest size, for compact list entries" - } - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "portrait_head" - } - - blockoverride "vce_area" - { - portrait_head = { - datacontext = "[GetPlayer.GetPlayerHeir]" - } - - } - - blockoverride "vce_desc" - { - text = "" - } - - } - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "portrait_shoulders" - } - - blockoverride "vce_area" - { - portrait_shoulders = { - datacontext = "[GetPlayer]" - } - - } - - blockoverride "vce_desc" - { - text = "" - } - - } - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "portrait_torso" - } - - blockoverride "vce_area" - { - portrait_torso = { - datacontext = "[GetPlayer.GetPlayerHeir]" - } - - } - - blockoverride "vce_desc" - { - text = "" - } - - } - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "portrait_body" - } - - blockoverride "vce_area" - { - portrait_body = { - datacontext = "[GetPlayer]" - } - - } - - blockoverride "vce_desc" - { - raw_text = "For full flavor where we have the room" - } - - } - - } - - vbox = { - name = "coas" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'coas' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Coat of Arms are essentially Object Buttons for Titles, Realms, Houses and Dynasties, but we use a few different size so it nice to see them all in one place." - } - } - - hbox_text_entry = { - visible = "[Not(IsInGame)]" - blockoverride "hte_text" - { - raw_text = "You have to be in-game to see portraits and coat of arms" - } - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "Realm Coat of Arms" - } - - blockoverride "vce_area" - { - hbox = { - vbox = { - coa_realm_tiny_crown = { - datacontext = "[GetPlayer]" - } - text_single = { - raw_text = "tiny" - } - } - - vbox = { - coa_realm_small_crown = { - datacontext = "[GetPlayer]" - } - text_single = { - raw_text = "small" - } - } - - vbox = { - coa_realm_medium_crown = { - datacontext = "[GetPlayer]" - } - text_single = { - raw_text = "medium" - } - } - - vbox = { - coa_realm_big_crown = { - datacontext = "[GetPlayer]" - } - text_single = { - raw_text = "big" - } - } - - vbox = { - coa_realm_huge_crown = { - datacontext = "[GetPlayer]" - } - text_single = { - raw_text = "huge" - } - } - } - - } - - blockoverride "vce_desc" - { - raw_text = "Represents a Realm. Has an suffix for '_crown' if a crown should be added so that the Rank of the Realm is clearer." - } - - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "Title Coat of Arms" - } - - blockoverride "vce_area" - { - hbox = { - vbox = { - coa_title_tiny_crown = { - datacontext = "[GetPlayer.GetPrimaryTitle]" - } - text_single = { - raw_text = "tiny" - } - } - - vbox = { - coa_title_small_crown = { - datacontext = "[GetPlayer.GetPrimaryTitle]" - } - text_single = { - raw_text = "small" - } - } - - vbox = { - coa_title_medium_crown = { - datacontext = "[GetPlayer.GetPrimaryTitle]" - } - text_single = { - raw_text = "medium" - } - } - - vbox = { - coa_title_big_crown = { - datacontext = "[GetPlayer.GetPrimaryTitle]" - } - text_single = { - raw_text = "big" - } - } - } - - } - - blockoverride "vce_desc" - { - raw_text = "Represents a Title. Has an suffix for '_crown' if a crown should be added so that the Rank of the Title is clearer." - } - - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "House Coat of Arms" - } - - blockoverride "vce_area" - { - hbox = { - vbox = { - coa_house_tiny = { - datacontext = "[GetPlayer.GetHouse]" - } - text_single = { - raw_text = "tiny" - } - } - - vbox = { - coa_house_small = { - datacontext = "[GetPlayer.GetHouse]" - } - text_single = { - raw_text = "small" - } - } - - vbox = { - coa_house_medium = { - datacontext = "[GetPlayer.GetHouse]" - } - text_single = { - raw_text = "medium" - } - } - - vbox = { - coa_house_big = { - datacontext = "[GetPlayer.GetHouse]" - } - text_single = { - raw_text = "big" - } - } - - vbox = { - coa_house_huge = { - datacontext = "[GetPlayer.GetHouse]" - } - text_single = { - raw_text = "huge" - } - } - } - - } - - blockoverride "vce_desc" - { - raw_text = "Represents a House." - } - - } - - vbox_component_entry = { - visible = "[IsInGame]" - blockoverride "vce_name" - { - raw_text = "Dynasty Coat of Arms" - } - - blockoverride "vce_area" - { - hbox = { - - vbox = { - coa_dynasty_tiny = { - datacontext = "[GetPlayer.GetHouse.GetDynasty]" - } - text_single = { - raw_text = "tiny" - } - } - - vbox = { - coa_dynasty_small = { - datacontext = "[GetPlayer.GetHouse.GetDynasty]" - } - text_single = { - raw_text = "small" - } - } - - vbox = { - coa_dynasty_medium = { - datacontext = "[GetPlayer.GetHouse.GetDynasty]" - } - text_single = { - raw_text = "medium" - } - } - - vbox = { - coa_dynasty_big = { - datacontext = "[GetPlayer.GetHouse.GetDynasty]" - } - text_single = { - raw_text = "big" - } - } - - vbox = { - coa_dynasty_huge = { - datacontext = "[GetPlayer.GetHouse.GetDynasty]" - } - text_single = { - raw_text = "huge" - } - } - } - - } - - blockoverride "vce_desc" - { - raw_text = "Represents a Dynasty." - } - - } - - - - - } - - vbox = { - name = "separators" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'separators' )]" - layoutpolicy_horizontal = expanding - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "text_label_center/left/right" - } - - blockoverride "vce_area" - { - text_label_left = { - layoutpolicy_horizontal = expanding - raw_text = "left" - } - text_label_center = { - layoutpolicy_horizontal = expanding - raw_text = "center" - } - text_label_right = { - layoutpolicy_horizontal = expanding - raw_text = "right" - } - } - - blockoverride "vce_desc" - { - raw_text = "Text Labels (left, right center)" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "divider and divider_light" - } - - blockoverride "vce_area" - { - divider_light = { - layoutpolicy_horizontal = expanding - } - divider = { - layoutpolicy_horizontal = expanding - } - } - - blockoverride "vce_desc" - { - raw_text = "Dividers, can be used both vertically and horizontally" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Area" - } - - blockoverride "vce_area" - { - widget = { - size = { 150 150 } - - background = { - using = Background_Area - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Area_Dark" - } - - blockoverride "vce_area" - { - widget = { - size = { 150 150 } - - background = { - using = Background_Area_Dark - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Area_Light" - } - - blockoverride "vce_area" - { - widget = { - size = { 150 150 } - - background = { - using = Background_Area_Light - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Frame" - } - - blockoverride "vce_area" - { - widget = { - size = { 150 150 } - - background = { - using = Background_Frame - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Area_With_Header" - } - - blockoverride "vce_area" - { - widget = { - size = { 250 150 } - - background = { - using = Background_Area_With_Header - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Area_With_Header_Dark" - } - - blockoverride "vce_area" - { - widget = { - size = { 250 150 } - - background = { - using = Background_Area_With_Header_Dark - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Tab_Area" - } - - blockoverride "vce_area" - { - widget = { - size = { 250 150 } - - background = { - using = Background_Tab_Area - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Background for area under tabs." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Letter" - } - - blockoverride "vce_area" - { - widget = { - size = { 250 150 } - - using = Background_Letter - } - } - - blockoverride "vce_desc" - { - raw_text = "Background" - } - } - } - - vbox = { - name = "indicators" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'indicators' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Indicators are visual elements that show a certain value or percentage. They usually do not have a way for the player to perform an action." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Progressbar" - } - - blockoverride "vce_area" - { - progressbar_standard = { - layoutpolicy_horizontal = expanding - value = 40 - } - - progressbar_standard_transparent = { - layoutpolicy_horizontal = expanding - value = 40 - } - - progressbar_red = { - layoutpolicy_horizontal = expanding - value = 40 - } - - progressbar_green = { - layoutpolicy_horizontal = expanding - value = 40 - } - - progressbar_frozen = { - layoutpolicy_horizontal = expanding - value = 40 - } - - progressbar_frozen_transparent = { - layoutpolicy_horizontal = expanding - value = 40 - } - - } - - blockoverride "vce_desc" - { - raw_text = "Various standard progressbars" - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Relative Bar" - } - - blockoverride "vce_area" - { - - - } - - blockoverride "vce_desc" - { - raw_text = "Like a Progressbar, but instead of indication progress towards some end, instead it shows the relative relation between two things, like the two sides in a Battle." - } - - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Indicator backgrounds" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "Status_Good" - - using = Status_Good - } - - text_single = { - raw_text = "Status_Mixed" - - using = Status_Mixed - } - - text_single = { - raw_text = "Status_Bad" - - using = Status_Bad - } - - text_single = { - raw_text = "Status_Highlight" - - using = Status_Highlight - } - } - - blockoverride "vce_desc" - { - raw_text = "Backgrounds that highlights whether a value is positive, negative, or if we just need to highlight something." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Indicator icons" - } - - blockoverride "vce_area" - { - - hbox = { - spacing = 20 - - hbox = { - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_alert.dds" - } - - warning_icon = { - size = { 40 40 } - } - } - - hbox = { - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - - hbox = { - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_arrow_green_down.dds" - mirror = vertical - } - - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_arrow_red_up.dds" - mirror = vertical - } - - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_arrow_up.dds" - mirror = vertical - } - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Symbols" - } - } - } - - vbox = { - name = "text_formats" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'text_formats' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Text formats are defined in 'gui/textformatting.gui'. They are named based on their use rather than their look, so we can tweak them easily." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "High Contrast (##high)" - } - - blockoverride "vce_area" - { - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#high" - } - } - - blockoverride "vce_desc" - { - raw_text = "For text that needs to stand out" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Medium Contrast (##medium)" - } - - blockoverride "vce_area" - { - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#medium" - } - } - - blockoverride "vce_desc" - { - raw_text = "For most regular text" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Low Contrast (##low)" - } - - blockoverride "vce_area" - { - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#low" - } - } - - blockoverride "vce_desc" - { - raw_text = "For lowest contrast, mostly for short text and UI elements" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Weak (##weak)" - } - - blockoverride "vce_area" - { - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#weak" - } - } - - blockoverride "vce_desc" - { - raw_text = "Low contrast longer text that explains something that is not very important. For example, filling out an empty state, or instructing how a mechanic works." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Flavor (##flavor, ##F)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#flavor" - } - } - - blockoverride "vce_desc" - { - raw_text = "For Flavor texts for entities such as Faiths, Men-at-Arms types, etc." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Light background (##light_background)" - } - - blockoverride "vce_area" - { - using = Background_Letter - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#light_background" - } - } - - blockoverride "vce_desc" - { - raw_text = "For light backgrounds like letter events" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Help (##help)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - default_format = "#help" - } - } - - blockoverride "vce_desc" - { - raw_text = "For hints and tips in Alert/Suggestion/Current Situation Tooltips" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Instruction (##instruction, ##I)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "Shift-click to add to selection" - default_format = "#I" - } - } - - blockoverride "vce_desc" - { - raw_text = "For instructions to the Player (not their Character), either referring to the input controls or asking them to make a choice." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Warning (##warning, ##X)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "@warning_icon!You are a Child" - default_format = "#X" - } - } - - blockoverride "vce_desc" - { - raw_text = "For when things are wrong or buttons are disabled. Should always be paired with the Warning Text Icon" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Alert Trial (##alert_trial)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "@alert_icon!Something might happen..." - default_format = "#alert_trial" - } - } - - blockoverride "vce_desc" - { - raw_text = "Trying this out, to show bad things that will happen in future? Or less severe stuff?" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Value (##value, ##V)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "42" - default_format = "#V" - } - } - - blockoverride "vce_desc" - { - raw_text = "For important values that should stand out. Usually it means the value changes. Supports skimming a page for values." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Negative Value (##negative_value, ##N)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "+42" - default_format = "#N" - } - } - - blockoverride "vce_desc" - { - raw_text = "For 'bad' values, for example if a Character gains Stress. Used by code to color the '+/-' number formatting" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Positive Value (##positive_value, ##P)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "42" - default_format = "#P" - } - } - - blockoverride "vce_desc" - { - raw_text = "For 'good' values, for example if a Character gains Gold. Used by code to color the '+/-' number formatting" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Zero Value (##zero_value, ##Z)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "0" - default_format = "#Z" - } - } - - blockoverride "vce_desc" - { - raw_text = "For values that are neither good nor bad. Used by code to color the '+/-' number formatting" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Clickable (##clickable)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "Start Game" - default_format = "#clickable" - } - } - - blockoverride "vce_desc" - { - raw_text = "For interactible elements such as buttons" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Game Object Link (##game_link, ##L)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "House Canossa" - default_format = "#L" - } - } - - blockoverride "vce_desc" - { - raw_text = "For Game Objects (Characters, Titles, Traits, etc). Hover over the text to get a (dynamic) tooltip of this specific instance" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Game Concept Link (##explanation_link, ##E)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "Vassal" - default_format = "#E" - } - } - - blockoverride "vce_desc" - { - raw_text = "Used for Game Concepts, hover over this text to get a (static) explanation of something in the game." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Game Concept Link, Light background (##explanation_link_light_background, B)" - } - - blockoverride "vce_area" - { - using = Background_Letter - - text_single = { - raw_text = "Vassal" - default_format = "#B" - } - } - - blockoverride "vce_desc" - { - raw_text = "Game Concept Link for light backgrounds such as letter events" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Tooltip Heading (##tooltip_heading, ##T)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "North Sea" - default_format = "#T" - } - } - - blockoverride "vce_desc" - { - raw_text = "Used in text tooltips for the heading that tells the player what they have put their mouse on" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Tooltip Subheading (##tooltip_subheading, ##S)" - } - - blockoverride "vce_area" - { - - - text_single = { - raw_text = "Effects" - default_format = "#S" - } - } - - blockoverride "vce_desc" - { - raw_text = "Some text tooltips are split into multiple segments, each headed by a subheading" - } - } - - - } - - vbox = { - name = "animations" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'animations' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "Animations used for window show and hide transitions." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Animation_FadeIn/Out_Standard" - } - - blockoverride "vce_area" - { - - debug_square = { - size = { 100 100 } - - state = { - name = a - next = b - trigger_on_create = yes - - using = Animation_FadeIn_Standard - delay = 1 - } - - state = { - name = b - next = a - - using = Animation_FadeOut_Standard - delay = 1 - } - } - } - - blockoverride "vce_desc" - { - raw_text = "0.25 second duration" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Animation_FadeIn/Out_Quick" - } - - blockoverride "vce_area" - { - - debug_square = { - size = { 100 100 } - - state = { - name = a - next = b - trigger_on_create = yes - - using = Animation_FadeIn_Quick - delay = 1 - } - - state = { - name = b - next = a - - using = Animation_FadeOut_Quick - delay = 1 - } - } - } - - blockoverride "vce_desc" - { - raw_text = "0.15 second duration" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Animation_Tab_Switch" - } - - blockoverride "vce_area" - { - - widget = { - size = { 100 100 } - - debug_square = { - visible = "[GetVariableSystem.Exists( 'ui_library_tab_switch_example' )]" - size = { 100 100 } - - using = Animation_Tab_Switch - } - - debug_square = { - visible = "[Not(GetVariableSystem.Exists( 'ui_library_tab_switch_example' ))]" - size = { 100 100 } - - using = Animation_Tab_Switch - - texture = "gfx/interface/colors/blue.dds" - } - } - - button_tertiary = { - onclick = "[GetVariableSystem.Toggle( 'ui_library_tab_switch_example' )]" - raw_text = "Test" - } - } - - blockoverride "vce_desc" - { - raw_text = "For switching between tabs or other view modes. Has 0 hide duration to prevent overlap." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Animation_Refresh" - } - - blockoverride "vce_area" - { - - widget = { - size = { 100 100 } - - debug_square = { - size = { 100 100 } - - using = Animation_Tab_Switch - - state = { - name = "ui_library_refresh_animation_test" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - } - - button_tertiary = { - onclick = "[PdxGuiTriggerAllAnimations('ui_library_refresh_animation_test')]" - raw_text = "Test" - } - } - - blockoverride "vce_desc" - { - raw_text = "For refreshing window content, ie. selecting between different faiths while the Faith Window is open." - } - } - } - - vbox = { - name = "placeholders" - visible = "[GetVariableSystem.HasValue( 'ui_library_tabs', 'placeholders' )]" - layoutpolicy_horizontal = expanding - - hbox_text_entry = { - blockoverride "hte_text" - { - raw_text = "This tab contains our debug and placeholder assets. You can use these whenever there is art missing or in early development to simply wireframe a UI." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "debug_square" - } - - blockoverride "vce_area" - { - debug_square = {} - } - - blockoverride "vce_desc" - { - raw_text = "Our classic vintage debug_square. This shouldn't have to be used as much anymore but it's there if you need it." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "icon_placeholder" - } - - blockoverride "vce_area" - { - icon_placeholder = { - size = { 30 30 } - } - } - - blockoverride "vce_desc" - { - raw_text = "A placeholder version of an icon which can be used when art isn't made yet. When hooking in icons which have not yet been made by art, simply copy the texture in the gfx/interface/_debug-folder and paste it in the correct game folder. Then change the name to the name specified in the related Jira." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "flat_icon_standard_placeholder" - } - - blockoverride "vce_area" - { - icon_flat_standard_placeholder = { - size = { 30 30 } - } - } - - blockoverride "vce_desc" - { - raw_text = "A placeholder version of an icon_flat_standard which can be used when art isn't made yet. This is just a black icon shape with a texture applied on top of it through script. When hooking in icons which have not yet been made by art, simply copy the texture in the gfx/interface/_debug-folder and paste it in the correct game folder. Then change the name to the name specified in the related Jira." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "button_icon_placeholder" - } - - blockoverride "vce_area" - { - button_icon_placeholder = { - size = { 30 30 } - } - } - - blockoverride "vce_desc" - { - raw_text = "A placeholder version of an icon_flat_standard which can be used when art isn't made yet. To find out when to use this button type go to the Action Buttons tab in this window for more information." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "button_round_placeholder" - } - - blockoverride "vce_area" - { - button_round_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - - button_icon_placeholder = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/_debug/icon_placeholder_01.dds" - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - } - - blockoverride "vce_desc" - { - raw_text = "A placeholder round button icon which can be used when icon isn't made by art yet. This is very similar to the button_icon type but with the addition of a round frame. To find out when to use this button type go to the Action Buttons tab in this window for more information." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "button_primary_placeholder & button_primary_big_placeholder" - } - - blockoverride "vce_area" - { - button_primary_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - button_primary_big_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Placeholder version of our primary button. To find out when to use this button type go to the Action Buttons tab in this window for more information." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "button_standard_placeholder & button_standard_big_placeholder" - } - - blockoverride "vce_area" - { - button_standard_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - - button_standard_big_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Placeholder version of our standard button. To find out when to use this button type go to the Action Buttons tab in this window for more information." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "button_tertiary_placeholder" - } - - blockoverride "vce_area" - { - button_tertiary_placeholder = { - down = "[GetVariableSystem.Exists('ui_library_down_state')]" - } - } - - blockoverride "vce_desc" - { - raw_text = "Placeholder version of our tertiary button. To find out when to use this button type go to the Action Buttons tab in this window for more information." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Text_Placeholder & Debug Text Format (##D)" - } - - blockoverride "vce_area" - { - text_single = { - raw_text = "Flygande bäckasiner söka hwila på mjuka tuvor" - using = Text_Placeholder - } - } - - blockoverride "vce_desc" - { - raw_text = "Text template format that can be used on texts to make it pink and communicate it's not final. This can be applied to text inside our types: text_single, text_multi etc. To apply this template to text write: using = Text_Placeholder or use ( default_format = ##D )" - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Background_Frame_Placeholder" - } - - blockoverride "vce_area" - { - widget = { - size = { 100 100 } - - hbox = { - background = { - using = Background_Frame_Placeholder - } - } - } - - icon = { - size = { 200 100 } - - background = { - texture = "gfx/interface/illustrations/dlc/dlc_004.dds" - fittype = centercrop - using = Mask_Rough_Edges - } - - background = { - using = Background_Frame_Placeholder - } - } - } - - blockoverride "vce_desc" - { - raw_text = "A placeholder frame in our debug color. This can be put around a widget of most types to communicate it's a placeholder." - } - } - - vbox_component_entry = { - blockoverride "vce_name" - { - raw_text = "Texture_Placeholder" - } - - blockoverride "vce_area" - { - icon = { - size = { 200 100 } - - background = { - texture = "gfx/interface/illustrations/dlc/dlc_004.dds" - fittype = centercrop - using = Mask_Rough_Edges - using = Texture_Placeholder - } - } - } - - blockoverride "vce_desc" - { - raw_text = "Use the template to turn the whole texture pink if the frame isn't enough to communicate an illustration is just a placeholder." - } - } - } - } - } - } -} - -types ComponentLibrary -{ - type vbox_component_entry = vbox { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_single = { - name = "heading" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - using = Background_Area_Dark - - using = Font_Size_Medium - align = nobaseline - - block "vce_name" - { - raw_text = "vce_name" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - min_width = 500 - margin ={ 20 20 } - spacing = 10 - - block "vce_area" - { - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 15 15 } - - background = { - using = Background_Area - } - - vbox = { - layoutpolicy_vertical = expanding - - text_multi = { - name = "desc" - - autoresize = yes - max_width = 700 - - block "vce_desc" - { - raw_text = "vce_desc" - } - } - - expand = {} - } - - expand = {} - } - } - } - - - type hbox_text_entry = hbox { - layoutpolicy_horizontal = expanding - - margin = { 15 15 } - margin_bottom = 25 - - text_multi = { - block "hte_text" - { - raw_text = "hte_text" - } - align = center - autoresize = yes - default_format = "#I" - max_width = 700 - } - } -} diff --git a/N3OW/gui/debug/window_watch.gui b/N3OW/gui/debug/window_watch.gui deleted file mode 100644 index bbefe440..00000000 --- a/N3OW/gui/debug/window_watch.gui +++ /dev/null @@ -1,383 +0,0 @@ -types WatchWindow { - type watch_textbox = textbox { - fontcolor = { 1.0 1.0 1.0 1.0 } - } - - type watch_window_button = button - { - name = "watch_button" - using = editor_button - raw_text = "watch" - align = center|nobaseline - visible = "[WatchWindowsEnabled]" - fontcolor = { 1.0 1.0 1.0 1.0 } - # Make your onclick AddWatchWindow( Something.MakeScope ) - } -} - -window = { - using = editor_window - name = "watch_window" - parentanchor = top|left - size = { 1100 420 } - position = { 110 100 } - widgetanchor = top|left - layer = top - - button = { - using = editor_button - name = "close_button" - position = { -4 5 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[WatchWindow.Close]" - shortcut = "close_window" - } - - checkbutton = { - using = editor_checkbutton - position = { -54 8 } - parentanchor = top|right - checked = "[WatchWindow.WillPauseOnChange]" - onclick = "[WatchWindow.ToggleChangeOnPause]" - } - - watch_textbox = { - position = { -94 4 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|right - widgetanchor = top|right - raw_text = "Pause on Change:" - align = left - } - - watch_textbox = { - position = { 5 0 } - size = { 400 30 } - fontsize = 16 - text = "[WatchWindow.GetObjectName]" - align = left - } - - watch_textbox = { - position = { 5 30 } - size = { 100 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Variables:" - align = left - } - - scrollarea = { - position = { 0 60 } - size = { 400 350 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "variables_grid" - position = { 0 0 } - size = { 200 320 } - addcolumn = 400 - addrow = 70 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - position = { 20 0 } - size = { 380 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[VariableInfo.GetName]" - } - - watch_textbox = { - position = { 20 40 } - size = { 380 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[VariableInfo.GetExpirationDate]" - visible = "[VariableInfo.HasExpirationDate]" - } - - watch_textbox = { - position = { 20 20 } - size = { 380 20 } - fontsize = 12 - parentanchor = top|left - align = left|top - text = "[VariableInfo.GetValue]" - multiline = yes - } - } - } - } - } - } - - watch_textbox = { - position = { 405 30 } - size = { 100 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Events:" - align = left - } - - scrollarea = { - position = { 400 60 } - size = { 200 350 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "events_grid" - position = { 0 0 } - size = { 400 320 } - addcolumn = 400 - addrow = 80 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - position = { 0 0 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[EventInfo.GetName]" - } - - watch_textbox = { - position = { 0 20 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[EventInfo.GetAsWhoInfo]" - } - - watch_textbox = { - position = { 0 40 } - size = { 100 40 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[EventInfo.GetDate]" - multiline = yes - } - } - } - } - } - } - - container = { - position = { 600 30 } - visible = "[WatchWindow.ShouldShowStories]" - watch_textbox = { - position = { 5 0 } - size = { 100 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Stories:" - align = left - } - scrollarea = { - position = { 0 30 } - size = { 200 350 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "stories_grid" - position = { 0 0 } - size = { 400 320 } - addcolumn = 400 - addrow = 120 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - position = { 0 0 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[StoryInfo.GetName]" - tooltip = [StoryInfo.GetScopesDebug] - } - - watch_textbox = { - position = { 0 30 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[StoryInfo.GetDate]" - multiline = yes - } - watch_textbox = { - position = { 0 60 } - size = { 200 80 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[StoryInfo.GetAllDates]" - multiline = yes - } - } - } - } - } - } - } - - container = { - position = { 900 30 } - visible = "[WatchWindow.ShouldShowMemories]" - watch_textbox = { - position = { 5 0 } - size = { 100 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Memories:" - align = left - } - scrollarea = { - position = { 0 30 } - size = { 200 350 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "memories_grid" - position = { 0 0 } - size = { 200 350 } - addcolumn = 100 - addrow = 20 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - position = { 0 0 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[MemoryInfo.GetName]" - tooltip = "[MemoryInfo.GetTooltip]" - } - } - } - } - } - } - } - - watch_window_war_participants = { - name = "attackers" - position = { 380 30 } - blockoverride "header" { - raw_text = "Attackers:" - } - - blockoverride "data" { - datamodel = "[WatchWindow.GetAttackerItems]" - } - } - - watch_window_war_participants = { - name = "defenders" - position = { 550 30 } - blockoverride "header" { - raw_text = "Defenders:" - } - - blockoverride "data" { - datamodel = "[WatchWindow.GetDefenderItems]" - } - } -} - -Types WatchWindow { - type watch_window_war_participants = container { - visible = "[WatchWindow.ShouldShowParticipants]" - watch_textbox = { - position = { 5 0 } - size = { 100 20 } - fontsize = 16 - parentanchor = top|left - block "header" {} - align = left - } - scrollarea = { - position = { 0 30 } - size = { 200 350 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "attackers_grid" - position = { 0 0 } - size = { 400 320 } - addcolumn = 400 - addrow = 70 - maxhorizontalslots = 1 - block "data" {} - - item = { - container = { - watch_textbox = { - position = { 0 0 } - size = { 150 40 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[ParticipantInfo.GetCharacter.GetUINameNotMe]" - multiline = yes - } - watch_textbox = { - position = { 0 40 } - size = { 150 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Contribution: [ParticipantInfo.GetContribution]" - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/debug/window_watch_ai.gui b/N3OW/gui/debug/window_watch_ai.gui deleted file mode 100644 index 2f22697a..00000000 --- a/N3OW/gui/debug/window_watch_ai.gui +++ /dev/null @@ -1,1615 +0,0 @@ -window = { - using = editor_window - name = "ai_watch_window" - parentanchor = hcenter|vcenter - size = { 1200 700 } - position = { 0 0 } - layer = top - - button = { - using = editor_button - name = "close_button" - position = { -4 5 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[AIWatchWindow.Close]" - shortcut = "close_window" - } - - checkbutton = { - using = editor_checkbutton - position = { -54 8 } - parentanchor = top|right - checked = "[AIWatchWindow.WillPauseOnChange]" - onclick = "[AIWatchWindow.ToggleChangeOnPause]" - } - - watch_textbox = { - position = { -94 4 } - size = { 100 20 } - fontsize = 14 - parentanchor = top|right - widgetanchor = top|right - raw_text = "Pause on Change:" - align = left - } - - watch_textbox = { - position = { 5 0 } - size = { 400 30 } - fontsize = 16 - text = "[AIWatchWindow.GetCharacter.GetUIName]" - align = left - } - - flowcontainer = { - name = "tab_buttons" - position = { 0 30 } - parentanchor = top|hcenter - - button_standard_list = { - name = "strategy_button" - size = { 120 40 } - down = "[AIWatchWindow.IsTabStrategy]" - onclick = "[AIWatchWindow.SetTabStrategy]" - raw_text = "Strategy" - } - - button_standard_list= { - name = "marriage_button" - size = { 120 40 } - down = "[AIWatchWindow.IsTabMarriage]" - onclick = "[AIWatchWindow.SetTabMarriage]" - raw_text = "Marriage" - } - - button_standard_list = { - name = "scheme_button" - size = { 120 40 } - down = "[AIWatchWindow.IsTabScheme]" - onclick = "[AIWatchWindow.SetTabScheme]" - raw_text = "Scheme" - } - - button_standard_list = { - name = "cb_button" - size = { 120 40 } - down = "[AIWatchWindow.IsTabCB]" - onclick = "[AIWatchWindow.SetTabCB]" - raw_text = "CB" - } - - button_standard_list = { - name = "activity_button" - size = { 120 40 } - - down = "[AIWatchWindow.IsTabActivities]" - onclick = "[AIWatchWindow.SetTabActivities]" - - raw_text = "Activities" - } - - button_standard_list = { - name = "economy_button" - size = { 120 40 } - - down = "[AIWatchWindow.IsTabEconomy]" - onclick = "[AIWatchWindow.SetTabEconomy]" - - raw_text = "Economy" - } - } - - ######################################## - ### STRATEGY - ######################################## - widget = { - name = "strategy_widget" - size = { 1200 630 } - position = { 0 70 } - parentanchor = top|left - visible = "[AIWatchWindow.IsTabStrategy]" - - ### WANTED TITLES - watch_textbox = { - position = { 10 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Wanted titles:" - align = left - } - - scrollarea = { - position = { 0 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "wanted_titles_grid" - datamodel = "[AIWatchWindow.GetWantedTitleItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 40 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - datacontext = "[SAIValueInfo.GetCharacter]" - position = { 10 0 } - size = { 240 30 } - fontsize = 14 - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - watch_textbox = { - position = { 10 20 } - size = { 280 30 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Score: [SAIValueInfo.GetValue]" - } - } - } - } - } - } - - ### THREATS - watch_textbox = { - position = { 310 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Threats:" - align = left - } - - scrollarea = { - position = { 300 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "threats_grid" - datamodel = "[AIWatchWindow.GetThreatItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - position = { 70 0 } - size = { 210 24 } - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - position = { 70 24 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Threat: [SAIStrategyInfo.GetThreat]" - } - - text_single = { - position = { 70 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Enemy: [SAIStrategyInfo.GetEnemy]" - } - - text_single = { - position = { 175 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Friend: [SAIStrategyInfo.GetFriend]" - } - } - } - } - } - } - - ### ENEMIES - watch_textbox = { - position = { 610 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Enemies:" - align = left - } - - scrollarea = { - position = { 600 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "enemies_grid" - datamodel = "[AIWatchWindow.GetEnemyItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - position = { 70 0 } - size = { 210 24 } - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - position = { 70 24 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Enemy: [SAIStrategyInfo.GetEnemy]" - } - - text_single = { - position = { 70 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Threat: [SAIStrategyInfo.GetThreat]" - } - - text_single = { - position = { 175 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Friend: [SAIStrategyInfo.GetFriend]" - } - } - } - } - } - } - - ### FRIENDS - watch_textbox = { - position = { 910 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Friends:" - align = left - } - - scrollarea = { - position = { 900 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "friends_grid" - datamodel = "[AIWatchWindow.GetFriendItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIStrategyInfo.GetCharacter]" - position = { 70 0 } - size = { 210 24 } - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - position = { 70 24 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Friend: [SAIStrategyInfo.GetFriend]" - } - - text_single = { - position = { 70 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Threat: [SAIStrategyInfo.GetThreat]" - } - - text_single = { - position = { 175 44 } - size = { 105 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Enemy: [SAIStrategyInfo.GetEnemy]" - } - } - } - } - } - } - } - - ######################################## - ### MARRIAGE - ######################################## - widget = { - name = "marriage_widget" - size = { 1200 630 } - position = { 0 70 } - parentanchor = top|left - visible = "[AIWatchWindow.IsTabMarriage]" - - watch_textbox = { - position = { 10 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Marriages:" - align = left - } - - scrollarea = { - name = "courtiers_scrollarea" - position = { 0 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "courtiers_grid" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIValueInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_single = { - datacontext = "[SAIValueInfo.GetCharacter]" - position = { 70 1 } - size = { 100 30 } - multiline = yes - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - } - } - } - } - } - - watch_textbox = { - position = { 310 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Spouses:" - align = left - } - - button_standard_list = { - name = "calculate_spouse_candidates_button" - position = { 480 0 } - size = { 120 40 } - onclick = "[AIWatchWindow.CalculateSpouseCandidates]" - raw_text = "Calculate" - } - - scrollarea = { - name = "spouse_scrollarea" - position = { 300 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "spouse_grid" - datamodel = "[AIWatchWindow.GetTargetItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIValueInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIValueInfo.GetCharacter]" - position = { 70 0 } - size = { 210 30 } - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - position = { 70 30 } - size = { 210 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Score: [SAIValueInfo.GetValue]" - } - } - } - } - } - } - } - - ######################################## - ### SCHEME - ######################################## - widget = { - name = "scheme_widget" - size = { 1200 630 } - position = { 0 70 } - parentanchor = top|left - visible = "[AIWatchWindow.IsTabScheme]" - - watch_textbox = { - position = { 10 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Schemes:" - align = left - } - - scrollarea = { - name = "schemes_scrollarea" - position = { 0 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "schemes_grid" - datamodel = "[AIWatchWindow.GetSchemeTypeItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - button_standard_list = { - datacontext = "[SAISchemeTypeInfo.GetSchemeType]" - name = "scheme_button" - position = { 480 0 } - size = { 200 40 } - onclick = "[SAISchemeTypeInfo.OnClick]" - text = "[SchemeType.GetTypeName]" - } - } - } - } - } - - watch_textbox = { - position = { 310 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Targets:" - align = left - } - - button_standard_list = { - name = "calculate_target_candidates_button" - position = { 480 0 } - size = { 120 40 } - onclick = "[AIWatchWindow.CalculateSchemeTargetCandidates]" - raw_text = "Calculate" - } - - scrollarea = { - name = "scheme_target_scrollarea" - position = { 300 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "scheme_targets_grid" - datamodel = "[AIWatchWindow.GetTargetItems]" - position = { 0 0 } - size = { 300 580 } - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIValueInfo.GetCharacter]" - size = { 64 96 } - position = { 0 -37 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIValueInfo.GetCharacter]" - position = { 70 0 } - size = { 210 30 } - parentanchor = top|left - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - position = { 70 30 } - size = { 210 20 } - fontsize = 14 - parentanchor = top|left - align = left|top - raw_text = "Score: [SAIValueInfo.GetValue]" - } - } - } - } - } - } - } - - ######################################## - ### CB - ######################################## - widget = { - name = "cb_widget" - size = { 1200 630 } - position = { 0 70 } - parentanchor = top|left - visible = "[AIWatchWindow.IsTabCB]" - - watch_textbox = { - position = { 10 40 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "Casus Bellis:" - align = left - } - - watch_textbox = { - position = { 10 0 } - size = { 180 20 } - fontsize = 16 - parentanchor = top|left - raw_text = "My Miltiary Power: [AIWatchWindow.GetMilitaryPower]" - align = left - } - - button_standard_list = { - name = "calculate_cb_candidates_button" - position = { 480 0 } - size = { 120 40 } - onclick = "[AIWatchWindow.CalculateCBCandidates]" - raw_text = "Calculate" - } - - scrollarea = { - name = "cb_scrollarea" - position = { 0 70 } - size = { 1200 550 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "cb_grid" - datamodel = "[AIWatchWindow.GetCBTypeItems]" - position = { 0 0 } - size = { 1200 550 } - addcolumn = 1200 - addrow = 120 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAICBTypeInfo.GetTarget]" - position = { 0 0 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAICBTypeInfo.OnClickTarget]" - } - } - - portrait_head_small = { - datacontext = "[SAICBTypeInfo.GetClaimant]" - position = { 85 0 } - parentanchor = top|left - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAICBTypeInfo.OnClickClaimant]" - } - } - - widget = { - position = { 200 0 } - size = { 540 120 } - tooltip = [SAICBTypeInfo.GetScoreTooltip] - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - watch_textbox = { - layoutpolicy_horizontal = expanding - size = { 120 20 } - fontsize = 14 - align = left|top - raw_text = "Score: [SAICBTypeInfo.GetScore]" - - } - - text_multi = { - datacontext = "[SAICBTypeInfo.GetCBType]" - size = { 300 20 } - fontsize = 14 - align = left|top - text = "[CasusBelliType.GetName]" - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - datacontext = "[SAICBTypeInfo.GetTarget]" - size = { 340 20 } - align = left|top - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "Military Power: [SAICBTypeInfo.GetMilitaryPower]" - } - - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "Power Ratio (Actual/Max): [SAICBTypeInfo.GetPowerRatio|2]/[SAICBTypeInfo.GetMaxPowerRatio|2]" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[SAICBTypeInfo.HasHostages]" - raw_text = "Have hostages" - } - - expand = { } - } - } - } - } - } - } - } - } - - - ######################################## - ### Activities - ######################################## - widget = { - name = "activities_widget" - visible = "[AIWatchWindow.IsTabActivities]" - parentanchor = top|left - position = { 0 70 } - size = { 1200 630 } - - watch_textbox = { - parentanchor = top|left - position = { 10 40 } - size = { 180 20 } - - raw_text = "Activities: " - fontsize = 16 - align = left - } - - button_standard_list = { - name = "calculate_activity_candidates_button" - position = { 480 0 } - size = { 120 40 } - - onclick = "[AIWatchWindow.CalculateActivityCandidates]" - - raw_text = "Calculate" - } - - scrollarea = { - name = "activity_scrollarea" - position = { 0 70 } - size = { 300 550 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "activity_grid" - datamodel = "[AIWatchWindow.GetActivityItems]" - position = { 0 0 } - size = { 300 550 } - - addrow = 120 - addcolumn = 300 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - parentanchor = top|left - position = { 10 0 } - size = { 280 30 } - - raw_text = "[SAIActivityInfo.GetType.GetName]" - fontsize = 14 - align = left|top - } - - watch_textbox = { - parentanchor = top|left - position = { 10 20 } - size = { 280 30 } - - raw_text = "Priority: [SAIActivityInfo.GetScore]" - fontsize = 14 - align = left|top - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[AIWatchWindow.AccessAIWillHostBreakdownTooltip( SAIActivityInfo.Self )]" - } - } - } - - button_standard_list = { - name = "calculate_creation_data_button" - position = { 120 0 } - size = { 120 40 } - - onclick = "[AIWatchWindow.CalculateValuesForActivity(SAIActivityInfo.GetType.Self)]" - - raw_text = "Calculate Creation test" - } - } - } - } - } - } - - - watch_textbox = { - parentanchor = top|left - position = { 310 40 } - size = { 180 20 } - - raw_text = "Creation Data:" - fontsize = 16 - align = left - } - - widget = { - name = "activity_creation_area" - position = { 300 70 } - size = { 900 550 } - - widget = { - name = "activity_province_creation_data" - position = { 0 0 } - size = { 200 550 } - - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 180 20 } - - raw_text = "Provinces:" - fontsize = 16 - align = left - } - - watch_textbox = { - parentanchor = top|left - position = { 0 20 } - size = { 180 20 } - - raw_text = "Select num: [AIWatchWindow.GetActivitySelectNumProvinces]" - fontsize = 14 - align = left - } - - scrollarea = { - name = "activity_locations_scrollarea" - position = { 0 50 } - size = { 200 500 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "activity_locations_grid" - datamodel = "[AIWatchWindow.GetActivityLocationItems]" - position = { 0 0 } - size = { 200 500 } - - addrow = 90 - addcolumn = 200 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 280 20 } - - raw_text = "[SAIActivityLocationInfo.GetLocation.GetNameNoTooltip]" - fontsize = 12 - align = left|top - } - - watch_textbox = { - parentanchor = top|left - position = { 0 20 } - size = { 280 20 } - - raw_text = "Weight: [SAIActivityLocationInfo.GetScore]" - fontsize = 12 - align = left|top - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[AIWatchWindow.AccessValueBreakdownForActivityProvince(SAIActivityLocationInfo.Self)]" - } - } - } - - button_standard_list = { - name = "calculate_activity_phases_button" - position = { 0 40 } - size = { 120 40 } - - onclick = "[SAIActivityLocationInfo.CalculatePhases]" - - raw_text = "Calculate Phases" - } - } - } - } - } - } - } - - widget = { - name = "activity_phase_creation_data" - position = { 200 0 } - size = { 200 550 } - - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 180 20 } - - raw_text = "Phases:" - fontsize = 16 - align = left - } - - scrollarea = { - name = "activity_phases_scrollarea" - position = { 0 30 } - size = { 200 500 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "activity_phases_grid" - datamodel = "[AIWatchWindow.GetActivityPhaseItems]" - position = { 0 0 } - size = { 200 500 } - - addrow = 50 - addcolumn = 200 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 280 20 } - - raw_text = "[SAIActivityPhaseInfo.GetPhase.GetName]" - fontsize = 12 - align = left|top - } - - watch_textbox = { - parentanchor = top|left - position = { 0 20 } - size = { 280 20 } - - raw_text = "Weight: [Select_CString(SAIActivityPhaseInfo.GetPhase.IsPredefined, '-predefined- ', SAIActivityPhaseInfo.GetScore)]" - fontsize = 12 - align = left|top - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[AIWatchWindow.AccessValueBreakdownForActivityPhase(SAIActivityPhaseInfo.Self)]" - } - } - } - } - } - } - } - } - } - - widget = { - name = "activity_options_creation_data" - position = { 400 0 } - size = { 200 550 } - - - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 180 20 } - - raw_text = "Options:" - fontsize = 16 - align = left - } - - scrollarea = { - name = "activity_options_scrollarea" - position = { 0 30 } - size = { 200 500 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "activity_options_grid" - datamodel = "[AIWatchWindow.GetActivityOptionItems]" - position = { 0 0 } - size = { 200 500 } - - addrow = 70 - addcolumn = 200 - maxhorizontalslots = 1 - - item = { - container = { - watch_textbox = { - parentanchor = top|left - position = { 0 0 } - size = { 280 20 } - - raw_text = "Category: [SAIActivityOptionInfo.GetCategory.GetName]" - fontsize = 12 - align = left|top - } - - watch_textbox = { - parentanchor = top|left - position = { 0 20 } - size = { 280 20 } - - raw_text = "Type: [SAIActivityOptionInfo.GetType.GetName]" - fontsize = 12 - align = left|top - } - - watch_textbox = { - parentanchor = top|left - position = { 0 40 } - size = { 280 20 } - - raw_text = "Weight: [SAIActivityOptionInfo.GetScore]" - fontsize = 12 - align = left|top - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[AIWatchWindow.AccessValueBreakdownForActivityOption(SAIActivityOptionInfo.Self)]" - } - } - } - } - } - } - } - } - } - - watch_textbox = { - parentanchor = top|left - position = { 600 0 } - size = { 180 20 } - - raw_text = "Guests:" - fontsize = 16 - align = left - } - - scrollarea = { - name = "guest_list_scrollarea" - position = { 600 30 } - size = { 300 580 } - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "activity_guest_list_grid" - datamodel = "[AIWatchWindow.GetTargetItems]" - position = { 0 0 } - size = { 300 580 } - - addcolumn = 300 - addrow = 64 - maxhorizontalslots = 1 - - item = { - container = { - portrait_head_small = { - datacontext = "[SAIValueInfo.GetCharacter]" - parentanchor = top|left - size = { 64 96 } - position = { 0 -37 } - - blockoverride "portrait_button_template_onclick" - { - onclick = "[SAIStrategyInfo.OnClick]" - } - } - - text_multi = { - datacontext = "[SAIValueInfo.GetCharacter]" - parentanchor = top|left - position = { 70 0 } - size = { 210 30 } - - text = "[Character.GetUINameNoTooltip]" - align = left|top - } - - text_single = { - parentanchor = top|left - position = { 70 30 } - size = { 210 20 } - - raw_text = "Will accept: [SAIValueInfo.GetValue]" - fontsize = 14 - align = left|top - } - } - } - } - } - } - } - } - - ######################################## - ### Economic values - ######################################## - - widget = { - name = "economic_decision_values" - visible = "[AIWatchWindow.IsTabEconomy]" - parentanchor = top|left - position = { 0 70 } - size = { 1200 630 } - - hbox = { - vbox = { - name = "men_at_arms_values" - layoutpolicy_horizontal = expanding - maximumsize = { 300 -1 } - margin = { 8 8 } - - background = { - using = Background_Area_Border - } - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "Men-at Arms Values" - align = left - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Light - } - - raw_tooltip = "[AIWatchWindow.GetCharacter.MakeScope().GetScriptValueDesc( 'ai_men_at_arms_expense_gold_min' )]" - #raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_min' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_gold_min: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_min' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_ideal' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_gold_ideal: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_ideal' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Light - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_max' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_gold_max: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_gold_max' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_min' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_prestige_min: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_min' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Light - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_ideal' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_prestige_ideal: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_ideal' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_max' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_prestige_max: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_prestige_max' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_min' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_treasury_min: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_min' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Light - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_ideal' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_treasury_ideal: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_ideal' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_max' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "expense_treasury_max: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_expense_treasury_max' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Light - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_expense_below_min' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "chance_expense_below_min: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_expense_below_min' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_expense_below_ideal' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "chance_expense_below_ideal: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_expense_below_ideal' )|V2]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area - } - - raw_tooltip = "[GetScriptValueBreakdown( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_landless_ruler' )]" - - watch_textbox = { - size = { 180 20 } - fontsize = 16 - raw_text = "chance_landless_ruler: " - align = left - } - - expand = { } - - watch_textbox = { - size = { 40 20 } - fontsize = 16 - raw_text = "[CalculateScriptValue( AIWatchWindow.GetCharacter, 'ai_men_at_arms_chance_landless_ruler' )|V2]" - align = right - } - } - } - } - } -} diff --git a/N3OW/gui/debug/window_watch_character_pool.gui b/N3OW/gui/debug/window_watch_character_pool.gui deleted file mode 100644 index 008f7edd..00000000 --- a/N3OW/gui/debug/window_watch_character_pool.gui +++ /dev/null @@ -1,127 +0,0 @@ -window = { - using = editor_window - name = "character_pool_watch_window" - parentanchor = hcenter|vcenter - size = { 350 500 } - resizable = yes - layer = top - - watch_textbox = { - position = { 5 0 } - size = { 100% 30 } - fontsize = 16 - text = "[CharacterPoolWatchWindow.GetTitle]" - align = left|nobaseline - } - watch_textbox = { - position = { -30 0 } - parentanchor = right - size = { 100% 30 } - fontsize = 16 - text = "[GetDataModelSize(CharacterPoolWatchWindow.GetCharacters)]" - align = right|nobaseline - } - button = { - using = editor_button - name = "close_button" - position = { -4 4 } - size = { 20 20 } - parentanchor = top|right - raw_text = "x" - align = center|nobaseline - onclick = "[CharacterPoolWatchWindow.Close]" - shortcut = "close_window" - } - - margin_widget = { - size = { 100% 100% } - margin_top = 28 - margin_bottom = 4 - margin_left = 4 - margin_right = 4 - - scrollarea = { - size = { 100% 100% } - scrollbarpolicy_horizontal = always_off - scrollbar_vertical = { - using = editor_vertical_scrollbar - } - - scrollwidget = { - fixedgridbox = { - name = "characters" - addcolumn = 500 - addrow = 115 - datamodel = "[CharacterPoolWatchWindow.GetCharacters]" - - item = { - widget = { - size = { 500 115 } - - portrait_head = {} - - text_single = { - position = { 110 5 } - size = { 420 30 } - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - datacontext = "[Character.GetCulture]" - position = { 110 30 } - size = { 420 30 } - text = "[Culture.GetName]" - } - button_religion_icon = { - name = "faith_button" - datacontext = "[Character.GetFaith]" - position = { 230 35 } - size = { 45 45 } - } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - parentanchor = center - scale = 0.7 - position = { 50 0 } - } - text_single = { - datacontext = "[Character.GetHouse]" - position = { 297 72 } - size = { 420 30 } - text = "[DynastyHouse.GetNumberOfMembers|V]" - } - - text_single = { - position = { 110 65 } - raw_text = "#D Join:#!" - align = nobaseline - } - - container = { - position = { 155 65 } - tooltip = "[Character.GetDebugGuestArriveReasons]" - - icon = { - visible = "[Character.GetDebugGuestArriveStatus]" - texture = "gfx/interface/icons/text_icons/trigger_pass.dds" - } - - icon = { - visible = "[Not(Character.GetDebugGuestArriveStatus)]" - texture = "gfx/interface/icons/text_icons/trigger_fail.dds" - } - } - - text_single = { - position = { 110 90 } - raw_text = "#D Score: [Character.GetDebugGuestScore]#!" - align = nobaseline - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_activity_debug.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_activity_debug.gui deleted file mode 100644 index 39df249c..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_activity_debug.gui +++ /dev/null @@ -1,79 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_activity_debug" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "SELECT_ACTIVITY_DECISION_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - SelectActivityItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types SelectActivityTypes -{ - type SelectActivityItem = button_standard { - size = { 500 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin = { 5 0 } - - icon = { - name = "activity_icon" - size = { 50 50 } - texture = "[Entry.GetIcon]" - framesize = { 238 240 } - frame = 1 - } - - vbox = { - name = "activity_info" - - text_single = { - name = "activity_type" - text = "[Entry.GetName]" - align = nobaseline|left - max_width = 250 - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_commission_artifact.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_commission_artifact.gui deleted file mode 100644 index 4da986c3..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_commission_artifact.gui +++ /dev/null @@ -1,79 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_commission_artifact" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "COMMISSION_ARTIFACT_DECISION_SELECT_ARTIFACT_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - CommissionArtifactItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types CommissionArtifactTypes -{ - type CommissionArtifactItem = button_standard { - size = { 500 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin = { 5 0 } - - icon = { - name = "artifact_icon" - size = { 50 50 } - texture = "[Entry.GetIcon]" - framesize = { 238 240 } - frame = 1 - } - - vbox = { - name = "artifact_info" - - text_single = { - name = "artifact_type" - text = "[Entry.GetName]" - align = nobaseline|left - max_width = 250 - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_convert_to_mandala.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_convert_to_mandala.gui deleted file mode 100644 index 6d689190..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_convert_to_mandala.gui +++ /dev/null @@ -1,81 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_convert_to_mandala" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "CONVERT_TO_MANDALA_DECISION_SELECT_DECREE_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - MandalaDecreeItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types MandalaDecreeTypes -{ - type MandalaDecreeItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "tribute_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "tribute_info" - - layoutpolicy_vertical = expanding - #margin_left = 5 - margin_bottom = 5 - - text_single = { - name = "tribute_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_create_holy_order.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_create_holy_order.gui deleted file mode 100644 index 605824c5..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_create_holy_order.gui +++ /dev/null @@ -1,89 +0,0 @@ -# Decision view widget to create a holy order -# Required controller: create_holy_order - -flowcontainer = { - name = "decision_view_widget_create_holy_order" - direction = vertical - minimumsize = { 514 -1 } - maximumsize = { 514 -1 } - ignoreinvisible = yes - margin_top = 15 - - flowcontainer = { - direction = horizontal - ignoreinvisible = yes - parentanchor = hcenter - - text_single = { - visible = "[And(DecisionViewWidgetCreateHolyOrder.IsCreate, DecisionViewWidgetCreateHolyOrder.HasCurrentCapital)]" - parentanchor = vcenter - fontsize_min = 14 - text = "CREATE_HOLY_ORDER_DECISION_CAPITAL_LABEL" - } - - text_single = { - visible = "[And(DecisionViewWidgetCreateHolyOrder.IsRevoke, DecisionViewWidgetCreateHolyOrder.HasCurrentCapital)]" - parentanchor = vcenter - fontsize_min = 14 - text = "REVOKE_HOLY_ORDER_DECISION_BARONY_LABEL" - } - - spacer = { - size = { 5 5 } - } - - text_single = { - visible = "[DecisionViewWidgetCreateHolyOrder.HasCurrentCapital]" - parentanchor = vcenter - fontsize_min = 14 - default_format = "#high" - text = "[DecisionViewWidgetCreateHolyOrder.GetCurrentCapital.GetNameNoTier]" - } - - widget = { size = { 15 0 } } - - button_standard = { - name = "change_capital" - minimumsize = { 200 0 } - - onclick = "[DecisionViewWidgetCreateHolyOrder.OnSelectCapital]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - enabled = "[DecisionViewWidgetCreateHolyOrder.HasValidBaronies]" - tooltip = "LEASE_OUT_BARONIES_TOOLTIP" - - text_single = { - visible = "[And(DecisionViewWidgetCreateHolyOrder.IsCreate, DecisionViewWidgetCreateHolyOrder.HasCurrentCapital)]" - text = "[SelectLocalization( DecisionViewWidgetCreateHolyOrder.HasCurrentCapital, 'CREATE_HOLY_ORDER_DECISION_CHANGE_CAPITAL', 'CREATE_HOLY_ORDER_DECISION_SELECT_CAPITAL' )]" - parentanchor = left|vcenter - align = nobaseline - position = { 10 0 } - fontsize_min = 14 - } - - text_single = { - visible = "[And(DecisionViewWidgetCreateHolyOrder.IsRevoke, DecisionViewWidgetCreateHolyOrder.HasCurrentCapital)]" - text = "SELECT_HOLY_ORDER_LEASE_TO_REVOKE" - parentanchor = left|vcenter - align = nobaseline - position = { 10 0 } - fontsize_min = 14 - } - - button_change = { - visible = "[DecisionViewWidgetCreateHolyOrder.HasCurrentCapital]" - parentanchor = right|vcenter - position = { -5 0 } - alwaystransparent = yes - size = { 25 25 } - } - - button_select_arrow = { - visible = "[Not(DecisionViewWidgetCreateHolyOrder.HasCurrentCapital)]" - parentanchor = right|vcenter - position = { -5 0 } - alwaystransparent = yes - size = { 25 25 } - } - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_decision_option_list_controller.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_decision_option_list_controller.gui deleted file mode 100644 index dea4674e..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_decision_option_list_controller.gui +++ /dev/null @@ -1,53 +0,0 @@ -# Required controller: decision_option_list_controller - -flowcontainer = { - name = "decision_view_widget_decision_option_list_controller" - direction = vertical - minimumsize = { 514 300 } - maximumsize = { 514 300 } - ignoreinvisible = yes - - flowcontainer = { - direction = horizontal - ignoreinvisible = yes - parentanchor = hcenter - - scrollbox = { - minimumsize = { 514 300 } - maximumsize = { 514 300 } - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - button_radio_label = { - layoutpolicy_horizontal = expanding - size = { 450 30 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - - blockoverride "radio" - { - frame = "[BoolTo1And2( Entry.IsSelected )]" - } - - blockoverride "text" - { - text = "[Entry.GetName]" - } - } - } - } - } - } - } - } -} - diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_fp3_foundation_ending.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_fp3_foundation_ending.gui deleted file mode 100644 index 41544092..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_fp3_foundation_ending.gui +++ /dev/null @@ -1,82 +0,0 @@ -# Required controller: decision_option_list_controller -# We should have one unified file for all the two-step decisions in the game, -# which make the text in text_label_center something you can set in script. But alas, here we are - -vbox = { - name = "decision_view_widget_fp3_foundation_ending" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_multi = { - layoutpolicy_horizontal = expanding - text = "select_one_of_the_available_option_step_one_top_text" - max_width = 520 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { FP3_Foundation_Ending_Item = {} } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types PetitionLiegeTypes -{ - type FP3_Foundation_Ending_Item = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "petition_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "petition_info" - - layoutpolicy_vertical = expanding - margin_bottom = 5 - - text_single = { - name = "petition_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_generic_multichoice_with_effects.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_generic_multichoice_with_effects.gui deleted file mode 100644 index 50769cd6..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_generic_multichoice_with_effects.gui +++ /dev/null @@ -1,131 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_generic_multichoice_with_effects" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "effect" - visible = "[DecisionDetailView.HasEffect]" - layoutpolicy_horizontal = expanding - - background = { - name = "illustrations" - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - max_width = 515 - autoresize = yes - text = "[DecisionDetailView.GetEffectDescription]" - } - } - - text_label_center = { - text = "GENERIC_CHOOSE_OPTION" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - GenericDecisionWithOptionsAndEffectItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types GenericDecisionWithOptionsAndEffectTypes -{ - type GenericDecisionWithOptionsAndEffectItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "genericdecisionwithoptionsandeffects_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - visible = "[Not( Entry.IsFlatIcon )]" - } - - highlight_icon_building = { - name = "genericdecisionwithoptionsandeffects_icon_flat" - size = { 45 45 } - texture = "[Entry.GetIcon]" - visible = "[Entry.IsFlatIcon]" - } - - vbox = { - name = "genericdecisionwithoptionsandeffects_info" - - layoutpolicy_vertical = expanding - #margin_left = 5 - margin_bottom = 5 - - text_single = { - name = "genericdecisionwithoptionsandeffects_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_option_list_generic.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_option_list_generic.gui deleted file mode 100644 index 588eacc7..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_option_list_generic.gui +++ /dev/null @@ -1,93 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_option_list_generic" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - text_multi = { - name = "description" - minimumsize = { 515 -1 } - maximumsize = { 515 -1 } - margin = { 15 15 } - autoresize = yes - text = "[DecisionDetailView.GetDescription]" - using = Font_Size_Small - } - - text_label_center = { - text = "SELECT_VALID_OPTION" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - margin_top = 10 - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - DecisionOptionItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - -} - -types DecisionOptionTypes -{ - type DecisionOptionItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "option_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - visible = "[Not( Entry.IsFlatIcon )]" - } - - highlight_icon_building = { - name = "flat_option_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - visible = "[Entry.IsFlatIcon]" - } - - vbox = { - name = "option_info" - - layoutpolicy_vertical = expanding - #margin_left = 5 - margin_bottom = 5 - - text_single = { - name = "option_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_pay_homage.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_pay_homage.gui deleted file mode 100644 index a5ca8f78..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_pay_homage.gui +++ /dev/null @@ -1,80 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_pay_homage" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "PAY_HOMAGE_DECISION_SELECT_GIFT_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - PayHomageItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types PayHomageTypes -{ - type PayHomageItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "homage_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "homage_info" - - layoutpolicy_vertical = expanding - margin_bottom = 5 - - text_single = { - name = "homage_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_pay_tribute.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_pay_tribute.gui deleted file mode 100644 index 8278c5b4..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_pay_tribute.gui +++ /dev/null @@ -1,81 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_pay_tribute" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "PAY_TRIBUTE_DECISION_SELECT_TRIBUTE_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - PayTributeItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types PayTributeTypes -{ - type PayTributeItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "tribute_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "tribute_info" - - layoutpolicy_vertical = expanding - #margin_left = 5 - margin_bottom = 5 - - text_single = { - name = "tribute_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_petition_liege.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_petition_liege.gui deleted file mode 100644 index 7e042d60..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_petition_liege.gui +++ /dev/null @@ -1,81 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_petition_liege" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "PETITION_LIEGE_DECISION_SELECT_PETITION_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - PetitionLiegeItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types PetitionLiegeTypes -{ - type PetitionLiegeItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "petition_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "petition_info" - - layoutpolicy_vertical = expanding - #margin_left = 5 - margin_bottom = 5 - - text_single = { - name = "petition_type" - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/decision_view_widgets/decision_view_widget_unity_steer_house_direction.gui b/N3OW/gui/decision_view_widgets/decision_view_widget_unity_steer_house_direction.gui deleted file mode 100644 index a114759b..00000000 --- a/N3OW/gui/decision_view_widgets/decision_view_widget_unity_steer_house_direction.gui +++ /dev/null @@ -1,122 +0,0 @@ -# Required controller: decision_option_list_controller - -vbox = { - name = "decision_view_widget_unity_steer_house_direction" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - - margin_top = 10 - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "effect" - visible = "[DecisionDetailView.HasEffect]" - layoutpolicy_horizontal = expanding - - background = { - name = "illustrations" - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - max_width = 515 - autoresize = yes - text = "[DecisionDetailView.GetEffectDescription]" - } - } - - text_label_center = { - text = "STEER_HOUSE_UNITY_SELECT_DIRECTION_TITLE" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[DecisionViewWidgetOptionList.GetEntries]" - spacing = 6 - - item = { - UnityDirectionItem = {} - } - } - } - - blockoverride "scrollbox_background_fade" {} - } - } -} - -types UnityDirectionTypes -{ - type UnityDirectionItem = button_standard { - size = { 450 60 } - margin = { 10 10 } - - onclick = "[DecisionViewWidgetOptionList.OnSelect(Entry.Self)]" - enabled = "[Entry.IsEnabled]" - tooltip = "[Entry.GetTooltip]" - down = "[Entry.IsSelected]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_left = 10 - - icon = { - name = "unitydirection_icon" - size = { 45 45 } - texture = "[Entry.GetIcon]" - } - - vbox = { - name = "unitydirection_info" - layoutpolicy_vertical = expanding - margin_bottom = 5 - - text_single = { - name = "unitydirection_type" - alwaystransparent = yes - text = "[Entry.GetName]" - max_width = 250 - align = left - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/dynasty_customization_window.gui b/N3OW/gui/dynasty_customization_window.gui deleted file mode 100644 index ce21c113..00000000 --- a/N3OW/gui/dynasty_customization_window.gui +++ /dev/null @@ -1,110 +0,0 @@ -window = { - name = "dynasty_customization_window" - size = { 100% 100% } - movable = no - layer = middle - - using = Window_Background_No_Edge - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = CoatOfArmsDesignerAnimationResetState - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - vbox = { - header_pattern = { - datacontext = "[DynastyCustomizationWindow.GetDynasty]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CUSTOMIZE_DYNASTY_HEADER" - } - - blockoverride "button_close" - { - onclick = "[DynastyCustomizationWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 5 } - spacing = 10 - - hbox = { - name = "content" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - name = "details_input" - - layoutpolicy_vertical = expanding - minimumsize = { 300 -1 } - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 8 - spacing = 10 - - background = { - using = Background_Area_With_Header - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CUSTOMIZATION_NAMING_HEADER" - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "DYNASTY_CUSTOMIZATION_NAME_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[DynastyCustomizationWindow.GetDynastyNameText]" - ontextedited = "[DynastyCustomizationWindow.OnEditDynastyNameText]" - } - } - } - - expand = {} - } - - vbox_coa_designer = { - datacontext = "[DynastyCustomizationWindow.GetCoatOfArmsDesigner]" - datacontext = "[DynastyCustomizationWindow.GetDynasty.GetDynast]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - button_primary = { - name = "finish_button" - - text = "FINISH" - enabled = "[DynastyCustomizationWindow.CanClickFinish]" - tooltip = "[DynastyCustomizationWindow.GetCanClickFinishText]" - onclick = "[DynastyCustomizationWindow.OnClickFinish]" - } - } - } -} diff --git a/N3OW/gui/dynasty_house_customization_window.gui b/N3OW/gui/dynasty_house_customization_window.gui deleted file mode 100644 index c8532722..00000000 --- a/N3OW/gui/dynasty_house_customization_window.gui +++ /dev/null @@ -1,167 +0,0 @@ -window = { - name = "dynasty_house_customization_window" - size = { 100% 100% } - movable = no - layer = middle - - using = Window_Background_No_Edge - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = CoatOfArmsDesignerAnimationResetState - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - vbox = { - margin_top = 10 - - header_standard = { - datacontext = "[HouseCustomizationWindow.GetHouse]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CUSTOMIZE_HOUSE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[HouseCustomizationWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 15 } - spacing = 10 - - background = { - texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - fittype = centercrop - alpha = 0.35 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - hbox = { - name = "content" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 20 - spacing = 10 - - vbox = { - name = "details_input" - - layoutpolicy_vertical = expanding - minimumsize = { 470 -1 } - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 3 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CUSTOMIZATION_NAMING_HEADER" - using = Font_Size_Medium - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "HOUSE_NAME_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[HouseCustomizationWindow.GetHouseNameText]" - focus_on_visible = yes - ontextedited = "[HouseCustomizationWindow.OnEditHouseNameText]" - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - minimumsize = { -1 140 } - - blockoverride "editbox_label" - { - text = "HOUSE_MOTTO_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[HouseCustomizationWindow.GetMottoText]" - ontextedited = "[HouseCustomizationWindow.OnEditMottoText]" - using = house_motto_editbox_length - } - } - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox_coa_designer = { - datacontext = "[HouseCustomizationWindow.GetCoatOfArmsDesigner]" - datacontext = "[HouseCustomizationWindow.GetHouse.GetHeadOfHouse]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin = { 20 20} - } - - button_primary = { - name = "finish_button" - - text = "FINISH" - enabled = "[HouseCustomizationWindow.CanClickFinish]" - tooltip = "[HouseCustomizationWindow.GetCanClickFinishText]" - onclick = "[HouseCustomizationWindow.OnClickFinish]" - } - } - } - } -} - -template house_motto_editbox_length -{ - maxcharacters = "[IntToUnsigned( GetDefine( 'NHouse', 'RENAME_MOTTO_MAX_LENGTH' ) )]" - multiline = yes -} diff --git a/N3OW/gui/event_window_widgets/child_examination_success_chance.gui b/N3OW/gui/event_window_widgets/child_examination_success_chance.gui deleted file mode 100644 index e7cf10c2..00000000 --- a/N3OW/gui/event_window_widgets/child_examination_success_chance.gui +++ /dev/null @@ -1,94 +0,0 @@ -vbox = { - name = "child_examination_success_chance" - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 5 - - icon = { - name = "examination_success_chance_icon" - size = { 60 60 } - texture = "gfx/interface/icons/character_interactions/tgp_send_to_childrens_examination_interaction.dds" - } - - vbox = { - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - margin_left = 3 - spacing = 5 - - text_single = { - text = child_examination_success_chance - } - - text_single = { - text = "[GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue]" - } - - expand = {} - } - - hbox = { - spacing = 10 - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { 200 20 } - value = "[GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue]" - max = 100 - min = 0 - - using = Progressbar_Changed_Animation - - datacontext = "[GuiScope.SetRoot( GetPlayer.MakeScope ).GetScriptValueBreakdown( 'child_examination_success_chance_value' )]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - marker = { - name = "current_value" - - icon = { - size = { 25 16 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.80 0.90 1 0.9 } - } - } - } - - ## NOTE ## - # Below texts are placeholder for the standard progressbar below, telling players when they have reached certain thresholds. This solution will be replaced when making the progress bar into a complex bar. - text_single = { - visible = "[And( GreaterThanOrEqualTo_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)40' ), LessThan_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)59' ) )]" - text = child_examination_success_chance_passing - align = nobaseline - } - - text_single = { - visible = "[And( GreaterThanOrEqualTo_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)60' ), LessThan_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)89' ) )]" - text = child_examination_success_chance_good - align = nobaseline - } - - text_single = { - visible = "[And( GreaterThanOrEqualTo_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)90' ), LessThanOrEqualTo_CFixedPoint( GetPlayer.MakeScope.Var( 'child_examination_success_chance' ).GetValue, '(CFixedPoint)100' ) )]" - text = child_examination_success_chance_high - align = nobaseline - } - } - } - - expand = {} - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_activity_intent.gui b/N3OW/gui/event_window_widgets/event_window_widget_activity_intent.gui deleted file mode 100644 index ddac527d..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_activity_intent.gui +++ /dev/null @@ -1,35 +0,0 @@ -hbox = { - name = "event_window_widget_activity_intent" - datacontext = "[EventWindowWidget.GetScope.GetRootScope.Char]" - datacontext = "[Character.GetInvolvedActivity]" - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - name = "activity_icon" - size = { 50 50 } - - texture = "[Activity.GetType.GetIcon]" - } - - vbox = { - text_single = { - name = "intent_type" - layoutpolicy_horizontal = expanding - - text = "activity_intent_event_widget" - align = nobaseline - } - - text_single = { - name = "intent_target" - layoutpolicy_horizontal = expanding - visible = "[Character.GetIntentTarget.IsValid]" - - text = "activity_intent_target_event_widget" - align = nobaseline - } - } - - expand = {} -} diff --git a/N3OW/gui/event_window_widgets/event_window_widget_enter_text.gui b/N3OW/gui/event_window_widgets/event_window_widget_enter_text.gui deleted file mode 100644 index 726bd775..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_enter_text.gui +++ /dev/null @@ -1,45 +0,0 @@ -vbox = { - name = "event_window_widget_enter_text" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 10 - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_properties" - { - name = "enter_text" # name referenced in code - ontextedited = "[EventWindowWidgetEnterText.OnEdit]" - } - - blockoverride "editbox_label" - { - text = event_window_widget_enter_text_prompt - } - } - - vbox = { - name = "default_entries" - datamodel = "[EventWindowWidgetEnterText.AccessDefaultEntries]" - visible = "[DataModelHasItems( EventWindowWidgetEnterText.AccessDefaultEntries )]" - - item = { - button_standard_list = { - name = "entry" - - size = { 220 34 } - background = { - using = Background_Area - } - - text = "[EventWindowWidgetEnterTextDefaultEntry.GetText]" - using = Font_Size_Small - - onclick = "[EventWindowWidgetEnterTextDefaultEntry.Select]" - down = "[EventWindowWidgetEnterTextDefaultEntry.IsSelected]" - } - } - } - - expand = {} -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_event_chain_progress.gui b/N3OW/gui/event_window_widgets/event_window_widget_event_chain_progress.gui deleted file mode 100644 index 6314ca0c..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_event_chain_progress.gui +++ /dev/null @@ -1,48 +0,0 @@ -hbox = { - name = "event_window_widget_event_chain_progress" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - # Requires scope:event_chain_length saved as a value, should be the total number of events in this chain to show the counter for - # Requires scope:event_chain_progress saved as a value, should be the current event in the chain that is being shown, prior events are considered done - hbox = { - name = "progress_entries" - datamodel = "[EventWindowWidgetChainProgress.GetProgressEntries]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin_top = -23 - margin_right = -45 - margin_left = -30 - margin_bottom = -27 - } - - item = { - container = { - icon = { - visible = "[EventChainProgressEntry.IsNotDone]" - texture = "gfx/interface/icons/alerts_character_interaction/frame_disabled.dds" - size = { 50 50 } - position = { 0 4 } - } - - icon = { - visible = "[EventChainProgressEntry.IsDoing]" - texture = "gfx/interface/icons/alerts/action_has_open_court_event.dds" - size = { 70 70 } - framesize = { 144 144 } - frame = 1 - position = { 0 -7 } - } - - icon = { - visible = "[EventChainProgressEntry.IsDone]" - texture = "gfx/interface/icons/alerts_character_interaction/frame_disabled.dds" - size = { 50 50 } - position = { 0 4 } - } - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_harrying.gui b/N3OW/gui/event_window_widgets/event_window_widget_harrying.gui deleted file mode 100644 index ee7aa02a..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_harrying.gui +++ /dev/null @@ -1,29 +0,0 @@ -vbox = { - name = "event_window_widget_harrying" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - datacontext = "[EventWindowWidget.GetScope.sC('scope_character')]" - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - name = "harrying_icon" - size = { 50 50 } - framesize = { 70 70 } - texture = "gfx/interface/icons/widgets/harrying_widget.dds" - tooltip = "event_window_widget_harrying_tooltip_widget" - } - - text_single = { - name = "harrying_text" - text = event_window_widget_harrying - layoutpolicy_horizontal = expanding - autoresize = no - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_name_child.gui b/N3OW/gui/event_window_widgets/event_window_widget_name_child.gui deleted file mode 100644 index fc38b3ce..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_name_child.gui +++ /dev/null @@ -1,168 +0,0 @@ -# Event window widget to rename a child (intended to be used at birth) -# Required controller: name_character - -vbox = { - name = "event_window_widget_name_child" - layoutpolicy_horizontal = expanding - minimumsize = { 240 -1 } - ignoreinvisible = yes - margin = { 5 0 } - margin_bottom = 5 - spacing = 3 - - datacontext = "[EventWindowWidgetNameCharacter.GetCharacter]" - datacontext = "[Character.GetCulture]" - - editbox_standard = { - size = { 240 30 } - - blockoverride "editbox_properties" - { - name = "no_name_needed" - text = "[EventWindowWidgetNameCharacter.GetCurrentName]" - ontextedited = "[EventWindowWidgetNameCharacter.OnEditCurrentName]" - - state = { - name = "name_refresh" - next = "b" - using = Animation_Refresh_FadeOut - } - - state = { - name = "b" - using = Animation_Refresh_FadeIn - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - margin = { 5 0 } - - visible = "[GetVariableSystem.Exists( 'family_members_options_open' )]" - - event_widget_name_child_option = { - visible = "[And( Not( Character.IsFemale ), Character.GetFather.IsValid )]" - text = "event_window_widget_name_child_after_father" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetFather.GetFirstNameBase )]" - } - - event_widget_name_child_option = { - visible = "[And( Character.IsFemale, Character.GetMother.IsValid )]" - text = "event_window_widget_name_child_after_mother" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetMother.GetFirstNameBase )]" - } - - event_widget_name_child_option = { - visible = "[And( Not( Character.IsFemale ), Character.GetFather.GetFather.IsValid )]" - text = "event_window_widget_name_child_after_fathers_father" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetFather.GetFather.GetFirstNameBase )]" - } - - event_widget_name_child_option = { - visible = "[And( Character.IsFemale, Character.GetFather.GetMother.IsValid )]" - text = "event_window_widget_name_child_after_fathers_mother" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetFather.GetMother.GetFirstNameBase )]" - } - - event_widget_name_child_option = { - visible = "[And( Not( Character.IsFemale ), Character.GetMother.GetFather.IsValid )]" - text = "event_window_widget_name_child_after_mothers_father" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetMother.GetFather.GetFirstNameBase )]" - } - - event_widget_name_child_option = { - visible = "[And( Character.IsFemale, Character.GetMother.GetMother.IsValid )]" - text = "event_window_widget_name_child_after_mothers_mother" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( Character.GetMother.GetMother.GetFirstNameBase )]" - } - } - - hbox = { - - event_button_round = { - visible = "[Culture.ShouldSuggestAncestorName]" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( EventWindowWidgetNameCharacter.GetRandomAvailableAncestorName )]" - onclick = "[PdxGuiTriggerAllAnimations('name_refresh')]" - tooltip = "event_window_widget_name_child_after_random_ancestor" - using = tooltip_se - - button_dynasty_tree = { - parentanchor = center - alwaystransparent = yes - } - } - - event_button_round = { - visible = "[Character.GetFaith.HasReservedNames( Character.IsFemale )]" - onclick = "[EventWindowWidgetNameCharacter.SetCurrentNameCultural( EventWindowWidgetNameCharacter.GetRandomAvailableFaithName )]" - onclick = "[PdxGuiTriggerAllAnimations('name_refresh')]" - tooltip = "event_window_widget_name_child_random_faith_name" - using = tooltip_se - - highlight_icon = { - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - parentanchor = center - size = { 35 35 } - } - } - - event_button_round = { - onclick = "[EventWindowWidgetNameCharacter.SetCurrentName( EventWindowWidgetNameCharacter.GetRandomAvailableCultureName )]" - onclick = "[PdxGuiTriggerAllAnimations('name_refresh')]" - tooltip = "event_window_widget_name_child_random_cultural_name" - using = tooltip_se - - highlight_icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 35 35 } - parentanchor = center - } - } - - hbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - event_button_round = { - visible = "[Culture.ShouldSuggestFamilyName]" - onclick = "[GetVariableSystem.Toggle( 'family_members_options_open' )]" - tooltip = "event_window_widget_name_child_after_family_member" - using = tooltip_se - - highlight_icon = { - name = "relation_icon" - size = { 35 35 } - parentanchor = center - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "3" - } - } - } -} - -types EventWindowWidgetNameChild -{ - type event_widget_name_child_option = button_standard_list { - layoutpolicy_horizontal = expanding - - onclick = "[PdxGuiTriggerAllAnimations('name_refresh')]" - - background = { - using = Background_Area - } - } - - type event_button_round = button_round { - size = { 44 44 } - } -} diff --git a/N3OW/gui/event_window_widgets/event_window_widget_peasant_leader.gui b/N3OW/gui/event_window_widgets/event_window_widget_peasant_leader.gui deleted file mode 100644 index e1144d96..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_peasant_leader.gui +++ /dev/null @@ -1,29 +0,0 @@ -vbox = { - name = "event_window_widget_peasant_leader" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - datacontext = "[EventWindowWidget.GetScope.sC('task_contract_taker')]" - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - name = "peasant_leader_icon" - size = { 50 50 } - framesize = { 70 70 } - texture = "gfx/interface/icons/casus_bellis/peasant_war.dds" - tooltip = "event_window_widget_peasant_leader_tooltip_widget" - } - - text_single = { - name = "peasant_leader_text" - text = event_window_widget_peasant_leader - layoutpolicy_horizontal = expanding - autoresize = no - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_scheme.gui b/N3OW/gui/event_window_widgets/event_window_widget_scheme.gui deleted file mode 100644 index 622f4c56..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_scheme.gui +++ /dev/null @@ -1,114 +0,0 @@ -hbox = { - name = "event_window_widget_scheme" - datacontext = "[EventWindowWidget.GetScope.sScheme('scheme')]" - visible = "[Scheme.GetSchemeType.IsValid]" - layoutpolicy_horizontal = expanding - allow_outside = yes - margin = { 15 5 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - margin_left = -5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphaMultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_group = { - onclick = "[ToggleGameViewData('intrigue_window', GetPlayer.GetID)]" - - hbox = { - text_single = { - text = "SCHEME_WINDOW_ITEM_NAME" - align = left|nobaseline - max_width = 260 - margin_left = 5 - using = Font_Size_Medium - - tooltip = "SCHEME_WINDOW_TT_ITEM" - } - - icon = { - visible = "[Scheme.IsExposed]" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - - tooltip = "SCHEME_WINDOW_EXPOSED_TOOLTIP" - } - - widget = { - size = { 30 28 } - - button_play = { - parentanchor = bottom - onclick = "[ToggleGameViewData('intrigue_window', GetPlayer.GetID)]" - - tooltip = "tooltip_open_scheme_view" - } - } - expand = {} - } - } - - expand = {} - } - - hbox = { - spacing = 10 - - flowcontainer = { - spacing = 5 - - tooltip = "SCHEME_WINDOW_SUCCESS_TOOLTIP" - - icon = { - name = success_icon - size = { 30 30 } - - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - } - - text_single = { - name = "success" - parentanchor = vcenter - text = "SCHEME_WIDGET_SUCCESS_CHANCE_SHORT" - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - } - } - - flowcontainer = { - visible = "[Scheme.IsSecret]" - spacing = 5 - - tooltip = "SCHEME_WINDOW_SECRECY_TOOLTIP" - - icon = { - name = "secrecy_icon" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - } - - text_single = { - name = "secrecy" - parentanchor = vcenter - text = "SCHEME_WIDGET_SECRECY_SHORT" - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - - } - } - } - - spacer = { - size = { 200 1 } - } -} diff --git a/N3OW/gui/event_window_widgets/event_window_widget_scheme_preparations.gui b/N3OW/gui/event_window_widgets/event_window_widget_scheme_preparations.gui deleted file mode 100644 index 06e4cc65..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_scheme_preparations.gui +++ /dev/null @@ -1,102 +0,0 @@ -hbox = { - name = "event_window_widget_scheme_preparations" - datacontext = "[EventWindowWidget.GetScope.sScheme('scheme')]" - visible = "[Scheme.GetSchemeType.IsValid]" - layoutpolicy_horizontal = expanding - allow_outside = yes - - margin = { 10 5 } - spacing = 15 - - hbox = { - spacing = 5 - - text_single = { - text = "SCHEME_WINDOW_ITEM_NAME" - max_width = 260 - using = Font_Size_Medium - align = left|nobaseline - margin_left = 5 - tooltip = "SCHEME_WINDOW_TT_ITEM" - } - - ### Exposed icon ### - icon = { - visible = "[Scheme.IsExposed]" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - tooltip = "SCHEME_WINDOW_EXPOSED_TOOLTIP" - - glow = { - using = Color_Red - using = Glow_Standard - glow_radius = 3 - } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - - glow_alpha = 0.8 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - - glow_alpha = 0.2 - } - } - } - - ### Opportunities ### - flowcontainer = { - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_opportunity.dds" - } - - text_single = { - name = "opportunities" - parentanchor = vcenter - - text = "SCHEME_PREPARATIONS_WINDOW_OPPORTUNITIES" - align = nobaseline - } - } - - expand = {} - - flowcontainer = { - tooltip = "SCHEME_WINDOW_SUCCESS_TOOLTIP" - spacing = 5 - - icon = { - name = success_icon - size = { 30 30 } - - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - } - - text_single = { - name = "success" - parentanchor = vcenter - text = "SCHEME_PREPARATIONS_WINDOW_SUCCESS_CHANCE" - align = nobaseline - } - } - - text_single = { - name = "secrecy" - visible = "[Scheme.IsSecret]" - - text = "SCHEME_WINDOW_SECRECY_GRACE_PERIOD_TIMER" - align = nobaseline - } -} diff --git a/N3OW/gui/event_window_widgets/event_window_widget_situation_info.gui b/N3OW/gui/event_window_widgets/event_window_widget_situation_info.gui deleted file mode 100644 index 0983304b..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_situation_info.gui +++ /dev/null @@ -1,107 +0,0 @@ -# Event window widget to show situation info -# Required controller: situation_info - -vbox = { - name = "event_window_widget_situation_info" - EventWindowWidget = {} -} - -types Situations -{ - type EventWindowWidget = vbox { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - datacontext = "[EventWindowCustomWidgetSituationInfo.GetSituation]" - datacontext = "[GetPlayer]" - - vbox = { - name = "event_start_widget" - visible = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 15 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - - text_single = { - layoutpolicy_horizontal = expanding - align = left - text = "SITUATION_START_EVENT_DESC" - multiline = yes - max_width = 480 - default_format = "#medium" - minimumsize = { 0 25 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "SITUATION_START_EVENT_DETAIL_TITLE" - max_width = 480 - default_format = "#P" - minimumsize = { 0 25 } - } - } - - block "situation_info_content" - { - hbox = { - layoutpolicy_vertical = expanding - spacing = 15 - - SituationInfo = {} - - SituationInfo = {} - - SituationInfo = {} - - } - } - } - } - - type SituationInfo = vbox { - - container = { - name = "situation_effect" - datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]" - block "situation_tooltip" - { - #tooltipwidget = "relevant tooltip" - } - icon = { - parentanchor = center - size = { 70 70 } - texture = "gfx/interface/icons/situations/icon_background_01.dds" - } - icon = { - parentanchor = center - size = { 55 55 } - block "situation_icon" - { - #texture = "relevant texture" - } - } - } - - spacer = { - size = { 0 10 } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - block "situation_text" - { - text = "SITUATION_INFO_WIDGET_DEBUG" - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_situation_info_dynastic_cycle.gui b/N3OW/gui/event_window_widgets/event_window_widget_situation_info_dynastic_cycle.gui deleted file mode 100644 index c0225044..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_situation_info_dynastic_cycle.gui +++ /dev/null @@ -1,394 +0,0 @@ -# Event window widget to show situation info about specifically the great steppe -# Required controller: situation_info - -vbox = { - name = "event_window_widget_situation_info_dynastic_cycle" - EventWindowWidget = { - blockoverride "situation_info_content" - { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = fixed - spacing = 15 - datacontext = "[EventWindowCustomWidgetSituationInfo.GetSituation]" - datacontext = "[GetPlayer]" - - SituationInfo = { - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_CURRENT_ERA" - } - blockoverride "header_icon" - { - texture = "[Situation.GetIcon]" - } - blockoverride "localization_text" - { - datacontext = "[EventWindowCustomWidgetSituationInfo.GetSituation.GetTopSubRegion.GetCurrentPhase]" - text = "[SituationPhase.GetType.GetDesc]" - } - } - } - blockoverride "situation_icon" - { - texture = "[Situation.GetIcon]" - } - blockoverride "situation_text" - { - datacontext = "[EventWindowCustomWidgetSituationInfo.GetSituation.GetTopSubRegion.GetCurrentPhase]" - text = "DYNASTIC_CYCLE_WINDOW_CURRENT_ERA" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('expansion_movement').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_expand.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_expand.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('advancement_movement').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_advance.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_advance.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('conservative_movement').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_anti.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_anti.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('pro_hegemon_movement').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_pro.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_pro.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('undecided_movement').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_unaligned.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_unaligned.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('hegemon_ruler').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_emperor.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_emperor.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - - SituationInfo = { - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('other_rulers').Self)]" - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_HEADER" - } - - blockoverride "header_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_independent.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "localization_text" - { - text = "DYNASTIC_CYCLE_EVENT_MY_MOVEMENT_EFFECTS" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_group_independent.dds" - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - blockoverride "situation_text" - { - text = "[Character.Custom('GetMyMovement')]" - } - } - expand = {} - } - } - } -} - diff --git a/N3OW/gui/event_window_widgets/event_window_widget_situation_info_the_great_steppe.gui b/N3OW/gui/event_window_widgets/event_window_widget_situation_info_the_great_steppe.gui deleted file mode 100644 index 560f9d2e..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_situation_info_the_great_steppe.gui +++ /dev/null @@ -1,109 +0,0 @@ -# Event window widget to show situation info about specifically the great steppe -# Required controller: situation_info - -vbox = { - name = "event_window_widget_situation_info_the_great_steppe" - EventWindowWidget = { - blockoverride "situation_info_content" - { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = fixed - spacing = 15 - datacontext = "[EventWindowCustomWidgetSituationInfo.GetSituation]" - datacontext = "[GetPlayer]" - - SituationInfo = { - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "THE_GREAT_STEPPE_SITUATION_INFO_FERTILITY_TITLE" - } - blockoverride "header_icon" - { - texture = "gfx/interface/icons/situations/icon_county_fertility.dds" - } - blockoverride "localization_text" - { - text = "THE_GREAT_STEPPE_SITUATION_INFO_FERTILITY_EXPLANATION" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/situations/icon_county_fertility.dds" - } - blockoverride "situation_text" - { - text = "THE_GREAT_STEPPE_SITUATION_INFO_FERTILITY_TITLE" - } - } - - SituationInfo = { - - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "THE_GREAT_STEPPE_SITUATION_INFO_SEASONS_TITLE" - } - blockoverride "header_icon" - { - texture = "gfx/interface/icons/situations/icon_season.dds" - } - blockoverride "localization_text" - { - datacontext = "[Character.GetCurrentLocation.GetCounty]" - datacontext = "[County.GetSubRegionInSituation(Situation.Self)]" - text = "THE_GREAT_STEPPE_SITUATION_INFO_SEASONS_EXPLANATION" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/situations/icon_season.dds" - } - blockoverride "situation_text" - { - text = "THE_GREAT_STEPPE_SITUATION_INFO_SEASONS_TITLE" - } - } - - expand = {} - - SituationInfo = { - blockoverride "situation_tooltip" - { - tooltipwidget = { - using = situation_info_tooltip - blockoverride "title_text" { - text = "THE_GREAT_STEPPE_SITUATION_INFO_MIGRATION_TITLE" - } - blockoverride "header_icon" - { - texture = "gfx/interface/icons/situations/migration_cb.dds" - } - blockoverride "localization_text" - { - text = "THE_GREAT_STEPPE_SITUATION_INFO_MIGRATION_EXPLANATION" - } - } - } - blockoverride "situation_icon" - { - texture = "gfx/interface/icons/situations/migration_cb.dds" - } - blockoverride "situation_text" - { - text = "THE_GREAT_STEPPE_SITUATION_INFO_MIGRATION_TITLE" - } - } - } - - } - } -} - diff --git a/N3OW/gui/event_window_widgets/event_window_widget_stress.gui b/N3OW/gui/event_window_widgets/event_window_widget_stress.gui deleted file mode 100644 index 043df9d0..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_stress.gui +++ /dev/null @@ -1,34 +0,0 @@ -hbox = { - name = "event_window_widget_stress" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - datacontext = "[EventWindowWidget.GetScope.sC('stress_character')]" - - icon = { - name = "stress_icon" - size = { 50 50 } - framesize = { 70 70 } - frame = "[IntToFrameIndex( Character.GetStressLevel )]" - texture = "gfx/interface/icons/stress/icon_stress_level.dds" - tooltip = "stress_icon_tooltip" - } - - text_single = { - name = "new_stress_level" - text = event_window_widget_stress_new_level - visible = "[LessThan_int32( Character.GetStressLevel, GetDefine('NCharacter', 'MAX_STRESS_LEVEL') )]" - layoutpolicy_horizontal = expanding - autoresize = no - } - - text_single = { - name = "max_stress_level" - text = event_window_widget_max_stress - visible = "[GreaterThanOrEqualTo_int32( Character.GetStressLevel, GetDefine('NCharacter', 'MAX_STRESS_LEVEL') )]" - layoutpolicy_horizontal = expanding - autoresize = no - } - - expand = {} -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_struggle_info.gui b/N3OW/gui/event_window_widgets/event_window_widget_struggle_info.gui deleted file mode 100644 index 73cc4d26..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_struggle_info.gui +++ /dev/null @@ -1,71 +0,0 @@ -# Event window widget to show struggle info -# Required controller: struggle_info - -vbox = { - name = "event_window_widget_struggle_info" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - datacontext = "[EventWindowCustomWidgetStruggleInfo.GetStruggle]" - datacontext = "[Struggle.GetCurrentPhase]" - datacontext = "[GetPlayer]" - - vbox = { - name = "event_start_widget" - visible = "[EventWindowCustomWidgetStruggleInfo.IsStartEvent]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 15 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - - text_single = { - layoutpolicy_horizontal = expanding - align = left - text = "STRUGGLE_START_EVENT_DESC" - multiline = yes - max_width = 480 - default_format = "#medium" - minimumsize = { 0 25 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "STRUGGLE_START_EVENT_PHASE_TITLE" - max_width = 480 - default_format = "#P" - minimumsize = { 0 25 } - } - } - - hbox = { - layoutpolicy_vertical = expanding - spacing = 15 - - StrugglePhaseEffectWar = {} - - StrugglePhaseEffectCulture = {} - - StrugglePhaseEffectFaith = {} - - StrugglePhaseEffectOther = {} - } - } - - - text_single = { - visible = "[Not(EventWindowCustomWidgetStruggleInfo.IsStartEvent)]" - align = left - text = "STRUGGLE_END_EVENT_DESC" - default_format = "#medium" - minimumsize = { 0 25 } - } - -} diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_conclusion_smoke.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_conclusion_smoke.gui deleted file mode 100644 index 65b0db37..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_conclusion_smoke.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_conclusion_smoke" - size = { 100% 100% } - activity_locale_vfx = { - size = { 100% 100% } - position = { 0.0% 0.0% } - entity_instance = "ui_conclusion_smoke" - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_earthquake.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_earthquake.gui deleted file mode 100644 index 9358d5fe..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_earthquake.gui +++ /dev/null @@ -1,15 +0,0 @@ -icon = { - name = "event_window_widget_vfx_earthquake" - size = { 100% 100% } - texture = "gfx/interface/window_vfx/noise_01.dds" - gfxtype = icongfx - effectname = "Earthquake" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 - alwaystransparent = yes - activity_locale_vfx = { - size = { 100% 100% } - position = { 0.0% 0.0% } - entity_instance = "ui_earthquake" - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_fog.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_fog.gui deleted file mode 100644 index 71fa355b..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_fog.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_fog" - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - gfxtype = icongfx - effectname = "Fog" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_godray.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_godray.gui deleted file mode 100644 index 3d934b6a..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_godray.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_godray" - size = { 100% 100% } - texture = "gfx/map/borders/vertical_border_legend.dds" - gfxtype = icongfx - effectname = "GodRay" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_heavy_smoke.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_heavy_smoke.gui deleted file mode 100644 index f0bb64e8..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_heavy_smoke.gui +++ /dev/null @@ -1,15 +0,0 @@ -icon = { - name = "event_window_widget_vfx_heavy_smoke" - size = { 100% 100% } - texture = "gfx/interface/window_vfx/noise_01.dds" - gfxtype = icongfx - effectname = "HeavySmoke" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 - - activity_locale_vfx = { - size = { 100% 100% } - position = { 0.0% 0.0% } - entity_instance = "ui_heavy_smoke" - } -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_lightning_storm.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_lightning_storm.gui deleted file mode 100644 index 250e86b9..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_lightning_storm.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_lightning_storm" - size = { 100% 100% } - texture = gfx/interface/window_vfx/rain.dds - gfxtype = icongfx - effectname = "LightningStorm" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_rain_storm.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_rain_storm.gui deleted file mode 100644 index c2a8d212..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_rain_storm.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_rain_storm" - size = { 100% 100% } - texture = gfx/interface/window_vfx/rain.dds - gfxtype = icongfx - effectname = "RainStorm" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_rainy_fog.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_rainy_fog.gui deleted file mode 100644 index 0a3cefeb..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_rainy_fog.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_rainy_fog" - size = { 100% 100% } - texture = gfx/interface/window_vfx/rain.dds - gfxtype = icongfx - effectname = "RainyFog" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_sandstorm.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_sandstorm.gui deleted file mode 100644 index b7bfd725..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_sandstorm.gui +++ /dev/null @@ -1,9 +0,0 @@ -icon = { - name = "event_window_widget_vfx_sandstorm" - size = { 100% 100% } - texture = "gfx/interface/window_vfx/noise_01.dds" - gfxtype = icongfx - effectname = "Sandstorm" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_snow.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_snow.gui deleted file mode 100644 index 4f2925f8..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_snow.gui +++ /dev/null @@ -1,11 +0,0 @@ -icon = { - name = "event_window_widget_vfx_snow" - size = { 100% 100% } - texture = "gfx/particles/weather.dds" - gfxtype = icongfx - #color = { SnowFallSpeed, SnowWaveSpeed, SnowWindStrength, SnowFogStrength } - color = { 0.1 0.14 0.0 0.1 } - effectname = "Snow" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_window_widgets/event_window_widget_vfx_snowstorm.gui b/N3OW/gui/event_window_widgets/event_window_widget_vfx_snowstorm.gui deleted file mode 100644 index 8259f60d..00000000 --- a/N3OW/gui/event_window_widgets/event_window_widget_vfx_snowstorm.gui +++ /dev/null @@ -1,11 +0,0 @@ -icon = { - name = "event_window_widget_vfx_snowstorm" - size = { 100% 100% } - texture = "gfx/particles/weather.dds" - gfxtype = icongfx - #color = { SnowFallSpeed, SnowWaveSpeed, SnowWindStrength, SnowFogStrength } - color = { 0.2 0.2 0.03 0.25 } - effectname = "Snow" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 -} \ No newline at end of file diff --git a/N3OW/gui/event_windows/anonymous_letter_event.gui b/N3OW/gui/event_windows/anonymous_letter_event.gui deleted file mode 100644 index 38e94843..00000000 --- a/N3OW/gui/event_windows/anonymous_letter_event.gui +++ /dev/null @@ -1,592 +0,0 @@ -window = { - name = "anonymous_letter_event" - - parentanchor = center - widgetanchor = center - size = { 1300 750 } - layer = events - alpha = 1 - alwaystransparent = yes - - datacontext = "[EventWindow.AccessEventWindowData]" - - state = { - name = _show - trigger_on_create = yes - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('show')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('show')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_letter" - } - } - - state = { - name = _hide - duration = 1 - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('hide')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('hide')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - ### PAPER ### - widget = { - name = "letter_paper" - size = { 675 45 } - widgetanchor = center - parentanchor = center - alpha = 0 - alwaystransparent = no - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - using = Background_Letter - - state = { - name = show - next = a - delay = 0.3 - - using = Animation_FadeIn_Standard - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = a - duration = 0.25 - bezier = { 0.3 0 0.7 1 } - - animation = { - size = { 675 530 } ############ SIZES NEED TO MATCH - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - size = { 585 -1 } - } - - widget = { - size = { 700 40 } - widgetanchor = center - parentanchor = top|hcenter - position = { 0 8 } - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_top.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - - widget = { - size = { 700 40 } - widgetanchor = center - parentanchor = bottom|hcenter - position = { 0 -8 } - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_bottom.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - } - - ### CONTENT ### - widget = { - name = "letter_content" - widgetanchor = center - parentanchor = center - size = { 675 530 } ############ SIZES NEED TO MATCH - alpha = 0 - - state = { - name = show - delay = 0.8 - - using = Animation_FadeIn_Standard - - animation = { - size = { 675 530 } ############ SIZES NEED TO MATCH - - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - duration = 0.08 - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|hcenter - position = { 25 20 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } - - widget = { - size = { 322 544 } - position = { 10 15 } - scale = 0.8 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_big.dds" - } - } - - widget = { - parentanchor = bottom|right - size = { 264 264 } - position = { -10 -20 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - } - } - - widget = { - parentanchor = top|right - size = { 264 264 } - position = { -10 15 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - mirror = vertical - } - } - - widget = { - parentanchor = bottom|left - size = { 264 264 } - position = { 10 -20 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - mirror = horizontal - } - } - - vbox = { - margin = { 10 25 } - margin_right = 0 - margin_bottom = 40 - - expand = {} - - hbox = { - name = "content" - layoutpolicy_horizontal = expanding - - ### text - vbox = { - name = "text" - layoutpolicy_vertical = expanding - - text_multi = { - name = "opening" - visible = "[EventWindowData.HasOpening]" - layoutpolicy_horizontal = expanding - maximumsize = { 430 -1 } - autoresize = yes - margin_top = 10 - text = "[EventWindowData.GetOpening]" - default_format = "#light_background" - using = Font_Type_Flavor - using = Font_Size_Big - format_override = { high light_background } - } - - #### 1 option #### - scrollarea = { - visible = "[LessThanOrEqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)1')]" - maximumsize = { -1 280 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 2 options #### - scrollarea = { - visible = "[EqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)2')]" - maximumsize = { -1 240 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 3 options #### - scrollarea = { - visible = "[EqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)3')]" - maximumsize = { -1 190 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 4 options #### - scrollarea = { - visible = "[GreaterThanOrEqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)4')]" - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - } - } - - expand = {} - - ### Options - fixedgridbox = { - name = "option_grid" - addcolumn = 654 - addrow = 46 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_event_letter = { - name = "event_option_button" - parentanchor = hcenter - size = { 592 42 } - - tooltip = "[EventOption.GetTooltip]" - tooltip_visible = "[Not( StringIsEmpty( EventOption.GetTooltip ) )]" - - onclick = "[EventOption.Select]" - onmousehierarchyenter = "[EventOption.OnEnter]" - onmousehierarchyleave = "[EventOption.OnLeave]" - enabled = "[EventOption.IsValid]" - - tooltipwidget = { - using = DefaultTooltipWidget - } - using = tooltip_es - - animation_glow_event = { - name = "special_option" - visible = "[And(EventOption.HasFlag('special'), Not(EventOption.HasFlag('dangerous')))]" - } - - animation_glow_event = { - name = "dangerous_option" - visible = "[EventOption.HasFlag('dangerous')]" - using = Color_Red - } - - ### BUTTON CONTENT #### - widget = { - size = { 102 34 } - parentanchor = left|vcenter - - hbox = { - fixedgridbox = { - name = "reason_icons" - datamodel = "[EventOption.Reasons]" - addcolumn = 34 - addrow = 34 - flipdirection = yes - - item = { - container = { - icon = { - name = "trait_icon" - datacontext = "[ReasonItem.GetTrait]" - - visible = "[ReasonItem.IsTrait]" - alwaystransparent = yes - - texture = "[Trait.GetIcon(GetPlayer)]" - size = { 34 34 } - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRAIT" - using = tooltip_nw - } - - icon = { - name = "skill_icon" - datacontext = "[ReasonItem.GetSkillItem]" - - visible = "[ReasonItem.IsSkill]" - alwaystransparent = yes - - texture = "gfx/interface/icons/icon_skills.dds" - size = { 34 34 } - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SKILL" - using = tooltip_ws - } - - icon = { - name = "dread_icon" - visible = "[ReasonItem.IsFlag( 'dread' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dread.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_DREAD" - } - - icon = { - name = "activity_intent_icon" - visible = "[ReasonItem.IsFlag( 'activity_intent' )]" - size = { 34 34 } - texture = "[GetPlayer.GetInvolvedActivity.GetType.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ACTIVITY_INTENT" - } - - icon = { - name = "prestige_icon" - visible = "[ReasonItem.IsFlag( 'prestige_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PRESTIGE_LEVEL" - } - - icon = { - name = "piety_icon" - visible = "[ReasonItem.IsFlag( 'piety_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPietyLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PIETY_LEVEL" - } - - icon = { - name = "faith_icon" - visible = "[ReasonItem.IsFlag( 'faith' )]" - size = { 34 34 } - texture = "[GetPlayer.GetFaith.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FAITH" - } - } - } - } - - warning_icon = { - name = "timeout_icon" - size = { 34 34 } - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - tooltip = EVENT_WINDOW_DAYS_REMAINING - } - } - } - - hbox = { - - text_single = { - text = "[EventOption.GetText]" - - default_format = "#light_background" - using = Font_Size_Medium - align = center - layoutpolicy_horizontal = expanding - max_width = 420 - fontsize_min = 12 - } - } - - widget = { - size = { 102 34 } - parentanchor = right|vcenter - - hbox = { - name = "effects_grid" - datamodel = "[EventOption.Effects]" - - expand = {} - - item = { - container = { - container = { - alwaystransparent = yes - visible = "[OptionEffectItem.IsTrait]" - - highlight_icon = { - datacontext = "[OptionEffectItem.GetTrait]" - name = "trait_icon" - size = { 34 34 } - texture = "[Trait.GetIcon(GetPlayer)]" - } - - highlight_icon = { - visible = "[OptionEffectItem.IsGain]" - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - name = "gain" - size = { 20 20 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - name = "loss" - size = { 20 20 } - } - } - - container = { - alwaystransparent = yes - visible = "[OptionEffectItem.IsStress]" - - highlight_icon = { - visible = "[And(OptionEffectItem.IsGain,Not(OptionEffectItem.IsCritical))]" - texture = "gfx/interface/icons/stress/icon_stress_gain.dds" - name = "stress_gain" - size = { 34 34 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/stress/icon_stress_loss.dds" - name = "stress_loss" - size = { 34 34 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsCritical]" - texture = "gfx/interface/icons/stress/icon_stress_gain_critical.dds" - name = "stress_critical" - size = { 34 34 } - } - } - - highlight_icon = { - name = "death" - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - highlight_icon = { - name = "scheme" - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_scheme.dds" - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/event_windows/big_event_window.gui b/N3OW/gui/event_windows/big_event_window.gui deleted file mode 100644 index ee47a635..00000000 --- a/N3OW/gui/event_windows/big_event_window.gui +++ /dev/null @@ -1,1213 +0,0 @@ -big_event_window = { - name = "big_event_window" -} - -types BigWindowTypes { - type big_event_window = window { - - parentanchor = center - widgetanchor = center - - size = { 1390 750 } - - layer = events - - datacontext = "[EventWindow.AccessEventWindowData]" - datacontext = "[EventWindowData.GetScope.sScheme('scheme')]" - datacontext = "[Scheme.GetSchemeType]" - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - block "transition" { - alpha = 0 - - state = { - name = show - trigger_on_create = yes - using = Animation_FadeIn_Standard - duration = 0.7 - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - event_window_dimmer_widget = {} - - block "window_decoration" { - widget = { - parentanchor = bottom|hcenter - size = { 100% 100% } - using = Window_Background - using = Window_Decoration_Frontend_Flat - } - } - - event_window_background_widget = { - - block "background_widget_margins" { - margin_left = 40 - margin_right = 40 - margin_top = 20 - margin_bottom = 20 - } - - state = { - name = appear - trigger_on_create = yes - delay = 0.1 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - blockoverride "event_mask" {} - - blockoverride "event_picture_properties" { - using = Mask_Rough_Edges - } - } - - - #Background VFX - margin_widget = { - name = "background_shader_vfx_container" - position = { 30 20 } - size = { 100% 100% } - - margin = { 30 20 } - } - - ###CHARACTERS - widget = { - name = "characters" - parentanchor = top|hcenter - position = { 0 34 } - size = { 100% 100% } - scissor = yes - - hbox = { - layoutpolicy_horizontal = expanding - - expand = { - visible = "[EventWindowData.HasPortraitCharacter('left_portrait')]" - } - - ## LEFT CHARACTER ### - widget = { - name = "left_character" - size = { 300 650 } - - allow_outside = no - - block "transition_left_character" { - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - portrait_event = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('left_portrait')]" - parentanchor = bottom|hcenter - size = { 500 650 } - - blockoverride "portrait_button" - { - size = { 700 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_scheme_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - tooltip_widgetanchor = center - tooltip_offset = { 0 400 } - using = tooltip_ws - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - parentanchor = bottom|left - position = { 70 32 } - size = { 340 100% } - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - expand = { - visible = "[EventWindowData.HasPortraitCharacter('center_portrait')]" - } - - ## CENTER CHARACTER ### - widget = { - name = "center_character" - size = { 300 650 } - - allow_outside = no - - block "transition_center_character" { - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.4 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - portrait_event = { - name = "portrait_center" - datacontext = "[EventWindowData.GetPortraitCharacter('center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('center_portrait')]" - parentanchor = bottom|hcenter - size = { 500 650 } - - blockoverride "portrait_button" - { - size = { 700 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('center_portrait', 'camera_event_scheme_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('center_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('center_portrait')]" - tooltip_widgetanchor = center - using = tooltip_below - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('center_portrait') ))]" - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('center_portrait')))]" - visible_at_creation = no - parentanchor = bottom|hcenter - position = { -32 32 } - size = { 340 100% } - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - expand = { - visible = "[EventWindowData.HasPortraitCharacter('center_portrait')]" - } - - ### RIGHT CHARACTER ### - widget = { - name = "right_character" - size = { 300 650 } - - allow_outside = no - - block "transition_right_character" { - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.6 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - portrait_event = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = bottom|right - size = { 500 650 } - - blockoverride "portrait_button" - { - size = { 700 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_scheme_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - tooltip_offset = { -210 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 80 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - parentanchor = bottom|right - position = { -30 32 } - size = { 340 100% } - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - expand = { - visible = "[Or(EventWindowData.HasPortraitCharacter('center_portrait'),EventWindowData.HasPortraitCharacter('right_portrait'))]" - } - } - } - - #Fade for Readability - icon = { - size = { 97% 75% } - parentanchor = bottom|hcenter - position = {0 -8} - texture = "gfx/interface/colors/black.dds" - alpha = 0.5 - - using = Mask_Rough_Edges - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - } - } - - #Contract Rewards - margin_widget = { - name = "contract_reward_description" - datacontext = "[EventWindowData.GetScope.sScheme('scheme').GetTaskContract]" - visible = "[Not( StringIsEmpty( TaskContract.GetCompletedContractRewardDesc ) )]" - position = { 50 85 } - layer = top - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - text_multi = { - name = "description" - maximumsize = { 480 -1 } - autoresize = yes - margin = { 16 16 } - text = "[TaskContract.GetCompletedContractRewardDesc]" - fontsize = 16 - background = { - using = Background_Area_Dark - } - } - } - } - } - - # Event Effect Video - event_window_effect_2d_widget = { - margin = { 40 20 } - } - - #Foreground VFX - margin_widget = { - name = "foreground_shader_vfx_container" - position = { 30 20 } - size = { 100% 100% } - margin = { 40 20 } - } - - # Event description and options - vbox = { - name = "event_content_container" - layoutpolicy_vertical = expanding - margin_left = 10 - margin_right = 60 - margin_bottom = 20 - - block "transition_text" { - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - expand = {} - - hbox = { - name = "description_and_options" - layoutpolicy_horizontal = expanding - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - } - - background = { - using = Background_Area_ExtraDark - margin_left = -28 - margin_right = 23 - margin_bottom = 2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - vbox = { - name = "description_container" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollarea = { - name = "description_scrollarea" - size = { 700 300 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - scrollwidget = { - vbox = { - parentanchor = bottom - layoutpolicy_vertical = expanding - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - ### HEADER SUCCESS/FAILURE ### - widget = { - size = { 560 58 } - - block "result_header" {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "description" - layoutpolicy_horizontal = expanding - max_width = 700 - text = "[EventWindowData.GetDescription]" - autoresize = yes - fontsize = 16 - - margin = { 0 15 } - margin_left = 20 - - background = { - using = Background_Area_ExtraDark - margin_top = 50 - margin_right = 20 - margin_left = 2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - spriteType = corneredtiled - spriteborder_top = 20 - texture_density = 4 - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - spriteType = corneredtiled - spriteborder_top = 20 - texture_density = 4 - blend_mode = alphamultiply - } - } - } - - expand = {} - } - } - } - } - } - - vbox = { - name = "options_container" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - ignoreinvisible = yes - - margin_bottom = 15 - spacing = 5 - - expand = {} - - hbox = { - spacing = 5 - - hbox = { - name = "dynamic_birth_name" - margin = { 5 0 } - } - } - - vbox = { - name = "custom_widgets_container" - visible = no - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = {} - } - } - } - } - } - - widget = { - name = "bottom_characters" - position = { -64 64} - size = { 140 100% } - parentanchor = top|right - datacontext = "[EventWindowData.GetArtifact('lower_left_portrait')]" - - visible = "[Or( Or( Or( Or( EventWindowData.HasArtifact('lower_left_portrait'), EventWindowData.HasArtifact('lower_center_portrait') ), Or( EventWindowData.HasArtifact('lower_right_portrait'), EventWindowData.HasPortraitCharacter('lower_left_portrait') ) ), EventWindowData.HasPortraitCharacter('lower_center_portrait') ), EventWindowData.HasPortraitCharacter('lower_right_portrait') )]" - - vbox = { - margin = { 16 24 } - - background = { - using = Background_Area_Dark - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphaMultiply - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_left_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_left_portrait')]" - direction = vertical - spacing = -5 - margin_bottom = 20 - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_left_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_left_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_center_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_center_portrait')]" - direction = vertical - spacing =-5 - margin_bottom = 20 - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_center_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_2" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_center_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_center_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_center_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - color = { 0.1 0.1 0.1 0.8 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - - text_label_center = { - parentanchor = bottom|hcenter - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_right_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_right_portrait')]" - direction = vertical - spacing =-5 - margin_bottom = 20 - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_right_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_right_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_right_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_right_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_right_portrait') ))]" - } - - blockoverride "status_icons"{} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - expand = {} - } - } - - ### HEADER ### - block "event_header" { - - widget = { - size = { 1390 76 } - - widget = { - size = { 100% 57 } - position = { 0 20 } - - icon = { - name = "theme_header" - position = { 24 0 } - size = { 1072 57 } - texture = "[EventWindowData.GetThemeHeaderWide]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - text_single = { - name = "title" - position = { 128 1 } - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - - icon = { - name = "theme_icon" - position = { 28 -19 } - size = { 90 90 } - texture = "[EventWindowData.GetThemeIcon]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - - } - - icon = { - visible = "[And( EventWindowData.ShouldShowContentSource, EventWindowData.GetContentSourceDlc.HasEventDecoration )]" - name = "source_icon" - position = { -22 20 } - size = { 263 64 } - parentanchor = top|right - texture = "[EventWindowData.GetContentSourceDlc.GetEventDecoration]" - tooltip = "EVENT_CONTENT_SOURCE_TT" - alpha = 1 - } - } - } - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|right - position = { -100 25 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } - } - - type scheme_conclusion_window = big_event_window { - blockoverride "window_decoration" { - widget = { - parentanchor = bottom|hcenter - size = { 100% 93% } - using = Window_Background - using = Window_Decoration_Frontend_Flat_Bottom - } - } - - blockoverride "event_header" { - widget = { - size = { 1390 76 } - - # Stained glass - icon = { - name = "stained_glass_background" - parentanchor = hcenter - size = { 1348 76 } - texture = "gfx/interface/window_scheme/scheme_opportunity_header_stained_glass_wide.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - # Shimmer animation - state = { - name = right - next = left - - duration = 2.5 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - # Frame - icon = { - name = "frame" - parentanchor = hcenter - size = { 1348 76 } - texture = "gfx/interface/window_scheme/scheme_opportunity_header_frame_wide.dds" - } - - icon = { - name = "theme_icons" - parentanchor = hcenter - size = { 1346 76 } - - # Hostile glass decoration - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - # Personal glass decoration - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - # Politcal scheme decoration - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - } - - text_single = { - name = "title" - parentanchor = hcenter|vcenter - position = { 0 2 } - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - background = { - using = Background_Area_Dark - margin = { 180 0 } - margin_top = 10 - margin_bottom = 20 - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.3 - } - } - } - } - - blockoverride "background_widget_margins" { - margin_left = 40 - margin_right = 40 - margin_top = 60 - margin_bottom = 20 - } - } -} diff --git a/N3OW/gui/event_windows/character_event.gui b/N3OW/gui/event_windows/character_event.gui deleted file mode 100644 index 1712f01e..00000000 --- a/N3OW/gui/event_windows/character_event.gui +++ /dev/null @@ -1,1153 +0,0 @@ -window = { - name = "character_event" - - parentanchor = center - widgetanchor = center - size = { 1120 585 } - layer = events - alpha = 1 - - datacontext = "[EventWindow.AccessEventWindowData]" - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - state = { - name = show - trigger_on_create = yes - using = Animation_FadeIn_Standard - duration = 0.7 - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - - start_sound = { - soundeffect = "event:/MUSIC/Cues/Events/kill_mx_cue" - } - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - event_window_dimmer_widget = {} - - widget = { - size = { 100% 100% } - using = Window_Background - using = Window_Decoration_Frontend_Flat - } - - event_window_background_widget = { - margin = { 40 20 } - - state = { - name = _show - using = Animation_FadeIn_Standard - duration = 0.7 - } - - state = { - name = background_shake_loop - next = background_shake_loop_1 - duration = 0.0 - alpha = 1.0 - } - - state = { - name = background_shake_loop_1 - next = background_shake_loop_2 - position = { -6 0 } - duration = 0.2 - } - - state = { - name = background_shake_loop_2 - next = background_shake_loop_3 - position = { 5 0 } - duration = 0.12 - } - - state = { - name = background_shake_loop_3 - next = background_shake_loop_1 - position = { 7 1 } - duration = 0.12 - } - - blockoverride "event_picture_properties" - {} - } - - #Background VFX - margin_widget = { - name = "background_shader_vfx_container" - position = { 40 20 } - size = { 100% 100% } - margin = { 40 20 } - } - - ###CHARACTERS - widget = { - layoutstretchfactor_horizontal = 55 - parentanchor = bottom|hcenter - position = { -40 -15 } - size = { 100% 100% } - scissor = yes - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - state = { - name = character_shake_loop - next = character_shake_loop_1 - duration = 0.0 - alpha = 1.0 - } - - state = { - name = character_shake_loop_1 - next = character_shake_loop_2 - position = { -35 -15 } - duration = 0.2 - } - - state = { - name = character_shake_loop_2 - next = character_shake_loop_3 - position = { -27 -15 } - duration = 0.12 - } - - state = { - name = character_shake_loop_3 - next = character_shake_loop_1 - position = { -25 -17 } - duration = 0.12 - } - - ### RIGHT CHARACTER ### - widget = { - parentanchor = bottom|right - position = { 20 0 } - size = { 330 558 } - - allow_outside = no - - portrait_event = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - visible_at_creation = no - parentanchor = bottom|hcenter - position = { -80 -2 } - size = { 500 558 } - - blockoverride "portrait_button" - { - size = { 700 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - tooltip_offset = { 100 600 } - using = tooltip_es - tooltip_widgetanchor = center - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - visible_at_creation = no - position = { 80 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - size = { 285 500 } - position = { -30 0 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ## LEFT CHARACTER ### - widget = { - parentanchor = bottom|hcenter - position = { 100 - } - size = { 330 558 } - - allow_outside = no - - portrait_event = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), EventWindowData.HasPortraitCharacter('right_portrait'))]" - visible_at_creation = no - parentanchor = bottom|hcenter - position = { 80 0 } - size = { 500 558 } - - blockoverride "portrait_button" - { - size = { 1000 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - tooltip_widgetanchor = center - tooltip_offset = { 350 600 } - using = tooltip_ws - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - visible_at_creation = no - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - position = { 70 0 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - - ### Use this for single character - portrait_event = { - name = "portrait_center" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), Not(EventWindowData.HasPortraitCharacter('right_portrait')))]" - visible_at_creation = no - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - size = { 500 558 } - position = { 200 -2 } - parentanchor = bottom|hcenter - - blockoverride "portrait_button" - { - size = { 1000 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_center', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - using = tooltip_below - tooltip_offset = { 550 -580 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 300 500 } - position = { -60 0 } - parentanchor = bottom|hcenter - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - # Event Effect Video - event_window_effect_2d_widget = { - margin = { 40 20 } - } - - #Foreground VFX - margin_widget = { - name = "foreground_shader_vfx_container" - position = { 40 20 } - size = { 100% 100% } - margin = { 40 20 } - } - - vbox = { - name = "event_window" - - widget = { - name = "event_window_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin = { 35 0 } - margin_bottom = 15 - - widget = { - name = "text_spacer" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - } - } - - hbox = { - margin_left = 35 - margin_right = 35 - margin_bottom = 15 - - widget = { - name = "text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - - widget = { - size = { 155% 96%} - position = { 5 18 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - texture_density = 2 - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_event_text.dds" - blend_mode = alphamultiply - alpha = 1 - } - } - } - - vbox = { - name = "description_and_options" - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 10 - margin_top = 85 - - scrollarea = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 490 -1 } - maximumsize = { 490 -1 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - scrollwidget = { - text_multi = { - name = "description" - minimumsize = { 480 -1 } - maximumsize = { 480 -1 } - autoresize = yes - margin = { 20 4 } - text = "[EventWindowData.GetDescription]" - fontsize = 16 - } - } - } - - expand = {} - } - - vbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - margin_bottom = 5 - - hbox = { - spacing = 5 - - hbox = { - name = "dynamic_birth_name" - margin = { 5 0 } - } - } - - # Has a parent hbox to hack around layout set in type so it can be placed differently here and in Activity events. - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - expand = {} - } - - vbox = { - name = "travel_event_info" - visible = "[And(EventWindowData.ThemeKeyStartsWith('travel'), GetPlayer.GetTravelPlan.IsValid)]" - visible_at_creation = no - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[GetPlayer.GetTravelPlan]" - datacontext = "[TravelPlan.GetData]" - datacontext = "[TravelPlanData.GetCurrentLocation]" - - layoutpolicy_horizontal = expanding - spacing = 5 - - ### CoA - coa_title_small = { - datacontext = "[Province.GetTitle]" - visible = "[Title.HasHolder]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "TRAVEL_EVENT_WINDOW_CURRENT_LOCATION" - align = left|nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - ### Location Name - text_single = { - text = "[Province.GetNameNoTooltip]" - visible = "[Or( ObjectsEqual( Province.GetTerrain.GetName, GetTerrain( 'coastal_sea' ).GetName ), ObjectsEqual( Province.GetTerrain.GetName, GetTerrain( 'sea' ).GetName ) ) ]" - align = left|nobaseline - } - text_single = { - text = "[Province.GetName]" - visible = "[Not( Or( ObjectsEqual( Province.GetTerrain.GetName, GetTerrain( 'coastal_sea' ).GetName ), ObjectsEqual( Province.GetTerrain.GetName, GetTerrain( 'sea' ).GetName ) ) ) ]" - align = left|nobaseline - } - - icon = { - name = "terrain" - visible = "[Province.HasTerrain]" - datacontext = "[Province.GetTerrain]" - texture = "[Terrain.GetIcon]" - size = { 25 25 } - tooltip = "HOLDING_TERRAIN_TOOLTIP" - } - - expand = {} - - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 4 } - - ### Danger event indicator - hbox = { - visible = "[GreaterThanOrEqualTo_CFixedPoint(Subtract_CFixedPoint(Province.GetDangerValue(TravelPlan.Self), TravelPlanData.GetSafetyValue), '(CFixedPoint)0')]" - datacontext = "[Province.GetDangerType(TravelPlanData.Self)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - warning_icon = { - size = { 28 28 } - } - - widget = { - size = { 30 30 } - icon = { - texture = "[TravelDangerType.GetIconActive]" - parentanchor = center - size = { 35 35 } - } - } - - ### Put some indicator of travel danger intensity vs travel safety here, when we have decided on exactly what that is. - #text_single = { - # raw_text = "33%" - # default_format = "#d" - # align = right|nobaseline - #} - - tooltip = "[Province.GetTravelDangerTooltip(TravelPlan.Self)]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - ### ETA to your next destination - text_single = { - layoutpolicy_horizontal = expanding - text = "TRAVEL_EVENT_WINDOW_NEXT_DESTINATION" - align = right|nobaseline - } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = {} - } - } - expand = {} - } - } - } - } - - widget = { - name = "characters_spacer" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - } - } - } - } - - margin_widget = { - name = "bottom_characters" - size = { 55% 170 } - position = { -14 -10} - parentanchor = bottom|right - margin_bottom = 10 - allow_outside = yes - - icon = { - name = "bottom_characters_bg" - visible = "[Or(EventWindowData.HasPortraitOrArtifact('lower_left_portrait'), Or(EventWindowData.HasPortraitOrArtifact('lower_center_portrait'), EventWindowData.HasPortraitOrArtifact('lower_right_portrait')))]" - position = { 0 0 } - size = { 100% 100% } - texture = "gfx/interface/window_event/event_bottom_char_bg.dds" - } - - flowcontainer = { - spacing = 20 - parentanchor = bottom|hcenter - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - visible_at_creation = no - - background = { - texture = "gfx/interface/window_event/event_character_status_icons_bg.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - shaderfile = "gfx/FX/pdxgui_default.shader" - alpha = 0.5 - margin = { 5 5 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 0.5 - } - } - } - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_left_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_left_portrait')]" - visible_at_creation = no - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_left_portrait')]" - visible_at_creation = no - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_left_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip|U]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_center_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_center_portrait')]" - visible_at_creation = no - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - - background = { - using = Background_Area_Dark - alpha = 0.4 - margin_bottom = -30 - margin_top = 10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_center_portrait')]" - visible_at_creation = no - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_2" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_center_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_center_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_center_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - color = { 0.1 0.1 0.1 0.8 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_right = { - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - visible_at_creation = no - parentanchor = right - - background = { - texture = "gfx/interface/window_event/event_character_status_icons_bg.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - shaderfile = "gfx/FX/pdxgui_default.shader" - alpha = 0.5 - margin = { 5 5 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 0.5 - } - } - } - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_right_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_right_portrait')]" - visible_at_creation = no - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_right_portrait')]" - visible_at_creation = no - size = { 140 150 } - - portrait_event_small = { - name = "portrait_right_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_right_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_right_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_right_portrait') ))]" - } - - blockoverride "status_icons"{} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - } - } - - vbox = { - widget = { - layoutpolicy_horizontal = expanding - size = { 0 70 } - - icon = { - name = "theme_header" - position = { 24 20 } - size = { 1072 57 } - texture = "[EventWindowData.GetThemeHeader]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - text_single = { - name = "title" - parentanchor = vcenter - position = { 128 7 } - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - background = { - using = Background_Area_Dark - margin_left = 50 - margin_right = 130 - margin_top = 5 - margin_bottom = 20 - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_holding_illustration.dds" - blend_mode = alphamultiply - } - } - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - - icon = { - name = "theme_icon" - parentanchor = vcenter - position = { 28 10 } - size = { 90 90 } - texture = "[EventWindowData.GetThemeIcon]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - } - - expand = {} - } - - icon = { - visible = "[And( EventWindowData.ShouldShowContentSource, EventWindowData.GetContentSourceDlc.HasEventDecoration )]" - name = "source_icon" - position = { -22 20 } - size = { 263 64 } - parentanchor = top|right - texture = "[EventWindowData.GetContentSourceDlc.GetEventDecoration]" - tooltip = "EVENT_CONTENT_SOURCE_TT" - alpha = 1 - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - visible_at_creation = no - parentanchor = top|right - position = { -100 25 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } - -} diff --git a/N3OW/gui/event_windows/duel_event.gui b/N3OW/gui/event_windows/duel_event.gui deleted file mode 100644 index d656e24a..00000000 --- a/N3OW/gui/event_windows/duel_event.gui +++ /dev/null @@ -1,615 +0,0 @@ -window = { - name = "duel_event" - size = { 1240 650 } - - parentanchor = center - widgetanchor = center - layer = events - alpha = 0 - - datacontext = "[EventWindow.AccessEventWindowData]" - - widget = { - visible = "[Not(GameHasMultiplePlayers)]" - size = { 100% 100% } - - icon = { - visible = "[Not(GetVariableSystem.Exists( 'event_window_mouse_leave'))]" - parentanchor = center - size = { 200% 200% } - alwaystransparent = yes - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 0.6 - duration = 0.8 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 3 - alpha = 0 - } - } - } - - widget = { - size = { 100% 83% } - using = Window_Background - using = Window_Decoration_Frontend_Flat_Bottom - parentanchor = bottom - } - - state = { - name = show - trigger_on_create = yes - using = Animation_FadeIn_Standard - using = Sound_Panel_Popup_Snapshot - duration = 0.7 - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - - start_sound = { - soundeffect = "event:/MUSIC/Cues/Events/kill_mx_cue" - } - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 1240 134 } - - icon = { - name = "theme_header" - parentanchor = center - size = { 1200 134 } - texture = "gfx/interface/window_duel_event_window/header_duel.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - icon = { - name = "duel_window_decoration" - size = { 1200 134 } - parentanchor = center - texture = "gfx/interface/window_duel_event_window/decoration_frame_top_duel.dds" - } - - text_single = { - name = "title" - parentanchor = center - fontsize = 29 - fontsize_min = 16 - position = { 0 28 } - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - background = { - using = Background_Area_Dark - margin = { 180 0 } - margin_top = 5 - margin_bottom = 20 - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - } - - vbox = { - widget = { - name = "duel_event_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - event_window_background_widget = { - margin = { 40 20 } - margin_top = 130 - - blockoverride "event_mask" { - modify_texture = { - name = mask - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphamultiply - } - } - - blockoverride "event_picture_properties" - { - using = Mask_Rough_Edges - } - } - - icon = { - name = "triangle_background" - size = { 650 500 } - parentanchor = center - position = { 0 56 } - alpha = 0.3 - texture = "gfx/interface/window_duel_event_window/background_duel.dds" - - modify_texture = { - name = mask - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - - ### CHARACTERS - widget = { - name = "characters" - parentanchor = bottom - size = { 100% 100% } - scissor = yes - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - ### LEFT CHARACTER ### - widget = { - name = "portrait_left" - parentanchor = bottom|left - position = { 40 0 } - size = { 300 500 } - - allow_outside = no - - portrait_event_duel = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), EventWindowData.HasPortraitCharacter('right_portrait'))]" - parentanchor = bottom|left - position = { -60 -18 } - size = { 930 500 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_duel_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - using = tooltip_ws - tooltip_offset = { -150 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -250 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - parentanchor = bottom|left - size = { 285 500 } - - texture = "gfx/portraits/portrait_prison_body.dds" - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### RIGHT CHARACTER ### - widget = { - name = "portrait_right" - parentanchor = bottom|right - position = { -40 0 } - size = { 300 500 } - - allow_outside = no - - portrait_event_duel = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = bottom|right - position = { -0 -18 } - size = { 930 500 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_duel_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - tooltip_offset = { -40 0 } - using = tooltip_es - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 280 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - parentanchor = bottom|right - size = { 285 500 } - - texture = "gfx/portraits/portrait_prison_body.dds" - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### COA - margin_widget = { - name = "coa" - parentanchor = bottom|hcenter - size = { 100% 170 } - margin_bottom = 30 - allow_outside = yes - - flowcontainer = { - spacing = 920 - parentanchor = bottom|hcenter - - flowcontainer = { - name = "coa_left" - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - } - - spacer = { - size = { 140 0 } - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_left_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_left_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - name = "coa_right" - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_right = { - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - parentanchor = right - } - } - } - } - } - - ### EVENT - hbox = { - name = "event_text_box" - margin_top = 120 - - widget = { - name = "text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "description_and_options" - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 20 - - scrollarea = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 470 -1 } - maximumsize = { 470 -1 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - minimumsize = { 470 -1 } - maximumsize = { 470 -1 } - autoresize = yes - margin = { 20 4 } - text = "[EventWindowData.GetDescription]" - align = left - fontsize = 16 - } - } - } - } - - vbox = { - allow_outside = yes - ignoreinvisible = yes - spacing = 5 - margin_bottom = 25 - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = {} - } - } - } - } - } - } - } - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|right - position = { -40 135 } - ignoreinvisible = yes - - button_round = { - alwaystransparent = no - tooltip = "REGENERATE_EVENT_CONTENTS" - using = tooltip_below - - using = Animation_ShowHide_Quick - onclick = "[EventWindow.ResetContents]" - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - size = { 40 40 } - - button_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/flat_icons/data_system.dds" - tooltip = "TOGGLE_DATA_SYSTEM" - using = tooltip_below - onclick = "[ExecuteConsoleCommand('Localization.ToggleSkipDataSystemInLocOutput')]" - fontsize = 24 - } - } - - button_round = { - size = { 40 40 } - button_copy = { - parentanchor = center - onclick = "[EventWindowData.CopyToClipboard]" - tooltip = "COPY_EVENT_CONTENTS" - } - } - - container = { - tooltip = "[EventWindowData.GetTriggerBreakdown]" - using = tooltip_below - icon = { - visible = "[EventWindowData.IsTriggerFulfilled]" - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - icon = { - visible = "[Not( EventWindowData.IsTriggerFulfilled )]" - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - - button = { - name = "debug_icon" - size = { 40 40 } - - button = { - size = { 100% 100% } - tooltip = "[EventWindowData.GetDebugInfo]" - using = tooltip_below - onclick = "[EventWindowData.CopyToClipboard]" - onrightclick = "[EventWindowData.DebugOpen]" - button_ignore = none - raw_text = "?" - fontsize = 24 - } - } - } -} diff --git a/N3OW/gui/event_windows/fullscreen_event.gui b/N3OW/gui/event_windows/fullscreen_event.gui deleted file mode 100644 index 34df17c5..00000000 --- a/N3OW/gui/event_windows/fullscreen_event.gui +++ /dev/null @@ -1,344 +0,0 @@ -window = { - name = "fullscreen_event" - size = { 100% 100% } - #scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - movable = no - - layer = top - - datacontext = "[EventWindow.AccessEventWindowData]" - - widget = { - size = { 110% 120% } - alpha = 0 - - state = { - name = start - trigger_on_create = yes - using = Animation_Curve_Default - alpha = 1 - duration = 0.7 - } - - background = { - name = "event_backdrop_darken" - using = Background_Area_Dark - margin = { 10 10 } - } - } - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_Panel_Popup_Snapshot - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - - start_sound = { - soundeffect = "event:/MUSIC/Cues/Events/kill_mx_cue" - } - } - - widget = { - name = "window_background" - parentanchor = center - widgetanchor = center - size = { 115% 760 } - - alpha = 0 - - background = { - name = "event_background_dark" - texture = "gfx/interface/window_struggle/end_struggle_background.dds" - alpha = 0.95 - } - - state = { - name = start - trigger_on_create = yes - using = Animation_Curve_Default - alpha = 1 - delay = 0.2 - duration = 0.7 - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - } - - widget = { - name = "event_image" - parentanchor = center - widgetanchor = center - size = { 1920 626 } - position = { 175 -5 } - - alpha = 0 - - event_window_background_widget = { - blockoverride "event_picture_properties" - { - modify_texture = { - name = "event_picture_fade_left" - texture = "gfx/interface/component_masks/mask_fade_struggle_illustration.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - - modify_texture = { - name = "event_picture_fade_short_left" - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - mirror = horizontal - blend_mode = alphamultiply - } - - modify_texture = { - name = "event_picture_fade_textured_up" - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - translate_uv = { 0 -0.05 } - blend_mode = alphamultiply - } - - modify_texture = { - name = "event_picture_fade_textured_down" - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - translate_uv = { 0 0.05 } - blend_mode = alphamultiply - } - } - } - - state = { - name = start - trigger_on_create = yes - using = Animation_Curve_Default - alpha = 1 - delay = 0.2 - duration = 0.7 - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - } - - widget = { - name = "window_content" - parentanchor = left|vcenter - size = { 500 600 } - position = { 35 0 } - - vbox = { - name = "text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - alpha = 0 - - background = { - using = Background_Area_Dark - using = Mask_Rough_Edges - - margin_top = -6 - margin_left = 15 - - modify_texture = { - name = "event_picture_fade_left" - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - rotate_uv = 0.9 - } - - modify_texture = { - name = "event_picture_fade_left" - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - name = "event_picture_fade_left" - texture = "gfx/interface/component_masks/mask_texture_01.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "event_picture_fade_left" - texture = "gfx/interface/component_masks/mask_texture_01.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - text_single = { - name = "title" - layoutpolicy_horizontal = expanding - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - using = Font_Type_Flavor - max_width = 480 - align = left - } - - state = { - name = start - trigger_on_create = yes - delay = 0.3 - using = Animation_Curve_Default - alpha = 1 - duration = 0.7 - } - } - - hbox = { - name = "description" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 20 - - alpha = 0 - - scrollarea = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 500 -1 } - maximumsize = { 500 -1 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - scrollwidget = { - text_multi = { - name = "description" - minimumsize = { 480 -1 } - maximumsize = { 480 -1 } - autoresize = yes - margin_top = 5 - text = "[EventWindowData.GetDescription]" - fontsize = 16 - align = left - } - } - } - - state = { - name = start - trigger_on_create = yes - delay = 0.4 - using = Animation_Curve_Default - alpha = 1 - duration = 0.7 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - name = "dynamic_content_widget" - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.7 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - ignoreinvisible = yes - margin_top = 15 - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.7 - using = Animation_Curve_Default - alpha = 1 - duration = 0.7 - } - - expand = {} - - vbox = { - name = "custom_widgets_container" - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = {} - } - } - } - } - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|right - position = { -100 220 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } - - widget = { - name = "event_transition" - parentanchor = center - widgetanchor = center - size = { 2246 730 } - position = { 45 -5 } - - event_window_transition_widget = { - using = Event_Window_Default_Transition_States - } - } -} diff --git a/N3OW/gui/event_windows/letter_event.gui b/N3OW/gui/event_windows/letter_event.gui deleted file mode 100644 index 9b4c318d..00000000 --- a/N3OW/gui/event_windows/letter_event.gui +++ /dev/null @@ -1,698 +0,0 @@ -window = { - name = "letter_event" - gfxtype = windowgfx - parentanchor = center - layer = events - allow_outside = yes - size = { 675 530 } ############ SIZES NEED TO MATCH - - using = Window_Movable - - datacontext = "[EventWindow.AccessEventWindowData]" - - state = { - name = _show - trigger_on_create = yes - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('show')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('show')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_letter" - } - } - - state = { - name = _hide - duration = 1 - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('hide')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('hide')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - ### PAPER ### - widget = { - name = "letter_paper" - size = { 675 45 } - widgetanchor = center - parentanchor = center - alpha = 0 - - using = Background_Letter - - state = { - name = show - next = a - delay = 0.3 - - using = Animation_FadeIn_Standard - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = a - duration = 0.25 - bezier = { 0.3 0 0.7 1 } - - animation = { - size = { 675 530 } ############ SIZES NEED TO MATCH - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - size = { 585 -1 } - } - - widget = { - size = { 700 40 } - widgetanchor = center - parentanchor = top|hcenter - position = { 0 8 } - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_top.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - - widget = { - size = { 700 40 } - widgetanchor = center - parentanchor = bottom|hcenter - position = { 0 -8 } - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_bottom.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - } - - ### CONTENT ### - widget = { - name = "letter_content" - widgetanchor = center - parentanchor = center - size = { 675 530 } ############ SIZES NEED TO MATCH - alpha = 0 - - state = { - name = show - delay = 0.8 - - using = Animation_FadeIn_Standard - - animation = { - size = { 675 530 } ############ SIZES NEED TO MATCH - - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - duration = 0.08 - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|hcenter - position = { 25 20 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } - - icon = { - size = { 256 432 } - position = { 0 24 } - alpha = 0.8 - - texture = "gfx/interface/window_legend_chronicle/marginalia_portrait_gold_bg.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_portrait.dds" - blend_mode = alphamultiply - } - } - - widget = { - size = { 328 548 } - position = { 10 15 } - alpha = 0.8 - scale = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_big.dds" - } - } - - widget = { - parentanchor = bottom|right - size = { 264 264 } - position = { -10 -20 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - } - } - - widget = { - parentanchor = top|right - size = { 264 264 } - position = { -10 15 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - mirror = vertical - } - } - - widget = { - parentanchor = bottom|left - size = { 264 264 } - position = { 10 -20 } - scale = 0.6 - alpha = 0.8 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_small.dds" - mirror = horizontal - } - } - - vbox = { - margin = { 10 25 } - margin_right = 0 - margin_bottom = 40 - - expand = {} - - hbox = { - name = "content" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - minimumsize = { 180 0 } - allow_outside = yes - - widget = { - size = { 180 300 } - allow_outside = yes - - portrait_body = { - name = "portrait" - parentanchor = center - datacontext = "[EventWindowData.GetPortraitCharacter('sender')]" - - blockoverride "portrait_button" { - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('sender'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('sender')]" - } - - blockoverride "mask" { - mask = "gfx/portraits/portrait_mask_event_letter.dds" - } - - blockoverride "prison" {} - blockoverride "grayscale" {} - blockoverride "status_icons" {} - blockoverride "opinon_box" {} - blockoverride "coa" {} - } - } - } - - ### text - vbox = { - name = "text" - layoutpolicy_vertical = expanding - - text_multi = { - name = "opening" - visible = "[EventWindowData.HasOpening]" - layoutpolicy_horizontal = expanding - maximumsize = { 430 -1 } - autoresize = yes - margin_top = 10 - margin_right = 20 - text = "[EventWindowData.GetOpening]" - default_format = "#light_background" - using = Font_Type_Flavor - using = Font_Size_Big - format_override = { high light_background } - } - - #### 1 option #### - scrollarea = { - visible = "[LessThanOrEqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)1')]" - maximumsize = { -1 280 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 2 options #### - scrollarea = { - visible = "[EqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)2')]" - maximumsize = { -1 240 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 3 options #### - scrollarea = { - visible = "[EqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)3')]" - maximumsize = { -1 190 } - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - #### 4 options #### - scrollarea = { - visible = "[GreaterThanOrEqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)4')]" - minimumsize = { 430 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - text_multi = { - name = "description" - maximumsize = { 430 -1 } - autoresize = yes - margin = { 0 10 } - margin_right = 20 - alwaystransparent = yes - text = "[EventWindowData.GetDescription]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - } - } - } - - hbox = { - name = "signed_text" - layoutpolicy_horizontal = expanding - spacing = 10 - margin_right = 15 - - expand = {} - - vbox = { - text_single = { - name = "signed_text" - align = right - layoutpolicy_horizontal = expanding - - text = "[EventWindowData.GetSigned]" - default_format = "#light_background" - using = Font_Size_Medium - } - - text_multi = { - name = "signature" - align = left - - text = "[EventWindowData.GetSignature]" - default_format = "#light_background" - using = Font_Type_Flavor - using = Font_Size_Medium - format_override = { high light_background } - autoresize = yes - max_width = 350 - fontsize_min = 14 - using = Text_Light_Background_Overrides - } - } - - coa_character_sigil = { - datacontext = "[EventWindowData.GetPortraitCharacter('sender')]" - visible = "[And( EventWindowData.ShouldShowPortraitInfo('sender'), EventWindowData.GetPortraitCharacter('sender').GetDynasty.IsValid )]" - - blockoverride "size" - { - size = { 80 80 } - } - blockoverride "sigil_size" - { - size = { 56 56 } - } - } - - spacer = { - visible = "[And( EventWindowData.ShouldShowPortraitInfo('sender'), Not( EventWindowData.GetPortraitCharacter('sender').GetDynasty.IsValid ) )]" - size = { 80 80 } - } - } - } - } - - expand = {} - - ### Options - fixedgridbox = { - name = "option_grid" - addcolumn = 654 - addrow = 46 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_event_letter = { - name = "event_option_button" - parentanchor = hcenter - size = { 592 42 } - - tooltip = "[EventOption.GetTooltip]" - tooltip_visible = "[Not( StringIsEmpty( EventOption.GetTooltip ) )]" - - onclick = "[EventOption.Select]" - onmousehierarchyenter = "[EventOption.OnEnter]" - onmousehierarchyleave = "[EventOption.OnLeave]" - enabled = "[EventOption.IsValid]" - - tooltipwidget = { - using = DefaultTooltipWidget - } - using = tooltip_es - - animation_glow_event = { - name = "special_option" - visible = "[And(EventOption.HasFlag('special'), Not(EventOption.HasFlag('dangerous')))]" - } - - animation_glow_event = { - name = "dangerous_option" - visible = "[EventOption.HasFlag('dangerous')]" - using = Color_Red - } - - ### BUTTON CONTENT #### - widget = { - size = { 102 34 } - parentanchor = left|vcenter - - hbox = { - fixedgridbox = { - name = "reason_icons" - datamodel = "[EventOption.Reasons]" - addcolumn = 34 - addrow = 34 - flipdirection = yes - - item = { - container = { - icon = { - name = "trait_icon" - datacontext = "[ReasonItem.GetTrait]" - - visible = "[ReasonItem.IsTrait]" - alwaystransparent = yes - - texture = "[Trait.GetIcon(GetPlayer)]" - size = { 34 34 } - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRAIT" - using = tooltip_nw - } - - icon = { - name = "skill_icon" - datacontext = "[ReasonItem.GetSkillItem]" - - visible = "[ReasonItem.IsSkill]" - alwaystransparent = yes - - texture = "gfx/interface/icons/icon_skills.dds" - size = { 34 34 } - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SKILL" - using = tooltip_ws - } - - icon = { - name = "dread_icon" - visible = "[ReasonItem.IsFlag( 'dread' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dread.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_DREAD" - } - - icon = { - name = "activity_intent_icon" - visible = "[ReasonItem.IsFlag( 'activity_intent' )]" - size = { 34 34 } - texture = "[GetPlayer.GetInvolvedActivity.GetType.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ACTIVITY_INTENT" - } - - icon = { - name = "prestige_icon" - visible = "[ReasonItem.IsFlag( 'prestige_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PRESTIGE_LEVEL" - } - - icon = { - name = "piety_icon" - visible = "[ReasonItem.IsFlag( 'piety_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPietyLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PIETY_LEVEL" - } - - icon = { - name = "faith_icon" - visible = "[ReasonItem.IsFlag( 'faith' )]" - size = { 34 34 } - texture = "[GetPlayer.GetFaith.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FAITH" - } - - icon = { - name = "estate_building_wine_cellar_icon" - visible = "[ReasonItem.IsFlag( 'estate_building_wine_cellar' )]" - size = { 34 34 } - texture = "gfx/interface/icons/map_icons/map_icon_estate.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ESTATE_BUILDING_WINE_CELLAR" - } - } - } - } - - warning_icon = { - name = "timeout_icon" - size = { 34 34 } - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - tooltip = EVENT_WINDOW_DAYS_REMAINING - } - } - } - - hbox = { - - text_single = { - text = "[EventOption.GetText]" - - default_format = "#light_background" - using = Font_Size_Medium - align = center - layoutpolicy_horizontal = expanding - max_width = 420 - fontsize_min = 12 - using = Text_Light_Background_Overrides - } - } - - widget = { - size = { 102 34 } - parentanchor = right|vcenter - - hbox = { - name = "effects_grid" - datamodel = "[EventOption.Effects]" - - expand = {} - - item = { - container = { - container = { - alwaystransparent = yes - visible = "[OptionEffectItem.IsTrait]" - - highlight_icon = { - datacontext = "[OptionEffectItem.GetTrait]" - name = "trait_icon" - size = { 34 34 } - texture = "[Trait.GetIcon(GetPlayer)]" - } - - highlight_icon = { - visible = "[OptionEffectItem.IsGain]" - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - name = "gain" - size = { 20 20 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - name = "loss" - size = { 20 20 } - } - } - - container = { - alwaystransparent = yes - visible = "[OptionEffectItem.IsStress]" - - highlight_icon = { - visible = "[And(OptionEffectItem.IsGain,Not(OptionEffectItem.IsCritical))]" - texture = "gfx/interface/icons/stress/icon_stress_gain.dds" - name = "stress_gain" - size = { 34 34 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/stress/icon_stress_loss.dds" - name = "stress_loss" - size = { 34 34 } - } - - highlight_icon = { - visible = "[OptionEffectItem.IsCritical]" - texture = "gfx/interface/icons/stress/icon_stress_gain_critical.dds" - name = "stress_critical" - size = { 34 34 } - } - } - - highlight_icon = { - name = "death" - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - highlight_icon = { - name = "scheme" - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_scheme.dds" - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/event_windows/scheme_failed_event.gui b/N3OW/gui/event_windows/scheme_failed_event.gui deleted file mode 100644 index 02883651..00000000 --- a/N3OW/gui/event_windows/scheme_failed_event.gui +++ /dev/null @@ -1,23 +0,0 @@ -scheme_conclusion_window = { - name = "scheme_failed_event" - - blockoverride "result_header" { - # Header Success - icon = { - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/window_scheme/scheme_failure_header.dds" - } - - text_single = { - parentanchor = left|vcenter - position = { 27 1 } - text = "SCHEME_FAILED_HEADER" - align = nobaseline - default_format = "#high" - using = Font_Type_Flavor - using = Font_Size_Big - - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_windows/scheme_preparations_event.gui b/N3OW/gui/event_windows/scheme_preparations_event.gui deleted file mode 100644 index d58922e0..00000000 --- a/N3OW/gui/event_windows/scheme_preparations_event.gui +++ /dev/null @@ -1,1108 +0,0 @@ -window = { - name = "scheme_preparations_event" - parentanchor = center - widgetanchor = center - position = { -100 0 } - size = { 1120 585 } - layer = events - alpha = 1 - - datacontext = "[EventWindow.AccessEventWindowData]" - datacontext = "[EventWindowData.GetScope.sScheme('scheme')]" - datacontext = "[Scheme.GetSchemeType]" - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - state = { - name = _show - using = Animation_FadeIn_Standard - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_large" - - soundparam = { - name = StateChange - value = 1 - } - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - event_window_dimmer_widget = {} - - widget = { - parentanchor = bottom|hcenter - size = { 100% 91% } - using = Window_Background - using = Window_Decoration_Frontend_Flat_Bottom - } - - event_window_background_widget = { - margin_left = 40 - margin_right = 40 - margin_top = 60 - margin_bottom = 20 - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.1 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - ###CHARACTERS - widget = { - name = "characters" - layoutstretchfactor_horizontal = 55 - parentanchor = bottom|hcenter - size = { 100% 100% } - position = { -30 -17 } - scissor = yes - - ### RIGHT CHARACTER ### - scheme_preparations_right_portrait_widget = { - parentanchor = bottom|right - position = { 30 0 } - size = { 330 558 } - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - ### CENTER CHARACTER ### - scheme_preparations_center_portrait_widget = { - parentanchor = bottom|hcenter - position = { 0 0 } - size = { 330 558 } - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.4 - } - } - - ### LEFT CHARACTER ### - scheme_preparations_left_portrait_widget = { - parentanchor = bottom|left - position = { 70 0 } - size = { 330 558 } - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.2 - } - } - } - - # Event Effect Video - event_window_effect_2d_widget = { - margin = { 30 20 } - } - - vbox = { - name = "event_window" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.6 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - - expand = {} - - vbox = { - name = "scheme_event_options" - layoutpolicy_horizontal = expanding - spacing = 12 - margin_bottom = 10 - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - # Scheme Preparations status bar - vbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_ExtraDark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - fixedgridbox = { - name = "option_grid" - layoutpolicy_horizontal = expanding - addcolumn = 256 - addrow = 42 - datamodel_wrap = 4 - - flipdirection = yes - - datamodel = "[DataModelSkipLast(EventWindowData.GetOptions, '(int32)1')]" - - item = { - button_scheme_event_option = {} - } - } - } - } - } - - ### Character CoAs ### - margin_widget = { - name = "bottom_info" - size = { 93% 70 } - position = { 0 -125} - parentanchor = bottom|hcenter - allow_outside = yes - - ### LEFT CHARACTER INFO ### - widget = { - parentanchor = bottom|left - position = { 270 0 } - size = { 70 76 } - allow_outside = yes - - flowcontainer = { - name = "left_character_info_container" - parentanchor = bottom|right - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.4 - using = Animation_Curve_Default - alpha = 1 - duration = 0.2 - } - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - } - } - } - - ### CENTER CHARACTER INFO ### - widget = { - parentanchor = bottom|hcenter - size = { 70 76 } - allow_outside = yes - - flowcontainer = { - name = "center_character_info_container" - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.2 - } - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('center_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('center_portrait')]" - } - } - } - - ### RIGHT CHARACTER INFO ### - widget = { - parentanchor = bottom|right - position = { -10 0 } - size = { 70 76 } - allow_outside = yes - - flowcontainer = { - name = "right_character_info_container" - parentanchor = bottom|left - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.6 - using = Animation_Curve_Default - alpha = 1 - duration = 0.2 - } - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - } - } - } - } - - ### HEADER ### - widget = { - size = { 1120 76 } - - # Stained glass - icon = { - name = "stained_glass_background" - parentanchor = hcenter - size = { 1076 76 } - texture = "gfx/interface/window_scheme/scheme_opportunity_header_stained_glass.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - # Shimmer animation - state = { - name = right - next = left - - duration = 2.5 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - # Frame - icon = { - name = "frame" - parentanchor = hcenter - size = { 1076 76 } - texture = "gfx/interface/window_scheme/scheme_opportunity_header_frame.dds" - } - - icon = { - name = "theme_icons" - parentanchor = hcenter - size = { 1076 76 } - - # Hostile glass decoration - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - # Personal glass decoration - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - # Politcal scheme decoration - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = left|vcenter - position = { 38 7 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = right|vcenter - position = { -39 6 } - size = { 115 38 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_opportunity_header_mask.dds" - blend_mode = alphaMultiply - } - } - } - - text_single = { - name = "title" - parentanchor = hcenter|vcenter - position = { 0 2 } - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - background = { - using = Background_Area_Dark - margin = { 180 0 } - margin_top = 10 - margin_bottom = 20 - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.3 - } - } - - button_close = { - name = "button_close" - datacontext_from_model = { - datamodel = "[EventWindowData.GetOptions]" - index = "[Subtract_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)1' ) ]" - } - parentanchor = right|vcenter - position = { -95 6 } - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - onclick = "[EventOption.Select]" - - background = { - using = Background_Area_Solid - alpha = 0.8 - - margin = { 2 2 } - } - } - } - - icon = { - name = "source_icon" - visible = "[And( EventWindowData.ShouldShowContentSource, EventWindowData.GetContentSourceDlc.HasEventDecoration )]" - position = { -22 20 } - size = { 263 64 } - parentanchor = top|right - texture = "[EventWindowData.GetContentSourceDlc.GetEventDecoration]" - tooltip = "EVENT_CONTENT_SOURCE_TT" - alpha = 1 - } - - flowcontainer = { - name = "debug_stuff" - visible = "[InDebugMode]" - parentanchor = top|right - position = { -700 25 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types Events -{ - type button_scheme_event_option = button_event_standard - { - name = "event_option_button" - size = { 256 36 } - enabled = "[EventOption.IsValid]" - - default_clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - onclick = "[EventOption.Select]" - clicksound = "[EventOption.GetClickSound]" - - block "onmousehierarchy_callbacks" { - onmousehierarchyenter = "[EventOption.OnEnter]" - onmousehierarchyleave = "[EventOption.OnLeave]" - } - - icon = { - texture = "gfx/interface/buttons/button_event.dds" - alpha = 1 - spriteType = Corneredtiled - spriteborder = { 3 3 } - framesize = { 249 78 } - size = { 100% 100% } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredtiled - spriteborder_left = 40 - spriteborder_right = 40 - blend_mode = alphamultiply - } - } - - # Trick to not have the option text steal tooltips from the trait/skill grid - hbox = { - tooltip = "[EventOption.GetTooltip]" - tooltip_visible = "[Not( StringIsEmpty( EventOption.GetTooltip ) )]" - - block "option_tooltip_position" - { - using = tooltip_ws - tooltip_offset = { -80 0 } - } - - # Wider tooltips for the effects - tooltipwidget = { - using = DefaultTooltipWidget - } - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredtiled - spriteborder_left = 40 - spriteborder_right = 40 - blend_mode = alphamultiply - } - - animation_glow_event = { - name = "special_option" - visible = "[And(EventOption.HasFlag('special'), Not(EventOption.HasFlag('dangerous')))]" - } - - animation_glow_event = { - name = "dangerous_option" - visible = "[EventOption.HasFlag('dangerous')]" - using = Color_Red - } - - ### BUTTON CONTENT #### - hbox = { - margin = { 5 0 } - - hbox = { - fixedgridbox = { - name = "reason_icons" - datamodel = "[EventOption.Reasons]" - addcolumn = 34 - addrow = 34 - flipdirection = yes - - item = { - container = { - icon = { - name = "trait_icon" - datacontext = "[ReasonItem.GetTrait]" - - visible = "[ReasonItem.IsTrait]" - alwaystransparent = yes - - texture = "[Trait.GetIcon(GetPlayer)]" - size = { 34 34 } - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRAIT" - using = tooltip_nw - } - - icon = { - name = "skill_icon" - datacontext = "[ReasonItem.GetSkillItem]" - - visible = "[ReasonItem.IsSkill]" - alwaystransparent = yes - - texture = "gfx/interface/icons/icon_skills.dds" - size = { 34 34 } - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SKILL" - using = tooltip_ws - } - - icon = { - name = "dread_icon" - visible = "[ReasonItem.IsFlag( 'dread' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dread.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_DREAD" - } - - icon = { - name = "activity_intent_icon" - visible = "[ReasonItem.IsFlag( 'activity_intent' )]" - size = { 34 34 } - texture = "[GetPlayer.GetInvolvedActivity.GetType.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ACTIVITY_INTENT" - } - - icon = { - name = "prestige_icon" - visible = "[ReasonItem.IsFlag( 'prestige_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PRESTIGE_LEVEL" - } - - icon = { - name = "piety_icon" - visible = "[ReasonItem.IsFlag( 'piety_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPietyLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PIETY_LEVEL" - } - - icon = { - name = "faith_icon" - visible = "[ReasonItem.IsFlag( 'faith' )]" - size = { 34 34 } - texture = "[GetPlayer.GetFaith.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FAITH" - } - - icon = { - name = "scheme_success_icon" - visible = "[ReasonItem.IsFlag( 'gives_scheme_success' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - tooltip = "EVENT_WINDOW_OPTION_GIVES_SCHEME_SUCCESS" - } - - icon = { - name = "scheme_phase_duration_icon" - visible = "[ReasonItem.IsFlag( 'gives_scheme_phase_duration' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - tooltip = "EVENT_WINDOW_OPTION_GIVES_SCHEME_PHASE_DURATION" - } - - icon = { - name = "purpose_mercenaries_icon" - visible = "[ReasonItem.IsFlag( 'purpose_mercenaries' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_MERCENARIES" - } - - icon = { - name = "purpose_wanderers_icon" - visible = "[ReasonItem.IsFlag( 'purpose_wanderers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_WANDERERS" - } - - icon = { - name = "purpose_scholars_icon" - visible = "[ReasonItem.IsFlag( 'purpose_scholars' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_SCHOLARS" - } - - icon = { - name = "purpose_explorers_icon" - visible = "[ReasonItem.IsFlag( 'purpose_explorers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_EXPLORERS" - } - - icon = { - name = "purpose_brigands_icon" - visible = "[ReasonItem.IsFlag( 'purpose_brigands' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_BRIGANDS" - } - - icon = { - name = "purpose_legitimists_icon" - visible = "[ReasonItem.IsFlag( 'purpose_legitimists' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_LEGITIMISTS" - } - - icon = { - name = "estate_building_wine_cellar_icon" - visible = "[ReasonItem.IsFlag( 'estate_building_wine_cellar' )]" - size = { 34 34 } - texture = "gfx/interface/icons/map_icons/map_icon_estate.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ESTATE_BUILDING_WINE_CELLAR" - } - } - } - } - - warning_icon = { - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - name = "timeout_icon" - size = { 30 30 } - tooltip = EVENT_WINDOW_DAYS_REMAINING - } - } - - ###### SPACER ###### - hbox = { - name = "spacer_effects" - datamodel = "[EventOption.Effects]" - - item = { - container = { - container = { - visible = "[OptionEffectItem.IsTrait]" - alwaystransparent = yes - - spacer = { - datacontext = "[OptionEffectItem.GetTrait]" - size = { 34 34 } - } - } - - spacer = { - visible = "[OptionEffectItem.IsStress]" - size = { 34 34 } - } - - spacer = { - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - } - - spacer = { - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - } - } - } - } - - # Valid option - text_single = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - alwaystransparent = yes - visible = "[EventOption.IsValid]" - - text = "[EventOption.GetText]" - autoresize = no - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - } - - # Invalid option - text_single = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - alwaystransparent = yes - visible = "[Not( EventOption.IsValid )]" - - text = "[EventOption.GetText]" - autoresize = no - default_format = "#low" - align = center|nobaseline - fontsize_min = 12 - } - - ##### SPACER ##### - hbox = { - hbox = { - name = "reason_spacers" - datamodel = "[EventOption.Reasons]" - item = { - spacer = { - size = { 34 34 } - } - } - } - - hbox = { - name = "timeout_spacer" - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - - spacer = { - size = { 34 34 } - } - } - } - - hbox = { - name = "effects_grid" - datamodel = "[EventOption.Effects]" - - item = { - container = { - container = { - visible = "[OptionEffectItem.IsTrait]" - alwaystransparent = yes - - icon = { - datacontext = "[OptionEffectItem.GetTrait]" - name = "trait_icon" - size = { 34 34 } - texture = "[Trait.GetIcon(GetPlayer)]" - } - - icon = { - visible = "[OptionEffectItem.IsGain]" - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - name = "gain" - size = { 20 20 } - } - - icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - name = "loss" - size = { 20 20 } - } - } - - container = { - visible = "[OptionEffectItem.IsStress]" - alwaystransparent = yes - - icon = { - visible = "[And(OptionEffectItem.IsGain,Not(OptionEffectItem.IsCritical))]" - texture = "gfx/interface/icons/stress/icon_stress_gain.dds" - name = "stress_gain" - size = { 34 34 } - } - - icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/stress/icon_stress_loss.dds" - name = "stress_loss" - size = { 34 34 } - } - - icon = { - visible = "[OptionEffectItem.IsCritical]" - texture = "gfx/interface/icons/stress/icon_stress_gain_critical.dds" - name = "stress_critical" - size = { 34 34 } - } - } - - icon = { - name = "death" - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - icon = { - name = "scheme" - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - texture = "[OptionEffectItem.GetScheme.GetIcon]" - } - } - } - } - } - } - - type scheme_preparations_left_portrait_widget = widget { - allow_outside = no - - portrait_event = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('left_portrait')]" - parentanchor = bottom|hcenter - position = { 60 0 } - size = { 500 558 } - - blockoverride "portrait_button" - { - size = { 700 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - using = tooltip_below - tooltip_widgetanchor = center - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - position = { 70 0 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - type scheme_preparations_center_portrait_widget = widget { - allow_outside = no - - portrait_event = { - name = "portrait_center" - datacontext = "[EventWindowData.GetPortraitCharacter('center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('center_portrait')]" - parentanchor = bottom|hcenter - position = { 0 0 } - size = { 500 558 } - - blockoverride "portrait_button" - { - size = { 700 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('center_portrait', 'camera_event_center', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('center_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('center_portrait')]" - using = tooltip_below - tooltip_widgetanchor = center - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('center_portrait') ))]" - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('center_portrait')))]" - visible_at_creation = no - size = { 280 500 } - position = { 10 0 } - parentanchor = bottom|hcenter - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - type scheme_preparations_right_portrait_widget = widget { - allow_outside = no - - portrait_event = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = bottom|hcenter - position = { -130 -1 } - size = { 500 558 } - - blockoverride "portrait_button" - { - size = { 700 558 } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - tooltip_offset = { -210 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 80 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - size = { 285 500 } - position = { -30 0 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } -} diff --git a/N3OW/gui/event_windows/scheme_successful_event.gui b/N3OW/gui/event_windows/scheme_successful_event.gui deleted file mode 100644 index d1e8b1ac..00000000 --- a/N3OW/gui/event_windows/scheme_successful_event.gui +++ /dev/null @@ -1,23 +0,0 @@ -scheme_conclusion_window = { - name = "scheme_successful_event" - - blockoverride "result_header" { - # Header Success - icon = { - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/window_scheme/scheme_success_header.dds" - } - - text_single = { - parentanchor = left|vcenter - position = { 27 1 } - text = "SCHEME_SUCCESSFUL_HEADER" - align = nobaseline - default_format = "#high" - using = Font_Type_Flavor - using = Font_Size_Big - - } - } -} \ No newline at end of file diff --git a/N3OW/gui/event_windows/scheme_successful_event_no_text.gui b/N3OW/gui/event_windows/scheme_successful_event_no_text.gui deleted file mode 100644 index ce15b5fc..00000000 --- a/N3OW/gui/event_windows/scheme_successful_event_no_text.gui +++ /dev/null @@ -1,3 +0,0 @@ -scheme_conclusion_window = { - name = "scheme_successful_event_no_text" -} \ No newline at end of file diff --git a/N3OW/gui/event_windows/scheme_target_event.gui b/N3OW/gui/event_windows/scheme_target_event.gui deleted file mode 100644 index 3119214c..00000000 --- a/N3OW/gui/event_windows/scheme_target_event.gui +++ /dev/null @@ -1,6 +0,0 @@ -scheme_conclusion_window = { - name = "scheme_target_event" - - blockoverride "result_header" { - } -} \ No newline at end of file diff --git a/N3OW/gui/event_windows/visit_settlement_window.gui b/N3OW/gui/event_windows/visit_settlement_window.gui deleted file mode 100644 index 77c136ce..00000000 --- a/N3OW/gui/event_windows/visit_settlement_window.gui +++ /dev/null @@ -1,35 +0,0 @@ -big_event_window = { - name = "visit_settlement_window" - - blockoverride "transition" { - - state = { - name = show - trigger_on_create = yes - using = Animation_FadeIn_Standard - duration = 0 - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - on_start = "[GetVariableSystem.Clear( 'hide_characters')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - duration = 0 - } - } - - blockoverride "transition_text" { - } - - blockoverride "transition_left_character" { - } - - blockoverride "transition_center_character" { - } - - blockoverride "transition_right_character" { - } - -} \ No newline at end of file diff --git a/N3OW/gui/frontend_bookmarks.gui b/N3OW/gui/frontend_bookmarks.gui deleted file mode 100644 index 100b5f63..00000000 --- a/N3OW/gui/frontend_bookmarks.gui +++ /dev/null @@ -1,4434 +0,0 @@ -widget = { - name = "frontend_bookmarks" - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - on_start = "[PdxGuiTriggerAllAnimations('bookmarks_bars_appear')]" - on_start = "[GetVariableSystem.Clear( 'show_character_info')]" - on_finish = "[PdxGuiTriggerAllAnimations('bookmarks_buttons_shimmer')]" - on_finish = "[GetVariableSystem.Set('set_last_applied_ironman_mode', 'true' )]" - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_slide" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - #Background - icon = { - size = { 100% 100%} - parentanchor = center - texture = "gfx/interface/colors/map_color.dds" - - modify_texture = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - spriteType = corneredtiled - blend_mode = overlay - texture_density = 2 - alpha = 0.2 - - } - - modify_texture = { - - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - blend_mode = alphamultiply - spriteType= Corneredtiled - spriteborder_top = 1080 - alpha = 0.5 - } - - modify_texture = { - - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - blend_mode = alphamultiply - spriteType= Corneredtiled - spriteborder_top = 1080 - mirror = vertical - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - alpha = 1 - } - } - - widget = { - parentanchor = center - size = { 1920 1080 } - scale = 1 - allow_outside = yes - - state = { - name = "bookmarks_game_start_selected_character" - delay = 1.45 - on_finish = "[GameSetup.OnStart]" - } - - state = { - name = "bookmarks_game_start_any_character" - delay = 1.45 - on_finish = "[GameSetup.OnCustomStart]" - } - - widget = { - parentanchor = center - size = { 1920 1200 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - - state = { - name = "bookmark_change" - alpha = 0.7 - next = "fadein" - } - - state = { - name = "fadein" - using = Animation_FadeIn_Standard - } - - widget = { - name = "background_map" - parentanchor = center - size = { 1920 1080 } - - state = { - name = "bookmarks_game_start" - delay = 0.35 - duration = 1.1 - - bezier = { 0.8 0 1 1 } - scale = 10 - } - - state = { - name = "bookmarks_reset" - duration = 0.3 - - bezier = { 0.8 0 1 1 } - scale = 1 - } - - icon = { - name = "bookmark_background" - size = { 100% 100% } - texture = "[GameSetup.GetSelectedBookmark.GetBackground]" - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 1080 - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 1080 - mirror = vertical - blend_mode = alphamultiply - } - } - - icon = { - name = "character_selection" - visible = "[GameSetup.HasSelectedCharacter]" - texture = "[GameSetup.GetSelectedCharacter.GetLocationImage]" - size = { 100% 100% } - - state = { - name = "_show" - using = Animation_FadeIn_Quick - next = pulse_a - } - - state = { - name = "pulse_a" - alpha = 1 - duration = 1 - next = pulse_b - using = Animation_Curve_Default - } - - state = { - name = "pulse_b" - alpha = 0.7 - duration = 1 - next = pulse_a - using = Animation_Curve_Default - } - } - - icon = { - name = "character_over" - visible = "[GameSetup.HasHoveredCharacter]" - texture = "[GameSetup.GetHoveredCharacter.GetLocationImage]" - size = { 100% 100% } - alpha = 0.3 - - state = { - name = "_show" - using = Animation_FadeIn_Quick - } - - state = { - name = "_hide" - using = Animation_FadeOut_Standard - } - } - } - - widget = { - name = "map_characters" - size = { 100% 100% } - datamodel = "[GameSetup.GetSelectedBookmarkCharacters]" - - state = { - name = "map_characters_appear" - trigger_on_create = yes - next = "b" - - alpha = 0 - position = { 0 15 } - } - - state = { - name = "b" - delay = 0.4 - duration = 0.3 - using = Animation_Curve_Default - - position = { 0 0 } - alpha = 1 - } - - item = { - container = { - visible = "[BookmarkCharacter.ShouldDisplay]" - position = "[BookmarkCharacter.GetGuiPosition]" - - button_group_map_character_selection = { - visible = "[Not( GameSetup.IsCharacterSelected( BookmarkCharacter.Self ) )]" - onclick = "[PdxGuiTriggerAllAnimations('bookmark_character_change')]" - onclick = "[GameSetup.SetSelectedCharacter( BookmarkCharacter.Self )]" - onclick = "[GetVariableSystem.Set( 'show_character_info', 'true' )]" - alwaystransparent = "[GameSetup.IsCharacterSelected( BookmarkCharacter.Self )]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[GameSetup.SetHoveredBookmarkCharacter( BookmarkCharacter.Self )]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow').TriggerAnimation('bookmark_character_hover_enter')]" - on_start = "[PdxGuiWidget.FindChild('size_widget').TriggerAnimation('bookmark_character_hover_enter')]" - position = { 0 -6 } - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GameSetup.DeselectHoveredBookmarkCharacter]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow').TriggerAnimation('bookmark_character_hover_leave')]" - on_start = "[PdxGuiWidget.FindChild('size_widget').TriggerAnimation('bookmark_character_hover_leave')]" - position = { 0 0 } - duration = 0.2 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_enter - on_start = "[GameSetup.SetHoveredBookmarkCharacter( BookmarkCharacter.Self )]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow_asia').TriggerAnimation('bookmark_character_hover_enter_asia')]" - on_start = "[PdxGuiWidget.FindChild('size_widget').TriggerAnimation('bookmark_character_hover_enter_asia')]" - position = { 0 -6 } - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GameSetup.DeselectHoveredBookmarkCharacter]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow_asia').TriggerAnimation('bookmark_character_hover_leave_asia')]" - on_start = "[PdxGuiWidget.FindChild('size_widget').TriggerAnimation('bookmark_character_hover_leave_asia')]" - position = { 0 0 } - duration = 0.2 - using = Animation_Curve_Default - } - - state = { - name = "bookmarks_game_start" - duration = 0.2 - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "bookmarks_reset" - duration = 0.2 - using = Animation_Curve_Default - alpha = 1 - } - - widget = { - name = "size_widget" - size = { 100% 195 } - - state = { - name = "bookmark_character_hover_enter" - position = { 0 60 } - } - - state = { - name = "bookmark_character_hover_leave" - position = { 0 0 } - } - } - } - - button_group_map_character_selection = { - visible = "[GameSetup.IsCharacterSelected( BookmarkCharacter.Self )]" - visible_at_creation = no - position = { 0 -6 } - alwaystransparent = yes - - state = { - name = "bookmarks_hide_selected_character" - duration = 0.2 - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "bookmarks_game_start" - delay = 0.2 - duration = 0.8 - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "bookmarks_reset" - duration = 0.2 - using = Animation_Curve_Default - alpha = 1 - } - } - } - } - } - - icon = { - size = { 200 200 } - parentanchor = center - texture = "gfx/interface/colors/white.dds" - color = { 0.85 0.8 0.75 1 } - alpha = 0 - scale = 1 - - modify_texture = { - name = "mask" - texture = "gfx/interface/icons/map_coa/ally_icon.dds" - blend_mode = alphamultiply - rotate_uv = 0 - } - - state = { - name = "bookmarks_game_start" - delay = 0.35 - duration = 1 - scale = 25 - - animation = { - bezier = { 0 1 1 1 } - alpha = 1 - } - - animation = { - bezier = { 0 0 1 1 } - - modify_texture = { - name = "mask" - rotate_uv = 180 - } - } - } - - state = { - name = "bookmarks_reset" - duration = 0.4 - scale = 1 - on_start = "[GameSetup.ResetView]" - - animation = { - bezier = { 0 1 1 1 } - alpha = 0 - } - - animation = { - bezier = { 0 0 1 1 } - - modify_texture = { - name = "mask" - rotate_uv = 0 - } - } - } - } - } - - widget = { - parentanchor = center - size = "[GetResolutionWithAspectRatio]" - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - allow_outside = yes - - ### Top Bar - widget = { - size = { 100% 50 } - allow_outside = yes - - state = { - name = "bookmarks_game_start" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 0 - position_y = -60 - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_y = 0 - } - - state = { - name = "bookmarks_bars_appear" - next = b - - alpha = 0 - position_y = -60 - } - - state = { - name = b - using = Animation_Curve_Default - - alpha = 1 - delay = 0.5 - position_y = 0 - duration = 0.15 - } - - widget = { - size = { 100% 35 } - - background = { - using = Background_Area_Solid - margin = { 20 0 } - margin_top = 10 - } - - background = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - texture_density = 1 - margin_bottom = -5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } - - icon = { - name = "tile_frame_top" - parentanchor = bottom|hcenter - size = { 1970 22 } - position = { 0 5 } - - texture = "gfx/interface/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - mirror = vertical - texture_density = 2 - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - widget ={ - size = { 590 90} - - background = { - texture = "gfx/interface/bookmarks/top_bar_panel.dds" - margin_top = 10 - margin_left = 10 - } - - vbox = { - hbox = { - allow_outside = yes - spacing = 60 - margin_left = -100 - margin_top = 10 - button_tertiary = { - name = "play_tutorial" - onclick = "[GameSetup.OnShowTutorialPrompt]" - text = "GAMESETUP_PLAY_TUTORIAL" - } - - text_single = { - text = "BOOKMARK_SELECT_BOOKMARK" - default_format = "#weak" - align = nobaseline - - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - - scrollarea = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 90 } - - scrollbarpolicy_vertical = always_off - scrollbarpolicy_horizontal = as_needed - - scrollbar_horizontal = { - scrollbar = { - wheelstep = 60 - direction = horizontal - - track = { - button = {} - } - - slider = { - button = {} - } - - dec_button = { - - button = {} - } - - inc_button = { - button = {} - } - } - } - - scrollwidget = { - - hbox = { - position = { 5 -15 } - spacing = 5 - - hbox = { - name = "bookmark_groups" - datamodel = "[GameSetup.AccessBookmarkGroups]" - layoutpolicy_vertical = expanding - spacing = 5 - allow_outside = yes - - item = { - widget_bookmark_group_button = { - name = "bookmark_group_tab" - } - } - } - - hbox = { - visible = "[GameSetup.HasUngroupedBookmarks]" - name = "ungrouped_bookmarks" - datamodel = "[GameSetup.GetUngroupedBookmarks]" - layoutpolicy_vertical = expanding - allow_outside = yes - - item = { - widget_ungrouped_bookmark_button = { - name = "bookmark_tab" - } - } - } - - expand = {} - } - } - } - } - } - } - } - - ### Left sidebar - widget = { - size = { 300 100% } - position = {0 83 } - - state = { - name = "bookmark_group_change" - next = "fadein" - - alpha = 0 - } - - state = { - name = "fadein" - delay = 0.2 - duration = 0.5 - using = Animation_Curve_Default - - alpha = 1 - } - - state = { - name = "bookmarks_game_start" - using = Animation_Curve_Default - duration = 0.2 - alpha = 0 - position_x = -100 - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_x = 0 - } - - state = { - name = "bookmarks_bars_appear" - next = b - - alpha = 0 - position_x = -100 - } - - state = { - name = b - using = Animation_Curve_Default - - alpha = 1 - delay = 0.5 - position_x = 0 - duration = 0.15 - } - - widget = { - size = { 40 100%} - position = { -10 -15 } - - background = { - using = Background_Area_Solid - } - - icon = { - name = "tile_left_sidebar" - parentanchor = top|right - size = { 22 100% } - position = { 10 -40 } - - texture = "gfx/interface/component_decoration/decoration_frame_side_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - } - } - - scrollbox = { - name = "bookmarks" - size = { 330 80% } - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_margins" {} - blockoverride "scrollbox_background_fade" {} - - scrollbaralign_vertical = left - - blockoverride "scrollbox_content" { - vbox = { - - vbox = { - datamodel = "[GameSetup.GetBookmarksInGroup( GameSetup.GetSelectedBookmarkGroup )]" - - item = { - widget = { - visible = "[Bookmark.HasRequiredDLC]" - size = { 290 80 } - - #Bookmark Button - bookmark_button = {} - - } - } - } - - widget = { - size = { 290 150} - } - } - } - } - } - - - - - ### Bottom Panel - - widget = { - name = "bottom_panel" - size = { 100% 70 } - parentanchor = bottom|hcenter - - widget = { - size={ 350 200 } - parentanchor = bottom|left - position = { 0 -60 } - - background = { - texture = "gfx/interface/bookmarks/custom_ruler_backdrop.dds" - } - } - - state = { - name = "bookmarks_game_start" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 0 - position_y = 50 - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_y = 0 - } - - state = { - name = "bookmarks_bars_appear" - next = b - - alpha = 0 - position_y = 50 - } - - state = { - name = b - using = Animation_Curve_Default - - alpha = 1 - delay = 0.5 - position_y = 0 - duration = 0.15 - } - - background = { - using = Background_Area_Solid - margin = { 20 0 } - margin_bottom = 10 - } - - background = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin_top = -22 - texture_density = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - } - - icon = { - name = "tile_frame_top" - parentanchor = hcenter - size = { 1970 22 } - position = { 0 -5 } - - texture = "gfx/interface/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - } - - icon = { - parentanchor = top|hcenter - position = { 0 -19 } - texture = "gfx/interface/component_decoration/decoration_frame_top_center.dds" - texture_density = 2 - } - - icon = { - parentanchor = top|right - position = { 0 -24 } - size = { 40 40 } - texture = "gfx/interface/component_decoration/decoration_arch.dds" - } - - icon = { - parentanchor = top|left - position = { -3 -24 } - size = { 40 40 } - texture = "gfx/interface/component_decoration/decoration_arch.dds" - mirror = horizontal - } - - hbox = { - margin = { 10 0 } - margin_top = 10 - spacing = 20 - - hbox = { - layoutpolicy_horizontal = growing - - hbox = { - - background = { - using = Background_Area_Solid - margin = { 60 10 } - alpha = 0.7 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 40 0 } - blend_mode = alphamultiply - } - } - - button_standard_back = { - name = "back_button" - shortcut = "close_window" - enabled = "[Not(GameSetup.HasGameStarted)]" - onclick = "[GameSetup.OnBack]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = growing - margin = { 5 5 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - hbox = { - spacing = 10 - - button_standard = { - name = "game_rules_button" - text = "GAME_RULES" - onclick = "[OpenGameRules]" - - button_rules = { - size = { 25 25 } - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - } - } - - hbox = { - flowcontainer_game_rules_mini = { - name = "game_rules_mini" - margin = { 10 0 } - } - - hbox = { - name = "buttons" - visible = "[Not( HasGameStartedForTheFirstTime )]" - - margin_right = 15 - - button_checkbox_label = { - visible = "[Not( IsIronmanEnabled )]" - onclick = "[SetIronmanEnabledStatus( '(bool)yes' )]" - - blockoverride "checkbox" - { - checked = "[IsIronmanEnabled]" - } - - blockoverride "text" - { - text = "BOOKMARK_IRONMAN_DISABLED" - } - } - - button_checkbox_label = { - visible = "[IsIronmanEnabled]" - onclick = "[SetIronmanEnabledStatus( '(bool)no' )]" - - blockoverride "checkbox" - { - checked = "[IsIronmanEnabled]" - } - - blockoverride "text" - { - text = "BOOKMARK_IRONMAN_ENABLED" - } - } - } - - hbox = { - layoutpolicy_vertical = expanding - margin = { 5 5 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - hbox_achievements_info = { - using = tooltip_ne - blockoverride "ai_background" - { - #no background - } - - blockoverride "ai_icon_size" - { - size = {36 36} - } - } - } - } - - expand = {} - - hbox = { # DLCs - spacing = 10 - - text_single = { - text = "DLC_COLON" - align = nobaseline - using = Font_Size_Medium - } - - hbox = { - hbox = { - datamodel = "[DataModelFirst( GameSetup.GetDlcCollection.GetDlcs, '(int32)15' )]" - spacing = 5 - - item = { - dlc_button = { - using = tooltip_nw - } - } - } - - button_show_dlc_list = { - using = tooltip_nw - } - } - } - } - } - ### Custom Ruler - button_normal = { - name = "pick_any_character_button" - parentanchor = bottom|left - position = { -45 -70 } - size = { 400 195 } - scale = 0.8 - - enabled = "[GameSetup.IsCurrentBookmarkPlayable]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_game_start')]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_hide_selected_character')]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_game_start_any_character')]" - - tooltip = "[GameSetup.CustomPlayTooltip]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiTriggerAllAnimations('unknown_character_hover_enter')]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow').TriggerAnimation('unknown_character_hover_enter')]" - on_start = "[PdxGuiWidget.FindChild('unknown_portrait_glow').TriggerAnimation('unknown_character_hover_enter')]" - on_start = "[PdxGuiWidget.FindChild('button_widget').TriggerAnimation('unknown_character_hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiTriggerAllAnimations('unknown_character_hover_leave')]" - on_start = "[PdxGuiWidget.FindChild('banner_hover_glow').TriggerAnimation('unknown_character_hover_leave')]" - on_start = "[PdxGuiWidget.FindChild('unknown_portrait_glow').TriggerAnimation('unknown_character_hover_leave')]" - on_start = "[PdxGuiWidget.FindChild('button_widget').TriggerAnimation('unknown_character_hover_leave')]" - } - - state = { - name = _mouse_press - position = { -45 -65 } - } - - state = { - name = _mouse_release - position = { -45 -70 } - duration = 0.05 - using = Animation_Curve_Default - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - } - } - - state = { - name = "bookmarks_hide_any_character" - duration = 0.2 - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "bookmarks_reset" - duration = 0.2 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = "bookmarks_game_start" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 0 - position_y = 0 - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_y = -70 - } - - state = { - name = "bookmarks_bars_appear" - next = b - - alpha = 0 - position_y = 0 - } - - state = { - name = b - using = Animation_Curve_Default - - alpha = 1 - delay = 0.5 - position_y = -70 - duration = 0.15 - } - - button_normal = { - name = "button_widget" - size = { 100% 100% } - alwaystransparent = yes - - state = { - name = "unknown_character_hover_enter" - position = { 0 -15 } - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = "unknown_character_hover_leave" - position = { 0 0 } - duration = 0.2 - using = Animation_Curve_Default - } - - icon = { - parentanchor = bottom|hcenter - position = { 0 -75 } - size = { 300 225 } - texture = "gfx/interface/bookmarks/custom_ruler.dds" - - icon = { - name = "unknown_portrait_glow" - size = { 100% 100% } - texture = "gfx/interface/bookmarks/custom_ruler_glow.dds" - framesize = { 471 589 } - frame = 2 - alpha = 0 - - state = { - name = "unknown_character_hover_enter" - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = "unknown_character_hover_leave" - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - } - } - - widget = { - parentanchor = vcenter|left - position = { 30 40 } - size = { 404 92} - - icon = { - size = { 100% 100% } - texture = "gfx/interface/bookmarks/any_ruler_button.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 1 0 } - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_center_shimmer.dds" - blend_mode = mask - } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_3" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - } - - modify_texture = { - name = "shimmer_4" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - } - - state = { - trigger_on_create = yes - name = a - next = b - duration = 0 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { 1 0 } - alpha = 0.1 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { -1 0 } - alpha = 0.5 - } - } - - state = { - name = b - next = c - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = 180 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = -180 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { 0 0 } - alpha = 0.5 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { 0 0 } - alpha = 0.1 - } - } - - state = { - name = c - next = a - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = 360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = -360 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { -1 0 } - alpha = 0.1 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { 1 0 } - alpha = 0.5 - } - } - - - glow = { - color = { 0.1 0.1 0.1 0.2 } - glow_radius = 20 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - - icon = { - name = "banner_hover_glow" - size = { 100% 100% } - texture = "gfx/interface/bookmarks/any_ruler_shine.dds" - alpha = 0 - - state = { - name = "unknown_character_hover_enter" - alpha = 0.7 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = "unknown_character_hover_leave" - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - } - - icon = { - name = "ruler_designer_promt_glow" - visible = "[ShouldPromptForRulerDesigner]" - size = { 100% 100% } - texture = "gfx/interface/bookmarks/any_ruler_shine.dds" - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - using = Animation_Curve_Default - - alpha = 1 - duration = 1.5 - } - - state = { - name = b - using = Animation_Curve_Default - - duration = 0.8 - delay = 2 - alpha = 0 - } - } - } - icon = { - size = { 100% 100% } - texture = "gfx/interface/bookmarks/any_ruler_frame.dds" - } - - text_multi = { - parentanchor = center|vcenter - text = "PICK_ANY_CHARACTER" - using = Font_Size_Medium - default_format = "#high" - size = { 220 50 } - } - } - } - } - - ### Right sidebar - widget = { - parentanchor = right - size = { 440 965 } - position = { 0 35 } - #scissor = yes - - state = { - name = "bookmarks_bars_appear" - next = b - - alpha = 0 - position_x = 50 - } - - state = { - name = b - using = Animation_Curve_Default - - alpha = 1 - delay = 0.5 - position_x = 0 - duration = 0.15 - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_x = 0 - } - - state = { - name = "bookmarks_game_start" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 0 - position_x = 50 - } - - state = { - name = _show - using = Animation_FadeIn_Standard - position_x = 0 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_sidebar" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_x = 50 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_sidebar" - } - } - - state = { - name = "bookmarks_reset" - using = Animation_Curve_Default - duration = 0.2 - - alpha = 1 - position_x = 0 - } - - widget = { - size = { 440 965 } - name = "selected_character_info" - visible = "[GameSetup.HasSelectedCharacter]" - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 10 - margin_top = 10 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_ExtraDark - } - - vbox = { # bookmark info - name = "bookmark_info" - layoutpolicy_horizontal = expanding - - background = { - visible = "[Not(GameSetup.HasSelectedCharacter)]" - texture = "[GameSetup.GetSelectedBookmark.GetButtonIconBig]" - alpha = 0.8 - fittype = end - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - using = Mask_Rough_Edges - } - - vbox = { # boomark info header - layoutpolicy_horizontal = expanding - margin = { 10 10} - background = { - using = Background_Area_ExtraDark - margin_left = 5 - margin_right = 5 - } - - background = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin_top = -10 - texture_density = 0.8 - spriteborder_top = 60 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } - - vbox = { - spacing = 3 - margin_bottom = 5 - - text_single = { - text = "[GameSetup.GetBookmarkName]" - default_format = "#high;glow_color:{0,0,0,1}" - using = Font_Size_Big - using = Font_Type_Flavor - align = nobaseline - margin_bottom = -5 - } - - text_single = { - text = "[GameSetup.GetSelectedDate.GetStringLong]" - default_format = "#medium;glow_color:{0,0,0,1}" - using = Font_Size_Medium - using = Font_Type_Flavor - } - - hbox = { - visible = "[GameSetup.GetSelectedBookmark.IsRecommended]" - spacing = 5 - - icon = { - texture = "gfx/interface/icons/portraits/me_small.dds" - size = { 18 18 } - } - - text_single = { - text = "RECOMMEND_START_BOOKMARK" - default_format = "#positive_value" - align = nobaseline - } - } - } - - vbox = { - visible = "[Not( GetVariableSystem.Exists( 'show_character_info' ) )]" - maximumsize = {390 300} - text_multi = { - name = "bookmark_text" - text = "[GameSetup.GetBookmarkDescription]" - autoresize = yes - maximumsize = { 390 300 } - margin = { 0 5} - } - } - } - } - - vbox = { # Selected Character info - visible = "[GameSetup.HasSelectedCharacter]" - visible_at_creation = no - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "[GameSetup.GetSelectedBookmark.GetButtonIconBig]" - alpha = 0.8 - fittype = end - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - using = Mask_Rough_Edges - } - - vbox = { - datacontext = "[GameSetup.GetSelectedCharacter]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - visible = "[GameSetup.HasSelectedCharacter]" - layoutpolicy_horizontal = expanding - size = { 0 280 } - - state = { - name = "bookmark_character_change" - alpha = 0.5 - next = "fadein" - } - - state = { - name = "fadein" - using = Animation_FadeIn_Standard - } - - icon = { - parentanchor = bottom|hcenter - size = { 280 280 } - texture = "gfx/interface/colors/white.dds" - color = { 0.22 0.2 0.22 1 } - - modify_texture = { - texture = "gfx/interface/frontend/mask_coa_flag.dds" - blend_mode = alphamultiply - } - } - - coat_of_arms_icon = { #Dynasty - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - parentanchor = bottom|hcenter - size = { 280 280 } - coat_of_arms = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/frontend/mask_coa_flag.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - } - - coat_of_arms_icon = { #Dynasty House - visible = "[BookmarkCharacter.HasDynastyHouse]" - parentanchor = bottom|hcenter - size = { 280 280 } - coat_of_arms = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/frontend/mask_coa_flag.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - } - - bm_portrait = { - visible = "[BookmarkCharacter.HasPortrait]" - parentanchor = bottom|hcenter - position = { 0 90 } - size = { 300 390 } - - blockoverride "portrait_button" - { - portrait_texture = "[BookmarkCharacter.GetAnimatedPortrait( 'environment_bookmarks_selected', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - mask = "gfx/portraits/portrait_mask_blank.dds" - } - } - - icon = { - visible = "[Not( BookmarkCharacter.HasPortrait )]" - - parentanchor = bottom|hcenter - position = { 0 20 } - size = { 199 280 } - alwaystransparent = yes - - texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds" - framesize = { 554 780 } - alpha = 0.95 - } - - widget = { - visible = "[EqualTo_int32(GetDataModelSize(BookmarkCharacter.GetRelatedCharacters), '(int32)2')]" - size = { 100% 100% } - - icon = { - parentanchor = bottom|hcenter - size = { 370 180 } - mirror = vertical - texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds" - color = { 0.18 0.18 0.18 0.3 } - } - - flowcontainer = { - datamodel = "[BookmarkCharacter.GetRelatedCharacters]" - parentanchor = bottom|hcenter - margin_bottom = 5 - spacing = 25 - - item = { - widget = { - size = { 145 175 } - - icon = { - parentanchor = center - size = { 250 250 } - mirror = vertical - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.18 0.18 0.18 0.8 } - } - - bm_portrait = { - parentanchor = bottom|hcenter - size = { 175 175 } - - blockoverride "portrait_tooltip" - { - tooltip_visible = yes - } - - blockoverride "portrait_button" - { - portrait_texture = "[BookmarkCharacter.GetPortrait( 'environment_bookmarks_selected', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - } - - text_label_center = { - name = "character_name" - parentanchor = bottom|hcenter - text = "BOOKMARK_RELATED_CHARACTER" - default_format = "#medium" - align = center - autoresize = yes - max_width = 160 - fontsize_min = 9 - } - } - } - } - } - - widget = { - visible = "[EqualTo_int32(GetDataModelSize(BookmarkCharacter.GetRelatedCharacters), '(int32)1')]" - size = { 100% 100% } - - icon = { - size = { 100% 100% } - position = { -5 5 } - - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - color = { 0.18 0.18 0.18 1 } - - using = Mask_Rough_Edges - } - - icon = { - size = { 100% 100% } - position = { -5 5 } - - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - color = { 0.18 0.18 0.18 1 } - - using = Mask_Rough_Edges - } - - flowcontainer = { - datamodel = "[BookmarkCharacter.GetRelatedCharacters]" - parentanchor = bottom|right - margin_bottom = 5 - spacing = 30 - margin_right = 15 - - item = { - widget = { - size = { 145 175 } - - bm_portrait = { - parentanchor = bottom|hcenter - size = { 250 175 } - - blockoverride "portrait_tooltip" - { - tooltip_visible = yes - } - - blockoverride "portrait_button" - { - portrait_texture = "[BookmarkCharacter.GetPortrait( 'environment_bookmarks_selected', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - } - - text_label_center = { - name = "character_name" - parentanchor = bottom|hcenter - text = "BOOKMARK_RELATED_CHARACTER" - default_format = "#medium" - align = center - autoresize = yes - max_width = 160 - fontsize_min = 9 - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 5 - - widget = { - size = { 0 10 } - layoutpolicy_horizontal = expanding - - icon = { - name = "tile_frame_bottom" - parentanchor = center - texture = "gfx/interface/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - size = { 450 20 } - texture_density = 2 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 25 8 } - - background = { - using = Background_Area_Light - margin = { -5 16 } - margin_top = -5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[BookmarkCharacter.StartAsExistingRuler]" - - state = { - name = "bookmark_character_change" - alpha = 0.5 - next = "fadein" - } - - state = { - name = "fadein" - using = Animation_FadeIn_Standard - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_INFO" - using = Font_Size_Big - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - name = "character_title" - visible = "[Not( Or(BookmarkCharacter.GetGovernmentType.IsType( 'landless_adventurer_government' ), BookmarkCharacter.GetGovernmentType.IsType( 'nomad_government' ) ) )]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE" - using = Font_Size_Medium - } - - text_single = { - name = "character_title_adventurer" - visible = "[BookmarkCharacter.GetGovernmentType.IsType( 'landless_adventurer_government' )]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE_ADVENTURER" - using = Font_Size_Medium - } - - text_single = { - name = "character_title_nomad_high_chieftain" - visible = "[And( BookmarkCharacter.GetGovernmentType.IsType( 'nomad_government' ), EqualTo_int32( BookmarkCharacter.GetTier, '(int32)4' ) )]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE_NOMAD_HIGH_CHIEFTAIN" - using = Font_Size_Medium - } - - text_single = { - name = "character_title_nomad_chieftain_or_khan" - visible = "[And( BookmarkCharacter.GetGovernmentType.IsType( 'nomad_government' ), Not( EqualTo_int32( BookmarkCharacter.GetTier, '(int32)4' ) ) )]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE_NOMAD_CHIEFTAIN_OR_KHAN" - using = Font_Size_Medium - } - } - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( BookmarkCharacter.StartAsExistingRuler )]" - - state = { - name = "bookmark_character_change" - alpha = 0.5 - next = "fadein" - } - - state = { - name = "fadein" - using = Animation_FadeIn_Standard - } - - text_single = { - name = "character_name_create" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_INFO_CREATE" - using = Font_Size_Big - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - name = "character_title" - visible = "[BookmarkCharacter.StartDesignLandlessNobleFamily]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE_CREATE_NOBLE_FAMILY" - using = Font_Size_Medium - } - - text_single = { - name = "character_title_adventurer" - visible = "[BookmarkCharacter.StartDesignLandlessAdventurer]" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "BOOKMARK_CHARACTER_TITLE_TYPE_CREATE_ADVENTURER" - using = Font_Size_Medium - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin = { 25 -3 } - margin_top = 0 - - vbox = { - layoutpolicy_vertical = expanding - margin = { 8 8 } - min_width = 90 - - coa_dynasty_bookmark = {} - - text_multi = { - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - text = "[BookmarkCharacter.GetDynastyTemplate.GetName]" - default_format = "#high" - tooltip = "BOOKMARK_DYNASTY_TOOLTIP" - autoresize = yes - max_width = 120 - align = nobaseline - margin = { 2 0 } - } - - text_multi = { - visible = "[BookmarkCharacter.HasDynastyHouse]" - text = "[BookmarkCharacter.GetDynastyHouseTemplate.GetName]" - default_format = "#high" - tooltip = "BOOKMARK_DYNASTY_TOOLTIP" - autoresize = yes - max_width = 120 - align = nobaseline - margin = { 2 0 } - } - - expand = {} - } - - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_CULTURE" - autoresize = no - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_RELIGION" - autoresize = no - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_DIFFICULTY" - autoresize = no - align = nobaseline - } - } - - icon_flat_standard = { - visible = "[BookmarkCharacter.GetGovernmentType.IsType( 'landless_adventurer_government' )]" - size = { 50 50 } - texture = "gfx/interface/icons/flat_icons/flat_camp.dds" - } - } - - scrollbox = { - name = "character_text_scroll" - size = { 390 310 } - visible = "[GetVariableSystem.Exists( 'show_character_info' )]" - - blockoverride "scrollbox_content" { - text_multi = { - name = "character_text" - layoutpolicy_horizontal = expanding - text = "[BookmarkCharacter.GetDescription]" - autoresize = yes - max_width = 360 - } - } - } - } - - expand = {} - - button_normal = { - name = "start_button" - onclick = "[GameSetup.StartGame]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_game_start')]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_game_start_selected_character')]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_hide_any_character')]" - onclick = "[PdxGuiTriggerAllAnimations('start_game_audio')]" - enabled = "[GameSetup.CanStart]" - tooltip = "[GameSetup.PlayTooltip]" - - #text = "START" - #using = Font_Size_Big - #default_format = "#high;bold;glow_color:{0,0,0,1}" - - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - downframe = 2 - overframe = 1 - disableframe = 1 - - size = { 330 91 } - texture = "[GameSetup.GetSelectedBookmark.GetStartButton]" - - - modify_texture = { - texture = "gfx/interface/buttons/button_fancy_overlay.dds" - blend_mode = overlay - } - - modify_texture = { - name = "glow" - texture = "gfx/interface/buttons/button_fancy_glow.dds" - blend_mode = colordodge - alpha = 0 - - spriteborder = { 20 0 } - spritetype = corneredStretched - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_center_shimmer.dds" - blend_mode = mask - } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_3" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - } - - modify_texture = { - name = "shimmer_4" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - } - - state = { - trigger_on_create = yes - name = a - next = b - duration = 0 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { 1 0 } - alpha = 0.1 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { -1 0 } - alpha = 0.5 - } - } - - state = { - name = b - next = c - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = 180 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = -180 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { 0 0 } - alpha = 0.5 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { 0 0 } - alpha = 0.1 - } - } - - state = { - name = c - next = a - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = 360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = -360 - } - - modify_texture = { - name = "shimmer_3" - translate_uv = { -1 0 } - alpha = 0.1 - } - - modify_texture = { - name = "shimmer_4" - translate_uv = { 1 0 } - alpha = 0.5 - } - } - - state = { - name = _mouse_hierarchy_enter - - modify_texture = { - name = "glow" - alpha = 1 - } - } - - state = { - name = _mouse_hierarchy_leave - duration = 0.2 - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0 - } - } - - state = { - name = _mouse_press - duration = 0 - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0 - } - } - - state = { - name = start_game_audio - duration = 0.1 - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - } - } - - text_single = { - parentanchor = center - text = "START" - align = nobaseline - using = Font_Size_Big - default_format = "#high;bold;glow_color:{0,0,0,1}" - background = { - texture ="gfx/interface/colors/black.dds" - alpha = 1 - margin = { 50% 0} - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - - } - } - } - - icon = { - size = { 330 92} - texture = "gfx/interface/bookmarks/start_buttons/start_frame.dds" - } - } - } - } - } - expand = {} - } - expand = {} - } - - icon = { - position = {-2 18} - size = { 60 37 } - background ={ - using = Background_Area_Light - using = Mask_Rough_Edges - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - button_list_expand = { - position = {15 25} - visible = "[GameSetup.HasSelectedCharacter]" - size = { 25 25 } - onclick = "[GetVariableSystem.Toggle( 'show_character_info' )]" - checked = "[Not( GetVariableSystem.Exists( 'show_character_info' ) )]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - } - } - - - widget = { - name = "not_selected_character_info" - visible = "[Not(GameSetup.HasSelectedCharacter)]" - size = { 440 965 } - #scissor = yes - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 10 - margin_top = 10 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area_ExtraDark - } - - vbox = { # bookmark info - name = "bookmark_info" - layoutpolicy_horizontal = expanding - - background = { - visible = "[Not(GameSetup.HasSelectedCharacter)]" - texture = "[GameSetup.GetSelectedBookmark.GetButtonIconBig]" - alpha = 0.8 - fittype = end - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - using = Mask_Rough_Edges - } - - vbox = { # boomark info header - layoutpolicy_horizontal = expanding - margin = { 10 10} - - background = { - using = Background_Area_ExtraDark - margin_left = 5 - margin_right= 5 - } - - background = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin_top = -10 - texture_density = 0.8 - spriteborder_top = 60 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } - - vbox = { - spacing = 3 - margin_bottom = 5 - - text_single = { - text = "[GameSetup.GetBookmarkName]" - default_format = "#high;glow_color:{0,0,0,1}" - using = Font_Size_Big - align = nobaseline - margin_bottom = -5 - } - - text_single = { - text = "[GameSetup.GetSelectedDate.GetStringLong]" - default_format = "#medium;glow_color:{0,0,0,1}" - using = Font_Size_Medium - using = Font_Type_Flavor - } - - hbox = { - visible = "[GameSetup.GetSelectedBookmark.IsRecommended]" - spacing = 5 - - icon = { - texture = "gfx/interface/icons/portraits/me_small.dds" - size = { 18 18 } - } - - text_single = { - text = "RECOMMEND_START_BOOKMARK" - default_format = "#positive_value" - align = nobaseline - } - } - } - } - - vbox = { # bookmark info description - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 20 5 } - margin_bottom = 20 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - button_list_expand = { - visible = "[GameSetup.HasSelectedCharacter]" - size = { 25 25 } - onclick = "[GetVariableSystem.Toggle( 'show_character_info' )]" - checked = "[Not( GetVariableSystem.Exists( 'show_character_info' ) )]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - } - expand = {} - } - - vbox = { - visible = "[Not( GetVariableSystem.Exists( 'show_character_info' ) )]" - maximumsize = {390 300} - - text_multi = { - name = "bookmark_text" - text = "[GameSetup.GetBookmarkDescription]" - autoresize = yes - maximumsize = { 390 850 } - } - } - } - } - } - expand = {} - } - } - } - } - } - ### TUTORIAL PROMPT - widget = { - visible = "[GameSetup.ShouldShowTutorialPrompt]" - visible_at_creation = no - name = "tutorial_prompt_overlay" - size = { 100% 100% } - alwaystransparent = no - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - button_normal = { - size = { 100% 100% } - onclick = "[GameSetup.OnSkipTutorial]" - } - - using = Background_Full_Dim - - gamesetup_tutorial_prompt = { - parentanchor = center - } - } - - ### DLC LIST - - widget_dlc_list_with_overlay = { - datacontext = "[GameSetup.GetDlcCollection]" - } - - - -} - -types BookmarkPortraits -{ - type widget_ungrouped_bookmark_button = widget { - size = { 205 55 } - allow_outside = yes - - button_normal = { - parentanchor = top|hcenter - position = { 0 5 } - size = { 100% 100% } - - onclick = "[GameSetup.SetSelectedBookmark( Bookmark.Self )]" - onclick = "[GameSetup.ClearSelectedBookmarkGroup]" - onclick = "[PdxGuiTriggerAllAnimations('bookmark_group_reset')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('bookmark_change','bookmark_change')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('map_characters_appear','map_characters_appear')]" - - down = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - alwaystransparent = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - - state = { - name = "_mouse_enter" - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_enter')]" - } - - state = { - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_leave')]" - name = "_mouse_leave" - } - - state = { - name = "button_selection" - trigger_when = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_group_reset')]" - delay = 0.05 - duration = 0.1 - using = Animation_Curve_Default - position_y = 15 - } - - state = { - name = "bookmark_group_reset" - duration = 0.3 - using = Animation_Curve_Default - position_y = 5 - } - - icon = { - name = "bookmarks_button" - parentanchor = bottom|hcenter - size = { 100% 75 } - alwaystransparent = yes - texture = "[Bookmark.GetButtonIcon]" - - using = tooltip_ne - - modify_texture = { - texture = "gfx/interface/buttons/button_stone_glass_mask.dds" - blend_mode = alphamultiply - spritetype = corneredTiled - spriteborder = { 40 40 } - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/buttons/button_stone_glass_overlay.dds" - blend_mode = overlay - texture_density = 2 - } - - modify_texture = { - name = "glow" - texture = "gfx/interface/buttons/button_stone_glass_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "glow_selected" - texture = "gfx/interface/buttons/button_stone_glass_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "shimmer" - visible = "[Bookmark.IsRecommended]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 -1 } - } - - state = { - name = "selected_glow" - trigger_when = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_group_reset')]" - duration = 0.25 - - modify_texture = { - name = "glow_selected" - alpha = 1 - } - } - - state = { - name = "bookmark_group_reset" - duration = 0.5 - using = Animation_Curve_Default - - modify_texture = { - name = "glow_selected" - alpha = 0 - } - } - - state = { - name = "mouse_enter" - - modify_texture = { - name = "glow" - alpha = 1 - } - } - - state = { - name = "mouse_leave" - duration = 0.25 - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0 - } - } - - # Recommended shimmer - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - state = { - name = shimmer - next = pause - duration = 2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - alpha = 0.6 - } - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_tab_shimmer_on_loop" - } - } - - state = { - name = "pause" - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - # Shimmer on appear - state = { - name = "bookmarks_buttons_shimmer" - next = "bookmarks_buttons_shimmer_2" - duration = 2 - delay = 0.5 - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 1 } - alpha = 1 - } - } - - state = { - name = "bookmarks_buttons_shimmer_2" - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 -1 } - alpha = 1 - } - } - - icon = { - parentanchor = bottom|hcenter - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - color = { 0.1 0.1 0.1 0.5 } - } - - icon = { - size = { 100% 100% } - spriteborder = { 30 30 } - spriteType = corneredStretched - texture = "gfx/interface/buttons/button_stone_glass_frame.dds" - texture_density = 2 - - modify_texture = { - name = "shimmer" - visible = "[Bookmark.IsRecommended]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 -1 } - } - - # Recommended Shimmer - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - delay = 5.15 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - state = { - name = "shimmer" - next = pause - duration = 2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - alpha = 0.6 - } - } - - state = { - name = "pause" - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - # Shimmer on appear - state = { - name = "bookmarks_buttons_shimmer" - next = "bookmarks_buttons_shimmer_2" - duration = 2 - delay = 0.65 - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 1 } - alpha = 1 - } - } - - state = { - name = "bookmarks_buttons_shimmer_2" - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 -1 } - alpha = 1 - } - } - } - - vbox = { - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.3 - - alpha = 1 - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_tab_slide_out" - } - } - - state = { - name = _hide - duration = 0.2 - - alpha = 0 - } - - text_single = { - name = "year" - text = "[Bookmark.GetDate.GetYear]" - default_format = "#clickable;bold;glow_color:{0,0,0,1}" - using = Font_Size_Medium - using = Font_Type_Flavor - max_width = 155 - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.2 0.2 0.2 0.8 } - margin = { 25 0 } - margin_bottom = 7 - } - } - - hbox = { - spacing = 3 - - icon = { - visible = "[Bookmark.IsRecommended]" - texture = "gfx/interface/icons/portraits/me_small.dds" - size = { 18 18 } - } - - text_single = { - name = "bookmark_name" - align = nobaseline - max_width = 140 - - text = "[Bookmark.GetName]" - default_format = "#high;glow_color:{0,0,0,1}" - } - } - } - } - } - } - } - - - ### Year Tab - type widget_bookmark_group_button = widget { - size = { 205 55 } - allow_outside = yes - - button_normal = { - parentanchor = top|hcenter - position = { 0 5 } - size = { 100% 100% } - onclick = "[GameSetup.SelectBookmarkGroup( BookmarkGroup.Self )]" - onclick = "[PdxGuiTriggerAllAnimations('bookmark_group_reset')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('bookmark_group_change','bookmark_group_change')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('bookmark_change','bookmark_change')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('map_characters_appear','map_characters_appear')]" - onclick = "[GetVariableSystem.Clear( 'show_character_info' )]" - down = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - alwaystransparent = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - - state = { - name = "_mouse_enter" - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_enter')]" - } - - state = { - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_leave')]" - name = "_mouse_leave" - } - - state = { - name = "button_selection" - trigger_when = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_group_reset')]" - delay = 0.05 - duration = 0.1 - using = Animation_Curve_Default - position_y = 15 - } - - state = { - name = "bookmark_group_reset" - duration = 0.3 - using = Animation_Curve_Default - position_y = 5 - } - - icon = { - name = "bookmarks_button" - parentanchor = bottom|hcenter - size = { 100% 75 } - alwaystransparent = yes - #texture = "[BookmarkGroup.GetButtonIcon]" - texture = "gfx/interface/icons/bookmark_buttons/year_tab.dds" - - using = tooltip_ne - - modify_texture = { - texture = "gfx/interface/buttons/button_stone_glass_mask.dds" - blend_mode = alphamultiply - spritetype = corneredTiled - spriteborder = { 40 40 } - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/buttons/button_stone_glass_overlay.dds" - blend_mode = overlay - texture_density = 2 - } - - modify_texture = { - name = "glow" - texture = "gfx/interface/buttons/button_stone_glass_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "glow_selected" - texture = "gfx/interface/buttons/button_stone_glass_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "shimmer" - visible = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 -1 } - } - - state = { - name = "selected_glow" - trigger_when = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_group_reset')]" - duration = 0.25 - - modify_texture = { - name = "glow_selected" - alpha = 1 - } - } - - state = { - name = "bookmark_group_reset" - duration = 0.5 - using = Animation_Curve_Default - - modify_texture = { - name = "glow_selected" - alpha = 0 - } - } - - state = { - name = "mouse_enter" - - modify_texture = { - name = "glow" - alpha = 1 - } - } - - state = { - name = "mouse_leave" - duration = 0.25 - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0 - } - } - - # Recommended shimmer - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - state = { - name = shimmer - next = pause - duration = 2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - alpha = 0.6 - } - - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_tab_shimmer_on_loop" - } - } - - state = { - name = "pause" - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - # Shimmer on appear - state = { - name = "bookmarks_buttons_shimmer" - next = "bookmarks_buttons_shimmer_2" - duration = 2 - delay = 0.5 - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 1 } - alpha = 1 - } - } - - state = { - name = "bookmarks_buttons_shimmer_2" - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 -1 } - alpha = 1 - } - } - - icon = { - parentanchor = bottom|hcenter - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - color = { 0.1 0.1 0.1 0.5 } - } - - icon = { - size = { 100% 100% } - spriteborder = { 30 30 } - spriteType = corneredStretched - texture = "gfx/interface/buttons/button_stone_glass_frame.dds" - texture_density = 2 - - modify_texture = { - name = "shimmer" - visible = "[GameSetup.IsBookmarkGroupSelected( BookmarkGroup.Self )]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 -1 } - } - - # Recommended Shimmer - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - delay = 5.15 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - state = { - name = "shimmer" - next = pause - duration = 2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - alpha = 0.6 - } - } - - state = { - name = "pause" - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - # Shimmer on appear - state = { - name = "bookmarks_buttons_shimmer" - next = "bookmarks_buttons_shimmer_2" - duration = 2 - delay = 0.65 - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 1 } - alpha = 1 - } - } - - state = { - name = "bookmarks_buttons_shimmer_2" - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 -1 } - alpha = 1 - } - } - } - - vbox = { - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.3 - - alpha = 1 - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_tab_slide_out" - } - } - - state = { - name = _hide - duration = 0.2 - - alpha = 0 - } - - text_single = { - name = "year" - text = "[BookmarkGroup.GetName]" - default_format = "#high;bold;glow_color:{0,0,0,1}" - using = Font_Size_Big - using = Font_Type_Flavor - max_width = 155 - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = {30 0 } - margin_bottom = 10 - } - } - } - } - } - } - } - - type bookmark_button = button_normal { - size = { 100% 100% } - position = { -60 0} - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('bookmark_change','bookmark_change')]" - onclick = "[PdxGuiTriggerAllAnimations('bookmark_tab_reset')]" - onclick = "[PdxGuiInterruptThenTriggerAllAnimations('map_characters_appear','map_characters_appear')]" - onclick = "[GameSetup.SetSelectedBookmark( Bookmark.Self )]" - onclick = "[GetVariableSystem.Clear( 'show_character_info' )]" - down = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - alwaystransparent = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - - state = { - name = "_mouse_enter" - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_enter')]" - } - - state = { - on_start = "[PdxGuiWidget.FindChild('bookmarks_button').TriggerAnimation('mouse_leave')]" - name = "_mouse_leave" - } - - state = { - name = "button_selection" - trigger_when = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_tab_reset')]" - delay = 0.3 - duration = 0.1 - using = Animation_Curve_Default - - position_x = -20 - } - - state = { - name = "bookmark_group_reset" - duration = 0.3 - using = Animation_Curve_Default - - position_x = -60 - } - - state = { - name = "bookmark_tab_reset" - duration = 0.3 - using = Animation_Curve_Default - - position_x = -60 - } - - icon = { - name = "bookmarks_button" - parentanchor = bottom|hcenter - size = { 100% 100% } - alwaystransparent = yes - using = tooltip_ne - - background = { - texture = "[Bookmark.GetButtonIcon]" - } - - modify_texture = { - texture = "gfx/interface/bookmarks/bm_mask.dds" - blend_mode = alphamultiply - spritetype = corneredTiled - spriteborder = { 40 40 } - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/bookmarks/bm_overlay.dds" - blend_mode = overlay - texture_density = 2 - } - - modify_texture = { - name = "tab_glow" - texture = "gfx/interface/bookmarks/bm_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "tab_glow_selected" - texture = "gfx/interface/bookmarks/bm_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "tab_shimmer" - visible = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "tab_shimmer_2" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 -1 } - } - - state = { - name = "tab_selected_glow" - trigger_when = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_tab_reset')]" - duration = 0.25 - - modify_texture = { - name = "tab_glow_selected" - alpha = 1 - } - } - - state = { - name = "bookmark_tab_reset" - duration = 0.3 - using = Animation_Curve_Default - - modify_texture = { - name = "tab_glow_selected" - alpha = 0 - } - } - - state = { - name = "mouse_enter" - - modify_texture = { - name = "tab_glow" - alpha = 1 - } - } - - state = { - name = "mouse_leave" - duration = 0.25 - using = Animation_Curve_Default - - modify_texture = { - name = "tab_glow" - alpha = 0 - } - } - - # Recommended shimmer - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - delay = 5 - - modify_texture = { - name = "tab_shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - state = { - name = shimmer - next = pause - duration = 2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "tab_shimmer" - translate_uv = { -1 1 } - alpha = 0.6 - } - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_topbar_tab_shimmer_on_loop" - } - } - - state = { - name = "pause" - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "tab_shimmer" - translate_uv = { 1 -1 } - alpha = 0.6 - } - } - - # Shimmer on appear - state = { - name = "bookmark_tab_shimmer" - next = "bookmark_tab_shimmer_2" - duration = 2 - delay = 0.5 - - modify_texture = { - name = "tab_shimmer_2" - translate_uv = { -1 1 } - alpha = 1 - } - } - - state = { - name = "bookmark_tab_shimmer_2" - - modify_texture = { - name = "tab_shimmer_2" - translate_uv = { 1 -1 } - alpha = 1 - } - } - - widget= { - size = {100% 100%} - - background = { - texture = "gfx/interface/bookmarks/bm_shadow.dds" - alpha = 0.5 - } - - hbox = { - margin = { 5 0 } - spacing = 7 - expand = {} - - widget ={ - size = {20 20} - } - - text_single = { - text = "[Bookmark.GetName]" - default_format = "#high;glow_color:{0,0,0,1}" - align = nobaseline - using = Font_Size_Medium - } - - icon = { - visible = "[Bookmark.IsRecommended]" - texture = "gfx/interface/icons/portraits/me_small.dds" - size = { 22 22 } - } - - expand = {} - } - - state = { - name = "button_selection" - trigger_when = "[GameSetup.IsBookmarkSelected( Bookmark.Self )]" - on_start = "[PdxGuiWidget.InterruptAnimation('bookmark_tab_reset')]" - delay = 0.05 - duration = 0.1 - using = Animation_Curve_Default - - alpha = 0 - } - - state = { - name = "bookmark_tab_reset" - trigger_when = "[Not( GameSetup.IsBookmarkSelected( Bookmark.Self ) )]" - duration = 0.3 - using = Animation_Curve_Default - - alpha = 1 - } - } - } - - icon = { - size = { 100% 100% } - parentanchor = bottom|hcenter - background = { - texture = "gfx/interface/icons/bookmark_buttons/bookmark_tab_frame.dds" - } - } - } - - type button_group_map_character_selection = button_group { - flowcontainer = { - margin = { -15 0 } - margin_top = 120 - margin_bottom = -95 - - container = { - alwaystransparent = yes - - icon = { - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 50 } - size = { 80% 100% } - texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds" - color = { 0.58 0.55 0.5 0.8 } - mirror = vertical - } - - bm_portrait = { - visible = "[BookmarkCharacter.HasPortrait]" - - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 30 } - size = { 250 190 } - alwaystransparent = yes - - blockoverride "portrait_button" - { - portrait_texture = "[BookmarkCharacter.GetPortrait( 'environment_bookmarks_map', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - } - } - - icon = { - visible = "[Not( BookmarkCharacter.HasPortrait )]" - - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 85 } - size = { 170 240 } - alwaystransparent = yes - - texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds" - framesize = { 554 780 } - alpha = 0.8 - } - - margin_widget = { - parentanchor = hcenter - position = { 0 60 } - - size = { 100% 100 } - margin = { 10 0 } - margin_left = 15 - - icon = { - size = { 100% 100% } - parentanchor = center - texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds" - color = { 0.58 0.55 0.5 1 } - } - } - - flowcontainer = { - margin_left = 15 - allow_outside = yes - - icon = { - name = "celestial_nameplate" - visible = "[Or(BookmarkCharacter.GetGovernmentType.IsType( 'celestial_government'), Or(BookmarkCharacter.GetGovernmentType.IsType( 'meritocratic_government'), Or(BookmarkCharacter.GetGovernmentType.IsType( 'nomad_government' ), Or(BookmarkCharacter.GetGovernmentType.IsType( 'japan_administrative_government' ), BookmarkCharacter.GetGovernmentType.IsType( 'japan_feudal_government' )))))]" - texture = "gfx/interface/icons/banners/banner_asia_left.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - allow_outside = yes - - modify_texture = { - name = overlay - visible = "[Not( GameSetup.IsCharacterSelected( BookmarkCharacter.Self ) )]" - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - trigger_on_create = yes - name = "start" - next = "right" - - duration = 0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - alpha = 0.9 - } - } - - state = { - name = "right" - next = "left" - - duration = 2 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - alpha = 0.6 - } - } - - state = { - name = "left" - next = "right" - - duration = 0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.9 0 } - alpha = 0.9 - } - } - - glow = { - color = { 0.1 0.1 0.1 0.2 } - glow_radius = 10 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - - icon = { - name = "banner_hover_glow_asia" - size = { 100% 100% } - texture = "gfx/interface/icons/banners/banner_asia_left_glow.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - alpha = 0 - - state = { - name = "bookmark_character_hover_enter_asia" - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = "bookmark_character_hover_leave_asia" - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - } - - icon = { - visible = "[GameSetup.IsCharacterSelected( BookmarkCharacter.Self )]" - visible_at_creation = no - size = { 100% 100% } - texture = "gfx/interface/icons/banners/banner_asia_left_glow.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - - state = { - name = _show - using = Animation_FadeIn_Quick - next = pulse_a - alpha = 1 - } - - state = { - name = "pulse_a" - alpha = 1 - duration = 1 - next = pulse_b - using = Animation_Curve_Default - } - - state = { - name = "pulse_b" - alpha = 0.7 - duration = 1 - next = pulse_a - using = Animation_Curve_Default - } - } - - vbox = { - parentanchor = bottom|hcenter - widgetanchor = top|hcenter - position = { 0 -45 } - allow_outside = yes - - text_single = { - text = "[BookmarkCharacter.GetDifficulty]" - } - } - - coa_realm_bookmark = { - visible = "[And(And(Not(BookmarkCharacter.GetGovernmentType.IsType('clan_government')),Not(BookmarkCharacter.GetGovernmentType.IsType('adventurer_government'))), Not(BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' )))]" - position = { 0 -22 } - } - - coa_realm_bookmark = { - visible = "[And(HasDlcFeature( 'admin_gov' ), BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' ))]" - position = { 0 -22 } - } - - coa_admin_nodlc_bookmark = { - visible = "[And(Not(HasDlcFeature( 'admin_gov' )), BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' ))]" - position = { 0 -22 } - } - - coa_clan_bookmark = { - visible = "[Or(BookmarkCharacter.GetGovernmentType.IsType('clan_government'),BookmarkCharacter.GetGovernmentType.IsType('nomad_government'))]" - position = { 0 -22 } - } - - coa_adventurer_bookmark = { - visible = "[BookmarkCharacter.GetGovernmentType.IsType('landless_adventurer_government')]" - position = { 0 -22 } - } - - flowcontainer = { - direction = vertical - margin_left = 70 - margin_right = 75 - margin_top = 16 - margin_bottom = 28 - spacing = -6 - resizeparent = yes - ignoreinvisible = yes - - text_single = { - text = "[BookmarkCharacter.GetName]" - fontsize = 21 - default_format = "#high;bold;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[BookmarkCharacter.StartDesignLandlessNobleFamily]" - text = "BOOKMARK_SUBTITLE_NEW_NOBLE_FAMILY" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[BookmarkCharacter.StartDesignLandlessAdventurer]" - text = "BOOKMARK_SUBTITLE_NEW_LANDLESS_ADVENTURER" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[And( BookmarkCharacter.StartAsExistingRuler, And( BookmarkCharacter.HasDynastyTemplate, Not( BookmarkCharacter.HasDynastyHouse ) ) )]" - text = "[BookmarkCharacter.GetDynastyTemplate.GetName]" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[And( BookmarkCharacter.StartAsExistingRuler, BookmarkCharacter.HasDynastyHouse )]" - text = "[BookmarkCharacter.GetDynastyHouseTemplate.GetName]" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - } - } - - icon = { - name = "western_nameplate" - texture = "gfx/interface/icons/banners/banner_blue_left.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - allow_outside = yes - visible = "[Not(Or(BookmarkCharacter.GetGovernmentType.IsType( 'celestial_government'), Or(BookmarkCharacter.GetGovernmentType.IsType( 'meritocratic_government'), Or(BookmarkCharacter.GetGovernmentType.IsType( 'nomad_government' ), Or(BookmarkCharacter.GetGovernmentType.IsType( 'japan_administrative_government' ), BookmarkCharacter.GetGovernmentType.IsType( 'japan_feudal_government' ))))))]" - - modify_texture = { - name = overlay - visible = "[Not( GameSetup.IsCharacterSelected( BookmarkCharacter.Self ) )]" - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - trigger_on_create = yes - name = "start" - next = "right" - - duration = 0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - alpha = 0.9 - } - } - - state = { - name = "right" - next = "left" - - duration = 2 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - alpha = 0.6 - } - } - - state = { - name = "left" - next = "right" - - duration = 0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.9 0 } - alpha = 0.9 - } - } - - glow = { - color = { 0.1 0.1 0.1 0.2 } - glow_radius = 10 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - - icon = { - name = "banner_hover_glow" - size = { 100% 100% } - texture = "gfx/interface/icons/banners/banner_blue_left_glow.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - alpha = 0 - - state = { - name = "bookmark_character_hover_enter" - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = "bookmark_character_hover_leave" - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - } - - icon = { - visible = "[GameSetup.IsCharacterSelected( BookmarkCharacter.Self )]" - visible_at_creation = no - size = { 100% 100% } - texture = "gfx/interface/icons/banners/banner_blue_left_glow.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 2 - - state = { - name = _show - using = Animation_FadeIn_Quick - next = pulse_a - alpha = 1 - } - - state = { - name = "pulse_a" - alpha = 1 - duration = 1 - next = pulse_b - using = Animation_Curve_Default - } - - state = { - name = "pulse_b" - alpha = 0.7 - duration = 1 - next = pulse_a - using = Animation_Curve_Default - } - } - - vbox = { - parentanchor = bottom|hcenter - widgetanchor = top|hcenter - position = { 0 -55 } - allow_outside = yes - - text_single = { - text = "[BookmarkCharacter.GetDifficulty]" - } - } - - coa_realm_bookmark = { - visible = "[And(And(Not(BookmarkCharacter.GetGovernmentType.IsType('clan_government')), Not(BookmarkCharacter.GetGovernmentType.IsType('landless_adventurer_government'))), And(Not(BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' )), Not(BookmarkCharacter.GetGovernmentType.IsType('nomad_government'))))]" - position = { 0 -30 } - } - - coa_realm_bookmark = { - visible = "[And(HasDlcFeature( 'admin_gov' ), BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' ))]" - position = { 0 -30 } - } - - coa_admin_nodlc_bookmark = { - visible = "[And(Not(HasDlcFeature( 'admin_gov' )), BookmarkCharacter.GetGovernmentType.IsType( 'administrative_government' ))]" - position = { 0 -30 } - } - - coa_clan_bookmark = { - visible = "[Or(BookmarkCharacter.GetGovernmentType.IsType('clan_government'),BookmarkCharacter.GetGovernmentType.IsType('nomad_government'))]" - position = { 0 -30 } - } - - coa_adventurer_bookmark = { - visible = "[BookmarkCharacter.GetGovernmentType.IsType('landless_adventurer_government')]" - position = { 0 -20 } - } - - flowcontainer = { - direction = vertical - margin_left = 70 - margin_right = 75 - margin_top = 9 - margin_bottom = 35 - spacing = -6 - resizeparent = yes - ignoreinvisible = yes - - text_single = { - text = "[BookmarkCharacter.GetName]" - fontsize = 21 - default_format = "#high;bold;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - text = "[BookmarkCharacter.GetDynastyTemplate.GetName]" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - visible = "[BookmarkCharacter.HasDynastyHouse]" - text = "[BookmarkCharacter.GetDynastyHouseTemplate.GetName]" - fontsize = 16 - default_format = "#high;glow_color:{0,0,0,1}" - } - } - } - } - } - } - } - - type bm_portrait = widget { - - portrait_button = { - parentanchor = center - size = { 100% 100% } - using = portrait_base - name = "culture_head_portrait" - portrait_texture = "[BookmarkCharacter.GetPortrait( 'environment_bookmarks_map', 'camera_head', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - framesize = { 86 129 } - mask = "gfx/portraits/portrait_mask_council.dds" - - effectname = "NoHighlight" - alwaystransparent = yes - - block "portrait_tooltip" { - tooltip_visible = no - } - - block "portrait_button" {} - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[BookmarkCharacter.GetTooltip]" - } - - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - - blockoverride "coa" {} - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "imprisonment" {} - blockoverride "player_overlay" {} - blockoverride "grayscale"{} - blockoverride "TODO_debug_info" {} - } - } -} - -types GameSetupTypes -{ - type gamesetup_tutorial_prompt = window { - movable = no - resizable = yes - - using = Window_Decoration_Spike - using = Window_Background - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - ### Header - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "GAMESETUP_TUTORIAL_PROMPT_HEADER" - } - blockoverride "button_back" - { - visible = no - } - blockoverride "button_close" - { - onclick = "[GameSetup.OnSkipTutorial]" - } - } - - ### Textbox - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 5 - - background = { - using = Background_Area - alpha = 0.6 - margin_bottom = -7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - text_multi = { - max_width = 750 - min_width = 420 - align = center - autoresize = yes - text = "GAMESETUP_TUTORIAL_PROMPT_INTRO" - using = Font_Size_Medium - } - - text_multi = { - max_width = 750 - min_width = 420 - align = center - autoresize = yes - text = "GAMESETUP_TUTORIAL_PROMPT_RECOMMEND" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 20 - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - expand = {} - } - - ### Rulers - hbox = { - datamodel = "[GameSetup.GetTutorialCharacters]" - layoutpolicy_vertical = expanding - - item = { - widget = { - datacontext = "[BookmarkCharacter.GetBookmark]" - visible = "[Bookmark.HasRequiredDLC]" - size = { 550 450 } - - background = { - visible = "[EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - texture = "gfx/interface/illustrations/main_menu/frontend_west.dds" - fittype = centercrop - alpha = 0.6 - framesize = { 3840 1400 } - frame = 1 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)1' )]" - texture = "gfx/interface/illustrations/main_menu/tgp_frontend_celestial.dds" - fittype = centercrop - alpha = 0.6 - framesize = { 3840 1400 } - frame = 1 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Ruler portrait - widget = { - parentanchor = bottom|right - position = { 15 5 } - size = { 350 490 } - - bm_portrait = { - size = { 350 490 } - - blockoverride "portrait_button" - { - portrait_texture = "[BookmarkCharacter.GetAnimatedPortrait( 'environment_bookmarks_map', 'camera_body', PdxGetWidgetScreenSize( PdxGuiWidget.Self) )]" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - - ### Ruler description & Start button - vbox = { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 15 0 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_left = -20 - margin_right = -160 - margin_top = -40 - margin_bottom = -10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - } - } - - coa_realm_bookmark = { - alwaystransparent = yes - } - - text_single = { - text = "[BookmarkCharacter.GetName]" #"bookmark_rags_to_riches_petty_king_murchad" - default_format = "#high;bold" - using = Font_Size_Medium - - margin_top = 25 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - - text_multi = { - autoresize = yes - default_format = "glow_color:{0,0,0,1}" - max_width = 250 - text = "GAMESETUP_TUTORIAL_PROMPT_ABOUT_RULER" - } - - expand = {} - } - - expand = {} - } - - hbox = { - margin_bottom = 20 - - button_standard_big = { - text = "GAMESETUP_TUTORIAL_PROMPT_PLAY_TUTORIAL" - onclick = "[GameSetup.OnPlayTutorial( BookmarkCharacter.Self )]" - } - } - } - } - } - } - } - } - - type widget_dlc_list_with_overlay = widget { - name = "dlc_list_overlay" - - # Needs Datacontext: DlcCollection - # Shown by setting show_dlc_list Variable - - size = { 100% 100% } - alwaystransparent = no - visible = "[GetVariableSystem.Exists( 'show_dlc_list' )]" - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - button_normal = { - size = { 100% 100% } - onclick = "[GetVariableSystem.Clear( 'show_dlc_list')]" - } - - using = Background_Full_Dim - - window = { - movable = no - resizable = no - parentanchor = center - using = Window_Decoration_Spike - using = Window_Background - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - raw_text = "DLC_LIST_HEADER" - } - blockoverride "button_back" - { - visible = no - } - blockoverride "button_close" - { - onclick = "[GetVariableSystem.Clear( 'show_dlc_list')]" - } - } - - scrollbox = { - size = { 740 800 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[DlcCollection.GetDlcs]" - spacing = 16 - - item = { - vbox_dlc_list_entry = {} - } - } - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 15 - - background = { - using = Background_Area - } - - button_primary = { - text = "CLOSE_LABEL" - onclick = "[GetVariableSystem.Clear( 'show_dlc_list')]" - } - } - } - } - } - - type button_show_dlc_list = button_round { - tooltip = "DLC_LIST_OPEN_TOOLTIP" - - onclick = "[GetVariableSystem.Toggle( 'show_dlc_list' )]" - size = { 36 36 } - - button_plus = { - alwaystransparent = yes - parentanchor = center - } - } - - - type dlc_button = button { - datacontext = "[DlcItem.GetDlc]" - size = "[Dlc.GetIconSize]" - texture = "[Dlc.GetIcon]" - onclick = "[DlcItem.ShowInStore]" - tooltip = "DLC_BUTTON_TOOLTIP" - - modify_texture = { - visible = "[Not( Dlc.IsEnabled )]" - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 0.4 - } - } - - type vbox_dlc_list_entry = vbox { - datacontext = "[DlcItem.GetDlc]" - - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - margin = { 16 6 } - - background = { - using = Background_Area_Dark - } - - container = { - # let the icons height determine the height of this header, - # but have it be fixed width so that the text does not move horizontally based on the icon size - - min_width = 47 - - icon = { - size = "[Dlc.GetIconSize]" - texture = "[Dlc.GetIcon]" - parentanchor = hcenter - - modify_texture = { - visible = "[Not( Dlc.IsEnabled )]" - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 0.4 - } - } - } - - text_single = { - text = "[Dlc.GetName]" - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - using = Font_Type_Flavor - align = nobaseline - alpha = "[Select_float(Dlc.IsEnabled,'(float)1.0','(float)0.5')]" - } - - text_single = { - text = "DLC_ENABLED_DISABLED_SHORT" - align = nobaseline - } - - button_standard = { - text = "DLC_VISIT_STORE" - onclick = "[DlcItem.ShowInStore]" - } - } - - text_multi = { - text = "[Dlc.GetDesc]" - autoresize = yes - default_format = "#F" - max_width = 700 - min_width = 700 - - margin = { 16 0 } - } - - } -} - - diff --git a/N3OW/gui/frontend_credits.gui b/N3OW/gui/frontend_credits.gui deleted file mode 100644 index 83e6d07a..00000000 --- a/N3OW/gui/frontend_credits.gui +++ /dev/null @@ -1,3 +0,0 @@ -JominiFrontEndCreditsView = { - size = { 100% 100% } -} \ No newline at end of file diff --git a/N3OW/gui/frontend_ingame_menu.gui b/N3OW/gui/frontend_ingame_menu.gui deleted file mode 100644 index 7af3b83c..00000000 --- a/N3OW/gui/frontend_ingame_menu.gui +++ /dev/null @@ -1,431 +0,0 @@ -window = { - name = "ingame_pausemenu" - parentanchor = center - movable = no - size = { 100% 105% } - layer = frontend - filter_mouse = all - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - background = { - texture = "gfx/interface/illustrations/frontend/pause_bg.dds" - - modify_texture = { - texture = "gfx/interface/frontend/fade_bg_ingame_menu.dds" - blend_mode = alphamultiply - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { 0 0 } - - start_sound = { - soundeffect = "snapshot:/States/MainMenu" - } - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_tab" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - start_sound = { soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_tab"} - position_y = 10 - } - - widget = { - size = { 100% 100% } - scale = "[ScaleToFitElementOutside('(int32)1920', '(int32)1080')]" - parentanchor = left|vcenter - - widget = { - parentanchor = vcenter - position = { 172 -80 } - - vbox = { - set_parent_size_to_minimum = yes - - vbox = { - margin = { 30 30 } - spacing = 10 - - icon = { - texture = "gfx/interface/component_masks/ck3_logo.dds" - size = { 256 232 } - - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 4 - } - } - - spacer = { - size = { 30 15 } - } - - button_frontend = { - size = { 332 58 } - name = "resume_button" - text = "RESUME" - - shortcut = "close_window" - onclick = "[PauseMenu.Resume]" - } - - vbox = { - visible = "[GameHasMultiplePlayers]" - spacing = 5 - - background = { - using = Background_Area_With_Header - margin_bottom = 5 - } - - text_single = { - margin = { 10 10 } - layoutpolicy_horizontal = expanding - text = "MULTI_PLAYER" - } - - text_single = { - visible = "[Not(IsGamePaused)]" - text = "FRONTEND_NOT_PAUSED" - } - - text_single = { - visible = "[IsGamePaused]" - text = "FRONTEND_IS_PAUSED" - } - - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 10 - text = "FRONTEND_PLAYERS_COUNT" - } - - button_frontend = { - name = "lobby_button" - size = { 325 58 } - text = "FRONTEND_GOTO_LOBBY" - onclick = "[PauseMenu.OpenLobby]" - } - - spacer = { - size = { 10 10 } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 275 -1 } - margin = { 10 5 } - spacing = 5 - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 275 - min_width = 275 - margin = { 0 5 } - autoresize = yes - text = "FRONTEND_INVITE" - } - - button_copy = { - onclick = "[CopyServerID]" - tooltip = "FRONTEND_COPY_CLIPBUFFER_TT" - } - } - } - - vbox = { - margin_top = 20 - spacing = 30 - - hbox = { - visible = "[IsIronmanEnabled]" - - ironman_save_icon = {} - - vbox = { - spacing = 5 - text_label_center = { - text = IRONMAN_ENABLED - default_format = "#low" - using = Font_Size_Medium - } - text_multi = { - max_width = 290 - min_width = 290 - autoresize = yes - text = "IRONMAN_PAUSE_MENU_EXPLANATION" - using = Font_Size_Small - } - } - } - - vbox = { - spacing = 4 - - button_frontend = { - name = "save_button" - size = { 325 58 } - text = "SAVE_GAME" - visible = "[Not( IsIronmanEnabled )]" - onclick = "[PauseMenu.Save]" - } - - button_frontend = { - name = "load_ingame_button" - size = { 325 58 } - text = "LOAD_GAME" - - visible = "[Not( GameHasMultiplePlayers )]" - enabled = "[PauseMenu.CanLoadIngame]" - onclick = "[PauseMenu.LoadIngame]" - tooltip = "[PauseMenu.LoadIngameTooltip]" - } - - button_frontend = { - name = "open_lobby_button" - size = { 325 58 } - text = "OPEN_LOBBY" - - onclick = "[PauseMenu.OpenLobby]" - visible = "[Not( Or( Or( Or( PauseMenu.IsLobbyOpen, IsIronmanEnabled ), GameIsMultiplayer ), Not( CanOpenLobby ) ) )]" - tooltip = "[GetOpenLobbyTooltip]" - } - - button_frontend = { - name = "open_lobby_button_login" - size = { 325 58 } - text = "OPEN_LOBBY" - - onclick = "[OnToggleLoginWindow]" - visible = "[Not( Or( Or( Or( PauseMenu.IsLobbyOpen, IsIronmanEnabled ), GameIsMultiplayer ), CanOpenLobby ) )]" - tooltip = "[GetOpenLobbyTooltip]" - - icon_online_offline = { - parentanchor = right|vcenter - position = { -15 0 } - frame = 1 - } - } - - button_frontend = { - name = "switch_character_button" - tooltip = "INGAME_MENU_SWITCH_CHARACTER" - size = { 325 58 } - text = "FRONTEND_SWITCH_CHARACTER" - - onclick = "[PauseMenu.SwitchCharacter]" - visible = "[Not( Or( Or( PauseMenu.IsLobbyOpen, IsIronmanEnabled ), GameHasMultiplePlayers ) )]" - } - - button_frontend = { - name = "exit_button" - size = { 325 58 } - text = "[PauseMenu.GetExitName]" - onclick = "[PauseMenu.ExitGame( '(bool)yes' )]" - } - } - } - - hbox = { - margin_top = 30 - spacing = 60 - - pops_login_accountwidget = { - size = { 35 35 } - - blockoverride "properties" { - onclick = "[OnToggleLoginWindow]" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 20 } - max_width = 90 - min_width = 90 - align = center - fontsize = 13 - - text = "ACCOUNT" - default_format = "#clickable" - } - } - - button_settings = { - name = "settings" - onclick = "[PauseMenu.OpenSettings]" - size = { 35 35 } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 20 } - max_width = 90 - min_width = 90 - align = center - fontsize = 13 - - text = "SETTINGS" - default_format = "#clickable" - } - } - - button_achievements = { - name = "achievements" - onclick = "[OpenAchievements]" - enabled = "[AreAchievementsAvailable]" - tooltip = "[GetAchievementsAvailableString]" - size = { 35 35 } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 20 } - max_width = 90 - min_width = 90 - align = center - fontsize = 13 - - text = "ACHIEVEMENTS_LABEL" - default_format = "#clickable" - } - } - - hbox = { - button_rules = { - name = "game_rules" - onclick = "[OpenGameRules]" - size = { 35 35 } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 20 } - max_width = 90 - min_width = 90 - align = center - fontsize = 13 - - default_format = "#clickable" - text = "GAME_RULES" - } - } - - vbox = { - datacontext = "[GetGameRules]" - visible = "[Not( GameHasMultiplePlayers )]" - ironman_save_icon = { - visible = "[IsIronmanEnabled]" - size = { 25 25 } - tooltip = IRONMAN_ENABLED - } - ironman_disabled_icon = { - visible = "[Not( IsIronmanEnabled )]" - size = { 25 25 } - tooltip = IRONMAN_DISBLED - } - achievements_enabled_icon = { - visible = "[CanGetAchievements]" - size = { 25 25 } - tooltip = ACHIEVEMENTS_ENABLED - } - achievements_disabled_icon = { - visible = "[Not( CanGetAchievements )]" - size = { 25 25 } - tooltip = ACHIEVEMENTS_DISABLED - } - } - } - } - } - clickable_version_number = { - blockoverride "version_text" { - text = "VERSION_SHORT" - align = center - } - } - } - } - } -} - -window = { - name = "ingame_load_ingame" - movable = no - layer = confirmation - size = { 100% 100% } - - using = Animation_ShowHide_Quick - using = Background_Full_Dim - - button_normal = { - size = { 100% 100% } - onclick = "[LoadIngameWindow.OnBack]" - } - - widget_load_game = { - parentanchor = center - size = { 1030 70% } - - blockoverride "datamodel_savegames" - { - datamodel = "[LoadIngameWindow.GetSaveGames]" - } - - blockoverride "invalid_saves_click" - { - onclick = "[LoadIngameWindow.OnShowInvalidSavegames]" - } - - blockoverride "invalid_saves_checked" - { - checked = "[LoadIngameWindow.ShouldShowInvalidSavegames]" - } - - blockoverride "button_back" - { - onclick = "[LoadIngameWindow.OnBack]" - } - - blockoverride "selected_save" - { - datacontext = "[LoadIngameWindow.GetSelectedSavegame]" - visible = "[LoadIngameWindow.HasSelectedSavegame]" - } - - blockoverride "button_delete_save" - { - onclick = "[LoadIngameWindow.OnDelete]" - } - - blockoverride "button_load_save" - { - onclick = "[LoadIngameWindow.OnLoad]" - } - blockoverride "layout_widget" - { - visible = "[Not(LoadIngameWindow.HasSelectedSavegame)]" - } - } -} - -Types SaveGameTypes -{ - type cloud_save_checkbutton = button_checkbox - { - name = "cloud_save" # Name referenced from code - checked = "[CloudSaveData.ShouldSaveToCloud]" - tooltip = "[CloudSaveData.GetCloudSaveTooltip]" - onclick = "[CloudSaveData.OnCloudSaveClick]" - enabled = "[CloudSaveData.AreCloudSavesAvailable]" - } -} \ No newline at end of file diff --git a/N3OW/gui/frontend_load.gui b/N3OW/gui/frontend_load.gui deleted file mode 100644 index 32093793..00000000 --- a/N3OW/gui/frontend_load.gui +++ /dev/null @@ -1,747 +0,0 @@ -widget = { - name = "mainmenu_load" - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - texture = "gfx/interface/illustrations/frontend/frontend_bg.dds" - fittype = centercrop - } - - window = { - gfxtype = windowgfx - alwaystransparent = no - movable = no - resizable = no - size = { 1030 70% } - - position = { 50 0 } - parentanchor = left|vcenter - - layer = windows_layer - - widget_load_game = { - size = { 100% 100% } - } - } -} - -types LoadGameTypes -{ - type widget_load_game = widget { - size = { 100% 100% } - - hbox = { - widget = { - size = { 490 0 } - layoutpolicy_vertical = expanding - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "LOAD_GAME" - } - - blockoverride "button_close" { - visible = no - } - } - - scrollbox = { - layoutpolicy_horizontal = growing - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - block "datamodel_savegames" - { - datamodel = "[FrontEndLoadView.GetSaveGames]" - } - spacing = 3 - - item = { - button_saved_games = { - size = { 390 90 } - } - } - } - } - } - - vbox = { - margin = { 0 10 } - spacing = 10 - - hbox = { - spacing = 5 - - button_checkbox_label = { - block "invalid_saves_click" - { - onclick = "[FrontEndLoadView.OnShowInvalidSavegames]" - } - - blockoverride "text" - { - text = "LOAD_SHOW_INVALID_SAVEGAMES" - } - - blockoverride "checkbox" - { - block "invalid_saves_checked" - { - checked = "[FrontEndLoadView.ShouldShowInvalidSavegames]" - } - } - } - } - - button_standard_back = { - shortcut = "close_window" - - block "button_back" - { - onclick = "[FrontEndLoadView.OnBack]" - } - } - } - } - } - - widget = { - size = { 580 0 } - layoutpolicy_vertical = expanding - - vbox = { - margin = { 0 22 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 540 0 } - alwaystransparent = no - block "selected_save" - { - visible = "[FrontEndLoadView.HasSelectedSavegame]" - datacontext = "[FrontEndLoadView.GetSelectedSavegame]" - } - margin = { 0 15 } - - background = { - name = "background_loadgame" - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - alpha = 0.7 - mirror = horizontal - } - } - - background = { - using = Background_Area_Dark - alpha = 0.3 - margin = { -15 -15 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - - rotate_uv = 225 - } - } - - vbox_save_preview = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 15 0 } - margin_top = 10 - minimumsize = { 540 0 } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 25 10 } - spacing = 5 - - button_standard = { - name = "delete_button" - text = "DELETE_GAME" - - block "button_delete_save" - { - onclick = "[FrontEndLoadView.OnDelete]" - } - size = { 180 33 } - - button_icon = { - name = "button_close" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - parentanchor = left|vcenter - position = { 5 0 } - size = { 25 25 } - alwaystransparent = yes - } - } - - expand = {} - - button_primary = { - name = "load_button" - size = { 250 42 } - text = "LOAD" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - - enabled = "[Not( SaveGameItem.HasMissingDLCs )]" - tooltip = "[SaveGameItem.GetMissingDLCInfo]" - - block "button_load_save" - { - onclick = "[FrontEndLoadView.OnLoadSavedGameButton]" - } - } - } - } - } - } - - ### layout widget #### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - block "layout_widget" - { - visible = "[Not(FrontEndLoadView.HasSelectedSavegame)]" - } - } - } - } - - type button_saved_games = button_standard_hover { - onclick = "[SaveGameItem.Select]" - onclick = "[PdxGuiTriggerAllAnimations('loadsave_refresh')]" - down = "[SaveGameItem.IsSelected]" - - hbox = { - margin = { 5 5 } - spacing = 5 - - coa_savegame = {} - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "filename" - text = "[SaveGameItem.GetName]" - layoutpolicy_horizontal = expanding - autoresize = yes - default_format = "#high" - using = Font_Size_Medium - - block "max_width_savegame" { - max_width = 325 - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - size = { 330 -1 } - - text_multi = { - name = "name" - text = "[SaveGameItem.GetPlayerName]" - layoutpolicy_horizontal = expanding - autoresize = no - align = left - default_format = "#low" - alwaystransparent = yes - } - - cloud_save_icon = { - visible = "[SaveGameItem.IsCloudSave]" - size = { 30 30 } - } - - widget = { - size = { 30 30 } - visible = "[SaveGameItem.IsIronmanSave]" - - ironman_save_icon = { - tooltip = "LOAD_IRONMAN_TOOLTIP" - size = { 42 42 } - parentanchor = center - } - } - - icon_multiplayer = { - visible = "[SaveGameItem.IsMultiplayer]" - size = { 30 30 } - } - - invalid_save_icon = { - visible = "[Not(SaveGameItem.IsValid)]" - tooltip = "LOAD_INVALID_TOOLTIP" - size = { 30 30 } - } - - invalid_save_icon = { - visible = "[Or( Or( SaveGameItem.HasMissingDLCs, SaveGameItem.HasMissingMods ), SaveGameItem.IsDifferentVersion )]" - tooltip = "LOAD_MISSING_ITEMS_TT" - size = { 30 30 } - } - - # Because of game rules - achievements_disabled_icon = { - visible = "[SaveGameItem.HasAchievementBlockingGameRules]" - tooltip = "[SaveGameItem.GetAchievementBlockingGameRulesInfo]" - size = { 30 30 } - } - - # because of other reasons (tag switching, console, multiplayer, modified checksum) - achievements_disabled_icon = { - visible = "[And( Not(SaveGameItem.HasAchievementBlockingGameRules), Not(SaveGameItem.CanGetAchievements) )]" - tooltip = "ACHIEVEMENTS_DISABLED_SAVEGAME" - size = { 30 30 } - } - - expand = {} - } - } - } - } - - type vbox_save_preview = vbox { - name = "load_info" - - state = { - name = "loadsave_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - portrait_button = { - name = "character" - visible = "[SaveGameItem.HasMainCharacter]" - parentanchor = bottom|right - using = portrait_base - size = { 360 560 } - - block "position" { - position = { 30 20 } - } - - portrait_texture = "[SaveGameItem.GetMainCharacterTexture('environment_body', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)no')]" - mask = "gfx/portraits/portrait_mask_body.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - alwaystransparent = yes - } - - vbox = { - margin = { 10 5 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - mirror = vertical - - block "margin_background" { - margin = { 5 10 } - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - - rotate_uv = 225 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - visible = "[SaveGameItem.HasValidCharacterToShow]" - - background = { - using = Background_Area_Dark - margin = { 5 5 } - } - - widget = { - size = { 60 60 } - - coa_savegame_house = { - parentanchor = center - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character" - layoutpolicy_horizontal = expanding - text = "[SaveGameItem.GetPlayerName]" - autoresize = no - fontsize_min = 14 - default_format = "#high" - align = nobaseline - - using = Font_Type_Flavor - using = Font_Size_Big - } - - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "LOAD_GAME_WINDOW_HOUSE" - align = nobaseline - } - - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - widget = { - size = { 60 80 } - - coa_savegame = { - parentanchor = center - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SaveGameItem.GetTitleName|U]" - default_format = "#high" - using = Font_Size_Medium - autoresize = no - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "LOAD_SAVE_ITEM_DATE" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "filename" - text = "LOAD_SAVE_ITEM_FILENAME" - autoresize = yes - default_format = "#weak" - maximumsize = { 250 250 } - } - - expand = {} - } - - text_single = { - name = "real_date" - text = "LOAD_SAVE_ITEM_SAVE_TIME" - layoutpolicy_horizontal = expanding - default_format = "#weak" - } - - text_single = { - text = "LOAD_GAME_VERSION" - layoutpolicy_horizontal = expanding - default_format = "#weak" - } - } - - # text_single = { - # visible = "[SaveGameItem.HasMissingDLCs]" - # text = "MISSING_DLC" - # layoutpolicy_horizontal = expanding - # align = left - # default_format = "#low" - # tooltip = "[SaveGameItem.GetMissingDLCInfo]" - # } - - text_single = { - visible = "[SaveGameItem.HasMissingMods]" - text = "MISSING_MODS" - layoutpolicy_horizontal = expanding - align = left - default_format = "#low" - tooltip = "[SaveGameItem.GetMissingMods]" - } - - text_single = { - visible = "[SaveGameItem.IsDifferentVersion]" - text = "LOAD_GAME_DIFFERENT_VERSION" - layoutpolicy_horizontal = expanding - align = left - default_format = "#low" - tooltip = "LOAD_GAME_DIFFERENT_VERSION_TT" - } - - spacer = { - size = { 10 10 } - } - - ### ADDITIONAL SAVE INFO ## - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 10 5 } - - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.IsCloudSave]" - spacing = 5 - - cloud_save_icon = {} - - text_single = { - text = "LOAD_CLOUDSAVE_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.IsIronmanSave]" - spacing = 5 - - ironman_save_icon = {} - - text_single = { - text = "LOAD_IRONMAN_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.CanGetAchievements]" - spacing = 5 - - achievements_enabled_icon = {} - - text_single = { - text = "LOAD_ACHIEVEMENTS_ENABLED_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not(SaveGameItem.CanGetAchievements)]" - spacing = 5 - - achievements_disabled_icon = {} - - text_single = { - text = "LOAD_ACHIEVEMENTS_DISABLED_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.IsMultiplayer]" - spacing = 5 - - icon_multiplayer = {} - - text_single = { - text = "LOAD_MULTIPLAYER_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not(SaveGameItem.IsValid)]" - spacing = 5 - - invalid_save_icon = {} - - text_single = { - text = "LOAD_INVALID_TOOLTIP" - default_format = "#low" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.HasMissingDLCs]" - spacing = 5 - - missing_dlcs_icon = {} - - text_multi = { - text = "[SaveGameItem.GetMissingDLCInfo]" - default_format = "#low" - align = nobaseline - autoresize = yes - max_width = 250 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SaveGameItem.HasAchievementBlockingGameRules]" - spacing = 5 - - achievements_disabled_icon = {} - - text_multi = { - text = "[SaveGameItem.GetAchievementBlockingGameRulesInfo]" - default_format = "#low" - autoresize = yes - max_width = 250 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And( SaveGameItem.CanGetAchievements, Not( IsGameChecksumOk ) )]" - spacing = 5 - - achievements_disabled_icon = {} - - text_multi = { - text = "GAME_CHECKSUM_CHANGED_FROM_SAVE_FILE" - default_format = "#low" - autoresize = yes - max_width = 250 - } - - expand = {} - } - } - - expand = {} - } - - expand = {} - } - } - - expand = {} - } - - expand = {} - } - } - } -} - diff --git a/N3OW/gui/frontend_loadingscreen_savegame.gui b/N3OW/gui/frontend_loadingscreen_savegame.gui deleted file mode 100644 index 338e67ef..00000000 --- a/N3OW/gui/frontend_loadingscreen_savegame.gui +++ /dev/null @@ -1,40 +0,0 @@ -widget = { - name = "load_screen" - size = { 100% 100% } - - widget_loading_screen = { - - blockoverride "loading_screen_text" - { - - # Intentionally use base type, so it matches the overriden layout in frontend_loadingscreen.gui - textbox = { - name = "load_status_text" - parentanchor = vcenter - size = { 200 30 } - fontsize = 20 - font = StandardGameFont - default_format = "#medium;glow_color:{0.2,0.2,0.2,1}" - align = left|nobaseline - - text = "[ProgressInterface.GetProgress]" - } - } - - text_multi = { - name = "load_tip_text" - parentanchor = bottom|left - position = { 15 -15 } - margin = { 20 15 } - autoresize = yes - - text = "[GetLoadTip]" - default_format = "#medium" - max_width = 500 - - background = { - using = Background_Area_Dark - } - } - } -} diff --git a/N3OW/gui/frontend_main.gui b/N3OW/gui/frontend_main.gui deleted file mode 100644 index f02253b9..00000000 --- a/N3OW/gui/frontend_main.gui +++ /dev/null @@ -1,1650 +0,0 @@ - -widget = { - name = "mainmenu_panel_bottom" - parentanchor = center - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_window_show" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - start_sound = { - soundeffect = "event:/SFX/UI/Frontend/sfx_ui_frontend_window_hide" - } - } - - widget = { - parentanchor = center - size = { 1920 1080 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - - state = { - name = "main_menu_continue" - duration = 0.6 - delay = 1 - using = Animation_Curve_Default - - alpha = 0 - } - - icon = { - parentanchor = center - size = { 100% 100% } - texture = "[FrontEndMainView.GetBackground]" - - modify_texture = { - name = "fade" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - translate_uv = { 1 0 } - alpha = 0 - } - - state = { - name = "main_menu_continue" - duration = 1 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "fade" - translate_uv = { -1 0 } - alpha = 1 - } - } - } - - widget = { - parentanchor = center - size = { 1920 1080 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - position = "[Select_CVector2f( FrontEndMainView.ShouldShowChallengeCharacter, '(CVector2f)-250,0', '(CVector2f)0,0' )]" - - icon = { - name = "shadow_left" - visible = "[And( FrontEndMainView.ShowSecondaryCharacter, GreaterThan_int32( FrontEndMainView.GetSecondaryCharacterAge, '(int32)1' ) )]" - parentanchor = bottom|hcenter - position = { 170 -90 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.7 - } - - icon = { - name = "shadow_left_sitting_child" - visible = "[And( FrontEndMainView.ShowSecondaryCharacter, LessThanOrEqualTo_int32( FrontEndMainView.GetSecondaryCharacterAge, '(int32)1' ) )]" - parentanchor = bottom|hcenter - position = { 150 -135 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.35 - } - - icon = { - name = "shadow_center" - visible = "[GreaterThan_int32( FrontEndMainView.GetMainCharacterAge, '(int32)1' )]" - parentanchor = bottom|hcenter - position = { 335 -40 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.7 - } - - icon = { - name = "shadow_center_sitting_child" - visible = "[LessThanOrEqualTo_int32( FrontEndMainView.GetMainCharacterAge, '(int32)1' )]" - parentanchor = bottom|hcenter - position = { 325 -80 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.35 - } - - icon = { - name = "shadow_right" - visible = "[And( FrontEndMainView.ShowHeirCharacter, GreaterThan_int32( FrontEndMainView.GetHeirCharacterAge, '(int32)1' ) )]" - parentanchor = bottom|hcenter - position = { 515 -75 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.7 - } - - icon = { - name = "shadow_right_sitting_child" - visible = "[And( FrontEndMainView.ShowHeirCharacter, LessThanOrEqualTo_int32( FrontEndMainView.GetHeirCharacterAge, '(int32)1' ) )]" - parentanchor = bottom|hcenter - position = { 490 -45 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - scale = 0.35 - } - - @frontend_portrait_y = -240 - @frontend_portrait_y_child = -190 - - # Secondary - portrait_button = { - name = "menu_portrait_left" - visible = "[And(FrontEndMainView.ShowSecondaryCharacter , GreaterThan_int32( FrontEndMainView.GetSecondaryCharacterAge, '(int32)1' ))]" - parentanchor = center - position = { 0 @frontend_portrait_y } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetSecondaryCharacterTexture('camera_main_menu_secondary', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - # Secondary child, sitting child version - portrait_button = { - name = "menu_portrait_left_sitting_child" - visible = "[And(FrontEndMainView.ShowSecondaryCharacter , LessThanOrEqualTo_int32( FrontEndMainView.GetSecondaryCharacterAge, '(int32)1' ))]" - parentanchor = center - position = { 0 @frontend_portrait_y } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetSecondaryCharacterTexture('camera_main_menu_secondary_sitting_child', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - # Heir - portrait_button = { - name = "menu_portrait_right" - visible = "[And( FrontEndMainView.ShowHeirCharacter, GreaterThan_int32( FrontEndMainView.GetHeirCharacterAge, '(int32)1' ) )]" - parentanchor = center - position = { 0 @frontend_portrait_y } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetHeirCharacterTexture('camera_main_menu_heir', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - # Main Character - portrait_button = { - name = "menu_portrait_center" - visible = "[GreaterThan_int32( FrontEndMainView.GetMainCharacterAge, '(int32)1' )]" - parentanchor = center - position = { 0 @frontend_portrait_y } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetMainCharacterTexture('camera_main_menu_main', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - # Main Character, sitting child version - portrait_button = { - name = "menu_portrait_center_sitting_child" - visible = "[LessThanOrEqualTo_int32( FrontEndMainView.GetMainCharacterAge, '(int32)1' )]" - parentanchor = center - position = { 0 @frontend_portrait_y } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetMainCharacterTexture('camera_main_menu_main_sitting_child', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - # Heir, sitting child version - portrait_button = { - name = "menu_portrait_heir_sitting_child" - visible = "[And( FrontEndMainView.ShowHeirCharacter, LessThanOrEqualTo_int32( FrontEndMainView.GetHeirCharacterAge, '(int32)1' ) )]" - parentanchor = center - position = { 0 @frontend_portrait_y_child } - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - portrait_texture = "[FrontEndMainView.GetHeirCharacterTexture('camera_main_menu_heir_sitting_child', PdxGetWidgetScreenSize(PdxGuiWidget.Self), '(bool)yes')]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - } - } - - widget = { - parentanchor = center - size = { 1920 1080 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - - icon = { - name = "left_panel" - parentanchor = left|vcenter - position = { 200 -700 } - size = { 500 915 } - alpha = 0 - texture = "gfx/interface/frontend/frontend_main_menu_bg.dds" - - modify_texture = { - texture = "gfx/interface/frontend/frontend_main_menu_bg_mask.dds" - blend_mode = mask - } - - modify_texture = { - name = "glow_main" - texture = "gfx/interface/frontend/frontend_main_menu_bg_glow.dds" - blend_mode = colordodge - alpha = 0 - translate_uv = { 0.29 -0.5 } - } - - modify_texture = { - name = "glow_continue" - texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - blend_mode = colordodge - translate_uv = { 0 -0.14 } - alpha = 1 - } - - modify_texture = { - name = "glow_new" - texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - blend_mode = colordodge - translate_uv = { 0 -0.07 } - alpha = 0 - } - - modify_texture = { - name = "glow_load" - texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - blend_mode = colordodge - translate_uv = { 0 -0.14 } - alpha = 0 - } - - modify_texture = { - name = "glow_host" - texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - blend_mode = colordodge - translate_uv = { 0 -0.28 } - alpha = 0 - } - - modify_texture = { - name = "glow_join" - texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - blend_mode = colordodge - translate_uv = { 0 -0.31 } - alpha = 0 - } - - # modify_texture = { - # name = "glow_exit" - # texture = "gfx/interface/frontend/frontend_main_menu_bg_button_glow.dds" - # blend_mode = colordodge - # translate_uv = { 0 -0.41 } - # alpha = 0 - # } - - @duration_button_enter = 0.1 - @duration_button_leave = 0.5 - - # Continue - state = { - name = "main_menu_glow_continue_enter" - duration = 0.05 - using = Animation_Curve_Default - - modify_texture = { - name = "glow_continue" - alpha = 1 - } - } - - state = { - name = "main_menu_glow_continue_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_continue" - alpha = 0 - } - } - - # New - state = { - name = "main_menu_glow_new_enter" - duration = @duration_button_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_new" - translate_uv = { 0 -0.07 } - alpha = 1 - } - } - - state = { - name = "main_menu_glow_new_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_new" - translate_uv = { 0 -0.07 } - alpha = 0 - } - } - - # Load - state = { - name = "main_menu_glow_load_enter" - duration = @duration_button_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_load" - translate_uv = { 0 -0.14 } - alpha = 1 - } - } - - state = { - name = "main_menu_glow_load_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_load" - translate_uv = { 0 -0.14 } - alpha = 0 - } - } - - # Load - state = { - name = "main_menu_glow_host_enter" - duration = @duration_button_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_host" - translate_uv = { 0 -0.28 } - alpha = 1 - } - } - - state = { - name = "main_menu_glow_host_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_host" - translate_uv = { 0 -0.28 } - alpha = 0 - } - } - - # Load - state = { - name = "main_menu_glow_join_enter" - duration = @duration_button_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_join" - translate_uv = { 0 -0.31 } - alpha = 1 - } - } - - state = { - name = "main_menu_glow_join_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_join" - translate_uv = { 0 -0.31 } - alpha = 0 - } - } - - # Exit - state = { - name = "main_menu_glow_exit_enter" - duration = 0.05 - using = Animation_Curve_Default - - modify_texture = { - name = "glow_continue" - translate_uv = { 0 -0.41 } - alpha = 1 - } - } - - state = { - name = "main_menu_glow_exit_leave" - duration = @duration_button_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_continue" - translate_uv = { 0 -0.41 } - alpha = 0 - } - } - - # Appear bounce animation - state = { - name = a - next = b - duration = 1 - trigger_on_create = yes - position_y = -700 - } - - state = { - name = b - next = c - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - position_y = 0 - alpha = 1 - } - - state = { - name = c - next = d - duration = 0.1 - bezier = { 0 0.5 0.5 1 } - - position_y = -20 - } - - state = { - name = d - next = e - duration = 0.1 - bezier = { 0.5 0 1 0.5 } - - position_y = 0 - } - - state = { - name = e - next = f - duration = 0.05 - bezier = { 0 0.5 0.5 1 } - - position_y = -5 - } - - state = { - name = f - next = "glow_1" - duration = 0.05 - bezier = { 0.5 0 1 0.5 } - - position_y = 0 - } - - # Main Glow Animation - # state = { - # name = "glow_1" - # next = "glow_2" - - # modify_texture = { - # name = "glow_main" - # alpha = 0 - # translate_uv = { 0.29 -0.5 } - # } - - # } - - state = { - name = "glow_1" - next = "glow_3" - duration = 0.3 - - modify_texture = { - name = "glow_main" - alpha = 0 - translate_uv = { 0.25 -0.22 } - } - } - - state = { - name = "glow_3" - next = "glow_4" - duration = 0.5 - - modify_texture = { - name = "glow_main" - alpha = 0.4 - translate_uv = { 0.19 -0.03 } - } - } - - state = { - name = "glow_4" - next = "glow_5" - duration = 0.25 - - modify_texture = { - name = "glow_main" - alpha = 0.8 - translate_uv = { 0.1 0.1 } - } - } - - state = { - name = "glow_5" - next = "glow_6" - duration = 0.25 - - modify_texture = { - name = "glow_main" - alpha = 0.5 - translate_uv = { 0.03 0.19 } - } - } - - state = { - name = "glow_6" - next = "glow_7" - duration = 0.3 - - modify_texture = { - name = "glow_main" - alpha = 0.2 - translate_uv = { -0.15 0.25 } - } - } - - state = { - name = "glow_7" - duration = 0.4 - - modify_texture = { - name = "glow_main" - alpha = 0 - translate_uv = { -0.3 0.29 } - } - } - - # Continue Game - state = { - name = "main_menu_continue" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - delay = 0.4 - alpha = 0 - - position_x = -100 - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/frontend/frontend_main_menu_frame.dds" - } - - vbox = { - datacontext = "[FrontEndMainView.AccessLoadView]" - margin = { 90 0 } - - - vbox = { - margin_top = 255 - margin_bottom = 20 - spacing = 25 - - vbox = { - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 5 - text = "SINGLE_PLAYER" - default_format = "#weak;italic;glow_color:{0.1,0.1,0.1,1}" - } - - vbox = { - button_frontend = { - name = "continue_button_disabled" - visible = "[Not(FrontEndLoadView.CanDoContinue)]" - enabled = no - - text = "CONTINUE" - default_format = "#weak" - fontsize = 20 - tooltip = FRONTEND_NO_CONTINUE_TT - - } - - button_frontend = { - name = "continue_button" - datacontext = "[FrontEndLoadView.GetContinueSave]" - visible = "[FrontEndLoadView.CanDoContinue]" - enabled = "[Not( SaveGameItem.HasMissingDLCs )]" - onclick = "[FrontEndLoadView.OnContinue]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptAllAnimations('main_menu_glow_exit_leave')]" - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_continue_leave','main_menu_glow_continue_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_continue_enter','main_menu_glow_continue_leave')]" - } - - # Triggered from code, don't re-name. - state = { - name = "main_menu_continue" - delay = 1.5 - on_finish = "[FrontEndLoadView.PostContinueFade]" - } - - state = { - name = _mouse_release - on_start = "[FrontEndLoadView.PreContinueSaveCheck]" - } - - text = "CONTINUE" - fontsize = 20 - tooltip = FRONTEND_CONTINUE_TT - - hbox = { - parentanchor = right|vcenter - alwaystransparent = yes - margin_right = 10 - - ironman_save_icon = { - visible = "[SaveGameItem.IsIronmanSave]" - tooltip = "LOAD_IRONMAN_TOOLTIP" - } - - invalid_save_icon = { - visible = "[SaveGameItem.HasMissingDLCs]" - tooltip = "[SaveGameItem.GetMissingDLCInfo]" - } - - # Because of game rules - achievements_disabled_icon = { - visible = "[SaveGameItem.HasAchievementBlockingGameRules]" - tooltip = "[SaveGameItem.GetAchievementBlockingGameRulesInfo]" - } - - # because of other reasons (tag switching, console, multiplayer, modified checksum) - achievements_disabled_icon = { - visible = "[And( Not(SaveGameItem.HasAchievementBlockingGameRules), Not(SaveGameItem.CanGetAchievements) )]" - tooltip = "ACHIEVEMENTS_DISABLED_SAVEGAME" - } - - expand = { - alwaystransparent = yes - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - texture = "[SaveGameItem.GetPlayerGovernment.GetRealmFrameShadow('(int32)62')]" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 64 64 } - size = { 64 64 } - } - - coat_of_arms_icon = { - name = "realm_flag" - parentanchor = center - alwaystransparent = yes - - size = { 64 64 } - coat_of_arms_slot = "[SaveGameItem.GetCoatOfArms.GetSlot('(int32)124','(int32)124')]" - coat_of_arms = "[SaveGameItem.GetCoatOfArms.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_mask = "[SaveGameItem.GetPlayerGovernment.GetRealmMask]" - coat_of_arms_offset = "[SaveGameItem.GetPlayerGovernment.GetRealmMaskOffset]" - coat_of_arms_scale = "[SaveGameItem.GetPlayerGovernment.GetRealmMaskScale]" - - coa_realm_overlay = { - texture = "[SaveGameItem.GetPlayerGovernment.GetRealmFrame('(int32)62')]" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 64 64 } - size = { 64 64 } - } - - coa_realm_topframe = { - texture = "gfx/interface/coat_of_arms/topframe_62.dds" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 64 64 } - position = { 0 -8 } - size = { 64 64 } - } - } - } - } - } - } - - button_frontend = { - name = "new_game_button" - text = "NEW_GAME" - fontsize = 20 - onclick = "[FrontEndMainView.OnNewGame]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_new_leave','main_menu_glow_new_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_new_enter','main_menu_glow_new_leave')]" - } - } - - vbox = { - button_frontend = { - name = "load_game_button_disabled" - visible = "[Not(FrontEndLoadView.CanDoContinue)]" - enabled = no - - text = "LOAD" - default_format = "#weak" - fontsize = 20 - tooltip = FRONTEND_NO_CONTINUE_TT - - } - - button_frontend = { - name = "load_game_button" - visible = "[FrontEndLoadView.CanDoContinue]" - text = "LOAD" - fontsize = 20 - onclick = "[FrontEndMainView.OnLoad]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_load_leave','main_menu_glow_load_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_load_enter','main_menu_glow_load_leave')]" - } - } - } - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 5 - text = "MULTI_PLAYER" - default_format = "#weak;italic;glow_color:{0.1,0.1,0.1,1}" - } - - spacer = { - size = { 5 5 } - } - - vbox = { - visible = "[And( POPSStatusIsLoggedIn, Not( POPStatusIsUserNameEmpty ) )]" - spacing = 5 - - button_frontend = { - name = "host_button" - text = "HOST_GAME" - fontsize = 20 - onclick = "[FrontEndMainView.OnHost]" - onclick = "[RefreshIllustration]" - enabled = "[JominiIsMultiplayerAccessible]" - tooltip = "[JominiGetMultiplayerAccessibleString]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_host_leave','main_menu_glow_host_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_host_enter','main_menu_glow_host_leave')]" - } - } - - button_frontend = { - name = "join_button" - text = "FRONTEND_JOIN_MULTIPLAYER" - fontsize = 20 - onclick = "[FrontEndMainView.OnMultiPlayer]" - onclick = "[RefreshIllustration]" - enabled = "[JominiIsMultiplayerAccessible]" - tooltip = "[JominiGetMultiplayerAccessibleString]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_join_leave','main_menu_glow_join_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_join_enter','main_menu_glow_join_leave')]" - } - } - } - - vbox = { - visible = "[Or( Not( POPSStatusIsLoggedIn ), POPStatusIsUserNameEmpty )]" - spacing = 5 - - button_frontend = { - name = "host_button" - text = "HOST_GAME" - default_format = "#weak" - fontsize = 20 - onclick = "[FrontEndMainView.OnLogin]" - tooltip = "[JominiGetMultiplayerAccessibleString]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_host_leave','main_menu_glow_host_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_host_enter','main_menu_glow_host_leave')]" - } - - icon_online_offline = { - parentanchor = right|vcenter - position = { -15 0 } - frame = 2 - } - } - - button_frontend = { - name = "join_button" - text = "FRONTEND_JOIN_MULTIPLAYER" - default_format = "#weak" - fontsize = 20 - onclick = "[FrontEndMainView.OnLogin]" - tooltip = "[JominiGetMultiplayerAccessibleString]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_join_leave','main_menu_glow_join_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_join_enter','main_menu_glow_join_leave')]" - } - - icon_online_offline = { - parentanchor = right|vcenter - position = { -15 0 } - frame = 2 - } - } - } - } - - - button_frontend = { - name = "exit_game_button" - visible = yes - text = "EXIT_TO_DESKTOP" - fontsize = 20 - onclick = "[FrontEndMainView.OnQuit]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptAllAnimations('main_menu_glow_continue_leave')]" - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_exit_leave','main_menu_glow_exit_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('main_menu_glow_exit_enter','main_menu_glow_exit_leave')]" - } - } - } - - expand = {} - - hbox = { - spacing = 10 - - button_group = { - onclick = "[OpenAchievements]" - enabled = "[AreAchievementsAvailable]" - tooltip = "[GetAchievementsAvailableString]" - - flowcontainer = { - direction = vertical - - button_achievements = { - name = "achievements" - parentanchor = hcenter - size = { 30 30 } - alpha = 0.7 - enabled = "[AreAchievementsAvailable]" - } - - text_single = { - parentanchor = hcenter - max_width = 80 - min_width = 80 - align = center - fontsize = 13 - - text = "ACHIEVEMENTS" - default_format = "#low;glow_color:{0.1,0.1,0.1,1}" - } - } - } - - button_group = { - onclick = "[ToggleEncyclopedia]" - - flowcontainer = { - direction = vertical - - button_encyclopedia = { - parentanchor = hcenter - size = { 30 30 } - alpha = 0.7 - } - - text_single = { - parentanchor = hcenter - max_width = 80 - min_width = 80 - align = center - fontsize = 13 - fontsize_min = 10 - - text = "HEADING_ENCYCLOPEDIA" - default_format = "#low;glow_color:{0.1,0.1,0.1,1}" - } - } - } - - button_group = { - onclick = "[FrontEndMainView.OnCredits]" - - flowcontainer = { - direction = vertical - - button_credits = { - parentanchor = hcenter - size = { 25 25 } - alpha = 0.7 - } - - text_single = { - parentanchor = hcenter - max_width = 80 - min_width = 80 - autoresize = yes - align = center - fontsize = 13 - - text = "CREDITS" - default_format = "#low;glow_color:{0.1,0.1,0.1,1}" - } - } - } - } - - hbox = { - margin_top = 33 - margin_bottom = 92 - spacing = 20 - - button_group = { - onclick = "[FrontEndMainView.OnLogin]" - - flowcontainer = { - spacing = 18 - - pops_login_accountwidget = { - parentanchor = vcenter - size = { 25 25 } - alpha = 0.7 - - blockoverride "properties" { - onclick = "[FrontEndMainView.OnLogin]" - } - } - - text_single = { - parentanchor = vcenter - max_width = 80 - min_width = 80 - fontsize = 13 - - text = "ACCOUNT" - default_format = "#clickable;glow_color:{0.1,0.1,0.1,1}" - align = nobaseline - } - } - } - - button_group = { - onclick = "[FrontEndMainView.OnSettings]" - - flowcontainer = { - spacing = 5 - - button_settings = { - name = "settings" - parentanchor = vcenter - size = { 25 25 } - alpha = 0.7 - } - - text_single = { - parentanchor = vcenter - max_width = 80 - min_width = 60 - autoresize = yes - fontsize = 13 - - text = "SETTINGS" - default_format = "#clickable;glow_color:{0.1,0.1,0.1,1}" - align = nobaseline - } - } - } - } - } - } - } - - clickable_version_number = { - parentanchor = bottom|right - position = { -15 -15 } - - using = tooltip_se - - blockoverride "background" - { - - } - } - - error_horse = { - visible = "[Not(ReleaseMode)]" - parentanchor = bottom|hcenter - position = { 0 -32 } - } - - loaded_mods_icon = { - visible = "[And( HasLoadedMods, Not(ReleaseMode))]" - parentanchor = bottom|hcenter - position = { 12 -16 } - tooltip = "[GetLoadedMods]" - } - - widget = { - parentanchor = bottom|left - size = { 800 100 } - position = { 10 -20} - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 10 - expand = {} - - text_single = { - text = "SOCIALS" - autoresize = yes - max_width = 70 - minimumsize = { 0 25 } - align = nobaseline - using = Font_Size_Medium - } - - spacer = { - size = { 1 24 } - } - - text_single = { - text = "DLC" - autoresize = yes - max_width = 70 - minimumsize = { 0 25 } - align = nobaseline - using = Font_Size_Medium - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_standard = { - size = { 44 44 } - - icon = { - size = { 100% 100%} - texture = "gfx/interface/icons/social_media/youtube_button.dds" - } - onclick = "[FrontEndMainView.OnOpenYoutubeUrl]" - tooltip = youtube_tooltip - using = tooltip_ne - } - - button_standard = { - size = { 44 44 } - - icon = { - size = { 100% 100%} - texture = "gfx/interface/icons/social_media/discord_button.dds" - } - onclick = "[FrontEndMainView.OnOpenDiscordUrl]" - tooltip = discord_tooltip - using = tooltip_ne - } - - expand = {} - } - - hbox = { # DLCs - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - hbox = { - hbox = { - datamodel = "[FrontEndMainView.GetDlcCollection.GetDlcs]" - spacing = 5 - - item = { - dlc_button = { - using = tooltip_nw - } - } - } - - expand = {} - } - } - } - } - } - - widget = { - name = "challenge_character" - visible = "[FrontEndMainView.ShouldShowChallengeCharacter]" - datacontext = "[FrontEndMainView.GetChallengeCharacter]" - datacontext = "[ChallengeCharacter.GetBookmarkCharacter]" - allow_outside = yes - - parentanchor = vcenter|right - position = { -60 -10 } - size = { 400 744 } - - widget = { - position = { 0 -40 } - size = { 280 280 } - parentanchor = top|hcenter - - icon = { - texture = "gfx/interface/colors/black.dds" - size = { 180% 180% } - position = { -10 -10 } - parentanchor = top|hcenter - alpha = 0.5 - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - - icon = { - texture = "gfx/interface/colors/black.dds" - size = { 220% 220% } - position = { -10 -10 } - parentanchor = top|hcenter - alpha = 0.5 - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - - coat_of_arms_icon = { #Dynasty - size = { 100% 100% } - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - parentanchor = top|hcenter - coat_of_arms = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/frontend/mask_coa_flag.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - - coat_of_arms_icon = { #Dynasty House - size = { 100% 100% } - visible = "[BookmarkCharacter.HasDynastyHouse]" - parentanchor = top|hcenter - coat_of_arms = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/frontend/mask_coa_flag.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - } - - portrait_button = { - using = portrait_base - size = { 240 240 } - position = { 0 -42 } - - parentanchor = top|hcenter - - portrait_texture = "[FrontEndMainView.GetChallengeCharacterPortrait( 'environment_bookmarks_map', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - mask = "gfx/portraits/portrait_mask_body.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - alwaystransparent = yes - } - - widget = { - parentanchor = hcenter - position = { 0 90 } - size = { 300 200 } - button_back = { - parentanchor = left - visible = "[InDebugMode]" - size = { 30 30 } - onclick = "[FrontEndMainView.GoPreviousChallengeCharacter]" - } - - button_forward = { - parentanchor = right - visible = "[InDebugMode]" - size = { 30 30 } - onclick = "[FrontEndMainView.GoNextChallengeCharacter]" - } - } - - icon = { - texture = "gfx/interface/component_decoration/decoration_frame_top_clean.dds" - position = { -24 164 } - spriteType = Corneredtiled - spriteborder = { 100 0 } - size = { 448 20 } - texture_density = 2 - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 10 - - spacer = { - size = { 180 180 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0.025 0.025 0.05 0.8 } - texture_density = 2 - alpha = 0.75 - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = {0 10} - - background = { - using = Background_Area_Dark - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "CHALLENGE_CHARACTER_SUGGESTION" - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "CHALLENGE_CHARACTER_INFO" - using = Font_Size_Big - default_format = "#high;glow_color:{0,0,0,1}" - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = nobaseline|center - text = "[ChallengeCharacter.GetStartDate.GetStringLong]" - default_format = "#medium;glow_color:{0,0,0,1}" - using = Font_Size_Medium - using = Font_Type_Flavor - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 24 0 } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 16 - - expand = {layoutpolicy_horizontal = expanding} - - vbox = { - layoutpolicy_vertical = expanding - coa_dynasty_bookmark = { - blockoverride "character" {} - using = tooltip_ws - - } - expand = {layoutpolicy_vertical = expanding} - } - - expand = {layoutpolicy_horizontal = expanding} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - hbox = { - layoutpolicy_horizontal = expanding - min_width = 270 - spacing = 10 - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - text_single = { - max_width = 140 - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_CULTURE" - autoresize = no - align = nobaseline - } - - text_single = { - max_width = 140 - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_RELIGION" - autoresize = no - align = nobaseline - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - max_width = 140 - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_GOVERNMENT" - autoresize = no - align = nobaseline - } - - text_single = { - max_width = 140 - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_REALM" - autoresize = no - align = nobaseline - tooltip = "BOOKMARK_CHARACTER_REALM" - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "BOOKMARK_CHARACTER_DIFFICULTY" - autoresize = no - align = nobaseline - } - } - expand = {layoutpolicy_horizontal = expanding} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 24 12 } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - hbox = { - datamodel = "[FrontEndMainView.AccessChallengeAchievements]" - spacing = 16 - item = { - - container = { - - icon = { - visible = "[GUIAchievement.GetAchievement.IsUnlocked]" - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - #tooltip = "ACHIEVEMENT_UNLOCKED" - tooltip = "CHALLENGE_ACHIEVEMENT_TOOLTIP" - } - - highlight_icon = { - visible = "[Not(GUIAchievement.GetAchievement.IsUnlocked)]" - texture = "[GUIAchievement.AccessTexture]" - size = { 64 64 } - alpha = "[Select_float(GUIAchievement.GetAchievement.IsUnlocked,'(float)1.0','(float)0.5')]" - #tooltip = "ACHIEVEMENT_LOCKED" - tooltip = "CHALLENGE_ACHIEVEMENT_TOOLTIP" - - effectname = "GreyedOut" - - highlight_icon = { - size = { 96% 97% } - parentanchor = center - texture = "gfx/interface/component_masks/mask_frame_horizontal.dds" - tintcolor = { 0 0 0 0.6 } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 12 - - background = { - using = Background_Area_Light - using = Mask_Rough_Edges - margin_top = -12 - margin_bottom = 12 - } - - text_multi = { - name = "character_text" - text = "[BookmarkCharacter.GetDescription]" - size = { 330 250 } - margin_bottom = 10 - align = left - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - - button_standard = { - size = { 160 40 } - onclick = "[FrontEndMainView.StartGameWithChallengeCharacter]" - text = "START" - } - - expand = {} - - button_tertiary = { - name = "game_rules_button" - size = { 160 40 } - - onclick = "[OpenGameRules]" - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - button_rules = { - size = { 25 25 } - alwaystransparent = yes - } - - text_single = { - margin = { 4 0 } - text = "GAME_RULES" - align = nobaseline - default_format = "#clickable" - alwaystransparent = yes - } - - vbox = { - datacontext = "[GetGameRules]" - achievements_enabled_icon = { - visible = "[CanGetAchievements]" - size = { 25 25 } - tooltip = ACHIEVEMENTS_ENABLED - } - achievements_disabled_icon = { - visible = "[Not( CanGetAchievements )]" - size = { 25 25 } - tooltip = ACHIEVEMENTS_DISABLED - } - } - - expand = {} - } - } - - expand = {} - } - } - } - } - icon = { - parentanchor = bottom - texture = "gfx/interface/component_decoration/decoration_frame_bottom.dds" - position = { -20 42 } - spriteType = Corneredtiled - spriteborder = { 100 0 } - size = { 440 20 } - texture_density = 2 - } - } -} - diff --git a/N3OW/gui/frontend_mp_game_setup.gui b/N3OW/gui/frontend_mp_game_setup.gui deleted file mode 100644 index fc9ff567..00000000 --- a/N3OW/gui/frontend_mp_game_setup.gui +++ /dev/null @@ -1,689 +0,0 @@ -window = { - name = "mainmenu_mp_game_setup" - size = { 100% 100% } - - movable = no - - proportional_icon = { - parentanchor = center - size = { 100% 100% } - texture = "[GetRandomFrontendIllustration]" - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'mp_host_tabs', 'game_setup' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'tabs_open' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### BOOKMARKS - vbox = { - layoutpolicy_vertical = expanding - margin_right = 15 - margin_bottom = 10 - spacing = 5 - - using = Window_Background_Sidebar_Multiplayer_Left - - background = { - using = Background_Area_Dark - margin_top = 5 - margin_bottom = 5 - margin_right = 5 - - modify_texture = { - blend_mode = alphamultiply - alpha = 0.8 - mirror = vertical - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - header_pattern = { - name = "header_bar" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - # visible = no - text = "FRONTEND_MP_GAME_SETUP_HOST_HEADER" - visible = "[GameMpSetup.CanStart]" - } - - blockoverride "button_close" { - visible = no - } - } - - spacer = { - size = { 10 5 } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "FRONTEND_MP_GAME_SETUP_HOST_NEW_GAME" - default_format = "#low" - } - - scrollbox = { - name = "bookmarks" - minimumsize = { 400 30% } - layoutpolicy_vertical = growing - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - blockoverride "scrollbox_content" { - vbox = { - name = "bookmarks_list" - datamodel = "[GameMpSetup.GetBookmarkItems]" - spacing = 3 - - item = { - button_standard_clean = { - name = "select" - size = { 370 49 } - onclick = "[MpBookmarkItem.Select]" - onclick = "[PdxGuiTriggerAllAnimations('loadsave_refresh')]" - down = "[MpBookmarkItem.IsSelected]" - text = "[MpBookmarkItem.GetDate.GetStringLong]" - } - } - } - } - } - - spacer = { - size = { 20 10 } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "FRONTEND_MP_GAME_SETUP_HOST_SAVED_GAME" - default_format = "#low" - } - - scrollbox = { - name = "saved_games" - minimumsize = { 400 50% } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - - background = { - using = Background_Area - } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[GameMpSetup.GetSaveGames]" - spacing = 3 - - item = { - button_saved_games = { - size = { 370 90 } - - - blockoverride "max_width_savegame" { - max_width = 305 - } - } - } - } - } - } - - spacer = { - size = { 5 10 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacer = { - size = { 15 10 } - } - - button_standard_back = { - size = { 170 33 } - shortcut = "close_window" - onclick = "[GameMpSetup.OnBack]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = growing - minimumsize = { 400 0 } - margin_left = 15 - margin_bottom = 10 - spacing = 5 - - using = Window_Background_Sidebar_Multiplayer_Right - - background = { - using = Background_Area_Dark - margin_top = 5 - margin_bottom = 5 - margin_right = 5 - - modify_texture = { - blend_mode = alphamultiply - alpha = 0.8 - mirror = vertical - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - #### TABS #### - hbox = { - layoutpolicy_horizontal = expanding - name = "tabs" - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'mp_host_tabs', 'game_setup' )]" - down = "[GetVariableSystem.HasValue( 'mp_host_tabs', 'game_setup' )]" - text = "FRONTEND_MP_GAME_SETUP_GAME_SETTINGS" - default_format = "#low" - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'mp_host_tabs', 'game_info' )]" - down = "[GetVariableSystem.HasValue( 'mp_host_tabs', 'game_info' )]" - text = "GAMESETUP_GAME_INFO" - default_format = "#low" - } - } - - ### GAME SETUP TAB ### - vbox = { - name = "tab_game_setup" - visible = "[GetVariableSystem.HasValue( 'mp_host_tabs', 'game_setup' )]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 10 - margin_left = 15 - - using = Animation_Tab_Switch - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 10 } - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "JOMINI_MULTIPLAYER_GUI_VISIBILITY" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - tooltip = JOMINI_MULTIPLAYER_GUI_PRIVATE_TT - - button_radio = { - visible = "[Not(GameMpSetup.IsInvite)]" - onclick = "[GameMpSetup.SetVisibilityInvite]" - } - - button_radio = { - visible = "[GameMpSetup.IsInvite]" - frame = 2 - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PRIVATE" - align = nobaseline - } - - expand = {} - } - - hbox = { - visible = "[JominiMultiplayerIsCrossplayFilterAvailable]" - - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - tooltip = MULTIPLAYER_GUI_PUBLIC_MICROSOFT_ONLY_TT - - button_radio = { - visible = "[Not(GameMpSetup.IsPublicNoCrossplay)]" - onclick = "[GameMpSetup.SetVisibilityPublicNoCrossplay]" - } - - button_radio = { - visible = "[GameMpSetup.IsPublicNoCrossplay]" - frame = 2 - } - - text_single = { - text = "MULTIPLAYER_GUI_PUBLIC_MICROSOFT_ONLY" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - tooltip = "JOMINI_MULTIPLAYER_GUI_PUBLIC_TT" - - button_radio = { - visible = "[Not(GameMpSetup.IsPublicCrossplay)]" - onclick = "[GameMpSetup.SetVisibilityPublicCrossplay]" - enabled = "[Or(Not(JominiMultiplayerIsCrossplayFilterAvailable), JominiMultiplayerIsCrossplayEnabled)]" - } - - button_radio = { - visible = "[GameMpSetup.IsPublicCrossplay]" - frame = 2 - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PUBLIC" - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "JOMINI_MULTIPLAYER_GUI_GAME_SETTINGS" - default_format = "#low" - } - - background = { - using = Background_Area_With_Header - margin_left = 15 - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_right = 15 - spacing = 15 - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_NAME" - } - - blockoverride "editbox_properties" - { - name = "game_name" # widget name is referenced in code, please no duplicates in this window - text = "[GetDefaultServerName]" - maxcharacters = 64 - tooltip = "FRONTEND_MP_SERVER_NAME_TOOLTIP" - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_PASSWORD" - } - - blockoverride "editbox_properties" - { - name = "game_password" # widget name is referenced in code, please no duplicates in this window - maxcharacters = 64 - tooltip = "FRONTEND_MP_SERVER_PASSWORD_TOOLTIP" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - margin_bottom = 5 - - tooltip = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT_TT" - - button_checkbox_label = { - onclick = "[GameMpSetup.ToggleAutoAccept]" - - blockoverride "checkbox" - { - checked = "[GameMpSetup.IsAutoAccept]" - } - - blockoverride "text" - { - text = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT" - } - } - - expand = {} - } - - expand = {} - } - - spacer = { - size = { 40 10 } - } - - #### DATE DESCRIPTION - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[Not(GameMpSetup.IsSaveGameSelected)]" - - state = { - name = "loadsave_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - background = { - using = Background_Area_With_Header - margin_left = 15 - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "[GameMpSetup.GetSelectedBookmark.GetDate.GetString]" - default_format = "#low" - } - - text_multi = { - text = "[GameMpSetup.GetBookmarkDescription]" - autoresize = yes - max_width = 400 - min_width = 400 - margin = { 10 20 } - default_format = "#high" - } - - expand = {} - } - - #### CHARACTER ##### - vbox = { - visible = "[GameMpSetup.IsSaveGameSelected]" - datacontext = "[GameMpSetup.GetSelectedSaveGame]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 15 0 } - mirror = vertical - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - background = { - using = Background_Area_Dark - margin_left = 10 - margin_right = 15 - margin_bottom = 90 - - modify_texture = { - blend_mode = alphamultiply - mirror = vertical - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - vbox_save_preview = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 0 } - margin = { -15 10 } - - blockoverride "max_width" { - max_width = 400 - } - - blockoverride "max_width_filename" { - max_width = 150 - } - - blockoverride "position" { - position = { 50 30 } - } - - expand = {} - } - } - } - - ### GAME INFO TAB ### - vbox = { - name = "tab_game_info" - visible = "[GetVariableSystem.HasValue( 'mp_host_tabs', 'game_info' )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - minimumsize = { 415 0 } - - using = Animation_Tab_Switch - - vbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 400 0 } - margin_left = 10 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - text_single = { - text = "FRONTEND_MP_GAME_SETUP_VERSION" - align = left - layoutpolicy_horizontal = expanding - max_width = 400 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_CHECKSUM" - align = left - layoutpolicy_horizontal = expanding - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 400 0 } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_ENABLED_DLCS" - default_format = "#low" - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[GameMpSetup.GetEnabledDLCs]" - visible = "[DataModelHasItems( GameMpSetup.GetEnabledDLCs )]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[CString.GetString]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( GameMpSetup.GetEnabledDLCs )]" - text = "JOMINI_MULTIPLAYER_GUI_NO_DLCS" - } - - blockoverride "scrollbox_expand" - { - expand = { - layoutpolicy_vertical = growing - visible = "[DataModelHasItems( GameMpSetup.GetEnabledDLCs )]" - } - } - } - } - - spacer = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_ENABLED_MODS" - default_format = "#low" - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[GameMpSetup.GetEnabledMods]" - visible = "[DataModelHasItems( GameMpSetup.GetEnabledMods )]" - - item = { - text_single = { - text = "[CString.GetString]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( GameMpSetup.GetEnabledMods )]" - text = "JOMINI_MULTIPLAYER_GUI_NO_MODS" - } - - blockoverride "scrollbox_expand" - { - expand = { - layoutpolicy_vertical = growing - visible = "[DataModelHasItems( GameMpSetup.GetEnabledMods )]" - } - } - } - } - } - - spacer = { - size = { 40 10 } - } - - button_primary = { - size = { 400 45 } - name = "start_button" - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_HOST_BUTTON" - default_format = "#high" - onclick = "[GameMpSetup.OnStart]" - enabled = "[GameMpSetup.CanStart]" - tooltip = "[GameMpSetup.StartTooltip]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - - state = { - name = _mouse_press - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_press" - } - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - } - } - } - } - } - } -} diff --git a/N3OW/gui/game_rules.gui b/N3OW/gui/game_rules.gui deleted file mode 100644 index b05b02d4..00000000 --- a/N3OW/gui/game_rules.gui +++ /dev/null @@ -1,691 +0,0 @@ -window = { - name = "game_rules" - size = { 100% 100% } - movable = no - layer = confirmation - - using = Background_Full_Dim - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[PdxGuiWidget.FindChild('game_rules_window').TriggerAnimation('appear')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[PdxGuiWidget.FindChild('game_rules_window').TriggerAnimation('disappear')]" - } - - button_normal = { - size = { 100% 100% } - onclick = "[JominiGameRules.Hide]" - } - - widget = { - name = "game_rules_window" - parentanchor = center - size = { 1100 900 } - alwaystransparent = no - allow_outside = yes - - using = Window_Decoration_Frontend_Spike - using = Window_Background - - state = { - name = appear - duration = 0.15 - using = Animation_Curve_Default - - position_y = 0 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_show" - } - } - - state = { - name = disappear - duration = 0.15 - using = Animation_Curve_Default - - position_y = 50 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_hide" - } - } - - vbox = { - using = Window_Margins - spacing = 5 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "GAME_RULES_HEADER" - } - - blockoverride "button_close" - { - onclick = "[JominiGameRules.Hide]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - hbox = { - margin = { 30 6 } - spacing = 20 - - hbox_ironman_achievements_info = { - name = "ironman_and_achievements" - visible = "[Not( GameHasMultiplePlayers )]" - } - - vbox_game_rule_preset_options = { - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - } - - vbox = { - spacing = 5 - text_single = { - text = "GAME_RULE_CATEGORIES" - max_width = 350 - } - - dropdown_menu_standard = { - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - - blockoverride "dropdown_properties" - { - datamodel = "[JominiGameRules.GetCategories]" - onselectionchanged = "[JominiGameRules.SelectCategory]" - selectedindex = "[JominiGameRules.GetSelectedCategoryIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Select_CString( JominiGameRules.HasSelectedCategoryIndex, GameRuleCategory.GetName, Localize( 'GAME_RULES_CATEGORY_DROPDOWN_NONE_SELECTED' ) )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[GameRuleCategory.GetName]" - } - - } - } - - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - margin_top = 30 - margin_left = 25 - - fixedgridbox = { - datamodel = "[JominiGameRules.GetVisibleSettings]" - addcolumn = 450 - addrow = 170 - datamodel_wrap = 2 - maxhorizontalslots = 2 - flipdirection = yes - - item = { - widget = { - size = { 420 165 } - datacontext = "[GuiGameRule.GetRule]" - datacontext = "[GuiGameRule.GetSetting]" - - background = { - using = Background_Area_With_Header - alpha = 0.8 - margin = { 10 5 } - margin_bottom = 0 - } - - vbox = { - text_single = { - text = "[GameRule.GetName]" - max_width = 350 - # parentanchor = hcenter - } - - spacer = { - size = { 20 20 } - } - - widget_game_rule_option = {} - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[GameRuleSetting.GetDescription]" - default_format = "#low" - margin = { 10 15 } - } - } - - } - } - } - } - } - - expand = {} - - hbox = { - margin = { 0 10 } - margin_top = 5 - - spacing = 20 - - button_standard = { - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - text = "GAME_RULES_RESET_TO_DEFAULTS_TEXT" - onclick = "[JominiGameRules.ResetAllToDefaults]" - } - - button_primary = { - text = "CLOSE_LABEL" - visible = "[Not( And( IsHost, Not( HasGameStartedForTheFirstTime ) ) )]" - onclick = "[JominiGameRules.Hide]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - - button_primary = { - text = "APPLY" - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - onclick = "[JominiGameRules.ApplySettings]" - onclick = "[JominiGameRules.Hide]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - } - - game_rules_preset_window = {} - } - -} - -types GameRuleTypes -{ - type widget_game_rule_option = widget { - size = { 240 30 } - - background = { - using = Background_Area_Dark - margin = { 5 5 } - } - - button_select_arrow = { - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - size = { 25 25 } - parentanchor = left|vcenter - mirror = horizontal - - block "onclick_prev" - { - onclick = "[GuiGameRule.Prev]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } - - text_single = { - text = "[GameRuleSetting.GetName]" - parentanchor = center - default_format = "#medium" - align = nobaseline - } - - achievements_disabled_icon = { - visible = "[GameRuleSetting.HasFlag( 'blocks_achievements' )]" - parentanchor = right - position = { -30 4 } - size = { 22 22 } - tooltip = "GAME_RULE_BLOCKS_ACHIEVEMENTS" - } - - button_select_arrow = { - visible = "[And( IsHost, Not( HasGameStartedForTheFirstTime ) )]" - size = { 25 25 } - parentanchor = right|vcenter - - block "onclick_next" - { - onclick = "[GuiGameRule.Next]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } - } - - type flowcontainer_game_rules_mini = flowcontainer { - name = "difficulty_setting" - datacontext = "[AccessGameRules]" - datacontext = "[JominiGameRules.AccessNamedGameRule( 'difficulty' )]" - datacontext = "[GuiGameRule.GetRule]" - datacontext = "[GuiGameRule.GetSetting]" - spacing = 10 - - text_single = { - align = left - raw_text = "[GameRule.GetName]:" - default_format = "#medium" - max_width = 150 - minimumsize = { 0 25 } - } - - widget_game_rule_option = { - blockoverride "onclick_prev" - { - onclick = "[GuiGameRule.Prev]" - onclick = "[JominiGameRules.ApplySettings]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - - } - blockoverride "onclick_next" - { - onclick = "[GuiGameRule.Next]" - onclick = "[JominiGameRules.ApplySettings]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } - } - - type hbox_achievements_info = hbox { - name = "achievements" - margin = { 10 10 } - margin_right = 20 - margin_bottom = 10 - spacing = 10 - tooltip = "[SelectLocalization( CanGetAchievements, 'ACHIEVEMENTS_ENABLED', 'ACHIEVEMENTS_DISABLED' )]" - - block "ai_background" - { - background = { - using = Background_Frame - } - } - - - achievements_enabled_icon = { - visible = "[CanGetAchievements]" - block "ai_icon_size" - { - - } - } - - achievements_disabled_icon = { - visible = "[Not( CanGetAchievements )]" - block "ai_icon_size" - { - - } - } - - vbox = { - name = "text" - - text_single = { - text = "ACHIEVEMENTS_LABEL" - max_width = 150 - align = left|nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SelectLocalization( CanGetAchievements, 'ACHIEVEMENTS_ENABLED_NO_HEADER', 'ACHIEVEMENTS_DISABLED_NO_HEADER' )]" - default_format = "#warning" - max_width = 150 - align = left|nobaseline - } - } - - } - - type hbox_ironman_achievements_info = hbox { - layoutpolicy_horizontal = expanding - spacing = 20 - - hbox = { - name = "ironman" - margin = { 10 10 } - margin_right = 20 - margin_bottom = 10 - tooltip = "IRONMAN_PAUSE_MENU_TOOLTIP" - - background = { - using = Background_Frame - } - - hbox = { - margin = { 5 5 } - name = "buttons" - visible = "[Not( HasGameStartedForTheFirstTime )]" - - button_standard = { - name = "enable" - text = "ENABLE_IRONMAN" - visible = "[Not( IsIronmanEnabled )]" - enabled = "[Not( IsIronmanEnabled )]" - onclick = "[SetIronmanEnabledStatus( '(bool)yes' )]" - onclick = "[JominiGameRules.SetIronman( '(bool)yes' )]" - - size = { 80 30 } - } - - button_standard = { - name = "disable" - text = "DISABLE_IRONMAN" - visible = "[IsIronmanEnabled]" - enabled = "[IsIronmanEnabled]" - onclick = "[SetIronmanEnabledStatus( '(bool)no' )]" - onclick = "[JominiGameRules.SetIronman( '(bool)no' )]" - - size = { 80 30 } - } - - } - - - hbox = { - - widget = { - size = { 40 40 } - - ironman_disabled_icon = { - visible = "[Not( IsIronmanEnabled )]" - } - - ironman_save_icon = { - visible = "[IsIronmanEnabled]" - } - } - - vbox = { - margin_left = 10 - - text_single = { - text = "IRONMAN_LABEL" - max_width = 150 - align = left|nobaseline - } - - text_single = { - text = "[SelectLocalization( IsIronmanEnabled, 'IRONMAN_ENABLED_NO_HEADER', 'IRONMAN_DISABLED_NO_HEADER' )]" - default_format = "#warning" - max_width = 150 - min_width = 60 - align = left|nobaseline - layoutpolicy_horizontal = expanding - } - } - } - } - - hbox_achievements_info = {} - } - - type vbox_game_rule_preset_options = vbox - { - spacing = 5 - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[JominiGameRules.GetRulePresets]" - onselectionchanged = "[JominiGameRules.OnSelectPreset]" - onselectionchanged = "[SetIronmanEnabledStatus(JominiGameRules.GetSelectedPreset.IsIronmanEnabled)]" - } - - - blockoverride "dropdown_active_item_properties" - { - text = "[SelectLocalization( JominiGameRules.HasValidPresetSelected, JominiGameRules.GetSelectedPreset.GetName, 'GAME_RULES_PRESET_DROPDOWN_NO_SELECTED' )]" - } - - blockoverride "dropdown_item_properties" - { - widget = { - size = { 100% 100% } - - hbox = { - margin_right = 10 - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 145 - margin_left = 4 - default_format = "#clickable" - text = "[GuiGameRulePreset.GetName]" - } - - achievements_enabled_icon = { - visible = "[And( GuiGameRulePreset.IsIronmanEnabled, Not( GuiGameRulePreset.HasRuleWithFlag('blocks_achievements') ) )]" - size = { 20 20 } - } - - achievements_disabled_icon = { - visible = "[Or( Not( GuiGameRulePreset.IsIronmanEnabled ), GuiGameRulePreset.HasRuleWithFlag('blocks_achievements') )]" - size = { 20 20 } - } - } - } - } - - blockoverride "dropdown_list_properties" - { - minimumsize = { 192 50 } - hbox = { - visible = "[IsDataModelEmpty(JominiGameRules.GetRulePresets)]" - textbox = { - text = "GAME_RULES_PRESET_DROPDOWN_NO_SELECTED_BODY" - align = center - } - } - } - } - - hbox = { - spacing = 10 - - button_standard = { - size = { 100 30 } - - onclick = "[JominiGameRules.ShowPresetWindow]" - onclick = "[JominiGameRules.SetPresetSaveName]" - - text = "SAVE" - tooltip = "SAVE_PRESET_BUTTON_TOOLTIP" - } - - button_standard = { - size = { 100 30 } - - enabled = "[JominiGameRules.HasValidPresetSelected]" - onclick = "[JominiGameRules.DeletePresetAtIndex( JominiGameRules.GetSelectedPresetIndex )]" - - text = "DELETE" - tooltip = "DELETE_SELECTED_PRESET_BUTTON_TOOLTIP" - } - } - } - - type game_rules_preset_window = window { - name = "game_rules_preset" - - visible = "[And( And( IsHost, Not( HasGameStartedForTheFirstTime ) ), JominiGameRules.IsPresetWindowShown )]" - - size = { 400 510 } - position = { -20 40 } - parentanchor = right - widgetanchor = top|left - - layer = confirmation - alwaystransparent = no - movable = no - - using = Window_Background_Subwindow - - vbox = { - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SAVE_PRESET_HEADER" - } - - blockoverride "button_close" - { - onclick = "[JominiGameRules.HidePresetWindow]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - editbox_standard_with_label = { - margin = { 30 0 } - margin_bottom = 14 - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "SAVE_PRESET_SAVE_AS_LABEL" - } - - blockoverride "editbox_properties" - { - name = "preset_name_edit" - multiline = no - maxcharacters = 40 - text = "[JominiGameRules.GetPresetSaveName]" - ontextedited = "[JominiGameRules.OnPresetSaveNameEdit]" - } - } - - scrollbox = { - size = { 390 0 } - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - margin_top = 20 - margin_left = 20 - - fixedgridbox = { - datamodel = "[JominiGameRules.GetRulePresets]" - addcolumn = 350 - addrow = 70 - datamodel_wrap = 1 - maxhorizontalslots = 1 - flipdirection = yes - - item = { - button_standard = { - size = { 350 60 } - - onclick = "[JominiGameRules.OnPresetSaveNameChange( GuiGameRulePreset.GetName )]" - down = "[EqualTo_string(JominiGameRules.GetPresetSaveName, GuiGameRulePreset.GetName)]" - - hbox = { - vbox = { - margin_left = 10 - - text_single = { - text = "[GuiGameRulePreset.GetName]" - layoutpolicy_horizontal = expanding - align = nobaseline - max_width = 280 - } - - text_single = { - datacontext = "[GuiGameRulePreset.GetSettingForRule( 'difficulty' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 240 0 } - - text = "GAME_RULES_PRESET_DIFFICULTY" - default_format = "#low" - align = nobaseline - } - } - - expand = {} - - hbox = { - margin_right = 10 - - achievements_enabled_icon = { - visible = "[And( GuiGameRulePreset.IsIronmanEnabled, Not( GuiGameRulePreset.HasRuleWithFlag('blocks_achievements') ) )]" - } - - achievements_disabled_icon = { - visible = "[Or( Not( GuiGameRulePreset.IsIronmanEnabled ), GuiGameRulePreset.HasRuleWithFlag('blocks_achievements') )]" - } - } - } - } - } - } - } - } - - hbox = { - margin = { 0 16 } - margin_top = 10 - - button_standard = { - size = { 150 33 } - - enabled = "[JominiGameRules.HasPresetWithName(JominiGameRules.GetPresetSaveName)]" - onclick = "[JominiGameRules.DeletePresetWithName( JominiGameRules.GetPresetSaveName )]" - - text = "DELETE" - tooltip = "DELETE_PRESET_WITH_NAME_BUTTON_TOOLTIP" - } - - spacer = { - size = { 20 0 } - } - - button_standard = { - visible = "[Not(JominiGameRules.HasPresetWithName(JominiGameRules.GetPresetSaveName))]" - size = { 150 33 } - - enabled = "[JominiGameRules.IsValidPresetName]" - onclick = "[JominiGameRules.SavePreset]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - text = "SAVE" - tooltip = "[SelectLocalization( JominiGameRules.IsValidPresetName, 'SAVE_PRESET_BUTTON_TOOLTIP', JominiGameRules.GetInvalidPresetNameTooltip )]" - } - - button_standard = { - visible = "[JominiGameRules.HasPresetWithName(JominiGameRules.GetPresetSaveName)]" - size = { 150 33 } - - onclick = "[JominiGameRules.SavePreset]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - text = "OVERWRITE_GAME_RULES_PRESET_ACCEPT" - tooltip = "OVERWRITE_PRESET_BUTTON_TOOLTIP" - } - } - expand = {} - } - } -} - - - - diff --git a/N3OW/gui/hud.gui b/N3OW/gui/hud.gui deleted file mode 100644 index e8b3ac74..00000000 --- a/N3OW/gui/hud.gui +++ /dev/null @@ -1,8517 +0,0 @@ -###################################################### -#################### META INFO ####################### -###################################################### - -widget = { - size = { 100% 100% } - name = "meta_info" - visible = "[IsDefaultGUIMode]" - layer = bottom - - using = Animation_ShowHide_Standard - - flowcontainer = { - name = "observer_status" - visible = "[And( Not(IsGameViewOpen('succession_event')), IsObserver )]" - visible_at_creation = no - parentanchor = bottom|left - position = { 180 -110 } - ignoreinvisible = yes - margin_top = 2 - margin_left = 80 - margin_right = 2 - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "global_observer_indication" - visible = "[Not(GetPlayer.IsValid)]" - text = "GLOBAL_OBSERVER" - } - - text_single = { - name = "player_observer_indication" - visible = "[GetPlayer.IsValid]" - text = "PLAYER_OBSERVER" - } - - button_cancel = { - name = "cancel_button" - visible = "[GetPlayer.IsValid]" - - size = { 30 30 } - onclick = "[ClearObserver]" - tooltip = "OBSERVER_MODE_ON" - } - - icon_observer = { - size = { 30 30 } - visible = "[Not(GetPlayer.IsValid)]" - } - } - - ## Build version & Beta warning - text_single = { - name = "build_version_text" - visible = "[And( Not(IsGameViewOpen('barbershop')), Not(LiveMode))]" - position = { 5 5 } - - tooltip = "[GetBuildVersionDescription]" - - text = "VERSION_SHORT" - default_format = "#low" - max_width = 300 - } - text_single = { - name = "beta_warning_text" - visible = "[And( Not(IsGameViewOpen('barbershop')), Not(LiveMode))]" - position = { 5 22 } - tooltip = "[GetBuildVersionDescription]" - - text = "BETA_BUILD" - default_format = "#low" - max_width = 300 - } - - error_horse = { - parentanchor = bottom|left - position = { 850 -10 } - visible = "[And( Not(IsGameViewOpen('barbershop')), And( Not( IsPauseMenuShown ), Not(ReleaseMode) ) )]" - } - loaded_mods_icon = { - parentanchor = bottom|left - visible = "[And( Not( IsPauseMenuShown ), And( HasLoadedMods, Not(ReleaseMode) ) )]" - tooltip = "[GetLoadedMods]" - position = { 670 -5 } - } -} - -###################################################### -#################### TOP RIGHT ####################### -###################################################### - -#Top right: resources and alerts, outliner, and panel tabs -widget = { - name = "ingame_topbar" - visible = "[InGameTopbar.ShouldBeVisible]" - size = { 100% 100% } - layer = hud_layer - using = Animation_ShowHide_Quick - - ### Ruler Objectives - container = { - visible = "[And( GetPlayersRulerObjectiveDecision.IsValid, Not( IsGameViewOpen( 'hud_ruler_objective' )) )]" - datacontext = "[GetPlayersRulerObjectiveDecision]" - parentanchor = top|left - position = { 8 16 } - - using = Animation_ShowHide_Quick - - button_round = { - name = "ruler_objective_button" - size = { 84 84 } - alpha = 0.7 - - onclick = "[ToggleGameView( 'hud_ruler_objective' )]" - tooltip = "SHOW_RULER_OBJECTIVE" - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0.7 - duration = 0.7 - using = Animation_Curve_Default - } - - button_ruler_objective = { - parentanchor = center - alwaystransparent = yes - size = { 64 64 } - } - } - } - - ### Outliner Button - container = { - visible = "[And(Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_outliner').GetValue, '(CFixedPoint)0' ) ), And( Not( IsGameViewOpen('barbershop') ), And( Not( IsPauseMenuShown ), And(Not(IsRightWindowOpen), IsDefaultGUIMode))))]" - parentanchor = top|right - position = { -3 55 } - - using = Animation_ShowHide_Quick - - button_round = { - name = "outliner_button" - size = { 35 35 } - alpha = 0.7 - - onclick = "[ToggleGameView('outliner')]" - tooltip = "TOGGLE_OUTLINER" - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0.7 - duration = 0.7 - using = Animation_Curve_Default - } - - button_outliner = { - parentanchor = center - alwaystransparent = yes - size = { 25 25 } - } - } - } - - widget = { - layer = hud_layer - size = { 100% 88 } - position = { 0 -24 } - - allow_outside = yes - - hbox = { - ### Alerts - expand = {} - notifications_alerts = { - visible = "[And( Not(IsGameViewOpen('barbershop')), Not( IsPauseMenuShown ) )]" - using = Animation_ShowHide_Quick - } - ### Suggestions / Current Situation - widget = { - size = { 80 80 } - widgetid = "suggestions_placer" - visible = "[Not( IsPauseMenuShown )]" - } - - spacer = { - size = { 16 1 } - } - #### Top Right Bar - resources_top_right_bar = { - name = "top_bar" - visible = "[And(Not( IsPauseMenuShown ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_top_bar').GetValue, '(CFixedPoint)0' ) ))]" - } - } - } - - ### Main Tabs - widget = { - name = "main_tabs" - visible = "[And(And(And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)), Not(IsGameViewOpen('struggle'))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_main_tabs').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = top|right - position = { 0 105 } - size = { 50 0 } - allow_outside = yes - - using = Animation_ShowHide_Quick - - vbox = { - alwaystransparent = no - filter_mouse = all - visible = "[Not(IsGameViewOpen('barbershop'))]" - margin = { 5 10 } - - Background = { - visible = "[And(Not(IsRightWindowOpen) , Not(IsGameViewOpen('barbershop')) )]" - texture = "gfx/interface/skinned/hud_maintab_bg_middle.dds" - spriteType = CorneredTiled - texture_density = 2 - margin = { 0 -50 } - } - - Background = { - visible = "[And(Not(IsRightWindowOpen) , Not(IsGameViewOpen('barbershop')) )]" - spriteType = CorneredStretched - spriteborder_top = 100 - parentanchor = top|right - texture_density = 2 - size = { 50 100 } - texture = "gfx/interface/skinned/hud_maintab_bg_top.dds" - } - - Background = { - visible = "[And(Not(IsRightWindowOpen) , Not(IsGameViewOpen('barbershop')) )]" - spriteType = CorneredStretched - spriteborder_bottom = 100 - parentanchor = top|right - texture_density = 2 - size = { 50 100 } - texture = "gfx/interface/skinned/hud_maintab_bg_bottom.dds" - } - - vbox = { - state = { - name = _show - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _hide - duration = 0.6 - alpha = 0 - using = Animation_Curve_Default - } - - hbox = { - name = "tab_government_administration" #tutorial uses this - - widget_hud_main_tab = { - - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[And(Character.GetGovernment.HasRule( 'noble_families' ),Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ),GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_administrative.dds" - - onclick = "[ToggleGameView( 'government_administration' )]" - down = "[IsGameViewOpen( 'government_administration' )]" - - using = tooltip_ws - tooltipwidget = { - administrative_button_tooltip = {} - } - } - } - - widget_hud_main_tab = { - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_soryo_japan.dds" - - onclick = "[ToggleGameView( 'government_administration' )]" - down = "[IsGameViewOpen( 'government_administration' )]" - - using = tooltip_ws - tooltipwidget = { - administrative_button_tooltip = {} - } - } - } - - widget_hud_main_tab = { - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[GetPlayer.GetGovernment.IsType( 'japan_administrative_government' )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_ritsuryo_japan.dds" - - onclick = "[ToggleGameView( 'government_administration' )]" - down = "[IsGameViewOpen( 'government_administration' )]" - - using = tooltip_ws - tooltipwidget = { - administrative_button_tooltip = {} - } - } - } - - widget_hud_main_tab = { - - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[GetPlayer.GetGovernment.IsType( 'celestial_government' )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_administrative_china.dds" - - onclick = "[ToggleGameView( 'government_administration' )]" - down = "[IsGameViewOpen( 'government_administration' )]" - - using = tooltip_ws - tooltipwidget = { - administrative_button_tooltip = {} - } - } - } - } - - widget = { - size = { 0 15 } - layoutpolicy_horizontal = expanding - icon = { - datacontext = "[GetPlayer.GetTopLiege]" - visible = "[And(Or( Character.GetGovernment.HasRule( 'noble_families' ), Character.GetGovernment.HasRule( 'administrative' ) ), And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)))]" - size = { 25 15 } - parentanchor = right|vcenter - - texture = "gfx/interface/skinned/hud_spike_big.dds" - using = Animation_ShowHide_Standard - } - } - - widget_hud_main_tab = { - name = "tab_my_realm_tutorial_uses_this" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_my_realm.dds" - onclick = "[ToggleGameView('my_realm')]" - shortcut = "my_realm_window" - tooltip = "MY_REALM_BUTTON" - down = "[IsGameViewOpen('my_realm')]" - } - } - - widget_hud_main_tab = { - name = "tab_military_tutorial_uses_this" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_military.dds" - - onclick = "[ToggleGameViewData('military', GetPlayer.GetID)]" - shortcut = "military_window" - tooltip = "MILITARY_BUTTON" - down = "[IsGameViewOpen('military')]" - } - } - - widget_hud_main_tab = { - name = "tab_council" - visible = "[Not( IsLandlessAdventurer( GetPlayer ) )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_council.dds" - - onclick = "[ToggleGameViewData('council_window', GetPlayer.GetID)]" - shortcut = "council_window" - tooltip = "COUNCIL_BUTTON" - down = "[IsGameViewOpen('council_window')]" - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 15 } - - icon = { - visible = "[And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode))]" - parentanchor = right|vcenter - texture = "gfx/interface/skinned/hud_spike_big.dds" - size = { 25 15 } - - using = Animation_ShowHide_Standard - } - } - - vbox = { - widget_hud_main_tab = { - name = "tab_court_tutorial_uses_this" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_court.dds" - - onclick = "[ToggleGameViewData( 'court_window', GetPlayer.GetID )]" - shortcut = "court_window" - tooltip = "COURT_BUTTON" - down = "[IsGameViewOpen( 'court_window' )]" - } - } - - widget_hud_main_tab = { - name = "tab_intrigue" #tutorial uses this - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_intrigue.dds" - - onclick = "[ToggleGameViewData('intrigue_window', GetPlayer.GetID)]" - shortcut = "intrigue_window" - tooltip = "INTRIGUE_BUTTON" - down = "[IsGameViewOpen('intrigue_window')]" - } - - } - - widget_hud_main_tab = { - name = "tab_factions" #tutorial uses this - visible = "[Or( Or( GetPlayer.IsInAFaction, GetPlayer.IsLandedRuler ), GetPlayer.HasLiege)]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_factions.dds" - - onclick = "[ToggleGameView('factions_window')]" - shortcut = "factions_window" - tooltip = "FACTION_BUTTON" - down = "[IsGameViewOpen('factions_window')]" - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 15 } - - icon = { - visible = "[And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode))]" - parentanchor = right|vcenter - texture = "gfx/interface/skinned/hud_spike_big.dds" - size = { 25 15 } - - using = Animation_ShowHide_Standard - } - } - - vbox = { - widget_hud_main_tab = { - name = "tab_decisions" #tutorial uses this - visible = "[Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ))]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_decisions.dds" - - onclick = "[ToggleGameView('decisions')]" - shortcut = "decision_window" - tooltip = "DECISIONS_BUTTON" - down = "[IsGameViewOpen('decisions')]" - } - } - - widget_hud_main_tab = { - name = "tab_contracts" - visible = "[GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_contracts.dds" - - onclick = "[ToggleGameView('decisions')]" - shortcut = "decision_window" - tooltip = "DECISIONS_BUTTON" - down = "[IsGameViewOpen('decisions')]" - } - } - - widget_hud_main_tab = { - name = "tab_activities" #tutorial uses this - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_activities.dds" - - onclick = "[ToggleGameView('activity_list_window')]" - shortcut = "activity_list_window" - tooltip = "ACTIVITY_LIST_BUTTON" - down = "[IsGameViewOpen('activity_list_window')]" - } - } - - widget_hud_main_tab = { - name = "tab_situation" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_situations.dds" - - onclick = "[ToggleGameView( 'situations' )]" - tooltip = "SITUATIONS_BUTTON" - shortcut = "situations" - down = "[IsGameViewOpen( 'situations' )]" - } - } - - widget_hud_main_tab = { - datacontext = "[GetPlayer]" - datacontext = "[AccessLocalPlayerCachedData]" - datacontext = "[LocalPlayerCachedData.AccessNewArtifacts]" - datacontext = "[LocalPlayerCachedData.AccessCourtEvents]" - datacontext = "[Character.GetCourtGrandeurData]" - visible = "[And(Character.HasRoyalCourt ,And(And( And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)), HasDlcFeature( 'court_room_view' )), Not( IsLandlessAdventurer( GetPlayer ) )))]" - allow_outside = yes - name = "royal_court_button_tutorial_uses_this" - - tooltipwidget = { - container_royal_court_tooltip = {} - } - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_courtview.dds" - onclick = "[Character.OpenRoyalCourtView( 'throne' )]" - - # Looping glow when you have unhandled court events or first get your royal court - using = Animation_Glow_Pulse - - glow = { - glow_radius = 8 - using = Glow_Standard - using = Color_Bright_Yellow - visible = "[Or( And( Character.HasRoyalCourt, Not( LocalPlayerCachedData.HasEverOpenedRoyalCourt ) ), GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' ) )]" - } - - # Pulse when you get a new pending court event - state = { - name = "pending_court_event_start" - next = "pending_court_event_a" - position_x = 0 - duration = 0.2 - size = { 45 45 } - using = Animation_Curve_Default - trigger_when = "[GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' )]" - - start_sound = { - soundeffect = "event:/DLC/EP1/SFX/UI/Notifications/royal_court_event_available" - } - } - - state = { - name = "pending_court_event_a" - next = "pending_court_event_b" - position_x = -30 - duration = 0.45 - size = { 85 85 } - using = Animation_Curve_Default - } - - state = { - name = "pending_court_event_b" - position_x = 0 - duration = 0.25 - size = { 45 45 } - bezier = { 0.43 0 0.2 2.2 } - } - - flowcontainer = { - position = { -5 0 } - direction = vertical - ignoreinvisible = yes - visible = "[Character.HasRoyalCourt]" - datacontext = "[GetPlayer]" - - widget_royal_court_notification = { - visible = "[And( GreaterThanOrEqualTo_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel ), Or( GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' ), Or( GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' ), GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' ) ) ) )]" - } - - widget_below_cgv_expectations = { - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - } - } - } - } - - widget_hud_main_tab = { - name = "tab_tax_jurisdiction" - datacontext = "[GetPlayer]" - enabled = "[Character.HasTaxSlots]" - visible = "[Or( GetPlayer.GetGovernment.IsType( 'clan_government' ), Character.HasTaxSlots )]" - - blockoverride "maintab_button" - { - texture = "gfx/interface/skinned/hud_maintab/maintab_tax_jurisdictions.dds" - - onclick = "[ToggleGameViewData('manage_tax_slots', GetPlayer.GetID)]" - down = "[IsGameViewOpen('manage_tax_slots')]" - - using = tooltip_ws - - tooltipwidget = { - tax_jurisdictions_button_tooltip = {} - } - - icon = { - size = { 100% 100% } - visible = "[GreaterThan_int32( GetPlayer.GetUnassignedVassalsCount, '(int32)0' )]" - texture = "gfx/interface/skinned/hud_maintab/maintab_tax_jurisdictions.dds" - - glow = { - glow_radius = 8 - using = Glow_Standard - using = Color_Red - } - state = { - name = a - next = b - alpha = 0.3 - trigger_on_create = yes - duration = 1.2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.5 - duration = 0.6 - using = Animation_Curve_Default - } - } - - icon = { - visible = "[Or( Or( GreaterThan_int32( Character.GetUnassignedVassalsCount, '(int32)0' ), Not( Character.HasTaxSlots ) ), GreaterThan_int32( Character.GetUntaxedJurisdictionCount, '(int32)0' ) )]" - size = { 25 25 } - position = { -5 5} - texture = "gfx/interface/icons/symbols/icon_warning.dds" - - icon = { - size = { 100% 100% } - alwaystransparent = yes - texture = "gfx/interface/icons/symbols/icon_warning.dds" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - } - - state = { - name = a - next = b - alpha = 0 - trigger_on_create = yes - duration = 1.2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.8 - duration = 0.6 - using = Animation_Curve_Default - } - } - } - } - } - } - } - - # Invisible button to ensure that these shortcuts don't get hidden - button = { - size = { 0 0 } - onclick = "[ToggleGameViewData( 'character', GetPlayer.GetID )]" - shortcut = "character_window" - } - - # widget = { - # datacontext = "[GetPlayer]" - # datacontext = "[AccessLocalPlayerCachedData]" - # datacontext = "[LocalPlayerCachedData.AccessNewArtifacts]" - # datacontext = "[LocalPlayerCachedData.AccessCourtEvents]" - # datacontext = "[Character.GetCourtGrandeurData]" - # visible = "[And( And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)), HasDlcFeature( 'royal_court' ))]" - # enabled = "[Character.HasRoyalCourt]" - - # parentanchor = bottom - # position = { 4 50 } - # size = { 45 45 } - - # icon = { - # name = "royal_court_button_background" - # visible = "[Not(IsRightWindowOpen)]" - # size = { 45 45 } - # texture = "gfx/interface/buttons/maintab_courtview_bg.dds" - - # allow_outside = yes - - # state = { - # name = _show - # alpha = 1 - # duration = 0.1 - # using = Animation_Curve_Default - # } - - # state = { - # name = _hide - # duration = 0.6 - # alpha = 0 - # using = Animation_Curve_Default - # } - - # state = { - # name = "hud_tab_glow_courtview_enter" - # duration = 0.03 - # using = Animation_Curve_Default - - # modify_texture = { - # name = "glow_courtview" - # alpha = 1 - # } - # } - - # state = { - # name = "hud_tab_glow_courtview_leave" - # duration = 0.1 - # using = Animation_Curve_Default - - # modify_texture = { - # name = "glow_courtview" - # alpha = 0 - # } - # } - - # modify_texture = { - # name = "glow_courtview" - # texture = "gfx/interface/buttons/maintab_courtview_bg_glow.dds" - # alpha = 0 - # } - # } - - # widget_hud_main_tab = { - # allow_outside = yes - # name = "royal_court_button_tutorial_uses_this" - - # tooltipwidget = { - # container_royal_court_tooltip = {} - # } - - # state = { - # name = _mouse_hierarchy_enter - # on_start = "[PdxGuiInterruptThenTriggerAllAnimations('hud_tab_glow_courtview_leave','hud_tab_glow_courtview_enter')]" - # alpha = 1 - # } - - # state = { - # name = _mouse_hierarchy_leave - # on_start = "[PdxGuiInterruptThenTriggerAllAnimations('hud_tab_glow_courtview_enter','hud_tab_glow_courtview_leave')]" - # alpha = 1 - # } - - # blockoverride "maintab_button" - # { - # texture = "gfx/interface/buttons/maintab_courtview.dds" - # onclick = "[Character.OpenRoyalCourtView( 'throne' )]" - - # # Looping glow when you have unhandled court events or first get your royal court - # using = Animation_Glow_Pulse - - # glow = { - # glow_radius = 8 - # using = Glow_Standard - # using = Color_Bright_Yellow - # visible = "[Or( And( Character.HasRoyalCourt, Not( LocalPlayerCachedData.HasEverOpenedRoyalCourt ) ), GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' ) )]" - # } - - # # Pulse when you get a new pending court event - # state = { - # name = "pending_court_event_start" - # next = "pending_court_event_a" - # position_x = 0 - # duration = 0.2 - # size = { 45 45 } - # using = Animation_Curve_Default - # trigger_when = "[GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' )]" - - # start_sound = { - # soundeffect = "event:/DLC/EP1/SFX/UI/Notifications/royal_court_event_available" - # } - # } - - # state = { - # name = "pending_court_event_a" - # next = "pending_court_event_b" - # position_x = -30 - # duration = 0.45 - # size = { 85 85 } - # using = Animation_Curve_Default - # } - - # state = { - # name = "pending_court_event_b" - # position_x = 0 - # duration = 0.25 - # size = { 45 45 } - # bezier = { 0.43 0 0.2 2.2 } - # } - - # flowcontainer = { - # position = { 0 6 } - # parentanchor = bottom|hcenter - # widgetanchor = center - # direction = vertical - # ignoreinvisible = yes - # visible = "[Character.HasRoyalCourt]" - # datacontext = "[GetPlayer]" - - # widget_royal_court_notification = { - # visible = "[And( GreaterThanOrEqualTo_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel ), Or( GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' ), Or( GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' ), GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' ) ) ) )]" - # } - - # widget_below_cgv_expectations = { - # visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - # } - # } - # } - # } - # } - } - - widget_stress_sounds = {} -} - -### Time Controls -icon = { - name = "timeline_widget" - visible = "[And(And( Not(IsGameViewOpen('barbershop')), And( And( Not( IsPauseMenuShown ), TimelineWidget.ShouldBeVisible ), Not(GetVariableSystem.Exists('royal_court_screenshot_window')))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_timeline').GetValue, '(CFixedPoint)0' ) ))]" - size = { 649 65 } - parentanchor = bottom|right - filter_mouse = all - alwaystransparent = yes - layer = top - allow_outside = yes - texture = "gfx/interface/skinned/hud_bg_gamespeed.dds" - - using = Animation_ShowHide_Quick - - widget = { - parentanchor = bottom|right - size = { 629 45 } - allow_outside = yes - - icon = { - parentanchor = top|right - position = { 7 -15} - texture = "gfx/interface/skinned/component_decoration/decoration_arch.dds" - size = { 30 30 } - } - - icon = { - visible = "[IsManuallyPaused]" - size = { 100% 100% } - texture = "gfx/interface/skinned/hud_pause_indicator.dds" - color = { 0.4 0.25 0.25 0.7 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - - icon = { - visible = "[IsPausedByEvent]" - size = { 100% 100% } - texture = "gfx/interface/skinned/hud_pause_indicator.dds" - color = { 0.3 0.3 0.3 0.7 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - - hotkeys_HUD = {} - - ### Extra Buttons - flowcontainer = { - name = "extra_buttons_menu" - visible = "[And( Not( IsPauseMenuShown ), GetVariableSystem.Exists( 'extra_buttons_expand' ))]" - visible_at_creation = no - parentanchor = bottom|right - widgetanchor = bottom|hcenter - position = { -570 -20 } - alwaystransparent = no - margin = { 40 40 } - direction = vertical - spacing = 3 - ignoreinvisible = yes - allow_outside = yes - - background = { - using = Background_Area_Dark - margin = { -25 -25 } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position_y = -20 - } - - state = { - name = _hide - - using = Animation_FadeOut_Quick - position_y = 60 - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - } - - button_standard = { - name = "find_character_button" - text = "FIND_CHARACTER" - onclick = "[ToggleGameView( 'character_finder' )]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - tooltip = "IM_TT_FIND_CHARACTER" - shortcut = "character_finder" - } - - button_standard = { - name = "find_title_button" - - onclick = "[ToggleGameView( 'find_title' )]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - - down = "[IsGameViewOpen('find_title')]" - shortcut = "find_title_shortcut" - - text = "FIND_TITLE" - tooltip = "IM_TT_FIND_TITLE" - } - - button_standard = { - name = "plagues_button" - - onclick = "[ToggleGameView( 'epidemics' )]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - - down = "[IsGameViewOpen('epidemics')]" - shortcut = "explore_plagues" - - text = "EXPLORE_PLAGUES" - tooltip = "EXPLORE_PLAGUES_TT" - } - - button_standard = { - name = "legacy_button" - text = "SHOW_LEGACY" - onclick = "[ToggleGameViewData( 'lineage_view', GetPlayer.GetID )]" - down = "[IsGameViewOpen('succession_event')]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - tooltip = "IM_TT_SHOW_LEGACY" - } - - button_standard = { - name = "go_to_capital_button" - text = "GO_TO_CAPITAL" - onclick = "[OnGoToPlayerCapital]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - shortcut = "go_to_capital" - tooltip = "IM_TT_GO_TO_CAPITAL" - visible = "[GetPlayer.IsValid]" - } - - button_standard = { - name = "toggle_message_settings_button" - text = "MESSAGE_SETTINGS_WINDOW_NAME" - onclick = "[ToggleMessageSettings]" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - tooltip = "MESSAGE_SETTINGS_WINDOW_TT" - } - - button_standard = { - name = "toggle_music_player_button" - text = "MUSIC_PLAYER_NAME" - onclick = "[ToggleMusicPlayer]" - tooltip = "MUSIC_PLAYER_OPEN_PLAYER_TT" - } - } - - hbox = { - margin_left = 35 - allow_outside = yes - - hbox = { - margin_top = 12 - spacing = 3 - - button_dots = { - name = "button_hud_extra_buttons" - onclick = "[GetVariableSystem.Toggle( 'extra_buttons_expand' )]" - tooltip = MORE_POPOUT_TT - using = tooltip_ne - } - - button_menu = { - name = "pause_menu_button" - onclick = "[OnPauseMenu]" - tooltip = INGAME_MENU_TT - using = tooltip_ne - - tooltipwidget = { - using = TooltipWithFakeShortcut - blockoverride "shortcut_text" - { - text = FAKE_ESCAPE - } - } - } - - button_encyclopedia_small = { - name = "encyclopedia_button_extended_menu" - tooltip = "OPEN_ENCYCLOPEDIA" - onclick = "[ToggleEncyclopedia]" - shortcut = "encyclopedia" - using = tooltip_ne - } - } - - hbox = { - name = "tutorial_highlight_bottom_right_bar" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - margin_left = 15 - margin_top = 12 - allow_outside = yes - - ## Date - button_standard_hover = { - name = "play_pause_button_tutorial_uses_this" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[OnPause]" - - tooltip = "CURRENT_DATE_TOOLTIP" - using = tooltip_nw - tooltip_offset = { 0 10 } - - margin_widget = { - visible = "[Not(Or(IsPausedByEvent, IsManuallyPaused))]" - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - Animation_HUD_daily_tick = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)1')]" - size = { 100% 100% } - - blockoverride "duration" - { - duration = 30 - } - - blockoverride "alpha" - { - alpha = 0.3 - } - } - - Animation_HUD_daily_tick = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)2')]" - size = { 100% 100% } - - blockoverride "duration" - { - duration = 15 - } - - blockoverride "alpha" - { - alpha = 0.25 - } - } - - Animation_HUD_daily_tick = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)3')]" - size = { 100% 100% } - - blockoverride "duration" - { - duration = 7.5 - } - - blockoverride "alpha" - { - alpha = 0.2 - } - } - - Animation_HUD_daily_tick = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)4')]" - size = { 100% 100% } - - blockoverride "duration" - { - duration = 3.75 - } - - blockoverride "alpha" - { - alpha = 0.15 - } - } - - Animation_HUD_daily_tick = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)5')]" - size = { 100% 100% } - - blockoverride "duration" - { - duration = 1.9 - } - - blockoverride "alpha" - { - alpha = 0.15 - } - } - } - - hbox = { - margin = { 5 0 } - margin_bottom = 2 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 2 - margin_right = 2 - - expand = {} - - text_single = { - name = "date_text_sp" - visible = "[Not(GameHasMultiplePlayers)]" - layoutpolicy_horizontal = expanding - - text = "CURRENT_DATE" - default_format = "#date" - autoresize = no - align = right|nobaseline - using = Font_Size_Medium - } - - text_single = { - name = "date_text_mp" - visible = "[GameHasMultiplePlayers]" - layoutpolicy_horizontal = expanding - - text = "CURRENT_DATE" - default_format = "#medium;glow_color:{0.1,0.1,0.1,1}" - autoresize = no - align = right|nobaseline - using = Font_Size_Medium - } - } - - container = { - name = "pause_play_icons" - - button_pause = { - visible = "[Not(Or(IsPausedByEvent, IsManuallyPaused))]" - alwaystransparent = yes - parentanchor = center - } - - button_play = { - visible = "[Or(IsPausedByEvent, IsManuallyPaused)]" - alwaystransparent = yes - parentanchor = center - } - } - } - } - - button_normal = { - shortcut = "decrease_speed" - shortcut = "decrease_speed_2" - shortcut = "decrease_speed_3" - onclick = "[OnDecreaseGameSpeed]" - } - - button_normal = { - shortcut = "increase_speed" - shortcut = "increase_speed_2" - shortcut = "increase_speed_3" - onclick = "[OnIncreaseGameSpeed]" - } - - hbox = { - layoutpolicy_vertical = expanding - margin = { 0 -4 } - allow_outside = yes - - icon = { - name = "speed_indicator" - layoutpolicy_vertical = expanding - size = { 170 0 } - framesize = { 200 28 } - texture = "gfx/interface/hud/speed_indicator.dds" - frame = "[GetCurrentGameSpeed]" - tooltip = "CURRENT_SPEED_TOOLTIP" - tooltip_offset = { 0 -170 } - alpha = 0.8 - - modify_texture = { - visible = "[IsPausedByEvent]" - texture = "gfx/interface/hud/speed_indicator_auto_pause.dds" - spritetype = corneredtiled - blend_mode = darken - texture_density = 2 - } - - modify_texture = { - visible = "[And(IsManuallyPaused, Not(IsPausedByEvent))]" - texture = "gfx/interface/hud/speed_indicator_pause.dds" - spritetype = corneredtiled - blend_mode = darken - texture_density = 2 - } - - modify_texture = { - visible = "[Not(Or(IsPausedByEvent, IsManuallyPaused))]" - texture = "gfx/interface/hud/speed_indicator_play.dds" - spritetype = corneredtiled - blend_mode = darken - texture_density = 2 - } - - button = { - visible = "[Not( GameHasMultiplePlayers )]" - onclick = "[OnPause]" - shortcut = "pause" - } - - icon = { - parentanchor = right|vcenter - position = { 10 0 } - size = { 15 90%} - texture = "gfx/interface/skinned/overlay_stone.dds" - color = { 0.32 0.32 0.32 1 } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/skinned/speed_indicator_frame.dds" - } - - hbox = { - margin_left = 6 - margin_right = 6 - - button = { - name = "speed_1" - shortcut = "speed_1" - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = expanding - size = { 34 18 } - - alwaystransparent = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)1')]" - onclick = "[SetGameSpeed('(int32)0')]" - tooltip = "CHANGE_SPEED_TOOLTIP_1" - using = tooltip_ne - - alpha = 0 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0 - duration = 0.1 - using = Animation_Curve_Default - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 8 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_mouseover.dds" - } - } - } - - button = { - name = "speed_2" - shortcut = "speed_2" - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = expanding - size = { 34 18 } - - alwaystransparent = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)2')]" - onclick = "[SetGameSpeed('(int32)1')]" - tooltip = "CHANGE_SPEED_TOOLTIP_2" - using = tooltip_ne - - alpha = 0 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0 - duration = 0.1 - using = Animation_Curve_Default - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 8 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_mouseover.dds" - } - } - } - - button = { - name = "speed_3" - shortcut = "speed_3" - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = expanding - size = { 34 18 } - - alwaystransparent = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)3')]" - onclick = "[SetGameSpeed('(int32)2')]" - tooltip = "CHANGE_SPEED_TOOLTIP_3" - using = tooltip_ne - - alpha = 0 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0 - duration = 0.1 - using = Animation_Curve_Default - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 8 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_mouseover.dds" - } - } - } - - button = { - name = "speed_4" - shortcut = "speed_4" - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = expanding - size = { 34 18 } - - alwaystransparent = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)4')]" - onclick = "[SetGameSpeed('(int32)3')]" - tooltip = "CHANGE_SPEED_TOOLTIP_4" - using = tooltip_ne - - alpha = 0 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0 - duration = 0.1 - using = Animation_Curve_Default - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 8 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_mouseover.dds" - } - } - } - - button = { - name = "speed_5" - shortcut = "speed_5" - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = expanding - size = { 34 18 } - - alwaystransparent = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)5')]" - onclick = "[SetGameSpeed('(int32)4')]" - tooltip = "CHANGE_SPEED_TOOLTIP_5" - using = tooltip_ne - - alpha = 0 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0 - duration = 0.1 - using = Animation_Curve_Default - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 8 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_mouseover.dds" - } - } - } - } - } - } - } - - # Just the hotkeys for increase/decrease speed - container = { - name = "speed_hotkeys" - - button = { - name = "increase_speed" - size = { 0 0 } - - shortcut = "increase_speed" - shortcut = "increase_speed_2" - shortcut = "increase_speed_3" - onclick = "[OnIncreaseGameSpeed]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_increment" - } - - button = { - name = "decrease_speed" - size = { 0 0 } - - shortcut = "decrease_speed" - shortcut = "decrease_speed_2" - shortcut = "decrease_speed_3" - onclick = "[OnDecreaseGameSpeed]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } - - widget_gamespeed_sounds = {} - } - } -} - -### Bottom edge -widget = { - name = "bottom_bar" - visible = "[And( Not( IsPauseMenuShown ), IsDefaultGUIMode )]" - size = { 100% 100% } - layer = bottom - datacontext = "[GetPlayer]" - - using = Animation_ShowHide_Quick - - #### DYNAMIC BACKGROUND BEHIND THE CHARACTER PORTRAIT - widget = { - parentanchor = bottom|left - position = { -100 -100} - - hbox = { - visible = "[And(And(And( Not( IsGameViewOpen( 'barbershop' ) ), And( GetPlayer.IsValid, Not( GetVariableSystem.Exists( 'hide_bottom_left_HUD' ) ) ) ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character').GetValue, '(CFixedPoint)0' ) )), IsNomad( GetPlayer ))]" - layoutpolicy_horizontal = expanding - - spacer = { - visible = "[LessThanOrEqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)1' )]" - size = { 364 1 } - } - - spacer = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)2' )]" - size = { 424 1 } - } - - spacer = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)3' )]" - size = { 484 1 } - } - - spacer = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)4' )]" - size = { 544 1 } - } - - spacer = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)5' )]" - size = { 604 1 } - } - - spacer = { - visible = "[GreaterThanOrEqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)6' )]" - size = { 664 1 } - } - - icon = { - size = { 340 105 } - texture = "gfx/interface/hud/nomad_widget.dds" - } - } - } - - ### TGP WIDGET BACKGROUND - widget = { - visible = "[And(And( Not( IsGameViewOpen( 'barbershop' ) ), And( GetPlayer.IsValid, Not( GetVariableSystem.Exists( 'hide_bottom_left_HUD' ) ) ) ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = bottom|left - widgetanchor = bottom|left - position = { -6 0 } - size = { 548 116 } - - # BACKGROUND MERIT + DYNASTIC CYCLE + MOVEMENTS - icon = { - visible = "[And(InGameBottomBar.ShouldShowDynasticCycle, Character.ShouldShowMerit)]" - size = { 548 116 } - texture = "gfx/interface/hud/tgp_widget_background_big.dds" - } - - # BACKGROUND MERIT + DYNASTIC CYCLE - icon = { - visible = "[And(GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').IsCharacterParticipant( Character.Self ), Character.ShouldShowMerit)]" - parentanchor = left - size = { 474 116 } - texture = "gfx/interface/hud/tgp_widget_background_medium.dds" - } - - # BACKGROUND ONLY MERIT WIDGET - icon = { - visible = "[And(Not( InGameBottomBar.ShouldShowDynasticCycle ), Character.ShouldShowMerit )]" - parentanchor = left - size = { 430 116 } - texture = "gfx/interface/hud/tgp_widget_background_small.dds" - } - - # BACKGROUND ONLY MOVEMENT - icon = { - visible = "[And(InGameBottomBar.ShouldShowDynasticCycle, Not(Character.ShouldShowMerit))]" - parentanchor = left - position = { -10 25 } - size = { 430 116 } - texture = "gfx/interface/hud/tgp_widget_background_small.dds" - } - } - - icon_hud_background_container = { - visible = "[And(And( Not( IsGameViewOpen( 'barbershop' ) ), And( GetPlayer.IsValid, Not( GetVariableSystem.Exists( 'hide_bottom_left_HUD' ) ) ) ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = bottom|left - ignoreinvisible = yes - } - ##### END OF BACKGROUND - - ### BOTTOM LEFT CHARACTER PORTRAIT - bottom_left_portrait = { - parentanchor = bottom|left - } - - ### TGP WIDGET - flowcontainer = { - visible = "[And(And( Not( IsGameViewOpen( 'barbershop' ) ), And( GetPlayer.IsValid, Not( GetVariableSystem.Exists( 'hide_bottom_left_HUD' ) ) ) ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" - direction = horizontal - widgetanchor = bottom|left - parentanchor = bottom|left - position = { 269 -58 } - - allow_outside = yes - ignoreinvisible = yes - - widget_merit_hud = { - name = "merit_button_tutorial_uses_this" - datacontext = "[InGameBottomBar.GetMeritItem]" - parentanchor = vcenter - alwaystransparent = no - filter_mouse = all - size = { 74 94 } - - allow_outside = yes - } - - spacer = { - visible = "[Not(Character.ShouldShowMerit)]" - size = { 7 0 } - } - - widget = { - size = { 120 60 } - parentanchor = bottom - - allow_outside = yes - - flowcontainer = { - parentanchor = left|vcenter - position = { -5 0 } - spacing = 5 - - allow_outside = yes - ignoreinvisible = yes - - button_merit_pool_item = { - datacontext = "[InGameBottomBar.GetTopAdminMeritPool]" - visible = "[Character.ShouldShowMerit]" - allow_outside = yes - - blockoverride "button_onclick" - { - onclick = "[OpenGameViewData( 'government_administration', Character.Self)]" - } - - blockoverride "default_format" {} - } - - button_situation_group_banner = { - datacontext = "[InGameBottomBar.GetDynasticCycle]" - datacontext = "[InGameBottomBar.GetDynasticCycleGroup]" - datacontext = "[SituationParticipantGroup.GetType]" - visible = "[InGameBottomBar.ShouldShowDynasticCycle]" - - allow_outside = yes - } - } - } - } - - ## Bottom left tabs - left_edge_tabs = { - parentanchor = bottom|left - position = { -3 -100 } - } - - ## Bottom left CoA - coa_realm_medium_crown = { - visible = "[And(And(Not(IsGameViewOpen('barbershop')), And(And(IsDefaultGUIMode, GetPlayer.IsRuler), Not(GetVariableSystem.Exists( 'hide_ui_coa_bottom_left')))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_model').GetValue, '(CFixedPoint)0' ) ))]" - visible_at_creation = no - parentanchor = bottom|left - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.25 - - position = { 0 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.25 - - position = { 0 50 } - alpha = 0 - } - - blockoverride "coa_button" - { - tooltip = "[GetPlayer.GetDefaultRealmFlagTooltipPrimaryTitleClickInfo]" - onclick = "[DefaultOnCoatOfArmsClick(GetPlayer.GetPrimaryTitle.GetID)]" - } - } - - ### Legitimacy, Lifestyle, etc - bottom_left_button_row = { - parentanchor = bottom|left - position = { 66 0 } - } - - ### Regular position - bottom_left_temporary_statuses = { - visible = "[Not( Or( InGameBottomBar.ShouldShowDynasticCycle, Character.ShouldShowMerit ) )]" - parentanchor = bottom|left - position = { 270 -62 } - } - - ### Positioned higher when you have the celestial widget - bottom_left_temporary_statuses = { - visible = "[Or( InGameBottomBar.ShouldShowDynasticCycle, Character.ShouldShowMerit )]" - parentanchor = bottom|left - position = { 277 -160 } - } - - ###################################################### - ######### MAPMODES AND WARS AND INSPIRATIONS ######### - ###################################################### - - map_modes_debug = { - visible = "[And( InDebugMode, And( Not( GetVariableSystem.Exists( 'mapmodes_expand' ) ), And(IsDefaultGUIMode, Not(IsRightWindowOpen))))]" - visible_at_creation = no - parentanchor = bottom|right - position = { 0 -230 } - - filter_mouse = all - alwaystransparent = no - scale = 0.9 - } - - widget = { # Inspiration Details - visible = "[And( InGameBottomBar.HasSelectedInspiration, And( IsDefaultGUIMode, Not( IsRightWindowOpen ) ) )]" - visible_at_creation = no - datacontext = "[InGameBottomBar.GetSelectedInspiration]" - datacontext = "[Inspiration.GetOwner]" - - parentanchor = bottom|right - position = { -200 -150 } - using = Window_Background_Subwindow - - alwaystransparent = no - filter_mouse = all - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - name = "selected_inspiration" - set_parent_size_to_minimum = yes - margin = { 4 4 } - margin_bottom = 20 - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SELECTED_INSPIRATION_HEADER" - } - - blockoverride "button_close" - { - onclick = "[InGameBottomBar.ClearSelectedInspiration]" - } - - blockoverride "button_back" - { - visible = no - } - } - } - - hbox = { - name = "selected_inspiration_data" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 20 - - - background = { - using = Background_Area - layoutpolicy_horizontal = expanding - margin_top = 14 - } - - portrait_shoulders = { - name = "inspiration_owner_portrait" - - blockoverride "inspiration_status_icons" - { - } - } - - vbox = { - name = "text" - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_bottom = 10 - margin_top = -14 - - text_multi = { - name = "inspiration_text" - min_width = 300 - max_width = 300 - autoresize = yes - text = "SELECTED_INSPIRATION_TEXT" - margin_right = 10 - margin_top = 4 - } - - spacer = { - size = { 0 6 } - } - - hbox = { - name = "recuirt_owner" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - button_recruit_character = {} - - warning_icon = { - name = "wants_to_leave" - visible = "[And( Character.CourtierWantsToLeaveCourt, Not( Character.IsImprisoned))]" - size = { 20 20 } - tooltip = "[Character.GetCourtierLeaveDescription]" - } - - expand = {} - } - - text_single = { - name = "gold_invested" - text = INSPIRATION_INVESTED_GOLD - layoutpolicy_horizontal = expanding - visible = "[Inspiration.GetSponsor.IsLocalPlayer]" - } - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - - button_primary = { - name = "sponsor_inspiration" - text = START_SPONSOR_INSPIRATION - visible = "[Not( Inspiration.GetSponsor.IsValid )]" - - enabled = "[Character.IsPlayerInteractionValid( 'fund_inspiration_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'fund_inspiration_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'fund_inspiration_interaction' )]" - } - } - - vbox = { - name = "inspiration_progress" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = -8 - margin_top = -10 - spacing = 5 - - visible = "[Inspiration.GetSponsor.IsValid]" - - text_single = { - text = INSPIRATION_IN_PROGRESS - } - - progressbar_segmented_chance = { - name = "progress_bar" - tooltip = "INSPIRATION_ITEM_PROGRESS_TOOLTIP" - datamodel = "[GetSegmentedProgressChanceBar( GetDefine( 'NInspiration', 'MAX_PROGRESS' ), GetDefine( 'NInspiration', 'PROGRESS_FRAMES' ), Inspiration.GetProgress, Inspiration.GetProgressChance )]" - } - - text_single = { - text = INSPIRATION_ESTIMATED_REMAINING - tooltip = INSPIRATION_ESTIMATED_TIME_TOOLTIP - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - - ### Ongoing longer term objects and map modes - # eg: Wars, Schemes, Inspirations - flowcontainer = { - visible = "[And(And(IsDefaultGUIMode, Not(IsRightWindowOpen)), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_right_temporary_statuses').GetValue, '(CFixedPoint)0' ) ))]" - - parentanchor = bottom|right - widgetanchor = top|right - position = { 0 -175 } - alwaystransparent = yes - ignoreinvisible = yes - filter_mouse = all - allow_outside = yes - spacing = 30 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - # In progress systems - flowcontainer = { - name = "in_progress_systems" - ignoreinvisible = yes - margin_top = 15 - visible = "[Not(IsGameViewOpen('barbershop'))]" - - - ### Raise/Disband armies ### - - container = { - visible = "[Not(GetPlayer.HasActiveCompanionAISetting('raise_armies'))]" - ignoreinvisible = yes - parentanchor = vcenter - - button_raise_disband_armies = { - name = "tutorial_highlight_raise_troops" - visible = "[And( Character.IsAtWar, Not(Character.HasRaisedRegiments))]" - visible_at_creation = no - - enabled = "[PlayerCanRaiseAnyRallyPoint]" - onclick = "[PlayerRaiseAllRegiments]" - onrightclick = "[PlayerRaiseAllRegimentsAtLocation]" - button_ignore = none - - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - onclick = "[PdxGuiTriggerAllAnimations('button_army')]" - - tooltip = "[GetPlayerRaiseAllTooltip]" - - animation_aggressive = {} - } - - button_raise_disband_armies = { - visible = "[PlayerShouldDisbandAll]" - visible_at_creation = no - - onclick = "[PlayerDisbandAll]" - enabled = "[PlayerCanDisbandAll]" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_disband" - - blockoverride "text" { - text = "DISBAND_ALL" - } - - tooltip = "[GetDisbandAllTooltip]" - } - } - - - ### Inspirations ### - flowcontainer = { - name = "player_inspirations" - parentanchor = vcenter - spacing = 5 - margin = { 5 0 } - allow_outside = yes - - datamodel = "[GetPlayer.GetSponsoredInspirations]" - - item = { - button_normal = { - datacontext = "[Inspiration.GetOwner]" - size = { 60 60 } - tooltip = "TT_INSPIRATION_WIDGET" - using = tooltip_above - onclick = "[InGameBottomBar.ToggleSelectedInspiration( Inspiration.Self )]" - - icon_round_button_base = {} - - icon = { - visible = "[ObjectsEqual( InGameBottomBar.GetSelectedInspiration, Inspiration.Self )]" - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - parentanchor = center - alpha = 0.5 - } - - progresspie = { - name = "progress" - visible = "[And( Inspiration.GetSponsor.IsValid, Not( Inspiration.IsComplete ) )]" - - size = { 52 52 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - - widgetanchor = center - parentanchor = center - - min = 0 - max = 100 - - value = "[Select_float( GreaterThan_int32( Inspiration.GetProgress, '(int32)0' ), CurrentAndMaxToProgressbarValueInt32( Inspiration.GetProgress, GetDefine( 'NInspiration', 'MAX_PROGRESS' ) ), '(float)2' )]" - } - - highlight_icon = { - texture = "[Inspiration.GetType.GetIcon]" - alwaystransparent = yes - size = { 40 40 } - position = { 1 1 } - parentanchor = center - } - } - } - } - - ### Schemes ### - flowcontainer = { - name = "player_schemes" - datamodel = "[InGameBottomBar.GetSchemes]" - parentanchor = vcenter - spacing = 10 - margin = { 5 0 } - allow_outside = yes - - item = { - button_normal = { - name = "tutorial_highlight_lifestyle_HUD_button" - onclick = "[BottomBarSchemeItem.OnClick]" - onrightclick = "[BottomBarSchemeItem.OnClick]" - onrightclick = "[PostCommand( BottomBarSchemeItem.TriggerSchemeHudClick )]" - button_ignore = none - datacontext = "[BottomBarSchemeItem.GetScheme]" - tooltip = "BOTTOMBAR_SCHEME_TOOLTIP" - size = { 90 112 } - - ### Scheme exposed animation - icon = { - visible = "[Scheme.IsExposed]" - parentanchor = center - position = { 0 0 } - size = { 120 135 } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 3 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - mirror = vertical - blend_mode = alphamultiply - } - - state = { - name = mask_a - next = mask_b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - - state = { - name = mask_b - next = mask_a - duration = 8 - - modify_texture = { - name = "clouds" - translate_uv = { 0 1 } - } - } - } - - # Glow pulse animation when you have an opportunity - icon = { - visible = "[GreaterThan_int32( Scheme.GetAgentCharges, '(int32)0' )]" - parentanchor = center - position = { 0 4 } - size = { 100 114 } - texture = "gfx/interface/window_scheme/scheme_hud_bg_glow.dds" - using = Color_Bright_Yellow - alpha = 0 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0 - duration = 0 - scale = 1 - - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - alpha = 1 - duration = 0.3 - scale = 1.07 - - using = Animation_Curve_Default - } - - state = { - name = c - next = d - alpha = 0 - duration = 0.5 - scale = 1.1 - - using = Animation_Curve_Default - } - - state = { - name = d - next = a - - alpha = 0 - duration = 0 - delay = 3 - scale = 1 - } - } - - highlight_icon = { - texture = "gfx/interface/window_scheme/scheme_hud_bg.dds" - size = { 100% 100% } - } - - # Pogressbar & frame - highlight_icon = { - name = "progress_frame" - texture = "gfx/interface/window_scheme/scheme_hud_bg_progress_frame.dds" - size = { 100% 100% } - parentanchor = center - alpha = 0.5 - } - - progresspie = { - name = "progress" - position = { 0.3 -2.5 } - size = { 76 76 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - widgetanchor = center - parentanchor = center - value = "[Scheme.GetProgressBar]" - min = 0 - max = 1 - mirror = vertical|horizontal - } - - # Target - container = { - parentanchor = center - - # Character Target - container = { - datacontext = "[Scheme.GetTargetCharacter]" - visible = "[Character.IsValid]" - parentanchor = center - position = { 0 9 } - - portrait_scheme_hud = {} - } - - # Title Target - container = { - datacontext = "[Scheme.GetTargetTitle]" - visible = "[Title.IsValid]" - parentanchor = center - position = { 0 -12 } - - coa_title_tiny = { - tooltip_visible = no - alwaystransparent = yes - } - } - - # Faith Target - container = { - datacontext = "[Scheme.GetTargetFaith]" - visible = "[Faith.IsValid]" - parentanchor = center - position = { 0 -12 } - - icon = { - name = "faith_icon" - texture = "[Faith.GetIcon]" - size = { 40 40 } - } - } - - # Culture Target - container = { - datacontext = "[Scheme.GetTargetCulture]" - visible = "[Culture.IsValid]" - parentanchor = center - position = { 0 -12 } - - text_single = { - text = "HUD_GETCULTURE" - } - } - } - - # Scheme type icon & bg - widget = { - parentanchor = bottom|hcenter - position = { 0 -16 } - - highlight_icon = { - parentanchor = center - size = { 32 32 } - texture = "gfx/interface/window_scheme/scheme_hud_icon_bg.dds" - alwaystransparent = yes - } - - highlight_icon = { - texture = "[Scheme.GetSchemeType.GetIcon]" - size = { 30 30 } - alwaystransparent = yes - parentanchor = center - } - } - - # Scheme success chance - hbox = { - parentanchor = center - position = { 0 14 } - maximumsize = { 30 20 } - spacing = 2 - - background = { - using = Background_Area_Dark - } - - icon = { - name = success_icon - size = { 20 20 } - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - } - - text_single = { - name = "success" - text = "SCHEME_WIDGET_SUCCESS_CHANCE" - align = nobaseline - fontsize = 13 # Smallest allowed fontsize - } - - icon = { - visible = "[Scheme.IsExposed]" - size = { 20 20 } - alwaystransparent = yes - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - - tooltip = "INTRIGUE_WINDOW_AGENT_DISCOVERED_TT" - } - } - - # Opportunities - widget = { - visible = "[GreaterThan_int32( Scheme.GetAgentCharges, '(int32)0' )]" - parentanchor = top|right - position = { 5 8 } - size = { 45 22 } - alwaystransparent = yes - - background = { - using = Background_Area_Dark - margin_right = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - flowcontainer = { - parentanchor = center - - icon = { - parentanchor = vcenter - size = { 20 20 } - texture = "gfx/interface/icons/schemes/icon_scheme_opportunity.dds" - } - - text_single = { - text = "[Scheme.GetAgentCharges]" - default_format = "#high" - max_width = 25 - align = nobaseline - } - } - } - - ### Countermeasure icon - widget = { - visible = "[And(Scheme.GetSchemeCountermeasureProtectingTarget.IsValid, Scheme.GetSchemeType.IsHostile)]" - datacontext = "[Scheme.GetSchemeCountermeasureProtectingTarget]" - parentanchor = top|left - position = { 0 2 } - size = { 30 30 } - - tooltip = "SCHEME_COUNTERMEASURE_PROTECTING_TARGET" - - background = { - using = Background_Area_ExtraDark - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - - # The frame - icon = { - parentanchor = center - size = { 30 30 } - alwaystransparent = yes - - texture = "gfx/interface/icons/scheme_countermeasure_types/frame_purple.dds" - } - - icon = { - visible = "[SchemeCountermeasureType.IsValid]" - parentanchor = center - size = { 30 30 } - alwaystransparent = yes - - texture = "[SchemeCountermeasureType.GetIcon]" - } - } - } - } - } - - ### Task Contacts ### - flowcontainer = { - name = "task_contracts" - datamodel = "[GetPlayer.GetAcceptedTaskContracts]" - parentanchor = vcenter - ignoreinvisible = yes - - item = { - button_task_contract_banner = {} - } - } - - ### Epidemics in/near your realm ### - button_epidemics = { - name = "epidemics_hud" - parentanchor = vcenter - visible_at_creation = no - visible = "[Or( InGameBottomBar.HasGlobalNotificationEpidemic, Or( DataModelHasItems( InGameBottomBar.GetEpidemicsInRealm ), DataModelHasItems( InGameBottomBar.GetEpidemicsBorderingRealm ) ) )]" - } - - ### Wars ### - flowcontainer = { - name = "wars" - parentanchor = vcenter - ignoreinvisible = yes - - flowcontainer = { - name = "great_holy_wars" - parentanchor = vcenter - ignoreinvisible = yes - - flowcontainer = { - ignoreinvisible = yes - parentanchor = vcenter - - datamodel = "[GetPlayer.GetFaith.GetDefensiveGreatHolyWars]" - - item = { - button_ghw_banner = { - name = "defensive_ghw" - parentanchor = vcenter - - blockoverride "ghw_tooltip" - { - tooltip = "GHW_OPEN_TOOLTIP_DEFENDER" - using = tooltip_ne - } - } - } - } - - button_ghw_banner = { - name = "player_faith_ghw" - datacontext = "[GetPlayer.GetFaith.GetGreatHolyWar]" - visible = "[GetPlayer.GetFaith.HasOffensiveGreatHolyWar]" - visible_at_creation = no - parentanchor = vcenter - - blockoverride "ghw_tooltip" - { - tooltip = "GHW_OPEN_TOOLTIP_ATTACKER" - using = tooltip_ne - } - } - } - - flowcontainer = { - name = "raids_on_me" - datamodel = "[GetPlayer.GetHostileRaiders]" - parentanchor = vcenter - - item = { - button_raid_banner = { - parentanchor = vcenter - tooltip = "RAID_ON_ME_TOOLTIP" - } - } - } - - flowcontainer = { - name = "raids_by_me" - datamodel = "[GetPlayer.GetRaidTargets]" - parentanchor = vcenter - - item = { - button_raid_banner = { - parentanchor = vcenter - tooltip = "RAID_BY_ME_TOOLTIP" - } - } - } - - flowcontainer = { - name = "regular_wars" - datamodel = "[InGameBottomBar.GetWarItems]" - ignoreinvisible = yes - - item = { - button_war_banner = {} - } - } - } - - ### Situations & Struggles ### - flowcontainer = { - name = "hud_situations_tutorial_uses_this" - parentanchor = vcenter - ignoreinvisible = yes - - flowcontainer = { - name = "visible_situations" - parentanchor = vcenter - ignoreinvisible = yes - - datamodel = "[InGameBottomBar.GetVisibleSituations]" - - item = { - button_situation_banner = { - parentanchor = bottom - } - } - } - - flowcontainer = { - name = "visible_struggles" - parentanchor = vcenter - ignoreinvisible = yes - - datamodel = "[InGameBottomBar.GetVisibleStruggles]" - - item = { - button_struggle_banner = {} - } - } - - button_situation_banner = { - visible = "[InGameBottomBar.ShouldShowDynasticCycle]" - datacontext = "[InGameBottomBar.GetDynasticCycle]" - size = { 100 100 } - name = "dynastic_cycle_highlight" - - onclick = "[OpenGuiTab( 'dynastic_cycle_tabs', 'dynastic_cycle' )]" - - blockoverride "tooltipwidget" - { - tooltip = "DYNASTIC_CYCLE_OPEN_CYCLE_TT" - using = tooltip_ne - } - - blockoverride "glow_visible" - { - visible = no - } - - blockoverride "background_texture" - { - texture = "gfx/interface/hud/situation_background_dynastic_cycle.dds" - } - - blockoverride "icon_size" - { - size = { 56 56 } - position = { 0 1 } - } - - blockoverride "progress_pie_visibility" - { - visible = yes - } - - blockoverride "progresspie_size" - { - size = { 66 66 } - position = { 0 1 } - } - } - } - } - - ## Map Modes - map_modes = { - visible = "[Not(IsGameViewOpen('barbershop'))]" - filter_mouse = all - using = Animation_ShowHide_Quick - alwaystransparent = no - parentanchor = vcenter - - blockoverride "map_mode_tutorial" - { - widgetid = "map_mode_duchies_button" - } - } - } -} - -###################################################### -############# MESSAGES AND NOTIFICATIONS ############# -###################################################### - -### Message Feed -notifications_message_feed = { - position = { -10 -135 } - layer = bottom -} - -### Toasts -notifications_toasts = { - parentanchor = top|hcenter - layer = middle -} - -### Suggestions / Current Situation -notifications_suggestions = { - layer = hud_layer - - attachto = { - widgetid = "suggestions_placer" - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - - -types HUD -{ - - type icon_hud_background_container = container { - icon_hud_background = { - visible = "[LessThanOrEqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)1' )]" - size = { 400 64 } - } - - icon_hud_background = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)2' )]" - size = { 460 64 } - } - - icon_hud_background = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)3' )]" - size = { 520 64 } - } - - icon_hud_background = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)4' )]" - size = { 580 64 } - } - - icon_hud_background = { - visible = "[EqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)5' )]" - size = { 640 64 } - } - - icon_hud_background = { - visible = "[GreaterThanOrEqualTo_int32( InGameBottomBar.GetHudOptionalItemsCount, '(int32)6' )]" - size = { 700 64 } - } - - } - type bottom_left_temporary_statuses = flowcontainer { - name = "bottom_left_bar_temporary_statuses" - - datacontext = "[GetPlayer]" - datacontext = "[Character.GetInvolvedActivity]" - - visible = "[And( Not( IsPauseMenuShown ), And( And( IsDefaultGUIMode, Character.IsValid ), Not( GetVariableSystem.Exists( 'hide_bottom_left_HUD') ) ) )]" - visible_at_creation = no - - ignoreinvisible = yes - alwaystransparent = no - - flowcontainer = { - name = "involved_activity" - - visible = "[And( Activity.IsValid, Not( Activity.IsComplete ) )]" - visible_at_creation = no - - spacing = 8 - - activity_hud_button = { - name = "activity_button" - } - - button_hud_travel = { - name = "activity_travel_button" - datacontext = "[Character.GetTravelPlan]" - visible = "[Character.IsTraveling]" - parentanchor = "vcenter" - - text = "ACTIVITY_VIEW_TRAVEL" - tooltip = "[SelectLocalization(Character.GetTravelPlan.GetData.IsTravelWithDomicile, 'TT_TRAVELING_WITH_DOMICILE_WIDGET', 'TT_AWAY_FROM_CAPITAL_WIDGET')]" - max_width = 160 - - onclick = "[ToggleGameViewData('travel_planner', TravelPlan.GetID)]" - onclick = "[Character.ZoomCameraTo]" - } - } - - button_normal = { - name = "away_from_capital" - datacontext = "[Character.GetTravelPlan]" - - visible_at_creation = no - visible = "[And( Character.IsTraveling, Or( Not( Activity.IsValid ), Activity.IsComplete ) )]" - - size = { 60 60 } - - onclick = "[ToggleGameViewData('travel_planner', TravelPlan.GetID)]" - onclick = "[Character.ZoomCameraTo]" - - tooltip = "[SelectLocalization(Character.GetTravelPlan.GetData.IsTravelWithDomicile, 'TT_TRAVELING_WITH_DOMICILE_WIDGET', 'TT_AWAY_FROM_CAPITAL_WIDGET')]" - using = tooltip_above - - icon_round_button_base = {} - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - parentanchor = center - alpha = 0.5 - } - - progresspie = { - name = "progress" - size = { 50 50 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - widgetanchor = center - parentanchor = center - value = "[TravelPlan.GetData.GetNextDestinationProgress]" - min = 0 - max = 1 - } - - highlight_icon = { - texture = "gfx/interface/icons/travel/icon_travel_hud_placeholder.dds" - alwaystransparent = yes - size = { 45 45 } - parentanchor = center - } - } - } - - - #### - # - # NOTE: If you add a button in here, you must update InGameBottomBar.GetHudOptionalItemsCount and use a code defined function for visibility - # Otherwise, the background (which is placed behind the player portrait) will not extend properly - # - #### - - - type bottom_left_button_row = flowcontainer { - name = "bottom_left_bar" - visible = "[And(And( Not(IsGameViewOpen('barbershop')), And( Not( IsPauseMenuShown ), And(And(IsDefaultGUIMode, GetPlayer.IsValid), Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD'))))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" - ignoreinvisible = yes - alwaystransparent = no - allow_outside = yes - spacing = 4 - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.21 - - position = { 66 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.21 - - position = { 30 50 } - alpha = 0 - } - - button_normal = { - name = "legitimacy_button" - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - visible = "[InGameBottomBar.ShouldShowLegitimacyInHUD]" - parentanchor = vcenter - - using = tooltip_ne - - tooltipwidget = { - legitimacy_hud_tooltip = { - datacontext = "[InGameBottomBar.GetLegitimacyBar]" - } - } - - size = { 48 48 } - - icon = { - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - #alpha = 0.5 - } - - icon = { - parentanchor = vcenter - position = { 6 0 } - size = { 36 36 } - - texture = "[Character.GetLegitimacyType.GetLevelsIcon]" - framesize = { 70 70 } - frame = "[IntToFrameIndex( LegitimacyLevel.GetIndex )]" - - modify_texture = { - name = "lvl_increase" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "lvl_decrease" - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "legitimacy_level_increase" - next = "legitimacy_level_increase_2" - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "legitimacy_level_increase_2" - next = "legitimacy_level_increase_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_increase" - alpha = 0.7 - } - } - - state = { - name = "legitimacy_level_increase_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "legitimacy_level_decrease" - next = "legitimacy_level_decrease_2" - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - - state = { - name = "legitimacy_level_decrease_2" - next = "legitimacy_level_decrease_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0.7 - } - } - - state = { - name = "legitimacy_level_decrease_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - } - - progresspie = { - name = "progress" - size = { 42 42 } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - value = "[InGameBottomBar.GetLegitimacyProgress]" - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - } - - widget = { - name = "stress_widget" - size = { 110 55 } - alwaystransparent = no - filter_mouse = all - - widget = { - parentanchor = center - size = { 180 108 } - - tooltip = "PLAYER_STRESS_TOOLTIP" - using = tooltip_ne - - widget = { - name = "progressbar" - parentanchor = center - widgetanchor = left|vcenter - position = { -13 0 } - size = { 60 20 } - - background = { - texture = "gfx/interface/colors/white.dds" - color = { 0.1 0.1 0.1 0.8 } - } - - icon = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - color = { 1 0.1 0.1 0.2 } - - using = Animation_ShowHide_Standard - - state = { - name = a - next = b - trigger_on_create = yes - - using = Animation_Curve_Default - duration = 0.8 - alpha = 0 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 1 - } - } - - hbox = { - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( GetPlayer.GetStressProgress, '(float)100', '(int32)60' )]" - - progressbar_hud_stress = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/red.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.7 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/orange.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)1')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/gold_darker.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)0')]" - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/blue.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( GetPlayer.GetStressProgress, '(float)100', '(int32)60' )]" - } - } - } - - widget = { - size = { 100% 100% } - - progressbar_hud_stress_glow = { - texture = "gfx/interface/hud/hud_stress_glow_red.dds" - - blockoverride "animation_trigger_1" - { - name = "stress_level_increase" - } - - blockoverride "animation_trigger_2" - { - name = "stress_increase" - } - } - - progressbar_hud_stress_glow = { - texture = "gfx/interface/hud/hud_stress_glow_blue.dds" - - blockoverride "animation_trigger_1" { - name = "stress_level_decrease" - } - - blockoverride "animation_trigger_2" - { - name = "stress_decrease" - } - } - - progressbar_hud_stress_glow = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]" - texture = "gfx/interface/hud/hud_stress_glow_red.dds" - - blockoverride "animation_trigger_1" { - name = "lvl3_fire" - trigger_on_create = yes - } - - blockoverride "animation_trigger_2" {} - blockoverride "lvl_3" {} - } - - icon = { - parentanchor = center - position = { -30 0 } - size = { 30 30 } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - - - modify_texture = { - name = "mask_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = 1 - } - - modify_texture = { - name = "mask_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = -1 - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - alpha = 0.1 - } - - modify_texture = { - name = "mask_4" - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = mask - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/colors/gold.dds" - blend_mode = add - } - - state = { - name = "stress_level_increase" - next = b - - using = Animation_Curve_Default - scale = 1 - alpha = 0 - } - - state = { - name = b - next = c - - duration = 0.6 - bezier = { 0.5 0 1 0.5 } - - scale = 5 - alpha = 0.7 - } - - state = { - name = c - duration = 0.3 - alpha = 0 - scale = 6 - } - - state = { - name = rotate_a - next = rotate_b - trigger_on_create = yes - - modify_texture = { - name = "mask_1" - rotate_uv = 1 - } - } - - state = { - name = rotate_a - next = rotate_b - - duration = 1 - - modify_texture = { - name = "mask_1" - rotate_uv = 180 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - trigger_on_create = yes - - modify_texture = { - name = "mask_2" - rotate_uv = -1 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - - duration = 1 - - modify_texture = { - name = "mask_2" - rotate_uv = -180 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - trigger_on_create = yes - - modify_texture = { - name = "mask_3" - rotate_uv = 0 - alpha = 0.1 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - - duration = 1 - - modify_texture = { - name = "mask_3" - rotate_uv = 40 - alpha = 0.8 - } - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/skinned/hud_stress_bg.dds" - - icon = { - parentanchor = vcenter - position = { 41 0 } - size = { 35 35 } - - texture = "gfx/interface/icons/stress/icon_stress_level.dds" - framesize = { 70 70 } - frame = "[IntToFrameIndex( GetPlayer.GetStressLevel )]" - - modify_texture = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - name = "lvl3_glow" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "lvl_increase" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = a - next = b - duration = 0.6 - trigger_on_create = yes - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0.3 - } - } - - state = { - name = b - next = a - duration = 1.5 - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0 - } - } - - state = { - name = "stress_level_increase" - next = "stress_level_increase_2" - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "stress_level_increase_2" - next = "stress_level_increase_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_increase" - alpha = 0.7 - } - } - - state = { - name = "stress_level_increase_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - } - } - } - } - } - - spacer = { - size = { 5 0 } - } - - flowcontainer = { - ignoreinvisible = yes - margin_bottom = 5 - spacing = 4 - - button_normal = { - name = "lifestyle_button" - visible = "[GetPlayer.IsAdult]" - - tooltip = "PLAYER_LIFESTYLE_TOOLTIP" - using = tooltip_ne - - onclick = "[OpenGameViewData( 'lifestyle', GetPlayer.GetID )]" - size = { 56 56 } - - icon_round_button_base = {} - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - alpha = 0.5 - } - - highlight_icon_lifestyle_focus = { - name = "tutorial_highlight_lifestyle_HUD_button" - texture = "[GetPlayer.GetFocus.GetIcon]" - alwaystransparent = yes - size = { 100% 100% } - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - } - - icon = { - visible = "[And(Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_pulsating_lifestyle').GetValue, '(CFixedPoint)0' ) ),Or(GetPlayer.CanPlayerChangeMyFocus, Not( GetPlayer.GetLifestyle.IsValid )))]" - size = { 100% 100% } - alwaystransparent = yes - texture = "[GetPlayer.GetFocus.GetIcon]" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - blend_mode = add - - } - - modify_texture = { - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - } - - state = { - name = a - next = b - alpha = 0 - trigger_on_create = yes - duration = 1.2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.8 - duration = 0.6 - using = Animation_Curve_Default - } - } - - progresspie = { - name = "progress" - size = { 48 48 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - value = "[GetPlayer.GetLifestyleExperienceProgress( GetPlayer.GetLifestyle.Self )]" - widgetanchor = center - parentanchor = center - position = { 0 0 } - min = 0 - max = 1 - } - - button_round = { - datacontext = "[GetPlayer]" - visible = "[And(GreaterThan_int32( Character.GetTotalPerkPoints, '(int32)0' ), Character.IsLocalPlayer)]" - parentanchor = bottom|right - position = { 7 3 } - size = { 28 28 } - framesize = { 82 82 } - upframe = 1 - uphoverframe = 1 - uppressedframe = 1 - alwaystransparent = yes - - text_single = { - parentanchor = center - datacontext = "[GetPlayer]" - text = "[Character.GetTotalPerkPoints]" - default_format = "#high" - max_width = 180 - align = nobaseline - - # animation_attention = { - # visible = "[GreaterThan_int32( GetPlayer.GetTotalPerkPoints, '(int32)0' )]" - # } - } - } - - animation_sonar = { - texture = "gfx/interface/component_effects/effect_sonar_ring.dds" - visible = "[GreaterThan_int32( GetPlayer.GetTotalPerkPoints, '(int32)0' )]" - } - } - - button_normal = { - name = "education_button" - visible = "[Not(GetPlayer.IsAdult)]" - - tooltip = "PLAYER_EDUCATION_FOCUS_TOOLTIP" - using = tooltip_ne - - onclick = "[ToggleGameViewData( 'character_focus', GetPlayer.GetID )]" - size = { 56 56 } - - icon_round_button_base = {} - - highlight_icon_lifestyle_focus = { - texture = "[GetPlayer.GetFocus.GetIcon]" - onclick = "[ToggleGameViewData( 'character_focus', GetPlayer.GetID )]" - size = { 100% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - framesize = { 140 140 } - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - } - } - - - widget = { - size = { 56 56 } - - button_open_inventory = { - name = "open_inventory_tutorial_uses_this" - using = tooltip_ne - - size = { 55 55 } - datacontext = "[GetPlayer]" - blockoverride "highlight_icon_size" - { - size = { 40 40 } - } - } - - widget_new_artifacts = { - position = { 6 2 } - parentanchor = bottom|right - visible = "[Or( GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'inventory' ), '(int32)0' ), And( Not( GetPlayer.HasRoyalCourt ), GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' ) ) )]" - } - } - - button_round = { - name = "open_diarchy_tutorial_uses_this" - parentanchor = left - onclick = "[ToggleGameViewData( 'diarchy', Character.GetID )]" - visible = "[InGameBottomBar.ShouldShowDiarchyInHUD]" - - tooltip = "DIARCHY_WINDOW_OPEN_TOOLTIP" - using = tooltip_ne - size = { 56 56 } - - icon_round_button_base = {} - - button = { - size = { 40 40 } - alwaystransparent = yes - parentanchor = center - texture = "gfx/interface/icons/scale_of_power.dds" - } - - icon_power_sharing_level = { - name = "your_power_sharing_level" - - datacontext = "[GetPlayer.GetDiarchy]" - visible = "[Diarchy.IsValid]" - - parentanchor = bottom|right - position = { 3 3 } - - } - - icon_power_sharing_level = { - name = "liege_power_sharing_level" - - datacontext = "[GetPlayer.GetLiege.GetDiarchy]" - visible = "[And(GetPlayer.HasLiege, Diarchy.IsValid)]" - - parentanchor = bottom|right - position = { 3 3 } - } - - } - - # Radiance (enabled) - button_normal = { - datacontext = "[Character.GetRadianceBreakdown]" - visible = "[InGameBottomBar.ShouldShowRadianceInHUD]" - size = { 56 56 } - - using = tooltip_ne - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - visible = "[ValueBreakdown.HasTooltip]" - widget_value_breakdown_tooltip = { - blockoverride "input_info_text" { - text = "SELECT_MANDALA_MAPMODE" - default_format = "#I" - } - } - } - - onclick = "[ToggleMapMode( 'mandala' )]" - - icon_round_button_base = { - parentanchor = center - size = { 100% 100% } - } - - button_icon = { - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/mandala_radiance.dds" - size = { 60% 60% } - parentanchor = center - } - - } - - button_round = { - name = "hud_camp_button" #tutorial uses this - widgetid = "hud_camp_button" - datacontext = "[Character.GetDomicile]" - visible = "[InGameBottomBar.ShouldShowDomicileInHUD]" - parentanchor = left - size = { 56 56 } - using = tooltip_ne - - onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" - tooltip = "[Domicile.GetMapPinTooltip( Character.Self )]" - - icon_round_button_base = {} - - progresspie = { - name = "progress" - visible = "[Domicile.IsConstructing]" - - size = { 48 48 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - value = "[Domicile.GetConstructionProgress]" - widgetanchor = center - parentanchor = center - position = { 0 0 } - min = 0 - max = 1 - } - - button_icon = { - size = { 40 40 } - position = { 0 -1 } - parentanchor = center - alwaystransparent = yes - texture = "[Domicile.GetType.GetIcon]" - } - } - - # Bloc - button_normal = { - name = "confederation_button" #tutorial uses this - datacontext = "[GetPlayer.GetConfederation]" - visible = "[InGameBottomBar.ShouldShowBlocInHUD]" - parentanchor = left - size = { 56 56 } - - onclick = "[OpenGameViewData( 'confederation_window', Confederation.GetID )]" - - using = tooltip_ne - tooltip_offset = { 20 0 } - - tooltipwidget = { - using = confederation_tooltip - } - - icon_round_button_base = { - alwaystransparent = yes - parentanchor = center - size = { 100% 100% } - - button_icon = { - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/confederations.dds" - size = { 60% 60% } - parentanchor = center - } - } - } - - button_normal = { - name = "house_power_hud_button" #tutorial uses this - datacontext = "[Character.GetHouse]" - datacontext = "[DynastyHouse.GetHouseAspiration]" - - visible = "[And(InGameBottomBar.ShouldShowHousePowerInHUD, Not( IsLandlessAdventurer( GetPlayer ) ) )]" - - size = { 56 56 } - - onclick = "[ToggleGameViewData( 'house_aspiration_window', DynastyHouse.Self )]" - tooltip = "OPEN_HOUSE_ASPIRATION_TT" - using = tooltip_ne - - icon_round_button_base = { - parentanchor = center - size = { 100% 100% } - } - - powerful_family_bonus_icon = { - parentanchor = center - size = { 46 46 } - } - - animation_sonar = { - texture = "gfx/interface/component_effects/effect_sonar_ring.dds" - visible = "[ObjectsEqual( GetHouseAspiration('no_aspect'), HouseAspiration.Self)]" - } - } - } - - spacer = { - size = { 24 1 } - } - - nomad_widget = { - visible = "[IsNomad( GetPlayer )]" - datacontext = "[InGameBottomBar.GetDomainFertilityProgressBar]" - } - - widget_stress_sounds = {} - } - - - type left_edge_tabs = flowcontainer { - name = "side_bottom_left_tabs" - visible = "[And(And( Not( IsPauseMenuShown ), And(And(IsDefaultGUIMode, Character.IsValid), Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD')))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_bottom_left_bar').GetValue, '(CFixedPoint)0' ) ))]" - visible_at_creation = no - - ignoreinvisible = yes - alwaystransparent = no - - using = Animation_ShowHide_Standard - - widget = { - parentanchor = left|top - size = { 100% 150% } - - widget = { - size = { 100% 100% } - position = { -24 -20} - - Background = { - texture = "gfx/interface/skinned/hud_maintab_bg_middle.dds" - mirror = horizontal - spriteType = CorneredTiled - texture_density = 2 - margin = { 0 -50 } - } - - Background = { - spriteType = CorneredStretched - spriteborder_top = 100 - parentanchor = top|right - texture_density = 2 - size = { 50 100 } - texture = "gfx/interface/skinned/hud_maintab_bg_top.dds" - mirror = horizontal - } - - Background = { - spriteType = CorneredStretched - spriteborder_bottom = 100 - parentanchor = top|right - texture_density = 2 - size = { 50 100 } - texture = "gfx/interface/skinned/hud_maintab_bg_bottom.dds" - mirror = horizontal - } - - Background = { - size = { 100% 100% } - margin_bottom = 100 - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphaMultiply - } - - } - } - } - - flowcontainer = { - parentanchor = bottom - ignoreinvisible = yes - direction = vertical - - button_hud_character_bar = { - name = "legend_tab" - visible = "[HasDlcFeature( 'legends' )]" - - onclick = "[ToggleGameView( 'legends' )]" - - tooltipwidget = { - legends_hud_tooltip = {} - } - - using = tooltip_es - tooltip_offset = { 20 0 } - - highlight_icon = { - parentanchor = center - position = { 0 1 } - size = { 40 40 } - texture = "gfx/interface/icons/legend_hud.dds" - scale = 0.9 - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - - button_hud_character_bar = { - name = "player_culture_button_tutorial_uses_this" - datacontext = "[GetPlayer.GetCulture]" - onclick = "[OpenGameViewData( 'culture_window', Culture.GetID )]" - - using = tooltip_es - tooltip_offset = { 20 0 } - - tooltipwidget = { - culture_tooltip_click = {} - } - - highlight_icon = { - parentanchor = center - position = { 0 1 } - size = { 40 40 } - texture = "gfx/interface/icons/icon_culture.dds" - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - - # Faith - button_hud_character_bar = { - name = "faith_button" - datacontext = "[GetPlayer.GetFaith]" - parentanchor = left - - onclick = "[OpenGameViewData( 'faith', GetPlayer.GetFaith.GetID )]" - - using = tooltip_es - tooltip_offset = { 20 0 } - - tooltipwidget = { - faith_tooltip_click = {} - } - - highlight_icon = { - texture = "[Faith.GetIcon]" - size = { 40 40 } - position = { 0 1 } - parentanchor = center - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - - # Confederation - button_hud_character_bar = { - name = "confederation_button" #tutorial uses this - datacontext = "[GetPlayer.GetConfederation]" - visible = "[And(Confederation.IsValid, Not(Confederation.GetType.IsHouseBasedConfederation))]" - parentanchor = left - - onclick = "[OpenGameViewData( 'confederation_window', Confederation.GetID )]" - - using = tooltip_es - tooltip_offset = { 20 0 } - - tooltipwidget = { - using = confederation_tooltip - } - - button = { - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 -10 } - size = { 42 42 } - texture = "gfx/interface/icons/diplomatic_icons.dds" - frame = "5" - framesize = { 120 120 } - tooltip_visible = no - } - - coat_of_arms_icon = { - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - parentanchor = center - position = { 0 1 } - size = { 28 28 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = 0.4 - } - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_28.dds" - size = { 36 36 } - } - } - } - - # Dynasty House - button_hud_character_bar = { - name = "house_button" - datacontext = "[GetPlayer.GetHouse]" - onclick = "[DefaultOnHouseCoatOfArmsClick(DynastyHouse.GetID)]" - parentanchor = left - - using = tooltip_es - tooltip_offset = { 20 0 } - - tooltipwidget = { - using = dynasty_house_tooltip - } - - coa_house_tiny = { - parentanchor = center - position = { 0 1 } - scale = 0.92 - - blockoverride "coa_button" - { - alwaystransparent = yes - } - - blockoverride "coa_tooltip" - {} - } - } - } - } - - - type bottom_left_portrait = container { - datacontext = "[GetPlayer]" - visible = "[And(And( Not(IsGameViewOpen('barbershop')) , And(GetPlayer.IsValid, Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD')))), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_model').GetValue, '(CFixedPoint)0' ) ))]" - visible_at_creation = no - - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.15 - - position = { 0 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.15 - - position = { 0 50 } - alpha = 0 - } - - portrait_hud = { - scale = 1.3 - parentanchor = center - position = { -20 -40 } - } - - icon = { - texture = "gfx/interface/hud/bottom_left_portrait_fade.dds" - parentanchor = bottom|left - color = { 0.12 0.12 0.12 1 } - } - - icon = { - texture = "gfx/interface/hud/bottom_left_portrait_fade.dds" - parentanchor = bottom|left - color = { 0.15 0.15 0.15 0.3 } - } - } - - - - - type Animation_HUD_daily_tick = widget { - using = Animation_ShowHide_Quick - - icon = { - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - color = { 0.63 0.59 0.68 1 } - - block "alpha" - { - alpha = 0.5 - } - - modify_texture = { - name = "pattern" - texture = "gfx/interface/component_masks/mask_clouds.dds" - spriteType = corneredtiled - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - duration = 0 - trigger_on_create = yes - - modify_texture = { - name = "pattern" - translate_uv = { 0 0 } - } - } - - state = { - name = b - next = a - block "duration" - { - duration = 2 - } - - modify_texture = { - name = "pattern" - translate_uv = { -1 0 } - } - } - } - } - - type progressbar_hud_stress_glow = icon { - size = { 100% 100% } - - block "lvl_3" - { - alpha = 0 - } - - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 3 - } - - state = { - name = mask_a - next = mask_b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - - state = { - name = mask_b - next = mask_a - duration = 8 - - modify_texture = { - name = "clouds" - translate_uv = { 0 1 } - } - } - - state = { - block "animation_trigger_1" - { - name = "stress_level_increase" - } - next = "fade_out" - - duration = 0.2 - delay = 0.3 - bezier = { 0.5 0 1 0.5 } - alpha = 1 - } - - block "lvl_3" { - state = { - block "animation_trigger_2" - { - name = "stress_increase" - } - next = "fade_out" - - duration = 0.2 - delay = 0.3 - bezier = { 0.5 0 1 0.5 } - alpha = 1 - } - - state = { - name = "fade_out" - - duration = 1.5 - bezier = { 0 0.5 0.5 1 } - alpha = 0 - } - } - } - - type progressbar_hud_stress = icon { - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - alpha = 0.8 - - block "bar_color" - { - # texture = "gfx/interface/colors/red.dds" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.3 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - alpha = 0.3 - texture_density = 3 - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - name = "lvl3_glow" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = mask - spriteType = corneredtiled - texture_density = 1 - } - - modify_texture = { - block "bar_color_flow" - { - # texture = "gfx/interface/colors/yellow.dds" - alpha = 0.3 - } - blend_mode = colordodge - } - - state = { - name = "lvl3_glow_a" - next = "lvl3_glow_b" - duration = 0.6 - trigger_on_create = yes - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0.5 - } - } - - state = { - name = "lvl3_glow_b" - next = "lvl3_glow_a" - duration = 1.5 - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0 - } - } - - state = { - name = "stress_level_increase" - next = "fade_out" - - duration = 0.1 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "flash" - alpha = 0.6 - } - } - - state = { - name = "stress_increase" - next = "fade_out" - - duration = 0.1 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "flash" - alpha = 0.6 - } - } - - state = { - name = "fade_out" - - duration = 0.8 - bezier = { 0 0.5 0.5 1 } - - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = a - duration = 15 - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - } - - type button_raise_disband_armies = button_standard { - size = { 200 64 } - datacontext = "[GetPlayer]" - parentanchor = vcenter - - background = { - using = Background_Area_Dark_Border - } - - background = { - using = Background_Area_Dark - } - - margin_left = 45 - - - block "text" { - text = "RAISE_ALL" - } - - using = tooltip_ne - - icon = { - texture = "gfx/interface/icons/icon_banner.dds" - size = { 40 40 } - alwaystransparent = yes - parentanchor = left|vcenter - position = { 10 0 } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 20 - } - } - - type button_hud_travel = button_standard { - size = { 170 36 } - datacontext = "[GetPlayer]" - parentanchor = vcenter - - background = { - using = Background_Area_Dark_Border - } - - margin_left = 34 - - using = tooltip_ne - - icon = { - texture = "gfx/interface/icons/travel/icon_travel_hud_placeholder.dds" - size = { 30 30 } - alwaystransparent = yes - parentanchor = left|vcenter - position = { 8 0 } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 20 - } - } - - type button_war_banner = button_normal { - visible = "[Not(IsGameViewOpen('barbershop'))]" - size = { 78 82 } - onclick = "[WarItem.OnClick]" - tooltip = "[WarItem.GetTooltip]" - using = tooltip_ne - - animation_sonar = { - visible = "[WarItem.CanEnforceVictory]" - texture = "gfx/interface/component_masks/mask_glow.dds" - using = Color_Orange - } - - ##Show animation - state = { - name = _show - next = banner_default - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - size = { 86 88 } - alpha = 1 - trigger_on_create = yes - } - - state = { - name = banner_default - using = Animation_FadeIn_Standard - size = { 78 82 } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - bezier = { 1 0 0.5 0.5 } - size = { 66 70 } - alpha = 0 - } - - icon = { - name = "enforce_victory_glow" - visible = "[WarItem.CanEnforceVictory]" - parentanchor = center - size = { 100% 100% } - scale = 1.2 - texture = "gfx/interface/icons/war_status/war_won_glow.dds" - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.6 - alpha = 0.2 - } - } - - button = { - name = "enforce_victory_icon" - visible = "[WarItem.CanEnforceVictory]" - parentanchor = hcenter - position = { 0 -27 } - texture = "gfx/interface/icons/war_status/war_won_icon.dds" - - modify_texture = { - name = "shimmer_war_banner" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 1 } - alpha = 0.8 - } - - state = { - name = shimmer - next = pause - trigger_when = "[WarItem.CanEnforceVictory]" - delay = 0.5 - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer_war_banner" - translate_uv = { 1 0.8 } - alpha = 0.5 - } - } - - state = { - name = pause - duration = 0.8 - - modify_texture = { - name = "shimmer_war_banner" - translate_uv = { -1 -1 } - alpha = 0.5 - } - } - } - - highlight_icon = { - name = "war_icon" - visible = "[WarItem.IsPlayerParticipant]" - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/war_status/war_icon.dds" - - modify_texture = { - name = "shimmer_war_banner" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 1 } - } - - state = { - name = shimmer - next = pause - trigger_when = "[WarItem.CanEnforceVictory]" - delay = 0.5 - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer_war_banner" - translate_uv = { 1 0.5 } - alpha = 0.5 - } - } - - state = { - name = pause - duration = 0.8 - - modify_texture = { - name = "shimmer_war_banner" - translate_uv = { -1 -1 } - alpha = 0.5 - } - } - } - - highlight_icon = { - name = "war_icon_liege" - visible = "[Not(WarItem.IsPlayerParticipant)]" - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/war_status/war_icon_liege.dds" - } - - coa_realm_small = { - name = "enemy_realm" - datacontext = "[WarItem.GetWar.GetPrimaryPlayerEnemy]" - parentanchor = hcenter - scale = 0.9 - position = { 0 25 } - tooltip_visible = no - alwaystransparent = yes - } - - text_single = { - name = "warscore" - parentanchor = bottom|hcenter - position = { 0 -7 } - size = { 50 10 } - align = center - text = "[WarItem.GetWarScoreFraction|0%=+]" - - background = { - using = Background_Area_Dark - } - } - - widget = { - visible = "[WarItem.CanEnforceVictory]" - - state = { - name = _show - - start_sound = { - soundeffect = "event:/SFX/UI/War/sfx_ui_war_enforce_demand" - soundparam = { - name = StateChange - value = 1.5 - } - } - } - } - } - - type button_task_contract_banner = button_normal { - size = { 100 100 } - - icon = { - visible = "[And( TaskContract.IsEasy, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_1.dds" - } - icon = { - visible = "[And( TaskContract.IsEasy, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_1_crime.dds" - } - - icon = { - visible = "[And( TaskContract.IsMedium, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_2.dds" - } - icon = { - visible = "[And( TaskContract.IsMedium, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_2_crime.dds" - } - - icon = { - visible = "[And( TaskContract.IsHard, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_3.dds" - } - icon = { - visible = "[And( TaskContract.IsHard, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_3_crime.dds" - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[TaskContract.GetType.GetIcon]" - size = { 40% 40% } - position = { 0 -2 } - } - - onclick = "[ToggleGameViewData('task_contract', TaskContract.Self )]" - tooltip = "[TaskContract.GetName]" - using = tooltip_ne - } - - type button_situation_banner = button_normal { - name = "situation_banner_item" - visible = "[Not( Situation.UsesMigration )]" - size = { 90 90 } - - onclick = "[ToggleGameViewData(Situation.GetWindowName, Situation.GetID)]" - - block "tooltipwidget" - { - tooltipwidget = situation_tooltip - using = tooltip_nw - } - - widget = { - name = "natural_disaster_highlight" - size = { 100% 100% } - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - - icon = { - name = "below_glow" - block "glow_visible" - { - visible = "[GreaterThan_CFixedPoint( Situation.GetTopCurrentPhase.GetRelativeProgress, '(CFixedPoint)0.8' )]" - } - size = { 100% 100% } - texture = "gfx/interface/icons/character_interactions/icon_bg.dds" - - using = Animation_Glow_Pulse - - glow = { - glow_radius = 5 - using = Glow_Standard - using = Color_Bright_Yellow - } - } - - # Current phase - widget = { - size = { 100% 100% } - datacontext = "[Situation.GetTopCurrentPhase]" - parentanchor = center - - button = { - size = { 88% 88% } - parentanchor = center - - block "background_texture" - { - texture = "gfx/interface/window_situations/hud_situation_widget.dds" - } - alwaystransparent = yes - } - - icon = { - parentanchor = center - block "icon_size" - { - size = { 60% 60% } - } - - block "button_icon" - { - texture = "[Situation.GetIcon]" - } - } - } - - progresspie = { - block "progress_pie_visibility" {} - block "progresspie_size" - { - size = { 70% 70% } - } - parentanchor = center - value = "[Situation.GetTopCurrentPhase.GetRelativeProgress]" - max = 1 - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - } - } - - type button_situation_group_banner = button_normal { - name = "situation_group_banner_item" - size = { 56 56 } - - onclick = "[ToggleGameViewData(Situation.GetWindowName, Situation.GetID)]" - onclick = "[OpenGuiTab( 'dynastic_cycle_tabs', 'movements' )]" - tooltip = "DYNASTIC_CYCLE_POLITICAL_MOVEMENT_TAB_TOOLTIP_YOUR_MOVEMENT" - using = tooltip_ne - - # Current phase - widget = { - size = { 100% 100% } - parentanchor = center - - button = { - size = { 56 56 } - parentanchor = center - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - alwaystransparent = yes - } - - button_icon = { - visible = "[InGameBottomBar.ShouldShowMovementPower]" - parentanchor = center - position = { 0 -5 } - size = { 27 27 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - alwaystransparent = yes - } - - # Bigger icon that is centered in background when you don't have the banner with movement power - button_icon = { - visible = "[Not(InGameBottomBar.ShouldShowMovementPower)]" - parentanchor = center - size = { 35 35 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - alwaystransparent = yes - } - } - - icon = { - visible = "[InGameBottomBar.ShouldShowMovementPower]" - parentanchor = bottom|hcenter - position = { 0 -3 } - size = { 60 24 } - texture = "gfx/interface/hud/tgp_widget_button_banner.dds" - - tooltip = "DYNASTIC_CYCLE_WINDOW_GROUP_POWER_TOOLTIP" - using = tooltip_ne - tooltip_offset = { 3 38 } - - flowcontainer = { - parentanchor = center - spacing = 3 - - - widget = { - parentanchor = vcenter - size = { 12 24 } - - icon_flat_standard_gold = { - parentanchor = vcenter - position = { 0 2 } - size = { 12 12 } - texture = "gfx/interface/icons/flat_icons/group_power.dds" - } - } - - text_single = { - parentanchor = vcenter - text = "[InGameBottomBar.GetDynasticCycleMovementPower]" - using = Font_Size_Tiny - max_width = 40 - - tooltip = "[Localize( 'DYNASTIC_CYCLE_WINDOW_PORTRAIT_MOVEMENT_POWER' )][Localize( 'NEWLINE' )][Localize( 'grand_secretariat_aptitude.movement_power' )][Localize( 'NEWLINE' )][Localize( 'NEWLINE' )][Character.MakeScope().GetScriptValueDesc( 'movement_power_character_value' )]" - using = tooltip_ne - tooltip_offset = { -30 45 } - } - } - } - - icon = { - size = { 25 25 } - position = { -5 10 } - - texture = "gfx/interface/icons/dynastic_cycle/favored_by_hegemon.dds" - visible = "[InGameBottomBar.IsDynasticCycleMovementFavored]" - widgetanchor = center - parentanchor = top|right - - tooltip = "DYNASTIC_CYCLE_WINDOW_FAVORED_MOVEMENT_TOOLTIP" - } - } - - type button_situations_scroll = button_normal { - size = { 80 110 } - - onclick = "[ToggleGameViewData(Situation.GetWindowName, Situation.GetID)]" - - widget = { - parentanchor = bottom|hcenter - size = { 74 78 } - - highlight_icon = { - size = { 74 78 } - texture = "gfx/interface/window_situations/silk_road_hud_widget_bg.dds" - } - - widget = { - size = { 50 50 } - parentanchor = center - - highlight_icon = { - size = { 46 46 } - parentanchor = center - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - highlight_icon = { - parentanchor = center - size = { 34 34 } - texture = "[Situation.GetIcon]" - } - } - - tooltip = "SITUATION_LIST_HUD_BUTTON" - } - } - - type button_struggle_banner = button_normal { - name = "struggle_banner_tutorial_uses_this" - - size = { 110 110 } - - onclick = "[ToggleGameViewData('struggle', Struggle.GetID)]" - - onmousehierarchyenter = "[HighlightStruggle( Struggle.Self )]" - onmousehierarchyleave = "[ClearHighlightedStruggleBorder]" - - state = { - name = _show - next = banner_default - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - size = { 80 80 } - alpha = 1 - trigger_on_create = yes - } - - state = { - name = banner_default - using = Animation_FadeIn_Standard - size = { 110 110 } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - bezier = { 1 0 0.5 0.5 } - size = { 80 80 } - alpha = 0 - } - - # Animations - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - visible = "[Struggle.HasPossibleEndingDecision]" - parentanchor = center - - animation_sonar = { - texture = "gfx/interface/component_masks/mask_glow.dds" - using = Color_Orange - } - - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - position = { 0 -12 } - texture = "gfx/interface/icons/struggle_banners/upper_point_glow.dds" - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.6 - alpha = 0.2 - } - } - } - - blockoverride "time_based_widget_content" { - icon = { - position = { 0 -12 } - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/upper_time_glow.dds" - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.6 - alpha = 0.2 - } - } - } - } - - # Leading phase - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentLeadingPhase]" - - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/lower_point_banner.dds" - } - } - - blockoverride "time_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/lower_time_banner.dds" - } - } - - blockoverride "ending_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/lower_ending_banner.dds" - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/component_effects/ending_banner_fire_01.dds" - alpha = 0.25 - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0.25 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1 - alpha = 0 - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/component_effects/ending_banner_fire_02.dds" - alpha = 0 - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1 - alpha = 0.25 - } - } - - icon = { - name = "ending_phase_glow" - visible = "[Struggle.HasPossibleEndingDecision]" - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/lower_ending_glow.dds" - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0.5 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.6 - alpha = 0.2 - } - } - } - - widget = { - visible = "[Struggle.GetCurrentLeadingPhase.IsValid]" - parentanchor = bottom|left - size = { 25 25 } - position = { 20 -14 } - } - } - - # Tie - icon = { - visible = "[Not(Struggle.GetCurrentLeadingPhase.IsValid)]" - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/lower_tied_banner.dds" - } - - # Current phase - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - blockoverride "point_based_widget_content" { - struggle_highlight_icon = { - visible = "[Struggle.IsInvolvedCharacter(Character.Self)]" - blockoverride "texture" { - texture = "gfx/interface/icons/struggle_banners/upper_point_involved_banner.dds" - } - } - - struggle_highlight_icon = { - visible = "[Not(Struggle.IsInvolvedCharacter(Character.Self))]" - blockoverride "texture" { - texture = "gfx/interface/icons/struggle_banners/upper_point_interloper_banner.dds" - } - } - - widget = { - size = { 52 52 } - position = { 0 15 } - parentanchor = top|hcenter - - icon = { - size = { 52 52 } - parentanchor = center - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - } - - progressbar_standard = { - size = { 60 12 } - parentanchor = bottom|hcenter - position = { 0 -20 } - value = "[Struggle.GetProgress]" - progresstexture = "gfx/interface/progressbars/progress_orange.dds" - } - - widget_struggle_hourglass = { } - } - - blockoverride "time_based_widget_content" { - struggle_highlight_icon = { - visible = "[Struggle.IsInvolvedCharacter(Character.Self)]" - blockoverride "texture" { - texture = "gfx/interface/icons/struggle_banners/upper_time_involved_banner.dds" - } - } - - struggle_highlight_icon = { - size = { 100% 100% } - visible = "[Struggle.IsInterloperCharacter(Character.Self)]" - blockoverride "texture" { - texture = "gfx/interface/icons/struggle_banners/upper_time_interloper_banner.dds" - } - } - - widget = { - size = { 52 52 } - parentanchor = top|hcenter - position = { 1 18 } - - icon = { - parentanchor = center - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - size = { 60 60 } - } - - progresspie = { - name = "progress" - parentanchor = center - size = { 52 52 } - position = { 0 -1} - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 124 124 } - frame = 2 - value = "[Struggle.GetProgress]" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - } - - widget_struggle_hourglass = { } - - text_single = { - text = "[Struggle.GetPhaseValue(Struggle.GetCurrentLeadingPhase)]" - default_format = "#high" - parentanchor = bottom|hcenter - position = { 0 -14 } - } - } - } - - widget = { - size = { 80 110 } - tooltipwidget = struggle_tooltip - parentanchor = center - } - } - - type struggle_highlight_icon = highlight_icon { - size = { 100% 100% } - block "texture" {} - - ##Pulse glow - glow = { - name = "glow_defined" - glow_radius = 3 - using = Glow_Standard - using = Color_Orange - glow_alpha = 0 - } - - state = { - name = struggle_pulse_glow - next = struggle_pulse_glow_stop - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - glow_alpha = 1 - } - - state = { - name = struggle_pulse_glow_stop - bezier = { 1 0 0.5 0.5 } - duration = 0.3 - glow_alpha = 0 - } - - #white fill - state = { - name = struggle_pulse_icon - next = struggle_pulse_icon_stop - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - - modify_texture = { - name = "white_icon" - alpha = 1 - } - } - - state = { - name = struggle_pulse_icon_stop - bezier = { 1 0 0.5 0.5 } - duration = 0.3 - - modify_texture = { - name = "white_icon" - alpha = 0 - } - } - - modify_texture = { - name = "white_icon" - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = colordodge - alpha = 0 - } - } - - type widget_struggle_hourglass = widget { - visible = "[Struggle.IsInTransitionPhase]" - position = { 0 0 } - size = { 32 32 } - - icon = { - parentanchor = center - size = { 32 32 } - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - - #white fill - state = { - name = struggle_pulse_icon - next = struggle_pulse_icon_stop - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - - modify_texture = { - name = "white_icon" - alpha = 1 - } - } - - state = { - name = struggle_pulse_icon_stop - bezier = { 1 0 0.5 0.5 } - duration = 0.3 - - modify_texture = { - name = "white_icon" - alpha = 0 - } - } - - modify_texture = { - name = "white_icon" - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = colordodge - alpha = 0 - } - } - - icon = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/icon_time.dds" - - #white fill - state = { - name = struggle_pulse_icon - next = struggle_pulse_icon_stop - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - - modify_texture = { - name = "white_icon" - alpha = 1 - } - } - - state = { - name = struggle_pulse_icon_stop - bezier = { 1 0 0.5 0.5 } - duration = 0.3 - - modify_texture = { - name = "white_icon" - alpha = 0 - } - } - - modify_texture = { - name = "white_icon" - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = colordodge - alpha = 0 - } - } - } - - type button_ghw_banner = button_normal { - size = { 78 82 } - onclick = "[OpenGameViewData( 'great_holy_war', GreatHolyWar.GetID )]" - - block "ghw_tooltip" - { - raw_tooltip = "#D no tooltip :(#!" - } - - ##Show animation - state = { - name = _show - next = banner_default - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - size = { 86 88 } - alpha = 1 - trigger_on_create = yes - } - - state = { - name = banner_default - using = Animation_FadeIn_Standard - size = { 78 82 } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - bezier = { 1 0 0.5 0.5 } - size = { 66 70 } - alpha = 0 - } - - button = { - name = "holy_war_icon_started" - visible = "[GreatHolyWar.HasWarStarted]" - onclick = "[OpenGameViewData( 'great_holy_war', GreatHolyWar.GetID )]" - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/war_status/holy_war_icon_started.dds" - } - - button = { - name = "holy_war_icon_prep" - visible = "[Not(GreatHolyWar.HasWarStarted)]" - onclick = "[OpenGameViewData( 'great_holy_war', GreatHolyWar.GetID )]" - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/war_status/holy_war_icon_prep.dds" - } - - button = { - name = "faith_icon" - datacontext = "[GreatHolyWar.GetFaith]" - onclick = "[OpenGameViewData( 'great_holy_war', GreatHolyWar.GetID )]" - parentanchor = center - position = { 1 -3 } - size = { 35 35 } - texture = "[Faith.GetIcon]" - } - } - - type button_raid_banner = button_normal { - size = { 78 82 } - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - using = tooltip_ne - - ##Show animation - state = { - name = _show - next = banner_default - using = Animation_FadeIn_Quick - bezier = { 1 0 0.5 0.5 } - size = { 86 88 } - alpha = 1 - trigger_on_create = yes - } - - state = { - name = banner_default - using = Animation_FadeIn_Standard - size = { 78 82 } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - bezier = { 1 0 0.5 0.5 } - size = { 66 70 } - alpha = 0 - } - - highlight_icon = { - texture = "gfx/interface/icons/war_status/raid_icon.dds" - size = { 100% 100% } - parentanchor = center - } - - coa_realm_small = { - name = "enemy_realm" - parentanchor = hcenter - scale = 0.9 - position = { 0 12 } - tooltip_visible = no - alwaystransparent = yes - } - - text_single = { - name = "time_left" - parentanchor = bottom|hcenter - position = { 0 -7 } - size = { 50 10 } - align = center - text = "[GetPlayer.GetRaidHostilityEnd( Character.Self ).GetTimeDiffFromNow]" - - } - } - - type button_hud_character_bar = button_normal { - effectname = "NoHighlight" - - framesize = { 103 102} - size = { 52 52 } - texture = "gfx/interface/skinned/button_hud_character_sidebar.dds" - using = tooltip_ne - - state = { - name = _show - frame = 1 - position_x = 0 - - using = Animation_Curve_Default - duration = 0.25 - } - - state = { - name = _mouse_hierarchy_enter - frame = 2 - position_x = 3 - - using = Animation_Curve_Default - duration = 0.1 - } - - state = { - name = _mouse_leave - frame = 1 - position_x = 0 - - using = Animation_Curve_Default - duration = 0.25 - } - - state = { - name = _mouse_press - frame = 3 - position_x = 3 - } - - state = { - name = _mouse_release - frame = 2 - position_x = 0 - - using = Animation_Curve_Default - duration = 0.25 - } - } - - type widget_hud_main_tab = widget { - size = { 45 45 } - using = tooltip_ws - tooltip_offset = { 35 0 } - - button_normal = { - parentanchor = center - size = { 45 45 } - - scale = 1 - - block "maintab_button" {} - - modify_texture = { - name = "glow" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 1 0 } - alpha = 0 - } - - state = { - name = _mouse_enter - duration = 0.03 - scale = 1.2 - position_x = -3 - - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - translate_uv = { 0 0 } - alpha = 0.4 - } - } - - state = { - name = _mouse_leave - duration = 0.1 - scale = 1 - position_x = 0 - - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - translate_uv = { 1 0 } - alpha = 0 - } - } - } - } - - type hotkeys_HUD = widget { - # Mapmodes - button_normal = { - onclick = "[SetMapMode('players')]" - shortcut = "map_mode_8" - enabled = "[Or(GameHasMultiplePlayers, InDebugMode)]" - } - - button_normal = { - onclick = "[SetMapMode('dejure_duchies')]" - shortcut = "map_mode_9" - shortcut = "mapmode_duchies_secondary" - } - - button_normal = { - onclick = "[SetMapMode('dejure_kingdoms')]" - shortcut = "map_mode_10" - shortcut = "mapmode_kingdoms_secondary" - - } - - button_normal = { - onclick = "[SetMapMode('dejure_empires')]" - shortcut = "map_mode_11" - shortcut = "mapmode_empires_secondary" - } - - button_normal = { - onclick = "[SetMapMode('religions')]" - shortcut = "map_mode_3" - shortcut = "mapmode_faith_secondary" - } - - button_normal = { - onclick = "[SetMapMode('cultures')]" - shortcut = "map_mode_2" - shortcut = "mapmode_culture_secondary" - } - - button_normal = { - onclick = "[SetMapMode('houses')]" - onclick = "[ClearExploringHouses]" - shortcut = "map_mode_4" - shortcut = "mapmode_house_secondary" - } - - button_normal = { - onclick = "[SetMapMode('realms')]" - onclick = "[ClearExploringRealms]" - shortcut = "map_mode_1" - } - - button_normal = { - onclick = "[SetMapMode('government')]" - shortcut = "map_mode_5" - } - - button_normal = { - onclick = "[SetMapMode('epidemics')]" - shortcut = "map_mode_16" - } - - button_normal = { - onclick = "[SetMapMode('legends')]" - shortcut = "map_mode_17" - } - - button_normal = { - onclick = "[SetMapMode('landless_rulers')]" - shortcut = "map_mode_18" - } - - button_normal = { - onclick = "[SetMapMode('migration_counties')]" - shortcut = "map_mode_19" - } - - button_normal = { - onclick = "[SetMapMode('dejure_counties')]" - shortcut = "map_mode_6" - } - - button_normal = { - onclick = "[SetMapMode('dejure_hegemonies')]" - shortcut = "map_mode_20" - } - - button_normal = { - onclick = "[SetMapMode('court_languages')]" - shortcut = "map_mode_7" - } - - button_normal = { - onclick = "[SetMapMode('terrain')]" - shortcut = "map_mode_terrain" - } - - button_normal = { - onclick = "[SetMapMode('simple_terrain')]" - shortcut = "map_mode_12" - } - - button_normal = { - onclick = "[SetMapMode('county_development')]" - shortcut = "map_mode_13" - } - - button_normal = { - onclick = "[SetMapMode( 'economy_buildings' )]" - shortcut = "map_mode_14" - } - - button_normal = { - onclick = "[SetMapMode( 'county_control' )]" - shortcut = "map_mode_15" - } - - button_normal = { - onclick = "[SetMapMode( 'diplomatic_relations' )]" - shortcut = "map_mode_diplomatic_relations" - } - - button_normal = { - onclick = "[SetMapMode( 'confederations' )]" - shortcut = "map_mode_confederations" - } - - button_normal = { - name = "find_title_shortcut" - onclick = "[ToggleGameView( 'find_title' )]" - onclick = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - shortcut = "find_title_shortcut" - } - - button_normal = { - name = "plagues_shortcut" - onclick = "[ToggleGameView( 'epidemics' )]" - onclick = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - shortcut = "explore_plagues" - } - - button_normal = { - name = "legends_shortcut" - onclick = "[ToggleGameView( 'legends' )]" - onclick = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - shortcut = "explore_legends" - } - - # 0 size button for shortcut to work - button_normal = { - name = "find_character_shortcut" - onclick = "[ToggleGameView( 'character_finder' )]" - onclick = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - shortcut = "character_finder" - } - - # 0 size button for shortcut to work - button_normal = { - name = "encyclopedia_shortcut" - onclick = "[ToggleEncyclopedia]" - onclick = "[GetVariableSystem.Clear( 'extra_buttons_expand' )]" - shortcut = "encyclopedia" - } - button_normal = { - onclick = "[SetMapMode( 'mandala' )]" - shortcut = "map_mode_mandala" - } - } - - type button_pause_hud = button_round { - size = { 33 33 } - - enabled = "[Not(IsGameOver)]" - onclick = "[OnPause]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - - button_play = { - visible = "[IsGamePaused]" - size = { 35 35 } - - tooltip = "[SelectLocalization( IsGameOver, 'UNPAUSE_GAME_OVER', 'UNPAUSE_GAME')]" - using = tooltip_ne - alwaystransparent = yes - parentanchor = center - } - - button_pause = { - visible = "[Not(IsGamePaused)]" - size = { 35 35 } - - tooltip = "PAUSE_GAME" - using = tooltip_ne - alwaystransparent = yes - parentanchor = center - } - } - - type container_resource_balance = container { - text_single = { - name = "balance_pos" - visible = "[GreaterThanOrEqualTo_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]" - text = "[PlayerValueItem.GetBalance|1=]" - max_width = 110 - - default_format = "#low" - } - - text_single = { - name = "balance_neg" - visible = "[LessThan_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]" - text = "[PlayerValueItem.GetBalance|1=]" - max_width = 110 - - default_format = "#N" - } - } - - type container_saving_indicator = container { - visible = yes - - background = { - name = "bg" - texture = "gfx/interface/tooltips/tooltip_bg.dds" - spriteType = Corneredtiled - gfxtype = icongfx - spriteborder = { 2 2 } - shaderfile = "gfx/FX/pdxgui_default.shader" - - } - - background = { - name = "frame" - texture = "gfx/interface/tooltips/tooltip_frame.dds" - gfxtype = icongfx - spriteType = Corneredtiled - spriteborder = { 20 20 } - shaderfile = "gfx/FX/pdxgui_default.shader" - - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - flowcontainer = { - spacing = 15 - margin = { 20 15 } - - progressbar = { - size = { 44 44 } - gfxtype = framedprogressbargfx - texture = "gfx/interface/frontend/loading_progress.dds" - framesize = { 88 88 } - loopinterval = 2.0 - max = 0 - } - - text_single = { - parentanchor = vcenter - align = nobaseline - using = Font_Size_Medium - - block "csi_text" - { - text = "AUTOSAVE_IN_PROGRESS" - } - } - } - } - - type resources_top_right_bar = hbox - { - layer = top - - using = Animation_ShowHide_Quick - - ## Resources - hbox = { - name = "resources" - visible = "[Not( IsGameViewOpen('barbershop') )]" - - hbox = { - name = "spendables" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "tutorial_highlight_resources_bar" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - name = "gold" - size = { 144 70 } - - state = { - name = _mouse_enter - on_start = "[InGameTopbar.ResetLastUpdateFrame]" - } - - widget = { - size = { 144 45 } - - tooltipwidget = { - widget_gold_breakdown_tooltip = { - blockoverride "income" - { - datacontext = "[InGameTopbar.GetGoldIncomeBreakdown]" - } - - blockoverride "expenses" - { - datacontext = "[InGameTopbar.GetGoldExpensesBreakdown]" - } - } - } - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_start.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "gold_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "gold_value_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(GetPlayer.GetGold, '(CFixedPoint)0')]" - text = "[GetPlayer.GetGold|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "gold_value_negative" - visible = "[LessThan_CFixedPoint(GetPlayer.GetGold, '(CFixedPoint)0')]" - text = "[GetPlayer.GetGold|0]" - max_width = 50 - default_format = "#N" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(InGameTopbar.GetGoldBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetGoldBalance|=1]" - max_width = 50 - default_format = "#low" - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(InGameTopbar.GetGoldBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetGoldBalance|=1]" - max_width = 50 - default_format = "#N" - } - } - } - } - spacer = { - size = { 10 1} - } - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - widget = { - name = "treasury" - visible = "[GetPlayer.HasTreasury]" - size = { 112 70 } - allow_outside = yes - - state = { - name = _mouse_enter - on_start = "[InGameTopbar.ResetLastUpdateFrame]" - } - - button = { - size = { 112 45 } - - onclick = "[ToggleGameViewData( 'treasury_budget_change', GetPlayer.GetTopLiege.Self )]" - enabled = "[GetPlayer.IsIndependentRuler]" - - tooltipwidget = { - widget_gold_breakdown_tooltip = { - blockoverride "my_gold" - { - text_single = { - layoutpolicy_horizontal = expanding - - text = "[treasury_i] [GetPlayer.GetPrimaryTitle.GetNameNoTierNoTooltip] [treasury|E]" - default_format = "#T" - } - } - - blockoverride "income" - { - datacontext = "[InGameTopbar.GetTreasuryIncomeBreakdown]" - } - - blockoverride "expenses" - { - datacontext = "[InGameTopbar.GetTreasuryExpensesBreakdown]" - } - - blockoverride "extra_info" - { - text_single = { - visible = "[And( GetPlayer.IsIndependentRuler, IsAdministrativeRuler( GetPlayer ) )]" - layoutpolicy_horizontal = expanding - text = "CLICK_TO_OPEN_TREASURY_BUDGETING" - default_format = "#I" - } - } - } - } - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - widget = { - size = { 20 20 } - allow_outside = yes - - button_round = { - size = { 20 20 } - parentanchor = center - position = { -10 0 } - - name = "transfer_gold_to_treasury_button_tutorial_uses_this" - datacontext = "[GetPlayer]" - enabled = "[Character.CanSendPlayerInteraction('transfer_small_gold_amount_to_treasury_interaction')]" - onclick = "[Character.SendPlayerInteraction('transfer_small_gold_amount_to_treasury_interaction')]" - onrightclick = "[Character.SendPlayerInteraction('transfer_large_gold_amount_to_treasury_interaction')]" - button_ignore = none - tooltip = "TRANSFER_GOLD_TO_TREASURY_INTERACTION_TOOLTIP" - using = tooltip_se - - button_icon = { - size = { 100% 100% } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/gamespeed_3.dds" - } - - tooltip_offset = { 0 20 } - } - } - - expand = {} - - hbox = { - spacing = 7 - - name = "treasury_tutorial_uses_this" - - icon = { - name = "treasury_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_imperial_treasury.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "treasury_value_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(GetPlayer.GetTreasury, '(CFixedPoint)0')]" - text = "[GetPlayer.GetTreasury|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "treasury_value_negative" - visible = "[LessThan_CFixedPoint(GetPlayer.GetTreasury, '(CFixedPoint)0')]" - text = "[GetPlayer.GetTreasury|0]" - max_width = 50 - default_format = "#N" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "treasury_balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(InGameTopbar.GetTreasuryBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetTreasuryBalance|=1]" - max_width = 50 - default_format = "#low" - } - - text_single = { - name = "treasury_balance_negative" - visible = "[LessThan_CFixedPoint(InGameTopbar.GetTreasuryBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetTreasuryBalance|=1]" - max_width = 50 - default_format = "#N" - } - } - } - } - - spacer = { - size = { 10 1} - } - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - widget = { - name = "barter_goods" - datacontext = "[GetPlayer]" - visible = "[GetPlayer.HasBarterGoods]" - size = { 112 70 } - - state = { - name = _mouse_enter - on_start = "[InGameTopbar.ResetLastUpdateFrame]" - } - - widget = { - size = { 112 45 } - using = tooltip_ne - - tooltipwidget = { - widget_gold_breakdown_tooltip = { - blockoverride "income" - { - datacontext = "[InGameTopbar.GetBarterGoodsIncomeBreakdown]" - } - - blockoverride "expenses" - { - datacontext = "[InGameTopbar.GetBarterGoodsExpensesBreakdown]" - } - } - } - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "barter_goods_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_barter.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "barter_goods_value_positive" - - text = "[GetPlayer.GetCurrency('barter_goods')|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "barter_goods_balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(InGameTopbar.GetBarterGoodsBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetBarterGoodsBalance|=1]" - max_width = 50 - default_format = "#low" - } - - text_single = { - name = "barter_goods_balance_negative" - visible = "[LessThan_CFixedPoint(InGameTopbar.GetBarterGoodsBalance, '(CFixedPoint)0')]" - text = "[InGameTopbar.GetBarterGoodsBalance|=1]" - max_width = 50 - default_format = "#N" - } - } - } - } - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - widget = { - name = "prestige" - datacontext = "[InGameTopbar.GetPrestigeItem]" - size = { 112 70 } - - widget = { - size = { 112 45 } - - tooltipwidget = { - widget_resource_value_tooltip = {} - } - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "prestige_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - - text_single = { - name = "prestige_value" - text = "[GetPlayer.GetPrestige|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - container_resource_balance = {} - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - - - widget = { - name = "piety" - datacontext = "[InGameTopbar.GetPietyItem]" - size = { 112 70 } - - button = { - size = { 112 45 } - onclick = "[OpenGameViewData( 'faith', GetPlayer.GetFaith.GetID )]" - - using = tooltip_ne - tooltipwidget = { - widget_resource_value_tooltip = {} - } - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 6 - - icon = { - name = "piety_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - - text_single = { - name = "piety_value" - text = "[GetPlayer.GetPiety|0]" - - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - container_resource_balance = {} - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - - widget = { - name = "provisions" - visible = "[IsLandlessAdventurer( GetPlayer )]" - size = { 112 70 } - - widget = { - datacontext = "[GetPlayer.GetDomicile]" - size = { 112 45 } - - tooltip = "[Domicile.GetProvisionsBreakdown]" - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - datacontext = "[GetPlayer.GetDomicile]" - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "provisions_icon" - size = { 30 30 } - - framesize = { 60 60 } - frame = 0 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "provisions_value_positive" - visible = "[Not( Or( Domicile.IsProvisionsLow, Domicile.IsProvisionsCritical ) )]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "provisions_value_low" - visible = "[Domicile.IsProvisionsLow]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#color_yellow" - using = Font_Size_Medium - } - - text_single = { - name = "provisions_value_critical" - visible = "[Domicile.IsProvisionsCritical]" - - text = "[Domicile.GetProvisions|0]" - max_width = 50 - default_format = "#N" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "provisions_max" - text = "[Domicile.GetProvisionsMax]" - max_width = 50 - default_format = "#low" - } - } - } - } - expand = {} - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - - vbox = { - margin_top = -2 - layoutpolicy_vertical = expanding - - expand = {} - } - } - expand = {} - } - } - - widget = { - name = "influence" - datacontext = "[InGameTopbar.GetInfluenceItem]" - visible = "[GetPlayer.GetGovernment.HasRule( 'administrative' )]" - size = { 112 70 } - - widget = { - size = { 112 45 } - - tooltipwidget = { - widget_resource_value_tooltip = {} - } - using = tooltip_ne - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "influence_icon" - size = { 30 30 } - texture = "[GetPlayer.GetInfluenceLevelTexture]" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - - text_single = { - name = "influence_value" - text = "[GetPlayer.GetInfluence|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - container_resource_balance = {} - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - widget = { - name = "renown" - datacontext = "[InGameTopbar.GetDynastyPrestigeItem]" - size = { 112 70 } - layoutpolicy_vertical = expanding - - button = { - size = { 112 45 } - onclick = "[DefaultOnHouseCoatOfArmsClick(GetPlayer.GetHouse.GetID)]" - - using = tooltip_ne - tooltipwidget = { - widget_resource_value_tooltip = {} - } - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 6 - - icon = { - visible = "[GetPlayer.IsDynast]" - texture = "[GetPlayer.GetDynasty.GetDynastyPrestigeLevelTexture]" - size = { 30 30 } - } - - icon = { - visible = "[Not(GetPlayer.IsDynast)]" - texture = "[GetPlayer.GetDynasty.GetDynastyPrestigeLevelTexture]" - size = { 30 30 } - alpha = 0.3 - } - - flowcontainer = { - visible = "[GetPlayer.IsDynast]" - margin_bottom = 7 - spacing = -6 - direction = vertical - - text_single = { - name = "prestige_value" - text = "[GetPlayer.GetDynasty.GetPrestige|0]" - - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - container_resource_balance = {} - } - - flowcontainer = { - visible = "[Not(GetPlayer.IsDynast)]" - margin_bottom = 7 - spacing = -6 - direction = vertical - - text_single = { - name = "prestige_value_nodynast" - text = "[GetPlayer.GetDynasty.GetPrestige|0]" - - max_width = 50 - default_format = "#low" - using = Font_Size_Medium - } - - container_resource_balance = {} - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - - widget = { - name = "herd" - datacontext = "[GetPlayer]" - datacontext = "[Character.GetDomicile]" - visible = "[IsNomad( GetPlayer )]" - size = { 112 70 } - - state = { - name = _mouse_enter - on_start = "[InGameTopbar.ResetLastUpdateFrame]" - } - - widget = { - size = { 112 45 } - using = tooltip_ne - - tooltipwidget = { - herd_breakdown_hud_toolip = {} - } - } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece.dds" - } - - vbox = { - margin_top = -2 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 7 - - icon = { - name = "herd_icon" - size = { 30 30 } - - texture = "gfx/interface/icons/icon_herd.dds" - } - - flowcontainer = { - margin_bottom = 7 - spacing = -6 - direction = vertical - ignoreinvisible = yes - - text_single = { - name = "herd_value_positive" - visible = "[Not( Domicile.IsAboveHerdLimit )]" - - text = "[Domicile.GetHerd|0]" - max_width = 50 - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "above_herd_limit" - visible = "[Domicile.IsAboveHerdLimit]" - - text = "[Domicile.GetHerd|0]" - max_width = 50 - default_format = "#color_yellow" - using = Font_Size_Medium - } - - container = { - text_single = { - name = "army_from_herd" - text = "[InGameTopbar.GetHerdChangeValue|=1]" - max_width = 50 - default_format = "#low" - } - } - } - } - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.8 - } - } - expand = {} - } - } - } - - hbox = { - name = "military" - datacontext = "[GetPlayer]" - - widget = { - button = { - size = { 112 45 } - onclick = "[ToggleGameViewData('military', GetPlayer.GetID)]" - - tooltip = "[InGameTopbar.GetMilitaryTooltip]" - using = tooltip_ne - } - - size = { 112 70 } - - background = { - texture = "gfx/interface/skinned/resource_panel_piece_light.dds" - } - - ### Stiches for the Nomadic UI skin placed as a separate texture to be able to place it perfectly aligned with texture change and tiling. - ### Placed on top of the divider that is there normally. - widget = { - name = "nomadic_stiches_divider" - visible = "[IsNomad( GetPlayer )]" - parentanchor = vcenter - size = { 10 42 } - position = { -6 -17 } - - icon = { - parentanchor = center - position = { 0 0 } - size = { 10 42 } - texture = "gfx/interface/hud/nomadic_resource_panel_stiches.dds" - } - } - - vbox = { - margin_top = 4 - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - hbox = { - spacing = 5 - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 25 25 } - } - - flowcontainer = { - direction = vertical - datacontext = "[GetPlayerArmyComposition]" - - flowcontainer = { - spacing = 2 - - text_single = { - name = "strength" - text = "[InGameTopbar.GetCurrentTroopsCount]" - default_format = "#high" - align = nobaseline - } - - army_quality_icon = {} - } - - progressbar_standard = { - name = "soldiers_max" - size = { 40 8 } - visible = "[NotEqualTo_int32(ArmyComposition.GetMaxNumberOfSoldiers, '(int32)0')]" - - min = 0 - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfSoldiers)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfSoldiers)]" - } - } - } - - expand = {} - } - - expand = {} - } - } - - widget = { - name = "domain_limit" - visible = "[Not( IsLandlessAdventurer( GetPlayer ) )]" - - layoutpolicy_vertical = expanding - - button = { - size = { 112 45 } - onclick = "[ToggleGameViewData( 'my_realm', 'bookmark_domain' )]" - - tooltip = "[Character.GetDomainLimitTooltip]" - using = tooltip_ne - } - - size = { 112 70 } - - background = { - texture = "gfx/interface/skinned/resource_panel_end.dds" - } - - vbox = { - margin_top = 4 - - hbox = { - margin_bottom = 16 - - expand = {} - hbox = { - margin = { 5 5 } - spacing = 5 - - background = { - visible = "[GreaterThan_int32( Character.GetDomainSize, Character.GetDomainLimit )]" - using = Status_Bad - margin_bottom = -3 - } - - icon = { - texture = "gfx/interface/icons/icon_domain.dds" - size = { 25 25 } - } - - text_single = { - name = "value" - text = "[Character.GetDomainSize]/[Character.GetDomainLimit]" - align = nobaseline - margin_bottom = 1 - max_width = 110 - } - } - expand = {} - } - expand = {} - } - } - } - } - } - } - - type container_royal_court_tooltip = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - text = "ROYAL_COURT" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - visible = "[Not( Character.HasRoyalCourt )]" - text = "[Character.GetRoyalCourtBlockers]" - } - - cooltip_paragraph = { - visible = "[GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' )]" - text = "ROYAL_COURT_STATUS_PENDING_EVENTS_BULLET" - } - cooltip_paragraph = { - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - text = "ROYAL_COURT_STATUS_NEW_COURT_ARTIFACTS_BULLET" - } - cooltip_paragraph = { - visible = "[And(LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel ),HasDlcFeature( 'royal_court' ))]" - text = "ROYAL_COURT_STATUS_CGV_EXPECTATIONS_BULLET" - } - cooltip_paragraph = { - visible = "[GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' )]" - text = "ROYAL_COURT_STATUS_CURRENT_EVENTS_BULLET" - } - } - } - } - } - - type activity_hud_button = button_normal - { - size = { 58 58 } - - tooltip = "TT_ACTIVITY_WIDGET" - using = tooltip_above - onclick = "[Activity.OpenActivityView]" - - icon_round_button_base = {} - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - parentanchor = center - alpha = 0.5 - } - - progresspie = { - name = "progress" - visible = "[Character.HasActivityState( 'travel' )]" - size = { 50 50 } - - texture = "gfx/interface/progressbars/action_progress_thin.dds" - - framesize = { 128 128 } - frame = 2 - - widgetanchor = center - parentanchor = center - - min = 0 - max = 1 - value = "[Character.GetTravelPlan.GetData.GetNextDestinationProgress]" - } - - highlight_icon = { - texture = "[Activity.GetType.GetIcon]" - alwaystransparent = yes - size = { 45 45 } - parentanchor = center - } - } - - type icon_hud_background = icon { - size = { 200 64 } - texture = "gfx/interface/skinned/hud_bg_character_bar.dds" - spritetype = corneredtiled - spriteborder_left = 70 - spriteborder_right = 240 - texture_density = 2 - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.21 - - position = { 0 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.21 - - position = { -36 50 } - alpha = 0 - } - } - - type tax_jurisdictions_button_tooltip = widget { - alwaystransparent = no - datacontext = "[GetPlayer]" - - vbox = { - using = Background_Tooltip - spacing = 10 - margin = { 20 10 } - parentanchor = right|vcenter - text_single = { - text = "TAX_JURISDICTIONS_BUTTON" - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Or( Or( GreaterThan_int32( Character.GetUnassignedVassalsCount, '(int32)0' ), Not( Character.HasTaxSlots ) ), GreaterThan_int32( Character.GetUntaxedJurisdictionCount, '(int32)0' ) )]" - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - - text_single = { - visible = "[GreaterThan_int32( Character.GetUntaxedJurisdictionCount, '(int32)0' )]" - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_OVERVIEW_WINDOW_TAX_SLOTS_WARNING" - default_format = "#N" - max_width = 320 - } - - text_single = { - visible = "[GreaterThan_int32( Character.GetUnassignedVassalsCount, '(int32)0' )]" - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_OVERVIEW_WINDOW_UNASSIGNED_VASSALS_WARNING" - default_format = "#N" - max_width = 320 - } - - text_single = { - visible = "[Not( Character.HasTaxSlots )]" - layoutpolicy_horizontal = expanding - text = "NO_TAX_SLOT_AVAILABLE" - default_format = "#N" - max_width = 320 - } - } - } - expand = {} - } - } - - type administrative_button_tooltip = widget { - alwaystransparent = no - datacontext = "[GetPlayer]" - - vbox = { - using = Background_Tooltip - spacing = 10 - margin = { 20 10 } - parentanchor = right|vcenter - text_single = { - text = "ADMINISTRATIVE_BUTTON" - layoutpolicy_horizontal = expanding - } - expand = {} - } - } - - type epidemic_hud_tooltip_list = vbox - { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area_With_Header - margin = { 10 7 } - using = Mask_Rough_Edges - } - - cooltip_paragraph = { - block "heading_text" - { - raw_text = "#D Fill me#!" - } - default_format = "#S" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - block "epidemic_datamodel" - { - } - - item = { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[Epidemic.IsValidCheck]" - - background = { - using = Background_Area - using = Mask_Rough_Edges - using = Background_Alternate_Datamodel - margin = { 10 7 } - } - - icon_epidemic = { - tooltipwidget = epidemic_tooltip - } - - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "[Epidemic.GetName]" - default_format = "#S" - } - - cooltip_paragraph = { - text = "EPIDEMIC_TOTAL_DEATH_TOLL" - } - - block "item_extra_data" - { - } - } - - expand = {} - } - } - } - } - - type epidemic_hud_tooltip = object_tooltip_pop_out - { - blockoverride "title_text" - { - text = "EPIDEMICS_TITLE" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 16 - - epidemic_hud_tooltip_list = { - name = "realm_epidemics" - visible = "[DataModelHasItems( InGameBottomBar.GetEpidemicsInRealm )]" - - blockoverride "heading_text" - { - text = "HUD_EPIDEMICS_IN_REALM" - } - blockoverride "epidemic_datamodel" - { - datamodel = "[InGameBottomBar.GetEpidemicsInRealm]" - } - blockoverride "item_extra_data" - { - cooltip_paragraph = { - text = "EPIDMIC_TOOLTIP_DOMAIN_INFECTIONS" - } - } - } - - epidemic_hud_tooltip_list = { - name = "nearby_epidemics" - visible = "[DataModelHasItems( InGameBottomBar.GetEpidemicsBorderingRealm )]" - - blockoverride "heading_text" - { - text = "HUD_EPIDEMICS_BORDERING_REALM" - } - blockoverride "epidemic_datamodel" - { - datamodel = "[InGameBottomBar.GetEpidemicsBorderingRealm]" - } - } - - epidemic_hud_tooltip_list = { - name = "global_epidemics" - visible = "[DataModelHasItems( InGameBottomBar.GetGlobalNotificationEpidemics )]" - - blockoverride "heading_text" - { - text = "HUD_EPIDEMICS_GLOBAL_NOTIFICATIONS" - } - blockoverride "epidemic_datamodel" - { - datamodel = "[InGameBottomBar.GetGlobalNotificationEpidemics]" - } - blockoverride "item_extra_data" - { - cooltip_paragraph = { - text = "HUD_EPIDEMIC_GLOBAL_NOTIFICATION" - default_format = "#flavor" - } - } - } - } - } - } - - type button_epidemics = button - { - size = { 80 80 } - using = tooltip_ne - - onclick = "[ToggleGameView( 'epidemics' )]" - - tooltipwidget = { - epidemic_hud_tooltip = {} - } - - video_icon = { - name = "epidemic_particules" - size = { 80 80 } - - visible = "[InGameBottomBar.HasGlobalNotificationEpidemic]" - - gfxtype = videogfx - shaderfile = "" - video = "gfx/particles/fly.bk2" - loop = yes - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.8 - } - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - mirror = horizontal - alpha = 0.8 - } - } - - button = { - name = "epidemic_icon_global_notify" - visible = "[InGameBottomBar.HasGlobalNotificationEpidemic]" - texture = "gfx/interface/hud/button_epidemics_black_plague.dds" - size = { 100% 100% } - alwaystransparent = yes - } - - button = { - name = "epidemic_icon" - visible = "[Not( InGameBottomBar.HasGlobalNotificationEpidemic )]" - texture = "gfx/interface/hud/button_epidemics.dds" - size = { 100% 100% } - alwaystransparent = yes - } - } - - type legends_hud_tooltip = object_tooltip_pop_out - { - blockoverride "title_text" - { - text = "LEGENDS_TITLE" - default_format = "#T" - margin = { 0 5 } - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - datacontext = "[GetPlayer]" - datacontext = "[Character.GetPromotedLegend]" - datacontext = "[AccessLocalPlayerCachedData]" - - vbox = { - name = "promoted_legend" - layoutpolicy_horizontal = expanding - spacing = 15 - - visible = "[And( Legend.IsValid, Not( Legend.IsCompleted ) )]" - - background = { - using = Background_Area_With_Header - margin = { 10 7 } - using = Mask_Rough_Edges - } - - cooltip_paragraph = { - datacontext = "[Character.GetPromotedLegend]" - - text = "PROMOTED_LEGEND" - default_format = "#S" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area - using = Mask_Rough_Edges - using = Background_Alternate_Datamodel - margin = { 10 7 } - } - - icon_legend = { - datacontext = "[Legend.GetType]" - tooltipwidget = legend_tooltip - } - - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "[Legend.GetName]" - default_format = "#S" - } - - legend_summary_vbox = {} - } - - expand = {} - } - } - - vbox = { - name = "legend_seeds" - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "LEGEND_SEEDS" - default_format = "#S" - } - - cooltip_paragraph = { - text = "HUD_LEGEND_SEEDS" - visible = "[Or( DataModelHasItems( Character.GetLegendSeeds ), DataModelHasItems( LocalPlayerCachedData.GetTriggeredLegendSeeds ) )]" - } - - cooltip_paragraph = { - text = "LEGEND_SEEDS_EMPTY" - visible = "[And( IsDataModelEmpty( Character.GetLegendSeeds ), IsDataModelEmpty( LocalPlayerCachedData.GetTriggeredLegendSeeds ) )]" - } - } - } - } - } - - type icon_power_sharing_level = highlight_icon { - size = { 28 28 } - - texture = "gfx/interface/window_regency/regency_level_button_badge.dds" - - text_single = { - align = nobaseline - parentanchor = center - raw_text = "[Diarchy.GetPowerLevel]" - } - } - - - type legitimacy_hud_tooltip = object_tooltip_pop_out - { - visible = "[And(LegitimacyType.IsValid, Character.GetGovernment.HasRule( 'legitimacy' ))]" - - blockoverride "title_text" - { - margin = { 0 8 } - text = "legitimacy_hud_tt" - default_format = "#T" - } - - blockoverride "concept_link" - { - text = "[legitimacy|E]" - } - - blockoverride "subheading" - { - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - fontsize_min = 14 - using = Font_Size_Small - text = "legitimacy_hud_tt_subheading" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 400 - - margin_top = -4 - } - } - - blockoverride "header_additions" - { - widget = { - size = { 120 74 } - - widget = { - size = { 240 74 } - position = { -16 0 } - visible = "[And( Not( IsNomad( GetPlayer ) ), Not( GetPlayer.GetGovernment.IsType( 'celestial_government' ) ) )]" - - proportional_icon = { - size = { 100% 100% } - visible = "[GreaterThanOrEqualTo_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/window_legend_chronicle/expected_legitimacy_decoration.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - } - - proportional_icon = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/window_legend_chronicle/under_expected_legitimacy_decoration.dds" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - } - } - - widget = { - size = { 240 74 } - position = { -16 0 } - visible = "[IsNomad( GetPlayer )]" - - proportional_icon = { - size = { 100% 100% } - visible = "[GreaterThanOrEqualTo_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/illustrations/decisions/mpo_decision_great_khan.dds" - mirror = horizontal - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - - proportional_icon = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/illustrations/event_scenes/mpo_raid_burning_asian.dds" - mirror = horizontal - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - } - - widget = { - size = { 240 74 } - position = { -16 0 } - visible = "[GetPlayer.GetGovernment.IsType( 'celestial_government' )]" - - proportional_icon = { - size = { 100% 100% } - visible = "[GreaterThanOrEqualTo_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds" - mirror = horizontal - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - - proportional_icon = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_consolidation.dds" - mirror = horizontal - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - } - } - } - - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "LEGITIMACY_EFFECTS" - max_width = 500 - } - expand = { - layoutpolicy_horizontal = expanding - } - } - spacer = { - size = { 0 15 } - } - - ### LEGITIMACY BREAKDOWN - hbox = { - datacontext = "[Character.GetMonthlyLegitimacyTooltip]" - visible = "[Not( EqualTo_CFixedPoint( Character.GetLegitimacy, '(CFixedPoint)0' ))]" - layoutpolicy_horizontal = expanding - using = tooltip_se - - text_single = { - - layoutpolicy_horizontal = expanding - - text = "[Character.GetMonthlyLegitimacy]" - align = nobaseline - } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - visible = "[ValueBreakdown.HasTooltip]" - widget_value_breakdown_tooltip = {} - } - expand = {} - } - - spacer = { - size = { 0 15 } - } - - hbox = { - name = "track_header" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_left = -10 - min_height = 45 - - background = { - using = Background_Area - margin = { -5 -5 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - } - - icon_legitimacy_flat = {} - - text_single = { - text = "LEGITIMACY_TRACK_TITLE" - layoutpolicy_horizontal = expanding - align = nobaseline - } - } - - margin_widget = { - size = { 500 50 } - margin = { 10 0 } - - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - - hbox_complex_bar_progress = { - layoutpolicy_horizontal = expanding - margin_top = 30 - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - position = { 0 -10 } - blockoverride "marker" - { - widget_level_marker = { - scale = 0.75 - - # Hide last one, it is the maximum not an actual level - visible = "[LessThan_int32( PdxGuiWidget.GetIndexInDataModel, GetDataModelSize( LegitimacyType.GetLevels ) )]" - - blockoverride "marker_addon" { - icon = { - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - position = { -4 28 } - size = { 8 40 } - alpha = 0.4 - - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - } - - widget = { - size = { 52 52 } - position = { -26 24 } - visible = "[And( EqualTo_int32( Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex, PdxGuiWidget.GetIndexInDataModel ), Not( Character.GetGovernment.HasRule( 'deny_powerful_vassal' ) ) ) ]" - - icon = { - size = { 100% 100% } - visible = "[Not(LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex ))]" - texture = "gfx/interface/window_legend_chronicle/pin_expected_legitimacy.dds" - } - - icon = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/window_legend_chronicle/pin_under_expected_legitimacy.dds" - } - - widget = { - parentanchor = center - size = { 28 28 } - - icon_flat_standard_red = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]" - texture = "[LegitimacyType.GetFlatIcon]" - } - - icon_flat_standard = { - size = { 100% 100% } - visible = "[Not(LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex ))]" - texture = "[LegitimacyType.GetFlatIcon]" - } - } - } - widget = { - size = { 52 52 } - position = { -26 24 } - visible = "[And( EqualTo_int32( Character.GetAverageVassalLegitimacyExpectation.GetIndex, PdxGuiWidget.GetIndexInDataModel ), Character.GetGovernment.HasRule( 'deny_powerful_vassal' ) ) ]" - - icon = { - size = { 100% 100% } - visible = "[Not(LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAverageVassalLegitimacyExpectation.GetIndex ))]" - texture = "gfx/interface/window_legend_chronicle/pin_expected_legitimacy.dds" - } - - icon = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAverageVassalLegitimacyExpectation.GetIndex )]" - texture = "gfx/interface/window_legend_chronicle/pin_under_expected_legitimacy.dds" - } - - widget = { - parentanchor = center - size = { 28 28 } - - icon_flat_standard_red = { - size = { 100% 100% } - visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAverageVassalLegitimacyExpectation.GetIndex )]" - texture = "[LegitimacyType.GetFlatIcon]" - } - - icon_flat_standard = { - size = { 100% 100% } - visible = "[Not(LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAverageVassalLegitimacyExpectation.GetIndex ))]" - texture = "[LegitimacyType.GetFlatIcon]" - } - } - } - } - - blockoverride "visible_active" - { - visible = "[EqualTo_int32( LegitimacyLevel.GetIndex, PdxGuiWidget.GetIndexInDataModel )]" - } - - blockoverride "visible_inactive" - { - visible = "[NotEqualTo_int32( LegitimacyLevel.GetIndex, PdxGuiWidget.GetIndexInDataModel )]" - } - - blockoverride "marker_tooltip" - { - datacontext_from_model = { - datamodel = "[LegitimacyType.GetLevels]" - index = "[PdxGuiWidget.GetIndexInDataModel]" - } - tooltip = "LEGITIMACY_TRACK_TOOLTIP" - using = tooltip_se - } - - blockoverride "marker_text" - { - text = "[PdxGuiWidget.GetIndexInDataModel|V]" - } - } - } - } - } - - spacer = { - size = { 0 15 } - } - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - visible = "[Character.HasVassals]" - spacing = 10 - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "LEGITIMACY_AVERAGE_EXPECTATIONS" - visible = "[Not(Character.GetGovernment.HasRule( 'deny_powerful_vassal' ))]" - } - cooltip_paragraph = { - text = "LEGITIMACY_AVERAGE_EXPECTATIONS_NO_POWERFUL_VASSALS" - visible = "[Character.GetGovernment.HasRule( 'deny_powerful_vassal' )]" - } - - cooltip_paragraph = { - visible = "[And( LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex ), Not( Character.GetGovernment.HasRule( 'deny_powerful_vassal' ) ) ) ]" - text = "LEGITIMACY_BELOW_AVERAGE_EXPECTATIONS" - } - cooltip_paragraph = { - visible = "[And( LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAverageVassalLegitimacyExpectation.GetIndex ), Character.GetGovernment.HasRule( 'deny_powerful_vassal' ) ) ]" - text = "LEGITIMACY_BELOW_AVERAGE_EXPECTATIONS" - } - } - expand = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - - type hbox_merit_with_label = hbox { - visible = "[Character.ShouldShowMerit]" - spacing = 4 - margin = { 4 0 } - - block "hbox_merit_with_label_background" - { - background = { - using = Background_Area - margin = { 4 4 } - } - } - - widget_merit = { - blockoverride "merit_widget_tooltip" - { - # use our own hitbox for the tooltip - } - } - - text_single = { - name = "rank_number" - visible = "[GreaterThanOrEqualTo_int32( Character.GetMeritLevel, '(int32)1' )]" - text = "[GetMeritLevelShortNameNoTooltip( MeritItem.GetCurrentLevel )|V]" - - align = nobaseline - } - - text_single = { - name = "no_rank" - visible = "[LessThanOrEqualTo_int32( Character.GetMeritLevel, '(int32)0' )]" - text = "[GetMeritLevelShortNameNoTooltip( MeritItem.GetCurrentLevel )]" - default_format = "#weak" - max_width = 50 - - align = nobaseline - } - - tooltipwidget = { - merit_hud_tooltip = { - block "merit_tooltip" {} - } - } - } - - type widget_merit = widget { - visible = "[Character.ShouldShowMerit]" - - block "icon_size" - { - size = { 32 32 } - } - - using = tooltip_ne - - block "merit_widget_tooltip" - { - tooltipwidget = { - merit_hud_tooltip = { - block "merit_tooltip" {} - } - } - } - - block "background_texture" - { - icon = { - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - size = { 100% 100% } - } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - } - - icon = { - parentanchor = center - size = { 66% 66% } - - texture = "[Character.GetMeritLevelTexture]" - frame = "[IntToFrameIndex( Character.GetMeritLevel )]" - - modify_texture = { - name = "lvl_increase" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "lvl_decrease" - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "merit_level_increase" - next = "merit_level_increase_2" - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "merit_level_increase_2" - next = "merit_level_increase_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_increase" - alpha = 0.7 - } - } - - state = { - name = "merit_level_increase_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "merit_level_decrease" - next = "merit_level_decrease_2" - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - - state = { - name = "merit_level_decrease_2" - next = "merit_level_decrease_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0.7 - } - } - - state = { - name = "merit_level_decrease_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - } - - progresspie = { - name = "progress" - size = { 87% 87% } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - min = 0 - max = 100 - value = "[MeritItem.GetProgress]" - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - } - - type widget_merit_hud = widget { - visible = "[And(Character.ShouldShowMerit, Character.IsAlive)]" - size = { 74 94 } - - using = tooltip_ne - - block "merit_widget_tooltip" - { - tooltipwidget = { - merit_hud_tooltip = { - block "merit_tooltip" {} - } - } - } - - # WIDGET BACKGROUND TEXTURE - icon = { - texture = "gfx/interface/hud/tgp_widget_merit_background.dds" - size = { 100% 100% } - } - - # MERIT ICON - icon = { - parentanchor = top|hcenter - position = { 0 17 } - size = { 40 40 } - - texture = "[Character.GetMeritLevelTexture]" - frame = "[IntToFrameIndex( Character.GetMeritLevel )]" - - modify_texture = { - name = "lvl_increase" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "lvl_decrease" - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "merit_level_increase" - next = "merit_level_increase_2" - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "merit_level_increase_2" - next = "merit_level_increase_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_increase" - alpha = 0.7 - } - } - - state = { - name = "merit_level_increase_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "merit_level_decrease" - next = "merit_level_decrease_2" - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - - state = { - name = "merit_level_decrease_2" - next = "merit_level_decrease_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0.7 - } - } - - state = { - name = "merit_level_decrease_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_decrease" - alpha = 0 - } - } - } - - # PROGRESS BAR - progresspie = { - name = "progress" - parentanchor = top|hcenter - position = { 0 9 } - size = { 56 56 } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - min = 0 - max = 100 - value = "[MeritItem.GetProgress]" - - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - - # RANK - text_single = { - visible = "[GreaterThan_int32( Character.GetMeritLevel, '(int32)0' )]" - parentanchor = bottom|hcenter - position = { 0 -6 } - - text = "[GetMeritLevelShortNameNoTooltip( MeritItem.GetCurrentLevel )|V]" - align = nobaseline - using = Font_Size_Small - } - - # IF YOU HAVE NO RANK - text_single = { - visible = "[EqualTo_int32( Character.GetMeritLevel, '(int32)0' )]" - parentanchor = bottom|hcenter - position = { 0 -5 } - - raw_text = "-" - align = nobaseline - using = Font_Size_Small - } - } - - type hbox_merit_complex_bar_progress = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[MeritItem.GetMeritStretchFactor]" - allow_outside = yes - - block "filled" { - background = { - spriteType = Corneredstretched - spriteborder = { 3 3 } - - block "texture_merit" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[MeritItem.GetOverflowMeritStretchFactor]" - visible = "[GreaterThan_int32( MeritItem.GetOverflowMeritStretchFactor, '(int32)0' )]" - allow_outside = yes - - tooltip = "MERIT_RANK_CAP_TT" - - block "next" { - background = { - spriteType = Corneredstretched - spriteborder = { 3 3 } - - block "texture_overflow_merit" { - texture = "gfx/interface/progressbars/progress_red.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[MeritItem.GetLeftoverSpaceStretchFactor]" - allow_outside = yes - - block "empty" { - background = { - spriteType = Corneredstretched - spriteborder = { 3 3 } - - block "texture_empty" { - texture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - } - - type merit_hud_tooltip = object_tooltip_pop_out { - datacontext = "[MeritItem.GetValueItem]" - datacontext = "[MeritItem.GetComplexBar]" - visible = "[Character.HasMerit]" - - blockoverride "title_text" - { - text = "[GetMeritModifierByLevel( Character.GetMeritLevel ).GetName]" - default_format = "#T" - } - - blockoverride "concept_link" - { - text = "[merit_level|E]" - } - - blockoverride "subheading" - { - text_single = { - max_width = 400 - layoutpolicy_horizontal = expanding - - text = "[Character.GetCareerPathDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = Font_Size_Small - fontsize_min = 14 - autoresize = yes - default_format = "#weak_glow" - } - } - - blockoverride "header_additions" - { - widget = { - size = { 60 74 } - - icon = { - size = { 64 64 } - parentanchor = center - position = { -8 0 } - - texture = "[Character.GetMeritLevelTexture]" - frame = "[IntToFrameIndex( Character.GetMeritLevel )]" - } - } - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - margin_right = 5 - spacing = 16 - - ### MERIT EFFECTS - vbox = { - layoutpolicy_horizontal = expanding - - ### modifier effects - cooltip_paragraph = { - visible = "[Not( StringIsEmpty( GetMeritLevelEffects( Character.GetMeritLevel ) ) )]" - max_width = 500 - text = "[GetMeritLevelEffects( Character.GetMeritLevel )]" - } - - ### Merit affecting Movement Power - cooltip_paragraph = { - visible = "[Character.ShouldShowMovementPower]" - max_width = 500 - text = "MERIT_MOVEMENT_POWER" - } - - ### Merit enabling appointment - cooltip_paragraph = { - max_width = 500 - name = "merit_appointment" - layoutpolicy_horizontal = expanding - - text = "[GetMaxAppointmentRankDescription( 'merit', Character.GetMeritLevel )]" - } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "MERIT_PROGRESS_HEADING" - } - - ### MERIT COMPLEX PROGRESS BAR - widget = { - layoutpolicy_horizontal = expanding - size = { 500 50 } - - hbox_merit_complex_bar_progress = { - layoutpolicy_horizontal = expanding - margin_top = 30 - margin_right = 16 - margin_left = 5 - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - position = { 0 -10 } - - margin_right = 16 - - blockoverride "marker" - { - widget_level_marker = { - visible = "[And( GreaterThan_int32( ComplexBarItem.GetIndex, '(int32)0' ), LessThan_int32( PdxGuiWidget.GetIndexInDataModel, GetDataModelSize( ComplexBar.GetItems ) ) )]" - scale = 0.75 - - blockoverride "marker_size" - { - size = { 55 55 } - } - - blockoverride "marker_size_inactive" - { - size = { 45 45 } - } - - blockoverride "marker_addon" { - icon = { - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - position = { -4 42 } - size = { 8 23 } - alpha = 0.3 - - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - } - - widget = { - size = { 52 52 } - position = { -26 24 } - visible = "[EqualTo_int32( Add_int32( Character.GetMaxMeritLevelForCharacter, '(int32)1' ), PdxGuiWidget.GetIndexInDataModel )]" - tooltip = "MERIT_RANK_CAP_TT" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_legend_chronicle/pin_under_expected_legitimacy.dds" - } - - icon_flat_standard_red = { - parentanchor = center - size = { 26 26 } - texture = "gfx/interface/icons/flat_icons/merit.dds" - } - } - } - - blockoverride "visible_active" - { - visible = "[EqualTo_int32( MeritItem.GetCurrentLevel, ComplexBarItem.GetIndex )]" - } - - blockoverride "level_inactive_style" - { - datacontext = "[ComplexBarItem]" - allow_outside = yes - - datacontext_from_model = { - datamodel = "[MeritItem.GetLevels]" - index = "[PdxGuiWidget.GetIndexInDataModel]" - } - - modify_texture = { - visible = "[GreaterThan_int32( ComplexBarItem.GetIndex, PlayerValueItem.GetMaxLevelIndex( Character.Self ) )]" - texture = "gfx/interface/colors/black.dds" - blend_mode = multiply - alpha = 0.1 - } - } - - blockoverride "visible_inactive" - { - visible = "[NotEqualTo_int32( MeritItem.GetCurrentLevel, ComplexBarItem.GetIndex )]" - } - - blockoverride "marker_tooltip" - { - datacontext = "[ComplexBarItem]" - - datacontext_from_model = { - datamodel = "[MeritItem.GetLevels]" - index = "[PdxGuiWidget.GetIndexInDataModel]" - } - - tooltip = "MERIT_PROGRESSBAR_MARKER_TOOLTIP" - using = tooltip_se - } - - blockoverride "marker_text" - { - text = "[GetMeritLevelShortNameNoTooltip( ComplexBarItem.GetIndex )]" - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - ### MERIT TOTAL - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetTotalMerit]" - align = nobaseline - } - - ### MERIT CAP - text_single = { - visible = "[PlayerValueItem.HasNonStandardLevel( Character.Self )]" - layoutpolicy_horizontal = expanding - - text = "[PlayerValueItem.GetMaxLevel( Character.Self )]" - align = right|nobaseline - default_format = "#underline" - - tooltip = "MAX_MERIT_RANK_BREAKDOWN_TOOLTIP" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - ### MERIT BREAKDOWN WITH TOOLTIP - text_single = { - datacontext = "[PlayerValueItem.GetBalanceGained]" - - text = "[Character.GetMeritBalanceBreakdown]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { } - } - } - - expand = {} - } - } - - ### MERIT EXAMINATIONS - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "MERIT_TOOLTIP_COMPLETED_EXAMINATIONS" - } - - hbox = { - datacontext = "[Character.MakeScope]" - spacing = 50 - - widget_childrens_exam_status = {} - - widget_provincial_exam_status = {} - - widget_metropolitan_exam_status = {} - - widget_palace_exam_status = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "MERIT_TOOLTIP_EXAMINATION_DISCLAIMER" - default_format = "#weak" - } - } - } - } - } - - type passed_examination_icon = icon_flat_standard_green - { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/passed_examination_icon.dds" - - background = { - using = Background_Area_Solid - - block "background_margins" - { - margin = { -1 -1 } - } - } - } - - type failed_examination_icon = icon_flat_standard_red - { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/failed_examination_icon.dds" - - background = { - using = Background_Area_Solid - - margin = { -1 -1 } - } - } - - type herd_breakdown_hud_toolip = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - text = "DOMICILE_HERD_TITLE" - default_format = "#T" - - block "herd_limit_breakdown" - { - datacontext = "[InGameTopbar.GetHerdLimitBreakdown( Domicile.Self )]" - } - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - visible = "[Domicile.IsAboveHerdLimit]" - text = "[Domicile.GetAboveHerdLimitEffects]" - } - - spacer = { - visible = "[Domicile.IsAboveHerdLimit]" - size = { 0 15 } - } - - cooltip_paragraph = { - block "herd_change_breakdown" - { - datacontext = "[InGameTopbar.GetHerdChangeBreakdown]" - } - - text = "VALUE_BREAKDOWN_TEXT_LINK" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - cooltip_paragraph = { - block "herd_conversion_breakdown" - { - datacontext = "[InGameTopbar.GetHerdConversionBreakdown( Domicile.Self )]" - } - - text = "VALUE_BREAKDOWN_TEXT_LINK" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - spacer = { - size = { 0 15 } - } - - cooltip_paragraph = { - visible = "[Character.HasRaisedHorde]" - text = "DOMICILE_HERD_ALREADY_RAISED" - } - - cooltip_paragraph = { - visible = "[Not( Character.HasRaisedHorde )]" - text = "DOMICILE_HERD_HERD_TO_RAISE" - } - } - } - } - } -} diff --git a/N3OW/gui/hud_bottom.gui b/N3OW/gui/hud_bottom.gui deleted file mode 100644 index 1b274ecf..00000000 --- a/N3OW/gui/hud_bottom.gui +++ /dev/null @@ -1,665 +0,0 @@ -widget = { - name = "hud_bottom" - - size = { 100% 100% } - visible = "[IsDefaultGUIMode]" - layer = bottom_bottom - # Widgets for blocking map tooltips - - widget = { - parentanchor = bottom|right - size = { 220 225 } - filter_mouse = all - alwaystransparent = no - } - - widget = { - parentanchor = bottom|right - size = { 630 80 } - filter_mouse = all - alwaystransparent = no - } - - widget = { - parentanchor = top|right - size = { 650 51 } - filter_mouse = all - alwaystransparent = no - } - - widget = { - parentanchor = top|right - size = { 55 450 } - filter_mouse = all - alwaystransparent = no - } - - widget = { - parentanchor = bottom|left - size = { 435 80 } - filter_mouse = all - alwaystransparent = no - } - - ###################################################### - ###################### PAUSE TEXT #################### - ###################################################### - container = { - visible = "[Not(IsManuallyPaused)]" - visible_at_creation = no - parentanchor = top|hcenter - widgetanchor = center - position = { 0 140 } - scale = 1 - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - state = { - name = _show - next = "fade_out" - using = Animation_Curve_Default - alpha = 0.6 - # delay = 1 - duration = 0.2 - scale = 1.2 - } - - state = { - name = "fade_out" - using = Animation_Curve_Default - duration = 0.3 - alpha = 0 - scale = 0 - delay = 0.2 - } - - text_single = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)1')]" - parentanchor = center - text = "CURRENT_SPEED_TEXT_1" - fontsize = 25 - default_format = "#medium;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - using = Font_Type_Flavor - - background = { - using = Background_Title - margin = { 30 0 } - alpha = 1 - } - } - - text_single = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)2')]" - parentanchor = center - text = "CURRENT_SPEED_TEXT_2" - fontsize = 25 - default_format = "#medium;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - using = Font_Type_Flavor - - background = { - using = Background_Title - margin = { 30 0 } - alpha = 1 - } - } - - text_single = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)3')]" - parentanchor = center - text = "CURRENT_SPEED_TEXT_3" - fontsize = 25 - default_format = "#medium;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - using = Font_Type_Flavor - - background = { - using = Background_Title - margin = { 30 0 } - alpha = 1 - } - } - - text_single = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)4')]" - parentanchor = center - text = "CURRENT_SPEED_TEXT_4" - fontsize = 25 - default_format = "#medium;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - using = Font_Type_Flavor - - background = { - using = Background_Title - margin = { 30 0 } - alpha = 1 - } - } - - text_single = { - visible = "[EqualTo_int32(GetCurrentGameSpeed, '(int32)5')]" - parentanchor = center - text = "CURRENT_SPEED_TEXT_5" - fontsize = 25 - default_format = "#medium;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - using = Font_Type_Flavor - - background = { - using = Background_Title - margin = { 30 0 } - alpha = 1 - } - } - } - - text_single = { - name = "paused_by_player_text_used_by_tutorial" - visible = "[And( Not(IsGameViewOpen('barbershop')), And(And(IsManuallyPaused, Not(IsPauseMenuShown)), Not(GameHasMultiplePlayers)))]" - parentanchor = top|hcenter - widgetanchor = center - position = { 0 135 } - - margin = { 50 0 } - margin_bottom = 10 - - fontsize = 40 - text = "PAUSED_BY_PLAYER" - using = Font_Type_Flavor - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - fonttintcolor = { 1.0 1.0 1.0 0.5 } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - background = { - using = Background_Title - margin = { 0 -5 } - } - } - - text_single = { - visible = "[HasOpenSuccession( GetPlayer )]" - parentanchor = top|hcenter - widgetanchor = center - position = { 0 87 } - - margin = { 20 0 } - margin_bottom = 7 - - fontsize = 18 - text = "HAS_OPEN_SUCCESSION_SUB_TEXT" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - fonttintcolor = { 1.0 1.0 1.0 0.5 } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - background = { - using = Background_Area_Dark - margin = { 0 0 } - } - } - - flowcontainer = { - name = "multiplayer_paused_by_player" - visible = "[And(IsManuallyPaused, GameHasMultiplePlayers)]" - - parentanchor = top|hcenter - position = { 0 90 } - - ignoreinvisible = yes - direction = vertical - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - text_single = { - fontsize = 40 - text = "PAUSED_BY_PLAYER" - using = Font_Type_Flavor - parentanchor = hcenter - - margin = { 50 0 } - margin_bottom = 10 - - background = { - using = Background_Title - } - } - - text_label_center = { - text = "[SelectLocalization( StringIsEmpty( GetPausedBy ), '', 'PAUSED_BY_PLAYER_MP' )]" - parentanchor = hcenter - } - - text_label_center = { - visible = "[And( IsPausedByMe, Not( CanAnyoneUnpause ) )]" - text = "PAUSED_BY_UNPAUSE_ONLY_ME" - parentanchor = hcenter - } - - text_label_center = { - visible = "[And( Not( IsPausedByMe ), Not( CanAnyoneUnpause ) )]" - text = "PAUSED_BY_UNPAUSE_ONLY_PAUSED_BY" - parentanchor = hcenter - } - - text_label_center = { - visible = "[CanAnyoneUnpause]" - text = "PAUSED_BY_UNPAUSE_ANYONE" - parentanchor = hcenter - } - } - - ###################################################### - ###################### MAPMODE TEXT ################## - ###################################################### - - widget = { - visible = "[And( Not(IsGameViewOpen('barbershop')), And( Not( IsMapMode( 'realms' ) ), And( Not( IsGameViewOpen( 'struggle' ) ), Not( IsAnySituationViewOpen ) ) ) )]" - parentanchor = bottom|hcenter - size = { 100% 100 } - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - mirror = vertical - color = { 0.2 0.2 0.2 1 } - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - - background = { - spriteType = Corneredtiled - color = { 0.6 0.7 0.65 0.2 } - texture ="gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - - modify_texture = { - mirror = vertical - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - button_tertiary = { - name = "back_to_realms" - parentanchor = top|hcenter - min_width = 250 - position = { 0 -10 } - onclick = "[SetMapMode('realms')]" - down = "[IsMapMode('realms')]" - shortcut = "close_window" - - tooltip = "BACK_TO_REALMS_TT" - using = tooltip_se - alpha = 0.8 - - state = { - name = _mouse_hierarchy_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_leave - alpha = 0.8 - duration = 0.25 - using = Animation_Curve_Default - } - - hbox = { - margin = { 10 0 } - set_parent_size_to_minimum = yes - - text_single = { - alwaystransparent = yes - text = "BACK_TO_REALMS" - default_format = "#clickable" - align = nobaseline - margin = { 5 0 } - } - - widget = { - size = { 40 35 } - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 50 50 } - texture = "gfx/interface/icons/flat_icons/map_modes/realms.dds" - } - } - } - } # button_tertiary "back_to_realms" - - button_tertiary = { - name = "explore_plagues" - parentanchor = top|hcenter - min_width = 250 - position = { 0 -50 } - onclick = "[ToggleGameView( 'epidemics' )]" - down = "[IsMapMode('realms')]" - visible = "[IsMapMode('epidemics')]" - shortcut = "explore_plagues" - allow_outside = yes - - tooltip = "EXPLORE_PLAGUES_TT" - using = tooltip_se - alpha = 0.8 - - state = { - name = _mouse_hierarchy_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_leave - alpha = 0.8 - duration = 0.25 - using = Animation_Curve_Default - } - - hbox = { - margin = { 10 0 } - set_parent_size_to_minimum = yes - - text_single = { - alwaystransparent = yes - text = "EXPLORE_PLAGUES" - default_format = "#clickable" - align = nobaseline - margin = { 5 0 } - } - - widget = { - size = { 40 35 } - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/map_modes/epidemics.dds" - } - } - } - } - - button_tertiary = { - name = "explore_legends" - parentanchor = top|hcenter - min_width = 250 - position = { 0 -50 } - onclick = "[ToggleGameView( 'legends' )]" - down = "[IsMapMode('realms')]" - visible = "[IsMapMode('legends')]" - shortcut = "explore_legends" - allow_outside = yes - - tooltip = "EXPLORE_LEGENDS_TT" - using = tooltip_se - alpha = 0.8 - - state = { - name = _mouse_hierarchy_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_hierarchy_leave - alpha = 0.8 - duration = 0.25 - using = Animation_Curve_Default - } - - hbox = { - margin = { 10 0 } - set_parent_size_to_minimum = yes - - text_single = { - alwaystransparent = yes - text = "EXPLORE_LEGENDS" - default_format = "#clickable" - align = nobaseline - margin = { 5 0 } - } - - widget = { - size = { 40 35 } - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - } - } - } - - flowcontainer = { - name = "map_mode_header" - - parentanchor = center - position = { 0 10 } - direction = vertical - ignoreinvisible = yes - margin = { 15 10 } - margin_top = 5 - - text_label_center = { - visible = "[IsMapMode('dejure_counties')]" - text = "DE_JURE_COUNTIES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('dejure_duchies')]" - text = "DE_JURE_DUCHIES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('dejure_kingdoms')]" - text = "DE_JURE_KINGDOMS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('dejure_empires')]" - text = "DE_JURE_EMPIRES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('religions')]" - text = "FAITHS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('cultures')]" - text = "CULTURES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('houses')]" - text = "HOUSES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('government')]" - text = "GOVERNMENTS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('players')]" - text = "PLAYERS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('county_development')]" - text = "DEVELOPMENT_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('simple_terrain')]" - text = "SIMPLE_TERRAIN_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('court_languages')]" - text = "COURT_LANGUAGES_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('economy_buildings')]" - text = "ECONOMY_BUILDINGS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('county_control')]" - text = "COUNTY_CONTROL_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('landless_rulers')]" - text = "LANDLESS_RULERS_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - - text_label_center = { - visible = "[IsMapMode('silk_road')]" - text = "SILK_ROAD_HEADER" - fontsize = 25 - margin = { 30 0 } - align = nobaseline - } - } # flowcontainer "map_mode_header" - } - - - ## PAUSE BORDER - icon = { - name = "pause_border_strong" - visible = "[IsManuallyPaused]" - size = { 100% 100% } - - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - spriteType = Corneredtiled - spriteborder = { 40 40 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - - icon = { - name = "pause_border_weak" - visible = "[And(IsPausedByEvent, Not(IsManuallyPaused))]" - size = { 100% 100% } - alpha = 0.5 - - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - spriteType = Corneredtiled - spriteborder = { 40 40 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } -} diff --git a/N3OW/gui/hud_notification_templates.gui b/N3OW/gui/hud_notification_templates.gui deleted file mode 100644 index cf9d786a..00000000 --- a/N3OW/gui/hud_notification_templates.gui +++ /dev/null @@ -1,2598 +0,0 @@ -types Notifications { - - ###################################################### - ###################### ALERTS ######################## - ###################################################### - type notifications_alerts = widget { - size = { 720 116 } - scissor = yes - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - flowcontainer = { - visible = "[Not(SinglePlayerShowingPausedSuccession)]" - direction = horizontal - spacing = 10 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - dynamicgridbox = { - name = "alert_items" - datamodel = "[InGameTopbar.GetAlertItems]" - - flipdirection = yes - ignoreinvisible = yes - maxverticalslots = 1 - - item = { - container = { - button = { - name = "action_icon" - parentanchor = center - framesize = { 144 144 } - size = { 0 0 } - - gfxtype = buttongfx - effectname = "NoHighlight" - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "[GUIAlertItem.GetImportantActionType.GetIcon]" - - onclick = "[GUIAlertItem.OnClick]" - onrightclick = "[GUIAlertItem.OnRightClick]" - button_ignore = none - - tooltip = "[GUIAlertItem.GetTooltip]" - using = tooltip_below - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_alert_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "glow" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - ### Adding animation ### - state = { - name = "when_added" - next = e - position_y = 10 - duration = 0.45 - size = { 72 72 } - using = Animation_Curve_Default - trigger_when = "[GUIAlertItem.IsAdding]" - on_start = "[GUIAlertItem.StartAnimation]" - on_start = "[GUIAlertItem.PlayShowSound]" - } - - state = { - name = e - next = f - position_y = 20 - duration = 0.45 - size = { 88 88 } - using = Animation_Curve_Default - } - - state = { - name = f - next = a - position_y = 0 - duration = 0.45 - size = { 72 72 } - bezier = { 0.43 0 0.2 2.2 } - on_finish = "[GUIAlertItem.AddingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - } - - ### idle animation ### - state = { - name = a - next = b - duration = 0 - delay = 10 - size = { 72 72 } - position_y = 0 - on_start = "[GUIAlertItem.StartAnimation]" - on_finish = "[GUIAlertItem.AddingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - using = Animation_Curve_Default - } - - state = { - name = b - next = c - duration = 0.3 - size = { 78 78 } - scale = 1.2 - bezier = { 0 1.6 0.7 1.8 } - position_y = 20 - on_start = "[GUIAlertItem.StartAnimation]" - on_finish = "[GUIAlertItem.AddingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - using = Animation_Curve_Default - } - - state = { - name = c - next = d - duration = 0.2 - size = { 72 72 } - scale = 0.8 - position_y = 0 - on_start = "[GUIAlertItem.StartAnimation]" - on_finish = "[GUIAlertItem.AddingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - using = Animation_Curve_Default - } - - state = { - name = d - duration = 0.2 - scale = 0.9 - size = { 72 72 } - position_y = 0 - on_start = "[GUIAlertItem.StartAnimation]" - on_finish = "[GUIAlertItem.AddingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - using = Animation_Curve_Default - } - - state = { - name = "already_added" - duration = 0 - size = { 72 72 } - scale = 0.9 - trigger_when = "[GUIAlertItem.IsAdded]" - } - - state = { - name = "when_removed" - duration = 0.3 - size = { 0 0 } - trigger_when = "[GUIAlertItem.IsRemoving]" - on_start = "[GUIAlertItem.StartAnimation]" - on_finish = "[GUIAlertItem.RemovingFinished]" - on_finish = "[GUIAlertItem.EndAnimation]" - } - - #### Shimmer #### - state = { - trigger_on_create = yes - name = _show - next = shimmer - duration = 0.2 - scale = 0.9 - - modify_texture = { - name = "glow" - translate_uv = { 1 -1 } - } - } - - state = { - name = shimmer - next = pause - duration = 1.2 - scale = 0.9 - position = { 0 0 } - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "glow" - translate_uv = { -1 1 } - } - } - - state = { - name = pause - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "glow" - translate_uv = { 1 -1 } - } - } - - state = { - name = _mouse_enter - duration = 0.05 - frame = 2 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_oversound"} - } - - state = { - name = _mouse_leave - duration = 0.1 - frame = 1 - position = { 0 0 } - scale = 0.9 - } - - state = { - name = _mouse_press - duration = 0.25 - frame = 3 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_mouse_press"} - } - - state = { - name = _mouse_release - duration = 0.25 - frame = 2 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_mouse_release"} - } - } - } - - } - } - - ### Diplomatic offers - dynamicgridbox = { - name = "diplomatic_items" - datamodel = "[InGameTopbar.GetDiplomaticItems]" - - flipdirection = yes - ignoreinvisible = yes - maxhorizontalslots = 10 - maxverticalslots = 3 - - item = { - container = { - visible = "[DiplomaticItem.IsVisible]" - - icon = { - name = "notification_glow" - size = { 150% 150% } - parentanchor = center - texture = "gfx/interface/component_masks/mask_rays.dds" - color = { 0.7 0.66 0.61 1 } - - modify_texture = { - rotate_uv = 0 - name = rotation - texture = "gfx/interface/component_masks/mask_rays.dds" - blend_mode = colordodge - } - - ### idle animation ### - state = { - trigger_on_create = yes - name = preshow - next = show - - alpha = 0 - scale = 1 - } - - state = { - name = show - next = a - delay = 1.4 ##### delay in order to start animation after icon has appeared - - using = Animation_Curve_Default - duration = 0.7 - alpha = 0 - scale = 1 - - modify_texture = { - name = rotation - rotate_uv = 90 - } - } - - state = { - name = a - next = b - - using = Animation_Curve_Default - duration = 0.5 - alpha = 1 - scale = 1 - - modify_texture = { - name = rotation - rotate_uv = 0 - } - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - delay = 1.4 - duration = 0.7 - alpha = 0 - scale = 0.8 - - modify_texture = { - name = rotation - rotate_uv = -90 - } - } - } - - button = { - name = "action_icon" - parentanchor = center - - size = { 0 0 } - framesize = { 144 144 } - filter_mouse = right - - texture = "[DiplomaticItem.GetIcon]" - onclick = "[DiplomaticItem.OnClick]" - onrightclick = "[DiplomaticItem.OnRightClick]" - button_ignore = none - - tooltip = "DIPLOMATIC_ITEM_TOOLTIP" - - icon = { - texture = "gfx/interface/component_effects/alert_diplomacy_timer_base.dds" - visible = "[LessThan_int32( DiplomaticItem.GetDaysUntilTimeout, '(int32)30')]" - size = { 70 70 } - parentanchor = center - - text_single = { - text = "[Max_int32( '(int32)0', DiplomaticItem.GetDaysUntilTimeout )]" - parentanchor = bottom|hcenter - position = { -2 -9 } - using = Font_Size_Medium - default_format = "#high" - } - } - - state = { - trigger_when = "[LessThan_int32( DiplomaticItem.GetDaysUntilTimeout, '(int32)30')]" - name = "timeout" - next = b - - using = Animation_Curve_Default - duration = 0.5 - delay = 0.2 - alpha = 1 - } - - state = { - name = b - next = "timeout" - - using = Animation_Curve_Default - delay = 1.5 - duration = 0.4 - alpha = 0.5 - } - - ### Adding animation ### - state = { - name = "when_added" - next = e - position_y = 0 - duration = 0.2 - size = { 72 72 } - using = Animation_Curve_Default - trigger_when = "[DiplomaticItem.IsAdding]" - on_start = "[DiplomaticItem.StartAnimation]" - - start_sound = { - soundeffect = "event:/SFX/UI/Notifications/TopBar/sfx_ui_notifications_topbar_diplomacy" - } - } - - state = { - name = e - next = f - position_y = 60 - duration = 0.45 - size = { 88 88 } - using = Animation_Curve_Default - } - - state = { - name = f - next = a - position_y = 0 - duration = 0.25 - - size = { 72 72 } - bezier = { 0.43 0 0.2 2.2 } - on_finish = "[DiplomaticItem.AddingFinished]" - on_finish = "[DiplomaticItem.EndAnimation]" - } - - ### idle animation ### - state = { - name = "already_added" - duration = 0 - size = { 72 72 } - trigger_when = "[DiplomaticItem.IsAdded]" - } - - state = { - name = "when_removed" - duration = 0.3 - size = { 0 0 } - trigger_when = "[DiplomaticItem.IsRemoving]" - on_start = "[DiplomaticItem.StartAnimation]" - on_finish = "[DiplomaticItem.RemovingFinished]" - on_finish = "[DiplomaticItem.EndAnimation]" - start_sound = { - soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_show" - } - } - - modify_texture = { - name = "glow" - texture = "gfx/interface/component_effects/effect_shimmer_blue.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - #### Shimmer #### - state = { - trigger_when = "[DiplomaticItem.IsAdding]" - name = _show - next = shimmer - duration = 0.2 - scale = 0.9 - - modify_texture = { - name = "glow" - translate_uv = { 1 -2 } - } - } - - state = { - name = shimmer - next = pause - duration = 1.2 - scale = 0.9 - position = { 0 0 } - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "glow" - translate_uv = { -1 1 } - } - } - - state = { - name = pause - next = shimmer - duration = 0 - delay = 5 - - modify_texture = { - name = "glow" - translate_uv = { 1 -1 } - } - } - - state = { - name = _show - duration = 1 - frame = 1 - scale = 0.9 - position = { 0 0 } - start_sound = { - soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_show" - } - } - - state = { - name = _mouse_enter - duration = 0.05 - frame = 2 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_oversound"} - } - - state = { - name = _mouse_leave - duration = 0.1 - frame = 1 - position = { 0 0 } - scale = 0.9 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_oversound"} - } - - state = { - name = _mouse_press - duration = 0.25 - frame = 3 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_mouse_press"} - } - - state = { - name = _mouse_release - duration = 0.25 - frame = 2 - position = { 0 10 } - scale = 1 - start_sound = {soundeffect = "event:/SFX/UI/Notifications/Alerts/sfx_ui_notification_alert_action_mouse_release"} - } - } - } - } - } - } - } - } - - ###################################################### - ###################### TOASTS ######################## - ###################################################### - type notifications_toasts = widget { - name = "toast_container_widget" - visible = "[And( Not(IsGameViewOpen('barbershop')), And( ToastMessageHandler.HasMessage, Not(SinglePlayerShowingPausedSuccession) ) )]" - visible_at_creation = no - allow_outside = yes - datacontext = "[GetPlayer]" - widgetanchor = center - - # Default Toast Animations - state = { - name = _show - using = Animation_FadeIn_Standard - bezier = { 0.7 0 0.7 1 } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - size = { 1 200} - bezier = { 0.7 0 0.7 1 } - } - - notifications_toasts_default = { - position = "[Select_CVector2f( IsGameViewOpen('activity_locale'), '(CVector2f)-600,195', '(CVector2f)0,150' )]" - datacontext = "[ToastMessageHandler.GetMessage]" - visible = "[Not( PlayerMessageItem.GetType.HasFlags )]" - } - - notifications_toasts_contests = { - position = { 0 165 } - datacontext = "[ToastMessageHandler.GetMessage]" - visible = "[PlayerMessageItem.GetType.HasFlag( 'tournament_reward' )]" - } - - notifications_toasts_contracts = { - position = { 0 165 } - datacontext = "[ToastMessageHandler.GetMessage]" - visible = "[PlayerMessageItem.GetType.HasFlag('contract_completion_reward')]" - } - } - - type notifications_toasts_default = widget { - name = "toast_content" - datacontext = "[ToastMessageHandler.GetMessage]" - visible = "[Not(SinglePlayerShowingPausedSuccession)]" - visible_at_creation = no - widgetanchor = center - parentanchor = center - allow_outside = yes - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('button_dismiss_all_toasts').TriggerAnimation('hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('button_dismiss_all_toasts').TriggerAnimation('hover_leave')]" - } - - button = { - size = { 100% 100% } - onmousehierarchyenter = "[ToastMessageHandler.StartDelayingMessage]" - onmousehierarchyleave = "[ToastMessageHandler.StopDelayingMessage]" - onrightclick = "[ToastMessageHandler.DismissMessage]" - button_ignore = none - } - - vbox = { - layoutpolicy_vertical = expanding - allow_outside = yes - set_parent_size_to_minimum = yes - minimumsize = { 600 0 } - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - ### Left Toast Edge - hbox = { - layoutpolicy_vertical = expanding - min_width = 2 - - ### Bad - background = { - visible = "[PlayerMessageItem.GetType.IsBad]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_bad.dds" - mirror = horizontal - margin_right = -24 - margin_left = 60 - } - - ### Bad - background = { - visible = "[PlayerMessageItem.GetType.IsBad]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_bad.dds" - mirror = horizontal - margin = { 0 12 } - margin_left = 32 - - } - ### Good - background = { - visible = "[PlayerMessageItem.GetType.IsGood]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_good.dds" - mirror = horizontal - margin_right = -24 - margin_left = 60 - } - - ### Good - background = { - visible = "[PlayerMessageItem.GetType.IsGood]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_good.dds" - mirror = horizontal - margin = { 0 12 } - margin_left = 32 - - } - ### Neutral - background = { - visible = "[PlayerMessageItem.GetType.IsNeutral]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_neutral.dds" - mirror = horizontal - margin_right = -24 - margin_left = 60 - } - - ### Neutral - background = { - visible = "[PlayerMessageItem.GetType.IsNeutral]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_neutral.dds" - mirror = horizontal - margin = { 0 12 } - margin_left = 32 - - } - } - - ### BG Bad - background = { - visible = "[PlayerMessageItem.GetType.IsBad]" - texture = "gfx/interface/hud/toast_title_bg_bad.dds" - spriteType = Corneredstretched - margin = { 10 10 } - } - - ### BG Good - background = { - visible = "[PlayerMessageItem.GetType.IsGood]" - texture = "gfx/interface/hud/toast_title_bg_good.dds" - spriteType = Corneredstretched - margin = { 10 10 } - } - - ### BG Neutral - background = { - visible = "[PlayerMessageItem.GetType.IsNeutral]" - texture = "gfx/interface/hud/toast_title_bg_neutral.dds" - spriteType = Corneredstretched - margin = { 10 10 } - } - - hbox = { - ignoreinvisible = yes - allow_outside = yes - layoutpolicy_horizontal = expanding - - spacer = { - size = { 120 90 } - visible = "[Not( PlayerMessageItem.HasLeftIcon )]" - } - - widget_left_toast_icon_contents = { - size = { 120 90 } - allow_outside = yes - } - - vbox = { - name = "message" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 2 - margin = { 0 8 } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "title" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - autoresize = no - fontsize_min = 10 - align = center|nobaseline - - text = "[PlayerMessageItem.GetTitle]" - using = Font_Type_Flavor - using = Font_Size_Big - - default_format = "#high" - - background = { - using = Toast_Header - using = Color_Black - } - - } - - spacer = { - size = { 10 2 } - } - } - - text_multi = { - name = "desc" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 5 5 } - margin_bottom = 12 - using = Text_Light_Background_Overrides - - align = top|hcenter - - autoresize = yes - max_width = 300 - max_height = 120 - text = "[PlayerMessageItem.GetDescription]" - tooltip = "[PlayerMessageItem.GetDescription]" - - default_format = "#light_background" - format_override = { E light_background } - fontsize_min = 10 - alwaystransparent = yes - } - } - - widget_right_toast_icon_contents = { - size = { 120 90 } - allow_outside = yes - } - - spacer = { - size = { 120 90 } - visible = "[Not( PlayerMessageItem.HasRightIcon )]" - } - } - - ### Right Toast Edge - hbox = { - layoutpolicy_vertical = expanding - min_width = 2 - - ### Bad - background = { - visible = "[PlayerMessageItem.GetType.IsBad]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_bad.dds" - - margin_left = -24 - margin_right = 60 - } - - ### Bad - background = { - visible = "[PlayerMessageItem.GetType.IsBad]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_bad.dds" - - margin = { 0 12 } - margin_right = 32 - - } - ### Good - background = { - visible = "[PlayerMessageItem.GetType.IsGood]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_good.dds" - - margin_left = -24 - margin_right = 60 - } - - ### Good - background = { - visible = "[PlayerMessageItem.GetType.IsGood]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_good.dds" - - margin = { 0 12 } - margin_right = 32 - - } - ### Neutral - background = { - visible = "[PlayerMessageItem.GetType.IsNeutral]" - texture = "gfx/interface/hud/toast_title_bg_edge_ribbon_neutral.dds" - - margin_left = -24 - margin_right = 60 - } - - ### Neutral - background = { - visible = "[PlayerMessageItem.GetType.IsNeutral]" - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_title_bg_edge_neutral.dds" - - margin = { 0 12 } - margin_right = 32 - - } - } - } - } - - flowcontainer = { - name = "button_dismiss_all_toasts" - parentanchor = right - - alpha = 0 - - # Catches hover-unhover within the toast - state = { - name = _mouse_hierarchy_enter - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - # Catches hover-unhover within the toast - state = { - name = _mouse_hierarchy_leave - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - - state = { - name = hover_enter - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = hover_leave - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - - ### MESSAGE SETTINGS SHORTCUT - button_menu = { - parentanchor = center - - background = { - using = Background_Area_Dark - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - - onclick = "[ToggleGameViewData('message_settings', PlayerMessageItem.GetType)]" - tooltip = "MESSAGE_SETTINGS_WINDOW_SHORTCUT_TT" - using = tooltip_se - } - - button_cancel = { - background = { - using = Background_Area_Dark - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - } - } - - blockoverride "master_color_frame" { - frame = 1 - } - - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - - onclick = "[ToastMessageHandler.DismissMessage]" - onrightclick = "[ToastMessageHandler.DismissAllMessages]" - button_ignore = none - tooltip = "DISMISS_ALL_RIGHT_CLICK" - using = tooltip_se - } - } - } - - type notifications_toasts_contracts = widget { - name = "toast_background_contract" - - size = { 560 200 } - widgetanchor = center - parentanchor = center - alwaystransparent = no - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - duration = 0.15 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 0.7 - using = Animation_Curve_Default - } - - video_icon = { - name = "fail_toast" - visible = "[Not(PlayerMessageItem.IsContractCompletionSucceeded)]" - - size = { 100% 100% } - - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/animation/fail_toast.bk2" - loop = no - restart_on_show = yes - } - - video_icon = { - name = "success_toast" - visible = "[PlayerMessageItem.IsContractCompletionSucceeded]" - - size = { 100% 95% } - - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/animation/success_toast.bk2" - loop = no - restart_on_show = yes - } - - ### CONTENT ### - widget = { - name = "toast_content" - visible = "[Not(SinglePlayerShowingPausedSuccession)]" - widgetanchor = center - size = { 100% 100% } - parentanchor = center - position = { 0 30 } - - hbox = { - ignoreinvisible = yes - size = { 100% 90% } - parentanchor = center - widgetanchor = center - layoutpolicy_vertical = expanding - - vbox = { - name = "message" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 2 - margin_top = 40 - - text_multi = { - name = "title" - layoutpolicy_horizontal = expanding - margin = { 5 0 } - autoresize = no - fontsize_min = 10 - align = center|nobaseline - - default_format = "#light_background" - text = "[PlayerMessageItem.GetTitle]" - using = Font_Type_Flavor - using = Font_Size_Big - } - - text_multi = { - name = "desc" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 -7 } - using = Text_Light_Background_Overrides - - align = top|hcenter - - text = "[PlayerMessageItem.GetDescription]" - tooltip = "[PlayerMessageItem.GetDescription]" - - default_format = "#light_background" - format_override = { E light_background } - fontsize_min = 10 - alwaystransparent = yes - } - } - } - - button_cancel = { - parentanchor = top|right - position = { 10 3 } - onclick = "[ToastMessageHandler.DismissMessage]" - tooltip = "DISMISS" - alpha = 0 - - blockoverride "master_color_frame" { - frame = 3 - } - - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - - upframe = 3 - uphoverframe = 2 - uppressedframe = 3 - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - } - - state = { - name = b - alpha = 1 - delay = 3 - duration = 0.5 - using = Animation_Curve_Default - } - } - } - } - - type notifications_toasts_contests = widget { - name = "toast_background_contest" - visible = "[Not(SinglePlayerShowingPausedSuccession)]" - size = { 670 330 } - - widgetanchor = center - parentanchor = center - alwaystransparent = yes - - background = { - texture = "gfx/interface/hud/toast_contest_bg.dds" - - modify_texture = { - name = "contest_toast_ink_animation" - visible = yes - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/video/ink_animation_toasts.bk2" - loop = no - blend_mode = alphamultiply - } - } - - ### HEADER - text_single = { - parentanchor = hcenter|top - position = { 0 24 } - - text = tournament_contest_reward_toast_title - using = Font_Type_Flavor - fontsize = 36 - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 0.7 - duration = 1 - using = Animation_Curve_Default - } - } - - ### ARTIFACT REWARD GOES HERE - icon_artifact = { - name = "artifact_left" - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - parentanchor = center - position = { 1 -4} - size = { 70 70 } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 1 - duration = 1 - using = Animation_Curve_Default - } - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - parentanchor = center - position = { 1 -4} - size = { 70 70 } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 1 - duration = 1 - using = Animation_Curve_Default - } - } - - ### FLAVOR TEXT ON WHAT YOU WON - text_single = { - parentanchor = hcenter|bottom - position = { 0 -77 } - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - - text = tournament_contest_reward_toast_desc - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 1.2 - duration = 1 - using = Animation_Curve_Default - } - } - - text_single = { - parentanchor = hcenter|bottom - position = { 0 -77 } - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - - text = tournament_contest_reward_toast_desc - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - using = Animation_Curve_Default - } - - state = { - name = b - alpha = 1 - delay = 1.2 - duration = 1 - using = Animation_Curve_Default - } - } - } - - type widget_left_toast_icon_contents = widget { - visible = "[PlayerMessageItem.HasLeftIcon]" - allow_outside = yes - - portrait_shoulders = { - name = "portrait_left" - datacontext = "[PlayerMessageItem.GetLeftCharacter]" - visible = "[Character.IsValid]" - parentanchor = center - position = { 0 -25 } - allow_outside = yes - - blockoverride "opinon_box" {} - blockoverride "status_icons" {} - } - - coa_dynasty_medium = { - name = "dynasty_left" - datacontext = "[PlayerMessageItem.GetLeftDynasty]" - visible = "[Dynasty.IsValid]" - parentanchor = center - } - - coa_house_medium = { - name = "house_left" - datacontext = "[PlayerMessageItem.GetLeftHouse]" - visible = "[DynastyHouse.IsValid]" - parentanchor = center - } - - coa_title_medium = { - name = "title_left" - datacontext = "[PlayerMessageItem.GetLeftTitle]" - visible = "[Title.IsValid]" - parentanchor = center - } - - icon_artifact = { - name = "artifact_left" - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - parentanchor = center - } - } - - type widget_right_toast_icon_contents = widget { - visible = "[PlayerMessageItem.HasRightIcon]" - - portrait_shoulders = { - name = "portrait_right" - datacontext = "[PlayerMessageItem.GetRightCharacter]" - visible = "[Character.IsValid]" - parentanchor = center - position = { 0 -25 } - - blockoverride "opinon_box" {} - blockoverride "status_icons" {} - } - - coa_dynasty_medium = { - name = "dynasty_right" - datacontext = "[PlayerMessageItem.GetRightDynasty]" - visible = "[Dynasty.IsValid]" - parentanchor = center - } - - coa_house_medium = { - name = "house_right" - datacontext = "[PlayerMessageItem.GetRightHouse]" - visible = "[DynastyHouse.IsValid]" - parentanchor = center - } - - coa_title_medium = { - name = "title_right" - datacontext = "[PlayerMessageItem.GetRightTitle]" - visible = "[Title.IsValid]" - parentanchor = center - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - parentanchor = center - } - } - - ###################################################### - ################### SUGGESTIONS ###################### - ###################################################### - type notifications_suggestions = widget { - size = { 79 69 } - name = "action_items" - visible = "[And( Not(IsGameViewOpen('barbershop')), And( Not(IsPauseMenuShown), And( Not(SinglePlayerShowingPausedSuccession), And( IsDefaultGUIMode, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_outliner').GetValue, '(CFixedPoint)0' ) ) ) ) ) )]" - visible_at_creation = no - alwaystransparent = no - allow_outside = yes - - using = Animation_ShowHide_Quick - - ## Suggestions / Current Situation toggle button - button = { - name = "suggestions_button" - parentanchor = top|hcenter - size = { 79 69 } - position = { 0 -5 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - - onclick = "[ActionItemHandler.ToggleList]" - shortcut = "action_list" - - texture = "gfx/interface/hud/button_hud_suggestions.dds" - - tooltip = "ACTIONS_TT" - using = tooltip_se - - modify_texture = { - name = "mouseover" - visible = "[GreaterThan_int32(ActionItemHandler.GetNumberOfUnreadActions, '(int32)0')]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = _mouse_enter - duration = 0.05 - frame = 2 - position = { 0 5 } - - modify_texture = { - name = "mouseover" - alpha = 1 - } - } - - state = { - name = _mouse_leave - duration = 0.1 - position = { 0 -5 } - - modify_texture = { - name = "mouseover" - alpha = 0 - } - } - - state = { - name = _mouse_press - scale = 1 - position = { 0 0 } - } - - state = { - name = _mouse_release - scale = 1 - } - - glow = { - using = Color_Bright_Yellow - glow_radius = 5 - using = Glow_Standard - alpha = 0 - } - - state = { - name = "up_start" - next = "up_end" - position = { 0 4 } - duration = 0.5 - trigger_when = "[ActionItemHandler.ActionsWentUp]" - - using = Animation_Curve_Default - glow_alpha = 1 - } - - state = { - name = "up_end" - duration = 0.3 - position = { 0 -5 } - - using = Animation_Curve_Default - glow_alpha = 0 - } - - modify_texture = { - name = "shimmer" - visible = "[And(GreaterThan_int32(ActionItemHandler.GetNumberOfUnreadActions, '(int32)0'), Not(ActionItemHandler.HasVisibleDangerousAction))]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - state = { - name = shimmer - next = pause - delay = 0.5 - - trigger_when = "[ActionItemHandler.ActionsWentUp]" - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - } - } - - state = { - name = pause - next = inbetween - duration = 1.5 - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - } - } - - state = { - name = inbetween - next = shimmer - duration = 3 - - modify_texture = { - name = "shimmer" - translate_uv = { -1 -1 } - } - } - - modify_texture = { - name = "shimmer_dangerous" - visible = "[And(GreaterThan_int32(ActionItemHandler.GetNumberOfUnreadActions, '(int32)0'), ActionItemHandler.HasVisibleDangerousAction)]" - texture = "gfx/interface/component_effects/effect_shimmer_dangerous.dds" - blend_mode = colordodge - translate_uv = { 1 1 } - } - - state = { - name = shimmer_2 - next = pause_2 - trigger_on_create = yes - delay = 0.5 - - trigger_when = "[ActionItemHandler.ActionsWentUp]" - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer_dangerous" - translate_uv = { 1 -1 } - } - } - - state = { - name = pause_2 - next = inbetween_2 - duration = 1.5 - - modify_texture = { - name = "shimmer_dangerous" - translate_uv = { -1 1 } - } - } - - state = { - name = inbetween_2 - next = shimmer_2 - duration = 2 - - modify_texture = { - name = "shimmer_dangerous" - translate_uv = { -1 -1 } - } - } - - ## dangerous action - text_single = { - name = "actions_number_dangerous" - visible = "[ActionItemHandler.HasVisibleDangerousAction]" - parentanchor = center - - text = "[ActionItemHandler.GetNumberOfUnreadActions]" - align = nobaseline - using = Font_Size_Big - default_format = "#high;glow_color:{0.9,0.1,0.1,1.0}" - snap_to_pixels = no - alpha = "[Select_float(GreaterThan_int32(ActionItemHandler.GetNumberOfUnreadActions, '(int32)0'),'(float)1.0','(float)0.5')]" - - state = { - name = "up_start" - next = "up_end" - scale = 1.5 - duration = 0.25 - trigger_when = "[ActionItemHandler.ActionsWentUp]" - } - - state = { - name = "up_end" - scale = 1 - duration = 0.25 - } - } - - text_single = { - name = "actions_number" - visible = "[Not(ActionItemHandler.HasVisibleDangerousAction)]" - parentanchor = center - - text = "[ActionItemHandler.GetNumberOfUnreadActions]" - align = nobaseline - using = Font_Size_Big - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - - state = { - name = "up_start" - next = "up_end" - scale = 1.5 - duration = 0.25 - trigger_when = "[ActionItemHandler.ActionsWentUp]" - } - - state = { - name = "up_end" - scale = 1 - duration = 0.25 - } - } - } - - widget = { - visible = "[ActionItemHandler.IsListVisible]" - visible_at_creation = no - parentanchor = top|right - position = { 30 80 } - alwaystransparent = no - filter_mouse = all - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Suggestion - position_y = 80 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Suggestion - position_y = 40 - } - - using = Background_Letter_No_Frame - - background = { - using = Background_Area_Dark - alpha = 0.75 - margin = { 1 1 } - } - - #### DECOR - widget = { - size = { 100% 97% } - scissor = yes - - widget = { - size = { 322 544 } - position = { 6 6 } - scale = 0.5 - alpha = 0.6 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_big.dds" - tintcolor = { 0.75 0.9 0.9 1 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - } - - widget = { - size = { 322 544 } - parentanchor = top|right - position = { -6 6 } - scale = 0.5 - alpha = 0.6 - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_pattern_big.dds" - mirror = horizontal - tintcolor = { 0.75 0.9 0.9 1 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - blend_mode = overlay - } - } - } - } - - widget = { - name = "button" - parentanchor = top|right - position = { -5 5 } - - background = { - using = Background_Area - mirror = vertical - margin_left = 55 - margin_bottom = 55 - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - buttons_window_control = { - name = "close_suggestions_button" - resizeparent = yes - - blockoverride "button_close" { - onclick = "[ActionItemHandler.ToggleList]" - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - } - } - } - - vbox = { - name = "action_items_container" - set_parent_size_to_minimum = yes - minimumsize = { 384 50 } - margin_right = 2 - margin_top = 14 - spacing = 15 - ignoreinvisible = yes - - vbox = { - name = "actions" - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 8 0 } - margin_bottom = 8 - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "CURRENT_SITUATION_HEADER" - max_width = 220 - using = Font_Size_Medium - allow_outside = yes - align = center - using = Font_Type_Flavor - default_format = "#light_background" - - widget = { - allow_outside = yes - parentanchor = right - - button_change = { - name = "reset_dismissed" - position = { 2 -2 } - onclick = "[ActionItemHandler.ResetAllDismissed]" - tooltip = "RESET_DISMISSED_TOOLTIP" - - background = { - using = Background_Area - mirror = horizontal - margin = { 8 3 } - - tintcolor = { 0.22 0.16 0.04 0.5 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - } - } - } - - text_single = { - visible = "[Not( ActionItemHandler.HasAvailableCurrentSituationItems )]" - text = "CURRENT_SITUATION_SUGGESTIONS_EMPTY" - default_format = "#light_background;italic" - } - - container = { - scrollbox = { - visible = "[ActionItemHandler.HasAvailableCurrentSituationItems]" - maximumsize = { -1 600 } - - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_margins" - { - margin_bottom = 15 - margin_left = 14 - margin_right = 14 - } - - blockoverride "scrollbox_content" { - name = "current_situation" - datamodel = "[ActionItemHandler.GetGuiActionItems]" - set_parent_size_to_minimum = yes - spacing = 5 - - item = { - flowcontainer = { - ignoreinvisible = yes - minimumsize = { 368 0 } - direction = vertical - - button_current_situation_item = { - visible = "[And(GuiActionItem.IsVisible, Not(GuiActionItem.HasMultipleActions))]" - datacontext = "[GuiActionItem.GetFirstVisibleActionItem]" - minimumsize = { 360 0 } - } - - button_current_situation_item_multiple = { - visible = "[And(GuiActionItem.IsVisible, GuiActionItem.HasMultipleActions)]" - minimumsize = { 360 0 } - } - - flowcontainer = { - name = "expanded_action_items" - datamodel = "[GuiActionItem.GetImportantActionItems]" - visible = "[GuiActionItem.IsExpanded]" - direction = vertical - spacing = 3 - - margin_left = 10 - margin_top = 3 - margin_bottom = 5 - - ignoreinvisible = yes - - item = { - button_current_situation_item_combined = { - datacontext = "[GuiActionImportantActionItem.GetImportantAction]" - minimumsize = { 350 0 } - } - } - } - } - } - } - } - } - } - } - } - } - - ###################################################### - ################### MESSAGE FEED ##################### - ###################################################### - type notifications_message_feed = flowcontainer { - name = "message_feed_widget" - visible = "[And( Not(IsGameViewOpen('barbershop')), And( Not(IsPauseMenuShown), And( Not(SinglePlayerShowingPausedSuccession), IsDefaultGUIMode ) ) )]" - visible_at_creation = no - parentanchor = bottom|right - alwaystransparent = yes - ignoreinvisible = yes - - using = Animation_ShowHide_Quick - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - widget = { - size = { 450 0 } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - name = "message_feed" - datamodel = "[MessageFeedHandler.GetItems]" - set_parent_size_to_minimum = yes - - expand = {} - - item = { - vbox = { - layoutpolicy_vertical = growing - layoutpolicy_horizontal = expanding - datacontext = "[FeedMessageItem.GetPlayerMessageItem]" - spacing = 2 - alwaystransparent = no - filter_mouse = all - - state = { - name = "mark_to_delete" - trigger_when = "[FeedMessageItem.IsSetToDelete]" - on_start = "[FeedMessageItem.StartAnimation]" - on_finish = "[FeedMessageItem.EndAnimation]" - on_finish = "[FeedMessageItem.Delete]" - duration = 0.3 - alpha = 0 - using = Animation_Curve_Default - } - - background = { - using = Background_Area_Dark - } - - button = { - name = "header" - layoutpolicy_horizontal = expanding - size = { 0 32 } - onclick = "[FeedMessageItem.Expand]" - onrightclick = "[FeedMessageItem.MarkToDelete]" - button_ignore = none - tooltip = "MESSAGE_CLICK_TOOLTIP" - - using = situation_entry_parent_hover_states - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('button_dismiss_all').TriggerAnimation('hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('button_dismiss_all').TriggerAnimation('hover_leave')]" - } - - background = { - name = "neutral" - visible = "[PlayerMessageItem.GetType.IsNeutral]" - using = Feed_Message_Header - } - - background = { - name = "good" - visible = "[PlayerMessageItem.GetType.IsGood]" - using = Feed_Message_Header - tintcolor = { 0.767708 0.78125 0.3479 0.847656 } - } - - background = { - name = "bad" - visible = "[PlayerMessageItem.GetType.IsBad]" - using = Feed_Message_Header - tintcolor = { 0.949219 0.446105 0.330002 0.847656 } - } - - hbox = { - margin_right = 10 - margin_left = 5 - spacing = 5 - - layoutpolicy_horizontal = expanding - - icon = { - name = "message_type" - size = { 28 28 } - texture = "[PlayerMessageItem.GetType.GetIcon]" - tooltip = "[PlayerMessageItem.GetTooltip]" - using = tooltip_ws - } - - text_single = { - name = "title" - text = "[PlayerMessageItem.GetTitle]" - using = Font_Size_Medium - align = nobaseline - max_width = 335 - fontsize_min = 14 - } - - expand = {} - - flowcontainer = { - name = "button_dismiss" - allow_outside = yes - - alpha = 1 - - state = { - name = hover_enter - alpha = 0 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = hover_leave - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - ### MESSAGE DELIVERED DATE - widget = { - allow_outside = yes - - text_single = { - name = "date" - fontsize_min = 14 - parentanchor = vcenter|left - min_width = 60 - max_width = 60 - - text = "[PlayerMessageItem.GetArrivalDate.GetStringShortNoYear]" - align = right|nobaseline - } - } - } - - flowcontainer = { - name = "button_dismiss_all" - alpha = 0 - - state = { - name = hover_enter - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = hover_leave - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } - - ### MESSAGE SETTINGS SHORTCUT - widget = { - size = { 26 26 } - - allow_outside = yes - - button_menu = { - size = { 26 26 } - - button_ignore = none - - onclick = "[ToggleGameViewData('message_settings', FeedMessageItem.GetPlayerMessageItem.GetType)]" - tooltip = "MESSAGE_SETTINGS_WINDOW_SHORTCUT_TT" - using = tooltip_se - } - } - - ### MARK MESSAGE FOR DELETE - widget = { - size = { 26 26 } - - allow_outside = yes - - button_clear = { - size = { 26 26 } - - button_ignore = none - - onrightclick = "[MessageFeedHandler.MarkAllForDelete]" - onclick = "[FeedMessageItem.MarkToDelete]" - tooltip = "MESSAGE_CLEAR_ALL_TOOLTIP" - using = tooltip_se - } - } - } - } - } - - widget = { - name = "message_feed_text_area" - layoutpolicy_horizontal = expanding - size = { 450 0 } - scissor = yes - - state = { - name = "hide_text_1" - next = "hide_text_2" - trigger_when = "[FeedMessageItem.ShouldHide]" - duration = 0 - size = { 450 180 } - } - - state = { - name = "hide_text_2" - on_start = "[FeedMessageItem.StartAnimation]" - on_finish = "[FeedMessageItem.EndAnimation]" - on_finish = "[FeedMessageItem.ClickedHideFinished]" - size = { 450 0 } - using = Animation_FadeOut_Quick - duration = 0 - } - - state = { - name = "hide_text_clicked" - trigger_when = "[FeedMessageItem.ClickedHide]" - on_start = "[FeedMessageItem.StartAnimation]" - on_finish = "[FeedMessageItem.EndAnimation]" - on_finish = "[FeedMessageItem.ClickedHideFinished]" - size = { 450 0 } - using = Animation_FadeOut_Quick - duration = 0.15 - } - - state = { - name = "show_text_hidden" - trigger_when = "[Not(FeedMessageItem.IsExpanded)]" - duration = 0.15 - size = { 450 0 } - } - - state = { - name = "show_text_clicked" - trigger_when = "[FeedMessageItem.ClickedExpand]" - on_start = "[FeedMessageItem.StartAnimation]" - on_finish = "[FeedMessageItem.EndAnimation]" - on_finish = "[FeedMessageItem.ClickedExpandFinished]" - size = { 450 180 } - using = Animation_FadeIn_Standard - duration = 0.15 - } - - state = { - name = "show_text" - trigger_when = "[FeedMessageItem.ShouldShow]" - on_start = "[FeedMessageItem.StartAnimation]" - on_finish = "[FeedMessageItem.EndAnimation]" - on_finish = "[FeedMessageItem.ClickedExpandFinished]" - size = { 450 180 } - using = Animation_FadeIn_Standard - duration = 0.2 - } - - state = { - name = "show_text_expanded" - trigger_when = "[FeedMessageItem.IsExpanded]" - duration = 0 - size = { 450 180 } - } - - hbox = { - name = "text_and_icons" - margin_right = 10 - - state = { - name = appear - using = Animation_FadeIn_Quick - trigger_when = "[Or(FeedMessageItem.ClickedExpand, FeedMessageItem.ShouldShow)]" - } - - state = { - name = disappear - using = Animation_FadeOut_Quick - trigger_when = "[FeedMessageItem.ShouldHide]" - } - - text_multi = { - name = "text" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 20 10 } - text = "[PlayerMessageItem.GetDescription]" - elide = right - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - margin_bottom = 15 - - hbox = { - portrait_head_small = { - name = "portrait_left" - datacontext = "[PlayerMessageItem.GetLeftCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_left" - datacontext = "[PlayerMessageItem.GetLeftDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_left" - datacontext = "[PlayerMessageItem.GetLeftHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_left" - datacontext = "[PlayerMessageItem.GetLeftTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_left" - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - } - - portrait_head_small = { - name = "portrait_right" - datacontext = "[PlayerMessageItem.GetRightCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_right" - datacontext = "[PlayerMessageItem.GetRightDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_right" - datacontext = "[PlayerMessageItem.GetRightHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_right" - datacontext = "[PlayerMessageItem.GetRightTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - } - } - - expand = {} - } - } - } - } - } - } - } - - widget = { - name = "push_up" - size = { 0 80 } - - visible = "[Not(IsRightWindowOpen)]" - } - } - - widget = { - name = "push_left" - size = { 630 0 } - visible = "[IsRightWindowOpen]" - } - - # Move the messages slightly to the left, so that they don't appear behind the right hand side panel - widget = { - name = "adjust_left" - size = { 35 0 } - visible = "[Not( IsRightWindowOpen )]" - } - } -} - -template message_feed_text -{ - direction = vertical - - container = { - - widget = { - block "WidgetSize" - { - size = { 200 22 } - } - name = "header" - } - } - - container = { - text_multi = { - position = { 12 4 } - name = "effect" - autoresize = yes - block "MaxEffectSize" - { - maximumsize = { 200 -1 } - } - minimumsize = { -1 -1 } - align = left|nobaseline - parentanchor = left - text = "[PlayerMessageItem.GetTooltip]" - } - } -} - -template situation_entry_parent_hover_states -{ - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('button_dismiss').TriggerAnimation('hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('button_dismiss').TriggerAnimation('hover_leave')]" - } -} - -template situation_entry_child_hover_states -{ - name = "button_dismiss" - alpha = 0 - - state = { - name = hover_enter - alpha = 1 - duration = 0.05 - using = Animation_Curve_Default - } - - state = { - name = hover_leave - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - } -} - -types Suggestions -{ - type button_suggestion_item = button_standard { - onclick = "[SuggestionItem.OnClick]" - onrightclick = "[SuggestionItem.Dismiss]" - button_ignore = none - tooltip = "[SuggestionItem.GetTooltip]" - - background = { - using = Status_Suggestion - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - alpha = 0.3 - } - - using = situation_entry_parent_hover_states - - hbox = { - margin = { 10 5 } - margin_right = 5 - restrictparent_min = yes - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline - text = "[SuggestionItem.GetLabel]" - } - - button_cancel_small = { - tooltip = "DISMISS_SUGGESTION_TT" - onclick = "[SuggestionItem.Dismiss]" - inherit_visual_state = no - - using = situation_entry_child_hover_states - } - } - } - - type button_current_situation_item = button_standard { - visible = "[ImportantActionItem.IsVisible]" - minimumsize = { 350 0 } - - onclick = "[ImportantActionItem.OnClick]" - onrightclick = "[ImportantActionItem.Dismiss]" - button_ignore = none - onmousehierarchyenter = "[ImportantActionItem.MarkAsRead]" - tooltip = "[ImportantActionItem.GetTooltip]" - - using = situation_entry_parent_hover_states - - blockoverride "background_color" - { - background = { - visible = "[And(Not(ImportantActionItem.IsUnimportant), ImportantActionItem.GetActionType.IsDangerous)]" - using = Status_Suggestion_Bad - } - - background = { - visible = "[And(Not(ImportantActionItem.IsUnimportant), Not(ImportantActionItem.GetActionType.IsDangerous))]" - using = Status_Suggestion_Good - } - - background = { - visible = "[Not(Or(And(Not(ImportantActionItem.IsUnimportant), ImportantActionItem.GetActionType.IsDangerous),And(Not(ImportantActionItem.IsUnimportant), Not(ImportantActionItem.GetActionType.IsDangerous))))]" - using = Status_Suggestion - } - } - - blockoverride "button_pattern" { - background = { - using = Background_Pattern - alpha = 0.2 - } - } - - icon = { - name = "new_action_effect" - visible = "[Not(ImportantActionItem.IsRead)]" - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - color = { 1 0.8 0.6 0.8 } - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.5 - } - } - - hbox = { - margin = { 10 5 } - margin_right = 5 - restrictparent_min = yes - ignoreinvisible = yes - - text_multi = { - autoresize = yes - max_width = 315 - text = "ACTION_IS_VISIBLE_READ_UNREAD" - alwaystransparent = yes - } - - expand = {} - - button_cancel_small = { - tooltip = "DISMISS_CS_TT" - - onclick = "[ImportantActionItem.Dismiss]" - inherit_visual_state = no - - using = situation_entry_child_hover_states - } - } - } - - type button_current_situation_item_multiple = button_standard { - onclick = "[GuiActionItem.OnClick]" - onrightclick = "[GuiActionItem.Dismiss]" - button_ignore = none - onmousehierarchyenter = "[GuiActionItem.MarkAsRead]" - tooltip = "[GuiActionItem.GetCombinedTooltip]" - - - blockoverride "background_color" - { - background = { - visible = "[And(Not(GuiActionItem.IsUnimportant), GuiActionItem.HasAnyActionIsDangerous)]" - using = Status_Suggestion_Bad - } - - background = { - visible = "[And(Not(GuiActionItem.IsUnimportant), Not(GuiActionItem.HasAnyActionIsDangerous))]" - using = Status_Suggestion_Good - } - - background = { - visible = "[Not(Or(And(Not(GuiActionItem.IsUnimportant), GuiActionItem.HasAnyActionIsDangerous),And(Not(GuiActionItem.IsUnimportant), Not(GuiActionItem.HasAnyActionIsDangerous))))]" - using = Status_Suggestion - } - } - - blockoverride "button_pattern" { - background = { - using = Background_Pattern - alpha = 0.2 - } - } - - icon = { - name = "new_action_effect" - visible = "[Not(GuiActionItem.IsRead)]" - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - color = { 1 0.8 0.6 0.8 } - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.5 - } - } - - hbox = { - restrictparent_min = yes - margin = { 10 5 } - spacing = 5 - minimumsize = { 0 40 } - - button_expand = { - size = { 22 22 } - frame = "[BoolTo1And2(GuiActionItem.IsExpanded)]" - scissor = yes - alwaystransparent = yes - } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 300 - text = "IMPORTANT_ACTION_COMBINED_LABEL" - alwaystransparent = yes - } - - text_single = { - text = "[GuiActionItem.GetNumberOfVisibleItems]" - default_format = "#high" - align = nobaseline - alwaystransparent = yes - } - } - } - - type button_current_situation_item_combined = button_standard { - visible = "[ImportantActionItem.IsVisible]" - onclick = "[ImportantActionItem.OnClick]" - onrightclick = "[ImportantActionItem.Dismiss]" - button_ignore = none - - onmousehierarchyenter = "[ImportantActionItem.MarkAsRead]" - - tooltip = "[ImportantActionItem.GetTooltip]" - - blockoverride "background_color" - { - background = { - visible = "[And(Not(ImportantActionItem.IsUnimportant), ImportantActionItem.GetActionType.IsDangerous)]" - using = Status_Suggestion_Bad - } - - background = { - visible = "[And(Not(ImportantActionItem.IsUnimportant), Not(ImportantActionItem.GetActionType.IsDangerous))]" - using = Status_Suggestion_Good - } - - background = { - visible = "[Not(Or(And(Not(ImportantActionItem.IsUnimportant), ImportantActionItem.GetActionType.IsDangerous),And(Not(ImportantActionItem.IsUnimportant), Not(ImportantActionItem.GetActionType.IsDangerous))))]" - using = Status_Suggestion - } - } - - blockoverride "button_pattern" { - background = { - using = Background_Pattern - alpha = 0.2 - } - } - - using = situation_entry_parent_hover_states - - hbox = { - margin = { 10 5 } - margin_right = 5 - restrictparent_min = yes - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 300 - - align = nobaseline - text = "ACTION_IS_VISIBLE_READ_UNREAD_COMBINED" - alwaystransparent = yes - } - - expand = {} - - button_cancel_small = { - tooltip = "DISMISS_CS_TT" - onclick = "[ImportantActionItem.Dismiss]" - inherit_visual_state = no - - using = situation_entry_child_hover_states - } - } - } -} diff --git a/N3OW/gui/hud_outliner.gui b/N3OW/gui/hud_outliner.gui deleted file mode 100644 index 22e766ee..00000000 --- a/N3OW/gui/hud_outliner.gui +++ /dev/null @@ -1,1222 +0,0 @@ -widget = { - name = "outliner_window" - parentanchor = top|right - position = { -35 50 } - alwaystransparent = no - filter_mouse = all - layer = windows_layer - - state = { - name = _show - using = Animation_FadeIn_Quick - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_outliner_show" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_outliner_hide" - } - } - - state = { - name = "hide_outliner" - using = Animation_FadeOut_Standard - trigger_when = "[Not(IsDefaultGUIMode)]" - } - - state = { - name = "show_outliner" - using = Animation_FadeIn_Quick - trigger_when = "[IsDefaultGUIMode]" - } - - flowcontainer = { - visible = "[And( Not(IsGameViewOpen('barbershop')), And( Not( IsPauseMenuShown ), Not(IsRightWindowOpen) ) )]" - resizeparent = yes - margin = { 10 10 } - margin_bottom = 15 - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/skinned/window_letter/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - margin = { -15 0 } - margin_right = -20 - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - alpha = 0.9 - color = { 0.51 0.53 0.58 1 } - margin = { -15 0 } - margin_right = -20 - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - - scrollarea = { - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - maximumsize = { -1 500 } - size = { 300 0 } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - vbox = { - set_parent_size_to_minimum = yes - min_width = 300 - margin = { 10 0 } - margin_right = 15 - spacing = 2 - - outliner_pinned_characters_header = {} - outliner_pinned_characters_info = {} - - outliner_players_header = {} - outliner_players_info = {} - - outliner_units_header = {} - outliner_units_info = {} - - outliner_holdings_header = {} - outliner_holdings_info = {} - - outliner_domicile_header = {} - outliner_domicile_info = {} - - expand = {} - } - } - } - } -} - -types Outliner { - type button_outliner_header = button_tab { - size = { 0 31 } - - block "oh_button" {} - - hbox = { - margin = { 15 0 } - spacing = 5 - - using = tooltip_ws - - button_expand = { - size = { 22 22 } - alwaystransparent = yes - block "button_expand_frame" {} - } - - text_single = { - name = "category" - layoutpolicy_horizontal = expanding - align = nobaseline - default_format = "#high" - - block "oh_name" - { - text = "DEFAULT_TEXT" - } - } - - text_single = { - name = "count" - align = nobaseline - - block "oh_count" - { - text = "DEFAULT_TEXT" - } - } - - } - } - - type outliner_pinned_characters_header = button_outliner_header { - name = "pinned_characters_header" - layoutpolicy_horizontal = expanding - - blockoverride "button_expand_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('pinned_character'))]" - } - - blockoverride "oh_button" - { - onclick = "[Outliner.ToggleCategory('pinned_character')]" - tooltip = "[SelectLocalization( Outliner.IsCategoryShown('pinned_character'), 'OUTLINER_COLLAPSE', 'OUTLINER_EXPAND' )]" - } - - blockoverride "oh_toggle_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('pinned_character'))]" - } - - blockoverride "oh_name" - { - text = "OUTLINER_PINNED_CHARACTERS" - } - - blockoverride "oh_count" - { - text = "[Outliner.GetCategoryItemsCount('pinned_character')|V]" - } - - blockoverride "expanded" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('pinned_character'))]" - } - } - - type outliner_pinned_characters_info = vbox { - name = "pinned_characters" - visible = "[Outliner.IsCategoryShown('pinned_character')]" - datamodel = "[Outliner.GetPinnedCharacters]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - margin_bottom = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - text_single = { - visible = "[And(Outliner.IsCategoryShown('pinned_character'), IsDataModelEmpty(Outliner.GetPinnedCharacters))]" - name = "no_pinned_characters" - text = "OUTLINER_NO_PINNED_CHARACTERS" - autoresize = yes - default_format = "#light_background;italic" - } - - expand = {} - } - - item = { - hbox = { - name = "pinned_character_item" - layoutpolicy_horizontal = expanding - using = character_tooltip - - background = { - using = Background_Area - } - - button_list = { - name = "character_button" - size = { 0 54 } - layoutpolicy_horizontal = expanding - - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - down = "[Character.IsShownInCharacterWindow]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('button_unpin').TriggerAnimation('button_unpin_show')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('button_unpin').TriggerAnimation('button_unpin_hide')]" - } - - hbox = { - margin = { 10 2 } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - visible = "[Character.IsDeadAndValid]" - size = { 20 20 } - texture = "[Character.GetDeathReasonIcon]" - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - - icon = { - visible = "[Not(Character.IsDeadAndValid)]" - size = { 23 23 } - framesize = { 60 60 } - frame = "[Character.GetHealthIconFrame]" - tooltip = "[Character.GetHealthInfo]" - using = tooltip_ws - texture = "gfx/interface/icons/character_status/icon_health.dds" - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "OUTLINER_PINNED_CHARACTER" - align = nobaseline - default_format = "#high" - } - - expand = {} - - icon = { - visible = "[Character.IsInFactionTargetingPlayer]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/faction_member_small.dds" - } - - icon = { - visible = "[And(Character.IsMyPowerfulVassal, Not(Character.IsInFactionTargetingPlayer))]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/powerful_vassal_small.dds" - framesize = { 28 28 } - frame = "[Character.GetPowerfulVassalFrame]" - - tooltip = "[Character.GetPowerfulVassalTooltip]" - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_left = 3 - - text_single = { - text = "[Character.GetOpinionOf( GetPlayer )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( GetPlayer )]" - default_format = "#medium;glow_color:{0.1,0.1,0.1,1}" - align = nobaseline - visible = "[Character.IsAlive]" - - tooltipwidget = character_opinion_tooltip - using = tooltip_ws - - background = { - name = "portrait_opinion_bg" - texture = "gfx/interface/component_tiles/solid_black_label.dds" - spritetype = Corneredtiled - spriteborder = { 20 20 } - margin = { 5 1 } - texture_density = 2 - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - autoresize = no - align = nobaseline - } - } - } - - - button_round = { - name = "button_unpin" - size = { 30 30 } - onclick = "[Character.ToggleCharacterPinned]" - tooltip = "PIN_TT" - inherit_visual_state = no - - alpha = 0.6 - - state = { - name = _mouse_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - } - - state = { - name = _mouse_leave - alpha = 0.6 - duration = 0.2 - using = Animation_Curve_Default - } - - button_unpin = { - parentanchor = center - size = { 20 20 } - alwaystransparent = yes - inherit_visual_state = no - } - } - } - } - } - } - } - - type outliner_players_header = button_outliner_header { - name = "players_header" - layoutpolicy_horizontal = expanding - visible = "[GameHasMultiplePlayers]" - - blockoverride "button_expand_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('players'))]" - } - - blockoverride "oh_button" - { - onclick = "[Outliner.ToggleCategory('players')]" - tooltip = "[SelectLocalization( Outliner.IsCategoryShown('players'), 'OUTLINER_COLLAPSE', 'OUTLINER_EXPAND' )]" - } - - blockoverride "oh_toggle_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('players'))]" - } - - blockoverride "oh_name" - { - text = "OUTLINER_PLAYERS" - } - - blockoverride "oh_count" - { - text = "[Outliner.GetCategoryItemsCount('players')|V]" - } - - blockoverride "expanded" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('players'))]" - } - } - - type outliner_players_info = vbox { - name = "players" - datamodel = "[Outliner.GetPlayers]" - visible = "[And( Outliner.IsCategoryShown('players'), GameHasMultiplePlayers )]" - layoutpolicy_horizontal = expanding - margin = { 8 5 } - margin_bottom = 10 - spacing = 5 - - item = { - button_list = { - name = "player_button" - datacontext = "[OutlinerPlayer.GetCharacter]" - layoutpolicy_horizontal = expanding - size = { 0 40 } - - enabled = "[Character.IsValid]" - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - down = "[Character.IsShownInCharacterWindow]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - - hbox = { - spacing = 5 - margin = { 5 0 } - - coa_realm_tiny = { - visible = "[Character.HasLandedTitles]" - } - - widget = { - size = { 34 41 } - visible = "[Not( Character.HasLandedTitles )]" - - icon_observer = { - size = { 40 40 } - widgetanchor = center - parentanchor = center - } - } - - using = character_tooltip - - using = tooltip_ws - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 7 - - text_single = { - name = "player_name" - layoutpolicy_horizontal = expanding - text = "[OutlinerPlayer.GetName]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - max_width = 220 - tooltip = "[OutlinerPlayer.GetName]" - } - - widget = { - text_single = { - name = "joining_status" - #visible = "[OutlinerPlayer.IsJoining]" - layoutpolicy_horizontal = expanding - text = "[OutlinerPlayer.GetDescription]" - default_format = "#high" - using = Font_Size_Small - align = nobaseline - max_width = 220 - } - } - } - } - } - - } - } - - type outliner_units_header = button_outliner_header { - name = "units_header" - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.IsValid]" - - blockoverride "button_expand_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('unit'))]" - } - - blockoverride "oh_button" - { - onclick = "[Outliner.ToggleCategory('unit')]" - tooltip = "[SelectLocalization( Outliner.IsCategoryShown('unit'), 'OUTLINER_COLLAPSE', 'OUTLINER_EXPAND' )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - - blockoverride "oh_toggle_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('unit'))]" - } - - blockoverride "oh_name" - { - text = "OUTLINER_ARMIES" - } - - blockoverride "oh_count" - { - text = "[Outliner.GetCategoryItemsCount('unit')|V]" - } - blockoverride "expanded" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('unit'))]" - } - } - - type outliner_units_info = vbox { - name = "units" - datamodel = "[Outliner.GetUnitItems]" - visible = "[And(Outliner.IsCategoryShown('unit'), GetPlayer.IsValid)]" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - margin_bottom = 4 - - hbox = { - name = "no_units_label" - layoutpolicy_horizontal = expanding - - expand = {} - - text_single = { - visible = "[And(And(Outliner.IsCategoryShown('unit'), IsDataModelEmpty(Outliner.GetUnitItems)), GetPlayer.IsValid)]" - name = "no_units" - text = "OUTLINER_NO_ARMIES" - default_format = "#light_background;italic" - } - - expand = {} - } - - ################################ - # / \ |Name of the Army # - # \ / | A 1000 ¤¤ @ &(^) # - ################################ - item = { - button_list = { - name = "unit_item" - datacontext = "[UnitItem.GetArmy]" - layoutpolicy_horizontal = expanding - size = { 0 70 } - - onclick = "[UnitItem.SelectAndPanUnit]" - onrightclick = "[UnitItem.PanToUnit]" - button_ignore = none - down = "[UnitItem.IsSelected]" - - background = { - using = Background_Area - } - - hbox = { - - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - icon = { - texture = "[Army.GetArmyStatusOutlinerIcon]" - size = { 50 50 } - - tooltip = "[Army.GetArmyStatusTooltip]" - using = tooltip_ws - } - - - vbox = { - name = "army_info" - layoutpolicy_horizontal = expanding - margin = { 6 4 } - spacing = 0 - - hbox = { - name = "unit_item_1st_line" - layoutpolicy_horizontal = expanding - - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[Army.GetNameNoTooltip]" - default_format = "#medium" - #align = nobaseline - } - - } - - hbox = { - name = "unit_item_2nd_line" - layoutpolicy_horizontal = expanding - - margin_left = -14 - hbox_soldiers_and_quality_small = { - datacontext = "[Army.GetComposition]" - } - - expand = {} - - # Attrition - icon = { - visible = "[Army.IsArmySufferingFromAttrition]" - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - size = { 24 24 } - - } - - - spacer = { size = { 4 } } - - - - container_supply_icon = {} - } - - using = tooltip_ws - - tooltipwidget = { - using = unit_icon_item_tooltip - - blockoverride "extra_unit_info" - { - vbox = { - name = "army_extra_info" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - margin = { 5 0 } - - text_single = { - name = "status_info" - layoutpolicy_horizontal = expanding - text = "[UnitItem.GetStatusDescription]" - align = left - } - - text_single = { - name = "warning_info" - text = "[UnitItem.GetOutlinerWarning]" - margin = { 10 5 } - } - - text_single = { - name = "click_info" - text = "[SelectLocalization(UnitItem.IsSelectedOnArmyWindow, 'OUTLINER_ARMY_CLICK_TO_PAN', 'OUTLINER_ARMY_CLICK_TO_SELECT')]" - margin = { 10 5 } - } - - text_single = { - name = "right_click_info" - text = "OUTLINER_ARMY_RIGHT_CLICK_TO_PAN" - margin = { 10 5 } - } - } - } - } - } - } - } - } - } - - type outliner_holdings_header = button_outliner_header { - name = "holdings_header" - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.IsValid]" - - blockoverride "button_expand_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('holding'))]" - } - - blockoverride "oh_button" - { - - onclick = "[Outliner.ToggleCategory('holding')]" - tooltip = "[SelectLocalization( Outliner.IsCategoryShown('holding'), 'OUTLINER_COLLAPSE', 'OUTLINER_EXPAND' )]" - } - - blockoverride "oh_name" - { - text = "OUTLINER_HOLDINGS" - } - - blockoverride "oh_count" - { - text = "[Outliner.GetCategoryItemsCount('holding')|V]" - } - - blockoverride "expanded" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('holding'))]" - } - } - - type outliner_holdings_info = vbox { - name = "holdings" - datamodel = "[Outliner.GetHoldingItems]" - visible = "[Outliner.IsCategoryShown('holding')]" - layoutpolicy_horizontal = expanding - margin = { 8 5 } - margin_bottom = 4 - - item = { - button_list = { - name = "holding_item" - datacontext = "[OutlinerHoldingItem.GetTitle]" - datacontext = "[OutlinerHoldingItem.GetTitle.GetProvince.GetHolding]" - layoutpolicy_horizontal = expanding - size = { 0 34 } - - onclick = "[OutlinerHoldingItem.OnClick]" - down = "[Or(Holding.IsHoldingOrNonCapitalHoldingHovered, Holding.IsSelected)]" - tooltipwidget = { holding_tooltip_click = {} } - using = tooltip_ws - using = Holding_Mouse_Entry - - margin_widget = { - size = { 100% 100% } - margin = { 0 2 } - margin_left = 40 - - progressbar_standard_transparent = { - name = "progress_bar" - size = { 100% 100% } - visible = "[Holding.IsConstructionInProgress]" - value = "[Holding.GetConstructionProgress]" - alpha = 0.8 - } - } - - hbox = { - widget = { - size = { 40 28 } - - coa_title_tiny = { - name = "claim" - datacontext = "[Holding.GetProvince.GetTitle]" - parentanchor = center - tooltip_visible = no - } - } - - hbox = { - margin = { 5 0 } - layoutpolicy_horizontal = expanding - - hbox = { - - text_single = { - max_width = 80 - name = "holding_name" - layoutpolicy_horizontal = expanding - text = "[Holding.GetProvince.GetNameNoTooltip]" - default_format = "#high" - align = nobaseline - } - } - - expand = {} - - hbox = { - visible = "[Holding.IsConstructionInProgress]" - text_single = { - max_width = 120 - name = "construction_name" - text = "[Holding.GetConstructionBuilding.GetNameNoTooltip]" - align = right|nobaseline - default_format = "#high" - } - } - - hbox = { - visible = "[And( Not( Holding.IsConstructionInProgress ), Not( IsNomad( GetPlayer ) ) )]" - - text_single = { - text = "HOLDING_TAX_VALUE" - min_width = 70 - align = left|nobaseline - default_format = "#high" - } - - text_single = { - text = "HOLDING_LEVY_SIZE" - min_width = 60 - align = left|nobaseline - default_format = "#high" - } - } - - hbox = { - visible = "[And( Not( Holding.IsConstructionInProgress ), IsNomad( GetPlayer ) )]" - - text_single = { - text = "HOLDING_COUNTY_FERTILITY" - min_width = 70 - align = left|nobaseline - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - } - - text_single = { - text = "HOLDING_COUNTY_HERD" - min_width = 60 - align = left|nobaseline - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - } - } - } - } - } - } - } - - - type outliner_domicile_header = button_outliner_header { - name = "domiciles_header" - layoutpolicy_horizontal = expanding - visible = "[And( GetPlayer.IsValid, GetPlayer.GetDomicile.IsValid )]" - datacontext = "[GetPlayer.GetDomicile.GetType]" - - blockoverride "button_expand_frame" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('domicile'))]" - } - - blockoverride "oh_button" - { - onclick = "[Outliner.ToggleCategory('domicile')]" - tooltip = "[SelectLocalization( Outliner.IsCategoryShown('domicile'), 'OUTLINER_COLLAPSE', 'OUTLINER_EXPAND' )]" - } - - blockoverride "oh_name" - { - text = "OUTLINER_DOMICILE" - } - - blockoverride "oh_count" - { - text = "[Outliner.GetCategoryItemsCount('domicile')|V]" - } - - blockoverride "expanded" - { - frame = "[BoolTo1And2(Outliner.IsCategoryShown('domicile'))]" - } - } - - - type outliner_domicile_info = vbox { - name = "domiciles" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[And( And( GetPlayer.IsValid, GetPlayer.GetDomicile.IsValid ), Outliner.IsCategoryShown('domicile') )]" - - layoutpolicy_horizontal = expanding - - background = { - visible = "[And( GetPlayer.IsValid, GetPlayer.GetDomicile.IsValid )]" - fittype = centercrop - alpha = 0.5 - texture = "[Domicile.GetType.GetIllustration]" - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - button_standard_clean = { - layoutpolicy_horizontal = expanding - size = { 0 155 } - visible = "[And( GetPlayer.IsValid, GetPlayer.GetDomicile.IsValid )]" - - tooltip = "[Domicile.GetMapPinTooltip( GetPlayer.Self )]" - - onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" - - background = { - using = Background_Button_Illustration - visible = "[IsGameViewOpen( 'domicile' )]" - } - - using = Background_Vignette_Button - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 2 - margin = { 10 3 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "domicile_header" - layoutpolicy_horizontal = expanding - - background = { - margin_top = 0 - margin_bottom = 5 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - text_single = { - datacontext = "[GetPlayer.GetDomicile]" - text = "[Domicile.GetMainLevelText]" - max_width = 255 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - spacing = 30 - - expand = {} - - ### Overview Resources Gold - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetGoldResourceTooltip]" - using = tooltip_ws - - background = { - margin_top = 1 - margin_bottom = 1 - margin_right = 20 - margin_left = 20 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - icon = { - name = "gold_icon" - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - ### Overview Resources Influence - hbox = { - visible = "[IsAdministrativeRuler( GetPlayer )]" - spacing = 5 - - tooltip = "[Domicile.GetInfluenceResourceTooltip]" - using = tooltip_ws - - background = { - margin_top = 1 - margin_bottom = 1 - margin_right = 20 - margin_left = 20 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - icon = { - name = "influence_icon" - size = { 25 25 } - texture = "[GetPlayer.GetInfluenceLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - spacing = 30 - - expand = {} - - ### Overview Resources Prestige - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetPrestigeResourceTooltip]" - using = tooltip_ws - - background = { - margin_top = 1 - margin_bottom = 1 - margin_right = 20 - margin_left = 20 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - icon = { - name = "prestige_icon" - size = { 25 25 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - ### Overview Resources Piety - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetPietyResourceTooltip]" - using = tooltip_ws - - background = { - margin_top = 1 - margin_bottom = 1 - margin_right = 20 - margin_left = 20 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - icon = { - name = "piety_icon" - size = { 25 25 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - expand = {} - } - - hbox = { - name = "domicile_construction_info" - - layoutpolicy_horizontal = expanding - - minimumsize = { 0 10 } - - vbox = { - visible = "[Domicile.IsConstructing]" - tooltip = "[Domicile.GetBuildingUnderConstruction.GetConstructionTooltip( GetPlayer.Self )]" - using = tooltip_ws - - spacing = 5 - - hbox = { - - background = { - margin_left = 15 - margin_right = 25 - margin_top = 0 - margin_bottom = 3 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - } - - text_multi = { - text = "[Domicile.GetConstructionStatusText]" - align = nobaseline - autoresize = yes - max_width = 255 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard = { - name = "building_progressbar" - visible = "[Domicile.IsConstructing]" - alwaystransparent = yes - - layoutpolicy_horizontal = expanding - maximumsize = { 255 15 } - minimumsize = { 255 15 } - value = "[Multiply_float( FixedPointToFloat( Domicile.GetConstructionProgress ), '(float)100' )]" - direction = horizontal - } - - expand = {} - } - } - - text_single = { - visible = "[Domicile.CanUpgradeMain]" - text = "[Domicile.GetUpgradeMainText]" - default_format = "#P" - max_width = 255 - } - } - } - } - } - } -} - - -local_template character_tooltip -{ - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - tooltipwidget = { - cooltip_type = { - blockoverride "interaction_info" - { - text = "CHARACTER_TOOLTIP_INSTRUCTION" - } - } - } - using = tooltip_ws -} diff --git a/N3OW/gui/hud_ruler_objective.gui b/N3OW/gui/hud_ruler_objective.gui deleted file mode 100644 index 9c80872a..00000000 --- a/N3OW/gui/hud_ruler_objective.gui +++ /dev/null @@ -1,236 +0,0 @@ -################################################################################ -##### HUD Ruler Objective ##### -################################################################################ - -widget = { - name = "hud_ruler_objective" - visible = "[And( GetPlayersRulerObjectiveDecision.IsValid, IsGameViewOpen( 'hud_ruler_objective' ) )]" - datacontext = "[GetPlayersRulerObjectiveDecision]" - - layer = hud_layer - parentanchor = top|left - position = { 16 24 } - size = { 512 768 } - - using = Animation_ShowHide_Quick - - background = { - using = Background_Area_Dark - margin = { 0 5 } - margin_right = 5 - - using = Mask_Rough_Edges - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 8 12 } - - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - size = { 0 48 } - - blockoverride "header_text" { - text = "RULER_OBJECTIVE_WINDOW_TITLE" - } - - blockoverride "illustration_texture" { - texture = "[HudRulerObjective.GetDecisionPicture]" - } - - blockoverride "button_close" { - onclick = "[HudRulerObjective.Close]" - } - } - - vbox_ruler_objective_progress_info = { - layoutpolicy_horizontal = expanding - } - - spacer = { size = { 4 8 } } - - scrollbox = { - name = "hints" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - - # Advice player is already following.. - text_label_center = { - text = "RULER_OBJECTIVE_WINDOW_ALREADY_DOING" - default_format = "#high" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[HudRulerObjective.GetAdvice]" - spacing = 4 - - item = { - vbox_ruler_objective_advice_item = { - visible = "[RulerObjectiveAdvice.IsDoing]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - } - } - } - - spacer = { size = { 4 8 } } - - # Advice for the player to consider.. - text_label_center = { - text = "RULER_OBJECTIVE_WINDOW_CONSIDER_DOING" - default_format = "#high" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[HudRulerObjective.GetAdvice]" - spacing = 4 - - item = { - vbox_ruler_objective_advice_item = { - visible = "[Not( RulerObjectiveAdvice.IsDoing )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - } - } - } - } - - expand = {} - } - } - - spacer = { size = { 4 8 } } - - hbox = { - margin = { 16 8 } - spacing = 24 - - button_standard = { - onclick = "[CreateCommandPopup( AbandonPlayerRulerObjectiveDecision )]" - text = "RULER_OBJECTIVE_WINDOW_ABANDON" - tooltip = "[GetCommandDesc( AbandonPlayerRulerObjectiveDecision )]" - } - - button_primary = { - onclick = "[HudRulerObjective.OpenDecisionDetailView]" - text = "[HudRulerObjective.GetDecisionConfirmText]" - } - } - - # Developer convenience - hbox = { - visible = "[InDebugMode]" - margin = { 16 8 } - spacing = 24 - - button_standard = { - onclick = "[PostCommand( UpdatePlayerRulerObjectiveAdvice )]" - text = "RULER_OBJECTIVE_WINDOW_UPDATE_ADVICE" - tooltip = "[GetCommandDesc( UpdatePlayerRulerObjectiveAdvice )]" - } - } - - } -} - -types RulerObjective -{ - # Header summarizing the progress towards the objective. - type vbox_ruler_objective_progress_info = vbox { - name = "ruler_objective_progress_info" - margin = { 8 4 } - margin_left = 16 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 4 4 } - spacing = 8 - - text_single = { - visible = "[HudRulerObjective.CanEstimateProgress]" - layoutpolicy_horizontal = expanding - margin_left = -1 - text = "RULER_OBJECTIVE_WINDOW_PROGRESS" - default_format = "#medium" - } - - debug_square = { size = { 192 24 } } - } - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { -1 15 } - value = "[HudRulerObjective.GetEstimatedProgress]" - max = 100 - } - } - - - # An individual piece of advice. - type vbox_ruler_objective_advice_item = vbox { - button_tertiary = { - layoutpolicy_horizontal = expanding - # onclick = "[TitleAdviceItem.ToggleDetails]" - - size = { -1 52 } - - hbox = { - name = "ruler_objective_summary" - layoutpolicy_horizontal = expanding - - margin = { 8 2 } - spacing = 5 - - coa_title_tiny = { - datacontext = "[RulerObjectiveAdvice.GetTitle]" - } - - text_single = { - visible = "[InDebugMode]" - text = "[PdxGuiWidget.GetIndexInDataModel]" - default_format = "#D" - } - - text_single = { - text = "[RulerObjectiveAdvice.GetSummary]" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - visible = "[InDebugMode]" - text = "RULER_OBJECTIVE_ADVICE_ITEM_RELEVANCE" - default_format = "#D" - using = Font_Size_Small - } - - expand = {} - } - } - - vbox = { - name = "ruler_objective_details" - # visible = "[RulerObjectiveAdvice.IsShowingDetails]" - layoutpolicy_horizontal = expanding - - margin = { 12 8 } - margin_bottom = 16 - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 448 - min_height = 64 - text = "[RulerObjectiveAdvice.GetDescription]" - } - } - } -} diff --git a/N3OW/gui/hud_sidebars.gui b/N3OW/gui/hud_sidebars.gui deleted file mode 100644 index 1921ade0..00000000 --- a/N3OW/gui/hud_sidebars.gui +++ /dev/null @@ -1,171 +0,0 @@ -widget = { - size = { 100% 100% } - name = "hud_sidebars" - layer = bottom_bottom - visible = "[Or( '(bool)yes', '(bool)yes' )]" # Needs to be a data function call so it'll actually show - - # widget = { - # visible = "[IsGameViewOpen('dynasty_tree_view')]" - # size = { 100% 100% } - - # background = { - # name = "paper_texture_flat" - # texture = "gfx/interface/window_event/tile_letter_flat.dds" - # spriteType = Corneredtiled - # spriteborder = { 200 200 } - # size = { 100% 100% } - # color = { 0.3 0.285 0.25 1 } - - # state = { - # name = _show - # using = Animation_FadeIn_Standard - # } - - # state = { - # name = _hide - # using = Animation_FadeOut_Standard - # } - - # modify_texture = { - # name = "paper_texture_overlay" - # texture = "gfx/interface/window_event/overlay_letter_texture.dds" - # spriteType = Corneredstretched - # blend_mode = overlay - # } - # } - - # background = { - # texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - # alpha = 0.15 - # color = { 0.65 0.65 0.65 1 } - - # fittype = centercrop - # } - # } - - # widget = { - # name = "sidebar_background_left" - # visible = "[IsLeftWindowOpen]" - # parentanchor = left - # using = Window_Size_Sidebar - - # state = { - # name = _show - # using = Animation_FadeIn_Quick - # position_x = 0 - # } - - # state = { - # name = _hide - # using = Animation_FadeOut_Quick - # position_x = -60 - # } - - # margin_widget = { - # size = { 100% 100% } - - # using = Window_Background_Sidebar - # } - # } - - widget = { - name = "sidebar_background_right" - visible = "[And(IsRightWindowOpen, Not(IsGameViewOpen('struggle')))]" - parentanchor = top|right - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = 40 - } - - widget = { - parentanchor = right - position = { 10 0 } - size = { 60 100% } - - background = { - using = Background_Area_Dark - margin = { 0 5 } - margin_right = 5 - - using = Mask_Rough_Edges - } - - background = { - using = Background_Area_Dark - margin = { 0 5 } - margin_right = 5 - - using = Mask_Rough_Edges - } - - icon = { - parentanchor = right - size = { 60 100% } - position = { 12 0 } - scale = 1.04 - - texture = "gfx/interface/colors/white.dds" - color = { 0.2 0.2 0.21 0.5 } - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01_vertical.dds" - spriteType = corneredtiled - blend_mode = alphamultiply - texture_density = 0.7 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - icon = { - parentanchor = right - widgetanchor = right|vcenter - size = { 100% 600} - position = { 0 340 } - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - color = { 0.1 0.1 0.1 1 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - margin_widget = { - size = { 100% 100% } - margin_right = 40 - - using = Window_Background - - blockoverride "bg_margins" - { - margin_right = -35 - margin_left = -23 - } - } - } -} diff --git a/N3OW/gui/hud_top.gui b/N3OW/gui/hud_top.gui deleted file mode 100644 index 4b3d7327..00000000 --- a/N3OW/gui/hud_top.gui +++ /dev/null @@ -1,13 +0,0 @@ -### IN FRONT TOPBAR -container = { - name = "in_front_topbar" - parentanchor = top|hcenter - position = { 0 185 } - visible = "[InFrontTopBar.ShouldBeVisible]" - layer = top - - ### AUTOSAVE TEXT - container_saving_indicator = { - visible = "[IsAutoSaving]" - } -} \ No newline at end of file diff --git a/N3OW/gui/interaction_blackmail.gui b/N3OW/gui/interaction_blackmail.gui deleted file mode 100644 index c4de7905..00000000 --- a/N3OW/gui/interaction_blackmail.gui +++ /dev/null @@ -1,178 +0,0 @@ -###################################################### -############## BLACKMAIL INTERACTION ################ -###################################################### - -window = { - name = "blackmail_interaction_window" - datacontext = "[BlackmailInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = center - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "[SelectLocalization( BlackmailInteractionWindow.IsBlackmail, 'blackmail_interaction', 'INTRIGUE_WINDOW_EXPOSE_TITLE' )]" - } - - blockoverride "button_close" - { - onclick = "[BlackmailInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - - ### Portrait / Info - - hbox = { - name = "portrait_and_info" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - background = { - using = Background_Area - } - - text_multi = { - name = "info_text" - multiline = yes - autoresize = yes - max_width = 250 - text = "[BlackmailInteractionWindow.GetDescription]" - align = center - #using = Font_Size_Medium - } - - portrait_head = { - visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - - ### List - scrollbox = { - name = "secrets_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "BLACKMAIL_NO_SECRETS" - visible = "[Not(BlackmailInteractionWindow.HasSecrets)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[BlackmailInteractionWindow.GetSecretItems]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - button_standard = { - layoutpolicy_horizontal = expanding - tooltip = "[BlackmailSecretItem.GetTooltip]" - onclick = "[BlackmailSecretItem.OnClick]" - down = "[BlackmailSecretItem.IsSelected]" - enabled = "[BlackmailSecretItem.IsEnabled]" - text = "[BlackmailSecretItem.GetSecret.GetName]" - - icon = { - size = { 26 26 } - parentanchor = vcenter - position = { 5 0 } - texture = "[BlackmailSecretItem.GetSecret.GetType.GetIcon]" - } - } - - icon = { - size = { 26 26 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = 1 - visible = "[And( BlackmailInteractionWindow.IsBlackmail, BlackmailSecretItem.IsWeakHook )]" - - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - tooltip = "INTRIGUE_WINDOW_BLACKMAIL_WEAK_HOOK_TT" - } - - icon = { - size = { 26 26 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = 2 - visible = "[And( BlackmailInteractionWindow.IsBlackmail, BlackmailSecretItem.IsStrongHook )]" - - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - tooltip = "INTRIGUE_WINDOW_BLACKMAIL_STRONG_HOOK_TT" - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_bottom = 15 - spacing = 10 - - vbox_character_interaction_effects = { - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - visible = "[BlackmailInteractionWindow.IsBlackmail]" - } - - hbox_character_interaction_acceptance = { - visible = "[And( BlackmailInteractionWindow.IsBlackmail, CharacterInteractionConfirmationWindow.ShouldShowAnswer )]" - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = { - visible = "[BlackmailInteractionWindow.IsBlackmail]" - } - - ### Send Button - button_primary = { - name = "send_offer_button" - size = { 400 42 } - enabled = "[BlackmailInteractionWindow.CanSendOffer]" - onclick = "[BlackmailInteractionWindow.Send]" - - text = "[SelectLocalization( BlackmailInteractionWindow.IsBlackmail, CharacterInteractionConfirmationWindow.GetSendName, 'INTRIGUE_WINDOW_SECRET_EXPOSE' )]" - using = Font_Size_Medium - - tooltip = "[BlackmailInteractionWindow.GetSendOfferTooltip]" - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/interaction_call_ally.gui b/N3OW/gui/interaction_call_ally.gui deleted file mode 100644 index f72aee13..00000000 --- a/N3OW/gui/interaction_call_ally.gui +++ /dev/null @@ -1,162 +0,0 @@ -###################################################### -################## CALL ALLY TO WAR ################## -###################################################### -window = { - name = "call_ally_interaction_window" - datacontext = "[CallAllyInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|right - position = { -25 85 } - size = { 600 900 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Warfare - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - minimumsize = { 600 900 } - set_parent_size_to_minimum = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "call_ally" - } - - blockoverride "button_close" - { - onclick = "[CallAllyInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - - ### Portrait / Info - hbox = { - name = "portrait_and_info" - layoutpolicy_horizontal = expanding - margin = { 15 5 } - - vbox = { - layoutpolicy_vertical = expanding - expand = {} - - text_multi = { - name = "info_text" - layoutpolicy_horizontal = expanding - multiline = yes - autoresize = yes - max_width = 300 - text = "[CallAllyInteractionWindow.GetCallAllyDescription]" - align = left - } - } - - expand = {} - - portrait_head = { - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - - ### WAR LIST - scrollbox = { - name = "wars_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 500 } - - blockoverride "scrollbox_empty" - { - text = "CALL_ALLY_NO_WARS" - visible = "[Not(CallAllyInteractionWindow.HasWars)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "wars_grid" - datamodel = "[CallAllyInteractionWindow.GetWarItems]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "war_list_item" - datacontext = "[CallAllyWarItem.GetWar]" - layoutpolicy_horizontal = expanding - - onclick = "[CallAllyWarItem.OnClick]" - down = "[CallAllyWarItem.IsSelected]" - enabled = "[CallAllyWarItem.IsEnabled]" - tooltip = "[CallAllyWarItem.GetTooltip]" - - text = "[War.GetName]" - align = left|nobaseline - default_format = "#medium" - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - # spacing = 10 - margin = { 0 15 } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - vbox_character_interaction_effects = { - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - blockoverride "minimumsize" {} - } - - ## Options - vbox_interaction_options = { - visible = "[CharacterInteractionConfirmationWindow.HasOptions]" - } - - ### ACCEPTANCE - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = {} - - ### SEND OFFER BUTTON - button_primary_big = { - name = "send_offer_button" - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - enabled = "[CallAllyInteractionWindow.CanSendOffer]" - onclick = "[CallAllyInteractionWindow.Send]" - tooltip = "[CallAllyInteractionWindow.GetSendOfferTooltip]" - } - } - } -} diff --git a/N3OW/gui/interaction_call_ally_notification_window.gui b/N3OW/gui/interaction_call_ally_notification_window.gui deleted file mode 100644 index bfc0838a..00000000 --- a/N3OW/gui/interaction_call_ally_notification_window.gui +++ /dev/null @@ -1,198 +0,0 @@ -###################################################### -############## INTERACTION NOTIFICATION ############## -###################################################### - -window = { - name = "call_ally_interaction_notification_window" - parentanchor = top|hcenter - position = { 0 90 } - layer = middle - - using = Window_Background - using = Window_Decoration_Warfare - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionNotificationWindow.GetContextName]" - } - - blockoverride "button_close" - { - onclick = "[CallAllyInteractionNotificationWindow.Close]" - } - } - - vbox_sender_portrait_message = { - layoutpolicy_horizontal = expanding - } - - hbox = { - name = "allies" - datacontext = [CallAllyInteractionNotificationWindow.GetPrimaryAlly] - visible = [Character.IsValid] - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_left = 15 - spacing = 10 - - background = { - using = Background_Area - } - - widget = { - size = { 80 0 } - layoutpolicy_vertical = expanding - - vbox = { - text_single = { - name = "allies_label" - layoutpolicy_horizontal = expanding - text = "WAR_ALLIES" - - max_width = 90 - using = Font_Size_Medium - } - } - } - - hbox = { - datacontext = "[CallAllyInteractionNotificationWindow.GetPrimaryAlly]" - portrait_head_small = { } - } - - scrollarea = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 80 } - scrollbarpolicy_vertical = always_off - scrollbarpolicy_horizontal = as_needed - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - } - - scrollwidget = { - dynamicgridbox = { - name = "secondary_allies_grid" - datamodel = "[CallAllyInteractionNotificationWindow.GetSecondaryAllies]" - - item = { - portrait_head_small = { - name = "character_button" - } - } - } - } - - } - - expand = {} - } - - hbox = { - name = "enemies" - datacontext = [CallAllyInteractionNotificationWindow.GetPrimaryEnemy] - visible = [Character.IsValid] - layoutpolicy_horizontal = expanding - margin = { 15 5 } - spacing = 10 - - background = { - using = Background_Area - } - - widget = { - size = { 80 0 } - layoutpolicy_vertical = expanding - - vbox = { - text_single = { - name = "enemies_label" - layoutpolicy_horizontal = expanding - text = "WAR_ENEMIES" - - max_width = 90 - using = Font_Size_Medium - } - } - } - - hbox = { - datacontext = "[CallAllyInteractionNotificationWindow.GetPrimaryEnemy]" - portrait_head_small = { } - } - - scrollarea = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 80 } - scrollbarpolicy_vertical = always_off - scrollbarpolicy_horizontal = as_needed - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - } - - scrollwidget = { - dynamicgridbox = { - name = "secondary_allies_grid" - datamodel = "[CallAllyInteractionNotificationWindow.GetSecondaryEnemies]" - - item = { - portrait_head_small = { - name = "character_button" - } - } - } - } - - } - - expand = {} - } - - vbox_character_interaction_effects = { - visible = "[CharacterInteractionNotificationWindow.GetCharacterInteraction.ShowEffectsInNotification]" - datacontext = "[CharacterInteractionNotificationWindow.GetEffectsDescription]" - } - - hbox = { - margin = { 0 10 } - spacing = 15 - - button_standard = { - name = "reject_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerRejectText]" - onclick = "[CharacterInteractionNotificationWindow.Reject]" - enabled = "[CharacterInteractionNotificationWindow.CanReject]" - using = tooltip_ws - default_format = "#medium" - } - - button_primary = { - name = "accept_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerAcceptText]" - onclick = "[CharacterInteractionNotificationWindow.Accept]" - enabled = "[CharacterInteractionNotificationWindow.CanAccept]" - } - } - } - -} diff --git a/N3OW/gui/interaction_concubine.gui b/N3OW/gui/interaction_concubine.gui deleted file mode 100644 index e3edb317..00000000 --- a/N3OW/gui/interaction_concubine.gui +++ /dev/null @@ -1,302 +0,0 @@ -###################################################### -############ FIND CONCUBINE INTERACTION ############## -###################################################### - -window = { - name = "concubine_interaction_window" - datacontext = "[ConcubineInteractionWindow.GetBaseWindow]" - datacontext = "[MatchmakerInteractionWindow.GetCharacterInteractionConfirmationWindow]" - position = { 0 20 } - parentanchor = center - allow_outside = yes - layer = middle - - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - hbox = { - margin_bottom = -10 - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[MatchmakerInteractionWindow.Close]" - } - } - } - - widget_character_interaction_four_characters = { - layoutpolicy_horizontal = expanding - - blockoverride "bg_illustration_datacontext" - { - datacontext = "[GetIllustration( 'character_religion_interior' )]" - } - - blockoverride "bg_illustration" - { - texture = "[Illustration.GetTexture( MatchmakerInteractionWindow.GetActorToMatch.MakeScope )]" - } - - blockoverride "left_small_portrait" - { - visible = no - } - - blockoverride "right_small_portrait" - { - visible = no - } - - blockoverride "button_clear" - { - visible = "[MatchmakerInteractionWindow.CanChangeRecipientCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]" - } - - blockoverride "left_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - } - - blockoverride "left_interaction_portrait_glow" - { - visible = no - } - - blockoverride "right_portrait" - { - datacontext = "[MatchmakerInteractionWindow.GetRecipientToMatch]" - } - - blockoverride "right_interaction_portrait_glow" - { - visible = "[MatchmakerInteractionWindow.IsPickingSecondaryRecipient]" - } - - blockoverride "button_right_change" - { - visible = "[MatchmakerInteractionWindow.CanChangeRecipientCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]" - } - - blockoverride "button_right_revert" - { - visible = "[MatchmakerInteractionWindow.CanRevertRecipientCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]" - } - - blockoverride "button_clear" - { - visible = no - } - } - - vbox = { - name = "info_and_send_offer" - visible = "[MatchmakerInteractionWindow.HasPickedCharacters]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - name = "info" - - vbox = { - datacontext = "[ConcubineInteractionWindow.GetConcubineInfo]" - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - - layoutpolicy_horizontal = expanding - margin = { 20 10 } - - vbox_concubine_interaction_details = { - datacontext = "[ConcubineInfo.GetBaseOffer]" - layoutpolicy_horizontal = expanding - } - - vbox_character_interaction_effects_contents = {} - } - } - } - - ### Send offer info - vbox_arrangement_interaction_send_offer = { - layoutpolicy_horizontal = expanding - - blockoverride "button_content" { - text = "find_concubine_button_name" - - } - } - } - - ### Character List - vbox = { - name = "character_list" - visible = "[Not(MatchmakerInteractionWindow.HasPickedCharacters)]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 130 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ConcubineInteractionWindow.GetPrompt]" - visible = "[Or(MatchmakerInteractionWindow.GetCharacterList.HasItems, MatchmakerInteractionWindow.HasTopCharacterItem )]" - align = center - } - - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox_character_list = { - datacontext = "[MatchmakerInteractionWindow.GetCharacterList]" - datacontext = "[CharacterSelectionList.GetFilterWithDefault('fertility_filter', '(int32)1')]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 667 - addrow = 100 - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item = { - size = { 640 110 } - } - } - } - } - - blockoverride "special_character" { - vbox = { - datacontext = "[MatchmakerInteractionWindow.GetTopCharacterItem]" - visible = "[MatchmakerInteractionWindow.HasTopCharacterItem]" - layoutpolicy_horizontal = expanding - - widget_character_list_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[MatchmakerInteractionWindow.GetCharacterList]" - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_diff_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('fertility_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('trait_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/interaction_confirmation.gui b/N3OW/gui/interaction_confirmation.gui deleted file mode 100644 index d42837d6..00000000 --- a/N3OW/gui/interaction_confirmation.gui +++ /dev/null @@ -1,477 +0,0 @@ -###################################################### -############# INTERACTION CONFIRMATION ############### -###################################################### - -window = { - name = "character_interaction_confirmation_window" - position = { 0 20 } - parentanchor = center - allow_outside = yes - layer = middle - - using = Window_Size_MainTab - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - on_start = "[GetVariableSystem.Clear( 'character_interaction_change_title' )]" - on_start = "[GetVariableSystem.Clear( 'character_interaction_change_artifact' )]" - on_start = "[GetVariableSystem.Clear( 'character_interaction_change_maa' )]" - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - set_parent_size_to_minimum = yes - using = Window_Margins - - hbox = { - name = "interaction_window_heading" - visible = "[Not( CharacterInteractionConfirmationWindow.ShouldShowScheme )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = -4 - - header_pattern_interaction = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 100% -1 } - - blockoverride "header_text" { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[CharacterInteractionConfirmationWindow.Close]" - } - - icon_character_interaction = { - size = { 50 50 } - position = { 0 0 } - tooltip = "[CharacterInteractionConfirmationWindow.GetInteractionTooltip]" - } - } - } - - # Scheme header - scheme_header_widget = { - visible = "[CharacterInteractionConfirmationWindow.ShouldShowScheme]" - - blockoverride "header_text" { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[CharacterInteractionConfirmationWindow.Close]" - } - } - - vbox_character_interaction_three_characters = { - visible = "[And(Not(GetVariableSystem.Exists('character_interaction_change_title')), CharacterInteractionConfirmationWindow.ShowThreeCharacters)]" - layoutpolicy_horizontal = expanding - } - - # Artifact Picker - vbox = { - name = "interaction_window_artifact_picker" - visible = "[CharacterInteractionConfirmationWindow.UsesArtifactTarget]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 14 10 } - - hbox = { - visible = "[CharacterInteractionConfirmationWindow.HasSelectedArtifact]" - datacontext = "[CharacterInteractionConfirmationWindow.GetSelectedArtifact]" - layoutpolicy_vertical = expanding - spacing = 5 - - widget = { - size = { 80 80 } - alwaystransparent = yes - - icon_artifact = { - size = { 100% 100% } - } - - tooltipwidget = { - artifact_tooltip = {} - } - } - - text_single = { - text = "[Artifact.GetName]" - using = Font_Size_Medium - align = nobaseline - - tooltipwidget = { - artifact_tooltip = {} - } - } - - button_round = { - name = "change" - datacontext = "[GetVariableSystem]" - onclick = "[VariableSystem.Toggle( 'character_interaction_change_artifact' )]" - - tooltip = "CHARACTER_INTERACTION_WINDOW_SELECT_ARTIFACT_TOOLTIP" - using = tooltip_below - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - } - - hbox = { - visible = "[Not( CharacterInteractionConfirmationWindow.HasSelectedArtifact )]" - minimumsize = { 0 112 } - margin = { 10 10 } - - text_single = { - text = "CHARACTER_INTERACTION_NO_TARGET_SELECTED" - using = Font_Size_Medium - align = nobaseline - } - } - - #### replaces character effects ### - scrollbox = { - visible = "[GetVariableSystem.Exists( 'character_interaction_change_artifact' )]" - layoutpolicy_horizontal = expanding - size = { 400 400 } - - blockoverride "scrollbox_content" - { - vbox_list_interaction_artifact_selection = { - maximumsize = { 250 400 } - layoutpolicy_horizontal = expanding - - blockoverride "button_toggles" {} - } - } - } - } - - # MaA Picker - vbox = { - visible = "[CharacterInteractionConfirmationWindow.UsesMaaTarget]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - visible = "[Not( CharacterInteractionConfirmationWindow.HasSelectedMaa )]" - minimumsize = { 0 112 } - margin = { 10 10 } - - text_single = { - text = "CHARACTER_INTERACTION_NO_TARGET_SELECTED" - using = Font_Size_Medium - align = nobaseline - } - } - - text_single = { - text = "[CharacterInteractionConfirmationWindow.GetSelectedMaa.GetName]" - visible = "[CharacterInteractionConfirmationWindow.HasSelectedMaa]" - } - - button_round = { - name = "change" - datacontext = "[GetVariableSystem]" - onclick = "[VariableSystem.Toggle( 'character_interaction_change_maa' )]" - - tooltip = "CHARACTER_INTERACTION_WINDOW_SELECT_ARTIFACT_TOOLTIP" - using = tooltip_below - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - #### replaces character effects ### - scrollbox = { - visible = "[GetVariableSystem.Exists( 'character_interaction_change_maa' )]" - layoutpolicy_horizontal = expanding - size = { 400 400 } - - blockoverride "scrollbox_content" - { - vbox_list_interaction_maa_selection = { - maximumsize = { 250 400 } - layoutpolicy_horizontal = expanding - - blockoverride "button_toggles" {} - } - } - } - } - - ### EDUCATE CHILD ### - vbox = { - layoutpolicy_horizontal = expanding - - widget_character_interaction_four_characters = { - visible = "[CharacterInteractionConfirmationWindow.ShowFourCharacters]" - layoutpolicy_horizontal = expanding - } - - vbox_interaction_character_list = { - visible = "[And( And( And( Not( GetVariableSystem.Exists( 'character_interaction_change_title' ) ), Not(GetVariableSystem.Exists( 'character_interaction_change_artifact' ) ) ), Not( GetVariableSystem.Exists( 'character_interaction_change_maa' ) ) ), Not( CharacterInteractionConfirmationWindow.HasPickedCharacters ) )]" - datacontext = "[CharacterInteractionConfirmationWindow.GetCharacterList]" - layoutpolicy_horizontal = expanding - minimumsize = { 640 480 } - - blockoverride "item_size" - { - size = { 600 110 } - layoutpolicy_horizontal = expanding - - } - } - } - - ## Scheme Information - vbox_scheme_info = { - visible = "[And( CharacterInteractionConfirmationWindow.ShouldShowScheme, Not( CharacterInteractionConfirmationWindow.IsActorRecipientSame ) )]" - datacontext = "[CharacterInteractionConfirmationWindow.GetSchemeInfo]" - layoutpolicy_horizontal = expanding - } - - ## Effects on Characters - vbox_character_interaction_effects = { - visible = "[And( And( And( And( Not( GetVariableSystem.Exists( 'character_interaction_change_title' ) ), Not(GetVariableSystem.Exists( 'character_interaction_change_artifact' ) ) ), Not( GetVariableSystem.Exists( 'character_interaction_change_maa' ) ) ), CharacterInteractionConfirmationWindow.HasPickedCharacters ), InteractionEffectsDescription.GetDisplayedEffects.HasAnyEffects )]" - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - } - - expand = {} - - # Title Picker - vbox = { - name = "interaction_window_title_picker" - visible = "[CharacterInteractionConfirmationWindow.UsesTitleTarget]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 5 - spacing = 10 - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - hbox = { - visible = "[CharacterInteractionConfirmationWindow.GetSelectedTitle.IsValid]" - spacing = 5 - - background = { - margin_right = 30 - margin_top = -15 - margin_bottom = -10 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - widget = { - size = { 50 60 } - - coa_title_small_crown = { - name = "selected_title_flag" - datacontext = "[CharacterInteractionConfirmationWindow.GetSelectedTitle]" - parentanchor = center - scale = 0.8 - } - } - - text_single = { - datacontext = "[CharacterInteractionConfirmationWindow.GetSelectedTitle]" - text = "[Title.GetNameNoTooltip|U]" - using = Font_Size_Medium - } - } - - button_round = { - name = "change" - datacontext = "[GetVariableSystem]" - onclick = "[VariableSystem.Toggle( 'character_interaction_change_title' )]" - - tooltip = "CHARACTER_INTERACTION_WINDOW_SELECT_TITLE_TOOLTIP" - using = tooltip_below - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - expand = {} - } - - hbox = { - visible = "[Not( CharacterInteractionConfirmationWindow.HasSelectedTitle )]" - minimumsize = { 0 112 } - margin = { 10 10 } - - text_single = { - text = "CHARACTER_INTERACTION_NO_TARGET_SELECTED" - using = Font_Size_Medium - align = nobaseline - } - } - - #### replaces character effects ### - scrollbox = { - visible = "[GetVariableSystem.Exists('character_interaction_change_title')]" - layoutpolicy_horizontal = expanding - size = { 500 250 } - - blockoverride "scrollbox_content" - { - vbox_list_interaction_title_selection = { - maximumsize = { 450 250 } - layoutpolicy_horizontal = expanding - - blockoverride "button_toggles" {} - } - } - } - } - - ## Options - vbox_interaction_options = { - widgetid = "interaction_options" - visible = "[CharacterInteractionConfirmationWindow.HasOptions]" - } - - ### Acceptance - hbox_character_interaction_acceptance = { - visible = "[CharacterInteractionConfirmationWindow.ShouldShowAnswer]" - layoutpolicy_horizontal = expanding - margin_top = 15 - } - - text_multi_on_decline_summary = {} - - vbox = { - spacing = 5 - margin = { 20 10 } - - hbox = { - visible = "[CharacterInteractionConfirmationWindow.HasCost]" - spacing = 5 - - tooltip = "[CharacterInteractionConfirmationWindow.GetCostTooltip]" - - text_single = { - text = "INTERACTION_COST" - } - - text_single = { - text = "[CharacterInteractionConfirmationWindow.GetCostDescription]" - } - } - - ## Send Button - hbox = { - name = "button" - spacing = 10 - - button_primary_big = { - visible = "[Not( CharacterInteractionConfirmationWindow.ShouldShowScheme )]" - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - - onclick = "[CharacterInteractionConfirmationWindow.Send]" - enabled = "[CharacterInteractionConfirmationWindow.CanSend]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCanSendDescription]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - } - - ## Send button Schemes - button_primary_big = { - visible = "[CharacterInteractionConfirmationWindow.ShouldShowScheme]" - datacontext = "[CharacterInteractionConfirmationWindow.GetSchemeInfo]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - - onclick = "[CharacterInteractionConfirmationWindow.Send]" - enabled = "[CharacterInteractionConfirmationWindow.CanSend]" - - tooltip = "[CharacterInteractionConfirmationWindow.GetCanSendDescription]" - - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - - widget = { - visible = "[InteractionSchemeInfo.IsReplace]" - parentanchor = center - size = { 100% 100% } - - tooltip = "INTERACTION_REPLACE_SCHEME" - - warning_icon = { - parentanchor = left|vcenter - position = { 5 0 } - size = { 30 30 } - } - } - } - - button_standard = { - visible = "[InDebugMode]" - size = { 42 42 } - raw_text = "#D R#!" - tooltip = "[CharacterInteractionConfirmationWindow.GetDebugInfo]" - } - } - } - } - - window_character_filter = { - datacontext = "[CharacterInteractionConfirmationWindow.GetCharacterList]" - blockoverride "addition_filter" { - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } -} diff --git a/N3OW/gui/interaction_council_task.gui b/N3OW/gui/interaction_council_task.gui deleted file mode 100644 index 7b9b2d86..00000000 --- a/N3OW/gui/interaction_council_task.gui +++ /dev/null @@ -1,315 +0,0 @@ -window = { - name = "council_task_interaction_window" - size = { 650 875 } - datacontext = "[CouncilTaskInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = center - layer = middle - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - - hbox = { - margin_bottom = -10 - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "select_council_task_header" - } - - blockoverride "button_close" - { - onclick = "[CouncilTaskInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "portraits" - layoutpolicy_horizontal = expanding - size = { 0 160 } - margin = { 25 5 } - margin_top = 10 - - background = { - texture = "gfx/interface/illustrations/event_scenes/councilchamber.dds" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - } - - ### LEFT ACTOR - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 330 160 } - - expand = {} - - text_multi = { - name = "select_position_label" - visible = "[Not( CouncilTaskInteractionWindow.HasSelectedTask )]" - layoutpolicy_horizontal = expanding - text = "COUNCIL_TASK_INTERACTION_WINDOW_SELECT_TASK" - autoresize = yes - max_width = 260 - default_format = "#instruction" - align = center|nobaseline - - background = { - using = Text_Label_Background - margin = { 0 3 } - margin_bottom = 5 - } - } - - text_multi = { - name = "selected_position_label" - visible = "[CouncilTaskInteractionWindow.HasSelectedTask]" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 260 - align = center|nobaseline - text = "COUNCIL_TASK_INTERACTION_WINDOW_SELECTED_TASK" - - background = { - using = Text_Label_Background - margin = { 0 3 } - margin_bottom = 5 - } - } - } - - ### RIGHT RECIPIENT - portrait_shoulders = { - name = "right_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - scrollbox = { - name = "council_positions" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - margin = { 5 5 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - datamodel = "[CouncilTaskInteractionWindow.AccessPositions]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - spacing = 5 - - item = { - select_council_position_button = {} - } - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - hbox_character_interaction_acceptance = { - visible = "[CharacterInteractionConfirmationWindow.ShouldShowAnswer]" - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = {} - - hbox = { - visible = "[CharacterInteractionConfirmationWindow.HasCost]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCostTooltip]" - - text_single = { - text = "INTERACTION_COST" - } - - text_single = { - text = "[CharacterInteractionConfirmationWindow.GetCostDescription]" - } - } - - hbox = { - margin = { 0 10 } - margin_bottom = 15 - - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - onclick = "[CouncilTaskInteractionWindow.Send]" - enabled = "[CouncilTaskInteractionWindow.CanSendOffer]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - using = Font_Size_Medium - - tooltip = "[CouncilTaskInteractionWindow.GetSendOfferTooltip]" - } - } - } -} - -types CouncilPositionButton -{ - type select_council_position_button = button_standard_clean { - datacontext = "[CouncilTaskInteractionItem.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - datacontext = "[CouncilTaskInteractionWindow.GetSkillItemForPosition( CouncilPositionType.Self )]" - layoutpolicy_horizontal = expanding - - enabled = "[Not( ObjectsEqual( Character.Self, GetPlayer ) )]" - onclick = "[CouncilTaskInteractionItem.Select]" - down = "[ObjectsEqual( ActiveCouncilTask.Self, CouncilTaskInteractionWindow.GetSelectedTask )]" - - vbox = { - name = "position" - margin = { 10 0 } - spacing = 4 - set_parent_size_to_minimum = yes - - spacer = { - size = {510 0 } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "position_label" - alwaystransparent = yes - text = "[ActiveCouncilTask.GetPositionName]" - using = Font_Size_Medium - align = nobaseline - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - spriteType = CorneredTiled - spriteborder = { 40 20 } - margin = { 15 5 } - margin_right = 350 - - block "bg" - { - frame = "[SkillItem.GetFrame]" - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - expand = {} - - skill_icon_label = { - datacontext = "[CouncilTaskInteractionWindow.GetSkillItemForPosition( CouncilPositionType.Self )]" - visible = "[ActiveCouncilTask.HasMainSkill]" - } - } - - text_single = { - name = "no_councillor" - visible = "[Not( Character.IsValid )]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "COUNCIL_TASK_INTERACTION_VACANT" - } - - text_single = { - name = "current" - visible = "[And( Character.IsValid, Not( ObjectsEqual( GetPlayer, Character.Self ) ) )]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "COUNCIL_TASK_INTERACTION_CURRENT" - align = nobaseline - } - - text_single = { - name = "current_you" - visible = "[ObjectsEqual( GetPlayer, Character.Self )]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "COUNCIL_TASK_INTERACTION_CURRENT_YOU" - } - } - - divider_light = { - layoutpolicy_horizontal = growing - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - alwaystransparent = yes - - text = "[CouncilPositionType.GetCouncillorModifierDescFor( GetPlayer )]" - autoresize = yes - - margin_bottom = 10 - margin_left = 20 - } - } - } -} diff --git a/N3OW/gui/interaction_court_task.gui b/N3OW/gui/interaction_court_task.gui deleted file mode 100644 index 0bc1debd..00000000 --- a/N3OW/gui/interaction_court_task.gui +++ /dev/null @@ -1,344 +0,0 @@ -window = { - name = "court_task_interaction_window" - size = { 650 700 } - datacontext = "[CourtTaskInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = center - layer = middle - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - - hbox = { - margin_bottom = -10 - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CourtTaskInteractionWindow.GetSelectedPositionHeader]" - } - - blockoverride "button_close" - { - onclick = "[CourtTaskInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "portraits" - layoutpolicy_horizontal = expanding - size = { 0 160 } - margin = { 25 5 } - margin_top = 10 - - background = { - texture = "gfx/interface/illustrations/event_scenes/councilchamber.dds" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - } - - ### LEFT ACTOR - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 330 160 } - - text_multi = { - name = "select_position_label" - visible = "[Not( CourtTaskInteractionWindow.HasSelectedPosition )]" - layoutpolicy_horizontal = expanding - text = "COURT_TASK_INTERACTION_WINDOW_SELECT_TASK" - autoresize = yes - max_width = 260 - default_format = "#instruction" - align = center|nobaseline - - background = { - using = Text_Label_Background - margin = { 0 3 } - margin_bottom = 5 - } - } - - text_multi = { - name = "selected_position_label" - visible = "[CourtTaskInteractionWindow.HasSelectedPosition]" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 260 - align = center|nobaseline - text = "COURT_TASK_INTERACTION_WINDOW_SELECTED_TASK" - - background = { - using = Text_Label_Background - margin = { 0 3 } - margin_bottom = 5 - } - } - expand = {} - } - - ### RIGHT RECIPIENT - portrait_shoulders = { - name = "right_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - scrollbox = { - name = "court_positions" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - margin = { 5 5 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - datamodel = "[CourtTaskInteractionWindow.AccessPositions]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - select_court_position_button = {} - } - } - expand = {} - } - } - } - vbox = { - margin = { 0 10 } - margin_bottom = 15 - - vbox_interaction_options = { - layoutpolicy_horizontal = expanding - } - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - margin = { 0 4 } - } - - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - onclick = "[CourtTaskInteractionWindow.Send]" - enabled = "[CourtTaskInteractionWindow.CanSendOffer]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - using = Font_Size_Medium - - tooltip = "[CourtTaskInteractionWindow.GetSendOfferTooltip]" - } - expand = {} - } - } -} - -types CourtPositionButton -{ - type select_court_position_button = button_standard_clean { - layoutpolicy_horizontal = expanding - datacontext = "[CourtTaskInteractionItem.GetCourtPosition]" - onclick = "[CourtTaskInteractionItem.Select]" - down = "[ObjectsEqual( CourtPositionType.Self, CourtTaskInteractionWindow.GetSelectedPosition )]" - - vbox = { - name = "position" - margin = { 10 0 } - spacing = 4 - set_parent_size_to_minimum = yes - - spacer = { - size = { 510 0 } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - hbox = { - margin_bottom = 4 - layoutpolicy_horizontal = expanding - icon = { - texture = "[CourtPositionType.GetIcon]" - size = { 40 40 } - } - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 8 - - name = "position_label" - alwaystransparent = yes - text = "[CourtPositionType.GetName]" - using = Font_Size_Medium - align = nobaseline - } - text_single = { - visible = "[Not(ObjectsEqual( GetPlayer.Self, CharacterInteractionConfirmationWindow.GetActor.Self ))]" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - layoutpolicy_horizontal = expanding - margin_top = -2 - margin_left = 2 - - name = "aptitude_label_1" - alwaystransparent = yes - text = "[Character.GetCourtPositionAptitude( CourtPositionType.Self )]" - align = nobaseline - } - text_single = { - visible = "[ObjectsEqual( GetPlayer.Self, CharacterInteractionConfirmationWindow.GetActor.Self )]" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - layoutpolicy_horizontal = expanding - margin_top = -2 - margin_left = 2 - - name = "aptitude_label_2" - alwaystransparent = yes - text = "[Character.GetCourtPositionAptitude( CourtPositionType.Self )]" - align = nobaseline - } - } - expand = {} - text_single = { - margin_top = -4 - default_format = "#high" - using = tooltip_ne - text = "[CourtPositionType.GetEmployerSalaryTextFor( GetPlayer )]" - tooltip = "[CourtPositionType.GetEmployerSalaryBreakdownFor( GetPlayer )]" - alwaystransparent = yes - } - } - } - - #divider_light = { - # layoutpolicy_horizontal = growing - #} - # - #text_multi = { - # name = "employer_modifier_header" - # layoutpolicy_horizontal = expanding - # layoutpolicy_vertical = expanding - # margin = { 8 4 } - # alwaystransparent = yes - # - # minimumsize = { 340 50 } - # maximumsize = { 440 150 } - # autoresize = yes - # default_format = "#S" - # - # align = bottom|left|nobaseline - # text = "COURT_POSITION_TOOLTIP_EFFECT_ON_LIEGE" - #} - # - #text_multi = { - # name = "employer_modifier_description" - # layoutpolicy_horizontal = expanding - # layoutpolicy_vertical = expanding - # margin = { 8 4 } - # alwaystransparent = yes - # - # minimumsize = { 340 50 } - # maximumsize = { 440 150 } - # autoresize = yes - # - # align = top|left|nobaseline - # text = "[CourtPositionType.GetEmployerModifierDescription]" - #} - # - #text_multi = { - # name = "employee_modifier_header" - # layoutpolicy_horizontal = expanding - # layoutpolicy_vertical = expanding - # margin = { 8 4 } - # alwaystransparent = yes - # - # minimumsize = { 340 50 } - # maximumsize = { 440 150 } - # autoresize = yes - # default_format = "#S" - # - # align = bottom|left|nobaseline - # text = "COURT_POSITION_TOOLTIP_EFFECT_ON_HOLDER" - #} - # - #text_multi = { - # name = "employee_modifier_description" - # layoutpolicy_horizontal = expanding - # layoutpolicy_vertical = expanding - # margin = { 8 4 } - # alwaystransparent = yes - # - # minimumsize = { 340 50 } - # maximumsize = { 440 150 } - # autoresize = yes - # - # align = top|left|nobaseline - # text = "[CourtPositionType.GetEmployeeModifierDescription]" - #} - # - #text_multi = { - # name = "liege_court_modifiers" - # visible = "[CourtPositionType.HasLiegeCourtModifiers]" - # layoutpolicy_horizontal = expanding - # layoutpolicy_vertical = expanding - # margin = { 8 4 } - # - # minimumsize = { 340 50 } - # maximumsize = { 440 150 } - # autoresize = yes - # - # align = top|left|nobaseline - # text = "COURT_POSITION_TYPE_EMPLOYER_COURT_EFFECTS" - #} - } - } -} diff --git a/N3OW/gui/interaction_create_claimant_faction.gui b/N3OW/gui/interaction_create_claimant_faction.gui deleted file mode 100644 index 721dce74..00000000 --- a/N3OW/gui/interaction_create_claimant_faction.gui +++ /dev/null @@ -1,624 +0,0 @@ -###################################################### -################ CREATE CLAIMANT FACTION ############# -###################################################### -window = { - name = "create_claimant_faction_against_interaction_window" - size = { 650 875 } - datacontext = "[CreateClaimantFactionAgainstWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|left - widgetanchor = top|left - position = { 700 90 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "create_claimant_faction_against" - } - - blockoverride "button_close" - { - onclick = "[CreateClaimantFactionAgainstWindow.Close]" - } - - icon_character_interaction = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - margin_bottom = 10 - - hbox = { - name = "portraits" - layoutpolicy_horizontal = expanding - size = { 0 170 } - - ### LEFT ACTOR - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - hbox = { - - background = { - using = Background_Area_Border - margin = { 10 10 } - } - - vbox = { - portrait_head = { - name = "left_main_portrait" - visible = "[Character.IsValid]" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - tooltip_visible = "[Character.IsValid]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - visible = "[CreateClaimantFactionAgainstWindow.IsTitleSelected]" - - coa_title_medium_crown = { - datacontext = "[CreateClaimantFactionAgainstWindow.GetSelectedTitle.GetTitle]" - visible = "[And(CharacterInteractionConfirmationWindow.GetRecipient.IsValid, CreateClaimantFactionAgainstWindow.IsTitleSelected)]" - } - - expand = {} - } - - button_round = { - name = "change_left_character" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - tooltip = "CHANGE_CHARACTER" - using = tooltip_below - onclick = "[CreateClaimantFactionAgainstWindow.ClearRecipient]" - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - } - - expand = {} - } - - expand = {} - - ### RIGHT RECIPIENT - portrait_shoulders = { - name = "right_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetSecondaryActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin_bottom = 10 - - text_single = { - name = "select_title_label" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - text = "FACTIONS_WINDOW_START_CLAIMANT_FACTION_PICK_TITLE" - using = Font_Size_Medium - } - - text_single = { - name = "select_claimant_label" - visible = "[Not(CharacterInteractionConfirmationWindow.GetRecipient.IsValid)]" - text = "FACTIONS_WINDOW_START_CLAIMANT_FACTION_PICK_CLAIMANT" - using = Font_Size_Medium - } - } - - ### TITLE LIST - scrollbox = { - name = "titles_list" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "CLAIMANT_TITLES_NO_TITLES" - visible = "[Not(CreateClaimantFactionAgainstWindow.HasTitles)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "titles_grid" - datamodel = "[CreateClaimantFactionAgainstWindow.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - - hbox = { - layoutpolicy_horizontal = expanding - - coa_title_tiny_crown = { - datacontext = "[ClaimTitleItem.GetTitle]" - } - - button_standard = { - name = "title_list_item" - layoutpolicy_horizontal = expanding - size = { 0 45 } - onclick = "[ClaimTitleItem.OnClick]" - down = "[ClaimTitleItem.IsSelected]" - - hbox = { - margin = { 10 0 } - spacing = 10 - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ClaimTitleItem.GetTitle.GetNameNoTooltip]" - } - } - } - - } - } - } - } - } - - ### LIST OF POTENTIAL CLAIMANTS - scrollbox = { - name = "claimants_scroll_area" - datacontext = "[CreateClaimantFactionAgainstWindow.GetCharacterSelectionList]" - visible = "[Not(CharacterInteractionConfirmationWindow.GetRecipient.IsValid)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "NO_POTENTIAL_CLAIMANTS" - visible = "[Not(CharacterSelectionList.HasItems)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "potential_claimants_grid" - datamodel = "[CharacterSelectionList.GetList]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_horizontal = expanding - size = { 0 130 } - onclick = "[CharacterListItem.OnClick('character')]" - - hbox = { - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = growing - text = "[Character.GetNameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - max_width = 420 - } - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - visible = "[Not(StringIsEmpty(Character.GetRelationToString( GetPlayer )))]" - max_width = 420 - } - - text_single = { - visible = "[Not( Character.IsPlayer )]" - layoutpolicy_horizontal = expanding - text = "FACTION_WINDOW_OPINION_OF_TARGET" - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "titles_grid" - datamodel = "[CharacterListItem.GetTitleItems]" - - item = { - coa_title_tiny_crown = { - datacontext = "[Claim.GetTitle]" - } - } - - expand = {} - } - } - } - } - } - } - } - } - } - - hbox = { - margin = { 0 15 } - - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - onclick = "[CreateClaimantFactionAgainstWindow.Send]" - enabled = "[CreateClaimantFactionAgainstWindow.CanSendOffer]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - default_format = "#high" - using = Font_Size_Medium - - tooltip = "[CreateClaimantFactionAgainstWindow.GetSendOfferTooltip]" - } - } - } -} - -window = { - name = "create_ceremonial_claimant_faction_against_interaction_window" - size = { 650 875 } - datacontext = "[CreateClaimantFactionAgainstWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|left - widgetanchor = top|left - position = { 700 90 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "create_claimant_faction_against" - } - - blockoverride "button_close" - { - onclick = "[CreateClaimantFactionAgainstWindow.Close]" - } - - icon_character_interaction = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - margin_bottom = 10 - - hbox = { - name = "portraits" - layoutpolicy_horizontal = expanding - size = { 0 170 } - - ### LEFT ACTOR - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - hbox = { - - background = { - using = Background_Area_Border - margin = { 10 10 } - } - - vbox = { - portrait_head = { - name = "left_main_portrait" - visible = "[Character.IsValid]" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - tooltip_visible = "[Character.IsValid]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - visible = "[CreateClaimantFactionAgainstWindow.IsTitleSelected]" - - coa_title_medium_crown = { - datacontext = "[CreateClaimantFactionAgainstWindow.GetSelectedTitle.GetTitle]" - visible = "[And(CharacterInteractionConfirmationWindow.GetRecipient.IsValid, CreateClaimantFactionAgainstWindow.IsTitleSelected)]" - } - - expand = {} - } - - button_round = { - name = "change_left_character" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - tooltip = "CHANGE_CHARACTER" - using = tooltip_below - onclick = "[CreateClaimantFactionAgainstWindow.ClearRecipient]" - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - } - - expand = {} - } - - expand = {} - - ### RIGHT RECIPIENT - portrait_shoulders = { - name = "right_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetSecondaryActor]" - visible = "[Character.IsValid]" - tooltip_visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin_bottom = 10 - - text_single = { - name = "select_title_label" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - text = "FACTIONS_WINDOW_START_CLAIMANT_FACTION_PICK_TITLE" - using = Font_Size_Medium - } - - text_single = { - name = "select_claimant_label" - visible = "[Not(CharacterInteractionConfirmationWindow.GetRecipient.IsValid)]" - text = "FACTIONS_WINDOW_START_CLAIMANT_FACTION_PICK_CLAIMANT" - using = Font_Size_Medium - } - } - - ### TITLE LIST - scrollbox = { - name = "titles_list" - visible = "[CharacterInteractionConfirmationWindow.GetRecipient.IsValid]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "CLAIMANT_TITLES_NO_TITLES" - visible = "[Not(CreateClaimantFactionAgainstWindow.HasTitles)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "titles_grid" - datamodel = "[CreateClaimantFactionAgainstWindow.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - - hbox = { - layoutpolicy_horizontal = expanding - - coa_title_tiny_crown = { - datacontext = "[ClaimTitleItem.GetTitle]" - } - - button_standard = { - name = "title_list_item" - layoutpolicy_horizontal = expanding - size = { 0 45 } - onclick = "[ClaimTitleItem.OnClick]" - down = "[ClaimTitleItem.IsSelected]" - - hbox = { - margin = { 10 0 } - spacing = 10 - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ClaimTitleItem.GetTitle.GetNameNoTooltip]" - } - } - } - - } - } - } - } - } - - ### LIST OF POTENTIAL CLAIMANTS - scrollbox = { - name = "claimants_scroll_area" - datacontext = "[CreateClaimantFactionAgainstWindow.GetCharacterSelectionList]" - visible = "[Not(CharacterInteractionConfirmationWindow.GetRecipient.IsValid)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "NO_POTENTIAL_CLAIMANTS" - visible = "[Not(CharacterSelectionList.HasItems)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "potential_claimants_grid" - datamodel = "[CharacterSelectionList.GetList]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_horizontal = expanding - size = { 0 130 } - onclick = "[CharacterListItem.OnClick('character')]" - - hbox = { - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = growing - text = "[Character.GetNameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - max_width = 420 - } - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - visible = "[Not(StringIsEmpty(Character.GetRelationToString( GetPlayer )))]" - max_width = 420 - } - - text_single = { - visible = "[Not( Character.IsPlayer )]" - layoutpolicy_horizontal = expanding - text = "FACTION_WINDOW_OPINION_OF_TARGET" - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "titles_grid" - datamodel = "[CharacterListItem.GetTitleItems]" - - item = { - coa_title_tiny_crown = { - datacontext = "[Claim.GetTitle]" - } - } - - expand = {} - } - } - } - } - } - } - } - } - } - - hbox = { - margin = { 0 15 } - - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - onclick = "[CreateClaimantFactionAgainstWindow.Send]" - enabled = "[CreateClaimantFactionAgainstWindow.CanSendOffer]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - default_format = "#high" - using = Font_Size_Medium - - tooltip = "[CreateClaimantFactionAgainstWindow.GetSendOfferTooltip]" - } - } - } -} diff --git a/N3OW/gui/interaction_declare_war.gui b/N3OW/gui/interaction_declare_war.gui deleted file mode 100644 index d773289a..00000000 --- a/N3OW/gui/interaction_declare_war.gui +++ /dev/null @@ -1,1213 +0,0 @@ -###################################################### -#################### DECLARE WAR "#################### -###################################################### - -# These ~50 first lines are a placeholder way to show who will defend -window = { - name = "declare_war_window" - datacontext = "[DeclareWarInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|right - position = { -15 70 } - size = { 640 980 } #1020 - allow_outside = yes - movable = no - layer = middle - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - widget = { - name = "declare_war_window" - size = { 640 100% } - - using = Window_Background - using = Window_Decoration_Warfare - - vbox = { - using = Window_Margins - - header_pattern_interaction = { - size = { 0 40 } - - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[DeclareWarInteractionWindow.GetHeader]" - } - - blockoverride "button_close" - { - onclick = "[DeclareWarInteractionWindow.Close]" - } - } - - widget = { - - layoutpolicy_horizontal = expanding - size = { 0 192 } - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - widget = { - name = "layer_one_war" - size = { 100% 100% } - - vbox = { - datacontext = "[DeclareWarInteractionWindow.GetMilitaryStrengthInfo]" - margin_top = 16 - - declare_war_progressbar = {} - - hbox = { - margin_top = 6 - margin_bottom = -4 - - hbox = { - name = "your_army" - margin_top = 6 - margin_bottom = 6 - margin_right = 4 - margin_left = 60 - - background = { - using = Background_Area_Dark - } - - hbox_soldiers_and_quality_small = { - datacontext = "[DeclareWarInteractionWindow.GetAttackerCharacter]" - datacontext = "[CharacterItem.GetComposition]" - layoutpolicy_vertical = expanding - - blockoverride "spacing" - { - size = { 44 8 } - } - } - } - - icon = { - name = "icon_strength_balance" - size = { 60 60 } - texture = "gfx/interface/icons/icon_strength_balance.dds" - framesize = { 60 60 } - frame = "[GuiMilitaryStrength.GetFrame]" - } - - hbox = { - name = "enemy_army" - margin_top = 6 - margin_bottom = 6 - margin_left = 4 - margin_right = 60 - - background = { - using = Background_Area_Dark - } - - hbox_soldiers_and_quality_small = { - datacontext = "[DeclareWarInteractionWindow.GetDefenderCharacter]" - datacontext = "[CharacterItem.GetComposition]" - layoutpolicy_vertical = expanding - - blockoverride "spacing" - { - size = { 44 8 } - } - } - } - } - - hbox = { - name = "gold" - spacing = 60 - - character_gold = { - name = "your_gold" - datacontext = "[DeclareWarInteractionWindow.GetAttackerCharacter]" - margin_top = 6 - margin_bottom = 6 - margin_right = 10 - margin_left = 60 - - background = { - using = Background_Area_Dark - } - } - - character_gold = { - name = "enemy_gold" - datacontext = "[DeclareWarInteractionWindow.GetDefenderCharacter]" - margin_top = 6 - margin_bottom = 6 - margin_left = 10 - margin_right = 60 - - background = { - using = Background_Area_Dark - } - } - } - - text_multi = { - name = "comparison_text" - text = "[DeclareWarInteractionWindow.GetMilitaryStrength]" - autoresize = yes - max_width = 200 - align = center - } - expand = {} - } - } - - widget = { - name = "layer_two_characters" - size = { 100% 100% } - - hbox = { - alwaystransparent = yes - margin = { 10 -8 } - - declare_war_character_portrait = { - name = "player_character" - datacontext = "[DeclareWarInteractionWindow.GetAttackerCharacter]" - } - - expand = {} - - declare_war_character_portrait = { - name = "enemy_character" - datacontext = "[DeclareWarInteractionWindow.GetDefenderCharacter]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - } - - # liege might join info - hbox = { - layoutpolicy_horizontal = expanding - visible = "[DeclareWarInteractionWindow.DefenderTopLiegeMightJoinLater]" - - vbox = { - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]" - layoutpolicy_horizontal = expanding - - - - # foldout name - button_expandable_toggle_field = { - text_label_left = { - layoutpolicy_horizontal = expanding - align = left - margin_left = 40 - margin_top = 3 - text = "[DeclareWarInteractionWindow.GetDefenderRelationToTopLiegeDesc]" - } - } - - # foldout content - hbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - datacontext = "[DeclareWarInteractionWindow.GetDefenderTopLiegeCharacter.GetCharacter]" - - margin = { 8 8 } - - background = { - using = Background_Area - } - - vbox = { - layoutpolicy_vertical = expanding - - margin = { 8 0 } - - spacing = 8 - - text_single = { - visible = "[GreaterThan_CFixedPoint( DeclareWarInteractionWindow.GetProtectVassalInteractionValue, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - text = liege_will_join_war_message - tooltip = "[DeclareWarInteractionWindow.GetProtectVassalInteractionBreakdown]" - } - - text_single = { - visible = "[LessThanOrEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetProtectVassalInteractionValue, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - text = liege_will_not_join_war_message - tooltip = "[DeclareWarInteractionWindow.GetProtectVassalInteractionBreakdown]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - margin_right = 12 - - background = { - using = Background_Area_Dark - } - - hbox_soldiers_and_quality_small = { - datacontext = "[DeclareWarInteractionWindow.GetDefenderTopLiegeCharacter]" - datacontext = "[CharacterItem.GetComposition]" - layoutpolicy_vertical = expanding - } - - character_gold = { - datacontext = "[DeclareWarInteractionWindow.GetDefenderTopLiegeCharacter]" - } - } - - expand = {} - } - - expand = {} - } - - expand = {} - - portrait_head_small = { - datacontext = "[DeclareWarInteractionWindow.GetDefenderTopLiegeCharacter.GetCharacter]" - } - } - } - } - - text_single = { - text = "DECLARE_WAR_CHOOSE_CASUS_BELLI_INSTRUCTION" - visible = "[Not(DeclareWarInteractionWindow.HasSelectedCasusBelli)]" - margin_bottom = 8 - default_format = "#I" - } - - vbox = { - name = "casus_belli_scroll_box" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not(DeclareWarInteractionWindow.HasSelectedCasusBelli)]" - - ### Casus Belli Scrollarea - scrollbox = { - visible = "[Not(DeclareWarInteractionWindow.HasSelectedCasusBelli)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 10 15 } - } - - - blockoverride "scrollbox_empty" - { - text = NO_VALID_CASUS_BELLIS - visible = "[DeclareWarInteractionWindow.HasNoValidCasusBellis]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "casus_belli_items" - datamodel = "[DeclareWarInteractionWindow.GetCasusBelliItems]" - spacing = 5 - layoutpolicy_horizontal = expanding - - item = { - button_standard = { - name = "tutorial_highlight_cb_button" - layoutpolicy_horizontal = expanding - size = { 0 40 } - down = "[CasusBelliItem.IsSelected]" - onclick = "[CasusBelliItem.OnClick]" - onclick = "[PdxGuiTriggerAllAnimations('declare_war_goal_refresh')]" - - declare_war_casus_belli_item = {} - } - } - } - } - } - - } - - ### Selected casus belli - vbox = { - visible = "[DeclareWarInteractionWindow.HasSelectedCasusBelli]" - layoutpolicy_horizontal = expanding - margin_top = 8 - margin_left = 10 - margin_right = 10 - margin_bottom = 8 - - background = { - using = Background_Area - } - - button_standard = { - datacontext = "[DeclareWarInteractionWindow.GetSelectedCasusBelliItem]" - layoutpolicy_horizontal = expanding - minimumsize = { -1 40 } - onclick = "[CasusBelliItem.OnClick]" - - declare_war_casus_belli_item = { - button_change = { - name = "reset_casus_belli_item" - visible = "[CasusBelliItem.IsSelected]" - onclick = "[CasusBelliItem.OnClick]" - } - } - } - } - - text_single = { - visible = "[And(DeclareWarInteractionWindow.HasSelectedCasusBelli, DeclareWarInteractionWindow.CanShowWarGoalSubview)]" - margin_bottom = 6 - text = "DECLARE_WAR_CHOOSE_WARGOAL_INSTRUCTION" - default_format = "#I" - } - - ### War preview after selecting a Casus Belli - vbox = { - name = "war_preview" - visible = "[DeclareWarInteractionWindow.HasSelectedCasusBelli]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 6 - using = Animation_Tab_Switch - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 8 - - scrollbox = { - visible = "[DeclareWarInteractionWindow.CanShowWarGoalSubview]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 10 10 } - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - datamodel = "[DeclareWarInteractionWindow.GetTitleItems]" - layoutpolicy_horizontal = expanding - addcolumn = 550 - addrow = 51 - - state = { - name = "declare_war_goal_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - item = { - margin_widget = { - size = { 550 51 } - margin = { 0 3 } - - button_standard = { - layoutpolicy_horizontal = expanding - size = { 550 45 } - down = "[CasusBelliTitleItem.IsSelected]" - onclick = "[CasusBelliTitleItem.OnClick]" - - hbox = { - - widget = { - layoutpolicy_vertical = expanding - size = { 45 0 } - - coa_title_tiny_crown = { - datacontext = "[CasusBelliTitleItem.GetTitle]" - parentanchor = center - using = tooltip_ne - } - } - - text_single = { - name = "text" - layoutpolicy_horizontal = expanding - text = "[CasusBelliTitleItem.GetName|U]" - autoresize = no - default_format = "#high" - align = nobaseline - } - } - } - } - } - } - } - } - - - hbox = { - name = "war_outcomes_tabs" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 15 - text = "[DeclareWarInteractionWindow.GetCurrentTabEffectsLabel]" - align = nobaseline - } - - background = { - using = Background_Area - } - - ### Tabs - hbox = { - name = "outcome_effect_tabs" - spacing = 5 - margin_right = 10 - - button_standard = { - name = "victory_button" - size = { 45 40 } - down = "[DeclareWarInteractionWindow.IsEffectsTabVictory]" - onclick = "[DeclareWarInteractionWindow.SetEffectsTabVictory]" - - tooltip = "TAB_VICTORY" - using = tooltip_se - - button_icon_war_victory = { - parentanchor = center - alwaystransparent = yes - } - } - - button_standard = { - name = "white_peace_button" - size = { 45 40 } - - down = "[DeclareWarInteractionWindow.IsEffectsTabWhitePeace]" - onclick = "[DeclareWarInteractionWindow.SetEffectsTabWhitePeace]" - visible = "[DeclareWarInteractionWindow.GetCbType.IsWhitePeacePossible]" - tooltip = "TAB_WHITE_PEACE" - using = tooltip_se - - button_icon_war_peace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_standard = { - name = "defeat_button" - size = { 45 40 } - - down = "[DeclareWarInteractionWindow.IsEffectsTabDefeat]" - onclick = "[DeclareWarInteractionWindow.SetEffectsTabDefeat]" - tooltip = "TAB_DEFEAT" - using = tooltip_se - - button_icon_war_defeat = { - parentanchor = center - alwaystransparent = yes - } - - } - } - } - - ### Info - scrollbox = { - name = "war_outcome_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = {-1 120} - - blockoverride "scrollbox_content" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_vertical = expanding - - button_expand = { - name = "button_expand_other_war_effects" - frame = "[BoolTo1And2(DeclareWarInteractionWindow.IsWarEffectsExpanded)]" - - onclick = "[DeclareWarInteractionWindow.ToggleWarEffectsExpanded]" - } - expand = {} - } - - text_multi = { - name = "main_end_war_effect" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 500 - - default_format = "#high" - text = "[DeclareWarInteractionWindow.GetCurrentTabMainOutputDescription]" - } - - expand = {} - } - - text_multi = { - name = "other_end_war_effects" - visible = "[DeclareWarInteractionWindow.IsWarEffectsExpanded]" - layoutpolicy_horizontal = expanding - text = "[DeclareWarInteractionWindow.GetCurrentTabEffectsDescription]" - autoresize = yes - max_width = 500 - min_width = 500 - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - datacontext = "[DeclareWarInteractionWindow.GetClaimant]" - - portrait_head = { - visible = "[Character.IsValid]" - } - - expand = {} - } - } - } - } - } - - vbox = { - name = "additional_warning_box" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 10 - margin_top = 4 - - icon = { - name = "attacker_faith_might_join" - datacontext = "[GetPlayer]" - visible = "[DeclareWarInteractionWindow.GetCbType.GuiAttackerFaithMightJoin]" - size = { 40 40 } - - texture = "[Character.GetFaith.GetIcon]" - tooltip = "WAR_ATTACKER_FAITH_MIGHT_JOIN" - - icon = { - position = { 5 0 } - parentanchor = bottom|right - size = { 25 25 } - texture = "gfx/interface/icons/casus_bellis/_default.dds" - } - } - - icon = { - name = "defender_faith_might_join" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[DeclareWarInteractionWindow.GetCbType.GuiDefenderFaithMightJoin]" - size = { 40 40 } - - texture = "[Character.GetFaith.GetIcon]" - tooltip = "WAR_DEFENDER_FAITH_MIGHT_JOIN" - - warning_icon = { - size = { 25 25 } - position = { 5 0 } - parentanchor = bottom|right - } - } - - hbox = { - visible = "[DeclareWarInteractionWindow.ShouldShowAdditionalWarning]" - spacing = 8 - margin_top = 2 - margin_bottom = -5 - - text_multi = { - text = "[DeclareWarInteractionWindow.WriteAdditionalWarningMessage]" - max_width = 532 - autoresize = yes - } - } - } - - text_multi = { - text = "DECLARE_WAR_DISABLED_BORDER_WARS" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[Character.GetTopLiege.HasRealmLaw('top_liege_not_redirected_to_border_wars_law')]" - max_width = 532 - autoresize = yes - } - - scrollarea = { - name = "defenders_scrollarea" - visible = "[Not(IsDataModelEmpty(DeclareWarInteractionWindow.GetDefenders))]" - size = { 540 100 } - scrollbarpolicy_vertical = always_off - scrollbarpolicy_horizontal = as_needed - scrollbar_horizontal = { - using = Scrollbar_Horizontal - } - scrollwidget = { - hbox = { - using = Scrollbox_Margins - - fixedgridbox = { - datamodel_reuse_widgets = yes - maxverticalslots = 1 - flipdirection = yes - name = "forced_defenders" - datamodel = "[DeclareWarInteractionWindow.GetDefenders]" - addrow = 90 - addcolumn = 80 - - item = { - portrait_head_small = { - datacontext = "[WarAllyItem.GetCharacter]" - - tooltip = "WAR_DEFENDER_ALLY_TOOLTIP" - - blockoverride "opinion_box" {} - } - } - } - } - } - } - } - - vbox_interaction_options = { - visible = "[DeclareWarInteractionWindow.HasSelectedCasusBelli]" - layoutpolicy_horizontal = expanding - blockoverride "checkbox_on_click" - { - onclick = "[DeclareWarInteractionWindow.ToggleHookCheckbox]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - ### COST - declare_war_cost = {} - } - - - } - - widget = { - size = { 0 60 } - layoutpolicy_horizontal = expanding - - container = { - name = "tutorial_highlight_declare_war_send_button" - parentanchor = center - - button_standard_big = { - name = "send_button" - enabled = "[DeclareWarInteractionWindow.CanSend]" - onclick = "[DeclareWarInteractionWindow.Send]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - default_format = "#high" - - tooltip = "[DeclareWarInteractionWindow.GetDeclareWarButtonTooltip]" - - clicksound = "[DeclareWarInteractionWindow.GetConfirmClickSound]" - - animation_aggressive = { - visible = "[DeclareWarInteractionWindow.CanSend]" - } - - hbox = { - margin_right = 10 - - expand = {} - - warning_icon = { - name = "player_cost_ignore" - visible = "[And(DeclareWarInteractionWindow.HasSelectedCasusBelli, Or( Or( Not( DeclareWarInteractionWindow.CanAffordCosts ), DeclareWarInteractionWindow.IsBreakingTruce), DeclareWarInteractionWindow.IsBreakingAlliance))]" - size = { 30 30 } - } - } - } - } - - button_toggle_companion_ai = { - using = tooltip_nw - parentanchor = center - position = { 150 0 } - } - } - } - } - - window = { - name = "character_ally_list_subview" - datacontext = "[DeclareWarInteractionWindow.GetAllyListContext]" - visible = "[AllyListSubview.IsShown]" - parentanchor = top|right - position = { -615 120 } - size = { 480 750 } - movable = no - - using = Window_Background_Subwindow - using = Animation_ShowHide_Standard - - vbox = { - margin = { 3 3 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[AllyListSubview.GetHeaderTitle]" - } - blockoverride "button_close" - { - onclick = "[AllyListSubview.Close]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[AllyListSubview.GetAllyList]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - - blockoverride "filters_visible" { - visible = no - } - } - } - - - blockoverride "container_implementation" { - - vbox = { - datamodel = "[CharacterSelectionList.GetList]" - layoutpolicy_horizontal = expanding - spacing = 15 - - item = { - - hbox = { - datacontext = "[CharacterListItem.GetCharacter]" - - background = { - using = Background_Area - } - - layoutpolicy_horizontal = expanding - portrait_head_small = {} - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - text_single = { - name = "ally_character_name" - text = "[Character.GetName]" - using = Font_Size_Medium - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "ally_military_strength_text" - text = "DECLARE_WAR_ALLY_MILITARY_STRENGTH_DESC" - align = nobaseline - } - - expand = {} - } - expand = {} - } - expand = {} - } - } - } - } - - blockoverride "character_count" {} - } - } - } -} - -types DeclareWarTypes -{ - type declare_war_cost = vbox { - name = "cost" - margin = { 10 0 } - - background = { - visible = "[Not( DeclareWarInteractionWindow.CanAffordCosts )]" - using = Status_Bad - margin_top = 5 - } - - hbox = { - name = "costs" - visible = "[DeclareWarInteractionWindow.HasCost]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - text_single = { - name = "cost_heading" - align = nobaseline - text = "WAR_COST" - using = Font_Size_Big - } - - hbox = { - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'piety' )]" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - spacing = 2 - - icon = { - name = "icon_piety" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'piety' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'piety' ), '(CFixedPoint)0' )]" - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "piety" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'piety' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'piety' ), '(CFixedPoint)0' )]" - - text = "[DeclareWarInteractionWindow.GetSpecificCost( 'piety' )|0]" - align = nobaseline - using = Font_Size_Big - default_format = "#high" - } - } - - text_single = { - name = "prestige" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'prestige' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'prestige' ), '(CFixedPoint)0' )]" - - raw_text = "@prestige_icon![DeclareWarInteractionWindow.GetSpecificCost( 'prestige' )|0]" - using = Font_Size_Big - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "renown" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'renown' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'renown' ), '(CFixedPoint)0' )]" - - raw_text = "@dynasty_prestige_icon![DeclareWarInteractionWindow.GetSpecificCost( 'renown' )|0]" - align = nobaseline - using = Font_Size_Big - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "influence" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'influence' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'influence' ), '(CFixedPoint)0' )]" - - raw_text = "@influence_icon![DeclareWarInteractionWindow.GetSpecificCost( 'influence' )|0]" - using = Font_Size_Big - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "gold" - datacontext = "[DeclareWarInteractionWindow.GetCostBreakdown( 'gold' )]" - visible = "[NotEqualTo_CFixedPoint( DeclareWarInteractionWindow.GetSpecificCost( 'gold' ), '(CFixedPoint)0' )]" - - raw_text = "@gold_icon![DeclareWarInteractionWindow.GetSpecificCost( 'gold' )|0]" - align = nobaseline - using = Font_Size_Big - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - } - - text_single = { - visible = "[Not(DeclareWarInteractionWindow.HasCost)]" - text = "DECLARE_WAR_NO_COST" - using = Font_Size_Medium - align = nobaseline - } - } -} - -types CharacterInteractionDeclareWar -{ - type widget_progressbar_declare_war = widget { - widget = { - size = { 100% 100% } - scissor = yes - - icon = { - block "progressbar_texture" - { - texture = "gfx/interface/progressbars/war_progress_blue.dds" - } - size = { 100% 100% } - spriteType = Corneredtiled - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - } - } - - icon = { - using = Animation_ShowHide_Standard - parentanchor = right|vcenter - position = { 5 0 } - - size = { 20 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - } - - type declare_war_progressbar = widget { - size = { 200 24 } - - widget = { - size = { 100% 100% } - scissor = yes - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/interface/progressbars/war_progress_red.dds" - } - } - - hbox = { - widget_progressbar_declare_war = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( GuiMilitaryStrength.GetRatio, '(float)100', '(int32)200' )]" - - blockoverride "progressbar_texture" - { - texture = "gfx/interface/progressbars/war_progress_blue.dds" - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( GuiMilitaryStrength.GetRatio, '(float)100', '(int32)200' )]" - } - } - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/progress_frame_war.dds" - spriteType = Corneredstretched - spriteborder = { 10 10 } - margin = { 5 4 } - } - } - } - - - type declare_war_character_portrait = hbox { - - vbox = { - datacontext = "[CharacterItem.GetCharacter]" - spacing = -37 - - portrait_torso = { - blockoverride "status_icons" {} - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', 'war_attacker', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - blockoverride "portrait_button" { - - vbox = { - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - expand = { - layoutpolicy_horizontal = expanding - } - - spacer = { - size = { 8 0 } - } - } - } - } - blockoverride "opinion_box" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - button_standard = { - name = "view_allies" - enabled = "[GreaterThan_int32( CharacterItem.GetAllyCount, '(int32)0' )]" - size = { 120 30 } - onclick = "[DeclareWarInteractionWindow.ShowAlliesForCharacter( CharacterItem.Self )]" - text = "DECLARE_WAR_ALLY_COUNT" - } - } - } - } - - type declare_war_casus_belli_item = hbox { - name = "casus_belli_item" - margin = { 5 0 } - spacing = 5 - alwaystransparent = yes - using = tooltip_es - - icon = { - name = "icon" - texture = "[CasusBelliItem.GetType.GetIcon]" - size = { 33 33 } - alwaystransparent = yes - } - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[CasusBelliItem.GetLabel]" - align = nobaseline - autoresize = no - alwaystransparent = yes - } - - warning_icon = { - visible = "[Not( CasusBelliItem.IsValid )]" - size = { 25 25 } - alwaystransparent = yes - tooltip = "[CasusBelliItem.GetInvalidText]" - } - } -} - -types CharacterGold -{ - type character_gold = hbox { - - datacontext = "[DeclareWarInteractionWindow.GetAttackerCharacter]" - spacing = 4 - - icon = { - name = "gold_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "gold_value_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(CharacterItem.GetGold, '(CFixedPoint)0')]" - layoutpolicy_horizontal = expanding - - text = "[CharacterItem.GetGold|0]" - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - max_width = 50 - } - - text_single = { - name = "gold_value_negative" - visible = "[LessThan_CFixedPoint(CharacterItem.GetGold, '(CFixedPoint)0')]" - layoutpolicy_horizontal = expanding - - text = "[CharacterItem.GetGold|0]" - default_format = "#N" - using = Font_Size_Medium - max_width = 50 - } - } -} diff --git a/N3OW/gui/interaction_grant_titles.gui b/N3OW/gui/interaction_grant_titles.gui deleted file mode 100644 index 9b0317c8..00000000 --- a/N3OW/gui/interaction_grant_titles.gui +++ /dev/null @@ -1,174 +0,0 @@ -###################################################### -#################### GRANT TITLES #################### -###################################################### -window = { - name = "grant_titles_interaction_window" - datacontext = "[GrantTitlesInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = vcenter|right - position = { -15 5 } - size = { 550 960 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - align = nobaseline - } - - blockoverride "button_close" - { - onclick = "[GrantTitlesInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - - text_single = { - text = "[GrantTitlesInteractionWindow.GetGrantTitleDescription]" - default_format = "#I" - } - - spacer = { - size = { 0 10 } - } - - ### Titles list - scrollbox = { - name = "titles_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - visible = "[Not(GrantTitlesInteractionWindow.HasTitles)]" - text = "GRANT_TITLES_NO_TITLES" - } - - blockoverride "scrollbox_content" - { - vbox_list_interaction_title_selection = { - layoutpolicy_horizontal = expanding - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 3 - - ### Filter Recent Titles - - button_checkbox_label = { - onclick = "[GrantTitlesInteractionWindow.OnTimedFilter]" - tooltip = "[GrantTitlesInteractionWindow.GetTimedFilterTooltip]" - blockoverride "checkbox" - { - checked = "[GrantTitlesInteractionWindow.HasTimedFilter]" - } - - blockoverride "text" - { - text = "GRANT_REVOKE_TITLES_FILTER_LABEL" - max_width = 180 - } - } - - hbox = { - tooltip = "[GrantTitlesInteractionWindow.GetDomainLimitTooltip]" - using = tooltip_se - - background = { - margin = { 5 0 } - visible = "[GreaterThan_int32(GrantTitlesInteractionWindow.GetResultingDomainSize,CharacterInteractionConfirmationWindow.GetActor.GetDomainLimit)]" - using = Status_Bad - } - - spacing = 3 - - icon = { - texture = "gfx/interface/icons/icon_domain.dds" - size = { 30 30 } - } - - ### Effects on Domain Limit - text_single = { - name = "domain_limit_label" - text = "GRANT_REVOKE_TITLES_NEW_DOMAIN_LABEL" - max_width = 160 - } - - text_single = { - name = "domain_limit_result" - text = "[GrantTitlesInteractionWindow.GetResultingDomainSize]/[CharacterInteractionConfirmationWindow.GetActor.GetDomainLimit]" - tooltip = "[GrantTitlesInteractionWindow.GetDomainLimitTooltip]" - } - } - } - - ### Other Effects - vbox = { - name = "other_effects_list" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - spacing = 10 - - ### label - text_label_center = { - text = "GRANT_REVOKE_TITLES_OTHER_EFFECT_LABEL" - } - - ### List - vbox_character_interaction_effects_simple = { - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - - blockoverride "extra_content" - { - text_multi = { - visible = "[InteractionEffectsDescription.IsShowingOnAcceptEffects]" - name = "extra_accept_effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 435 - margin = { 5 0 } - text = "[GrantTitlesInteractionWindow.GetExtraAcceptEffectDescription]" - } - } - } - - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - enabled = "[GrantTitlesInteractionWindow.CanSendOffer]" - onclick = "[GrantTitlesInteractionWindow.Send]" - tooltip = "[GrantTitlesInteractionWindow.GetSendOfferTooltip]" - } - } - } -} diff --git a/N3OW/gui/interaction_interfere_in_war.gui b/N3OW/gui/interaction_interfere_in_war.gui deleted file mode 100644 index 8f57df0d..00000000 --- a/N3OW/gui/interaction_interfere_in_war.gui +++ /dev/null @@ -1,158 +0,0 @@ -###################################################### -################## STOP VASSAL WAR ################### -###################################################### -window = { - name = "interfere_in_war_interaction_window" - datacontext = "[InterfereInWarInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|right - position = { -25 85 } - size = { 710 960 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Warfare - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - on_start = "[GetVariableSystem.Set( 'interaction_window_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - - on_start = "[GetVariableSystem.Clear( 'interaction_window_open' )]" - } - - vbox = { - using = Window_Margins - - spacing = 2 - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[InterfereInWarInteractionWindow.Close]" - - } - - icon_character_interaction = {} - } - - text_single = { - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - text = "INTERFERE_IN_WAR_DESCRIPTION" - default_format = "#I" - } - - spacer = { - size = { 0 5 } - } - - ### WAR LIST - scrollbox = { - name = "wars_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "INTERFERE_IN_WAR_NO_WARS" - visible = "[Not(InterfereInWarInteractionWindow.HasWars)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "wars_grid" - datamodel = "[InterfereInWarInteractionWindow.GetWarItems]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - button_standard = { - name = "war_list_item" - datacontext = "[InterfereInWarWarItem.GetWar]" - layoutpolicy_horizontal = expanding - size = { 0 45 } - - onclick = "[InterfereInWarWarItem.OnClick]" - down = "[InterfereInWarWarItem.IsSelected]" - enabled = "[InterfereInWarWarItem.IsEnabled]" - tooltip = "[InterfereInWarWarItem.GetTooltip]" - - hbox = { - spacing = 5 - margin_left = 5 - - icon = { - size = { 30 30 } - texture = "[War.GetActiveCB.GetType.GetIcon]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - default_format = "#high" - align = nobaseline - max_width = 500 - text = "[War.GetName]" - alwaystransparent = yes - } - - expand = {} - } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "DECISION_DETAIL_EFFECTS" - align = left - } - } - - vbox_character_interaction_effects = { - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - blockoverride "minimumsize" {} - } - - ### ACCEPTANCE - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = {} - - hbox = { - margin = { 0 15 } - ### SEND OFFER BUTTON - button_primary_big = { - name = "send_offer_button" - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - enabled = "[InterfereInWarInteractionWindow.CanSendOffer]" - onclick = "[InterfereInWarInteractionWindow.Send]" - tooltip = "[InterfereInWarInteractionWindow.GetSendOfferTooltip]" - } - } - } -} diff --git a/N3OW/gui/interaction_interfere_in_war_notification.gui b/N3OW/gui/interaction_interfere_in_war_notification.gui deleted file mode 100644 index 70a44c04..00000000 --- a/N3OW/gui/interaction_interfere_in_war_notification.gui +++ /dev/null @@ -1,97 +0,0 @@ -###################################################### -#################### TITLE VIEW ###################### -###################################################### - -window = { - gfxtype = windowgfx - name = "interfere_in_war_interaction_notification_window" - parentanchor = center - position = { 0 40 } - size = { 650 700 } - layer = middle - - using = Window_Background - using = Window_Decoration_Warfare - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionNotificationWindow.GetContextName]" - } - - blockoverride "button_close" - { - onclick = "[CharacterInteractionNotificationWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox_sender_portrait_message = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "portrait_shoulders" - { - portrait_shoulders = { - name = "sender_portrait" - } - } - } - } - - vbox = { - name = "window_content" - layoutpolicy_horizontal = expanding - - margin = { 10 10 } - spacing = 5 - - vbox_character_interaction_effects = { - visible = "[CharacterInteractionNotificationWindow.GetCharacterInteraction.ShowEffectsInNotification]" - datacontext = "[CharacterInteractionNotificationWindow.GetEffectsDescription]" - } - - hbox = { - name = "answer_area" - margin_top = 5 - spacing = 20 - - button_standard = { - name = "reject_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerRejectText]" - align = center|nobaseline - onclick = "[CharacterInteractionNotificationWindow.Reject]" - enabled = "[CharacterInteractionNotificationWindow.CanReject]" - } - - button_primary = { - name = "accept_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerAcceptText]" - align = center|nobaseline - onclick = "[CharacterInteractionNotificationWindow.Accept]" - enabled = "[CharacterInteractionNotificationWindow.CanAccept]" - } - } - } - } -} diff --git a/N3OW/gui/interaction_marriage.gui b/N3OW/gui/interaction_marriage.gui deleted file mode 100644 index 331dc696..00000000 --- a/N3OW/gui/interaction_marriage.gui +++ /dev/null @@ -1,565 +0,0 @@ - -###################################################### -############### MARRIAGE INTERACTION ################# -###################################################### - -window = { - name = "marriage_interaction_window" - widgetid = "marriage_interaction_window" - datacontext = "[MarriageInteractionWindow.GetBaseWindow]" - datacontext = "[MatchmakerInteractionWindow.GetCharacterInteractionConfirmationWindow]" - position = { 0 20 } - parentanchor = center - allow_outside = yes - layer = middle - - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - hbox = { - margin_bottom = -10 - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - align = nobaseline - } - - blockoverride "button_close" - { - onclick = "[MatchmakerInteractionWindow.Close]" - - } - - blockoverride "button_back" - { - visible = "[MarriageInteractionWindow.CanClear]" - onclick = "[MatchmakerInteractionWindow.OnClear]" - tooltip = "CLEAR_MARRIED_CHARACTERS" - } - } - } - - widget_character_interaction_four_characters = { - layoutpolicy_horizontal = expanding - - blockoverride "bg_illustration_datacontext" - { - datacontext = "[GetIllustration( 'character_religion_interior' )]" - } - - blockoverride "bg_illustration" - { - texture = "[CharacterInteractionConfirmationWindow.GetTexture]" - } - - blockoverride "left_small_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[And( Character.IsValid, Not( ObjectsEqual( Character.Self, MatchmakerInteractionWindow.GetActorToMatch ) ) )]" - } - - blockoverride "left_portrait" - { - datacontext = "[MatchmakerInteractionWindow.GetActorToMatch]" - } - - blockoverride "left_interaction_portrait_glow" - { - visible = "[MatchmakerInteractionWindow.IsPickingSecondaryActor]" - } - - blockoverride "right_small_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[And( Character.IsValid, Not( ObjectsEqual( Character.Self, MatchmakerInteractionWindow.GetRecipientToMatch ) ) )]" - } - - blockoverride "right_portrait" - { - datacontext = "[MatchmakerInteractionWindow.GetRecipientToMatch]" - } - - blockoverride "right_character_label" - { - text = "INTERACTION_SPOUSE" - } - - blockoverride "right_interaction_portrait_glow" - { - visible = "[MatchmakerInteractionWindow.IsPickingSecondaryRecipient]" - } - - blockoverride "button_left_change" - { - visible = "[MatchmakerInteractionWindow.CanChangeActorCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertActorCharacter]" - } - - blockoverride "button_left_revert" - { - visible = "[MatchmakerInteractionWindow.CanRevertActorCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertActorCharacter]" - } - - blockoverride "button_right_change" - { - visible = "[MatchmakerInteractionWindow.CanChangeRecipientCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]" - } - - blockoverride "button_right_revert" - { - visible = "[MatchmakerInteractionWindow.CanRevertRecipientCharacter]" - onclick = "[MatchmakerInteractionWindow.OnChangeOrRevertRecipientCharacter]" - } - - blockoverride "button_clear" - { - enabled = "[MarriageInteractionWindow.CanClear]" - onclick = "[MatchmakerInteractionWindow.OnClear]" - } - - text_single = { - parentanchor = bottom|left - position = {8 -8} - - visible = "[MatchmakerInteractionWindow.HasPickedCharacters]" - - using = Background_Area_Dark - margin = {8 8} - - datacontext = "[MarriageInteractionWindow.GetMarriageInfo.GetBaseOffer]" - datacontext = "[MatchmakerInteractionWindow.GetActorToMatch]" - - raw_text = "@prestige_icon! [MatchOffer.GetActorPrestige|+0]" - tooltip = "MARRIAGE_PRESTIGE_TOOLTIP_OUR" - align = nobaseline - } - - text_single = { - parentanchor = bottom|right - position = {-8 -8} - - visible = "[MatchmakerInteractionWindow.HasPickedCharacters]" - - using = Background_Area_Dark - margin = {8 8} - - datacontext = "[MarriageInteractionWindow.GetMarriageInfo.GetBaseOffer]" - datacontext = "[MatchmakerInteractionWindow.GetRecipientToMatch]" - - raw_text = "@prestige_icon! [MatchOffer.GetRecipientPrestige|+0]" - tooltip = "MARRIAGE_PRESTIGE_TOOLTIP_THEIR" - align = nobaseline - } - } - - - vbox = { - name = "marriage_info_and_send_offer" - - visible = "[MatchmakerInteractionWindow.HasPickedCharacters]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride = "scrollbox_content" - { - ## Info about marriage after picking characters - name = "info_about_marriage" - - vbox = { - datacontext = "[MarriageInteractionWindow.GetMarriageInfo]" - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - - layoutpolicy_horizontal = expanding - spacing = 4 - - text_multi = { - name = "marriage_info" - margin = { 8 0 } - minimumsize = { 630 -1 } - maximumsize = { 630 -1 } - autoresize = yes - text = "MARRIAGE_INFO" - } - - vbox_marriage_interaction_marriage_details = { - datacontext = "[MarriageInfo.GetBaseOffer]" - layoutpolicy_horizontal = expanding - } - - vbox_character_interaction_effects_contents = {} - } - } - } - - ### Send offer info - vbox_arrangement_interaction_send_offer = { - layoutpolicy_horizontal = expanding - - margin_bottom = 8 - - blockoverride "button_content" { - name = "tutorial_highlight_send_proposal_button" - text = "send_marriage_proposal_button_name" - } - } - - vbox = { - visible = "[CharacterInteractionConfirmationWindow.HasCost]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCostTooltip]" - - text_single = { - margin_bottom = 8 - text = "INTERACTION_COST_MARRIAGE" - } - } - } - - ### Character List - vbox = { - name = "character_list" - visible = "[Not(MatchmakerInteractionWindow.HasPickedCharacters)]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - margin_left = 17 - margin_top = 6 - ignoreinvisible = no - - button_checkbox_label = { - datacontext = "[MarriageInteractionWindow.GetMarriageInfo]" - onclick = "[MarriageInfo.ToggleMatrilineal]" - tooltip = "MARRIAGE_MATRILINEAL_TOGGLE_TOOLTIP" - - blockoverride "checkbox" - { - checked = "[MarriageInfo.IsMatrilineal]" - } - - blockoverride "text" - { - text = "MARRIAGE_MATRILINEAL_TOGGLE" - } - } - - button_checkbox_label = { - background = { - texture = "gfx/interface/colors/white.dds" - alpha = 0.2 - - margin_top = -1 - margin_left = -28 - margin_right = 60 - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - blend_mode = alphamultiply - texture_density = 1 - } - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = normal - framesize = { 96 96 } - frame = 7 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - visible = "[And( HasDlcFeature( 'advanced_activities' ), HasDlcFeature( 'tours_and_tournaments' ) )]" - datacontext = "[MarriageInteractionWindow.GetMarriageInfo]" - - enabled = "[MarriageInfo.IsGrandWeddingPromiseValid]" - onclick = "[MarriageInfo.ToggleGrandWeddingPromise]" - tooltip = "[MarriageInfo.GetGrandWeddingPromiseDesc]" - - blockoverride "checkbox" - { - checked = "[MarriageInfo.IsGrandWeddingPromise]" - } - - blockoverride "text" - { - text = "MARRIAGE_GRAND_WEDDING_TOGGLE" - } - } - - - text_single = { - visible = "[Or( MatchmakerInteractionWindow.GetCharacterList.HasItems, MatchmakerInteractionWindow.HasTopCharacterItem )]" - layoutpolicy_horizontal = expanding - text = "[MarriageInteractionWindow.GetPrompt]" - - align = center|nobaseline - autoresize = no - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox_character_list = { - name = "marriage_window_character_list" #used by lesson_china_marriage_window - datacontext = "[MatchmakerInteractionWindow.GetCharacterList]" - datacontext = "[CharacterSelectionList.GetFilterWithDefault('fertility_filter', '(int32)1')]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - datamodel = "[CharacterSelectionList.GetList]" - datamodel_reuse_widgets = yes - - addcolumn = 630 - addrow = 110 - - item = { - widget_character_list_item = { - size = { 630 110 } - } - } - } - - blockoverride "bottom_middle_box" { - hbox = { - layoutpolicy_horizontal = expanding - - # Religion & Culture - hbox = { - layoutpolicy_vertical = expanding - margin_left = 5 - - # Faith - icon = { - name = "faith_button" - datacontext = "[Character.GetFaith]" - size = { 35 35 } - texture = "[Faith.GetIcon]" - - tooltipwidget = { - faith_tooltip = {} - } - } - - # Culture - widget = { - datacontext = "[Character.GetCulture]" - size = { 120 30 } - - hbox = { - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - #max_height = 44 - #autoresize = yes - text = "CULTURE_LISTS_WINDOW" - min_width = 110 - max_width = 110 - } - } - - tooltipwidget = { - culture_tooltip = {} - } - - using = tooltip_se - } - } - - expand = {} - - hbox = { - name = "alliances_grid" - datamodel = "[CharacterListItem.GetOtherCharacterItems]" - - item = { - widget = { - size = { 30 30 } - - coa_realm_tiny_crown = { - parentanchor = center - position = { 0 -10 } - - tooltip = "MATCHMAKER_INTERACTION_ALLIANCE" - } - } - } - } - } - } - - # Blockoverride to turn off scissor effect cutting the CoAs since it's not needed to do so in this list - blockoverride "scissor" - { - scissor = no - } - } - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[And( IsDataModelEmpty( CharacterSelectionList.GetList ), Not( MatchmakerInteractionWindow.HasTopCharacterItem ) )]" - text = "NO_CHARACTERS_TO_SELECT" - } - - blockoverride "special_character" { - vbox = { - datacontext = "[MatchmakerInteractionWindow.GetTopCharacterItem]" - visible = "[MatchmakerInteractionWindow.HasTopCharacterItem]" - layoutpolicy_horizontal = expanding - - widget_character_list_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - window_character_filter = { - name = "filter_window" - datacontext = "[MatchmakerInteractionWindow.GetCharacterList]" - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_diff_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('fertility_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('trait_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - - blockoverride "filters" { - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('alliance_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('prestige_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/interaction_marriage_notification_window.gui b/N3OW/gui/interaction_marriage_notification_window.gui deleted file mode 100644 index ab6b7334..00000000 --- a/N3OW/gui/interaction_marriage_notification_window.gui +++ /dev/null @@ -1,179 +0,0 @@ -###################################################### -############### MARRIAGE CONFIRMATION ################ -###################################################### -window = { - name = "marriage_interaction_notification_window" - parentanchor = center - position = { 0 40 } - size = { 650 700 } - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - restrictparent_min = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionNotificationWindow.GetContextName]" - } - - blockoverride "button_close" - { - onclick = "[CharacterInteractionNotificationWindow.Close]" - } - } - - vbox_sender_portrait_message = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - margin_top = 10 - - background = { - using = Background_Area - } - - hbox = { - datacontext = "[MarriageInteractionNotificationWindow.GetMarriageInfo]" - datacontext = "[MarriageInfo.GetBaseOffer]" - portrait_head = { - name = "left_main_portrait" - datacontext = "[MatchOffer.GetSecondaryActor]" - tooltip_visible = "[Character.IsValid]" - } - - icon = { - name = "marriage_type" - texture = "gfx/interface/icons/marriage_types.dds" - size = { 60 60 } - framesize = { 60 60 } - frame = "[MarriageInfo.GetMarriageIconFrame]" - } - - portrait_head = { - name = "right_main_portrait" - datacontext = "[MatchOffer.GetSecondaryRecipient]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - vbox_marriage_interaction_marriage_details = { - spacing = 5 - datacontext = "[MarriageInteractionNotificationWindow.GetMarriageInfo]" - datacontext = "[MarriageInfo.GetBaseOffer]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "icon_frame" {} - - blockoverride "marriage_details_after" - { - - # divider_light = { - # layoutpolicy_horizontal = expanding - # } - - ### Prestige - vbox = { - - layoutpolicy_horizontal = expanding - margin = { 10 10} - background = { - using = Background_Area_Dark - margin = { 0 5 } - margin_right = 5 - alpha = 0.5 - - using = Mask_Rough_Edges - } - - hbox = { - expand = {} - - layoutpolicy_horizontal = expanding - - text_multi = { - datacontext = "[MatchOffer.GetSecondaryActor]" - name = "prestige_desc_our" - max_width = 510 - autoresize = yes - text = "MARRIAGE_PRESTIGE_DESC_OUR" - tooltip = "MARRIAGE_PRESTIGE_TOOLTIP_OUR" - } - - expand = {} - } - - hbox = { - expand = {} - - layoutpolicy_horizontal = expanding - - text_multi = { - datacontext = "[MatchOffer.GetSecondaryRecipient]" - name = prestige_desc_their - max_width = 510 - autoresize = yes - text = "MARRIAGE_PRESTIGE_DESC_THEIR" - default_format = "#low" - tooltip = "MARRIAGE_PRESTIGE_TOOLTIP_THEIR" - } - - expand = {} - } - } - } - } - - - hbox = { - name = "answer_area" - margin_bottom = 15 - margin_top = 10 - spacing = 10 - - button_standard = { - name = "reject_button" - size = { 230 42 } - text = "[CharacterInteractionNotificationWindow.GetAnswerRejectText]" - onclick = "[CharacterInteractionNotificationWindow.Reject]" - enabled = "[CharacterInteractionNotificationWindow.CanReject]" - } - - button_primary = { - name = "accept_button" - size = { 230 42 } - text = "[CharacterInteractionNotificationWindow.GetAnswerAcceptText]" - onclick = "[CharacterInteractionNotificationWindow.Accept]" - enabled = "[CharacterInteractionNotificationWindow.CanAccept]" - } - } - } -} diff --git a/N3OW/gui/interaction_menu_window.gui b/N3OW/gui/interaction_menu_window.gui deleted file mode 100644 index 101771d2..00000000 --- a/N3OW/gui/interaction_menu_window.gui +++ /dev/null @@ -1,235 +0,0 @@ - -@max_height_before_scrolling = 920 - -#adjustment to make scrollbar appear as if outside window -@scrollbar_outside_tweak = 15 -@scrollbar_outside_tweak_negative = -15 -@scrollbar_outside_tweak_negative_plus_8 = -7 - -#### THE WINDOW - -window = { - gfxtype = windowgfx - name = "character_interaction_menu_window" - widgetid = "character_interaction_menu_window" - movable = no - - #this is the offset from the character portrait - position = { 420 70 } - alwaystransparent = yes - layer = top - allow_outside = yes - - # widget_anchor is set dynamically by code - using = Animation_ShowHide_Quick - - # Not shown to the player, but is used by the hotkey system - button_normal = { - name = "button_close" - size = { 0 0 } - onclick = "[CharacterInteractionMenuWindow.Close]" - shortcut = "close_window" - } - - container = { - alwaystransparent = yes - resizeparent = yes - allow_outside = yes - - flowcontainer = { - alwaystransparent = no - direction = vertical - ignoreinvisible = yes - - background = { - texture = "gfx/interface/skinned/interaction_menu_bg.dds" - spriteType = Corneredtiled - spriteborder = { 11 11 } - spriteborder_top = 49 - margin = { 8 14 } - margin_right = @scrollbar_outside_tweak_negative_plus_8 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } - - widget = { - datacontext = "[CharacterInteractionMenuWindow.GetCharacter]" - size = { 317 32 } - name = "character_info" - - hbox = { - margin = { 10 4 } - - background = { - using = Background_Header - margin = { 0 4 } - margin_bottom = 8 - alpha = 0.5 - } - - background = { - using = Background_Header_Pattern - margin = { 0 4 } - margin_bottom = 12 - alpha = 0.5 - } - - text_single = { - name = "character_name" - visible = "[Not(Character.IsLocalPlayer)]" - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip|U]" - default_format = "#Bold;high" - align = nobaseline - autoresize = no - } - - text_single = { - name = "character_name_me" - visible = "[Character.IsLocalPlayer]" - layoutpolicy_horizontal = expanding - text = "FRAME_RELATION_ME" - align = nobaseline - autoresize = no - } - - expand = {} - - hbox = { - button_pin = { - name = "button_pin" - visible = "[Not(Character.IsPinned)]" - onclick = "[Character.ToggleCharacterPinned]" - size = { 25 25 } - - tooltip = "PIN_TT" - using = tooltip_se - } - - button_barbershop = { - name = "customize_portrait" - visible = "[Character.CanCustomizePortrait]" - onclick = "[Character.OnCustomizePortrait]" - onclick = "[CharacterInteractionMenuWindow.Close]" - size = { 25 25 } - - tooltip = "CV_CUSTOMIZE_PORTRAIT" - using = tooltip_ne - } - - button_edit_text = { - name = "button_rename" - datacontext = "[GetScriptedGui( 'rename_character_after_birth' )]" - visible = "[Character.CanCharacterBeRenamed]" - onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'child', Character.MakeScope ).End )]" - size = { 25 25 } - - tooltip = "RENAME_CHARACTER" - using = tooltip_ne - } - - button_go_to_my_location = { - name = "button_go_to_my_location" - onclick = "[Character.PanCameraTo]" - size = { 25 25 } - - tooltip = "GOTO_CHARACTER" - using = tooltip_ne - } - } - } - } - - widget = { - size = { 317 40 } - visible = [CharacterInteractionMenuWindow.OutsideDiplomaticRange] - tooltip = OUT_OF_DIPLOMACY_RANGE_TOOLTIP - - text_label_center = { - name = "label" - parentanchor = center - position = { 0 3 } - text = OUT_OF_DIPLOMACY_RANGE - } - } - - text_multi = { - datacontext = "[CharacterInteractionMenuWindow.GetCharacter]" - visible = "[CharacterInteractionMenuWindow.IsFiltered]" - parentanchor = hcenter - - text = "[CharacterInteractionMenuWindow.GetFilterDescription]" - align = center - autoresize = yes - max_width = 280 - min_width = 280 - - margin = { 0 10 } - margin_right = @scrollbar_outside_tweak - } - - - scrollarea = { - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - maximumsize = { -1 @max_height_before_scrolling } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - flowcontainer = { - # name used in code - name = "category_interaction_list" - - datamodel = "[CharacterInteractionMenuWindow.GetCategoryItems]" - direction = vertical - ignoreinvisible = yes - margin_right = @scrollbar_outside_tweak - - item = { - flowcontainer_category_group = {} - } - } - } - } - } - - ### MORE INTERACTIONS - container = { - alwaystransparent = no - visible = "[CharacterInteractionMenuWindow.AreMoreInteractionsVisisble]" - name = "more_interactions_container" - - container = { - #this is used in code as an offset to its position - position = { -5 30 } - - background = { - texture = "gfx/interface/skinned/interaction_menu_bg.dds" - spriteType = Corneredtiled - spriteborder = { 11 11 } - margin = { 8 8 } - shaderfile = "gfx/FX/pdxgui_default.shader" - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - dynamicgridbox_interaction_list = { - datamodel = "[CharacterInteractionMenuWindow.GetMoreInteractions]" - } - } - } - } -} diff --git a/N3OW/gui/interaction_modify_vassal_window.gui b/N3OW/gui/interaction_modify_vassal_window.gui deleted file mode 100644 index 1e64448b..00000000 --- a/N3OW/gui/interaction_modify_vassal_window.gui +++ /dev/null @@ -1,1434 +0,0 @@ -window = { - name = "modify_vassal_contract_interaction_window" - parentanchor = center - widgetanchor = top|hcenter - position = { 270 -400 } - size = { 600 700 } # Doesn't do much cause of the set_parent_size_to_minimum below - layer = middle - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - name = "window_content" - set_parent_size_to_minimum = yes - minimumsize = { 0 700 } - - using = Window_Margins - - datacontext = "[ModifySubjectContractInteractionWindow.GetCharacterInteractionConfirmationWindow]" - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreview]" - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text_single = { - parentanchor = top|hcenter - text = "CONTRACT_NAME" - using = Font_Type_Flavor - using = Font_Size_Big - } - } - - blockoverride "button_close" - { - onclick = "[ModifySubjectContractInteractionWindow.Close]" - } - } - - hbox = { - layoutpolicy_vertical = expanding - margin_top = -5 - - vbox_obligation_negotiation = { - name = "obligation_level_negotiation" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - margin_bottom = 20 - - using = Background_Letter - } - - vbox_contract_result_info = { - name = "contract_result_info" - layoutpolicy_vertical = expanding - - spacing = 10 - margin = { 10 0 } - margin_top = 5 - margin_bottom = 20 - - using = FeudalVassalBackground - using = NonFeudalVassalBackground - using = AdminVassalBackground - using = NomadVassalBackground - using = JapaneseVassalBackground - using = ChineseVassalBackground - } - } - } -} - -types ModifySubjectContractsShared -{ - type vbox_obligation_negotiation = vbox - { - vbox_default_negotiation = { - name = "default_subject_paper_contract" - visible = "[SubjectContract.HasModifyContractLayout( 'default' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 20 } - spacing = 5 - } - - # Note that we can check for government flags and rules as well - this may come in handy instead of checking for multiple specific government types. - vbox_clan_negotiation = { - name = "clan_vassal_paper_contract" - visible = "[SubjectContract.HasModifyContractLayout( 'clan' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 20 } - spacing = 5 - } - - vbox_administrative_negotiation = { - name = "administrative_vassal_paper_contract" - visible = "[SubjectContract.HasModifyContractLayout( 'admin' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 5 } - } - - vbox_eastern_administrative_negotiation = { - name = "eastern_administrative_vassal_paper_contract" - visible = "[SubjectContract.HasModifyContractLayout( 'eastern_admin' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 5 } - margin_top = 20 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - button_standard = { - name = "reset_button" - onclick = "[ModifySubjectContractInteractionWindow.ResetToCurrent]" - enabled = "[Not( ModifySubjectContractInteractionWindow.IsPreviewSameAsCurrent )]" - text = "RESET_CONTRACT_CHANGES" - using = tooltip_above - - background = { - using = Background_Area_Light - alpha = 0.8 - } - } - } - - type widget_major_obligation_level = widget - { - datacontext = "[ObligationLevelLineItem.AccessItem]" - size = { 132 80 } - position = "[ObligationLevelLineTree.GetItemPosition( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - container = { - parentanchor = center - - widget = { - name = "top_pin" - visible = "[ObligationLevelLineItem.SetupTopWidget( PdxGuiWidget.Self )]" - } - - widget = { - name = "bottom_pin" - visible = "[ObligationLevelLineItem.SetupBottomWidget( PdxGuiWidget.Self )]" - } - } - - button_letter = { - parentanchor = center - size = { 100 80 } - - onclick = "[ModifySubjectContractInteractionWindow.SelectObligationLevel( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - down = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - enabled = "[ModifySubjectContractInteractionWindow.IsObligationLevelEnabled( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - tooltip = "[ModifySubjectContractInteractionWindow.GetObligationLevelTooltipFor( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - using = tooltip_above - - text_single = { - text = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetName]" - visible = "[Not( ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self ) )]" - default_format = "#light_background" - parentanchor = center - position = { 0 -3 } - } - - text_single = { - text = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetName]" - visible = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - default_format = "#high" - parentanchor = center - position = { 0 -3 } - } - - background = { - using = Background_Area_Dark - visible = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - blockoverride "button_letter_current" - { - visible = "[ModifySubjectContractInteractionWindow.IsCurrentObligationLevel( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - } - } - - type vbox_minor_obligations_radio_list = vbox - { - item = { - vbox_minor_obligation_radio_item = { } - } - } - - type vbox_minor_obligation_radio_item = vbox - { - datacontext = "[ObligationLevelRadioButtons.GetContainerData]" - visible = "[ObligationContainerData.ShouldShow( ModifySubjectContractInteractionWindow.GetContractPreview )]" - - layoutpolicy_horizontal = expanding - spacing = 10 - margin_bottom = 4 - - background = { - using = Background_Area_With_Header - margin = { -19 0 } - alpha = 0.75 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 3 - - text_single = { - text = "[ObligationContainerData.GetName]" - using = Font_Size_Medium - default_format = "#light_background" - } - } - - fixedgridbox = { - datamodel = "[ObligationLevelRadioButtons.Access]" - addcolumn = 124 - addrow = 32 - datamodel_wrap = 4 - flipdirection = yes - - item = { - hbox_minor_obligation_radio_option = { - max_width = 124 - max_height = 32 - } - } - } - } - - type hbox_minor_obligation_radio_option = hbox - { - visible = "[ModifySubjectContractInteractionWindow.IsObligationLevelVisible( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - button_radio_label = { - onclick = "[ModifySubjectContractInteractionWindow.SelectObligationLevel( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - enabled = "[ModifySubjectContractInteractionWindow.IsObligationLevelEnabled( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - blockoverride "radio" - { - frame = "[BoolTo1And2( ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self ) )]" - } - blockoverride "text" - { - text = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetName]" - default_format = "#light_background" - max_width = 84 - } - - tooltip = "[ModifySubjectContractInteractionWindow.GetObligationLevelTooltipFor( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - expand = {} - } - - type widget_minor_obligation_checkbox_item = widget - { - datacontext = "[ObligationLevelCheckbox.GetContainerData]" - visible = "[ObligationContainerData.ShouldShow( ModifySubjectContractInteractionWindow.GetContractPreview )]" - - background = { - using = Background_Area_With_Header - alpha = 0.75 - } - - vbox = { - margin_left = 10 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ObligationContainerData.GetName]" - default_format = "#light_background" - max_width = 180 - using = Font_Size_Medium - - margin_top = 3 - } - - hbox = { - datacontext = "[ObligationLevelCheckbox.GetLevel( '(int32)1' )]" # First one is always no effect/disabled option - layoutpolicy_horizontal = expanding - - alwaystransparent = no - spacing = 5 - margin_top = 3 - - button_checkbox_label = { - # Order dependent, first select the unselected level then set it as the new selected one - onclick = "[ModifySubjectContractInteractionWindow.SelectObligationLevel( ObligationLevelCheckbox.GetLevel( ObligationLevelCheckbox.GetUnselectedLevelIndex ) )]" - onclick = "[ObligationLevelCheckbox.ToggleSelection]" - enabled = "[ModifySubjectContractInteractionWindow.IsObligationLevelEnabled( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - blockoverride "checkbox" - { - checked = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - blockoverride "text" - { - text = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetName]" - default_format = "#light_background" - } - } - - expand = {} - - tooltip = "[ModifySubjectContractInteractionWindow.GetObligationLevelTooltipFor( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - expand = {} - } - } - - type hbox_sigil_and_signatures = hbox - { - coa_character_sigil = { - datacontext = "[SubjectContract.GetLiege]" - - blockoverride "size" - { - size = { 80 80 } - } - blockoverride "sigil_size" - { - size = { 56 56 } - } - } - - expand = {} - - text_single = { - name = "liege_signature" - max_width = 430 - align = left - layoutpolicy_horizontal = expanding - default_format = "#light_background" - - text = "CONTRACT_LIEGE_SIGNATURE" - using = Font_Type_Flavor - using = Font_Size_Medium - using = Text_Light_Background_Overrides - } - - coa_character_sigil = { - datacontext = "[SubjectContract.GetSubject]" - - blockoverride "size" - { - size = { 80 80 } - } - blockoverride "sigil_size" - { - size = { 56 56 } - } - } - - expand = {} - - text_single = { - name = "vassal_signature" - max_width = 400 - align = left - layoutpolicy_horizontal = expanding - default_format = "#light_background" - - text = "CONTRACT_VASSAL_SIGNATURE" - using = Font_Type_Flavor - using = Font_Size_Medium - using = Text_Light_Background_Overrides - } - } - - type vbox_contract_result_info = vbox - { - hbox = { - name = "vassal_profile" - datacontext = "[SubjectContract.GetSubject]" - visible = "[Not( IsAdministrativeRuler( Character ) )]" - margin_right = 10 - - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - portrait_head = { - blockoverride "opinion_box" {} - } - - expand = {} - - text_multi = { - text = "VASSAL_CONTRACT_VASSAL_TITLE" - using = Font_Size_Medium - using = Font_Type_Flavor - align = center - autoresize = yes - maximumsize = { 300 -1 } - } - - expand = {} - - coa_realm_medium_crown = {} - } - hbox = { - name = "vassal_profile_admin" - datacontext = "[SubjectContract.GetSubject]" - visible = "[IsAdministrativeRuler( Character )]" - margin_right = 10 - - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 0 5 } - } - - hbox = { - margin_top = -10 - coa_realm_big_crown = {} - } - - expand = {} - - text_multi = { - text = "VASSAL_CONTRACT_VASSAL_TITLE_ADMIN" - using = Font_Size_Medium - using = Font_Type_Flavor - align = center - autoresize = yes - maximumsize = { 300 -1 } - } - - expand = {} - - portrait_head = { - blockoverride "opinion_box" {} - blockoverride "coa" {} - } - } # vassal_profile - - vbox = { - visible = "[Not(Or(ModifySubjectContractInteractionWindow.IsRightfulLiege, ModifySubjectContractInteractionWindow.GetContractPreview.IsTributary))]" - margin = { 5 5 } - - hbox = { - background = { - using = Background_Area_Dark - margin = { 16 8 } - } - - warning_icon = { - size = { 25 25 } - } - - text_multi = { - min_width = 300 - max_width = 400 - autoresize = yes - margin = { 5 0 } - - text = "SUBJECT_CONTRACT_LIEGE_IS_NOT_RIGHTFUL_LIEGE_NOTICE" - align = nobaseline - using = Font_Size_Small - } - } - } - - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription.GetDisplayedEffects]" - - hbox = { - visible = "[DisplayedInteractionEffects.HasAnyEffects]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_label_left = { - text = CONTRACT_EFFECTS_HEADER - } - expand = {} - } - - vbox_character_interaction_effects_simple = { - visible = "[DisplayedInteractionEffects.HasAnyEffects]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - } - - vbox = { - name = "no_effect_notice" - visible = "[Not( DisplayedInteractionEffects.HasAnyEffects )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreview]" - - text_multi = { - visible = "[Not( DisplayedInteractionEffects.HasAnyEffects )]" - text = "SUBJECT_CONTRACT_OBLIGATION_NO_EFFECT" - using = Font_Size_Medium - max_width = 400 - autoresize = yes - } - } - - vbox = { - spacing = 10 - - vbox = { - name = "tax_levy_opinion_info" - layoutpolicy_horizontal = expanding - spacing = 15 - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 40 - - # Final tax obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractTaxObligations]" - spacing = 5 - - text_label_center = { - visible = "[Character.GetGovernment.IsType('feudal_government')]" - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE" - } - text_label_center = { - visible = "[Not(Character.GetGovernment.IsType('feudal_government'))]" - text = "NON_FEUDAL_SUBJECT_CONTRACT_OBLIGATIONS_TITLE" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - highlight_icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetTaxRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedTax|=2]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewTaxBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_TAXES_TO_ME', SelectLocalization(SubjectContract.GetSubject.HasSuzerain, 'MRW_TT_TAXES_TO_MY_SUZERAIN', 'MRW_TT_TAXES_TO_MY_LIEGE'))]" - } - } - } - using = tooltip_ws - } - - expand = {} - - } - } - - expand = {} - - # Final levy obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractLevyObligations]" - spacing = 5 - - text_label_center = { - visible = "[Character.GetGovernment.IsType('feudal_government')]" - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE_LEVIES" - } - text_label_center = { - visible = "[Not(Character.GetGovernment.IsType('feudal_government'))]" - text = "NON_FEUDAL_SUBJECT_CONTRACT_OBLIGATIONS_TITLE_LEVIES" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_levies.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetLevyRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedLeviesFormatted]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewLeviesBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_LEVIES_TO_ME', SelectLocalization(SubjectContract.GetSubject.HasSuzerain, 'MRW_TT_LEVIES_TO_MY_SUZERAIN', 'MRW_TT_LEVIES_TO_MY_LIEGE'))]" - } - } - } - using = tooltip_ws - } - } - } - - # Final herd obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractHerdObligations]" - spacing = 5 - - text_label_center = { - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE_HERD" - } - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_herd.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetHerdRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedHerd|=1]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewHerdBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_HERD_TO_ME', SelectLocalization(SubjectContract.GetSubject.HasSuzerain, 'MRW_TT_HERD_TO_MY_SUZERAIN', 'MRW_TT_HERD_TO_MY_LIEGE'))]" - } - } - } - using = tooltip_ws - } - } - } - - # Final prestige obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractPrestigeObligations]" - spacing = 5 - - text_label_center = { - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE_PRESTIGE" - } - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - size = { 30 30 } - texture = "gfx/interface/icons/modifiers/icon_prestige_01.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetPrestigeRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedPrestige|=2]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewPrestigeBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_PRESTIGE_TO_ME', SelectLocalization(SubjectContract.GetSubject.HasSuzerain, 'MRW_TT_PRESTIGE_TO_MY_SUZERAIN', 'MRW_TT_PRESTIGE_TO_MY_LIEGE'))]" - } - } - } - using = tooltip_ws - } - } - } - - # Final piety obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractPietyObligations]" - spacing = 5 - - text_label_center = { - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE_PIETY" - } - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/character_interactions/religious.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetPietyRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedPiety|=2]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewPietyBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_PIETY_TO_ME', 'MRW_TT_PIETY_TO_MY_OVERLORD' )]" - } - } - } - using = tooltip_ws - } - } - } - - # Final barter goods obligations - vbox = { - visible = "[ModifySubjectContractInteractionWindow.HasContractBarterGoodsObligations]" - spacing = 5 - - text_label_center = { - text = "SUBJECT_CONTRACT_OBLIGATIONS_TITLE_BARTER_GOODS" - } - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_barter.dds" - } - - progressbar_standard = { - size = { 90 25 } - value = "[FixedPointToProgressbarValue(SubjectContract.GetBarterGoodsRatioForLiege)]" - - text_single = { - parentanchor = center - position = { 0 -2 } - text = "[ModifySubjectContractInteractionWindow.GetContractPreviewCachedBarterGoods|=2]" - default_format = "#high" - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewBarterGoodsBreakdown]" - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(SubjectContract.GetLiege.IsLocalPlayer, 'MRW_TT_BARTER_GOODS_TO_ME', 'MRW_TT_BARTER_GOODS_TO_MY_OVERLORD' )]" - } - } - } - using = tooltip_ws - } - } - } - } - } # tax_levy_opinion_info - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - datacontext = "[SubjectContract.GetSubject]" - - text_single = { - datacontext = "[ModifySubjectContractInteractionWindow.GetContractPreviewOpinionBreakdown]" - visible = "[Not(Character.IsLocalPlayer)]" - text = "SUBJECT_CONTRACT_OPINION_MODIFICATION" - align = nobaseline - using = Font_Size_Medium - - margin = { 10 5} - - background = { - using = Background_Area_Dark - } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[Character.GetSubjectContract]" - visible = "[And(SubjectContract.GetSubject.HasSuzerain,GreaterThanOrEqualTo_CFixedPoint(SubjectContract.GetSubjectStanding,'(CFixedPoint)0'))]" - - text = "MY_REALM_WINDOW_SUBJECT_STANDING" - align = nobaseline - using = Font_Size_Medium - - margin = { 10 5 } - - tooltip = "MY_REALM_WINDOW_SUBJECT_STANDING_TT" - - background = { - using = Background_Area_Dark - } - } - - expand = {} - - ## Options - vbox_interaction_options = { - name = "tutorial_highlight_modify_contract_hook_button" - visible = "[CharacterInteractionConfirmationWindow.HasOptions]" - } - } - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin = { 15 5 } - - background = { - using = Background_Area_Dark - } - - text_single = { - visible = "[And( And( ObjectsEqual( GetPlayer, SubjectContract.GetLiege ), Not( GetPlayer.GetGovernment.IsType( 'mandala_government' )) ), And( Not( SubjectContract.IsTributary), Or( Character.GetGovernment.IsType('feudal_government'), IsAdministrativeRuler( Character ) ) ) )]" - text = "NON_FEUDAL_VASSAL_CONTRACT_OBLIGATION_ONLY_ONCE" - align = nobaseline - } - - text_single = { - visible = "[And( And( ObjectsEqual( GetPlayer, SubjectContract.GetLiege ), SubjectContract.IsTributary ), Not( GetPlayer.GetGovernment.IsType( 'mandala_government' )) )]" - text = "TRIBUTARY_CONTRACT_OBLIGATION_ONLY_ONCE" - align = nobaseline - } - - text_single = { - name = "province_administration_change_text" - visible = "[IsAdministrativeRuler( Character )]" - text = "PROVINCE_ADMINISTRATION_CHANGE_INFO" - default_format = "#weak" - align = nobaseline - } - - # The normal admin window has this text in the negotiation section. - text_single = { - name = "eastern_admin_change_text" - visible = "[SubjectContract.HasModifyContractLayout('eastern_admin')]" - text = "THEME_ADMINISTRATION_INFO" - default_format = "#weak" - align = nobaseline - } - } - - button_primary = { - name = "send_offer_button" - size = { 350 45 } - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - default_format = "#high" - enabled = "[CharacterInteractionConfirmationWindow.CanSend]" - onclick = "[ModifySubjectContractInteractionWindow.Send]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCanSendDescription]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_advance" - } - } -} - -types ModifyDefaultContracts -{ - - type vbox_default_negotiation = vbox - { - vbox = { - name = "major_line_tree_levels" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelLineTrees]" - layoutpolicy_horizontal = expanding - - spacing = 10 - - item = { - vbox = { - visible = "[ObligationContainerData.ShouldShow( ModifySubjectContractInteractionWindow.GetContractPreview )]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_bottom = 10 - spacing = 10 - - datacontext = "[ObligationLevelLineTree.GetContainerData]" - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 0 2 } - alpha = 0.3 - } - - text_single = { - text = "[ObligationContainerData.GetName] [ObligationContainerData.GetIcon]" - using = Font_Size_Medium - margin_bottom = 5 - - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - } - - container = { - name = "obligation_level_item_line_area" # Name used in code do not change - datamodel = "[ObligationLevelLineTree.AccessItems]" - layoutpolicy_vertical = expanding - - item = { - widget_major_obligation_level = { } - } - } - } - } - } - - vbox_minor_obligations_radio_list = { - name = "minor_list_levels_radio_buttons" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelRadioButtons]" - layoutpolicy_horizontal = expanding - } - - dynamicgridbox = { - name = "minor_list_levels_checkboxes" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelCheckboxes]" - - flipdirection = yes - datamodel_wrap = 3 - - item = { - widget_minor_obligation_checkbox_item = { - size = { 178 70 } - } - } - } - - expand = {} - - hbox_sigil_and_signatures = { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - spacing = 5 - } - } -} - -types ModifyVassalClanContracts -{ - type vbox_clan_negotiation = vbox - { - vbox = { - spacing = 5 - - vbox_minor_obligations_radio_list = { - name = "lambda_vassal_minor_list_levels_radio_buttons" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelRadioButtons]" - visible = "[And( Not( Character.GetPrimaryTitle.IsBarony ), Not( Character.GetPrimaryTitle.IsCounty ) )]" - layoutpolicy_horizontal = expanding - } - - dynamicgridbox = { - name = "non_feudal_minor_list_levels_checkboxes" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelCheckboxes]" - - flipdirection = yes - datamodel_wrap = 3 - - item = { - widget_minor_obligation_checkbox_item = { - size = { 200 70 } - } - } - } - } - - expand = {} - - hbox_sigil_and_signatures = { - layoutpolicy_horizontal = expanding - spacing = 5 - } - } -} - -types ModifyVassalAdministrativeContracts -{ - type widget_theme_type_selection_option = margin_widget { - - vbox = { - spacing = -7 - - button_standard_clean = { - size = { 140 140 } - - enabled = "[ModifySubjectContractInteractionWindow.IsObligationLevelEnabled( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - visible = "[ModifySubjectContractInteractionWindow.IsObligationLevelVisible( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - onclick = "[ModifySubjectContractInteractionWindow.SelectObligationLevel( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - down = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - alwaystransparent = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - tooltip = "[ModifySubjectContractInteractionWindow.GetObligationLevelTooltipFor( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - - icon = { - size = { 140 140 } - texture = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetIcon]" - } - - blockoverride "button_standard_current" - { - visible = "[ModifySubjectContractInteractionWindow.IsCurrentObligationLevel( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - background = { - using = Background_Area - } - - - widget = { - size = {136 136} - parentanchor = center - - scissor = yes - - text_label_left = { - max_width = 165 - text = "[ModifySubjectContractInteractionWindowObligationLevelOption.GetName]" - default_format = "#clickable" - parentanchor = bottom|left - position = { 6 -4 } - } - } - - selection_glow = { - visible = "[ModifySubjectContractInteractionWindow.IsObligationLevelSelected( ModifySubjectContractInteractionWindowObligationLevelOption.Self )]" - } - - } - } - } - - type vbox_theme_selection_item = vbox - { - datacontext = "[ObligationLevelRadioButtons.GetContainerData]" - visible = "[ObligationContainerData.ShouldShow( ModifySubjectContractInteractionWindow.GetContractPreview )]" - - margin = { 30 0 } - margin_top = 10 - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_label_center = { - align = center - - text = "[ObligationContainerData.GetName]" - using = Font_Size_Medium - } - } - - dynamicgridbox = { - datamodel = "[ObligationLevelRadioButtons.Access]" - - flipdirection = yes - datamodel_wrap = 3 - ignoreinvisible = yes - - item = { - widget_theme_type_selection_option = { - size = { 155 180 } - } - } - } - } - - type vbox_theme_selection_list = vbox - { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - vbox_theme_selection_item = { } - } - } - - type vbox_administrative_negotiation = vbox - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 8 - margin_top = -5 - margin_bottom = 5 - - background = { - using = Background_Area_Dark - margin_right = 5 - margin_bottom = 17 - margin_top = -43 - margin_left = 3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphaMultiply - alpha = 0.4 - } - - modify_texture = { - texture = "gfx/interface/component_masks/event_effect_mask.dds" - blend_mode = alphaMultiply - alpha = 0.7 - } - } - - background = { - texture = "gfx/interface/window_theme_administration/fabric_pattern.dds" - - using = Mask_Rough_Edges - margin_top = -37 - margin_bottom = 10 - alpha = 0.9 - } - - vbox_theme_selection_list = { - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelRadioButtons]" - } - - hbox = { - margin = { 40 0 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - blockoverride "scrollbox_content" { - vbox = { - text_multi = { - autoresize = yes - size = { 417 78 } - max_width = 417 - - default_format = "#high" - - text = "[ModifySubjectContractInteractionWindow.GetObligationLevelDesc]" - } - } - } - } - } - - text_multi = { - name = "theme_administration_info" - max_width = 440 - min_width = 440 - autoresize = yes - margin = { 16 16 } - - text = THEME_ADMINISTRATION_INFO - } - } - } - - type vbox_eastern_administrative_negotiation = vbox - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_bottom = 5 - - vbox_theme_selection_list = { - visible = "[DataModelHasItems( ModifySubjectContractInteractionWindow.AccessObligationLevelRadioButtons )]" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelRadioButtons]" - } - - vbox = { - name = "major_line_tree_levels" - datamodel = "[ModifySubjectContractInteractionWindow.AccessObligationLevelLineTrees]" - layoutpolicy_horizontal = expanding - - spacing = 10 - - item = { - vbox = { - visible = "[ObligationContainerData.ShouldShow( ModifySubjectContractInteractionWindow.GetContractPreview )]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_bottom = 10 - spacing = 10 - - datacontext = "[ObligationLevelLineTree.GetContainerData]" - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 0 2 } - alpha = 0.3 - } - - text_single = { - text = "[ObligationContainerData.GetName] [ObligationContainerData.GetIcon]" - using = Font_Size_Medium - margin_bottom = 5 - - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - } - - container = { - name = "obligation_level_item_line_area" # Name used in code do not change - datamodel = "[ObligationLevelLineTree.AccessItems]" - layoutpolicy_vertical = expanding - - item = { - widget_major_obligation_level = { } - } - } - } - } - } - - expand = {} - } - } -} - -template FeudalVassalBackground -{ - background = { - visible = "[Character.GetGovernment.IsType('feudal_government')]" - texture = "gfx/interface/illustrations/event_scenes/study.dds" - alpha = 0.7 - fittype = centercrop - - margin_bottom = 2 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} - -template NonFeudalVassalBackground -{ - background = { - visible = "[And( Not(Character.GetGovernment.IsType('nomad_government') ), Not( Or( Character.GetGovernment.IsType('feudal_government'), IsAdministrativeRuler( Character ) ) ) )]" - texture = "gfx/interface/illustrations/event_scenes/fp2_relaxing_room.dds" - alpha = 0.7 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} - -template AdminVassalBackground -{ - background = { - visible = "[And(IsAdministrativeRuler( Character ),Not(Or(Or(Character.GetGovernment.IsType('celestial_government'),Character.GetGovernment.IsType('meritocratic_government')),Character.GetGovernment.IsType('japan_administrative_government'))))]" - texture = "gfx/interface/illustrations/event_scenes/ep3_medi_study.dds" - alpha = 0.7 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} - -template NomadVassalBackground -{ - background = { - visible = "[Character.GetGovernment.IsType('nomad_government')]" - texture = "gfx/interface/illustrations/event_scenes/mpo_tent_interior_mongol.dds" - alpha = 0.6 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} - -template JapaneseVassalBackground -{ - background = { - visible = "[Or(Character.GetGovernment.IsType('japan_feudal_government'),Character.GetGovernment.IsType('japan_administrative_government'))]" - texture = "gfx/interface/illustrations/event_scenes/tgp_study_japan.dds" - alpha = 0.6 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} - -template ChineseVassalBackground -{ - background = { - visible = "[Or(Character.GetGovernment.IsType('celestial_government'),Character.GetGovernment.IsType('meritocratic_government'))]" - texture = "gfx/interface/illustrations/event_scenes/tgp_study_asia.dds" - alpha = 0.6 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } -} diff --git a/N3OW/gui/interaction_notification_window.gui b/N3OW/gui/interaction_notification_window.gui deleted file mode 100644 index 87a04dca..00000000 --- a/N3OW/gui/interaction_notification_window.gui +++ /dev/null @@ -1,96 +0,0 @@ -###################################################### -############## INTERACTION NOTIFICATION ############## -###################################################### -window = { - name = "character_interaction_notification_window" - parentanchor = center - position = { 0 40 } - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterInteractionNotificationWindow.GetContextName]" - } - - blockoverride "button_close" - { - onclick = "[CharacterInteractionNotificationWindow.Close]" - - } - } - - vbox_sender_portrait_message = { - layoutpolicy_horizontal = expanding - } - - vbox_character_interaction_effects = { - visible = "[CharacterInteractionNotificationWindow.GetCharacterInteraction.ShowEffectsInNotification]" - datacontext = "[CharacterInteractionNotificationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - } - - vbox = { - spacing = 20 - margin_bottom = 15 - - hbox = { - spacing = 15 - visible = "[Not( CharacterInteractionNotificationWindow.IsAutoAcceptNotification )]" - - button_standard = { - name = "reject_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerRejectText]" - onclick = "[CharacterInteractionNotificationWindow.Reject]" - enabled = "[CharacterInteractionNotificationWindow.CanReject]" - using = tooltip_ws - default_format = "#medium" - } - - button_primary = { - name = "accept_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerAcceptText]" - onclick = "[CharacterInteractionNotificationWindow.Accept]" - enabled = "[CharacterInteractionNotificationWindow.CanAccept]" - } - } - - button_primary = { - visible = "[CharacterInteractionNotificationWindow.IsAutoAcceptNotification]" - name = "acknowledge_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerAcknowledgeText]" - onclick = "[CharacterInteractionNotificationWindow.Acknowledge]" - } - - button_standard = { - name = "block_button" - text = "[CharacterInteractionNotificationWindow.GetAnswerBlockText]" - onclick = "[CharacterInteractionNotificationWindow.Block]" - visible = "[CharacterInteractionNotificationWindow.CanPotentiallyBeBlocked]" - enabled = "[CharacterInteractionNotificationWindow.CanBeBlocked]" - tooltip = "[CharacterInteractionNotificationWindow.GetCanBeBlockedTooltip]" - } - } - } -} diff --git a/N3OW/gui/interaction_revoke_title.gui b/N3OW/gui/interaction_revoke_title.gui deleted file mode 100644 index 8c2213bb..00000000 --- a/N3OW/gui/interaction_revoke_title.gui +++ /dev/null @@ -1,169 +0,0 @@ -###################################################### -#################### GRANT TITLES #################### -###################################################### -window = { - name = "revoke_titles_interaction_window" - datacontext = "[RevokeTitlesInteractionWindow.GetCharacterInteractionConfirmationWindow]" - parentanchor = top|right - position = { -15 65 } - size = { 560 960 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - datacontext = "[GetPlayer]" - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[RevokeTitlesInteractionWindow.Close]" - } - - icon_character_interaction = {} - } - - text_single = { - text = "[RevokeTitlesInteractionWindow.GetRevokeTitleDescription]" - default_format = "#I" - } - - spacer = { - size = { 0 5 } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { -1 200 } - blockoverride "scrollbox_content" - { - vbox_list_interaction_title_selection = { - layoutpolicy_horizontal = expanding - } - - blockoverride "extra_title_items" { - warning_icon = { - name = "wrong_type" - visible = "[Not( Title.HoldingCanBeHeldBy( GetPlayer ) )]" - size = { 31 31 } - - tooltip = "GRANT_REVOKE_VIEW_WRONG_HOLDING_TYPE" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 8 } - spacing = 3 - - hbox = { - tooltip = "[RevokeTitlesInteractionWindow.GetDomainLimitTooltip]" - using = tooltip_se - - background = { - margin = { 5 0 } - visible = "[GreaterThan_int32(RevokeTitlesInteractionWindow.GetResultingDomainSize,CharacterInteractionConfirmationWindow.GetActor.GetDomainLimit)]" - - using = Status_Bad - } - - spacing = 3 - - icon = { - texture = "gfx/interface/icons/icon_domain.dds" - size = { 30 30 } - } - - ### Effects on Domain Limit - text_single = { - name = "domain_limit_label" - text = "GRANT_REVOKE_TITLES_NEW_DOMAIN_LABEL" - } - - text_single = { - name = "domain_limit_result" - text = "[RevokeTitlesInteractionWindow.GetResultingDomainSize]/[CharacterInteractionConfirmationWindow.GetActor.GetDomainLimit]" - - } - } - } - ### Other Effects - vbox = { - name = "other_effects_list" - margin_bottom = 15 - spacing = 5 - - ### label - text_label_center = { - text = "GRANT_REVOKE_TITLES_OTHER_EFFECT_LABEL" - } - vbox = { - layoutpolicy_horizontal = expanding - - ### List - vbox_character_interaction_effects_simple = { - - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - minimumsize = { -1 220 } - - } - - vbox_interaction_options = { - layoutpolicy_horizontal = expanding - } - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - margin = {0 4} - } - - } - - text_multi_on_decline_summary = { - margin = {10 5} - max_width = 450 - } - } - - hbox = { - margin = { 8 8 } - ### SEND OFFER BUTTON - button_primary = { - name = "send_offer_button" - size = { 400 42 } - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - enabled = "[RevokeTitlesInteractionWindow.CanSendOffer]" - onclick = "[RevokeTitlesInteractionWindow.Send]" - tooltip = "[RevokeTitlesInteractionWindow.GetSendOfferTooltip]" - } - } - - - } -} diff --git a/N3OW/gui/interaction_templates.gui b/N3OW/gui/interaction_templates.gui deleted file mode 100644 index 6282b388..00000000 --- a/N3OW/gui/interaction_templates.gui +++ /dev/null @@ -1,3083 +0,0 @@ -@interaction_item_column_width = 30 - -types CharacterInteraction -{ - type icon_character_interaction = icon { - name = "interaction_icon" - position = { 0 -5 } - size = { 60 60 } - texture = "[CharacterInteractionConfirmationWindow.GetInteraction.GetIcon( CharacterInteractionConfirmationWindow.GetRecipient )]" - } - - type vbox_sender_portrait_message = vbox { - margin = { 15 20 } - using = Background_Letter - datacontext = "[CharacterInteractionNotificationWindow.GetSender]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - block "portrait_shoulders" { - portrait_head = { - name = "sender_portrait" - } - } - - ### TEXT ### - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "description" - max_width = 480 - autoresize = yes - text = "[CharacterInteractionNotificationWindow.GetNotificationText]" - default_format = "#light_background" - using = Font_Size_Medium - format_override = { high light_background } - using = Text_Light_Background_Overrides - } - - hbox = { - name = "signature" - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - expand = {} - - vbox = { - margin = { 20 0 } - - text_single = { - name = "signed_text" - layoutpolicy_horizontal = expanding - text = "[CharacterInteractionNotificationWindow.GetSigned]" - using = Font_Type_Flavor - align = right - default_format = "#light_background" - } - - text_single = { - name = "signature" - layoutpolicy_horizontal = expanding - text = "[CharacterInteractionNotificationWindow.GetSignature]" - align = right - default_format = "#light_background" - using = Font_Type_Flavor - } - } - - coa_character_sigil = {} - } - } - - } - } - - type vbox_arrangement_interaction_send_offer = vbox { - name = "send_offer_window" - - vbox_interaction_options = { - blockoverride "margin" - { - margin_top = 4 - } - layoutpolicy_horizontal = expanding - } - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = {} - - button_primary = { - size = { 400 42 } - block "button_content" {} - onclick = "[MatchmakerInteractionWindow.Send]" - enabled = "[CharacterInteractionConfirmationWindow.CanSend]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCanSendDescription]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - } - } - - type vbox_marriage_interaction_marriage_details = vbox { - margin = { 8 8 } - - background = { - using = Background_Area - } - - hbox = { - name = "children_info" - layoutpolicy_horizontal = expanding - - margin = {4 4} - # Dynasty - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 8 - - icon = { - name = "marriage_type" - block "icon_frame" - { - visible = "[MatchmakerInteractionWindow.HasPickedCharacters]" - } - - texture = "gfx/interface/icons/marriage_types.dds" - framesize = { 60 60 } - size = { 60 60 } - frame = "[MarriageInfo.GetMarriageIconFrame]" - } - - vbox = { - spacing = 2 - - text_multi = { - name = "children_house_info" - visible = "[And( StringIsEmpty( MarriageInfo.GetMatrilinealDesc ), Not( MatchOffer.IsSameSex ) )]" - max_width = 240 - min_width = 240 - autoresize = yes - text = "MARRIAGE_CHILDREN_HOUSE_INFO" - } - - text_multi = { - name = "matrilineal_desc" - visible = "[Not( MatchOffer.IsSameSex )]" - max_width = 240 - min_width = 240 - autoresize = yes - text = "[MarriageInfo.GetMatrilinealDesc]" - } - - text_multi = { - name = "children_chance_info" - max_width = 240 - min_width = 240 - autoresize = yes - text = "MARRIAGE_CHILDREN_CHANCE_INFO" - tooltip = "[MatchOffer.GetChanceOfChildrenTooltip]" - } - - text_multi = { - name = "inbreeding_risk" - visible = "[MatchOffer.HasInbreedingRisk]" - max_width = 240 - min_width = 240 - autoresize = yes - text = "MATCH_OFFER_INBREEDING_WARNING" - } - - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - - ### Traits - vbox = { - layoutpolicy_horizontal = expanding - margin = { 4 4 } - margin_left = 8 - spacing = 4 - visible = "[Not( MatchOffer.IsSameSex )]" - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - name = "traits_header" - visible = "[MatchOffer.HasInheritableTraits]" - text = "INHERITABLE_TRAITS" - } - - expand = {} - } - - text_single = { - name = "no_traits" - visible = "[Not(MatchOffer.HasInheritableTraits)]" - text = "NO_INHERITABLE_TRAITS" - align = nobaseline - default_format = "#low;italic" - margin = { 4 16 } - } - - overlappingitembox = { - size = { 240 55} - - name = "traits" - datamodel = "[MatchOffer.GetInheritableTraitItems]" - visible = "[Not(IsDataModelEmpty(MatchOffer.GetInheritableTraitItems))]" - - item = { - container = { - datacontext = "[MatchmakerTraitInfo.GetTrait]" - datacontext = "[MatchmakerTraitInfo.GetCharacter]" - - icon_trait = { - blockoverride "actual_description_text" - { - text = "TRAIT_ENTRY_INHERITANCE_INFO" - } - - highlight_icon = { - name = "guaranteed" - visible = "[And( MatchmakerTraitInfo.IsGuaranteed, Not(MatchmakerTraitInfo.CanUpgrade) )]" - position = { 27 28 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 25 25 } - } - - highlight_icon = { - name = "upgrade" - visible = "[MatchmakerTraitInfo.CanUpgrade]" - texture = "gfx/interface/icons/symbols/icon_arrow_green_down.dds" - mirror = vertical - position = { 29 24 } - size = { 25 25 } - } - } - } - } - } - } - } - - - divider_light = { - layoutpolicy_horizontal = expanding - } - - - vbox = { - visible = "[MarriageInfo.HasAlliances]" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - - text_label_center = { - name = alliances_label - text = "[alliances|E]" - } - - vbox = { - name = "alliance_grid" - datamodel = "[MarriageInfo.GetAllianceItems]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - layoutpolicy_horizontal = expanding - portrait_head_small = { - datacontext = "[AllianceInfo.GetCharacter]" - name = "ally_portrait" - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - strength_balance = { - datacontext = "[AllianceInfo.GetMilitaryInfo]" - blockoverride "StrengthBalanceAllies" {} - } - - expand = {} - } - } - } - } - - text_single = { - visible = "[Not(MarriageInfo.HasAlliances)]" - - text = "MATCH_OFFER_NO_ALLIANCES" - default_format = "#weak" - align = nobaseline - margin = {8 8} - } - - vbox = { - visible = "[MarriageInfo.HasHouseRelationChange]" - - text_label_center = { - name = "house_relation_change" - text = "MARRIAGE_IMPACT_ON_HOUSE_RELATION" - } - } - - block "marriage_details_after" - { - - } - - - - expand = {} - } - - type vbox_concubine_interaction_details = vbox { - margin = { 15 15 } - - background = { - using = Background_Area - } - - text_multi = { - name = "children_house_info" - layoutpolicy_horizontal = expanding - max_width = 510 - autoresize = yes - text = "[MatchOffer.GetChanceOfChildrenDesc]" - tooltip = "[MatchOffer.GetChanceOfChildrenTooltip]" - } - - text_multi = { - name = "children_chance_info" - visible = "[Not( MatchOffer.IsSameSex )]" - layoutpolicy_horizontal = expanding - max_width = 510 - autoresize = yes - text = "CONCUBINE_CHILDREN_HOUSE" - } - - ### Traits - vbox = { - margin = { 5 10 } - spacing = 5 - visible = "[Not( MatchOffer.IsSameSex )]" - - text_label_center = { - name = "traits_header" - visible = "[MatchOffer.HasInheritableTraits]" - # layoutpolicy_horizontal = expanding - text = "INHERITABLE_TRAITS" - } - - text_single = { - name = "no_traits" - visible = "[Not(MatchOffer.HasInheritableTraits)]" - text = "NO_INHERITABLE_TRAITS" - default_format = "#low;italic" - } - - hbox = { - name = "traits" - datamodel = "[MatchOffer.GetInheritableTraitItems]" - visible = "[Not(IsDataModelEmpty(MatchOffer.GetInheritableTraitItems))]" - - item = { - container = { - datacontext = "[MatchmakerTraitInfo.GetTrait]" - datacontext = "[MatchmakerTraitInfo.GetCharacter]" - - icon_trait = { - blockoverride "actual_description_text" - { - text = "TRAIT_ENTRY_INHERITANCE_INFO" - } - - highlight_icon = { - name = "guaranteed" - visible = "[And( MatchmakerTraitInfo.IsGuaranteed, Not(MatchmakerTraitInfo.CanUpgrade) )]" - position = { 28 30 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 25 25 } - } - - highlight_icon = { - name = "upgrade" - visible = "[MatchmakerTraitInfo.CanUpgrade]" - texture = "gfx/interface/icons/symbols/icon_arrow_green_down.dds" - mirror = vertical - position = { 5 28 } - size = { 25 25 } - } - } - } - } - } - - text_single = { - name = "inbreeding_risk" - visible = "[MatchOffer.HasInbreedingRisk]" - max_width = 510 - text = "MATCH_OFFER_INBREEDING_WARNING" - default_format = "#low" - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - expand = {} - } - - type vbox_list_interaction_title_selection = vbox { - name = "titles_grid" - datamodel = "[CharacterInteractionConfirmationWindow.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - widget = { - name = "title_list_item" - layoutpolicy_horizontal = expanding - size = { 0 45 } - - button_standard = { - name = "title_button" - datacontext = "[InteractionTitleItem.GetTitle]" - parentanchor = right - size = "[InteractionTitleItem.GetSize]" - - onclick = "[InteractionTitleItem.OnClick]" - onrightclick = "[InteractionTitleItem.OnRightClick]" - button_ignore = none - down = "[InteractionTitleItem.IsSelected]" - enabled = "[InteractionTitleItem.IsSelectable]" - - tooltip = "[InteractionTitleItem.GetTooltip]" - using = tooltip_es - - - block "button_toggles" { - enabled = "[InteractionTitleItem.IsSelectable]" - } - - hbox = { - margin_left = 5 - margin_right = 5 - spacing = 5 - - coa_title_tiny_crown = {} - - text_single = { - name = "text" - layoutpolicy_horizontal = expanding - text = "[InteractionTitleItem.GetTitle.GetNameNoTooltip|U]" - } - - icon = { - name = "pressed_claim" - visible = "[GetPlayer.HasPressedClaimOnTitle( Title.Self )]" - size = { 24 24 } - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - tooltip = "REVOKE_TITLE_PRESSED_CLAIM" - } - - icon = { - name = "unpressed_claim" - visible = "[And(GetPlayer.HasClaimOnTitle( Title.Self ), Not(GetPlayer.HasPressedClaimOnTitle( Title.Self )))]" - size = { 24 24 } - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - tooltip = "REVOKE_TITLE_UNPRESSED_CLAIM" - } - - icon = { - name = "leased_out" - visible = "[Title.HasLeasedOutVassal]" - size = { 36 39 } - texture = "gfx/interface/icons/icon_holding_church.dds" - tooltip = "GRANT_TITLE_LEASED_OUT_VASSAL" - } - - block "extra_title_items" {} - } - } - } - } - } - - type vbox_list_interaction_artifact_selection = vbox { - name = "artifacts_grid" - datamodel = "[CharacterInteractionConfirmationWindow.GetArtifacts]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - widget = { - name = "artifact_list_item" - layoutpolicy_horizontal = expanding - size = { 360 80 } - - button_standard = { - name = "artifact_button" - size = { 100% 100% } - - onclick = "[CharacterInteractionConfirmationWindow.SetSelectedArtifact( Artifact.Self )]" - onclick = "[GetVariableSystem.Toggle( 'character_interaction_change_artifact' )]" - down = "[ObjectsEqual( CharacterInteractionConfirmationWindow.GetSelectedArtifact, Artifact.Self )]" - - tooltipwidget = { - artifact_tooltip = {} - } - - hbox = { - - widget = { - size = { 80 80 } - alwaystransparent = yes - - button_artifact = { - size = { 100% 100% } - } - - tooltipwidget = { - artifact_tooltip = {} - } - } - vbox = { - - text_multi = { - name = "type" - layoutpolicy_horizontal = expanding - text = "[Artifact.GetRarityAndSlotType]" - max_width = 250 - autoresize = yes - } - - text_multi = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Artifact.GetNameNoTooltip]" - max_width = 250 - default_format = "#V" - autoresize = yes - } - } - expand = {} - } - - } - } - } - } - - type vbox_list_interaction_maa_selection = vbox { - name = "maa_grid" - datamodel = "[CharacterInteractionConfirmationWindow.GetMaa]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - button_standard = { - size = { 200 50 } - text = "[Regiment.GetName]" - onclick = "[CharacterInteractionConfirmationWindow.SetSelectedMaa( Regiment.Self )]" - onclick = "[GetVariableSystem.Toggle( 'character_interaction_change_maa' )]" - } - } - } - - type vbox_character_interaction_three_characters = vbox { - margin = { 10 10 } - - background = { - texture = "[CharacterInteractionConfirmationWindow.GetTexture]" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - } - - hbox = { - layoutpolicy_horizontal = expanding - - ### Left - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - } - - text_label_center = { - text = "INTERACTION_SENDER" - min_width = 100 - max_width = 170 - } - } - - vbox = { - datacontext = "[CharacterInteractionConfirmationWindow.GetSecondaryRecipient]" - visible = "[CharacterInteractionConfirmationWindow.ShouldShowSecondaryRecipient]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - expand = {} - - portrait_head = {} - - hbox = { - spacing = 5 - - text_label_center = { - visible = "[CharacterInteractionConfirmationWindow.ShouldShowSecondaryRecipient]" - text = "[CharacterInteractionConfirmationWindow.GetRecipientSecondaryLabel]" - max_width = 170 - multiline = yes - } - - change_revert_buttons = { - - blockoverride "size" - { - size = { 32 32 } - } - - blockoverride "size_icon" - { - size = { 24 24 } - } - - blockoverride "ReplaceClick" - { - onclick = [CharacterInteractionConfirmationWindow.OnChangeOrRevertRecipientCharacter] - } - blockoverride "ReplaceVisible" - { - visible = [CharacterInteractionConfirmationWindow.CanChangeRecipientCharacter] - } - blockoverride "RevertClick" - { - onclick = [CharacterInteractionConfirmationWindow.OnChangeOrRevertRecipientCharacter] - } - blockoverride "RevertVisible" - { - visible = [CharacterInteractionConfirmationWindow.CanRevertRecipientCharacter] - } - } - } - } - - ### Right - vbox = { - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[And( Character.IsValid, Not( ObjectsEqual( CharacterInteractionConfirmationWindow.GetActor, CharacterInteractionConfirmationWindow.GetRecipient ) ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - expand = {} - - portrait_shoulders = { - name = "right_background_portrait" - } - - text_label_center = { - visible = "[Not( ObjectsEqual( CharacterInteractionConfirmationWindow.GetActor, CharacterInteractionConfirmationWindow.GetRecipient ) )]" - text = "INTERACTION_RECIPIENT" - min_width = 100 - max_width = 170 - } - } - } - } - - type widget_character_interaction_four_characters = widget { - layoutpolicy_horizontal = expanding - size = { 0 300 } - - block "bg_illustration_datacontext" {} - - # Temp background - background = { - alpha = 0.7 - fittype = centercrop - - using = Mask_Rough_Edges - - block "bg_illustration" - { - texture = "gfx/interface/illustrations/event_scenes/sittingroom.dds" - } - } - - ### LEFT - flowcontainer = { - parentanchor = top|left - position = { 20 20 } - direction = vertical - - block "left_small_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetActor]" - visible = "[Character.IsValid]" - } - - portrait_head = { - name = "left_background_portrait" - tooltip_visible = "[Character.IsValid]" - } - - text_label_center = { - parentanchor = hcenter - text = "INTERACTION_SENDER" - } - } - - widget = { - position = { -110 0 } - parentanchor = bottom|hcenter - - portrait_body = { - name = "left_main_portrait" - resizeparent = yes - - block "left_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetSecondaryActor]" - } - - tooltip_visible = "[Character.IsValid]" - - blockoverride "status_icons" {} - - blockoverride "coa" - { - coa_realm_small_crown = { - position = { -14 -10 } - visible = "[Character.HasLandedTitles]" - parentanchor = bottom - } - } - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_council.dds" - } - - blockoverride "position_portrait_opinion_body" { - position = { 0 -40 } - } - - blockoverride "portrait_glow" {} - - background = { - using = Background_Portrait_Glow - color = { 0.8 0.7 0.5 0.6 } - - block "left_interaction_portrait_glow" - { - visible = "[CharacterInteractionConfirmationWindow.IsPickingSecondaryActor]" - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -13 } - allow_outside = yes - - block "left_character_label" - { - text = "[CharacterInteractionConfirmationWindow.GetActorSecondaryLabel]" - } - - container = { - name = "tutorial_highlight_change_left_character" - parentanchor = vcenter - position = { -50 0 } - - button_round = { - name = "tutorial_highlight_change_left_character" - alwaystransparent = no - tooltip = "CHANGE_CHARACTER" - using = tooltip_below - - using = Animation_ShowHide_Quick - - - block "button_left_change" - { - visible = "[CharacterInteractionConfirmationWindow.CanChangeActorCharacter]" - onclick = "[CharacterInteractionConfirmationWindow.OnChangeOrRevertActorCharacter]" - } - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "revert_left_character" - alwaystransparent = no - tooltip = "CANCEL" - using = tooltip_below - - using = Animation_ShowHide_Quick - - - block "button_left_revert" - { - visible = "[CharacterInteractionConfirmationWindow.CanRevertActorCharacter]" - onclick = "[CharacterInteractionConfirmationWindow.OnChangeOrRevertActorCharacter]" - } - - button_cancel = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - - ### RIGHT - flowcontainer = { - parentanchor = top|right - position = { -20 20 } - direction = vertical - - block "right_small_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetRecipient]" - visible = "[Character.IsValid]" - } - - portrait_head = { - name = "right_background_portrait" - tooltip_visible = "[Character.IsValid]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "status_icons" {} - } - - text_label_center = { - parentanchor = hcenter - text = "INTERACTION_RECIPIENT" - } - } - - widget = { - position = { 110 0 } - parentanchor = bottom|hcenter - - portrait_body = { - name = "right_main_portrait" - tooltip_visible = "[Character.IsValid]" - resizeparent = yes - - block "right_portrait" - { - datacontext = "[CharacterInteractionConfirmationWindow.GetSecondaryRecipient]" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "status_icons" {} - - blockoverride "coa" { - coa_realm_small_crown = { - position = { 14 -10 } - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|right - } - } - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_council.dds" - } - - blockoverride "position_portrait_opinion_body" { - position = { 0 -40 } - } - - blockoverride "portrait_glow" {} - - background = { - using = Background_Portrait_Glow - color = { 0.8 0.7 0.5 0.6 } - - block "right_interaction_portrait_glow" - { - visible = "[CharacterInteractionConfirmationWindow.IsPickingSecondaryRecipient]" - } - } - - blockoverride "glow_flip" { - mirror = horizontal - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -13 } - allow_outside = yes - - block "right_character_label" - { - text = "INTERACTION_RECIPIENT" - } - - container = { - name = "tutorial_highlight_change_right_character" - parentanchor = right|vcenter - position = { 50 0 } - - button_round = { - name = "change_right_character" - alwaystransparent = no - tooltip = "CHANGE_CHARACTER" - using = tooltip_below - - using = Animation_ShowHide_Quick - - block "button_right_change" - { - visible = "[CharacterInteractionConfirmationWindow.CanChangeRecipientCharacter]" - onclick = "[CharacterInteractionConfirmationWindow.OnChangeOrRevertRecipientCharacter]" - } - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "revert_right_character" - alwaystransparent = no - tooltip = "CANCEL" - using = tooltip_below - - using = Animation_ShowHide_Quick - - - block "button_right_revert" - { - visible = "[CharacterInteractionConfirmationWindow.CanRevertActorCharacter]" - onclick = "[CharacterInteractionConfirmationWindow.OnChangeOrRevertActorCharacter]" - } - - button_cancel = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - - ### CLEAR BUTTON - container = { - position = { 0 -6 } - parentanchor = bottom|hcenter - - button_round = { - name = "clear_marry_off_character" - alwaystransparent = no - tooltip = "CLEAR_MARRIED_CHARACTER" - using = tooltip_below - - block "button_clear" - { - visible = "[CharacterInteractionConfirmationWindow.CanChangeActorCharacter]" - enabled = "[CharacterInteractionConfirmationWindow.CanClear]" - onclick = "[CharacterInteractionConfirmationWindow.OnClear]" - } - - button_clear = { - alwaystransparent = yes - parentanchor = center - } - } - } - } - - type vbox_character_interaction_effects_contents = vbox { - name = "affected_characters_accept" - layoutpolicy_horizontal = expanding - spacing = 5 - - datacontext = "[InteractionEffectsDescription.GetDisplayedEffects]" - - # Duplicate recipient if it's player - player info should go first - vbox_character_interaction_effects_me = { - datacontext = "[InteractionEffectsDescription.GetRecipient]" - visible = "[And( Character.IsLocalPlayer, DisplayedInteractionEffects.HasRecipientEffects )]" - layoutpolicy_horizontal = expanding - - blockoverride "EffectFromIntermediaryText" { - text = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetRecipientEffect]" - } - - blockoverride "EffectText" { - text = "[DisplayedInteractionEffects.GetMainEffect.GetRecipientEffect]" - } - } - - # Duplicate intermediary if it's player - player info should go first - vbox_character_interaction_effects_me = { - datacontext = "[InteractionEffectsDescription.GetIntermediary]" - visible = "[And( Character.IsLocalPlayer, DisplayedInteractionEffects.HasIntermediaryEffects )]" - layoutpolicy_horizontal = expanding - - blockoverride "EffectFromIntermediaryText" { - text = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetIntermediaryEffect]" - } - - blockoverride "EffectText" { - text = "[DisplayedInteractionEffects.GetMainEffect.GetIntermediaryEffect]" - } - } - - ### Actor - vbox_character_interaction_effects_me = { - datacontext = "[InteractionEffectsDescription.GetActor]" - visible = "[DisplayedInteractionEffects.HasActorEffects]" - layoutpolicy_horizontal = expanding - - blockoverride "EffectFromIntermediaryText" { - text = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetActorEffect]" - } - - blockoverride "EffectText" { - text = "[DisplayedInteractionEffects.GetMainEffect.GetActorEffect]" - } - } - - ### Intermediary - vbox_character_interaction_effects_other = { - datacontext = "[InteractionEffectsDescription.GetIntermediary]" - visible = "[And( Not( Character.IsLocalPlayer ), DisplayedInteractionEffects.HasIntermediaryEffects )]" - layoutpolicy_horizontal = expanding - - blockoverride "EffectFromIntermediaryText" { - text = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetIntermediaryEffect]" - } - - blockoverride "EffectText" { - text = "[DisplayedInteractionEffects.GetMainEffect.GetIntermediaryEffect]" - } - } - - ### Recipient - vbox_character_interaction_effects_other = { - datacontext = "[InteractionEffectsDescription.GetRecipient]" - visible = "[And( Not( Character.IsLocalPlayer ), DisplayedInteractionEffects.HasRecipientEffects )]" - layoutpolicy_horizontal = expanding - - blockoverride "EffectFromIntermediaryText" { - text = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetRecipientEffect]" - } - - blockoverride "EffectText" { - text = "[DisplayedInteractionEffects.GetMainEffect.GetRecipientEffect]" - } - } - - ### Others - vbox_character_interaction_other_effects = { - datamodel = "[DisplayedInteractionEffects.GetEffectFromIntermediary.GetOtherEffects]" - layoutpolicy_horizontal = expanding - } - - ### Others - vbox_character_interaction_other_effects = { - datamodel = "[DisplayedInteractionEffects.GetMainEffect.GetOtherEffects]" - layoutpolicy_horizontal = expanding - } - } - - # All the interaction effects on you and on other character - type vbox_character_interaction_effects = vbox { - name = "effects" - spacing = 10 - - hbox = { - name = "interaction_effects_tabs" - visible = "[And(InteractionEffectsDescription.IsMaybeAnswer,InteractionEffectsDescription.HasRejectionEffect)]" - layoutpolicy_horizontal = expanding - - button_tab = { - name = "show_accept_effects" - layoutpolicy_horizontal = expanding - text = "INTERACTION_SHOW_ACCEPT_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowOnAcceptEffect]" - down = "[InteractionEffectsDescription.IsShowingOnAcceptEffects]" - tooltip = "INTERACTION_SHOW_ACCEPT_EFFECTS_TT" - using = tooltip_ne - } - - button_tab = { - name = "show_intermediary_decline_effects" - layoutpolicy_horizontal = expanding - visible = "[InteractionEffectsDescription.IsIntermediaryVisible]" - text = "INTERACTION_SHOW_INTERMEDIARY_DECLINE_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowIntermediaryDeclineEffect]" - down = "[InteractionEffectsDescription.IsShowingIntermediaryDeclineEffect]" - tooltip = "INTERACTION_SHOW_INTERMEDIARY_DECLINE_EFFECTS_TT" - using = tooltip_ne - } - - button_tab = { - name = "show_decline_effects" - layoutpolicy_horizontal = expanding - text = "INTERACTION_SHOW_DECLINE_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowRecipientDeclineEffect]" - down = "[InteractionEffectsDescription.IsShowingRecipientDeclineEffect]" - tooltip = "INTERACTION_SHOW_DECLINE_EFFECTS_TT" - using = tooltip_ne - } - } - - scrollbox_character_interaction_effects_wrapper = {} - - } - - type scrollbox_character_interaction_effects_wrapper = container { - datacontext = "[InteractionEffectsDescription.GetDisplayedEffects]" - visible = "[DisplayedInteractionEffects.HasAnyEffects]" - - scrollbox = { - name = "effects_scrollarea" - autoresizescrollarea = yes - scissor = yes - - block "maximumsize" { - maximumsize = { -1 320 } - } - - blockoverride "scrollbox_content" - { - set_parent_size_to_minimum = yes - - block "minimumsize" { - minimumsize = { 676 160 } - } - - vbox_character_interaction_effects_contents = {} - } - } - } - - # All the interaction effects on you and on other character, simpler version without portraits - type vbox_character_interaction_effects_simple = vbox { - name = "effects" - spacing = 10 - - hbox = { - block "visibility" - { - visible = "[And(InteractionEffectsDescription.IsMaybeAnswer,InteractionEffectsDescription.HasRejectionEffect)]" - } - layoutpolicy_horizontal = expanding - - button_tab = { - name = "show_accept_effects" - layoutpolicy_horizontal = expanding - text = "INTERACTION_SHOW_ACCEPT_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowOnAcceptEffect]" - down = "[InteractionEffectsDescription.IsShowingOnAcceptEffects]" - tooltip = "INTERACTION_SHOW_ACCEPT_EFFECTS_TT" - using = tooltip_ne - } - - button_tab = { - name = "show_intermediary_decline_effects" - layoutpolicy_horizontal = expanding - visible = "[InteractionEffectsDescription.IsIntermediaryVisible]" - text = "INTERACTION_SHOW_INTERMEDIARY_DECLINE_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowIntermediaryDeclineEffect]" - down = "[InteractionEffectsDescription.IsShowingIntermediaryDeclineEffect]" - tooltip = "INTERACTION_SHOW_INTERMEDIARY_DECLINE_EFFECTS_TT" - using = tooltip_ne - } - - button_tab = { - name = "show_decline_effects" - layoutpolicy_horizontal = expanding - text = "INTERACTION_SHOW_DECLINE_EFFECTS" - onclick = "[InteractionEffectsDescription.ShowRecipientDeclineEffect]" - down = "[InteractionEffectsDescription.IsShowingRecipientDeclineEffect]" - tooltip = "INTERACTION_SHOW_DECLINE_EFFECTS_TT" - using = tooltip_ne - } - } - - scrollbox = { - name = "effects_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 170 } - - blockoverride "scrollbox_content" - { - margin = { 0 10 } - - text_multi = { - visible = "[InteractionEffectsDescription.IsShowingOnAcceptEffects]" - name = "accept_effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 400 - margin = { 5 0 } - text = "[InteractionEffectsDescription.GetAcceptEffectDescription]" - } - - text_multi = { - visible = "[InteractionEffectsDescription.IsShowingIntermediaryDeclineEffect]" - name = "intermediary_decline_effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 400 - margin = { 5 0 } - text = "[InteractionEffectsDescription.GetIntermediaryRejectionEffectDescription]" - } - - text_multi = { - visible = "[InteractionEffectsDescription.IsShowingRecipientDeclineEffect]" - name = "decline_effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 400 - margin = { 5 0 } - text = "[InteractionEffectsDescription.GetRejectionEffectDescription]" - } - - block "extra_content" {} - } - - } - } - - # Interaction effects on me - type vbox_character_interaction_effects_me = vbox { - name = "me" - margin_bottom = 5 - - background = { - using = Background_Area_With_Header - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_left = 5 - - vbox = { - layoutpolicy_vertical = expanding - - portrait_head = { - blockoverride "opinion_box" {} - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 5 0 } - spacing = 5 - - text_single = { - text = "EFFECTS_ON_ME" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - } - - text_multi = { - name = "intermediary_effects_info" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 450 - block "EffectFromIntermediaryText" { - text = "" - } - } - - text_multi = { - name = "effects_info" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 450 - block "EffectText" {} - } - - expand = {} - } - - expand = {} - } - } - - # Interaction effects on the other character - type vbox_character_interaction_effects_other = vbox { - name = "recipient" - margin_bottom = 5 - - background = { - using = Background_Area_With_Header - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_vertical = expanding - margin = { 15 0 } - spacing = 5 - - text_single = { - text = "EFFECTS_ON_ME" - layoutpolicy_horizontal = expanding - margin = { 0 4 } - max_width = 440 - } - - text_multi = { - name = "intermediary_effects_info" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 440 - block "EffectFromIntermediaryText" { - text = "" - } - } - - text_multi = { - name = "effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 440 - block "EffectText" {} - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - portrait_head = { - blockoverride "opinion_box" {} - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - expand = {} - } - } - } - - # Interaction effects on third party characters - type vbox_character_interaction_other_effects = vbox { - name = "other_effects" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 5 - - portrait_head = { - name = "portrait" - datacontext = "[InteractionOtherEffect.GetCharacter]" - visible = "[InteractionOtherEffect.HasCharacter]" - } - - container = { - ignoreinvisible = yes - icon = { - position = { 16 0 } - size = { 50 50 } - texture = "gfx/interface/icons/icon_group_of_characters.dds" - visible = "[InteractionOtherEffect.IsList]" - tooltip = "[InteractionOtherEffect.GetListTooltip]" - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 450 - text = "[InteractionOtherEffect.GetEffect]" - align = left|vcenter - } - - expand = {} - } - } - } - - type hbox_character_interaction_acceptance = hbox { - name = "acceptance" - visible = "[CharacterInteractionConfirmationWindow.ShouldShowAnswer]" - - widget = { - name = "answer_chance" - size = { 330 46 } - tooltip = "[CharacterInteractionConfirmationWindow.GetAnswerReason]" - - background = { - using = Background_Area_Dark - } - - hbox = { - visible = "[CharacterInteractionConfirmationWindow.IsForcedToAccept]" - parentanchor = center - layoutpolicy_horizontal = expanding - - maximumsize = { 330 46 } - margin = { 16 0 } - spacing = 4 - - expand = {} - - icon = { - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 30 30 } - visible = "[CharacterInteractionConfirmationWindow.IsAnswerPositive]" - } - - text_single = { - name = "answer" - text = "ANSWER_REASON_AUTO_ACCEPT" - default_format = "#color_green" - using = Font_Size_Medium - align = nobaseline - } - - expand = {} - } - - hbox = { - visible = "[Not( CharacterInteractionConfirmationWindow.IsForcedToAccept )]" - parentanchor = center - layoutpolicy_horizontal = expanding - maximumsize = { 330 46 } - margin = { 16 0 } - spacing = 4 - - expand = {} - - icon = { - texture = "gfx/interface/icons/symbols/icon_cross.dds" - size = { 30 30 } - visible = "[Not( CharacterInteractionConfirmationWindow.IsAnswerPositive )]" - } - - icon = { - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 30 30 } - visible = "[CharacterInteractionConfirmationWindow.IsAnswerPositive]" - } - - text_single = { - name = "answer" - text = "[CharacterInteractionConfirmationWindow.GetAnswer]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - - text_single = { - name = "answer_score" - visible = "[And( Not( CharacterInteractionConfirmationWindow.IsAiMaybe ), Not( CharacterInteractionConfirmationWindow.GetRecipient.IsPlayer ) )]" - - text = "INTERACTION_ACCEPTANCE_SCORE" - using = Font_Size_Medium - align = nobaseline - } - - text_single = { - name = "answer_chance" - visible = "[And( And( CharacterInteractionConfirmationWindow.IsAiMaybe, Not( CharacterInteractionConfirmationWindow.GetRecipient.IsPlayer ) ), Or( Not( CharacterInteractionConfirmationWindow.IsAiAcceptNegotiation ), GreaterThan_int32( CharacterInteractionConfirmationWindow.GetAnswerScore, '(int32)0' ) ) )]" - - text = "INTERACTION_ACCEPTANCE_CHANCE" - using = Font_Size_Medium - align = nobaseline - } - - expand = {} - } - - progressbar_standard = { - position = { 0 3 } - size = { 324 10 } - parentanchor = bottom|hcenter - visible = "[And( And( CharacterInteractionConfirmationWindow.IsAiMaybe, Not( CharacterInteractionConfirmationWindow.GetRecipient.IsPlayer ) ), Or( Not( CharacterInteractionConfirmationWindow.IsAiAcceptNegotiation ), GreaterThan_int32( CharacterInteractionConfirmationWindow.GetAnswerScore, '(int32)0' ) ) )]" - value = "[CharacterInteractionConfirmationWindow.GetAnswerProgress]" - } - } - } - - type text_multi_on_decline_summary = text_multi { - autoresize = yes - max_width = 500 - visible = "[CharacterInteractionConfirmationWindow.HasOnDeclineSummary]" - text = "[CharacterInteractionConfirmationWindow.GetOnDeclineSummary]" - } - - # Options to consider before accepting and interaction - type vbox_interaction_options = vbox { - name = "options_grid" - visible = "[CharacterInteractionConfirmationWindow.HasOptions]" - spacing = 5 - - block "margin" - { - margin_top = 10 - } - - text_label_center = { - visible = "[Not( StringIsEmpty(CharacterInteractionConfirmationWindow.GetOptionsHeading) )]" - layoutpolicy_horizontal = expanding - text = "[CharacterInteractionConfirmationWindow.GetOptionsHeading]" - align = center - } - - vbox = { - name = "multiple_selection_options" - visible = "[And(Not( CharacterInteractionConfirmationWindow.HasExclusiveOptions ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_info').GetValue, '(CFixedPoint)0' ) ))]" - layoutpolicy_horizontal = expanding - datamodel = "[CharacterInteractionConfirmationWindow.GetOptionItems]" - - item = { - widget = { - visible = "[OptionItem.IsShown]" - layoutpolicy_horizontal = expanding - size = { 480 40 } - - background = { - using = Background_Area_Border - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 0 } - spacing = 10 - - tooltip = "[OptionItem.GetTooltip]" - using = tooltip_below - - background = { - visible = "[OptionItem.HasFlag( 'grand_wedding_promise' )]" - - margin_right = 40 - margin_left = -2 - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - margin_top = -2 - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_01.dds" - spriteType = corneredtiled - blend_mode = alphamultiply - texture_density = 0.76 - } - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = normal - framesize = { 96 96 } - frame = 7 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - button_checkbox = { - size = { 30 30 } - checked = "[OptionItem.HasOption]" - onclick = "[OptionItem.OnClick]" - enabled = "[And(OptionItem.IsValid, OptionItem.CanBeChanged)]" - - block "checkbox_on_click" {} - } - - text_single = { - text = "[OptionItem.GetName]" - align = nobaseline - } - - icon = { - visible = "[OptionItem.HasFlag( 'grand_wedding_promise' )]" - size = { 30 30 } - texture = "gfx/interface/icons/activities/activity_wedding.dds" - } - - expand = {} - } - } - } - } - - vbox = { - name = "exclusive_options" - layoutpolicy_horizontal = expanding - visible = "[CharacterInteractionConfirmationWindow.HasExclusiveOptions]" - datamodel = "[CharacterInteractionConfirmationWindow.GetOptionItems]" - - item = { - widget = { - visible = "[OptionItem.IsShown]" - layoutpolicy_horizontal = expanding - size = { 480 40 } - - background = { - using = Background_Area_Border - } - - hbox = { - margin = { 15 0 } - spacing = 10 - - tooltip = "[OptionItem.GetTooltip]" - using = tooltip_below - - button_radio = { - size = { 30 30 } - frame = "[BoolTo1And2( OptionItem.HasOption )]" - onclick = "[OptionItem.OnClick]" - enabled = "[And(OptionItem.IsValid, And(OptionItem.CanBeChanged, Not(OptionItem.HasOption)))]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[OptionItem.GetName]" - align = nobaseline - fontsize_min = 10 - max_width = 420 - } - } - } - } - } - } - - type vbox_scheme_info = vbox { - name = "scheme_info" - layoutpolicy_vertical = expanding - - widget = { - name = "on_success" - datacontext = "[InteractionSchemeInfo.GetScheme]" - visible = "[InteractionSchemeInfo.HasSuccessDesc]" - size = { 676 200 } - - background = { - visible = "[InteractionSchemeInfo.HasDiscoveryDesc]" - texture = "[SchemeType.GetIllustration]" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - margin_top = 30 - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_header_mask.dds" - blend_mode = alphaMultiply - } - } - - background = { - visible = "[Not( InteractionSchemeInfo.HasDiscoveryDesc )]" - texture = "gfx/interface/illustrations/event_scenes/bedchamber.dds" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - margin_top = 30 - - modify_texture = { - texture = "gfx/interface/window_scheme/scheme_header_mask.dds" - blend_mode = alphaMultiply - } - } - - widget = { - parentanchor = center - size = { 264 200 } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - - widget = { - size = { 264 110 } - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[CharacterInteractionConfirmationWindow.AccessSchemeInfo.GetOddsPredictionBreakdown]" - } - } - - icon = { - parentanchor = center - size = { 264 110 } - texture = "gfx/interface/window_scheme/scheme_success_bg.dds" - } - - icon = { - name = "success_icon" - parentanchor = top|hcenter - position = { 0 5 } - size = { 44 44 } - framesize = { 70 70 } - frame = "[GetSchemeOddsLevelFrameFromValue(InteractionSchemeInfo.GetOddsPredictionValue)]" - texture = "gfx/interface/icons/schemes/icon_scheme_odds.dds" - } - - vbox = { - margin_top = 25 - - text_multi = { - name = "scheme_success_chance_message" - layoutpolicy_horizontal = expanding - - text = "SCHEME_PREDICTION_SUCCESS_CHANCE" - align = center|nobaseline - autoresize = yes - max_width = 250 - } - } - - text_single = { - name = "odds value" - visible = "[InDebugMode]" - text = "SCHEME_PREDICTION_VALUE_DEBUG" - } - } - - expand = {} - - hbox = { - name = "phases" - spacing = 5 - - background = { - using = Background_Area - - margin = { 0 5 } - margin_right = 20 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - icon = { - name = "scheme_speed_icon" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - } - - text_single = { - name = "scheme_speed" - text = "SCHEME_PREDICTION_SPEED" - align = nobaseline - using = Font_Size_Medium - } - } - - hbox = { - name = "on_discovery" - visible = "[InteractionSchemeInfo.HasDiscoveryDesc]" - - background = { - using = Background_Area - - margin = { 0 5 } - margin_right = 20 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - hbox = { - visible = "[InteractionSchemeInfo.IsSecret]" - spacing = 5 - - tooltip = "SCHEME_PREDICTION_SECRECY_TT" - - icon = { - name = "secrecy_icon" - size = { 32 32 } - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - } - - text_single = { - name = "secrecy_label" - text = "SCHEME_WINDOW_SECRECY_LABEL" - align = nobaseline - using = Font_Size_Medium - } - - text_single = { - name = "secrecy" - text = "[InteractionSchemeInfo.GetSecrecy|%/V1]" - align = nobaseline - using = Font_Size_Medium - } - } - } - - expand = {} - } - } - - # Player - widget = { - name = "player" - parentanchor = left|bottom - size = { 180 200 } - position = { 20 0 } - - portrait_torso = { - datacontext = "[GetPlayer]" - parentanchor = center - using = tooltip_es - - blockoverride "portrait_texture" { - portrait_texture = "[Character.GetAnimatedPortrait('environment_torso', 'camera_torso_scheme_player', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "portrait_mask" - { - mask = "gfx/portraits/portrait_mask_council.dds" - } - - blockoverride "coa" { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -20 -5 } - } - } - - blockoverride "portrait_status_icons" { - portrait_status_icons = { - parentanchor = bottom|right - position = { 0 -10 } - } - } - } - } - - # Target - widget = { - name = "target" - parentanchor = right|bottom - size = { 180 200 } - position = { -20 0 } - - portrait_torso = { - datacontext = "[InteractionSchemeInfo.GetTarget]" - parentanchor = center - using = tooltip_es - - blockoverride "portrait_texture" { - portrait_texture = "[Character.GetAnimatedPortrait('environment_torso', 'camera_torso_scheme_target', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "portrait_mask" - { - mask = "gfx/portraits/portrait_mask_council.dds" - } - - blockoverride "coa" { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|right - position = { 20 -5 } - } - } - - blockoverride "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 0 -8 } - } - } - - blockoverride "portrait_status_icons" { - portrait_status_icons = { - parentanchor = bottom|left - position = { 0 -10 } - } - } - } - } - } - } - - type scheme_header_widget = widget { - name = "interaction_window_heading_scheme" - widgetid = "interaction_window_heading_scheme" - datacontext = "[CharacterInteractionConfirmationWindow.GetSchemeInfo]" - datacontext = "[InteractionSchemeInfo.GetScheme]" - size = { 676 90 } - - # Stained glass header - icon = { - parentanchor = center - size = { 676 90 } - texture = "gfx/interface/window_scheme/scheme_header.dds" - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - # Stained glass header theme - Hostile - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = left - position = { -1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 2 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 9 - - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - - icon = { - visible = "[SchemeType.IsHostile]" - parentanchor = right - position = { 1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_hostile.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 6 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 2 - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - } - - # Stained glass header theme - Personal - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = left - position = { -1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 2 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 9 - - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - - icon = { - visible = "[SchemeType.IsPersonal]" - parentanchor = right - position = { 1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_personal.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 6 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - } - - # Stained glass header theme - Political - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = left - position = { -1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 2 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 9 - - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - - icon = { - visible = "[SchemeType.IsPolitical]" - parentanchor = right - position = { 1 8 } - size = { 128 43 } - texture = "gfx/interface/window_scheme/scheme_header_theme_political.dds" - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - # Shimmer animation - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 2 - delay = 6 - bezier = { .8 .18 .96 .05 } - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - } - } - - buttons_window_control = { - parentanchor = top|right - position = { 0 6 } - - background = { - using = Background_Area_ExtraDark - margin = { -5 -5 } - } - } - - widget = { - name = "scheme_header_text" - parentanchor = top|hcenter - position = { 0 11 } - size = { 676 38 } - - text_single = { - parentanchor = hcenter|vcenter - text = "SCHEME_PREDICTION_NAME" - default_format = "#high;glow_color:{0,0,0,1}" - using = Font_Size_Big - using = Font_Type_Flavor - align = nobaseline - max_width = 400 - - background = { - using = Background_Area_Dark - margin = { 70 6 } - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - } - } - - header_text = { - name = "header_text" - parentanchor = bottom|hcenter - position = { 0 -15 } - default_format = "#high;glow_color:{0,0,0,1}" - using = Font_Size_Medium - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 40 6 } - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - } - } - - ######################################## - type change_revert_buttons = vbox { - button_round = { - name = "change" - alwaystransparent = no - - tooltip = "CHANGE_CHARACTER" - using = tooltip_below - - block "size" {} - - block "ReplaceVisible" - { - visible = yes - } - - button_replace = { - parentanchor = center - - block "size_icon" {} - - block "ReplaceClick" - { - onclick = [CharacterInteractionConfirmationWindow.OnChangeOrRevertActorCharacter] - } - } - } - - button_round = { - name = "revert" - alwaystransparent = no - tooltip = "CANCEL" - using = tooltip_below - - block "size" {} - - button_cancel = { - parentanchor = center - - block "size_icon" {} - - block "RevertClick" - { - # onclick = ? - } - } - - block "RevertVisible" - { - visible = yes - } - } - } - - type dynamicgridbox_interaction_list = dynamicgridbox { - name = "interaction_list" - - item = { - container = { - name = "interaction_widget" - ignoreinvisible = yes - - button = { - visible = "[Not(InteractionItem.IsMarriageSetting)]" - tooltip = "[InteractionItem.GetTooltip]" - size = { 317 30 } - - icon = { - name = "interaction_glow" - visible = "[InteractionItem.IsHighlighted]" - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - color = { 1 0.8 0.6 0.8 } - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 0.4 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.1 - } - } - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('button_favorite').TriggerAnimation('hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('button_favorite').TriggerAnimation('hover_leave')]" - } - - - # To get a hover glow for the entire row - button_standard_hover = { - visible = "[InteractionItem.IsValid]" - size = { 100% 100% } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 8 0 } - - button = { - name = "interaction_button" - - enabled = "[InteractionItem.IsValid]" - onclick = "[InteractionItem.OnClick]" - - layoutpolicy_horizontal = growing - layoutpolicy_vertical = expanding - - hbox = { - spacing = 4 - - icon = { - visible = "[InteractionItem.IsCharacterInteraction]" - name = "interaction_icon" - size = { 30 30 } - texture = "[InteractionItem.GetCharacterInteraction.GetIcon( CharacterInteractionMenuWindow.GetCharacter.Self )]" - } - - spacer = { - name = "no_icon_margin_adjust" - visible = "[Not(InteractionItem.IsCharacterInteraction)]" - size = { 0 0 } - } - - textbox = { - layoutpolicy_horizontal = growing - alwaystransparent = yes - raw_text = "[Select_CString( InteractionItem.IsValid, '#clickable', '#weak' )] [InteractionItem.GetName]" - align = nobaseline - elide = right - } - } - } - - button_star_frames = { - name = "button_favorite" - visible = "[InteractionItem.IsCharacterInteraction]" - - size = { 0 @interaction_item_column_width } - - onclick = "[InteractionItem.ToggleFavorite]" - down = "[InteractionItem.IsFavorite]" - inherit_visual_state = no - - alpha = 0 - - #tooltip = "CHARACTER_INTERACTION_TOGGLE_FAVORITE" # Interferes with instant tooltips too much - - state = { - name = hover_enter - alpha = 1 - duration = 0.1 - using = Animation_Curve_Default - size = { @interaction_item_column_width @interaction_item_column_width } - } - - state = { - name = hover_leave - alpha = 0 - duration = 0.2 - using = Animation_Curve_Default - size = { 0 @interaction_item_column_width } - } - } - - hbox = { - - enabled = "[InteractionItem.IsValid]" - - #wrap in button widget to make all align nicely on regular intervals, regardless of actual icon sizes - - button = { - onclick = "[InteractionItem.OnClick]" - - size = { @interaction_item_column_width @interaction_item_column_width } - - visible = "[InteractionItem.GetSchemeType.IsValid]" - datacontext = "[InteractionItem.GetSchemeType]" - - widget = { - name = "scheme_category_icon" - parentanchor = center - size = { 30 30 } - - icon = { - visible = "[SchemeType.IsPersonal]" - size = {100% 100%} - texture = "gfx/interface/icons/scheme_types/icon_scheme_personal.dds" - } - - icon = { - visible = "[SchemeType.IsPolitical]" - size = {100% 100%} - texture = "gfx/interface/icons/scheme_types/icon_scheme_political.dds" - } - - icon = { - visible = "[SchemeType.IsHostile]" - size = {100% 100%} - texture = "gfx/interface/icons/scheme_types/icon_scheme_hostile.dds" - } - } - - widget = { - name = "odds_icon" - visible = "[InteractionItem.HasPreviewSchemeOdds]" - - parentanchor = bottom|right - - size = { 20 20 } - - icon = { - size = {120% 120%} - texture = "gfx/interface/colors/black.dds" - parentanchor = center - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphaMultiply - } - } - - icon = { - parentanchor = center - size = {100% 100%} - framesize = { 26 26 } - frame = "[GetSchemeOddsLevelFrameFromValue(InteractionItem.GetPreviewSchemeOdds)]" - texture = "gfx/interface/icons/change_indicator_icons_colored_up_good.dds" - } - } - } - - - button = { - onclick = "[InteractionItem.OnClick]" - - visible = "[InteractionItem.ShouldUseExtraIcon]" - size = { @interaction_item_column_width @interaction_item_column_width } - - icon = { - size = { 25 25 } - name = "extra_icon" - texture = "[InteractionItem.GetExtraIcon]" - parentanchor = center - } - } - - button = { - onclick = "[InteractionItem.OnClick]" - - visible = "[And(Not(InteractionItem.IsMore),Not(InteractionItem.IsPotentialAccept))]" - size = { @interaction_item_column_width @interaction_item_column_width } - - icon = { - enabled = "[InteractionItem.IsValid]" - size = { @interaction_item_column_width @interaction_item_column_width } - - name = "dont_accept" - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - - button = { - onclick = "[InteractionItem.OnClick]" - - visible = "[InteractionItem.HasWarningIcon]" - tooltip = "[InteractionItem.GetWarningTooltipDesc]" - size = { @interaction_item_column_width @interaction_item_column_width } - - warning_icon = { - name = "warning_icon" - size = { 25 25 } - - parentanchor = center - } - } - } - } - } - - button_standard_hover = { - visible = "[InteractionItem.IsMarriageSetting]" - tooltip = "[InteractionItem.GetCheckboxTooltip]" - onclick = "[InteractionItem.OnClickCheckbox]" - size = { 317 30 } - - hbox = { - margin_left = 12 - - button_checkbox_label = { - alwaystransparent = yes - name = "button" - - enabled = "[InteractionItem.CheckboxEnabled]" - blockoverride "checkbox_label_spacing" - { - spacing = 10 - } - - blockoverride "checkbox" - { - alwaystransparent = yes - size = { 20 20 } - checked = "[EqualTo_int32(InteractionItem.GetCheckboxFrame, '(int32)2')]" - } - blockoverride "text" - { - text = "CHARACTER_INTERACTION_ALLOWED_TO_MARRY" - } - } - expand = {} - } - } - } - } - } - - type flowcontainer_category_group = flowcontainer { - visible = "[InteractionCategoryItem.IsVisible]" - direction = vertical - - flowcontainer = { - direction = vertical - - background = { - using = Background_Area - alpha = 0.5 - margin_bottom = 6 - } - - widget = { - name = "category_gridbox_container" - size = { 100% 30 } - - text_single = { - name = "category_name" - text = "[InteractionCategoryItem.GetName]" - align = nobaseline - position = { 12 0 } - parentanchor = left|vcenter - default_format = "#weak_glow" - } - - background = { - using = Background_Area_Dark - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - using = GenericObjectCardHeaderBackground - color = "[InteractionCategoryItem.GetCharacterInteractionCategory.GetColor]" - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - container = { - dynamicgridbox_interaction_list = { - datamodel = "[InteractionCategoryItem.GetInteractions]" - } - } - } - } -} - -### CHARACTER LIST -types InteractionCharacterList -{ - type vbox_interaction_character_list = vbox { - name = "character_list" - visible = "[Not(CharacterInteractionConfirmationWindow.HasPickedCharacters)]" - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "select_someone_label" - text = "[CharacterInteractionConfirmationWindow.GetPrompt]" - default_format = "#I" - margin = { 0 5 } - } - } - - ### List - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "special_character" - { - vbox = { - datacontext = "[CharacterInteractionConfirmationWindow.GetTopCharacterItem]" - visible = "[CharacterInteractionConfirmationWindow.HasTopCharacterItem]" - layoutpolicy_horizontal = expanding - margin_left = 15 - margin_right = 20 - - widget_character_list_item = { - layoutpolicy_horizontal = expanding - } - } - } - - blockoverride "button_box" {} - - blockoverride "bottom_right_box" - { - hbox = { - - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - margin_right = 4 - - background = { - using = Background_Area_Light - using = Mask_Rough_Edges - margin = { 12 2 } - margin_right = -2 - } - - # Candidate Score - widget = { - visible = "[CharacterInteractionConfirmationWindow.IsSortedBy( 'candidate_score' )]" - size = { 63 30 } - - text_single = { - text = "[CharacterInteractionConfirmationWindow.GetCandidateScore( CharacterListItem.Self )|V0]" - - parentanchor = right|vcenter - align = nobaseline - - background = { - margin_left = 30 - margin_right = 30 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - - icon = { - parentanchor = vcenter - size = { 30 30 } - texture = "gfx/interface/icons/appointment_score.dds" - } - - tooltipwidget = { - widget_value_breakdown_tooltip = { - block "score_breakdown" { - datacontext = "[CharacterInteractionConfirmationWindow.GetCandidateScoreBreakdown( CharacterListItem.Self )]" - } - blockoverride "header_text" { - text = "CHARACTER_INTERACTION_CANDIDATE_SCORE_TT_HEADING" - } - } - } - } - - # Governor Efficiency - widget = { - visible = "[CharacterInteractionConfirmationWindow.IsSortedBy( 'governor_efficiency' )]" - size = { 65 30 } - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" - - text_single = { - name = "char_governor_efficiency_value" - text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_VALUE" - - parentanchor = right|vcenter - align = nobaseline - - background = { - margin_left = 30 - margin_right = 30 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" - } - } - - # Obedience - widget = { - visible = "[CharacterInteractionConfirmationWindow.IsSortedBy( 'obedience' )]" - size = { 65 30 } - - text_single = { - datacontext = "[Character.GetObedienceBreakdown]" - text = "[ValueBreakdown.GetFixedPointValue]" - default_format = "#value" - - parentanchor = right|vcenter - align = nobaseline - - background = { - margin_left = 30 - margin_right = 30 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - margin = { 5 0 } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/_default_icon_debug.dds" - } - } - - # Acceptance - hbox = { - visible = "[Not( CharacterInteractionConfirmationWindow.IsForcedToAccept )]" - - margin_left = 15 - - ### Will Accept ### - icon = { - visible = "[GreaterThan_CFixedPoint( CharacterInteractionConfirmationWindow.GetAcceptanceValue( CharacterListItem.Self ), '(CFixedPoint)0' )]" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_check.dds" - - value = "[CharacterInteractionConfirmationWindow.GetAnswerScore]" - tooltip = "[CharacterInteractionConfirmationWindow.GetAcceptanceBreakdown( CharacterListItem.Self )]" - } - - ### Will Not Accept ### - icon = { - visible = "[LessThanOrEqualTo_CFixedPoint( CharacterInteractionConfirmationWindow.GetAcceptanceValue( CharacterListItem.Self ), '(CFixedPoint)0' )]" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - value = "[CharacterInteractionConfirmationWindow.GetAnswerScore]" - tooltip = "[CharacterInteractionConfirmationWindow.GetAcceptanceBreakdown( CharacterListItem.Self )]" - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/interaction_transfer_vassal.gui b/N3OW/gui/interaction_transfer_vassal.gui deleted file mode 100644 index 88669ace..00000000 --- a/N3OW/gui/interaction_transfer_vassal.gui +++ /dev/null @@ -1,203 +0,0 @@ -window = { - name = "transfer_vassal_interaction_window" - datacontext = "[TransferVassalWindow.GetCharacterInteractionConfirmationWindow]" - size = { 650 960 } - parentanchor = top|right - position = { -15 65 } - movable = no - allow_outside = yes - - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - minimumsize = { 750 0 } - set_parent_size_to_minimum = yes - - hbox = { - margin_bottom = -10 - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - } - - blockoverride "button_close" - { - onclick = "[TransferVassalWindow.Close]" - } - - icon_character_interaction = {} - } - } - - vbox_character_interaction_three_characters = { - visible = "[And( Not( GetVariableSystem.Exists( 'character_interaction_change_title' ) ), CharacterInteractionConfirmationWindow.ShowThreeCharacters )]" - layoutpolicy_horizontal = expanding - } - - vbox_interaction_character_list = { - datacontext = "[TransferVassalWindow.GetAllianceItems]" - layoutpolicy_horizontal = expanding - minimumsize = { 675 670 } - - blockoverride "filters_visible" - { - visible = no - } - - blockoverride "sort_buttons" - { - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 20 - expand = {} - - icon = { - name = "skill_diplomacy" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - } - - icon = { - name = "skill_martial" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 2 - } - - icon = { - name = "skill_stewardship" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 3 - } - - icon = { - name = "skill_intrigue" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 4 - } - - icon = { - name = "skill_learning" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 5 - } - } - } - - blockoverride "bottom_right_box" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - size = { 30 30 } - visible = "[TransferVassalWindow.IsRightfulLiege( Character.Self )]" - texture = "gfx/interface/icons/icon_liege.dds" - tooltip = "INTERACTION_TRANSFER_VASSAL_RIGHTFUL_LIEGE" - } - - icon = { - name = "faith_button" - size = { 35 35 } - datacontext = "[Character.GetFaith]" - tooltipwidget = { faith_tooltip = {} } - texture = "[Faith.GetIcon]" - } - - hbox = { - datacontext = "[Character.GetCulture]" - spacing = 5 - min_width = 120 - - tooltipwidget = { - culture_tooltip = {} - } - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CULTURE_TRANSF_VASSAL" - autoresize = no - } - } - } - } - } - - vbox_character_interaction_effects = { - visible = "[And( And( Not( GetVariableSystem.Exists( 'character_interaction_change_title' ) ), CharacterInteractionConfirmationWindow.HasPickedCharacters ), InteractionEffectsDescription.GetDisplayedEffects.HasAnyEffects )]" - datacontext = "[CharacterInteractionConfirmationWindow.GetEffectsDescription]" - layoutpolicy_horizontal = expanding - blockoverride "maximumsize" { - maximumsize = { -1 400 } - } - } - - vbox = { - visible = "[CharacterInteractionConfirmationWindow.HasPickedCharacters]" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - margin_bottom = 10 - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - } - - text_multi_on_decline_summary = { - max_width = 650 - } - - vbox_interaction_options = { - layoutpolicy_horizontal = expanding - } - - button_primary = { - name = "send_offer_button" - size = { 400 42 } - enabled = "[CharacterInteractionConfirmationWindow.CanSend]" - onclick = "[TransferVassalWindow.Send]" - - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - tooltip = "[CharacterInteractionConfirmationWindow.GetCanSendDescription]" - default_format = "#high" - using = Font_Size_Medium - } - } - } -} diff --git a/N3OW/gui/jomini/core.gui b/N3OW/gui/jomini/core.gui deleted file mode 100644 index 83e6f101..00000000 --- a/N3OW/gui/jomini/core.gui +++ /dev/null @@ -1,106 +0,0 @@ -template JominiBackground -{ - texture = "gfx/editor_gui/editor_tooltip.dds" - spriteType = Corneredtiled - spriteborder = { 2 2 } - shaderfile = "gfx/FX/pdxgui_default.shader" -} - -template JominiVerticalScrollbar -{ - scrollbar = { - size = { 14 14 } - wheelstep = 60 - direction = vertical - - track = { - using = editor_scrollbar_track - } - - slider = { - using = editor_scrollbar_slider - } - - dec_button = { - button = { - using = editor_scrollbar_button - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - } - } - - inc_button = { - button = { - using = editor_scrollbar_button - upframe = 5 - downframe = 6 - overframe = 7 - disableframe = 8 - } - } - } -} - -template JominiHorizontalScrollbar -{ - scrollbar = { - size = { 14 14 } - wheelstep = 60 - direction = horizontal - - track = { - using = editor_scrollbar_track - } - - slider = { - using = editor_scrollbar_slider - } - - dec_button = { - button = { - using = editor_scrollbar_button - upframe = 9 - downframe = 10 - overframe = 11 - disableframe = 12 - } - } - - inc_button = { - button = { - using = editor_scrollbar_button - upframe = 13 - downframe = 14 - overframe = 15 - disableframe = 16 - } - } - } -} - -template JominiButton -{ - gfxtype = framedbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - fontsize = 16 - - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - texture = "gfx/interface/buttons/button_standard.dds" - framesize = { 120 42 } - spriteType = Corneredtiled - spriteborder = { 40 14 } - - icon = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 40 14 } - parentanchor = center - size = { 100% 100% } - } -} \ No newline at end of file diff --git a/N3OW/gui/jomini/credits/credits_base.gui b/N3OW/gui/jomini/credits/credits_base.gui deleted file mode 100644 index e69de29b..00000000 diff --git a/N3OW/gui/jomini/encyclopedia/jomini_encyclopedia.gui b/N3OW/gui/jomini/encyclopedia/jomini_encyclopedia.gui deleted file mode 100644 index e449d1a5..00000000 --- a/N3OW/gui/jomini/encyclopedia/jomini_encyclopedia.gui +++ /dev/null @@ -1,263 +0,0 @@ -window = { - name = "jomini_encyclopedia" - size = { 100% 100% } - movable = no - layer = top - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Sound_Window_AmbienceMute_Snapshot - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - button_normal = { - size = { 100% 100% } - onclick = "[Encyclopedia.Hide]" - - using = Background_Full_Dim - } - - widget = { - parentanchor = center - size = { 880 850 } - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "HEADING_ENCYCLOPEDIA" - } - - blockoverride "button_close" - { - tooltip = "TOOLTIP_CLOSE_ENCYCLOPEDIA" - onclick = "[Encyclopedia.Hide]" - } - } - - hbox = { - name = "main" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/illustrations/event_scenes/study.dds" - fittype = end - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - blend_mode = alphamultiply - alpha = 0.4 - } - } - - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 20 - margin_right = -3 - margin_top = 60 - - button_tab_vertical = { - name = "select_page" - layoutpolicy_horizontal = expanding - size = { 175 35 } - text = "ENCYCLOPEDIA_ALL_PAGES" - onclick = "[Encyclopedia.ViewAllEntries]" - down = "[ObjectsEqual( Encyclopedia.GetCurrentPage, Encyclopedia.GetAllPage )]" - default_format = "#clickable" - } - - vbox = { - name = "entries" - datamodel = "[Encyclopedia.AccessPages]" - layoutpolicy_horizontal = expanding - - item = { - button_tab_vertical = { - name = "select_page" - layoutpolicy_horizontal = expanding - size = { 175 35 } - onclick = "[Encyclopedia.SetCurrentPage( EncyclopediaPage.AccessSelf )]" - down = "[ObjectsEqual( Encyclopedia.GetCurrentPage, EncyclopediaPage.Self )]" - - text_single = { - visible = "[Not(ObjectsEqual( Encyclopedia.GetCurrentPage, EncyclopediaPage.Self ))]" - parentanchor = center - text = "[EncyclopediaPage.GetTitle]" - align = nobaseline - default_format = "#low" - } - - text_single = { - visible = "[ObjectsEqual( Encyclopedia.GetCurrentPage, EncyclopediaPage.Self )]" - parentanchor = center - text = "[EncyclopediaPage.GetTitle]" - align = nobaseline - default_format = "#high" - } - } - } - } - - expand = {} - } - - vbox = { - name = "current" - datacontext = "[Encyclopedia.AccessCurrentPage]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 10 - - hbox = { - name = "search_controls" - layoutpolicy_horizontal = expanding - margin = {10 0} - spacing = 5 - - editbox_search_field = { - min_width = 300 - blockoverride "editbox_properties" { - name = "search_input" # Do not change name, it is referenced from code - focus_on_visible = yes - onreturnpressed = "[EncyclopediaPage.FilterFromText]" - maxcharacters = 50 - } - } - - button_primary = { - name = "search_for_input" - size = { 120 35 } - text = "SEARCH_ENCYCLOPEDIA" - tooltip = "SEARCH_ENCYCLOPEDIA_TOOLTIP" - using = tooltip_se - onclick = "[EncyclopediaPage.SearchFromEnteredText]" - } - - expand = {} - - hbox = { - button_icon = { - name = "reset_input" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - tooltip = "RESET_SEARCH_ENCYCLOPEDIA_TOOLTIP" - onclick = "[EncyclopediaPage.ResetFilter]" - using = tooltip_se - size = { 30 30 } - } - - button_select_arrow = { - mirror = horizontal - size = { 30 30 } - enabled = "[Encyclopedia.CanFilterFromHistoryBack]" - onclick = "[Encyclopedia.FilterFromHistoryBack]" - tooltip = "ENCYCLOPEDIA_PREVIOUS_SEARCH_TOOLTIP" - using = tooltip_se - } - - button_select_arrow = { - size = { 30 30 } - enabled = "[Encyclopedia.CanFilterFromHistoryForward]" - onclick = "[Encyclopedia.FilterFromHistoryForward]" - tooltip = "ENCYCLOPEDIA_NEXT_SEARCH_TOOLTIP" - using = tooltip_se - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - - - dynamicgridbox = { - name = "entries" - datamodel = "[Encyclopedia.GetViewedEntries]" - - item = { - vbox = { - datacontext = "[EncyclopediaEntryView.Get]" - set_parent_size_to_minimum = yes - margin_bottom = 45 - spacing = 10 - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 5 } - - spacing = 10 - - background = { - using = Background_Area_Dark - alpha = 0.4 - } - - icon = { - name = "image" - texture = "[EncyclopediaEntry.GetImage]" - visible = "[EncyclopediaEntry.HasImage]" - size = { 45 45 } - framesize = "[EncyclopediaEntry.GetFrameSize]" - frame = "[EncyclopediaEntry.GetFrame]" - } - - text_single = { - name = "title" - layoutpolicy_horizontal = expanding - text = "[EncyclopediaEntry.GetTitle]" - default_format = "#high" - using = Font_Size_Medium - } - } - - text_multi = { - name = "body" - autoresize = yes - max_width = 560 - min_width = 560 - text = "[EncyclopediaEntry.GetBody]" - margin = { 20 0 } - } - } - - } - } - - expand = {} - } - } - } - } - } - } -} diff --git a/N3OW/gui/jomini/music_player/music_player_mini_controller.gui b/N3OW/gui/jomini/music_player/music_player_mini_controller.gui deleted file mode 100644 index beb2bb39..00000000 --- a/N3OW/gui/jomini/music_player/music_player_mini_controller.gui +++ /dev/null @@ -1 +0,0 @@ -# suppress unused file \ No newline at end of file diff --git a/N3OW/gui/jomini/music_player/music_player_view.gui b/N3OW/gui/jomini/music_player/music_player_view.gui deleted file mode 100644 index 11d93623..00000000 --- a/N3OW/gui/jomini/music_player/music_player_view.gui +++ /dev/null @@ -1,558 +0,0 @@ -window = { - name = "JominiMusicPlayerView" - visible = no - layer = top - parentanchor = center - movable = yes - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - size = { 800 -1 } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Small - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowShow_Small - } - - vbox = { - name = "contents" - resizeparent = yes - - using = Window_Margins - - header_pattern = { - name = "header" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "MUSIC_PLAYER" - } - - blockoverride "button_close" - { - onclick = "[ToggleMusicPlayer]" - tooltip = "CLOSE_TOOLTIP" - } - } - - hbox = { - name = "playback_controller" - layoutpolicy_horizontal = expanding - - margin = { 20 5 } - - background = { - using = Background_Area_ExtraDark - } - - widget = { - name = "controller_buttons" - size = { 680 60 } - - widget_track_name = { - parentanchor = left|vcenter - } - - widget = { - parentanchor = hcenter|vcenter - size = { 90 60 } - - hbox = { - layoutpolicy_horizontal = expanding - - button_music_player_pause = {} - - button_music_player_play = {} - - button_music_player_skip = {} - } - } - - widget = { - name = "controller_settings" - parentanchor = right|vcenter - position = { 0 -3 } - size = { 200 40 } - - vbox_music_player_volume_setting = { - name = "music_player_volume_slider" - } - - vbox_music_player_density_setting = { - name = "music_player_density" - visible = no # this setting is unused in CK3 - } - } - } - - - } - - hbox = { - name = "music_player_contents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_categories = {} - - vbox_tracks_from_category = {} - } - } -} - - -types MusicPlayerTypes -{ - type button_music_player_play = button_round { - visible = "[MusicPlayer.IsPlaying]" - onclick = "[MusicPlayer.OnTogglePlayPause]" - size = { 40 40 } - - tooltip = MUSIC_PLAYER_PAUSE_TT - - button_pause = { - alwaystransparent = yes - parentanchor = center - size = { 40 40 } - } - } - - type button_music_player_pause = button_round { - visible = "[Not(MusicPlayer.IsPlaying)]" - onclick = "[MusicPlayer.OnTogglePlayPause]" - size = { 40 40 } - - tooltip = MUSIC_PLAYER_PLAY_TT - - button_play = { - alwaystransparent = yes - parentanchor = center - size = { 36 36 } - } - } - - type button_music_player_skip = button_round { - onclick = "[MusicPlayer.OnNextTrack]" - size = { 40 40 } - - tooltip = "MUSIC_PLAYER_NEXT_TRACK" - - button_next_track = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - } - } - - type vbox_music_player_volume_setting = vbox { - - hbox = { - spacing = 5 - - textbox = { - name = "music_player_volume_textbox" - align = left|nobaseline - text = "MUSIC_PLAYER_VOLUME_LABEL" - autoresize = yes - } - - textbox = { - name = "music_player_volume_value" - align = left|nobaseline - text = MUSIC_PLAYER_VOLUME_VALUE - default_format = "#bold" - autoresize = yes - } - } - - hbox = { - name = "music_player_volume_slider" - - scrollbar = { - name = "music_player_volume_slider_scrollbar" - direction = horizontal - size = { 200 20 } - value = "[MusicPlayer.GetVolume]" - - min = 0.0 - max = 1.0 - step = 0.1 - wheelstep = 0.1 - - onvaluechanged = "[MusicPlayer.SetVolume]" - - track = { - using = SettingsValueTrack - } - - slider = { - using = SettingsValueSlider - } - - dec_button = { - using = SettingsValueDecButton - } - - inc_button = { - using = SettingsValueIncButton - } - } - } - } - - type vbox_music_player_density_setting = vbox { - - hbox = { - spacing = 5 - tooltip = "MUSIC_PLAYER_DENSITY_TT" - - textbox = { - name = "music_player_density_textbox" - align = left|nobaseline - text = MUSIC_PLAYER_DENSITY_LABEL - autoresize = yes - } - - textbox = { - name = "music_player_density_value" - align = left|nobaseline - text = MUSIC_PLAYER_SETTING_MUSIC_DENSITY_VALUE - default_format = "#bold" - autoresize = yes - } - } - - hbox = { - name = "music_player_density_slider" - - scrollbar = { - name = "music_player_density_slider_scrollbar" - direction = horizontal - size = { 225 20 } - value = "[MusicPlayer.GetMusicDensity]" - - min = 0.0 - max = 1.0 - step = 0.5 - wheelstep = 0.5 - - onvaluechanged = "[MusicPlayer.SetMusicDensity]" - - track = { - using = SettingsValueTrack - } - - slider = { - using = SettingsValueSlider - } - - dec_button = { - using = SettingsValueDecButton - } - - inc_button = { - using = SettingsValueIncButton - } - } - } - } - - type widget_track_name = widget { - visible = "[MusicPlayer.IsPlayingTrackSelectable]" - size = { 300 44 } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "track_name" - layoutpolicy_horizontal = expanding - raw_text = "#v [MusicPlayer.GetPlayingTrackName]#!" - align = left|nobaseline - max_width = 300 - } - - text_single = { - name = "elapsed_time" - layoutpolicy_horizontal = expanding - text = "[MusicPlayer.GetPlayingTrackElapsedTime]" - align = left|nobaseline - } - } - } - - type button_music_category = button { - size = { 100% 100% } - - onclick = "[MusicPlayer.OnSelectCategory( MusicPlayerCategory.AccessSelf )]" - - tooltip = "MUSIC_PLAYER_SELECT_CATEGORY_TT" - using = tooltip_above - - block "button_texture" { - text = "[MusicPlayerCategory.GetName]" - } - } - - type widget_music_player_category = widget { - widget = { - size = { 100% 80% } - parentanchor = hcenter - - button_standard_clean = { - size = { 100% 100% } - - button_music_category = { - visible = "[Not(MusicPlayerCategory.HasTexture)]" - - blockoverride "button_texture" { - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - - text = "[MusicPlayerCategory.GetName]" - default_format = "#light_background" - } - } - - button_music_category = { - visible = "[MusicPlayerCategory.HasTexture]" - - blockoverride "button_texture" { - texture = "[MusicPlayerCategory.GetTexture]" - size = { 324 188 } - parentanchor = center - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - - widget = { - parentanchor = top|hcenter - position = { 0 -2 } - size = { 328 40 } - - background = { - using = Background_Area_ExtraDark - } - - text_single = { - layoutpolicy_horizontal = expanding - parentanchor = hcenter|vcenter - position = { 0 -4} - - text = "[MusicPlayerCategory.GetName]" - max_width = 290 - - using = Font_Type_Flavor - using = Font_Size_Big - } - } - } - } - - icon = { - parentanchor = center - size = { 324 188 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - icon = { - visible = "[MusicPlayer.IsSelectedCategory( MusicPlayerCategory.Self )]" - } - } - - widget = { - size = { 100% 20% } - parentanchor = right|bottom - - tooltip = "MUSIC_PLAYER_ENABLE_CATEGORY_TT" - using = tooltip_below - - text_label_left = { - visible = "[MusicPlayerCategory.IsEnabled]" - parentanchor = vcenter - position = { 35 -5 } - max_width = 330 - autoresize = yes - elide = right - fontsize_min = 14 - text = "MUSIC_PLAYER_CATEGORY_ENABLED_DISABLED_TEXT" - } - - text_label_left = { - visible = "[Not(MusicPlayerCategory.IsEnabled)]" - parentanchor = vcenter - position = { 35 -5 } - max_width = 330 - autoresize = yes - elide = right - default_format = "#low" - fontsize_min = 14 - text = "MUSIC_PLAYER_CATEGORY_ENABLED_DISABLED_TEXT" - } - - button_checkbox = { - name = "category_checkbox" - size = { 30 30 } - position = { -2 -5 } - parentanchor = vcenter - checked = "[MusicPlayerCategory.IsEnabled]" - onclick = "[MusicPlayer.OnToggleCategoryEnabled( MusicPlayerCategory.AccessSelf )]" - - using = tooltip_above - } - } - } - - type widget_music_player_track = widget { - - background = { - visible = "[MusicTrack.IsPlaying]" - using = Background_Area_Border - using = Background_Frame_Gold - } - - background = { - visible = "[And( Not( MusicTrack.IsPlaying ), MusicTrack.IsEnabled )]" - using = Background_Area_Border - } - - background = { - visible = "[And( Not( MusicTrack.IsPlaying ), Not( MusicTrack.IsEnabled ) )]" - using = Background_Full_Dim - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = preferred - margin = { 10 0 } - spacing = 5 - - button_checkbox = { - name = "track_checkbox" - size = { 30 30 } - checked = "[MusicTrack.IsEnabled]" - onclick = "[MusicPlayer.OnToggleTrackEnabled( MusicTrack.AccessSelf )]" - - tooltip = "MUSIC_PLAYER_TRACK_ENABLE_DISABLE_TT" - - using = tooltip_above - } - - button_standard = { - name = "track_toggle_play_pause_button" - layoutpolicy_horizontal = expanding - size = { 0 35 } - tooltip = "MUSIC_PLAYER_PLAY_TRACK_TT" - onclick = "[MusicPlayer.OnSelectAndPlayTrack( MusicTrack.Self )]" - down = "[MusicTrack.IsPlaying]" - - text_single = { - size = { 100% 100% } - visible = "[MusicTrack.IsPlaying]" - - parentanchor = vcenter - align = left|nobaseline - margin = { 10 0 } - - text = "[MusicTrack.GetName]" - default_format = "#high" - max_width = 250 - } - - textbox = { - size = { 100% 100% } - visible = "[Not(MusicTrack.IsPlaying)]" - - parentanchor = vcenter - align = left|nobaseline - margin = { 10 0 } - - text = "[MusicTrack.GetName]" - autoresize = yes - fontcolor = "[MusicPlayer.GetTrackTextColor( MusicTrack.Self )]" - max_width = 200 - } - } - } - } - - type vbox_categories = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 328 500 } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( MusicPlayer.AccessCategories )]" - text = MUSIC_PLAYER_NO_CATEGORIES_FOUND - } - - blockoverride "scrollbox_content" - { - dynamicgridbox = { - datamodel = "[MusicPlayer.AccessCategories]" - - item = { - widget_music_player_category = { - size = { 328 242 } - } - } - } - } - } - } - - type vbox_tracks_from_category = vbox { - scrollbox = { - size = { 354 500 } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( MusicPlayer.AccessTracksFromSelectedCategory )]" - text = MUSIC_PLAYER_NO_TRACKS_FOUND - } - - blockoverride "scrollbox_content" - { - dynamicgridbox = { - datamodel = "[MusicPlayer.AccessTracksFromSelectedCategory]" - - item = { - widget_music_player_track = { - size = { 322 55 } - } - } - } - } - } - } -} diff --git a/N3OW/gui/map_editor/dockable_map_mode_selector.gui b/N3OW/gui/map_editor/dockable_map_mode_selector.gui deleted file mode 100644 index b28da076..00000000 --- a/N3OW/gui/map_editor/dockable_map_mode_selector.gui +++ /dev/null @@ -1,156 +0,0 @@ -widget = { - name = "dockable_map_mode_selector" - size = { 155 480 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - editor_checkbutton = { - layoutpolicy_horizontal = expanding - blockoverride "checkbutton" { - checked = "[MapEditorHasGameMapMode]" - onclick = "[ToggleMapEditorGameMapModeActive]" - shortcut = "map_editor_toggle_game_map_mode" - - raw_tooltip = "Toggle game map modes" - tooltipwidget = { - using = dockable_tooltip - } - using = tooltip_se - } - blockoverride "label" { - raw_text = "Use Game Map Mode" - } - } - - widget = { size = { 0 5 } } - - hbox = { - layoutpolicy_horizontal = Preferred - layoutpolicy_vertical = Preferred - - scrollarea = { - layoutpolicy_horizontal = Preferred - layoutpolicy_vertical = Preferred - scrollbarpolicy_vertical = as_needed - scrollbarpolicy_horizontal = as_needed - scrollbaralign_vertical = right - scrollbaralign_horizontal = bottom - autoresizeviewport = yes - - viewportwidget = { widget = { scissor = yes } } - scrollbar_vertical = { using = editor_vertical_scrollbar } - scrollbar_horizontal = { using = editor_horizontal_scrollbar } - - scrollwidget = { - vbox = { - layoutpolicy_vertical = expanding - - game_map_mode_button = { - raw_text = "Simple Terrain" - onclick = "[SetMapMode('simple_terrain')]" - enabled = "[Not(IsMapMode('simple_terrain'))]" - } - game_map_mode_button = { - raw_text = "Dejure Empires" - onclick = "[SetMapMode('dejure_empires')]" - enabled = "[Not(IsMapMode('dejure_empires'))]" - } - - widget = { size = { 0 10 } } - - game_map_mode_button = { - raw_text = "Realms" - onclick = "[SetMapMode('realms')]" - enabled = "[Not(IsMapMode('realms'))]" - } - game_map_mode_button = { - raw_text = "Dejure Duchies" - onclick = "[SetMapMode('dejure_duchies')]" - enabled = "[Not(IsMapMode('dejure_duchies'))]" - } - game_map_mode_button = { - raw_text = "Dejure Kingdoms" - onclick = "[SetMapMode('dejure_kingdoms')]" - enabled = "[Not(IsMapMode('dejure_kingdoms'))]" - } - game_map_mode_button = { - raw_text = "Cultures" - onclick = "[SetMapMode('cultures')]" - enabled = "[Not(IsMapMode('cultures'))]" - } - game_map_mode_button = { - raw_text = "Religions" - onclick = "[SetMapMode('religions')]" - enabled = "[Not(IsMapMode('religions'))]" - } - game_map_mode_button = { - raw_text = "Houses" - onclick = "[SetMapMode('houses')]" - enabled = "[Not(IsMapMode('houses'))]" - } - game_map_mode_button = { - raw_text = "Players" - onclick = "[SetMapMode('players')]" - enabled = "[Not(IsMapMode('players'))]" - } - game_map_mode_button = { - raw_text = "Silk Road" - onclick = "[SetMapMode('silk_road')]" - enabled = "[Not(IsMapMode('silk_road'))]" - } - - widget = { size = { 0 10 } } - - game_map_mode_button = { - raw_text = "Government" - onclick = "[SetMapMode('government')]" - enabled = "[Not(IsMapMode('government'))]" - } - game_map_mode_button = { - raw_text = "Dejure Counties" - onclick = "[SetMapMode('dejure_counties')]" - enabled = "[Not(IsMapMode('dejure_counties'))]" - } - game_map_mode_button = { - raw_text = "Development" - onclick = "[SetMapMode('county_development')]" - enabled = "[Not(IsMapMode('county_development'))]" - } - - widget = { size = { 0 10 } } - - game_map_mode_button = { - raw_text = "Simple Realms" - onclick = "[SetMapMode('simple_realms')]" - enabled = "[Not(IsMapMode('simple_realms'))]" - } - game_map_mode_button = { - raw_text = "Terrain" - onclick = "[SetMapMode('terrain')]" - enabled = "[Not(IsMapMode('terrain'))]" - } - game_map_mode_button = { - raw_text = "Baronies" - onclick = "[SetMapMode('baronies')]" - enabled = "[Not(IsMapMode('baronies'))]" - } - - widget = { layoutpolicy_vertical = expanding } - } - } - } - } - } -} - -types GameMapEditorTypes -{ - type game_map_mode_button = editor_button { - size = { 130 25 } - align = left|nobaseline - enabled = "[CanChangeMapMode]" - fontcolor = { 1.0 1.0 1.0 1.0 } - } -} diff --git a/N3OW/gui/map_icon_layer.gui b/N3OW/gui/map_icon_layer.gui deleted file mode 100644 index cbfdc26f..00000000 --- a/N3OW/gui/map_icon_layer.gui +++ /dev/null @@ -1,6057 +0,0 @@ - -hbox = { - name = "layer_hbox" - - window = { - name = "layer_window" - visible = "[Not( IsPauseMenuShown )]" - layoutpolicy_horizontal = Expanding - layoutpolicy_vertical = Expanding - alwaystransparent = yes - movable = no - resizable = no - filter_mouse = none - - widget = { - name = "bottom_layer" - size = { 100% 100% } - alwaystransparent = yes - } - - widget = { - name = "middle_layer" - size = { 100% 100% } - alwaystransparent = yes - } - - widget = { - name = "top_layer" - size = { 100% 100% } - alwaystransparent = yes - } - } -} - -### Unified province icon -widget = { - name = "province_map_icon" - widgetanchor = center - allow_outside = yes - - ### ALL ITEMS - flowcontainer = { - parentanchor = center - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - ### Spacer pushing items depending on zoom level - widget = { - visible = "[And( LessThan_int32( GetZoomLevel, '(int32)9' ), Or( ProvinceIcon.HasCoa, ProvinceIcon.HasLocationIcons ) )]" - name = "offset_widget_v" - size = { 2 0 } - - state = { - name = "map_zoom_0" - size = { 2 120 } - duration = 0.25 - } - - state = { - name = "map_zoom_1" - size = { 2 90 } - duration = 0.25 - } - - state = { - name = "map_zoom_2" - size = { 2 50 } - duration = 0.25 - } - - state = { - name = "map_zoom_3" - size = { 2 40 } - duration = 0.25 - } - - state = { - name = "map_zoom_4" - size = { 2 30 } - duration = 0.25 - } - - state = { - name = "map_zoom_5" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_6" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_7" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_8" - size = { 2 0 } - duration = 0.25 - } - } - - ### TOP ITEMS - widget = { - parentanchor = hcenter - allow_outside = yes - - flowcontainer = { - parentanchor = bottom|hcenter - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - ### Flow 1 | Domicile Camp - flowcontainer = { - name = "flow_province_1" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[And( ProvinceIcon.HasDomicile, Domicile.GetType.HasMapPinAnchor( 'up' ) )]" - parentanchor = hcenter - - allow_outside = yes - - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = preferred - - ### Domicile UP (CAMP) - domicile_location_icon = { - name = "domicile_up" - datacontext = "[GetPlayer.GetDomicile]" - } - } - - ### Flow 2 | Character Pin, Activity, Task Contract, Combat - flowcontainer = { - name = "flow_province_2" - visible = "[Or( ProvinceIcon.HasCombat, Or( ProvinceIcon.HasTaskContract, Or( ProvinceIcon.HasActivity, And( ProvinceIcon.HasCharacter, Not( ProvinceIcon.HasDomicile ) ) ) ) )]" - ignoreinvisible = yes - allow_outside = yes - parentanchor = hcenter - - layoutpolicy_horizontal = shrinking - layoutpolicy_vertical = preferred - - ### Character Pin - widget_character_icon = { - datacontext = "[ProvinceIcon.GetFocusCharacter]" - visible = "[And( ProvinceIcon.HasCharacter, Not( ProvinceIcon.HasDomicile ))]" - parentanchor = center - - size = { 84 95 } - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 67 76 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - ### Combat icons - widget_combat_icon = { - visible = "[And(ProvinceIcon.HasCombat, Not(And(CombatMapIcon.RightIsNeutral, CombatMapIcon.LeftIsNeutral)))]" - allow_outside = yes - size = { 0 60 } - } - - widget_combat_icon_small = { - visible = "[And(ProvinceIcon.HasCombat, And(CombatMapIcon.RightIsNeutral, CombatMapIcon.LeftIsNeutral))]" - allow_outside = yes - size = { 0 60 } - } - - ### Activities - flowcontainer = { - visible = "[ProvinceIcon.HasActivity]" - ignoreinvisible = yes - - datamodel = "[ProvinceIcon.GetActivities]" - item = { - activity_location_icon = {} - } - } - - ### Task Contracts - flowcontainer = { - visible = "[ProvinceIcon.HasTaskContract]" - - ignoreinvisible = yes - - datamodel = "[ProvinceIcon.GetTaskContracts]" - item = { - task_contract_location_icon = {} - } - } - } - - ### Push widgets up when zoomed in - widget = { - size = { 2 0 } - - state = { - name = "map_zoom_0" - size = { 2 55 } - duration = 0.25 - } - - state = { - name = "map_zoom_1" - size = { 2 35 } - duration = 0.25 - } - - state = { - name = "map_zoom_2" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_3" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_4" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_5" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_6" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_7" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_8" - size = { 2 0 } - duration = 0.25 - } - } - } - } - - ### Flow 3 | Coat of Arms, Estates - flowcontainer = { - visible = "[Or( ProvinceIcon.HasUnits, Or( ProvinceIcon.HasWarfareIcons, Or( ProvinceIcon.HasDomicile, ProvinceIcon.HasCoa ) ) )]" - parentanchor = hcenter - allow_outside = yes - ignoreinvisible = yes - - ### Domicile LEFT (ESTATE) - widget = { - name = "domicile_left" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[ProvinceIcon.HasDomicile]" - - allow_outside = yes - - domicile_location_icon = { - visible = "[And( Domicile.GetType.HasMapPinAnchor( 'left' ), Not( ProvinceIcon.HasCoa ) )]" - widgetanchor = bottom|right - position = { 0 12 } - } - domicile_location_icon = { - visible = "[And( Domicile.GetType.HasMapPinAnchor( 'left' ), ProvinceIcon.HasCoa)]" - widgetanchor = top|right - position = { 0 -12 } - } - } - - flowcontainer_realm_capital = { - datacontext = "[ProvinceIcon.GetOwner]" - datacontext = "[ProvinceIcon.GetCapitalIcon]" - visible = "[ProvinceIcon.HasCoa]" - - blockoverride "coa_button" - { - tooltip = "[Character.GetDefaultRealmFlagTooltip]" - onclick = "[DefaultOnRealmFlagClick(Character.GetID)]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = "[ProvinceIcon.GetArmyIgnoreClick]" - - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - } - } - - - ### Flow 4 | Warfare icons - flowcontainer = { - visible = "[ProvinceIcon.HasWarfareIcons]" - parentanchor = hcenter - allow_outside = yes - ignoreinvisible = yes - - widget = { - parentanchor = vcenter - allow_outside = yes - visible = "[ProvinceIcon.HasWarfareIcons]" - - state = { - name = warfare_in - using = Animation_FadeIn_Standard - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)9' )]" - } - - state = { - name = warfare_out - using = Animation_FadeOut_Standard - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)8' )]" - } - - flowcontainer_warfare_status = { - visible = "[And(And(ProvinceIcon.HasCoa, Not(ProvinceIcon.HasUnits)), Not(ProvinceIcon.HasLocationIcons))]" - parentanchor = left|bottom - allow_outside = yes - position = { 30 45 } - } - - flowcontainer_warfare_status = { - visible = "[And(And(ProvinceIcon.HasCoa, ProvinceIcon.HasUnits), Not(ProvinceIcon.HasLocationIcons))]" - parentanchor = left|bottom - allow_outside = yes - position = { 30 80 } - } - - flowcontainer_warfare_status = { - visible = "[And(And(ProvinceIcon.HasCoa, ProvinceIcon.HasUnits), ProvinceIcon.HasLocationIcons)]" - parentanchor = left|bottom - allow_outside = yes - position = { 60 145 } - } - - flowcontainer_warfare_status = { - visible = "[And( And( Not( ProvinceIcon.HasCoa ), Not( ProvinceIcon.HasLocationIcons ) ), ProvinceIcon.HasCombat )]" - allow_outside = yes - position = { 120 10 } - } - - flowcontainer_warfare_status = { - visible = "[And( And( Not( ProvinceIcon.HasCoa ), Not( ProvinceIcon.HasLocationIcons ) ), Not( ProvinceIcon.HasCombat ) )]" - allow_outside = yes - position = { 20 15 } - } - - flowcontainer_warfare_status = { - visible = "[And( Not( ProvinceIcon.HasCoa ), ProvinceIcon.HasLocationIcons )]" - allow_outside = yes - position = { 60 30 } - } - } - } - - ### Flow 5 | Unit icons - flowcontainer = { - visible = "[ProvinceIcon.HasUnits]" - ignoreinvisible = yes - allow_outside = yes - - widget = { - name = "offset_widget_h" - visible = "[And( ProvinceIcon.HasUnits, ProvinceIcon.HasCoa )]" - size = { 0 2 } - - - state = { - name = shift_right - size = { 30 2 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)7' )]" - } - - state = { - name = shift_above - size = { 0 2 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)6' )]" - } - } - - widget = { - parentanchor = vcenter - allow_outside = yes - - state = { - name = units_fade_in - trigger_when = "[Not( ProvinceIcon.HasHolding )]" - using = Animation_FadeIn_Standard - } - - state = { - name = units_fade_out - trigger_when = "[ProvinceIcon.HasHolding]" - using = Animation_FadeOut_Standard - } - - flowcontainer_unit_items = { - allow_outside = yes - parentanchor = vcenter - position = { 0 0 } - } - } - } - } - - widget = { - parentanchor = hcenter - allow_outside = yes - alpha = 1 - visible = "[ProvinceIcon.HasLocationIcons]" - - flowcontainer = { - parentanchor = hcenter - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - ### Flow 6 | The Blue Banner + Holding Icons (Fort Level, Tax & Levies) - flowcontainer_holding_info = { - visible = "[ProvinceIcon.HasHolding]" - } - - ### Flow 7 | Council Task - flowcontainer_active_tasks = { - parentanchor = hcenter - visible = "[ProvinceIcon.HasCouncilTasks]" - datamodel = "[ProvinceIcon.GetCouncilTasks]" - } - } - } - } -} - -### Unit -container = { - datacontext = "[UnitMapIconHandler.GetUnitIcon]" - name = "unit_widget" - allow_outside = yes - - widget_unit_icon_item = { - position = { -93 10 } - - alpha = 1 - } -} - -container = { - datacontext = "[UnitMapIconHandler.GetUnitIcon]" - name = "unit_widget_flat_map" - - widget_unit_icon_item = { - position = { -65 10 } - widgetanchor = vcenter - } -} - -### RALLY POINT -container = { - name = "rally_point_widget" - position = { -48 -10 } - widgetanchor = center - - - button_rally_point = { - datacontext = "[RallyPointMapIcon.GetRallyPoint]" - visible = "[And( RallyPointMapIcon.ShouldBeShown, Not(GetPlayer.HasActiveCompanionAISetting('raise_armies')))]" - alwaystransparent = "[Not( RallyPointMapIcon.CanClick )]" # Ignore the clicks if we are moving or placing a rally point so it filters through to the map to handle it instead of trying to show the info of the not existing rally point - } -} - -### Major river ford -widget = { - name = "ford_widget" - size = { 40 40 } - widgetanchor = center - - tooltip = "[StraitMapIcon.GetTooltip]" - - icon = { - name = "ford_icon" - visible = "[StraitMapIcon.ShouldBeShown]" - - using = Animation_ShowHide_Quick - - size = { 40 40 } - texture = "gfx/interface/icons/map_icons/ford.dds" - } -} - -### Strait -widget = { - name = "strait_widget" - size = { 40 40 } - widgetanchor = center - - tooltip = "[StraitMapIcon.GetTooltip]" - - icon = { - name = "strait_icon" - visible = "[StraitMapIcon.ShouldBeShown]" - - using = Animation_ShowHide_Quick - - size = { 40 40 } - texture = "gfx/interface/icons/map_icons/strait.dds" - } -} - -#### Domicile and task contracts Icon for flat map -widget = { - name = "flat_landless_widget" - - allow_outside = yes - - flowcontainer = { - parentanchor = center - allow_outside = yes - direction = vertical - ignoreinvisible = yes - - domicile_location_icon = { - visible = "[FlatLandlessMapIcon.HasDomicile]" - datacontext = "[GetPlayer.GetDomicile]" - } - - flowcontainer = { - allow_outside = yes - datamodel = "[FlatLandlessMapIcon.GetTaskContracts]" - - item = { - task_contract_location_icon = {} - } - } - } -} - -### Title capital -container = { - name = "title_capital_widget" - widgetanchor = center - allow_outside = yes - - # Animations have been removed for now, should be part of map_realm_coa types - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - visible = "[TitleCapitalMapIcon.GetTitle.GetHolder.IsValid]" - margin = { 15 5 } - margin_bottom = 15 - alpha = 0.6 - } - - coa_title_small_crown = { - datacontext = "[TitleCapitalMapIcon.GetTitle]" - alpha = "[Select_float( TitleCapitalMapIcon.GetTitle.GetHolder.IsValid, '(float)1.0', '(float)0.7' )]" - } -} - -### Ruler Objective Advice -widget = { - name = "ruler_objective_advice_widget" - widgetanchor = center - allow_outside = yes - - datacontext = "[RulerObjectiveAdviceMapIcon.GetAdvice]" - datacontext = "[RulerObjectiveAdvice.GetTitle]" - - icon = { - parentanchor = center - texture = "gfx/interface/icons/map_icons/pin_point_tuto.dds" - scale = 0.5 - } - - tooltipwidget = { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" { - icon = { - texture = "gfx/interface/icons/map_icons/pin_tuto.dds" - size = { 64 64 } - margin = { 4 4 } - } - } - - blockoverride "title_text" { - text = "[RulerObjectiveAdvice.GetSummary]" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 384 - autoresize = yes - text = "[RulerObjectiveAdvice.GetDescription]" - } - } - } - } - } -} - -### Combat prediction -container = { - name = "combat_prediction_widget" - widgetanchor = top|hcenter - position = { 0 60 } - - icon = { - name = "prediction_icon" - texture = "gfx/interface/icons/map_icons/combat_prediction_icon.dds" - size = { 40 40 } - framesize = { 120 120 } - frame = "[CombatPredictionMapIcon.GetPredictionLevelFrame]" - tooltipwidget = { - using = combat_prediction_tooltip - } - using = tooltip_above - } -} - -### Fleet prediction -flowcontainer = { - name = "fleet_embark_widget" - widgetanchor = top|hcenter - direction = horizontal - tooltip = "[FleetPredictionMapIcon.GetEmbarkCostBreakdownTooltip]" - using = tooltip_above - - icon = { - name = "prediction_icon" - texture = "gfx/interface/icons/map_icons/naval_transportation.dds" - parentanchor = vcenter - } - - flowcontainer = { - parentanchor = vcenter - text_label_left = { - - text = "MAP_ICON_EMBARK_COST" - autoresize = yes - } - #ugly spacer to make the text and icon align vertically - spacer = { - size = {0 30} - } - } - - -} - -### Council Task - -container = { - name = "council_task_widget" - - flowcontainer_active_tasks = { - widgetanchor = center - datamodel = "[ActiveCouncilTaskIcon.GetTasks]" - } -} - -### Province move attrition -widget = { - name = "province_move_attrition_widget" - size = { 30 30 } - tooltip = "[ProvinceMovementAttritionIcon.GetTooltip]" - position = { 5 5 } - - highlight_icon = { - name = "attrition" - size = { 30 30 } - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - } -} - -### Holy Site -flowcontainer = { - name = "holy_site_widget" - widgetanchor = center - datacontext = "[HolySiteIcon.GetHolySite]" - datacontext = "[GuiHolySiteItem.GetHolySite]" - direction = vertical - - ignoreinvisible = yes - - button_normal = { - parentanchor = hcenter - background = { - alpha = 0 - visible = "[GuiHolySiteItem.IsHeldByFaith]" - texture = "gfx/interface/component_masks/mask_circle.dds" - margin = { -10 -10 } - glow = { - color = { 0.2 0.2 0.2 0.6 } - glow_radius = 6 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - } - - background = { - alpha = 0 - visible = "[Not( GuiHolySiteItem.IsHeldByFaith )]" - texture = "gfx/interface/component_masks/mask_circle.dds" - - glow = { - color = { 1 0.2 0.2 0.5 } - glow_radius = 9 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - } - - name = "faith_icon" - texture = "[GuiHolySiteItem.GetFaith.GetIcon]" - size = { 60 60 } - onclick = "[HolySite.GetBarony.SelectTitle]" - tooltip = "FAITH_WINDOW_HOLY_SITE_TOOLTIP" - } - - text_label_center = { - parentanchor = hcenter - visible = "[GuiHolySiteItem.IsHeldByFaith]" - text = "[HolySite.GetBarony.GetNameNoTierNoTooltip]" - default_format = "#high" - } - - text_label_center = { - parentanchor = hcenter - visible = "[Not( GuiHolySiteItem.IsHeldByFaith )]" - text = "[HolySite.GetBarony.GetNameNoTierNoTooltip]" - default_format = "#medium" - } -} - -### house CoA -container = { - name = "house_coa_icon" - widgetanchor = center - ignoreinvisible = yes - datacontext = "[DynastyHouseIcon.GetHouse]" - - - coa_house_medium = { - parentanchor = center - position = { 0 -5 } - } - widget = { - - visible = "[DynastyHouse.UsesHouseAspirations]" - datacontext = "[DynastyHouse.GetHouseAspiration]" - tooltipwidget = { - using = house_attribute_tooltip - } - size = { 32 32 } - position = { 24 0 } - parentanchor = top|hcenter - - icon = { - size = { 32 32 } - - texture = "[HouseAspiration.GetIcon]" - } - - } -} - -### Court language -flowcontainer = { - name = "court_language_widget" - widgetanchor = center - - datacontext = "[GetPlayer]" - datacontext = "[Character.GetCulture]" - - button_group_court_language_data = { - name = "grandest_language" - datacontext = "[CCourtLanguageMapIcon.GetGrandestLanguage]" - visible = "[CCourtLanguageMapIcon.HasGrandestLanguage]" - } - - button_group_court_language_data = { - name = "native_language" - datacontext = "[CCourtLanguageMapIcon.GetNativeLanguage]" - visible = "[CCourtLanguageMapIcon.HasNativeLanguage]" - } -} - -### Landless Rulers -widget = { - name = "landless_rulers_map_widget" - allow_outside = yes - - datacontext = "[LandlessRulersMapIcon.GetProvince]" - datacontext = "[GetLobbyHelper]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Set( 'domicile_expand_all_in_province', Province.GetTag )]" - on_finish = "[GetVariableSystem.Set( 'domicile_expand_all_in_province', Province.GetTag )]" - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( 'domicile_expand_all_in_province' )]" - } - - flowcontainer = { - direction = vertical - parentanchor = bottom|hcenter - allow_outside = yes - - flowcontainer = { - name = "normal_map_icon" - - # Explicit check on the index due to frame updates and lifetimes. - visible = "[And( And( Not( LobbyHelperWindow.IsLandlessTabSelected ), GreaterThan_int32( LandlessRulersMapIcon.GetValidDomicilesCount, '(int32)0' ) ), LessThan_int32( LandlessRulersMapIcon.GetFirstValidDomicileIndex, GetDataModelSize( LandlessRulersMapIcon.GetDomiciles ) ) )]" - - ignoreinvisible = yes - allow_outside = yes - - widget_landless_ruler_pin = { - datacontext = "[LandlessRulersMapIcon.GetFirstValidDomicile]" - datacontext = "[Domicile.GetOwner]" - - allow_outside = yes - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - widget = { - visible = "[And( GreaterThan_int32( LandlessRulersMapIcon.GetValidDomicilesCount, '(int32)1' ), Not(GetVariableSystem.HasValue( 'domicile_expand_all_in_province', Province.GetTag ) ) )]" - size = { 48 48 } - - state = { - name = "map_zoom_close" - size = { 48 48 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - parentanchor = right|vcenter - widgetanchor = left|vcenter - - position = { 0 -5 } - - background = { - texture = "gfx/interface/icons/icon_bg_small.dds" - } - - text_single = { - parentanchor = center - - text = MAP_ICON_LANDLESS_RULERS_COUNT - align = center - default_format = "#strong_glow;high" - - position = { 0 -3 } - - using = Font_Size_Small - } - } - - flowcontainer = { - visible = "[GetVariableSystem.HasValue( 'domicile_expand_all_in_province', Province.GetTag )]" - datamodel = "[DataModelSkipFirst( LandlessRulersMapIcon.GetDomiciles, Add_int32( LandlessRulersMapIcon.GetFirstValidDomicileIndex, '(int32)1' ) )]" - - ignoreinvisible = yes - parentanchor = right|vcenter - widgetanchor = left|vcenter - - item = { - widget_landless_ruler_pin = { - datacontext = "[Domicile.GetOwner]" - visible = "[LandlessRulersMapIcon.ShouldShowRuler( Character.Self )]" - - size = { 67 76 } - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - } - } - } - } - - flowcontainer = { - name = "lobby_map_icon" - - # Explicit check on the index due to frame updates and lifetimes. - visible = "[And( And( LobbyHelperWindow.IsLandlessTabSelected, GreaterThan_int32( LandlessRulersMapIcon.GetValidDomicilesCount, '(int32)0' ) ), LessThan_int32( LandlessRulersMapIcon.GetFirstValidDomicileIndex, GetDataModelSize( LandlessRulersMapIcon.GetDomiciles ) ) )]" - - ignoreinvisible = yes - - widget_landless_ruler_pin = { - datacontext_from_model = { - datamodel = "[Province.GetDomiciles]" - index = "[LobbyHelperWindow.GetFirstValidDomicileIndex( Province.Self )]" - } - - datacontext = "[Domicile.GetOwner]" - visible = "[And( And( Domicile.GetType.HasLobbyMapPin, Character.IsLandlessRuler), GetLobbyHelper.CharacterHasGovernment( Character.Self ) )]" - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - widget = { - visible = "[And( GreaterThan_int32( LobbyHelperWindow.CountFilteredDomicilesInProvince( Province.Self ), '(int32)1' ), Not(GetVariableSystem.HasValue( 'domicile_expand_all_in_province', Province.GetTag ) ) )]" - - size = { 48 48 } - - state = { - name = "map_zoom_close" - size = { 48 48 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - parentanchor = vcenter - - background = { - texture = "gfx/interface/icons/icon_bg_small.dds" - } - - text_single = { - parentanchor = center - - position = { 0 -3 } - - text = lobby_more_domiciles_count - align = center - default_format = "#strong_glow;high" - - using = Font_Size_Small - } - } - - flowcontainer = { - datamodel = "[DataModelSkipFirst( Province.GetDomiciles, Add_int32( LobbyHelperWindow.GetFirstValidDomicileIndex( Province.Self ), '(int32)1' ) )]" - visible = "[GetVariableSystem.HasValue( 'domicile_expand_all_in_province', Province.GetTag )]" - - ignoreinvisible = yes - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - item = { - widget_landless_ruler_pin = { - datacontext = "[Domicile.GetOwner]" - visible = "[And( And( Domicile.GetType.HasLobbyMapPin, Character.IsLandlessRuler), GetLobbyHelper.CharacterHasGovernment( Character.Self ) )]" - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 32 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - } - } - } - - ### Push widgets up when zoomed in - widget = { - size = { 2 0 } - - state = { - name = "map_zoom_0" - size = { 2 55 } - duration = 0.25 - } - - state = { - name = "map_zoom_1" - size = { 2 35 } - duration = 0.25 - } - - state = { - name = "map_zoom_2" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_3" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_4" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_5" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_6" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_7" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_8" - size = { 2 0 } - duration = 0.25 - } - } - } -} - -### Men at Arms Origin -widget = { - name = "men_at_arms_origin_widget" - widgetanchor = center - position = { 0 -60 } - - datacontext = "[MAAOriginMapIcon.GetMAAType]" - datacontext = "[MAAOriginMapIcon.GetProvince]" - datacontext = "[MAAOriginMapIcon.GetOwningTitle]" - - vbox = { - margin = { 20 5 } - set_parent_size_to_minimum = yes - - background = { - using = Background_Area_Dark - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - text_label_center = { - visible = "[MAAOriginMapIcon.IsExistingLocation]" - text = "REGIMENT_ORIGIN_LOCATION_MAP" - default_format = "#high" - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - align = center - } - text_label_center = { - visible = "[Not( MAAOriginMapIcon.IsExistingLocation )]" - text = "REGIMENT_ORIGIN_NEW_LOCATION_MAP" - default_format = "#high" - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - align = center - } - - widget = { - visible = "[Province.IsRealmCapital]" - size = { 30 30 } - - tooltip = "REALM_CAPITAL_TOOLTIP" - - icon = { - name = "realm_capital_icon" - parentanchor = center - #position = {0 -5} - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - } - } - } - - vbox_maa_province_stats_numbers = { - name = "location_stat_impact" - layoutpolicy_horizontal = expanding - set_parent_size_to_minimum = yes - } - } -} - -### Title Troops -widget = { - name = "title_troops_map_widget" - datacontext = "[TitleTroopsMapIcon.GetTitle]" - widgetanchor = center - allow_outside = yes - position = { 78 00 } - size = { 200 100 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - # CoA - widget = { - datacontext = "[Title.GetHolder]" - size = { 44 72 } - allow_outside = yes - visible = "[Title.CanHaveTroops]" - - icon = { - name = "ally_war_icon" - visible = "[TitleTroopsMapIcon.IsMyAlly]" - parentanchor = center - position = { -6 -21 } - - size = { 60 63 } - texture = "gfx/interface/icons/map_coa/icon_ally.dds" - } - - icon = { - name = "at_war_icon" - visible = "[TitleTroopsMapIcon.IsAtWarWithMe]" - parentanchor = center - position = { 0 -20 } - size = { 55 55 } - texture = "gfx/interface/icons/map_coa/icon_at_war_big.dds" - } - - icon = { - name = "player_icon" - visible = "[Character.IsPlayer]" - - texture = "gfx/interface/icons/map_coa/icon_player.dds" - framesize = { 156 156 } - frame = 3 - - position = { 0 -14 } - size = { 72 72 } - parentanchor = center - } - - coa_title_small_crown = { - parentanchor = center - position = { 0 -5 } - - blockoverride "coa_button" { - onclick = "[OpenAdministrativeArmyDetailView( Title.Self )]" - } - - icon = { - parentanchor = top|right - position = { 5 9 } - size = { 24 24 } - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - visible = "[And( Title.HasDiscountedTitleMaa(GetPlayer.Self), Not( Title.GetHolder.IsPlayer ) )]" - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - - text_single = { - visible = "[Title.GetHolder.GetVassalContract.IsValid]" - parentanchor = bottom|right - position = { 10 0 } - text = "ADMIN_WINDOW_THEME_ADMINISTRATION_TYPE_TEXT_ICON" - max_width = 90 - fontsize = 18 - } - - tooltipwidget = { - widget_theme_troops_tooltip = {} - } - } - - widget = { - allow_outside = yes - size = { 140 100 } - visible = "[Title.CanHaveTroops]" - - vbox = { - allow_outside = yes - layoutpolicy_vertical = expanding - - expand = {} - - # Banner & Army size - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - hbox = { - background = { - visible = "[Title.IsAdministrativeArmyHiredByLocalPlayer]" - spriteType = Corneredtiled - spriteborder_right = 60 - texture_density = 2 - texture = "gfx/interface/window_military/military_map_theme_banner_blue.dds" - - margin_top = -2 - margin_bottom = 2 - margin_right = 40 - } - - background = { - visible = "[And( Not( Title.IsAdministrativeArmyAvailableForHire ), Not( Title.IsAdministrativeArmyHiredByLocalPlayer ) )]" - spriteType = Corneredtiled - spriteborder_right = 60 - texture_density = 2 - texture = "gfx/interface/window_military/military_map_theme_banner_no_troops.dds" - - margin_top = -2 - margin_bottom = 2 - margin_right = 40 - } - - background = { - visible = "[Title.IsAdministrativeArmyAvailableForHire]" - spriteType = Corneredtiled - spriteborder_right = 60 - texture_density = 2 - texture = "gfx/interface/window_military/military_map_theme_banner_green.dds" - - margin_top = -2 - margin_bottom = 2 - margin_right = 40 - } - - spacer = { - size = { 40 20 } - } - - text_single = { - text = "TITLE_TROOPS_MAPMODE_EXTRA_CURRENT_ARMY_SIZE" - - visible = "[LessThan_int32( GetZoomLevel, '(int32)20' )]" - } - } - expand = {} - } - - # Small CoAs - widget = { - visible = "[GreaterThan_int32( GetDataModelSize(TitleTroopsMapIcon.GetHiredTitles), '(int32)0' )]" - allow_outside = yes - size = { 140 28 } - - fixedgridbox = { - position = { 23 0 } - parentanchor = vcenter - datamodel = "[TitleTroopsMapIcon.GetHiredTitles]" - flipdirection = yes - addrow = 34 - addcolumn = 34 - datamodel_wrap = 4 - maxverticalslots = 1 - - background = { - using = Background_Area_Solid - alpha = 0.9 - margin_left = 5 - margin_right = 20 - margin_bottom = 13 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - item = { - coa_title_tiny_crown = { - scale = 0.85 - - blockoverride "coa_onclick" { - onclick = "[OpenAdministrativeArmyDetailView( Title.Self )]" - } - using = tooltip_se - - icon = { - parentanchor = top|right - position = { 5 9 } - size = { 20 20 } - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - visible = "[Title.HasDiscountedTitleMaa(GetPlayer.Self)]" - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - } - } - - widget = { - datacontext = "[TitleTroopsMapIcon.GetTitle]" - parentanchor = right|vcenter - size = { 20 20 } - using = CoA_Title_Defaults - - blockoverride "coa_onclick" {} - - text_single = { - visible = "[GreaterThan_int32( GetDataModelSize(TitleTroopsMapIcon.GetHiredTitles), '(int32)4' )]" - parentanchor = center - - text = "[GetNumberAbove_int32( GetDataModelSize(TitleTroopsMapIcon.GetHiredTitles), '(int32)4' )|=]" - align = center - default_format = "#underline" - - tooltipwidget = { - widget_theme_troops_tooltip = {} - } - } - } - } - - expand = {} - } - widget = { - name = "troops_icon" - size = { 38 38 } - parentanchor = vcenter - position = { 0 -2 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/map_icons/troops_yours.dds" - visible = "[Title.IsAdministrativeArmyHiredByLocalPlayer]" - } - - icon = { - visible = "[And( Not( Title.IsAdministrativeArmyAvailableForHire ), Not( Title.IsAdministrativeArmyHiredByLocalPlayer ) )]" - size = { 100% 100% } - texture = "gfx/interface/icons/map_icons/troops_none.dds" - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/icon_soldier.dds" - visible = "[Title.IsAdministrativeArmyAvailableForHire]" - } - } - } - - expand = {} - } -} - - -### Admin Province widget (Theme/Province/Circuit/etc) -widget = { - name = "admin_province_map_widget" - datacontext = "[AdminProvinceMapIcon.GetTitle]" - datacontext = "[AdminProvinceMapIcon.GetProvinceObligationLevel]" - datacontext = "[AdminProvinceMapIcon.GetGovernor]" - widgetanchor = center - allow_outside = yes - tooltip_offset = { 28 -40 } - - widget = { - datacontext = "[Title.GetHolder]" - allow_outside = yes - - icon = { - name = "player_icon" - visible = "[Character.IsPlayer]" - - texture = "gfx/interface/icons/map_coa/icon_player.dds" - framesize = { 156 156 } - frame = 3 - - position = { 0 -14 } - size = { 72 72 } - parentanchor = center - } - - coa_title_small_crown = { - parentanchor = center - blockoverride "coa_button" { - onclick = "[OpenAdminVassalDetailView( Title.Self )]" - } - } - - text_single = { - visible = "[Title.GetHolder.GetVassalContract.IsValid]" - position = { 10 10 } - text = "ADMIN_WINDOW_THEME_ADMINISTRATION_TYPE_TEXT_ICON" - max_width = 90 - fontsize = 18 - } - } - - tooltipwidget = { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" { - margin_top = -4 - - coa_title_small_crown = { - size = { 40 50 } - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - blockoverride "title_text" { - text = "[Title.GetNameWithUnderlyingNoTooltip|U]" - } - - blockoverride "subheading" { - text_single = { - layoutpolicy_horizontal = expanding - } - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - text_single = { - layoutpolicy_horizontal = expanding - text = "[ObligationLevel.GetName]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ADMIN_VASSAL_MAP_MODE_TT_EFFICIENCY" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ADMIN_VASSAL_MAP_MODE_TT_TAXES" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ADMIN_VASSAL_MAP_MODE_TT_TROOPS" - } - } - } - } - } -} - - -### Activity planner -widget = { - name = "activity_planner_widget" - - datacontext = "[ActivityPlannerMapIcon.GetProvince]" - datacontext = "[ActivityPlannerMapIcon.GetActivityType]" - datacontext = "[ActivityPlannerMapIcon.GetTravelDangerData]" - datacontext = "[ActivityPlannerMapIcon.GetTravelPointsOfInterestData]" - - allow_outside = yes - - flowcontainer = { - widgetanchor = bottom|hcenter - - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - widget_character_icon = { - name = "current_location" - - parentanchor = hcenter - - datacontext = "[GetPlayer]" - visible = "[ActivityPlannerMapIcon.IsCurrentLocation]" - - size = { 84 95 } - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 67 76 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - widget_provisions_low = { - visible = "[ActivityPlannerMapIcon.HasTravelProvisionsLow]" - parentanchor = center - } - - widget_provisions_critical = { - visible = "[ActivityPlannerMapIcon.HasTravelProvisionsCritical]" - parentanchor = center - } - - container_travel_danger = { - name = "travel_danger" - visible = "[And( ActivityPlannerMapIcon.HasTravelDanger, Not( ActivityPlannerMapIcon.IsSelectedDestination ) )]" - parentanchor = center - } - - widget_travel_points_of_interest = { - visible = "[ActivityPlannerMapIcon.HasTravelPointsOfInterest]" - } - - # Activity related icons - flowcontainer = { - visible = "[Or(ActivityPlannerMapIcon.CanSelectDestination, ActivityPlannerMapIcon.IsSelectedDestination )]" - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - parentanchor = hcenter - - # Icon at your current capital - icon = { - name = "realm_capital_icon" - visible = "[ActivityPlannerMapIcon.IsCapital]" - parentanchor = hcenter - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - - tooltip = "REALM_CAPITAL_TOOLTIP" - - background = { - using = Background_Area_Dark - alpha = 0.9 - margin_top = -9 - margin_right = -3 - margin_left = -3 - margin_bottom = 3 - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - } - - # Character pin of province holder (only for 'holder' type activity planners) - widget_character_icon = { - datacontext = "[Province.GetTitle.GetHolder]" - visible = "[And( ActivityPlannerMapIcon.IsSelectingDestinations, And( ActivityType.IsPlannerType('holder'), And( LessThan_int32( GetZoomLevel, '(int32)16' ), And( Character.IsValid, Not( Character.IsPlayer ) ) ) ) )]" - - parentanchor = hcenter - size = { 56 63 } - - state = { - name = "map_zoom_close" - size = { 56 63 } - duration = 0.25 - alpha = 1 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 42 48 } - duration = 0.25 - alpha = 0 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - # Holder opinion of you - button = { - datacontext = "[Province.GetTitle.GetHolder]" - visible = "[And( ActivityPlannerMapIcon.IsSelectingDestinations, And( ActivityType.IsPlannerType('holder'), And( Character.IsValid, Not( Character.IsPlayer ) ) ) )]" - - parentanchor = hcenter - allow_outside = yes - - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - size = { 70 20 } - - portrait_opinion = { - parentanchor = hcenter - - vassal_stance_icon = { - visible = "[And( Character.IsVassalOf( GetPlayer ), LessThan_int32( GetZoomLevel, '(int32)14' ) )]" - name = "vassal_stance" - size = { 20 20 } - } - - portrait_status_icons = { - visible = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - blockoverride "direction" { - direction = horizontal - } - } - } - } - - # Name of province - text_label_center = { - allow_outside = yes - visible = "[And(ActivityType.IsPlannerType('province'), Not(EqualTo_string( ActivityType.GetKey(), 'activity_journey')))]" - - parentanchor = hcenter - text = "[Province.GetNameNoTooltip]" - } - - # Name of special building - text_label_center = { - allow_outside = yes - visible = "[And(ActivityType.IsPlannerType('province'), EqualTo_string( ActivityType.GetKey(), 'activity_journey') )]" - - parentanchor = hcenter - text = "[Province.GetHolding.GetSpecialBuildingType.GetName]" - } - - # Special building skills - text_label_center = { - allow_outside = yes - visible = "[And(ActivityType.IsPlannerType('province'), EqualTo_string( ActivityType.GetKey(), 'activity_journey') )]" - - parentanchor = hcenter - text = "[Province.Custom('GetSpecialBuildingDiplomacySkill')][Province.Custom('GetSpecialBuildingMartialSkill')][Province.Custom('GetSpecialBuildingLearningSkill')][Province.Custom('GetSpecialBuildingStewardshipSkill')][Province.Custom('GetSpecialBuildingIntrigueSkill')]" - } - - # Activity Type Pin - button = { - size = { 43 46 } - parentanchor = hcenter - - visible = "[Or( ActivityType.IsPlannerType('province'), Or( Not( ActivityPlannerMapIcon.IsSelectingDestinations ), Not( ActivityPlannerMapIcon.IsSelectedDestination ) ) )]" - - state = { - name = "map_zoom_close" - size = { 86 92 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 57 62 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - icon = { - visible = "[ActivityType.IsGrandActivity]" - texture = "gfx/interface/window_activities/pin_grand_activity_location.dds" - size = { 100% 100% } - } - - icon = { - visible = "[Not( ActivityType.IsGrandActivity )]" - texture = "gfx/interface/window_activities/pin_activity_location.dds" - size = { 100% 100% } - } - - tooltip = "[ActivityPlannerMapIcon.GetProvinceTooltip]" - - onclick = "[ActivityPlannerMapIcon.OnClick]" - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[Province.GetTerrain.GetIcon]" - size = { 38 38 } - position = { 0 -5 } - - visible = "[EqualTo_string( ActivityType.GetKey(), 'activity_roaming')]" - - state = { - name = "map_zoom_close" - size = { 52 52 } - position = { 0 -5 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 33 33 } - position = { 0 -3 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[Province.GetHolding.GetSpecialBuildingType.GetTypeIcon]" - size = { 44 38 } - position = { 0 -5 } - #mipmaplodbias = -1 - - visible = "[EqualTo_string( ActivityType.GetKey(), 'activity_journey')]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - - state = { - name = "map_zoom_close" - size = { 44 38 } - position = { 0 -8 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 28 24 } - position = { -1 -4 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[Province.GetHolding.GetPrimaryBuildingType.GetTypeIcon]" - size = { 44 38 } - position = { 0 -5 } - #mipmaplodbias = -1 - - visible = "[EqualTo_string( ActivityType.GetKey(), 'activity_coronation')]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - - state = { - name = "map_zoom_close" - size = { 44 38 } - position = { 0 -8 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 28 24 } - position = { -1 -4 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[ActivityType.GetIcon]" - size = { 38 38 } - position = { 0 -5 } - - visible = "[And(And(Not(EqualTo_string( ActivityType.GetKey(), 'activity_journey')), Not(EqualTo_string( ActivityType.GetKey(), 'activity_roaming'))), Not(EqualTo_string( ActivityType.GetKey(), 'activity_coronation')))]" - - state = { - name = "map_zoom_close" - size = { 38 38 } - position = { 0 -5 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 25 25 } - position = { 0 -3 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - } - } - } -} - -flowcontainer_realm_capital = { - name = "realm_capital_small_widget" - widgetanchor = center - allow_outside = yes - - blockoverride "capital_datacontext" { - datacontext = "[CapitalMapIcon.GetOwner]" - } -} - -### TRAVEL PROVINCE -widget = { - name = "travel_province_widget" - widgetanchor = center - - datacontext = "[TravelProvinceMapIcon.GetDangerData]" - datacontext = "[TravelProvinceMapIcon.GetPointsOfInterestData]" - - allow_outside = yes - - flowcontainer = { - parentanchor = bottom|hcenter - direction = vertical - allow_outside = yes - ignoreinvisible = yes - - widget_character_icon = { - name = "current_location" - - parentanchor = hcenter - - datacontext = "[GetPlayer]" - visible = "[TravelProvinceMapIcon.IsCurrentLocation]" - - size = { 84 95 } - - state = { - name = "map_zoom_close" - size = { 84 95 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 67 76 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - container_travel_danger = { - visible = "[TravelProvinceMapIcon.HasDanger]" - parentanchor = hcenter - } - - widget_travel_points_of_interest = { - visible = "[TravelProvinceMapIcon.HasPointsOfInterest]" - } - - ### Push widgets up when zoomed in - widget = { - size = { 2 0 } - - state = { - name = "map_zoom_0" - size = { 2 55 } - duration = 0.25 - } - - state = { - name = "map_zoom_1" - size = { 2 35 } - duration = 0.25 - } - - state = { - name = "map_zoom_2" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_3" - size = { 2 20 } - duration = 0.25 - } - - state = { - name = "map_zoom_4" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_5" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_6" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_7" - size = { 2 0 } - duration = 0.25 - } - - state = { - name = "map_zoom_8" - size = { 2 0 } - duration = 0.25 - } - } - } - - widget_provisions_low = { - visible = "[TravelProvinceMapIcon.HasTravelProvisionsLow]" - parentanchor = bottom|hcenter - position = { 0 35 } - } - - widget_provisions_critical = { - visible = "[TravelProvinceMapIcon.HasTravelProvisionsCritical]" - parentanchor = bottom|hcenter - position = { 0 35 } - } -} - -### Unique building -flowcontainer = { - name = "unique_building_widget" - ignoreinvisible = yes - widgetanchor = center - position = { 0 -10 } - - background = { - using = Background_Area_Dark_Border - margin_top = 1 - margin_bottom = 4 - margin_right = 3 - margin_left = 3 - } - datacontext = "[UniqueBuildingIcon]" - datacontext = "[UniqueBuildingIcon.GetBuildingType]" - - tooltip = "MAP_ICON_UNIQUE_BUILDING" - - icon_building = { - name = "possible_building" - visible = "[Not( UniqueBuildingIcon.IsBuilt )]" - size = { 50 50 } - texture = "[Building.GetTypeIcon]" - - alpha = "[Select_float( UniqueBuildingIcon.CanConstruct, '(float)1.0', '(float)0.5' )]" - - - } - - highlight_icon_building = { - name = "constructed_building" - visible = "[UniqueBuildingIcon.IsBuilt]" - size = { 50 50 } - texture = "[Building.GetTypeIcon]" - - alpha = "[Select_float( UniqueBuildingIcon.IsEnabled, '(float)1.0', '(float)0.5' )]" - } -} - -# Great building -flowcontainer = { - name = "great_building_widget" - ignoreinvisible = yes - - background = { - using = Background_Area_Dark_Border - margin_top = 1 - margin_bottom = 4 - margin_right = 3 - margin_left = 3 - } - datacontext = "[GreatBuildingIcon]" - datacontext = "[GreatBuildingIcon.GetBuildingType]" - - tooltip = "MAP_ICON_GREAT_BUILDING" - - icon_building = { - name = "possible_building" - visible = "[Not( GreatBuildingIcon.IsBuilt )]" - size = { 50 50 } - texture = "[Building.GetTypeIcon]" - alpha = "[Select_float( GreatBuildingIcon.CanConstruct, '(float)1.0', '(float)0.5' )]" - } - - highlight_icon_building = { - name = "constructed_building" - visible = "[GreatBuildingIcon.IsBuilt]" - size = { 50 50 } - texture = "[Building.GetTypeIcon]" - alpha = "[Select_float( GreatBuildingIcon.IsEnabled, '(float)1.0', '(float)0.5' )]" - enabled = "[GreatBuildingIcon.IsEnabled]" - } -} - -### MIGRATION -widget = { - name = "migration_widget" - allow_outside = yes - - datacontext = "[MigrationMapIcon.GetTitle]" - - - migration_target_flowcontainer = { - parentanchor = bottom|hcenter - } -} - -types MapIcons -{ - type button_group_court_language_data = button_group - { - onclick = "[OpenGameViewData( 'language', CulturePillar.Self )]" - tooltip = "COURT_LANGUAGE_OPEN_VIEW_TOOLTIP" - - vbox = { - set_parent_size_to_minimum = yes - margin ={ 20 0 } - margin_bottom = 5 - - - background = { - using = Background_Area_Dark - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - text_label_center = { - text = "COURT_LANGUAGE_NAME" - default_format = "#high" - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - align = center - } - } - - text_single = { - text = "IS_NATIVE_LANGUAGE" - visible = "[ObjectsEqual( Culture.GetLanguage, CulturePillar.Self )]" - } - - hbox = { - margin_left = -4 - icon_culture_pillar = { - name = "grandeur_icon" - texture = "gfx/interface/window_roco_grandeur/icon_grandeur.dds" - size = { 40 40 } - } - text_grandeur_from_language = { - margin_bottom = 8 - } - } - } - } - - type animations_map_coa = widget { - size = { 10 10 } - - icon = { - name = "at_war_anim" - visible = "[CapitalMapIcon.IsAtWarWithMe]" - - parentanchor = center - texture = "gfx/interface/icons/map_coa/at_war_icon.dds" - size = { 95% 95% } - - modify_texture = { - name = anim_mask1 - texture = "gfx/interface/icons/map_coa/at_war_mask.dds" - blend_mode = alphamultiply - - } - - modify_texture = { - name = anim_mask2 - texture = "gfx/interface/icons/map_coa/at_war_mask.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = overlay - texture = "gfx/interface/icons/map_coa/at_war_effect.dds" - blend_mode = colordodge - } - - state = { - name = a - next = b - duration = 0.0 - trigger_on_create = yes - - modify_texture = { - name = anim_mask1 - translate_uv = {0 0 } - } - - modify_texture = { - name = anim_mask2 - translate_uv = {0 -1 } - } - } - - state = { - name = b - next = a - duration = 10 - - modify_texture = { - name = anim_mask1 - translate_uv = {0 1 } - } - - modify_texture = { - name = anim_mask2 - translate_uv = {0 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0 0 } - } - } - - state = { - name = right - next = left - - duration = 7 - - modify_texture = { - name = overlay - translate_uv = {0 1 } - } - } - - state = { - name = left - next = right - duration = 0.0 - delay = 0 - - modify_texture = { - name = overlay - translate_uv = {0 -0.6 } - } - } - } - - icon = { - name = "ally_war_anim" - - block "visible_ally" { - visible = "[CapitalMapIcon.IsMyAllyInWar]" - } - - parentanchor = center - texture = "gfx/interface/icons/map_coa/ally_icon.dds" - size = { 100% 100% } - - modify_texture = { - name = overlay - texture = "gfx/interface/icons/map_coa/ally_effect.dds" - blend_mode = colordodge - rotate_uv = 0 - } - - state = { - name = right - next = left - - duration = 15 - - modify_texture = { - name = overlay - rotate_uv = 360 - } - } - - state = { - name = left - next = right - - duration = 0 - delay = 0 - - - modify_texture = { - name = overlay - rotate_uv = 0 - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - rotate_uv = 0 - } - } - - modify_texture = { - name = overlay2 - texture = "gfx/interface/icons/map_coa/ally_effect.dds" - blend_mode = colordodge - rotate_uv = 0 - } - - state = { - name = right2 - next = left2 - - duration = 15 - - modify_texture = { - name = overlay2 - rotate_uv = -360 - } - } - - state = { - name = left2 - next = right2 - - duration = 0 - delay = 0 - - - modify_texture = { - name = overlay2 - rotate_uv = 0 - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay2 - rotate_uv = 0 - } - } - } - } - - type coa_realm_map_big = widget { - size = { 70 110 } - - container = { - parentanchor = center - scale = 1 - - state = { - name = "map_zoom_close" - scale = 1 - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - scale = 0.8 - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - animations_map_coa = { - name = "animations" - parentanchor = center - position = { 0 -35 } - size = { 120 110 } - } - - icon = { - name = "ally_war_icon" - visible = "[CapitalMapIcon.IsMyAlly]" - parentanchor = center - position = { -8 -30 } - - size = { 72 78 } - texture = "gfx/interface/icons/map_coa/icon_ally.dds" - } - - icon = { - name = "at_war_icon" - visible = "[CapitalMapIcon.IsAtWarWithMe]" - parentanchor = center - position = { 0 -20 } - size = { 80 80 } - texture = "gfx/interface/icons/map_coa/icon_at_war_big.dds" - } - - - icon = { - name = "player_icon" - visible = "[CapitalMapIcon.GetOwner.IsPlayer]" - - texture = "gfx/interface/icons/map_coa/icon_player.dds" - framesize = { 156 156 } - frame = 4 - - position = { 0 -6 } - size = { 100 100 } - parentanchor = center - } - - coa_realm_medium_crown = { - parentanchor = center - } - - ### Tributary Icon - widget = { - visible = "[Character.HasSuzerain]" - visible_at_creation = no - parentanchor = bottom|hcenter - position = { 20 -7 } - size = { 24 24 } - - icon = { - name = "tributary_settled" - visible = "[And( Not( IsNomad( Character )), Not( IsHerder( Character ) ) )]" - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/tributary_settled_map_icon.dds" - } - - icon = { - name = "tributary_nomadic" - visible = "[Or(IsNomad( Character ), IsHerder( Character ))]" - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/tributary_nomadic_map_icon.dds" - } - } - } - } - - type coa_realm_map_medium = widget { - size = { 55 80 } - - - container = { - parentanchor = center - scale = 1 - - state = { - name = "map_zoom_close" - scale = 1 - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - scale = 0.8 - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - - animations_map_coa = { - name = "animations" - parentanchor = center - position = { 0 -25 } - size = { 85 80 } - } - - icon = { - name = "ally_war_icon" - visible = "[CapitalMapIcon.IsMyAlly]" - parentanchor = center - position = { -6 -21 } - - size = { 60 63 } - texture = "gfx/interface/icons/map_coa/icon_ally.dds" - } - - icon = { - name = "at_war_icon" - visible = "[CapitalMapIcon.IsAtWarWithMe]" - parentanchor = center - position = { 0 -20 } - size = { 55 55 } - texture = "gfx/interface/icons/map_coa/icon_at_war_big.dds" - } - - icon = { - name = "player_icon" - visible = "[CapitalMapIcon.GetOwner.IsPlayer]" - - texture = "gfx/interface/icons/map_coa/icon_player.dds" - framesize = { 156 156 } - frame = 3 - - position = { 0 -14 } - size = { 72 72 } - parentanchor = center - } - - coa_realm_small_crown = { - parentanchor = center - position = { 0 -5 } - } - - ### Tributary Icon - widget = { - visible = "[Character.HasSuzerain]" - visible_at_creation = no - parentanchor = bottom|hcenter - position = { 15 -11 } - size = { 20 20 } - - icon = { - name = "tributary_settled" - visible = "[And( Not( IsNomad( Character )), Not( IsHerder( Character ) ) )]" - parentanchor = center - size = { 20 20 } - texture = "gfx/interface/icons/tributary_settled_map_icon.dds" - } - - icon = { - name = "tributary_nomadic" - visible = "[Or(IsNomad( Character ), IsHerder( Character ))]" - parentanchor = center - size = { 20 20 } - texture = "gfx/interface/icons/tributary_nomadic_map_icon.dds" - } - } - } - } - - type coa_realm_map_small = widget { - size = { 40 50 } - - animations_map_coa = { - name = "animations" - parentanchor = center - position = { 1 -15 } - size = { 60 65 } - } - - icon = { - name = "ally_war_icon" - visible = "[CapitalMapIcon.IsMyAlly]" - parentanchor = center - position = { -4 -15 } - - size = { 42 42 } - texture = "gfx/interface/icons/map_coa/icon_ally.dds" - } - - icon = { - name = "at_war_icon" - visible = "[CapitalMapIcon.IsAtWarWithMe]" - parentanchor = center - position = { 0 -5 } - size = { 40 40 } - texture = "gfx/interface/icons/map_coa/icon_at_war_big.dds" - } - - icon = { - name = "player_icon" - visible = "[CapitalMapIcon.GetOwner.IsPlayer]" - - texture = "gfx/interface/icons/map_coa/icon_player.dds" - framesize = { 156 156 } - frame = 2 - - position = { 0 -7 } - size = { 48 48 } - parentanchor = center - } - - coa_realm_tiny_crown = { - parentanchor = center - } - - ### Tributary Icon - widget = { - visible = "[Character.HasSuzerain]" - visible_at_creation = no - parentanchor = bottom|right - position = { -3 2 } - size = { 16 16 } - - icon = { - name = "tributary_settled" - visible = "[And( Not( IsNomad( Character )), Not( IsHerder( Character ) ) )]" - parentanchor = center - size = { 16 16 } - texture = "gfx/interface/icons/tributary_settled_map_icon.dds" - } - - icon = { - name = "tributary_nomadic" - visible = "[Or(IsNomad( Character ), IsHerder( Character ))]" - parentanchor = center - size = { 16 16 } - texture = "gfx/interface/icons/tributary_nomadic_map_icon.dds" - } - } - } - - ### Holding - type flowcontainer_holding_info = flowcontainer { - datacontext = "[ProvinceIcon.GetHolding]" - direction = vertical - ignoreinvisible = yes - tooltipwidget = { holding_tooltip = {} } - allow_outside = yes - - # widget = { - # coa_realm_map_small = { - # datacontext = "[Title.GetLessee]" - # # visible = "[And(Title.IsLeasedOut,Title.GetLessee.GetPrimaryTitle.IsHolyOrder)]" - - # position = { 30 0 } - - # tooltip = "[holy_order|E]" - # alwaystransparent = no - # widgetanchor = bottom|left - # allow_outside = yes - # } - # } - - flowcontainer = { - parentanchor = hcenter - allow_outside = yes - margin_top = -6 - - container = { - name = "name_banner" - - icon = { - size = { 100% 36 } - texture = "gfx/interface/icons/banners/banner_blue_center.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - spriteborder_right = 114 - texture_density = 4 - using = Holding_Mouse_Entry - } - - flowcontainer = { - margin_left = 25 - margin_right = 25 - ignoreinvisible = yes - - button_group = { - onclick = "[ToggleGameViewData( 'holding_view', Holding.GetProvince )]" - - hbox = { - set_parent_size_to_minimum = yes - - spacer = { - size = { 20 20 } - } - - text_single = { - snap_to_pixels = no - - text = "[ProvinceIcon.GetTitle.GetNameNoTierNoTooltip]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - fontsize = 17 - margin_top = 8 - } - - widget = { - name = "tutorial_highlight_capital_holding" - size = { 30 30 } - tooltip = "REALM_CAPITAL_TOOLTIP" - visible = "[ProvinceIcon.GetCapitalIcon.IsRealmCapital]" - - icon = { - name = "realm_capital_icon" - parentanchor = left|vcenter - position = { 0 4 } - size = { 30 30 } - framesize = { 60 60 } - texture = "gfx/interface/icons/icon_capital.dds" - frame = 2 - } - } - - spacer = { - size = { 20 20 } - } - } - } - } - } - - widget = { - allow_outside = yes - flowcontainer_unit_items = { - allow_outside = yes - visible = "[ProvinceIcon.HasUnits]" - } - } - } - - widget = { - visible = "[And( Not( Holding.GetHolder.IsAtWar ), ProvinceIcon.HasHoldingDetails )]" - parentanchor = hcenter - size = { 150 28 } - allow_outside = yes - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 50 0 } - margin_top = 20 - margin_bottom = 20 - alpha = 0.6 - } - - flowcontainer = { - name = "holding_info" - parentanchor = center - ignoreinvisible = yes - allow_outside = yes - - widget = { - allow_outside = yes - - flowcontainer = { - position = { -10 0 } - widgetanchor = right - ignoreinvisible = yes - - icon = { - visible = "[Holding.CanConstructAnyBuilding(GetPlayer)]" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/county_building_available.dds" - tooltip = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" - } - - icon = { - visible = "[Holding.IsLowControl]" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/county_low_control.dds" - tooltip = "MY_REALM_WINDOW_MAP_ICON_LOW_CONTROL" - } - } - } - - flowcontainer = { - visible = "[Holding.GetType.HasParameter('county_fertility')]" - - spacing = 3 - - icon = { - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_county_fertility.dds" - } - - text_single = { - name = "county_fertility_text" - snap_to_pixels = no - text = "[Holding.GetProvince.GetCounty.GetCountyFertility|1]" - default_format = "#high" - align = nobaseline - fontsize = 17 - } - } - - spacer = { - size = { 10 10 } - } - - flowcontainer = { - visible = "[Or( Not( Holding.GetType.HasParameter('no_buildings') ), And( Holding.GetType.HasParameter('no_buildings'), Holding.GetProvince.IsRealmCapital ) )]" - - spacing = 3 - - icon = { - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "tax_text" - snap_to_pixels = no - text = "[Holding.GetIncome|1]" - default_format = "#high" - align = nobaseline - fontsize = 17 - } - } - - spacer = { - size = { 10 10 } - } - - flowcontainer = { - visible = "[Not( Holding.GetType.HasParameter( 'no_levies' ) )]" - - spacing = 3 - - icon = { - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "levies_text" - snap_to_pixels = no - text = "[Holding.GetMaxLevySize]" - default_format = "#high" - align = nobaseline - fontsize = 17 - } - } - } - } - - widget = { - parentanchor = hcenter - visible = "[And( Holding.GetHolder.IsAtWar, ProvinceIcon.HasHoldingDetails )]" - - #using = Animation_MapIcon_Fade - #blockoverride "icon_size" - #{ - size = { 150 28 } - #} - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 50 0 } - margin_top = 15 - margin_bottom = 20 - alpha = 0.6 - } - - flowcontainer = { - name = "holding_info_war" - parentanchor = center - ignoreinvisible = yes - - widget = { - flowcontainer = { - position = { -10 0 } - widgetanchor = right - ignoreinvisible = yes - - icon = { - visible = "[Holding.CanConstructAnyBuilding(GetPlayer)]" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/county_building_available.dds" - tooltip = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" - } - - icon = { - visible = "[Holding.IsLowControl]" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/county_low_control.dds" - tooltip = "MY_REALM_WINDOW_MAP_ICON_LOW_CONTROL" - } - } - } - - flowcontainer = { - spacing = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/text_icons/icon_holding.dds" - } - - text_single = { - name = "fort_text" - datacontext = "[ProvinceIcon.GetProvince]" - visible = "[Province.HasFort]" - snap_to_pixels = no - - text = "[Province.GetFortLevel]" - default_format = "#high" - align = nobaseline - fontsize = 17 - } - } - - spacer = { - size = { 10 10 } - } - - flowcontainer = { - spacing = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_garrison.dds" - } - - text_single = { - name = "garrison_text" - snap_to_pixels = no - - text = "[Holding.GetCurrentGarrisonSize]" - default_format = "#high" - align = nobaseline - fontsize = 17 - } - } - } - } - } - - ### CHARACTER - type widget_character_icon = widget { - button = { - name = "portrait_pin" - parentanchor = bottom|hcenter - - texture = "gfx/interface/icons/map_icons/portrait_pin.dds" - # Using percentages so it's relative to the size of the top widget - size = { 100% 100% } - - tooltip = "[Character.GetLocationDesc]" - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 20 20 } - alpha = 0.5 - } - - block "widget_character_icon_overrides" { } - - portrait_button = { - parentanchor = bottom|hcenter - # Using percentages so it's relative to the size of the top widget - size = { 95% 105% } - using = portrait_base - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_shoulders', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_map.dds" - effectname = "NoHighlight" - - using = Portrait_Background_Glows - - block "portrait_button_properties" { } - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - parentanchor = center - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_shoulders.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_map.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - - type button_rally_point = button_normal { - name = "rally_point_button" - size = { 34 34 } - texture = "gfx/interface/window_military/banner_icon.dds" - tintcolor = "[RallyPoint.GetIconColor]" - - block "rally_point_click" { - onclick = "[RallyPointMapIcon.OnClick]" - } - - tooltip = "RP_TOOLTIP_CLICK" - } - - type flowcontainer_active_tasks = flowcontainer { - spacing = 6 - margin = { 5 5 } - - item = { - icon = { - visible = "[Not( ActiveCouncilTask.IsFrozen )]" - texture = "gfx/interface/icons/map_icons/map_council_task_base.dds" - size = { 52 52 } - - tooltipwidget = { - container = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - layoutpolicy_horizontal = preferred - alwaystransparent = no - flowcontainer = { - layoutpolicy_horizontal = preferred - ignoreinvisible = yes - text_single = { - name = "frozen" - margin = { 12 12 } - margin_top = 3 - - text = ACTIVE_COUNCIL_TASK_FROZEN_TT - visible = "[ActiveCouncilTask.IsFrozen]" - } - - council_task_map_icon_tooltip_widget = { - name = "active" - visible = "[Not( ActiveCouncilTask.IsFrozen )]" - } - } - } - } - - progresspie = { - name = "progress" - parentanchor = center - size = { 46 46 } - texture = "gfx/interface/progressbars/action_progress_thick.dds" - framesize = { 128 128 } - frame = 2 - value = "[ActiveCouncilTask.GetProgressPie]" - min = 0 - max = 1 - } - - button_normal = { - name = "council_task" - parentanchor = center - alwaystransparent = no - texture = "[ActiveCouncilTask.GetTaskAsset.GetTaskIcon]" - framesize = { 140 140 } - size = { 38 38 } - onclick = "[ProvinceIcon.OnActiveTaskClick( ActiveCouncilTask.Self )]" - } - - highlight_icon = { - name = "inactive" - parentanchor = center - size = { 15 15 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - visible = "[ActiveCouncilTask.IsFrozen]" - } - } - } - } - - - ### Brief: widget_lobby_helper_landless_ruler_count - # - # Needs datacontext: - # Province - # The Province being checked. - # LobbyHelperWindow - # Has access to the helper functions needed for filtering. - # - type widget_lobby_helper_landless_ruler_count = widget { - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - background = { - texture = "gfx/interface/icons/icon_bg_small.dds" - } - - text_single = { - parentanchor = center - - text = lobby_more_domiciles_count - align = center - default_format = "#strong_glow;high" - - using = Font_Size_Small - } - } - - type widget_landless_ruler_pin = widget_character_icon - { - allow_outside = yes - block "pins_size" - { - size = { 67 76 } - } - - blockoverride "widget_character_icon_overrides" - { - visible = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - blockoverride "portrait_button_properties" - { - using = tooltip_se - } - - icon = { - size = { 32 32 } - position = { 0 -16 } - parentanchor = top|hcenter - visible = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - - texture = "[Character.GetGovernment.GetIcon]" - } - - coa_realm_tiny = { - parentanchor = bottom|left - - using = tooltip_se - } - } - - type domicile_location_icon = widget - { - name = "domicile_map_icon" #lesson_china_open_estate uses this - datacontext = "[GetPlayer]" - size = { 96 96 } - - allow_outside = yes - alwaystransparent = no - - tooltip = "[Domicile.GetMapPinTooltip( Character.Self )]" - tooltip_widgetanchor = bottom - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Toggle( 'open_camp_contextual_buttons' )]" - on_finish = "[GetVariableSystem.Toggle( 'open_camp_contextual_buttons' )]" - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( 'open_camp_contextual_buttons' )]" - } - - state = { - name = "map_zoom_close" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 104 104 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)16' )]" - } - - state = { - name = "map_zoom_far" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 80 80 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)15' )]" - } - - ### Chinese Estate widget - widget = { - parentanchor = vcenter - size = { 240 80 } - position = { 60 0 } - visible = "[And(Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government' ),Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ),GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))),Or(LessThan_int32( GetZoomLevel, '(int32)4' ),GetVariableSystem.Exists( 'open_camp_contextual_buttons' )))]" - - background = { - using = Background_Area_Dark - } - - state = { - name = _hide - position = { 40 0 } - alpha = 0 - duration = 0.25 - } - - state = { - name = _show - position = { 60 0 } - alpha = 1 - duration = 0.25 - } - - - widget = { - size = { 204 80 } - position = { 36 0 } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 8 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - margin = { 0 4 } - margin_top = 7 - margin_left = 36 - using = Background_Area_Dark - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Domicile.GetName|U]" - align = nobaseline - snap_to_pixels = no - } - } - - text_multi = { - visible = "[Domicile.IsConstructing]" - layoutpolicy_horizontal = expanding - text = "[Domicile.GetConstructionStatusText]" - align = nobaseline - autoresize = yes - max_width = 204 - max_height = 50 - snap_to_pixels = no - } - - text_single = { - visible = "[Domicile.CanUpgradeMain]" - layoutpolicy_horizontal = expanding - text = "[Domicile.GetUpgradeMainText]" - default_format = "#P" - max_width = 204 - snap_to_pixels = no - } - - vbox = { - visible = "[Not(Or(Domicile.IsConstructing,Domicile.CanUpgradeMain))]" - layoutpolicy_horizontal = expanding - spacing = -4 - margin_top = 2 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - ### Overview Resources Gold - hbox = { - spacing = 4 - - tooltip = "[Domicile.GetGoldResourceTooltip]" - using = tooltip_ws - - icon = { - name = "gold_icon" - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - snap_to_pixels = no - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - snap_to_pixels = no - } - } - - ### Overview Resources Influence - hbox = { - visible = "[IsAdministrativeRuler( GetPlayer )]" - spacing = 4 - - tooltip = "[Domicile.GetInfluenceResourceTooltip]" - using = tooltip_ws - - icon = { - name = "influence_icon" - size = { 25 25 } - texture = "[GetPlayer.GetInfluenceLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - snap_to_pixels = no - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - snap_to_pixels = no - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - ### Overview Resources Prestige - hbox = { - spacing = 4 - - tooltip = "[Domicile.GetPrestigeResourceTooltip]" - using = tooltip_ws - - icon = { - name = "prestige_icon" - size = { 25 25 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - snap_to_pixels = no - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - snap_to_pixels = no - } - } - - ### Overview Resources Piety - hbox = { - spacing = 4 - - tooltip = "[Domicile.GetPietyResourceTooltip]" - using = tooltip_ws - - icon = { - name = "piety_icon" - size = { 25 25 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - snap_to_pixels = no - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - snap_to_pixels = no - } - } - - expand = {} - } - } - expand = {} - } - } - } - - ### Glow animation when construction completed - icon = { - datacontext = "[GetPlayer.GetDomicile]" - visible = "[Domicile.ShowBuildingNotification]" - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/colors/white.dds" - - using = Color_Bright_Yellow - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - ### Glow shine animation - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.5 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 15 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - ### Map pin graphics - button = { - size = { 100% 100% } - name = "domicile_map_icon" - onclick = "[ToggleGameViewData( 'domicile', GetPlayer.GetDomicile )]" - - ### Domicile pin background - highlight_icon = { - visible = "[Not(Or(Or(GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ),GetPlayer.GetGovernment.IsType( 'japan_administrative_government' )),Or(IsNomad( GetPlayer ),Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),GetPlayer.GetGovernment.IsType( 'meritocratic_government' )))))]" - parentanchor = center - size = { 75% 75% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_background.dds" - } - - highlight_icon = { - visible = "[Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),GetPlayer.GetGovernment.IsType( 'meritocratic_government' ))]" - parentanchor = center - size = { 75% 75% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_background_china.dds" - } - - highlight_icon = { - visible = "[Or(GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ),GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ))]" - parentanchor = center - size = { 75% 75% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_background_japan.dds" - } - - highlight_icon = { - visible = "[IsNomad( GetPlayer )]" - parentanchor = center - size = { 75% 75% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_background_nomad.dds" - } - - ### Arrow Pointer - highlight_icon = { - visible = "[And(Not(Or(IsNomad( GetPlayer ),Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),GetPlayer.GetGovernment.IsType( 'meritocratic_government' )))),Domicile.GetType.HasMapPinAnchor( 'up' ) )]" - parentanchor = bottom|hcenter - size = { 75% 22% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_arrow.dds" - } - - highlight_icon = { - visible = "[And(Or(GetPlayer.GetGovernment.IsType( 'celestial_government' ),GetPlayer.GetGovernment.IsType( 'meritocratic_government' )),Domicile.GetType.HasMapPinAnchor( 'up' ) )]" - parentanchor = bottom|hcenter - size = { 75% 22% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_arrow_china.dds" - } - - highlight_icon = { - visible = "[And( IsNomad( GetPlayer ), Domicile.GetType.HasMapPinAnchor( 'up' ) )]" - parentanchor = bottom|hcenter - size = { 75% 22% } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_arrow_nomad.dds" - } - - ### Domicile type icon - highlight_icon = { - datacontext = "[GetPlayer.GetDomicile]" - parentanchor = center - position = { 0 -3 } - size = { 38% 38% } - - alwaystransparent = yes - - texture = "[Domicile.GetType.GetMapPinTexture]" - } - - ### Domicile building construction progress - progresspie = { - name = "construction_progress_close" - datacontext = "[GetPlayer.GetDomicile]" - - visible = "[And( Domicile.IsConstructing, Not(Or(Or(IsNomad( GetPlayer ),GetPlayer.GetGovernment.IsType('celestial_government') ),Or(GetPlayer.GetGovernment.IsType('japan_administrative_government'),GetPlayer.GetGovernment.IsType('japan_feudal_government') )) ) )]" - parentanchor = center - size = { 56% 56% } - - texture = "gfx/interface/progressbars/progressbar_domicile.dds" - framesize = { 128 128 } - frame = 2 - value = "[Domicile.GetConstructionProgress]" - - min = 0 - max = 1 - } - - ### Nomad domicile building construction progress - progresspie = { - name = "construction_progress_close_nomad" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[And( Domicile.IsConstructing, IsNomad( GetPlayer ) )]" - parentanchor = center - size = { 52% 52% } - - texture = "gfx/interface/progressbars/progressbar_domicile_nomad.dds" - framesize = { 128 128 } - frame = 2 - value = "[Domicile.GetConstructionProgress]" - - min = 0 - max = 1 - } - - ### Chinese domicile building construction progress - progresspie = { - name = "construction_progress_close_china" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[And( Domicile.IsConstructing, GetPlayer.GetGovernment.IsType('celestial_government') )]" - parentanchor = center - size = { 52% 52% } - - texture = "gfx/interface/progressbars/progressbar_domicile_china.dds" - framesize = { 128 128 } - frame = 2 - value = "[Domicile.GetConstructionProgress]" - - min = 0 - max = 1 - } - - ### Japanese domicile building construction progress - progresspie = { - name = "construction_progress_close_japan" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[And( Domicile.IsConstructing, Or(GetPlayer.GetGovernment.IsType('japan_administrative_government'),GetPlayer.GetGovernment.IsType('japan_feudal_government') ))]" - parentanchor = center - size = { 52% 52% } - - texture = "gfx/interface/progressbars/progressbar_domicile_japan.dds" - framesize = { 128 128 } - frame = 2 - value = "[Domicile.GetConstructionProgress]" - - min = 0 - max = 1 - } - } - - vbox = { - layoutpolicy_vertical = expanding - position = { -60 -25 } - visible = "[GetVariableSystem.Exists( 'open_camp_contextual_buttons' )]" - allow_outside = yes - visible_at_creation = no - - state = { - name = "map_zoom_close_buttons" - position = { -64 -25 } - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far_buttons" - position = { -54 -50 } - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - button_round = { - size = { 50 50 } - name = "visit_local_settlement_decision" - datacontext = "[GetDecisionWithKey('visit_local_settlement_decision')]" - visible = "[Decision.IsShownForPlayer]" - enabled = "[Decision.IsPossibleForPlayer]" - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - using = tooltip_ws - - tooltipwidget = { - decision_tooltip = {} - } - - icon = { - parentanchor = center - size = { 50 50 } - alwaystransparent = yes - - texture = "gfx/interface/icons/travel/icon_visit_settlement.dds" - } - - background = { - alpha = 0.9 - margin = { 1.5 1.5 } - - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - } - - button_round = { - size = { 50 50 } - name = "gather_provisions_decision" - datacontext = "[GetDecisionWithKey('gather_provisions_decision')]" - visible = "[Decision.IsShownForPlayer]" - enabled = "[Decision.IsPossibleForPlayer]" - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - using = tooltip_ws - - tooltipwidget = { - decision_tooltip = {} - } - - icon = { - parentanchor = center - size = { 40 40 } - alwaystransparent = yes - - texture = "gfx/interface/icons/travel/icon_gather_provisions.dds" - } - - background = { - alpha = 0.9 - margin = { 1.5 1.5 } - - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - } - - button_round = { - size = { 50 50 } - name = "find_elder_decision" - datacontext = "[GetDecisionWithKey('find_elder_interaction')]" - visible = "[Character.IsPlayerInteractionShown('find_elder_interaction') ]" - - enabled = "[Character.GetTopLiege.IsPlayerInteractionValid('find_elder_interaction' ) ]" - onclick = "[Character.GetTopLiege.OpenPlayerInteraction( 'find_elder_interaction' )]" - tooltip = "[Character.GetTopLiege.GetPlayerInteractionTooltip( 'find_elder_interaction' )]" - - icon = { - parentanchor = center - size = { 40 40 } - alwaystransparent = yes - - texture = "gfx/interface/icons/character_interactions/find_elder_interaction.dds" - } - - background = { - alpha = 0.9 - margin = { 1.5 1.5 } - - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - } - - button_round = { - size = { 50 50 } - name = "move_camp_quick_button" - datacontext = "[GetPlayer.GetDomicile]" - visible = "[Or(GetPlayer.GetGovernment.IsType('landless_adventurer_government'),Or(GetPlayer.GetGovernment.IsType('celestial_government'),Or(GetPlayer.GetGovernment.IsType('meritocratic_government'),Or(GetPlayer.GetGovernment.IsType('japan_feudal_government'),GetPlayer.GetGovernment.IsType('japan_administrative_government')))))]" - - enabled = "[Domicile.CanMove]" - onclick = "[OpenGameView( 'move_domicile_planner' )]" - - tooltip = "[Domicile.GetType.GetMoveTooltip( Character.Self )]" - tooltip_when_disabled = "[Domicile.GetMoveTooltip]" - using = tooltip_ws - - icon = { - parentanchor = center - size = { 35 35 } - alwaystransparent = yes - - texture = "gfx/interface/icons/travel/icon_travel_hud_placeholder.dds" - } - - background = { - alpha = 0.9 - margin = { 1.5 1.5 } - - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - } - } - } - - type task_contract_location_icon = widget - { - name = "task_contract_icon" # This name is used by reactive advise - do not change it - allow_outside = yes - datacontext = "[GetPlayer]" - - state = { - name = "map_zoom_close" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 84 85 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 42 43 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - size = { 66 67 } - alwaystransparent = no - - icon = { - visible = "[Not( TaskContract.IsOpened)]" - texture = "gfx/interface/colors/white.dds" - using = Color_Bright_Yellow - size = { 100% 100% } - parentanchor = center - - ### Glow shine animation - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 1 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 15 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - ### Contract inside accept range - button = { - visible = "[Not(GetPlayer.GetGovernment.IsType('nomad_government'))]" - - size = { 100% 100% } - video_icon = { - visible = "[Not( TaskContract.IsOpened)]" - size = { 95% 95% } - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/video/header_animation.bk2" - loop = yes - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - alpha = 0.2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - alpha = 0.5 - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_contract/contract_arrow.dds" - } - - icon = { - visible = "[And( TaskContract.IsEasy, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_1.dds" - } - - icon = { - visible = "[And( TaskContract.IsEasy, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_1_crime.dds" - } - - icon = { - visible = "[And( TaskContract.IsMedium, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_2.dds" - } - - icon = { - visible = "[And( TaskContract.IsMedium, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_2_crime.dds" - } - - icon = { - visible = "[And( TaskContract.IsHard, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_3.dds" - } - - icon = { - visible = "[And( TaskContract.IsHard, TaskContract.IsCriminal )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/pin_contract_3_crime.dds" - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[TaskContract.GetType.GetIcon]" - size = { 40% 40% } - position = { 0 -2 } - } - - icon = { - visible = "[Not( TaskContract.IsOpened)]" - texture = "gfx/interface/window_contract/contract_map_pin_highlight.dds" - size = { 64% 64% } - parentanchor = center - position = { 0 -3 } - } - - onclick = "[ToggleGameViewData('task_contract', TaskContract.Self )]" - tooltip = "[TaskContract.GetName]" - using = tooltip_ne - } - - ### Nomadic Contract inside accept range - button = { - state = { - name = "map_zoom_close" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 84 85 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 45 44 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - visible = "[GetPlayer.GetGovernment.IsType('nomad_government')]" - - size = { 100% 100% } - video_icon = { - visible = "[Not( TaskContract.IsOpened)]" - size = { 95% 95% } - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/video/header_animation.bk2" - loop = yes - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - alpha = 0.2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - alpha = 0.5 - } - } - - icon = { - visible = "[And( TaskContract.IsEasy, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/nomad_pin_contract_1.dds" - } - - icon = { - visible = "[And( TaskContract.IsMedium, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/nomad_pin_contract_2.dds" - } - - icon = { - visible = "[And( TaskContract.IsHard, Not(TaskContract.IsCriminal) )]" - size = { 100% 100% } - texture = "gfx/interface/window_contract/nomad_pin_contract_3.dds" - } - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[TaskContract.GetType.GetIcon]" - size = { 40% 40% } - position = { 0 5 } - } - - icon = { - visible = "[Not( TaskContract.IsOpened)]" - texture = "gfx/interface/window_contract/contract_map_pin_highlight.dds" - size = { 65% 65% } - parentanchor = center - position = { 0 5 } - } - - onclick = "[ToggleGameViewData('task_contract', TaskContract.Self )]" - tooltip = "[TaskContract.GetName]" - using = tooltip_ne - } - } - - type activity_location_icon = widget - { - name = "activity_icon" - alwaystransparent = no - - state = { - name = "map_zoom_close" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 94 102 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - # We animate the size, and not the scale, so the flowcontainer works nicely - size = { 63 70 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - visible = "[ProvinceIcon.HasActivity]" - - size = { 94 102 } - - datacontext = "[GetPlayer]" - tooltip = "TT_ACTIVITY_WIDGET" - - button = { - size = { 100% 100% } - visible = "[Activity.IsParticipant( Character.Self )]" - - icon = { - visible = "[Activity.GetType.IsGrandActivity]" - texture = "gfx/interface/window_activities/pin_grand_activity_location.dds" - size = { 100% 100% } - } - - icon = { - visible = "[Not( Activity.GetType.IsGrandActivity )]" - texture = "gfx/interface/window_activities/pin_activity_location.dds" - size = { 100% 100% } - } - - onclick = "[Activity.OpenActivityView]" - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[Activity.GetType.GetIcon]" - size = { 40% 40% } - position = { 0 -6 } - } - } - - button = { - size = { 100% 100% } - visible = "[And( Activity.CanJoinAsGuest( Character.Self ), Not( Activity.IsParticipant( Character.Self ) ) )]" - - enabled = "[Or( LessThanOrEqualTo_int32( Activity.GetCurrentPhaseIndex, '(int32)0' ), Activity.IsInvited( Character.Self ) )]" - tooltip = "[Activity.GetInvolvementText( Character.Self, 'hud' )]" - tooltip_when_disabled = MAP_ICON_ACTIVITY_DISABLED - - icon = { - visible = "[Activity.GetType.IsGrandActivity]" - texture = "gfx/interface/window_activities/pin_grand_activity_location.dds" - size = { 100% 100% } - } - - icon = { - visible = "[Not( Activity.GetType.IsGrandActivity )]" - texture = "gfx/interface/window_activities/pin_activity_location.dds" - size = { 100% 100% } - } - - onclick = "[ToggleGameViewData( 'activity_list_detail_invite_window', Activity.Self )]" - - highlight_icon = { - parentanchor = center - alwaystransparent = yes - texture = "[Activity.GetType.GetIcon]" - size = { 40% 40% } - position = { 0 -6 } - } - - icon = { - visible = "[IsDateAfter( GetCurrentDate, ProvinceIcon.GetLatestDepartureDate )]" - size = { 33 33 } - - icon = { - size = { 42 42 } - parentanchor = center - alpha = 0.6 - - texture = "gfx/portraits/portrait_glow.dds" - - modify_texture = { - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - } - } - - alert_icon = { - size = { 33 33 } - } - - tooltip = "ACTIVITY_LIST_DETAIL_JOIN_MAY_NOT_ARRIVE_IN_TIME" - } - } - } - - type flowcontainer_warfare_status = flowcontainer { - allow_outside = yes - ignoreinvisible = yes - - block "spacer_widget" {} - - button_rally_point = { - datacontext = "[ProvinceIcon.GetRallyPoint]" - - - visible = "[And( ProvinceIcon.HasRallyPoint, Not(GetPlayer.HasActiveCompanionAISetting('raise_armies')))]" - parentanchor = vcenter - - blockoverride "rally_point_click" { - onclick = "[ProvinceIcon.OnRallyPointClick]" - } - } - - flowcontainer = { - parentanchor = vcenter - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - visible = "[ProvinceIcon.HasSiegeGroup]" - ignoreinvisible = yes - parentanchor = vcenter - margin_bottom = 25 - allow_outside = yes - - button_group_siege = { - datacontext = "[ProvinceIcon.GetSiege]" - visible = "[ProvinceIcon.HasSiege]" - parentanchor = vcenter - } - - button_group_raid = { - datacontext = "[ProvinceIcon.GetRaid]" - visible = "[And( ProvinceIcon.HasRaid, Not( ShowDetailedRaidMapIcons ) )]" - parentanchor = vcenter - } - - button_group_barter = { - datacontext = "[ProvinceIcon.GetBarter]" - visible = "[And( ProvinceIcon.HasBarter, Not( ShowDetailedBarterMapIcons ) )]" - parentanchor = vcenter - } - - icon = { - datacontext = "[ProvinceIcon.GetProvince]" - visible = "[ProvinceIcon.HasBeenRaided]" - parentanchor = vcenter - name = "recently_raided_icon" - texture = "gfx/interface/icons/map_icons/recently_raided.dds" - size = { 35 35 } - tooltip = "RECENTLY_RAIDED_TOOLTIP" - } - - icon = { - datacontext = "[ProvinceIcon.GetProvince]" - visible = "[ProvinceIcon.HasBeenBartered]" - parentanchor = vcenter - name = "recently_bartered_icon" - texture = "gfx/interface/icons/map_icons/recently_bartered.dds" - size = { 35 35 } - tooltip = "RECENTLY_BARTERED_TOOLTIP" - } - } - } - } - - type widget_combat_icon = widget { - name = "combat_widget" - datacontext = "[ProvinceIcon.GetCombatIcon]" - datacontext = "[CombatMapIcon.GetCombat]" - - button_group = { - parentanchor = hcenter - onclick = "[CombatMapIcon.OnClick]" - tooltip = "COMBAT_ON_MAP_TOOLTIP" - using = tooltip_below - - container = { - position = { 0 6 } - - button_normal = { - name = "left_side_bg" - visible = "[CombatMapIcon.LeftIsPlayer]" - texture = "gfx/interface/icons/map_icons/army_bg_me.dds" - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button_normal = { - name = "left_side_bg_ally" - visible = "[CombatMapIcon.LeftIsAlly]" - texture = "gfx/interface/icons/map_icons/army_bg_ally.dds" - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button_normal = { - name = "left_side_bg_neutral" - visible = "[CombatMapIcon.LeftIsNeutral]" - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button_normal = { - name = "left_side_bg_enemyl" - visible = "[Or( CombatMapIcon.LeftIsEnemy, CombatMapIcon.LeftIsHostile )]" - texture = "gfx/interface/icons/map_icons/army_bg_enemy.dds" - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - } - - container = { - position = { 80 6 } - - button = { - name = "right_side_bg_me" - visible = "[CombatMapIcon.RightIsPlayer]" - texture = "gfx/interface/icons/map_icons/army_bg_me.dds" - mirror = horizontal - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button = { - name = "right_side_bg_ally" - visible = "[CombatMapIcon.RightIsAlly]" - texture = "gfx/interface/icons/map_icons/army_bg_ally.dds" - mirror = horizontal - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button = { - name = "right_side_bg_neutral" - visible = "[CombatMapIcon.RightIsNeutral]" - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - mirror = horizontal - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - - button = { - name = "right_side_bg" - visible = "[Or( CombatMapIcon.RightIsEnemy, CombatMapIcon.RightIsHostile )]" - texture = "gfx/interface/icons/map_icons/army_bg_enemy.dds" - mirror = horizontal - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - } - - progressbar = { - name = "power_progressbar" - parentanchor = top|hcenter - position = { 0 30 } - size = { 150 12 } - progresstexture = "gfx/interface/progressbars/onmap_progress_blue.dds" - - noprogresstexture = "gfx/interface/progressbars/onmap_progress_red.dds" - value = "[Combat.GetPowerSlider]" - direction = horizontal - alwaystransparent = yes - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 160 0 } - blend_mode = alphamultiply - texture_density = 2 - } - } - - button = { - name = "combat_icon" - parentanchor = center - alwaystransparent = no - texture = "gfx/interface/icons/map_icons/combat_map_icon.dds" - size = { 40 40 } - } - } - - background = { - name = "unit_highlight" - visible = "[CombatMapIcon.IsSelected]" - texture = "gfx/interface/icons/map_icons/army_selected.dds" - spriteType = Corneredtiled - spriteborder = { 20 5 } - margin_left = -38 - margin_right = -26 - margin_top = -6 - margin_bottom = -2 - } - - coa_realm_small = { - name = "left_realm_flag" - parentanchor = hcenter - position = { -92 1 } - datacontext = "[Combat.GetLeftSideResult.GetMainParticipant]" - using = tooltip_below - } - - coa_realm_small = { - name = "right_realm_flag" - parentanchor = hcenter - position = { 92 1 } - datacontext = "[Combat.GetRightSideResult.GetMainParticipant]" - using = tooltip_below - } - - flowcontainer = { - parentanchor = hcenter - position = { -42 8 } - - text_single = { - name = "soldiers_left" - parentanchor = vcenter - text = "[Combat.GetLeftSide.GetCurrentFightingMen|0]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - max_width = 40 - fontsize_min = 12 - align = nobaseline - } - - icon = { - name = "unit_quality_left" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[Combat.GetLeftSide.GetComposition.CalcQualityLevel]" - } - } - - flowcontainer = { - parentanchor = hcenter - position = { 45 8 } - - text_single = { - name = "soldiers_right" - text = "[Combat.GetRightSide.GetCurrentFightingMen|0]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - max_width = 40 - fontsize_min = 12 - align = nobaseline - } - - icon = { - name = "unit_quality_right" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[Combat.GetRightSide.GetComposition.CalcQualityLevel]" - } - } - } - - type widget_combat_icon_small = widget { - name = "combat_widget" - datacontext = "[ProvinceIcon.GetCombatIcon]" - datacontext = "[CombatMapIcon.GetCombat]" - - button_group = { - parentanchor = hcenter - onclick = "[CombatMapIcon.OnClick]" - tooltip = "COMBAT_ON_MAP_TOOLTIP" - using = tooltip_below - - background = { - using = Background_Area_Light - spriteType = Corneredtiled - spriteborder = { 20 5 } - margin = { 10 3 } - margin_top = -10 - } - - container = { - position = { 0 6 } - - button_normal = { - name = "left_side_bg_neutral" - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - } - - container = { - position = { 80 6 } - - button = { - name = "right_side_bg_neutral" - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - mirror = horizontal - size = { 82 27 } - framesize = { 164 54 } - frame = 4 - } - } - - progressbar = { - name = "power_progressbar" - parentanchor = top|hcenter - position = { 0 30 } - size = { 156 10 } - progresstexture = "gfx/interface/progressbars/onmap_progress_blue.dds" - - noprogresstexture = "gfx/interface/progressbars/onmap_progress_red.dds" - value = "[Combat.GetPowerSlider]" - direction = horizontal - alwaystransparent = yes - } - - button = { - name = "combat_icon" - parentanchor = center - alwaystransparent = no - texture = "gfx/interface/icons/map_icons/combat_map_icon.dds" - size = { 40 40 } - } - } - - background = { - name = "unit_highlight" - visible = "[CombatMapIcon.IsSelected]" - texture = "gfx/interface/icons/map_icons/army_selected.dds" - spriteType = Corneredtiled - spriteborder = { 20 5 } - margin_left = -34 - margin_right = -24 - margin_top = -7 - margin_bottom = -3 - } - - coa_realm_tiny = { - name = "left_realm_flag" - parentanchor = hcenter - position = { -88 3 } - datacontext = "[Combat.GetLeftSideResult.GetMainParticipant]" - using = tooltip_below - } - - coa_realm_tiny = { - name = "right_realm_flag" - parentanchor = hcenter - position = { 88 3 } - datacontext = "[Combat.GetRightSideResult.GetMainParticipant]" - using = tooltip_below - } - - flowcontainer = { - parentanchor = hcenter - position = { -42 5 } - - text_single = { - name = "soldiers_left" - parentanchor = vcenter - text = "[Combat.GetLeftSide.GetCurrentFightingMen|0]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - max_width = 40 - fontsize_min = 12 - } - - icon = { - name = "unit_quality_left" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[Combat.GetLeftSide.GetComposition.CalcQualityLevel]" - } - } - - flowcontainer = { - parentanchor = hcenter - position = { 45 5 } - - text_single = { - name = "soldiers_right" - text = "[Combat.GetRightSide.GetCurrentFightingMen|0]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - snap_to_pixels = no - max_width = 40 - fontsize_min = 12 - } - - icon = { - name = "unit_quality_right" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[Combat.GetRightSide.GetComposition.CalcQualityLevel]" - } - } - } - - type flowcontainer_unit_items = flowcontainer { - datacontext = "[ProvinceIcon.GetUnitIcon]" - position = { 15 0 } - direction = vertical - ignoreinvisible = yes - - alpha = 1 - - state = { - name = map_zoom_in - trigger_when = "[ProvinceIcon.HasUnits]" - using = Animation_FadeIn_Standard - } - - state = { - name = map_zoom_out - trigger_when = "[Not( ProvinceIcon.HasUnits )]" - using = Animation_FadeOut_Standard - } - - widget_unit_icon_item = { - visible = "[ProvinceIcon.HasUnits]" - } - } - - type flowcontainer_realm_capital = flowcontainer { - name = "realm_capital_widget" - ignoreinvisible = yes - - block "capital_datacontext" { - datacontext = "[ProvinceIcon.GetOwner]" - } - - coa_realm_map_small = { - visible = "[EqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)3')]" #Count Rank - - blockoverride "coa_icon_additions" { - glow = { - color = { 0.2 0.2 0.25 0.6 } - glow_radius = 5 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.0f - glow_ignore_inside_pixels = yes - } - } - } - } - - coa_realm_map_medium = { - visible = "[EqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)4')]" #Duke Rank - - blockoverride "coa_icon_additions" { - glow = { - color = { 0.2 0.2 0.25 0.9 } - glow_radius = 5 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 8.0f - glow_ignore_inside_pixels = yes - } - } - } - } - - coa_realm_map_big = { - visible = "[GreaterThanOrEqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)5')]" #King or Empire Rank - - blockoverride "coa_icon_additions" { - glow = { - color = { 0.2 0.2 0.25 0.9 } - glow_radius = 6 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 8 - glow_texture_downscale = 8.0f - glow_ignore_inside_pixels = yes - } - } - } - } - } - - type container_travel_danger = container - { - datacontext = "[TravelDangerMapIconData.GetDangerType]" - - # Glow (needs to be first to be under the other icon) - # Danger - Safety is above TRAVEL_DANGER_ICON_DANGEROUS_VALUE - icon = { - visible = "[And( TravelDangerMapIconData.IsUnsafe, TravelDangerMapIconData.IsDangerous )]" - texture = "gfx/interface/icons/travel_danger_types/dangerous_glow.dds" - size = { 60 60 } - - # Glow pulse animation - state = { - name = a - next = b - trigger_on_create = yes - duration = 1 - alpha = 0 - } - - state = { - name = b - next = a - duration = 1 - alpha = 1 - } - } - - # Danger - Safety is between TRAVEL_DANGER_ICON_UNSAFE_THRESHOLD and TRAVEL_DANGER_ICON_DANGEROUS_VALUE - icon = { - visible = "[TravelDangerMapIconData.IsUnsafe]" - texture = "[TravelDangerType.GetIconActive]" - parentanchor = bottom|hcenter - size = { 60 60 } - } - - # Danger - Safety is under TRAVEL_DANGER_ICON_UNSAFE_THRESHOLD - icon = { - visible = "[Not( TravelDangerMapIconData.IsUnsafe )]" - texture = "[TravelDangerType.GetIconInactive]" - parentanchor = bottom|hcenter - size = { 45 45 } - } - } - - type widget_provisions_low = widget - { - name = "travel_provisions_low" - allow_outside = yes - - tooltip = "MAP_ICON_PROVISIONS_LOW_TT" - tooltip_offset = { 50 -46 } - - icon = { - size = { 50 50 } - parentanchor = center - texture = "gfx/interface/icons/map_icons/provision_travel_warning_bg.dds" - - glow = { - using = Color_Red - glow_radius = 3 - using = Glow_Standard - alpha = 0 - } - - state = { - name = a - next = b - - glow_alpha = 1 - duration = 1 - trigger_on_create = yes - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - - glow_alpha = 0 - duration = 1 - - using = Animation_Curve_Default - } - } - - icon = { - name = "provisions_low" - parentanchor = center - position = { 0 3 } - size = { 30 30 } - - framesize = { 60 60 } - frame = 2 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - } - - type widget_provisions_critical = widget - { - name = "travel_provisions_critical" - allow_outside = yes - - tooltip = "MAP_ICON_PROVISIONS_CRITICAL_TT" - tooltip_offset = { 50 -46 } - - icon = { - size = { 50 50 } - parentanchor = center - texture = "gfx/interface/icons/map_icons/provision_travel_warning_bg.dds" - - glow = { - using = Color_Red - glow_radius = 3 - using = Glow_Standard - alpha = 0 - } - - state = { - name = a - next = b - - glow_alpha = 1 - duration = 1 - trigger_on_create = yes - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - - glow_alpha = 0 - duration = 1 - - using = Animation_Curve_Default - } - } - - icon = { - name = "provisions_critical" - parentanchor = center - position = { 0 3 } - size = { 30 30 } - - framesize = { 60 60 } - frame = 3 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - - icon = { - parentanchor = center - position = { 13 -6 } - size = { 10 24 } - texture = "gfx/interface/icons/map_icons/provision_travel_warning_exclamation_mark.dds" - - state = { - name = a - next = b - delay = 2 - - trigger_on_create = yes - duration = 0.3 - position = { 14 -9 } - scale = 1.4 - - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - duration = 0.3 - position = { 13 -6 } - scale = 1 - - using = Animation_Curve_Default - } - - state = { - name = c - next = d - - duration = 0.3 - position = { 14 -9 } - scale = 1.4 - - using = Animation_Curve_Default - } - - state = { - name = d - next = a - - duration = 0.3 - position = { 13 -6 } - scale = 1 - - using = Animation_Curve_Default - } - } - } - - type widget_travel_points_of_interest = widget - { - parentanchor = hcenter - - alwaystransparent = yes - - size = { 30 32 } - - state = { - name = "map_zoom_close" - size = { 40 43 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 30 32 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - tooltipwidget = { - using = point_of_interest_tooltip - } - - icon = { - texture = "gfx/interface/icons/map_icons/point_of_interest_pin.dds" - parentanchor = bottom|hcenter - size = { 100% 100% } - - state = { - name = InvisGlow - next = VisibleGlow - trigger_on_create = yes - duration = 2 - glow_alpha = 0 - } - - state = { - name = VisibleGlow - next = InvisGlow - duration = 2 - glow_alpha = 1 - } - - glow = { - visible = "[TravelPointsOfInterestIconData.IsOnTravelRoute]" - glow_radius = 4 - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 15 - glow_texture_downscale = 2f - glow_ignore_inside_pixels = yes - } - using = Color_Green - } - } - - icon = { - visible = "[TravelPointsOfInterestIconData.HasUnvisitedPointOfInterest]" - texture = "[TravelPointsOfInterestIconData.GetIcon]" - parentanchor = center - size = { 22 22 } - position = { 0 -2 } - - state = { - name = InvisGlow - next = VisibleGlow - trigger_on_create = yes - duration = 2 - glow_alpha = 0 - } - - state = { - name = VisibleGlow - next = InvisGlow - duration = 2 - glow_alpha = 1 - } - - glow = { - visible = "[TravelPointsOfInterestIconData.IsOnTravelRoute]" - glow_radius = 2 - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 2 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - using = Color_Green - } - - state = { - name = "map_zoom_close" - size = { 28 28 } - duration = 0.25 - position = { 0 -3 } - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 22 22 } - duration = 0.25 - position = { 0 -2 } - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - icon = { - visible = "[Not( TravelPointsOfInterestIconData.HasUnvisitedPointOfInterest )]" - texture = "gfx/interface/icons/point_of_interest_types/_visited.dds" - - parentanchor = center - size = { 22 22 } - position = { 0 -1 } - - state = { - name = "map_zoom_close" - size = { 28 28 } - duration = 0.25 - position = { 0 -2 } - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 22 22 } - duration = 0.25 - position = { 0 -1 } - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - } - - icon = { - visible = "[TravelPointsOfInterestIconData.HasMultiplePointsOfInterest]" - size = { 100% 100% } - texture = "gfx/interface/icons/map_icons/point_of_interest_multiple_bg.dds" - } - } - - type widget_theme_troops_tooltip = widget { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" { - margin_top = -4 - - coa_title_small_crown = { - size = { 40 50 } - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - blockoverride "title_text" { - text = "[Title.GetNameWithUnderlyingNoTooltip|U]" - } - - blockoverride "subheading" { - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_STATUS" - } - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CURRENT_ARMY_SIZE" - } - - text_single = { - visible = "[Not(IsDataModelEmpty(TitleTroopsMapIcon.GetHiredTitles))]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_TROOPS_FROM" - default_format = "#weak" - } - - hbox = { - layoutpolicy_horizontal = expanding - hbox = { - layoutpolicy_horizontal = shrinking - datamodel = "[TitleTroopsMapIcon.GetHiredTitles]" - - item = { - coa_title_tiny_crown = { - blockoverride "coa_hover_glow_visible" - { - visible = no - } - blockoverride "coa_onclick" { - onclick = "[OpenAdministrativeArmyDetailView( Title.Self )]" - } - - icon = { - parentanchor = top|right - position = { 5 9 } - size = { 16 16 } - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - visible = "[Title.HasDiscountedTitleMaa(GetPlayer.Self)]" - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - } - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Title.HasHolder]" - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CLICK" - margin = { 0 10 } - } - } - } - } - } - - type migration_target_flowcontainer = flowcontainer - { - name = "migration_target" - allow_outside = yes - alwaystransparent = no - direction = vertical - ignoreinvisible = yes - - widget = { - visible = "[And( MigrationMapIcon.IsDomain, MigrationMapIcon.IsSelected )]" - size = { 56 61 } - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = -20 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_y = 0 - } - - tooltip = "[MigrationMapIcon.GetTooltip]" - - button = { - visible = "[MigrationMapIcon.IsDomain]" - parentanchor = center - size = { 100% 100% } - - onclick = "[MigrationMapIcon.SetTarget]" - - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/window_fertility/fertility_map_pin_01.dds" - - using = Animation_Glow_Pulse - - glow = { - visible = "[MigrationMapIcon.IsSelected]" - glow_radius = 3 - using = Color_Bright_Yellow - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 20 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - } - - ### Green Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.6', '(CFixedPoint)1.1' )]" - parentanchor = center - position = { 0 -11 } - size = { 24 24 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 8 - alpha = 0.8 - } - } - - ### Yellow Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.3', '(CFixedPoint)0.6' )]" - parentanchor = center - position = { 0 -11 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 1 - } - } - - ### Red Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.3' )]" - parentanchor = center - position = { 0 -11 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 9 - } - } - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 -15 } - - text = "[MigrationMapIcon.GetDomainFertility|0]" - align = nobaseline - } - - widget = { - visible = "[Not( MigrationMapIcon.IsSelected )]" - parentanchor = top|right - position = { -8 -2 } - scale = 0.9 - allow_outside = yes - - coa_title_tiny_crown = { - parentanchor = top|hcenter - - blockoverride "coa_tooltip" {} - - blockoverride "coa_onclick" - { - onclick = "[MigrationMapIcon.SetTarget]" - } - } - } - } - - widget = { - visible = "[And( MigrationMapIcon.IsDomain, Not( MigrationMapIcon.IsSelected ) )]" - size = { 70 77 } - allow_outside = yes - - tooltip = "[MigrationMapIcon.GetTooltip]" - - button = { - visible = "[MigrationMapIcon.IsDomain]" - parentanchor = center - size = { 100% 100% } - - onclick = "[MigrationMapIcon.SetTarget]" - - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/window_fertility/fertility_map_pin_02.dds" - - using = Animation_Glow_Pulse - - glow = { - visible = "[MigrationMapIcon.IsSelected]" - glow_radius = 3 - using = Color_Bright_Yellow - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 20 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - } - - ### Green Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.6', '(CFixedPoint)1.1' )]" - parentanchor = center - position = { 0 -11 } - size = { 34 34 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 8 - alpha = 0.8 - } - } - - # ### Yellow Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.3', '(CFixedPoint)0.6' )]" - parentanchor = center - position = { 0 -11 } - size = { 34 34 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 1 - } - } - - ### Red Fertility - icon = { - visible = "[MigrationMapIcon.IsAverageFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.3' )]" - parentanchor = center - position = { 0 -11 } - size = { 34 34 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 9 - } - } - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 -19 } - - text = "[MigrationMapIcon.GetDomainFertility|0]" - align = nobaseline - } - - widget = { - visible = "[Not( MigrationMapIcon.IsSelected )]" - parentanchor = top|right - position = { -8 -2 } - scale = 0.9 - allow_outside = yes - - coa_title_tiny_crown = { - parentanchor = top|hcenter - - blockoverride "coa_tooltip" {} - - blockoverride "coa_onclick" - { - onclick = "[MigrationMapIcon.SetTarget]" - } - } - } - } - } - - type sub_region_icon = button { - name = "sub_region_icon" - visible = "[SilkRoadSituationIcon.HasSubRegion]" - size = { 94 100 } - allow_outside = yes - - block "on_click_section" - { - onclick = "[OpenGameViewData('situation_sub_region_window', SilkRoadSituationIcon.GetSubRegion.Self )]" - } - - highlight_icon = { - alwaystransparent = yes - size = { 100% 100% } - block "icon" - { - texture = "gfx/interface/window_activities/pin_activity_location.dds" - } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/window_situations/progress_circle_silk_road.dds" - size = { 54 54 } - position = { 0 -6 } - parentanchor = center - alpha = 0.5 - } - - block "building" - { - button = { - name = "possible_building" - datacontext = "[SilkRoadSituationIcon.GetBazaarBuilding]" - alwaystransparent = yes - parentanchor = center - position = { 0 -8 } - size = { 75 65 } - - highlight_icon = { - parentanchor = center - size = { 45 45 } - texture = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds" - } - - - tooltipwidget = { - using = bazaar_building_tooltip - } - } - } - } - - type widget_innovation_icon = widget { - name = "widget_innovation_icon" - visible = "[SilkRoadSituationIcon.HasInnovation]" - allow_outside = yes - alwaystransparent = yes - size = { 136 92 } - - # Paper background - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_situations/silk_road_innovation_bg.dds" - } - - icon = { - datacontext = "[SilkRoadSituationIcon.GetInnovation]" - parentanchor = center - allow_outside = yes - size = { 100% 100% } - alwaystransparent = yes - - icon_innovation = { - parentanchor = center - position = { 0.5 -2.5 } - - blockoverride "mask_rough_edges" - { - using = Mask_Rough_Edges - } - - tooltipwidget = { - using = innovation_icon_tooltip - } - } - } - } - - type widget_great_project_inner = widget - { - name = "project_inner_button" - allow_outside = yes - size = { 67 76 } - - widget = { - visible = "[And( Not( GreatProject.IsUnderConstruction ), GetVariableSystem.HasValue( 'gp_expand_contribution_index', GreatProjectMapIcon.GetProjectTag( GreatProject.Self ) ) )]" - parentanchor = vcenter|hcenter - widgetanchor = vcenter|hcenter - layoutpolicy_horizontal = expanding - size = { 92 45 } - allow_outside = yes - - hbox_project_contribution_status = { - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - - blockoverride "background" { - background = { - using = Background_Area_Dark_Border - } - } - - # hide costs - blockoverride "cost_section" {} - } - } - - button = { - name = "portrait_pin" - parentanchor = bottom|hcenter - - block "pin_texture" - { - size = { 58 65 } - texture = "gfx/interface/icons/map_icons/portrait_pin.dds" - } - - onclick = "[OpenGameViewData('great_project', GreatProject.Self )]" - - tooltip = "GREAT_PROJECT_PIN_TT" - using = tooltip_se - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Set( 'gp_expand_contribution_index', GreatProjectMapIcon.GetProjectTag( GreatProject.Self ) )]" - on_finish = "[GetVariableSystem.Set( 'gp_expand_contribution_index', GreatProjectMapIcon.GetProjectTag( GreatProject.Self ) )]" - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 20 20 } - alpha = 0.5 - } - - progresspie = { - visible = "[GreatProject.IsUnderConstruction]" - parentanchor = center - position = { 0.3 -4.7 } - size = { 48 48 } - alwaystransparent = yes - - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - - min = 0 - max = 100 - value = "[GreatProject.GetConstructionProgress]" - } - - icon = { - alwaystransparent = yes - parentanchor = center - - block "inner_icon" - { - position = { 0 -5 } - size = { 30 30 } - } - - texture = "[GreatProject.GetIcon]" - } - - } - } - - type radiance_value_icon = widget - { - hbox = { - set_parent_size_to_minimum = yes - margin = { 20 0 } - margin_bottom = 5 - - background = { - using = Background_Area_Dark - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphamultiply - } - } - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/mandala_radiance.dds" - } - - expand = {} - - text_single = { - name = "radiance" - raw_text = "[Character.GetRadianceValueNoTooltip|V0]/[GetDefine( 'NMandala', 'MAX_RADIANCE' )|V0]" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - } - tooltip = "[Character.GetRadianceValueTooltip]" - } -} - -### Raidable Holding -widget = { - name = "raidable_holding_widget" - size = { 60 60 } - allow_outside = yes - - # This is implicit in code, such that no calculations for this map - # icon will be made if the setting is turned off. - #visible = "[ShowDetailedRaidMapIcons]" - - widget = { - datacontext = "[DetailedRaidIcon.GetProvince]" - datacontext = "[DetailedRaidIcon.GetRaid]" - widgetanchor = center - size = { 90 90 } - - state = { - name = "map_zoom_close" - trigger_when = "[And( ZoomLevelLess( GetDefine( 'NMapIcon', 'DETAILED_RAID_SIMPLE_TO_DETAILED_ZOOM_STEP' ) ), DetailedRaidIcon.HasRaid )]" - duration = 0.25 - - position = { 0 -120 } - } - - state = { - name = "map_zoom_far" - trigger_when = "[Or( ZoomLevelGreaterEqual( GetDefine( 'NMapIcon', 'DETAILED_RAID_SIMPLE_TO_DETAILED_ZOOM_STEP' ) ), Not( DetailedRaidIcon.HasRaid ) )]" - duration = 0.25 - - position = { 0 -60 } - } - - button_group = { - visible = "[DetailedRaidIcon.HasRaid]" - allow_outside = yes - - parentanchor = center - widgetanchor = center - - onclick = "[DefaultOnRaidClick( Raid.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - - tooltip = MAP_ICON_DETAILED_RAID_LOOT_ONGOING_TT - - widget = { - name = "clickable" - size = { 60 60 } - } - - highlight_icon = { - size = { 60 60 } - position = { 0 -40 } - - texture = "gfx/interface/icons/map_coa/icon_raider.dds" - - enabled = "[Not( Raid.IsBlocked )]" - } - } - - widget = { - name = "pin_and_buttons" - size = { 90 90 } - - parentanchor = center - - tooltip = "[SelectLocalization( DetailedRaidIcon.HasRaid, 'MAP_ICON_DETAILED_RAID_LOOT_ONGOING_TT', 'MAP_ICON_DETAILED_RAID_LOOT_POTENTIAL_TT' )]" - - widget = { - parentanchor = center - size = { 60 65 } - - background = { - name = "map_pin_texture" - texture = "gfx/interface/icons/map_icons/portrait_pin.dds" - } - - progresspie = { - visible = "[DetailedRaidIcon.HasRaid]" - size = { 90% 80% } - position = { 0 2 } - parentanchor = hcenter - - texture = "gfx/interface/progressbars/action_progress_thick.dds" - framesize = { 128 128 } - frame = 2 - - min = 0 - max = 100 - value = "[Raid.GetProgressPercent]" - } - - text_single = { - parentanchor = center - size = { 100% 100% } - position = { -1 -6 } - - align = center - text = "MAP_ICON_DETAILED_RAID_LOOT" - } - } - } - } -} - -### Barterable Holding -widget = { - name = "barterable_holding_widget" - size = { 90 90 } - allow_outside = yes - - # This is implicit in code, such that no calculations for this map - # icon will be made if the setting is turned off. - #visible = "[ShowDetailedBarterMapIcons]" - - widget = { - datacontext = "[DetailedBarterIcon.GetProvince]" - datacontext = "[DetailedBarterIcon.GetBarter]" - widgetanchor = center - size = { 90 90 } - - state = { - name = "map_zoom_close" - trigger_when = "[And( ZoomLevelLess( GetDefine( 'NMapIcon', 'DETAILED_RAID_SIMPLE_TO_DETAILED_ZOOM_STEP' ) ), DetailedBarterIcon.HasBarter )]" - duration = 0.25 - - position = { 0 -120 } - } - - state = { - name = "map_zoom_far" - trigger_when = "[Or( ZoomLevelGreaterEqual( GetDefine( 'NMapIcon', 'DETAILED_RAID_SIMPLE_TO_DETAILED_ZOOM_STEP' ) ), Not( DetailedBarterIcon.HasBarter ) )]" - duration = 0.25 - - position = { 0 -60 } - } - - button_group = { - visible = "[DetailedBarterIcon.HasBarter]" - allow_outside = yes - - parentanchor = center - widgetanchor = center - - onclick = "[DefaultOnBarterClick( BarterMission.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - - tooltip = "MAP_ICON_DETAILED_BARTER_LOOT_ONGOING_TT" - - widget = { - name = "clickable" - size = { 60 60 } - } - - highlight_icon = { - size = { 60 60 } - position = { 0 -60 } - - texture = "gfx/interface/icons/map_coa/icon_barterer.dds" - - enabled = "[Not( BarterMission.IsBlocked )]" - } - } - - vbox = { - set_parent_size_to_minimum = yes - - background = { - using = Background_Area_ExtraDark - } - - tooltip = "[SelectLocalization( DetailedBarterIcon.HasBarter, 'MAP_ICON_DETAILED_BARTER_LOOT_ONGOING_TT', 'MAP_ICON_DETAILED_BARTER_LOOT_POTENTIAL_TT' )]" - - hbox = { - margin = { 12 8 } - - text_single = { - margin = { 5 5 } - - text = "MAP_PIN_BARTER_GOODS_NEEDED" - align = center|nobaseline - - background = { - visible = "[LessThan_CFixedPoint( GetPlayer.GetCurrency('barter_goods'), DetailedBarterIcon.GetProvince.GetBarterGoodsNeeded )]" - using = Status_Bad - margin_bottom = -3 - } - } - - icon = { - name = "arrow_icon" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/arrow.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = normal - framesize = { 96 96 } - - block "master_color_frame" { - frame = 4 - } - } - } - - text_single = { - text = "MAP_PIN_BARTER_LOOT_RECEIVED" - align = center|nobaseline - } - - expand = {} - } - - progressbar_standard = { - visible = "[DetailedBarterIcon.HasBarter]" - layoutpolicy_horizontal = expanding - - size = { -1 15 } - value = "[BarterMission.GetProgressPercent]" - max = 100 - } - } - } -} - -### situation sub region icons -widget = { - name = "silk_road_situation_icon_widget" - allow_outside = yes - widgetanchor = hcenter|vcenter - size = { 132 192 } - - widget_innovation_icon = { - parentanchor = hcenter|top - } - - sub_region_icon = { - parentanchor = hcenter|bottom - - blockoverride "icon" - { - texture = "gfx/interface/window_activities/pin_activity_location.dds" - mirror = vertical - position = { 0 -14} - } - } - -} - -widget = { - name = "situation_map_pin_widget" - allow_outside = yes - widgetanchor = center - size = { 135 170 } - datacontext = "[SituationMapIcon.GetSituation]" - - flowcontainer = { - parentanchor = top|hcenter - widgetanchor = top|hcenter - allow_outside = yes - ignoreinvisible = yes - - sub_region_icon = { - visible = yes - blockoverride "on_click_section" - { - onclick = "[ToggleGameViewData( Situation.GetWindowName, Situation.GetID )]" - } - - blockoverride "progress_data" - { - min = 0 - max = 1 - value = "[Situation.GetTopCurrentPhase.GetRelativeProgress]" - } - - blockoverride "building" { - icon = { - name = "situation_icon" - alwaystransparent = yes - parentanchor = center - position = { 0 -8 } - size = { 75 65 } - scale = 0.5 - texture = "[Situation.GetIcon]" - - tooltip = "SITUATION_PIN_TT" - } - } - } - } -} - -### Confederation Map Icon -container = { - name = "confederation_icon" - datacontext = "[ConfederationIcon.GetConfederation]" - widgetanchor = center - ignoreinvisible = yes - - using = tooltip_es - tooltip_offset = { 10 0 } - - tooltipwidget = { - using = confederation_tooltip - } - - coa_confederation_small = { - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - parentanchor = center - position = { 0 -5 } - onclick = "[OpenGameViewData( 'confederation_window', Confederation.Self )]" - } - - button = { - visible = "[Confederation.GetType.IsHouseBasedConfederation]" - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 -18 } - size = { 60 20 } - texture = "gfx/interface/coat_of_arms/frames/coa_topframe_bloc.dds" - - tooltip_visible = no - } - - coa_bloc_small = { - visible = "[Confederation.GetType.IsHouseBasedConfederation]" - parentanchor = center - position = { 0 -5 } - onclick = "[OpenGameViewData( 'confederation_window', Confederation.Self )]" - } -} - -### Great Projects -widget = { - name = "great_project_icon_widget" - datacontext = "[GreatProjectMapIcon.GetProvince]" - datacontext = "[GetLobbyHelper]" - allow_outside = yes - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Set( 'gp_expand_all_in_province', Province.GetTag )]" - on_finish = "[GetVariableSystem.Set( 'gp_expand_all_in_province', Province.GetTag )]" - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( 'gp_expand_all_in_province' )]" - on_finish = "[GetVariableSystem.Clear( 'gp_expand_contribution_index' )]" - } - - flowcontainer = { - parentanchor = bottom|hcenter - direction = vertical - allow_outside = yes - - flowcontainer = { - name = "normal_map_icon" - allow_outside = yes - ignoreinvisible = yes - - widget_great_project_inner = { - datacontext = "[GreatProjectMapIcon.GetProject]" - size = { 60 80 } - - allow_outside = yes - - widget = { - visible = "[And( GreatProjectMapIcon.HasMultipleProjects, Not( GetVariableSystem.HasValue( 'gp_expand_all_in_province', Province.GetTag ) ) )]" - parentanchor = right|vcenter - widgetanchor = left|vcenter - position = { 0 4 } - size = { 38 38 } - - state = { - name = "map_zoom_close" - size = { 38 38 } - duration = 0.25 - trigger_when = "[LessThan_int32( GetZoomLevel, '(int32)14' )]" - } - - state = { - name = "map_zoom_far" - size = { 34 34 } - duration = 0.25 - trigger_when = "[GreaterThan_int32( GetZoomLevel, '(int32)13' )]" - } - - background = { - texture = "gfx/interface/icons/icon_bg_small.dds" - } - - text_single = { - parentanchor = center - position = { 0 -2 } - - text = MAP_ICON_GREAT_PROJECTS_COUNT - align = center - default_format = "#strong_glow;high" - - using = Font_Size_Small - } - } - - flowcontainer = { - datamodel = "[DataModelSkipFirst( GreatProjectMapIcon.GetProjects, '(int32)1' )]" - visible = "[GetVariableSystem.HasValue( 'gp_expand_all_in_province', Province.GetTag )]" - parentanchor = right|vcenter - widgetanchor = left|vcenter - ignoreinvisible = yes - - item = { - widget_great_project_inner = { - datacontext = "[GreatProject]" - size = { 60 70 } - - blockoverride "pin_texture" - { - size = { 60 60 } - texture = "gfx/interface/window_activities/pin_activity_list.dds" - } - - blockoverride "inner_icon" - { - position = { 0 0 } - size = { 30 30 } - } - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Set( 'gp_expand_contribution_index', GreatProjectMapIcon.GetProjectTag( GreatProject.Self ) )]" - on_finish = "[GetVariableSystem.Set( 'gp_expand_contribution_index', GreatProjectMapIcon.GetProjectTag( GreatProject.Self ) )]" - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( 'gp_expand_contribution_index' )]" - } - } - } - } - } - } - } -} - -widget = { - name = "radiance_value_icon" - datacontext = "[RadianceValueMapIcon.GetCharacter]" - allow_outside = yes - - widgetanchor = hcenter - radiance_value_icon = {} -} diff --git a/N3OW/gui/map_icon_layer_templates.gui b/N3OW/gui/map_icon_layer_templates.gui deleted file mode 100644 index ab557f77..00000000 --- a/N3OW/gui/map_icon_layer_templates.gui +++ /dev/null @@ -1,1013 +0,0 @@ -### COMBAT PREDICTION -template combat_prediction_tooltip -{ - flowcontainer = { - direction = vertical - alwaystransparent = no - using = Background_Tooltip - - widget = { - name = "top" - size = { 600 100 } - - textbox = { - using = DefaultTooltipText - name = "Header" - position = { 0 10 } - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[CombatPredictionMapIcon.GetHeader]" - snap_to_pixels = no - parentanchor = top|hcenter - } - - coa_realm_medium = { - name = "LeftRealm" - position = { 15 15 } - datacontext = "[CombatPredictionMapIcon.GetPlayerSideCharacter]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - - coa_realm_medium = { - name = "RightRealm" - position = { -15 15 } - parentanchor = right - datacontext = "[CombatPredictionMapIcon.GetEnemySideCharacter]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - - ### prediction - container = { - name = "PredictionContainer" - position = { 0 40 } - parentanchor = top|hcenter - - icon = { - name = "PredictionIcon" - texture = "gfx/interface/icons/map_icons/combat_prediction_icon.dds" - size = { 50 50 } - framesize = { 120 120 } - frame = "[CombatPredictionMapIcon.GetPredictionLevelFrame]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - name = "PredictionText" - position = { 55 10 } - margin_right = 10 - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[CombatPredictionMapIcon.GetPredictionText]" - snap_to_pixels = no - } - } - } - - container = { - name = "list" - - ### left edges - flowcontainer = { - position = { 20 0 } - - dynamicgridbox = { - name = "LeftCombatEdges" - datamodel = "[CombatPredictionMapIcon.GetPlayerSideEdges]" - - item = { - container = { - datacontext = "[GetDeepestTooltipInfo]" # as tooltip info doesn't propagate into grid box items - - background = { - name = "bg" - using = Background_Area - } - - icon = { - name = "edge_icon" - texture = "[CombatPredictionEdge.GetIcon]" - size = { 32 32 } - position = { 7 0 } - parentanchor = vcenter - tintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - position = { 40 0 } - name = "PredictionText" - max_width = 230 - autoresize = yes - margin = { 5 2 } - margin_bottom = 8 - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[CombatPredictionEdge.GetLabel|P]" - snap_to_pixels = no - } - } - } - } - - } - - ### right edges - flowcontainer = { - position = { 310 0 } - - dynamicgridbox = { - name = "RightCombatEdges" - datamodel = "[CombatPredictionMapIcon.GetEnemySideEdges]" - - item = { - flowcontainer = { - datacontext = "[GetDeepestTooltipInfo]" # as tooltip info doesn't propagate into grid box items - - margin = { 10 5 } - spacing = 10 - - background = { - name = "bg" - using = Background_Area - } - - icon = { - name = "edge_icon" - texture = "[CombatPredictionEdge.GetIcon]" - size = { 32 32 } - - parentanchor = vcenter - tintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - name = "PredictionText" - - max_width = 230 - min_width = 230 - autoresize = yes - - parentanchor = vcenter - - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[CombatPredictionEdge.GetLabel|N]" - } - } - } - } - } - } - widget = { - size = { 0 15 } - } - } -} - -types MapIcons { - type icon_unit_quality = icon { - name = "unit_quality" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[UnitItem.GetQualityLevel]" - } - - type container_supply_icon = widget { - size = { 35 30 } - name = "supplies" - visible = "[UnitItem.ShowSupplyIcon]" - - icon = { - name = "bg" - position = { 0 0 } - size = { 30 30 } - texture = "gfx/interface/icons/icon_bg_small.dds" - } - - icon = { - name = "supply_icon" - position = { 2 2 } - framesize = { 30 30 } - size = { 25 25 } - frame = "[UnitItem.GetSupplyStateFrame]" - texture = "gfx/interface/icons/icon_supplies_small.dds" - } - - icon = { - name = "supply_trend_icon" - visible = "[UnitItem.ShowSupplyTrend]" - position = { 17 10 } - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_supplies_trend.dds" - } - } - - type icon_raider = icon { - name = "raider" - visible = "[Army.IsRaidArmy]" - size = { 30 30 } - texture = "gfx/interface/icons/map_coa/icon_raider.dds" - tooltip = "RAID_ARMY_TOOLTIP" - } - - type icon_barterer = icon { - name = "barterer" - visible = "[Army.IsBarterArmy]" - size = { 30 30 } - texture = "gfx/interface/icons/map_coa/icon_barterer.dds" - tooltip = "BARTER_ARMY_TOOLTIP" - } - - type icon_ai_order = icon { - name = "ai_order" - visible = "[And(Army.ShowUnitAIOrderIcon, Or(Army.IsControlledByCompanionAI, UnitItem.IsUnitItemAlly))]" - size = { 22 22 } - texture = "[Army.GetUnitAIOrderIcon]" - } - - # UNITS - type widget_unit_icon_item = widget { - size = { 114 35 } - datacontext = "[UnitMapIcon.GetDisplayedUnitItem]" - allow_outside = yes - alwaystransparent = no - - tooltipwidget = { - using = unit_icon_tooltip - } - using = tooltip_se - - flowcontainer = { - position = { -10 0 } - allow_outside = yes - - ignoreinvisible = yes - - container_allied_unit_icon_item = {} - - container_hostile_unit_icon_item = {} - } - } - - type container_allied_unit_icon_item = flowcontainer { - name = "allied_unit_icon_item" - datacontext = "[UnitItem.GetArmy]" - visible = "[Not(Or(UnitItem.IsUnitItemEnemy, UnitItem.IsUnitItemHostile))]" - ignoreinvisible = yes - - state = { - name = _mouse_hierarchy_enter - on_start = "[Army.OnMouseEnter]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[Army.OnMouseLeave]" - } - - block "siege_window" - { - container_supply_icon = {} - - spacer = { - visible = "[Or(Army.IsControlledByCompanionAI, UnitItem.IsUnitItemAlly)]" - size = { 26 0 } - } - } - - container = { - block "siege_window" - { - container_unit_effect_icons = { - position = { 30 26 } - } - } - - button_group = { - block "onclick" { - onclick = "[UnitMapIcon.OnClickArmyGroup( Army.Self )]" - } - - button_group = { - position = { 36 0 } - - background = { - name = "unit_bg_me" - visible = "[UnitItem.IsUnitItemMine]" - texture = "gfx/interface/icons/map_icons/army_bg_me.dds" - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - margin_left = 24 - margin_right = 15 - margin_bottom = 5 - } - - background = { - name = "unit_bg_ally" - visible = "[UnitItem.IsUnitItemAlly]" - texture = "gfx/interface/icons/map_icons/army_bg_ally.dds" - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - margin_left = 24 - margin_right = 15 - margin_bottom = 5 - } - - background = { - name = "unit_bg_neutral" - visible = "[UnitItem.IsUnitItemNeutral]" - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - margin_left = 24 - margin_right = 15 - margin_bottom = 5 - } - - background = { - name = "unit_highlight" - visible = "[Or( UnitItem.ShouldBeHighlighted, UnitItem.IsSelected )]" - texture = "gfx/interface/icons/map_icons/army_selected.dds" - margin_left = 24 - margin_right = 15 - margin_bottom = 5 - } - - ##### GATHERING VERSIONS #### - background = { - visible = "[And(UnitItem.IsGathering, UnitItem.IsUnitItemMine)]" - using = Unit_Bg_Gathering - } - - background = { - visible = "[And(UnitItem.IsGathering, UnitItem.IsUnitItemAlly)]" - using = Unit_Bg_Gathering - } - - background = { - visible = "[And(UnitItem.IsGathering, UnitItem.IsUnitItemNeutral)]" - using = Unit_Bg_Gathering - } - - flowcontainer = { - spacing = 3 - ignoreinvisible = yes - - block "unit_items" { - - text_single = { - visible = "[GreaterThanOrEqualTo_int32(UnitMapIcon.GetShownCount, '(int32)2')]" - text = "UNIT_ITEMS" - - default_format = "#medium;bold;glow_color:{0.1,0.1,0.1,1.0}" - margin_top = 2 - - snap_to_pixels = no - } - } - - text_single = { - name = "soldiers" - text = "[UnitItem.GetCombatStrength]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Size_Medium - margin_bottom = 2 - - snap_to_pixels = no - } - - block "multi_select" { - - text_single = { - visible = "[Not( EqualTo_int32(UnitMapIcon.GetShownCount, GetDataModelSize(UnitMapIcon.GetUnitItems)) )]" - raw_text = "+" - default_format = "#medium;bold;glow_color:{0.1,0.1,0.1,1.0}" - margin_top = 2 - - snap_to_pixels = no - } - } - - widget = { - size = { 22 22 } - - icon_unit_quality = { - parentanchor = vcenter - position = { 0 5 } - } - } - } - } - - block "siege_window" - { - button_group = { - name = "rally_point" - size = { 34 34 } - - army_automation_on_big = { - size = { 36 36 } - position = { -28 -2 } - } - - icon_ai_order = { - size = { 24 24 } - position = { -22 4 } - } - - icon_ai_order = { - visible = "[UnitItem.IsUnitItemAlly]" - size = { 28 28 } - position = { -26 0 } - } - - icon_raider = { - position = { 0 -22 } - } - - icon_barterer = { - position = { 0 -22 } - } - - coa_realm_tiny = { - position = { 0 3 } - visible = "[And(Not(UnitItem.IsOnlyHiredTroops), UnitItem.IsUnitItemMine)]" - datacontext = "[UnitItem.GetOwner]" - tooltip_visible = no - } - - button = { - name = "hired_troops" - visible = "[And(UnitItem.IsOnlyHiredTroops, UnitItem.IsUnitItemMine)]" - texture = "gfx/interface/icons/map_icons/county_hired_troops.dds" - position = { 6 0 } - size = { 30 30 } - } - } - } - } - - block "siege_window" - { - widget = { - size = { 32 32 } - - icon = { - name = "ally_war_icon" - visible = "[UnitItem.IsUnitItemAlly]" - parentanchor = center - position = { 0 -17 } - texture = "gfx/interface/icons/diplomatic_icons.dds" - frame = 2 - framesize = { 120 120 } - size = { 30 30 } - } - - coa_realm_tiny = { - datacontext = "[UnitItem.GetOwner]" - visible = "[Not(UnitItem.IsUnitItemMine)]" - position = { 0 2 } - - tooltip_visible = no - } - } - } - } - } - - type container_hostile_unit_icon_item = container { - datacontext = "[UnitItem.GetArmy]" - allow_outside = yes - ignoreinvisible = yes - visible = "[Or(UnitItem.IsUnitItemEnemy, UnitItem.IsUnitItemHostile)]" - - block "siege_window" - { - container_supply_icon = { - position = { 0 1 } - } - - container_unit_effect_icons = { - position = { 5 25 } - } - } - - flowcontainer = { - ignoreinvisible = yes - allow_outside = yes - - flowcontainer = { - spacing = 3 - ignoreinvisible = yes - - background = { - name = "unit_bg_enemy" - visible = "[Not(UnitItem.IsUnitItemHostile)]" - texture = "gfx/interface/icons/map_icons/army_bg_enemy.dds" - mirror = horizontal - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - margin_left = 10 - margin_right = 20 - margin_bottom = 5 - } - - background = { - name = "unit_bg_hostile" - visible = "[UnitItem.IsUnitItemHostile]" - texture = "gfx/interface/icons/map_icons/army_bg_hostile.dds" - mirror = horizontal - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - margin_left = 10 - margin_right = 20 - margin_bottom = 5 - } - - ######### GATHERING VERSIONS ######## - - background = { - visible = "[And(UnitItem.IsGathering, Not(UnitItem.IsUnitItemHostile))]" - using = Unit_Bg_Gathering - } - - background = { - visible = "[And(UnitItem.IsGathering, UnitItem.IsUnitItemHostile)]" - using = Unit_Bg_Gathering - } - - widget = { - size = { 22 22 } - - icon_unit_quality = { - parentanchor = vcenter - position = { 0 4 } - } - } - - block "unit_items" { - text_single = { - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(UnitMapIcon.GetUnitItems), '(int32)2')]" - text = "UNIT_ITEMS" - default_format = "#medium;bold;glow_color:{0.1,0.1,0.1,1.0}" - margin_top = 2 - - snap_to_pixels = no - } - } - - text_single = { - name = "soldiers" - text = "[UnitItem.GetCombatStrength]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Size_Medium - snap_to_pixels = no - margin_bottom = 1 - } - } - - block "siege_window" - { - widget = { - allow_outside = yes - size = { 32 32 } - - icon_raider = { - position = { 2 -22 } - } - - icon = { - name = "at_war_icon" - visible = "[Not(UnitItem.IsUnitItemHostile)]" - texture = "gfx/interface/icons/map_coa/icon_at_war.dds" - - size = { 45 18 } - - parentanchor = top|hcenter - position = { 5 -12 } - } - - coa_realm_tiny = { - position = { 5 2 } - datacontext = "[UnitItem.GetOwner]" - allow_outside = yes - } - } - - container_supply_icon = {} - } - } - } - - type container_unit_effect_icons = flowcontainer { - name = "icon_container" - ignoreinvisible = yes - - - icon = { - name = "commander_is_owner" - texture = "gfx/interface/icons/map_icons/commander_is_leader.dds" - visible = "[UnitItem.IsRulerCommander]" - } - - icon = { - name = "unit_retreating" - visible = "[UnitItem.IsRetreating]" - texture = "gfx/interface/icons/map_icons/army_icon_retreating.dds" - } - - icon = { - name = "unit_gathering" - visible = "[UnitItem.ShouldShowGatheringProgress]" - texture = "gfx/interface/icons/map_icons/army_icon_gathering.dds" - } - - icon = { - name = "unit_attrition" - visible = "[GreaterThan_CFixedPoint( Army.GetArmyAttritionPercentage, '(CFixedPoint)0' )]" - texture = "gfx/interface/icons/map_icons/army_icon_attrition.dds" - size = { 23 23 } - } - - icon = { - name = "sea_sickness_icon" - visible = "[UnitItem.HasDisembarkPenalty]" - size = { 23 23 } - texture = "gfx/interface/icons/map_icons/army_icon_disembarked.dds" - } - - icon = { - name = "at_loot_cap" - visible = "[Army.IsLootCapped]" - size = { 23 23 } - texture = "gfx/interface/icons/map_icons/army_icon_at_loot_cap.dds" - } - - flowcontainer = { - margin_top = 7 - margin_left = -2 - - progressbar_standard = { - name = "gathering_progress" - visible = "[UnitItem.ShouldShowGatheringProgress]" - size = { 30 8 } - min = 0 - max = 1 - value = "[Army.GetGatheringProgress]" - - using = Animation_ShowHide_Standard - } - } - } -} - -template siege_goto_template -{ - button_group = { - onclick = "[DefaultOnSiegeClick(Siege.GetID)]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - block "tooltip" - { - tooltip = "[Siege.GetSiegeDescription]" - } - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_siege_icon.dds" - } - } -} - -template raid_goto_template -{ - button_group = { - onclick = "[DefaultOnRaidClick( Raid.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - block "tooltip" - { - tooltip = "MAP_RAID_TOOLTIP" - } - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_raid_icon.dds" - } - } -} - -template barter_goto_template -{ - button_group = { - onclick = "[DefaultOnBarterClick( BarterMission.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - - block "tooltip" - { - tooltip = "MAP_BARTER_TOOLTIP" - } - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_barter_icon.dds" - } - } -} - -template State_Title_MouseEntry -{ - state = { - name = _mouse_enter - on_start = "[Title.OnMouseEnter]" - } - - state = { - name = _mouse_leave - on_start = "[Title.OnMouseLeave]" - } -} - -template State_Realm_MouseEntry -{ - state = { - name = _mouse_enter - on_start = "[Character.OnMouseEnter]" - } - - state = { - name = _mouse_leave - on_start = "[Character.OnMouseLeave]" - } -} - -template Holding_Mouse_Entry -{ - state = { - name = _mouse_enter - on_start = "[Holding.OnMouseEnter]" - } - state = { - name = _mouse_leave - on_start = "[Holding.OnMouseLeave]" - } -} - -template Epidemic_Mouse_Entry -{ - state = { - name = _mouse_enter - on_start = "[Epidemic.OnMouseEnter]" - } - state = { - name = _mouse_leave - on_start = "[Epidemic.OnMouseLeave]" - } -} - -template Legend_Mouse_Entry -{ - state = { - name = _mouse_enter - on_start = "[Legend.OnMouseEnter]" - } - state = { - name = _mouse_leave - on_start = "[Legend.OnMouseLeave]" - } -} - -template Confederation_Mouse_Entry -{ - state = { - name = _mouse_enter - on_start = "[Confederation.OnMouseEnter]" - } - state = { - name = _mouse_leave - on_start = "[Confederation.OnMouseLeave]" - } -} - -template Domain_Info_Icons -{ - icon_button_small_round = { - position = { 0 0 } - size = { 30 30 } - datacontext = "[GetPlayer]" - tooltip = "HOLDING_VIEW_WRONG_HOLDING_TYPE" - } - - icon_button_small_round = { - position = { 30 0 } - size = { 30 30 } - tooltip = "MY_REALM_WINDOW_MAP_ICON_LOW_CONTROL" - } - - icon = { - position = { 60 0 } - size = { 30 30 } - texture = "gfx/interface/icons/map_icons/county_building_available.dds" - tooltip = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" - } -} - -template Unit_Bg_Gathering -{ - - texture = "gfx/interface/icons/map_icons/army_bg_neutral.dds" - alpha = 0.6 - framesize = { 164 54 } - frame = "[UnitItem.GetQualityLevel]" - - modify_texture = { - texture = "gfx/interface/icons/map_icons/army_overlay_gathering.dds" - blend_mode = multiply - # alpha = 0.5 - } - - margin_left = 10 - margin_right = 15 - margin_top = -2 - margin_bottom = 5 - -} - -types MapIconTempateTypes { - - type button_group_siege = button_group { - onclick = "[DefaultOnSiegeClick(Siege.GetID)]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - tooltip = "[Siege.GetSiegeDescription]" - - flowcontainer = { - ignoreinvisible = yes - - container = { - parentanchor = vcenter - - highlight_icon = { - parentanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_siege_icon.dds" - } - - highlight_icon = { - visible = "[Siege.EnableAssaultButton]" - parentanchor = vcenter - position = { 16 2 } - size = { 23 39 } - name = "assault_icon" - texture = "gfx/interface/icons/map_icons/assault_icon.dds" - } - } - container = { - parentanchor = vcenter - - progressbar_standard = { - position = { -3 4 } - size = { 36 13 } - value = [Siege.GetProgress] - } - - highlight_icon = { - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/siege_blocked_map_icon.dds" - position = { -2 5 } - visible = "[Siege.IsBlocked]" - } - } - - container = { - parentanchor = vcenter - - visible = "[Siege.FortLevelHasImpact]" - highlight_icon = { - name = "holding_level_high" - block "overlay_size" - { - size = { 30 30 } - } - alwaystransparent = yes - texture = "gfx/interface/icons/icon_holding_castle.dds" - - - glow = { - using = Color_Red - using = Glow_Standard - glow_radius = 4 - } - - using = Animation_Glow_Pulse - } - - highlight_icon = { - name = "fort_level_bad" - widgetanchor = bottom|right - parentanchor = bottom|right - block "overlay_size" - { - size = { 20 20 } - } - alwaystransparent = yes - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - } - } - } - - type button_group_raid = button_group { - onclick = "[DefaultOnRaidClick( Raid.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - tooltip = "MAP_RAID_TOOLTIP" - flowcontainer = { - ignoreinvisible = yes - - container = { - parentanchor = vcenter - widgetanchor = vcenter - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_raid_icon.dds" - } - } - container = { - parentanchor = vcenter - widgetanchor = vcenter - - progressbar_standard = { - position = { -3 4 } - size = { 36 13 } - value = "[Raid.GetProgressPercent]" - } - - highlight_icon = { - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/raid_blocked_map_icon.dds" - position = { -2 5 } - visible = "[Raid.IsBlocked]" - } - } - } - } - - type button_group_barter = button_group { - onclick = "[DefaultOnBarterClick( BarterMission.Self )]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = left - tooltip = "MAP_BARTER_TOOLTIP" - flowcontainer = { - ignoreinvisible = yes - - container = { - parentanchor = vcenter - widgetanchor = vcenter - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_barter_icon.dds" - } - } - container = { - parentanchor = vcenter - widgetanchor = vcenter - - progressbar_standard = { - position = { -3 4 } - size = { 36 13 } - value = "[BarterMission.GetProgressPercent]" - } - - highlight_icon = { - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/barter_blocked_map_icon.dds" - position = { -2 5 } - visible = "[BarterMission.IsBlocked]" - } - } - } - } -} diff --git a/N3OW/gui/multiplayer_config.gui b/N3OW/gui/multiplayer_config.gui deleted file mode 100644 index dae61450..00000000 --- a/N3OW/gui/multiplayer_config.gui +++ /dev/null @@ -1,78 +0,0 @@ -types multiplayerconfig { - type configbutton = checkbutton { - gfxtype = checkbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "gfx/editor_gui/editor_checkbox.dds" - framesize = { 16 16 } - } - - type multiplayerconfig = widget { - size = { 200 60 } - - text_multi = { - name = "ironman_info" - block "ironman_visible" - { - visible = no - } - text = "GAME_SETUP_IRONMAN_SINGLEPLAYER_ONLY" - min_width = 150 - max_width = 150 - autoresize = yes - } - - flowcontainer = { - name = "config_options" - direction = vertical - - block "config_visible" { - visible = yes - } - - container = { - button_checkbox = { - name = "singleplayer" - size = { 20 20 } - block "single" { - } - } - - text_single = { - text = "SINGLEPLAYER" - align = nobaseline - position = { 25 0 } - } - } - - container = { - button_checkbox = { - name = "invite" - size = { 20 20 } - block "invite" { - } - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PRIVATE" - align = nobaseline - position = { 25 0 } - } - } - - container = { - button_checkbox = { - name = "public" - size = { 20 20 } - block "public" { - } - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PUBLIC" - align = nobaseline - position = { 25 0 } - } - } - } - } -} diff --git a/N3OW/gui/multiplayer_frontend.gui b/N3OW/gui/multiplayer_frontend.gui deleted file mode 100644 index 5698cff8..00000000 --- a/N3OW/gui/multiplayer_frontend.gui +++ /dev/null @@ -1,78 +0,0 @@ -JominiMultiplayerFrontendView = { - name = "JominiMultiplayerView" - size = { 100% 100% } - - state = { - name = _show - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - clickable_version_number = { - - parentanchor = bottom|right - position = { -15 -15 } - - using = tooltip_se - - blockoverride "background" - { - } - } - - blockoverride "menu" {} - - blockoverride "background" - { - proportional_icon = { - size = { 100% 100% } - texture = "[GetRandomFrontendIllustration]" - } - } - - widget = { - name = "panel_right" - size = { 945 100% } - parentanchor = left - - using = Window_Background_Sidebar - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.8 - mirror = vertical - } - } - - vbox = { - margin = { 10 10 } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 40 } - - button_standard_back = { - size = { 170 33 } - shortcut = "close_window" - onclick = "[FrontEndMultiplayerView.OnBack]" - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/multiplayer_lobby.gui b/N3OW/gui/multiplayer_lobby.gui deleted file mode 100644 index 70dde9e6..00000000 --- a/N3OW/gui/multiplayer_lobby.gui +++ /dev/null @@ -1,1369 +0,0 @@ -JominiMultiplayerLobby = { - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'mp_lobby_tabs', 'show_players' )]" - on_finish = "[OpenGameView( 'lobby_helper_window' )]" - on_finish = "[CloseGameView( 'outliner' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'tabs_open' )]" - on_finish = "[CloseGameView( 'lobby_helper_window' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - # Tabs setup - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.SetResetOnShown( '(bool)yes' )]" - oncreate = "[PdxGuiTabs.AddTab( 'character' )]" - oncreate = "[PdxGuiTabs.AddTabIf( 'landless_rulers', HasDlcFeature( 'landless_playable' ) )]" - - # Code can send an event which we can listen for to switch tabs - oncreate = "[PdxGuiTabs.ListenFor( 'lobby_window_change_tab' )]" - - blockoverride "left_panel_properties" - { - size = { 390 0 } - widgetid = "left" - visible = "[GameIsMultiplayer]" - } - - blockoverride "left_panel_attachment" - { - # DLCs - - vbox = { - name = "dlc_collection" - layoutpolicy_vertical = expanding - - margin = { 5 5 } - - datacontext = "[GetLobbyHelper]" - datacontext = "[LobbyHelperWindow.GetDlcCollection]" - - spacing = 5 - - text_label_left = { - text = "DLC" - margin_left = 4 - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 5 - margin = { 0 4 } - - background = { - using = Background_Area_Dark - margin = { 8 4 } - - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - alpha = 0.5 - } - - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - spriteborder_bottom = 100 - - } - } - - - - vbox = { - datamodel = "[DataModelFirst( DlcCollection.GetDlcs, '(int32)15' )]" - spacing = 5 - - item = { - dlc_button = { - using = tooltip_es - } - } - } - - button_show_dlc_list = { - using = tooltip_es - } - } - - expand = {} - } - - - - expand = {} - } - } - - - - - blockoverride "lobby_view_back_onclick" { - onclick = "[ReturnToMenu]" - } - - blockoverride "host_button" - { - text = "[SelectLocalization( IsIronmanEnabled, 'GAME_SETUP_IRONMAN_SINGLEPLAYER_ONLY', 'JOMINI_MULTIPLAYER_GUI_HOST_BUTTON' )]" - } - - blockoverride "host_button_enabled" - { - enabled = "[And( And( JominiIsMultiplayerAccessible, JominiIsHostOrLocal ), Not( IsIronmanEnabled ) )]" - } - - blockoverride "playerbackgroundstyle" - { - using = Background_Area - } - - blockoverride "jominimultiplayertextbox" { - default_format = "#medium" - } - - blockoverride "buttonstyle" { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 5 - downpressedframe = 6 - texture = "gfx/interface/buttons/button_entry_02.dds" - spriteType = Corneredstretched - spriteborder = { 20 20 } - framesize = { 249 78 } - - default_format = "#medium" - } - - blockoverride "playerlist_playable" { - } - - blockoverride "game_info" { - header_pattern = { - layoutpolicy_horizontal = expanding - - block "size" { - size = { 100 48 } - } - - blockoverride "header_text" { - text = "[GetCurrentDate.GetString]" - - } - - blockoverride "button_close" { - visible = no - } - } - } - - blockoverride "selected_playable" { - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - - state = { - name = "jomini_preselected_changed" - next = "preselected_shown" - alpha = 0.5 - - on_finish = "[PdxGuiTabs.SetTabByKey( 'character' )]" - } - - state = { - name = "preselected_shown" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_selected_playable" - - soundparam = { - name = "click_index" - value = "[LobbyView.GetSelectionClickIndex]" - } - - soundparam = { - name = "culture" - value = "[LobbyView.GetSelectedPlayable.GetCharacter.GetCulture.GetHeritage.GetAudioParameter]" - } - } - } - - ### Tabs header - hbox_tab_buttons = { - name = "tab_buttons" - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'lobby_tab' )]" - } - } - - ### Tab Character (Unseleceted/Observer) - scrollbox = { - name = "tab_character_unselected" - visible = "[And( PdxGuiTabs.IsTabSet( 'character' ), Not( LobbyView.HasSelectedPlayable ) )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - default_format = "#I" - align = center - text = "MULTIPLAYER_GUI_CLICK_TO_SELECT" - visible = "[Not( LobbyView.IsObserver )]" - } - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[LobbyView.IsObserver]" - - spacer = {size = {0 20}} - - text_label_center = { - name = "header" - text = "JOMINI_MULTIPLAYER_GUI_OBSERVER" - } - - text_multi = { - name = "desc" - text = "FRONTEND_OBSERVER_DESC" - autoresize = yes - max_width = 300 - align = left - } - - expand = {} - } - } - } - - ### Tab Character (Character is selected) - scrollbox = { - name = "tab_character" - datacontext = "[GetLobbyHelper]" - visible = "[And( And( PdxGuiTabs.IsTabSet( 'character' ), Character.IsValid ), LobbyView.HasSelectedPlayable )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - state = { - name = _show - on_start = "[LobbyHelperWindow.SetLandlessTabSelected( '(bool)no' )]" - } - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - #### MAIN PORTRAIT ### - vbox = { - layoutpolicy_horizontal = expanding - - ############### - # Character box - widget = { - name = "main_characters" - layoutpolicy_horizontal = expanding - size = { 0 280 } - - datacontext = "[GetIllustration( 'character_view_bg' )]" - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - using = Mask_Rough_Edges - } - - ### Liege - container = { - name = "liege" - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter.GetLiege]" - visible = "[And(Character.IsValid, Not(Character.IsSelected))]" - parentanchor = bottom|left - position = { 5 -125 } - - portrait_head_small = { - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "opinion_box" - { - visible = no - } - - blockoverride "status_icons" { - visible = no - } - } - - text_label_center = { - parentanchor = top|hcenter - position = { -10 85 } - text = "[liege|E]" - } - - icon = { - name = "non_dejure_liege" - visible = "[Not( Character.GetVassalContract.IsRightfulLiege )]" - parentanchor = top|left - position = { 65 80 } - - size = { 35 35 } - texture = "gfx/interface/icons/levy_tax_reduction.dds" - - using = tooltip_ws - tooltip = "MRW_TT_NOT_RIGHTFUL_LIEGE" - } - } - - ### Heir - container = { - name = "heir" - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter.GetPlayerHeir]" - visible = "[Character.IsValid]" - parentanchor = bottom|left - position = { 5 -10 } - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "opinion_box" - { - visible = no - } - - blockoverride "status_icons" { - visible = no - } - } - - text_label_center = { - parentanchor = top|hcenter - position = { 0 85 } - name = "heir_label" - text = "[heir|E]" - } - } - - ### Main Character - portrait_body = { - name = "tutorial_highlight_main_character_button" - parentanchor = bottom|right - position = { -10 0 } - size = { 240 300 } - - blockoverride "portrait_button" { - size = { 280 421 } - } - - blockoverride "portrait_glow" {} - - blockoverride "portrait_texture" { - portrait_texture = "[Character.GetPortrait('environment_body', 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "mask" { - mask = "gfx/portraits/portrait_mask_character_view.dds" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "portrait_opinion" { - visible = no - } - - blockoverride "portrait_status_icons" { - visible = no - } - - blockoverride "status_icons" {} - blockoverride "coa" {} - blockoverride "opinion_box" {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 10 } - spacing = 5 - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - raw_text = "[Character.GetUINameNotMeNoTooltip], #low [Character.GetAge]#!" - default_format = "#high" - using = Font_Size_Medium - fontsize_min = 14 - align = left|nobaseline - max_width = 375 - - tooltip = "[Character.GetCharacterViewNameNicknamedNoTooltipRegnal]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin_top = 5 - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 5 } - - hbox = { - layoutpolicy_horizontal = expanding - - ## Traits and modifiers - fixedgridbox = { - name = "personality_traits" - datamodel = "[Character.GetTraitIndices]" - flipdirection = yes - addcolumn = 50 - addrow = 50 - maxhorizontalslots = 5 - - item = { - icon_trait = { - datacontext = "[GetTraitForIndex(int32.GetInt)]" - visible = "[Trait.IsPersonality]" - - blockoverride "icon_size" - { - size = { 50 50 } - } - } - } - } - - expand = {} - } - - hbox = { - name = "faith_and_culture" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - button_religion_icon = { - name = "faith_button" - alwaystransparent = yes - datacontext = "[Character.GetFaith]" - size = { 45 45 } - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - - using = tooltip_ws - } - - vbox = { - text_single = { - datacontext = "[Character.GetFaith]" - layoutpolicy_horizontal = expanding - text = "FAITH_LOBBY_WINDOW" - default_format = "#clickable;italic" - align = nobaseline - max_width = 220 - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - - using = tooltip_ws - } - - text_single = { - datacontext = "[Character.GetCulture]" - layoutpolicy_horizontal = expanding - text = "CULTURE_LOBBY_WINDOW" - default_format = "#clickable;italic" - align = nobaseline - max_width = 220 - - tooltipwidget = { - ruler_designer_culture_tooltip = {} - } - - using = tooltip_ws - } - } - - expand = {} - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - } - - ### HOUSE COA ### - vbox = { - datacontext = "[Character.GetHouse]" - visible = "[Character.HasDynasty]" - layoutpolicy_vertical = expanding - - margin = { 10 0 } - margin_bottom = 15 - - widget = { - name = "house" - layoutpolicy_vertical = expanding - size = { 88 84 } - - coa_house_medium = { - parentanchor = top|hcenter - alwaystransparent = yes - using = tooltip_ws - } - - widget = { - parentanchor = bottom|right - position = { -3 3 } - size = { 30 30 } - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - icon = { - name = "bastard" - parentanchor = center - - visible = "[Not(Character.IsLegitimateMemberOfHouse)]" - framesize = { 40 40 } - frame = 4 - size = { 20 20 } - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "CV_TT_BASTARD" - } - - icon = { - name = "head_icon" - parentanchor = center - size = { 20 20 } - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)no'), '(int32)9')]" - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)no')]" - tooltip = "[Character.GetDynastyHeadTooltip]" - } - } - } - - text_multi = { - autoresize = yes - max_width = 95 - text = "[DynastyHouse.GetBaseNameNoTooltip]" - align = center - } - - expand = {} - } - } - } - - - - ### REALM ### - hbox = { - visible = "[Character.HasLandedTitles]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 85 100 } - - coa_realm_medium_crown = { - name = "realm_flag" - alwaystransparent = yes - parentanchor = center - - blockoverride "OnClickDefault" {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "character_title" - layoutpolicy_horizontal = expanding - - align = left - autoresize = yes - max_width = 310 - text = "[Character.GetPrimaryTitle.GetNameNoTooltip|U]" - default_format = "#low" - using = Font_Size_Medium - } - - text_single = { - name = "government_type" - layoutpolicy_horizontal = expanding - - text = "[SelectLocalization( Character.GetGovernment.IsValid(), 'GOVERNMENT_ADJECTIVE_ICON', '' )]" - default_format = "#low" - } - - hbox = { - visible = "[Character.GetGovernment.IsType('landless_adventurer_government')]" - layoutpolicy_horizontal = expanding - margin_top = 3 - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/map_icon_camp.dds" - } - - text_single = { - text = RULER_DESIGNER_CAMP_LOCATION - align = left - } - - expand = {} - } - - hbox = { - visible = "[Character.GetGovernment.IsType('nomad_government')]" - layoutpolicy_horizontal = expanding - margin_top = 3 - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/map_icon_yurt.dds" - } - - text_single = { - text = RULER_DESIGNER_YURT_LOCATION - align = left - } - - expand = {} - } - - hbox = { - visible = "[And( Character.HasDomicile, Character.GetGovernment.IsType('administrative_government') )]" - layoutpolicy_horizontal = expanding - margin_top = 3 - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/map_icons/map_icon_estate.dds" - } - - text_single = { - text = RULER_DESIGNER_ESTATE_LOCATION - align = left - } - - expand = {} - } - } - - expand = {} - } - } - - expand = { - layoutpolicy_vertical = expanding - } - - ### DIFFICULTY ### - vbox = { - visible = "[Character.HasDifficultyInfo]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 5 0 } - margin_top = 5 - margin_bottom = 10 - - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "difficulty_label" - layoutpolicy_horizontal = expanding - margin = { 5 0 } - text = "MULTIPLAYER_LOBBY_DIFFICULTY_HEADER" - } - - text_multi = { - name = "difficulty" - layoutpolicy_horizontal = expanding - autoresize = yes - text = "MULTIPLAYER_LOBBY_DIFFICULTY_INFO_TEXT" - max_width = 380 - } - } - } - } - - ### Tab Landless Rulers - scrollbox = { - name = "tab_landless_rulers" - datacontext = "[GetLobbyHelper]" - visible = "[PdxGuiTabs.IsTabSet( 'landless_rulers' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - state = { - name = _show - on_start = "[LobbyHelperWindow.SetLandlessTabSelected( '(bool)yes' )]" - on_start = "[SetMapMode('landless_rulers')]" - } - - state = { - name = _hide - on_start = "[LobbyHelperWindow.SetLandlessTabSelected( '(bool)no' )]" - on_start = "[SetMapMode('realms')]" - } - - blockoverride "scrollbox_margins" - { - margin = { 5 0 } - } - - blockoverride "scrollbox_content" - { - datacontext = "[GetLobbyHelper]" - datacontext = "[LobbyHelperWindow.GetCharacterList]" - - spacing = 4 - - hbox_lobby_government_filter = { } - - vbox_character_list = { - name = "landless_rulers_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "button_texture" - { - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - } - - blockoverride "container_implementation" - { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - block "character_gridbox" - { - addcolumn = 370 - addrow = 120 - datamodel_reuse_widgets = yes - } - - item = { - button_landless_ruler_list_item = { - size = { 370 110 } - margin = { 0 2 } - } - } - } - } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - - blockoverride "sort_buttons" {} - - blockoverride "character_count" - { - hbox = { - layoutpolicy_horizontal = growing - margin = { 15 0 } - margin_top = 5 - margin_bottom = 10 - spacing = 5 - - expand = {} - - widget = { - size = { 20 15 } - - warning_icon = { - size = { 25 25 } - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - tooltip = "CHARACTER_FINDER_FILTER_SET" - position = { -3 -5 } - } - } - - text_single = { - name = "character_count" - datacontext = "[CharacterSelectionList]" - text = "CHARACTER_FINDER_COUNT" - align = center|nobaseline - default_format = "#low" - } - } - } - } - } - } - expand = {} - } - - blockoverride "game_rules" { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - margin_right = 10 - margin_bottom = 8 - margin_top = 4 - - flowcontainer_game_rules_mini = { - layoutpolicy_horizontal = expanding - name = "game_rules_mini" - margin = { 10 5 } - } - - button_standard = { - name = "game_rules_button" - size = { 380 45 } - - button_rules = { - size = { 30 30 } - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - } - - text = "GAME_RULES" - margin = { 60 0 } - onclick = "[OpenGameRules]" - - hbox = { - margin = { 5 0 } - expand = {} - datacontext = "[GetGameRules]" - - ironman_save_icon = { - visible = "[IsIronmanEnabled]" - size = { 30 30 } - tooltip = "IRONMAN_ENABLED" - } - - ironman_disabled_icon = { - visible = "[Not( IsIronmanEnabled )]" - size = { 30 30 } - tooltip = "IRONMAN_DISBLED" - } - achievements_enabled_icon = { - visible = "[CanGetAchievements]" - size = { 30 30 } - tooltip = ACHIEVEMENTS_ENABLED - } - achievements_disabled_icon = { - visible = "[Not( CanGetAchievements )]" - size = { 30 30 } - tooltip = ACHIEVEMENTS_DISABLED - using = tooltip_nw - } - } - } - - vbox = { - name = "select_and_customize_character" - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - margin_top = 35 - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Or(Or(Character.IsOtherPlayer, Character.IsLocalPlayer), And(Not(Character.IsValid), IsObserver))]" - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 5 16 } - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "player" - visible = "[Character.IsOtherPlayer]" - text = "MULTIPLAYER_LOBBY_PLAYED_BY" - align = nobaseline - default_format = "#high" - } - - text_single = { - name = "its_you" - visible = "[Character.IsLocalPlayer]" - text = "MULTIPLAYER_LOBBY_PLAYED_BY_YOU" - align = nobaseline - default_format = "#high" - } - - text_single = { - visible = "[And(Not(Character.IsValid), IsObserver)]" - size = { 380 100 } - align = center - text = "MULTIPLAYER_LOBBY_PLAY_OBSERVER" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - visible = "[Not( Or( Character.IsOtherPlayer, Character.IsLocalPlayer ) )]" - - button_primary = { - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - visible = "[And( GameIsMultiplayer, IsPreparationLobby )]" - - layoutpolicy_horizontal = expanding - size = { 350 33 } - - text = "JOMINI_MULTIPLAYER_GUI_SELECT" - onclick = "[LobbyView.Control( Character.GetPlayable )]" - tooltip = "[LobbyView.GetControlToolTip( Character.GetPlayable )]" - enabled = "[LobbyView.CanControl( Character.GetPlayable )]" - } - } - } - } - } - - ### Chosen character name left side ### - blockoverride "readyness" { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 390 -1 } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "MULTIPLAYER_LOBBY_READY" - visible = "[And( LobbyPlayer.HasPlayable, Not( LobbyPlayer.IsObserver ) )]" - max_width = 245 - autoresize = yes - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SelectLocalization( IsMachineRulerDesigning( LobbyPlayer.GetID ), 'MULTIPLAYER_LOBBY_RULER_DESIGNING', 'MULTIPLAYER_LOBBY_NOT_READY' )]" - visible = "[Not( Or( Or( LobbyPlayer.HasPlayable, LobbyPlayer.IsObserver ), LobbyPlayer.IsHotjoining ) )]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_OBSERVER" - visible = "[LobbyPlayer.IsObserver]" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[LobbyPlayer.IsHotjoining]" - text = "MULTIPLAYER_LOBBY_JOIN_PROGRESS" - } - - expand = {} - } - } - - - - ### MAPMODES, OBSERVE MODE ### - widget = { - parentanchor = bottom - size = { 100% 215 } - allow_outside = yes - - vbox = { - expand = {} - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 30 - margin_top = 20 - margin_left = 440 - margin_right = 390 - allow_outside = yes - - vbox = { - spacing = 5 - - background = { - using = Background_Area_Dark - margin = { 10 15 } - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - button_standard = { - visible = "[InDebugMode]" - size = { 200 40 } - - onclick = "[ToggleGameView( 'find_title' )]" - tooltip = "IM_TT_FIND_TITLE" - shortcut = "find_title_shortcut" - - text = "FIND_TITLE" - } - - JominiLobbyViewButton = { - size = { 200 40 } - - onclick = "[SetRandomPlayableObserverCharacter]" - - text = "MULTIPLAYER_LOBBY_CHOOSE_RANDOM_CHARACTER" - } - - JominiLobbyViewButton = { - layoutpolicy_horizontal = expanding - size = { 200 40 } - - onclick = "[CloseGameView( 'find_title' )]" - onclick = "[LobbyView.ToggleObserve]" - tooltip = "LOBBY_OBSERVER_MODE_TOOLTIP" - - text = "[SelectLocalization(LobbyView.IsObserver, 'JOMINI_MULTIPLAYER_GUI_DISABLE_OBSERVE', 'JOMINI_MULTIPLAYER_GUI_OBSERVE')]" - - icon_observer = { - position = { -5 2 } - parentanchor = right - size = { 35 35 } - } - } - } - - expand = {} - - map_modes = { - scale = 0.8 - filter_mouse = all - alwaystransparent = no - hotkeys_HUD = {} - } - } - } - } - - # DLC list, be as far in front as possible so we overlay rest of UI - widget_dlc_list_with_overlay = { - datacontext = "[GetLobbyHelper]" - datacontext = "[LobbyHelperWindow.GetDlcCollection]" - } - - - error_horse = { - parentanchor = bottom|left - position = { 675 -10 } - visible = "[And( Not( IsPauseMenuShown ), Not( ReleaseMode ) )]" - } -} - -JominiLobbyViewEndPreparationConfirmation = {} -JominiMultiplayerJoinRequest = {} -JominiMultiplayerOosMessage = { - blockoverride "oos_item" { - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[OosData.GetPlayable.GetCharacter]" - layoutpolicy_horizontal = expanding - - widget = { - size = { 68 106 } - - coa_realm_medium_crown = { - visible = "[And( Character.IsValid, Not( OosData.IsObserver ))]" - } - - icon_observer = { - size = { 68 68 } - visible = "[Or( Not( Character.IsValid ), OosData.IsObserver )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - text_single = { - text = "[Character.GetName]" - visible = "[And( Character.IsValid, Not( OosData.IsObserver ))]" - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OBSERVER" - visible = "[OosData.IsObserver]" - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_PLAYER_NAME" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_TYPE" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_multi = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_FOLDER" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - } - } - } -} - -types LobbyWindowTypes { - - type button_landless_ruler_list_item = button_standard { - datacontext = "[CharacterListItem.GetCharacter]" - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - tooltip = "[CharacterListItem.GetUnselectableReason]" - - block "overlay" { - using = default_character_list_overlay - } - - hbox = { - layoutpolicy_vertical = expanding - - spacing = 4 - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - min_width = 250 - max_width = 250 - max_height = 50 - autoresize = yes - alwaystransparent = yes - - text = lobby_landless_ruler_name - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 250 - alwaystransparent = yes - - text = lobby_landless_domicile_location - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 250 - alwaystransparent = yes - - text = lobby_landless_domicile_followers - } - } - } - - block "widget" {} - } - - type hbox_lobby_government_filter = hbox { - name = "filters" - layoutpolicy_horizontal = expanding - - text_single = { - text = lobby_landless_government_filter - max_width = 240 - } - - expand = { } - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[LobbyHelperWindow.GetLandlessGovernmentFilters]" - onselectionchanged = "[LobbyHelperWindow.OnSelectGovernmentFilter]" - selectedindex = "[LobbyHelperWindow.GetLandlessGovernmentSetIndex]" - } - - blockoverride "dropdown_size" - { - size = { 150 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 150 550 } - } - - blockoverride "dropdown_active_item_properties" - { - text_single = { - visible = "[GovernmentType.IsValid]" - align = nobaseline|left - margin_left = 10 - parentanchor = vcenter - - text = "[GovernmentType.GetNameNoTooltip]" - } - - text_single = { - visible = "[Not( GovernmentType.IsValid )]" - align = nobaseline|left - margin_left = 10 - parentanchor = vcenter - - text = "any_filter_option" - } - } - - blockoverride "dropdown_item_properties" - { - text_single = { - visible = "[GovernmentType.IsValid]" - align = nobaseline|left - margin_left = 5 - parentanchor = vcenter - - text = "[GovernmentType.GetNameNoTooltip]" - } - - text_single = { - visible = "[Not( GovernmentType.IsValid )]" - align = nobaseline|left - margin_left = 5 - parentanchor = vcenter - - text = "any_filter_option" - } - } - - tooltip = lobby_landless_government_filter_tt - using = tooltip_ne - } - } -} diff --git a/N3OW/gui/multiplayer_serverbrowser.gui b/N3OW/gui/multiplayer_serverbrowser.gui deleted file mode 100644 index 6bc8e2df..00000000 --- a/N3OW/gui/multiplayer_serverbrowser.gui +++ /dev/null @@ -1,2 +0,0 @@ -JominiServerBrowserWindow = {} -JominiJoinServerDialogWindow = {} diff --git a/N3OW/gui/multiplayer_setup.gui b/N3OW/gui/multiplayer_setup.gui deleted file mode 100644 index c61e7d50..00000000 --- a/N3OW/gui/multiplayer_setup.gui +++ /dev/null @@ -1 +0,0 @@ -JominiMultiplayerSetup = {} diff --git a/N3OW/gui/multiplayer_types.gui b/N3OW/gui/multiplayer_types.gui deleted file mode 100644 index a6d59f57..00000000 --- a/N3OW/gui/multiplayer_types.gui +++ /dev/null @@ -1,2499 +0,0 @@ -types JominiServerBrowser { - - type JominiMultiplayerPushButton = button { - block "jomini_multiplayer_push_button" - { - texture = "gfx/editor_gui/editor_button.dds" - gfxtype = framedbuttongfx - spriteType = CorneredStretched - spriteborder = { 4 4 } - effectname = "NoHighlight" - framesize = { 16 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - intersectionmask = yes - } - } - - type JominiServerBrowserWindow = window { - name = "JominiServerBrowser" - size = { 955 92% } - - movable = no - - state = { - name = _show - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - block "serverbrowser_background" {} - - vbox = { - spacing = 5 - using = Window_Margins_Sidebar - margin_right = 20 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "JOMINI_MULTIPLAYER_SERVER_BROWSER_HEADER" - } - - blockoverride "button_close" { - visible = no - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - margin_left = 10 - spacing = 10 - - ### PUBLIC GAME ### - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 5 0 } - margin_right = 10 - - text_single = { - text = "JOMINI_MULTIPLAYER_PUBLIC_GAMES" - layoutpolicy_horizontal = expanding - align = left - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - JominiMultiplayerCheckbutton = { - blockoverride "checkbutton" - { - onclick = "[JominiServerBrowserGui.ToggleHasPasswordFilter]" - checked = "[Not( JominiServerBrowserGui.IsHasPasswordFilterSet )]" - } - - blockoverride "label" - { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_FILTER_LABEL_HAS_PASSWORD" - align = nobaseline - } - } - - JominiMultiplayerCheckbutton = { - blockoverride "checkbutton" - { - onclick = "[JominiServerBrowserGui.ToggleSameVersionFilter]" - checked = "[JominiServerBrowserGui.IsSameVersionFilterSet]" - } - - blockoverride "label" - { - text = "TITUS_FILTER_SAME_VERSION" - align = nobaseline - } - } - - JominiMultiplayerCheckbutton = { - visible = "[JominiMultiplayerIsCrossplayFilterAvailable]" - - blockoverride "checkbutton" - { - onclick = "[JominiServerBrowserGui.ToggleCrossPlatformFilter]" - checked = "[Not(JominiServerBrowserGui.IsCrossPlatformFilterSet)]" - enabled = "[JominiMultiplayerIsCrossplayEnabled]" - } - - blockoverride "label" - { - text = "MULTIPLAYER_GUI_PUBLIC_MICROSOFT_ONLY" - align = nobaseline - } - } - - editbox_search_field = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_properties" - { - name = "game_name_filter_editbox" #not used in code - ontextedited = "[JominiServerBrowserGui.OnFilterTextEdit]" - } - } - - button_group = { - onclick = "[JominiServerBrowserGui.RefreshServers]" - - hbox = { - spacing = 5 - text_single = { - text = "REFRESH" - align = nobaseline - } - - button_change = { - name = "scan_button" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 20 - margin_left = 10 - - ### SERVER/GAME NAME ### - button_standard_list = { - size = { 260 33 } - onclick = "[JominiServerBrowserGui.Sort( 'name' )]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_TT_SERVER_NAME" - using = tooltip_ne - - hbox = { - spacing = 5 - margin_left = 10 - - text_single = { - layoutpolicy_vertical = expanding - align = nobaseline - text = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_LABEL_SERVER_NAME" - max_width = 250 - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - JominiMultiplayerSortButtonAsc = { - visible = "[And( JominiServerBrowserGui.IsSortAscending, JominiServerBrowserGui.IsSortedBy( 'name' ) )]" - } - - JominiMultiplayerSortButtonDesc = { - visible = "[And( Not( JominiServerBrowserGui.IsSortAscending ), JominiServerBrowserGui.IsSortedBy( 'name' ) )]" - } - } - } - } - - ### PLAYERS ### - button_standard_list = { - size = { 140 33 } - onclick = "[JominiServerBrowserGui.Sort( 'players_count' )]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_TT_PLAYERS" - using = tooltip_ne - - hbox = { - spacing = 5 - margin_left = 10 - - text_single = { - layoutpolicy_vertical = expanding - align = nobaseline - text = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_LABEL_PLAYERS" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - JominiMultiplayerSortButtonAsc = { - visible = "[And( JominiServerBrowserGui.IsSortAscending, JominiServerBrowserGui.IsSortedBy( 'players_count' ) )]" - } - - JominiMultiplayerSortButtonDesc = { - visible = "[And( Not( JominiServerBrowserGui.IsSortAscending ), JominiServerBrowserGui.IsSortedBy( 'players_count' ) )]" - } - } - } - } - - ### STATUS ### - button_standard_list = { - size = { 150 33 } - onclick = "[JominiServerBrowserGui.Sort( 'status' )]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_TT_STATUS" - using = tooltip_ne - - hbox = { - spacing = 5 - margin = { 5 0 } - - text_single = { - layoutpolicy_vertical = expanding - align = nobaseline - text = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_LABEL_STATUS" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - JominiMultiplayerSortButtonAsc = { - visible = "[And( JominiServerBrowserGui.IsSortAscending, JominiServerBrowserGui.IsSortedBy( 'status' ) )]" - } - - JominiMultiplayerSortButtonDesc = { - visible = "[And( Not( JominiServerBrowserGui.IsSortAscending ), JominiServerBrowserGui.IsSortedBy( 'status' ) )]" - } - } - } - } - - ### CHECKSUM ### - button_standard_list = { - size = { 145 33 } - onclick = "[JominiServerBrowserGui.Sort( 'version' )]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_TT_VERSION" - using = tooltip_ne - - hbox = { - spacing = 5 - margin_left = 10 - - text_single = { - layoutpolicy_vertical = expanding - minimumsize = { 70 0 } - align = nobaseline - text = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_LABEL_VERSION" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - JominiMultiplayerSortButtonAsc = { - visible = "[And( JominiServerBrowserGui.IsSortAscending, JominiServerBrowserGui.IsSortedBy( 'version' ) )]" - } - - JominiMultiplayerSortButtonDesc = { - visible = "[And( Not( JominiServerBrowserGui.IsSortAscending ), JominiServerBrowserGui.IsSortedBy( 'version' ) )]" - } - } - } - } - - ### PASSWORD ### - button_standard_list = { - size = { 80 33 } - onclick = "[JominiServerBrowserGui.Sort( 'has_password' )]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_SORT_TT_PASSWORD" - using = tooltip_ne - - hbox = { - margin_left = 10 - - icon_has_password = {} - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - JominiMultiplayerSortButtonAsc = { - visible = "[And( JominiServerBrowserGui.IsSortAscending, JominiServerBrowserGui.IsSortedBy( 'has_password' ) )]" - } - - JominiMultiplayerSortButtonDesc = { - visible = "[And( Not( JominiServerBrowserGui.IsSortAscending ), JominiServerBrowserGui.IsSortedBy( 'has_password' ) )]" - } - } - } - } - - spacer = { - size = { 110 1 } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[JominiServerBrowserGui.AccessServers]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - button_standard_clean = { - layoutpolicy_horizontal = expanding - onclick = "[JominiServer.Join]" - tooltip_visible = "[Not(JominiServer.IsSameVersion)]" - tooltip = "JOMINI_MULTIPLAYER_GUI_VERSION_MISMATCH_SERVER_BROWSER" - enabled = "[JominiServer.IsSameVersion]" - - hbox = { - spacing = 5 - - widget = { - size = { 255 33 } - - hbox = { - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = left|nobaseline - text = "[JominiServer.GetName]" - default_format = "#high" - } - } - } - - widget = { - size = { 140 33 } - - hbox = { - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = left|nobaseline - text = "[JominiServer.GetNumPlayers] / [JominiServer.GetMaxPlayers]" - default_format = "#high" - } - } - } - - widget = { - size = { 140 33 } - - hbox = { - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = left|nobaseline - text = "[JominiServer.GetStatus]" - default_format = "#high" - } - } - } - - ### CHECKSUM ### - widget = { - size = { 150 33 } - - hbox = { - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = left|nobaseline - text = "[JominiServer.GetVersion]" - default_format = "#high" - } - } - } - - widget = { - size = { 50 33 } - - hbox = { - margin_left = 10 - - icon_has_password = { - visible = "[JominiServer.GetHasPassword]" - tooltip = "JOMINI_MULTIPLAYER_GUI_SERVER_PASSWORD_PROTECTED_TOOLTIP" - } - - expand = {} - } - } - - widget = { - size = { 115 33 } - - hbox = { - margin_right = 5 - margin_left = 10 - - expand = {} - - text_single = { - align = left|nobaseline - max_width = 80 - - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_JOIN_BUTTON_IN_LIST" - default_format = "#high" - } - - widget = { - size = { 20 20 } - allow_outside = yes - - button_play = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - text = "JOMINI_MULTIPLAYER_SERVER_BROWSER_EMPTY" - layoutpolicy_vertical = expanding - visible = "[Or( IsDataModelEmpty( JominiServerBrowserGui.AccessServers ), JominiServerBrowserGui.IsRefreshing )]" - } - } - - ### PRIVATE GAME #### - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 5 0 } - - text_single = { - text = "JOMINI_MULTIPLAYER_JOIN_PRIVATE_GAMES" - layoutpolicy_horizontal = expanding - align = left - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - JominiMultiplayerTextbox = { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_ID_LABEL" - autoresize = yes - default_format = "#medium" - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_properties" - { - name = "server_id_editbox" - } - } - - button_paste = { - onclick = "[JominiServerBrowserGui.SetServerId]" - tooltip = "MULTIPLAYER_GUI_SERVER_BROWSER_PASTE_ID" - } - - button_standard = { - text = "JOIN" - minimumsize = { 220 0 } - onclick = "[JominiServerBrowserGui.JoinServerWithId]" - block "serverbrowser_join_server" {} - } - } - - } - } - } - } - - type JominiJoinServerDialogWindow = window { - name = "JominiJoinServerDialog" - modal = yes - modality = all - - position = { 0 0 } - parentanchor = center - widgetanchor = center - - size = { 300 75 } - using = Window_Background_Popup - - vbox = { - spacing = 10 - restrictparent_min = yes - using = Window_Margins - - - hbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - - JominiMultiplayerTextbox = { - text = "JOMINI_MULTIPLAYER_GUI_POPUP_PASSWORD" - autoresize = yes - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_properties" - { - onreturnpressed = "[JominiPasswordPopup.OnSubmit]" - name = "password" - password = yes - } - } - } - - expand = {} - - hbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - - button_standard = { - text = "JOMINI_MULTIPLAYER_GUI_POPUP_DECLINE" - layoutpolicy_horizontal = expanding - - onclick = "[JominiPasswordPopup.OnDecline]" - shortcut = close_window - } - - button_primary = { - text = "JOMINI_MULTIPLAYER_GUI_POPUP_SUBMIT" - layoutpolicy_horizontal = expanding - - onclick = "[JominiPasswordPopup.OnSubmit]" - } - } - } - } -} - -types JominiMultiplayerIngame { - type JominiMultiplayerJoinRequest = window { - name = "multiplayer_join_request_dialog" - visible = "[JominiHasPlayerJoinRequests]" - layer = confirmation - - size = { 800 300 } - widgetanchor = center - parentanchor = center - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - using = Window_Background_Popup - - vbox = { - using = Window_Margins - spacing = 10 - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "JOMINI_MULTIPLAYER_GUI_PLAYER_JOIN_REQUEST" - } - - blockoverride "button_close" - { - visible = no - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[JominiAccessPlayerJoinRequests]" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = fixed - spacing = 5 - margin = { 0 2 } - - text_single = { - text = "[PlayerJoinRequest.GetPlayerName]" - autoresize = yes - layoutpolicy_horizontal = expanding - } - - expand = {} - - button_standard = { - name = "reject_button" - text = "JOMINI_MULTIPLAYER_GUI_PLAYER_JOIN_REQUEST_REJECT" - onclick = "[PlayerJoinRequest.Reject]" - layoutpolicy_horizontal = fixed - } - - button_primary = { - name = "accept_button" - text = "JOMINI_MULTIPLAYER_GUI_PLAYER_JOIN_REQUEST_ACCEPT" - onclick = "[PlayerJoinRequest.Accept]" - } - } - } - } - } - } - } - } - - type JominiMultiplayerOosMessage = window { - name = "multiplayer_oos_message" - using = Window_Background_Popup - layer = confirmation - - size = { 600 700 } - parentanchor = center - - visible = "[DataModelHasItems( OosWindow.GetOosData )]" - - vbox = { - margin = { 10 10 } - spacing = 5 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[OosWindow.Continue]" - } - } - - text_multi = { - margin = { 50 0 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_MY" - minimumsize = { 0 50 } - visible = "[OosWindow.IsLocalOos]" - layoutpolicy_horizontal = expanding - } - - text_multi = { - margin = { 50 0 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_DESC" - visible = "[Not( OosWindow.IsLocalOos )]" - minimumsize = { 0 50 } - layoutpolicy_horizontal = expanding - } - - text_single = { - margin = { 50 0 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_DESC_LOCAL" - visible = "[OosWindow.IsLocalOos]" - layoutpolicy_horizontal = expanding - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - margin = { 5 5 } - layoutpolicy_horizontal = expanding - - vbox = { - datamodel = "[OosWindow.GetOosData]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - block "oos_item" { - layoutpolicy_horizontal = expanding - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_PLAYER_NAME" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_TYPE" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_FOLDER" - max_width = 490 - autoresize = yes - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - button_primary = { - size = { 300 30 } - datacontext = "[OosWindow]" - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_CONTINUE" - onclick = "[OosWindow.Continue]" - visible = "[JominiIsHostOrLocal]" - } - - button_standard = { - size = { 300 30 } - datacontext = "[OosWindow]" - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_CONTINUE" - onclick = "[OosWindow.Continue]" - visible = "[Not( JominiIsHostOrLocal )]" - } - - button_standard = { - size = { 300 30 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_RESYNC" - visible = "[JominiIsHostOrLocal]" - onclick = "[OosWindow.Resync]" - } - - button_standard = { - size = { 300 30 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_EXIT_BUTTON" - onclick = "[OosWindow.GoToMenu]" - visible = "[JominiIsHostOrLocal]" - } - - button_primary = { - size = { 300 30 } - text = "JOMINI_MULTIPLAYER_GUI_OOS_MESSAGE_EXIT_BUTTON" - onclick = "[OosWindow.GoToMenu]" - visible = "[Not( JominiIsHostOrLocal )]" - } - } - } -} - -types JominiMultiplayerFrontend -{ - type JominiMultiplayerFrontendView = widget { - # visible = no - ### moved to serverbrowserwindow - name = "JominiMultiplayerView" - size = { 100% 100% } - - block "background" {} - - block "states" {} - - block "menu" - { - flowcontainer = { - block "menu_properties" - { - direction = vertical - } - - block "menu_items" - { - JominiMultiplayerFrontEndButton = { - onclick = "[FrontEndMultiplayerView.OnBack]" - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_BACK_BUTTON" - } - - JominiMultiplayerFrontEndButton = { - onclick = "[FrontEndMultiplayerView.OnLoad]" - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_LOAD_AND_HOST_BUTTON" - } - - JominiMultiplayerFrontEndButton = { - onclick = "[FrontEndMultiplayerView.OnHost]" - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_HOST_BUTTON" - } - - JominiMultiplayerFrontEndButton = { - onclick = "[JominiServerBrowserGui.RefreshServers]" - text = "JOMINI_MULTIPLAYER_GUI_SERVER_BROWSER_SCAN_BUTTON" - } - - } - } - } - } -} - -types JominiMultiplayerSetup { - type JominiMultiplayerSetupEditBox = editbox { - align = left - alwaystransparent = no - focuspolicy = all - block "setup_editbox" { - cursorcolor = { 1 1 1 0.6 } - maxcharacters = 255 - default_format = "#medium" - fontsize = 14 - - background = { - using = Background_Area_Border_Solid - } - } - } - - type JominiMultiplayerSetupTextBox = text_single {} - - type JominiMultiplayerSetupCheckButton = hbox { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - button_checkbox = { - size = { 20 20 } - block "checkbutton" {} - } - - JominiMultiplayerSetupTextBox = { - layoutpolicy_horizontal = expanding - align = nobaseline - block "label" - { - visible = no - } - } - } - - type JominiMultiplayerSetup = window { - name = "JominiMultiplayerSetupWindow" - - size = { 420 450 } - parentanchor = center - widgetanchor = center - - alwaystransparent = no - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - spacing = 20 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_SHOW_SETTINGS" - } - - vbox = { - layoutpolicy_horizontal = expanding - - JominiMultiplayerSetupCheckButton = { - blockoverride "checkbutton" - { - name = "mpconfig_offline" - checked = "[MultiplayerSetupWindow.GetMPConfig.IsOffline]" - onclick = "[MultiplayerSetupWindow.AccessMPConfig.SetOffline]" - tooltip = "[MultiplayerSetupWindow.GetMPConfig.GetPrivateToolTip]" - enabled = "[JominiIsMultiplayerAccessible]" - } - - blockoverride "label" - { - text = "JOMINI_MULTIPLAYER_GUI_GAME_MODE_OFFLINE" - } - } - - JominiMultiplayerSetupCheckButton = { - blockoverride "checkbutton" - { - name = "mpconfig_private" - checked = "[MultiplayerSetupWindow.GetMPConfig.IsPrivate]" - onclick = "[MultiplayerSetupWindow.AccessMPConfig.SetPrivate]" - tooltip = "[MultiplayerSetupWindow.GetMPConfig.GetPrivateToolTip]" - enabled = "[JominiIsMultiplayerAccessible]" - } - - blockoverride "label" - { - text = "JOMINI_MULTIPLAYER_GUI_PRIVATE" - } - - tooltip = JOMINI_MULTIPLAYER_GUI_PRIVATE_TT - } - - JominiMultiplayerSetupCheckButton = { - blockoverride "checkbutton" - { - name = "mpconfig_public" - checked = "[MultiplayerSetupWindow.GetMPConfig.IsPublic]" - onclick = "[MultiplayerSetupWindow.AccessMPConfig.SetPublic]" - tooltip = "[MultiplayerSetupWindow.GetMPConfig.GetPublicToolTip]" - enabled = "[JominiIsMultiplayerAccessible]" - } - - blockoverride "label" - { - text = "JOMINI_MULTIPLAYER_GUI_PUBLIC" - } - - tooltip = JOMINI_MULTIPLAYER_GUI_PUBLIC_TT - } - } - - vbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - JominiMultiplayerSetupTextBox = { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_NAME_LABEL" - layoutpolicy_horizontal = expanding - visible = "[Not(MultiplayerSetupWindow.GetMPConfig.IsOffline)]" - } - - #should be editbox_standard if we ever use this window - - JominiMultiplayerSetupEditBox = { - name = "game_name" - minimumsize = { 160 30 } - max_width = 160 - text = "[MultiplayerSetupWindow.GetDefaultServerName]" - visible = "[Not(MultiplayerSetupWindow.GetMPConfig.IsOffline)]" - layoutpolicy_horizontal = expanding - onreturnpressed = "[MultiplayerSetupWindow.Host]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - JominiMultiplayerSetupTextBox = { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_PASSWORD_LABEL" - layoutpolicy_horizontal = expanding - visible = "[Not(MultiplayerSetupWindow.GetMPConfig.IsOffline)]" - } - - #should be editbox_standard if we ever use this window - JominiMultiplayerSetupEditBox = { - name = "game_password" - minimumsize = { 160 30 } - max_width = 160 - text = "[MultiplayerSetupWindow.GetDefaultServerPassword]" - layoutpolicy_horizontal = expanding - visible = "[Not(MultiplayerSetupWindow.GetMPConfig.IsOffline)]" - onreturnpressed = "[MultiplayerSetupWindow.Host]" - } - - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - JominiMultiplayerSetupCheckButton = { - visible = "[MultiplayerSetupWindow.GetMPConfig.IsPrivate]" - - blockoverride "checkbutton" - { - name = "hotjoin_autoaccept" - checked = "[MultiplayerSetupWindow.GetMPConfig.IsHotjoinAutoAccept]" - onclick = "[MultiplayerSetupWindow.AccessMPConfig.ToggleHotjoinAutoAccept]" - enabled = "[JominiIsMultiplayerAccessible]" - } - - blockoverride "label" - { - autoresize = yes - text = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT" - } - - tooltip = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT_TT" - } - - JominiMultiplayerSetupCheckButton = { - visible = "[JominiMultiplayerIsCrossplayFilterAvailable]" - - blockoverride "checkbutton" - { - name = "crossplay_status" - enabled = "[JominiMultiplayerIsCrossplayEnabled]" - } - - blockoverride "label" - { - autoresize = yes - text = "JOMINI_MULTIPLAYER_GUI_SERVER_FILTER_LABEL_CROSSPLAY_ENABLED" - } - } - } - - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - button_primary = { - name = "host_button" - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_SESSION_HOST" - onclick = "[MultiplayerSetupWindow.Host]" - enabled = "[MultiplayerSetupWindow.CanHost]" - tooltip = "[MultiplayerSetupWindow.HostToolTip]" - } - - button_standard = { - name = "cancel_button" - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_SESSION_CANCEL" - onclick = "[MultiplayerSetupWindow.Cancel]" - shortcut = "close_window" - } - } - } - } - } -} - -template JominiLobbyViewModuleBackground { - block "lobby_module_background" - { - # shaderfile = "gfx/FX/pdxgui_default.shader" - # texture = "gfx/editor_gui/editor_field.dds" - # spriteType = CorneredStretched - # spriteborder = { 6 6 } - } -} - -types JominiMultiplayerLobby -{ - # Button Style - type JominiLobbyViewButton = button_standard { - } - - type JominiLobbyRemovePlayer = button { - enabled = "[LobbyPlayer.CanRemovePlayer]" - visible = "[LobbyPlayer.CanRemovePlayer]" - - onclick = "[LobbyPlayer.RemovePlayer]" - - block "remove_player_button_style" - { - layoutpolicy_horizontal = fixed - size = { 20 20 } - - texture = "gfx/editor_gui/editor_button.dds" - gfxtype = framedbuttongfx - spriteType = CorneredStretched - spriteborder = { 4 4 } - effectname = "NoHighlight" - framesize = { 16 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - intersectionmask = yes - raw_text = "K" - } - } - - type JominiLobbyViewServerInfoEntry = button { - block "server_info_entry_size" - { - size = { 0 20 } - layoutpolicy_horizontal = expanding - } - - block "server_info_entry_styling" - { - align = left - using = Font_Type_Standard - using = Font_Size_Small - default_format = "#high" - margin = { 5 5 } - - background = { - using = Background_Area - } - } - } - - # Hosting status - type JominiLobbyViewHostingStatus = vbox { - margin = { 10 5 } - layoutpolicy_horizontal = expanding - visible = "[LobbyView.ShowHosting]" - - background = { - using = Background_Area - } - - JominiMultiplayerSetupTextBox = { - text = "JOMINI_MULTIPLAYER_GUI_HOSTING" - layoutpolicy_horizontal = expanding - } - } - - # Error information - type JominiLobbyViewHostError = vbox { - visible = "[HasHostError]" - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 25 - - background = { - using = Background_Area - } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "[GetHostError]" - default_format = "#X" - } - - button_standard = { - text = "JOMINI_MULTIPLAYER_GUI_CLOSE" - onclick = "[ClearHostError]" - } - } - - type JominiLobbyExpandButton = button_expand { - } - - type JominiLobbyCollapseButton = button_expand { - frame = 2 - } - - # The MP info widget displays the multiplayer information - type JominiLobbyViewMPInfo = vbox { - name = "mp_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - alwaystransparent = no - filter_mouse = left|right - - block "mp_info_properties" { - margin_top = 10 - spacing = 10 - - background = { - using = JominiLobbyViewModuleBackground - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "JOMINI_MULTIPLAYER_GUI_VISIBILITY" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - tooltip = JOMINI_MULTIPLAYER_GUI_PRIVATE_TT - - button_radio = { - visible = "[Not(LobbyView.IsInvite)]" - onclick = "[LobbyView.SetInvite]" - } - - button_radio = { - visible = "[LobbyView.IsInvite]" - frame = 2 - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PRIVATE" - align = nobaseline - } - - expand = {} - } - - hbox = { - visible = "[JominiMultiplayerIsCrossplayFilterAvailable]" - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - tooltip = MULTIPLAYER_GUI_PUBLIC_MICROSOFT_ONLY_TT - - button_radio = { - visible = "[Not(LobbyView.IsPublicNoCrossplay)]" - onclick = "[LobbyView.SetPublicNoCrossplay]" - } - - button_radio = { - visible = "[LobbyView.IsPublicNoCrossplay]" - frame = 2 - } - - text_single = { - text = "MULTIPLAYER_GUI_PUBLIC_MICROSOFT_ONLY" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - tooltip = JOMINI_MULTIPLAYER_GUI_PUBLIC_TT - - button_radio = { - visible = "[Not(LobbyView.IsPublicCrossplay)]" - onclick = "[LobbyView.SetPublicCrossplay]" - enabled = "[Or(Not(JominiMultiplayerIsCrossplayFilterAvailable), JominiMultiplayerIsCrossplayEnabled)]" - } - - button_radio = { - visible = "[LobbyView.IsPublicCrossplay]" - frame = 2 - } - - text_single = { - text = "JOMINI_MULTIPLAYER_GUI_PUBLIC" - align = nobaseline - } - - expand = {} - } - - vbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - restrictparent_min = yes - block "setup_hbox_height" {} - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "JOMINI_MULTIPLAYER_GUI_GAME_SETTINGS" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - - visible = "[Not(LobbyView.GetServerInfo.IsInvite)]" - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_label" - { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_NAME" - } - - blockoverride "editbox_properties" - { - name = "game_name" - text = "[LobbyView.GetServerInfo.GetServerName]" - onreturnpressed = "[LobbyView.SetName]" - ontextedited = "[LobbyView.OnNameEdit]" - enabled = "[CanEditSettingsAfterHost]" - } - } - - button_army_select = { - size = { 25 25 } - visible = "[CanEditSettingsAfterHost]" - onclick = "[LobbyView.SetName]" - tooltip = "JOMINI_MULTIPLAYER_GUI_CHANGE_SERVER_NAME" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 10 - visible = "[JominiIsHostOrLocal]" - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_label" - { - text = "JOMINI_MULTIPLAYER_GUI_SERVER_PASSWORD" - } - blockoverride "editbox_properties" - { - name = "game_password" - onreturnpressed = "[LobbyView.SetPassword]" - ontextedited = "[LobbyView.OnPasswordEdit]" - enabled = "[CanEditSettingsAfterHost]" - } - } - - button_army_select = { - size = { 25 25 } - visible = "[CanEditSettingsAfterHost]" - onclick = "[LobbyView.SetPassword]" - tooltip = "JOMINI_MULTIPLAYER_GUI_CHANGE_SERVER_PASSWORD" - } - - } - - hbox = { - block "game_options_left" {} - block "game_options_right" {} - } - } - - JominiMultiplayerSetupCheckButton = { - visible = "[JominiIsHostOrLocal]" - - blockoverride "checkbutton" - { - name = "hotjoin_autoaccept" - checked = "[LobbyView.IsAutoAccept]" - onclick = "[LobbyView.ToggleAutoAccept]" - tooltip = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT_TT" - enabled = "[CanEditSettingsAfterHost]" - } - - blockoverride "label" - { - autoresize = yes - text = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT" - tooltip = "JOMINI_MULTIPLAYER_GUI_AUTO_ACCEPT_TT" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - block "mp_info_header" {} - - block "mp_info_left_info" {} - - - JominiLobbyViewServerInfoEntry = { - minimumsize = { 390 0 } - - text_multi = { - text = "JOMINI_MULTIPLAYER_GUI_CHECKSUM" - margin = { 10 5 } - max_width = 390 - autoresize = yes - resizeparent = yes - } - tooltip = "JOMINI_MULTIPLAYER_GUI_GAME_VERSION_TOOLTIP" - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - margin = { 0 5 } - text = "SETTINGS_FILE_TRANSFER_SPEED" - } - - dropdown_menu_standard = { - datamodel = "[LobbyView.GetTransferSpeedSettingOptions]" - - blockoverride "dropdown_properties" - { - onselectionchanged = "[LobbyView.OnTransferSpeedSettingChanged]" - selectedindex = "[LobbyView.GetTransferSpeedSettingIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( CString.GetString )]" - tooltip = "SETTINGS_FILE_TRANSFER_SPEED_TOOLTIP" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( CString.GetString )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = preferred - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = preferred - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - text = "JOMINI_MULTIPLAYER_GUI_ENABLED_DLCS" - block "jomini_standard_textbox" {} - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - margin_top = 20 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - datamodel = "[LobbyView.GetEnabledDLCs]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[CString.GetString]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - layoutpolicy_vertical = expanding - visible = "[IsDataModelEmpty(LobbyView.GetEnabledDLCs)]" - text = "JOMINI_MULTIPLAYER_GUI_NO_DLCS" - } - } - } - - spacer = { - size = { 5 20 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = preferred - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = preferred - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - text = "JOMINI_MULTIPLAYER_GUI_ENABLED_MODS" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - datamodel = "[LobbyView.GetEnabledMods]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[CString.GetString]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - layoutpolicy_vertical = expanding - visible = "[IsDataModelEmpty(LobbyView.GetEnabledMods)]" - text = "JOMINI_MULTIPLAYER_GUI_NO_MODS" - } - } - } - } - - # The Host widget shows the host button - type JominiLobbyViewHost = vbox { - layoutpolicy_horizontal = expanding - visible = "[And(Not(HasHostError),Not(GameIsMultiplayer))]" - alwaystransparent = no - filter_mouse = left|right - - block "host_background" { - background = { - using = JominiLobbyViewModuleBackground - } - } - - JominiLobbyViewButton = { - block "host_button" - { - text = "JOMINI_MULTIPLAYER_GUI_HOST_BUTTON" - } - - onclick = "[LobbyView.OpenMultiplayer]" - tooltip = "LOBBY_MULTIPLAYER_TOOLTIP" - - block "host_button_enabled" - { - enabled = "[And(JominiIsMultiplayerAccessible, JominiIsHostOrLocal)]" - } - - layoutpolicy_horizontal = expanding - } - } - - # Playerlist item - type JominiLobbyViewPlayerItem = hbox { - layoutpolicy_horizontal = expanding - alwaystransparent = no - filter_mouse = left|right - - background = { - using = Background_Area_Dark - margin = { 5 0} - } - - block "playerlist_item_content" { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 390 -1 } - margin = { 10 5 } - spacing = 10 - - block "playable_icon" { - - widget = { - size = { 50 70 } - layoutpolicy_horizontal = fixed - layoutpolicy_vertical = expanding - - # button_standard = { - # size = { 60 70 } - # text = "no char" - # } - - widget = { - visible = "[LobbyPlayer.IsObserver]" - size = { 47 75 } - - icon_observer = { - parentanchor = center - size = { 48 48 } - } - } - - widget = { - visible = "[LobbyPlayer.HasPlayable]" - size = { 50 70 } - - coa_realm_small_crown = { - datacontext = "[LobbyPlayer.GetPlayable.GetCharacter]" - visible = "[Character.IsValid]" - parentanchor = center - position = { 0 7 } - } - } - - ##### NO CHARACTER CHOSEN #### - - # container = { - # coa_realm_small_crown = { - # texture = "gfx/coat_of_arms/textured_emblems/_default.dds" - # # datacontext = "[LobbyPlayer.GetPlayable.GetCharacter]" - # visible = "[Not(Character.IsValid)]" - # } - # } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 300 - autoresize = yes - text = "[LobbyPlayer.GetName]" - default_format = "#high" - } - - text_single = { - visible = "[LobbyPlayer.IsHost]" - text = "HOST" - default_format = "#high" - margin_right = 5 - } - } - - hbox = { - spacing = 5 - layoutpolicy_horizontal = expanding - allow_outside = yes - - # Readyness - block "readyness" { - hbox = { - text_multi = { - layoutpolicy_horizontal = expanding - text = "JOMINI_MULTIPLAYER_GUI_READY" - visible = "[And( LobbyPlayer.IsReady, Not( LobbyPlayer.IsObserver ) )]" - align = nobaseline - autoresize = yes - } - } - } - - widget = { - allow_outside = yes - minimumsize = { 30 0 } - - button_kick_player = { - parentanchor = bottom|right - widgetanchor = bottom|right - size = { 30 30 } - visible = "[LobbyPlayer.CanRemovePlayer]" - onclick = "[LobbyPlayer.RemovePlayer]" - tooltip = "JOMINI_MULTIPLAYER_GUI_PLAYER_KICK_BUTTON_LABEL_TT" - } - } - - widget = { - allow_outside = yes - minimumsize = { 30 0 } - - button_clear = { - parentanchor = bottom|right - widgetanchor = bottom|right - size = { 30 30 } - visible = "[And( LobbyPlayer.IsLocalPlayer, Or( LobbyPlayer.HasPlayable, LobbyPlayer.IsObserver ) )]" - onclick = "[LobbyView.ClearSelection]" - tooltip = "JOMINI_MULTIPLAYER_GUI_CLEAR_SELECTION" - } - } - } - } - } - } - } - - # Playerlist widget - type JominiLobbyViewPlayerList = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 10 } - minimumsize = { 390 0 } - - background = { - using = JominiLobbyViewModuleBackground - } - - JominiLobbyViewPlayerItem = { - datacontext = "[LobbyView.AccessLocalPlayer]" - } - - JominiMultiplayerTextbox = { - minimumsize = { 370 50 } - margin_left = 20 - text = "JOMINI_MULTIPLAYER_GUI_OTHER_PLAYERS_COUNT" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = -5 - spacing = 5 - - scrollbox = { - visible = "[GameIsMultiplayer]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_empty" - { - visible = "[LessThan_int32(GetDataModelSize(LobbyView.Players), '(int32)2')]" - text = "JOMINI_MULTIPLAYER_GUI_OTHER_PLAYERS_NONE" - layoutpolicy_vertical = expanding - } - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - alwaystransparent = no - filter_mouse = left|right - datamodel = "[LobbyView.Players]" - ignoreinvisible = yes - - block "player_list_properties" {} - - item = { - JominiLobbyViewPlayerItem = { - visible = "[Not( LobbyPlayer.IsLocalPlayer)]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 390 50 } - max_width = 390 - margin = { 10 0 } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 340 - margin = { 0 5 } - autoresize = yes - text = "FRONTEND_INVITE" - } - - button_copy = { - onclick = "[LobbyView.CopyServerID]" - tooltip = "FRONTEND_COPY_CLIPBUFFER_TT" - } - } - } - } - - type JominiLobbyViewBack = vbox { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - alwaystransparent = no - filter_mouse = left|right - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard_back = { - enabled = "[LobbyView.CanGoBack]" - - block "lobby_view_back_onclick" { - onclick = "[LobbyView.GoBack]" - } - - blockoverride "text" { - text = "JOMINI_MULTIPLAYER_GUI_SESSION_BACK" - } - - tooltip = "[LobbyView.GetGoBackToolTip]" - shortcut = "close_window" - } - - expand = {} - } - } - - # Selection widget - type JominiLobbyViewSelectionWidget = vbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = 20 - - alwaystransparent = no - filter_mouse = left|right - - background = { - using = JominiLobbyViewModuleBackground - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - - block "selected_playable" { - } - } - } - - block "game_rules" {} - } - - # Game Info Panel - type JominiLobbyViewGameInfoPanel = vbox { - size = { 0 0 } - layoutpolicy_horizontal = expanding - alwaystransparent = no - filter_mouse = left|right - - background = { - using = JominiLobbyViewModuleBackground - } - - block "game_info" { - } - } - - # Module for preparation specific stuff - type JominiLobbyViewPreparation = vbox { - alwaystransparent = no - filter_mouse = left|right - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_bottom = 10 - spacing = 8 - - background = { - using = JominiLobbyViewModuleBackground - } - - JominiMultiplayerTextbox = { - layoutpolicy_horizontal = expanding - visible = "[And(LobbyView.IsReady,Not(PlayerIsHost))]" - name = "ready_info" - minimumsize = { 0 45 } - multiline = yes - align = center|center - text = "JOMINI_MULTIPLAYER_GUI_WAIT_HOST_START" - } - - button_standard = { - datacontext = "[GetLobbyHelper]" - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - visible = "[CanMakeNobleFamilyCharacters]" - size = { 380 45 } - - onclick = "[TryStartRulerDesigning( Character.Self, 'noble_family' )]" - - enabled = "[And( LobbyView.HasSelectedPlayable, Character.CanDesignNobleFamily )]" - - tooltip = "[LobbyHelperWindow.GetTryStartLandlessDesigningDesc( Character.Self, 'noble_family' )]" - text = RULER_DESIGNER_OPEN_LANDLESS_NOBLE_FAMILY - - icon = { - visible = "[And( ShouldPromptForRulerDesigner, LobbyView.CanTryStartRulerDesigning( Character.Self ) )]" - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Bright_Yellow - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0.3 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - - alpha = 0 - duration = 2 - using = Animation_Curve_Default - } - } - - button_icon = { - size = { 30 30 } - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/estate.dds" - } - } - - button_standard = { - datacontext = "[GetLobbyHelper]" - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - visible = "[CanMakeLandlessCharacter]" - size = { 380 45 } - - onclick = "[TryStartRulerDesigning( Character.Self, 'landless_adventurer' )]" - - enabled = "[LobbyView.HasSelectedPlayable]" - - tooltip = "[LobbyHelperWindow.GetTryStartLandlessDesigningDesc( Character.Self, 'landless_adventurer' )]" - text = RULER_DESIGNER_OPEN_LANDLESS_ADVENTURER - - icon = { - visible = "[And( ShouldPromptForRulerDesigner, LobbyView.CanTryStartRulerDesigning( Character.Self ) )]" - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Bright_Yellow - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0.3 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - - alpha = 0 - duration = 2 - using = Animation_Curve_Default - } - } - - button_icon = { - size = { 30 30 } - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/landless_rulers.dds" - } - } - - button_standard = { - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - enabled = "[LobbyView.CanTryStartRulerDesigning( Character.Self )]" - - size = { 380 45 } - - onclick = "[TryStartRulerDesigning( Character.Self, 'default' )]" - - tooltip = "[LobbyView.GetTryStartRulerDesigningDesc( Character.Self )]" - text = "RULER_DESIGNER_OPEN" - - icon = { - visible = "[And( ShouldPromptForRulerDesigner, LobbyView.CanTryStartRulerDesigning( Character.Self ) )]" - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Bright_Yellow - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 0.3 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - - alpha = 0 - duration = 2 - using = Animation_Curve_Default - } - } - - button_icon = { - size = { 30 30 } - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/heir.dds" - } - } - - vbox = { - hbox = { - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - visible = "[Character.IsValid]" - - textbox = { - visible = "[IsBetterPlayedWithTGP( Character )]" - name = "better_played_with_tgp_info" - size = { 380 50 } - multiline = yes - align = center|center - text = "pdi_better_with_tgp" - } - } - - } - - - button_primary_big = { - visible = "[And( IsPreparationLobby, PlayerIsHost )]" - size = { 380 50 } - - onclick = "[CloseGameView( 'find_title' )]" - onclick = "[LobbyView.Start]" - enabled = "[LobbyView.CanStart]" - tooltip = "[LobbyView.StartToolTip]" - - text = "JOMINI_MULTIPLAYER_GUI_START" - - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - - state = { - name = _mouse_press - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_press" - } - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - } - } - } - - button_primary_big = { - datacontext = "[LobbyView.GetSelectedPlayable.GetCharacter]" - - visible = "[Not( IsPreparationLobby )]" - size = { 380 50 } - - onclick = "[CloseGameView( 'find_title' )]" - onclick = "[LobbyView.Control( Character.GetPlayable )]" - onclick = "[LobbyView.Ready]" - enabled = "[And( LobbyView.CanControl( Character.GetPlayable ), Character.IsRuler )]" - tooltip = "[LobbyView.GetControlToolTip( Character.GetPlayable )]" - - text = "JOMINI_MULTIPLAYER_GUI_START" - } - } - - type JominiLobbyViewEndPreparationConfirmation = widget { - name = "JominiMultiplayerEndPreparationConfirmation" - - block "properties" - { - size = { 300 200 } - parentanchor = center - widgetanchor = center - modal = yes - modality = all - } - - block "background" - { - background = { - using = JominiLobbyViewModuleBackground - } - } - - block "content" - { - textbox = { - name = "info" - size = { 100% 50% } - multiline = yes - align = center|center - text = "JOMINI_MULTIPLAYER_GUI_CONFIRMATION" - } - - JominiLobbyViewButton = { - onclick = "[EndPrepConfirm.Cancel]" - size = { 50% 20% } - text = "JOMINI_MULTIPLAYER_GUI_CANCEL" - parentanchor = bottom|left - widgetanchor = bottom|left - } - - JominiLobbyViewButton = { - onclick = "[EndPrepConfirm.Confirm]" - size = { 50% 20% } - text = "JOMINI_MULTIPLAYER_GUI_CONFIRM" - parentanchor = bottom|right - widgetanchor = bottom|right - } - } - } - - type JominiMultiplayerLobby = widget { - name = "lobbyview" - size = { 100% 100% } - - widget = { - parentanchor = bottom - size = { 100% 100 } - - background = { - using = Background_Bottom_Fade - } - - background = { - using = Background_Bottom_Fade - } - } - - #### CHOOSE ANY CHARACTER ### - vbox = { - maximumsize = { 390 -1 } - visible = "[Not(GameIsMultiplayer)]" - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 10 10 } - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.6 - mirror = horizontal - } - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - button_standard = { - layoutpolicy_horizontal = expanding - visible = "[And(And(Not(HasHostError),Not(GameIsMultiplayer)), JominiIsMultiplayerAccessible)]" - alwaystransparent = no - filter_mouse = left|right - text = "JOMINI_MULTIPLAYER_GUI_HOST_BUTTON" - minimumsize = { 0 78 } - - onclick = "[LobbyView.OpenMultiplayer]" - tooltip = "LOBBY_MULTIPLAYER_TOOLTIP" - enabled = "[JominiIsHostOrLocal]" - } - - button_standard = { - layoutpolicy_horizontal = expanding - visible = "[And(And(Not(HasHostError),Not(GameIsMultiplayer)), Not(JominiIsMultiplayerAccessible))]" - alwaystransparent = no - filter_mouse = left|right - text = "JOMINI_MULTIPLAYER_GUI_HOST_BUTTON" - minimumsize = { 390 78 } - - onclick = "[OnToggleLoginWindow]" - tooltip = "LOBBY_MULTIPLAYER_TOOLTIP" - enabled = "[JominiIsHostOrLocal]" - - icon_online_offline = { - parentanchor = right|vcenter - position = { -15 0 } - tooltip = "FRONTEND_LOGIN_PROMPT" - frame = 2 - } - } - } - - JominiLobbyViewBack = {} - } - - } - - block "left_panel" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 30 - - widget = { - block "left_panel_properties" - { - size = { 410 0 } - } - layoutpolicy_vertical = expanding - - vbox = { - margin_right = 20 - - block "left_panel_content" { - using = Window_Background_Sidebar_Multiplayer_Left - - background = { - using = Background_Area_Dark - margin = { 0 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.8 - mirror = vertical - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = JominiLobbyViewModuleBackground - } - - hbox = { - layoutpolicy_horizontal = expanding - name = "tabs" - margin = { -8 0 } - - button_tab = { - name = "show_players" - layoutpolicy_horizontal = expanding - - visible = "[JominiIsMultiplayerAccessible]" - onclick = "[GetVariableSystem.Set( 'mp_lobby_tabs', 'show_players' )]" - down = "[GetVariableSystem.HasValue( 'mp_lobby_tabs', 'show_players' )]" - - text = "JOMINI_MULTIPLAYER_GUI_SHOW_PLAYERS" - default_format = "#low" - } - - button_tab = { - name = "show_settings" - layoutpolicy_horizontal = expanding - - visible = "[JominiIsMultiplayerAccessible]" - onclick = "[GetVariableSystem.Set( 'mp_lobby_tabs', 'show_settings' )]" - down = "[GetVariableSystem.HasValue( 'mp_lobby_tabs', 'show_settings' )]" - - text = "JOMINI_MULTIPLAYER_GUI_SHOW_SETTINGS" - default_format = "#low" - - } - } - } - - JominiLobbyViewPlayerList = { - visible = "[And( And(GetVariableSystem.HasValue( 'mp_lobby_tabs', 'show_players' ), LobbyView.ShowPlayerList), LobbyView.HasServerInfo )]" - } - - JominiLobbyViewMPInfo = { - visible = "[And( Or(GetVariableSystem.HasValue( 'mp_lobby_tabs', 'show_settings' ), Not( LobbyView.ShowPlayerList )), LobbyView.HasServerInfo )]" - } - - expand = {} - - JominiLobbyViewHostingStatus = {} - JominiLobbyViewHostError = {} - - JominiLobbyViewBack = {} - } - } - } - - block "left_panel_attachment" - { - - } - - expand = {} - } - } - - block "right_panel" - { - widget = { - parentanchor = top|right - widgetanchor = top|right - - block "right_panel_properties" - { - size = { 420 100% } - } - - using = Window_Background_Sidebar_Multiplayer_Right - - background = { - using = Background_Area_Dark - margin = { 0 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.8 - mirror = vertical - } - } - - vbox = { - block "right_panel_content" - { - JominiLobbyViewGameInfoPanel = {} - JominiLobbyViewSelectionWidget = {} - JominiLobbyViewPreparation = {} - } - } - } - } - } -} - -template JominiDefaultButtonProperties { - block "button_style" - { - texture = "gfx/editor_gui/editor_button.dds" - gfxtype = framedbuttongfx - spriteType = CorneredStretched - spriteborder = { 4 4 } - framesize = { 16 16 } - upframe = 1 - downframe = 2 - overframe = 3 - disableframe = 4 - } -} - -types JominiMultiplayerGameTypes -{ - type JominiMultiplayerFrontEndButton = button_standard { - size = { 200 50 } - } - - type JominiMultiplayerSortButtonAsc = button { - - block "asc_button_properties" { - alwaystransparent = yes - size = { 35 33 } - - button_icon = { - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = 1 - } - } - } - - type JominiMultiplayerSortButtonDesc = button { - - block "desc_button_properties" { - alwaystransparent = yes - size = { 35 33 } - - button_icon = { - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = 2 - } - } - } - - type JominiMultiplayerCheckbutton = hbox { - - block "serverbrowser_checkbutton" { - - button_checkbox = { - size = { 20 20 } - block "checkbutton" {} - } - - text_single = { - margin_left = 5 - - block "label" - { - raw_text = "#D Label#!" - } - } - } - } - - type JominiMultiplayerTextbox = textbox { - align = left - block "jominimultiplayertextbox" { - using = Font_Type_Standard - using = Font_Size_Small - default_format = "#high" - } - } -} diff --git a/N3OW/gui/notifications/jomini_message.gui b/N3OW/gui/notifications/jomini_message.gui deleted file mode 100644 index 2b0c2742..00000000 --- a/N3OW/gui/notifications/jomini_message.gui +++ /dev/null @@ -1,84 +0,0 @@ -window = { - name = "jomini_message" - size = { 100% 100% } - parentanchor = center - resizable = no - layer = confirmation - - button = { - size = { 100% 100% } - onclick = "[JominiNotification.OnDecline]" - } - - widget = { - parentanchor = center - using = Window_Background_Popup - alwaystransparent = no - - vbox = { - size = { 500 200 } - resizeparent = yes - margin = { 10 10 } - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[JominiNotification.GetTitle]" - - } - - blockoverride "button_close" { - visible = no - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 20 - - text_multi = { - maximumsize = { 350 -1 } - minimumsize = { 350 -1 } - autoresize = yes - multiline = yes - align = center - margin_top = 10 - margin_bottom = 20 - text = "[JominiNotification.GetText]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - text = "[JominiNotification.GetDeclineButtonText]" - onclick = "[JominiNotification.OnDecline]" - shortcut = "close_window" - visible = "[Or(JominiNotification.HasOnAccept, JominiNotification.HasOnDecline)]" - } - - expand = { - layoutpolicy_horizontal = expanding - visible = "[Or(JominiNotification.HasOnAccept, JominiNotification.HasOnDecline)]" - } - - button_primary = { - text = "[JominiNotification.GetAcceptButtonText]" - onclick = "[JominiNotification.OnAccept]" - shortcut = "close_window" # Escape closes OK when there is only that - visible = "[Not(Or(JominiNotification.HasOnAccept, JominiNotification.HasOnDecline))]" - } - - button_primary = { - text = "[JominiNotification.GetAcceptButtonText]" - onclick = "[JominiNotification.OnAccept]" - visible = "[Or(JominiNotification.HasOnAccept, JominiNotification.HasOnDecline)]" - } - } - } - } - } -} diff --git a/N3OW/gui/preload/defaults.gui b/N3OW/gui/preload/defaults.gui deleted file mode 100644 index c90446d5..00000000 --- a/N3OW/gui/preload/defaults.gui +++ /dev/null @@ -1,298 +0,0 @@ -template default_scrollbar_button -{ - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" -} - -### -### TOOLTIP PLACEMENT TEMPLATES -### - -## East-South Direction (right, then down) -# Most common -template tooltip_es -{ - tooltip_type = widget - tooltip_parentanchor = top|right - tooltip_widgetanchor = top|left - tooltip_verticalbehavior = slide - tooltip_horizontalbehavior = mirror -} - -## west south -template tooltip_ws -{ - tooltip_type = widget - tooltip_parentanchor = top|left - tooltip_widgetanchor = top|right - tooltip_verticalbehavior = slide - tooltip_horizontalbehavior = mirror -} - -## North-East Direction (up, then right) -# Use in layouts that are horizontal -template tooltip_ne -{ - tooltip_type = widget - tooltip_parentanchor = top|left - tooltip_widgetanchor = bottom|left - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -# BELOW - -## South-East Direction (down, then right) -# Use for "labelly" things -template tooltip_se -{ - tooltip_type = widget - tooltip_parentanchor = bottom|left - tooltip_widgetanchor = top|left - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -## South-West Direction (down, then left) -template tooltip_sw -{ - tooltip_type = widget - tooltip_parentanchor = bottom|right - tooltip_widgetanchor = top|right - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -## Straight Below -# Use if it looks nicer -template tooltip_below -{ - tooltip_type = widget - tooltip_parentanchor = bottom|hcenter - tooltip_widgetanchor = top|hcenter - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -## Straight Above -# Use if it looks nicer -template tooltip_above -{ - tooltip_type = widget - tooltip_parentanchor = top|hcenter - tooltip_widgetanchor = bottom|hcenter - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -# SPECIAL - -## North-West Direction (up, then left) -# Only used in Map modes, kind of a special case to avoid overlap -template tooltip_nw -{ - tooltip_type = widget - tooltip_parentanchor = top|right - tooltip_widgetanchor = bottom|right - tooltip_verticalbehavior = mirror - tooltip_horizontalbehavior = slide -} - -types Default -{ - type game_button = game_button { - using = tooltip_es - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - button_ignore = right - } - - type button = game_button { - #gfxtype = framedbuttongfx - #shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - gfxtype = buttongfx - - - tooltip_offset = { 0 0 } - #tooltop_widget = TooltipWithPaddingUsedForTooltipsInTooltips - filter_mouse = right - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - button_ignore = right - } - - type button_group = button_group { - using = tooltip_es - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - button_ignore = right - } - - type editbox = editbox { - gfxtype = editboxgfx - shaderfile = "gfx/FX/pdxgui_default.shader" - font = "StandardGameFont" - fontsize = 15 - fontcolor = { 0.61 0.6 0.56 1.0 } # == #medium == #color_gray; not using default_format = "#medium" because it doesn't work when there is formatting tag bug with an extra #!; it was just white in that case - - using = tooltip_above - } - - type textbox = textbox { - gfxtype = textboxgfx - shaderfile = "gfx/FX/pdxgui_default.shader" - font = "StandardGameFont" - fontsize = 15 - fontcolor = { 0.61 0.6 0.56 1.0 } # == #medium == #color_gray; not using default_format = "#medium" because it doesn't work when there is formatting tag bug with an extra #!; it was just white in that case - text_selectable = no - - using = tooltip_above - } - - type video_icon = icon { - blockoverride "icon_defaults_override" {} - gfxtype = videogfx - } - - type icon = icon { - block "icon_defaults_override" { - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - mipmaplodbias = -1 - using = tooltip_es - } - } - - type icon_sway = icon - { - block "icon_defaults_override" { - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_sway.shader" - mipmaplodbias = -1 - using = tooltip_es - } - } - - type icon_ripple_noise = icon - { - block "icon_defaults_override" { - texture = "gfx/interface/illustrations/domicile/domicile_ripple_noise.dds" - color = { 0.1645 0.135 0.127 1 } - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_ripple_noise.shader" - mipmaplodbias = -1 - using = tooltip_es - } - } - - type proportional_icon = icon { - gfxtype = propstretchedicongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - } - - type hbox = hbox { - using = tooltip_es - } - - type vbox = vbox { - using = tooltip_es - } - - type highlight_icon = button { - alwaystransparent = yes - } - - type background = background { - shaderfile = "gfx/FX/pdxgui_default.shader" - } - - type window = window { - gfxtype = windowgfx - shaderfile = "gfx/FX/pdxgui_default.shader" - spriteType = corneredstretched - spriteborder = { 19 19 } - resizable = no - filter_mouse = left|right|wheel - layer = windows_layer - - using = tooltip_es - } - - type progressbar = progressbar { - gfxtype = progressbargfx - shaderfile = "gfx/FX/pdxgui_progressbar.shader" - - using = tooltip_es - } - - type checkbutton = checkbutton { - gfxtype = checkbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - highlightchecked = yes - using = tooltip_es - } - - type scrollbar = scrollbar { - min = 0 - max = 100 - step = 1 - page = 10 - value = 0 - alwaystransparent = no - - slider = { - button = { - using = default_scrollbar_button - texture = "gfx/interface/scrollbars/scrollbar_slider.dds" - } - } - } - - type scrollarea = scrollarea { - scissor = yes - scrollbaralign_vertical = right - scrollbaralign_horizontal = bottom - - using = tooltip_es - } - - type coat_of_arms_button = game_button { - gfxtype = coatofarmsbuttongfx - shaderfile = "gfx/FX/gui_coatofarmsbutton.shader" - size = { 64 64 } - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - filter_mouse = right - } - - type progresspie = progressbar { - gfxtype = progresspiegfx - shaderfile = "gfx/FX/gui_progresspie.shader" - - using = tooltip_es - } - - - type container = container { - using = tooltip_es - - #this should be fixed and not done like this - ignoreinvisible = no - } - - type widget = widget { - using = tooltip_es - } - - #this should be fixed and not done like this - type flowcontainer = flowcontainer { - using = tooltip_es - ignoreinvisible = no - } - - type drag_drop_icon = drag_drop_icon { - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - drag_drop_base_type = "icon" - } -} diff --git a/N3OW/gui/preload/fonts.gui b/N3OW/gui/preload/fonts.gui deleted file mode 100644 index 2fab378e..00000000 --- a/N3OW/gui/preload/fonts.gui +++ /dev/null @@ -1,94 +0,0 @@ - -###################################################### -################### FONT TEMPLATES ################### -###################################################### - -# Templates that deal with text formatting and positioning. - -## Size - -template Font_Size_Tiny -{ - fontsize = 13 - size = { 0 18 } -} - -template Font_Size_Small -{ - fontsize = 15 - size = { 0 23 } -} - -template Font_Size_Medium -{ - fontsize = 18 - size = { 0 26 } -} - -template Font_Size_Big -{ - fontsize = 23 - size = { 0 33 } -} - -## Typeface - -template Font_Type_Standard -{ - font = StandardGameFont -} - -template Font_Type_Flavor -{ - font = TitleFont -} - -template Font_Type_Script -{ - font = StandardGameFont -} - -template Text_Light_Background_Overrides -{ - format_override = { high light_background } - format_override = { medium light_background } - format_override = { low light_background } - format_override = { weak light_background } - format_override = { flavor light_background } - format_override = { help light_background } - format_override = { instruction light_background } - format_override = { I light_background } - format_override = { warning light_background } - format_override = { X light_background } - format_override = { value light_background } - format_override = { V light_background } - format_override = { negative_value light_background } - format_override = { positive_value light_background } - format_override = { zero_value light_background } - format_override = { N light_background } - format_override = { P light_background } - format_override = { Z light_background } - format_override = { clickable light_background_underline } - format_override = { game_link light_background_underline } - format_override = { L light_background_underline } - format_override = { explanation_link explanation_link_light_background } - format_override = { E explanation_link_light_background } - format_override = { G G_light } - format_override = { tooltip_heading light_background } - format_override = { T light_background } - format_override = { tooltip_subheading light_background } - format_override = { S light_background } - format_override = { trigger_inactive light_background } - format_override = { true_white light_background } - format_override = { emphasis light_background } - format_override = { EMP light_background } - format_override = { defender_color light_background } - format_override = { attacker_color light_background } - format_override = { white light_background } - format_override = { value_red negative_value_toast } - format_override = { value_green positive_value_toast } - format_override = { value_yellow light_background } - format_override = { game_concept light_background } - format_override = { dark light_background } - format_override = { W light_background } -} diff --git a/N3OW/gui/preload/frontend_loadingscreen.gui b/N3OW/gui/preload/frontend_loadingscreen.gui deleted file mode 100644 index 04f4fe68..00000000 --- a/N3OW/gui/preload/frontend_loadingscreen.gui +++ /dev/null @@ -1,144 +0,0 @@ -### This GUI cannot use types or templates from other files, as they have not been loaded yet. - -widget = { - name = "load_screen" - size = { 100% 100% } - - widget_loading_screen = {} -} - -types LoadingScreen -{ - type widget_loading_screen = widget { - size = { 100% 100% } - - background = { - texture = "[GetCurrentLoadingScreen]" - fittype = centercrop - } - - flowcontainer = { - margin = { 25 25 } - - flowcontainer = { - ignoreinvisible = yes - spacing = 15 - - background = { - visible = "[ReleaseMode]" - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.15 0.15 0.15 0.7 } - margin = { 0 30 } - margin_left = 150 - margin_right = 80 - } - - progressbar = { - size = { 65 65 } - gfxtype = framedprogressbargfx - texture = "gfx/interface/frontend/loading_progress.dds" - framesize = { 88 88 } - loopinterval = 1.5 - max = 0 - - icon = { - parentanchor = center - texture = "gfx/interface/frontend/ck3_logo_banner.dds" - size = { 36 45 } - scale = 0.8 - } - } - - block "loading_screen_text" - { - textbox = { - name = "load_status_text" - visible = "[Not(ReleaseMode)]" - parentanchor = vcenter - size = { 200 30 } - fontsize = 20 - font = StandardGameFont - default_format = "#medium;glow_color:{0.2,0.2,0.2,1}" - align = left|nobaseline - } - - textbox = { - name = "load_status_text_release" - visible = "[ReleaseMode]" - text = "LOADSCREEN_INITIALIZING_GAME" - parentanchor = vcenter - size = { 200 30 } - fontsize = 20 - font = StandardGameFont - align = left|nobaseline - default_format = "#medium;glow_color:{0.2,0.2,0.2,1}" - } - } - } - } - - clickable_version_number = { - visible = "[Not(ReleaseMode)]" - - parentanchor = bottom|right - position = { -15 -15 } - } - } -} - -template Animation_LoadingScreen_ShowHide -{ - alpha = 0.3 - - state = { - name = appear - trigger_on_create = yes - bezier = { 0.25 0.1 0.25 1 } - delay = 0.3 - duration = 1 - - alpha = 1 - } - - state = { - name = _show - bezier = { 0.25 0.1 0.25 1 } - duration = 1 - - alpha = 1 - } - - state = { - name = _hide - bezier = { 0.25 0.1 0.25 1 } - duration = 1 - - alpha = 0 - } -} - - -Types BasicFrontendTypes -{ - type clickable_version_number = button_group { - name = "copy_build_version" - - onclick = "[CopyBuildVersionInfoToClipboard]" - tooltip = "[GetBuildVersionDescriptionWithClickToCopy]" - - textbox = { - name = "build_version" - parentanchor = center - autoresize = yes - block "version_text" { - text = "TOP_BAR_VERSION" - align = right - } - - default_format = "#medium;glow_color:{0,0,0,1}" - } - - - } - -} diff --git a/N3OW/gui/preload/labels.gui b/N3OW/gui/preload/labels.gui deleted file mode 100644 index 65105da7..00000000 --- a/N3OW/gui/preload/labels.gui +++ /dev/null @@ -1,120 +0,0 @@ -types LabelTypes -{ - - # Normal, single-line text. - # Use "default_format =" to specify text color, as seen in textformatting.gui - type text_single = textbox { - - using = Font_Type_Standard - using = Font_Size_Small - autoresize = yes - elide = right - # text = "DEFAULT_TEXT" - default_format = "#medium" - alwaystransparent = no - fontsize_min = 12 - } - - # Normal, multi-line text. - type text_multi = textbox { - - using = Font_Type_Standard - using = Font_Size_Small - multiline = yes - elide = right - align = top|left - size = { 45 45 } - text = "DEFAULT_TEXT" - default_format = "#medium" - alwaystransparent = no - fontsize_min = 12 - } - - # Normal text with dark, centered on background label. - type text_label_center = text_single { - text = "DEFAULT_TEXT" - default_format = "#medium" - align = center - margin_bottom = 5 - fontsize_min = 12 - - background = { - margin_left = 40 - margin_right = 40 - # alpha = 0.5 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - - # Normal text with dark, left-aligned on background label. - type text_label_left = text_single { - text = "DEFAULT_TEXT" - default_format = "#medium" - align = left - margin_left = 0 - margin_right = 40 - margin_bottom = 5 - fontsize_min = 12 - - background = { - margin_left = 15 - margin_right = 5 - - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - # Normal text with dark, right-aligned on background label. - type text_label_right = text_single { - text = "DEFAULT_TEXT" - default_format = "#medium" - align = right - margin_left = 40 - margin_right = 0 - fontsize_min = 12 - margin_bottom = 5 - - background = { - margin_left = 5 - margin_right = 15 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } -} diff --git a/N3OW/gui/preload/textformatting.gui b/N3OW/gui/preload/textformatting.gui deleted file mode 100644 index 52be1736..00000000 --- a/N3OW/gui/preload/textformatting.gui +++ /dev/null @@ -1,568 +0,0 @@ -textformatting = { - - - # orphaned "highlight" feature for title tooltips - - format = { - name = highlight - format = "color:{0.82, 0.77, 0.5}" - } - - ###### COLORS ### - # DO NOT USE THESE DIRECTLY, USE A FORMATTING RULE BELOW INSTEAD. THESE ARE JUST FOR CLARITY+TWEAKING - - format = { - name = color_white - format = "color:{0.87, 0.84, 0.75 }" - } - - format = { - name = color_gray - format = "color:{0.61, 0.6, 0.56}" - } - - format = { - name = color_dark_gray - format = "color:{0.4, 0.39, 0.37}" - } - - format = { - name = color_red - format = "color:{0.80,0.3,0.3}" - } - - format = { - name = color_light_red - format = "color:{0.95,0.36,0.36}" - } - - format = { - name = color_green - format = "color:{0.4,0.61,0.3}" - } - - format = { - name = color_yellow - format = "color:{0.82, 0.77, 0.5}" - } - - format = { - name = color_light_blue - format = "color:{0.51, 0.61, 0.65}" - } - - format = { - name = color_dark_blue - format = "color:{0.16, 0.26, 0.45}" - } - - format = { - name = color_blue_gray - format = "color:{0.45, 0.45, 0.5}" - } - - format = { - name = color_goldy_yellow - format = "color:{0.68, 0.56, 0.41}" - } - - format = { - name = color_black - format = "color:{ 0.1, 0.1, 0.03 }" - } - - format = { - name = color_dark_green - format = "color:{0.1,0.5,0.1}" - } - - format = { - # WAD. - name = color_porple - format = "color:{ 0.6, 0.4, 0.8 }" - } - - format = { - name = charioteer_blue - format = "bold;color:{0.5, 0.6, 0.8};glow_color:{0,0,0,1}" - } - - ####### TEXT GLOWS ### - - format = { - name = no_glow - format = "glow_color:{0.0,0.0,0.0,0.0}" - } - - format = { - name = default_glow - format = "no_glow" - } - - format = { - name = weak_glow - format = "glow_color:{0.1,0.1,0.1,1.0}" - } - - format = { - name = medium_glow - format = "glow_color:{0.2,0.2,0.2,1.0}" - } - - format = { - name = strong_glow - format = "glow_color:{0.4,0.4,0.4,1.0}" - } - - ####### USAGE ### - - # Contrast Levels - - format = { - name = high - format = "color_white" - } - - format = { - name = medium - format = "color_gray" - } - - format = { - name = low - format = "color_dark_gray" - } - - format = { - name = weak - format = "low;italic" - } - - format = { - name = flavor - format = "low" - } - format = { - name = F - format = "flavor" - } - - # For light backgrounds like letter events - - format = { - name = light_background - format = "color_black" - } - - format = { - name = light_background_underline - format = "color_black;underline" - } - - # For hints and tips in Alert/Suggestion/Current Situation Tooltips - format = { - name = "help" - format = "color_blue_gray;italic" - } - format = { - name = "help_light_background" - format = "color_light_blue;italic;glow_color:{0,0,0,1}" - } - - # For things like: Press "SHIFT-X" to... and so on - format = { - name = "instruction" - format = "color_green;italic" - } - - format = { - name = I - format = "instruction" - } - - # For when things are wrong or buttons disabled - format = { - name = "warning" - format = "color_red;italic" - } - - format = { - name = X - format = "warning" - } - - format = { - name = XB - format = "warning;bold" - } - - format = { - name = Xlight - format = "color:{1,0.36,0.36};italic" - } - - # For when something needs tutorialising repeatedly to the player at point of use; please don't over-use this as a substitute for actual tutorials or better tooltips elsewhere. - ## I.e., only use it if we _definitely_ turn up a problem from QA or UR. - format = { - name = ENC - format = "color_green;bold;italic" - } - - - format = { - name = "alert_trial" - format = "color_yellow;italic" - } - - format = { - name = "alert_bold" - format = "color_yellow;bold;italic" - } - - - # For numbers etc - - # For run-of-the-mill values - format = { - name = value - format = color_white - } - - format = { - name = V - format = "value" - } - - format = { - name = negative_value #negative as in "bad" - format = "color_red" - } - - - format = { - name = positive_value #positive as in "good/nice" - format = "color_green" - } - - format = { - name = mixed_value #mixed value, as in both "good/nice" and "bad" - format = "color_yellow" - } - - format = { - name = zero_value - format = "value" - } - - format = { - name = N - format = "negative_value" - } - - format = { - name = P - format = "positive_value" - } - - format = { - name = Z - format = "zero_value" - } - - format = { - name = M - format = "mixed_value" - } - - format = { - name = positive_value_toast #positive but for use in toasts" - format = "color_dark_green" - } - - # For Buttons etc - - format = { - name = clickable - format = "color_goldy_yellow" - } - - - - # For links - - format = { - name = game_link - format = "UNDERLINE" - } - - format = { - name = L - format = "game_link" - } - - format = { - name = explanation_link - format = "color_light_blue" - } - - format = { - name = E - format = "explanation_link" - } - - format = { - name = explanation_link_light_background - format = "color_dark_blue" - } - - format = { - name = B - format = "explanation_link_light_background" - } - - format = { - name = G - format = "color:{0.45, 0.40, 0.55};italic;glow_color:{0.5,0.5,0.5,0.1}" - } - - format = { - name = G_light - format = "color:{0.25, 0.20, 0.35};italic;glow_color:{0.5,0.5,0.5,0.1}" - } - - # For headings in tooltips, the first line - - format = { - name = tooltip_heading - format = "medium;bold;size:18" - } - - format = { - name = T - format = "tooltip_heading" - } - - format = { - name = tooltip_subheading - format = "medium;bold;italic" - } - - format = { - name = S - format = "tooltip_subheading" - } - - format = { - name = tooltip_heading_small - format = "bold;size:16" - } - - format = { - name = TS - format = "tooltip_heading_small" - } - - # Specialized edge cases - # Debug - format = { - name = debug - format = "color:{0.8,0.2,0.7}" - } - - format = { - name = D - format = "debug" - } - - format = { - name = variable - format = "" - } - - format = { - name = date - format = "color:{0.65, 0.64, 0.6};glow_color:{0.1,0.1,0.1,1}" - } - - format = { - name = trigger_inactive - format = "low" - } - - format = { - name = difficulty_easy - format = "bold;color:{0.55,0.8,0.55};glow_color:{0,0,0,1}" - } - - format = { - name = difficulty_medium - format = "bold;color:{0.8,0.73,0.5};glow_color:{0,0,0,1}" - } - - format = { - name = difficulty_hard - format = "bold;color:{1,0.61,0.61};glow_color:{0,0,0,1}" - } - - format = { - name = difficulty_very_hard - format = "bold;color:{0.51,0.31,0.31};glow_color:{0,0,0,1}" - } - - # Used for when we want to tint via code so we want a clean white - format = { - name = true_white - format = "color:{ 1.0, 1.0, 1.0 }" - } - - #low text in Tutorial, too much of a hassle to go back and fix - format = { - name = TUT - format = "color_blue_gray;italic" - } - - #keywords in tutorial - format = { - name = TUT_KW - format = "color_white" - } - - format = { - name = same - format = "" - } - - # emphasized word in an event: "I will *kill* you!"" - format = { - name = emphasis - format = "italic" - } - format = { - name = EMP - format = "emphasis" - } - format = { - name = BOL - format = "bold" - } - # Do not use underline for emphasis, use #EMP, unless you're inside a tag that's already italicised (e.g., #WEAK). - format = { - name = UND - format = "underline" - } - format = { - name = DIE1 - format = "size:14" - } - format = { - name = DIE2 - format = "italic;size:12" - } - format = { - name = DIE3 - format = "italic;size:10" - } - - #Berserker - format = { - name = BER - format = "bold;italic" - } - - #Poem Title - format = { - name = POE - format = "underline;italic" - } - - # Success Chance Capped Glow - format = { - name = SUCGLOW - format = "glow_color:{0.6,0.6,0,1}" - } - - # Flatulence - format = { - name = flatulence - format = "bold;italic;color:{0.25,0.7,0.45};glow_color:{0,0,0,1}" - } - - # For War Overview - format = { - name = defender_color - format = "color:{0.45,0.55,0.65}" - } - format = { - name = attacker_color - format = "color:{0.85,0.30,0.25}" - } - - - # Credits - - format = { - name = credits_title - format = "color:{0.8, 0.8, 0.8};SIZE:70;FONT:MapFont" - } - - format = { - name = credits_header - format = "color:{0.8, 0.8, 0.8};SIZE:30;glow_color:{0,0,0,1};FONT:MapFont" - } - - format = { - name = credits_subheader - format = "color:{0.5, 0.5, 0.5};bold;SIZE:18;glow_color:{0,0,0,1}" - } - - format = { - name = credits_entries - format = "true_white;SIZE:15;glow_color:{0,0,0,1}" - } - - # Aptitude - - format = { - name = aptitude_terrible - format = "color_red" - } - format = { - name = aptitude_poor - format = "color_light_red" - } - format = { - name = aptitude_average - format = "color_yellow" - } - format = { - name = aptitude_good - format = "color_green" - } - format = { - name = aptitude_excellent - format = "color_green" - } - - - # Scheme Odds - format = { - name = scheme_odds_abysmal - format = "color_red" - } - format = { - name = scheme_odds_low - format = "color_light_red" - } - format = { - name = scheme_odds_medium - format = "color_yellow" - } - format = { - name = scheme_odds_high - format = "color_green" - } - format = { - name = scheme_odds_excellent - format = "color_green" - } -} diff --git a/N3OW/gui/preload/tooltip.gui b/N3OW/gui/preload/tooltip.gui deleted file mode 100644 index bc3367b2..00000000 --- a/N3OW/gui/preload/tooltip.gui +++ /dev/null @@ -1,416 +0,0 @@ -template DefaultTooltipText -{ - #using = FontNormal - default_format = "#medium" - align = left - autoresize = yes - multiline = yes - - max_width = 450 -} - -template GeneralTooltipSetup -{ - filter_mouse = all - button = { - size = { 0 0 } # Intentional zero size - visible = "[PdxGuiWidget.IsNestedTooltip]" - onclick = "[CloseAllTooltips]" - shortcut = "close_tooltips" - } -} - -template DefaultTooltipBackground -{ - background = { - name = "bg" - block "bg_texture" { - texture = "gfx/interface/skinned/tooltip_bg.dds" - } - - spriteType = Corneredtiled - spriteborder = { 3 5 } - - block "bg_color" { - tintcolor = "[TooltipInfo.GetTintColor]" - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - background = { - name = "frame" - texture = "gfx/interface/skinned/tooltip_frame.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - - block "frame_color" { - tintcolor = "[TooltipInfo.GetTintColor]" - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - margin_widget = { - size = { 100% 100% } - margin = { 3 3 } - - icon = { - name = "tooltip_locked" - visible = "[PdxGuiWidget.IsTooltipLocked]" - texture = "gfx/interface/tooltips/tooltip_frame.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - tintcolor = "[TooltipInfo.GetTintColor]" - size = { 100% 100% } - alpha = 1 - - state = { - name = _show - bezier = { 0.25 0.1 0.25 1 } - duration = 0.15 - alpha = 1 - } - - state = { - name = _hide - alpha = 0 - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - block "progress" - { - progresspie = { - name = "tooltip_progress" - visible = "[And(UsesTimerLocking, Not(PdxGuiWidget.IsTooltipLocked))]" - parentanchor = top|right - position = { -3 3 } - size = { 20 20 } - min = 0 - max = 1 - tintcolor = "[TooltipInfo.GetTintColor]" - value = "[PdxGuiWidget.GetTooltipLockProgress]" - texture = "gfx/interface/progressbars/progress_circle.dds" - framesize = { 248 248 } - frame = 2 - - state = { - name = _show - alpha = 1 - } - - state = { - name = _hide - bezier = { 0.25 0.1 0.25 1 } - duration = 0.05 - alpha = 0 - } - } - } - } -} - -container = { - name = "ProvinceTooltipWidget" - filter_mouse = all - alwaystransparent = yes - - flowcontainer = { - position = { 25 25 } - direction = vertical - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = yes - - blockoverride "bg_color" { - tintcolor = { 1.0 1 1.0 0.8 } - } - blockoverride "progress" {} - } - - textbox = { - using = DefaultTooltipText - name = "TooltipText" - margin = { 20 10 } - } - } -} - -template DefaultTooltipWidget { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - direction = vertical - - textbox = { - name = "TooltipText" # named used in code - using = DefaultTooltipText - margin = { 20 0 } - margin_top = 12 - margin_bottom = 18 - - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - name = "TooltipTextShortcut" # named used in code - using = DefaultTooltipText - parentanchor = right - margin_top = -20 - margin_bottom = 15 - margin_right = 15 - } - } - } -} - -template TooltipWithFakeShortcut { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - direction = vertical - margin_right = 10 - - textbox = { - name = "TooltipText" - using = DefaultTooltipText - margin = { 20 20 } - margin_top = 10 - - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - name = "TooltipTextFakeShortcut" - using = DefaultTooltipText - block "shortcut_text" {} - parentanchor = right - margin_top = -20 - margin_bottom = 15 - margin_right = 15 - } - } - } -} - -container = { - alwaystransparent = no - name = "DefaultTooltipWidget" - using = DefaultTooltipWidget -} - -template StruggleEffectTooltipText -{ - using = DefaultTooltipText - max_width = 800 -} - -template GlossaryTooltipBackground -{ - - background = { - name = "bg" - margin = { -10 5 } - block "bg_texture" { - texture = "gfx/interface/tooltips/tooltip_bg_glossary.dds" - } - - spriteType = Corneredtiled - spriteborder = { 3 5 } - - block "bg_color" { - tintcolor = "[TooltipInfo.GetTintColor]" - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - background = { - name = "frame" - texture = "gfx/interface/tooltips/tooltip_frame_glossary.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = {-5 1 } - - block "frame_color" { - tintcolor = { 1 0.8 1 1 } - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - background = { - margin = { -10 -3 } - name = "tooltip_locked" - visible = "[PdxGuiWidget.IsTooltipLocked]" - texture = "gfx/interface/tooltips/tooltip_frame_glossary.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - alpha = 1 - block "frame_color" { - tintcolor = { 1 0.8 1 0.6 } - } - - state = { - name = _show - bezier = { 0.25 0.1 0.25 1 } - duration = 0.15 - alpha = 1 - } - - state = { - name = _hide - alpha = 0 - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - -} - -template GlossaryTooltipWidget { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = GlossaryTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - icon = { - position = { -10 0 } - parentanchor = vcenter - size = { 40 120% } - texture = "gfx/interface/tooltips/tooltip_glossary_edge.dds" - } - - flowcontainer = { - direction = vertical - margin_right = 10 - - text_multi = { - name = "TooltipText" - using = DefaultTooltipText - margin = { 30 20 } - margin_top = 10 - - default_format = "#light_background" - alwaystransparent = no - using = Text_Light_Background_Overrides - } - - textbox = { - name = "TooltipTextShortcut" # named used in code - using = DefaultTooltipText - parentanchor = right - margin_top = -20 - margin_bottom = 15 - margin_right = 15 - } - } - - icon = { - position = { 10 0 } - parentanchor = right|vcenter - size = { 40 120% } - texture = "gfx/interface/tooltips/tooltip_glossary_edge.dds" - mirror = horizontal - } - - margin_widget = { - parentanchor = top|right - position = { -40 5 } - block "progress" - { - progresspie = { - name = "tooltip_progress" - visible = "[And(UsesTimerLocking, Not(PdxGuiWidget.IsTooltipLocked))]" - size = { 20 20 } - min = 0 - max = 1 - value = "[PdxGuiWidget.GetTooltipLockProgress]" - texture = "gfx/interface/tooltips/progress_circle_glossary.dds" - framesize = { 248 248 } - frame = 2 - - state = { - name = _show - alpha = 1 - } - - state = { - name = _hide - bezier = { 0.25 0.1 0.25 1 } - duration = 0.05 - alpha = 0 - } - } - } - } - } -} diff --git a/N3OW/gui/scripted_widgets/_scripted_widgets.info b/N3OW/gui/scripted_widgets/_scripted_widgets.info deleted file mode 100644 index b7a12104..00000000 --- a/N3OW/gui/scripted_widgets/_scripted_widgets.info +++ /dev/null @@ -1,9 +0,0 @@ -Files here can contain pairs of file path and widget names to automatically create widgets on startup that are not formally referenced by the code. - -eg: -gui/test_custom_widget.gui = my_first_cool_test_widget -gui/test_custom_widget.gui = my_second_cool_test_widget - -Each entry will create one of that new widget, so making the same widget twice is supported though they will initially appear in the same location since the widget has the same ones scripted each time. - -All files will be loaded so multipe mods can load their own widgets as long as they don't mess with each other's pathing which would be rude if they did. diff --git a/N3OW/gui/settings/setting_types.gui b/N3OW/gui/settings/setting_types.gui deleted file mode 100644 index ad367a94..00000000 --- a/N3OW/gui/settings/setting_types.gui +++ /dev/null @@ -1,471 +0,0 @@ -types Settings -{ - type jomini_settings_window = window { - name = "jomini_settings_window" - visible_at_creation = no - - size = { 100% 100% } - movable = no - layer = confirmation - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - using = Background_Full_Dim - - button_normal = { - size = { 100% 100% } - onclick = "[JominiSettingsWindow.SaveAndClose]" - } - - widget = { - parentanchor = center - size = { 970 700 } - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "SETTINGS" - } - - blockoverride "button_close" - { - onclick = "[JominiSettingsWindow.SaveAndClose]" - enabled = "[Not( HasOpenResetReactiveTutorialPopup )]" - } - } - - ## CONTENT WINDOW ## - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 20 - margin_right = -3 - - vbox = { - datamodel = "[JominiSettingsWindow.AccessPages]" - - item = { - widget = { - size = { 200 48 } - - button = { - size = { 200 48 } - visible = "[SettingsPage.IsSelected]" - text = "[SettingsPage.GetName]" - default_format = "#low" - - frame = 4 - alwaystransparent = yes - - texture = "gfx/interface/buttons/button_tab_vertical.dds" - spriteType = Corneredtiled - spriteborder = { 10 10 } - framesize = { 202 48 } - } - - button_tab_vertical = { - visible = "[Not(SettingsPage.IsSelected)]" - size = { 200 48 } - - text = "[SettingsPage.GetName]" - onclick = "[SettingsPage.OnClick]" - upframe = "[Select_int32(SettingsPage.IsSelected,'(int32)2','(int32)1')]" - } - } - } - } - - expand = {} - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 10 10 } - margin_bottom = 15 - } - - blockoverride "scrollbox_content" - { - dynamicgridbox = { - name = "settings" - layoutpolicy_horizontal = expanding - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 10 } - spacing = 5 - - # jomini_settings_restart_required_indicator = { - # tooltip = "REQUIRES_RESTART" - # visible = "[JominiSettingsWindow.RequireRestart]" - # } - - button_tertiary = { - text = "SETTINGS_DISCARD_CHANGES" - onclick = "[JominiSettingsWindow.Restore]" - visible = "[JominiSettingsWindow.HasChanged]" - min_width = 200 - } - - expand = { - visible = "[Not(JominiSettingsWindow.RequireRestart)]" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[JominiSettingsWindow.RequireRestart]" - max_width = 400 - margin_right = 10 - autoresize = yes - align = nobaseline|right - text = "REQUIRE_RESTART_DESCRIPTION" - block "require_restart_description" {} - } - - - - # This button is hidden, it is just a trap that resets your settings - #button_standard = { - # text = "CANCEL" - # onclick = [JominiSettingsWindow.Hide] - # onclick = "[ClearResetReactiveTutorialPopup]" - # default_format = "#low" - #} - - button_primary = { - text = "SAVE_AND_CLOSE" - onclick = "[JominiSettingsWindow.SaveAndClose]" - enabled = "[Not( HasOpenResetReactiveTutorialPopup )]" - shortcut = close_window - } - } - } - } - } - - type jomini_settings_grouping = container { - name = "settings_grouping" - block "settings_grouping" {} - - text_label_left = { - position = { 10 10 } - min_width = 400 - text = "[SettingCategory.GetName]" - default_format = "#low" - - block "settings_grouping_name" {} - } - - dynamicgridbox = { - #### DO NOT TOUCH OR GAME CRASHES ### - position = { 10 35 } - name = "grouping_gridbox" - block "settings_grouping_gridbox" {} - } - } - - type jomini_setting_desc = textbox { - name = "setting_desc" - text = "[JominiGUISetting.GetDesc]" - default_format = "#low" - fontsize = 16 - max_width = 300 - size = { 200 20 } - margin = { 20 5 } - } - - type jomini_setting_title = text_single { - name = "setting_title" - visible = "[JominiGUISetting.ShouldShow]" - text = "[PdxSetting.GetTitle]" - align = nobaseline - min_width = 250 - max_width = 250 - tooltip = "[PdxSetting.GetTooltip]" - using = tooltip_ws - margin = { 20 6 } - block "setting_title" {} - jomini_settings_restart_required_indicator = { - visible = "[And(JominiGUISetting.ShouldShow,PdxSetting.GetSettingPromoted.RequireRestart)]" - } - } - - type setting_segmented_control_button = button { - text = "[EnumSettingEntry.GetGUIName]" - align = left|vcenter - default_format = "#medium" - - margin = { 10 0 } - minimumsize = { 220 30 } - - onclick = "[SelectEnumWithString(EnumSettingEntry.GetEnumString, EnumSettingEntry.AccessSetting)]" - visible = "[Not(EnumSettingEntry.IsSelected)]" - tooltip = "[EnumSettingEntry.GetTooltip]" - - texture = "gfx/interface/buttons/button_sort.dds" - framesize = { 225 33 } - spriteType = Corneredtiled - spriteborder = { 75 11 } - } - - type setting_segmented_control_active_button = button { - text = "[EnumSettingEntry.GetGUIName]" - align = left - default_format = "#medium" - margin = { 10 0 } - minimumsize = { 220 30 } - - onclick = "[SelectEnumWithString(EnumSettingEntry.GetEnumString, EnumSettingEntry.AccessSetting)]" - visible = "[EnumSettingEntry.IsSelected]" - tooltip = "[EnumSettingEntry.GetTooltip]" - - texture = "gfx/interface/buttons/button_sort.dds" - framesize = { 225 33 } - spriteType = Corneredtiled - spriteborder = { 75 11 } - } - - type setting_page_button = button_standard { - text = "[SettingsPage.GetName]" - size = { 150 30 } - align = left - onclick = "[SettingsPage.OnClick]" - upframe = "[Select_int32(SettingsPage.IsSelected,'(int32)2','(int32)1')]" - block "setting_page_button" {} - - textbox = { - parentanchor = vcenter|left - position = { 5 0 } - block "setting_page_button_text" {} - } - } - - type jomini_settings_restart_required_indicator = text_single { - - raw_text = "*" - tooltip = "REQUIRES_RESTART" - margin_left = 10 - } - - type jomini_setting_value_scrollbar = container { - name = "setting_value" - minimumsize = { 460 30 } - visible = "[JominiGUISetting.ShouldShow]" - - scrollbar = { - name = "setting_value_scrollbar" - direction = horizontal - parentanchor = left|vcenter - size = { 300 20 } - minimumsize = { -1 14 } - value = "[PdxValueSetting.GetValue(PdxSetting.GetSetting)]" - block "setting_value_scrollbar" {} - - track = { - using = SettingsValueTrack - } - - slider = { - using = SettingsValueSlider - } - - dec_button = { - using = SettingsValueDecButton - } - - inc_button = { - using = SettingsValueIncButton - } - } - - text_single = { - position = { 310 3 } - autoresize = yes - text = "[PdxValueSetting.GetFormatedValue(PdxSetting.GetSetting)]" - default_format = "#low" - alwaystransparent = no - max_width = 80 - fontsize_min = 12 - block "setting_value_eb" {} - } - } - - type jomini_setting_bool = widget { - name = "setting_bool" - size = { 220 30 } - block "setting_bool" {} - - hbox = { - margin_left = 5 - - button_checkbox = { - size = { 24 24 } - name = "setting_bool_cb" - checked = "[GetIsChecked(PdxSetting.GetSetting)]" - block "setting_bool_cb" {} - } - - expand = {} - } - } - - type jomini_setting_callback = widget { - name = "setting_callback" - size = { 220 24 } - - block "setting_callback" {} - - button_standard = { - size = { 250 28 } - text = "[PdxSetting.GetTitle]" - tooltip = "[PdxSetting.GetTooltip]" - using = tooltip_ws - name = "setting_callback_button" - parentanchor = left|vcenter - block "setting_callback_button" {} - } - } - - type jomini_setting_string = container { - name = "setting_string" - block "setting_string" {} - - editbox = { - name = "setting_string_eb" - text = "[GetStringSettingText(PdxSetting.GetSetting)]" - using = property_editbox - parentanchor = left|vcenter - block "setting_string_eb" {} - } - } - - type jomini_setting_enum = flowcontainer { - - ### SCROLLAREA DROPDOWN CONTENT ### - - name = "setting_enum" - visible = "[JominiGUISetting.ShouldShow]" - direction = vertical - ignoreinvisible = yes - - dropdown_menu_standard = - { - visible = "[Not(ShouldShowSegmentedControlForSetting(PdxSetting.GetSetting))]" - name = "setting_enum_dropdown" - - blockoverride "dropdown_properties" - { - selectedindex = "[GetEnumIndex(PdxSetting.GetSetting)]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[EnumSettingEntry.GetGUIName]" - tooltip = "[EnumSettingEntry.GetTooltip]" - } - - blockoverride "dropdown_item_properties" - { - text = "[EnumSettingEntry.GetGUIName]" - tooltip = "[EnumSettingEntry.GetTooltip]" - } - - } - - - dynamicgridbox = { - name = "segmented_control" - flipdirection = yes - visible = "[ShouldShowSegmentedControlForSetting(PdxSetting.GetSetting)]" - block "segmented_control" {} - item = { - container = { - setting_segmented_control_button = {} - setting_segmented_control_active_button = {} - } - } - } - } -} - - -#### THESE TEMPLATES DEFINE THE SLIDERS #### - -template SettingsValueSlider -{ - block "settings_value_slider" - { - button = { - texture = "gfx/interface/scrollbars/scrollbar_slider.dds" - spriteType = Corneredtiled - spriteborder = { 0 3 } - framesize = { 12 40 } - size = { 12 20 } - } - } -} - -template SettingsValueTrack -{ - block "settings_value_track" - { - button = { - texture ="gfx/interface/progressbars/progress_black.dds" - size = { 20 14 } - spriteType = Corneredtiled - spriteborder = { 6 6 } - alwaystransparent = yes - } - } -} - -template SettingsValueIncButton -{ - block "settings_value_inc_button" - { - - button_select_arrow = { - size = { 20 20 } - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_increment" - } - } -} - -template SettingsValueDecButton -{ - block "settings_value_dec_button" - { - - button_select_arrow = { - mirror = horizontal - size = { 20 20 } - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } -} diff --git a/N3OW/gui/settings/settings.gui b/N3OW/gui/settings/settings.gui deleted file mode 100644 index 8bcb4d13..00000000 --- a/N3OW/gui/settings/settings.gui +++ /dev/null @@ -1,11 +0,0 @@ -jomini_setting_value_scrollbar = {} -jomini_setting_enum = {} -jomini_setting_bool = {} -jomini_setting_callback = {} -jomini_setting_string = {} -jomini_setting_title = {} -jomini_setting_desc = {} -jomini_settings_grouping = {} -jomini_settings_window = { - visible_at_creation = no -} diff --git a/N3OW/gui/shared/animation.gui b/N3OW/gui/shared/animation.gui deleted file mode 100644 index 50a822e6..00000000 --- a/N3OW/gui/shared/animation.gui +++ /dev/null @@ -1,639 +0,0 @@ - -###################################################### -############### ANIMATION TEMPLATES ################## -###################################################### - -# Curves -template Animation_Curve_Default -{ - bezier = { 0.25 0.1 0.25 1 } -} - -template Animation_Transition_Start -{ - bezier = { 0.5 0 0 0 } -} - -template Animation_Transition_End -{ - bezier = { 1 1 0.5 1 } -} - -# Fade animations - -template Animation_FadeIn_Standard -{ - using = Animation_Curve_Default - duration = 0.25 - - alpha = 1 -} - -template Animation_FadeOut_Standard -{ - using = Animation_Curve_Default - duration = 0.25 - - alpha = 0 -} - -template Animation_FadeIn_Quick -{ - using = Animation_Curve_Default - duration = 0.15 - - alpha = 1 -} - -template Animation_FadeOut_Quick -{ - using = Animation_Curve_Default - duration = 0.15 - - alpha = 0 -} - -# Fade animation movement - -template Animation_FadeIn_BottomLeft -{ - position = { 0 0 } -} -template Animation_FadeOut_BottomLeft -{ - position = { -60 60 } -} - -# Package of standard show/hide states -template Animation_ShowHide_Standard -{ - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } -} - -template Animation_ShowHide_Quick -{ - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } -} - -template Animation_Tab_Switch -{ - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } -} - -### Window content refresh animation -template Animation_Refresh_FadeOut -{ - alpha = 0.5 - next = "fadein" - using = Animation_Curve_Default -} - -template Animation_Refresh_FadeIn -{ - name = "fadein" - alpha = 1 - duration = 0.4 - bezier = { 0.5 0 1 0.5 } -} - -template Animation_Glow_Pulse -{ - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - - glow_alpha = 0.8 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - - glow_alpha = 0.4 - } -} - -### MAP ICONS - -template Animation_MapIcon_Fade -{ - state = { - name = _show - duration = 0.15 - alpha = 1 - - block "icon_size" {} - } - - state = { - name = _hide - size = { 0 0 } - duration = 0.15 - alpha = 0 - } - -} - - -### GLOW TEMPLATES -template Glow_Standard -{ - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } -} - -### glow on flat icons when a progress has been completed, tested on legacies in dynasty view -template Glow_icon -{ - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - state = { - name = shimmer - next = pause - trigger_on_create = yes - duration = 1.2 - - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 1 } - } - } - - state = { - name = pause - next = shimmer - duration = 0 - delay = 2 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - } - - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 -1 } - } - } -} - -### glow on progress icons. pulse matches flat icons -template Glow_progress_icon -{ - modify_texture = { - name = "glow" - texture = "gfx/interface/component_overlay/overlay_texture.dds" - blend_mode = colordodge - visible = "[EqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - } - - state = { - trigger_when = "[EqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - name = a - next = b - - using = Animation_Curve_Default - duration = 0.6 - - modify_texture = { - name = "glow" - alpha = 0.8 - } - } - - state = { - name = b - next = c - - using = Animation_Curve_Default - duration = 0.6 - delay = 0.4 - - - modify_texture = { - name = "glow" - alpha = 0 - } - } - - state = { - name = c - next = a - - using = Animation_Curve_Default - duration = 1.6 - - modify_texture = { - name = "glow" - alpha = 0 - } - } -} - - -### ANIMATIONS - -types Animations -{ - # "Look at me!" For textbuttons - type animation_attention_text = icon { - name = "emphasis_effect" - parentanchor = center - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - using = Color_Orange - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.5 - } - } - - # A one off flash "Look at me!" For textbuttons - type animation_attention_text_single = icon { - name = "emphasis_effect" - parentanchor = center - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - using = Color_Orange - alpha = 0 - - state = { - block "start_state" - { - } - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - - state = { - name = b - next = c - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.5 - } - - state = { - name = c - next = d - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - state = { - name = d - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0 - } - } - - ### current special event option look - type animation_glow_event = icon { - size = { 100% 100% } - parentanchor = center - frame = 2 - texture = "gfx/interface/buttons/button_mouseover_event.dds" - spriteType = Corneredstretched - spriteborder = { 20 20 } - framesize = { 238 63 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 2 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 2.4 - alpha = 0.5 - } - } - - # Use this to signal that an action means serious business, ie. on a button that starts a war - type animation_aggressive = widget { - parentanchor = center - size = { 100% 100% } - - state = { - name = _show - trigger_on_create = yes - } - - proportional_icon = { - size = { 100% 100% } - alwaystransparent = yes - - texture = "gfx/interface/window_siege/base_holding_fire.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - modify_texture = { - name = "orange" - texture = "gfx/interface/colors/orange.dds" - blend_mode = colordodge - alpha = 0.2 - } - - modify_texture = { - name = "fire" - framesize = { 200 120 } - texture = "gfx/interface/component_effects/fire_03.dds" - blend_mode = colordodge - } - - using = Animation_ShowHide_Standard - using = Animation_Frames_100_Modify - } - } - - ## One pulse HUD animation, needs a texture - type animation_sonar = icon { - name = "effect_sonar" - parentanchor = center - size = { 100% 100% } - - alwaystransparent = yes - alpha = 0 - scale = 0 - - state = { - trigger_on_create = yes - name = a - next = c - - using = Animation_Curve_Default - duration = 0.3 - alpha = 1 - scale = 0 - } - - state = { - name = c - next = b - - using = Animation_Curve_Default - duration = 0.9 - alpha = 0 - scale = 3 - } - - state = { - name = b - using = Animation_Curve_Default - duration = 1 - alpha = 0 - scale = 0 - } - } - - type animation_button_highlight = icon { - name = "button_highlight" - parentanchor = center - size = { 100% 100% } - - alwaystransparent = yes - alpha = 0 - scale = 0 - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1.5 - alpha = 1 - scale = 1.2 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.2 - scale = 1.8 - } - } - - - type animation_progessbar_center_glow = widget { - using = Animation_ShowHide_Standard - - widget = { - size = { 100% 100% } - - widget = { - size = { 100% 100% } - scissor = yes - - button = { - parentanchor = right - size = { 100 100% } - framesize = { 192 112 } - texture = "gfx/interface/component_effects/sparks.dds" - alpha = 0.12 - alwaystransparent = yes - - gfxtype = animatedbuttongfx - loopinterval = 4 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - icon = { - parentanchor = right - size = { 80 100% } - texture = "gfx/interface/colors/white.dds" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - alpha = 0.4 - - # block "glow_color" - # { - using = Color_Bright_Yellow - - # } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 2 - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = a - duration = 2 - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - } - } - - icon = { - parentanchor = right|vcenter - position = { 20 0 } - size = { 80 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - # block "glow_color" - # { - # using = Color_Bright_Yellow - - # } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - } - } -} diff --git a/N3OW/gui/shared/animation.info b/N3OW/gui/shared/animation.info deleted file mode 100644 index 4d267fbb..00000000 --- a/N3OW/gui/shared/animation.info +++ /dev/null @@ -1,26 +0,0 @@ -### Animations triggered by code - -on_player_election_nomination - global - is triggered when the player nominates a candidate for a title election - -map_zoom_[0-15] - triggered when hitting zoom steps on map, interrups other zoom step animations - -# Character Window -character_window_refresh - Triggered when the viewed character changes - -# Combat Window -daily_tick_left_most_casualties - Every day if the left side had the most casualties -daily_tick_right_most_casualties - Every day if the right side had the most casualties - -# Siege Window -monthly_tick_attacker_most_casualties - Every month if the attacker side had the most casualties -monthly_tick_defender_most_casualties - Every month if the defender side had the most casualties -siege_event_flash - Every time the siege action changes -siege_breach_flash - In addition to the normal flash if the action was a wall breach -siege_starvation_flash - In addtion to the normal flash if the action was stravation -siege_disease_flash - In addtion to the normal flash if the action was disease -siege_daily_progress_flash - Every day if the siege made progress -siege_window_refresh - Triggered when the viewed siege changes - -# Misc -daily_tick - Every Day -monthly_tick - Every Month diff --git a/N3OW/gui/shared/backgrounds.gui b/N3OW/gui/shared/backgrounds.gui deleted file mode 100644 index 260aa53a..00000000 --- a/N3OW/gui/shared/backgrounds.gui +++ /dev/null @@ -1,817 +0,0 @@ - -###################################################### -################ BACKGROUND TEMPLATES ################ -###################################################### - -# Background fade to put behind popup windows -template Background_Fade -{ - widget = { - visible = "[Not(GameHasMultiplePlayers)]" - size = { 100% 100% } - - icon = { - parentanchor = center - size = { 50% 50% } - alwaystransparent = yes - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 0.6 - duration = 0.8 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 3 - alpha = 0 - } - } - } -} - -# Background box -template Background_Area -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0 0 0 0.2 } - texture_density = 2 -} - -## Same as above, but more opaque -template Background_Area_Dark -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0 0 0 0.6 } - texture_density = 2 -} - -template Background_Area_ExtraDark -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0 0 0 0.8 } - texture_density = 2 -} - -template Background_Area_Solid -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0.06 0.07 0.077 1 } - texture_density = 2 -} - -template Background_Area_Light -{ - texture = "gfx/interface/component_tiles/background_area_light.dds" - spriteType = Corneredtiled - spriteborder = { 15 15 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - blend_mode = overlay - #alpha = 0. - } -} - -template Background_Full_Dim -{ - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.5 - } -} - -## Same as above, but more opaque -template Background_Area_Dark_Border -{ - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - texture = "gfx/interface/component_tiles/tile_frame_thin_03.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - texture_density = 2 -} - -## Background box with dark header -template Background_Area_With_Header -{ - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - texture = "gfx/interface/component_tiles/tile_frame_thin_01_title.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - texture_density = 2 -} - -## Same as above, but more opaque -template Background_Area_With_Header_Dark -{ - gfxtype = icongfx - shaderfile = "gfx/FX/pdxgui_default.shader" - texture = "gfx/interface/component_tiles/tile_frame_thin_02_title.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - texture_density = 1 -} - -### Font label background -template Text_Label_Background -{ - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 -} - -### Clean background with stroked border -template Background_Area_Border -{ - texture = "gfx/interface/component_tiles/tile_dark_area_01.dds" - spriteType = Corneredtiled - spriteborder = { 16 16 } - texture_density = 2 -} - -template Background_Area_Border_Solid -{ - texture = "gfx/interface/component_tiles/tile_dark_area_02.dds" - spriteType = Corneredtiled - spriteborder = { 16 16 } - texture_density = 2 -} - -template Background_Area_Characterlist -{ - texture = "gfx/interface/component_tiles/tile_bg_characterlist.dds" - spriteType = Corneredstretched - spriteborder = { 5 5 } - texture_density = 2 -} - -# Black border that matches the tab gfx -template Background_Tab_Area -{ - texture = "gfx/interface/component_tiles/border_tab.dds" - spriteType = Corneredtiled - spriteborder = { 10 10 } -} - -template Background_Bottom_Fade -{ - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0.75 - mirror = vertical - # margin_bottom = -5 -} - -template Background_Title -{ - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } -} - -template Background_Frame -{ - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredstretched - spriteborder = { 10 10 } - color = { 0.9 0.9 0.9 0.15 } -} - -template Background_Frame_Gold -{ - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredstretched - spriteborder = { 10 10 } - color = { 0.9 0.7 0.5 0.7 } -} - -template Background_Button_Illustration -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - color = { 0 0 0 0.6 } -} - -template Background_Guest -{ - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - color = { 0.5 0.5 0.6 0.3 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = vertical - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_texture_01.dds" - spriteType = Corneredtiled - spriteborder = { 15 15 } - blend_mode = alphamultiply - } - block "Background_Guest_pattern_visible" - { - visible = "[Character.IsGuest]" - } - } - - background = { - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteborder = { 15 15 } - color = { 0.5 0.5 0.6 0.3 } - block "Background_Guest_frame_visible" - { - visible = "[Character.IsGuest]" - } - } -} - -template Background_Knight -{ - visible = "[And(Character.IsKnight, Character.IsValid)]" - spriteType = Corneredtiled - color = { 0.7 0.4 0.3 0.7 } - - background = { - using = Background_Pattern - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - modify_texture = { - texture = "gfx/interface/buttons/background_overlay.dds" - blend_mode = alphamultiply - } -} - -template Background_Label -{ - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } -} - -template Background_Label_Center -{ - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } -} - -### Packaged backgrounds ### - -template Background_Vignette_Button -{ - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } -} - -template Background_Inset -{ - background = { - using = Background_Area - } - - background = { - name = "scrollbar_fade" - texture = "gfx/interface/scrollbars/scrollbar_fade.dds" - spriteType = Corneredtiled - spriteborder = { 0 30 } - shaderfile = "gfx/FX/pdxgui_default.shader" - } -} - -template Background_Letter -{ - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/skinned/window_letter/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/skinned/window_letter/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - - background = { - name = "paper_texture_frame" - texture = "gfx/interface/skinned/window_letter/ornament_frame.dds" - alpha = 0.5 - spriteType = Corneredtiled - spriteborder = { 200 200 } - } -} - -template Background_Letter_No_Frame -{ - background = { - name = "paper_texture_shadow_no_frame" - texture = "gfx/interface/skinned/window_letter/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat_no_frame" - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay_no_frame" - texture = "gfx/interface/skinned/window_letter/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } -} - -# For when you want the default letter background without it being skinned -template Background_Letter_Default -{ - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/component_tiles/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/component_tiles/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/component_tiles/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } -} - -template Character_Background -{ - icon = { - name = "character_background" - size = { 110% 110% } - parentanchor = center - texture = "gfx/interface/window_legend_chronicle/marginalia_portrait_dark_bg.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 1080 - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 1080 - blend_mode = alphamultiply - } - } -} - -template Contract_2 -{ - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/window_contract/tile_contract_2_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/window_contract/tile_contract_2_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_contract/tile_contract_2_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } -} - -template Contract_3 -{ - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/window_contract/tile_contract_3_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/window_contract/tile_contract_3_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_contract/tile_contract_3_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } -} - -template Background_Inset_Bottom -{ - background = { - name = "scrollbar_fade" - texture = "gfx/interface/scrollbars/scrollbar_fade_bottom.dds" - spriteType = Corneredtiled - spriteborder_bottom = 20 - shaderfile = "gfx/FX/pdxgui_default.shader" - } -} - -### STATUS - -template Status_Bad -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.5 0.2 0.15 0.7 } - spriteType = Corneredtiled - spriteborder = { 20 10 } - - margin = { 7 0 } - margin_bottom = 3 - margin_top = -3 -} - -template Status_Mixed -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.5 0.5 0.1 0.7 } - spriteType = Corneredtiled - spriteborder = { 20 10 } - - margin = { 5 0 } - margin_bottom = 3 - margin_top = -3 -} - -template Status_Good -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.24 0.32 0.18 0.7 } - spriteType = Corneredtiled - spriteborder = { 20 10 } - - margin = { 5 0 } - margin_bottom = 3 - margin_top = -3 -} - - -template Status_Suggestion -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.13 0.13 0.17 1 } - - spriteType = Corneredtiled - spriteborder = { 20 10 } -} - -template Status_Suggestion_Bad -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.13 0.08 0.08 1 } - spriteType = Corneredtiled - spriteborder = { 20 10 } - - - margin = { 3 0 } - margin_top = -3 -} - -template Status_Suggestion_Good -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.14 0.18 0.12 1 } - - spriteType = Corneredtiled - spriteborder = { 20 10 } - - margin = { 3 0 } - margin_top = -3 -} - -template Status_Highlight -{ - texture = "gfx/interface/component_masks/mask_brushed.dds" - color = { 0.5 0.4 0.25 0.5 } - spriteType = Corneredtiled - spriteborder = { 20 10 } - - margin = { 5 0 } - margin_bottom = 3 - margin_top = -3 -} - -### Background for tooltips -template Background_Tooltip -{ - background = { - name = "background" - texture = "gfx/interface/tooltips/tooltip_bg.dds" - spriteType = Corneredtiled - spriteborder = { 3 3 } - - block "background_color" {} - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } - - background = { - name = "tooltip_frame" - texture = "gfx/interface/tooltips/tooltip_frame.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } -} - -template Toast_Header -{ - texture = "gfx/interface/hud/toast_title_bg_header.dds" - spriteType = Corneredstretched - spriteborder = { 5 5 } - margin = { 50 0 } - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } -} - -template Feed_Message_Header -{ - texture = "gfx/interface/component_tiles/tile_header_background_01.dds" - spriteType = Corneredtiled - spriteborder_top = 3 - spriteborder_bottom = 3 - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - alpha = 0.5 - } -} - -template Background_DropDown -{ - background = { - using = Background_Area_Solid - margin = { 2 6 } - } -} - -template Background_Header { - texture = "gfx/interface/skinned/color_theme.dds" - spriteType = Corneredtiled - - modify_texture = { - texture = "gfx/interface/colors/grey.dds" - alpha = 0.2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_header.dds" - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = overlay - alpha = 0.3 - } -} - -template Background_Window_Header { - - using = Background_Header - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphaMultiply - alpha = 0.6 - } -} - -template Background_Header_Pattern { - texture = "gfx/interface/skinned/color_theme.dds" - alpha = 0.8 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_header.dds" - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = overlay - alpha = 0.3 - } -} - -template Background_Window_Header_Pattern { - using = Background_Header_Pattern - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphaMultiply - } -} - -template Background_Color { - background = { - texture = "gfx/interface/skinned/tile_window_background_no_edge.dds" - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/colors/white.dds" - blend_mode = overlay - alpha = 0.1 - } - } -} - -template Background_Pattern -{ - texture = "gfx/interface/skinned/color_theme.dds" - spriteType = Corneredtiled - blend_mode = overlay - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphaMultiply - } -} - -### Masks - -template Mask_Background_Header -{ - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_title_big_top.dds" - spriteType = Corneredtiled - spriteborder = { 160 0 } - blend_mode = alphamultiply - alpha = 0.5 - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_title_big_top.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } -} - -# Standard rough edges for illustrations -template Mask_Rough_Edges -{ - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 2 - } -} - -# Alternating background -template Background_Alternate_Datamodel -{ - visible = "[EqualTo_int32( Modulo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)2' ), '(int32)0' )]" -} diff --git a/N3OW/gui/shared/buttons.gui b/N3OW/gui/shared/buttons.gui deleted file mode 100644 index 9b8748f1..00000000 --- a/N3OW/gui/shared/buttons.gui +++ /dev/null @@ -1,1273 +0,0 @@ - -###################################################### -################## BUTTON TEMPLATES ################## -###################################################### - -types Buttons -{ - type button_primary_big = button_primary - { - size = { 250 42 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#high" - using = Font_Size_Medium - alwaystransparent = yes - } - } - } - - type button_primary = button_standard - { - #texture = "gfx/interface/buttons/button_verb_primary.dds" - shortcut = confirm - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - - background = { - texture = "gfx/interface/buttons/button_standard.dds" - framesize = { 252 80 } - frame = 4 - } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#high" - alwaystransparent = yes - } - } - - blockoverride "button_pattern" {} - - icon = { - size = { 100% 100% } - texture = "gfx/interface/colors/black.dds" - alpha = 0.2 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - blend_mode = alphaMultiply - spriteType = Corneredtiled - texture_density = 3 - } - } - } - - type button_tertiary = button_frontend - { - size = { 170 33 } - texture = "gfx/interface/buttons/button_tertiary.dds" - - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - framesize = { 210 36 } - - - spriteType = Corneredtiled - spriteborder = { 22 20 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - using = Font_Size_Small - alwaystransparent = yes - } - } - } - - # Variation of the tertiary button type that uses gfxtype = togglepushbuttongfx to support being selected - type button_tertiary_push = button_standard - { - size = { 210 37 } - texture = "gfx/interface/buttons/button_tertiary.dds" - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - upframe = 1 - uphoverframe = 1 - uppressedframe = 3 - downframe = 2 - downhoverframe = 2 - downpressedframe = 2 - disableframe = 7 - framesize = { 210 37 } - - spriteType = Corneredtiled - spriteborder = { 24 20 } - - blockoverride "button_standard_mouseover" { - texture = "gfx/interface/buttons/button_tertiary_mouseover.dds" - framesize = { 210 37 } - spriteType = Corneredtiled - spriteborder = { 24 20 } - } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - using = Font_Size_Small - alwaystransparent = yes - } - } - } - - type button_standard_big = button_standard - { - size = { 250 42 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - using = Font_Size_Medium - alwaystransparent = yes - } - } - } - - ## The standard button - type button_standard = button_normal - { - texture = "gfx/interface/buttons/button_standard_clean.dds" - size = { 170 33 } - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 4 - disableframe = 7 - - spriteType = Corneredtiled - spriteborder = { 4 4 } - framesize = { 252 80 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - alwaystransparent = yes - } - } - - block "background_color" { - using = Background_Color - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - alpha = 0.3 - } - - block "button_pattern" { - background = { - using = Background_Pattern - } - } - - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_standard_current.dds" - spriteType = Corneredtiled - spriteborder = { 32 18 } - texture_density = 2 - - block "button_standard_current" - { - visible = no - } - } - - icon = { - block "button_standard_current" - { - visible = no - } - - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Orange - alpha = 0.4 - } - - block "disabled" - { - highlight_icon = { - size = { 100% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_disabled_stripes.dds" - spriteType = Corneredtiled - spriteborder = { 2 2 } - framesize = { 238 63 } - - upframe = 1 - uphoverframe = 1 - uppressedframe = 1 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 2 - - alpha = 0.4 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - } - - block "button_standard_mouseover" {} - } - } - - highlight_icon = { - size = { 100% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_mouseover.dds" - spriteType = Corneredstretched - spriteborder = { 20 20 } - framesize = { 238 63 } - - upframe = 1 - uphoverframe = 2 - uppressedframe = 1 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 1 - - alpha = 0.5 - - block "button_standard_mouseover" {} - } - - margin_widget = { - size = { 100% 100% } - margin = { 3 3 } - - block "vignette" - { - icon = { - name = "vignette" - size = { 100% 100% } - alpha = 0.2 - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - } - } - } - } - - type selection_glow = widget { - name = "selection_glow" - parentanchor = center - size = { 100% 100% } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - alpha = 0.5 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - alpha = 0.3 - } - - background = { - texture = "gfx/interface/component_effects/innovation_glow.dds" - margin = { 15 12 } - spriteType = Corneredstretched - spriteborder = { 30 30 } - tintcolor = { 1 0.8 0.6 1 } - } - } - - type button_standard_small = button_standard - { - size = { 140 25 } - } - - ## The standard button, with a clean interior - type button_standard_clean = button_standard - { - texture = "gfx/interface/buttons/button_standard_clean.dds" - - blockoverride "vignette" {} - blockoverride "button_pattern" {} - blockoverride "background_color" {} - } - - ## Clean, darker version used for list entries - type button_standard_list = button_standard - { - texture = "gfx/interface/buttons/button_standard_clean_weak.dds" - } - - type button_standard_hover = button_standard_clean { - blockoverride "background_color" {} - texture = "gfx/interface/buttons/button_standard_clean.dds" - upframe = 9 - } - - type button_sidepanel_right = button_standard_hover { - minimumsize = { -1 20 } - - using = tooltip_es - - flowcontainer = { - resizeparent = yes - margin = { 3 3 } - margin_left = 7 - - text_single = { - block "button_text"{} - - align = nobaseline - default_format = "#clickable" - } - - button_select_arrow = { - size = { 20 20 } - alwaystransparent = yes - } - } - } - - type button_sidepanel_left = button_standard_hover { - minimumsize = { -1 20 } - - using = tooltip_ws - - flowcontainer = { - resizeparent = yes - margin = { 3 3 } - margin_right = 7 - - button_select_arrow = { - size = { 20 20 } - alwaystransparent = yes - mirror = horizontal - } - - text_single = { - block "button_text"{} - - align = nobaseline - default_format = "#clickable" - } - } - } - - type button_standard_select_arrow = button_standard { - size = { 170 33 } - - hbox = { - margin = { 5 0 } - - spacer = { - size = { 20 20 } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - default_format = "#clickable" - autoresize = no - - block "button_text"{} - alwaystransparent = yes - } - - expand = {} - - button_select_arrow = { - size = { 20 20 } - alwaystransparent = yes - } - } - } - - type button_list = button_normal - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 3 - uppressedframe = 3 - downframe = 4 - downhoverframe = 5 - downpressedframe = 6 - texture = "gfx/interface/buttons/button_list.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - framesize = { 150 150 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - alwaystransparent = yes - } - } - } - - type button_tab = button_normal - { - size = { 100 38 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 4 - - block "button_tab" - { - texture = "gfx/interface/buttons/button_tab.dds" - } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - framesize = { 198 53 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#low" - alwaystransparent = yes - } - } - } - - # For tabs over a dark background area - type button_tab_dark = button_tab - { - upframe = 4 - uphoverframe = 2 - uppressedframe = 4 - downframe = 3 - downhoverframe = 3 - downpressedframe = 3 - framesize = { 198 45 } - - spriteborder = { 10 10 } - } - - type button_tab_vertical = button_normal - { - size = { 180 48 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 4 - - texture = "gfx/interface/buttons/button_tab_vertical.dds" - spriteType = Corneredtiled - spriteborder = { 10 10 } - framesize = { 202 48 } - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#low" - alwaystransparent = yes - } - } - } - - type button_tab_vertical_bookmark = button_normal - { - size = { 90 52 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - texture = "gfx/interface/buttons/button_tab_bookmark.dds" - alpha = 0.95 - framesize = { 180 104 } - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 5 - - using = tooltip_ws - - modify_texture = { - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - } - - state = { - name = "tab_reset" - duration = 0.1 - position_x = 0 - using = Animation_Curve_Default - - block "tab_inactive" {} - } - - state = { - name = "tab_selection" - delay = 0.05 - duration = 0.2 - position_x = -10 - using = Animation_Curve_Default - - block "tab_active" {} - } - - block "tab_button" {} - - icon = { - name = "tab_glow" - parentanchor = center - alwaystransparent = yes - alpha = 0.7 - size = { 90 52 } - texture = "gfx/interface/buttons/button_tab_bookmark_glow.dds" - - modify_texture = { - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - } - - block = "tab_glow" - { - visible = no - } - - # Glow animation when tab is selected - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.7 - duration = 1.5 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.3 - duration = 1.5 - using = Animation_Curve_Default - } - } - - button_icon = { - name = "tab_icon_texture" - alwaystransparent = yes - parentanchor = left|vcenter - size = { 30 30 } - position = { 36 0 } - - block "tab_texture" {} - } - - button_icon = { - name = "tab_icon_frame_texture" - alwaystransparent = yes - parentanchor = center - size = { 90 52 } - texture = "gfx/interface/buttons/button_tab_bookmark_frame.dds" - - modify_texture = { - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - } - - block "tab_frame_texture" {} - } - } - - type button_tab_round = button_normal - { - size = { 50 50 } - - framesize = { 100 100 } - texture = "gfx/interface/buttons/button_tab_round.dds" - - # upframe = 1 - # uphoverframe = 2 - # uppressedframe = 3 - # downframe = 2 - # downhoverframe = 1 - # downpressedframe = 1 - # disableframe = 1 - } - - # For main menu - type button_frontend = button_normal - { - texture = "gfx/interface/buttons/button_frontend.dds" - size = { 310 55 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - framesize = { 391 69 } - - - spriteType = Corneredtiled - spriteborder = { 50 30 } - - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 10 0 } - align = center|nobaseline - default_format = "#clickable" - using = Font_Size_Medium - alwaystransparent = yes - } - } - - } - - type button_event_standard = button_normal - { - size = { 170 33 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_event.dds" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - downhoverframe = 4 - downpressedframe = 4 - disableframe = 7 - spriteType = Corneredtiled - spriteborder = { 3 3 } - framesize = { 249 78 } - - highlight_icon = { - size = { 98% 100% } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - texture = "gfx/interface/buttons/button_mouseover_event.dds" - spriteType = Corneredstretched - spriteborder = { 20 20 } - framesize = { 238 63 } - parentanchor = center - - upframe = 1 - uphoverframe = 2 - uppressedframe = 1 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 1 - - alpha = 0.5 - - block "button_standard_mouseover" {} - } - } - - type button_event_letter = button_normal - { - size = { 260 34 } - - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - disableframe = 4 - texture = "gfx/interface/buttons/button_event_letter.dds" - framesize = { 175 37 } - spriteType = Corneredtiled - spriteborder = { 7 7 } - - default_format = "#light_background" - using = Font_Size_Medium - using = tooltip_es - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/paper_texture_overlay.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - name = "shading_overlay" - texture = "gfx/interface/buttons/button_event_letter_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredtiled - spriteborder_left = 40 - spriteborder_right = 40 - blend_mode = alphamultiply - } - } - - type button_letter = button_normal - { - size = { 260 34 } - - gfxtype = togglepushbuttongfx - - effectname = "NoHighlight" - upframe = 1 - downframe = 3 - disableframe = 4 - - texture = "gfx/interface/buttons/button_event_letter.dds" - framesize = { 175 37 } - spriteType = Corneredtiled - spriteborder = { 7 7 } - - default_format = "#light_background" - using = Font_Size_Medium - using = tooltip_es - - highlight_icon = { - name = "current" - size = { 100% 100% } - texture = "gfx/interface/buttons/button_letter_current.dds" - spriteType = Corneredtiled - spriteborder = { 34 20 } - texture_density = 2 - alpha = 0.7 - - block "button_letter_current" - { - visible = no - } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/component_masks/mask_brushed.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/paper_texture_overlay.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - name = "shading_overlay" - texture = "gfx/interface/buttons/button_event_letter_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 30 } - blend_mode = overlay - } - - - - icon = { - block "button_letter_current" - { - visible = no - } - - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Black - alpha = 0.2 - } - } - - type icon_button_decorative = button - { - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - texture = "gfx/interface/buttons/button_small_dec.dds" - framesize = { 94 94 } - size = { 47 47 } - } - - type icon_button_mapmode = widget { - size = { 40 40 } - - block "mm_datacontext" - { - datacontext = "[GetMapMode( 'realms' )]" - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_circle.dds" - - block = "mm_glow" - { - visible = "[IsMapMode( MapMode.GetKey )]" - } - - glow = { - color = { 0.93 0.65 0.45 1.0 } - glow_radius = 6 - - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 15 - glow_texture_downscale = 5.5f - glow_ignore_inside_pixels = yes - } - } - - using = Animation_Glow_Pulse - } - - button_round = { - size = { 100% 100% } - using = tooltip_nw - - onclick = "[SetMapMode( MapMode.GetKey )]" - down = "[IsMapMode( MapMode.GetKey )]" - tooltip = "[MapMode.GetDesc]" - - block "mm_button" {} - - button_icon = { - parentanchor = center - alwaystransparent = yes - down = "[IsMapMode( MapMode.GetKey )]" - texture = "[MapMode.GetIcon]" - - block "mm_icon" {} - } - } - } - - type button_round = button_icon { - size = { 40 40 } - texture = "gfx/interface/buttons/button_round_frame.dds" - - background = { - texture = "gfx/interface/buttons/button_round_bg.dds" - using = Color_Button_Background - - block "button_bg_color" {} - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_texture.dds" - blend_mode = overlay - } - } - } - - type button_council_task = button_icon { - size = { 40 40 } - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskFrame]" - - background = { - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskBackground]" - using = Color_Button_Background - - block "button_bg_color" {} - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_texture.dds" - blend_mode = overlay - } - } - } - - - type icon_round_button_base = highlight_icon { - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - size = { 100% 100% } - } - - - ## The standard close/minimize etc. buttons used on most windows - type buttons_window_control = flowcontainer { - ignoreinvisible = yes - margin = { 8 8 } - - block "extra_buttons" {} - - button_go_to_my_location = { - name = "button_go_to" - - block "button_go_to" { - visible = no - } - } - - container = { - visible = "[Not(Character.IsLocalPlayer)]" - - block "button_pin" - { - visible = no - } - - button_pin = { - name = "button_pin" - visible = "[Not(Character.IsPinned)]" - onclick = "[Character.ToggleCharacterPinned]" - tooltip = "PIN_TT" - using = tooltip_se - } - - button_unpin = { - name = "button_unpin" - visible = "[Character.IsPinned]" - onclick = "[Character.ToggleCharacterPinned]" - tooltip = "PIN_TT" - using = tooltip_se - } - } - - button_me = { - name = "button_me" - tooltip = "CV_TOOLTIP_ME_BUTTON" - - using = tooltip_se - - block "button_me" { - visible = no - } - } - - button_back = { - name = "button_back" - shortcut = "go_back" - shortcut = "go_back_2" - shortcut = "go_back_3" - - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - block "button_back" { - visible = no - } - } - - button_minimize = { - name = "button_minimize" - shortcut = "close_window" - tooltip = "MINIMIZE_TOOLTIP" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - block "button_minimize" { - visible = no - } - } - - button_close = { - name = "button_close" - - block "button_close_tooltip" - { - tooltip = "CLOSE_TOOLTIP" - shortcut = "close_window" - } - - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - block "button_close" {} - } - } - - type button_checkbox_label = button_group { - - using = tooltip_se - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - flowcontainer = { - block "checkbox_label_spacing" - { - spacing = 5 - } - - button_checkbox = { - block "checkbox" {} - } - - text_single = { - parentanchor = vcenter - align = nobaseline - default_format = "#clickable" - - block "text" { - text = "DEFAULT_TEXT" - } - alwaystransparent = yes - } - } - } - - type button_checkbox = checkbutton { - name = "button_checkbox" - texture = "gfx/interface/buttons/button_checkbox.dds" - framesize = { 80 80 } - size = { 30 30 } - - using = Master_Button_Modify_Texture - blockoverride "master_color_frame" { - frame = 1 - } - - background = { - texture = "gfx/interface/buttons/button_checkbox_background.dds" - margin = { 1 1 } - } - } - - type button_radio_label = button_group { - - using = tooltip_se - flowcontainer = { - spacing = 5 - - button_radio = { - block "radio" {} - - background = { - texture = "gfx/interface/buttons/button_round_big.dds" - alpha = 0.5 - } - } - - text_single = { - parentanchor = vcenter - align = nobaseline - default_format = "#clickable" - - block "text" { - text = "DEFAULT_TEXT" - } - alwaystransparent = yes - } - } - } - - type button_radio = button_toggle { - name = "button_checkbox" - texture = "gfx/interface/buttons/button_radio.dds" - using = Master_Button_Modify_Texture - - framesize = { 80 80 } - size = { 30 30 } - - background = { - texture = "gfx/interface/buttons/button_round_bg.dds" - using = Color_Button_Background - - block "button_bg_color" {} - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_texture.dds" - blend_mode = overlay - } - } - } - - type button_expand = button_toggle { - size = { 20 20 } - texture = "gfx/interface/buttons/button_tree_expand.dds" - framesize = { 36 36 } - } - - type button_list_expand = checkbutton { - size = { 18 18 } - texture = "gfx/interface/buttons/button_tree_expand.dds" - framesize = { 36 36 } - } - - type button_standard_back = button_standard { - - block "text" { - text = "BACK_LABEL" - } - - button_back = { - using = ButtonStandardIconProperties - size = { 20 20 } - } - } - - type button_standard_forward = button_standard { - - block "text" { - text = "NEXT_LABEL" - } - - button_forward = { - size = { 20 20 } - parentanchor = right|vcenter - position = { 5 0 } - alwaystransparent = yes - } - } - - # For dropdown filter - type button_drop = button_normal { - size = { 100% 33 } - button_trigger = none - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - downframe = 3 - disableframe = 4 - texture = "gfx/interface/buttons/button_drop_down.dds" - framesize = { 225 33 } - spriteType = Corneredtiled - spriteborder = { 75 11 } - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin = { 15 0 } - margin_right = 25 - align = left|nobaseline - default_format = "#clickable" - alwaystransparent = yes - } - } - } - - # For dropdown filter options - type button_dropdown = button_normal { - size = { 225 30 } - button_trigger = none - gfxtype = framedbuttongfx - effectname = "NoHighlight" - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - upframe = 1 - overframe = 2 - downframe = 3 - disableframe = 1 - texture = "gfx/interface/buttons/button_interaction_menu.dds" - framesize = { 317 30 } - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - - buttonText = { - text_single = { - size = { 100% 100% } - autoresize = no - margin_left = 10 - align = left|nobaseline - alwaystransparent = yes - } - } - } - - type button_religion_icon = button { - # Needs a Faith Data Context! - name = "faith_button" - size = { 65 65 } - onclick = "[OpenGameViewData( 'faith', Faith.GetID )]" - tooltipwidget = { faith_tooltip_click = {} } - texture = "[Faith.GetIcon]" - } - - type button_religion_icon_ruler_designer = button { - # Needs a Faith Data Context! - name = "faith_button" - size = { 65 65 } - tooltipwidget = { faith_tooltip_ruler_designer = {} } - texture = "[Faith.GetIcon]" - } -} - -# Use this to position a standard button_icon correctly inside a button_standard: -# button_standard = { -# text = "BACK_LABEL" -# button_back = { -# using = ButtonStandardIconProperties -# } -# } -template ButtonStandardIconProperties -{ - parentanchor = left|vcenter - position = { 5 0 } - size = { 25 25 } - alwaystransparent = yes -} diff --git a/N3OW/gui/shared/buttons_icons.gui b/N3OW/gui/shared/buttons_icons.gui deleted file mode 100644 index a50bfe83..00000000 --- a/N3OW/gui/shared/buttons_icons.gui +++ /dev/null @@ -1,869 +0,0 @@ -types ButtonIcons -{ - ### Icon buttons 60px - - type button_change = button_icon - { - texture = "gfx/interface/icons/flat_icons/replace.dds" - } - - type button_plus = button_icon - { - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - - type button_minus = button_icon - { - texture = "gfx/interface/icons/flat_icons/minus.dds" - } - - type button_replace = button_icon - { - texture = "gfx/interface/icons/flat_icons/replace.dds" - } - - type button_star_frames = button_icon - { - texture = "gfx/interface/icons/flat_icons/star_frames.dds" - framesize = { 60 60 } - - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - - upframe = 2 - uphoverframe = 2 - uppressedframe = 2 - downframe = 1 - downhoverframe = 1 - downpressedframe = 1 - disableframe = 2 - } - } - - type button_dismiss = button_icon_custom - { - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/cancel_small.dds" - } - - type button_cancel_small = button_icon - { - texture = "gfx/interface/icons/flat_icons/cancel_small.dds" - } - - type button_cancel = button_icon - { - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - - type button_clear = button_icon - { - texture = "gfx/interface/icons/flat_icons/clear.dds" - } - - type button_copy = button_icon - { - texture = "gfx/interface/icons/flat_icons/copy.dds" - } - - type button_paste = button_icon - { - texture = "gfx/interface/icons/flat_icons/paste.dds" - } - - type button_add_character = button_icon - { - texture = "gfx/interface/icons/flat_icons/add_character.dds" - } - - type button_menu = button_icon - { - texture = "gfx/interface/icons/flat_icons/main_menu.dds" - } - - type button_go_to_my_location = button_icon - { - texture = "gfx/interface/icons/flat_icons/go_to_my_location.dds" - } - - - type button_hide_ui = button_icon - { - texture = "gfx/interface/icons/flat_icons/hide_ui.dds" - } - - type button_show_ui = button_icon - { - texture = "gfx/interface/icons/flat_icons/observer.dds" - } - - type button_pin = button_icon - { - texture = "gfx/interface/icons/flat_icons/pin.dds" - framesize = { 60 60 } - } - - type button_unpin = button_icon - { - texture = "gfx/interface/icons/flat_icons/unpin.dds" - framesize = { 60 60 } - } - - type button_go_to_my_capital = button_icon - { - texture = "gfx/interface/icons/flat_icons/go_to_my_capital.dds" - } - - type button_history = button_icon - { - texture = "gfx/interface/icons/flat_icons/history.dds" - } - - type button_promote = button_icon - { - texture = "gfx/interface/icons/flat_icons/prison_ransom.dds" - - using = Texture_Placeholder - } - - type button_play_sound = button_icon - { - texture = "gfx/interface/icons/flat_icons/play_sound.dds" - } - - type button_find_title = button_icon - { - texture = "gfx/interface/icons/flat_icons/find_title.dds" - } - - type button_heir = button_icon - { - texture = "gfx/interface/icons/flat_icons/heir.dds" - } - - type button_title = button_icon - { - texture = "gfx/interface/icons/flat_icons/title.dds" - } - - type button_randomize = button_icon - { - texture = "gfx/interface/icons/flat_icons/randomize.dds" - } - - type button_homosexual_female = button_icon - { - texture = "gfx/interface/icons/flat_icons/homosexual_female.dds" - } - - type button_homosexual_male = button_icon - { - texture = "gfx/interface/icons/flat_icons/homosexual_male.dds" - } - - type button_heterosexual = button_icon - { - texture = "gfx/interface/icons/flat_icons/heterosexual.dds" - } - - type button_bisexual_female = button_icon - { - texture = "gfx/interface/icons/flat_icons/bisexual_female.dds" - } - - type button_bisexual_male = button_icon - { - texture = "gfx/interface/icons/flat_icons/bisexual_male.dds" - } - - type button_asexual = button_icon - { - texture = "gfx/interface/icons/flat_icons/asexual.dds" - } - - type button_male = button_icon - { - texture = "gfx/interface/icons/flat_icons/male.dds" - } - - type button_female = button_icon - { - texture = "gfx/interface/icons/flat_icons/female.dds" - } - - type button_revert = button_icon - { - texture = "gfx/interface/icons/flat_icons/revert.dds" - } - - type button_undo = button_icon - { - texture = "gfx/interface/icons/flat_icons/revert.dds" - } - - type button_redo = button_icon - { - texture = "gfx/interface/icons/flat_icons/revert.dds" - mirror = horizontal - } - - type button_search = button_icon - { - texture = "gfx/interface/icons/flat_icons/search.dds" - } - - type button_edit_text = button_icon - { - texture = "gfx/interface/icons/flat_icons/edit_text.dds" - } - - type button_edit_automation = button_icon - { - texture = "gfx/interface/icons/flat_icons/edit_automation.dds" - } - - type button_army_create = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_create_new.dds" - } - - type button_army_select = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_select.dds" - } - - type button_army_toggle_bartering = button_icon - { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/barter.dds" - } - - type button_army_toggle_raiding = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_toggle_raiding.dds" - } - - type button_army_raid = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_raid.dds" - } - - type button_army_raise_assigned = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_raise_assigned.dds" - } - - type button_army_delete_rally_point = button_icon - { - texture = "gfx/interface/icons/flat_icons/rally_point_delete.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_disband" - } - - type button_army_move_rally_point = button_icon - { - texture = "gfx/interface/icons/flat_icons/rally_point_move.dds" - } - - - type button_army_disband = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_disband.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_disband" - } - - type button_army_merge = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_merge.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_merge" - } - - type button_army_details = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_details.dds" - } - - type button_army_reorganize = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_reorganize.dds" - } - - type button_attach_to_unit = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_attach.dds" - } - - type button_detach_from_unit = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_detach.dds" - } - - type button_army_split_off_special_troops = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_split_off_special_troops.dds" - } - - type button_army_split_off_besiegers = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_split_off_besiegers.dds" - } - - type button_army_split_in_half = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_split_in_half.dds" - } - - type button_fleet_split_in_half = button_icon - { - texture = "gfx/interface/icons/flat_icons/fleet_split_in_half.dds" - } - - type button_fleet_split_off_unused = button_icon - { - texture = "gfx/interface/icons/flat_icons/fleet_split_off_unused.dds" - clicksound = "event:/SFX/UI/Unit/Fleet/sfx_ui_unit_fleet_split" - } - - type war_defeat = button_icon - { - texture = "gfx/interface/icons/flat_icons/war_outcome_defeat.dds" - } - - type war_peace = button_icon - { - texture = "gfx/interface/icons/flat_icons/war_outcome_white_peace.dds" - } - - type war_victory = button_icon - { - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - } - - type button_dots = button_icon - { - texture = "gfx/interface/icons/flat_icons/dots.dds" - } - - type button_revoke_lease = button_icon - { - texture = "gfx/interface/icons/flat_icons/revoke_lease.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_attach" - } - - type button_pause = button_icon - { - texture = "gfx/interface/icons/flat_icons/pause.dds" - } - - type button_leave_council = button_icon - { - texture = "gfx/interface/icons/flat_icons/goto.dds" - } - - type button_ruler_objective = button_icon - { - texture = "gfx/interface/icons/flat_icons/ruler_objective.dds" - } - - type button_outliner = button_icon - { - texture = "gfx/interface/icons/flat_icons/outliner.dds" - } - - type button_prison_release = button_icon - { - texture = "gfx/interface/icons/flat_icons/prison_release.dds" - } - - type button_prison_ransom = button_icon - { - texture = "gfx/interface/icons/flat_icons/prison_ransom.dds" - } - - type button_prison_execute = button_icon - { - texture = "gfx/interface/icons/flat_icons/prison_execute.dds" - } - - type button_feudalize_holding = button_icon - { - framesize = { 70 60 } - texture = "gfx/interface/icons/flat_icons/feudalize_tribe.dds" - } - - type button_tribalize_holding = button_icon - { - framesize = { 60 60 } - texture = "gfx/interface/icons/flat_icons/internal_building.dds" - } - - type button_dynasty_tree = button_icon - { - texture = "gfx/interface/icons/flat_icons/dynasty.dds" - } - - type button_barbershop = button_icon - { - texture = "gfx/interface/icons/flat_icons/barbershop.dds" - framesize = { 60 60 } - } - - type button_kill_list = button_icon - { - texture = "gfx/interface/icons/flat_icons/prison_execute.dds" - } - - type button_memories = button_icon - { - texture = "gfx/interface/icons/flat_icons/history.dds" - } - - type button_royal_court = button_icon - { - texture = "gfx/interface/icons/flat_icons/royal_court.dds" - } - - type button_me = button_icon - { - texture = "gfx/interface/icons/flat_icons/window_me.dds" - } - - type button_back = button_icon - { - texture = "gfx/interface/icons/flat_icons/window_back.dds" - } - - type button_forward = button_icon - { - texture = "gfx/interface/icons/flat_icons/window_back.dds" - mirror = horizontal - } - - type button_minimize = button_icon - { - texture = "gfx/interface/icons/flat_icons/window_minimize.dds" - } - - type button_close = button_icon - { - texture = "gfx/interface/icons/flat_icons/window_close.dds" - } - - type button_encyclopedia_small = button_icon - { - texture = "gfx/interface/icons/flat_icons/encyclopedia_small.dds" - } - - type button_election_vote = button_icon - { - texture = "gfx/interface/icons/flat_icons/election_vote_strength.dds" - } - - type button_play = button_icon - { - texture = "gfx/interface/icons/flat_icons/play.dds" - } - - type button_next_track = button_icon - { - texture = "gfx/interface/icons/flat_icons/next.dds" - } - - type button_travel = button_icon - { - texture = "gfx/interface/icons/flat_icons/travel.dds" - } - - type button_migrate = button_icon - { - texture = "gfx/interface/icons/flat_icons/migrate.dds" - } - - type button_situation = button_icon - { - texture = "gfx/interface/icons/flat_icons/map_modes/situation.dds" - } - - type button_move_capital = button_icon - { - texture = "gfx/interface/icons/flat_icons/move_capital.dds" - } - - type button_feudal_contract = button_icon - { - texture = "gfx/interface/icons/flat_icons/feudal_contract.dds" - } - - type button_clan_contract = button_icon - { - texture = "gfx/interface/icons/flat_icons/clan_contract.dds" - } - - type button_add_vassal_tax_collector = button_icon - { - texture = "gfx/interface/icons/flat_icons/assign_character.dds" - } - - type button_promote_candidate = button_icon - { - texture = "gfx/interface/icons/title_actions/promote_candidate.dds" - } - - type button_destroy_title = button_icon - { - texture = "gfx/interface/icons/title_actions/destroy_title.dds" - } - - type button_usurp_title = button_icon - { - texture = "gfx/interface/icons/title_actions/usurp_title.dds" - } - - type button_generate_claim = button_icon - { - texture = "gfx/interface/icons/title_actions/generate_claim.dds" - } - - type button_add_laws = button_icon - { - texture = "gfx/interface/icons/title_actions/add_laws.dds" - } - - type button_give_directive = button_icon - { - texture = "gfx/interface/icons/activity_types/tour_type_intimidation_icon.dds" - } - - type button_remove_laws = button_icon - { - texture = "gfx/interface/icons/title_actions/clear_laws.dds" - } - - type button_grant_title_to_vassal = button_icon - { - texture = "gfx/interface/icons/title_actions/grant_title_to_vassal.dds" - } - - type button_make_primary = button_icon - { - texture = "gfx/interface/icons/title_actions/make_primary.dds" - } - - type button_slander = button_icon - { - texture = "gfx/interface/icons/flat_icons/slander.dds" - } - - type button_challenge_status = button_icon - { - texture = "gfx/interface/icons/flat_icons/challenge_status.dds" - } - - type button_request_appointment_support = button_icon - { - texture = "gfx/interface/icons/flat_icons/request_appointment_support.dds" - } - - type button_dispute_border = button_icon - { - texture = "gfx/interface/icons/flat_icons/dispute_border.dds" - } - - type button_force_to_step_down = button_icon - { - texture = "gfx/interface/icons/flat_icons/force_to_step_down.dds" - } - - type button_subsume_province = button_icon - { - texture = "gfx/interface/icons/flat_icons/subsume_province.dds" - } - - type button_declare_war = button_icon - { - texture = "gfx/interface/icons/flat_icons/declare_war.dds" - } - - type button_army_automation = button_icon - { - texture = "gfx/interface/icons/flat_icons/army_automation_off.dds" - } - - - - ### Icon buttons, custom size - - type button_plus_small = button_icon_custom - { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/plus_small.dds" - } - - type button_select_arrow = button_icon_custom - { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/select_arrow.dds" - } - - type button_minus_small = button_icon_custom - { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/minus_small.dds" - } - - type button_icon_custom = button_icon { - - size = { 50 50 } - texture = "gfx/interface/icons/flat_icons/blank.dds" - } - - type button_icon_war_victory = button_icon { - size = { 35 35 } - texture = "gfx/interface/icons/flat_icons/war_outcome_victory.dds" - } - - type button_icon_war_peace = button_icon { - size = { 35 35 } - texture = "gfx/interface/icons/flat_icons/war_outcome_white_peace.dds" - } - - type button_icon_war_defeat = button_icon { - size = { 35 35 } - texture = "gfx/interface/icons/flat_icons/war_outcome_defeat.dds" - } - - type button_icon_raise_banners = button_icon { - size = { 70 70 } - texture = "gfx/interface/icons/flat_icons/raise_banners.dds" - } - - type button_kick_player = button_icon { - size = { 70 70 } - texture = "gfx/interface/icons/flat_icons/kick_player.dds" - } - - type button_settings_value_track = button_icon { - size = { 70 70 } - texture = "gfx/interface/icons/flat_icons/kick_player.dds" - } - - type button_capture = button_icon { - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/capture.dds" - } - - type button_adopt_court_language = button_icon { - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - - type button_house = button_icon { - texture = "gfx/interface/icons/flat_icons/house.dds" - } - - ##### FRONTEND BUTTONS ##### - type button_account = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/account.dds" - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_achievements = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/achievements.dds" - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_credits = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/credits.dds" - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_encyclopedia = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/encyclopedia.dds" - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_rules = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/rules.dds" - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_settings = button_icon { - size = { 45 45 } - texture = "gfx/interface/icons/flat_icons/settings.dds" - - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - } - } - - type button_open_inventory = button_normal - { - visible = "[Or( Character.IsLocalPlayer, Or( Character.HasArtifacts, Character.HasAnyArtifactClaims ) )]" - enabled = "[Or( Or( Character.IsLocalPlayer, Character.HasArtifacts), Character.HasAnyArtifactClaims )]" - onclick = "[ToggleGameViewData( 'inventory', Character.GetID )]" - tooltip = "[SelectLocalization( Or( Or( Character.IsLocalPlayer, Character.HasArtifacts), Character.HasAnyArtifactClaims ),'OPEN_INVENTORY_TOOLTIP','EMPTY_INVENTORY_TOOLTIP')]" - - icon_round_button_base = {} - - button_icon_highlight = { - block "highlight_icon_size" - { - size = { 25 25 } - } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/inventory.dds" - } - } - - type button_trait = button_group - { - icon_trait = {} - } - - type button_epidemic = button - { - datacontext = "[Epidemic.GetType]" - texture = "[EpidemicType.GetIcon]" - - size = { 35 35 } - - onclick = "[ToggleGameViewData( 'epidemics', Epidemic.Self )]" - - tooltipwidget = epidemic_tooltip - } - - type button_legend = button - { - datacontext = "[Legend.GetType]" - texture = "[LegendType.GetIcon]" - - size = { 35 35 } - - onclick = "[ToggleGameViewData( 'legends', Legend.Self )]" - - tooltipwidget = legend_tooltip - } - - type button_open_memories = button_normal - { - name = "open_memories" - size = { 35 35 } - tooltip = "OPEN_MEMORIES_TOOLTIP" - - icon_round_button_base = {} - - button_memories = { - onclick = "[ToggleGameViewData( 'memories', Character.GetID )]" - size = { 25 25 } - parentanchor = center - } - } - - ############################################################################### - ### Add sound effects here to ensure they are consistent between buttons types. - - ## Any button that is just an icon or a round frame with icon - - type button_icon_highlight = button_icon { - alwaystransparent = yes - } - - type button_icon = button { - - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/blank.dds" - - block "button_icon_modify_texture" - { - using = Master_Button_Modify_Texture - } - - block "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 2 - downhoverframe = 2 - downpressedframe = 3 - disableframe = 4 - } - } -} - -template Master_Button_Modify_Texture -{ - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - spritetype = corneredtiled - - block "master_color_frame" {} - } -} - -template Button_Modify_Texture_Placeholder -{ - modify_texture = { - texture = "gfx/interface/_debug/colors_textured_placeholder.dds" - blend_mode = add - framesize = { 96 96 } - spritetype = corneredtiled - - block "master_color_frame" {} - } -} diff --git a/N3OW/gui/shared/cards.gui b/N3OW/gui/shared/cards.gui deleted file mode 100644 index 0a82cfc1..00000000 --- a/N3OW/gui/shared/cards.gui +++ /dev/null @@ -1,161 +0,0 @@ -types ObjectCards -{ - type vbox_generic_object_card = vbox { - block "card_background" - { - using = GenericObjectCardDefaultBackground - } - - hbox = { - name = "header" - - block "header_properties" - { - using = GenericObjectCardDefaultHeaderProperites - } - - block "header_tooltip" {} - - block "header_background" - { - background = { - using = GenericObjectCardHeaderBackground - - block "header_background_color" - { - using = Color_Blue - } - } - } - - block "header_pre_contents" {} - - vbox = { - name = "header_contents" - - block "header_contents_properties" - { - using = GenericObjectCardDefaultHeaderContentsProperties - } - - margin_widget = { - name = "upper_line" - - block "header_top_properties" - { - using = GenericObjectCardDefaultHeaderTopProperties - } - - block "header_top_tooltip" { } - block "header_top_contents" { } - } - - margin_widget = { - name = "lower_line" - - block "header_bottom_properties" - { - using = GenericObjectCardDefaultHeaderBottomProperties - } - - block "header_bottom_tooltip" { } - block "header_bottom_contents" { } - } - } - - expand = {} - - block "header_post_contents" { - using = GenericObjectCardDefaultHeaderPostProperties - } - } - - hbox = { - name = "contents" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - block "card_visible" {} - block "card_contents" {} - } - } - - type button_clickable_object_card = button_standard_clean { - vbox_generic_object_card = { - resizeparent = yes - } - } -} - -## vbox_generic_object_card helper templates -# Put these within relevant blockoverride blocks where they are being used. -template GenericObjectCardDefaultBackground -{ - background = { - using = Background_Area_Dark - using = Mask_Rough_Edges - alpha = 0.5 - margin_bottom = 5 - } - - background = { - using = Background_Frame - alpha = 0.5 - margin_bottom = 5 - } -} - -template GenericObjectCardDefaultHeaderProperites -{ - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 12 12 } -} - -template GenericObjectCardHeaderBackground -{ - spriteType = Corneredtiled - alpha = 0.3 - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.2 - } -} - -template GenericObjectCardDefaultHeaderContentsProperties -{ - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = 8 - spacing = -8 -} - -template GenericObjectCardDefaultHeaderTopProperties -{ - layoutpolicy_horizontal = expanding -} - -template GenericObjectCardDefaultHeaderBottomProperties -{ - layoutpolicy_horizontal = expanding -} - -template GenericObjectCardDefaultHeaderPostProperties -{ - margin_right = 20 -} diff --git a/N3OW/gui/shared/coa_designer.gui b/N3OW/gui/shared/coa_designer.gui deleted file mode 100644 index dfa1c4d3..00000000 --- a/N3OW/gui/shared/coa_designer.gui +++ /dev/null @@ -1,2098 +0,0 @@ -types CoatOfArmsDesignerTypes -{ - # Reusable component for a Coat of Arms Designer - # Requires a CoatOfArmsDesigner data context - type vbox_coa_designer = vbox - { - datacontext = "[GetVariableSystem]" - - spacing = 8 - margin_left = 10 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "coa_designer_center" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox_coa_designer_top_left_buttons = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - expand = {} - vbox_coa_designer_mode_and_back = {} - } - - expand = {} - - vbox_coa_designer_quartering_options = {} - } - } - - vbox_coa_designer_previews = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 10 - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - vbox = { - name = "coa_designer_right" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - max_width = 480 - - vbox_coa_designer_tabs = {} - - widget_coa_designer_editor_panel = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - } - } - } - } - - type vbox_coa_designer_previews = vbox - { - name = "coa_designer_previews" - - expand = {} - - hbox = { - spacing = 15 - - coa_preview_dynasty_huge = { - name = "dynasty" - datacontext = "[CoatOfArmsDesigner.GetPreviewCoA.GetCoA]" - datacontext = "[CoatOfArmsDesigner.GetSelectedCulture]" - } - - coa_preview_house_huge = { - name = "house" - datacontext = "[CoatOfArmsDesigner.GetPreviewCoA.GetCoA]" - datacontext = "[CoatOfArmsDesigner.GetSelectedCulture]" - } - - coa_preview_title_big_crown = { - name = "title" - datacontext = "[CoatOfArmsDesigner.GetPreviewCoA.GetCoA]" - } - - coa_preview_realm_huge_crown = { - name = "realm" - datacontext = "[CoatOfArmsDesigner.GetPreviewCoA.GetCoA]" - } - } - - spacer = { size = { 0 10 } } - - hbox = { - margin = { 20 10 } - spacing = 50 - - cameracontrolwidget = { - name = "coa_designer_unit_preview" - size = { 300 400 } - - gfxtype = game_entity_view - effectname = "PdxGuiDefault" - shaderfile = "gfx/FX/pdxgui_default.shader" - - camera_position = { 0 5 -18 } - camera_look_at = { 0 8 0 } - gfx_environment_file = "gfx/map/environment/environment_unit_preview.txt" - camera_rotation_pitch_limits = { 0 0 } - camera_zoom_limits = { 1.0 1.0 } - camera_translation_limits = { 0 0 0 } - - icon = { - name = "shadow_center" - parentanchor = bottom|hcenter - position = { 0 -0 } - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - size = { 240 90 } - alpha = 0.7 - } - - } - } - - expand = {} - - } - - type vbox_coa_designer_top_left_buttons = vbox - { - name = "coa_designer_top_left_buttons" - visible = "[Not(VariableSystem.HasValue('coa_designer_page', 'start'))]" - - using = Animation_Tab_Switch - - hbox = { - layoutpolicy_horizontal = expanding - - button_undo = { - name = "undo_edit" - size = { 40 40 } - - enabled = "[CoatOfArmsDesigner.CanUndoEdit]" - onclick = "[CoatOfArmsDesigner.UndoEdit]" - - tooltip = "COA_DESIGNER_UNDO_EDIT" - using = tooltip_se - - shortcut = "undo" - } - - button_redo = { - name = "redo_edit" - size = { 40 40 } - - enabled = "[CoatOfArmsDesigner.CanRedoEdit]" - onclick = "[CoatOfArmsDesigner.RedoEdit]" - - tooltip = "COA_DESIGNER_REDO_EDIT" - using = tooltip_se - - shortcut = "redo" - } - - spacer = { size = { 10 0 } } - - button_round = { - size = { 40 40 } - button_copy = { - parentanchor = center - onclick = "[CoatOfArmsDesigner.OnCopyToClipboard]" - tooltip = "COA_DESIGNER_COPY_TO_CLIPBOARD_BUTTON_TT" - using = tooltip_se - } - } - - expand = {} - } - - expand = {} - } - - type vbox_coa_designer_tabs = vbox - { - name = "coa_designer_tabs" - visible = "[Not(VariableSystem.HasValue('coa_designer_page', 'start'))]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - button_tab = { - text = "COA_DESIGNER_BACKGROUND_TAB_HEADER" - datacontext = "[CoatOfArmsDesigner.GetBackgroundPanel]" - - onclick = "[VariableSystem.Set('coa_designer_page', 'background')]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.UpdatePatternPreviewColors]" - - down = "[VariableSystem.HasValue('coa_designer_page', 'background')]" - - using = CoatOfArmsDesignerClearEditState - - layoutpolicy_horizontal = expanding - } - - button_tab = { - text = "COA_DESIGNER_EMBLEM_LAYOUT_TAB_HEADER" - visible = "[CoatOfArmsDesigner.IsCustomMode]" - onclick = "[VariableSystem.Set('coa_designer_page', 'emblem_layout')]" - down = "[VariableSystem.HasValue('coa_designer_page', 'emblem_layout')]" - - using = CoatOfArmsDesignerClearEditState - - layoutpolicy_horizontal = expanding - } - - button_tab = { - text = "COA_DESIGNER_EMBLEM_INSTANCES_TAB_HEADER" - datacontext = "[CoatOfArmsDesigner.GetEmblemInstancesPanel]" - - enabled = "[DataModelHasItems( CoatOfArmsDesignerEmblemInstancesPanel.GetAllEmblemInstances )]" - - onclick = "[VariableSystem.Set('coa_designer_page', 'emblem_instances')]" - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.ResetSelectedEmblems]" - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.UpdateTexturePreviewColors]" - - down = "[VariableSystem.HasValue('coa_designer_page', 'emblem_instances')]" - - using = CoatOfArmsDesignerClearEditState - - layoutpolicy_horizontal = expanding - } - } - } - - type vbox_coa_designer_mode_and_back = vbox - { - name = "coa_designer_mode_and_back" - visible = "[Not(VariableSystem.HasValue('coa_designer_page', 'start'))]" - - spacing = 5 - - text_single = { - text = "[SelectLocalization(CoatOfArmsDesigner.IsCustomMode, 'COA_DESIGNER_MODE_CUSTOM', 'COA_DESIGNER_MODE_ADJUSTED')]" - } - - button_standard_back = { - onclick = "[VariableSystem.Set('coa_designer_page', 'start')]" - } - } - - type vbox_coa_designer_quartering_options = vbox - { - name = "coa_designer_quartering_options" - visible = "[CoatOfArmsDesigner.AreQuarteringOptionsAvailable]" - - using = Animation_Tab_Switch - - spacing = 5 - margin = { 15 0 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - button_checkbox_label = { - size = { 35 35 } - tooltip = "COA_DESIGNER_TOGGLE_QUARTERING_BUTTON_TT" - - onclick = "[CoatOfArmsDesigner.SetQuarteringEnabled( Not( CoatOfArmsDesigner.IsQuarteringEnabled ) )]" - - blockoverride "checkbox" - { - checked = "[CoatOfArmsDesigner.IsQuarteringEnabled]" - } - blockoverride "text" - { - text = "COA_DESIGNER_QUARTERING_OPTIONS" - } - - using = tooltip_se - } - } - } - - type widget_coa_designer_editor_panel = widget { - name = "editor_panel" - - vbox_coat_designer_start_panel = { - visible = "[VariableSystem.HasValue('coa_designer_page', 'start')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - } - - vbox_coa_designer_background_panel = { - datacontext = "[CoatOfArmsDesigner.GetBackgroundPanel]" - visible = "[VariableSystem.HasValue('coa_designer_page', 'background')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - } - - vbox_coa_designer_emblem_layout_panel = { - datacontext = "[CoatOfArmsDesigner.GetEmblemLayoutPanel]" - visible = "[VariableSystem.HasValue('coa_designer_page', 'emblem_layout')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - } - - vbox_coa_designer_emblem_instances_panel = { - datacontext = "[CoatOfArmsDesigner.GetEmblemInstancesPanel]" - visible = "[VariableSystem.HasValue('coa_designer_page', 'emblem_instances')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - } - } - - type vbox_coat_designer_start_panel = vbox - { - name = "start_panel" - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 3 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "COA_DESIGNER_MODE_SELECTION_HEADER" - using = Font_Size_Medium - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[CoatOfArmsDesigner.IsCustomMode]" - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 480 - text = "COA_DESIGNER_MODE_SELECTION_CONTINUE_CUSTOM_DESC" - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "button_custom_mode" - text = "COA_DESIGNER_MODE_SELECTION_CONTINUE_CUSTOM_BUTTON" - - datacontext = "[CoatOfArmsDesigner.GetBackgroundPanel]" - - onclick = "[CoatOfArmsDesigner.OnSetCustomMode]" - onclick = "[VariableSystem.Set('coa_designer_page', 'background')]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.UpdatePatternPreviewColors]" - - using = CoatOfArmsDesignerClearEditState - } - - expand = {} - } - } - - vbox = { - visible = "[Not(CoatOfArmsDesigner.IsCustomMode)]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 480 - text = "COA_DESIGNER_MODE_SELECTION_CUSTOM_DESC" - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "button_custom_mode" - text = "COA_DESIGNER_MODE_SELECTION_CUSTOM_BUTTON" - - datacontext = "[CoatOfArmsDesigner.GetBackgroundPanel]" - - onclick = "[CoatOfArmsDesigner.OnSetCustomMode]" - onclick = "[VariableSystem.Set('coa_designer_page', 'background')]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.UpdatePatternPreviewColors]" - - using = CoatOfArmsDesignerClearEditState - } - - expand = {} - } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 480 - text = "COA_DESIGNER_MODE_SELECTION_ADJUSTED_DESC" - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "button_adjusted_mode" - text = "COA_DESIGNER_MODE_SELECTION_ADJUSTED_BUTTON" - onclick = "[CoatOfArmsDesigner.OnSetAdjustedMode]" - onclick = "[VariableSystem.Set('coa_designer_page', 'background')]" - using = CoatOfArmsDesignerClearEditState - } - - expand = {} - } - } - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - button_standard = { - name = "randomize" - size = { 250 33 } - text = "COA_DESIGNER_RANDOMIZE_BUTTON" - tooltip = "COA_DESIGNER_RANDOMIZE_BUTTON_TT" - onclick = "[CoatOfArmsDesigner.OnRandomize]" - - using = tooltip_ws - - button_randomize = { - using = ButtonStandardIconProperties - } - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - button_standard = { - name = "copy" - size = { 250 33 } - text = "COA_DESIGNER_COPY_TO_CLIPBOARD_BUTTON" - tooltip = "COA_DESIGNER_COPY_TO_CLIPBOARD_BUTTON_TT" - onclick = "[CoatOfArmsDesigner.OnCopyToClipboard]" - - using = tooltip_ws - - button_copy = { - using = ButtonStandardIconProperties - } - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - size = { 290 33 } - - button_standard = { - name = "paste" - size = { 250 33 } - - text = "COA_DESIGNER_PASTE_FROM_CLIPBOARD_BUTTON" - tooltip = "COA_DESIGNER_PASTE_FROM_CLIPBOARD_BUTTON_TT" - enabled = "[CoatOfArmsDesigner.CanPasteFromClipboard]" - onclick = "[CoatOfArmsDesigner.OnPasteFromClipboard]" - - using = tooltip_ws - - button_paste = { - using = ButtonStandardIconProperties - } - } - - coa_preview_title_tiny = { - name = "paste_preview" - datacontext = "[CoatOfArmsDesigner.GetPastePreviewCoA.GetCoA]" - visible = "[CoatOfArmsDesigner.CanPasteFromClipboard]" - parentanchor = right - position = { 3 -9 } - size = { 34 34 } - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - size = { 290 33 } - - button_standard = { - name = "reset_to_original" - size = { 250 33 } - text = "COA_DESIGNER_RESET_BUTTON" - tooltip = "COA_DESIGNER_RESET_BUTTON_TT" - enabled = "[CoatOfArmsDesigner.WasDesignChanged]" - onclick = "[CoatOfArmsDesigner.OnResetToLoaded]" - - using = tooltip_ws - } - - coa_preview_title_tiny = { - name = "reset_preview" - datacontext = "[CoatOfArmsDesigner.GetOriginalCoASprite]" - parentanchor = right - position = { 3 -9 } - size = { 34 34 } - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[CoatOfArmsDesigner.CanLoadHistoricalCoatOfArms]" - - button_standard = { - name = "reset_to_historical" - size = { 250 33 } - text = "COA_DESIGNER_RESET_HISTORICAL_BUTTON" - tooltip = "COA_DESIGNER_RESET_HISTORICAL_BUTTON_TT" - enabled = "[Not( CoatOfArmsDesigner.WasDesignResetToHistorical )]" - onclick = "[CoatOfArmsDesigner.OnResetToHistorical]" - - using = tooltip_ws - } - - coa_preview_title_tiny = { - name = "reset_preview" - datacontext = "[CoatOfArmsDesigner.GetHistoricalCoASprite]" - size = { 34 34 } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - button_standard = { - name = "save_to_disk" - size = { 250 33 } - text = "COA_DESIGNER_SAVE_TO_DISK" - tooltip = "COA_DESIGNER_SAVE_TO_DISK_TT" - - # Size needs to match the size in common/coat_of_arms/options/atlases.txt for the screenshot atlas - onclick = "[CoatOfArmsDesigner.SaveCoatOfArmsImageToDisk( '(int32)345', '(int32)345' )]" - - using = tooltip_ws - - button_copy = { - using = ButtonStandardIconProperties - } - } - - expand = {} - } - } - } - - # Requires CoatOfArmsDesignerBackgroundPanel data context - type vbox_coa_designer_background_panel = vbox - { - name = "background_panel" - - flowcontainer = { - name = "color_button_tabs" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_left = 5 - margin_bottom = 10 - - button_standard = { - name = "pattern_button" - size = { 130 52 } - - text_single = { - text = "COA_DESIGNER_BACKGROUND_PATTERN_HEADER" - align = center|nobaseline - parentanchor = center - } - - onclick = "[VariableSystem.Clear('coa_designer_background_color')]" - down = "[Not( VariableSystem.Exists('coa_designer_background_color') )]" - } - - button_color_selection_tab = { - name = "color1_button" - visible = "[CoatOfArmsDesignerBackgroundPanel.IsColorForNumberUsed( '(int32)1' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_background_color', '1')]" - down = "[VariableSystem.HasValue('coa_designer_background_color', '1')]" - tooltip = COA_DESIGNER_COLOR1 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)1' )]" - } - } - - button_color_selection_tab = { - name = "color2_button" - visible = "[CoatOfArmsDesignerBackgroundPanel.IsColorForNumberUsed( '(int32)2' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_background_color', '2')]" - down = "[VariableSystem.HasValue('coa_designer_background_color', '2')]" - tooltip = COA_DESIGNER_COLOR2 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)2' )]" - } - } - - button_color_selection_tab = { - name = "color3_button" - visible = "[CoatOfArmsDesignerBackgroundPanel.IsColorForNumberUsed( '(int32)3' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_background_color', '3')]" - down = "[VariableSystem.HasValue('coa_designer_background_color', '3')]" - tooltip = COA_DESIGNER_COLOR3 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)3' )]" - } - } - - button_color_selection_tab = { - name = "color4_button" - visible = "[CoatOfArmsDesignerBackgroundPanel.IsColorForNumberUsed( '(int32)4' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_background_color', '4')]" - down = "[VariableSystem.HasValue('coa_designer_background_color', '4')]" - tooltip = COA_DESIGNER_COLOR4 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)4' )]" - } - } - - button_color_selection_tab = { - name = "color5_button" - visible = "[CoatOfArmsDesignerBackgroundPanel.IsColorForNumberUsed( '(int32)5' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_background_color', '5')]" - down = "[VariableSystem.HasValue('coa_designer_background_color', '5')]" - tooltip = COA_DESIGNER_COLOR5 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)5' )]" - } - } - } - - vbox = { - name = "color_selections" - layoutpolicy_horizontal = expanding - spacing = 4 - visible = "[GreaterThan_int32( CoatOfArmsDesignerBackgroundPanel.GetNumColors, '(int32)0' )]" - - vbox_coa_designer_color_selection = { - name = "color1_selection" - visible = "[VariableSystem.HasValue('coa_designer_background_color', '1')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 20 - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)1' )]" - oncoloredited = "[CoatOfArmsDesignerBackgroundPanel.OnSelectColor( '(int32)1' )]" - oneditingfinished = "[CoatOfArmsDesignerBackgroundPanel.OnFinishColor( '(int32)1' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerBackgroundPanel.IsColorSelected( '(int32)1', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.OnSelectPaletteColor( '(int32)1', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color2_selection" - visible = "[VariableSystem.HasValue('coa_designer_background_color', '2')]" - layoutpolicy_horizontal = expanding - margin_top = 20 - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)2' )]" - oncoloredited = "[CoatOfArmsDesignerBackgroundPanel.OnSelectColor( '(int32)2' )]" - oneditingfinished = "[CoatOfArmsDesignerBackgroundPanel.OnFinishColor( '(int32)2' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerBackgroundPanel.IsColorSelected( '(int32)2', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.OnSelectPaletteColor( '(int32)2', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color3_selection" - visible = "[VariableSystem.HasValue('coa_designer_background_color', '3')]" - layoutpolicy_horizontal = expanding - margin_top = 20 - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)3' )]" - oncoloredited = "[CoatOfArmsDesignerBackgroundPanel.OnSelectColor( '(int32)3' )]" - oneditingfinished = "[CoatOfArmsDesignerBackgroundPanel.OnFinishColor( '(int32)3' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerBackgroundPanel.IsColorSelected( '(int32)3', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.OnSelectPaletteColor( '(int32)3', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color4_selection" - visible = "[VariableSystem.HasValue('coa_designer_background_color', '4')]" - layoutpolicy_horizontal = expanding - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)4' )]" - oncoloredited = "[CoatOfArmsDesignerBackgroundPanel.OnSelectColor( '(int32)4' )]" - oneditingfinished = "[CoatOfArmsDesignerBackgroundPanel.OnFinishColor( '(int32)4' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerBackgroundPanel.IsColorSelected( '(int32)4', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.OnSelectPaletteColor( '(int32)4', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color5_selection" - visible = "[VariableSystem.HasValue('coa_designer_background_color', '5')]" - layoutpolicy_horizontal = expanding - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerBackgroundPanel.GetColor( '(int32)5' )]" - oncoloredited = "[CoatOfArmsDesignerBackgroundPanel.OnSelectColor( '(int32)5' )]" - oneditingfinished = "[CoatOfArmsDesignerBackgroundPanel.OnFinishColor( '(int32)5' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerBackgroundPanel.IsColorSelected( '(int32)5', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerBackgroundPanel.OnSelectPaletteColor( '(int32)5', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - } - - vbox = { - name = "patterns" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not( VariableSystem.Exists('coa_designer_background_color') )]" - - background = { - using = Background_Area - } - - state = { - name = _show - on_start = "[CoatOfArmsDesignerBackgroundPanel.UpdatePatternPreviewColors]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - name = "patterns_scrollbox" - visible = "[CoatOfArmsDesigner.IsCustomMode]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_margins" - { - margin_left = 10 - margin_top = 10 - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datamodel = "[CoatOfArmsDesignerBackgroundPanel.GetAllPatterns]" - addcolumn = 92 - addrow = 92 - flipdirection = yes - datamodel_wrap = 5 - - item = { - widget_coa_pattern_item = {} - } - } - } - } - - text_multi = { - visible = "[Not(CoatOfArmsDesigner.IsCustomMode)]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - align = center - - text = "COA_DESIGNER_BACKGROUND_PATTERN_DISABLED_IN_ADJUSTED_MODE" - default_format = "#weak" - } - } - } - - expand = {} - } - - # Requires CoatOfArmsDesignerPattern datacontext - type widget_coa_pattern_item = widget - { - size = { 92 92 } - - coa_preview_icon = { - datacontext = "[CoatOfArmsDesignerPattern.GetPreviewCoA.GetCoA]" - parentanchor = center - size = { 84 84 } - } - - button_standard_clean = { - parentanchor = center - size = { 88 88 } - - onclick = "[CoatOfArmsDesignerPattern.OnSelect]" - down = "[CoatOfArmsDesignerPattern.IsSelected]" - downframe = 5 - downhoverframe = 5 - downpressedframe = 5 - - blockoverride "button_standard_mouseover" - { - visible = "[Not( CoatOfArmsDesignerPattern.IsSelected )]" - } - - tooltip = "[CoatOfArmsDesignerPattern.GetName]" - tooltip_visible = "[InDebugMode]" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - # Requires CoatOfArmsDesignerEmblemLayoutPanel data context - type vbox_coa_designer_emblem_layout_panel = vbox - { - name = "emblem_layout_panel" - - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - scrollbox = { - name = "emblem_layouts_scrollbox" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_margins" - { - margin_left = 10 - margin_top = 10 - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datamodel = "[CoatOfArmsDesignerEmblemLayoutPanel.GetAllLayouts]" - addcolumn = 92 - addrow = 92 - flipdirection = yes - datamodel_wrap = 5 - - item = { - widget_coa_emblem_layout = {} - } - } - } - } - } - } - } - - # Requires CoatOfArmsDesignerEmblemLayout datacontext - type widget_coa_emblem_layout = widget - { - size = { 92 92 } - - coa_preview_icon = { - datacontext = "[CoatOfArmsDesignerEmblemLayout.GetPreviewCoA.GetCoA]" - parentanchor = center - size = { 84 84 } - } - - button_standard_clean = { - parentanchor = center - size = { 88 88 } - - onclick = "[CoatOfArmsDesignerEmblemLayout.OnSelect]" - down = "[CoatOfArmsDesignerEmblemLayout.IsSelected]" - downframe = 5 - downhoverframe = 5 - downpressedframe = 5 - - blockoverride "button_standard_mouseover" - { - visible = "[Not( CoatOfArmsDesignerEmblemLayout.IsSelected )]" - } - - tooltip = "[CoatOfArmsDesignerEmblemLayout.GetName]" - tooltip_visible = "[InDebugMode]" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - # Requires CoatOfArmsDesignerEmblemInstancesPanel data context - type vbox_coa_designer_emblem_instances_panel = vbox - { - name = "emblem_instances_panel" - - vbox = { - name = "default_emblem_instances" - visible = "[Not( VariableSystem.Exists('coa_designer_emblem_detail_mode') )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "emblem_selection" - layoutpolicy_horizontal = expanding - datacontext = "[CoatOfArmsDesignerEmblemInstancesPanel.AccessPagedEmblemInstanceData]" - - minimumsize = { 0 152 } - - hbox = { - margin_right = 10 - - button_standard = { - text = "COA_DESIGNER_EMBLEM_INSTANCES_ALL_BUTTON" - size = { 60 60 } - - button_ignore = none - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.SetAllSelectedEmblems( '(bool)yes' )]" - onrightclick = "[CoatOfArmsDesignerEmblemInstancesPanel.SetAllSelectedEmblems( '(bool)no' )]" - - tooltip = "COA_DESIGNER_EMBLEM_INSTANCE_SELECT_ALL" - using = tooltip_ne - } - } - - hbox = { - layoutpolicy_vertical = expanding - margin_right = 7 - margin_left = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - button_select_arrow = { - size = { 20 30 } - mirror = horizontal - enabled = "[PagedContainerData.CanShowPreviousPage]" - onclick = "[PagedContainerData.ShowPreviousPage]" - } - } - - flowcontainer = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - fixedgridbox = { - name = "emblem_instances" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datamodel = "[PagedContainerData.DataModelPage( CoatOfArmsDesignerEmblemInstancesPanel.GetAllEmblemInstances )]" - addcolumn = 66 - addrow = 66 - flipdirection = yes - datamodel_wrap = 4 # Half of NCoatOfArmsDesigner::NUM_EMBLEM_PER_GROUP so we have two lines per page - - item = { - widget_coa_emblem_instance = { - blockoverride "coa_emblem_instance_size" - { - size = { 60 60 } - } - } - } - } - } - - hbox = { - layoutpolicy_vertical = expanding - margin_right = 5 - margin_left = 7 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - button_select_arrow = { - size = { 20 30 } - enabled = "[PagedContainerData.CanShowNextPage( GetDataModelSize( CoatOfArmsDesignerEmblemInstancesPanel.GetAllEmblemInstances ) )]" - onclick = "[PagedContainerData.ShowNextPage( GetDataModelSize( CoatOfArmsDesignerEmblemInstancesPanel.GetAllEmblemInstances ) )]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_edit_text = { - name = "toggle_detail_edit" - tooltip = "COA_DESIGNER_EMBLEM_INSTANCE_DETAIL_TOGGLE_TT" - size = { 30 30 } - - visible = "[LessThan_int32( CoatOfArmsDesignerEmblemInstancesPanel.GetDetailEditIndex, '(int32)0' )]" - onclick = "[VariableSystem.Toggle('coa_designer_emblem_detail_mode')]" - checked = "[VariableSystem.Exists('coa_designer_emblem_detail_mode')]" - } - } - - expand = {} - - text_single = { - text = COA_DESIGNER_EMBLEM_INSTANCES_PAGE - min_width = 60 - margin_left = 5 - align = left - } - - expand = { - margin_bottom = 30 - } - } - } - - vbox_emblem_basic_edit = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - vbox = { - name = "detail_emblem_instances" - visible = "[VariableSystem.Exists('coa_designer_emblem_detail_mode')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - name = "detail_emblem_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[LessThan_int32( CoatOfArmsDesignerEmblemInstancesPanel.GetDetailEditIndex, '(int32)0' )]" - - hbox = { - button_standard = { - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.AddEmblemInstance]" - size = { 475 30 } - - button_icon_highlight = { - - block "highlight_icon_size" - { - size = { 25 25 } - } - - parentanchor = center - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - - tooltip = "COA_DESIGNER_DETAIL_ADD_INSTANCE_TT" - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_top = 10 - - background = { - using = Background_Area - margin_top = -10 - } - - scrollbox = { - name = "emblem_instances_scrollbox" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_margins" - { - margin = { 5 5 } - } - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[CoatOfArmsDesignerEmblemInstancesPanel.GetAllEmblemInstances]" - - item = { - widget_coa_emblem_detail_instance = {} - } - } - } - } - } - - hbox = { - margin_top = 15 - - button_standard_back = { - text = "BACK_LABEL" - onclick = "[VariableSystem.Toggle('coa_designer_emblem_detail_mode')]" - } - } - } - - vbox = { - name = "detail_edit_scrollbars" - visible = "[GreaterThanOrEqualTo_int32( CoatOfArmsDesignerEmblemInstancesPanel.GetDetailEditIndex, '(int32)0' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 1 - - using = Animation_Tab_Switch - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 5 0 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - margin = { 0 5 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - button_back = { - name = "back_to_detail_edit" - size = { 25 25 } - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.ClearDetailEdit]" - - tooltip = "COA_DESIGNER_DETAIL_EDIT_BACK_TT" - using = tooltip_ws - } - - coa_preview_icon = { - datacontext = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailEditCoAPreview.GetCoA]" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - - hbox_scrollbar_coa_label = { - name = "scrollbar_position_axis_x" - - blockoverride "label" - { - text = "COA_DESIGNER_POSITION_X" - } - - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailPositionAxisX( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailPositionAxisX( PdxGuiWidget.Self )]" - value = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailPositionAxisX]" - } - } - - hbox_scrollbar_coa_label = { - name = "scrollbar_position_axis_y" - - blockoverride "label" - { - text = "COA_DESIGNER_POSITION_Y" - } - - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailPositionAxisY( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailPositionAxisY( PdxGuiWidget.Self )]" - value = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailPositionAxisY]" - } - } - - vbox = { - name = "detail_scale_scrollbars" - layoutpolicy_horizontal = expanding - spacing = 7 - - hbox_scrollbar_coa_label = { - name = "scrollbar_scale_axis_x" - visible = "[Not( CoatOfArmsDesignerEmblemInstancesPanel.ShouldMatchEmblemDetailScale )]" - layoutpolicy_horizontal = expanding - - blockoverride "label" - { - text = "COA_DESIGNER_SCALE_X" - } - - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailScaleAxisX( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailScaleAxisX( PdxGuiWidget.Self )]" - value = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailScaleAxisX]" - } - } - - hbox_scrollbar_coa_label = { - name = "scrollbar_scale_axis_y" - visible = "[Not( CoatOfArmsDesignerEmblemInstancesPanel.ShouldMatchEmblemDetailScale )]" - - blockoverride "label" - { - text = "COA_DESIGNER_SCALE_Y" - } - - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailScaleAxisY( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailScaleAxisY( PdxGuiWidget.Self )]" - value = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailScaleAxisY]" - } - } - - hbox_scrollbar_coa_label = { - name = "scrollbar_scale_combined" - visible = "[CoatOfArmsDesignerEmblemInstancesPanel.ShouldMatchEmblemDetailScale]" - - blockoverride "label" - { - text = "COA_DESIGNER_SCALE_COMBINED" - } - - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailScaleCombined( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailScaleCombined( PdxGuiWidget.Self )]" - value = "[CoatOfArmsDesignerEmblemInstancesPanel.GetDetailScaleAxisX]" - } - } - } - - hbox_scrollbar_coa_label = { - name = "scrollbar_rotation" - blockoverride "label" - { - text = "COA_DESIGNER_ROTATION" - } - blockoverride "coa_scrollbar_steps" - { - min = 0 - max = 360 - step = 1 - } - blockoverride "coa_scrollbar_values" - { - onvaluechanged = "[CoatOfArmsDesignerEmblemInstancesPanel.EditDetailRotation( PdxGuiWidget.Self )]" - onchangefinish = "[CoatOfArmsDesignerEmblemInstancesPanel.FinishEditDetailRotation( PdxGuiWidget.Self )]" - value = "[IntToFloat( CoatOfArmsDesignerEmblemInstancesPanel.GetDetailRotation )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - button_checkbox_label = { - name = "toggle_flip_emblem_x_axis" - tooltip = "COA_DESIGNER_FLIP_EMBLEM_X_AXIS_TT" - size = { 25 25 } - using = tooltip_se - - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.ToggleFlipEmblemXAxisDetail]" - - blockoverride "checkbox" - { - checked = "[CoatOfArmsDesignerEmblemInstancesPanel.ShouldFlipEmblemXAxisDetail]" - } - - blockoverride "text" - { - text = "COA_DESIGNER_FLIP_EMBLEM_X_AXIS_CHECKBOX_LABEL" - max_width = 120 - } - } - - button_checkbox_label = { - name = "toggle_flip_emblem_y_axis" - tooltip = "COA_DESIGNER_FLIP_EMBLEM_Y_AXIS_TT" - size = { 25 25 } - using = tooltip_se - - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.ToggleFlipEmblemYAxisDetail]" - - blockoverride "checkbox" - { - checked = "[CoatOfArmsDesignerEmblemInstancesPanel.ShouldFlipEmblemYAxisDetail]" - } - - blockoverride "text" - { - text = "COA_DESIGNER_FLIP_EMBLEM_Y_AXIS_CHECKBOX_LABEL" - max_width = 120 - - } - } - - button_checkbox_label = { - name = "toggle_match_scale" - tooltip = "COA_DESIGNER_SCALE_COMBINED_TOGGLE_TT" - size = { 25 25 } - using = tooltip_se - - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.ToggleMatchEmblemDetailScale]" - - blockoverride "checkbox" - { - checked = "[CoatOfArmsDesignerEmblemInstancesPanel.ShouldMatchEmblemDetailScale]" - } - - blockoverride "text" - { - text = "COA_DESIGNER_SCALE_COMBINED_CHECKBOX_LABEL" - max_width = 120 - } - } - expand = {} - } - } - - vbox_emblem_basic_edit = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - - expand = {} - } - - type vbox_emblem_basic_edit = vbox - { - vbox = { - visible = "[GreaterThan_int32( CoatOfArmsDesignerEmblemInstancesPanel.GetMaxNumColorsForSelected, '(int32)0' )]" - layoutpolicy_horizontal = expanding - margin_top = 10 - - using = Animation_Tab_Switch - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - name = "color_button_tabs" - layoutpolicy_horizontal = expanding - - spacing = 5 - margin = { 5 10 } - - button_standard = { - name = "COA_DESIGNER_EMBLEM_INSTANCES_PANEL_HEADER" - size = { 100 52 } - - text_single = { - text = "COA_DESIGNER_EMBLEM_INSTANCES_PANEL_HEADER" - align = center|nobaseline - parentanchor = center - } - - onclick = "[VariableSystem.Clear('coa_designer_emblem_color')]" - down = "[Not( VariableSystem.Exists('coa_designer_emblem_color') )]" - } - - button_color_selection_tab = { - name = "color1_button" - visible = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorForNumberUsed( '(int32)1' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_emblem_color', '1')]" - down = "[VariableSystem.HasValue('coa_designer_emblem_color', '1')]" - tooltip = COA_DESIGNER_COLOR1 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)1' )]" - } - } - - button_color_selection_tab = { - name = "color2_button" - visible = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorForNumberUsed( '(int32)2' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_emblem_color', '2')]" - down = "[VariableSystem.HasValue('coa_designer_emblem_color', '2')]" - tooltip = COA_DESIGNER_COLOR2 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)2' )]" - } - } - - button_color_selection_tab = { - name = "color3_button" - visible = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorForNumberUsed( '(int32)3' )]" - - onclick = "[VariableSystem.SetOrToggle('coa_designer_emblem_color', '3')]" - down = "[VariableSystem.HasValue('coa_designer_emblem_color', '3')]" - tooltip = COA_DESIGNER_COLOR3 - - blockoverride "button_color" - { - tintcolor = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)3' )]" - } - } - - expand = {} - } - } - - vbox = { - visible = "[VariableSystem.Exists('coa_designer_emblem_color')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - - blockoverride "scrollbox_margins" { - margin = { 0 5 } - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "color_selections" - layoutpolicy_horizontal = expanding - spacing = 4 - margin_top = 15 - - using = Animation_Tab_Switch - - vbox_coa_designer_color_selection = { - name = "color1_selection" - visible = "[VariableSystem.HasValue('coa_designer_emblem_color', '1')]" - layoutpolicy_horizontal = expanding - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)1' )]" - oncoloredited = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectColor( '(int32)1' )]" - oneditingfinished = "[CoatOfArmsDesignerEmblemInstancesPanel.OnFinishColor( '(int32)1' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorSelected( '(int32)1', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectPaletteColor( '(int32)1', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color2_selection" - visible = "[VariableSystem.HasValue('coa_designer_emblem_color', '2')]" - layoutpolicy_horizontal = expanding - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)2' )]" - oncoloredited = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectColor( '(int32)2' )]" - oneditingfinished = "[CoatOfArmsDesignerEmblemInstancesPanel.OnFinishColor( '(int32)2' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorSelected( '(int32)2', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectPaletteColor( '(int32)2', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - - vbox_coa_designer_color_selection = { - name = "color3_selection" - visible = "[VariableSystem.HasValue('coa_designer_emblem_color', '3')]" - layoutpolicy_horizontal = expanding - - blockoverride "coa_color_picker" - { - color = "[CoatOfArmsDesignerEmblemInstancesPanel.GetColor( '(int32)3' )]" - oncoloredited = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectColor( '(int32)3' )]" - oneditingfinished = "[CoatOfArmsDesignerEmblemInstancesPanel.OnFinishColor( '(int32)3' )]" - } - blockoverride "palette_item_button" - { - down = "[CoatOfArmsDesignerEmblemInstancesPanel.IsColorSelected( '(int32)3', CoatOfArmsDesignerPaletteColor.GetValue )]" - onclick = "[CoatOfArmsDesignerEmblemInstancesPanel.OnSelectPaletteColor( '(int32)3', CoatOfArmsDesignerPaletteColor.Self )]" - } - } - } - } - } - } - - vbox = { - name = "emblem_textures" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 2 - - visible = "[Not( VariableSystem.Exists('coa_designer_emblem_color') )]" - - state = { - name = _show - on_start = "[CoatOfArmsDesignerEmblemInstancesPanel.UpdateTexturePreviewColors]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - dropdown_menu_standard = { - name = "emblem_texture_categories" - - blockoverride "dropdown_properties" - { - datamodel = "[GetCoatOfArmsDesignerEmblemTextureCategories]" - - onselectionchanged = "[CoatOfArmsDesignerEmblemInstancesPanel.SelectEmblemTextureCategory]" - selectedindex = "[CoatOfArmsDesignerEmblemInstancesPanel.GetSelectedEmblemTextureCategoryIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( Concatenate( 'COA_DESIGNER_CATEGORY_', CString.GetString ) )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( Concatenate( 'COA_DESIGNER_CATEGORY_', CString.GetString ) )]" - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - scrollbox = { - name = "emblem_textures_scrollbox" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_margins" - { - margin = { 5 5 } - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datamodel = "[CoatOfArmsDesignerEmblemInstancesPanel.GetEmblemTextures]" - addcolumn = 92 - addrow = 92 - flipdirection = yes - datamodel_wrap = 5 - - item = { - widget_coa_emblem_texture = {} - } - } - } - } - } - } - } - - # Requires CoatOfArmsDesignerEmblemInstance datacontext - type widget_coa_emblem_instance = widget - { - size = { 66 66 } - - coa_preview_icon = { - datacontext = "[CoatOfArmsDesignerEmblemInstance.GetPreviewCoA.GetCoA]" - parentanchor = center - - blockoverride "coa_preview_size" - { - size = { 58 58 } - } - } - - button_standard_clean = { - parentanchor = center - size = { 62 62 } - - down = "[CoatOfArmsDesignerEmblemInstance.IsSelected]" - downframe = 5 - downhoverframe = 5 - downpressedframe = 5 - - blockoverride "button_standard_mouseover" - { - visible = "[Not( CoatOfArmsDesignerEmblemInstance.IsSelected )]" - } - - click_modifiers = { - ondefault = "[CoatOfArmsDesignerEmblemInstance.OnSelect]" - onshift = "[CoatOfArmsDesignerEmblemInstance.OnSelectMulti]" - } - - tooltip = "COA_DESIGNER_EMBLEM_INSTANCE_SELECTION_TT" - using = tooltip_ne - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - # Requires CoatOfArmsDesignerEmblemInstance datacontext - type widget_coa_emblem_detail_instance = widget - { - size = { 475 112 } - - widget = { - size = { 465 108 } - position = { 2 2 } - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - drag_drop_coat_of_arms_icon = { - datacontext = "[CoatOfArmsDesignerEmblemInstance.GetPreviewCoA.GetCoA]" - parentanchor = left|vcenter - position = { 15 0 } - - tooltip = "COA_DESIGNER_DETAIL_INSTANCE_ICON_TT" - using = tooltip_ws - - using = coa_preview_icon_data - - drag_drop_id = "coa_designer_emblem_entry" - drag_drop_args = "[CoatOfArmsDesignerEmblemInstance.GetIndexString]" - } - - coa_emblem_instance_layer_drop_target = { - drag_drop_id = "coa_designer_emblem_layer_destination_top" - parentanchor = top - } - - coa_emblem_instance_layer_drop_target = { - drag_drop_id = "coa_designer_emblem_layer_destination_bottom" - parentanchor = bottom - } - - button_edit_text = { - parentanchor = vcenter|right - size = { 30 30 } - position = { -15 0 } - - button_ignore = none - down = "[CoatOfArmsDesignerEmblemInstance.IsSelected]" - - onclick = "[CoatOfArmsDesignerEmblemInstance.OnSelectForDetailEdit]" - onrightclick = "[CoatOfArmsDesignerEmblemInstancesPanel.RemoveEmblemInstance( CoatOfArmsDesignerEmblemInstance.AccessSelf )]" - - tooltip = "COA_DESIGNER_DETAIL_INSTANCE_TT" - } - } - } - - type coa_emblem_instance_layer_drop_target = drag_drop_target - { - drag_drop_args = "[CoatOfArmsDesignerEmblemInstance.GetIndexString]" - - tooltip = COA_DESIGNER_DETAIL_INSTANCE_ICON_TARGET_TT - using = tooltip_ws - - size = { 100% 10 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/colors/gold_darker.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - # Requires CoatOfArmsDesignerEmblemTexture datacontext - type widget_coa_emblem_texture = widget - { - size = { 92 92 } - - coa_preview_icon = { - datacontext = "[CoatOfArmsDesignerEmblemTexture.GetPreviewCoA.GetCoA]" - parentanchor = center - size = { 84 84 } - } - - button_standard_clean = { - parentanchor = center - size = { 88 88 } - - down = "[CoatOfArmsDesignerEmblemTexture.IsSelected]" - onclick = "[CoatOfArmsDesignerEmblemTexture.OnSelect]" - downframe = 5 - downhoverframe = 5 - downpressedframe = 5 - - blockoverride "button_standard_mouseover" - { - visible = "[Not( CoatOfArmsDesignerEmblemTexture.IsSelected )]" - } - - tooltip = "[CoatOfArmsDesignerEmblemTexture.GetName]" - tooltip_visible = "[InDebugMode]" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - type button_color_selection_tab = button_standard_clean - { - size = { 52 52 } - using = tooltip_ne - - icon = { - parentanchor = left|vcenter - position = { 6 0 } - size = { 40 40 } - - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - block "button_color" {} - } - } - - type vbox_coa_designer_color_selection = vbox - { - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin_top = 20 - } - - fixedgridbox = { - addcolumn = 50 - addrow = 50 - datamodel_wrap = 7 - flipdirection = yes - - datamodel = "[CoatOfArmsDesigner.GetAllPaletteColors]" - - item = { - - button_standard_clean = { - size = { 50 50 } - - block "palette_item_button" {} - - icon = { - parentanchor = center - size = { 44 44 } - - texture = "gfx/interface/colors/white.dds" - tintcolor = "[CoatOfArmsDesignerPaletteColor.GetValue]" - using = Mask_Rough_Edges - - tooltip = "[CoatOfArmsDesignerPaletteColor.GetName]" - tooltip_visible = "[InDebugMode]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - margin_right = 30 - margin_left = 30 - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - text_multi = { - autoresize = yes - max_width = 410 - margin_top = 10 - margin_bottom = 20 - default_format = "#weak" - text = "COA_DESIGNER_COLORS_DESCRIPTION" - } - } - - vbox_expanded_color_picker = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - } - } - - type vbox_expanded_color_picker = vbox { - vbox = { - name = "expand_colorpicker" - layoutpolicy_horizontal = expanding - - hbox_colorpicker_header_button = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_coa_color_picker' )]" - } - - blockoverride "button_expand" - { - frame = "[Select_int32(GetVariableSystem.Exists( 'expand_coa_color_picker'), '(int32)2', '(int32)1')]" - } - - blockoverride "text" - { - text = "COA_DESIGNER_COLOR_PICKER_EXPAND_HEADER" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[GetVariableSystem.Exists( 'expand_coa_color_picker' )]" - - using = Animation_Tab_Switch - - vbox = { - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - colorpicker_simple = { - block "coa_color_picker" {} - } - } - } - } - } - - type hbox_colorpicker_header_button = hbox { - margin = { 10 5 } - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - button_normal = { - layoutpolicy_horizontal = expanding - size = { 0 25 } - - block "onclick" {} - - hbox = { - ignoreinvisible = yes - spacing = 5 - - button_expand = { - block "button_expand" {} - block "onclick" {} - } - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline - alwaystransparent = yes - - block "text" {} - } - } - } - } - - type hbox_scrollbar_coa_label = hbox - { - layoutpolicy_horizontal = expanding - - text_single = { - name = "coa_scrollbar_label" - block "label" - { - raw_text = "#D REPLACE ME#!" - } - } - - expand = {} - - scrollbar_value_slider = { - block "coa_scrollbar_steps" - { - min = 0 - max = 1 - step = 0.01 - } - - block "coa_scrollbar_values" - { - } - } - } - - type coa_preview_icon = coat_of_arms_icon - { - using = coa_preview_icon_data - } -} - -template coa_preview_icon_data -{ - coat_of_arms = "[CoatOfArms.GetTexture('(int32)80','(int32)80')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)80','(int32)80')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/designer_mask.dds" - - block "coa_preview_size" - { - size = { 80 80 } - } -} - -template CoatOfArmsDesignerAnimationResetState -{ - on_start = "[GetVariableSystem.Set( 'coa_designer_page', 'start' )]" - - on_start = "[GetVariableSystem.Clear('coa_designer_background_color')]" - on_start = "[GetVariableSystem.Clear('coa_designer_emblem_color')]" - on_start = "[GetVariableSystem.Clear('coa_designer_emblem_detail_mode')]" -} - -template CoatOfArmsDesignerClearEditState -{ - onclick = "[VariableSystem.Clear('coa_designer_background_color')]" - onclick = "[VariableSystem.Clear('coa_designer_emblem_color')]" - onclick = "[VariableSystem.Clear('coa_designer_emblem_detail_mode')]" - onclick = "[CoatOfArmsDesigner.GetEmblemInstancesPanel.ClearDetailEdit]" -} diff --git a/N3OW/gui/shared/coat_of_arms.gui b/N3OW/gui/shared/coat_of_arms.gui deleted file mode 100644 index 9baad010..00000000 --- a/N3OW/gui/shared/coat_of_arms.gui +++ /dev/null @@ -1,2870 +0,0 @@ -###################################################### -#################### COAT OF ARMS #################### -###################################################### - -# Standard Realm Coa of Arms types - -@overlay_alpha = 0.4 - -template coat_of_arms_icon_data -{ - gfxtype = coatofarmsgfx - shaderfile = "gfx/FX/gui_coatofarms.shader" - alwaystransparent = yes - allow_outside = yes -} - -types CoATypes -{ - type coat_of_arms_icon = icon { - using = coat_of_arms_icon_data - } - - type drag_drop_coat_of_arms_icon = drag_drop_icon { - using = coat_of_arms_icon_data - alwaystransparent = no - drag_drop_base_type = "coat_of_arms_icon" - } - - #################################### - ########### REALM SHIELDS ########## - #################################### - - ## Tiny Realm CoA - type coa_realm_tiny_crown = coa_realm_tiny { - blockoverride "crown" { - visible = "[And(And(Not(Character.GetPrimaryTitle.IsMercenaryCompany), Not(Character.GetPrimaryTitle.IsHolyOrder)), Not(Character.GetGovernment.IsType('landless_adventurer_government')))]" - } - } - - type coa_realm_tiny = button_group { - using = CoA_Realm_Defaults - - block "government_datacontext" - { - datacontext = "[Character.GetGovernment]" - } - - widget = { - parentanchor = hcenter - position = { 0 -24 } - icon = { - name = "adventurer_top_decor" - visible = "[GovernmentType.IsType('landless_adventurer_government')]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_28.dds" - } - - icon = { - name = "mercenary" - visible = "[Character.GetPrimaryTitle.IsMercenaryCompany]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_28.dds" - } - - icon = { - name = "holy_order" - visible = "[Character.GetPrimaryTitle.IsHolyOrder]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_28.dds" - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = 2 - - icon = { - name = "crown" - texture = "gfx/interface/coat_of_arms/crown_strip_28.dds" - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - framesize = { 32 22 } - - block "crown" { - visible = no - } - } - - widget = { - visible = "[Character.HasLandedTitles]" - size = { 32 32 } - - coa_realm_shadow = { - texture = "[GovernmentType.GetRealmFrameShadow('(int32)28')]" - size = { 32 32 } - framesize = { 32 32 } - - using = CoA_Realm_Hover_Glow - } - - coat_of_arms_icon = { - parentanchor = center - size = { 32 32 } - coat_of_arms = "[Character.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Character.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "[GovernmentType.GetRealmMask]" - coat_of_arms_offset = "[GovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[GovernmentType.GetRealmMaskScale]" - - block "coa_icon_additions" {} - - modify_texture = { - texture = "[GovernmentType.GetRealmMask]" - blend_mode = overlay - } - - coa_realm_overlay = { - texture = "[GovernmentType.GetRealmFrame('(int32)28')]" - size = { 32 32 } - framesize = { 32 32 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_28.dds" - position = { 0 -6 } - size = { 32 32 } - framesize = { 32 32 } - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - } - } - } - } - } - - - ## Small Realm CoA - type coa_realm_small_crown = coa_realm_small { - blockoverride "crown" { - visible = "[And(And(Not(Character.GetPrimaryTitle.IsMercenaryCompany), Not(Character.GetPrimaryTitle.IsHolyOrder)), Not(Character.GetGovernment.IsType('landless_adventurer_government')))]" - } - } - - type coa_realm_small = button_group { - using = CoA_Realm_Defaults - - widget = { - parentanchor = hcenter - position = { 0 -34 } - - icon = { - name = "adventurer_top_decor" - visible = "[Character.GetGovernment.IsType('landless_adventurer_government')]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_44.dds" - } - - icon = { - name = "mercenary" - visible = "[Character.GetPrimaryTitle.IsMercenaryCompany]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_44.dds" - } - - icon = { - name = "holy_order" - visible = "[Character.GetPrimaryTitle.IsHolyOrder]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_44.dds" - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = 3 - - block "government_datacontext" - { - datacontext = "[Character.GetGovernment]" - } - - icon = { - name = "crown" - parentanchor = hcenter - framesize = { 52 32 } - texture = "gfx/interface/coat_of_arms/crown_strip_44.dds" - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - - block "crown" { - visible = no - } - } - - widget = { - size = { 52 52 } - - coa_realm_shadow = { - texture = "[GovernmentType.GetRealmFrameShadow('(int32)44')]" - size = { 52 52 } - framesize = { 52 52 } - using = CoA_Realm_Hover_Glow - } - visible = "[Character.HasLandedTitles]" - - coat_of_arms_icon = { - parentanchor = center - size = { 52 52 } - coat_of_arms = "[Character.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Character.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[GovernmentType.GetRealmMask]" - coat_of_arms_offset = "[GovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[GovernmentType.GetRealmMaskScale]" - - block "coa_icon_additions" {} - - modify_texture = { - texture = "[GovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[GovernmentType.GetRealmFrame('(int32)44')]" - size = { 52 52 } - framesize = { 52 52 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_44.dds" - position = { 0 -7 } - size = { 52 52 } - framesize = { 52 52 } - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - } - } - } - } - } - - - ## Medium Realm CoA - type coa_realm_medium_crown = coa_realm_medium { - blockoverride "crown" { - visible = "[And(And(Not(Character.GetPrimaryTitle.IsMercenaryCompany), Not(Character.GetPrimaryTitle.IsHolyOrder)), Not(Character.GetGovernment.IsType('landless_adventurer_government')))]" - } - } - - type coa_realm_medium = button_group { - using = CoA_Realm_Defaults - - block "government_datacontext" - { - datacontext = "[Character.GetGovernment]" - } - - flowcontainer = { - direction = vertical - spacing = 3 - - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_62.dds" - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - framesize = { 64 40 } - - block "crown" { - visible = no - } - } - - icon = { - name = "adventurer_top_decor" - visible = "[GovernmentType.IsType('landless_adventurer_government')]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_62.dds" - } - - icon = { - name = "mercenary" - visible = "[Character.GetPrimaryTitle.IsMercenaryCompany]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_62.dds" - } - - icon = { - name = "holy_order" - visible = "[Character.GetPrimaryTitle.IsHolyOrder]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_62.dds" - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - texture = "[GovernmentType.GetRealmFrameShadow('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - - using = CoA_Realm_Hover_Glow - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - - block "coa_icon_additions" {} - - block "coat_of_arms" - { - coat_of_arms = "[Character.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Character.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)124','(int32)124')]" - } - - coat_of_arms_offset = "[GovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[GovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[GovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[GovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - position = { 0 -9 } - size = { 64 64 } - framesize = { 64 64 } - } - } - } - } - } - - - ## Big Realm CoA - type coa_realm_big_crown = coa_realm_big { - blockoverride "crown" { - visible = "[And(And(Not(Character.GetPrimaryTitle.IsMercenaryCompany), Not(Character.GetPrimaryTitle.IsHolyOrder)), Not(Character.GetGovernment.IsType('landless_adventurer_government')))]" - } - } - - type coa_realm_big = button_group { - using = CoA_Realm_Defaults - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = 4 - - block "government_datacontext" - { - datacontext = "[Character.GetGovernment]" - } - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_86.dds" - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - framesize = { 96 60 } - - block "crown" { - visible = no - } - } - - icon = { - name = "adventurer_top_decor" - visible = "[GovernmentType.IsType('landless_adventurer_government')]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_86.dds" - } - - icon = { - name = "mercenary" - visible = "[Character.GetPrimaryTitle.IsMercenaryCompany]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_86.dds" - } - - icon = { - name = "holy_order" - visible = "[Character.GetPrimaryTitle.IsHolyOrder]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_86.dds" - } - - widget = { - size = { 96 96 } - - coa_realm_shadow = { - texture = "[GovernmentType.GetRealmFrameShadow('(int32)86')]" - size = { 96 96 } - framesize = { 96 96 } - - using = CoA_Realm_Hover_Glow - } - - coat_of_arms_icon = { - parentanchor = center - size = { 96 96 } - - block "coa_icon_additions" {} - - block "coat_of_arms" - { - coat_of_arms = "[Character.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[Character.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)172','(int32)172')]" - } - - coat_of_arms_mask = "[GovernmentType.GetRealmMask]" - coat_of_arms_offset = "[GovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[GovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[GovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[GovernmentType.GetRealmFrame('(int32)86')]" - size = { 96 96 } - framesize = { 96 96 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_86.dds" - position = { 0 -14 } - size = { 96 96 } - framesize = { 96 94 } - } - } - } - } - } - - ## Huge Realm CoA - type coa_realm_huge_crown = coa_realm_huge { - blockoverride "crown" { - visible = "[And(And(Not(Character.GetPrimaryTitle.IsMercenaryCompany), Not(Character.GetPrimaryTitle.IsHolyOrder)), Not(Character.GetGovernment.IsType('landless_adventurer_government')))]" - } - } - - type coa_realm_huge = button_group { - using = CoA_Realm_Defaults - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = 2 - - block "government_datacontext" - { - datacontext = "[Character.GetGovernment]" - } - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - framesize = { 128 80 } - - block "crown" { - visible = no - } - } - - icon = { - name = "adventurer_top_decor" - visible = "[GovernmentType.IsType('landless_adventurer_government')]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_115.dds" - } - - icon = { - name = "mercenary" - visible = "[Character.GetPrimaryTitle.IsMercenaryCompany]" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_115.dds" - } - - icon = { - name = "holy_order" - visible = "[Character.GetPrimaryTitle.IsHolyOrder]" - visible_at_creation = no - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_115.dds" - } - - widget = { - parentanchor = hcenter - size = { 128 128 } - - coa_realm_shadow = { - texture = "[GovernmentType.GetRealmFrameShadow('(int32)115')]" - size = { 128 128 } - framesize = { 128 128 } - - using = CoA_Realm_Hover_Glow - } - - coat_of_arms_icon = { - parentanchor = center - size = { 128 128 } - coat_of_arms = "[Character.GetPrimaryTitle.GetTitleCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[Character.GetPrimaryTitle.GetTitleCoA.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "[GovernmentType.GetRealmMask]" - coat_of_arms_offset = "[GovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[GovernmentType.GetRealmMaskScale]" - - block "coa_icon_additions" {} - - modify_texture = { - texture = "[GovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[GovernmentType.GetRealmFrame('(int32)115')]" - size = { 128 128 } - framesize = { 128 128 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_115.dds" - position = { 0 -14 } - size = { 128 128 } - framesize = { 128 128 } - } - } - } - } - } - - # The frame around the Realm CoA texture - type coa_realm_overlay = highlight_icon { - name = "coa_overlay" - parentanchor = center - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - texture = "[Character.GetGovernment.GetRealmFrame('(int32)230')]" - size = { 128 128 } - framesize = { 128 128 } - } - - type coa_realm_shadow = highlight_icon { - name = "coa_shadow" - parentanchor = center - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - texture = "[Character.GetGovernment.GetRealmFrameShadow('(int32)230')]" - size = { 128 128 } - framesize = { 128 128 } - } - - type coa_realm_topframe = highlight_icon { - name = "coa_topframe" - parentanchor = center - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - texture ="gfx/interface/coat_of_arms/topframe_115.dds" - size = { 128 128 } - framesize = { 128 128 } - } - - #################################### - ############## TITLES ############## - #################################### - - # Standard Ttile Coa of Arms types - - ## Tiny Title CoA - type coa_title_tiny_crown = coa_title_tiny { - blockoverride "crown" {} - } - - type coa_title_tiny = button_group { - using = CoA_Title_Defaults - - flowcontainer = { - direction = vertical - position = { 0 -10 } - spacing = -4 - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_28.dds" - frame = "[Title.GetTierFrame]" - framesize = { 32 22 } - - block "crown" { - visible = no - } - } - - widget = { - parentanchor = hcenter - size = { 36 36 } - - coat_of_arms_icon = { - parentanchor = center - size = { 28 28 } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - using = CoA_Title_Hover_Glow - - block "coa_icon" {} - - coa_title_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_28.dds" - size = { 36 36 } - } - - coa_title_frame_no_holder = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_no_holder_28.dds" - size = { 36 36 } - } - } - } - } - } - - ## Small Title CoA - type coa_title_small_crown = coa_title_small { - blockoverride "crown" {} - } - - # type coa_title_small = coa_title_tiny {} - - type coa_title_small = button_group { - using = CoA_Title_Defaults - - flowcontainer = { - direction = vertical - spacing = -3 - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_44.dds" - frame = "[Title.GetTierFrame]" - framesize = { 52 32 } - - block "crown" { - visible = no - } - } - - widget = { - parentanchor = hcenter - size = { 52 52 } - - coat_of_arms_icon = { - parentanchor = center - size = { 44 44 } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - using = CoA_Title_Hover_Glow - - coa_title_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_44.dds" - size = { 52 52 } - } - - coa_title_frame_no_holder = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_no_holder_44.dds" - size = { 56 56 } - } - } - } - } - } - - ## Medium Title CoA - type coa_title_medium_crown = coa_title_medium { - blockoverride "crown" {} - } - - type coa_title_medium = button_group { - using = CoA_Title_Defaults - - flowcontainer = { - direction = vertical - spacing = -3 - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_62.dds" - frame = "[Title.GetTierFrame]" - framesize = { 64 40 } - - block "crown" { - visible = no - } - } - - widget = { - parentanchor = hcenter - size = { 72 72 } - - coat_of_arms_icon = { - parentanchor = center - size = { 62 62 } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - using = CoA_Title_Hover_Glow - - coa_title_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_62.dds" - size = { 72 72 } - } - - coa_title_frame_no_holder = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_no_holder_62.dds" - size = { 80 80 } - } - } - } - } - } - - ## Big Title CoA - type coa_title_big_crown = coa_title_big { - blockoverride "crown" {} - } - - type coa_title_big = button_group { - using = CoA_Title_Defaults - - flowcontainer = { - direction = vertical - spacing = -3 - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - frame = "[Title.GetTierFrame]" - framesize = { 128 80 } - - block "crown" { - visible = no - } - } - - widget = { - parentanchor = hcenter - size = { 96 96 } - - coat_of_arms_icon = { - parentanchor = center - size = { 86 86 } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)172','(int32)172')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - using = CoA_Title_Hover_Glow - - coa_title_frame = { - texture = "gfx/interface/coat_of_arms/title_86.dds" - size = { 96 96 } - } - - coa_title_frame_no_holder = { - texture = "gfx/interface/coat_of_arms/title_no_holder_86.dds" - size = { 104 104 } - } - } - } - } - } - - ## The frames around the Title CoA texture - type coa_title_frame = highlight_icon { - name = "coa_title_frame" - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_86.dds" - } - - type coa_title_frame_no_holder = highlight_icon { - name = "coa_title_frame_noholder" - visible = "[Not(Title.HasHolder)]" - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_no_holder_86.dds" - } - - #################################### - ############## DYNASTY ############# - #################################### - - type coa_lowborn_icon = vbox - { - icon = { - block "icon_size" - { - size = { 62 62 } - } - texture = "gfx/interface/coat_of_arms/lowborn.dds" - tooltip = "[lowborn|E]" - } - } - - type coa_dynasty_widget = button_group - { - visible = "[Dynasty.IsValid]" - } - - type coa_dynasty_lowborn_widget = widget - { - visible = "[Not( Dynasty.IsValid )]" - coa_lowborn_icon = {} - } - - type coa_dynasty_tiny = widget - { - size = { 48 48 } - - coa_dynasty_lowborn_widget = { - parentanchor = center - size = { 40 40 } - - blockoverride "icon_size" - { - size = { 28 28 } - } - } - - coa_dynasty_widget = { - size = { 40 40 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coat_of_arms_icon = { - parentanchor = center - size = { 28 28 } - coat_of_arms = "[Dynasty.GetDynastyCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Dynasty.GetDynastyCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "[Dynasty.GetCulture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Dynasty.GetCulture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Dynasty.GetCulture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - size = { 48 48 } - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - } - } - } - - type coa_dynasty_small = widget - { - size = { 72 72 } - - coa_dynasty_lowborn_widget = { - parentanchor = center - size = { 56 56 } - blockoverride "icon_size" - { - size = { 44 44 } - } - } - - coa_dynasty_widget = { - size = { 56 56 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coat_of_arms_icon = { - parentanchor = center - size = { 44 44 } - coat_of_arms = "[Dynasty.GetDynastyCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Dynasty.GetDynastyCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[Dynasty.GetCulture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Dynasty.GetCulture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Dynasty.GetCulture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - size = { 64 64 } - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - } - } - } - - type coa_dynasty_medium = widget - { - size = { 96 96 } - - coa_dynasty_lowborn_widget = { - parentanchor = center - size = { 80 80 } - blockoverride "icon_size" - { - size = { 64 64 } - } - } - - coa_dynasty_widget = { - size = { 80 80 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coat_of_arms_icon = { - parentanchor = center - size = { 72 72 } - coat_of_arms = "[Dynasty.GetDynastyCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Dynasty.GetDynastyCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[Dynasty.GetCulture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Dynasty.GetCulture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Dynasty.GetCulture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - size = { 96 96 } - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - } - } - } - - type coa_dynasty_big = widget - { - size = { 128 128 } - - coa_dynasty_lowborn_widget = { - parentanchor = center - size = { 112 112 } - blockoverride "icon_size" - { - size = { 88 88 } - } - } - - coa_dynasty_widget = { - size = { 112 112 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coat_of_arms_icon = { - parentanchor = center - size = { 88 88 } - coat_of_arms = "[Dynasty.GetDynastyCoA.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[Dynasty.GetDynastyCoA.GetSlot('(int32)172','(int32)172')]" - coat_of_arms_mask = "[Dynasty.GetCulture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Dynasty.GetCulture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Dynasty.GetCulture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - size = { 128 128 } - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - } - } - } - - type coa_dynasty_huge = widget - { - size = { 172 172 } - - coa_dynasty_lowborn_widget = { - parentanchor = center - size = { 156 156 } - blockoverride "icon_size" - { - size = { 112 112 } - } - } - - coa_dynasty_widget = { - parentanchor = center - size = { 152 152 } - using = CoA_Dynasty_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 120 120 } - coat_of_arms = "[Dynasty.GetDynastyCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[Dynasty.GetDynastyCoA.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "[Dynasty.GetCulture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Dynasty.GetCulture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Dynasty.GetCulture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - size = { 172 172 } - } - } - } - - type coa_dynasty_frame = highlight_icon { - name = "house_frame" - parentanchor = center - - block "coa_dynasty_frame_size" {} - - block "frame_override" - { - frame = "[Dynasty.GetPrestigeFrame]" - } - texture = "[Dynasty.GetCulture.GetCultureDynastyCoAFrame]" - framesize = { 160 160 } - size = { 172 172 } - } - - #################################### - ############### HOUSE ############## - #################################### - - type coa_house_widget = button_group - { - layoutpolicy_horizontal = expanding - visible = "[DynastyHouse.IsValid]" - } - - type coa_house_lowborn_widget = widget - { - layoutpolicy_horizontal = shrinking - visible = "[Not( DynastyHouse.IsValid )]" - coa_lowborn_icon = {} - } - - type coa_house_tiny = widget - { - size = { 48 48 } - - hbox = { - margin = { 4 4 } - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 40 40 } - - blockoverride "icon_size" - { - size = { 28 28 } - } - } - - coa_house_widget = { - size = { 40 40 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 28 28 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - size = { 40 40 } - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - } - } - } - } - - type coa_house_microscopic = widget - { - size = { 24 24 } - - hbox = { - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 18 18 } - blockoverride "icon_size" - { - size = { 16 16 } - } - } - - coa_house_widget = { - size = { 24 24 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 16 16 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - size = { 24 24 } - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - } - } - } - } - type coa_house_small = widget - { - size = { 64 64 } - - hbox = { - margin = { 4 4 } - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 56 56 } - blockoverride "icon_size" - { - size = { 44 44 } - } - } - - coa_house_widget = { - size = { 56 56 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 44 44 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - size = { 56 56 } - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - } - } - } - } - - type coa_house_medium = widget - { - size = { 88 88 } - - hbox = { - margin = { 4 4 } - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 80 80 } - blockoverride "icon_size" - { - size = { 64 64 } - } - } - - coa_house_widget = { - size = { 80 80 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - size = { 80 80 } - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - } - } - } - } - - type coa_house_big = widget - { - size = { 120 120 } - - hbox = { - margin = { 3 5 } - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 112 112 } - blockoverride "icon_size" - { - size = { 86 86 } - } - } - - coa_house_widget = { - size = { 112 112 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 86 86 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)172','(int32)172')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - size = { 112 112 } - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - } - } - } - } - - type coa_house_huge = widget - { - size = { 160 160 } - - hbox = { - margin = { 3 5 } - - block "culture_template_data_datacontext" - { - datacontext = "[DynastyHouse.GetCulture.GetTemplateData]" - } - - coa_house_lowborn_widget = { - size = { 156 156 } - blockoverride "icon_size" - { - size = { 120 120 } - } - } - - coa_house_widget = { - size = { 156 156 } - using = CoA_House_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 120 120 } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "[CultureTemplateData.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[CultureTemplateData.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[CultureTemplateData.GetCultureHouseCoAScale]" - - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - size = { 156 156 } - } - } - } - } - - type coa_house_frame = highlight_icon { - name = "house_frame" - parentanchor = center - - block "frame_override" - { - frame = "[DynastyHouse.GetDynasty.GetPrestigeFrame]" - } - - texture = "[CultureTemplateData.GetCultureHouseCoAFrame]" - framesize = { 160 160 } - size = { 156 156 } - } - - #################################### - ########## CONFEDERATION ########### - #################################### - - type coa_confederation_frame = icon { - name = "coa_confederation_frame" - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_86.dds" - } - - type coa_confederation_tiny = button_group { - visible = "[Confederation.IsValid]" - using = CoA_Confederation_Defaults - - widget = { - parentanchor = hcenter - size = { 36 36 } - - coat_of_arms_icon = { - parentanchor = center - size = { 28 28 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_44.dds" - size = { 36 36 } - } - } - } - } - - type coa_confederation_microscopic = button_group { - visible = "[Confederation.IsValid]" - size = { 24 24 } - - using = CoA_Confederation_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 18 18 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - size = { 18 18 } - } - } - } - - type coa_confederation_small = button_group { - visible = "[Confederation.IsValid]" - size = { 52 52 } - - using = CoA_Confederation_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 44 44 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_44.dds" - size = { 52 52 } - } - } - } - - type coa_confederation_medium = button_group { - visible = "[Confederation.IsValid]" - size = { 72 72 } - - using = CoA_Confederation_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 62 62 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_62.dds" - size = { 72 72 } - } - } - } - - type coa_confederation_big = button_group { - visible = "[Confederation.IsValid]" - size = { 96 96 } - - using = CoA_Confederation_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 86 86 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)172','(int32)172')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_86.dds" - size = { 96 96 } - } - } - } - - type coa_confederation_huge = button_group { - visible = "[Confederation.IsValid]" - size = { 115 115 } - - using = CoA_Confederation_Defaults - - coat_of_arms_icon = { - parentanchor = center - size = { 115 115 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - block "glow" { - using = CoA_Confederation_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_confederation_frame = { - parentanchor = center - size = { 115 115 } - } - } - } - - type coa_bloc_microscopic = button_group { - visible = "[Confederation.IsValid]" - size = { 24 24 } - - using = CoA_Confederation_Defaults - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/frames/bloc_frame.dds" - size = { 24 24 } - position = { 2 0 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 24 24 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/frames/bloc_frame_mask.dds" - coat_of_arms_offset = { -0.02 -0.01 } - coat_of_arms_scale = { 0.8 0.8 } - - block "glow" { - using = CoA_Bloc_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - - type coa_bloc_tiny = button_group { - visible = "[Confederation.IsValid]" - size = { 36 36 } - - using = CoA_Confederation_Defaults - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/frames/bloc_frame.dds" - size = { 36 36 } - position = { 2 0 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 36 36 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/frames/bloc_frame_mask.dds" - coat_of_arms_offset = { -0.02 -0.01 } - coat_of_arms_scale = { 0.8 0.8 } - - block "glow" { - using = CoA_Bloc_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - - type coa_bloc_small = button_group { - visible = "[Confederation.IsValid]" - size = { 52 52 } - - using = CoA_Confederation_Defaults - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/frames/bloc_frame.dds" - size = { 52 52 } - position = { 2 0 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 52 52 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/frames/bloc_frame_mask.dds" - coat_of_arms_offset = { -0.02 -0.01 } - coat_of_arms_scale = { 0.8 0.8 } - - block "glow" { - using = CoA_Bloc_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - - type coa_bloc_medium = button_group { - visible = "[Confederation.IsValid]" - size = { 72 72 } - - using = CoA_Confederation_Defaults - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/frames/bloc_frame.dds" - size = { 72 72 } - position = { 2 0 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 72 72 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/frames/bloc_frame_mask.dds" - coat_of_arms_offset = { -0.02 -0.01 } - coat_of_arms_scale = { 0.8 0.8 } - - block "glow" { - using = CoA_Bloc_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - - type coa_bloc_big = button_group { - visible = "[Confederation.IsValid]" - size = { 96 96 } - - using = CoA_Confederation_Defaults - - coa_confederation_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/frames/bloc_frame.dds" - size = { 86 86 } - position = { 2 0 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 86 86 } - coat_of_arms = "[Confederation.GetConfederationCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[Confederation.GetConfederationCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/frames/bloc_frame_mask.dds" - coat_of_arms_offset = { -0.02 -0.01 } - coat_of_arms_scale = { 0.8 0.8 } - - block "glow" { - using = CoA_Bloc_Hover_Glow - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - - #################################### - ############# SAVEGAME ############# - #################################### - - type coa_savegame = button_group { - alwaystransparent = yes - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_44.dds" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 52 32 } - } - - widget = { - size = { 52 52 } - - coa_realm_shadow = { - texture = "[SaveGameItem.GetPlayerGovernment.GetRealmFrameShadow('(int32)44')]" - size = { 52 52 } - framesize = { 52 52 } - frame = 1 - } - - coat_of_arms_icon = { - parentanchor = center - size = { 52 52 } - coat_of_arms = "[SaveGameItem.GetCoatOfArms.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[SaveGameItem.GetCoatOfArms.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[SaveGameItem.GetPlayerGovernment.GetRealmMask]" - coat_of_arms_offset = "[SaveGameItem.GetPlayerGovernment.GetRealmMaskOffset]" - coat_of_arms_scale = "[SaveGameItem.GetPlayerGovernment.GetRealmMaskScale]" - - modify_texture = { - texture = "[SaveGameItem.GetPlayerGovernment.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[SaveGameItem.GetPlayerGovernment.GetRealmFrame('(int32)44')]" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 52 52 } - size = { 52 52 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_44.dds" - frame = "[SaveGameItem.GetPlayerTier]" - framesize = { 52 52 } - position = { 0 -7 } - size = { 52 52 } - } - } - } - } - } - - type coa_savegame_house = container { - - coat_of_arms_icon = { - size = { 44 44 } - parentanchor = center - coat_of_arms = "[SaveGameItem.GetHouseCoatOfArms.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[SaveGameItem.GetHouseCoatOfArms.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[SaveGameItem.GetSaveGameItemHouseCoAMask]" - coat_of_arms_offset = "[SaveGameItem.GetSaveGameItemHouseCoAOffset]" - coat_of_arms_scale = "[SaveGameItem.GetSaveGameItemHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - coa_house_frame = { - size = { 56 56 } - parentanchor = center - frame = "[SaveGameItem.GetDynastyFrame]" - texture = "[SaveGameItem.GetSaveGameItemHouseCoAFrame]" - } - } - - #################################### - ############# BOOKMARK ############# - #################################### - - type coa_dynasty_bookmark = button_group { - - block "character" { - onclick = "[GameSetup.SetSelectedCharacter( BookmarkCharacter.Self )]" - } - - tooltip = "BOOKMARK_DYNASTY_OR_HOUSE_TOOLTIP" - - flowcontainer = { - margin = { 3 0 } - margin_top = 5 - - widget = { - size = { 56 56 } - - # Dynasty CoA and frame - coat_of_arms_icon = { - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - parentanchor = center - size = { 44 44 } - coat_of_arms = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateDynastyCoAMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateDynastyCoAOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - } - } - - coa_house_frame = { - visible = "[Not( BookmarkCharacter.HasDynastyHouse )]" - blockoverride "frame_override" - { - frame = "[BookmarkCharacter.GetDynastySplendorFrame]" - } - size = { 56 56 } - texture = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateDynastyCoAFrame]" - } - - # House CoA and frame - coat_of_arms_icon = { - visible = "[BookmarkCharacter.HasDynastyHouse]" - parentanchor = center - size = { 48 52 } - coat_of_arms = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetSlot('(int32)88','(int32)88')]" - coat_of_arms_mask = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCultureTemplate.GetCultureTemplateHouseCoAMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateHouseCoAOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateHouseCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - } - } - - coa_house_frame = { - visible = "[BookmarkCharacter.HasDynastyHouse]" - blockoverride "frame_override" - { - frame = "[BookmarkCharacter.GetDynastySplendorFrame]" - } - size = { 56 56 } - texture = "[BookmarkCharacter.GetDynastyTemplate.GetCultureTemplate.GetCultureTemplateHouseCoAFrame]" - } - } - } - } - - type coa_realm_bookmark = container { - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_62.dds" - frame = "[BookmarkCharacter.GetTier]" - framesize = { 64 40 } - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - parentanchor = center - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrameShadow('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - frame = 1 - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - - coat_of_arms = "[BookmarkCharacter.GetLandedTitleTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetLandedTitleTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - frame = 1 - framesize = { 64 64 } - inherit_visual_state = no - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - position = { 0 -8 } - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - } - } - } - } - } - - type coa_clan_bookmark = container { - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_62.dds" - frame = "[BookmarkCharacter.GetTier]" - framesize = { 64 40 } - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - parentanchor = center - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrameShadow('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - frame = 1 - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - visible = "[Not(BookmarkCharacter.HasDynastyHouse)]" - - coat_of_arms = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - frame = 1 - inherit_visual_state = no - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - position = { 0 -8 } - } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - visible = "[BookmarkCharacter.HasDynastyHouse]" - - coat_of_arms = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - inherit_visual_state = no - frame = 1 - framesize = { 64 64 } - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - position = { 0 -8 } - } - } - } - } - } - - type coa_admin_nodlc_bookmark = container { - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_62.dds" - frame = "[BookmarkCharacter.GetTier]" - framesize = { 64 40 } - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - parentanchor = center - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrameShadow('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - frame = 1 - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - - coat_of_arms = "[BookmarkCharacter.GetLandedTitleTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetLandedTitleTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[GetGovernment('feudal_government').GetRealmMask]" - coat_of_arms_offset = "[GetGovernment('feudal_government').GetRealmMaskOffset]" - coat_of_arms_scale = "[GetGovernment('feudal_government').GetRealmMaskScale]" - - modify_texture = { - texture = "[GetGovernment('feudal_government').GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[GetGovernment('feudal_government').GetRealmFrame('(int32)62')]" - size = { 64 64 } - inherit_visual_state = no - frame = 1 - framesize = { 64 64 } - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - position = { 0 -2 } - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - } - } - } - } - } - - type coa_adventurer_bookmark = container { - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/landless_adventurer_topframe_62.dds" - size = { 62 30 } - } - - widget = { - size = { 64 64 } - - coa_realm_shadow = { - parentanchor = center - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrameShadow('(int32)62')]" - size = { 64 64 } - framesize = { 64 64 } - frame = 1 - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - visible = "[Not(BookmarkCharacter.HasDynastyHouse)]" - - coat_of_arms = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - inherit_visual_state = no - frame = 1 - framesize = { 64 64 } - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - position = { 0 -8 } - } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 64 64 } - alwaystransparent = yes - visible = "[BookmarkCharacter.HasDynastyHouse]" - - coat_of_arms = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[BookmarkCharacter.GetDynastyHouseTemplate.GetCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - coat_of_arms_offset = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskOffset]" - coat_of_arms_scale = "[BookmarkCharacter.GetGovernmentType.GetRealmMaskScale]" - - modify_texture = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmMask]" - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - texture = "[BookmarkCharacter.GetGovernmentType.GetRealmFrame('(int32)62')]" - size = { 64 64 } - inherit_visual_state = no - frame = 1 - framesize = { 64 64 } - } - - coa_realm_topframe = { - inherit_visual_state = no - texture ="gfx/interface/coat_of_arms/topframe_62.dds" - framesize = { 64 64 } - size = { 64 64 } - frame = "[BookmarkCharacter.GetTier]" - position = { 0 -8 } - } - } - } - } - } - - ######################################### - ######### COAT OF ARMS DESIGNER ######### - ######################################### - # These widgets require a "CoatOfArms" datacontext (CCoatOfArmsSprite in code) - - # modelled after coa_realm_huge_crown - type coa_preview_realm_huge_crown = button_group { - alwaystransparent = yes - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = -2 - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - - block "frame_override" - { - frame = 2 - } - framesize = { 128 80 } - - block "crown" - { - visible = yes - } - } - - icon = { - name = "mercenary" - - block "mercenary_visible" - { - visible = no - } - - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/mercenary_topframe_115.dds" - } - - icon = { - name = "holy_order" - - block "holy_order_visible" - { - visible = no - } - - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/holyorder_topframe_115.dds" - } - - widget = { - parentanchor = hcenter - size = { 128 128 } - - coa_realm_shadow = { - parentanchor = center - texture = "gfx/interface/icons/realm_frames/_default_115_shadow.dds" - size = { 128 128 } - } - - coat_of_arms_icon = { - parentanchor = center - size = { 128 128 } - coat_of_arms = "[CoatOfArms.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)230','(int32)230')]" - - block "coa_icon_additions" {} - - block "coat_of_arms_mask" - { - coat_of_arms_mask = "gfx/interface/icons/realm_frames/_default_mask.dds" - coat_of_arms_offset = { 0.0 0.07 } - coat_of_arms_scale = { 0.9 0.9 } - } - - modify_texture = { - block "realm_mask_texture" - { - texture = "gfx/interface/icons/realm_frames/_default_mask.dds" - } - blend_mode = overlay - alpha = @overlay_alpha - } - - coa_realm_overlay = { - block "realm_frame_texture" - { - texture = "gfx/interface/icons/realm_frames/_default_115_frame.dds" - } - size = { 128 128 } - } - - coa_realm_topframe = { - texture ="gfx/interface/coat_of_arms/topframe_115.dds" - block "frame_override" - { - frame = 2 - } - size = { 128 128 } - framesize = { 128 128 } - position = { 0 -12} - } - } - } - } - } - - # modelled after coa_title_big_crown - type coa_preview_title_big_crown = button_group { - alwaystransparent = yes - - flowcontainer = { - margin = { 3 7 } - direction = vertical - spacing = -3 - ignoreinvisible = yes - - icon = { - name = "crown" - parentanchor = hcenter - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - block "frame_override" - { - frame = 2 - } - framesize = { 128 80 } - - block "crown" - { - visible = yes - } - } - - widget = { - parentanchor = hcenter - size = { 96 96 } - - coat_of_arms_icon = { - parentanchor = center - size = { 86 86 } - coat_of_arms = "[CoatOfArms.GetTexture('(int32)172','(int32)172')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)172','(int32)172')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - coa_title_frame = { - texture = "gfx/interface/coat_of_arms/title_86.dds" - size = { 96 96 } - alwaystransparent = yes - } - } - } - } - } - - # modelled after coa_title_tiny - type coa_preview_title_tiny = button_group { - alwaystransparent = yes - - flowcontainer = { - margin = { 3 7 } - direction = vertical - spacing = -4 - ignoreinvisible = yes - - spacer = { - name = "crown" - size = { 18 12 } - visible = no - } - - widget = { - parentanchor = hcenter - size = { 36 35 } - - coat_of_arms_icon = { - parentanchor = center - size = { 28 28 } - coat_of_arms = "[CoatOfArms.GetTexture('(int32)56','(int32)56')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)56','(int32)56')]" - coat_of_arms_mask = "gfx/interface/coat_of_arms/title_mask.dds" - coat_of_arms_offset = "[DefaultCoATitleMaskOffset]" - coat_of_arms_scale = "[DefaultCoATitleMaskScale]" - - coa_title_frame = { - parentanchor = center - texture = "gfx/interface/coat_of_arms/title_28.dds" - size = { 34 34 } - } - } - } - } - } - - # modelled after coa_dynasty_huge - type coa_preview_dynasty_huge = widget - { - size = { 172 172 } - - #block "coa_widget_size" - - button_group = { - parentanchor = center - size = { 156 156 } - alwaystransparent = yes - - coat_of_arms_icon = { - parentanchor = center - size = { 128 128 } - coat_of_arms = "[CoatOfArms.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "[Culture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Culture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Culture.GetCultureDynastyCoAScale]" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_dynasty_frame = { - texture = "[Culture.GetCultureDynastyCoAFrame]" - size = { 172 172 } - alwaystransparent = yes - - #block "coa_frame_size" {} - - blockoverride "frame_override" - { - frame = 2 - } - } - } - } - - # modelled after coa_house_huge - type coa_preview_house_huge = widget - { - size = { 160 160 } - - hbox = { - margin = { 4 4 } - - coa_house_widget = { - visible = yes - size = { 156 156 } - alwaystransparent = yes - - coat_of_arms_icon = { - parentanchor = center - size = { 120 120 } - coat_of_arms = "[CoatOfArms.GetTexture('(int32)230','(int32)230')]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)230','(int32)230')]" - coat_of_arms_mask = "[Culture.GetCultureHouseCoAMask]" - coat_of_arms_offset = "[Culture.GetCultureHouseCoAOffset]" - coat_of_arms_scale = "[Culture.GetCultureHouseCoAScale]" - alwaystransparent = yes - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - - coa_house_frame = { - texture = "[Culture.GetCultureHouseCoAFrame]" - size = { 156 156 } - alwaystransparent = yes - - blockoverride "frame_override" - { - frame = 2 - } - } - } - } - } - - #################################### - ######### CULTURE PREVIEW ########## - #################################### - - type coa_hybridize_window = widget - { - size = { 128 128 } - - button_group = { - size = { 84 84 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coat_of_arms_icon = { - parentanchor = center - using = Mask_Rough_Edges - - size = { 84 84 } - coat_of_arms = "[DesignerCoA.GetCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[DesignerCoA.GetCoA.GetSlot('(int32)124','(int32)124')]" - block "mask" - { - coat_of_arms_mask = "[Culture.GetCultureDynastyCoAMask]" - coat_of_arms_offset = "[Culture.GetCultureDynastyCoAOffset]" - coat_of_arms_scale = "[Culture.GetCultureDynastyCoAScale]" - } - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - - } - - block "frame" - { - coa_dynasty_frame = { - size = { 128 128 } - texture = "[Culture.GetCultureDynastyCoAFrame]" - } - } - } - } - - type coa_hybridize_frame_preview = widget - { - size = { 128 128 } - - button_group = { - size = { 84 84 } - using = CoA_Dynasty_Defaults - parentanchor = center - - coa_dynasty_frame = { - size = { 128 128 } - texture = "[Culture.GetCultureDynastyCoAFrame]" - } - } - } - - ##### Sigil Coat of Arms - type coa_character_sigil = widget - { - block "size" - { - size = { 45 30 } - } - - widget = { - parentanchor = center - - icon = { - name = "sigil_bg" - texture = "gfx/interface/skinned/window_letter/sigil_bg.dds" - alwaystransparent = yes - parentanchor = center - - block "size" - { - size = { 50 50 } - } - } - - icon = { - name = "sigil" - visible = "[Character.HasSealCoA]" - gfxtype = coatofarmsgfx - shaderfile = "gfx/FX/gui_coatofarms.shader" - effectname = PdxGuiSeal - alwaystransparent = yes - datacontext = "[Character.GetSealCoA]" - coat_of_arms_slot = "[CoatOfArms.GetSlot('(int32)88','(int32)88')]" - coat_of_arms = "[CoatOfArms.GetTexture('(int32)88','(int32)88')]" - coat_of_arms_mask = "gfx/interface/skinned/window_letter/sigil_center.dds" - parentanchor = center - - block "sigil_size" - { - size = { 34 34 } - } - } - - icon = { - name = "sigil_lowborn" - visible = "[Not( Character.HasSealCoA )]" - texture = "gfx/interface/skinned/window_letter/sigil_center_lowborn.dds" - alwaystransparent = yes - parentanchor = center - - block "sigil_size" - { - size = { 34 34 } - } - } - } - - coa_house_widget = { - using = CoA_House_Defaults - visible = "[Character.HasSealCoA]" - datacontext = "[Character.GetHouse]" - parentanchor = center - - block "sigil_size" - { - size = { 34 34 } - } - - coat_of_arms_icon = { - parentanchor = center - block "sigil_size" - { - size = { 34 34 } - } - coat_of_arms = "[DynastyHouse.GetHouseCoA.GetTexture('(int32)124','(int32)124')]" - coat_of_arms_slot = "[DynastyHouse.GetHouseCoA.GetSlot('(int32)124','(int32)124')]" - coat_of_arms_mask = "gfx/interface/skinned/window_letter/asia_house_mask.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - alpha = @overlay_alpha - } - } - } - } -} - -###################################################### -##################### TEMPLATES ###################### -###################################################### - -## Default values for Title CoA buttons -template CoA_Title_Defaults -{ - block "coa_button" - { - block "coa_tooltip" - { - tooltipwidget = { - using = LandedTitleTooltip - } - } - block "coa_onclick" - { - onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" - onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - button_ignore = none - } - } - using = State_Title_MouseEntry -} - -template CoA_Title_Hover_Glow -{ - glow = { - block "coa_hover_glow_visible" - { - visible = "[Title.IsHovered]" - } - using = Color_Bright_Yellow - glow_radius = 8 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - - using = Animation_Glow_Pulse -} - -template CoA_Realm_Hover_Glow -{ - glow = { - block "coa_hover_glow_visible" - { - visible = "[Character.IsHovered]" - } - using = Color_Bright_Yellow - glow_radius = 4 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 5 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - - using = Animation_Glow_Pulse -} - -template CoA_Confederation_Hover_Glow -{ - glow = { - block "coa_hover_glow_visible" - { - visible = "[Confederation.IsHovered]" - } - using = Color_Bright_Yellow - glow_radius = 8 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - - using = Animation_Glow_Pulse -} - -template CoA_Bloc_Hover_Glow -{ - glow = { - block "coa_hover_glow_visible" - { - visible = "[Confederation.IsHovered]" - } - using = Color_Bright_Yellow - glow_radius = 4 - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - - using = Animation_Glow_Pulse -} - - -## Default values for Realm CoA buttons -template CoA_Realm_Defaults -{ - block "coa_button" - { - tooltip = "[Character.GetDefaultRealmFlagTooltip]" - onclick = "[DefaultOnRealmFlagClick(Character.GetID)]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - } - - block "coa_realm_mouse_entry" - { - using = State_Realm_MouseEntry - } -} - -## Default values for Dynasty CoA buttons -template CoA_Dynasty_Defaults -{ - block "coa_button" - { - block "coa_tooltip" - { - tooltipwidget = { - using = DynastyTooltip - } - } - block "OnClickDefault" - { - onclick = "[DefaultOnDynastyCoatOfArmsClick(Dynasty.GetID)]" - } - } -} - -## Default values for House CoA buttons -template CoA_House_Defaults -{ - block "coa_button" - { - block "coa_tooltip" - { - tooltipwidget = { - using = dynasty_house_tooltip - } - } - onclick = "[DefaultOnHouseCoatOfArmsClick(DynastyHouse.GetID)]" - } -} - -## Default values for Confederation CoA buttons -template CoA_Confederation_Defaults -{ - block "coa_button" - { - block "coa_tooltip" - { - } - } - using = Confederation_Mouse_Entry -} diff --git a/N3OW/gui/shared/color_picker.gui b/N3OW/gui/shared/color_picker.gui deleted file mode 100644 index 1daeb31d..00000000 --- a/N3OW/gui/shared/color_picker.gui +++ /dev/null @@ -1,228 +0,0 @@ -template dummy_color_picker_buttons -{ - # These are buttons the color picker requires to exist, but that we don't want in our simple color picker - widget = { - visible = no - editor_editbox = { - name = "editbox_color_hue" - } - editor_editbox = { - name = "editbox_color_saturation" - } - editor_editbox = { - name = "editbox_color_value" - } - editor_editbox = { - name = "editbox_color_red" - } - editor_editbox = { - name = "editbox_color_green" - } - editor_editbox = { - name = "editbox_color_blue" - } - checkbutton = { - name = "radio_color_hue" - } - checkbutton = { - name = "radio_color_green" - } - checkbutton = { - name = "radio_color_red" - } - checkbutton = { - name = "radio_color_value" - } - checkbutton = { - name = "radio_color_saturation" - } - checkbutton = { - name = "radio_color_blue" - } - checkbutton = { - name = "radio_color_alpha" - } - editor_editbox = { - name = "editbox_color_alpha" - } - editor_editbox = { - name = "editbox_color_hex" - } - editor_button = { - name = "colorpicker_close" - } - icon = { - name = "color_selector" - } - } -} - -types ColorPickerTypes -{ - # Very simple color picker based on a hue slider and a saturation vs. value area - type colorpicker_simple = colorpicker - { - size = { 400 350 } - - vbox = { - name = "colorpicker_window" - spacing = 10 - margin_top = 10 - - widget = { - name = "preview_icon" - size = { 298 50 } - - icon = { - name = "colorpicker_button" - size = { 298 50 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorButton" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - } - - button_standard_clean = { - name = "palette_border" - parentanchor = center - alwaystransparent = yes - size = { 302 54 } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - hbox_colorpicker_simple_components = {} - - expand = {} - } - - using = dummy_color_picker_buttons - } - - # Same picking capabilities as colorpicker_simple, but it's mainly the preview and the picker is a popout - type colorpicker_simple_popup = colorpicker - { - size = { 32 32 } - - icon = { - name = "colorpicker_button" - block "colorpicker_button_size" - { - size = { 100% 100% } - } - - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorButton" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - } - - window = { - name = "colorpicker_window" - size = { 318 276 } - resizable = no - reorder_on_mouse = "presstop" - - using = Window_Background_Subwindow - - hbox_colorpicker_simple_components = { - margin = { 10 10 } - } - } - - using = dummy_color_picker_buttons - } - - # Common simple color picker (the actual picker) used in the actual game color pickers - type hbox_colorpicker_simple_components = hbox - { - spacing = 10 - - widget = { - name = "palette_icon" - size = { 256 256 } - - icon = { - name = "color_area" - size = { 256 256 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorArea" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - - icon = { - name = "color_area_picker" - position = { 0 0 } - widgetanchor = center|center - alwaystransparent = yes - size = { 15 15 } - texture = "gfx/interface/icons/color_picker.dds" - spriteType = corneredstretched - } - } - - button_standard_clean = { - name = "palette_border" - parentanchor = center - alwaystransparent = yes - size = { 260 260 } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - widget = { - name = "spectrum_icon" - size = { 32 256 } - - icon = { - name = "color_slider" - size = { 32 256 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorSlider" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - - icon = { - name = "color_slider_picker" - position = { 0 40 } - alwaystransparent = yes - size = { 32 2 } - texture = "gfx/interface/icons/color_picker_line.dds" - spriteType = corneredtiled - spriteborder = { 1 1 } - } - } - - button_standard_clean = { - name = "spectrum_border" - parentanchor = center - alwaystransparent = yes - size = { 36 260 } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - } -} - diff --git a/N3OW/gui/shared/colors.gui b/N3OW/gui/shared/colors.gui deleted file mode 100644 index 0d7a1fcf..00000000 --- a/N3OW/gui/shared/colors.gui +++ /dev/null @@ -1,133 +0,0 @@ -###################################################### -###################### COLORS ######################## -###################################################### - -template Color_Green -{ - color = { 0.5 0.65 0.2 1 } -} - -template Color_Green_Transparent -{ - color = { 0.25 0.8 0.4 0.2 } -} - -template Color_Bright_Yellow -{ - color = { 0.9 0.9 0.6 1 } -} - -template Color_Bright_Yellow_Transparent -{ - color = { 0.9 0.9 0.6 0.17 } -} - -template Color_Red -{ - color = { 1 0.4 0.35 1 } - # used in character_interaction_categories too -} - -template Color_Red_Transparent -{ - color = { 1 0.4 0.35 0.2 } -} - -template Color_Purple -{ - color = { 0.55 0.5 0.6 1 } -} - -template Color_Intense_Purple -{ - color = { 0.7 0.5 0.7 1 } -} - -template Color_White -{ - color = { 1 1 1 1 } - # used in character_interaction_categories too -} - -### This is You -template Color_Blue -{ - color = { 0.4 0.5 0.6 1 } -} - -template Color_Blue_Transparent -{ - color = { 0.4 0.5 0.6 0.2 } -} - -template Color_Grey -{ - color = { 0.45 0.5 0.55 1 } -} - -template Color_Orange -{ - color = { 0.9 0.7 0.5 0.7 } -} - -template Color_Intense_Orange -{ - color = { 0.8 0.5 0.3 1 } - # used in character_interaction_categories too -} - -template Color_Black -{ - color = { 0 0 0 0.7 } -} - -template Color_Button_Background -{ - color = { 0.1 0.1 0.13 1 } -} - - -### Holding View backgrounds - -# When a county is leased by a church -template Color_Holding_Leased -{ - using = Color_Blue -} - -# When the holder of a holding is differnt from the county holder -template Color_Holding_Different_Holder -{ - using = Color_Blue -} - -### County backgrounds - -template Color_County_UnderMe -{ - using = Color_Blue -} - -template Color_County_TopRealmButNotMe -{ - using = Color_Blue -} - -template Color_County_OutsideRealm -{ - using = Color_Red -} - -# Colors for Courtier UI - -template Color_Courtier_Blue -{ - color = { 0.2 0.5 0.6 1 } - # used in character_interaction_categories too -} - -template Color_Courtier_Purple -{ - color = { 0.5 0.4 0.6 1 } - # used in character_interaction_categories too -} \ No newline at end of file diff --git a/N3OW/gui/shared/cooltip.gui b/N3OW/gui/shared/cooltip.gui deleted file mode 100644 index e14f1d71..00000000 --- a/N3OW/gui/shared/cooltip.gui +++ /dev/null @@ -1,9939 +0,0 @@ -container = { - alwaystransparent = no - name = "DefaultTooltipWidget" - using = DefaultTooltipWidget -} - -container = { - name = "GameConceptTooltipDefault" - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "header_additions" { - hbox = { - visible = "[GameConceptTooltip.HasIcon]" - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[GameConceptTooltip.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - frame = "[GameConceptTooltip.GetFrame]" - framesize = "[GameConceptTooltip.GetFrameSize]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[GameConceptTooltip.GetOriginalAliasName]" - } - - blockoverride "concept_link" { - text = "[GameConceptTooltip.GetParentText]" - } - - blockoverride "description_text" { - text = "[GameConceptTooltip.GetDescription]" - max_width = 400 - } - - blockoverride "bg_texture" - { - texture = "gfx/interface/tooltips/tooltip_bg_gameconcept.dds" - } - } -} - -container = { - - alwaystransparent = no - name = "GlossaryTooltip" - using = GlossaryTooltipWidget -} - - -template character_opinion_tooltip { - widget = { - using = GeneralTooltipSetup - using = DefaultTooltipBackground - alwaystransparent = no - - vbox = { - set_parent_size_to_minimum = yes - margin = { 8 8 } - spacing = 2 - - hbox = { - name = "heading" - layoutpolicy_horizontal = expanding - - margin = { 8 8 } - - spacing = 6 #ugly hack to get a space between label and value - - background = { - using = Background_Area - } - - text_single = { - block "ott_heading_text" - { - raw_text = "@opinion_icon! [Character.GetOpinionHeadingText( GetPlayer )]" - } - - using = Font_Size_Medium - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - background = { - name = "portrait_opinion_bg" - texture = "gfx/interface/component_tiles/solid_black_label.dds" - spritetype = Corneredtiled - spriteborder = { 20 20 } - texture_density = 2 - margin = { 3 1 } - } - - max_width = 45 - align = nobaseline - - block "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( GetPlayer )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( GetPlayer )]" - } - - default_format = "#true_white" - using = Font_Size_Medium - - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - visible = "[Character.IsPlayer]" - - text_multi = { - datacontext = "[Character]" - visible = "[Not( Character.IsLocalPlayer )]" - - autoresize = yes - max_width = 400 - text = "PLAYER_OPINION_UNIMPORTANT" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - datacontext = "[Character]" - visible = "[Character.IsLocalPlayer]" - - autoresize = yes - max_width = 400 - text = "PLAYER_OPINION_UNIMPORTANT_SELF" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - - text_multi = { - block "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( GetPlayer )]" - } - - autoresize = yes - max_width = 400 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - } -} - -template character_trait_tooltip { - object_tooltip_pop_out = { - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - trait_icon_texture = { - blockoverride "icon_size" - { - size = { 52 52 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[Trait.GetNameNoTooltipWithDefault( Character.Self )]" - } - - blockoverride "concept_link" { - text = "[Trait.GetTraitCategoryLabel]" - } - - blockoverride "description_text" { - block "actual_description_text" { - text = "[Trait.GetFullDescription( Character.Self, Faith.Self )]" - } - } - - blockoverride "extra_data_after_description" - { - vbox = { - name = "trait_level_tracks" - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( Trait.GetLevelTracks )]" - allow_outside = yes - - spacer = { - size = { 10 10 } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "TRAIT_LEVEL_TRACKS_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[Trait.GetLevelTracks]" - spacing = 5 - allow_outside = yes - - item = { - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - spacing = 5 - margin_right = 20 - - vbox = { - margin_top = 6 - - icon = { - size = { 30 30 } - texture = "[TraitLevelTrack.GetIcon( Trait.Self, Character.Self )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[TraitLevelTrack.GetName]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - widget = { - size = { 0 15 } - layoutpolicy_horizontal = expanding - allow_outside = yes - - datacontext = "[Character.GetTraitTrackProgressBar( Trait.Self, TraitLevelTrack.Self )]" - - hbox_complex_bar_progress_next = { - size = { 0 15 } - layoutpolicy_horizontal = expanding - tooltip = "TRAIT_LEVEL_TRACK_PROGRESS_TOOTLIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - size = { 0 15 } - layoutpolicy_horizontal = expanding - - blockoverride "marker" - { - widget_level_marker = { - scale = 0.75 - datacontext = "[TraitLevelTrack.GetEntryForXp( ComplexBarItem.GetValue )]" - visible = "[GreaterThanOrEqualTo_int32( TraitLevelTrackEntry.GetLevel, '(int32)0' )]" - - blockoverride "visible_active" - { - visible = "[EqualTo_int32( Character.GetTraitTrackLevel( Trait.Self, TraitLevelTrack.Self ), TraitLevelTrackEntry.GetLevel )]" - } - - blockoverride "visible_inactive" - { - visible = "[Not( EqualTo_int32( Character.GetTraitTrackLevel( Trait.Self, TraitLevelTrack.Self ), TraitLevelTrackEntry.GetLevel ) )]" - } - - blockoverride "marker_tooltip" - { - tooltip = "TRAIT_LEVEL_TRACK_TT" - using = tooltip_se - } - - blockoverride "marker_text" - { - text = "[TraitLevelTrackEntry.GetLevel]" - } - } - } - } - } - } - } - } - } - } - } - } -} - -container = { - alwaystransparent = no - name = "TraitTooltipDefault" - datacontext = "[Character.GetFaith]" - using = character_trait_tooltip -} - -container = { - name = "FaithDoctrineTooltipDefault" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[FaithDoctrine.GetBaseNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "FAITH_DOCTRINE_GENERAL_TOOLTIP" - } - - blockoverride "concept_link" { - text = [doctrine|E] - } - } -} - -container = { - name = "LifestyleTooltipDefault" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Lifestyle.GetNameNoTooltip]" - } - - blockoverride "description_text" { - text = "[Lifestyle.GetDescription]" - } - - blockoverride "concept_link" { - text = [lifestyle|E] - } - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Lifestyle.GetIcon]" - framesize = { 160 160 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} - -container_focus_cooltip = { - name = "FocusTooltipDefault" -} - -template perk_tooltip_contents { - object_tooltip_pop_out = { - - blockoverride "title_text" { - margin = { 0 8 } - text = "[Perk.GetNameNoTooltip( GetPlayer )]" - } - - blockoverride "description_text" { - text = "[Perk.GetEffectDescription( GetPlayer )]" - } - - blockoverride "concept_link" { - text = [perk|E] - } - } -} - -container = { - alwaystransparent = no - name = "PerkTooltipDefault" - - using = perk_tooltip_contents -} - -template perk_tooltip_selection { - container = { - alwaystransparent = no - name = "PerkTooltipSelection" - - using = perk_tooltip_contents - - blockoverride "input_info_text" { - visible = "[CharacterLifestyleWindow.CanSelectPerk( Perk.Self )]" - text = "CHOOSE_PERK_UNLOCK_TEXT" - } - - blockoverride "above_description_text" { - text = "[CharacterLifestyleWindow.CanSelectPerkDesc( Perk.Self )]" - } - } -} - -container = { - name = "DynastyPerkTooltipDefault" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[DynastyPerk.GetNameNoTooltip]" - } - - blockoverride "description_text" { - text = "[DynastyPerk.GetEffectDescription( GetPlayer )]" - } - - blockoverride "concept_link" { - text = [dynasty_perk|E] - } - } -} - - -container = { - name = CharacterTooltip - - alwaystransparent = no - - container_character_tooltip = {} -} - - -types GameTooltipTypes -{ - type object_tooltip_pop_out = widget { - name = "ObjectTooltipDefault" - using = GeneralTooltipSetup - alwaystransparent = no - - using = DefaultTooltipBackground - - vbox = { - set_parent_size_to_minimum = yes - margin = { 20 5 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Header - margin = { 16 0 } - margin_bottom = 12 - } - - background = { - using = Background_Header_Pattern - margin = { 16 0 } - margin_bottom = 12 - } - - block "header_tt" { - margin_bottom = 12 - } - - hbox = { - layoutpolicy_horizontal = expanding - - block "header_additions" { - hbox = {} - } - - vbox = { - name = "FancyHeader" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - name = "title" - - fontsize_min = 14 - using = Font_Size_Medium - align = nobaseline - - block "title_text" { - margin = { 0 4 } - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - # use subtitle_text blockoverride or replace this entire block - block "subheading" - { - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - block "fontsize_min" { - fontsize_min = 14 - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = Font_Size_Small - align = nobaseline - - block "subtitle_text" - { - text = "" - } - - block "max_width" - { - max_width = 400 - } - - block "multiline" {} - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - name = "concept_link" - layoutpolicy_horizontal = expanding - block "concept_link" { - raw_text = "#D Missing concept link!#!" - } - - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - # Override main_description if you plan to build a fully custom pop out, otherwise override the components - block "main_description" - { - block "extra_data" {} - - textbox = { - name = "warning_description" - - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - block "warning_description_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - name = "above_description" - - max_width = 400 - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - block "above_description_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - # NOTE: This edit box is filled by TooltipInfo.GetTintColor from code in order to set the correct size when the tooltip is created and positioned and then it uses the text property specified here in the next frames - textbox = { - name = "Description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - block "description_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - block "extra_data_after_description" {} - - # Things like "click to X", hotkeys etc - textbox = { - name = "input_info" - layoutpolicy_horizontal = expanding - margin_top = 10 - using = DefaultTooltipText - multiline = yes - block "input_info_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - textbox = { - name = "TooltipTextShortcut" - layoutpolicy_horizontal = expanding - using = DefaultTooltipText - margin = { 10 5 } - margin_top = 10 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - block "call_to_action" {} - } - } - - type header_icon = hbox - { - margin_right = 13 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 60 60 } - tintcolor = "[TooltipInfo.GetTintColor]" - - block "header_texture" - { - } - } - } - - type cooltip_type = widget { - name = "character_tooltip" - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - block "bg_visible" { - visible = yes - } - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 15 } - margin_top = 3 - maximumsize = { 600 -1 } - - ## REAL CHARACTERS - vbox = { - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - vbox = { - name = "personal" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "name_etc" - layoutpolicy_horizontal = expanding - minimumsize = { 0 35 } - - ## Name - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 8 - margin_right = 7 - - background = { - using = Background_Area - margin = { 15 0 } - margin_bottom = 7 - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 3 - - portrait_opinion = { - visible = "[And( Character.IsAlive, Not( Character.IsPlayer ) )]" - } - - expand = {} - } - - spacer = { - visible = "[And( Character.IsAlive, Not( Character.IsPlayer ) )]" - size = { 8 5 } - } - - text_multi = { - name = "character_name" - text = "CHARACTER_TT_NAME_AGE" - default_format = "#high" - using = Font_Size_Medium - max_width = 350 - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 5 - - icon = { - visible = "[Not(Character.IsDeadAndValid)]" - size = { 23 23 } - framesize = { 60 60 } - frame = "[Character.GetHealthIconFrame]" - texture = "gfx/interface/icons/character_status/icon_health.dds" - tooltip = "[Character.GetHealthInfo]" - color = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - expand = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "character_relation_to_you" - margin_top = 10 - max_width = 308 - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#high" - align = nobaseline - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - margin_bottom = 10 - - hbox = { - name = "AI_personality" - layoutpolicy_horizontal = expanding - spacing = 2 - - text_single = { - visible = "[Not( Character.IsPlayer )]" - text = "[Character.GetAIPersonalityNoTooltip]" - default_format = "#L" - tooltip = "AI_PERSONALITY_TT" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - visible = "[Not(Character.IsFemale)]" - size = { 20 20 } - framesize = { 40 40 } - frame = "[Character.GetSexualityFrame]" - texture = "gfx/interface/icons/character_status/sexuality_icons_male.dds" - tooltip = "SEXUALITY_TT" - color = "[TooltipInfo.GetTintColor]" - } - - icon = { - visible = "[Character.IsFemale]" - size = { 20 20 } - framesize = { 40 40 } - frame = "[Character.GetSexualityFrame]" - texture = "gfx/interface/icons/character_status/sexuality_icons_female.dds" - tooltip = "SEXUALITY_TT" - color = "[TooltipInfo.GetTintColor]" - } - - portrait_status_icons = { - blockoverride "direction" - { - direction = horizontal - } - - color = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[Character.IsAlive]" - text = "[Character.Custom('CooltipSpouseListing')]" - layoutpolicy_horizontal = expanding - align = nobaseline - max_width = 350 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - text_single = { - visible = "[And( Character.IsAlive, Not( Character.IsImprisoned ) )]" - layoutpolicy_horizontal = expanding - text = "CHARACTER_LOCATION_TOOLTIP" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - text_single = { - visible = "[And( Character.IsAlive, Character.IsImprisoned )]" - layoutpolicy_horizontal = expanding - text = "CHARACTER_IMPRISONED_TOOLTIP" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area - margin = { 15 0 } - } - - hbox = { - name = "faith_and_culture" - - button_religion_icon = { - name = "faith_button" - datacontext = "[Character.GetFaith]" - size = { 45 45 } - color = "[TooltipInfo.GetTintColor]" - } - - vbox = { - margin_right = 10 - margin_left = 3 - - text_single = { - datacontext = "[Character.GetFaith]" - layoutpolicy_horizontal = expanding - text = "FAITH_COOLTIP_WINDOW" - align = nobaseline - - tooltipwidget = { faith_tooltip_click = {} } - - button_normal = { - size = { 100% 100% } - onclick = "[OpenGameViewData( 'faith', Faith.GetID )]" - } - - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - text_single = { - datacontext = "[Character.GetCulture]" - layoutpolicy_horizontal = expanding - text = "CULTURE_COOLTIP_WINDOW" - align = nobaseline - - button_normal = { - size = { 100% 100% } - onclick = "[OpenGameViewData( 'culture_window', Culture.GetID )]" - # shortcut = "innovations_window" - } - - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - hbox = { - name = "house" - datacontext = "[Character.GetHouse]" - margin = { 10 5 } - - coa_house_small = { - # has no effect, sadly... - # color = "[TooltipInfo.GetTintColor]" - - container = { - name = "characters_status_in_house" - parentanchor = bottom|right - - icon = { - name = "bastard" - visible = "[Not(Character.IsLegitimateMemberOfHouse)]" - framesize = { 40 40 } - frame = 4 - size = { 25 25 } - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "CV_TT_BASTARD" - color = "[TooltipInfo.GetTintColor]" - } - - icon = { - name = "head_icon" - size = { 20 20 } - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)no'), '(int32)9')]" - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)no')]" - tooltip = "[Character.GetDynastyHeadTooltip]" - color = "[TooltipInfo.GetTintColor]" - } - } - } - - text_multi = { - visible = "[Character.HasDynasty]" - margin = { 5 0 } - text = "HOUSE_VIEW_NAME_WITH_HOUSE" - max_width = 100 - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - hbox = { - visible = "[Character.HasLandedTitles]" - minimumsize = { 0 82 } - spacing = 5 - - layoutpolicy_horizontal = expanding - - widget = { - size = { 52 82 } - - coa_realm_small_crown = { - name = "realm_flag" - parentanchor = bottom - - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - realm_name_and_type_vbox = { - datacontext = "[Character.GetPrimaryTitle]" - margin_top = 24 - } - } - - block "extra_info" { } - - # Keep this here for now, may want something in character view - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - text = "[Character.GetHeirToDesc]" - } - - # mostly for pope - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_BIRTH_NAME_TOOLTIP" - visible = "[Character.HasRegnalName]" - } - - spacer = { - size = { 10 10 } - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - block "interaction_info" { } - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - text = "[Character.GetDebugTooltip]" - visible = "[InDebugMode]" - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_KILLER_TOOLTIP" - visible = "[And( InDebugMode, Character.GetKiller.IsValid )]" - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - raw_text = "[GetAnimationTooltip( PdxGuiWidget.Self, Character.Self )]" - visible = "[ShouldShowAnimationInfo]" - } - - hbox = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - text_single = { - text = "DNA_MODIFIERS_LINK" - - fonttintcolor = "[TooltipInfo.GetTintColor]" - - tooltipwidget = { - container = { - name = "DnaModifierTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - button_copy = { - size = { 52 52 } - - onclick = "[Character.CopyDnaAccessoryToClipboard]" - raw_tooltip = "Copy DNA Modifiers" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "DNA_MODIFIERS" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "description_text" - { - max_width = 600 - text = "[Character.GetDnaAccessoryTooltip]" - } - } - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - text = "PORTRAIT_ANIMATION_LINK" - - fonttintcolor = "[TooltipInfo.GetTintColor]" - - tooltipwidget = { - container = { - name = "PortraitAnimationTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - button_copy = { - size = { 52 52 } - - onclick = "[Character.CopyPortraitAnimationToClipboard]" - raw_tooltip = "Copy Animation Data" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "PORTRAIT_ANIMATION_TITLE" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "description_text" - { - max_width = 600 - text = "[Character.GetPortraitAnimationTooltip( PdxGuiWidget.Self )]" - } - } - } - } - } - - expand = {} - } - } - - ## NULL CHARACTER - vbox = { - visible = "[Not( Character.IsValid )]" - - cooltip_paragraph = { - block "portrait_button_no_character_text" - { - text = "CHARACTER_TOOLTIP_NO_PORTRAIT" - } - } - } - } - } - - type royal_court_character_tooltip = widget - { - name = "royal_court_character_tooltip" - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - alpha = 0.8 - - block "bg_visible" - { - visible = yes - } - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 15 } - margin_top = 3 - maximumsize = { 600 -1 } - - vbox = { - name = "personal_info" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - #### NAME #### - text_multi = { - name = "character_name" - text = "CHARACTER_TT_NAME" - default_format = "#high" - using = Font_Size_Medium - max_width = 335 - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - #### RELATION #### - text_single = { - name = "character_relation_to_you" - max_width = 335 - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - align = nobaseline - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - #### AGE #### - text_single = { - name = "character_age" - max_width = 335 - text = "CHARACTER_TT_AGE" - align = nobaseline - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - expand = {} - } - - vbox_character_debug_tooltip = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - visible = "[ShouldShowAnimationInfo]" - - #### Animation #### - text_single = { - name = "debug_animation_info" - max_width = 335 - raw_text = "[RoyalCourtWindow.GetAnimationInfo]" - align = nobaseline - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - block "interaction_info" { } - } - } - } - } - - type cooltip_paragraph = textbox { - - name = "cooltip_paragraph" - layoutpolicy_horizontal = expanding - using = DefaultTooltipText - fonttintcolor = "[TooltipInfo.GetTintColor]" - multiline = yes - alwaystransparent = no - max_width = 400 - } - - type container_character_tooltip = container - { - alwaystransparent = no - - using = DefaultTooltipBackground - - flowcontainer = { - direction = vertical - - widget = { - name = "portrait area" - size = { 100% 210 } - - background = { - using = Background_Area_Dark - margin = { -3 -3 } - margin_bottom = 10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - datacontext = "[GetIllustration( 'character_view_bg' )]" - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - #alpha = 0.7 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - alpha = 0.7 - } - } - - portrait_torso = { - name = "char" - parentanchor = bottom|hcenter - - blockoverride "portrait_button_template_tooltip" {} - } - } - - container = { - cooltip_type = { - blockoverride "bg_visible" { - visible = no - } - - blockoverride "char_tooltip_opinion" - { - # don't show opinion again - } - } - } - } - } - - type container_focus_cooltip = container { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[FocusType.GetNameNoTooltip]" - } - - blockoverride "description_text" { - text = "FOCUS_TOOLTIP_TEXT_PLAYER" - } - - blockoverride "concept_link" { - text = [focus|E] - } - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - texture = "[FocusType.GetIcon]" - size = { 35 35 } - - using = Master_Button_Modify_Texture - } - } - } - } - } - - type widget_maa_type_container_tooltip = widget - { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 8 8 } - margin_bottom = 16 - spacing = 4 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 4 } - - background = { - name = "header" - using = Background_Area_Dark - margin = { 5 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 40 40 } - texture = "[MenAtArmsType.GetIcon]" - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - align = top|hcenter - text = "[MenAtArmsType.GetNameNoTooltip]" - maximumsize = { 400 -1 } - - using = Font_Type_Flavor - using = Font_Size_Big - } - - spacer = { - size = { 40 40 } - } - } - } - - widget = { - minimumsize = { 294 174 } - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - background = { - name = "image" - - block "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]" - } - fittype = CenterCrop - - using = Mask_Rough_Edges - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 0 2 } - - margin_left = 10 - tooltip = "MV_CREATE_REGIMENT_MAX_SIZE_TT" - using = tooltip_ne - - icon = { - name = "icon_soldier" - texture = "[MenAtArmsType.GetIcon]" - size = { 30 30 } - } - - text_label_left = { - name = "soldier count" - text = "MV_CREATE_REGIMENT_SIZE" - default_format = "#high" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - expand = {} - - } - - } - } - - vbox = { - layoutpolicy_horizontal = growing - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 2 - - ### INFO TEXT - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "MEN_AT_ARMS_TYPE_TOOLTIP_CREATION_COST" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[MenAtArmsType.GetReinforcementCostString( GetPlayer )]" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[MenAtArmsType.GetFullStrengthMaintenanceCostForPlayerString]" - } - expand = {} - } - - hbox = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "[Regiment.GetProvisionsCostString]" - } - expand = {} - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - vbox_maa_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - } - } - } -} - -widget = { - alwaystransparent = no - name = "MaaTypeTooltipDefault" - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 8 8 } - margin_bottom = 16 - spacing = 4 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 4 } - - background = { - name = "header" - using = Background_Area_Dark - margin = { 5 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 40 40 } - texture = "[MenAtArmsType.GetIcon]" - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - align = top|hcenter - text = "[MenAtArmsType.GetNameNoTooltip]" - maximumsize = { 400 -1 } - - using = Font_Type_Flavor - using = Font_Size_Big - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - spacer = { - size = { 40 40 } - } - } - } - - widget = { - minimumsize = { 352 208 } - layoutpolicy_horizontal = expanding - - vbox = { - margin = { 0 5 } - - background = { - name = "image" - texture = "[MenAtArmsType.GetHorizontalImage]" - fittype = CenterCrop - - using = Mask_Rough_Edges - } - - expand = {} - - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 0 2 } - - margin_left = 10 - tooltip = "MV_CREATE_REGIMENT_MAX_SIZE_TT" - using = tooltip_ne - - icon = { - name = "icon_soldier" - texture = "[MenAtArmsType.GetIcon]" - size = { 30 30 } - } - - text_label_left = { - name = "soldier count" - text = "MV_CREATE_REGIMENT_SIZE" - default_format = "#high" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - expand = {} - - } - - } - } - - vbox = { - layoutpolicy_horizontal = growing - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 2 - - ### INFO TEXT - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "MEN_AT_ARMS_TYPE_TOOLTIP_CREATION_COST" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[MenAtArmsType.GetReinforcementCostString( GetPlayer )]" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[MenAtArmsType.GetFullStrengthMaintenanceCostForPlayerString]" - } - - expand = {} - } - - hbox = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "[MenAtArmsType.GetProvisionsCostString]" - } - expand = {} - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - } - } - - datacontext = "[GetPlayer]" -} - -container = { - alwaystransparent = no - name = "MaaTypeTooltipSpecific" - using = regiment_container_tooltip - datacontext = "[Regiment.GetMAAType]" - datacontext = "[Regiment.GetOwner]" -} - -template regiment_container_tooltip -{ - widget = { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 8 8 } - margin_bottom = 16 - spacing = 4 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 4 } - - background = { - name = "header" - using = Background_Area_Dark - margin = { 5 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 40 40 } - texture = "[Regiment.GetMAAType.GetIcon]" - } - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - align = top|hcenter - text = "[Regiment.GetNameNoTooltip]" - maximumsize = { 400 -1 } - - using = Font_Type_Flavor - using = Font_Size_Big - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - coa_title_small = { - datacontext = "[Regiment.GetOwningTitle]" - visible = "[Title.IsValid]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - widget = { - minimumsize = { 294 174 } - datacontext = "[Regiment.GetMAAType]" - - vbox = { - margin = { 0 5 } - - background = { - name = "image" - texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]" - using = Mask_Rough_Edges - fittype = CenterCrop - } - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - text_label_right = { - text = "[SelectLocalization(Regiment.IsRaised, 'MAA_RAISED', 'MAA_UNRAISED')]" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = {10 0} - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - margin = { 0 2 } - - hbox = { - margin_left = 10 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 30 30 } - } - - text_label_left = { - text = "[Regiment.BuildCurrentRegimentCountString]" - default_format = "#high" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - expand = {} - - text_label_right = { - text = "REGIMENT_CURRENT_SIZE" - - default_format = "#high" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = {10 0} - } - - } - } - } - } - - vbox = { - datacontext = "[Regiment.GetMAAType]" - layoutpolicy_horizontal = growing - - hbox_maa_location = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Regiment.IsRegular]" - margin = { 20 10 } - spacing = 2 - - ### INFO TEXT - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_REINFORCEMENT_COST_ENTRY" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_MAINTENANCE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - layoutpolicy_horizontal = expanding - text = "[MenAtArmsType.GetProvisionsCostString]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_active_regiment_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - } - - block "extra_info" {} - } - } -} - -template regiment_container_text_tooltip -{ - widget = { - alwaystransparent = no - using = GeneralTooltipSetup - datacontext = "[Regiment.GetMAAType]" - datacontext = "[Regiment.GetOwner]" - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 8 8 } - margin_bottom = 16 - spacing = 4 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 4 } - - background = { - name = "header" - using = Background_Area_Dark - margin = { 5 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 40 40 } - texture = "[Regiment.GetMAAType.GetIcon]" - } - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - align = top|hcenter - text = "[Regiment.GetNameNoTooltip]" - maximumsize = { 400 -1 } - - using = Font_Type_Flavor - using = Font_Size_Big - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - coa_title_small = { - datacontext = "[Regiment.GetOwningTitle]" - visible = "[Title.IsValid]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_top = 5 - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "[SelectLocalization(Regiment.IsRaised, 'MAA_RAISED', 'MAA_UNRAISED')]" - using = Font_Size_Medium - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - icon = { - name = "icon_maa" - texture = [MenAtArmsType.GetIcon] - size = { 30 30 } - } - text_single = { - text = "[Regiment.BuildCurrentRegimentCountString]" - default_format = "#high" - # using = Font_Size_Medium - } - - - } - - # expand = {} - text_single = { - raw_text = ", " - - default_format = "#high" - # using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - text = "REGIMENT_CURRENT_SIZE" - - default_format = "#high" - # using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - } - } - - vbox = { - datacontext = "[Regiment.GetMAAType]" - layoutpolicy_horizontal = growing - - hbox_maa_location = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Regiment.IsRegular]" - spacing = 2 - margin = { 15 5 } - - ### INFO TEXT - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_REINFORCEMENT_COST_ENTRY" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_MAINTENANCE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - layoutpolicy_horizontal = expanding - text = "[Regiment.GetProvisionsCostString]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_active_regiment_stats_numbers = { - layoutpolicy_horizontal = expanding - } - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - } - - block "extra_info" {} - } - } -} - -template unit_icon_item_tooltip { - - widget = { - alwaystransparent = no - using = GeneralTooltipSetup - datacontext = "[UnitItem.GetArmy]" - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 5 5 } - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 5 0 } - margin_top = 5 - - background = { - using = Background_Header - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - widget = { - size = { 60 60 } - - coa_realm_small = { - datacontext = "[UnitItem.GetOwner]" - parentanchor = center - position = { 0 5 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - name = "title" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - align = top|left - raw_text = "[Army.GetNameNoTooltip] ([UnitItem.GetTooltipHeader])" - fonttintcolor = "[TooltipInfo.GetTintColor]" - - margin_top = 5 - margin_right = 20 - } - - hbox = { - layoutpolicy_horizontal = growing - - hbox_soldiers_and_quality_small_core = { - datacontext = "[Army.GetComposition]" - spacing = 5 - } - - expand = { - layoutpolicy_horizontal = growing - } - } - - expand = { - layoutpolicy_vertical = growing - } - } - - expand = { - layoutpolicy_horizontal = growing - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "troop_breakdown" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 10 10 } - margin_left = 15 - - background = { - using = Background_Area - } - - dynamicgridbox = { - name = "troops" - datamodel = "[CalculateBreakdownItems(Army.Self)]" - - datamodel_wrap = 4 - flipdirection = yes - - item = { - widget = { - hbox = { - margin_right = 15 - set_parent_size_to_minimum = yes - tooltip = "ARMY_VIEW_TROOP_TT" - spacing = 4 - - icon = { - name = "men_at_arms_icon" - visible = "[TroopItem.IsMaa]" - size = { 35 35 } - texture = "[TroopItem.GetRegiment.GetRegiment.GetMAAType.GetIcon]" - } - - widget = { - size = { 35 35 } - name = "levies_icon" - visible = "[TroopItem.IsLevies]" - - icon = { - # the levies icon is larger than the MaA icons so it looks better if smaller - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - parentanchor = center - } - } - - icon = { - name = "knight_icon" - visible = "[TroopItem.IsKnight]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_knight_small.dds" - } - - text_single = { - layoutpolicy_horizontal = growing - text = "[TroopItem.GetCount|*V]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - } - - highlight_icon = { - name = "levies_icon" - visible = "[TroopItem.IsLevies]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_levies.dds" - } - - highlight_icon = { - name = "knight_icon" - visible = "[TroopItem.IsKnight]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_knight_small.dds" - } - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - - hbox = { - name ="commander" - datacontext = "[Army.GetCommander]" - layoutpolicy_horizontal = expanding - margin = { 15 10 } - - background = { - using = Background_Area - } - - hbox = { - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_TOOLTIP_COMMANDER" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - tooltip = "[Character.GetCommanderAdvantageDesc]" - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_commander_advantage.dds" - size = { 30 30 } - } - text_single = { - text = "ARMY_TOOLTIP_COMMANDER_ADVANTAGE" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - text_single = { - name = "no_troop_commander" - visible = "[Not( Character.IsValid )]" - layoutpolicy_horizontal = expanding - text = "ARMY_TOOLTIP_NO_COMMANDER" - align = nobaseline - - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[Army.IsRaidArmy]" - - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - background = { - using = Background_Area - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_LOOT_INFO" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - vbox = { - name = "statuses" - layoutpolicy_horizontal = expanding - - hbox = { - visible = "[UnitItem.IsRulerCommander]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 2 - - icon = { - texture = "gfx/interface/icons/map_icons/commander_is_leader.dds" - size = { 24 24 } - } - - text_single = { - datacontext = "[UnitItem.GetUnitPortraitCharacter]" - layoutpolicy_horizontal = expanding - text = "COMMANDER_IS_LEADER" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[UnitItem.HasDisembarkPenalty]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 2 - - icon = { - name = "sea_sickness_icon" - size = { 24 24 } - texture = "gfx/interface/icons/map_icons/army_icon_disembarked.dds" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Army.GetEmbarkInfoForTooltip]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[UnitItem.IsGathering]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 2 - - icon = { - texture = "gfx/interface/icons/map_icons/army_icon_gathering.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_TOOLTIP_IS_GATHERING" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[And( Army.IsRaidArmy, Army.IsLootCapped)]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 2 - - tooltip = ARMY_AT_LOOT_CAP_TOOLTIP - - icon = { - texture = "gfx/interface/icons/map_icons/army_icon_at_loot_cap.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_AT_LOOT_CAP" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[UnitItem.IsRetreating]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 2 - - icon = { - texture = "gfx/interface/icons/map_icons/army_icon_retreating.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_RETREATING" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - # #-------------------------------------- - # | ¤ Attrition: 1%/month - # | & Well supplied (100) -10/month - # | -> Province, 17 days left (29 May yyyy) - # | () Movement locked - # #-------------------------------------- - - vbox = { - name = "involved_army_details" - visible = "[Not(Army.IsNeutralToPlayer)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - margin = { 10 5 } - - hbox = { - name = "involved_army_attrition_warning" - visible = "[Army.IsArmySufferingFromAttrition]" - layoutpolicy_horizontal = expanding - - tooltip = "ARMY_ATTRITION_TT" - spacing = 2 - - icon = { - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "attrition" - text = "ARMY_TOOLTIP_ATTRITION" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - name = "involved_army_supply_status" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Army.GetSupplyInfoForTooltip]" - tooltip = "[Army.GetSupplyStateTooltip]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "involved_army_movement" - visible = "[Army.IsMoving]" - layoutpolicy_horizontal = expanding - spacing = 2 - - icon = { - name = "unit_moving" - visible = "[Not(UnitItem.IsRetreating)]" - texture = "gfx/interface/icons/combat_effects/moving_army.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Army.GetMovementInfoForTooltip]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - name = "involved_army_movement_lock" - visible = "[UnitItem.IsMovementLocked]" - layoutpolicy_horizontal = expanding - spacing = 2 - - icon = { - texture = "gfx/interface/icons/map_icons/movement_locked.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_TOOLTIP_IS_MOVEMENT_LOCKED" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - block "extra_unit_info" {} - - # PLAYER FACING AI INFO - vbox = { - visible = "[Or( Army.IsControlledByCompanionAI, UnitItem.IsUnitItemAlly)]" - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin = { 15 5 } - layoutpolicy_horizontal = expanding - - hbox = { - visible = "[Army.IsControlledByCompanionAI]" - layoutpolicy_horizontal = expanding - spacing = 2 - - army_automation_on = { - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_IS_AUTOMATED" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - visible = "[UnitItem.IsUnitItemAlly]" - layoutpolicy_horizontal = expanding - spacing = 2 - - icon = { - texture = "gfx/interface/icons/message_feed/alliance.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ARMY_IS_ALLY" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - spacing = 2 - - icon_ai_order = {} - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "[Army.GetAIOrderDesc]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - } - - # AI DEBUG INFO - vbox = { - visible = "[And( InDebugMode, Not(ReleaseMode) )]" - layoutpolicy_horizontal = expanding - - text_single = { - # Deliberately unlocalized since this is debug functionality - layoutpolicy_horizontal = expanding - raw_text = "DEBUG:" - align = nobaseline - default_format = "#debug" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - - text_single = { - # Deliberately unlocalized since this is debug functionality - layoutpolicy_horizontal = expanding - raw_text = "Army: [Army.GetArmyId] Unit: [Army.GetUnitId]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - # Deliberately unlocalized since this is debug functionality - layoutpolicy_horizontal = expanding - raw_text = "#E AI Coordinator: [Army.GetAiCoordinatorId]#!" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - - raw_tooltip = "Stack: [Army.GetAiUnitStackId] Sub: [Army.GetAiSubUnitStackId]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "[Army.GetDebugAIInfo]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } -} - - - - -template unit_icon_tooltip { - container = { - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - alwaystransparent = no - - flowcontainer = { - datamodel = "[UnitMapIcon.GetUnitItems]" - visible = "[GreaterThan_int32(GetDataModelSize(UnitMapIcon.GetUnitItems), '(int32)1')]" - direction = vertical - spacing = 5 - margin = { 20 10 } - - text_single = { - text = "ARMY_ICON_HEADER" - margin_bottom = 4 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - item = { - flowcontainer = { - spacing = 5 - ignoreinvisible = yes - - container_allied_unit_icon_item = { - blockoverride "unit_items" {} - blockoverride "multi_select" {} - blockoverride "onclick" { - onclick = "[UnitMapIcon.OnClickArmy( Army.Self )]" - } - min_width = 120 - parentanchor = vcenter - } - - container_hostile_unit_icon_item = { - blockoverride "unit_items" {} - blockoverride "multi_select" {} - min_width = 120 - } - - text_single = { - text = "ARMY_UNIT_COOLTIP_NAME" - align = nobaseline - margin_top = 4 - margin_left = 16 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - tooltipwidget = { - using = unit_icon_item_tooltip - } - - using = tooltip_es - } - } - } - - container = { - visible = "[EqualTo_int32(GetDataModelSize(UnitMapIcon.GetUnitItems), '(int32)1')]" - datamodel = "[UnitMapIcon.GetUnitItems]" - - item = { - using = unit_icon_item_tooltip - } - } - } -} - -container = { - name = "UnitTooltipWidget" - using = unit_icon_item_tooltip -} - -template faith_tooltip_click_default_extra_info -{ - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "FAITH_ITEM_TOOLTIP" - margin = { 10 0 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } -} - -template faith_tooltip_core_tenents_extra_info -{ - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_label_center = { - text = "FAITH_CORE_TENETS_HEADING" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - name = "doctrines" - datamodel = "[Faith.GetDoctrines]" - spacing = 10 - - item = { - name = "doctrine_item" - - container_tenet_item = { - visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )]" - tooltip = FAITH_WINDOW_DOCTRINE_TOOLTIP_WITH_FAITH - } - } - } -} - -template faith_tooltip_ruler_designer_extra_info -{ - spacer = { - size = { 0 4 } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_single = { - text = RULER_DESIGNER_LIST_FAITH_ENTRY_SELECT_TOOLTIP - fonttintcolor = "[TooltipInfo.GetTintColor]" - } -} - -types HoldingTooltips -{ - type holding_tooltip = widget - { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 10 } - margin_bottom = 20 - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Header - margin = { 12 4 } - margin_bottom = 12 - } - - background = { - using = Background_Header_Pattern - margin = { 12 4 } - margin_bottom = 12 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - text = "[Holding.GetNameNoTooltip]" - align = top - using = Font_Type_Flavor - using = Font_Size_Big - min_width = 300 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - text = "[holding|E]" - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - margin = { 5 0 } - - vbox = { - visible = "[Not(Holding.IsEmpty)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_TYPE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_TITLE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_HOLDER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[Holding.GetProvince.GetTitle.IsLeasedOut]" - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_LEASED" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - text_single = { - visible = "[Holding.IsEmpty]" - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_EMPTY" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Holding.GetTooltip]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - layoutpolicy_horizontal = growing - spacing = 10 - datacontext = "[Holding.GetProvince.GetTerrain]" - tooltipwidget = terrain_tooltip - using = tooltip_ws - - text_single = { - text = "HOLDING_TT_TERRAIN" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - icon = { - name = "terrain" - texture = "[Terrain.GetIcon]" - size = { 35 35 } - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_TT_SUPPLY" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - block "extra_info" {} - } - } - } - - type holding_tooltip_click = holding_tooltip - { - blockoverride "extra_info" { - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_CLICK_TOOLTIP" - margin = { 0 10 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } -} - -types FaithTooltips -{ - type faith_tooltip = widget - { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 10 10 } - margin_bottom = 15 - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 5 } - - background = { - using = Background_Header - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - icon = { - size = { 60 60 } - texture = "[Faith.GetIcon]" - color = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - text = "FAITH_COOLTIP_GETNAME" - align = top - using = Font_Type_Flavor - using = Font_Size_Big - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - text_single = { - visible = "[And( Not( Faith.GetReligion.HasPaganRoots ), Not( Faith.IsUnreformed ) )]" - layoutpolicy_horizontal = expanding - text = "FAITH_VIEW_SUBHEADING" - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - text_single = { - visible = "[Faith.IsUnreformed]" - layoutpolicy_horizontal = expanding - text = "FAITH_VIEW_UNREFORMED_SUBHEADING" - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - text_single = { - visible = "[And( Faith.GetReligion.HasPaganRoots, Not( Faith.IsUnreformed ) )]" - layoutpolicy_horizontal = expanding - text = "FAITH_VIEW_REFORMED_SUBHEADING" - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = { - layoutpolicy_vertical = growing - } - } - expand = { - layoutpolicy_horizontal = growing - } - } - } - - vbox = { - spacing = 5 - margin = { 10 0 } - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[And( GetPlayer.IsValid, Not(ObjectsEqual( GetPlayer.GetFaith, Faith.Self )))]" - - text_single = { - name = "our_view" - layoutpolicy_horizontal = expanding - text = FAITH_VIEW_OUR_VIEW - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - name = "their_view" - layoutpolicy_horizontal = expanding - text = FAITH_VIEW_THEIR_VIEW - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - fervor_container_vbox = {} - - expand = {} - } - - - - text_single = { - layoutpolicy_horizontal = growing - visible = "[Faith.HasDoctrineByKey( 'doctrine_no_head' )]" - text = "FAITH_TOOLTIP_DOCTRINE_NO_HEAD_OF_FAITH" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = growing - visible = "[And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), Not( Faith.GetReligiousHead.IsValid ) ) ]" - text = "FAITH_TOOLTIP_DOCTRINE_VACANT_HEAD_OF_FAITH" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = growing - visible = "[And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), Faith.GetReligiousHead.IsValid ) ]" - text = "FAITH_TOOLTIP_DOCTRINE_HEAD_OF_FAITH" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = { 0 5 } - } - - divider_light = { - layoutpolicy_horizontal = growing - } - - text_multi = { - max_width = 400 - margin = { 0 5 } - text = "[Faith.GetFlavorDesc]" - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - block "extra_info" {} - } - } - } - - type faith_tooltip_click = faith_tooltip - { - blockoverride "extra_info" - { - using = faith_tooltip_click_default_extra_info - } - } - - type faith_tooltip_core_tenents = faith_tooltip - { - blockoverride "extra_info" - { - using = faith_tooltip_core_tenents_extra_info - } - } - - type faith_tooltip_ruler_designer = faith_tooltip - { - blockoverride "extra_info" - { - using = faith_tooltip_core_tenents_extra_info - using = faith_tooltip_ruler_designer_extra_info - } - } -} - -container = { - alwaystransparent = no - name = "FaithTooltip" - faith_tooltip = {} -} - -template religion_tooltip { - object_tooltip_pop_out = { - blockoverride "title_text" { - text = "RELIGION_TITLE_TEXT" - } - - blockoverride "concept_link" { - text = [religion|E] - } - - blockoverride "description_text" { - text = "[Religion.GetFlavorDesc]" - } - } -} - -container = { - alwaystransparent = no - name = "ReligionTooltip" - using = religion_tooltip -} - -container = { - name = "ReligionFamilyTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "title_text" { - margin = { 0 8 } - text = "[ReligionFamily.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [religious_family|E] - } - - blockoverride "description_text" { - text = "RELIGION_FAMILY_TOOLTIP" - } - } -} - -container = { - name = "SchemeTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Scheme.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [scheme|E] - } - - blockoverride "description_text" { - text = "[Scheme.GetTypeDescription]" - } - } -} - -container = { - name = "FactionTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Faction.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [faction|E] - } - - blockoverride "description_text" { - text = "[Faction.GetDescription]" - } - } -} - - -container = { - alwaystransparent = no - name = "DynastyTooltip" - using = DynastyTooltip -} - -template DynastyTooltip { - object_tooltip_pop_out = { - - blockoverride "header_additions" { - margin_top = 6 - margin_bottom = -10 - - coa_dynasty_small = { - blockoverride "coa_tooltip" {} - } - } - - blockoverride "title_text" { - #margin = { 0 8 } - margin_right = 16 - text = "[dynasty|E] [Dynasty.GetNameNoTooltip]" - align = nobaseline - } - - blockoverride "concept_link" { - text = [dynasty|E] - } - - blockoverride "extra_data" { - cooltip_paragraph = { - text = "DYNASTY_VIEW_MY_DYNASTY" - visible = "[Dynasty.IsMyDynasty(GetPlayer)]" - } - - cooltip_paragraph = { - datacontext = [Dynasty] - text = "DYNASTY_TT_DYNAST" - } - - cooltip_paragraph = { - datacontext = [Dynasty] - text = "DYNASTY_TT_MEMBERS" - } - - cooltip_paragraph = { - datacontext = [Dynasty] - text = "DYNASTY_TT_SPLENDOR_LEVEL" - } - - cooltip_paragraph = { - text = "DYNASTY_VIEW_PRESTIGE" - } - } - } -} - -container = { - alwaystransparent = no - name = "BuildingTooltip" - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Building.GetNameNoTooltip]" - } - blockoverride "subtitle_text" { - text = "[Building.GetTypeName]" - default_format = "#weak" - } - blockoverride "concept_link" { - text = "[building|E]" - } - blockoverride "description_text" { - text = "BUILDING_TOOLTIP_TEXT" - } - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - texture = "[Building.GetTypeIcon]" - size = { 75 65 } - - using = Master_Button_Modify_Texture - } - } - } - } -} - -container = { - name = "ArmyTooltip" - using = unit_icon_item_tooltip -} - -container = { - alwaystransparent = no - name = "HoldingTooltipDefault" - holding_tooltip = {} -} - -types Cooltips -{ - type LandedTitleTooltipBase = object_tooltip_pop_out { - blockoverride "header_additions" { - margin_top = -4 - - coa_title_small_crown = { - size = { 40 50 } - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - blockoverride "title_text" { - text = "[Title.GetNameWithUnderlyingNoTooltip|U]" - } - - blockoverride "subheading" { - margin_left = 6 - - vbox_title_type_text = { - layoutpolicy_horizontal = expanding - } - } - - blockoverride "description_text" { - text = "[Title.GetCOADefaultTooltip]" - } - - blockoverride "concept_link" { - text = [title|E] - } - - blockoverride "extra_data" { - textbox = { - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - block "highlight_text" {} - } - } - } -} - -template LandedTitleTooltip { - LandedTitleTooltipBase = { - blockoverride "input_info_text" { - text = "[Title.GetClickInfo]" - } - } -} - -template LandedTitleTooltipTextLink { - LandedTitleTooltipBase = { - blockoverride "input_info_text" { - text = "CLICK_TO_VIEW" - } - } -} - -template ProvinceTooltip { - LandedTitleTooltipBase = { - datacontext = "[Province.GetCoATitle]" - blockoverride "input_info_text" { - text = "CLICK_TO_VIEW_HOLDING" - } - } -} - -template CountyTitleTooltipLanguage -{ - using = LandedTitleTooltip - blockoverride "highlight_text" - { - text = "COUNTY_LANGUAGE_TOOLTIP" - } -} - -container = { - alwaystransparent = no - name = "LandedTitleTooltip" - using = LandedTitleTooltipTextLink -} - -container = { - alwaystransparent = no - name = "ProvinceTooltip" - using = ProvinceTooltip -} - -container = { - name = "GovernmentTypeTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - header_icon = { - blockoverride "header_texture" - { - texture = "[GovernmentType.GetIcon]" - } - } - } - blockoverride "title_text" { - margin = { 0 8 } - text = "[GovernmentType.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [government|E] - } - blockoverride "description_text" { - text = GOVERNMENT_TYPE_DESCRIPTION - } - } -} - -container = { - name = "ObligationlevelTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[ObligationLevel.GetName]" - } - - blockoverride "concept_link" { - text = [vassal_contract|E] - } - - blockoverride "above_description_text" { - text = "[ObligationLevel.GetEffectText]" - } - - blockoverride "description_text" { - text = "[ObligationLevel.GetDesc]" - } - } -} - -types StaticModifierTooltipTypes -{ - type static_modifier_tooltip = object_tooltip_pop_out { - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 32 32 } - texture = "[StaticModifier.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - visible = "[StaticModifier.HasValidIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[StaticModifier.GetName]" - } - - blockoverride "concept_link" { - text = "" - } - - blockoverride "description_text" { - block "description_text_data" { - text = "[StaticModifier.GetDescWithEffects]" - } - } - } - - type scaled_static_modifier_tooltip = object_tooltip_pop_out { - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 32 32 } - texture = "[StaticModifier.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[StaticModifier.GetName]" - } - - blockoverride "concept_link" { - text = "" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - block "description_text_data" { - text = "[StaticModifier.GetDescOnly(StaticModifierTooltipData.GetMainLocalizationKey, StaticModifierTooltipData.GetMultiplier)]" - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - block "effects_datamodel" { - datamodel = "[StaticModifier.GetEffectsDesc(StaticModifierTooltipData.GetEffectLocaizationKey, StaticModifierTooltipData.GetMultiplier)]" - } - item = { - textbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_left = 10 - margin_right = 5 - margin_bottom = 10 - using = DefaultTooltipText - using = Background_Area - text = "[CString.GetString]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - - block "expiration_date" {} - - # Things like "click to X", hotkeys etc - textbox = { - name = "input_info" - layoutpolicy_horizontal = expanding - margin_top = 10 - using = DefaultTooltipText - multiline = yes - block "input_info_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} - -container = { - name = "StaticModifierTooltip" - alwaystransparent = no - - static_modifier_tooltip = {} -} - -container = { - name = "ScaledStaticModifierTooltip" - alwaystransparent = no - - scaled_static_modifier_tooltip = {} -} - -types LawTooltipTypes -{ - type law_tooltip_header_additions = hbox { - margin_right = 5 - - icon = { - datacontext = "[Law.GetLawGroup]" - visible = "[Law.HasIcon]" - size = { 60 60 } - - texture = "[Law.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - - modify_texture = { - visible = "[Not( Or( EqualTo_string( LawGroup.GetKey, 'camp_purpose'), EqualTo_string( LawGroup.GetKey, 'nomadic_authority') ) )]" - - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - spritetype = corneredtiled - } - } - } - - type pass_law_tooltip = container { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" { - law_tooltip_header_additions = {} - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "PASS_LAW_TOOLTIP_TITLE" - } - - blockoverride "subtitle_text" { - text = "LAW_TOOLTIP_SUBTITLE" - } - - blockoverride "concept_link" { - block "concept_link" { - text = "[law|E]" - } - } - - blockoverride "extra_data" { - cooltip_paragraph = { - text = "[GuiLaw.GetCanEnactDescription]" - max_width = 440 - } - - cooltip_paragraph = { - text = "[Law.GetEffectDescription]" - max_width = 440 - } - - cooltip_paragraph = { - text = "[GuiLaw.GetEnactEffectDescription]" - max_width = 440 - } - - cooltip_paragraph = { - visible = "[And( GuiLaw.HasCost, Not( GuiLaw.IsEnacted ) )]" - text = "LAW_COST" - max_width = 440 - - tooltip = "[GuiLaw.GetCostDescription]" - } - - cooltip_paragraph = { - visible = "[GuiLaw.CanEnact]" - text = "CLICK_TO_PASS_LAW" - max_width = 440 - } - } - } - } - - type general_law_tooltip = object_tooltip_pop_out { - blockoverride "header_additions" { - law_tooltip_header_additions = {} - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "LAW_TOOLTIP_TITLE" - } - - blockoverride "subtitle_text" { - text = "LAW_TOOLTIP_SUBTITLE" - } - - blockoverride "concept_link" { - text = [law|E] - } - - blockoverride "extra_data" { - cooltip_paragraph = { - text = "[Law.GetEffectDescription]" - } - } - } -} - -container = { - alwaystransparent = no - name = "LawTooltip" - general_law_tooltip = {} -} - -template terrain_tooltip { - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Terrain.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [terrain|E] - } - - blockoverride "description_text" { - text = "TERRAIN_DESCRIPTION" - } - } -} -container = { - alwaystransparent = no - name = "TerrainTooltip" - using = terrain_tooltip -} - - -template dynasty_house_tooltip { - object_tooltip_pop_out = { - datacontext = "[DynastyHouse]" - - blockoverride "header_additions" { - margin_right = 10 - margin_top = 5 - margin_left = -5 - - coa_house_small = { - blockoverride "coa_tooltip" {} - } - } - - blockoverride "title_text" - { - text = "HOUSE_TT_NAME" - } - - blockoverride "fontsize_min" { - fontsize_min = 13 - } - - blockoverride "subtitle_text" - { - text = "HOUSE_VIEW_MOTTO" - default_format = "#weak" - } - - blockoverride "multiline" { - multiline = yes - } - - blockoverride "max_width" - { - max_width = 280 - } - - blockoverride "concept_link" - { - text = [house|E] - } - - blockoverride "extra_data" - { - - cooltip_paragraph = { - name = "my_house" - visible = "[DynastyHouse.IsPlayerMember]" - text = "HOUSE_VIEW_PLAYER_IS_MEMBER" - } - - cooltip_paragraph = { - name = "house_head" - text = "DYNASTY_HOUSE_TT_HEAD_OF_HOUSE" - } - cooltip_paragraph = { - name = "living_members" - text = "DYNASTY_HOUSE_TT_LIVING_MEMBERS" - } - - cooltip_paragraph = { - name = "dynasty" - text = "DYNASTY_HOUSE_TT_DYNASTY" - } - cooltip_paragraph = { - name = "dynasty_level" - text = "DYNASTY_HOUSE_TT_DYNASTY_LEVEL" - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[DynastyHouse.GetCurrentHouseUnityStage]" - - visible = "[DynastyHouse.HasHouseUnity]" - - spacing = 5 - - text_single = { - text = "HOUSE_UNITY_VALUE_TT_TITLE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - icon = { - size = { 30 30 } - texture = "[HouseUnityStage.GetIcon]" - - tooltipwidget = { - house_unity_stage_tooltip = { - blockoverride "decisions_visibility" { - visible = "[DynastyHouse.IsPlayerMember]" - } - - blockoverride "decisions_datamodel" { - datamodel = "[GetDecisionsForCharacter(GetPlayer)]" - } - } - } - } - - text_single = { - text = "[DynastyHouse.GetHouseUnityValue|0]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - cooltip_paragraph = { - name = "click" - text = "VIEW_CLICK" - default_format = "#I" - } - } - } -} - -container = { - alwaystransparent = no - name = "DynastyHouseTooltip" - using = dynasty_house_tooltip -} - -### These templates can very likely be extended to most custom tooltips with header, blocker, effects, flavor, etc - -local_template era_innov_blockers -{ - minimumsize = { 100% 0 } - - block "eib_visible" - { - visible = yes - } - - text_multi = { - block "eib_text" - { - text = "..." - } - - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - } -} - -local_template era_innov_effects -{ - flowcontainer = { - name = "effects" - - minimumsize = { 100% 0 } - - direction = vertical - ignoreinvisible = yes - - text_single = { - text = "INNOVATION_ERA_TOOLTIP_EFFECTS" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - textbox = { - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - - block "eie_effects" - { - text = "..." - } - } - } -} - -# progress - -local_template era_innov_flavor -{ - textbox = { - name = "description" - - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - multiline = yes - default_format = "#F" - - block "eif_text" - { - text = "..." - } - } -} - -template culture_innovation_tooltip_no_context { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - margin = { 20 20 } - spacing = 15 - direction = vertical - ignoreinvisible = yes - - widget = { - name = "header" - size = { 500 60 } - - background = { - using = Background_Area_Dark - margin = { 15 10 } - } - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 500 0 } - set_parent_size_to_minimum = yes - - widget = { - size = { 90 60 } - icon = { - texture = "[CultureInnovationType.GetIcon]" - size = { 90 60 } - - using = Mask_Rough_Edges - } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - text = "[CultureInnovationType.GetName|T]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = right - text = "INNOVATION_TOOLTIP_TYPE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - container = { - using = era_innov_effects - - blockoverride "eie_label_visible" - { - visible = "[CultureInnovationType.HasEffects( GetPlayer.GetCulture, GetPlayer )]" - minimumsize = { 500 30 } - } - - - blockoverride "eie_effects" - { - text = "[CultureInnovationType.GetEffectsDesc( GetPlayer.GetCulture, GetPlayer )]" - } - } - - container = { - using = era_innov_flavor - - blockoverride "eif_text" { - text = "[CultureInnovationType.GetDescription]" - max_width = 500 - } - } - } - } -} - -template culture_innovation_tooltip { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - margin = { 20 20 } - spacing = 15 - direction = vertical - ignoreinvisible = yes - datacontext = "[CultureInnovation.GetType]" - - widget = { - name = "header" - size = { 500 60 } - - background = { - margin = { 20 20 } - - texture = "gfx/interface/skinned/tile_window_background_no_edge.dds" - alpha = 0.7 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/colors/white.dds" - blend_mode = overlay - alpha = 0.1 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_header.dds" - blend_mode = alphaMultiply - } - } - - background = { - margin = { 14 14 } - - texture = "gfx/interface/skinned/color_theme.dds" - spriteType = Corneredtiled - alpha = 1 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_header.dds" - blend_mode = alphaMultiply - } - } - - hbox = { - minimumsize = { 500 0 } - set_parent_size_to_minimum = yes - - widget = { - size = { 90 60 } - icon = { - texture = "[CultureInnovation.GetIcon]" - size = { 90 60 } - - using = Mask_Rough_Edges - } - - icon = { - visible = "[Not(CultureInnovation.CanGainProgress)]" - texture = "[CultureInnovation.GetIcon]" - tintcolor = { 0 0 0 0.5 } - size = { 90 60 } - - using = Mask_Rough_Edges - } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#T" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = right - text = "INNOVATION_TOOLTIP_TYPE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = { 5 5 } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = right - text = "INNOVATION_ERA_WITH_ERA_CONCEPT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - container = { - name = "fascination" - using = era_innov_blockers - visible = "[CultureInnovation.IsFascination]" - minimumsize = { 500 0 } - - background = { - using = Background_Area_Dark - margin = { 15 5 } - alpha = 0.6 - } - - blockoverride "eib_text" - { - text = "INNOVATION_FASCINATION_MARKER_TOOLTIP" - } - } - - container = { - name = "spread" - using = era_innov_blockers - visible = "[CultureInnovation.HasSpreadMarker]" - minimumsize = { 500 0} - - background = { - using = Background_Area_Dark - margin = { 15 5 } - alpha = 0.6 - } - - blockoverride "eib_text" - { - text = "INNOVATION_SPREAD_MARKER_TOOLTIP" - } - } - - container = { - name = "blocked_for_government" - using = era_innov_blockers - - blockoverride "eib_visible" - { - visible = "[CultureInnovation.GetCultureEra.GetType.IsInvalidForPlayerGovernment]" - } - - blockoverride "eib_text" - { - text = "CULTURE_WINDOW_ERA_INNOVATION_BLOCKED_FOR_PLAYER_GOVERNMENT" - } - } - - container = { - name = "blocker" - using = era_innov_blockers - - blockoverride "eib_visible" - { - visible = "[Not(CultureInnovation.CanGainProgress)]" - } - - blockoverride "eib_text" - { - text = "[CultureInnovation.GetCantGainProgressReason]" - } - } - - container = { - using = era_innov_effects - - blockoverride "eie_label_visible" - { - visible = "[CultureInnovationType.HasEffects( CultureInnovation.GetCulture, GetPlayer )]" - minimumsize = { 500 30 } - } - - - blockoverride "eie_effects" - { - text = "[CultureInnovationType.GetEffectsDesc( CultureInnovation.GetCulture, GetPlayer )]" - } - } - - flowcontainer = { - minimumsize = { 100% 0 } - direction = vertical - ignoreinvisible = yes - - text_single = { - text = "[CultureInnovation.GetInnovationState]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - progressbar_standard = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - size = { 300 25 } - - min = 0 - max = 100 - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - - text_single = { - parentanchor = hcenter|vcenter - widgetanchor = hcenter|vcenter - position = { 0 -2 } - text = "[CultureInnovation.GetProgress|%/0]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - - background = { - using = Background_Area - margin = { 10 0 } - } - } - } - - text_single = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - text = "INNOVATION_TOOLTIP_PROGRESS" - autoresize = yes - max_width = 500 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - flowcontainer = { - minimumsize = { 500 0 } - direction = vertical - ignoreinvisible = yes - name = "progress" - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - - background = { - using = Background_Area - margin = { 10 10 } - } - - widget = { size = { 0 5 } } - - text_multi = { - text = "INNOVATION_TOOLTIP_GAIN" - autoresize = yes - max_width = 500 - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - textbox = { - text = "[CultureInnovation.GetProgressGainBreakdownString]" - autoresize = yes - max_width = 500 - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - } - - widget = { size = { 0 5 } } - - textbox = { - text = "[CultureInnovation.GetProgressChanceBreakdownString]" - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - } - } - - container = { - using = era_innov_flavor - - blockoverride "eif_text" { - text = "[CultureInnovation.GetDescription]" - max_width = 500 - } - } - - block "AfterDescription" {} - } - } -} - -container = { - alwaystransparent = no - name = "CultureInnovationTooltip" - using = culture_innovation_tooltip -} - -template culture_era_tooltip { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - margin = { 20 20 } - spacing = 15 - direction = vertical - ignoreinvisible = yes - datacontext = "[CultureEra.GetType]" - - widget = { - size = { 500 50} - - background = { - using = Background_Area_Dark - margin = { 15 0 } - margin_top = 10 - } - - text_single = { - parentanchor = vcenter|left - text = "[CultureEra.GetNameNoTooltip]" - default_format = "#T" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - parentanchor = vcenter|right - text = "[era|E]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - text_single = { - visible = "[Not(CultureEra.IsActive)]" - text = "CULTURE_ERA_BLOCKED_BLOCKED_TILE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - container = { - name = "blockers" - using = era_innov_blockers - blockoverride "eib_visible" - { - visible = "[And(Not(CultureEra.IsActive), Not(CultureEra.CanGainProgress))]" - } - blockoverride "eib_text" - { - text = "[CultureEra.GetCantGainProgressReason]" - } - } - - - flowcontainer = { - name = "progress" - visible = "[And(Not(CultureEra.IsActive), CultureEra.CanGainProgress)]" - minimumsize = { 100% 0 } - direction = vertical - ignoreinvisible = yes - - text_single = { - text = "[CultureEra.GetProgressAndGainBreakdown]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - text_single = { - visible = "[CultureEra.IsActive]" - text = "CULTURE_ERA_TOOLTIP_REACHED" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - container = { - using = era_innov_effects - - blockoverride "eie_label_visible" - { - visible = "[CultureEraType.HasEffects( CultureEra.GetCulture, GetPlayer )]" - minimumsize = { 500 30 } - } - - - blockoverride "eie_effects" - { - text = "[CultureEraType.GetEffectsDesc( CultureEra.GetCulture, GetPlayer )]" - } - } - - container = { - using = era_innov_flavor - - blockoverride "eif_text" { - text = "[CultureEraType.GetDescription]" - max_width = 500 - } - } - - block "cet_click_text" - { - text_single = { - default_format = "#I" - text = "VIEW_CLICK" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} -container = { - alwaystransparent = no - name = "CultureEraTooltip" - using = culture_era_tooltip - - blockoverride "cet_click_text" - { - #no text - } -} - -types CultureTooltips -{ - type culture_tooltip = widget - { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 5 } - margin_bottom = 15 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - background = { - using = Background_Header - } - - background = { - using = Background_Header_Pattern - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - name = "header" - text = "CULTURE_COOLTIP_GETNAME" - fonttintcolor = "[TooltipInfo.GetTintColor]" - align = top - - using = Font_Type_Flavor - using = Font_Size_Big - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[culture|E]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - align = vcenter|right - } - } - - text_single = { - layoutpolicy_horizontal = expanding - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[Culture.GetPlayerRelationString]" - align = nobaseline - } - - expand = { - layoutpolicy_vertical = growing - } - - hbox = { - visible = "[Not( ObjectsEqual( Culture.Self, GetPlayer.GetCulture ) )]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 1 - margin_bottom = 3 - - tooltip = "CULTURE_ACCEPTANCE_TOOLTIP" - - text_single = { - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "CULTURE_VIEW_ACCEPTANCE" - } - - text_single = { - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "CULTURE_VIEW_ACCEPTANCE_DIFF_BRACKETS" - } - - expand = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 10 0 } - margin_top = 5 - - hbox = { - layoutpolicy_horizontal = growing - spacing = 5 - - icon_doctrine = { - visible = "[ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage )]" - size = { 30 30 } - texture = "gfx/interface/icons/culture_pillars/heritage.dds" - color = "[TooltipInfo.GetTintColor]" - } - - icon_doctrine = { - visible = "[Not(ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ))]" - size = { 30 30 } - texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds" - color = "[TooltipInfo.GetTintColor]" - } - - text_single = { - datacontext = "[Culture.GetHeritage]" - layoutpolicy_horizontal = growing - text = "CULTURE_VIEW_HERITAGE_TEXT" - - tooltipwidget = { - using = culture_pillar_tooltip - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = growing - spacing = 5 - - icon_doctrine = { - visible = "[ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - color = "[TooltipInfo.GetTintColor]" - } - - icon_doctrine = { - visible = "[Not(ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ))]" - size = { 30 30 } - texture = "gfx/interface/icons/culture_pillars/language_diverge.dds" - color = "[TooltipInfo.GetTintColor]" - } - - text_single = { - datacontext = "[Culture.GetLanguage]" - layoutpolicy_horizontal = growing - text = "CULTURE_VIEW_LANGUAGE_TEXT" - - tooltipwidget = { - using = culture_pillar_tooltip - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = growing - text = "CULTURE_COOLTIP_ERA" - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = DefaultTooltipText - } - - spacer = { - size = { 0 5 } - } - - divider_light = { - layoutpolicy_horizontal = growing - } - - hbox = { - datacontext = "[Culture.GetFascination]" - visible = "[Culture.HasFascination]" - layoutpolicy_horizontal = expanding - - tooltipwidget = culture_innovation_tooltip - - widget = { - size = { 65 45 } - icon_innovation = { - scale = 0.7 - color = "[TooltipInfo.GetTintColor]" - } - } - - vbox = { - layoutpolicy_horizontal = growing - spacing = 10 - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = growing - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - text = "CULTURE_COOLTIP_FASCINATION" - } - - hbox = { - layoutpolicy_horizontal = growing - - progressbar_standard = { - size = { 150 15 } - min = 0 - max = 100 - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - } - - expand = {} - } - - expand = {} - } - } - - text_single = { - visible = "[And( Culture.IsPlayerCultureHead, And( ObjectsEqual( GetPlayer.GetCulture, Culture.Self ), Culture.HasAvailableInnovation ) )]" - layoutpolicy_horizontal = growing - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "INGAME_TOPBAR_CULTURE_HEAD" - default_format = "#weak" - - using = DefaultTooltipText - } - - text_single = { - visible = "[And( ObjectsEqual( GetPlayer.GetCulture, Culture.Self ), Not( Culture.HasAvailableInnovation ) )]" - layoutpolicy_horizontal = growing - text = "CULTURE_COOLTIP_NO_AVAILABLE_INNOVATION" - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = DefaultTooltipText - } - - divider_light = { - layoutpolicy_horizontal = growing - } - - hbox = { - datacontext = "[Culture.GetCultureHead]" - layoutpolicy_horizontal = growing - spacing = 10 - - vbox = { - layoutpolicy_vertical = expanding - expand = {} - - portrait_head_small = { - name = "culture_head_portrait" - } - } - - text_single = { - visible = "[Culture.GetCultureHead.IsValid]" - layoutpolicy_horizontal = growing - layoutpolicy_vertical = growing - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "CULTURE_COOLTIP_HEAD" - align = top - max_width = 320 - - using = DefaultTooltipText - } - - text_single = { - visible = "[Not( Culture.GetCultureHead.IsValid )]" - layoutpolicy_horizontal = growing - layoutpolicy_vertical = growing - text = "CULTURE_COOLTIP_NO_HEAD" - fonttintcolor = "[TooltipInfo.GetTintColor]" - align = top - - using = DefaultTooltipText - } - } - - - block "extra_info" - {} - } - } - } - - type ruler_designer_culture_tooltip = widget - { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - set_parent_size_to_minimum = yes - margin = { 15 10 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 5 0 } - margin_bottom = 10 - - background = { - using = Background_Header - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "header" - layoutpolicy_horizontal = expanding - text = "CULTURE_COOLTIP_GETNAME" - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = Font_Type_Flavor - using = Font_Size_Big - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[culture|E]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - align = right - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - - spacer = { - size = { 0 5 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CULTURE_RD_TOOLTIP_ETHOS" - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - - margin = { 0 5 } - } - - spacer = { - size = { 0 10 } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 6 - margin_bottom = 6 - - text_label_center = { - margin = { 10 2 } - text = "[culture_pillars|E]" - align = center|nobaseline - default_format = "#low" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - name = "cultural_pillars_block" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 60 - margin_top = 4 - - vbox = { - name = "cultural_pillars_collumn_one" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - name = "heritage" - layoutpolicy_horizontal = expanding - datacontext = "[Culture.GetHeritage]" - - hbox = { - spacing = 4 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - icon_doctrine = { - visible = "[ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage )]" - size = { 44 44 } - texture = "gfx/interface/icons/culture_pillars/heritage.dds" - } - - icon_doctrine = { - visible = "[Not( ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ))]" - size = { 44 44 } - texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds" - } - - text_multi = { - datacontext = "[Culture.GetHeritage]" - text = "CULTURE_VIEW_HERITAGE_TEXT" - autoresize = yes - max_width = 160 - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - } - - expand = {} - } - - hbox = { - name = "martial" - datacontext = "[Culture.GetMartial]" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 4 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - icon_doctrine = { - size = { 44 44 } - texture = "[CulturePillar.GetIcon]" - } - - text_multi = { - text = "CULTURE_VIEW_MARTIAL_CUSTOM_TEXT" - autoresize = yes - max_width = 160 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - expand = {} - } - } - - vbox = { - name = "cultural_pillars_collumn_two" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - hbox = { - name = "language" - datacontext = "[Culture.GetLanguage]" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 4 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - icon_culture_pillar = { - visible = "[ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage )]" - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - } - - icon_culture_pillar = { - visible = "[Not( ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ))]" - texture = "gfx/interface/icons/culture_pillars/language_diverge.dds" - } - - text_multi = { - datacontext = "[Culture.GetLanguage]" - text = "CULTURE_VIEW_LANGUAGE_TEXT" - autoresize = yes - max_width = 160 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 4 - - tooltip = "CULTURE_AESTHETICS_TOOLTIP" - - icon_culture_pillar = { - texture = "gfx/interface/icons/culture_pillars/aesthetics.dds" - } - - text_multi = { - text = "CULTURE_AESTHETICS" - autoresize = yes - max_width = 160 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - expand = {} - } - - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - spacer = { - size = { 0 6 } - } - - text_label_center = { - margin = { 10 2 } - text = "[traditions|E]" - align = center|nobaseline - default_format = "#low" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = { 0 10 } - } - - vbox = { - margin_left = 20 - - fixedgridbox = { - name = "traditions_holder" - datamodel = "[Culture.GetTraditions]" - flipdirection = yes - addcolumn = 200 - addrow = 124 - datamodel_wrap = 2 - - item = { - container = { - using = tooltip_se - - tooltipwidget = { - using = culture_tradition_tooltip - } - - widget_tradition_icon = { - block "icon_size" { - size = { 178 89 } - } - } - - text_label_center = { - name = "name" - parentanchor = bottom|hcenter - widgetanchor = center - position = { 0 14 } - maximumsize = { 144 44 } #x 5 smaller y 4 bigger - fontsize_min = 10 - multiline = yes - align = center - elide = right - text = "[CultureTradition.GetNameNoTooltip]" - default_format = "#medium" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - } - } - - type culture_tooltip_click = culture_tooltip - { - blockoverride "extra_info" { - spacer = { - size = { 0 4 } - } - divider_light = { - layoutpolicy_horizontal = growing - } - - text_single = { - layoutpolicy_horizontal = growing - text = "CULTURE_COOLTIP_CLICK" - margin = { 10 0 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - } - } -} - -container = { - alwaystransparent = no - name = "CultureTooltip" - culture_tooltip = {} -} - -container = { - alwaystransparent = no - name = "SecretTooltip" - - object_tooltip_pop_out = { - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Secret.GetType.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[Secret.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [secret|E] - } - - blockoverride "description_text" { - text = "[Secret.GetTooltipDesc]" - } - } -} - -container = { - alwaystransparent = no - name = "SecretTypeTooltip" - - object_tooltip_pop_out = { - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[SecretType.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[SecretType.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [secret|E] - } - - blockoverride "description_text" { - text = "[SecretType.GetDesc]" - } - } -} - -container = { - alwaystransparent = no - name = "GeographicalRegionTooltip" - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[GeographicalRegion.GetNameNoTooltip]" - } - - blockoverride "concept_link" { - text = [region|E] - } - - blockoverride "description_text" { - text = VIEW_CLICK - default_format = "#I" - } - } -} - -template culture_pillar_tooltip { - container = { - alwaystransparent = no - block "datacontext" {} - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[CulturePillar.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "extra_data" { - vbox = { - visible = "[ObjectsEqual( Culture.GetHeritage, CulturePillar.Self )]" - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_SAME" - visible = "[ObjectsEqual( GetPlayer.GetCulture.GetHeritage, CulturePillar.Self )]" - } - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_DIFF" - visible = "[Not(ObjectsEqual( GetPlayer.GetCulture.GetHeritage, CulturePillar.Self ))]" - } - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_EFFECT" - - } - - } - - vbox = { - visible = "[ObjectsEqual( Culture.GetLanguage, CulturePillar.Self )]" - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_SAME" - visible = "[ObjectsEqual( GetPlayer.GetCulture.GetLanguage, CulturePillar.Self )]" - } - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_DIFF" - visible = "[Not(ObjectsEqual( GetPlayer.GetCulture.GetLanguage, CulturePillar.Self ))]" - } - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_COURT_LANGUAGE" - visible = "[ObjectsEqual( GetPlayer.GetCourtLanguage, CulturePillar.Self )]" - } - - cooltip_paragraph = { - text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT" - - } - - } - - } - blockoverride "description_text" { - text = "CULTURE_PILLAR_GENERAL_TOOLTIP" - } - blockoverride "concept_link" { - text = "[CulturePillar.GetTypeName]" - } - } - } -} - -template culture_pillar_tooltip_establishing { - container = { - alwaystransparent = no - datacontext = "[CultureReformation.GetNewPillar]" - using = culture_pillar_tooltip - - blockoverride "main_description" - { - textbox = { - name = "establishment_description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - text = "CULTURE_PILLAR_ESTABLISHING_PROGRESS_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - name = "effect_description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - text = "CULTURE_PILLAR_ESTABLISHING_TOOLTIP" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - margin_bottom = 20 - } - } - } -} - -container = { - alwaystransparent = no - name = "CulturePillarTooltip" - datacontext = "[GetPlayer.GetCulture]" - using = culture_pillar_tooltip -} - -template culture_tradition_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[CultureTradition.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "CULTURE_TRADITION_GENERAL_TOOLTIP" - } - - blockoverride "concept_link" { - text = "[culture_tradition|E]" - } - - blockoverride "input_info_text" { - text = "CULTURE_TRADITION_TOOLTIP_CLICKINFO" - } - } - } -} - - -template culture_tradition_tooltip_clickable { - using = culture_tradition_tooltip - blockoverride "input_info_text" { - text = CLICK_TO_SELECT - } -} - -template culture_tradition_tooltip_establishing { - container = { - alwaystransparent = no - datacontext = "[CultureReformation.GetNewTradition]" - using = culture_tradition_tooltip - - blockoverride "main_description" - { - textbox = { - name = "establishment_description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - text = "CULTURE_TRADITION_ESTABLISHING_PROGRESS_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - name = "effect_description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - text = "CULTURE_TRADITION_ESTABLISHING_TOOLTIP" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - margin_bottom = 20 - } - } - } -} - -container = { - alwaystransparent = no - name = "CultureTraditionTooltip" - datacontext = "[GetPlayer.GetCulture]" - using = culture_tradition_tooltip -} - -template inspiration_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Inspiration.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "INSPIRATION_GENERAL_TOOLTIP" - } - - blockoverride "concept_link" { - text = "[inspiration|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "InspirationTooltip" - using = inspiration_tooltip -} - -template court_type_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[CourtType.GetNameNoTooltip]" - default_format = "#T" - } - blockoverride "description_text" { - text = "COURT_TYPE_GENERAL_TOOLTIP" - } - - blockoverride "concept_link" { - text = "[court_type|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "CourtTypeTooltip" - using = court_type_tooltip -} - -container = { - alwaystransparent = no - name = "CourtAmenitiesTooltip" - court_amenity_setting_tooltip_contents = {} - -} - -types CourtAmenitiesTooltips { - type court_amenity_setting_tooltip_contents = object_tooltip_pop_out { - blockoverride "title_text" { - margin = { 0 8 } - text = "[CourtAmenitiesSetting.GetNameNoTooltip]" - } - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[CourtAmenitiesSetting.GetIcon]" - } - } - } - - blockoverride "above_description_text" { - text = "COURT_AMENITIES_COOLTIP_ABOVE_DESCRIPTION" - } - - blockoverride "concept_link" { - text = [court_amenities|E] - } - - blockoverride "description_text" { - text = "[CourtAmenitiesSetting.GetDescription|F]" - } - } -} - -container = { - alwaystransparent = no - name = "ArtifactTooltip" - artifact_tooltip = {} -} - -types InventoryTooltips -{ - type artifact_tooltip = widget - { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 20 10 } - margin_bottom = 20 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 5 5 } - margin_bottom = 15 - - background = { - using = Background_Header - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - name = "rarity" - text = "[Artifact.GetRarityAndSlotType]" - align = top - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "title" - text = "[Artifact.GetNameNoTooltip]" - align = top - using = Font_Size_Big - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - text_single = { - name = "artifact_category" - text = "[Artifact.GetCategory]" - align = right|nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - hbox = { #icon, durability and effects - layoutpolicy_horizontal = expanding - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 10 - - icon_artifact = { - size = { 160 160 } - - blockoverride "tooltipwidget" {} - } - - hbox_artifact_durability = {} - - expand = {} - } - - vbox = { - name = "main_text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 5 - - hbox = { - name = "modifiers" - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[Artifact.CanBenefitPlayer]" - max_width = 300 - autoresize = yes - text = ARTIFACT_EFFECT - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - visible = "[Not( Artifact.CanBenefitPlayer )]" - max_width = 300 - autoresize = yes - text = ARTIFACT_EFFECT - default_format = "#low" - format_override = { P low } - format_override = { E low } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - name = "fallback" - layoutpolicy_horizontal = expanding - - visible = "[Not( Artifact.CanBenefitPlayer )]" - - text_multi = { - max_width = 300 - autoresize = yes - text = "ARTIFACT_FALLBACK_EFFECT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = {} - } - expand = {} - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - hbox = { - name = "current_holder" - layoutpolicy_horizontal = expanding - - text_single = { - name = "imminent_claim" - visible = "[Artifact.HasImminentHouseClaim( Artifact.GetOwner.Self )]" - text = "IMMINENT_HOUSE_CLAIMANT" - max_width = 230 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "owner" - text = "ARTIFACT_CURRENT_HOLDER" - max_width = 350 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = {} - } - - hbox = { - name = "artifact_creator" - visible = "[Artifact.HasCreator()]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "creator" - text = "ARTIFACT_CREATOR" - max_width = 350 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - datacontext = "[Artifact.GetAssociatedTitle]" - visible = "[Title.IsValid]" - layoutpolicy_horizontal = expanding - - coa_title_tiny_crown = { - size = { 40 50 } - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - - text_single = { - name = "association" - text = "ARTIFACT_TITLE_ASSOCIATION" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = {} - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[Artifact.GetDesc]" - align = left - autoresize = yes - default_format = "#F" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 490 - } - - expand = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - block "extra_information" - { - text_multi = { - visible = "[Not( Artifact.CanPlayerEquip )]" - text = "[Artifact.GetCanPlayerEquipDesc]" - max_width = 300 - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - expand = {} - } - } - } # type artifact_tooltip = widget -} - -template court_position_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - datacontext = "[CourtPosition.GetPositionType]" - - blockoverride "header_additions" - { - header_icon = { - blockoverride "header_texture" - { - size = { 48 48 } - texture = "[CourtPositionType.GetIcon]" - } - } - } - - blockoverride "title_text" - { - text = "COURT_POSITION_NAME" - } - - blockoverride "subheading" - { - text_single = { - layoutpolicy_horizontal = expanding - - using = Font_Size_Tiny - - text = "COURT_POSITION_FOR_EMPLOYER" - } - } - - blockoverride "concept_link" - { - text = [court_position|E] - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - portrait_head_small = { - datacontext = "[CourtPosition.GetEmployer]" - } - - vbox = { - layoutpolicy_vertical = expanding - - tooltip = "[CourtPosition.GetEmployeeSalaryBreakdownTooltip]" - - vbox = { - margin = { 10 0 } - margin_bottom = 8 - - background = { - using = Background_Area - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "COURT_POSITIONS_WINDOW_MONTHLY_SALARY_YOUR" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[CourtPosition.GetEmployeeSalaryText]" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[CourtPosition.GetTimeOfService]" - default_format = "#weak" - } - } - expand = {} - } - expand = {} - } - - ### Effects on you - court_position_effect = { - blockoverride "position_title" - { - text = "COURT_POSITION_TOOLTIP_EFFECT_ON_YOU" - } - blockoverride "position_desc" - { - text = "[CourtPosition.GetEmployeeBonuses]" - } - } - - ### Active task - court_position_effect = { - visible = "[CourtPosition.HasActiveTask]" - - blockoverride "position_title" - { - text = "[CourtPosition.GetActiveTask.GetName]" - } - blockoverride "position_desc" - { - text = "[CourtPosition.GetActiveTask.GetEmployeeModifierDescription]" - } - } - - ### Effects on your liege's court - court_position_effect = { - visible = "[CourtPosition.GetPositionType.HasLiegeCourtModifiers]" - datacontext = "[CourtPosition.GetEmployee]" - - blockoverride "position_title" - { - text = "COURT_POSITION_EMPLOYER_COURT_EFFECTS" - } - blockoverride "position_desc" - { - visible = no - } - } - - expand = {} - } - } - } - } -} - -container = { - alwaystransparent = no - name = "CourtPositionTooltip" - using = court_position_tooltip -} - -container = { - alwaystransparent = no - name = "CourtPositionTypeTooltip" - court_position_type_tooltip = { - blockoverride "time_of_service" {} - blockoverride "tasks" {} - } -} - -types CourtPositionTooltips { - type court_position_effect = vbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - block "position_title" {} - - fonttintcolor = "[TooltipInfo.GetTintColor]" - default_format = "#S" - } - - vbox = { - margin = { 10 0 } - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - textbox = { - layoutpolicy_horizontal = expanding - - using = DefaultTooltipText - - block "position_desc" {} - - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - multiline = yes - } - } - } - } - - # Tooltip when examining the court position type. - type court_position_type_tooltip = object_tooltip_pop_out { - - blockoverride "title_text" { - margin = { -6 8 } - block "title_text_inner" { - datacontext = "[GetPlayer]" - text = "[CourtPositionType.CalcTriggeredNameNoTooltip( Character.Self )]" - } - } - - blockoverride "concept_link" { - text = "[SelectLocalization(IsLandlessAdventurer( GetPlayer ) , 'OFFICER', 'COURT_POISTION' )]" - } - - blockoverride "header_additions" - { - header_icon = { - blockoverride "header_texture" - { - texture = "[CourtPositionType.GetIcon]" - } - } - } - - blockoverride "extra_data" { - #block "extra_data_block" { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - ### Salary - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_top = -5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "COURT_POSITION_TYPE_TOOLTIP_EMPLOYER_SALARY" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - block "time_of_service" { - text_single = { - visible = "[CourtPosition.IsValid]" - layoutpolicy_horizontal = expanding - max_width = 160 - - text = "[CourtPosition.GetTimeOfService]" - default_format = "#weak" - } - } - - ### POWERFUL AGENT WARNING ### - hbox = { - visible = "[CourtPositionType.IsPowerfulAgent]" - margin_top = 8 - - icon = { - name = "powerful_agent_warning" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - tooltip = "COURT_POSITION_POWERFUL_AGENT" - using = tooltip_ne - } - expand = {} - } - } - } - - ### Liege effects - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[CourtPositionType.HasLiegeModifiers]" - spacing = 2 - - ### Liege Modifiers - vbox = { - name = "liege_modifiers" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_TOOLTIP_EFFECT_ON_LIEGE - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - textbox = { - name = "liege_static_modifiers_description" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - text = "[CourtPositionType.GetEmployerModifierDescription]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } - - ### Liege Court Modifiers - vbox = { - name = "liege_court_modifiers" - visible = "[CourtPositionType.HasLiegeCourtModifiers]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - textbox = { - name = "liege_court_modifiers_description" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - text = "COURT_POSITION_TYPE_EMPLOYER_COURT_EFFECTS" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - ### Liege Requirements - vbox = { - name = "liege_requirements" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[CourtPositionType.HasLiegeRequirements]" - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_TOOLTIP_LIEGE_REQUIREMENT - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - textbox = { - name = "liege_requirements_description" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - text = "[CourtPositionType.GetLiegeRequirementDescriptionText]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } - - ### Revocation effects - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_TOOLTIP_REVOKE_EFFECT_HEADER - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = COURT_POSITION_TYPE_TOOLTIP_REVOKE_COST - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - ## Employee info - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - margin_bottom = 10 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - ### Employee Modifiers - vbox = { - name = "employee_modifiers" - visible = "[CourtPositionType.HasEmployeeModifiers]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - text = COURT_POSITION_TYPE_TOOLTIP_EFFECT_ON_EMPLOYEE - layoutpolicy_horizontal = expanding - default_format = "#S" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - textbox = { - name = "employee_effects" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - text = "[CourtPositionType.GetEmployeeModifierDescription]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - - ### Employee Requirements - vbox = { - name = "employee_requirements" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[CourtPositionType.HasEmployeeRequirements]" - spacing = 2 - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_TOOLTIP_EMPLOYEE_REQUIREMENT - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - textbox = { - name = "employee_requirements_description" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - text = "[CourtPositionType.GetEmployeeRequirementDescriptionText]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } - - hbox = { - visible = "[Not( IsDataModelEmpty( CourtPositionType.GetTasks ) )]" - layoutpolicy_horizontal = expanding - spacing = 8 - margin_bottom = 4 - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 15 0 } - margin_top = 5 - } - - text_multi = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 8 4 } - margin_left = 0 - - text = "COURT_POSITION_TASK_HINT" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - block "tasks" { - fixedgridbox = { - name = "task_items" - - addcolumn = 38 - addrow = 38 - setitemsizefromcell = yes - datamodel_wrap = 4 - flipdirection = yes - - datamodel = "[CourtPositionType.GetTasks]" - item = { - widget_court_position_task_view = { - blockoverride "click_to_activate" {} - } - } - } - } - } - } - } - - blockoverride "description_text" { - default_format = "#F" - block "description_text_inner" { - datacontext = "[GetPlayer]" - text = "[CourtPositionType.CalcTriggeredDescription( Character.Self )]" - } - max_width = 450 - margin_top = 5 - margin_bottom = -10 - } - } -} - -container = { - name = "SchemeTypeTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[SchemeType.GetTypeNameNoTooltip]" - } - - blockoverride "description_text" { - text = "[SchemeType.GetDetailedDescription]" - } - - blockoverride "concept_link" { - text = "[SchemeType.GetCategoryName|E]" - } - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[SchemeType.GetIcon]" - framesize = { 160 160 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} - -container = { - name = "SchemeAgentSlotTypeTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[AgentSlotType.GetNameNoTooltip]" - } - - blockoverride "description_text" { - text = "[AgentSlotType.GetDesc]" - } - - blockoverride "concept_link" { - text = "[agent|E]" - } - } -} - -template nickname_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Character.GetNicknameNoTooltip()|U]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[Nickname.GetDescription( Character.Self )]" - } - - blockoverride "concept_link" { - text = "[nickname|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "NicknameTooltip" - using = nickname_tooltip -} - -types StruggleTooltipTypes { - - type struggle_catalyst_history = vbox { - name = "catalyst_history" - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 10 - - background = { - using = Background_Area - margin_left = 16 - margin_right = 16 - margin_bottom = 16 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "STRUGGLE_TOOLTIP_CATALYST_HISTORY_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_horizontal = expanding - block "catalyst_datamodel" - { - datamodel = "[Struggle.GetLatestCatalystHistory]" - } - spacing = 3 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - margin_bottom = 5 - - icon = { - size = { 50 20 } - - background = { - visible = "[ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase )]" - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase )]" - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[Not( ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase ) )]" - using = Background_Frame - using = Color_Grey - alpha = 0.5 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[Not( ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase ) )]" - using = Background_Area_Light - alpha = 0.4 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - hbox = { - icon = { - size = { 25 25 } - texture = "[CatalystHistory.GetStrugglePhase.GetIcon]" - } - - spacer = { - size = { 10 0 } - } - - text_single = { - text = "[CatalystHistory.GetProgress|+=]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_bottom = 5 - } - } - } - - text_single = { - text = STRUGGLE_TOOLTIP_CATALYST_HISTORY_ENTRY - align = top - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - } - } - - type StrugglePhaseEffectWar = vbox { - container = { - name = "war_effect" - - tooltipwidget = phase_effect_tooltip_war - - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/war.dds" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "STRUGGLE_EFFECT_LABEL_WAR" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - type StrugglePhaseEffectCulture = vbox { - container = { - name = "culture_effect" - - tooltipwidget = phase_effect_tooltip_culture - - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/culture.dds" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "STRUGGLE_EFFECT_LABEL_CULTURE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - type StrugglePhaseEffectFaith = vbox { - container = { - name = "faith_effect" - - tooltipwidget = phase_effect_tooltip_faith - - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/faith.dds" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "STRUGGLE_EFFECT_LABEL_FAITH" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - type StrugglePhaseEffectOther = vbox { - container = { - name = "other_effect" - - tooltipwidget = phase_effect_tooltip_other - - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/other.dds" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "STRUGGLE_EFFECT_LABEL_OTHER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } -} - -template phase_effect_tooltip_war { - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - container = { - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/war.dds" - } - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "STRUGGLE_PHASE_EFFECTS_WAR_TT_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - vbox = { - - textbox = { - layoutpolicy_horizontal = expanding - text = "[Struggle.GetWarEffect(StrugglePhase.Self, Character.Self)]" - using = StruggleEffectTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } -} - -template phase_effect_tooltip_culture { - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - container = { - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/culture.dds" - } - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "STRUGGLE_PHASE_EFFECTS_CULTURE_TT_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - vbox = { - - textbox = { - layoutpolicy_horizontal = expanding - text = "[Struggle.GetCultureEffect(StrugglePhase.Self, Character.Self)]" - using = StruggleEffectTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } -} - -template phase_effect_tooltip_faith { - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - container = { - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/faith.dds" - } - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "STRUGGLE_PHASE_EFFECTS_FAITH_TT_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - vbox = { - - textbox = { - layoutpolicy_horizontal = expanding - text = "[Struggle.GetFaithEffect(StrugglePhase.Self, Character.Self)]" - using = StruggleEffectTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } -} - -template phase_effect_tooltip_other { - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - container = { - icon = { - parentanchor = center - size = { 55 55 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_effects/other.dds" - } - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "STRUGGLE_PHASE_EFFECTS_OTHER_TT_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - vbox = { - - textbox = { - layoutpolicy_horizontal = expanding - text = "[Struggle.GetOtherEffect(StrugglePhase.Self, Character.Self)]" - using = StruggleEffectTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - } -} - -template phase_effect { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - margin_bottom = 15 - - background = { - using = Background_Area_With_Header - margin_left = 16 - margin_right = 16 - } - - text_single = { - max_width = 400 - margin = { 0 5 } - text = "STRUGGLE_TOOLTIP_EFFECTS_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - name = "phase_effects" - layoutpolicy_vertical = expanding - spacing = 15 - - StrugglePhaseEffectWar = {} - - StrugglePhaseEffectCulture = {} - - StrugglePhaseEffectFaith = {} - - StrugglePhaseEffectOther = {} - } - } -} - -template struggle_tooltip { - container = { - alwaystransparent = no - block "datacontext" {} - - object_tooltip_pop_out = { - blockoverride "concept_link" {} - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 5 } - text = "[Struggle.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - - vbox = { - name = "current_phase_information" - datacontext = "[Struggle.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "STRUGGLE_TOOLTIP_INVOLVEMENT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - - using = DefaultTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - text = "STRUGGLE_TOOLTIP_CURRENT_PHASE" - } - - spacer = { - size = { 0 10 } - } - - vbox = { - layoutpolicy_horizontal = expanding - using = phase_effect - } - } - - spacer = { - size = { 0 15 } - } - - vbox = { # Next Phases Progress - name = "next_phases_progress" - visible = "[Not( Struggle.IsInTransitionPhase )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - layoutpolicy_horizontal = expanding - using = DefaultTooltipText - text = STRUGGLE_NEXT_PHASE_PROGRESS_LABEL - } - - vbox = { - datamodel = "[Struggle.GetNextPhasesSorted]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 16 5 } - } - - text_single = { - margin_right = 20 - align = top - text = "STRUGGLE_TT_PHASE_PROGRESS" - - tooltipwidget = { - struggle_phase_tooltip = {} - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - progressbar_standard = { - size = { 120 18 } - value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]" - progresstexture = "gfx/interface/progressbars/progress_orange.dds" - } - } - } - } - } - - vbox = { # Next Phase Transition - name = "next_phase_transition" - visible = "[Struggle.IsInTransitionPhase]" - datacontext = "[Struggle.GetNextPhase]" - - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - using = DefaultTooltipText - text = STRUGGLE_NEXT_PHASE_PROGRESS_LABEL - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 16 5 } - } - - text_single = { - margin_right = 20 - align = top - using = DefaultTooltipText - text = STRUGGLE_TT_PHASE_TRANSITION - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - progressbar_standard = { - size = { 120 18 } - value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]" - progresstexture = "gfx/interface/progressbars/progress_orange.dds" - } - } - - spacer = { - size = { 0 2 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_time.dds" - } - - text_single = { - align = top - using = DefaultTooltipText - text = STRUGGLE_TT_PHASE_TRANSITION_TIME_TO - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - - spacer = { - size = { 0 15 } - } - - struggle_catalyst_history = {} - } - } - } -} - -template struggle_tooltip_light { - container = { - alwaystransparent = no - block "datacontext" {} - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 5 } - text = "[Struggle.GetCurrentPhase.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - - vbox = { - name = "current_phase_information" - datacontext = "[Struggle.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "[Struggle.GetPhaseDescription(StrugglePhase.Self)]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - - vbox = { - layoutpolicy_horizontal = expanding - using = phase_effect - } - } - - spacer = { - size = { 0 15 } - } - - struggle_catalyst_history = {} - } - - blockoverride "concept_link" {} - } - } -} - - -container = { - name = "StruggleTooltip" - alwaystransparent = no - datacontext = "[GetPlayer]" - using = struggle_tooltip -} - -types StrugglePhaseTypes -{ - type struggle_phase_tooltip = object_tooltip_pop_out { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[StrugglePhase.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[StrugglePhase.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - using = DefaultTooltipText - multiline = yes - text = STRUGGLE_PHASE_DESCRIPTION - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[StrugglePhase.IsContentVisible( GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ) )]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 5 5 } - - background = { - using = Background_Area_Light - tintcolor = { 0.8 0.5 0.5 2.0 } - margin = { -2 -2 } - } - - background = { - using = Background_Frame - tintcolor = { 0.8 0.5 0.5 2.0 } - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/struggle_types/ending_phase_icon.dds" - } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 330 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - text = STRUGGLE_ENDING_PHASE_WARNING_MESSAGE - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - vbox = { - visible = "[Not( StringIsEmpty( Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self ) ) )]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 16 4 } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10} - - background = { - using = Background_Area - margin = { 16 0 } - } - - text_single = { - text = STRUGGLE_ENDING_PHASE_EFFECTS_TITLE - max_width = 400 - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - text = "[Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self )]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - - vbox = { - visible = "[Not( StrugglePhase.IsContentVisible( GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ) ) )]" - layoutpolicy_horizontal = expanding - using = phase_effect - } - - vbox = { - name = "leading_next_phase" - layoutpolicy_horizontal = expanding - - margin = { 0 10 } - - text_single = { - layoutpolicy_horizontal = expanding - - text = STRUGGLE_PHASE_TOOLTIP_TOTAL_PROGRESS - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { size = { 0 10 } } - - struggle_catalyst_history = { - blockoverride "catalyst_datamodel" { - datamodel = "[Struggle.GetCatalystHistoryForPhase( StrugglePhase.Self )]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( StrugglePhase.GetEndingDecisions )]" - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "STRUGGLE_STAGE_DECISIONS_TITLE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[StrugglePhase.GetEndingDecisions]" - margin_bottom = 10 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[DeferredDecision.GetDecision]" - - text_single = { - visible = "[Decision.IsValid]" - text = "DECISION_TOOLTIP_TITLE" - align = nobaseline - layoutpolicy_horizontal = expanding - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - - blockoverride "concept_link" {} - } -} - -container = { - name = "StrugglePhaseTooltip" - alwaystransparent = no - datacontext = "[GetPlayer]" - datacontext = "[StrugglePhase.GetStruggle]" - struggle_phase_tooltip = {} -} - -template situation_tooltip { - container = { - alwaystransparent = no - block "datacontext" {} - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Situation.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 5 } - text = "[Situation.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "current_phase_information" - datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "SITUATION_TOOLTIP_INVOLVEMENT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - - using = DefaultTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - text = "SITUATION_TOOLTIP_CURRENT_PHASE" - } - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - - using = DefaultTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - text = "CLICK_TO_VIEW" - } - } - } - - blockoverride "concept_link" {} - } - } -} - -template situation_tooltip_hud { - container = { - alwaystransparent = no - block "datacontext" {} - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[Situation.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 5 } - text = "[Situation.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "current_phase_information" - datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "SITUATION_START_DATE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - - using = DefaultTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - text = "SITUATION_TOOLTIP_CURRENT_PHASE" - } - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - - using = DefaultTooltipText - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - text = "CLICK_TO_VIEW" - } - } - } - - blockoverride "concept_link" {} - } - } -} - -template situation_info_tooltip { - container = { - alwaystransparent = no - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - block "header_icon" - { - } - } - } - } - - blockoverride "title_text" { - margin = { 0 5 } - block "title_text" { - text = "[Situation.GetNameNoTooltip]" - } - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "current_phase_information" - datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - block "localization_text" - { - text = "SITUATION_INFO_WIDGET_DEBUG" - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - } - } - - blockoverride "concept_link" {} - } - } -} -container = { - name = "SituationTooltip" - alwaystransparent = no - using = situation_info_tooltip - - blockoverride "title_text" { - text = "[Situation.GetNameNoTooltip]" - } - blockoverride "header_icon" - { - texture = "[Situation.GetIcon]" - } - blockoverride "localization_text" - { - text = "[Situation.GetDesc]" - } -} - -### Situation Type Tooltip -template situation_type_tooltip { - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 5 } - text = "[SituationType.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "situation_type_desc" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "[SituationType.GetDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - } - } - - blockoverride "concept_link" { - text = "SITUATION_TYPE_CONCEPT_LINK" - } - } -} - -container = { - name = "SituationTypeTooltip" - alwaystransparent = no - using = situation_type_tooltip -} - -### Situation Subregion Tooltip -template situation_sub_region_tooltip { - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 5 } - text = "[SituationSubRegion.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "situation_sub_region_desc" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "[SituationSubRegion.GetTooltipDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - } - } - - blockoverride "concept_link" { - text = "SITUATION_SUB_REGION_CONCEPT_LINK" - } - } -} - -container = { - name = "SituationSubRegionTooltip" - alwaystransparent = no - using = situation_sub_region_tooltip -} - -### Situation Phase Type Tooltip -template situation_phase_type_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 5 } - text = "[SituationPhaseType.GetNameNoTooltip]" - align = nobaseline - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "phase_type_desc" - datacontext = "[SituationPhaseType.GetParentSituationType]" - datacontext = "[GetSituationOfType( SituationType.Self )]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "[SituationPhaseType.GetDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - - vbox = { - visible = "[And( SituationPhaseType.IsValid, Not( SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused ) )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 6 - maxhorizontalslots = 6 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetModifierNamedSets]" - item = { - icon_situation_phase_effect_item = {} - } - } - } - - vbox = { - visible = "[And( SituationPhaseType.IsValid, SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 52 - setitemsizefromcell = yes - datamodel_wrap = 7 - maxhorizontalslots = 7 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetParentSituationType.GetParticipantGroupTypes]" - item = { - icon_situation_phase_effect_participant_group_item = { - datacontext = "[Situation.GetTopSubRegion]" - } - } - } - } - } - } - - blockoverride "concept_link" { - text = "SITUATION_PHASE_TYPE_CONCEPT_LINK" - } - } - } -} -container = { - name = "SituationPhaseTypeTooltip" - alwaystransparent = no - using = situation_phase_type_tooltip -} - -### Situation Participant Group Tooltip -template situation_participant_group_type_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 5 } - text = "[SituationParticipantGroupType.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - name = "situation_participant_group_desc" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "[SituationParticipantGroupType.GetDescription]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - - blockoverride "concept_link" { - text = "SITUATION_PARTICIPANT_GROUP_TYPE_CONCEPT_LINK" - } - } - } -} -container = { - name = "SituationParticipantGroupTypeTooltip" - alwaystransparent = no - using = situation_participant_group_type_tooltip -} - -### Effects of the current phase of the situation sub-region -template situation_modifier_named_set_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - header_icon = { - blockoverride "header_texture" - { - size = { 48 48 } - texture = "[SituationModifierNamedSet.GetIcon]" - } - } - } - - blockoverride "title_text" - { - text = "[SituationModifierNamedSet.GetNameNoTooltip]" - } - - blockoverride "concept_link" - { - text = "[SituationModifierNamedSet.GetConceptLink]" - } - - blockoverride "main_description" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - textbox = { - max_width = 400 - margin_top = 5 - layoutpolicy_horizontal = expanding - - using = DefaultTooltipText - - text = "[SituationModifierNamedSet.GetEffectTooltipBreakdown( Character.Self, Situation.Self )]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - multiline = yes - } - - expand = {} - } - } - } - } -} - -container = { - alwaystransparent = no - using = situation_modifier_named_set_tooltip -} - -### Effects of the current phase of the situation sub-region on a participant group -template situation_participant_group_type_phase_effects_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions"{} - - blockoverride "title_text" - { - text = "[SituationParticipantGroupType.GetNameNoTooltip]" - } - - blockoverride "concept_link" - { - text = "[situation_participant_group|E]" - } - - blockoverride "subtitle_text" - { - text = "SITUATION_PARTICIPANT_GROUP_IN_PHASE_TYPE_SUBHEADER" - default_format = "#weak" - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - textbox = { - max_width = 400 - margin_top = 5 - layoutpolicy_horizontal = expanding - - using = DefaultTooltipText - - text = "[SituationPhaseType.GetParticipantGroupEffectTooltipBreakdown( SituationParticipantGroupType.Self )]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - multiline = yes - } - - expand = {} - } - } - } - } -} - -container = { - alwaystransparent = no - using = situation_participant_group_type_phase_effects_tooltip -} - -template house_unity_stage_tooltip { - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[HouseUnityStage.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[HouseUnityStage.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - text_multi = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - using = DefaultTooltipText - multiline = yes - text = "[HouseUnityStage.GetDescription]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - blockoverride "concept_link" { - text = "[house_unity_level|E]" - } - } -} - -container = { - name = "HouseUnityStageTooltip" - alwaystransparent = no - datacontext = "[GetPlayer]" - using = house_unity_stage_tooltip -} - -types DecisionTypes -{ - type decision_tooltip = object_tooltip_pop_out { - blockoverride "header_additions" {} - - blockoverride "title_text" { - margin = { 0 8 } - text = "[Decision.GetTitleForPlayer]" - default_format = "#T" - } - - blockoverride "main_description" { - text_multi = { - visible = "[Not(StringIsEmpty(Decision.GetCommandDescForPlayer))]" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - text = "[Decision.GetCommandDescForPlayer]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - text = "[Decision.GetShortDescForPlayer]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - block "custom_decision_data" {} - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - multiline = yes - text = "CLICK_TO_SELECT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - blockoverride "concept_link" {} - } -} - -container = { - name = "DecisionTooltip" - alwaystransparent = no - datacontext = "[GetPlayer]" - decision_tooltip = {} -} - -template activity_tooltip { - container = { - alwaystransparent = no - datacontext = "[Activity.GetType]" - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[Activity.GetNameNoTooltip|U]" - default_format = "#T" - } - - blockoverride "subtitle_text" { - text = "[Activity.GetType.GetName]" - default_format = "#weak" - } - - blockoverride "description_text" { - text = "[Activity.GetInvolvementText( GetPlayer.Self, 'tooltip' )]" - } - - blockoverride "concept_link" { - text = "ACTIVITY_TYPE_CONCEPT_SELECTOR" - } - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[ActivityType.GetIcon]" - framesize = { 160 160 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } -} - -container = { - alwaystransparent = no - name = "ActivityTooltip" - using = activity_tooltip -} - -template activity_type_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[ActivityType.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[ActivityType.GetDescription]" - } - - blockoverride "concept_link" { - text = "ACTIVITY_TYPE_CONCEPT_SELECTOR" - } - } - } -} - -container = { - alwaystransparent = no - name = "ActivityTypeTooltip" - using = activity_type_tooltip -} - -template activity_locale_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[ActivityLocale.GetName]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[ActivityLocaleWindow.EnterLocaleTooltip( ActivityLocale.Self )]" - } - - blockoverride "concept_link" { - text = "" - } - } - } -} - -container = { - alwaystransparent = no - name = "ActivityLocaleTooltip" - using = activity_locale_tooltip -} - -template travel_option_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "concept_link" { - text = "[travel_option|E]" - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[TravelOption.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[TravelOption.GetTooltipWithBlocker(TravelPlanData.Self)]" - } - - blockoverride "extra_data_after_description" { - textbox = { - name = "effects" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 10 - using = DefaultTooltipText - multiline = yes - text = "[TravelOption.GetDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - - blockoverride "input_info_text" - { - visible = "[IsGameViewOpen('travel_option_selection_window')]" - text_single = { - name = "click_add" - visible = "[And(Not(TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)), TravelOptionSelectionWindow.CanSelect(TravelOption.Self))]" - text = "TRAVEL_OPTION_TT_CLICK_TO_ADD" - default_format = "#I" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - name = "click_remove" - visible = "[TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)]" - text = "TRAVEL_OPTION_TT_CLICK_TO_REMOVE" - default_format = "#I" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} - -container = { - alwaystransparent = no - name = "TravelOptionTooltip" - using = travel_option_tooltip - datacontext = "[GetPlayer.GetTravelPlan.GetData]" -} - -template vassal_stance_tooltip -{ - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[VassalStance.GetTextIconNoFormat][VassalStance.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[VassalStance.GetDescription]" - } - - blockoverride "concept_link" { - text = "[vassal_stance|E]" - } - } - } -} - -container = { - name = "VassalStanceTooltip" - alwaystransparent = no - using = vassal_stance_tooltip -} - -template ai_personality_tooltip -{ - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Character.GetAIPersonalityNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[Character.GetAIPersonalityExplanation]" - } - - blockoverride "concept_link" { - text = "[personality|E]" - } - } - } -} - -container = { - name = "AiPersonalityTooltip" - alwaystransparent = no - using = ai_personality_tooltip -} - -template travel_plan_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[TravelPlan.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "TRAVEL_PLAN_TOOLTIP_DESC" - } - - blockoverride "concept_link" { - text = "[travel|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "TravelPlanTooltip" - using = travel_plan_tooltip -} - -template accolade_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Accolade.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "subtitle_text" { - text = "ACCOLADE_GLORY_AND_LEVEL" - } - - blockoverride "main_description" { - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "ACCOLADE_PRIMARY_TYPE_NAME" - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "ACCOLADE_SECONDARY_TYPE_NAME" - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "ACCOLADE_ACCLAIMED_KNIGHT_NAME" - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Accolade.GetSuccessor.IsValid]" - - text_single = { - text = "ACCOLADE_SUCCESSOR_NAME" - align = left - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - hbox = { - margin_top = 20 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Accolade.HasActiveEffects]" - - text_multi = { - text = "[Accolade.BuildActiveRankEffects]" - autoresize = yes - max_width = 500 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - } - } - - blockoverride "concept_link" { - text = "[accolade|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "AccoladeTooltip" - using = accolade_tooltip -} - -template accolade_type_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[AccoladeType.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "subheading" { - } - - blockoverride "main_description" { - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 500 - fontsize_min = 14 - using = Font_Size_Small - - visible = "[And(Accolade.IsValid, Accolade.IsPrimaryType( AccoladeType.Self ))]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "ACCOLADE_PRIMARY_TYPE" - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 500 - fontsize_min = 14 - using = Font_Size_Small - - visible = "[And(Accolade.IsValid, Accolade.IsSecondaryType( AccoladeType.Self ))]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "ACCOLADE_SECONDARY_TYPE" - } - - vbox = { - visible = "[Not(Accolade.IsValid)]" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelFirst( AccoladeType.GetRanks, '(int32)1' )]" - spacing = 5 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - layoutpolicy_horizontal = expanding - text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - text_single = { - text = "ACCOLADE_PRIMARY_TYPE" - align = nobaseline - default_format = "#low;italic" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - text_multi = { - layoutpolicy_horizontal = expanding - text = "[AccoladeRank.GetEffects]" - align = nobaseline - autoresize = yes - margin_top = 5 - margin_left = 20 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - # breakdown of all effects, not tied to an accolade - vbox = { - visible = "[Not(Accolade.IsValid)]" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelSkipLast( DataModelSkipFirst( AccoladeType.GetRanks, '(int32)1' ), '(int32)1' )]" - margin_bottom = 10 - spacing = 5 - - item = { - widget = { - size = { 300 40 } - layoutpolicy_horizontal = expanding - tooltip = "ACCOLADE_RANK_HEADER_AND_EFFECTS_TT" - using = tooltip_se - - background = { - using = Background_Frame - margin = { 10 0 } - } - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - expand = {} - text_single = { - visible = "[AccoladeType.IsPrimaryRank( AccoladeRank.Self )]" - text = "ACCOLADE_PRIMARY_TYPE" - align = right|nobaseline - default_format = "#low;italic" - margin_left = 20 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - text_single = { - visible = "[AccoladeType.IsSecondaryRank( AccoladeRank.Self )]" - text = "ACCOLADE_SECONDARY_TYPE" - align = right|nobaseline - default_format = "#low;italic" - margin_left = 20 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - # Last Rank (without Accolade) - vbox = { - visible = "[Not(Accolade.IsValid)]" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelLast( AccoladeType.GetRanks, '(int32)1' )]" - margin_bottom = 10 - spacing = 5 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - layoutpolicy_horizontal = expanding - text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - text_single = { - text = "ACCOLADE_SECONDARY_TYPE" - align = nobaseline - default_format = "#low;italic" - margin_left = 20 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - text_multi = { - layoutpolicy_horizontal = expanding - text = "[AccoladeRank.GetEffects]" - align = nobaseline - autoresize = yes - margin_top = 5 - margin_left = 20 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - # current rank number - text_single = { - margin_top = 10 - margin_bottom = 10 - layoutpolicy_horizontal = expanding - visible = "[Accolade.IsValid]" - text = "CURRENT_ACCOLADE_GLORY_AND_LEVEL" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - - background = { - margin_left = 10 - margin_right = 10 - margin_top = -5 - margin_bottom = -5 - using = Background_Area_Dark - alpha = 0.6 - } - } - - # breakdown of primary effects - vbox = { - visible = "[And(Accolade.IsValid, Accolade.IsPrimaryType( AccoladeType.Self ))]" - datamodel = "[AccoladeType.GetRanks]" - margin_bottom = 10 - spacing = 5 - - item = { - widget = { - visible = "[AccoladeType.IsPrimaryRank( AccoladeRank.Self )]" - size = { 300 40 } - tooltip = "ACCOLADE_RANK_HEADER_AND_EFFECTS_TT" - using = tooltip_se - - background = { - using = Background_Frame - margin = { 10 0 } - } - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - - # breakdown of secondary effects - vbox = { - visible = "[And(Accolade.IsValid, Accolade.IsSecondaryType( AccoladeType.Self ))]" - datamodel = "[AccoladeType.GetRanks]" - margin_bottom = 10 - spacing = 5 - - item = { - widget = { - visible = "[AccoladeType.IsSecondaryRank( AccoladeRank.Self )]" - size = { 300 40 } - tooltip = "ACCOLADE_RANK_HEADER_AND_EFFECTS_TT" - using = tooltip_se - - background = { - using = Background_Frame - margin = { 10 0 } - } - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - - blockoverride "concept_link" { - text = "[accolade_type|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "AccoladeTypeTooltip" - using = accolade_type_tooltip -} - - -template accolade_types_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "CREATE_ACCOLADE" - default_format = "#T" - } - - blockoverride "subheading" { - - } - - blockoverride "main_description" { - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Not( KnightsView.CanBeAcclaimedKnight( Character.Self ) )]" - - text = "[KnightsView.CanBeAcclaimedKnightDesc( Character.Self )]" - align = nobaseline - - margin_bottom = 10 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[accolade_types|E]" - align = nobaseline - - margin_bottom = 10 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datamodel = "[KnightsView.GetPotentialAccoladeTypes( Character.Self )]" - - spacing = 5 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "BULLET" - align = nobaseline - margin = { 10 0 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[AccoladeType.GetName]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - - blockoverride "concept_link" { - - } - } - } -} - -template point_of_interest_tooltip { - container = { - alwaystransparent = no - name = "PointOfInterestTooltip" - - datacontext = "[TravelPointsOfInterestIconData.GetProvince]" - datacontext = "[TravelPointsOfInterestIconData.GetProvince.GetTitle]" - - object_tooltip_pop_out = { - blockoverride "header_additions" { - margin_top = 5 - coa_title_small = { - visible = "[And( Not( Province.GetHolding.IsEmpty ), Title.IsValid )]" - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - - widget = { - visible = "[Or( Province.GetHolding.IsEmpty, Not( Title.IsValid ) )]" - size = { 55 65 } - icon = { - parentanchor = center - texture = "[Province.GetTerrain.GetIcon]" - position = { 0 -2 } - size = { 55 55 } - } - } - } - - blockoverride "title_text" { - margin_top = -10 - margin_left = 5 - - text = "[Select_CString( Title.IsValid, Title.GetNameNoTierNoTooltip, Province.GetName )]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[TravelPointsOfInterestIconData.GetDescription]" - } - - blockoverride "concept_link" { - margin_top = -2 - text = "[point_of_interest|E]" - } - } - } -} - -types GameTooltipTypes -{ - type tax_slot_obligation_tooltip = object_tooltip_pop_out - { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[TaxSlotObligation.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[TaxSlotObligation.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" - { - text = "[TaxSlotObligation.GetFlavorDesc]" - } - - blockoverride "extra_data_after_description" - { - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "TAX_OPTION_EFFECT_LABEL" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin_top = 5 - using = DefaultTooltipText - multiline = yes - text = "[TaxSlotObligation.GetEffectText]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - - blockoverride "concept_link" { - text = "[tax_decree|E]" - } - } -} - -container = { - name = "TaxSlotObligation" - alwaystransparent = no - tax_slot_obligation_tooltip = {} -} - -template epidemic_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - raw_text = "[Epidemic.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "subtitle_text" - { - text = "[Epidemic.GetType.GetName]" - default_format = "#weak" - } - - blockoverride "subheading" - { - hbox = { - layoutpolicy_horizontal = expanding - margin_top = -8 - - text_single = { - autoresize = yes - fontsize_min = 14 - using = Font_Size_Small - - align = left - text = "[Epidemic.GetIntensityName]" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 200 - margin_right = 4 - } - - text_single = { - autoresize = yes - fontsize_min = 14 - using = Font_Size_Small - - align = right - text = "[Epidemic.GetType.GetName]" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 200 - } - expand = {} - } - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 16 - - datacontext = "[Epidemic.GetType]" - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Epidemic.IsInRealm( GetPlayer )]" - spacing = 3 - - cooltip_paragraph = { - text = "EPIDMIC_TOOLTIP_IN_REALM" - } - cooltip_paragraph = { - text = "EPIDMIC_TOOLTIP_DOMAIN_INFECTIONS" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Epidemic.IsNearbyRealm( GetPlayer )]" - - cooltip_paragraph = { - text = "EPIDMIC_TOOLTIP_NEARBY_REALM" - } - } - - # Shared information - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "EPIDEMIC_TOOLTIP_HAS_INFECTION" - visible = "[GetPlayer.HasInfection( Epidemic.Self )]" - } - - cooltip_paragraph = { - block "infection_chance_text" - { - text = "EPIDEMIC_TOOLTIP_CHANCE_OF_INFECTION_CHARACTER_LOCATION" - } - visible = "[Not( GetPlayer.HasInfection( Epidemic.Self ) )]" - } - - cooltip_paragraph = { - text = "EPIDEMIC_TOOLTIP_OUTBREAK" - } - - block "extra_data" - { - } - - cooltip_paragraph = { - text = "EPIDEMIC_TOOLTIP_COURT_PHYSICIAN" - margin_top = 16 - default_format = "#weak" - } - } - - cooltip_paragraph = { - text = "CLICK_TO_VIEW" - } - } - } - - blockoverride "concept_link" { - text = "[epidemic|E]" - } - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon_epidemic = { - blockoverride "icon_size" - { - size = { 52 52 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } -} - -container = { - alwaystransparent = no - name = "EpidemicTooltip" - using = epidemic_tooltip -} - -template legend_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - raw_text = "[Legend.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "subheading" - { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - fontsize_min = 14 - using = Font_Size_Small - - align = left - text = "[Legend.GetQualityLevel]" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 200 - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - fontsize_min = 14 - using = Font_Size_Small - - align = right - text = "[Legend.GetType.GetName]" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - max_width = 200 - } - } - } - - blockoverride "extra_data" - { - cooltip_paragraph = { - visible = "[ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self )]" - text = "LEGEND_OWNING_LEGEND" - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self ) )]" - - cooltip_paragraph = { - visible = "[Legend.IsCharacterPromotingLegend( GetPlayer )]" - text = "LEGEND_PROMOTING_LEGEND" - } - cooltip_paragraph = { - text = "LEGEND_OWNER_DESCRIPTION" - } - } - } - - blockoverride "extra_data_after_description" - { - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 16 - spacing = 16 - - cooltip_paragraph = { - visible = "[Legend.HasImpactModifiers( 'owner' )]" - text = "OWNER_MODIFIERS_SUBTEXT" - } - cooltip_paragraph = { - visible = "[Legend.HasImpactModifiers( 'promoter' )]" - text = "LEGEND_PROMOTER_MODIFIERS_SUBTEXT" - } - cooltip_paragraph = { - visible = "[Legend.HasImpactModifiers( 'county' )]" - text = "LEGEND_COUNTY_MODIFIERS_SUBTEXT" - } - - cooltip_paragraph = { - visible = "[Legend.HasImpactModifiers( 'province' )]" - text = "LEGEND_PROVINCE_MODIFIERS_SUBTEXT" - } - - block "province_details" {} - } - } - - blockoverride "description_text" - { - default_format = "#F" - text = "[Legend.GetChapterDescriptionByIndex( '(int32)0' )]" - } - - blockoverride "concept_link" { - text = "[legend|E]" - } - - blockoverride "input_info_text" { - text = "CLICK_TO_VIEW" - } - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon_legend = { - datacontext = "[Legend.GetType]" - - blockoverride "icon_size" - { - size = { 52 52 } - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } -} - -container = { - alwaystransparent = no - name = "LegendTooltip" - using = legend_tooltip -} - -template task_contract_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[TaskContract.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "TASK_CONTRACT_TOOLTIP_DESC" - } - - blockoverride "concept_link" { - text = "[task_contract|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "TaskContractTooltip" - using = task_contract_tooltip -} - -template domicile_building_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon_building = { - datacontext = "[DomicileBuilding.GetRandomAsset]" - size = { 52 52 } - - texture = "[DomicileBuildingAsset.GetIcon]" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "[DomicileBuilding.GetNameAndLevel]" - default_format = "#T" - } - - blockoverride "concept_link" { - text = "[domicile_building|E]" - } - - blockoverride "description_text" - { - text = "[DomicileBuilding.GetSingleBuildingTooltip]" - } - } - } -} - -container = { - alwaystransparent = no - name = "DomicileBuildingTooltip" - using = domicile_building_tooltip -} - -template title_troops_tooltip { - container = { - alwaystransparent = yes - position = { 25 25 } - visible = "[SelectTitleTroopAssignmentView.IsHoveringValidTitle]" - datacontext = "[SelectTitleTroopAssignmentView.GetHoveredTitle]" - - object_tooltip_pop_out = { - alwaystransparent = yes - - visible = "[SelectTitleTroopAssignmentView.IsAdministrativeTitle]" - blockoverride "progress" {} - - blockoverride "header_additions" { - margin_top = -4 - - coa_title_small_crown = { - size = { 40 50 } - blockoverride "coa_tooltip" {} - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - blockoverride "title_text" { - text = "[Title.GetNameWithUnderlyingNoTooltip|U]" - } - - blockoverride "subheading" { - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_STATUS" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - blockoverride "concept_link" {} - - blockoverride "main_description" { - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CURRENT_ARMY_SIZE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[Not(IsDataModelEmpty(SelectTitleTroopAssignmentView.GetHiredTitles))]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_TROOPS_FROM" - default_format = "#weak" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - layoutpolicy_horizontal = expanding - hbox = { - layoutpolicy_horizontal = shrinking - datamodel = "[SelectTitleTroopAssignmentView.GetHiredTitles]" - - item = { - coa_title_tiny_crown = { - blockoverride "coa_hover_glow_visible" - { - visible = no - } - - icon = { - parentanchor = top|right - position = { 5 9 } - size = { 16 16 } - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - visible = "[Title.HasDiscountedTitleMaa(GetPlayer.Self)]" - - glow = { - color = { 0 0 0 0.8 } - glow_radius = 3 - using = Glow_Standard - } - } - } - } - } - - expand = {} - } - - vbox = { - visible = "[Title.HasHolder]" - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[Not( SelectTitleTroopAssignmentView.IsSelectingTitleForTransfer )]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CLICK" - margin = { 0 10 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - vbox = { - visible = "[SelectTitleTroopAssignmentView.IsSelectingTitleForTransfer]" - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[Not( IsGameViewOpen( 'hired_troop_detail_view' ) )]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_REASSIGNMENT_TOOLTIP_CLICK" - margin = { 0 10 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[IsGameViewOpen( 'hired_troop_detail_view' )]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_TOOLTIP_CLICK" - margin = { 0 10 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - text_single = { - visible = "[Not( Title.HasHolder )]" - layoutpolicy_horizontal = expanding - text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_NOT_CREATED" - margin = { 0 10 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - text_single = { - using = DefaultTooltipBackground - using = DefaultTooltipText - margin = { 20 10 } - margin_bottom = 20 - visible = "[Not( SelectTitleTroopAssignmentView.IsAdministrativeTitle )]" - text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_NOT_ADMIN" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } -} - -# Widget name referenced in code. Do not change! -container = { - alwaystransparent = yes - filter_mouse = none - name = "TitleTroopsTooltip" - visible = "[IsMapMode( 'title_troops' )]" - using = title_troops_tooltip -} - -template subject_contract_group_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[SubjectContractGroup.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "description_text" { - text = "[SubjectContractGroup.GetDescription]" - } - - blockoverride "concept_link" { - text = "[vassal_contract|E]" - } - } - } -} - -container = { - alwaystransparent = no - name = "SubjectContractGroupTooltip" - using = subject_contract_group_tooltip -} - -template widget_obedience_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "concept_link" {} - - blockoverride "title_text" { - margin = { 0 10 } - text = "[obedience|U]" - default_format = "#T" - } - - blockoverride "header_additions" { - icon = { - size = { 42 42 } - texture = "gfx/interface/icons/icon_obedience.dds" - } - spacer = { - size = { 12 12 } - } - } - - blockoverride "main_description" { - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - using = DefaultTooltipText - multiline = yes - text = "[Character.GetObedienceTooltipDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - text = "obedience_value" - } - - text_single = { - datacontext = "[Character.GetObedienceBreakdown]" - text = "[ValueBreakdown.GetFixedPointValue|0]" - default_format = "#L" - - margin = { 5 0 } - margin_right = 0 - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header" { - text_label_left = { - layoutpolicy_horizontal = expanding - raw_text = "[obedience|E]" - default_format = "#T" - } - } - } - } - } - - text_single = { - raw_text = "/" - } - - text_single = { - datacontext = "[Character.GetObedienceThresholdBreakdown]" - text = "[ValueBreakdown.GetFixedPointValue|0]" - default_format = "#L" - - margin = { 5 0 } - margin_left = 0 - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header" { - text_label_left = { - layoutpolicy_horizontal = expanding - raw_text = "[obedience_threshold|E]" - default_format = "#T" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "[overlord|E]:" - } - - text_single = { - text = "[Character.GetObedienceTarget.GetShortUIName|U]" - visible = "[Character.GetObedienceTarget.IsValid]" - margin = { 5 0 } - } - - text_single = { - text = "NONE" - visible = "[Not( Character.GetObedienceTarget.IsValid )]" - margin = { 5 0 } - } - } - } - } - } - } - } - } -} - -template innovation_icon_tooltip { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - margin = { 20 20 } - spacing = 15 - direction = vertical - ignoreinvisible = yes - datacontext = "[CultureInnovation.GetType]" - - widget = { - name = "header" - size = { 500 60 } - - background = { - using = Background_Area_Dark - margin = { 15 10 } - } - - hbox = { - minimumsize = { 500 0 } - set_parent_size_to_minimum = yes - - widget = { - size = { 90 60 } - icon = { - texture = "[CultureInnovation.GetIcon]" - size = { 90 60 } - - using = Mask_Rough_Edges - } - - icon = { - visible = "[Not(CultureInnovation.CanGainProgress)]" - texture = "[CultureInnovation.GetIcon]" - tintcolor = { 0 0 0 0.5 } - size = { 90 60 } - - using = Mask_Rough_Edges - } - } - - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#T" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = right - text = "INNOVATION_TOOLTIP_TYPE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - spacer = { - size = { 5 5 } - } - - text_single = { - layoutpolicy_horizontal = expanding - align = right - text = "INNOVATION_ERA_WITH_ERA_CONCEPT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - container = { - name = "spread" - using = era_innov_blockers - visible = "[CultureInnovation.HasSpreadMarker]" - minimumsize = { 500 0} - - background = { - using = Background_Area_Dark - margin = { 15 5 } - alpha = 0.6 - } - - blockoverride "eib_text" - { - text = "INNOVATION_SPREAD_MARKER_TOOLTIP" - } - } - - container = { - name = "blocked_for_government" - using = era_innov_blockers - - blockoverride "eib_visible" - { - visible = "[CultureInnovation.GetCultureEra.GetType.IsInvalidForPlayerGovernment]" - } - - blockoverride "eib_text" - { - text = "CULTURE_WINDOW_ERA_INNOVATION_BLOCKED_FOR_PLAYER_GOVERNMENT" - } - } - - container = { - name = "blocker" - using = era_innov_blockers - - blockoverride "eib_visible" - { - visible = "[Not(CultureInnovation.CanGainProgress)]" - } - - blockoverride "eib_text" - { - text = "[CultureInnovation.GetCantGainProgressReason]" - } - } - - container = { - using = era_innov_effects - - blockoverride "eie_label_visible" - { - visible = "[CultureInnovationType.HasEffects( CultureInnovation.GetCulture, GetPlayer )]" - minimumsize = { 500 30 } - } - - - blockoverride "eie_effects" - { - text = "[CultureInnovationType.GetEffectsDesc( CultureInnovation.GetCulture, GetPlayer )]" - } - } - - flowcontainer = { - minimumsize = { 100% 0 } - direction = vertical - ignoreinvisible = yes - - text_single = { - text = "[CultureInnovation.GetInnovationState]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - progressbar_standard = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - size = { 300 25 } - - min = 0 - max = 100 - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - - text_single = { - parentanchor = hcenter|vcenter - widgetanchor = hcenter|vcenter - position = { 0 -2 } - text = "[CultureInnovation.GetProgress|%/0]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - - background = { - using = Background_Area - margin = { 10 0 } - } - } - } - - text_single = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - text = "INNOVATION_TOOLTIP_PROGRESS" - autoresize = yes - max_width = 500 - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} - -template bazaar_building_tooltip { - container = { - alwaystransparent = no - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[Building.GetNameNoTooltip]" - } - - blockoverride "subtitle_text" { - text = "[Building.GetTypeName]" - default_format = "#weak" - } - - blockoverride "concept_link" { - text = "[building|E]" - } - - blockoverride "description_text" { - text = "CLICK_TO_SELECT" - } - } - } -} - - -template house_attribute_tooltip { - object_tooltip_pop_out = { - - - blockoverride "title_text" { - margin = { 0 8 } - text = "ADMINISTRATIVE_GOVERNMENT_BONUS_TOOLTIP_HEADING" - } - - blockoverride "concept_link" { - text = "[DynastyHouse.GetHouseAspirationFlavorName]" - } - - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - powerful_family_bonus_icon = {} - } - } - - blockoverride "description_text" - { - text = "[DynastyHouse.GetHouseAspirationBonusTooltip]" - } - - - } -} - -template situation_phase_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "concept_link" { - text = "[situation_phase|E]" - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "CURRENT_PHASE_PROGRESS_HEADER" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - visible = "[Not( Or(SilkRoadWindow.IsBadPhase( SituationSubRegion.Self ), SilkRoadWindow.IsGoodPhase( SituationSubRegion.Self )))]" - datamodel = "[SituationPhase.GetFuturePhases]" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - text_single = { - text = "FUTURE_PHASE_PROGRESS_HEADER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - expand = {} - } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[SituationPhase.GetLatestCatalystHistory]" - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "RecentCatalystsHeader" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 4 } - spacing = 4 - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - text_single = { - text = "[SituationCatalystHistory.GetCatalystType.GetName]" - align = nobaseline - max_width = 300 - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - expand = {} - - text_single = { - text = "[SituationCatalystHistory.GetValue|+=]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - } - } - } -} - -template confederation_tooltip { - object_tooltip_pop_out = { - datacontext = "[Confederation]" - datacontext = "[Confederation.GetType]" - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 5 - margin_left = -5 - - coa_bloc_small = { - visible = "[Confederation.GetType.IsHouseBasedConfederation]" - blockoverride "glow" {} - } - coa_confederation_small = { - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - blockoverride "glow" {} - } - } - } - - spacer = { size = { 40 0 } } - - blockoverride "title_text" - { - text = "CONFEDERATION_TT_TOOLTIP" - } - - blockoverride "fontsize_min" { - fontsize_min = 13 - } - - blockoverride "multiline" { - multiline = yes - } - - blockoverride "max_width" - { - max_width = 280 - } - - blockoverride "concept_link" - { - text = "[SelectLocalization(ConfederationType.IsHouseBasedConfederation, 'CONFEDERATION_BLOC_CONCEPT', 'CONFEDERATION_CONCEPT')]" - } - - blockoverride "extra_data" - { - cooltip_paragraph = { - name = "tooltip_from_code" - text = "[Confederation.GetConfederationTooltip]" - } - - cooltip_paragraph = { - name = "click" - text = "VIEW_CLICK" - default_format = "#I" - } - } - } -} - -container = { - name = "confederation_tooltip" - alwaystransparent = no - using = confederation_tooltip -} - -template great_project_tooltip { - container = { - alwaystransparent = no - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - block "header_icon" - { - texture = "[GreatProject.GetIcon]" - } - } - } - } - - blockoverride "concept_link" { - text = "[great_project|E]" - } - - blockoverride "title_text" { - margin = { 0 5 } - block "title_text" { - text = "[GreatProject.GetNameNoTooltip]" - } - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin = { 0 5 } - using = DefaultTooltipText - multiline = yes - text = "great_project_cooltip_desc" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - spacer = { - size = { 0 10 } - } - } - } - } - } -} -container = { - name = "GreatProjectTooltip" - alwaystransparent = no - using = great_project_tooltip -} diff --git a/N3OW/gui/shared/court_positions.gui b/N3OW/gui/shared/court_positions.gui deleted file mode 100644 index 5f282702..00000000 --- a/N3OW/gui/shared/court_positions.gui +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/N3OW/gui/shared/dialogs.gui b/N3OW/gui/shared/dialogs.gui deleted file mode 100644 index 120db6ba..00000000 --- a/N3OW/gui/shared/dialogs.gui +++ /dev/null @@ -1,274 +0,0 @@ -types Dialogs -{ - type base_dialog = window { - name = "base_dialog" - parentanchor = center - layer = confirmation - size = { 100% 100% } - movable = no - alwaystransparent = no - filter_mouse = all - - using = Animation_ShowHide_Standard - - button = { - size = { 100% 100% } - onclick = [GameDialog.Decline] - } - - block "popup_background_remove" - { - using = Background_Fade - } - - widget = { - parentanchor = center - alwaystransparent = no - - block "popup_background_remove" - { - using = Window_Background_Popup - } - - vbox = { - set_parent_size_to_minimum = yes - - block "dialog_contents" - { - margin = { 10 10 } - spacing = 10 - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[GameDialog.GetTitle]" - } - - blockoverride "button_close" - { - visible = no - } - } - - text_multi = { - name = "description" - autoresize = yes - max_width = 430 - min_width = 430 - margin = {15 10} - - visible = "[Not( StringIsEmpty( GameDialog.GetDescription ) )]" - - text = "[GameDialog.GetDescription]" - using = "Font_Size_Small" - - background = { - using = Background_Area - } - } - - block "extra_contents" - { - } - - block "bd_buttons" {} - } - } - } - } - - type confirmation_popup = base_dialog - { - blockoverride "bd_buttons" - { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 10 - - button_standard= { - name = "decline_button" - layoutpolicy_horizontal = growing - - text = "CANCEL_BUTTON" - onclick = [GameDialog.Decline] - shortcut = "close_window" - } - - spacer = { - size = { 15 0 } - } - - button_primary = { - layoutpolicy_horizontal = growing - name = "accept_button" - - text = "[GameDialog.GetAcceptText]" - shortcut = "confirm" - onclick = "[GameDialog.Accept]" - enabled = "[GameDialog.CanAccept]" - tooltip = "[GameDialog.GetCanAcceptBlocker]" - clicksound = "[GameDialog.GetClickSound]" - } - } - } - } -} - -base_dialog = { - name = "basic_info_popup" - - blockoverride "bd_buttons" { - button_primary = { - name = "accept_button" - text = "OK_BUTTON" - shortcut = "confirm" - onclick = "[GameDialog.Accept]" - } - } -} - -confirmation_popup = { - name = "basic_confirmation_popup" -} - -base_dialog = { - name = "basic_image_info_popup" - - blockoverride "dialog_contents" - { - icon = { - name = "info_popup_image" # Name used in code, do NOT change - size = { 250 250 } - texture = "[ImagePopup.GetTexture]" - } - - text_single = { - text = "[GameDialog.GetTitle]" - using = Font_Size_Big - } - } -} - -base_dialog = { - name = "rename_popup" - - blockoverride "bd_buttons" { - vbox = { - hbox = { - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - spacing = 10 - widget = { - size = { 280 0 } - } - - editbox_standard = { - size = { 280 30 } - visible = "[Not( RenamePopup.UsesTwoTextFields )]" - - blockoverride "editbox_properties" - { - name = "new_name" - } - } - - vbox = { - spacing = 10 - visible = "[RenamePopup.UsesTwoTextFields]" - layoutpolicy_horizontal = expanding - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - name = "field_one" - } - - blockoverride "editbox_properties" - { - name = "new_name_one" - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - name = "field_two" - } - - blockoverride "editbox_properties" - { - name = "new_name_two" - } - } - } - - expand = {} - - textbox = { - name = "blocker" - default_format = "#high" - size = { 135 50 } - text = "[GameDialog.GetCanAcceptBlocker]" - #visible = "[Not( GameDialog.CanAccept )]" - visible = no - } - } - vbox = { - visible = "[RenamePopup.UsesColor]" - - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[RenamePopup.GetColorString]" - max_width = 280 - } - - colorpicker_simple = { - visible = yes - color = "[RenamePopup.GetColor]" - oncoloredited = "[RenamePopup.SetColor]" - } - - background = { - - using = Background_Area - expand={} - } - } - } - hbox = { - spacing = 10 - margin_top = 20 - button_standard= { - name = "decline_button" - - onclick = "[GameDialog.Decline]" - text = "CANCEL_BUTTON" - shortcut = "close_window" - } - - button_primary = { - name = "accept_button" - - text = "[GameDialog.GetAcceptText]" - shortcut = "confirm" - onclick = "[GameDialog.Accept]" - enabled = "[GameDialog.CanAccept]" - tooltip = "RENAME_TOOLTIP" - } - } - widget = { - size = { 50 5 } - } - } - } -} diff --git a/N3OW/gui/shared/edit_boxes.gui b/N3OW/gui/shared/edit_boxes.gui deleted file mode 100644 index a2de7940..00000000 --- a/N3OW/gui/shared/edit_boxes.gui +++ /dev/null @@ -1,76 +0,0 @@ -types Editboxes -{ - type editbox_standard_with_label = vbox { - spacing = 4 - - text_single = { - block "editbox_label" - { - raw_text = "#D block editbox_label#!" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - editbox_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - block "editbox_right_side" - { - } - } - } - - type editbox_search_field = hbox { - spacing = 5 - - icon = { - size = { 30 30 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 4 - } - - texture = "gfx/interface/icons/flat_icons/search.dds" - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - } - } - - - - type editbox_standard = margin_widget { - margin_left = 5 - margin_right = 5 - margin_top = 5 - size = { 72 30 } - - using = tooltip_es - - background = { - texture = "gfx/interface/component_tiles/tile_editbox.dds" - spriteType = Corneredtiled - spriteborder = { 16 16 } - } - - editbox = { - block "editbox_properties" - { - name = "give_me_a_unique_name_for_code_to_find_me" - } - - align = top|left - size = {100% 100%} - alwaystransparent = no - focuspolicy = all - default_format = "#high" - } - } -} diff --git a/N3OW/gui/shared/event_windows.gui b/N3OW/gui/shared/event_windows.gui deleted file mode 100644 index 999e982f..00000000 --- a/N3OW/gui/shared/event_windows.gui +++ /dev/null @@ -1,2079 +0,0 @@ -#################################### -# Event window types and templates # -#################################### - -types Events -{ - ## Dimmer - Faint temporary overlay to bring focus attention on the event window - type event_window_dimmer_widget = widget { - name = "event_focus_dimmer" - visible = "[Not(GameHasMultiplePlayers)]" - size = { 100% 100% } - - icon = { - visible = "[Not(GetVariableSystem.Exists( 'event_window_mouse_leave'))]" - parentanchor = center - size = { 200% 200% } - alwaystransparent = yes - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 0.6 - duration = 0.8 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 3 - alpha = 0 - } - } - } - - type event_portrait_status_icons_left = container { - flowcontainer = { - ignoreinvisible = yes - direction = horizontal - - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom - } - - portrait_status_icons = { - parentanchor = bottom - margin_bottom = 5 - } - } - } - - type event_portrait_status_icons_right = container { - flowcontainer = { - ignoreinvisible = yes - direction = horizontal - - portrait_status_icons = {} - - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - } - } - } - - type button_eventoption = button_event_standard - { - name = "event_option_button" - block "button_size" { - size = { 500 36 } - } - enabled = "[EventOption.IsValid]" - - default_clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - onclick = "[EventOption.Select]" - clicksound = "[EventOption.GetClickSound]" - - block "onmousehierarchy_callbacks" { - onmousehierarchyenter = "[EventOption.OnEnter]" - onmousehierarchyleave = "[EventOption.OnLeave]" - } - - icon = { - texture = "gfx/interface/buttons/button_event.dds" - alpha = 1 - spriteType = Corneredtiled - spriteborder = { 3 3 } - framesize = { 249 78 } - size = { 100% 100% } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredtiled - spriteborder_left = 40 - spriteborder_right = 40 - blend_mode = alphamultiply - } - } - - # Trick to not have the option text steal tooltips from the trait/skill grid - hbox = { - tooltip = "[EventOption.GetTooltip]" - tooltip_visible = "[Not( StringIsEmpty( EventOption.GetTooltip ) )]" - - block "option_tooltip_position" - { - using = tooltip_ws - tooltip_offset = { -80 0 } - } - - # Wider tooltips for the effects - tooltipwidget = { - using = DefaultTooltipWidget - } - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredtiled - spriteborder_left = 40 - spriteborder_right = 40 - blend_mode = alphamultiply - } - - animation_glow_event = { - name = "special_option" - visible = "[And(EventOption.HasFlag('special'), Not(EventOption.HasFlag('dangerous')))]" - } - - animation_glow_event = { - name = "dangerous_option" - visible = "[EventOption.HasFlag('dangerous')]" - using = Color_Red - } - - ### BUTTON CONTENT #### - hbox = { - margin = { 5 0 } - - hbox = { - fixedgridbox = { - name = "reason_icons" - datamodel = "[EventOption.Reasons]" - addcolumn = 34 - addrow = 34 - flipdirection = yes - - item = { - container = { - icon = { - name = "trait_icon" - datacontext = "[ReasonItem.GetTrait]" - - visible = "[ReasonItem.IsTrait]" - alwaystransparent = yes - - texture = "[Trait.GetIcon(GetPlayer)]" - size = { 34 34 } - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRAIT" - using = tooltip_nw - } - - icon = { - name = "skill_icon" - datacontext = "[ReasonItem.GetSkillItem]" - - visible = "[ReasonItem.IsSkill]" - alwaystransparent = yes - - texture = "gfx/interface/icons/icon_skills.dds" - size = { 34 34 } - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SKILL" - using = tooltip_ws - } - - icon = { - name = "dread_icon" - visible = "[ReasonItem.IsFlag( 'dread' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dread.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_DREAD" - } - - icon = { - name = "celestial_military_appointment" - visible = "[ReasonItem.IsFlag( 'celestial_military_appointment' )]" - size = { 34 34 } - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_military_administration.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CELESTIAL_MILITARY_APPOINTMENT" - } - - icon = { - name = "activity_intent_icon" - visible = "[ReasonItem.IsFlag( 'activity_intent' )]" - size = { 34 34 } - texture = "[GetPlayer.GetInvolvedActivity.GetType.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ACTIVITY_INTENT" - } - - icon = { - name = "influence_icon" - visible = "[ReasonItem.IsFlag( 'influence_level')]" - size = { 34 34 } - texture = "[GetPlayer.GetInfluenceLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_INFLUENCE_LEVEL" - } - - icon = { - name = "prestige_icon" - visible = "[ReasonItem.IsFlag( 'prestige_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PRESTIGE_LEVEL" - } - - icon = { - name = "piety_icon" - visible = "[ReasonItem.IsFlag( 'piety_level' )]" - size = { 34 34 } - texture = "[GetPlayer.GetPietyLevelTexture]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PIETY_LEVEL" - } - - icon = { - name = "faith_icon" - visible = "[ReasonItem.IsFlag( 'faith' )]" - size = { 34 34 } - texture = "[GetPlayer.GetFaith.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FAITH" - } - - icon = { - name = "friendship_icon" - visible = "[ReasonItem.IsFlag( 'friend' )]" - size = { 34 34 } - texture = "gfx/interface/icons/portraits/friend.dds" - frame = 1 - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FRIEND" - } - - icon = { - name = "rival_icon" - visible = "[ReasonItem.IsFlag( 'rival' )]" - size = { 34 34 } - texture = "gfx/interface/icons/portraits/rival.dds" - frame = 1 - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_RIVAL" - } - - icon = { - name = "blood_brother_icon" - visible = "[ReasonItem.IsFlag( 'blood_brother' )]" - size = { 34 34 } - texture = "gfx/interface/icons/portraits/blood_brother.dds" - frame = 1 - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BLOOD_BROTHER" - } - - icon = { - name = "hook_icon" - visible = "[ReasonItem.IsFlag( 'hook' )]" - size = { 34 34 } - texture = "gfx/interface/icons/hook.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HOOK" - } - - icon = { - name = "relation_positive" - visible = "[ReasonItem.IsFlag( 'relation_positive' )]" - size = { 34 34 } - texture = "gfx/interface/icons/message_feed/friend.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_POSITIVE_RELATION" - } - - icon = { - name = "opinion_negative" - visible = "[ReasonItem.IsFlag( 'opinion_negative' )]" - size = { 34 34 } - texture = "gfx/interface/icons/message_feed/rival.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_NEGATIVE_OPINION" - } - - icon = { - name = "scheme_success_icon" - visible = "[ReasonItem.IsFlag( 'gives_scheme_success' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - tooltip = "EVENT_WINDOW_OPTION_GIVES_SCHEME_SUCCESS" - } - - icon = { - name = "scheme_phase_duration_icon" - visible = "[ReasonItem.IsFlag( 'gives_scheme_phase_duration' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - tooltip = "EVENT_WINDOW_OPTION_GIVES_SCHEME_PHASE_DURATION" - } - - icon = { - name = "hostile_scheme_icon" - visible = "[ReasonItem.IsFlag( 'hostile_scheme' )]" - size = { 34 34 } - texture = "gfx/interface/icons/scheme_types/icon_scheme_murder.dds" - tooltip = "EVENT_WINDOW_OPTION_HOSTILE_SCHEME" - } - - icon = { - name = "scheme_success_agents_icon" - visible = "[ReasonItem.IsFlag( 'give_me_success_agents' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - tooltip = "EVENT_WINDOW_OPTION_AGENTS_SUCCESS" - } - - icon = { - name = "scheme_phase_duration_agents_icon" - visible = "[ReasonItem.IsFlag( 'give_me_speed_agents' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - tooltip = "EVENT_WINDOW_OPTION_AGENTS_SPEED" - } - - icon = { - name = "scheme_secrecy_agents_icon" - visible = "[ReasonItem.IsFlag( 'give_me_secrecy_agents' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - tooltip = "EVENT_WINDOW_OPTION_AGENTS_SECRECY" - } - - icon = { - name = "scheme_balanced_agents_icon" - visible = "[ReasonItem.IsFlag( 'give_me_balanced_agents' )]" - size = { 34 34 } - texture = "gfx/interface/icons/schemes/icon_balanced_approach.dds" - tooltip = "EVENT_WINDOW_OPTION_AGENTS_BALANCED" - } - - icon = { - name = "artifact_icon" - visible = "[ReasonItem.IsFlag( 'artifact' )]" - size = { 34 34 } - texture = "gfx/interface/icons/artifact/artefact_icons_unique_artifact_excalibur.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ARTIFACT" - } - - icon = { - name = "castle_holding_icon" - visible = "[ReasonItem.IsFlag( 'castle_holding' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_holding_castle.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CASTLE" - } - - icon = { - name = "city_holding_icon" - visible = "[ReasonItem.IsFlag( 'city_holding' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_holding_city.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CITY" - } - - icon = { - name = "church_holding_icon" - visible = "[ReasonItem.IsFlag( 'church_holding' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_holding_church.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CHURCH" - } - - icon = { - name = "purpose_mercenaries_icon" - visible = "[ReasonItem.IsFlag( 'purpose_mercenaries' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_MERCENARIES" - } - - icon = { - name = "purpose_wanderers_icon" - visible = "[ReasonItem.IsFlag( 'purpose_wanderers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_WANDERERS" - } - - icon = { - name = "purpose_scholars_icon" - visible = "[ReasonItem.IsFlag( 'purpose_scholars' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_SCHOLARS" - } - - icon = { - name = "purpose_explorers_icon" - visible = "[ReasonItem.IsFlag( 'purpose_explorers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_EXPLORERS" - } - - icon = { - name = "purpose_brigands_icon" - visible = "[ReasonItem.IsFlag( 'purpose_brigands' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_BRIGANDS" - } - - icon = { - name = "purpose_legitimists_icon" - visible = "[ReasonItem.IsFlag( 'purpose_legitimists' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_LEGITIMISTS" - } - - icon = { - name = "purpose_brigands_and_mercenaries_icon" - visible = "[ReasonItem.IsFlag( 'purpose_brigands_and_mercenaries' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_BRIGANDS_AND_MERCENARIES" - } - - icon = { - name = "purpose_explorers_and_wanderers_icon" - visible = "[ReasonItem.IsFlag( 'purpose_explorers_and_wanderers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_EXPLORERS_AND_WANDERERS" - } - - icon = { - name = "purpose_legitimists_and_scholars_icon" - visible = "[ReasonItem.IsFlag( 'purpose_legitimists_and_scholars' )]" - size = { 34 34 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - tooltip = "EVENT_WINDOW_OPTION_PURPOSE_LEGITIMISTS_AND_SCHOLARS" - } - - icon = { - name = "high_almoner_icon" - visible = "[ReasonItem.IsFlag( 'high_almoner' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/high_almoner_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_HIGH_ALMONER" - } - - icon = { - name = "antiquarian_icon" - visible = "[ReasonItem.IsFlag( 'antiquarian' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/antiquarian_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_ANTIQUARIAN" - } - icon = { - name = "family_icon" - visible = "[ReasonItem.IsFlag( 'family' )]" - size = { 34 34 } - texture = "gfx/interface/icons/modifiers/family_mixed.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_FAMILY" - } - - icon = { - name = "have_second_icon" - visible = "[ReasonItem.IsFlag( 'have_second' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/second_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_SECOND" - } - icon = { - name = "have_quartermaster_icon" - visible = "[ReasonItem.IsFlag( 'have_quartermaster' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/quartermaster_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_QUARTERMASTER" - } - icon = { - name = "have_armourer_icon" - visible = "[ReasonItem.IsFlag( 'have_armourer' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/armorer_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_ARMOURER" - } - icon = { - name = "have_chief_forager_icon" - visible = "[ReasonItem.IsFlag( 'have_chief_forager' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/chief_forager_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_CHIEF_FORAGER" - } - icon = { - name = "have_master_thief_icon" - visible = "[ReasonItem.IsFlag( 'have_master_thief' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_thief_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_MASTER_THIEF" - } - icon = { - name = "have_head_porter_icon" - visible = "[ReasonItem.IsFlag( 'have_head_porter' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/head_porter_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_HEAD_PORTER" - } - icon = { - name = "have_head_groom_icon" - visible = "[ReasonItem.IsFlag( 'have_head_groom' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/head_groom_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_HEAD_GROOM" - } - icon = { - name = "have_huntperson_icon" - visible = "[ReasonItem.IsFlag( 'have_huntperson' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/huntperson_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_HUNTPERSON" - } - icon = { - name = "have_kennelperson_icon" - visible = "[ReasonItem.IsFlag( 'have_kennelperson' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/kennelperson_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_KENNELPERSON" - } - icon = { - name = "have_chief_engineer_icon" - visible = "[ReasonItem.IsFlag( 'have_chief_engineer' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/chief_engineer_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_CHIEF_ENGINEER" - } - icon = { - name = "have_witness_icon" - visible = "[ReasonItem.IsFlag( 'have_witness' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/witness_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_WITNESS" - } - icon = { - name = "have_camp_cook_icon" - visible = "[ReasonItem.IsFlag( 'have_camp_cook' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_cook_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_CAMP_COOK" - } - icon = { - name = "have_master_bard_icon" - visible = "[ReasonItem.IsFlag( 'have_master_bard' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_bard_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_MASTER_BARD" - } - icon = { - name = "have_stooge_icon" - visible = "[ReasonItem.IsFlag( 'have_stooge' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/stooge_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_STOOGE" - } - icon = { - name = "have_master_of_arms_icon" - visible = "[ReasonItem.IsFlag( 'have_master_of_arms' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_of_arms_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_MASTER_OF_ARMS" - } - icon = { - name = "have_master_of_spoils_icon" - visible = "[ReasonItem.IsFlag( 'have_master_of_spoils' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_of_spoils_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_MASTER_OF_SPOILS" - } - - icon = { - name = "unlocked_armorer_icon" - visible = "[ReasonItem.IsFlag( 'unlocked_armorer' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/armorer_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_UNLOCKED_ARMORER" - } - - icon = { - name = "unlocked_haggler_icon" - visible = "[ReasonItem.IsFlag( 'have_person_haggler' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/person_haggler_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PERSON_HAGGLER" - } - - icon = { - name = "many_followers_icon" - visible = "[ReasonItem.IsFlag( 'many_followers' )]" - size = { 34 34 } - texture = "gfx/interface/skinned/hud_maintab/maintab_court.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_MANY_FOLLOWERS" - } - - icon = { - name = "piety_amount_icon" - visible = "[ReasonItem.IsFlag( 'piety' )]" - size = { 34 34 } - texture = "gfx/interface/icons/event_types/type_faith.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PIETY" - } - - icon = { - name = "gallant_icon" - visible = "[ReasonItem.IsFlag( 'gallant' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/gallant.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_GALLANT" - } - - icon = { - name = "knight_errant_icon" - visible = "[ReasonItem.IsFlag( 'knight_errant' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/knight_of_the_swan.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_KNIGHT_ERRANT" - } - - icon = { - name = "unlocked_master_of_arms_icon" - visible = "[ReasonItem.IsFlag( 'unlocked_master_of_arms' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_of_arms_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_UNLOCKED_MASTER_OF_ARMS" - } - - icon = { - name = "governor_icon" - visible = "[ReasonItem.IsFlag( 'governor_efficiency' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/governor.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_UNLOCKED_GOVERNOR_EFFICIENCY" - } - - icon = { - name = "supply_tent_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_supply_tent_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/quartermaster_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_SUPPLY_TENT_01_OR_HIGHER" - } - icon = { - name = "barber_tent_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_barber_tent_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/trait_level_tracks/lifestyle_physician.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_BARBER_TENT_01_OR_HIGHER" - } - icon = { - name = "baggage_train_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_baggage_train_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/icon_contract_escort.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_BAGGAGE_TRAIN_01_OR_HIGHER" - } - icon = { - name = "mess_tent_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_mess_tent_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_cook_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_MESS_TENT_01_OR_HIGHER" - } - icon = { - name = "mess_tent_03_icon" - visible = "[ReasonItem.IsFlag( 'has_building_mess_tent_03_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_cook_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_MESS_TENT_03_OR_HIGHER" - } - icon = { - name = "camp_fire_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_camp_fire_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/trait_level_tracks/lifestyle_reveler.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_CAMP_FIRE_01_OR_HIGHER" - } - icon = { - name = "proving_grounds_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_proving_grounds_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_of_arms_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_PROVING_GROUNDS_01_OR_HIGHER" - } - icon = { - name = "camp_perimeter_01_icon" - visible = "[ReasonItem.IsFlag( 'has_building_camp_perimeter_01_or_higher' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/archer_captain_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_CAMP_PERIMETER_01_OR_HIGHER" - } - icon = { - name = "mess_tent_cooks_icon" - visible = "[ReasonItem.IsFlag( 'has_building_mess_tent_cooks' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_cook_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_MESS_TENT_COOKS" - } - icon = { - name = "mess_tent_brewers_icon" - visible = "[ReasonItem.IsFlag( 'has_building_mess_tent_brewers' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/cupbearer_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_MESS_TENT_BREWERS" - } - icon = { - name = "supply_tent_reserve_provisions_icon" - visible = "[ReasonItem.IsFlag( 'has_building_supply_tent_reserve_provisions' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/chief_forager_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_SUPPLY_TENT_RESERVE_PROVISIONS" - } - icon = { - name = "supply_tent_reserve_water_icon" - visible = "[ReasonItem.IsFlag( 'has_building_supply_tent_reserve_water' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/head_porter_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_SUPPLY_TENT_RESERVE_WATER" - } - icon = { - name = "camp_perimeter_fixed_layout_icon" - visible = "[ReasonItem.IsFlag( 'has_building_camp_perimeter_fixed_layout' )]" - size = { 34 34 } - texture = "gfx/interface/icons/vassal_stances/minority.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_CAMP_PERIMETER_FIXED_LAYOUT" - } - icon = { - name = "camp_fire_nightly_debates_icon" - visible = "[ReasonItem.IsFlag( 'has_building_camp_fire_nightly_debates' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_battle_advantage.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_CAMP_FIRE_NIGHTLY_DEBATES" - } - icon = { - name = "baggage_train_ample_steeds_icon" - visible = "[ReasonItem.IsFlag( 'has_building_baggage_train_ample_steeds' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/light_infantry_captain_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_BUILDING_BAGGAGE_TRAIN_AMPLE_STEEDS" - } - icon = { - name = "callous_and_baggage_train_ample_steeds_icon" - visible = "[ReasonItem.IsFlag( 'is_callous_has_building_baggage_train_ample_steeds' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/callous.dds" - tooltip = "EVENT_WINDOW_OPTION_IS_CALLOUS_AND_HAS_BUILDING_BAGGAGE_TRAIN_AMPLE_STEEDS" - } - - #Visit Settlement-related event option icons - ##GENERAL - icon = { - name = "buy_provisions_icon" - visible = "[ReasonItem.IsFlag( 'buy_provisions' )]" - framesize = { 60 60 } - frame = 0 - size = { 34 34 } - texture = "gfx/interface/icons/icon_camp_supply.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_PROVISIONS" - } - icon = { - name = "sell_artifacts_icon" - visible = "[ReasonItem.IsFlag( 'sell_artifacts' )]" - size = { 34 34 } - texture = "gfx/interface/icons/artifact/artefact_icons_unique_artifact_excalibur.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_ARTIFACTS" - } - icon = { - name = "spawn_contracts_icon" - visible = "[ReasonItem.IsFlag( 'spawn_contracts' )]" - size = { 34 34 } - texture = "gfx/interface/icons/message_feed/contract.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CONTRACTS" - } - icon = { - name = "tavern_icon" - visible = "[ReasonItem.IsFlag( 'visit_tavern' )]" - size = { 34 34 } - texture = "gfx/interface/icons/activities/activity_feast.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_TAVERN" - } - ##TAVERN - icon = { - name = "storyteller_icon" - visible = "[ReasonItem.IsFlag( 'storyteller' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_bard_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_TAVERN_STORYTELLER" - } - icon = { - name = "recruitment_icon" - visible = "[ReasonItem.IsFlag( 'recruitment' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/council.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_TAVERN_RECRUITMENT" - } - icon = { - name = "potential_spouse_icon" - visible = "[ReasonItem.IsFlag( 'potential_spouse' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/icon_scheme_seduce.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_TAVERN_POTENTIAL" - } - icon = { - name = "spouse_icon" - visible = "[ReasonItem.IsFlag( 'spouse' )]" - size = { 34 34 } - texture = "gfx/interface/icons/marriage.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SPOUSE" - } - icon = { - name = "hood_icon" - visible = "[ReasonItem.IsFlag( 'hooded_character' )]" - size = { 34 34 } - texture = "gfx/interface/icons/memory_types/intrigue.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_TAVERN_HOOD" - } - - ##CHURCH HOLDING - icon = { - name = "healer_icon" - visible = "[ReasonItem.IsFlag( 'visit_healer' )]" - size = { 34 34 } - texture = "gfx/interface/icons/memory_types/icon_wounded.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CHURCH_HOLDING_HEALER" - } - icon = { - name = "church_icon" - visible = "[ReasonItem.IsFlag( 'visit_church' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_priest_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CHURCH_HOLDING_CHURCH" - } - icon = { - name = "garden_icon" - visible = "[ReasonItem.IsFlag( 'visit_garden' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/court_gardener_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CHURCH_HOLDING_GARDEN" - } - icon = { - name = "physician_icon" - visible = "[ReasonItem.IsFlag( 'recruit_physician' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/court_physician_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CHURCH_HOLDING_PHYSICIAN" - } - - ##CASTLE HOLDING - icon = { - name = "training_grounds_icon" - visible = "[ReasonItem.IsFlag( 'visit_training_grounds' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/light_infantry_captain_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CASTLE_HOLDING_TRAINING" - } - icon = { - name = "visit_garrison_icon" - visible = "[ReasonItem.IsFlag( 'visit_garrison' )]" - size = { 34 34 } - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_military_administration.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CASTLE_HOLDING_GARRISON" - } - icon = { - name = "reinforce_maa_icon" - visible = "[ReasonItem.IsFlag( 'reinforce_maa' )]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_soldier.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CASTLE_HOLDING_REINFORCE" - } - icon = { - name = "bodyguard_icon" - visible = "[ReasonItem.IsFlag( 'recruit_bodyguard' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/bodyguard_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CASTLE_HOLDING_BODYGUARD" - } - - ##CITY HOLDING - icon = { - name = "weaponsmith_icon" - visible = "[ReasonItem.IsFlag( 'visit_weaponsmith' )]" - size = { 34 34 } - texture = "gfx/interface/icons/trait_level_tracks/foot.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CITY_HOLDING_WEAPONSMITH" - } - icon = { - name = "armorsmith_icon" - visible = "[ReasonItem.IsFlag( 'visit_armorsmith' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/armorer_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CITY_HOLDING_ARMORSMITH" - } - icon = { - name = "jeweler_icon" - visible = "[ReasonItem.IsFlag( 'visit_jeweler' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/master_of_spoils_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_VISIT_SETTLEMENT_CITY_HOLDING_JEWELER" - } - #Quartermaster already covered by "have_quartermaster_icon" - - icon = { - name = "estate_building_wine_cellar_icon" - visible = "[ReasonItem.IsFlag( 'estate_building_wine_cellar' )]" - size = { 34 34 } - texture = "gfx/interface/icons/map_icons/map_icon_estate.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ESTATE_BUILDING_WINE_CELLAR" - } - icon = { - name = "skilled_follower_icon" - visible = "[ReasonItem.IsFlag( 'skilled_follower' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/adventurer_follower.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SKILLED_FOLLOWER" - } - icon = { - name = "scholar_icon" - visible = "[ReasonItem.IsFlag( 'scholar' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/scholar.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_SCHOLAR" - } - icon = { - name = "language_icon" - visible = "[ReasonItem.IsFlag( 'language' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/icon_scheme_learn_language.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_LANGUAGE" - } - - icon = { - name = "diplomacy_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_diplomacy_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/education_diplomacy_base.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_DIPLOMACY_TRAIT" - } - - icon = { - name = "lifestyle_focus_icon" - visible = "[ReasonItem.IsFlag( 'lifestyle_focus' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/alerts/action_can_choose_lifestyle.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_LIFESTYLE_FOCUS" - } - icon = { - name = "lifestyle_icon" - visible = "[ReasonItem.IsFlag( 'lifestyle' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/alerts/action_can_choose_lifestyle.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_LIFESTYLE" - } - - icon = { - name = "movement_icon" - visible = "[ReasonItem.IsFlag( 'movement' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_unaligned.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_MOVEMENT" - } - - icon = { - name = "conservative_movement_icon" - visible = "[ReasonItem.IsFlag( 'conservative_movement' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_anti.dds" - } - - icon = { - name = "expansion_movement_icon" - visible = "[ReasonItem.IsFlag( 'expansion_movement' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_expand.dds" - } - - icon = { - name = "pro_hegemon_movement_icon" - visible = "[ReasonItem.IsFlag( 'pro_hegemon_movement' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_pro.dds" - } - - icon = { - name = "advancement_movement_icon" - visible = "[ReasonItem.IsFlag( 'advancement_movement' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_advance.dds" - } - - icon = { - name = "advancement_icon" - visible = "[ReasonItem.IsFlag( 'advancement_phase' )]" - framesize = { 144 144 } - frame = 2 - size = { 34 34 } - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_advancement.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_ADVANCEMENT_PHASE" - } - - icon = { - name = "martial_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_martial_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/education_martial_base.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_MARTIAL_TRAIT" - } - icon = { - name = "commander_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_commander_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/flexible_leader.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_COMMANDER_TRAIT" - } - icon = { - name = "stewardship_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_stewardship_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/education_stewardship_base.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_STEWARDSHIP_TRAIT" - } - icon = { - name = "intrigue_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_intrigue_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/education_intrigue_base.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_INTRIGUE_TRAIT" - } - icon = { - name = "learning_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_learning_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/education_learning_base.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_LEARNING_TRAIT" - } - - icon = { - name = "religious_trait_icon" - visible = "[ReasonItem.IsFlag( 'has_religious_trait' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/crusader_king.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_RELIGIOUS_TRAIT" - } - icon = { - name = "have_camp_priest_icon" - visible = "[ReasonItem.IsFlag( 'have_camp_priest' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/camp_priest_camp_officer.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HAVE_CAMP_PRIEST" - } - - icon = { - name = "poi_amount_icon" - visible = "[ReasonItem.IsFlag( 'poi_amount' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/travel_leader_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_POI_AMOUNT" - } - - icon = { - name = "has_physician_icon" - visible = "[ReasonItem.IsFlag( 'physician' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/court_physician_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_PHYSICIAN" - } - - # Brewery Event (travel_events_bp3.85) - icon = { - name = "brewery_icon" - visible = "[ReasonItem.IsFlag( 'brewery' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/court_brewmaster_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CHURCH_HOLDING_BREWERY" - } - icon = { - name = "has_culture_icon" - visible = "[ReasonItem.IsFlag( 'culture' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/icon_culture.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_CULTURE" - } - icon = { - name = "has_cultrad_icon" - visible = "[ReasonItem.IsFlag( 'has_cultrad' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/icon_culture.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRADITIONS" - } - - # Introduce heir MPO event - icon = { - name = "tourney_participant_icon" - visible = "[ReasonItem.IsFlag( 'tourney_participant' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/tournament_foot_archery_horse_mind.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HASTILUDER" - } - - # Introduce heir MPO event - icon = { - name = "trade_yurt_icon" - visible = "[ReasonItem.IsFlag( 'trade_yurt' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/royal_architect_court_position.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_TRADE_YURT" - } - # TUTORIAL - icon = { - name = "ruler_objectives_icon" - visible = "[ReasonItem.IsFlag( 'ruler_objectives' )]" - size = { 34 34 } - texture = "gfx/interface/icons/activities/activity_tutorial.dds" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_RULER_OBJECTIVES" - } - - #ALERT - icon = { - name = "alert_icon" - visible = "[ReasonItem.IsFlag( 'alert' )]" - size = { 34 34 } - texture = "gfx/interface/icons/symbols/icon_alert.dds" - tooltip = "EVENT_WINDOW_OPTION_ALERT" - } - - # ACH - Coronation Oaths - icon = { - name = "alliance_oath_icon" - visible = "[ReasonItem.IsFlag( 'alliance_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/alliance.dds" - } - icon = { - name = "children_oath_icon" - visible = "[ReasonItem.IsFlag( 'children_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/wet_nurse_court_position.dds" - } - icon = { - name = "reconquest_oath_icon" - visible = "[ReasonItem.IsFlag( 'reconquest_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/grant_titles_interaction.dds" - } - icon = { - name = "conquest_oath_icon" - visible = "[ReasonItem.IsFlag( 'conquest_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/declare_war_interaction.dds" - } - icon = { - name = "peace_oath_icon" - visible = "[ReasonItem.IsFlag( 'peace_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/character_interactions/war_won_icon.dds" - } - icon = { - name = "build_oath_icon" - visible = "[ReasonItem.IsFlag( 'build_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/royal_architect_court_position.dds" - } - icon = { - name = "university_oath_icon" - visible = "[ReasonItem.IsFlag( 'university_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/court_position_types/court_tutor_court_position.dds" - } - - # House Attributes - icon = { # Learned Philosophers - name = "learned_philosophers_icon" - visible = "[ReasonItem.IsFlag( 'learned_philosophers_attribute' )]" - size = { 34 34 } - texture = "gfx/interface/icons/scheme_types/learning.dds" - tooltip = "EVENT_WINDOW_OPTION_LEARNED_PHILOSOPHERS_ATTRIBUTE" - } - - #Mandala Legacy - icon = { - name = "mandala_legacy_unlock_icon" - visible = "[ReasonItem.IsFlag( 'mandala_legacy_unlock' )]" - size = { 34 34 } - texture = "gfx/interface/icons/mandala_radiance.dds" - tooltip = "EVENT_WINDOW_OPTION_SEA_LEGACY_OVERRIDE" - } - - #Mandala Aspects - icon = { - name = "creation_aspect_icon" - visible = "[ReasonItem.IsFlag( 'creation_aspect' )]" - size = { 34 34 } - texture = "gfx/interface/icons/powerful_family_bonus/aspect_of_creation_small.dds" - tooltip = "EVENT_WINDOW_OPTION_CREATION_ASPECT" - } - icon = { - name = "serenity_aspect_icon" - visible = "[ReasonItem.IsFlag( 'serenity_aspect' )]" - size = { 34 34 } - texture = "gfx/interface/icons/powerful_family_bonus/aspect_of_serenity_small.dds" - tooltip = "EVENT_WINDOW_OPTION_SERENITY_ASPECT" - } - icon = { - name = "destruction_aspect_icon" - visible = "[ReasonItem.IsFlag( 'destruction_aspect' )]" - size = { 34 34 } - texture = "gfx/interface/icons/powerful_family_bonus/aspect_of_destruction_small.dds" - tooltip = "EVENT_WINDOW_OPTION_DESTRUCTION_ASPECT" - } - icon = { - name = "trickery_aspect_icon" - visible = "[ReasonItem.IsFlag( 'trickery_aspect' )]" - size = { 34 34 } - texture = "gfx/interface/icons/powerful_family_bonus/aspect_of_trickery_small.dds" - tooltip = "EVENT_WINDOW_OPTION_TRICKERY_ASPECT" - } - icon = { - name = "purge_pretenders_oath_icon" - visible = "[ReasonItem.IsFlag( 'purge_pretenders_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - } - icon = { - name = "end_the_struggle_oath_icon" - visible = "[ReasonItem.IsFlag( 'end_the_struggle_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/struggle_types/struggle.dds" - } - icon = { - name = "greatest_hunter_oath_icon" - visible = "[ReasonItem.IsFlag( 'greatest_hunter_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/hunter.dds" - } - icon = { - name = "heir_preparation_oath_icon" - visible = "[ReasonItem.IsFlag( 'heir_preparation_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/portraits/heir.dds" - } - icon = { - name = "install_claimants_oath_icon" - visible = "[ReasonItem.IsFlag( 'install_claimants_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/casus_bellis/claim_cb.dds" - } - icon = { - name = "mend_the_fracture_oath_icon" - visible = "[ReasonItem.IsFlag( 'mend_the_fracture_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/council_task_types/task_promote_culture.dds" - } - icon = { - name = "provide_for_the_warriors_oath_icon" - visible = "[ReasonItem.IsFlag( 'provide_for_the_warriors_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/vassal_stances/belligerent.dds" - } - icon = { - name = "provide_for_the_faithful_oath_icon" - visible = "[ReasonItem.IsFlag( 'provide_for_the_faithful_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/vassal_stances/zealot.dds" - } - icon = { - name = "provide_for_the_poor_oath_icon" - visible = "[ReasonItem.IsFlag( 'provide_for_the_poor_oath' )]" - size = { 34 34 } - texture = "gfx/interface/coat_of_arms/lowborn.dds" - } - icon = { - name = "repent_oath_icon" - visible = "[ReasonItem.IsFlag( 'repent_oath' )]" - size = { 34 34 } - texture = "gfx/interface/icons/traits/sin.dds" - } - - icon = { - name = "host_activity_intent_icon" - visible = "[ReasonItem.IsFlag( 'host_activity_intent' )]" - size = { 34 34 } - texture = "[GetPlayer.GetInvolvedActivity.GetType.GetIcon]" - tooltip = "EVENT_WINDOW_OPTION_AVAILABLE_HOST_ACTIVITY_INTENT" - } - } - } - } - - warning_icon = { - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - name = "timeout_icon" - size = { 30 30 } - tooltip = EVENT_WINDOW_DAYS_REMAINING - } - } - - ###### SPACER ###### - hbox = { - name = "spacer_effects" - datamodel = "[EventOption.Effects]" - - item = { - container = { - container = { - visible = "[OptionEffectItem.IsTrait]" - alwaystransparent = yes - - spacer = { - datacontext = "[OptionEffectItem.GetTrait]" - size = { 34 34 } - } - } - - spacer = { - visible = "[OptionEffectItem.IsStress]" - size = { 34 34 } - } - - spacer = { - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - } - - spacer = { - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - } - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - alwaystransparent = yes - - text = "[EventOption.GetText]" - autoresize = no - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - } - - ##### SPACER ##### - hbox = { - hbox = { - name = "reason_spacers" - datamodel = "[EventOption.Reasons]" - item = { - spacer = { - size = { 34 34 } - } - } - } - - hbox = { - name = "timeout_spacer" - visible = "[And( EventOption.IsTimeoutOption, And( GameHasMultiplePlayers, LessThanOrEqualTo_int32( EventWindowData.GetDaysRemaining, '(int32)30' ) ) )]" - - spacer = { - size = { 34 34 } - } - } - } - - hbox = { - name = "effects_grid" - datamodel = "[EventOption.Effects]" - - item = { - container = { - container = { - visible = "[OptionEffectItem.IsTrait]" - datacontext = "[OptionEffectItem.GetTrait]" - alwaystransparent = yes - - # Needed for tooltipwidget We rely on that the code only shows this icon for Player Character gaining traits - datacontext = "[GetPlayer]" - datacontext = "[GetPlayer.GetFaith]" - - tooltipwidget = { - using = character_trait_tooltip - } - - icon = { - - name = "trait_icon" - size = { 34 34 } - texture = "[Trait.GetIcon(GetPlayer)]" - } - - icon = { - visible = "[OptionEffectItem.IsGain]" - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - name = "gain" - size = { 20 20 } - } - - icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - name = "loss" - size = { 20 20 } - } - } - - container = { - visible = "[OptionEffectItem.IsStress]" - alwaystransparent = yes - - icon = { - visible = "[And(OptionEffectItem.IsGain,Not(OptionEffectItem.IsCritical))]" - texture = "gfx/interface/icons/stress/icon_stress_gain.dds" - name = "stress_gain" - size = { 34 34 } - } - - icon = { - visible = "[OptionEffectItem.IsLoss]" - texture = "gfx/interface/icons/stress/icon_stress_loss.dds" - name = "stress_loss" - size = { 34 34 } - } - - icon = { - visible = "[OptionEffectItem.IsCritical]" - texture = "gfx/interface/icons/stress/icon_stress_gain_critical.dds" - name = "stress_critical" - size = { 34 34 } - } - } - - icon = { - name = "death" - visible = "[OptionEffectItem.IsDeath]" - size = { 34 34 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - icon = { - name = "scheme" - visible = "[OptionEffectItem.IsScheme]" - size = { 34 34 } - texture = "[OptionEffectItem.GetScheme.GetIcon]" - } - } - } - } - } - } - - type event_window_background_widget = margin_widget - { - size = { 100% 100% } - alwaystransparent = yes - datacontext = "[EventWindowData.GetEventBackgroundData]" - - icon = { - name = "event_picture_with_mask" - visible = "[And( Not( EventWindowBackgroundData.HasVideo ), EventWindowBackgroundData.HasVideoMask )]" - texture = "[EventWindowBackgroundData.GetTexture]" - size = { 100% 100% } - - modify_texture = { - video = "[EventWindowBackgroundData.GetVideoMask]" - blend_mode = alphamultiply - - block "event_mask_properties" - { - loop = no - } - } - - block "event_picture_properties" - { - } - } - - widget = { - name = "event_picture" - visible = "[Not( Or( EventWindowBackgroundData.HasVideo, EventWindowBackgroundData.HasVideoMask) )]" - size = { 100% 100% } - - background = { - texture = "[EventWindowBackgroundData.GetTexture]" - fittype = centercrop - - block "event_mask" { - modify_texture = { - name = mask - texture = "gfx/interface/window_event/mask_event_image_large.dds" - blend_mode = alphamultiply - - block "event_mask_properties" - { - loop = no - } - } - } - - block "event_picture_properties" - { - } - } - } - - video_icon = { - name = "event_video" - visible = "[EventWindowBackgroundData.HasVideo]" - video = "[EventWindowBackgroundData.GetVideo]" - size = { 100% 100% } - loop = no - - block "event_video_properties" - { - } - } - } - - type event_window_transition_widget = margin_widget { - size = { 100% 100% } - alwaystransparent = no - datacontext = "[EventWindowData.GetEventTransitionData]" - visible = "[EventWindowData.IsShowingTransition]" - - icon = { - name = "event_transition_picture_with_mask" - visible = "[And( Not( EventWindowTransitionData.HasVideo ), EventWindowTransitionData.HasVideoMask )]" - texture = "[EventWindowTransitionData.GetTexture]" - size = { 100% 100% } - - modify_texture = { - video = "[EventWindowTransitionData.GetVideoMask]" - blend_mode = alphamultiply - restart_on_show = yes - - block "event_transition_mask_properties" - { - loop = no - } - } - - block "event_transition_picture_properties" - { - } - } - - icon = { - name = "event_transition_picture" - visible = "[Not( Or( EventWindowTransitionData.HasVideo, EventWindowTransitionData.HasVideoMask) )]" - texture = "[EventWindowTransitionData.GetTexture]" - size = { 100% 100% } - - block "event_transition_picture_properties" - { - } - } - - video_icon = { - name = "event_transition_video" - visible = "[EventWindowTransitionData.HasVideo]" - video = "[EventWindowTransitionData.GetVideo]" - size = { 100% 100% } - loop = no - restart_on_show = yes - - block "event_transition_video_properties" - { - } - } - } - - type event_window_effect_2d_widget = margin_widget { - size = { 100% 100% } - datacontext = "[EventWindowData.GetEvent2DEffectData]" - visible = "[And( Not( EventWindowData.IsShowingTransition ), EventWindow2DEffectData.HasEffect )]" - - video_icon = { - name = "event_effect_2d_video_no_mask" - video = "[EventWindow2DEffectData.GetVideo]" - visible = "[Not( EventWindow2DEffectData.HasMask )]" - size = { 100% 100% } - loop = "[EqualTo_CFixedPoint( EventWindow2DEffectData.GetDuration, '(CFixedPoint)0.0' )]" - restart_on_show = yes - - block "event_effect_2d_video_properties" - { - } - } - - ## VIDEO EVENT EFFECT - - video_icon = { - name = "event_effect_2d_video_with_mask" - video = "[EventWindow2DEffectData.GetVideo]" - visible = "[EventWindow2DEffectData.HasMask]" - size = { 100% 100% } - loop = "[EqualTo_CFixedPoint( EventWindow2DEffectData.GetDuration, '(CFixedPoint)0.0' )]" - restart_on_show = yes - - block "event_effect_2d_video_properties" - { - } - } - } -} - - - -template artifact_event_flowcontainer { - - tooltipwidget = { - artifact_tooltip = {} - } - - icon_artifact = { - parentanchor = hcenter - } - - text_label_center = { - alwaystransparent = yes - text = "[Artifact.GetNameNoTooltip]" - max_width = 160 - parentanchor = hcenter - align = center - fontsize_min = 12 - multiline = yes - } -} - -template Event_Window_Debug_Info -{ - button_round = { - alwaystransparent = no - tooltip = "REGENERATE_EVENT_CONTENTS" - using = tooltip_below - - using = Animation_ShowHide_Quick - - block "event_reset_onclick" - { - onclick = "[EventWindow.ResetContents]" - } - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - size = { 40 40 } - - button_icon = { - size = { 30 30 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/history.dds" - tooltip = "TOGGLE_DEBUG_OPTION_TOOLTIPS" - using = tooltip_below - onclick = "[EventWindowData.ToggleDebugOptionTooltips]" - fontsize = 24 - } - } - - button_round = { - size = { 40 40 } - - button_icon = { - size = { 30 30 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/development.dds" - tooltip = "TOGGLE_DEVELOPER_EVENT_TOOLS" - using = tooltip_below - onclick = "[EventWindowData.ToggleEventTools]" - fontsize = 24 - } - } - - button_round = { - size = { 40 40 } - - button_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/flat_icons/data_system.dds" - tooltip = "TOGGLE_DATA_SYSTEM" - using = tooltip_below - onclick = "[ExecuteConsoleCommand('Localization.ToggleSkipDataSystemInLocOutput')]" - fontsize = 24 - } - } - - button_round = { - size = { 40 40 } - button_copy = { - parentanchor = center - onclick = "[EventWindowData.CopyToClipboard]" - tooltip = "COPY_EVENT_CONTENTS" - } - } - - button_round = { - name = "debug_icon" - size = { 40 40 } - button_search = { - parentanchor = center - size = { 26 26 } - tooltip = "EVENT_DEBUG_TOOLTIP" - using = tooltip_se - onclick = "[EventWindowData.DebugOpen]" - button_ignore = none - } - } - - container = { - tooltip = "[EventWindowData.GetTriggerBreakdown]" - using = tooltip_es - icon = { - visible = "[EventWindowData.IsTriggerFulfilled]" - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - icon = { - visible = "[Not( EventWindowData.IsTriggerFulfilled )]" - size = { 40 40 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - - button = { - size = { 40 40 } - - button = { - size = { 100% 100% } - tooltip = "[EventWindowData.GetDebugInfo]" - using = tooltip_es - onclick = "[EventWindowData.CopyToClipboard]" - onrightclick = "[EventWindowData.DebugOpen]" - button_ignore = none - raw_text = "?" - fontsize = 24 - } - } -} - -template Event_Window_Debug_OptionTooltips -{ - vbox = { - name = "event_window_debug_tooltip_list" - visible_at_creation = no - visible = "[EventWindowData.ShowDebugOptionTooltips]" - alwaystransparent = yes - - position = { 20 -18 } - size = { 600 100% } - parentanchor = left|bottom - widgetanchor = right|bottom - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - datamodel = "[EventWindowData.GetOptions]" - expand = {} - item = { - hbox = { - datacontext = "[GetDeepestTooltipInfo]" - alwaystransparent = no - - layoutpolicy_horizontal = expanding - expand = {} - # This is a copy of gui template 'DefaultTooltipWidget' - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - direction = vertical - margin_right = 10 - - textbox = { - name = "TooltipText" - text = "[EventOption.GetTooltip]" - using = DefaultTooltipText - margin = { 20 20 } - margin_top = 10 - alwaystransparent = no - } - - textbox = { - name = "TooltipTextShortcut" - using = DefaultTooltipText - parentanchor = right - margin_top = -20 - margin_bottom = 15 - margin_right = 15 - } - } - } - } - } - } - } -} - -template Event_Window_Default_Transition_States -{ - state = { - name = _show - using = Animation_FadeIn_Standard - duration = 0.25 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - duration = 0.5 - } -} - -template Event_Window_Debug_EventTools -{ - allow_outside = "[EventWindowData.ShowEventTools]" - widget = { - name = "event_window_event_tools" - visible_at_creation = no - visible = "[EventWindowData.ShowEventTools]" - alwaystransparent = yes - - position = { 20 10 } - size = { 250 100% } - parentanchor = left|bottom - widgetanchor = right|bottom - - allow_outside = yes - - vbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - vbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = no - - using = Background_Tooltip - margin = { 10 10 } - - vbox = { - layoutpolicy_horizontal = expanding - alwaystransparent = no - - datamodel = "[EventWindowData.GetPortraitCharacters]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[EventWindowDataPortraitCharacter.GetCharacter.IsValid]" - - datacontext = "[EventWindowData.AccessPortraitTool( EventWindowDataPortraitCharacter.Self )]" - - text_single = { - layoutpolicy_horizontal = expanding - text = "[EventWindowData.GetPortraitName( EventWindowDataPortraitCharacter.Self )]" - min_width = 100 - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[EventWindowDataPortraitTool.GetAnimationSearchList]" - - editor_toolbar_button = { - raw_text = "<" - onclick = "[ToolPropertySearchList.SelectPrevEntry]" - tooltipwidget = { widget = {} } - } - editor_toolbar_button = { - layoutpolicy_horizontal = expanding - text = "[ToolPropertySearchList.GetSelectedText]" - - onclick = "[ToolPropertySearchList.OpenSearchList]" - elide = middle - - tooltip = "[ToolPropertySearchList.GetSelectedText]" - } - editor_toolbar_button = { - raw_text = ">" - onclick = "[ToolPropertySearchList.SelectNextEntry]" - tooltipwidget = { widget = {} } - } - button_copy = { - onclick = "[EventWindowData.CopyStringToClipboard( EventWindowData.GetAnimationToolString( GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ) )]" - tooltip = "[EventWindowData.GetAnimationToolString( GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[EventWindowDataPortraitTool.GetCameraSearchList]" - - editor_toolbar_button = { - raw_text = "<" - onclick = "[ToolPropertySearchList.SelectPrevEntry]" - tooltipwidget = { widget = {} } - } - editor_toolbar_button = { - layoutpolicy_horizontal = expanding - text = "[ToolPropertySearchList.GetSelectedText]" - - onclick = "[ToolPropertySearchList.OpenSearchList]" - elide = middle - - tooltip = "[ToolPropertySearchList.GetSelectedText]" - } - editor_toolbar_button = { - raw_text = ">" - onclick = "[ToolPropertySearchList.SelectNextEntry]" - tooltipwidget = { widget = {} } - } - button_copy = { - onclick = "[EventWindowData.CopyStringToClipboard( Concatenate( 'camera = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ) )]" - tooltip = "[Concatenate( 'camera = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) )]" - } - } - } - } - } - - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "theme" - min_width = 100 - } - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[EventWindowData.AccessThemeSearchList]" - - editor_toolbar_button = { - raw_text = "<" - onclick = "[ToolPropertySearchList.SelectPrevEntry]" - tooltipwidget = { widget = {} } - } - editor_toolbar_button = { - layoutpolicy_horizontal = expanding - text = "[ToolPropertySearchList.GetSelectedText]" - - onclick = "[ToolPropertySearchList.OpenSearchList]" - elide = middle - - tooltip = "[ToolPropertySearchList.GetSelectedText]" - } - editor_toolbar_button = { - raw_text = ">" - onclick = "[ToolPropertySearchList.SelectNextEntry]" - tooltipwidget = { widget = {} } - } - button_copy = { - onclick = "[EventWindowData.CopyStringToClipboard( Concatenate( 'theme = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ) )]" - tooltip = "[Concatenate( 'theme = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) )]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "override_background" - min_width = 100 - } - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[EventWindowData.AccessBackgroundSearchList]" - - editor_toolbar_button = { - raw_text = "<" - onclick = "[ToolPropertySearchList.SelectPrevEntry]" - tooltipwidget = { widget = {} } - } - editor_toolbar_button = { - layoutpolicy_horizontal = expanding - text = "[ToolPropertySearchList.GetSelectedText]" - - onclick = "[ToolPropertySearchList.OpenSearchList]" - elide = middle - - tooltip = "[ToolPropertySearchList.GetSelectedText]" - } - editor_toolbar_button = { - raw_text = ">" - onclick = "[ToolPropertySearchList.SelectNextEntry]" - tooltipwidget = { widget = {} } - } - button_copy = { - onclick = "[EventWindowData.CopyStringToClipboard( Concatenate( 'override_background = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ) )]" - tooltip = "[Concatenate( 'override_background = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) )]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "override_effect_2d" - min_width = 100 - } - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[EventWindowData.AccessEffect2DSearchList]" - - editor_toolbar_button = { - raw_text = "<" - onclick = "[ToolPropertySearchList.SelectPrevEntry]" - tooltipwidget = { widget = {} } - } - editor_toolbar_button = { - layoutpolicy_horizontal = expanding - text = "[ToolPropertySearchList.GetSelectedText]" - - onclick = "[ToolPropertySearchList.OpenSearchList]" - elide = middle - - tooltip = "[ToolPropertySearchList.GetSelectedText]" - } - editor_toolbar_button = { - raw_text = ">" - onclick = "[ToolPropertySearchList.SelectNextEntry]" - tooltipwidget = { widget = {} } - } - button_copy = { - onclick = "[EventWindowData.CopyStringToClipboard( Concatenate( Concatenate( 'override_effect_2d = { reference = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ), ' }' ) )]" - tooltip = "[Concatenate( Concatenate( 'override_effect_2d = { reference = ', GetString_CUTF8String( ToolPropertySearchList.GetSelectedText ) ), ' }' )]" - } - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/shared/icons.gui b/N3OW/gui/shared/icons.gui deleted file mode 100644 index b2e52a1d..00000000 --- a/N3OW/gui/shared/icons.gui +++ /dev/null @@ -1,505 +0,0 @@ -types IconTypes -{ - type icon_flat_standard = icon - { - using = Icon_Flat_Standard - } - - type icon_flat_standard_red = icon - { - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 9 - } - } - } - - type icon_flat_standard_green = icon - { - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 8 - } - } - } - - type icon_flat_standard_gold = icon - { - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - type icon_flat_standard_black = icon - { - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 10 - } - } - } - - type icon_flat_standard_ash = icon - { - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 4 - } - } - } - - type icon_culture_pillar = icon_flat_standard - { - size = { 44 44 } - } - - type icon_doctrine = icon_flat_standard - { - size = { 60 60 } - } - - type icon_building = icon_flat_standard - { - size = { 75 65 } - } - - type highlight_icon_building = button_icon - { - size = { 75 65 } - alwaystransparent = yes - } - - type icon_building_tab = button_icon - { - size = { 75 65 } - } - - type highlight_icon_lifestyle_focus = button_icon - { - size = { 80 80 } - } - - #### FRONTEND ICONS #### - type icon_observer = icon_flat_standard { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/observer.dds" - } - - type icon_ring = icon_flat_standard { - size = { 15 15 } - texture = "gfx/interface/icons/flat_icons/ring.dds" - } - - type icon_circle_green = icon { - size = { 15 15 } - using = Color_Green - texture = "gfx/interface/icons/flat_icons/circle.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 5 - } - } - } - - type icon_multiplayer = icon_flat_standard { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/multiplayer.dds" - } - - type icon_cloud_save = icon_flat_standard { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cloud_save.dds" - } - - type icon_has_password = icon_flat_standard { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/has_password.dds" - } - - type icon_online_offline = icon_flat_standard { - framesize = { 60 60 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/online_offline.dds" - } - - type cloud_save_icon = icon_flat_standard { - name = "cloud_save_icon" - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/cloud_save.dds" - tooltip = "LOAD_CLOUDSAVE_TOOLTIP" - } - - type ironman_save_icon = icon { - name = "ironman_icon" - size = { 40 40 } - texture = "gfx/interface/icons/meta/icon_ironman.dds" - } - - type ironman_disabled_icon = icon { - name = "ironman_icon" - size = { 40 40 } - texture = "gfx/interface/icons/meta/icon_ironman_disabled.dds" - - icon = { - texture = "gfx/interface/icons/symbols/icon_cross.dds" - size = { 50% 50% } - parentanchor = bottom|right - } - } - - type alert_icon = icon - { - texture = "gfx/interface/icons/symbols/icon_alert.dds" - size = { 40 40 } - } - - type warning_icon = icon - { - texture = "gfx/interface/icons/symbols/icon_warning.dds" - size = { 40 40 } - } - - type loaded_mods_icon = warning_icon { - name = "invalid_icon" - } - - type invalid_save_icon = warning_icon { - name = "invalid_icon" - } - - type missing_dlcs_icon = icon { - name = "missing_dlcs_icon" - size = { 40 40 } - texture = "gfx/interface/icons/icon_dread.dds" - } - - type achievements_enabled_icon = icon - { - size = { 40 40 } - texture = "gfx/interface/icons/meta/icon_achievements_enabled.dds" - warning_icon = { - visible = "[InDebugMode]" - size = { 45% 45% } - parentanchor = right - tooltip = "ACHIEVEMENTS_DEBUG_MODE_WARNING" - } - } - type achievements_disabled_icon = icon - { - size = { 40 40 } - texture = "gfx/interface/icons/meta/icon_achievements_disabled.dds" - - icon = { - texture = "gfx/interface/icons/symbols/icon_cross.dds" - size = { 50% 50% } - parentanchor = bottom|right - } - } - - #### GAMEPLAY ICONS #### - - type trait_icon_texture = container - { - icon = { - name = "trait_icon" - using = Animation_Glow_Pulse - - block "icon_size" - { - size = { 50 50 } - } - block "glow" - { - - } - - texture = "[Trait.GetIcon(Character.Self)]" - } - icon = { - name = "level_stars" - visible = "[EqualTo_int32( GetDataModelSize( Trait.GetLevelTracks ), '(int32)1' )]" - - block "icon_size" - { - size = { 50 50 } - } - - texture = "[Trait.GetStarsIcon( Character.Self )]" - } - } - - type trait_icon_base = trait_icon_texture - { - alwaystransparent = yes - - tooltipwidget = { - using = character_trait_tooltip - } - block "tooltip_placement" - { - using = tooltip_se - } - } - - type icon_trait = container - { - block "faith_context" - { - datacontext = "[Character.GetFaith]" - } - - trait_icon_base = { - name = "normal_trait" - visible = "[Not( Or( Or( Or( Trait.IsGenetic, Trait.IsInheritable ), Faith.IsTraitVirtue( Trait.Self ) ), Faith.IsTraitSin( Trait.Self ) ) )]" - - blockoverride "glow" - { - block "trait_glow" - { - } - } - } - trait_icon_base = { - name = "inheritable_trait" - visible = "[Or( Trait.IsGenetic, Trait.IsInheritable )]" - - blockoverride "glow" - { - block "trait_glow" - { - glow = { - using = Color_Blue - using = Glow_Standard - block "glow_radius" - { - glow_radius = 5 - } - } - } - } - } - trait_icon_base = { - name = "virtue_trait" - visible = "[Faith.IsTraitVirtue( Trait.Self )]" - - blockoverride "glow" - { - block "trait_glow" - { - glow = { - using = Color_Green - using = Glow_Standard - block "glow_radius" - { - glow_radius = 5 - } - } - } - } - } - trait_icon_base = { - name = "sin_trait" - visible = "[Faith.IsTraitSin( Trait.Self )]" - - blockoverride "glow" - { - block "trait_glow" - { - glow = { - using = Color_Red - using = Glow_Standard - block "glow_radius" - { - glow_radius = 5 - } - } - } - } - } - - #icon = { - # visible = "[Or(Trait.IsGenetic, Trait.IsInheritable)]" - # parentanchor = right - # position = { 2 0 } - # texture = "gfx/interface/icons/traits/congenital.dds" - #} - - # icon = { - # name = "overlay" - # alwaystransparent = yes - # texture = "[Trait.GetIconOverlayForLocalPlayer]" - - # block "overlay_position" - # { - # position = { -10 -10 } - # } - - # block "overlay_anchor" - # { - # parentanchor = "bottom|right" - # widgetanchor = "vcenter|hcenter" - # } - - # block "overlay_size" - # { - # size = { 24 24 } - # } - # } - } - - type icon_epidemic = icon - { - name = "epidemic_icon" - - texture = "[Epidemic.GetType.GetIcon]" - - block "icon_size" - { - size = { 50 50 } - } - } - - type icon_legend = icon - { - name = "legend_icon" - - texture = "[LegendType.GetIcon]" - - block "icon_size" - { - size = { 50 50 } - } - } - - type icon_legend_highlight = icon - { - name = "legend_icon_highlight" - texture = "[LegendType.GetHighlightIcon]" - - block "icon_size" - { - size = { 50 50 } - } - - video_icon = { - name = "legend_particules" - size = {50 50} - visible = "[Legend.IsCharacterPromotingLegend( GetPlayer )]" - gfxtype = videogfx - shaderfile = "" - video = "gfx/interface/video/header_animation.bk2" - loop = yes - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - } - } - - type icon_modifier_legend_owner = icon_flat_standard - { - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/legend_owner.dds" - } - - type icon_modifier_legend_promoter = icon_flat_standard - { - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/legend_promoter.dds" - } - - type icon_modifier_legend_province_and_county = icon_flat_standard - { - size = { 40 40 } - texture = "gfx/interface/icons/flat_icons/legend_province_modifier.dds" - - } - - type icon_legitimacy_flat = icon_flat_standard - { - size = { 30 30 } - texture = "[Character.GetLegitimacyType.GetFlatIcon]" - } - - type icon_gold = icon - { - texture = "gfx/interface/icons/icon_gold.dds" - } - - type icon_soldiers = icon - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - - type icon_levies = icon - { - size = { 25 25 } - texture = "gfx/interface/icons/icon_levies.dds" - } - - type cross_icon = icon - { - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - type check_icon = icon - { - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - type icon_governor_efficiency = icon - { - texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" - } - - type icon_cohesion_flat = icon_flat_standard - { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cohesion_level.dds" - } -} - -template Icon_Flat_Standard -{ - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 7 - } - } -} diff --git a/N3OW/gui/shared/lines.gui b/N3OW/gui/shared/lines.gui deleted file mode 100644 index bf2c650e..00000000 --- a/N3OW/gui/shared/lines.gui +++ /dev/null @@ -1,126 +0,0 @@ - -types Lines -{ - type line = line { - gfxtype = linegfx - } -} - -template Line_DynastyTree -{ - effectname = "PdxGuiLineScreenSpace" - width = 5 - line_cap = yes - color = { 0.45 0.40 0.35 1.0 } - - #animation_speed = { 0.15 0.15 } - texture = "gfx/lines/tiling_noise.dds" - uv_scale = { 1.0 1.0 } - - mask = "gfx/lines/mask.dds" - mask_uv_scale = { 0.1 1.0 } -} - -template Line_Lifestyles_Base -{ - width = 13 - - uv_scale = { 0.01 1.0 } - mask = "gfx/lines/line_lifestyles_mask.dds" - mask_uv_scale = { 0.025 1.0 } -} - -template Line_Lifestyles_Unlocked -{ - using = Line_Lifestyles_Base - animation_speed = { 0.2 0.0 } - texture = "gfx/lines/line_lifestyles_unlocked.dds" -} - -template Line_Lifestyles_CanUnlock -{ - using = Line_Lifestyles_Base - animation_speed = { 0.1 0.0 } - texture = "gfx/lines/line_lifestyles_can_unlock.dds" -} - -template Line_Lifestyles_Unavailable -{ - using = Line_Lifestyles_Base - texture = "gfx/lines/line_lifestyles_unavailable.dds" -} - -######################## -#### DOMICILE LINES #### -######################## - -template Line_Domicile_Base -{ - width = 13 - - uv_scale = { 0.01 1.0 } - mask = "gfx/lines/line_lifestyles_mask.dds" - mask_uv_scale = { 0.025 1.0 } -} - -template Line_Domicile_Constructed -{ - using = Line_Domicile_Base - animation_speed = { 0.2 0.0 } - texture = "gfx/lines/line_lifestyles_unlocked.dds" -} - -template Line_Domicile_CanConstruct -{ - using = Line_Lifestyles_Base - animation_speed = { 0.1 0.0 } - texture = "gfx/lines/line_lifestyles_can_unlock.dds" -} - -template Line_Domicile_Unavailable -{ - using = Line_Lifestyles_Base - texture = "gfx/lines/line_lifestyles_unavailable.dds" -} - -#### -#### - -# Example lines - -template MiddleLine -{ - effectname = "PdxGuiLineScreenSpace" - width = 6 - line_cap = yes - color = { 0.6 0.56 0.5 1.0 } - - #uv_scale = { 2.0 2.0 } - texture = "gfx/lines/white.dds" - mask_uv_scale = { 0.1 1.0 } - mask = "gfx/lines/white.dds" -} - -template TexturedLine -{ - effectname = "PdxGuiLineScreenSpace" - width = 10 - autoresize = yes - - uv_scale = { 0.9 0.9 } - texture = "gfx/lines/glass.dds" - mask_uv_scale = { 0.1 1.0 } - mask = "gfx/lines/mask.dds" -} - -template ArrowLine -{ - width = 10 - #line_type = nodeline - - animation_speed = { 0.15 0.0 } - uv_scale = { 0.015 1.0 } - texture = "gfx/lines/line_diffuse.dds" - mask_uv_scale = { 0.01 1.0 } - mask = "gfx/lines/line_mask.dds" -} diff --git a/N3OW/gui/shared/lists.gui b/N3OW/gui/shared/lists.gui deleted file mode 100644 index 92407c7a..00000000 --- a/N3OW/gui/shared/lists.gui +++ /dev/null @@ -1,3561 +0,0 @@ -###################################################### -############## LIST TYPES AND TEMPLATES ############## -###################################################### - -template default_character_list_overlay -{ - modify_texture = { - texture = "gfx/interface/buttons/button_standard_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 3 3 } - blend_mode = overlay - } -} - -template character_age_or_death_text -{ - hbox = { - block "list_layout" { - minimumsize = { 62 0 } - expand = {} - } - - margin_right = 5 - spacing = 2 - - block "character_age" - { - text_single = { - text = "[Character.GetAge]" - align = nobaseline - } - } - - icon = { - visible = "[Not(Character.IsDeadAndValid)]" - size = { 23 23 } - framesize = { 60 60 } - frame = "[Character.GetHealthIconFrame]" - texture = "gfx/interface/icons/character_status/icon_health.dds" - tooltip = "[Character.GetHealthInfo]" - } - - block "is_dead" - { - icon = { - name = "is_dead" - visible = "[Character.IsDeadAndValid]" - size = { 23 23 } - - texture = "[Character.GetDeathReasonIcon]" - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - } -} - -types Lists -{ - type character_age_health = hbox - { - spacing = 2 - - text_single = { - text = "[Character.GetAge]" - align = nobaseline - } - - icon = { - visible = "[Not(Character.IsDeadAndValid)]" - size = { 23 23 } - framesize = { 60 60 } - frame = "[Character.GetHealthIconFrame]" - texture = "gfx/interface/icons/character_status/icon_health.dds" - tooltip = "[Character.GetHealthInfo]" - } - - expand = {} - } - - # Implementation details - type character_list_arrow = highlight_icon - { - parentanchor = left|vcenter - position = { -13 0 } - - size = { 14 14 } - framesize = { 14 28 } - texture = "gfx/interface/buttons/button_entry_characterlist_arrow.dds" - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - spriteType = Corneredstretched - spriteborder = { 20 20 } - } - ## Character Skill Value - - type widget_skill_item_no_icon = widget { - tooltip = "SKILL_ITEM_TOOLTIP" - using = tooltip_se - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[SkillItem.GetValue]" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - block "bg" - { - frame = "[SkillItem.GetFrame]" - } - } - } - - ## Character List Items - type widget_character_list_item = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 10 110 } - - block "divider" { - divider = { - parentanchor = bottom|hcenter - size = { 100% 3 } - } - } - - block "widget" {} - - hbox = { - margin = { 0 5 } - spacing = 15 - - portrait_head_small = {} - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - tooltip = "[CharacterListItem.GetUnselectableReason]" - - framesize = { 252 80 } - spriteType = Corneredtiled - spriteborder = { 10 30 } - - block "button_texture" - { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - } - - block "button" {} - - character_list_arrow = { - name = "character_list_arrow" - } - - block "overlay" { - using = default_character_list_overlay - } - - block "button_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Name - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Age & Relation - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 10 - - min_width = 320 - max_width = 320 - - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip|U]" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - - block "character_description_extra" {} - } - - expand = {} - - # Skills - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - name = "skills_grid" - - datamodel = "[CharacterListItem.GetSkillItems]" - margin_right = 3 - margin_top = 3 - - item = { - widget_skill_item_no_icon = {} - } - } - - expand = {} - } - - block "extra_skills" {} - } - - spacer = { - size = { 40 40 } - } - expand = {} - } - - ### Character Selection Bottom - widget = { - size = { 100% 44 } - parentanchor = bottom - - ### Details Box - widget = { - size = { 100% 44 } - parentanchor = left - - block "scissor" - { - scissor = yes - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - spacing = 5 - - # Dynasty - widget = { - size = { 35 40 } - - coa_house_tiny = { - datacontext = "[Character.GetHouse]" - parentanchor = center - } - } - - block "bottom_middle_box" { - # Religion & Culture - hbox = { - - # Faith - icon = { - name = "faith_button" - size = { 35 35 } - datacontext = "[Character.GetFaith]" - tooltipwidget = { faith_tooltip = {} } - texture = "[Faith.GetIcon]" - } - - # Culture - - hbox = { - datacontext = "[Character.GetCulture]" - - tooltipwidget = { - culture_tooltip = {} - } - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_multi = { - text = "CULTURE_LISTS_WINDOW" - autoresize = yes - max_width = 90 - max_height = 44 - } - } - - block "bottom_middle_box_extra_content" { - - } - } - } - - # Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - size = { 150 35 } - addcolumn = 30 - addrow = 35 - block "horizontal_slots" - { - maxhorizontalslots = 8 - } - maxverticalslots = 1 - - item = { - widget = { - visible = "[Trait.IsValid]" - size = { 35 35 } - - icon_trait = { - parentanchor = center - - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - - vbox = { - datacontext = "[CharacterListItem.GetCharacter]" - margin_right = 5 - } - - expand = {} - block "bottom_right_box" - { - hbox = { - margin_right = 8 - # Realm - widget = { - datacontext = "[CharacterListItem.GetFirstClaim]" - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - size = { 55 58 } - - block "claims_visibility" {} - - coa_title_tiny_crown = { - datacontext = "[Claim.GetTitle]" - using = tooltip_ne - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - parentanchor = bottom|right - size = { 24 24 } - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - parentanchor = bottom|right - size = { 24 24 } - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - parentanchor = bottom|right - size = { 24 24 } - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - } - - blockoverride "coa_tooltip" - { - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - text_single = { - parentanchor = vcenter|right - position = { 0 -6 } - - text = "[CharacterListItem.GetTitleItemCount]" - align = right - minimumsize = { 15 0 } - - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - } - } - } - } - - ### Button Box - - block "button_box" { - widget = { - size = { 100% 40 } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 8 - - expand = {} - - hbox = { - background = { - margin_top = 8 - margin_left = 12 - margin_bottom = 2 - - using = Background_Area_Light - using = Mask_Rough_Edges - } - - block "button_box_content" {} - } - } - } - } - } - } - } - } - } - - - type widget_character_list_item_finder = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 200 94 } - - block "divider" {} - - block "widget" {} - - hbox = { - vbox = { - layoutpolicy_vertical = expanding - margin_top = 4 - - portrait_head_small = {} - - block "portrait_head_margin" - { - } - - expand = {} - } - - block "button_content" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Name and age - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 3 } - margin_left = 5 - margin_right = 10 - - background = { - using = Background_Area_Characterlist - } - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 1 - rotate_uv = 90 - mirror = vertical - } - } - - hbox = { - margin_left = 3 - layoutpolicy_horizontal = expanding - maximumsize = { 338 -1 } - - text_single = { - using = Font_Size_Medium - align = nobaseline - text = "[Character.GetUINameNoTooltip|U]" - fontsize_min = 14 - max_width = 300 - } - - block "character_relation" - { - hbox = { - visible = "[And(Character.HasRelationTo( GetPlayer ), Not(Character.IsPlayer))]" - - text_single = { - raw_text = "•" - align = nobaseline - margin = { 5 0 } - } - - text_single = { - name = "character_relation" - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - align = nobaseline - fontsize_min = 14 - max_width = 180 - } - } - } - - expand = {} - } - - hbox = { - using = character_age_or_death_text - } - - # Skills - hbox_skills_grid = {} - } - - ### BOTTOM ROW ### - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - block "additional_info_kill_list" {} - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Dynasty - widget = { - size = { 45 40 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - parentanchor = center - scale = 0.7 - } - } - - block "left_box" - { - # Traits - hbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - minimumsize = { 140 0 } #### needed for prison view - - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 0 2 } - } - - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - datamodel_reuse_widgets = yes - flipdirection = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - addcolumn = 30 - addrow = 28 - - block "gridbox_items" - { - min_width = 210 - datamodel_wrap = 7 - maxverticalslots = 2 - } - - item = { - icon_trait = { - visible = "[Trait.IsValid]" - - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - - expand = {} - } - } - } - - vbox = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - block "bottom_right_box" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - block "claims" { # for kill list - widget_list_claims = {} - } - - # Religion and culture - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 8 - margin_right = 4 - spacing = 5 - minimumsize = { 110 0 } - - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 0 2 } - } - - icon = { - name = "faith_button" - size = { 38 38 } - datacontext = "[Character.GetFaith]" - tooltipwidget = { faith_tooltip = {} } - using = tooltip_se - - texture = "[Faith.GetIcon]" - } - - hbox = { - datacontext = "[Character.GetCulture]" - layoutpolicy_horizontal = expanding - spacing = 3 - - tooltipwidget = { - culture_tooltip = {} - } - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CULTURE_LISTS_WINDOW" - autoresize = no - align = nobaseline - } - } - } - } - } - } - } - } - } - } - } - } - - type dropdown_menu_standard = dropDown { - block "dropdown_properties" - { - #datamodel = "[GetPlayer.GetCourt]" - } - - block "dropdown_size" - { - size = { 200 32 } - } - - - - active_item = { - container = { - alwaystransparent = no - - button_drop = { - block "dropdown_size" - { - size = { 200 32 } - } - block "dropdown_active_item_properties" - { - raw_text = "#D Current Option#!" - } - button_trigger = none - - - } - } - } - - item = { - container = { - alwaystransparent = no - - button_dropdown = { - block "dropdown_size" - { - size = { 200 32 } - } - button_trigger = none - - block "dropdown_item_properties" - { - raw_text = "#D Option#!" - } - - default_format = "#clickable" - } - } - } - - list = { - scrollarea = { - position = { 5 32 } - block "dropdown_list_maxsize" - { - maximumsize = { 192 250 } - } - - block "dropdown_list_properties" - { - - } - - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - using = Background_DropDown - - scrollwidget = { - dynamicgridbox = { - alwaystransparent = no - } - } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - } - } - } - - type dropdown_sort_characterlist = dropDown { - name = "sort_options" - block "size_button_drop" { ########### only used for character finder - size = { 190 33 } - } - - active_item = { - widget = { - alwaystransparent = no - size = { 100% 100% } - - button_drop = { - block "text_button_drop" { - text = "[CharacterListSortItem.GetName]" - } - } - } - } - - item = { - widget = { - alwaystransparent = no - block "size_dropdown" { - size = { 190 33 } - } - - button_normal = { - size = { 100% 30 } - button_trigger = none - gfxtype = framedbuttongfx - effectname = "NoHighlight" - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - upframe = 1 - overframe = 2 - downframe = 3 - disableframe = 1 - texture = "gfx/interface/buttons/button_interaction_menu.dds" - framesize = { 317 30 } - } - - button_dropdown = { - block "size_dropdown" { - size = { 190 33 } - } - block "text_button_drop" { - text = "[CharacterListSortItem.GetName]" - } - - default_format = "#clickable" - } - } - } - - list = { - scrollarea = { - position = { 5 33 } - maximumsize = { 190 250 } - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - using = Background_DropDown - - scrollwidget = { - dynamicgridbox = { - alwaystransparent = no - } - } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - } - } - } - - type widget_list_claims = widget { - datacontext = "[CharacterListItem.GetFirstClaim]" - layoutpolicy_vertical = expanding - size = { 55 0 } - - block "claims_visibility" {} - - coa_title_tiny_crown = { - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - parentanchor = center - position = { -10 0 } - scale = 0.8 - - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - using = tooltip_ne - - blockoverride "coa_button" { - datacontext = "[Claim.GetTitle]" - onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" - onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - button_ignore = none - } - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - size = { 24 24 } - parentanchor = bottom|right - } - } - - text_single = { - visible = "[CharacterListItem.HasTitleItems]" - parentanchor = center - position = { 18 0 } - text = "[CharacterListItem.GetTitleItemCount]" - default_format = "#high" - using = Font_Size_Medium - align = center - } - } - - ## Same as hbox_skills_grid, except taking character instead of character list item - type hbox_skills_grid_character_model = hbox { - name = "hbox_skills_grid_character_model" - minimumsize = { 160 0 } - - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[Character.GetSkill('diplomacy')]" - tooltip = "diplomacy_concept" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - frame = 1 - } - } - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[Character.GetSkill('martial')]" - tooltip = "martial_concept" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - frame = 2 - } - } - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[Character.GetSkill('stewardship')]" - tooltip = "stewardship_concept" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - frame = 3 - } - } - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[Character.GetSkill('intrigue')]" - tooltip = "intrigue_concept" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - frame = 4 - } - } - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[Character.GetSkill('learning')]" - tooltip = "learning_concept" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - frame = 5 - } - } - } - - type hbox_skills_grid = hbox { - name = "skills_grid" - minimumsize = { 160 0 } - - block "skills_datamodel" - { - datamodel = "[CharacterListItem.GetSkillItems]" - } - - item = { - widget_skill_item_no_icon = {} - } - } - - type hbox_list_sort_buttons = hbox { - name = "sort_buttons" - - block "margins" { - margin_left = 20 - margin_right = 30 - margin_top = 5 - spacing = 5 - } - - button_standard = { - name = "filters" - size = { 25 25 } - - down = "[CharacterSelectionList.FiltersShown]" - frame = "[BoolTo1And2(CharacterSelectionList.IsAllDefault)]" - onclick = "[CharacterSelectionList.OnToggleFilters]" - - tooltip = "TOGGLE_FILTERS" - using = tooltip_nw - - button_search = { - alwaystransparent = yes - parentanchor = center - size = { 20 20 } - } - - block "filters_visible" {} - } - - divider_light = { - size = { 3 20 } - block "filters_visible" {} - } - - block "sort_prefix" {} - - text_single = { - text = "SORT_BY" - align = nobaseline - max_width = 90 - } - - block "sort_dropdown" { - dropdown_sort_characterlist = {} - } - - button_standard = { - name = "sort_order" - size = { 25 25 } - onclick = "[CharacterSelectionList.RevertSortOrder]" - - tooltip = "CHARACTER_SORT_BY" - using = tooltip_nw - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - - frame = "[BoolTo1And2(CharacterSelectionList.GetSortOrder)]" - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - - expand = {} - - block "skill_sort_buttons" - { - hbox = { - button_standard_hover = { - name = "skill_diplomacy" - size = { 32 32 } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 1 - } - - onclick = "[CharacterSelectionList.SortBySkill('(int32)0')]" - - tooltip = "SORT_BY_DIPLOMACY" - using = tooltip_ne - - skillitem_sort_icon = { - visible = "[CharacterSelectionList.IsSortingBySkill('(int32)0')]" - } - } - - button_standard_hover = { - name = "skill_martial" - size = { 32 32 } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 2 - } - - onclick = "[CharacterSelectionList.SortBySkill('(int32)1')]" - - tooltip = "SORT_BY_MARTIAL" - using = tooltip_ne - - skillitem_sort_icon = { - visible = "[CharacterSelectionList.IsSortingBySkill('(int32)1')]" - } - } - - button_standard_hover = { - name = "skill_stewardship" - size = { 32 32 } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 3 - } - - onclick = "[CharacterSelectionList.SortBySkill('(int32)2')]" - tooltip = "SORT_BY_STEWARDSHIP" - using = tooltip_ne - - skillitem_sort_icon = { - visible = "[CharacterSelectionList.IsSortingBySkill('(int32)2')]" - } - } - - button_standard_hover = { - name = "skill_intrigue" - size = { 32 32 } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 4 - } - - onclick = "[CharacterSelectionList.SortBySkill('(int32)3')]" - tooltip = "SORT_BY_INTRIGUE" - using = tooltip_ne - - skillitem_sort_icon = { - visible = "[CharacterSelectionList.IsSortingBySkill('(int32)3')]" - } - } - - button_standard_hover = { - name = "skill_learning" - size = { 32 32 } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = 5 - } - - onclick = "[CharacterSelectionList.SortBySkill('(int32)4')]" - tooltip = "SORT_BY_LEARNING" - using = tooltip_ne - - skillitem_sort_icon = { - visible = "[CharacterSelectionList.IsSortingBySkill('(int32)4')]" - } - } - } - } - } - - type skillitem_sort_icon = icon { - frame = "[BoolTo1And2(CharacterSelectionList.GetSortOrder)]" - alwaystransparent = yes - parentanchor = top|hcenter - position = { 0 -14 } - texture = "gfx/interface/buttons/button_sort_toggle.dds" - framesize = { 36 36 } - size = { 18 18 } - - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - - type vbox_character_list = vbox { - name = "character_list" - spacing = 3 - - block "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" { - margin_left = 20 - margin_right = 23 - margin_top = 5 - spacing = 5 - } - } - } - - block "special_character" {} - - scrollbox = { - - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - block "scrollbox_properties" - { - } - - blockoverride "scrollbox_content" { - - block "container_implementation" { - vbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - - item = { - widget_character_list_item = { - block "item_size" { - size = { 650 110 } - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - block "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[IsDataModelEmpty( CharacterSelectionList.GetList )]" - text = "NO_CHARACTERS_TO_SELECT" - } - } - } - - block "character_count" - { - hbox = { - layoutpolicy_horizontal = growing - margin = { 25 5 } - margin_bottom = 8 - spacing = 5 - - block "bottom_bar" {} - - expand = {} - - widget = { - size = { 20 15 } - - warning_icon = { - size = { 25 25 } - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - tooltip = "CHARACTER_FINDER_FILTER_SET" - position = { -3 -5 } - } - } - - text_single = { - name = "character_count" - datacontext = "[CharacterSelectionList]" - text = "CHARACTER_FINDER_COUNT" - align = center|nobaseline - default_format = "#low" - } - } - } - } - - type fixed_gridbox_character_list = vbox_character_list - { - blockoverride "container_implementation" - { - fixedgridbox = { - name = "characters_grid" - - block "character_gridbox" - { - addcolumn = 650 - addrow = 105 - datamodel_reuse_widgets = yes - } - - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item = { - block "item_size" - { - size = { 650 110 } - } - } - } - } - } - } - - type button_recruit_character = button_round - { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - - button_add_character = { - alwaystransparent = yes - parentanchor = center - } - } - - type widget_courtier_item = widget { - size = { 0 125 } - - hbox = { - spacing = 5 - - background = { - using = Background_Area_With_Header - margin_right = 7 - margin_left = 5 - } - - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 3 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - autoresize = no - text = "[Character.GetUINameNoTooltip]" - using = Font_Size_Medium - align = nobaseline - fontsize_min = 14 - margin_right = 10 - } - - hbox_skills_grid = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 3 } - margin_bottom = 8 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - warning_icon = { - visible = "[And( Character.CourtierWantsToLeaveCourt, Not( Character.IsImprisoned))]" - size = { 20 20 } - tooltip = "[Character.GetCourtierLeaveDescription]" - } - - debug_square = { - visible = "[AIWatchWindowsEnabled]" - size = { 20 20 } - raw_tooltip = "#D [Character.GetDebugCourtierLeaveReasons]#!" - } - - text_single = { - name = "relation_to_court_owner" - default_format = "#low" - align = nobaseline - max_width = 370 - visible = "[Not(Character.IsHostage)]" - - block "description_relation_text" { - text = "[Character.GetRelationToString( CharacterWindow.GetCourtOwner )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - background = { - visible = "[Character.IsImprisoned]" - using = Status_Bad - alpha = 0.5 - } - } - - text_single = { - name = "relation_to_court_hostage" - default_format = "#medium" - align = nobaseline - visible = "[Character.IsHostage]" - - block "description_relation_text" { - text = "[Character.GetRelationToString( CharacterWindow.GetCourtOwner )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - background = { - visible = "[Character.IsHostage]" - using = Status_Mixed - alpha = 0.5 - } - } - expand = {} - - text_single = { - name = "has_guardian" - default_format = "#low" - align = nobaseline - max_width = 370 - margin_right = 5 - visible = "[And( Not(Character.IsAdult), Not(Character.HasGuardian) )]" - - text = "COURT_WINDOW_NO_GUARDIAN" - tooltip = "COURT_WINDOW_NO_GUARDIAN_TOOLTIP" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_bottom = 5 - - block "action_buttons" - { - hbox = { - margin = { 0 3 } - spacing = 5 - - button_recruit_character = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 60 } - margin_left = 5 - - background = { - using = Background_Area_Dark - margin = { 3 3 } - alpha = 0.5 - } - - # Dynasty - widget = { - layoutpolicy_vertical = expanding - size = { 45 40 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - parentanchor = center - scale = 0.7 - } - } - - # Traits - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "traits_grid_four" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - addcolumn = 30 - addrow = 28 - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - - block "gridbox_items" ### for characterview - { - datamodel_wrap = 4 - maxverticalslots = 2 - } - - item = { - icon_trait = { - visible = "[Trait.IsValid]" - - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - fixedgridbox = { - name = "traits_grid_five" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - addcolumn = 30 - addrow = 28 - visible = "[IsDataModelEmpty( CharacterListItem.GetTitleItems )]" - - block "gridbox_items" ### for characterview - { - datamodel_wrap = 5 - maxverticalslots = 2 - } - - item = { - icon_trait = { - visible = "[Trait.IsValid]" - - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - expand = {} - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.5 - } - - hbox = { - margin = { 3 0 } - - widget_list_claims = { - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - } - } - - divider_light = { - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - layoutpolicy_vertical = expanding - alpha = 0.5 - } - - hbox = { - margin_right = 5 - - button_religion_icon = { - datacontext = "[Character.GetFaith]" - size = { 40 40 } - } - - vbox = { - datacontext = "[Character.GetCulture]" - - tooltipwidget = { - culture_tooltip = {} - } - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 60 - align = center|nobaseline - autoresize = no - text = "CULTURE_LISTS_WINDOW" - } - } - } - } - } - } - } - } - - type widget_vassal_list_item = widget { - datacontext = "[CharacterListItem.GetCharacter]" - - vbox = { - margin = { 5 0 } - - background = { - using = Background_Area_With_Header - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNoTooltip|U]" - using = Font_Size_Medium - autoresize = no - fontsize_min = 13 - align = nobaseline - max_width = 340 - } - - expand = {} - - hbox_skills_grid = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - margin_top = 3 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_relation" - visible = "[Or(Character.GetLiege.IsLocalPlayer, Character.GetSuzerain.IsLocalPlayer)]" - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString(GetPlayer)]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - fontsize_min = 13 - align = nobaseline - max_width = 420 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - visible = "[And( Character.HasOverlord, And( Character.UsesObedience, Character.IsObedientTo( Character.GetOverlord ) ) )]" - - text = "MY_REALM_WINDOW_OBEDIENT" - align = nobaseline - max_width = 170 - - tooltipwidget = widget_obedience_tooltip - } - - text_single = { - visible = "[And( Character.HasOverlord, And( Character.UsesObedience, Not( Character.IsObedientTo( Character.GetOverlord ) ) ) )]" - - text = "MY_REALM_WINDOW_DISOBEDIENT" - align = nobaseline - max_width = 170 - - tooltipwidget = widget_obedience_tooltip - } - - divider_light = { - visible = "[Character.UsesObedience]" - layoutpolicy_vertical = expanding - } - - vassal_stance_icon = { - name = "vassal_stance" - size = { 30 30 } - } - - divider_light = { - visible = "[And( Character.IsVassalOf( GetPlayer ), Not( Character.IsPlayer ) )]" - layoutpolicy_vertical = expanding - } - - vassal_expected_legitimacy_widget = { - name = "legitimacy_expectation" - size = { 30 30 } - } - - block "realm_size_powerful_status" { - flowcontainer = { - spacing = 10 - - text_single = { - visible = "[NotEqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)2')]" #nonbaron - layoutpolicy_horizontal = expanding - - text = "REALM_WINDOW_SIZE" - align = nobaseline - max_width = 150 - - tooltip = "REALM_WINDOW_SIZE_TT" - } - } - } - - expand = {} - } - - block "vassal_buttons" { - hbox = { - visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_round = { - size = { 30 30 } - - enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]" - onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]" - using = tooltip_se - - button_give_directive = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - } - } - - widget = { - size = { 30 30 } - - text_single = { - parentanchor = vcenter - - text = "[Character.Custom('vassal_directive_icon')]" - align = nobaseline - - tooltip = "VASSAL_DIRECTIVE_ICON_TOOLTIP" - using = tooltip_se - } - } - - divider_light = { - visible = "[Character.IsPowerfulVassal]" - layoutpolicy_vertical = expanding - } - - text_single = { - visible = "[Character.IsPowerfulVassal]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_POWERFUL_VASSAL" - align = nobaseline - max_width = 200 - } - - expand = {} - } - } - } - - block "own_vassal" { - vbox = { - visible = "[Character.GetLiege.IsLocalPlayer]" - layoutpolicy_vertical = expanding - margin_left = 10 - - hbox = { - coa_title_tiny_crown = { - name = "allegiance_flag" - datacontext = "[SubjectContract.GetTitleAllegiance]" - visible = "[Title.IsValid]" - - tooltip = "MRW_TITLE_ALLEGIANCE" - blockoverride "coa_tooltip" {} - } - } - } - } - } - - hbox_tributary_information = { - visible = "[And(Character.HasSuzerain,GreaterThanOrEqualTo_CFixedPoint(Character.GetSubjectContract.GetSubjectStanding,'(CFixedPoint)0'))]" - blockoverride "tooltip" - { - tooltip = "MY_REALM_WINDOW_SUBJECT_STANDING_TT" - } - - blockoverride "text" - { - text_single = { - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_SUBJECT_STANDING" - align = left|nobaseline - } - } - } - - hbox_tributary_information = { - visible = "[And(Character.HasSuzerain,Not(GreaterThanOrEqualTo_CFixedPoint(Character.GetSubjectContract.GetSubjectStanding,'(CFixedPoint)0')))]" - } - } - } - - block "own_vassal" - { - vbox_vassal_item_footer = { - datacontext = "[SubjectContract.GetContractGroup]" - } - } - - expand = {} - } - } - - type hbox_tributary_information = hbox { - visible = "[Character.HasSuzerain]" - - layoutpolicy_horizontal = expanding - datacontext = "[Character.GetSubjectContract]" - spacing = 5 - - block "tooltip" { - tooltip = "MY_REALM_WINDOW_CEASE_PAYING_TRIBUTE_CHANCE_TT" - } - - block "text" { - icon_flat_standard = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cease_paying_tributary.dds" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_CEASE_PAYING_TRIBUTE_CHANCE" - align = left|nobaseline - max_width = 300 - } - } - - expand = {} - - block "release_tributary_button" { - button_round = { - visible = "[Character.IsPlayerInteractionShown('release_tributary_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('release_tributary_interaction')]" - onclick = "[Character.OpenPlayerInteraction('release_tributary_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('release_tributary_interaction')]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - position = { 1 1 } - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/release_tributary.dds" - } - } - } - } - - type hbox_vassal_contract_button = hbox { - spacing = 5 - - widget = { - visible = "[Or( SubjectContractGroup.IsType('feudal_vassal'), SubjectContractGroup.IsType('mandala_vassal') )]" - size = { 40 40 } - - button_round = { - parentanchor = center - - enabled = "[Character.IsPlayerInteractionValid('liege_modify_vassal_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('liege_modify_vassal_contract_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('liege_modify_vassal_contract_interaction')]" - - block "feudal_contract_button_round" {} - - button_feudal_contract = { - alwaystransparent = yes - parentanchor = center - } - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - widget = { - visible = "[SubjectContractGroup.IsType('clan_vassal')]" - size = { 40 40 } - - button_round = { - parentanchor = center - onclick = "[ToggleGameViewData( 'tax_slot_assign_vassal', Character.Self )]" - - tooltip = "TAX_SLOT_REALM_VIEW_OPEN_ASSIGN_VIEW" - - icon = { - parentanchor = center - size = { 30 30 } - - texture = "gfx/interface/skinned/hud_maintab/maintab_tax_jurisdictions.dds" - } - } - - warning_icon = { - visible = "[Not( Character.IsAssignedAsTaxpayer )]" - parentanchor = bottom|right - size = { 20 20 } - - tooltip = "TAX_SLOT_REALM_VIEW_OPEN_ASSIGN_VIEW_UNASSIGNED" - } - } - - widget = { - visible = "[And( SubjectContractGroup.IsType('admin_vassal'), Character.IsPlayerInteractionValid('admin_liege_modify_vassal_contract_interaction') ) ]" - size = { 40 40 } - - button_round = { - parentanchor = center - - enabled = "[Character.IsPlayerInteractionValid('admin_liege_modify_vassal_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('admin_liege_modify_vassal_contract_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('admin_liege_modify_vassal_contract_interaction')]" - - block "admin_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - widget = { - visible = "[SubjectContractGroup.IsType('nomad_vassal')]" - size = { 40 40 } - - button_round = { - parentanchor = center - - enabled = "[Character.IsPlayerInteractionValid('nomad_liege_modify_vassal_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('nomad_liege_modify_vassal_contract_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('nomad_liege_modify_vassal_contract_interaction')]" - - block "nomad_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - widget = { - visible = "[Or( SubjectContractGroup.IsType('tributary_nomadic'), SubjectContractGroup.IsType('tributary_settled') )]" - size = { 40 40 } - - button_round = { - parentanchor = center - - enabled = "[Character.IsPlayerInteractionValid('suzerain_modify_tributary_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('suzerain_modify_tributary_contract_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('suzerain_modify_tributary_contract_interaction')]" - - block "nomad_tributary_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - button_round = { - visible = "[SubjectContractGroup.IsType('tributary_celestial')]" - enabled = "[Character.IsPlayerInteractionValid('suzerain_modify_tributary_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('suzerain_modify_tributary_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('suzerain_modify_tributary_contract_interaction')]" - - block "celestial_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - button_round = { - visible = "[SubjectContractGroup.IsType('tributary_steppe')]" - enabled = "[Character.IsPlayerInteractionValid('suzerain_modify_tributary_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('suzerain_modify_tributary_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('suzerain_modify_tributary_contract_interaction')]" - - block "celestial_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - button_round = { - visible = "[Or( Or( SubjectContractGroup.IsType('celestial_vassal'), SubjectContractGroup.IsType('meritocratic_vassal') ), SubjectContractGroup.IsType('japan_administrative_vassal') )]" - enabled = "[Character.IsPlayerInteractionValid('admin_liege_modify_vassal_contract_interaction')]" - onclick = "[Character.OpenPlayerInteraction('admin_liege_modify_vassal_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('admin_liege_modify_vassal_contract_interaction')]" - tooltip_when_disabled = "ADMIN_WINDOW_NON_ADMIN_THEME_FAIL_DEMAND_INTERACTION" - - block "celestial_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - - icon_vassal_contract_warning_blocked = {} - icon_vassal_contract_warning_default = {} - } - - block "vassal_contract_type_name" - { - text_single = { - text = "[SubjectContractGroup.GetName]" - align = nobaseline - max_width = 130 - } - } - } - - type hbox_vassal_taxes = hbox { - ### FEUDAL ARE SPECIAL - hbox = { - visible = "[SubjectContractGroup.IsType( 'feudal_vassal' )]" - spacing = 15 - - ### FEUDAL GOLD - hbox = { - spacing = 5 - - text_single = { # Display the Tax Level - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_VASSAL_FEUDAL_TAX" - align = nobaseline - default_format = "#low" - max_width = 100 - - margin_bottom = 2 - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedTax|=1]" - align = nobaseline - max_width = 50 - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetTaxBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_TAXES_TO_ME" - } - } - } - using = tooltip_sw - } - - ### FEUDAL LEVIES - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetLevyRatioForLiege, '(CFixedPoint)0' )]" - spacing = 5 - - text_single = { # Display the Levy Level - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_VASSAL_FEUDAL_LEVIES" - align = nobaseline - default_format = "#low" - max_width = 100 - - margin_bottom = 2 - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedLeviesFormatted]" - align = nobaseline - max_width = 50 - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "levy_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetLeviesBreakdown]" - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_LEVIES_TO_ME" - } - } - } - using = tooltip_sw - } - } - - ### THE REST (NON-FEUDAL) - hbox = { - visible = "[Not( SubjectContractGroup.IsType( 'feudal_vassal' ) )]" - spacing = 15 - - ### VASSAL GOLD - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetTaxRatioForLiege, '(CFixedPoint)0' )]" - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedTax|=1]" - align = nobaseline - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetTaxBreakdown]" - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_TAXES_TO_ME" - } - } - } - using = tooltip_sw - } - - ### VASSAL LEVIES - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetLevyRatioForLiege, '(CFixedPoint)0' )]" - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_levies.dds" - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedLeviesFormatted]" - align = nobaseline - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "levy_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetLeviesBreakdown]" - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_LEVIES_TO_ME" - } - } - } - using = tooltip_sw - } - - ### VASSAL PIETY - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetPietyRatioForLiege, '(CFixedPoint)0' )]" - - icon = { - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedPiety|=1]" - align = nobaseline - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetPietyBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_PIETY_TO_ME" - } - } - } - using = tooltip_sw - } - - ### VASSAL HERD - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetHerdRatioForLiege, '(CFixedPoint)0' )]" - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_herd.dds" - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedHerd|=1]" - align = nobaseline - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetHerdBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_HERD_TO_ME" - } - } - } - using = tooltip_sw - } - - ### VASSAL BARTER GOODS - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetBarterGoodsRatioForLiege, '(CFixedPoint)0' )]" - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_barter.dds" - } - - text_single = { - text = "[MyRealmWindowVassalItem.GetCachedBarterGoods|=1]" - align = nobaseline - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetBarterGoodsBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_BARTER_GOODS_TO_ME" - } - } - } - using = tooltip_sw - } - } - } - - type hbox_vassal_list_icons = hbox { - spacing = 5 - - icon = { - name = "hook" - visible = "[Character.PlayerHasHooksOrHookableSecrets]" - size = { 25 25 } - framesize = { 40 40 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - - frame = "[Character.GetHookOrHookableSecretsFrame]" - tooltip = "[Character.HookTooltip]" - } - - icon = { - name = "icon_non_dejure" - visible = "[Not( SubjectContract.IsRightfulLiege )]" - size = { 30 30 } - texture = "gfx/interface/icons/levy_tax_reduction.dds" - - using = tooltip_ws - tooltip = "MRW_TT_NOT_RIGHTFUL_LIEGE" - } - } - - type vbox_vassal_item_footer = vbox { - layoutpolicy_horizontal = expanding - - margin_left = 5 - margin_right = 10 - margin_top = 5 - margin_bottom = 5 - spacing = 10 - - hbox = { - name = "subjects_contract_button" - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area_Solid - margin = { 10 5 } - alpha = 0.75 - } - - icon = { - visible = "[Or( Character.GetGovernment.HasGovernmentFlag( 'government_is_herder' ), Or( Character.IsBaronOrUnlanded, Or( Or( And( Not( SubjectContract.UsesObligationLevels), Not( SubjectContract.IsTributary ) ), Character.GetPrimaryTitle.IsNobleFamilyTitle ) , And( Character.GetGovernment.HasRule( 'administrative' ), LessThanOrEqualTo_int32( Character.GetPrimaryTitle.GetTierFrame, Character.GetGovernment.GetMainAdministrativeTier ) ) ) ) ) ]" - size = { 42 42 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - tooltip = "MY_REALM_WINDOW_NO_FEUDAL_CONTRACT_TT" - enabled = no - } - - hbox_vassal_contract_button = { - visible = "[Not( Or( Character.GetGovernment.HasGovernmentFlag( 'government_is_herder' ), Or( Character.IsBaronOrUnlanded, Or( Or( And( Not( SubjectContract.UsesObligationLevels), Not( SubjectContract.IsTributary ) ), Character.GetPrimaryTitle.IsNobleFamilyTitle ) , And( Character.GetGovernment.HasRule( 'administrative' ), LessThanOrEqualTo_int32( Character.GetPrimaryTitle.GetTierFrame, Character.GetGovernment.GetMainAdministrativeTier ) ) ) ) ) ) ]" - } - - hbox_vassal_list_icons = {} - - expand = {} - - hbox_vassal_taxes = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SubjectContractGroup.IsType('clan_government')]" - - background = { - using = Background_Area_Dark - margin = { 10 5 } - alpha = 0.75 - } - - spacer = { - size = { 10 0 } - } - - hbox = { - spacing = 20 - - text_single = { - text = "[SubjectContractGroup.GetName]" - align = nobaseline - } - - button_standard = { - size = { 300 36 } - - onclick = "[ToggleGameViewData( 'tax_slot_assign_vassal', Character.Self )]" - - text_single = { - parentanchor = vcenter|left - margin_left = 10 - max_width = 250 - align = nobaseline - - visible = "[Character.IsAssignedAsTaxpayer]" - - text = "TAX_SLOT_REALM_VIEW_OPEN_ASSIGN_VIEW" - } - - text_single = { - parentanchor = vcenter|left - margin_left = 10 - max_width = 250 - align = nobaseline - - visible = "[Not( Character.IsAssignedAsTaxpayer )]" - - text = "TAX_SLOT_REALM_VIEW_OPEN_ASSIGN_VIEW_UNASSIGNED" - } - - icon = { - parentanchor = vcenter|right - size = { 30 30 } - position = { -5 0 } - texture = "gfx/interface/icons/flat_icons/replace.dds" - using = Master_Button_Modify_Texture - } - } - } - - expand = {} - } - } - - type hbox_traits_list = hbox - { - layoutpolicy_horizontal = expanding - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 55 } - - hbox = { - name = "3_personality_traits" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetPersonalityTraits), '(int32)3')]" - - fixedgridbox = { - name = "personality_traits" - datamodel = "[TraitArrays.GetPersonalityTraits]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 3 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - hbox = { - visible = "[Not(IsDataModelEmpty( TraitArrays.GetTraits ))]" - layoutpolicy_vertical = expanding - margin = { 5 10 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - fixedgridbox = { - name = "traits_big" - datamodel = "[TraitArrays.GetTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)5')]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 5 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - fixedgridbox = { - name = "traits_medium" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)5'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)7'))]" - flipdirection = yes - addcolumn = 39 - addrow = 40 - maxhorizontalslots = 7 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 40 40 } - } - - blockoverride "glow_radius" - { - glow_radius = 4 - } - } - } - } - - fixedgridbox = { - name = "traits_small" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)7'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)10'))]" - flipdirection = yes - addcolumn = 28 - addrow = 29 - maxhorizontalslots = 10 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 29 29 } - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - fixedgridbox = { - name = "traits_tiny" - datamodel = "[TraitArrays.GetTraits]" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)10')]" - flipdirection = yes - addcolumn = 24 - addrow = 25 - maxhorizontalslots = 11 - datamodel_wrap = 11 - maxverticalslots = 2 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 25 25 } - } - - blockoverride "glow_radius" - { - glow_radius = 2 - } - } - } - } - - expand = {} - } - - hbox = { - name = "4_personality_traits" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetPersonalityTraits), '(int32)3')]" - - fixedgridbox = { - name = "personality_traits" - datamodel = "[TraitArrays.GetPersonalityTraits]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 4 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - hbox = { - visible = "[Not(IsDataModelEmpty( TraitArrays.GetTraits ))]" - layoutpolicy_vertical = expanding - margin = { 5 10 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - fixedgridbox = { - name = "traits_big" - datamodel = "[TraitArrays.GetTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4')]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 5 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - fixedgridbox = { - name = "traits_medium" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6'))]" - flipdirection = yes - addcolumn = 39 - addrow = 40 - maxhorizontalslots = 7 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 40 40 } - } - - blockoverride "glow_radius" - { - glow_radius = 4 - } - } - } - } - - fixedgridbox = { - name = "traits_small" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)8'))]" - flipdirection = yes - addcolumn = 28 - addrow = 29 - maxhorizontalslots = 10 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 29 29 } - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - fixedgridbox = { - name = "traits_tiny" - datamodel = "[TraitArrays.GetTraits]" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)8')]" - flipdirection = yes - addcolumn = 24 - addrow = 25 - maxhorizontalslots = 9 - datamodel_wrap = 9 - maxverticalslots = 2 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 25 25 } - } - - blockoverride "glow_radius" - { - glow_radius = 2 - } - } - } - } - - expand = {} - } - } - expand = {} - } - - type hbox_traits_list_small = hbox - { - layoutpolicy_horizontal = expanding - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 55 } - - hbox = { - name = "3_personality_traits" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetPersonalityTraits), '(int32)3')]" - - fixedgridbox = { - name = "personality_traits" - datamodel = "[TraitArrays.GetPersonalityTraits]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 3 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - hbox = { - visible = "[Not(IsDataModelEmpty( TraitArrays.GetTraits ))]" - layoutpolicy_vertical = expanding - margin = { 5 10 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - fixedgridbox = { - name = "traits_big" - datamodel = "[TraitArrays.GetTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4')]" - flipdirection = yes - addcolumn = 39 - addrow = 40 - maxhorizontalslots = 4 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 40 40 } - } - } - } - } - - fixedgridbox = { - name = "traits_small" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6'))]" - flipdirection = yes - addcolumn = 28 - addrow = 29 - maxhorizontalslots = 6 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 29 29 } - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - fixedgridbox = { - name = "traits_tiny" - datamodel = "[TraitArrays.GetTraits]" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6')]" - flipdirection = yes - addcolumn = 24 - addrow = 25 - maxhorizontalslots = 7 - datamodel_wrap = 7 - maxverticalslots = 2 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 25 25 } - } - - blockoverride "glow_radius" - { - glow_radius = 2 - } - } - } - } - - expand = {} - } - - hbox = { - name = "4_personality_traits" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetPersonalityTraits), '(int32)3')]" - - fixedgridbox = { - name = "personality_traits" - datamodel = "[TraitArrays.GetPersonalityTraits]" - flipdirection = yes - addcolumn = 54 - addrow = 55 - maxhorizontalslots = 4 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - hbox = { - visible = "[Not(IsDataModelEmpty( TraitArrays.GetTraits ))]" - layoutpolicy_vertical = expanding - margin = { 5 10 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - fixedgridbox = { - name = "traits_big" - datamodel = "[TraitArrays.GetTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4')]" - flipdirection = yes - addcolumn = 39 - addrow = 40 - maxhorizontalslots = 4 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 40 40 } - } - } - } - } - - fixedgridbox = { - name = "traits_small" - datamodel = "[TraitArrays.GetTraits]" - visible = "[And(GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)4'), LessThanOrEqualTo_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6'))]" - flipdirection = yes - addcolumn = 28 - addrow = 29 - maxhorizontalslots = 6 - maxverticalslots = 1 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 29 29 } - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - fixedgridbox = { - name = "traits_tiny" - datamodel = "[TraitArrays.GetTraits]" - visible = "[GreaterThan_int32(GetDataModelSize(TraitArrays.GetTraits), '(int32)6')]" - flipdirection = yes - addcolumn = 24 - addrow = 25 - maxhorizontalslots = 6 - datamodel_wrap = 6 - maxverticalslots = 2 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 25 25 } - } - - blockoverride "glow_radius" - { - glow_radius = 2 - } - } - } - } - - expand = {} - } - } - expand = {} - } -} - -types Vassals -{ - type icon_vassal_contract_warning_blocked = alert_icon { - visible = "[SubjectContract.IsBlockedFromModification]" - parentanchor = bottom|right - size = { 20 20 } - - tooltip = "VASSAL_CONTRACT_IS_BLOCKED" - using = tooltip_sw - } - - type icon_vassal_contract_warning_default = alert_icon { - visible = "[Not( SubjectContract.IsContractDefault )]" - parentanchor = bottom|right - size = { 20 20 } - - tooltip = "VASSAL_CONTRACT_NOT_DEFAULT" - using = tooltip_sw - } - - type vassal_stance_icon = icon { - datacontext = "[Character.GetVassalStance]" - visible = "[And( Character.IsVassalOf( GetPlayer ), Not( Character.IsPlayer ) )]" - - texture = "[VassalStance.GetIcon]" - tooltipwidget = { - using = vassal_stance_tooltip - } - } - - type vassal_expected_legitimacy_widget = widget { - visible = "[And(And( Character.IsVassalOf( GetPlayer ), Not( Character.IsPlayer ) ), And( GetPlayer.GetGovernment.HasRule( 'legitimacy' ), GetPlayer.GetLegitimacyType.IsValid ) )]" - tooltip = "VASSAL_EXPECTED_LEGITIMACY_TT" - - # A glow if you are below their expectations. Needs to be its own icon since glow generation does not work on frame-based icons - icon = { - name = "below_glow" - size = { 100% 100% } - texture = "[GetPlayer.GetLegitimacyType.GetFlatIcon]" - - visible = "[GreaterThan_int32( Character.GetLegitimacyExpectationsOfLiege, Character.GetLiege.GetLegitimacyLevel.GetIndex )]" - using = Animation_Glow_Pulse - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Red - } - } - - icon = { - name = "tiered_icon" - size = { 100% 100% } - - texture = "[GetPlayer.GetLegitimacyType.GetLevelsIcon]" - framesize = { 70 70 } - frame = "[IntToFrameIndex( Character.GetLegitimacyExpectationsOfLiege )]" - } - } -} - -#################################### -########### SCROLL AREA ############ -#################################### - -## Generic scrollarea. Remember that "scrollbox_content" can only contain one child without siblings. -types Scrollbar -{ - type scrollbox = scrollarea { - size = { 100 100 } - - scrollbarpolicy_horizontal = always_off - - block "scrollbox_scrollbar_vertical" - { - scrollbar_vertical = { - using = Scrollbar_Vertical - } - } - - block "scrollbox_background" - { - background = { - using = Background_Area - } - } - - scrollwidget = { - block "scrollbox_replace_vbox" - { - vbox = { - block "scrollbox_margins" - { - using = Scrollbox_Margins - } - - block "scrollbox_content" - { - debug_square = {} - } - - text_single = { - layoutpolicy_vertical = expanding - default_format = "#weak" - - block "scrollbox_empty" - { - visible = no - } - } - - block "scrollbox_expand" - { - expand = { - layoutpolicy_vertical = growing - } - } - } - } - } - - block "scrollbox_background_fade" { - icon = { - name = "scrollbar_fade" - texture = "gfx/interface/scrollbars/scrollbar_fade.dds" - size = { 100% 100% } - alwaystransparent = yes - - spriteType = Corneredtiled - spriteborder = { 0 30 } - } - } - } -} - -## Vertical scrollbar -template Scrollbar_Vertical -{ - scrollbar = { - name = "vertical_scrollbar" - size = { 12 12 } - wheelstep = 60 - direction = vertical - - track = { - button = { - size = { 12 12 } - gfxtype = buttongfx - - texture = "gfx/interface/scrollbars/scrollbar_track_vertical.dds" - spriteType = Corneredtiled - spriteborder = { 0 3 } - effectname = "NoHighlight" - } - } - - slider = { - button = { - gfxtype = framedbuttongfx - effectname = "NoHighlight" - - texture = "gfx/interface/scrollbars/scrollbar_slider.dds" - spriteType = Corneredtiled - spriteborder = { 0 3 } - framesize = { 12 40 } - minimumsize = { -1 40 } - - upframe = 1 - overframe = 2 - downframe = 2 - - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - - state = { - name = _mouse_press - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - } - } - - dec_button = { - button = { - } - } - - inc_button = { - button = { - } - } - } -} - -## Horizontal scrollbar -template Scrollbar_Horizontal -{ - scrollbar = { - name = "horizontal_scrollbar" - size = { 12 12 } - wheelstep = 60 - direction = horizontal - - track = { - button = { - size = { 12 12 } - gfxtype = buttongfx - - texture = "gfx/interface/scrollbars/scrollbar_track_horizontal.dds" - spriteType = Corneredtiled - spriteborder = { 3 0 } - effectname = "NoHighlight" - intersectionmask = yes - } - } - - slider = { - button = { - gfxtype = framedbuttongfx - effectname = "NoHighlight" - - texture = "gfx/interface/scrollbars/scrollbar_slider_horizontal.dds" - spriteType = Corneredtiled - spriteborder = { 3 0 } - framesize = { 40 12 } - minimumsize = { 15 -1 } - - upframe = 1 - overframe = 2 - downframe = 2 - - intersectionmask = yes - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - - state = { - name = _mouse_press - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - } - } - - dec_button = { - button = { - } - } - - inc_button = { - button = { - } - } - } -} - -types DataModelViewTypes -{ - type data_model_view_options_hbox = hbox - { - spacing = 5 - - button_standard = { - name = "filters" - size = { 25 25 } - - down = "[DataModelView.AreFiltersShown]" - onclick = "[DataModelView.ToggleFiltersShown]" - - tooltip = "TOGGLE_FILTERS" - using = tooltip_nw - - button_search = { - alwaystransparent = yes - parentanchor = center - size = { 20 20 } - } - } - - divider_light = { - size = { 3 20 } - } - - text_single = { - text = "SORT_BY" - align = nobaseline - } - - dropdown_menu_standard = { - name = "sort_options" - - blockoverride "dropdown_properties" - { - datamodel = "[DataModelView.GetSorters]" - selectedindex = "[DataModelView.GetActiveSortIndex]" - onselectionchanged = "[DataModelView.SortBy]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[DataModelSorter.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[DataModelSorter.GetName]" - } - } - - button_standard = { - name = "sort_order" - size = { 25 25 } - - using = tooltip_ne - onclick = "[DataModelView.ToggleSortOrder]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo1And2( DataModelView.GetSortOrder )]" - - alwaystransparent = yes - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - } - - type data_model_view_toggle_filter = button_checkbox_label - { - layoutpolicy_horizontal = expanding - - onclick = "[DataModelView.ToggleFilter( PdxGuiWidget.GetIndexInDataModel )]" - - block "toggle_onclick" - { - } - - blockoverride "checkbox" - { - checked = "[DataModelFilter.IsEnabled]" - } - - blockoverride "text" - { - text = "[DataModelFilter.GetName]" - } - } - - type data_model_view_dropdown_filter = hbox - { - layoutpolicy_horizontal = expanding - - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[DataModelGroupedFilter.GetGroupName]" - default_format = "#medium" - align = nobaseline - autoresize = no - } - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[DataModelGroupedFilter.GetFilters]" - selectedindex = "[DataModelGroupedFilter.GetActiveFilter]" - onselectionchanged = "[DataModelView.SelectGroupFilter( PdxGuiWidget.GetIndexInDataModel )]" - - block "dropdown_onselect" - { - } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[CString.GetString]" - } - - blockoverride "dropdown_item_properties" - { - text = "[CString.GetString]" - } - } - } - - type data_model_view_filter_hbox = hbox - { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - name = "toggle_filters" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelView.GetFilters]" - - item = { - data_model_view_toggle_filter = {} - } - } - - hbox = { - name = "grouped_filters" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelView.GetGroupedFilters]" - - item = { - data_model_view_dropdown_filter = {} - } - } - } - - type data_model_view_filters_window = window - { - visible_at_creation = no - visible = "[DataModelView.AreFiltersShown]" - - parentanchor = top|right - position = { -780 20 } - size = { 510 800 } - focuspolicy = click - - allow_outside = yes - - using = Window_Movable - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - margin = { 4 4 } - - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHARACTER_LIST_FILTERS" - } - blockoverride "button_close" - { - onclick = "[DataModelView.ToggleSortOrder]" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - name = "toggle_filters" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelView.GetFilters]" - - item = { - data_model_view_toggle_filter = {} - } - } - - vbox = { - name = "grouped_filters" - layoutpolicy_horizontal = expanding - datamodel = "[DataModelView.GetGroupedFilters]" - - item = { - data_model_view_dropdown_filter = {} - } - } - } - } - - hbox = { - layoutpolicy_horizontal = growing - margin_bottom = 10 - - button_standard = { - name = "remove_filters" - raw_text = "Remove Filters" - focuspolicy = click - onclick = "[DataModelView.RemoveAllFilters]" - } - } - } - } -} diff --git a/N3OW/gui/shared/mapmodes.gui b/N3OW/gui/shared/mapmodes.gui deleted file mode 100644 index 310c2fbe..00000000 --- a/N3OW/gui/shared/mapmodes.gui +++ /dev/null @@ -1,1161 +0,0 @@ -types MapModes -{ - type map_modes_debug = flowcontainer { - direction = vertical - - flowcontainer = { - ignoreinvisible = yes - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - name = "map_mode_simple_realms_button" - onclick = "[SetMapMode('simple_realms')]" - raw_text = "Srlm" - tooltip = "MAPMODE_REALMS" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - name = "map_mode_terrain_button" - onclick = "[SetMapMode('debug_terrain')]" - raw_text = "Ter" - tooltip = "MAPMODE_TERRAIN" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - name = "map_mode_baronies_button" - onclick = "[SetMapMode('baronies')]" - raw_text = "Bar" - tooltip = "MAPMODE_BARONIES" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - name = "map_mode_realm_areas_button" - onclick = "[SetMapMode('realm_areas')]" - raw_text = "Area" - tooltip = "MAPMODE_AREAS" - } - } - - flowcontainer = { - ignoreinvisible = yes - - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - name = "map_mode_diplomacy_button" - onclick = "[SetMapMode('diplomacy')]" - raw_text = "Diplo" - tooltip = "MAPMODE_DIPLOMACY" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - onclick = "[SetMapMode('debug_character_pools')]" - raw_text = "Pools" - raw_tooltip = "Character Pools" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - onclick = "[SetMapMode('debug_ai_war_coordinator_targets')]" - raw_text = "AI" - raw_tooltip = "AI War Coordinator targets. Use console command AI.war_coordinator_build_targets_map" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - onclick = "[SetMapMode('debug_visual_regions')]" - raw_text = "Reg" - raw_tooltip = "Visual Geographical Regions" - } - - button_round = { - visible = "[And( Not(IsGameViewOpen('barbershop')), CanChangeMapMode )]" - onclick = "[SetMapMode('debug_realm_construction')]" - raw_text = "Con" - raw_tooltip = "Realm Construction Debug" - } - } - - } - - type map_modes = widget { - allow_outside = yes - filter_mouse = all - alwaystransparent = yes - size = { 170 95 } - - background = { - using = Background_Area_Dark - margin_left = 10 - margin_bottom = 10 - margin_top = -12 - margin_right = 10 - color = { 0.15 0.15 0.15 0.75 } - visible = "[And(CanChangeMapMode, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_timeline').GetValue, '(CFixedPoint)0' ) ))]" - } - - @zoom_level_offset = -40 - - flowcontainer = { - name = "paper_map" - visible = "[And(And( And( Not( GetVariableSystem.Exists( 'mapmodes_expand' ) ), IsMapMode('realms') ), IsDefaultGUIMode ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_map_zoom').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = top|right - position = { 0 @zoom_level_offset } - direction = vertical - ignoreinvisible = yes - min_width = 170 - tooltip = "ZOOM_LEVEL_PAPER_MAP_TOOLTIP" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - margin_top = 5 - color = { 0.15 0.15 0.15 0.75 } - } - - text_single = { - visible = "[GreaterThanOrEqualTo_int32(GetZoomLevel, '(int32)20')]" - parentanchor = hcenter - text = "ZOOM_LEVEL_PAPER_MAP" - default_format = "#high;italic" - } - - text_single = { - visible = "[GreaterThanOrEqualTo_int32(GetZoomLevel, '(int32)20')]" - parentanchor = hcenter - text = "ZOOM_LEVEL_SELECTING_REALMS" - } - } - - flowcontainer = { - name = "political_map" - visible = "[And(And( And( Not( GetVariableSystem.Exists( 'mapmodes_expand' ) ), IsMapMode('realms') ), IsDefaultGUIMode ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_map_zoom').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = top|right - position = { 0 @zoom_level_offset } - direction = vertical - ignoreinvisible = yes - min_width = 170 - tooltip = ZOOM_LEVEL_POLITICAL_TOOLTIP - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - margin_top = 5 - color = { 0.15 0.15 0.15 0.75 } - } - - text_single = { - visible = "[And(LessThan_int32(GetZoomLevel, '(int32)20'), GreaterThan_int32(GetZoomLevel, '(int32)8'))]" - parentanchor = hcenter - text = "ZOOM_LEVEL_POLITICAL" - default_format = "#color_yellow" - } - - text_single = { - visible = "[And(LessThan_int32(GetZoomLevel, '(int32)20'), GreaterThan_int32(GetZoomLevel, '(int32)8'))]" - parentanchor = hcenter - text = "ZOOM_LEVEL_SELECTING_REALMS" - } - } - - flowcontainer = { - name = "details_map" - visible = "[And(And( And(Not(GetVariableSystem.Exists( 'mapmodes_expand' )), IsMapMode('realms')), IsDefaultGUIMode ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_map_zoom').GetValue, '(CFixedPoint)0' ) ))]" - parentanchor = top|right - position = { 0 @zoom_level_offset } - direction = vertical - ignoreinvisible = yes - min_width = 170 - tooltip = ZOOM_LEVEL_DETAILS_TOOLTIP - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - using = Background_Area_Dark - margin = { 10 10 } - margin_top = 5 - color = { 0.15 0.15 0.15 0.75 } - } - - text_single = { - visible = "[LessThan_int32(GetZoomLevel, '(int32)9')]" - parentanchor = hcenter - text = "ZOOM_LEVEL_DETAILS" - default_format = "#color_green" - } - - text_single = { - visible = "[LessThan_int32(GetZoomLevel, '(int32)9')]" - parentanchor = hcenter - text = "ZOOM_LEVEL_SELECTING_BARONIES" - } - } - -## Realm - icon_button_mapmode = { - name = "map_mode_realms_button" - position = { 0 25 } - size = { 50 50 } - visible = "[And(CanChangeMapMode, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_timeline').GetValue, '(CFixedPoint)0' ) ))]" - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('realms')]" - } - - blockoverride "mm_button" - { - onclick = "[ClearExploringRealms]" - shortcut = "map_mode_1" - } - blockoverride "mm_icon" - { - size = { 50 50 } - } - - blockoverride "mm_glow" - { - visible = no - } - - blockoverride "mm_bg_color" - { - color = { 0.18 0.18 0 1 } - } - } - - flowcontainer = { - parentanchor = right|bottom - margin_right = 15 - direction = vertical - visible = "[And(CanChangeMapMode, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_timeline').GetValue, '(CFixedPoint)0' ) ))]" - - ## De Jure - flowcontainer = { - visible = "[CanChangeMapMode]" - parentanchor = hcenter - direction = horizontal - ignoreinvisible = yes - spacing = -3 - - icon_button_mapmode = { - name = "map_mode_duchies_button" - block "map_mode_tutorial"{} - - size = { 38 38 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('dejure_duchies')]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_9" - } - - blockoverride "button_bg_color" - { - color = { 0.1 0.14 0.1 1 } - } - } - - icon_button_mapmode = { - name = "map_mode_kingdoms_button" - size = { 38 38 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('dejure_kingdoms')]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_10" - } - - blockoverride "button_bg_color" - { - color = { 0.18 0.1 0.1 1 } - } - } - - icon_button_mapmode = { - name = "map_mode_empires_button" - size = { 38 38 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('dejure_empires')]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_11" - } - - blockoverride "button_bg_color" - { - color = { 0.12 0.12 0.18 1 } - } - } - - } - - ## Other - flowcontainer = { - parentanchor = hcenter - direction = horizontal - ignoreinvisible = no - spacing = -2 - - visible = "[And(CanChangeMapMode, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_timeline').GetValue, '(CFixedPoint)0' ) ))]" - - icon_button_mapmode = { - name = "map_mode_religion_button" - size = { 32 32 } - parentanchor = vcenter - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('religions')]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_3" - } - } - - icon_button_mapmode = { - name = "map_mode_cultures_button" - size = { 32 32 } - parentanchor = vcenter - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('cultures')]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_2" - } - } - - icon_button_mapmode = { - name = "map_mode_houses_button" - size = { 32 32 } - parentanchor = vcenter - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('houses')]" - } - - blockoverride "mm_button" - { - onclick = "[ClearExploringHouses]" - shortcut = "map_mode_4" - } - } - - widget = { - parentanchor = vcenter - size = {32 32} - - button_round = { - parentanchor = center - size = { 30 30 } - onclick = "[GetVariableSystem.Toggle( 'mapmodes_expand' )]" - - button_plus_small = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - - flowcontainer_additional_mapmodes = { - parentanchor = top|right - widgetanchor = bottom|right - position = { 20 21 } - } - } - - type mm_text_button = button_tertiary { - name = "players" - block 'datacontext' - { - datacontext = "[GetMapMode( 'realms' )]" - } - block 'visible' - { - visible = "[CanChangeMapMode]" - } - - parentanchor = hcenter - size = { 159 25 } - - onclick = "[SetMapMode( MapMode.GetKey )]" - alwaystransparent = "[IsMapMode( MapMode.GetKey )]" - - text = "[MapMode.GetName]" - tooltip = "[MapMode.GetDesc]" - - using = tooltip_ne - - button_expand = { - visible = "[IsMapMode( MapMode.GetKey )]" - - size = { 15 15 } - parentanchor = left|vcenter - - alwaystransparent = yes - } - - button_expand = { - visible = "[IsMapMode( MapMode.GetKey )]" - mirror = horizontal - - size = { 15 15 } - parentanchor = right|vcenter - - alwaystransparent = yes - } - } - - type mm_button_round = button_round { - block 'datacontext' - { - datacontext = "[GetMapMode( 'realms' )]" - } - parentanchor = center - size = { 30 30 } - - onclick = "[SetMapMode( MapMode.GetKey )]" - alwaystransparent = "[IsMapMode( MapMode.GetKey )]" - - tooltip = "[MapMode.GetDesc]" - using = tooltip_ws - } - - type flowcontainer_additional_mapmodes = flowcontainer { - - visible = "[GetVariableSystem.Exists( 'mapmodes_expand' )]" - visible_at_creation = no - - margin = { 22 10 } - alwaystransparent = no - filter_mouse = all - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Toggle( 'mapmodes_expand' )]" - } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - flowcontainer = { - direction = vertical - margin = { 10 10 } - margin_top = 5 - ignoreinvisible = yes - - background = { - using = Background_Area_Dark - color = { 0.15 0.15 0.15 0.75 } - } - - text_single = { - parentanchor = hcenter - text = "ADDITIONAL_MAPMODES" - default_format = "#medium" - margin_bottom = 5 - max_width = 130 - } - - block "mapmodes_insert_before" - { - - } - - flowcontainer = { - ignoreinvisible = yes - parentanchor = hcenter - - icon_button_mapmode = { - name = "county_fertility" - parentanchor = vcenter - size = { 32 32 } - visible = "[HasDlcFeature( 'khans_of_the_steppe' )]" - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'migration_counties' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_19" - } - } - - icon_button_mapmode = { - name = "terrain" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'terrain' )]" - } - - blockoverride "mm_icon" - { - texture = "gfx/interface/icons/flat_icons/map_modes/terrain.dds" - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_terrain" - } - } - - icon_button_mapmode = { - name = "simple_terrain" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'simple_terrain' )]" - } - - blockoverride "mm_icon" - { - texture = "[MapMode.GetIcon]" - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_12" - } - } - - icon_button_mapmode = { - name = "players" - visible = "[And( Or(GameHasMultiplePlayers, InDebugMode), CanChangeMapMode)]" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'players' )]" - } - - blockoverride "mm_icon" - { - size = { 26 26 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_8" - } - } - } - - widget ={ - size = {0 4} - } - divider_light = { - min_width = 100 - parentanchor = hcenter - } - widget ={ - size = {0 4} - } - - flowcontainer = { - ignoreinvisible = yes - parentanchor = hcenter - - icon_button_mapmode = { - name = "map_mode_landless_rulers_button" - visible = "[And( HasDlcFeature( 'landless_playable' ), CanChangeMapMode )]" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'landless_rulers' )]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_18" - } - } - - icon_button_mapmode = { - name = "confederations" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'confederations' )]" - } - - blockoverride "mm_icon" - { - texture = "gfx/interface/icons/flat_icons/map_modes/confederations.dds" - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_confederations" - } - } - - icon_button_mapmode = { - name = "map_mode_epidemics_button" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'epidemics' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_16" - } - } - - - icon_button_mapmode = { - name = "map_mode_legends_button" - visible = "[And( HasDlcFeature( 'legends' ), CanChangeMapMode )]" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'legends' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_17" - } - } - } - - widget ={ - size = {0 4} - } - divider_light = { - min_width = 100 - parentanchor = hcenter - } - widget ={ - size = {0 4} - } - - flowcontainer = { - ignoreinvisible = yes - parentanchor = hcenter - - icon_button_mapmode = { - name = "map_mode_counties_button" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'dejure_counties' )]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_6" - } - } - - icon_button_mapmode = { - name = "map_mode_hegemonies_button" - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('dejure_hegemonies')]" - } - - blockoverride "mm_icon" - { - size = { 26 26 } - position = { 0 2} - } - - blockoverride "mm_button" - { - shortcut = "map_mode_20" - } - - blockoverride "button_bg_color" - { - color = { 0.12 0.12 0.18 1 } - } - } - - icon_button_mapmode = { - name = "map_mode_government_button" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'government' )]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_5" - } - } - - icon_button_mapmode = { - name = "map_mode_court_languages_button" - visible = "[And( HasDlcFeature( 'royal_court' ), CanChangeMapMode )]" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode('court_languages')]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_7" - } - } - } - - widget ={ - size = {0 4} - } - - divider_light = { - min_width = 100 - parentanchor = hcenter - } - widget ={ - size = {0 4} - } - - flowcontainer = { - ignoreinvisible = yes - parentanchor = hcenter - - icon_button_mapmode = { - name = "county_development" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'county_development' )]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_13" - } - } - - icon_button_mapmode = { - name = "county_control" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'county_control' )]" - } - - blockoverride "mm_icon" - { - size = { 22 22 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_15" - } - } - - icon_button_mapmode = { - name = "economy_buildings" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'economy_buildings' )]" - } - - blockoverride "mm_icon" - { - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_14" - } - } - - icon_button_mapmode = { - name = "diplomatic_relations" - parentanchor = vcenter - size = { 32 32 } - - blockoverride "mm_datacontext" - { - datacontext = "[GetMapMode( 'diplomatic_relations' )]" - } - - blockoverride "mm_icon" - { - texture = "[MapMode.GetIcon]" - size = { 20 20 } - } - - blockoverride "mm_button" - { - shortcut = "map_mode_diplomatic_relations" - } - } - } - - text_single = { - parentanchor = hcenter - text = "ADDITIONAL_MAP_SETTINGS" - default_format = "#medium" - margin_bottom = 5 - max_width = 130 - } - - flowcontainer = { - direction = vertical - margin = { 5 5 } - ignoreinvisible = yes - - background = { - using = Background_Area_Dark - } - - min_width = 159 - - button_checkbox_label = { - onclick = "[ToggleShowEpidemicMapGraphics]" - tooltip = "SETTING_SHOW_EPIDEMIC_MAP_GRAPHICS_TOOLTIP" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - blockoverride "checkbox" - { - checked = "[ShowEpidemicMapGraphics]" - size = { 20 20 } - } - - blockoverride "text" - { - text = "SETTING_SHOW_EPIDEMIC_MAP_GRAPHICS" - min_width = 120 - max_width = 125 - fontsize = 14 - max_height = 18 - } - } - - button_checkbox_label = { - onclick = "[ToggleShowLegendMapGraphics]" - tooltip = "SETTING_SHOW_LEGEND_MAP_GRAPHICS_TOOLTIP" - visible = "[HasDlcFeature( 'legends' )]" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - blockoverride "checkbox" - { - checked = "[ShowLegendMapGraphics]" - size = { 20 20 } - } - - blockoverride "text" - { - text = "SETTING_SHOW_LEGEND_MAP_GRAPHICS" - min_width = 120 - max_width = 125 - fontsize = 14 - max_height = 18 - } - } - - button_checkbox_label = { - visible = "[GetPlayer.CanRaid]" - onclick = "[ToggleShowDetailedRaidMapIcons]" - tooltip = "SETTING_SHOW_DETAILED_RAID_MAP_ICON_TOOLTIP" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - blockoverride "checkbox" - { - checked = "[ShowDetailedRaidMapIcons]" - size = { 20 20 } - } - - blockoverride "text" - { - text = "SETTING_SHOW_DETAILED_RAID_MAP_ICON" - min_width = 120 - max_width = 125 - fontsize = 14 - max_height = 18 - } - } - - button_checkbox_label = { - visible = "[GetPlayer.HasBarterGoods]" - onclick = "[ToggleShowDetailedBarterMapIcons]" - tooltip = "SETTING_SHOW_DETAILED_BARTER_MAP_ICON_TOOLTIP" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - blockoverride "checkbox" - { - checked = "[ShowDetailedBarterMapIcons]" - size = { 20 20 } - } - - blockoverride "text" - { - text = "SETTING_SHOW_DETAILED_BARTER_MAP_ICON" - min_width = 120 - max_width = 125 - fontsize = 14 - max_height = 18 - } - } - } - } - } - - type mini_map_mode = widget { - allow_outside = yes - filter_mouse = all - alwaystransparent = yes - - block "widget_size" - { - size = { 320 60 } - } - - background = { - using = Background_Area_Dark - margin = { 10 0 } - color = { 0.15 0.15 0.15 0.75 } - } - - hbox = { - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = MAP_MODE - } - - text_single = { - text = "[GetCurrentMapMode.GetName]" - default_format = "#high" - } - } - - expand = {} - - block "map_mode_buttons" {} - - widget = { - size = { 32 32 } - - button_round = { - size = { 30 30 } - parentanchor = top|hcenter - widgetanchor = center - position = { 0 10 } - - onclick = "[GetVariableSystem.Toggle( 'mapmodes_expand' )]" - - button_plus_small = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - - flowcontainer_additional_mapmodes = { - parentanchor = top|right - widgetanchor = bottom|right - position = { 31 10 } - - blockoverride "mapmodes_insert_before" - { - mm_text_button = { - name = "map_mode_dejure_duchies_button" - blockoverride 'datacontext' - { - datacontext = "[GetMapMode( 'dejure_duchies' )]" - } - shortcut = "map_mode_9" - } - - mm_text_button = { - name = "map_mode_dejure_kingdoms_button" - blockoverride 'datacontext' - { - datacontext = "[GetMapMode( 'dejure_kingdoms' )]" - } - shortcut = "map_mode_10" - } - - mm_text_button = { - name = "map_mode_dejure_empires_button" - blockoverride 'datacontext' - { - datacontext = "[GetMapMode( 'dejure_empires' )]" - } - shortcut = "map_mode_11" - } - - widget ={ - size = {0 4} - } - - divider_light = { - min_width = 100 - parentanchor = hcenter - } - widget ={ - size = {0 4} - } - } - } - } # type mini_map_mode = widget {...} -} diff --git a/N3OW/gui/shared/misc_components.gui b/N3OW/gui/shared/misc_components.gui deleted file mode 100644 index 98ffcdb2..00000000 --- a/N3OW/gui/shared/misc_components.gui +++ /dev/null @@ -1,464 +0,0 @@ -types Miscelaneous -{ - ######################################################## - ##### Types used in several placer, non-categorized #### - ######################################################## - - ## Use this to show default actions on a county (fabricate claim action / fabricate claim progress / declare war ) - type container_county_claim_action = container { - name = "county_action" - visible = "[Not(County.GetCount.IsLocalPlayer)]" - - button_standard = { - name = "fabricate_claim" - datacontext = "[GetPlayer.GetCouncillorPosition( 'councillor_court_chaplain' )]" - parentanchor = left - position = { 0 3 } - size = { 170 25 } - - text = "COUNCIL_TASK_FABRICATE_CLAIM" - using = tooltip_ne - onclick = "[GetPlayer.StartCouncilTaskIn('task_fabricate_claim', County.GetCapital)]" - enabled = "[GetPlayer.IsCouncilTaskValid('task_fabricate_claim', County.GetCapital)]" - visible = "[And(Not(GetPlayer.HasCouncillorWithTaskIn('task_fabricate_claim', County.GetCapital)),Not(GetPlayer.HasClaimOnTitle(County.GetTitle)))]" - tooltip = "[GetPlayer.GetStartCouncilTaskInTooltip('task_fabricate_claim', County.GetCapital)]" - } - - container = { - datacontext = "[GetPlayer.GetCouncillorPosition( 'councillor_court_chaplain' )]" - visible = "[GetPlayer.HasCouncillorWithTaskIn('task_fabricate_claim', County.GetCapital)]" - parentanchor = left - - progressbar_standard = { - name = "progress" - size = { 170 25 } - value = "[ActiveCouncilTask.GetProgressFloat]" - tooltipwidget = { - council_task_progress_breakdown_widget = {} - } - using = tooltip_ne - } - - text_single = { - parentanchor = center - text = "COUNCIL_TASK_FABRICATING_CLAIM" - default_format = "#high" - } - } - - text_single = { - visible = "[GetPlayer.HasClaimOnTitle(County.GetTitle)]" - text = "COA_HIGHLIGHT_CLAIM" - default_format = "#D" - } - } - - type skill_icon_label = flowcontainer { - margin_left = 10 - margin_right = 15 - spacing = 4 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - - block "bg" - { - frame = "[SkillItem.GetFrame]" - } - } - - block "tooltip" - { - tooltip = "SKILL_ITEM_TOOLTIP" - } - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_skills.dds" - framesize = { 60 60 } - - block "icon" - { - frame = "[SkillItem.GetFrame]" - } - - block "icon_size" - { - size = { 30 30 } - } - - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - align = nobaseline - default_format = "#high" - - block "font_size" - { - using = Font_Size_Medium - - } - - block "value" - { - text = "[SkillItem.GetValue]" - } - } - } - - type skill_icon_grid = dynamicgridbox - { - flipdirection = yes - datamodel_wrap = 6 - - item = { - skill_icon_label = {} - } - } - - type skill_sort_icon = button { - name = "skill_icon" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - using = tooltip_above - block "position" - { - position = { 0 0 } - } - block "icon" - { - frame = 1 - } - } - - - type strength_balance = hbox { - - block "StrengthBalanceVisible" - { - visible = "[GuiMilitaryStrength.ShouldShow]" - } - - icon = { - name = "icon_strength_balance" - texture = "gfx/interface/icons/icon_strength_balance.dds" - size = { 60 60 } - framesize = { 60 60 } - block "StrengthBalanceFrame" - { - frame = "[GuiMilitaryStrength.GetFrame]" - } - } - - widget = { - size = { 140 45 } - - background = { - using = Background_Area - name = "text_bg" - margin = { 15 5 } - } - - vbox = { - - vbox = { - hbox = { - spacing = 10 - text_single = { - name = "total_strength" - align = nobaseline - block "StrengthBalanceTotalStrength" - { - text = "STRENGTH_COMPARISON_TOTAL_STRENGTH" - } - } - - text_single = { - name = "number_of_allies" - align = nobaseline - default_format = "#high" - - block "StrengthBalanceAllies" - { - text = "STRENGTH_COMPARISON_ALLIES" - } - } - expand = {} - } - - hbox = { - text_single = { - name = "comparison_text" - align = nobaseline - text = "[GuiMilitaryStrength.GetRatioName]" - default_format = "#high" - } - expand = {} - } - } - } - } - - block "StrengthBalanceTooltip" - { - tooltip = "[GuiMilitaryStrength.GetRatioDescription]" - } - using = tooltip_se - } - - type button_expand_fold_out = button_expand - { - block "button_expand" - { - frame = "[BoolTo1And2( PdxGuiFoldOut.IsUnfolded )]" - } - block "onclick" - { - onclick = "[PdxGuiFoldOut.Toggle]" - } - } - - ### Brief: button_expandable_toggle_field - # Creates a field that governs the state of a collapsible widget. - # - # Use in a widget that a PdxGuiFoldOut set, by BindFoldOutContext or the Create_Resetting_Fold_Out template - # - # Has the following blocks: - # - # "onclick" - # All onclick events associated with the toggle field. Usage: - # Defaults to toggling the PdxGuiFoldOut context - # - # "button_expand" - # Additional attributes to give the expand button for frame selection. - # Defaults to setting the frame based on the PdxGuiFoldOut context - # - # "text" - # The text header for the field. Usage: - # text = SOME_LOC_KEY - # - type button_expandable_toggle_field = button_tertiary { - layoutpolicy_horizontal = expanding - - block "onclick" - { - onclick = "[PdxGuiFoldOut.Toggle]" - } - - hbox = { - margin = { 10 0 } - ignoreinvisible = yes - spacing = 5 - - button_expand_fold_out = { - block "foldout_button" {} - } - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline - alwaystransparent = yes - - block "text" {} - } - } - } - - type button_expandable_toggle_field_silk_road = button_tertiary { - layoutpolicy_horizontal = expanding - - block "onclick" - { - onclick = "[PdxGuiFoldOut.Toggle]" - } - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - margin = { 15 0 } - spacing = 5 - - button_expand_fold_out = { - block "foldout_button" {} - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - icon = { - texture = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds" - size = { 65 65 } - scale = 0.9 - } - } - - vbox = { - text_single = { - layoutpolicy_horizontal = growing - text = "[Building.GetName]" - align = nobaseline - max_width = 180 - } - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline - alwaystransparent = yes - max_width = 180 - - block "text" {} - } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = growing - datacontext = "[SituationSubRegion.GetCurrentPhase]" - text = "CURRENT_PHASE_IN_SUBREGION_HEADER" - align = right|nobaseline - multiline = yes - max_width = 180 - } - } - } - - type hbox_tab_buttons = hbox - { - visible = "[GreaterThan_int32( GetDataModelSize( PdxGuiTabs.GetTabItems ), '(int32)1' )]" - - layoutpolicy_horizontal = expanding - - datamodel = "[PdxGuiTabs.GetTabItems]" - item = { - button_tab = { - layoutpolicy_horizontal = expanding - - block "tab_name" - { - raw_text = "#D [PdxGuiTabItem.GetKey]#!" - } - - block "on_click" - { - } - - onclick = "[PdxGuiTabs.SetTab( PdxGuiTabItem.Self )]" - down = "[PdxGuiTabs.IsTabItemSet( PdxGuiTabItem.Self )]" - } - } - } - - ### DEBUG - type error_horse = container { - name = "debug_info_horse" - using = Animation_ShowHide_Quick - - button = { - name = "error_button" - visible = "[HasErrors]" - position = { 0 2 } - - using = Animation_ShowHide_Standard - - tooltip = "[ErrorTooltip]" - onclick = "[OpenErrorLog]" - onrightclick = "[ClearErrorLog]" - button_ignore = none - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - - texture = "gfx/interface/_debug/errorhoof.dds" - framesize = { 112 112 } - size = { 80 80 } - frame = "[GetErrorHoofFrame]" - - state = { - name = _show - start_sound = { - soundeffect = "event:/Error/Errorhof" - } - } - } - - icon = { - position = { 0 2 } - visible = "[GreaterThanOrEqualTo_int32( NumberOrErrors, '(int32)100000' )]" - alwaystransparent = yes - - texture = "gfx/interface/_debug/errorhoof_mad.dds" - framesize = { 112 112 } - size = { 80 80 } - frame = "[GetErrorHoofFrame]" - } - - flowcontainer = { - position = { 100 5 } - direction = vertical - ignoreinvisible = yes - spacing = 5 - - ## Error count - text_single = { - name = "error_text" - visible = "[HasErrors]" - - raw_text = "Errors: [NumberOrErrors]" - max_width = 300 - - using = Animation_ShowHide_Standard - - background = { - using = Text_Label_Background - shaderfile = "gfx/FX/pdxgui_default.shader" - margin = { 17 3 } - } - } - - ## Current FPS - text_single = { - name = "debug_current_fps" - visible = "[And( InDebugMode, GreaterThanOrEqualTo_float( GetCurrentFps, '(float)30' ) )]" - - raw_text = "FPS: [GetCurrentFps|0]" - max_width = 300 - - background = { - using = Text_Label_Background - margin = { 17 3 } - } - } - - ## Low FPS Warning - text_single = { - name = "low_fps_warning" - visible = "[LessThan_float( GetCurrentFps, '(float)30' )]" - - raw_text = "@warning_icon! Low FPS: [GetCurrentFps|0]" - raw_tooltip = "Current FPS is under 30!" - default_format = "#X" - - max_width = 300 - - background = { - using = Text_Label_Background - margin = { 17 3 } - } - } - } - } -} - -template Create_Resetting_Fold_Out -{ - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]" -} diff --git a/N3OW/gui/shared/popups.gui b/N3OW/gui/shared/popups.gui deleted file mode 100644 index b786581d..00000000 --- a/N3OW/gui/shared/popups.gui +++ /dev/null @@ -1,245 +0,0 @@ -types Popups -{ - type activity_pulse_action_popup_right = widget - { - name = "pulse_action_popup" - allow_outside = yes - layer = middle - size = { 750 124 } - - visible_at_creation = no - - state = { - name = activity_window_new_pulse_action - on_start = "[PdxGuiWidget.Show]" - } - - state = { - name = _show - next = activity_hide_activity_pulse_popup - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - duration = 1 - } - - state = { - name = activity_hide_activity_pulse_popup - delay = 5 - on_start = "[PdxGuiWidget.Hide]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - layoutpolicy_vertical = expanding - alwaystransparent = yes - - widget = { - size = { 26 124 } - - background = { - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_blue_bg_edge.dds" - spriteType = Corneredstretched - } - } - - expand = {} - - block "bg_parchment" { - background = { - texture = "gfx/interface/hud/toast_blue_bg.dds" - spriteType = Corneredstretched - spriteborder = { 0 6 } - margin_left = -10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - blend_mode = alphamultiply - spriteborder_right = 30 - spritetype = corneredtiled - } - } - } - - hbox = { - name = "toast_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 40 - margin_left = 10 - margin_bottom = 5 - spacing = 10 - - vbox = { - name ="portrait_left" - layoutpolicy_vertical = expanding - - expand = {} - - portrait_head_small = { - name = "portrait_left" - datacontext = "[ActivityPulseEffect.GetLeft.Char]" - visible = "[Character.IsValid]" - - blockoverride "coa" {} - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "imprisonment" {} - blockoverride "player_overlay" {} - blockoverride "grayscale"{} - blockoverride "TODO_debug_info" {} - } - - coa_title_medium = { - name = "title_left" - datacontext = "[ActivityPulseEffect.GetLeft.Title]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_left" - datacontext = "[ActivityPulseEffect.GetLeft.Artifact]" - visible = "[Artifact.IsValid]" - } - - expand = {} - } - - expand = {} - - vbox = { - name = "message" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 3 - margin_bottom = 10 - - hbox = { - name = "title" - spacing = 5 - - icon = { - name = "action_icon" - datacontext = "[Activity.GetLastWeeklyPulseAction]" - size = { 40 40 } - texture = "[ActivityPulseAction.GetIcon]" - using = tooltip_ws - } - - text_single = { - name = "action_title" - text = "[ActivityPulseEffect.GetTitle]" - align = nobaseline - fontsize_min = 10 - max_width = 420 - - using = Font_Size_Medium - using = Font_Type_Flavor - } - - background = { - using = Toast_Header - using = Color_Blue - } - } - - expand = {} - - text_multi = { - name = "effects" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = [ActivityPulseEffect.GetEffectText] - align = center|nobaseline - autoresize = yes - default_format = "#light_background" - fontsize_min = 10 - minimumsize = { 420 0 } - maximumsize = { 420 70 } - using = Text_Light_Background_Overrides - } - - expand = {} - } - - expand = {} - - vbox = { - name = "portrait_right" - layoutpolicy_vertical = expanding - - expand = {} - - portrait_head_small = { - name = "portrait_right" - datacontext = "[ActivityPulseEffect.GetRight.Char]" - visible = "[Character.IsValid]" - - blockoverride "coa" {} - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "imprisonment" {} - blockoverride "player_overlay" {} - blockoverride "grayscale"{} - blockoverride "TODO_debug_info" {} - } - - coa_title_medium = { - name = "title_right" - datacontext = "[ActivityPulseEffect.GetRight.Title]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[ActivityPulseEffect.GetRight.Artifact]" - visible = "[Artifact.IsValid]" - } - - expand = {} - } - } - } - } - } - - type activity_pulse_action_popup_left = activity_pulse_action_popup_right - { - blockoverride "bg_parchment" { - background = { - texture = "gfx/interface/hud/toast_title_bg_neutral.dds" - spriteType = Corneredstretched - spriteborder = { 0 6 } - margin_left = -11 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - } - } - - widget = { - size = { 24 12 } - #widgetanchor = left|vcenter - #parentanchor = right|vcenter - - background = { - layoutpolicy_vertical = expanding - texture = "gfx/interface/hud/toast_blue_bg_edge.dds" - mirror = horizontal - spriteType = Corneredstretched - spriteborder = { 5 20 } - } - } - } - } -} diff --git a/N3OW/gui/shared/portraits.gui b/N3OW/gui/shared/portraits.gui deleted file mode 100644 index a4e0bb71..00000000 --- a/N3OW/gui/shared/portraits.gui +++ /dev/null @@ -1,3294 +0,0 @@ -###################################################### -################## PORTRAIT TYPES #################### -###################################################### - -types PortraitTypes -{ - - #################################### - ######### MAIN PORTRAITS ########### - #################################### - - type widget_portrait_frame = widget { - size = { 100% 100% } - - background = { - visible = "[Not( Character.IsDiarchOf( Character.GetLiege ) )]" - texture = "gfx/portraits/portrait_rank.dds" - - margin_top = -4 - margin_bottom = -3 - margin_right = -4 - margin_left = -3 - - framesize = { 196 194 } - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - } - - background = { - visible = "[Character.IsDiarchOf( Character.GetLiege )]" - texture = "gfx/portraits/portrait_rank_regency.dds" - - margin_top = 6 - margin_bottom = -3 - margin_right = -4 - margin_left = -3 - - framesize = { 196 210 } - frame = "[Character.GetPrimaryTitle.GetTierFrame]" - } - } - - # The standard portrait types. CoA, opinion and status icons are included by default; use blockoverride to disable them. - - ## Extra small head portrait. These are smaller than we would like, so only use if you really, really have to. - type portrait_head_small = widget { - size = { 85 90 } - - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - background = { - block "empty_character" {} - visible = "[Not( Character.HasLandedTitles )]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.4 - } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - - block "empty_character" {} - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 80 100 } - using = portrait_base - - block "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_head', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - mask = "gfx/portraits/portrait_mask_head_small.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 80 88 } - parentanchor = center - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_head.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_head_small.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - widget_portrait_frame = {} - - block "coa" { - coa_realm_tiny = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - } - - widget = { - size = { 100% 100% } - visible = "[Not( Character.HasLandedTitles )]" - block "empty_character" {} - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.4 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[Character.IsHovered]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - - flowcontainer = { - parentanchor = bottom|right - ignoreinvisible = yes - direction = vertical - margin = { 4 0 } - margin_bottom = 5 - - portrait_status_icons_small = { - parentanchor = right - } - - block "opinion_box" - { - portrait_opinion_small = { - name = "tutorial_highlight_character_view_opinion_heir" - } - } - } - - - # Portrait unknown glow - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - ### Portrait used in the relationship tab - # Has extra relationship icon from the view of the current character (not necessarily the player) - type portrait_head_small_relationship = widget { - size = { 85 90 } - - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - background = { - block "empty_character" {} - visible = "[Not( Character.HasLandedTitles )]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.4 - } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - - block "empty_character" {} - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 80 100 } - using = portrait_base - - block "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_head', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - mask = "gfx/portraits/portrait_mask_head_small.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 80 88 } - parentanchor = bottom - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_head.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_head_small.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - widget_portrait_frame = {} - - block "coa" { - coa_realm_tiny = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - } - - widget = { - size = { 100% 100% } - visible = "[Not( Character.HasLandedTitles )]" - block "empty_character" {} - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.4 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[Character.IsHovered]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - - flowcontainer = { - visible = "[Character.IsValid]" - ignoreinvisible = yes - parentanchor = top|right - - block "scripted_relation_status_icons" - { - using = Portrait_Relation_Icons_Character_Window - } - - margin_right = 2 - - blockoverride "icon_size" - { - size = { 24 24 } - } - - background = { - using = Background_Area_Dark - margin = { 2 2 } - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - } - - widget = { - size = { 85 68 } - scissor = yes - parentanchor = bottom - - flowcontainer = { - parentanchor = bottom|right - ignoreinvisible = yes - direction = vertical - - margin = { 4 0 } - margin_bottom = 4 - - flowcontainer = { - visible = "[Character.IsValid]" - ignoreinvisible = yes - direction = vertical - parentanchor = right - spacing = 1 - - margin_right = 2 - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - - # sorted by priority, highest prio at the bottom - block "status_icons" { - - icon = { - name = "relation_icon" - visible = "[LessThan_int32(Character.GetPlayerDynastyRelationFrame, '(int32)9')]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/relation_small.dds" - framesize = { 28 28 } - frame = "[Character.GetPlayerDynastyRelationFrame]" - tooltip = "[Character.GetPlayerDynastyRelationTooltip]" - } - - icon = { - name = "incapable" - visible = "[Character.IsIncapable]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/incapable_small.dds" - tooltip = "trait_incapable" - } - - block "inspiration_status_icons" - { - has_inspiration_status_icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/inspiration_small.dds" - } - - has_completed_inspiration_status_icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/inspiration_complete_small.dds" - } - } - - icon = { - name = "can_be_punished" - visible = "[Character.CanBePunished]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/punishment_small.dds" - tooltip = "[Character.PunishmentTooltip]" - } - - icon = { - name = "hook" - visible = "[Character.PlayerHasHooksOrHookableSecrets]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = "[Character.GetHookOrHookableSecretsFrame]" - tooltip = "[Character.HookTooltip]" - } - - icon = { - name = "powerful_vassal" - visible = "[Character.IsMyPowerfulVassal]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/powerful_vassal_small.dds" - framesize = { 28 28 } - frame = "[Character.GetPowerfulVassalFrame]" - tooltip = "[Character.GetPowerfulVassalTooltip]" - } - - icon = { - name = "tributary" - datacontext = "[Character.GetTributaryContract]" - visible = "[Character.IsTributaryOf(GetPlayer)]" - size = { 14 14 } - - texture = "[Character.GetTributaryContract.GetPortraitIconSmall]" - tooltip = "FRAME_RELATION_TRIBUTARY" - } - - icon = { - name = "obedient_to_someone_else" - visible = "[And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Character.IsObedientTo(Character.GetOverlord)))]" - - size = { 14 14 } - enabled = no - texture = "gfx/interface/icons/portraits/obedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_me" - visible = "[And(Character.UsesObedience,And(Character.GetOverlord.IsLocalPlayer, And(Not(Character.IsObedientTo(GetPlayer)), Not(Character.IsPlayer))))]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/disobedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_someone_else" - visible = "[And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Not(Character.IsObedientTo(Character.GetOverlord))))]" - size = { 14 14 } - enabled = no - texture = "gfx/interface/icons/portraits/disobedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - flowcontainer = { - visible = "[And(HasDlcFeature( 'all_under_heaven' ), Character.ShouldShowMovementPower)]" - ignoreinvisible = yes - direction = vertical - datacontext = "[Character]" - datacontext = "[GetSituation('dynastic_cycle')]" - - icon = { - name = "advancement_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('advancement_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_advance_small.dds" - - tooltip = "FRAME_ADVANCEMENT_MOVEMENT" - } - - icon = { - name = "expansion_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('expansion_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_expand_small.dds" - - tooltip = "FRAME_EXPANSION_MOVEMENT" - } - - icon = { - name = "conservative_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('conservative_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_anti_small.dds" - - tooltip = "FRAME_CONSERVATIVE_MOVEMENT" - } - - icon = { - name = "pro_hegemon_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('pro_hegemon_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_pro_small.dds" - - tooltip = "FRAME_PRO_HEGEMON_MOVEMENT" - } - - icon = { - name = "undecided_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('undecided_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_unaligned_small.dds" - - tooltip = "FRAME_UNDECIDED_MOVEMENT" - } - } - - icon = { - name = "unpredictable" - visible = "[Character.IsOtherPlayer]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/unpredictable.dds" - - tooltip = "PLAYER_OBEDIENCE_UNPREDICTABLE" - } - - icon = { - name = "head_icon" - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)yes'), '(int32)9')]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/relation_small.dds" - framesize = { 28 28 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)yes')]" - tooltip = "[Character.GetDynastyHeadRelationTooltip]" - } - - icon = { - name = "playable_icon" - visible = "[ObjectsEqual( Character.Self, GetPlayer.GetPlayerHeir )]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/heir_small.dds" - tooltip = "[Character.GetPlayableFrameTooltip]" - } - } - - block "dead_icon" - { - icon = { - name = "is_dead" - visible = "[Character.IsDeadAndValid]" - size = { 14 14 } - - texture = "[Character.GetDeathReasonIcon]" - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - } - - block "opinion_box" - { - portrait_opinion_small = { - name = "tutorial_highlight_character_view_opinion_heir" - } - } - } - } - - - # Portrait unknown glow - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - - block "glow_visible" - { - visible = "[Not(Character.IsValid)]" - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - type portrait_head_small_legend = widget { - size = { 95 120 } - - background = { - texture = "gfx/interface/window_legend_chronicle/marginalia_portrait_gold_bg.dds" - } - - portrait_button = { - datacontext = "[Legend.GetProtagonist]" - parentanchor = bottom|hcenter - size = { 90 120 } - using = portrait_base - - shaderfile = "gfx/FX/gui_painterly_portrait.shader" - pop_out = yes # Painterly shader override for `pop_out` property, it now means "add outline" - pop_out_v = 1.2 # Painterly shader override for `pop_out_v` property, it now means "outline width" - grayscale = no # Dead people should be painted non-gray - - block "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_head', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - mask = "gfx/portraits/portrait_mask_head.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 80 88 } - parentanchor = center - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_head.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_head_small.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - icon = { - size = { 95 120 } - texture = "[GetIllustration( 'legend_chronicle_portrait_small_frame' ).GetTexture( Legend.MakeScope )]" - } - - block "coa" { - coa_realm_tiny = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - } - - widget = { - size = { 100% 100% } - visible = "[Not( Character.HasLandedTitles )]" - block "empty_character" {} - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.4 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[Character.IsHovered]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - - flowcontainer = { - parentanchor = bottom|right - ignoreinvisible = yes - direction = vertical - margin = { 4 0 } - margin_bottom = 5 - - portrait_status_icons_small = { - parentanchor = right - } - - block "opinion_box" - { - portrait_opinion_small = { - name = "tutorial_highlight_character_view_opinion_heir" - } - } - } - # Portrait unknown glow - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - visible = "[Not(Character.IsValid)]" - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - ## Standard head portrait - type portrait_head = widget { - size = { 110 120 } - - background = { - using = Background_Area_Solid - } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - - block "empty_character" {} - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 100 125 } - using = portrait_base - - block "portrait_texture" { - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_head', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - mask = "gfx/portraits/portrait_mask_head.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100 118 } - parentanchor = bottom - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_head.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_head.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - widget_portrait_frame = {} - - portrait_status_icons_small = { - parentanchor = bottom|right - position = { -7 -8 } - } - - block "coa" { - coa_realm_tiny = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 3 -2 } - } - } - - block "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 1 -4 } - } - } - - widget = { - visible = "[Not( Character.HasLandedTitles )]" - size = { 100% 100%} - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.5 - } - - background = { - visible = "[Character.IsHovered]" - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - - - #portrait unknown glow - button = { - name = "portrait_unknown_head_glow" - parentanchor = center - position = { 3 -7 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 98 125 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - visible = "[Not(Character.IsValid)]" - } - - block "glow_flip" {} - - block "onclick" {} - - } - } - - ## Standard portrait from shoulders up - type portrait_shoulders = widget { - - size = { 125 160 } - - widget = { - size = { 100% 100% } - block "portrait_glows" - { - using = Portrait_Background_Glows - } - } - - portrait_button = { - parentanchor = bottom|hcenter - - block "portrait_size" - { - size = { 145 175 } - } - using = portrait_base - - block "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_shoulders', 'camera_shoulders', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - mask = "gfx/portraits/portrait_mask_shoulders.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_shoulders.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_shoulders.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - block "portrait_status_icons" { - portrait_status_icons = { - parentanchor = bottom|right - position = { 0 -3 } - scale = 0.85 - - background = { - using = Background_Area_Dark - margin = { 2 3 } - alpha = 0.8 - } - } - } - - block "coa" { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -5 3 } - } - } - - block "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 0 -2 } - } - } - - #portrait unknown glow - button = { - position = { -8 -14 } - size = { 141 174 } - texture = "gfx/portraits/unknown_portraits/button_unknown_shoulders.dds" - framesize = { 471 589 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - upframe = 1 - overframe = 2 - - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - ## Standard torso from waist up - type portrait_torso = widget { - size = { 165 200 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 195 225 } - using = portrait_base - - block "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - block "portrait_mask" - { - mask = "gfx/portraits/portrait_mask_torso.dds" - } - - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_torso.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_torso.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - block "portrait_status_icons" { - portrait_status_icons = { - parentanchor = bottom|left - position = { 43 -6 } - scale = 0.85 - - background = { - using = Background_Area_Dark - margin = { 2 3 } - alpha = 0.8 - } - } - } - - block "coa" { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -2 1 } - } - } - - block "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 4 -2 } - } - } - - #portrait unknown glow - button = { - name = "portrait_unknown_torso_glow" - parentanchor = center - position = { 0 -12 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown.dds" - size = { 195 225 } - framesize = { 554 780 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - ## Standard full body portrait - type portrait_body = widget { - size = { 210 300 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 240 330 } - using = portrait_base - - block "portrait_texture" { - portrait_texture = "[Character.GetPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - block "mask" { - mask = "gfx/portraits/portrait_mask_body.dds" - } - effectname = "NoHighlight" - - block "prison" { - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_body.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - block "portrait_button" {} - } - - block "portrait_icons" { - portrait_status_icons = { - parentanchor = bottom|left - position = { 60 -5 } - scale = 0.85 - - background = { - using = Background_Area_Dark - margin = { 3 3 } - alpha = 0.8 - } - } - } - - block "coa" { - coa_realm_medium_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -2 4 } - } - } - - block "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - block "position_portrait_opinion_body" { - position = { 0 -2 } - } - } - } - - #portrait unknown glow - button = { - name = "portrait_unknown_body_glow" - parentanchor = center - position = { 0 -15 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - size = { 240 330 } - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - - } - - block "glow_flip" {} - - block "onclick" {} - - } - } - - ## Standard full body portrait - type portrait_body_large = widget { - size = { 378 540 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 432 594 } - using = portrait_base - - block "portrait_texture" { - portrait_texture = "[Character.GetPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - block "mask" { - mask = "gfx/portraits/portrait_mask_body.dds" - } - effectname = "NoHighlight" - - block "prison" { - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_body.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - block "portrait_button" {} - } - - block "portrait_icons" { - portrait_status_icons = { - parentanchor = bottom|left - position = { 64 -4 } - scale = 0.85 - - background = { - using = Background_Area_Dark - margin = { 3 3 } - alpha = 0.8 - } - } - } - - block "coa" { - coa_realm_medium_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -2 4 } - } - } - - block "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - block "position_portrait_opinion_body" { - position = { 0 -2 } - } - } - } - - #portrait unknown glow - button = { - name = "portrait_unknown_body_glow" - parentanchor = center - position = { 0 -15 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - size = { 240 330 } - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - - } - - block "glow_flip" {} - - block "onclick" {} - - } - } - - #################################### - ######## SPECIAL PORTRAITS ######### - #################################### - - type portrait_map = widget { - size = { 85 90 } - - portrait_button = { - visible = "[Not(Character.IsImprisoned)]" - parentanchor = bottom|hcenter - size = { 80 100 } - using = portrait_base - portrait_texture = "[Character.GetPortrait('environment_head', 'camera_head', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_head.dds" - effectname = "NoHighlight" - - block "portrait_button" {} - } - } - - type portrait_character_view_main = margin_widget { - size = { 300 300 } - margin = { 3 3 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - blockoverride "glow_local_player" {} - blockoverride "glow_selected" {} - blockoverride "grayscale" {} - - portrait_button = { - size = { 380 421 } - position = { -30 10 } - parentanchor = bottom|hcenter - using = portrait_base - visible = "[Not( And( Character.GetGovernment.IsType( 'herder_government' ), Character.HasLandedTitles) )]" - - portrait_texture = "[Character.GetAnimatedPortrait(Illustration.GetEnvironment(Character.Self), 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_character_view.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - position = { 0 20 } - - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_character_view.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_character_view.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - - portrait_button = { - size = { 1000 421 } - position = { -30 10 } - parentanchor = bottom|hcenter - using = portrait_base - tooltip_offset = { -310 0 } - portrait_texture = "[Character.GetAnimatedPortrait(Illustration.GetEnvironment(Character.Self), 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_character_view.dds" - effectname = "NoHighlight" - visible = "[And(Character.GetGovernment.IsType( 'herder_government' ), Character.HasLandedTitles)]" - - block "prison_bars" { - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - position = { 0 20 } - - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_character_view.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_character_view.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - block "portrait_button" {} - } - - portrait_status_icons = { - parentanchor = bottom|right - position = { -60 0 } - - block "portrait_status_icons" {} - } - - block "opinion_box" - { - portrait_opinion = { - position = { -20 -5 } - parentanchor = bottom|hcenter - - block "portrait_opinion" {} - } - } - } - - type portrait_character_view_spouse = margin_widget { - size = { 300 300 } - margin = { 3 3 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - size = { 350 338 } - position = { 0 10 } - parentanchor = bottom|hcenter - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait(Illustration.GetEnvironment( Character.Self ), 'camera_character_view_spouse', Select_CString( Character.IsDiarchOf( Character.GetLiege ), 'chancellor', 'idle' ), PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_character_view.dds" - effectname = "NoHighlight" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - position = { 0 20 } - - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_character_view.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_character_view.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - } - - type portrait_event = widget { - - widget = { - size = { 500 490 } - parentanchor = bottom - - icon = { - name = "hovered" - parentanchor = bottom|hcenter - size = { 70% 95% } - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - block "highlight_visible" { - visible = no - } - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - portrait_button = { - size = { 500 558 } - using = portrait_base - parentanchor = hcenter|bottom - - portrait_texture = "[Character.GetAnimatedPortrait('environment_event_standard', 'environment_event_standard', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_event.dds" - effectname = "NoHighlight" - - block "portrait_button" {} - } - } - } - - type portrait_event_duel = widget { - - widget = { - size = { 930 490 } - parentanchor = bottom - - icon = { - name = "hovered" - parentanchor = bottom|hcenter - size = { 40% 95% } - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - block "highlight_visible" { - visible = no - } - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - portrait_button = { - size = { 930 490 } - using = portrait_base - parentanchor = hcenter|bottom - - portrait_texture = "[Character.GetAnimatedPortrait('environment_event_standard', 'environment_event_standard', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_event.dds" - effectname = "NoHighlight" - - block "portrait_button" {} - } - } - } - - type portrait_event_tournament = widget { - - widget = { - size = { 500 490 } - parentanchor = bottom - - icon = { - name = "hovered" - parentanchor = bottom|hcenter - size = { 70% 95% } - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - block "highlight_visible" { - visible = no - } - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - portrait_button = { - size = { 1150 900 } - using = portrait_base - parentanchor = hcenter|bottom - - portrait_texture = "[Character.GetAnimatedPortrait('environment_event_standard', 'environment_event_standard', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_event.dds" - effectname = "NoHighlight" - - block "portrait_button" {} - } - - icon = { - visible = "[Character.IsDeadAndValid]" - parentanchor = bottom|right - position = { -80 -30 } - size = { 30 30 } - - texture = "[Character.GetDeathReasonIcon]" - - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - } - - type portrait_event_small = widget { - size = { 125 160 } - - icon = { - name = "hovered" - parentanchor = bottom|hcenter - size = { 100% 100% } - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - block "highlight_visible" { - visible = no - } - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - portrait_shoulders = { - size = { 100% 100% } - blockoverride "portrait_size" - { - size = { 100% 100% } - } - - blockoverride "portrait_glows" {} - } - } - - type portrait_event_tiny = widget { - - size = { 85 90 } - - icon = { - name = "hovered" - parentanchor = bottom|hcenter - size = { 100% 100% } - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - block "highlight_visible" { - visible = no - } - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - portrait_shoulders = { - size = { 100% 100% } - blockoverride "portrait_size" - { - size = { 100% 100% } - } - blockoverride "portrait_glows" {} - blockoverride "coa" {} - } - } - - type portrait_scheme_hud = widget { - size = { 90 112 } - - portrait_button = { - alwaystransparent = yes - parentanchor = center - position = { 0 -9 } - size = { 90 112 } - using = portrait_base - - portrait_texture = "[Character.GetPortrait('environment_shoulders', 'camera_scheme_widget_microscopic', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - - mask = "gfx/portraits/scheme_hud_portrait_mask.dds" - effectname = "NoHighlight" - - tooltip_visible = no - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_shoulders.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_shoulders.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - block "portrait_button" {} - } - } - - type portrait_council = widget { - size = { 260 285 } - - portrait_button = { - block "portrait_size" - { - size = { 260 285 } - } - parentanchor = bottom|hcenter - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait('environment_council', 'camera_council', CouncilPositionType.GetPortraitAnimation, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - - block "mask" { - mask = "gfx/portraits/portrait_mask_council.dds" - } - } - - #portrait unknown glow - button = { - name = "portrait_unknown_council_glow" - visible = "[Not(Character.IsValid)]" - parentanchor = center - position = { 2 -37 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - size = { 239 312 } - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - - visible = "[Not(Character.IsValid)]" - - } - - block "onclick" {} - } - } - - type portrait_regency = widget { - size = { 260 285 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - position = { 0 4 } - block "portrait_size" - { - size = { 260 320 } - } - - parentanchor = bottom|hcenter - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait(Illustration.GetEnvironment(Character.Self), 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_torso.dds" - effectname = "NoHighlight" - - block "mask" { - mask = "gfx/portraits/portrait_mask_council.dds" - } - } - - portrait_status_icons = { - parentanchor = bottom|right - position = { -54 -10 } - } - - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|right - position = { -4 -4 } - } - - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 0 -10 } - } - } - - type portrait_war_overview = margin_widget { - size = { 240 300 } - allow_outside = yes - - margin = { 3 3 } - - widget = { - using = Portrait_Background_Glows - size = { 320 380 } - - alwaystransparent = yes - parentanchor = bottom|hcenter - } - - - portrait_button = { - size = { 420 632 } - parentanchor = bottom|hcenter - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait('environment_war_overview', 'camera_war_overview', Select_CString(WarParticipantItem.IsAttacker, 'war_attacker', 'war_defender'), PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_torso.dds" - effectname = "NoHighlight" - - block "portrait_button" {} - - block "portrait_transformation" - { - portrait_scale = { 1 1 } - } - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 80% } - position = { 30 160 } - - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_character_view.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### Bottom left HUD portrait - type portrait_hud = portrait_button { - name = "tutorial_highlight_bottom_left_portrait_button" - visible = "[Not(GetVariableSystem.Exists( 'lifestyle_open' ))]" - size = { 350 350 } - - gfxtype = portraitbuttongfx - shaderfile = "gfx/FX/jomini/gui_portrait.shader" - effectname = "NoHighlight" - - state = { - name = _mouse_enter - on_start = "[Character.OnMouseEnter]" - scale = 1.35 - using = Animation_Curve_Default - duration = 0.05 - } - - state = { - name = _mouse_leave - on_start = "[Character.OnMouseLeave]" - using = Animation_Curve_Default - duration = 0.05 - scale = 1.3 - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_portrait_select" - } - } - - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - - clicksound = "event:/SFX/UI/Character/sfx_ui_character_portrait_select" - oversound = "event:/SFX/UI/Character/sfx_ui_character_portrait_pointer_over" - - portrait_texture = "[Character.GetAnimatedPortrait('environment_hud', 'camera_hud', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_blank.dds" - - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_shoulders.dds" - position = { 25 0 } - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_head.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - rotate_uv = 180 - } - } - - using = tooltip_es - # tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - tooltip_visible = no - - tooltipwidget = { - cooltip_type = { - blockoverride "interaction_info" - { - text = "CHARACTER_TOOLTIP_INSTRUCTION" - } - } - } - - tooltip_offset = { -10 0 } - tooltip_verticalbehavior = slide - tooltip_horizontalbehavior = mirror - } - - ### Lifestyles portrait - type portrait_lifestyles = portrait_button { - size = { 650 1000 } - - effectname = "NoHighlight" - tooltip_visible = no - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_lifestyles', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - - state = { - name = _show - using = Animation_Curve_Default - - duration = 0.15 - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - - duration = 0.15 - alpha = 0 - } - - background = { - name = "hovered" - visible = "[Character.IsHovered]" - using = Background_Portrait_Glow - color = { 0.9 0.8 0.6 0.6 } - } - } - - ### Intent selection portrait - type portrait_intent_selection = portrait_button { - size = { 450 500 } - - effectname = "NoHighlight" - tooltip_visible = no - - using = portrait_base - - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_lifestyles', ActivityIntent.GetAnimation( Character.Self ), PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - - state = { - name = _show - using = Animation_Curve_Default - - duration = 0.15 - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - - duration = 0.15 - alpha = 0 - } - - background = { - name = "hovered" - visible = "[Character.IsHovered]" - using = Background_Portrait_Glow - color = { 0.9 0.8 0.6 0.6 } - } - } - - ### Bottom left HUD portrait for the activity planner - type portrait_activity_planner = portrait_button { - size = { 250 500 } - - gfxtype = portraitbuttongfx - shaderfile = "gfx/FX/jomini/gui_portrait.shader" - effectname = "NoHighlight" - - button_ignore = both - - portrait_texture = "[Character.GetAnimatedPortrait('environment_hud', 'camera_event_left', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_blank.dds" - } - - ### Bottom left HUD portrait for the travel planner (might merge with the activity planner) - type portrait_travel_planner = portrait_button { - size = { 250 500 } - - gfxtype = portraitbuttongfx - shaderfile = "gfx/FX/jomini/gui_portrait.shader" - effectname = "NoHighlight" - - button_ignore = both - - portrait_texture = "[Character.GetAnimatedPortrait('environment_hud', 'camera_event_left', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_blank.dds" - } - - type portrait_activity_locale_window = widget { - size = { 210 300 } - - widget = { - size = { 100% 100% } - using = Portrait_Background_Glows - } - - portrait_button = { - parentanchor = bottom|hcenter - size = { 240 330 } - using = portrait_base - - block "portrait_texture" { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - block "mask" { - mask = "gfx/portraits/portrait_mask_body.dds" - } - effectname = "NoHighlight" - - block "prison" { - highlight_icon = { - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 100% 100% } - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_body.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - block "portrait_button" {} - } - - block "coa" { - coa_realm_medium_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { -2 4 } - } - } - - #portrait unknown glow - button = { - name = "portrait_unknown_body_glow" - parentanchor = center - position = { 0 -15 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - size = { 240 330 } - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - block "glow_visible" { - visible = "[Not(Character.IsValid)]" - } - - block "glow_flip" {} - - block "onclick" {} - } - } - - #################################### - ########### ACCESSORIES ############ - #################################### - - ## Opinion box for portraits - type portrait_opinion = flowcontainer { - name = "tutorial_highlight_portrait_opinion" - visible = "[And(Character.IsValid, And(Character.IsAlive, Not(Character.IsLocalPlayer)))]" - ignoreinvisible = yes - - background = { - name = "portrait_opinion_bg" - texture = "gfx/interface/component_tiles/solid_black_label.dds" - spritetype = Corneredtiled - spriteborder = { 20 20 } - margin = { 3 1 } - texture_density = 2 - } - - icon = { - block "dread_logic" { - visible = "[Character.ShouldShowDreadEffectIcon]" - frame = "[Character.GetPlayerDreadEffectIconFrame]" - tooltip = "[Character.GetPlayerDreadEffectTooltip]" - } - name = "dread" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/dread_values.dds" - framesize = { 40 40 } - } - - icon = { - name = "historical_info_widget" - visible = "[GreaterThan_CFixedPoint( Character.MakeScope.Var('show_historical_gui').GetValue, '(CFixedPoint)0' )]" - size = { 20 20 } - texture = "gfx/interface/icons/historical_character.dds" - tooltip = "HISTORICAL_CHARACTER_TOOLTIP" - } - - text_single = { - name = "tutorial_highlight_character_view_opinion" - visible = "[Character.IsValid]" - max_width = 45 - align = nobaseline - margin = { 3 0 } - tooltipwidget = character_opinion_tooltip - using = tooltip_es - default_format = "#true_white" - - block "opinion_text" { - text = "[Character.GetOpinionOf( GetPlayer )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( GetPlayer )]" - } - } - } - - type portrait_opinion_small = flowcontainer { - #name = "tutorial_highlight_portrait_opinion" - visible = "[And(Character.IsValid, And(Character.IsAlive, Not(Character.IsLocalPlayer)))]" - ignoreinvisible = yes - margin_right = 2 - - background = { - name = "portrait_opinion_bg" - texture = "gfx/interface/component_tiles/solid_black_label.dds" - spritetype = Corneredtiled - spriteborder = { 20 20 } - margin = { 2 2 } - texture_density = 2 - } - - icon = { - name = "dread" - visible = "[Character.ShouldShowDreadEffectIcon]" - size = { 16 16 } - texture = "gfx/interface/icons/portraits/dread_values.dds" - framesize = { 40 40 } - frame = "[Character.GetPlayerDreadEffectIconFrame]" - tooltip = "[Character.GetPlayerDreadEffectTooltip]" - } - - text_single = { - visible = "[Character.IsValid]" - max_width = 45 - align = nobaseline - fontsize = 13 - margin = { 3 0 } - - tooltipwidget = character_opinion_tooltip - using = tooltip_es - default_format = "#true_white" - - block "opinion_text" { - text = "[Character.GetOpinionOf( GetPlayer )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( GetPlayer )]" - } - } - } - - type has_inspiration_status_icon = icon - { - name = "has_inspiration" - visible = "[Character.HasInspiration]" - texture = "gfx/interface/icons/portraits/inspiration.dds" - tooltip = "CHARACTER_HAS_INSPIRATION_TOOLTIP" - } - - type has_completed_inspiration_status_icon = icon - { - name = "has_completed_inspiration" - visible = "[And( Character.HasCompletedAnInspiration, Not( Character.HasInspiration ) )]" # Has an inspiration takes priority - texture = "gfx/interface/icons/portraits/inspiration_complete.dds" - tooltip = "CHARACTER_HAS_COMPLETED_AN_INSPIRATION_TOOLTIP" - } - - ## Status icons, shown in the bottom right on portraits - type portrait_status_icons_small = widget { - size = { 16 60 } - scissor = yes - - flowcontainer = { - visible = "[Character.IsValid]" - ignoreinvisible = yes - direction = vertical - parentanchor = bottom - spacing = 1 - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - - # sorted by priority, highest prio at the bottom - block "status_icons" { - - block "scripted_relation_status_icons" - { - using = Portrait_Relation_Icons_Small - } - - icon = { - name = "relation_icon" - visible = "[LessThan_int32(Character.GetPlayerDynastyRelationFrame, '(int32)9')]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/relation_small.dds" - framesize = { 28 28 } - frame = "[Character.GetPlayerDynastyRelationFrame]" - tooltip = "[Character.GetPlayerDynastyRelationTooltip]" - } - - icon = { - name = "hostage_icon" - visible = "[Character.IsHostage]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/hostage_small.dds" - tooltip = "[Character.GetHostageTooltip]" - } - - icon = { - name = "traveling_icon" - visible = "[And(Character.IsTraveling, Character.GetTravelPlan.IsInTransit)]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/travel_small.dds" - tooltip = "CHARACTER_TRAVELING_TOOLTIP" - } - - icon = { - name = "incapable" - visible = "[Character.IsIncapable]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/incapable_small.dds" - tooltip = "CHARACTER_INCAPABLE_TOOLTIP" - } - - block "inspiration_status_icons" - { - has_inspiration_status_icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/inspiration_small.dds" - } - - has_completed_inspiration_status_icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/inspiration_complete_small.dds" - } - } - - icon = { - name = "can_be_punished" - visible = "[Character.CanBePunished]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/punishment_small.dds" - tooltip = "[Character.PunishmentTooltip]" - } - - icon = { - name = "hook" - visible = "[Character.PlayerHasHooksOrHookableSecrets]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = "[Character.GetHookOrHookableSecretsFrame]" - tooltip = "[Character.HookTooltip]" - } - - icon = { - name = "powerful_vassal" - visible = "[Character.IsMyPowerfulVassal]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/powerful_vassal_small.dds" - framesize = { 28 28 } - frame = "[Character.GetPowerfulVassalFrame]" - tooltip = "[Character.GetPowerfulVassalTooltip]" - } - - icon = { - name = "tributary" - datacontext = "[Character.GetTributaryContract]" - visible = "[Character.IsTributaryOf(GetPlayer)]" - size = { 14 14 } - - texture = "[Character.GetTributaryContract.GetPortraitIconSmall]" - tooltip = "FRAME_RELATION_TRIBUTARY" - } - - icon = { - name = "obedient_to_me" - visible = "[And(Character.UsesObedience,And(Character.GetOverlord.IsLocalPlayer, And(Character.IsObedientTo(GetPlayer), Not(Character.IsPlayer))))]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/obedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "obedient_to_someone_else" - visible = "[And(Not(Character.IsPlayer),And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Character.IsObedientTo(Character.GetOverlord))))]" - - size = { 14 14 } - enabled = no - texture = "gfx/interface/icons/portraits/obedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_me" - visible = "[And(Character.UsesObedience,And(Character.GetOverlord.IsLocalPlayer, And(Not(Character.IsObedientTo(GetPlayer)), Not(Character.IsPlayer))))]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/disobedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_someone_else" - visible = "[And( Not(Character.IsPlayer), And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Not(Character.IsObedientTo(Character.GetOverlord)))))]" - size = { 14 14 } - enabled = no - texture = "gfx/interface/icons/portraits/disobedient_small.dds" - tooltipwidget = widget_obedience_tooltip - } - - flowcontainer = { - visible = "[And(HasDlcFeature( 'all_under_heaven' ), Character.ShouldShowMovementPower)]" - ignoreinvisible = yes - direction = vertical - datacontext = "[Character]" - datacontext = "[GetSituation('dynastic_cycle')]" - - icon = { - name = "advancement_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('advancement_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_advance_small.dds" - - tooltip = "FRAME_ADVANCEMENT_MOVEMENT" - } - - icon = { - name = "expansion_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('expansion_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_expand_small.dds" - - tooltip = "FRAME_EXPANSION_MOVEMENT" - } - - icon = { - name = "conservative_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('conservative_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_anti_small.dds" - - tooltip = "FRAME_CONSERVATIVE_MOVEMENT" - } - - icon = { - name = "pro_hegemon_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('pro_hegemon_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_pro_small.dds" - - tooltip = "FRAME_PRO_HEGEMON_MOVEMENT" - } - - icon = { - name = "undecided_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('undecided_movement').Self)]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_unaligned_small.dds" - - tooltip = "FRAME_UNDECIDED_MOVEMENT" - } - } - - icon = { - name = "unpredictable_small" - visible = "[Character.IsOtherPlayer]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/unpredictable_small.dds" - - tooltip = "PLAYER_OBEDIENCE_UNPREDICTABLE" - } - - icon = { - name = "powerful_family" - visible = "[And( And( Character.IsHouseHead, Character.GetHouse.IsPowerful ), Character.IsVassalOf( GetPlayer ) )]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/powerful_family_head_small.dds" - framesize = { 28 28 } - tooltip = "FRAME_RELATION_POWERFUL_FAMILY" - } - - icon = { - name = "dominant_family" - visible = "[And( And( Character.IsHouseHead, Character.GetHouse.IsDominant ), Character.IsVassalOf( GetPlayer ) )]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/powerful_family_head_small.dds" - framesize = { 28 28 } - frame = 2 - tooltip = "FRAME_RELATION_DOMINANT_FAMILY" - } - - icon = { - name = "head_icon" - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)yes'), '(int32)9')]" - size = { 14 14 } - - texture = "gfx/interface/icons/portraits/relation_small.dds" - framesize = { 28 28 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)yes')]" - tooltip = "[Character.GetDynastyHeadRelationTooltip]" - } - - icon = { - name = "playable_icon" - visible = "[ObjectsEqual( Character.Self, GetPlayer.GetPlayerHeir )]" - size = { 14 14 } - texture = "gfx/interface/icons/portraits/heir_small.dds" - tooltip = "[Character.GetPlayableFrameTooltip]" - } - } - - block "dead_icon" - { - icon = { - name = "is_dead" - visible = "[Character.IsDeadAndValid]" - size = { 14 14 } - - texture = "[Character.GetDeathReasonIcon]" - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - } - } - - type portrait_status_icons = flowcontainer { - ignoreinvisible = yes - visible = "[Character.IsValid]" - - block "direction" - { - direction = vertical - } - - # sorted by priority, highest prio at the bottom - block "status_icons" { - - block "scripted_relation_status_icons" - { - using = Portrait_Relation_Icons - } - - icon = { - name = "relation_icon" - visible = "[LessThan_int32(Character.GetPlayerDynastyRelationFrame, '(int32)9')]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetPlayerDynastyRelationFrame]" - tooltip = "[Character.GetPlayerDynastyRelationTooltip]" - } - - icon = { - name = "hostage_icon" - visible = "[Character.IsHostage]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/hostage.dds" - tooltip = "[Character.GetHostageTooltip]" - } - - icon = { - name = "traveling_icon" - visible = "[And(Character.IsTraveling, Character.GetTravelPlan.IsInTransit)]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/travel.dds" - tooltip = "CHARACTER_TRAVELING_TOOLTIP" - } - - icon = { - name = "incapable" - visible = "[Character.IsIncapable]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/incapable.dds" - tooltip = "CHARACTER_INCAPABLE_TOOLTIP" - } - - block "inspiration_status_icons" - { - has_inspiration_status_icon = { - size = { 20 20 } - } - has_completed_inspiration_status_icon = { - size = { 20 20 } - } - } - - icon = { - name = "can_be_punished" - visible = "[Character.CanBePunished]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/punishment.dds" - tooltip = "[Character.PunishmentTooltip]" - } - - icon = { - name = "hook" - visible = "[Character.PlayerHasHooksOrHookableSecrets]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = "[Character.GetHookOrHookableSecretsFrame]" - tooltip = "[Character.HookTooltip]" - } - - icon = { - name = "liege_icon" - visible = "[And( ObjectsEqual( GetPlayer.GetLiege, Character.Self ) , Not( GetPlayer.IsIndependentRuler ) ) ]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/liege.dds" - tooltip = "FRAME_RELATION_MY_LIEGE" - } - - icon = { - name = "powerful_vassal" - visible = "[Character.IsMyPowerfulVassal]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/powerful_vassal.dds" - framesize = { 40 40 } - frame = "[Character.GetPowerfulVassalFrame]" - tooltip = "[Character.GetPowerfulVassalTooltip]" - } - - icon = { - name = "tributary" - datacontext = "[Character.GetTributaryContract]" - visible = "[Character.IsTributaryOf(GetPlayer)]" - size = { 20 20 } - - texture = "[Character.GetTributaryContract.GetPortraitIcon]" - tooltip = "FRAME_RELATION_TRIBUTARY" - } - - icon = { - name = "obedient_to_me" - visible = "[And(Character.UsesObedience,And(Character.GetOverlord.IsLocalPlayer, And(Character.IsObedientTo(GetPlayer), Not(Character.IsPlayer))))]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/obedient.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "obedient_to_someone_else" - visible = "[And(Not(Character.IsPlayer),And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Character.IsObedientTo(Character.GetOverlord))))]" - size = { 20 20 } - enabled = no - texture = "gfx/interface/icons/portraits/obedient.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_me" - visible = "[And(Character.UsesObedience,And(Character.GetOverlord.IsLocalPlayer, And(Not(Character.IsObedientTo(GetPlayer)), Not(Character.IsPlayer))))]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/disobedient.dds" - tooltipwidget = widget_obedience_tooltip - } - - icon = { - name = "disobedient_to_someone_else" - visible = "[And( Not(Character.IsPlayer), And(Character.UsesObedience,And(Not(Character.GetOverlord.IsLocalPlayer),Not(Character.IsObedientTo(Character.GetOverlord)))))]" - size = { 20 20 } - enabled = no - texture = "gfx/interface/icons/portraits/disobedient.dds" - tooltipwidget = widget_obedience_tooltip - } - - container_dynastic_cycle_group_icons = {} - - icon = { - name = "unpredictable" - visible = "[Character.IsOtherPlayer]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/unpredictable.dds" - - tooltip = "PLAYER_OBEDIENCE_UNPREDICTABLE" - } - - icon = { - name = "powerful_family" - visible = "[And( And( Character.IsHouseHead, Character.GetHouse.IsPowerful ), Character.IsVassalOf( GetPlayer ) )]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/powerful_family_head.dds" - framesize = { 40 40 } - tooltip = "FRAME_RELATION_POWERFUL_FAMILY" - } - - icon = { - name = "dominant_family" - visible = "[And( And( Character.IsHouseHead, Character.GetHouse.IsDominant ), Character.IsVassalOf( GetPlayer ) )]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/powerful_family_head.dds" - framesize = { 40 40 } - frame = 2 - tooltip = "FRAME_RELATION_DOMINANT_FAMILY" - } - - icon = { - name = "head_icon" - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)yes'), '(int32)9')]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)yes')]" - tooltip = "[Character.GetDynastyHeadRelationTooltip]" - } - - icon = { - name = "favorite_child" - visible = "[Character.IsFavoriteChildOf( GetPlayer )]" - size = { 20 20 } - texture = "gfx/interface/icons/character_interactions/designate_favorite.dds" - tooltip = "SUCCESSION_IS_FAVORITE_CHILD_TT" - } - - icon = { - name = "playable_icon" - visible = "[ObjectsEqual( Character.Self, GetPlayer.GetPlayerHeir )]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/heir.dds" - tooltip = "[Character.GetPlayableFrameTooltip]" - } - } - - block "dead_icon" - { - icon = { - name = "is_dead" - visible = "[Character.IsDeadAndValid]" - size = { 20 20 } - - texture = "[Character.GetDeathReasonIcon]" - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - } -} - -###################################################### -##################### TEMPLATES ###################### -###################################################### - -## BASE TEMPLATE - -template portrait_base -{ - pop_out = no - block "grayscale" { - grayscale = "[Not(Character.IsAlive)]" - } - - gfxtype = portraitbuttongfx - shaderfile = "gfx/FX/jomini/gui_portrait.shader" - - intersectionmask = no - - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - - clicksound = "event:/SFX/UI/Character/sfx_ui_character_portrait_select" - oversound = "event:/SFX/UI/Character/sfx_ui_character_portrait_pointer_over" - - block "portrait_button_template_onmouseenter" - { - state = { - name = _mouse_enter - trigger_when = "[Character.IsValid]" - on_finish = "[Character.OnMouseEnter]" - } - } - block "portrait_button_template_onmouseleave" - { - state = { - name = _mouse_leave - on_start = "[Character.OnMouseLeave]" - } - } - - block "portrait_button_template_onclick" - { - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - } - - block "portrait_button_template_onrightclick" - { - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - } - - filter_mouse = right - - block "portrait_button_template_tooltip" - { - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - - tooltipwidget = { - cooltip_type = { - blockoverride "interaction_info" { - text = "CHARACTER_TOOLTIP_INSTRUCTION" - } - } - } - } - - using = tooltip_es - tooltip_offset = { 0 0 } - tooltip_verticalbehavior = slide - tooltip_horizontalbehavior = mirror - - block "portrait_transformation" - { - portrait_scale = { 1.0 1.0 } - portrait_offset = { 0.0 0.0 } - } -} - -template Portrait_Background_Glows -{ - block "portrait_glow" - { - # Is Local Player - block "glow_local_player" - { - background = { - visible = "[And(Character.IsLocalPlayer, Not(Character.IsHovered))]" - using = Background_Portrait_Glow - color = { 0.5 0.6 0.7 0.6 } - } - } - - block "glow_other_player" - { - # Is Other Player - background = { - visible = "[And(Character.IsOtherPlayer, Not(Character.IsHovered))]" - using = Background_Portrait_Glow - color = { 0.8 0.4 0.55 0.6 } - } - } - - block "glow_selected" - { - background = { - name = "selected" - using = Background_Portrait_Glow - color = { 0.8 0.7 0.5 0.6 } - - block "glow_selected_visible" - { - visible = "[Character.IsSelected]" - } - } - } - - block "glow_hovered" - { - background = { - name = "hovered" - visible = "[Character.IsHovered]" - using = Background_Portrait_Glow - color = { 0.9 0.8 0.6 0.6 } - } - } - } -} - -template Background_Portrait_Glow -{ - texture = "gfx/portraits/portrait_glow.dds" -} - -template Portrait_Relation_Icon_Normal_Size -{ - size = { 20 20 } - framesize = { 40 40 } - - visible = "[ScriptedRelation.HasRelationBetween( GetPlayer, Character.Self )]" - - tooltipwidget = { - scripted_relation_tooltip = { - blockoverride "description_text" - { - text = "[GetScriptedRelationTooltip( ScriptedRelation, GetPlayer, Character )]" - } - } - } -} - -template Portrait_Relation_Icon_Small_Size -{ - size = { 14 14 } - framesize = { 28 28 } - - visible = "[ScriptedRelation.HasRelationBetween( GetPlayer, Character.Self )]" - - tooltipwidget = { - scripted_relation_tooltip = { - blockoverride "description_text" - { - text = "[GetScriptedRelationTooltip( ScriptedRelation, GetPlayer, Character )]" - } - } - } -} - -types portrait_icons -{ - type scripted_relation_tooltip = container - { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" { - margin = { 0 8 } - text = "[ScriptedRelation.GetName]" - } - - blockoverride "concept_link" { - text = "[relation|E]" - } - } - } - - # Normal size icons - type lover_relation_icon = icon - { - name = "lover" - - datacontext = "[GetRelation( 'lover' )]" - - texture = "gfx/interface/icons/portraits/lover_soulmate.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type friend_relation_icon = icon - { - name = "friend" - - datacontext = "[GetRelation( 'friend' )]" - - texture = "gfx/interface/icons/portraits/friend_bestfriend.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type rival_relation_icon = icon - { - name = "rival" - - datacontext = "[GetRelation( 'rival' )]" - - texture = "gfx/interface/icons/portraits/rival_nemesis.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type soulmate_relation_icon = icon - { - name = "soulmate" - - datacontext = "[GetRelation( 'soulmate' )]" - - texture = "gfx/interface/icons/portraits/lover_soulmate.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type best_friend_relation_icon = icon - { - name = "best_friend" - - datacontext = "[GetRelation( 'best_friend' )]" - - texture = "gfx/interface/icons/portraits/friend_bestfriend.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type nemesis_relation_icon = icon - { - name = "nemesis" - - datacontext = "[GetRelation( 'nemesis' )]" - - texture = "gfx/interface/icons/portraits/rival_nemesis.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type grudge_relation_icon = icon - { - name = "grudge" - - datacontext = "[GetRelation( 'grudge' )]" - - texture = "gfx/interface/icons/portraits/rival_grudge.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type blood_brother_relation_icon = icon - { - name = "blood_brother" - - datacontext = "[GetRelation( 'blood_brother' )]" - - texture = "gfx/interface/icons/portraits/blood_brother.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type elder_relation_icon = icon - { - name = "elder" - - datacontext = "[GetRelation( 'elder' )]" - - texture = "gfx/interface/icons/portraits/elder.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - type disciple_relation_icon = icon - { - name = "disciple" - - datacontext = "[GetRelation( 'disciple' )]" - - texture = "gfx/interface/icons/portraits/disciple.dds" - frame = 2 - - block "icon_template" { - using = Portrait_Relation_Icon_Normal_Size - } - } - - # Small size icons - type lover_relation_icon_small = icon - { - name = "lover" - - datacontext = "[GetRelation( 'lover' )]" - - texture = "gfx/interface/icons/portraits/lover_soulmate_small.dds" - frame = 1 - - using = Portrait_Relation_Icon_Small_Size - } - - type friend_relation_icon_small = icon - { - name = "friend" - - datacontext = "[GetRelation( 'friend' )]" - - texture = "gfx/interface/icons/portraits/friend_bestfriend_small.dds" - frame = 1 - - using = Portrait_Relation_Icon_Small_Size - } - - type rival_relation_icon_small = icon - { - name = "rival" - - datacontext = "[GetRelation( 'rival' )]" - - texture = "gfx/interface/icons/portraits/rival_nemesis_small.dds" - frame = 1 - - using = Portrait_Relation_Icon_Small_Size - } - - type soulmate_relation_icon_small = icon - { - name = "soulmate" - - datacontext = "[GetRelation( 'soulmate' )]" - - texture = "gfx/interface/icons/portraits/lover_soulmate_small.dds" - frame = 2 - - using = Portrait_Relation_Icon_Small_Size - } - - type best_friend_relation_icon_small = icon - { - name = "best_friend" - - datacontext = "[GetRelation( 'best_friend' )]" - - texture = "gfx/interface/icons/portraits/friend_bestfriend_small.dds" - frame = 2 - - using = Portrait_Relation_Icon_Small_Size - } - - type nemesis_relation_icon_small = icon - { - name = "nemesis" - - datacontext = "[GetRelation( 'nemesis' )]" - - texture = "gfx/interface/icons/portraits/rival_nemesis_small.dds" - frame = 2 - - using = Portrait_Relation_Icon_Small_Size - } - - type grudge_relation_icon_small = icon - { - name = "grudge" - - datacontext = "[GetRelation( 'grudge' )]" - - texture = "gfx/interface/icons/portraits/rival_grudge_small.dds" - frame = 1 - - using = Portrait_Relation_Icon_Small_Size - } - - type blood_brother_relation_icon_small = icon - { - name = "blood_brother" - - datacontext = "[GetRelation( 'blood_brother')]" - - texture = "gfx/interface/icons/portraits/blood_brother_small.dds" - frame = 1 - - using = Portrait_Relation_Icon_Small_Size - } - - type elder_relation_icon_small = icon - { - name = "elder" - - datacontext = "[GetRelation( 'elder' )]" - - texture = "gfx/interface/icons/portraits/elder_small.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Small_Size - } - } - - type disciple_relation_icon_small = icon - { - name = "disciple" - - datacontext = "[GetRelation( 'disciple' )]" - - texture = "gfx/interface/icons/portraits/disciple_small.dds" - frame = 1 - - block "icon_template" { - using = Portrait_Relation_Icon_Small_Size - } - } - - type container_dynastic_cycle_group_icons = container { - name = "container_dynastic_cycle_group_icons" - visible = "[And(HasDlcFeature( 'all_under_heaven' ), Character.ShouldShowMovementPower)]" - datacontext = "[Character]" - datacontext = "[GetSituation('dynastic_cycle')]" - ignoreinvisible = yes - - icon = { - name = "advancement_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('advancement_movement').Self)]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_advance.dds" - - block "dynastic_cycle_group_icon_tooltip" - { - tooltip = "FRAME_ADVANCEMENT_MOVEMENT" - } - } - - icon = { - name = "expansion_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('expansion_movement').Self)]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_expand.dds" - - block "dynastic_cycle_group_icon_tooltip" - { - tooltip = "FRAME_EXPANSION_MOVEMENT" - } - } - - icon = { - name = "conservative_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('conservative_movement').Self)]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_anti.dds" - - block "dynastic_cycle_group_icon_tooltip" - { - tooltip = "FRAME_CONSERVATIVE_MOVEMENT" - } - } - - icon = { - name = "pro_hegemon_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('pro_hegemon_movement').Self)]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_pro.dds" - - block "dynastic_cycle_group_icon_tooltip" - { - tooltip = "FRAME_PRO_HEGEMON_MOVEMENT" - } - } - - icon = { - name = "undecided_movement" - visible = "[ObjectsEqual( Situation.GetParticipantGroupByCharacter(Character.Self), Situation.GetTopParticipantGroupByKey('undecided_movement').Self)]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_unaligned.dds" - - block "dynastic_cycle_group_icon_tooltip" - { - tooltip = "FRAME_UNDECIDED_MOVEMENT" - } - } - } -} - -template Portrait_Relation_Icons -{ - lover_relation_icon = {} - friend_relation_icon = {} - rival_relation_icon = {} - soulmate_relation_icon = {} - best_friend_relation_icon = {} - nemesis_relation_icon = {} - grudge_relation_icon = {} - blood_brother_relation_icon = {} - elder_relation_icon = {} - disciple_relation_icon = {} -} - -template Portrait_Relation_Icons_Small -{ - lover_relation_icon_small = {} - friend_relation_icon_small = {} - rival_relation_icon_small = {} - soulmate_relation_icon_small = {} - best_friend_relation_icon_small = {} - nemesis_relation_icon_small = {} - grudge_relation_icon_small = {} - blood_brother_relation_icon_small = {} - elder_relation_icon_small = {} - disciple_relation_icon_small = {} -} - -template Portrait_Relation_Icons_Character_Window -{ - lover_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - friend_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - rival_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - soulmate_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - best_friend_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - nemesis_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - grudge_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - blood_brother_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - elder_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } - disciple_relation_icon = { - blockoverride "icon_template" - { - using = Character_Window_Relation_Icon - } - } -} diff --git a/N3OW/gui/shared/progressbars.gui b/N3OW/gui/shared/progressbars.gui deleted file mode 100644 index d06da65d..00000000 --- a/N3OW/gui/shared/progressbars.gui +++ /dev/null @@ -1,945 +0,0 @@ -types ProgressBars -{ - type progressbar_royal_court = progressbar { - min = 0 - max = 100 - value = 35 - size = { 100% 100% } - - progresstexture = "gfx/interface/progressbars/progress_grandeur.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - spriteType = Corneredtiled - spriteborder = { 6 6 } - - # modify_texture = { - # name = "pattern" - # texture = "gfx/interface/skinned/mask_pattern.dds" - # texture_density = 3 - # spriteType = corneredtiled - # blend_mode = alphamultiply - # alpha = 0.15 - # } - - # block "grandeur_trend_arrows" - # { - # icon = { - # name = "trend_decrease_arrows" - # size = { 60 24 } - # texture = "gfx/interface/progressbars/progress_grandeur_arrows.dds" - # widgetanchor = right - # } - # } - - icon = { - name = "overlay" - texture = "gfx/interface/progressbars/progress_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 2 2 } - size = { 100% 100% } - } - } - - type progressbar_standard = progressbar { - min = 0 - max = 100 - value = 35 - size = { 50 20 } - - block "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_standard.dds" - noprogresstexture = "gfx/interface/progressbars/progress_red.dds" - } - - spriteType = Corneredtiled - spriteborder = { 6 6 } - - icon = { - name = "overlay" - texture = "gfx/interface/progressbars/progress_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 2 2 } - size = { 100% 100% } - } - } - - type progressbar_standard_transparent = progressbar_standard - { - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_standard_transparent.dds" - noprogresstexture = "gfx/interface/progressbars/progress_red_transparent.dds" - } - } - - type progressbar_red = progressbar_standard - { - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_red.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - } - } - - type progressbar_green = progressbar_standard - { - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_green.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - } - } - - type progressbar_frozen = progressbar_standard - { - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_frozen.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - } - } - - type progressbar_frozen_transparent = progressbar_standard - { - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_frozen.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - } - } - - type progress_threshold = icon { - alwaystransparent = yes - texture = "gfx/interface/window_factions/faction_progress_threshold.dds" - } - - # Set the datamodel to something using function as GetSegmentedProgressChanceBar( Max, NumFrames, CurrentProgress, ChangeTopProgress ) - # eg: "[GetSegmentedProgressChanceBar( GetDefine( 'NScheme', 'STEPS_TO_PROGRESS' ), GetDefine( 'NInspiration', 'PROGRESS_FRAMES' ), Scheme.GetProgress, Scheme.GetProgressChance )]" - type progressbar_segmented_chance = flowcontainer - { - spacing = 2 - - item = { - icon = { - texture = "gfx/interface/progressbars/progress_scheme.dds" - size = { 25 25 } - framesize = { 45 45 } - frame = "[int32.GetInt]" - } - } - } - - # Set the datamodel to something using function as GetSegmentedProgressTargetBar( Max, Current, Target ) - # eg: "[GetSegmentedProgressTargetBar( '(int32)5', Object.GetProgress, Object.GetTarget )]" - type progressbar_segmented_target = flowcontainer - { - spacing = 2 - - item = { - icon = { - texture = "gfx/interface/progressbars/progress_magnificence.dds" - size = { 25 25 } - framesize = { 45 45 } - frame = "[int32.GetInt]" - } - } - } - - type hbox_complex_bar_progress = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentLeftWidth]" - allow_outside = yes - - block "empty" { - background = { - block "texture_empty" { - texture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentFilledWidth]" - allow_outside = yes - - block "filled" { - background = { - block "texture_filled" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentRightWidth]" - allow_outside = yes - - block "empty" { - background = { - block "texture_empty" { - texture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - } - - type hbox_complex_bar_progress_next = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetLeftEmptyWidth]" - allow_outside = yes - - - block "empty" { - background = { - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_empty" { - texture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextWidth]" - visible = "[GreaterThanOrEqualTo_CFixedPoint( ComplexBar.GetNeutralValue, ComplexBar.GetNextValue )]" - allow_outside = yes - - block "next" { - background = { - visible = "[ComplexBar.IsIncreasing]" - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_increase" { - texture = "gfx/interface/progressbars/progress_green.dds" - } - } - - background = { - visible = "[ComplexBar.IsDecreasing]" - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_decrease" { - texture = "gfx/interface/progressbars/progress_red.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetFilledWidth]" - allow_outside = yes - - block "filled" { - background = { - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_filled" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextWidth]" - visible = "[GreaterThan_CFixedPoint( ComplexBar.GetNextValue, ComplexBar.GetNeutralValue )]" - allow_outside = yes - - block "next" { - background = { - visible = "[ComplexBar.IsIncreasing]" - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_increase" { - texture = "gfx/interface/progressbars/progress_green.dds" - } - } - - background = { - visible = "[ComplexBar.IsDecreasing]" - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_decrease" { - texture = "gfx/interface/progressbars/progress_red.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetRightEmptyWidth]" - allow_outside = yes - - block "empty" { - background = { - spriteType = Corneredstretched - spriteborder = { 6 6 } - - block "texture_empty" { - texture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - } - - type hbox_complex_bar_neutral_marker = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNeutralMarkerLeftWidth]" - } - - hbox = { - allow_outside = yes - - widget = { - allow_outside = yes - - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNeutralMarkerRightWidth]" - } - } - - type hbox_complex_bar_current_marker = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentLeftWidth]" - } - - hbox = { - visible = "[GreaterThanOrEqualTo_CFixedPoint( ComplexBar.GetNeutralValue, ComplexBar.GetCurrentValue )]" - allow_outside = yes - - widget = { - allow_outside = yes - - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentFilledWidth]" - } - - hbox = { - visible = "[GreaterThan_CFixedPoint( ComplexBar.GetCurrentValue, ComplexBar.GetNeutralValue )]" - allow_outside = yes - - widget = { - allow_outside = yes - - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetCurrentRightWidth]" - } - } - - type hbox_complex_bar_next_marker = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextMarkerLeftWidth]" - } - - hbox = { - allow_outside = yes - visible = "[ComplexBar.IsDecreasing]" - - widget = { - allow_outside = yes - - block "decreasing_marker" { - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextWidth]" - } - - hbox = { - allow_outside = yes - visible = "[ComplexBar.IsIncreasing]" - - widget = { - allow_outside = yes - - block "increasing_marker" { - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextMarkerRightWidth]" - } - } - - type hbox_complex_bar_equlibrium_marker = hbox { - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextMarkerLeftWidth]" - } - - hbox = { - allow_outside = yes - visible = "[ComplexBar.IsEquilibrium]" - - widget = { - allow_outside = yes - - block "equilibrium_marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBar.GetNextMarkerRightWidth]" - } - } - - type hbox_complex_bar_levels = hbox { - allow_outside = yes - datamodel = "[ComplexBar.GetItems]" - - item = { - hbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[ComplexBarItem.GetWidth]" - - block "widget" { - widget = { - allow_outside = yes - visible = "[ComplexBarItem.IsVisible]" - - block "marker" { - debug_square = { - size = { 20 20 } - parentanchor = center - widgetanchor = center - } - } - } - - expand = {} - } - } - } - } - - type vassal_progressbars = hbox { - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 5 5 } - - block "width" - { - min_width = 450 - max_width = 450 - } - - block "background" - { - Background = { - using = Background_Area - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - widget = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 3 2 } - } - - progressbar_standard_transparent = { - block "tax_progressbar_size" - { - size = "[MyRealmWindowVassalItem.GetRelativeSizeForTax]" - } - minimumsize = { 10 0 } - block "tax_progressbar_value" - { - value = "[FixedPointToProgressbarValue(SubjectContract.GetTaxRatioForLiege)]" - } - } - - flowcontainer = { - parentanchor = center - position = { 0 -2 } - spacing = 4 - - text_single = { - block "tax_value" - { - text = "[MyRealmWindowVassalItem.GetCachedTax|=1]" - } - } - } - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetTaxBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_TAXES_TO_ME" - } - } - } - using = tooltip_ws - } - - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetLevyRatioForLiege, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - widget = { - layoutpolicy_horizontal = expanding - # size = { 150 22 } - - background = { - using = Background_Area - margin = { 3 2 } - } - - progressbar_standard_transparent = { - block "levy_progressbar_size" - { - size = "[MyRealmWindowVassalItem.GetRelativeSizeForLevies]" - } - minimumsize = { 10 0 } - block "levy_progressbar_value" - { - value = "[FixedPointToProgressbarValue(SubjectContract.GetLevyRatioForLiege)]" - } - } - - flowcontainer = { - parentanchor = center - position = { 0 -2 } - spacing = 4 - - text_single = { - block "levy_value" - { - text = "[MyRealmWindowVassalItem.GetCachedLeviesFormatted]" - } - } - } - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "levy_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetLeviesBreakdown]" - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_LEVIES_TO_ME" - } - } - } - using = tooltip_ws - } - - hbox = { - visible = "[GreaterThan_CFixedPoint( MyRealmWindowVassalItem.GetContract.GetHerdRatioForLiege, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_herd.dds" - } - - widget = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 3 2 } - } - - progressbar_standard_transparent = { - block "herd_progressbar_size" - { - size = "[MyRealmWindowVassalItem.GetRelativeSizeForHerd]" - } - minimumsize = { 10 0 } - block "herd_progressbar_value" - { - value = "[FixedPointToProgressbarValue(SubjectContract.GetHerdRatioForLiege)]" - } - } - - flowcontainer = { - parentanchor = center - position = { 0 -2 } - spacing = 4 - - text_single = { - block "tax_value" - { - text = "[MyRealmWindowVassalItem.GetCachedHerd|=1]" - } - } - } - } - - tooltipwidget = { - container_my_realm_window_contribution_tooltip = { - block "tax_breakdown" - { - datacontext = "[MyRealmWindowVassalItem.GetHerdBreakdown]" - - } - blockoverride "contribution_tooltip_header" - { - text = "MRW_TT_HERD_TO_ME" - } - } - } - using = tooltip_ws - } - } - - type widget_level_marker_no_anchor = widget { - size = { 0 40 } - allow_outside = yes - - ### Glow on current level animation - block "marker_addon" {} - - icon = { - name = "highlight_current_level" - - block "visible_active" {} - - block "highlight_addon" {} - - parentanchor = center - size = { 65 65 } - - texture = "gfx/interface/window_roco_grandeur/pin_highlight.dds" - - state = { - name = _show - using = Animation_Curve_Default - alpha = 0.6 - } - - state = { - name = _hide - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.6 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 7 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon = { - parentanchor = center - block "marker_size" - { - size = { 45 45 } - } - - - texture = "gfx/interface/window_regency/regency_level_bg.dds" - - block "visible_active" {} - - block "marker_tooltip" {} - } - - icon = { - parentanchor = center - - block "marker_size_inactive" - { - size = { 35 35 } - } - texture = "gfx/interface/window_regency/regency_level_bg_inactive.dds" - - block "visible_inactive" {} - - block "level_inactive_style" {} - - block "marker_tooltip" {} - } - - text_single = { - parentanchor = center - default_format = "#high" - align = nobaseline - - block "visible_active" {} - - block "marker_text" {} - } - - text_single = { - parentanchor = center - align = nobaseline - - block "visible_inactive" {} - - block "marker_text" {} - } - } - - type widget_level_marker = widget_level_marker_no_anchor { - parentanchor = center - } - - type arrow_progressbar_icon = icon - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - using = Progressbar_Arrow_Animation - block "color" {} - } - - type filled_line_progressbar_icon = icon - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - block "color" {} - } -} - -template Progressbar_Arrow_Animation -{ - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "arrows" - texture = "gfx/interface/window_combat/combat_advantage_progressbar.dds" - blend_mode = alphamultiply - spritetype = corneredtiled - texture_density = 1.6 - spriteborder = { 0 5 } - - block "modify_texture" {} - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - spritetype = corneredtiled - spriteborder_right = 6 - } - - state = { - name = a - next = b - trigger_on_create = yes - - duration = 0 - - modify_texture = { - name = "arrows" - translate_uv = { 0 0 } - } - } - - state = { - name = b - next = a - trigger_on_create = yes - - duration = 4 - - modify_texture = { - name = "arrows" - block "animation_uv" - { - translate_uv = { -1 0 } - } - } - } -} - -template Progressbar_Changed_Animation -{ - state = { - name = progress_changed - using = Animation_Curve_Default - duration = 0.5 - } -} - -template Progressbar_Changed_Animation_Curve -{ - progress_change_to_duration_curve = { 0.17 0.67 0.83 0.67 } - - state = { - name = progress_changed - using = Animation_Curve_Default - duration = 0.5 - } -} diff --git a/N3OW/gui/shared/sounds.gui b/N3OW/gui/shared/sounds.gui deleted file mode 100644 index 430bad1c..00000000 --- a/N3OW/gui/shared/sounds.gui +++ /dev/null @@ -1,358 +0,0 @@ - -###################################################### -################### SOUND TEMPLATES ################## -###################################################### - -template Sound_WindowShow_Standard -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_show" - } -} - -template Sound_WindowHide_Standard -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_hide" - } -} - -template Sound_WindowShow_Small -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_small" - } -} - -template Sound_WindowHide_Small -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_small" - } -} - -template Sound_WindowShow_Sidebar -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_sidebar" - } -} - -template Sound_WindowHide_Sidebar -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_sidebar" - } -} - -template Sound_WindowShow_Suggestion -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_suggestion" - } -} - -template Sound_WindowHide_Suggestion -{ - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_suggestion" - } -} - -template Sound_Window_Ambience_Tournament_Locale_West -{ - start_sound = { - soundeffect = "event:/DLC/EP2/SFX/Ambience/2D/ep2_amb_2d_tournament_locale" - - soundparam = { - name = ep2_amb_2d_crowd_culture - value = 0 - } - } -} - - -template Sound_Window_Ambience_Tournament_Locale_Mena -{ - start_sound = { - soundeffect = "event:/DLC/EP2/SFX/Ambience/2D/ep2_amb_2d_tournament_locale" - - soundparam = { - name = ep2_amb_2d_crowd_culture - value = 1 - } - } -} - -template Sound_Window_Ambience_Tournament_Locale_India -{ - start_sound = { - soundeffect = "event:/DLC/EP2/SFX/Ambience/2D/ep2_amb_2d_tournament_locale" - - soundparam = { - name = ep2_amb_2d_crowd_culture - value = 2 - } - } -} - -template sound_toast_flare -{ - state = { - name = _show - block "sound_toast_default_block" {} - } -} -# Copy paste the below two lines to any toast and replace fmod event path -# using = Sound_toat_default -# blockoverride "Sound_toast_default_block" { start_sound = { soundeffect = "event://path/to/fmod_event" } } - -template sound_situation_panel -{ - state = { - name = _show - start_sound = { soundeffect = "event:/DLC/CE2/UI/ce2_ui_situation_panel_open"} - } - state = { - name = _hide - start_sound = { soundeffect = "event:/DLC/CE2/UI/ce2_ui_situation_panel_close"} - } -} - -template sound_struggle_panel -{ - state = { - name = _show - start_sound = { soundeffect = "event:/DLC/CE2/UI/ce2_ui_struggle_panel_open"} - } - state = { - name = _hide - start_sound = { soundeffect = "event:/DLC/CE2/UI/ce2_ui_struggle_panel_close"} - } -} - -#################################### -############ Snapshots ############# -#################################### - -template Sound_Window_AmbienceMute_Snapshot -{ - start_sound = { - soundeffect = "snapshot:/Gameplay/WindowFullscreenPopUp" - } -} -template Sound_EP1_Courtroom_MapMute_Snapshot -{ - start_sound = { - soundeffect = "snapshot:/Gameplay/EP1_Courtroom_Snapshot" - } -} - -template Sound_Kill_Siege_SFX -{ - end_sound = { - soundeffect = "event:/SFX/UI/Siege/sfx_kill_siege_sfx" - } -} - -template Sound_Panel_Popup_Snapshot -{ - start_sound = { - soundeffect = "snapshot:/Gameplay/PanelPopup" - } -} - -#################################### -############## BUTTONS ############# -#################################### -types ButtonSounds -{ - ## Standard button - type button_normal = button { - - } - - ## Checkboxes - type button_toggle = button { - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - } - - ## Expand arrows - type button_arrow = button { - - } - - ## Dropdown lists - type button_list_new = button { - - } - - ## Increase - type button_increment = button { - - } - - ## Decrease - type button_decrement = button { - - } - - type button_normal_checkbutton = checkbutton { - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_checkbox" - } -} - -template Sound_EP2_Tournament_Locale_Button_Artisan -{ - # Because of the variety of sound effects that can trigger here, we will - # instead handle this in the events that fire when you interact with a - # locale. - - #clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_armorer" - #clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_farrier" - #clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_fletcher" - #clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_tailor" - #clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_weaponsmith" -} - -template Sound_EP2_Tournament_Locale_Button_Camp -{ - clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_camp" -} - -template Sound_EP2_Tournament_Locale_Button_Grounds -{ - clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_grounds" -} - -template Sound_EP2_Tournament_Locale_Button_Settlement -{ - clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_settlement" -} - -template Sound_EP2_Tournament_Locale_Button_Tavern -{ - clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_tavern" -} - -template Sound_EP2_Tournament_Locale_Button_Temple -{ - clicksound = "event:/DLC/EP2/SFX/UI/Grand_Activity/Tournaments/ep2_ui_grand_tournament_temple" -} - -#################################### -############## HEADERS ############# -#################################### - -types SoundTypes -{ - type widget_gamespeed_sounds = widget { - name = "sounds" - - ### SFX Play Button Visible - widget = { - name = "sfx_play_button" - visible = "[Not(IsGamePaused)]" - - state = { - name = _show - duration = 0.5 - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_play" - } - } - } - - ### SFX Pause Button Visible - widget = { - name = "sfx_pause_button" - visible = "[IsGamePaused]" - - state = { - name = _show - duration = 0.5 - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_pause" - } - } - } - } - - - ### STRESS LEVELS - - type widget_stress_sounds = widget { - ### Stresslevel 1 - widget = { - visible = "[EqualTo_int32( GetPlayer.GetStressLevel, '(int32)1')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_stress_level" - soundparam = { - name = CharacterStressLevel - value = 1 - } - } - } - } - ### Stresslevel 2 - widget = { - visible = "[EqualTo_int32( GetPlayer.GetStressLevel, '(int32)2')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_stress_level" - soundparam = { - name = CharacterStressLevel - value = 2 - } - } - } - } - ### StressLevel 3 - widget = { - visible = "[EqualTo_int32( GetPlayer.GetStressLevel, '(int32)3')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_stress_level" - soundparam = { - name = CharacterStressLevel - value = 3 - } - } - } - } - ### StressLevel 4 - widget = { - visible = "[EqualTo_int32( GetPlayer.GetStressLevel, '(int32)4')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_stress_level" - soundparam = { - name = CharacterStressLevel - value = 4 - } - } - } - } - ### StressLevel 5 - widget = { - visible = "[EqualTo_int32( GetPlayer.GetStressLevel, '(int32)5')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_stress_level" - soundparam = { - name = CharacterStressLevel - value = 5 - } - } - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/shared/texticons_religion.gui b/N3OW/gui/shared/texticons_religion.gui deleted file mode 100644 index 5d5dc615..00000000 --- a/N3OW/gui/shared/texticons_religion.gui +++ /dev/null @@ -1,1734 +0,0 @@ -texticon = { - icon = catholic_icon - iconsize = { - texture = "gfx/interface/icons/faith/catholic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = orthodox_icon - iconsize = { - texture = "gfx/interface/icons/faith/orthodox.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_armenian_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_armenian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = conversos_icon - iconsize = { - texture = "gfx/interface/icons/faith/conversos.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_cathar_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_cathar.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_waldensian_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_waldensian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_lollard_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_lollard.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_iconoclasm_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_iconoclasm.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_bogomilist_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_bogomilist.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_paulicanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_paulicanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = christianity_messalian_icon - iconsize = { - texture = "gfx/interface/icons/faith/christianity_messalian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = adamites_icon - iconsize = { - texture = "gfx/interface/icons/faith/adamites.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = insular_celtic_icon - iconsize = { - texture = "gfx/interface/icons/faith/insular_celtic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bosnian_church_icon - iconsize = { - texture = "gfx/interface/icons/faith/bosnian_church.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = buddhism_icon - iconsize = { - texture = "gfx/interface/icons/faith/buddhism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mahayana_icon - iconsize = { - texture = "gfx/interface/icons/faith/mahayana.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = vajrayana_icon - iconsize = { - texture = "gfx/interface/icons/faith/vajrayana.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ari_buddhism_icon - iconsize = { - texture = "gfx/interface/icons/faith/ari_buddhism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = lamaism_buddhism_icon - iconsize = { - texture = "gfx/interface/icons/faith/lamaism_buddhism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = germanic_icon - iconsize = { - texture = "gfx/interface/icons/faith/germanic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = germanic_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/germanic_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hellenic_icon - iconsize = { - texture = "gfx/interface/icons/faith/hellenic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hellenic_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/hellenic_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hinduism_icon - iconsize = { - texture = "gfx/interface/icons/faith/hinduism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = advaitism_icon - iconsize = { - texture = "gfx/interface/icons/faith/advaitism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shaivism_icon - iconsize = { - texture = "gfx/interface/icons/faith/shaivism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = srikula_shaktism_icon - iconsize = { - texture = "gfx/interface/icons/faith/srikula_shaktism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kalikula_shaktism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kalikula_shaktism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = smartism_icon - iconsize = { - texture = "gfx/interface/icons/faith/smartism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = krishnaism_icon - iconsize = { - texture = "gfx/interface/icons/faith/krishnaism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = jainism_icon - iconsize = { - texture = "gfx/interface/icons/faith/jainism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = svetambara_icon - iconsize = { - texture = "gfx/interface/icons/faith/svetambara.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yapaniya_icon - iconsize = { - texture = "gfx/interface/icons/faith/yapaniya.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = judaism_icon - iconsize = { - texture = "gfx/interface/icons/faith/judaism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rabbinism_icon - iconsize = { - texture = "gfx/interface/icons/faith/rabbinism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = karaism_icon - iconsize = { - texture = "gfx/interface/icons/faith/karaism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = malabarism_icon - iconsize = { - texture = "gfx/interface/icons/faith/malabarism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = samaritan_icon - iconsize = { - texture = "gfx/interface/icons/faith/samaritan.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kabarism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kabarism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = coptic_icon - iconsize = { - texture = "gfx/interface/icons/faith/coptic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nestorian_icon - iconsize = { - texture = "gfx/interface/icons/faith/nestorian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pagan_icon - iconsize = { - texture = "gfx/interface/icons/faith/pagan.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pagan_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/pagan_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = baltic_icon - iconsize = { - texture = "gfx/interface/icons/faith/baltic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = baltic_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/baltic_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -#Shia -texticon = { - icon = shia_icon - iconsize = { - texture = "gfx/interface/icons/faith/shia.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nizari_icon - iconsize = { - texture = "gfx/interface/icons/faith/nizari.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zayidi_icon - iconsize = { - texture = "gfx/interface/icons/faith/zayidi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = imami_icon - iconsize = { - texture = "gfx/interface/icons/faith/imami.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -#Zandaqa -texticon = { - icon = qarmatian_icon - iconsize = { - texture = "gfx/interface/icons/faith/qarmatian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = quranist_icon - iconsize = { - texture = "gfx/interface/icons/faith/quranist.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ghulat_icon - iconsize = { - texture = "gfx/interface/icons/faith/ghulat.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = alawite_icon - iconsize = { - texture = "gfx/interface/icons/faith/alawite.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = alevi_icon - iconsize = { - texture = "gfx/interface/icons/faith/alevi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = islam_druze_icon - iconsize = { - texture = "gfx/interface/icons/faith/islam_druze.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -#Muhakkima -texticon = { - icon = ibadi_icon - iconsize = { - texture = "gfx/interface/icons/faith/ibadi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = azariqa_icon - iconsize = { - texture = "gfx/interface/icons/faith/azariqa.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nadjat_icon - iconsize = { - texture = "gfx/interface/icons/faith/nadjat.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = muhakkima_3_icon - iconsize = { - texture = "gfx/interface/icons/faith/muhakkima_3.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -#Sunni -texticon = { - icon = sunni_icon - iconsize = { - texture = "gfx/interface/icons/faith/sunni.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = muwalladi_icon - iconsize = { - texture = "gfx/interface/icons/faith/muwalladi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = maturidi_icon - iconsize = { - texture = "gfx/interface/icons/faith/maturidi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = masmudi_icon - iconsize = { - texture = "gfx/interface/icons/faith/masmudi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mutazila_icon - iconsize = { - texture = "gfx/interface/icons/faith/mutazila.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -## - -texticon = { - icon = slavic_icon - iconsize = { - texture = "gfx/interface/icons/faith/slavic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = slavic_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/slavic_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = finno_ugric_icon - iconsize = { - texture = "gfx/interface/icons/faith/finno_ugric.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = finno_ugric_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/finno_ugric_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tengri_icon - iconsize = { - texture = "gfx/interface/icons/faith/tengri.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tengri_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/tengri_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_bori_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african_bori.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_bori_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african_bori_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yoruba_icon - iconsize = { - texture = "gfx/interface/icons/faith/yoruba.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yoruba_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/yoruba_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_roog_sene_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african_roog_sene.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = west_african_roog_sene_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/west_african_roog_sene_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mande_icon - iconsize = { - texture = "gfx/interface/icons/faith/mande.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mande_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/mande_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = akanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/akanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = akanism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/akanism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kushism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kushism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kushism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/kushism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = waaqism_icon - iconsize = { - texture = "gfx/interface/icons/faith/waaqism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = waaqism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/waaqism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zoroastrian_icon - iconsize = { - texture = "gfx/interface/icons/faith/zoroastrian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zurvanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/zurvanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gayomarthianism_icon - iconsize = { - texture = "gfx/interface/icons/faith/gayomarthianism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = khurmazta_icon - iconsize = { - texture = "gfx/interface/icons/faith/khurmazta.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mazdakism_icon - iconsize = { - texture = "gfx/interface/icons/faith/mazdakism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = khurramism_icon - iconsize = { - texture = "gfx/interface/icons/faith/khurramism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = urartuism_icon - iconsize = { - texture = "gfx/interface/icons/faith/urartuism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zunist_icon - iconsize = { - texture = "gfx/interface/icons/faith/zunist.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zunist_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/zunist_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kiratism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kiratism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kiratism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/kiratism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yumaism_icon - iconsize = { - texture = "gfx/interface/icons/faith/yumaism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yumaism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/yumaism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bon_icon - iconsize = { - texture = "gfx/interface/icons/faith/bon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = spirit_bon_icon - iconsize = { - texture = "gfx/interface/icons/faith/spirit_bon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = donyipoloism_icon - iconsize = { - texture = "gfx/interface/icons/faith/donyipoloism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = donyipoloism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/donyipoloism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sedism_icon - iconsize = { - texture = "gfx/interface/icons/faith/sedism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sedism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/sedism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rrmeaism_icon - iconsize = { - texture = "gfx/interface/icons/faith/rrmeaism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rrmeaism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/rrmeaism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = melieism_icon - iconsize = { - texture = "gfx/interface/icons/faith/melieism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = melieism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/melieism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = siberian_icon - iconsize = { - texture = "gfx/interface/icons/faith/siberian.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = siberian_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/siberian_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = aluk_icon - iconsize = { - texture = "gfx/interface/icons/faith/aluk.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = reformed_aluk_icon - iconsize = { - texture = "gfx/interface/icons/faith/reformed_aluk.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bimoism_icon - iconsize = { - texture = "gfx/interface/icons/faith/bimoism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = reformed_bimoism_icon - iconsize = { - texture = "gfx/interface/icons/faith/reformed_bimoism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bilikuism_icon - iconsize = { - texture = "gfx/interface/icons/faith/bilikuism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bilikuism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/bilikuism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = jingxue_icon - iconsize = { - texture = "gfx/interface/icons/faith/jingxue.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = daoxue_icon - iconsize = { - texture = "gfx/interface/icons/faith/daoxue.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dab_qhuas_icon - iconsize = { - texture = "gfx/interface/icons/faith/dab_qhuas.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dab_qhuas_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/dab_qhuas_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dayawism_icon - iconsize = { - texture = "gfx/interface/icons/faith/dayawism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = reformed_dayawism_icon - iconsize = { - texture = "gfx/interface/icons/faith/reformed_dayawism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kamuyism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kamuyism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kamuyism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/kamuyism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hantuism_icon - iconsize = { - texture = "gfx/interface/icons/faith/hantuism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = reformed_hantuism_icon - iconsize = { - texture = "gfx/interface/icons/faith/reformed_hantuism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kaharingan_icon - iconsize = { - texture = "gfx/interface/icons/faith/kaharingan.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = moism_icon - iconsize = { - texture = "gfx/interface/icons/faith/moism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ngaiism_icon - iconsize = { - texture = "gfx/interface/icons/faith/ngaiism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ngaiism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/ngaiism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shamanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/shamanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = reformed_shamanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/reformed_shamanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shinto_icon - iconsize = { - texture = "gfx/interface/icons/faith/shinto.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shugendo_icon - iconsize = { - texture = "gfx/interface/icons/faith/shugendo.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = satsana_phi_icon - iconsize = { - texture = "gfx/interface/icons/faith/satsana_phi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tolotang_icon - iconsize = { - texture = "gfx/interface/icons/faith/tolotang.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tolotang_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/tolotang_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = utaki_icon - iconsize = { - texture = "gfx/interface/icons/faith/utaki.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dhyana_icon - iconsize = { - texture = "gfx/interface/icons/faith/dhyana.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sukhavati_icon - iconsize = { - texture = "gfx/interface/icons/faith/sukhavati.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = avatamsaka_icon - iconsize = { - texture = "gfx/interface/icons/faith/avatamsaka.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = maitreyanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/maitreyanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = vinaya_icon - iconsize = { - texture = "gfx/interface/icons/faith/vinaya.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yogacara_icon - iconsize = { - texture = "gfx/interface/icons/faith/yogacara.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = acharya_icon - iconsize = { - texture = "gfx/interface/icons/faith/acharya.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hinduism_saura_icon - iconsize = { - texture = "gfx/interface/icons/faith/hinduism_saura.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fp2_adoptionist_icon - iconsize = { - texture = "gfx/interface/icons/faith/fp2_adoptionist.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fp2_mozarabic_icon - iconsize = { - texture = "gfx/interface/icons/faith/fp2_mozarabic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fp2_basque_icon - iconsize = { - texture = "gfx/interface/icons/faith/fp2_basque.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fp2_basque_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/fp2_basque_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = taoism_icon - iconsize = { - texture = "gfx/interface/icons/faith/taoism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shangqing_icon - iconsize = { - texture = "gfx/interface/icons/faith/shangqing.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = quanzhen_icon - iconsize = { - texture = "gfx/interface/icons/faith/quanzhen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mu_icon - iconsize = { - texture = "gfx/interface/icons/faith/mu.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mingism_icon - iconsize = { - texture = "gfx/interface/icons/faith/mingism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = manichean_icon - iconsize = { - texture = "gfx/interface/icons/faith/manichean.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dualism_icon - iconsize = { - texture = "gfx/interface/icons/faith/dualism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sabianism_icon - iconsize = { - texture = "gfx/interface/icons/faith/sabianism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = valentinianism_icon - iconsize = { - texture = "gfx/interface/icons/faith/valentinianism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sethianism_icon - iconsize = { - texture = "gfx/interface/icons/faith/sethianism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = priscillianism_icon - iconsize = { - texture = "gfx/interface/icons/faith/priscillianism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cainitism_icon - iconsize = { - texture = "gfx/interface/icons/faith/cainitism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = afridunism_icon - iconsize = { - texture = "gfx/interface/icons/faith/afridunism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = achamanism_icon - iconsize = { - texture = "gfx/interface/icons/faith/achamanism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = achamanism_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/achamanism_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kitebacilweism_icon - iconsize = { - texture = "gfx/interface/icons/faith/kitebacilweism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merkabah_icon - iconsize = { - texture = "gfx/interface/icons/faith/merkabah.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = meshefaresism_icon - iconsize = { - texture = "gfx/interface/icons/faith/meshefaresism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = miaphysite_icon - iconsize = { - texture = "gfx/interface/icons/faith/miaphysite.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pagan_magyar_icon - iconsize = { - texture = "gfx/interface/icons/faith/pagan_magyar.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pagan_magyar_reformed_icon - iconsize = { - texture = "gfx/interface/icons/faith/pagan_magyar_reformed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = yazidism_icon - iconsize = { - texture = "gfx/interface/icons/faith/yazidism.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} diff --git a/N3OW/gui/shared/texticons_trigger.gui b/N3OW/gui/shared/texticons_trigger.gui deleted file mode 100644 index 4c09026b..00000000 --- a/N3OW/gui/shared/texticons_trigger.gui +++ /dev/null @@ -1,39 +0,0 @@ -texticon = { - icon = trigger_pass - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_pass.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = trigger_fail - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_fail.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = trigger_pass_inactive - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_pass_inactive.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = trigger_fail_inactive - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_fail_inactive.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} diff --git a/N3OW/gui/shared/texticons_ui.gui b/N3OW/gui/shared/texticons_ui.gui deleted file mode 100644 index c72cd7df..00000000 --- a/N3OW/gui/shared/texticons_ui.gui +++ /dev/null @@ -1,40 +0,0 @@ -texticon = { - icon = trigger_fail - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_fail.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = trigger_pass_inactive - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_pass_inactive.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = trigger_fail_inactive - iconsize = { - texture = "gfx/interface/icons/text_icons/trigger_fail_inactive.dds" - size = { 18 18 } - offset = { 0 2 } - fontsize = 16 - } -} - -texticon = { - icon = small_dot - iconsize = { - texture = "gfx/interface/icons/text_icons/dot.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - color = "color:gray" - } -} diff --git a/N3OW/gui/shared/value_breakdown.gui b/N3OW/gui/shared/value_breakdown.gui deleted file mode 100644 index f0be5168..00000000 --- a/N3OW/gui/shared/value_breakdown.gui +++ /dev/null @@ -1,1022 +0,0 @@ -types Breakdowns -{ - ## List of values tooltip - # Note: use "widget_value_breakdown_tooltip" to get a list with a tooltip background and header. - # (this type widget should be used when you want only the list) - type widget_value_breakdown_list = widget { - name = "values_grid" - size = { 50 50 } - alwaystransparent = no - - block "background" { - background = { - using = Background_Area_Border_Solid - } - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 20 10 } - - - vbox = { - datamodel = "[ValueBreakdown.GetSubValues]" - alwaystransparent = no - spacing = 5 - - block "list" {} - - block "header" {} - - item = { - hbox = { - name = "value_breakdown" - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - min_width = 180 - max_width = 275 - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single= { - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - name = "value_with_tooltip" - text = "[ValueBreakdown.GetValue|L]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = tooltip_below - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - - # Things like "click to X", hotkeys etc - textbox = { - name = "input_info" - layoutpolicy_horizontal = expanding - margin_top = 4 - margin_bottom = 8 - using = DefaultTooltipText - multiline = yes - block "input_info_text" { - visible = no - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - # Used in a 'top level' aka directly inside a `tooltipwidget = {}` - type widget_value_breakdown_tooltip = widget_value_breakdown_list - { - blockoverride "header" - { - # We have the header be the name, if it exists - block "header" { - text_label_left = { - layoutpolicy_horizontal = expanding - block "header_text" { - text = "[ValueBreakdown.GetName]" - visible = "[Not( StringIsEmpty( ValueBreakdown.GetName ) )]" - } - default_format = "#T" - } - } - } - - blockoverride "background" - { - using = DefaultTooltipBackground - } - - blockoverride "list" - { - # We want more spacing in bottom for this background - margin_bottom = 17 - } - } - - ## Gold Breakdown Tooltip - type widget_gold_breakdown_tooltip = widget { - alwaystransparent = no - - block "background" { #### needed to solve the hack for tooltip in Realm View - using = DefaultTooltipBackground - } - - vbox = { - layoutpolicy_horizontal = expanding - - set_parent_size_to_minimum = yes - - block "margins" - { - margin = { 15 8 } - margin_bottom = 20 - spacing = 15 - } - - block "my_gold" {} - - vbox_gold_breakdown = { - name = "income" - layoutpolicy_horizontal = expanding - block "income" {} - } - - vbox_gold_breakdown = { - name = "expenses" - layoutpolicy_horizontal = expanding - block "expenses" {} - } - - block "gold_income" {} - - block "extra_info" {} - } - } - - type vbox_gold_breakdown = vbox { - spacing = 5 - alwaystransparent = no - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - default_format = "#T" - - block "header_background" { - background = { - using = Background_Area - margin = { 10 5 } - margin_bottom = 10 - } - } - } - - vbox = { - name = "values_grid" - datamodel = "[ValueBreakdown.GetSubValues]" - layoutpolicy_horizontal = expanding - margin_top = 10 - - item = { - hbox = { - name = "value_breakdown" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - } - - text_single = { - name = "value_with_tooltip" - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - text = "[ValueBreakdown.GetValue|L]" - align = right - default_format = "#high" - - using = tooltip_se - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - name = "value_with_no_tooltip" - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - text = "[ValueBreakdown.GetValue]" - align = right - } - } - } - } - - text_single = { - visible = "[Not(DataModelHasItems( ValueBreakdown.GetSubValues ))]" - layoutpolicy_horizontal = expanding - block "no_values" { - text = "VALUE_BREAKDOWN_NO_VALUES" - } - default_format = "#weak" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - visible = "[DataModelHasItems( ValueBreakdown.GetSubValues )]" - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[ValueBreakdown.ShouldShowValue]" - layoutpolicy_horizontal = expanding - text = "VALUE_BREAKDOWN_TOTAL" - } - - text_single = { - text = "[ValueBreakdown.GetValue|+]" - default_format = "#high" - } - } - } - } - } - - ## Resource Breakdown Tooltip - type widget_resource_value_tooltip = widget { - alwaystransparent = no - - state = { - name = _mouse_enter - on_start = "[PlayerValueItem.ResetLastUpdateFrame]" - } - - using = DefaultTooltipBackground - - vbox = { - name = "tooltip_container" - set_parent_size_to_minimum = yes - filter_mouse = all - margin = { 15 8 } - margin_bottom = 15 - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 15 - spacing = 5 - - block "header" {} - - text_single = { - layoutpolicy_horizontal = expanding - text = "MY_VALUE_LABEL" - default_format = "#high;bold" - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - background = { - using = Background_Area - margin = { 10 5 } - margin_bottom = 10 - } - } - - text_single = { - name = "total_label_no_tooltip" - layoutpolicy_horizontal = expanding - text = "TOTAL_BREAKDOWN_LABEL" - visible = "[EqualTo_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]" - } - - text_single = { - name = "total_label" - layoutpolicy_horizontal = expanding - text = "TOTAL_BREAKDOWN_LABEL" - visible = "[NotEqualTo_CFixedPoint(PlayerValueItem.GetBalance, '(CFixedPoint)0')]" - using = tooltip_ws - - datacontext = "[PlayerValueItem.GetBalanceGained]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header" {} - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - hbox = { - spacing = 5 - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 10 5 } - margin_bottom = 10 - } - - text_single = { - text = "PLAYER_VALUE_LEVEL_LABEL" - layoutpolicy_horizontal = expanding - - default_format = "#T" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - name = "current_level" - layoutpolicy_horizontal = expanding - - text = "[PlayerValueItem.GetCurrentLevelName]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - expand = {} - } - - vbox = { - visible = "[PlayerValueItem.HasNextLevel]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - name = "progress_label" - layoutpolicy_horizontal = expanding - - text = "[PlayerValueItem.GetProgressTowardNextLevelLabel]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = -3 - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { -1 15 } - tintcolor = "[TooltipInfo.GetTintColor]" - value = "[PlayerValueItem.GetProgressTowardNextLevel]" - tooltip = "[PlayerValueItem.GetProgressTooltip]" - } - - expand = {} - } - } - - text_single = { - name = "hud_max_level" - visible = "[PlayerValueItem.HasNonStandardLevel( GetPlayer )]" - text = "[PlayerValueItem.GetMaxLevel( GetPlayer )]" - tooltip = "[PlayerValueItem.GetMaxLevelBreakdown( GetPlayer )]" - } - } - } - } - - # Requires a ActiveCouncilTask datacontext - type council_task_progress_breakdown_widget = widget - { - size = { 50 50 } - alwaystransparent = no - datacontext = "[ActiveCouncilTask.GetProgressBreakdown]" - - using = DefaultTooltipBackground - - vbox = { - set_parent_size_to_minimum = yes - minimumsize = { 280 0 } - - margin = { 10 10 } - - layoutpolicy_horizontal = expanding - - text_single = { - name = "header" - text = COUNCIL_TASK_PROGRESSBAR_TOOLTIP_HEADER - } - - text_single = { - name = "frozen" - text = COUNCIL_TASK_PROGRESSBAR_FROZEN - visible = "[ActiveCouncilTask.IsFrozen]" - } - - vbox = { - name = "progress_breakdown" - layoutpolicy_horizontal = expanding - visible = "[And( ActiveCouncilTask.GetTaskType.IsProgressDefined, Not( ActiveCouncilTask.IsFrozen ) )]" - - margin = { 0 5 } - - text_single = { - name = "progress_rate_header" - visible = "[ActiveCouncilTask.GetTaskType.IsPercentageTask]" - text = COUNCIL_TASK_PROGRESS_RATE - } - text_single = { - name = "progress_rate_header_value" - visible = "[Not( ActiveCouncilTask.GetTaskType.IsPercentageTask )]" - text = COUNCIL_TASK_PROGRESS_RATE_VALUE - } - - widget_value_breakdown_list = { - layoutpolicy_horizontal = expanding - } - - text_single = { - name = "task_eta" - text = "[ActiveCouncilTask.GetETA]" - } - } - } - } - - type court_position_aptitude_breakdown_tooltip = widget { - name = "AptitudeBreakdownTooltip" - using = GeneralTooltipSetup - alwaystransparent = no - - using = DefaultTooltipBackground - vbox = { - set_parent_size_to_minimum = yes - margin = { 20 6 } - minimumsize = { 300 80 } - - # Header - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 100% 50 } - - background = { - using = Background_Header - margin = { 15 0 } - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - block "header_additions" {} - - vbox = { - name = "FancyHeader" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - name = "title" - margin_bottom = 18 - - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - block "header_text" { - - } - } - } - } - - expand = {} - } - - # Modifiers - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_TOOLTIP_EFFECT_ON_LIEGE - } - - vbox = { - margin = { 16 4 } - layoutpolicy_horizontal = expanding - - textbox = { - name = "modifiers" - using = DefaultTooltipText - layoutpolicy_horizontal = expanding - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - - block "modifier_list" { } - } - } - } - - # Breakdown - vbox = { - name = "aptitude_breakdown" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 8 } - - - # Header - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#S" - text = COURT_POSITION_aptitude_character_possessive - } - expand = {} - } - - # The Breakdown - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datamodel = "[ValueBreakdown.GetSubValues]" - alwaystransparent = no - margin = { 16 4 } - - item = { - hbox = { - name = "value_breakdown" - spacing = 5 - - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single = { - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - name = "value_with_tooltip" - text = "[ValueBreakdown.GetValue|L]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = tooltip_below - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - } - - type diarch_score_breakdown_tooltip = widget { - name = "diarch_score_breakdown_tooltip" - using = GeneralTooltipSetup - alwaystransparent = no - - using = DefaultTooltipBackground - vbox = { - set_parent_size_to_minimum = yes - margin = { 16 8 } - minimumsize = { 300 80 } - - block "breakdown_datacontext" {} - - # Header - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 100% 50 } - - background = { - using = Background_Header - margin = { 15 0 } - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - block "header_additions" {} - - vbox = { - name = "fancy_header" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - name = "title" - - fontsize_min = 14 - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - block "header_text" {} - } - } - } - - expand = {} - } - - # Breakdown - vbox = { - name = "aptitude_breakdown" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 8 } - - # The Breakdown - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datamodel = "[ValueBreakdown.GetSubValues]" - alwaystransparent = no - margin = { 16 4 } - - item = { - hbox = { - name = "value_breakdown" - spacing = 5 - - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single = { - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - name = "value_with_tooltip" - text = "[ValueBreakdown.GetValue|L]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = tooltip_below - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - } - - type cost_breakdown_vbox = vbox - { - margin = { 10 0 } - - background = { - visible = "[Not( CostBreakdown.CanAffordCosts( GetPlayer ) )]" - using = Status_Bad - margin_top = 5 - } - - hbox = { - name = "costs" - visible = "[CostBreakdown.HasAnyCost]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - block "heading" - { - text_single = { - name = "cost_heading" - align = nobaseline - - block "heading_text" - { - text = "COST_HEADING" - } - } - } - - hbox = { - name = "piety_cost" - visible = "[CostBreakdown.HasCost( 'piety' )]" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'piety' )]" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - - spacing = 2 - - icon = { - name = "icon_piety" - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "piety" - text = "[CostBreakdown.GetCost( 'piety' )|0]" - align = nobaseline - default_format = "#high" - } - } - - text_single = { - name = "prestige" - - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'prestige' )]" - visible = "[CostBreakdown.HasCost( 'prestige' )]" - - raw_text = "@prestige_icon![CostBreakdown.GetCost( 'prestige' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "renown" - - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'renown' )]" - visible = "[CostBreakdown.HasCost( 'renown' )]" - - raw_text = "@dynasty_prestige_icon![CostBreakdown.GetCost( 'renown' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "gold" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'gold' )]" - visible = "[CostBreakdown.HasCost( 'gold' )]" - - raw_text = "@gold_icon![CostBreakdown.GetCost( 'gold' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "influence" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'influence' )]" - visible = "[CostBreakdown.HasCost( 'influence' )]" - - raw_text = "@influence_icon![CostBreakdown.GetCost( 'influence' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "herd" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'herd' )]" - visible = "[CostBreakdown.HasCost( 'herd' )]" - - raw_text = "@herd_icon![CostBreakdown.GetCost( 'herd' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "treasury" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'treasury' )]" - visible = "[CostBreakdown.HasCost( 'treasury' )]" - - raw_text = "@treasury_icon![CostBreakdown.GetCost( 'treasury' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "merit" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'merit' )]" - visible = "[CostBreakdown.HasCost( 'merit' )]" - - raw_text = "@merit_icon![CostBreakdown.GetCost( 'merit' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - text_single = { - name = "barter_goods" - datacontext = "[CostBreakdown.AccessBreakdownTooltip( 'barter_goods' )]" - visible = "[CostBreakdown.HasCost( 'barter_goods' )]" - - raw_text = "@barter_goods_icon![CostBreakdown.GetCost( 'barter_goods' )|0]" - align = nobaseline - default_format = "#high" - - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - } - - text_single = { - visible = "[Not( CostBreakdown.HasAnyCost )]" - text = "NO_COST_HEADING" - using = Font_Size_Small - align = nobaseline - } - } - - type scripted_score_breakdown_tooltip = widget { - name = "scripted_score_breakdown_tooltip" - using = GeneralTooltipSetup - alwaystransparent = no - - using = DefaultTooltipBackground - vbox = { - set_parent_size_to_minimum = yes - margin = { 16 8 } - margin_bottom = 16 - minimumsize = { 300 80 } - - block "breakdown_datacontext" {} - - # Header - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 100% 50 } - - background = { - using = Background_Header - margin = { 15 0 } - } - - background = { - using = Background_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - block "header_additions" {} - - vbox = { - name = "fancy_header" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - name = "title" - margin_bottom = 12 - - fontsize_min = 14 - using = Font_Size_Medium - fonttintcolor = "[TooltipInfo.GetTintColor]" - - block "header_text" {} - } - } - } - - expand = {} - } - - # Breakdown - vbox = { - name = "breakdown" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 10 - - # The Breakdown - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datamodel = "[ValueBreakdown.GetSubValues]" - alwaystransparent = no - margin = { 0 0 } - - item = { - hbox = { - name = "value_breakdown" - spacing = 5 - - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single = { - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - name = "value_with_tooltip" - text = "[ValueBreakdown.GetValue|L]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = tooltip_below - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - name = "total_value" - spacing = 5 - layoutpolicy_horizontal = expanding - margin_top = 5 - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - block "total_text" { - text = "VALUE_BREAKDOWN_TOTAL" - } - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single = { - visible = "[ValueBreakdown.ShouldShowValue]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } -} diff --git a/N3OW/gui/shared/windows.gui b/N3OW/gui/shared/windows.gui deleted file mode 100644 index 4ea1bac1..00000000 --- a/N3OW/gui/shared/windows.gui +++ /dev/null @@ -1,958 +0,0 @@ -### WINDOW LAYERS - -# This should be on top of everything -layer debug -{ - priority = 50 -} - -layer confirmation -{ - priority = 11 -} - -layer frontend -{ - priority = 10 -} - -layer tutorial -{ - priority = 9 -} - -layer top -{ - priority = 8 -} - -layer events -{ - priority = 7 -} - -layer middle -{ - priority = 6 -} - -layer royal_court -{ - priority = 5 -} - -layer hud_layer -{ - priority = 4 -} - -layer windows_layer -{ - priority = 3 -} - -layer bottom -{ - priority = 2 -} - -layer bottom_bottom -{ - priority = 1 -} - -###################################################### -################## WINDOW TEMPLATES ################## -###################################################### - -# This is the standard window size. Will resize height in relation to screen size. -template Window_Size_Sidebar -{ - size = { 610 100% } -} - -template Window_Size_MainTab -{ - size = { 655 100% } -} - -template Window_Size_CharacterList -{ - size = { 745 88% } -} - -template Window_Size_CharacterList_Small -{ - size = { 580 850 } -} - -# Window positions -template Window_Position_MainTab -{ - position = { 0 0 } -} - -template Window_Position_MainTab_Hide -{ - position = { 40 0 } -} - -template Window_Margins_MainTab -{ - margin_top = 50 # Top HUD - margin_right = 50 # Right MainTabs - margin_left = 40 # Left BookmarkTabs - margin_bottom = 45 # Bottom Time -} - -template Window_Position_CharacterList -{ - parentanchor = hcenter - position = { 0 90 } -} - - -template Window_Position_CharacterList_Small -{ - parentanchor = center - position = { 0 -30 } -} - -# Standard margins for windows, to get inside the standard decoration gfx around the frame. -template Window_Margins -{ - margin_left = 40 - margin_right = 40 - margin_top = 18 - margin_bottom = 20 -} - -template Window_Margins_Sidebar -{ - margin_right = 18 -} - -template Scrollbox_Margins -{ - margin_top = 15 - margin_bottom = 15 - margin_left = 15 - margin_right = 20 -} - -# The standard window tiling background -template Window_Background -{ - background = { - texture = "gfx/interface/skinned/tile_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - - block "bg_margins" - { - margin = { -23 -17 } - } - } -} - -# Popup dialogs -template Window_Background_Popup -{ - background = { - texture = "gfx/interface/skinned/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - shaderfile = "gfx/FX/pdxgui_default.shader" - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 0.6 - } - } - - background = { - texture = "gfx/interface/skinned/tile_window_background_popup.dds" - spriteType = Corneredtiled - spriteborder = { 80 80 } - margin = { 2 2 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } -} - -# The tiling background for sidebars -template Window_Background_Sidebar -{ - background = { - texture = "gfx/interface/skinned/tile_window_background_sidebar.dds" - spriteType = Corneredtiled - spriteborder_right = 23 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 1 - } - } -} - -template Window_Background_Sidebar_Multiplayer_Left -{ - background = { - texture = "gfx/interface/skinned/tile_window_background_sidebar.dds" - spriteType = Corneredtiled - spriteborder_right = 23 - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder_right = -500 - blend_mode = alphamultiply - alpha = 0.25 - mirror = horizontal - } - } -} - -template Window_Background_Sidebar_Multiplayer_Right -{ - background = { - texture = "gfx/interface/component_tiles/tile_window_background_sidebar.dds" - spriteType = Corneredtiled - spriteborder_right = 23 - texture_density = 2 - mirror = horizontal - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder_right = -500 - blend_mode = alphamultiply - alpha = 0.25 - mirror = horizontal - } - } -} - -# Subwindows, frayed edge frame all around -template Window_Background_NoDecoration -{ - background = { - texture = "gfx/interface/skinned/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -17 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 1 - } - } -} - -template Window_Background_Subwindow -{ - background = { - name = "background" - texture = "gfx/interface/skinned/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } - - background = { - name = "tooltip_frame" - texture = "gfx/interface/tooltips/tooltip_frame.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - - color = { 1.77 1.77 1.80 1 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } -} - -template Window_Background_No_Edge -{ - background = { - texture = "gfx/interface/skinned/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - - block "bg_margins" - { - margin = { 20 0 } - } - } -} - -##################### Window Decorations ########################### - -# The top and bottom decoration -template Window_Decoration -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - } - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_center.dds" - position = { 0 -38 } - size = { 142 60 } - texture_density = 2 - parentanchor = top|hcenter - } -} - -template Window_Decoration_Spike -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - } - - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } - - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_center.dds" - position = { 0 -38 } - size = { 142 60 } - parentanchor = top|hcenter - texture_density = 2 - } - -} - -template Window_Decoration_Flat -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - } - - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } -} - -template Window_Decoration_Warfare -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top.dds" - spriteType = Corneredtiled - spriteborder = { 100 -1 } - size = { 100% 22 } - texture_density = 2 - } - - block "frame_bottom" { - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 20 } - parentanchor = bottom - } - } - - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/skinned/window_war/tile_frame_top.dds" - position = { 0 -40 } - parentanchor = top|hcenter - texture_density = 2 - } -} - - -# Frontend templates, non-skinning -template Window_Decoration_Frontend -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - } - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/component_decoration/decoration_frame_bottom_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/component_decoration/decoration_frame_top_center.dds" - position = { 0 -11 } - texture_density = 2 - parentanchor = top|hcenter - } -} - -template Window_Decoration_Frontend_Spike -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 20 } - } - - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 20 } - parentanchor = bottom - } - - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_center.dds" - position = { 0 -18 } - parentanchor = top|hcenter - texture_density = 2 - } -} - -template Window_Decoration_Frontend_Flat -{ - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - } - - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } -} - -template Window_Decoration_Frontend_Flat_Bottom -{ - icon = { - name = "tile_frame_bottom" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_bottom_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } -} - -template Window_Decoration_Thin_Bottom -{ - icon = { - name = "frame_bottom" - texture = "gfx/interface/window_duel_event_window/decoration_frame_bottom_thin_duel.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 100% 22 } - parentanchor = bottom - } -} - -template GHW_Decoration -{ - icon = { - - texture = "gfx/interface/window_war/tile_frame_top_ghw.dds" - spriteType = Corneredtiled - spriteborder = { 40 80 } - } -} - -##################### Window Utilities ########################### -template Window_Movable -{ - movable = yes - min_dist_from_screen_edge = 200 -} - -###################################################### -####################### TYPES ######################## -###################################################### - -types WindowTypes -{ - #################################### - ##### USEFUL LAYOUT SHORTHANDS ##### - #################################### - - ## Use this to create empty space, ie. in a flowcontainer. - type spacer = widget { - name = "spacer" - #layoutpolicy_horizontal = fixed - #layoutpolicy_vertical = fixed - } - - ## Use this to expand void in a hbox/vbox - type expand = hbox { - name = "expander" - layoutpolicy_horizontal = growing - layoutpolicy_vertical = growing - } - - #################################### - ############## HEADERS ############# - #################################### - - # Headers for windows - - type header_text = text_single - { - name = "header_text" - - maximumsize = { 400 -1 } - - block "header_text" { - text = "DEFAULT_TEXT" - } - - using = Font_Type_Flavor - using = Font_Size_Big - } - - ## Regular header without picture - type header_standard = widget { - name = "header" - size = { 0 50 } - - icon = { - name = "background" - size = { 100% 100% } - texture = "gfx/interface/component_tiles/header_full_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 80 10 } - texture_density = 2 - alpha = 0.9 - } - - icon = { - name = "border" - size = { 100% 100% } - texture = "gfx/interface/component_tiles/header_full_window_border.dds" - spriteType = Corneredtiled - spriteborder = { 80 10 } - texture_density = 2 - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - icon = { - name = "gradient" - size = { 890 47 } - texture = "gfx/interface/component_tiles/header_full_window_gradient.dds" - parentanchor = hcenter|vcenter - } - - icon = { - name = "pattern" - size = { 890 47 } - texture = "gfx/interface/component_tiles/header_full_window_pattern.dds" - parentanchor = hcenter|vcenter - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - buttons_window_control = { - parentanchor = top|right - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 5 } - } - } - - type header_pattern = widget { - name = "header" - - block "size" { - size = { 100 56 } - } - background = { - using = Background_Window_Header - margin_bottom = 8 - block "header_background" {} - } - - background = { - using = Background_Window_Header_Pattern - margin_bottom = 8 - block "header_pattern" {} - } - - - buttons_window_control = { - parentanchor = top|right - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 8 } - align = nobaseline - } - } - - type header_pattern_interaction = widget { - name = "header" - size = { 100 56 } - - background = { - using = Background_Header - margin_bottom = 12 - } - - background = { - using = Background_Header_Pattern - margin_bottom = 12 - } - - buttons_window_control = { - parentanchor = top|right - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { -12 8 } - maximumsize = { 310 60 } - } - } - - type header_migration = widget { - name = "header" - size = { 480 56 } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/skinned/component_decoration/decoration_migration_header.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphaMultiply - alpha = 0.5 - } - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphaMultiply - } - } - - buttons_window_control = { - parentanchor = top|right - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 5 } - } - } - - ## Regular header for warfare widows - type header_with_divider = vbox { - name = "header_with_divider" - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - - divider_light = { - layoutpolicy_horizontal = growing - alpha = 0.5 - } - - text_multi = { - name = "header_with_divider_text" - using = Font_Type_Flavor - multiline = yes - autoresize = yes - align = center - - block "header_with_divider_text_multi" { - fontsize = 30 - text = "DEFAULT_TEXT" - } - - } - - text_single = { - name = "header_with_divider_datedate" - default_format = "#low" - - block "header_with_divider_text_single" { - text = "DEFAULT_TEXT" - } - - } - - divider_light = { - layoutpolicy_horizontal = growing - alpha = 0.5 - } - } - - ## Generic type for adding header illustrations - type widget_header_with_picture = widget { - name = "header" - size = { 0 120 } - - widget = { - parentanchor = top|hcenter - name = "header_illustration" - alwaystransparent = yes - - # blockoverride needed for realm view - block "size" { - size = { 100% 133 } - } - - background = { - fittype = centercrop - - block "illustration_texture" { - texture = "gfx/interface/illustrations/window_headers/header_military.dds" - } - - modify_texture = { - texture = "gfx/interface/illustrations/window_headers/mask_header_illustration.dds" - blend_mode = alphamultiply - } - } - } - - widget = { - block "header_size" - { - size = { 100% 54 } - } - - block "header_position" {} - - background = { - using = Background_Header - margin_bottom = 8 - block "header_background_visibility" {} - } - - background = { - using = Background_Header_Pattern - margin_bottom = 8 - block "header_pattern_visibility" {} - } - - icon = { - name = "header_text_bg" - size = { 100% 100% } - parentanchor = top|hcenter - alpha = 0.7 - texture = "gfx/interface/colors/black.dds" - - block "header_label_visibility" - { - visible = no - } - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_header_text_bg.dds" - } - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 3 } - } - } - - buttons_window_control = { - parentanchor = top|right - } - } - - # Header that is just the text and buttons - type header_no_background = margin_widget - { - size = { 0 56 } - - buttons_window_control = { - parentanchor = top|right - } - - header_text = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 5 } - } - } - - ## Divider - type divider = icon { - texture = "gfx/interface/colors/white.dds" - color = { 0.1 0.1 0.1 0.8 } - spriteType = Corneredtiled - size = { 3 3 } - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - ## Divider - type divider_light = icon { - texture = "gfx/interface/colors/white.dds" - color = { 0.3 0.3 0.35 0.8 } - spriteType = Corneredtiled - size = { 3 3 } - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } -} - diff --git a/N3OW/gui/shortcuts.shortcuts b/N3OW/gui/shortcuts.shortcuts deleted file mode 100644 index 2149cfb4..00000000 --- a/N3OW/gui/shortcuts.shortcuts +++ /dev/null @@ -1,136 +0,0 @@ -shortcutbindings = { -# Core - close_window = "ESCAPE" - close_tooltips = "ESCAPE" - confirm = "RETURN" - - zoom_out = "PAGE_UP" - zoom_in = "PAGE_DOWN" - -# Time keeping - pause = "SPACE" - increase_speed = "KP_PLUS" - increase_speed_2 = "X" - increase_speed_3 = "+" - decrease_speed = "KP_MINUS" - decrease_speed_2 = "Z" - decrease_speed_3 = "-" - speed_1 = "1" - speed_2 = "2" - speed_3 = "3" - speed_4 = "4" - speed_5 = "5" - - action_list = "TAB" - -# Undo/Redo - undo = "ctrl+z" - redo = "ctrl+y" - -# Menu Tabs, update DISABLE_SHORTCUT_ACCESS_FOR_WINDOW_NAMES if you add a new one - character_window = "F1" - my_realm_window = "F2" - military_window = "F3" - council_window = "F4" - court_window = "F5" - intrigue_window = "F6" - factions_window = "F7" - decision_window = "F8" - activity_list_window = "F9" - encyclopedia = "F10" - screenshot = "F11" - screenshot_map = "shift+F11" - situations = "0" - -# Extra Menus - character_finder = "C" - find_title_shortcut = "V" - go_to_capital = "HOME" - -# Realm Map Mode - map_mode_1 = "E" - explore_plagues = "P" - explore_legends = "L" - -# De Jure Map modes - map_mode_9 = "shift+Q" # dejure duchies - map_mode_10 = "shift+W" # dejure kingdoms - map_mode_11 = "shift+E" # dejure empires - map_mode_20 = "shift+R" # dejure hegemonies - mapmode_duchies_secondary = "U" - mapmode_kingdoms_secondary = "I" - mapmode_empires_secondary = "O" - -# Other Primary Map Modes - map_mode_3 = "R" # religions - map_mode_2 = "T" # cultures - map_mode_4 = "Y" # houses - mapmode_faith_secondary = "shift+A" - mapmode_culture_secondary = "shift+S" - mapmode_house_secondary = "shift+D" - -# Other Map Modes - - map_mode_5 = "ctrl+Q" # governments - map_mode_13 = "ctrl+D" # development - map_mode_12 = "ctrl+G" # simple terrain - map_mode_terrain = "ctrl+H" # terrain - map_mode_6 = "ctrl+A" # dejure counties - map_mode_7 = "ctrl+W" # court language mapmode - map_mode_8 = "ctrl+P" # player mapmode - map_mode_14 = "ctrl+S" # economy and buildings - map_mode_15 = "ctrl+F" # county control - map_mode_16 = "ctrl+E" # epidemics - map_mode_17 = "ctrl+L" # legends - map_mode_18 = "ctrl+R" # landless rulers - map_mode_19 = "ctrl+C" # county fertility - map_mode_diplomatic_relations = "shift+F" # diplomatic relations - map_mode_confederations = "shift+C" # confederations - map_mode_mandala = "shift+G" # mandala - -# Many Views - go_back = "B" - go_back_2 = "BACKSPACE" - go_back_3 = "mb4" - -# Army View - army_merge = "G" - army_split_half = "F" - army_create_new = "H" - army_disband = "J" - -# Siege View - siege_assault = "F" - -# County View -# want to use the F-L row for this but not sure if any other actions that these merit having shortcuts... - county_go_to_siege = "H" - raze_selected_holding = "F" - find_vassal_for_holding = "G" - -# Grant To... Window - - grant_to_same_culture_noble = "G" - grant_to_local_culture_noble = "H" - - -# Dynasty View - dynasty_tree_pan_to_me = "HOME" - -# Roal Court View - royal_court_next_screenshot_camera = "RIGHT" - royal_court_prev_screenshot_camera = "LEFT" - royal_court_take_screenshot = "SPACE" - royal_court_hide_characters = "C" - royal_court_hide_ui = "U" - -# Dev - map_editor_toggle_game_map_mode = "m" - editor_toggle = "l" - court_scene_editor_dev_cam = "c" - court_scene_editor_toolset_select = "q" - court_scene_editor_toolset_translate = "w" - court_scene_editor_toolset_rotate = "e" - court_scene_editor_toolset_scale = "r" - court_scene_editor_toolset_toggle = "t" -} diff --git a/N3OW/gui/texticons.gui b/N3OW/gui/texticons.gui deleted file mode 100644 index 6323be9c..00000000 --- a/N3OW/gui/texticons.gui +++ /dev/null @@ -1,5461 +0,0 @@ -texticon = { - icon = gold_icon - iconsize = { - texture = "gfx/interface/icons/icon_gold.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = treasury_icon - iconsize = { - texture = "gfx/interface/icons/icon_imperial_treasury.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = herd_icon - iconsize = { - texture = "gfx/interface/icons/icon_herd.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_0_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_1_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_2_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_3_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_4_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prestige_level_5_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_prestige_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon_0 - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon_2 - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon_3 - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon_4 - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_prestige_icon_5 - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_dynasty_prestige_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_0_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_1_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_2_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_3_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_4_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = influence_level_5_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_influence_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_0_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_1_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_2_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_3_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_4_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_5_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_6_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_7_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_8_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = merit_level_9_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_merit_09.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = house_realm_county_control_icon - iconsize = { - texture = "gfx/interface/icons/icon_game_concept_house_realm_county_control.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = soldier_icon - iconsize = { - texture = "gfx/interface/icons/icon_levies.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bombard_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/bombard.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bondi_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/bondi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bowmen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/bowmen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = camel_riders_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/camel_riders.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = crossbowmen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/crossbowmen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = shenbigong_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/shenbigong.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zhanmadao_infantry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/zhanmadao_infantry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = danish_huskarls_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/danish_huskarls.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = heavy_cavalry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/heavy_cavalry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = heavy_infantry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/heavy_infantry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = horse_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/horse_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = jomsviking_pirates_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/jomsviking_pirates.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = torch_bearers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/torch_bearers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = light_cavalry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/light_cavalry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mangonel_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/mangonel.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = onager_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/onager.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pikemen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/pikemen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = skirmishers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/skirmishers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = trebuchet_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/trebuchet.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = varangian_veterans_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/varangian_veterans.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = vigmen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/vigmen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = war_elephants_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/war_elephants.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gunpowder_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/gunpowder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fire_lance_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/fire_lance.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = warrior_monks_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/warrior_monks.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pesilat_warrior_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/pesilat_warrior.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gakgung_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/gakgung_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = burenjia_infantry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/burenjia_infantry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tiefutu_cavalry_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/tiefutu_cavalry.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hwacha_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/hwacha.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pikemen_militia_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/pikemen_militia.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cloud_ladder_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/cloud_ladder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cannon_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/cannon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = siege_tower_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/siege_tower.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ballista_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/ballista.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = house_guard_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/_default.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tawashi_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/tawashi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tarkhan_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/tarkhan.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = zupin_spearmen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/zupin_spearmen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = asawira_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/asawira.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ayyar_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/ayyar.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mubarizun_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/mubarizun.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = akritai_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/akritai.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = armenian_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/armenian_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ayrudzi_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/ayrudzi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ballistrai_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/ballistrai.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cataphracts_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/cataphracts.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = greek_fire_siphons_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/greek_fire_siphons.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hippotoxotai_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/hippotoxotai.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = konni_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/konni.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = conrois_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/conrois.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = monaspa_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/monaspa.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = skoutatoi_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/skoutatoi.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = varangian_guard_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/varangian_guard.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nomadic_riders_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/nomadic_riders.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cataphract_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/cataphract_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = heavy_horse_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/heavy_horse_archers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = keshig_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/keshig.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mangudai_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/mangudai.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = maturkan_warriors_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/maturkan_warriors.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = steppe_raiders_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/steppe_raiders.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = torch_bearers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/torch_bearers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nomad_lancers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/nomad_lancers.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = catholic_icon - iconsize = { - size = { 32 32 } - offset = { -2 2 } - texture = "gfx/interface/icons/faith/catholic.dds" - fontsize = 16 - } -} -texticon = { - icon = orthodox_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/orthodox.dds" - fontsize = 16 - } -} - -texticon = { - icon = custom_faith_1_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_1.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_2_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_2.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_3_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_3.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_4_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_4.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_5_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_5.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_6_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_6.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_7_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_7.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_8_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_8.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_9_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_9.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_10_icon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_10.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_fenrir - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_fenrir.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_irminsul - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_irminsul.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_jormungandr - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_jormungandr.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_odins_ravens - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_odins_ravens.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_runestone_moon - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_runestone_moon.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_thors_hammer - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_thors_hammer.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_valknut - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_valknut.dds" - fontsize = 16 - } -} -texticon = { - icon = custom_faith_fp1_yggdrasil - iconsize = { - size = { 32 32 } - offset = { -2 0 } - texture = "gfx/interface/icons/faith/custom_faith_fp1_yggdrasil.dds" - fontsize = 16 - } -} - -texticon = { - icon = plains - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/plains.dds" - fontsize = 16 - } -} - -texticon = { - icon = forest - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/forest.dds" - fontsize = 16 - } -} - -texticon = { - icon = mountains - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/mountains.dds" - fontsize = 16 - } -} - -texticon = { - icon = jungle - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/jungle.dds" - fontsize = 16 - } -} - -texticon = { - icon = taiga - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/taiga.dds" - fontsize = 16 - } -} - -texticon = { - icon = wetlands - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/wetlands.dds" - fontsize = 16 - } -} - -texticon = { - icon = hills - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/hills.dds" - fontsize = 16 - } -} - -texticon = { - icon = terraced_hills - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/terraced_hills.dds" - fontsize = 16 - } -} - -texticon = { - icon = desert_mountains - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/desert_mountains.dds" - fontsize = 16 - } -} - -texticon = { - icon = desert - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/desert.dds" - fontsize = 16 - } -} - -texticon = { - icon = drylands - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/drylands.dds" - fontsize = 16 - } -} - -texticon = { - icon = oasis - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/oasis.dds" - fontsize = 16 - } -} - -texticon = { - icon = steppe - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/steppe.dds" - fontsize = 16 - } -} - -texticon = { - icon = farmlands - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/farmlands.dds" - fontsize = 16 - } -} - -texticon = { - icon = floodplains - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/terrain_types/floodplains.dds" - fontsize = 16 - } -} - -texticon = { - icon = plains_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/plains.dds" - fontsize = 16 - } -} - -texticon = { - icon = forest_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/forest.dds" - fontsize = 16 - } -} - -texticon = { - icon = mountains_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/mountains.dds" - fontsize = 16 - } -} - -texticon = { - icon = jungle_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/jungle.dds" - fontsize = 16 - } -} - -texticon = { - icon = taiga_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/taiga.dds" - fontsize = 16 - } -} - -texticon = { - icon = wetlands_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/wetlands.dds" - fontsize = 16 - } -} - -texticon = { - icon = hills_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/hills.dds" - fontsize = 16 - } -} - -texticon = { - icon = terraced_hills_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/terraced_hills.dds" - fontsize = 16 - } -} - -texticon = { - icon = desert_mountains_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/desert_mountains.dds" - fontsize = 16 - } -} - -texticon = { - icon = desert_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/desert.dds" - fontsize = 16 - } -} - -texticon = { - icon = drylands_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/drylands.dds" - fontsize = 16 - } -} - -texticon = { - icon = oasis_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/oasis.dds" - fontsize = 16 - } -} - -texticon = { - icon = steppe_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/steppe.dds" - fontsize = 16 - } -} - -texticon = { - icon = farmlands_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/farmlands.dds" - fontsize = 16 - } -} - -texticon = { - icon = floodplains_big - iconsize = { - size = { 38 38 } - offset = { 0 12 } - texture = "gfx/interface/icons/terrain_types/floodplains.dds" - fontsize = 16 - } -} - -texticon = { - icon = advantage_icon - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/icon_battle_advantage.dds" - fontsize = 16 - } -} - -texticon = { - icon = countered_icon - iconsize = { - size = { 24 24 } - offset = { 0 4 } - texture = "gfx/interface/icons/icon_maa_countered.dds" - fontsize = 16 - } -} - -texticon = { - icon = time_icon - iconsize = { - texture = "gfx/interface/icons/icon_time.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = warning_icon - iconsize = { - texture = "gfx/interface/icons/symbols/icon_warning.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = alert_icon - iconsize = { - texture = "gfx/interface/icons/symbols/icon_alert.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cross_icon - iconsize = { - texture = "gfx/interface/icons/symbols/icon_cross.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = check_icon - iconsize = { - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = stress_icon - iconsize = { - texture = "gfx/interface/icons/stress/icon_stress.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dread_icon - iconsize = { - texture = "gfx/interface/icons/icon_dread.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = exposed_icon - iconsize = { - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = supply_icon - iconsize = { - texture = "gfx/interface/icons/icon_supply.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = provisions_icon - iconsize = { - texture = "gfx/interface/icons/icon_camp_supply.dds" - size = { 25 25 } - framesize = { 60 60 } - frame = 1 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = external_slots_icon - iconsize = { - texture = "gfx/interface/icons/control.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = task_contract_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/contract.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = supply_trend_negative_icon - iconsize = { - texture = "gfx/interface/icons/symbols/icon_supplies_trend.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gathering_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/army_icon_gathering.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = portrait_punishment_icon - iconsize = { - texture = "gfx/interface/icons/portraits/punishment.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = skill_diplomacy_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0 0 0.167 1 } - } -} - -texticon = { - icon = skill_martial_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.167 0 0.333 1 } - } -} -texticon = { - icon = skill_stewardship_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.333 0 0.5 1 } - } -} -texticon = { - icon = skill_intrigue_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.5 0 0.667 1 } - } -} -texticon = { - icon = skill_learning_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.667 0 0.833 1 } - } -} - -texticon = { - icon = skill_prowess_icon - iconsize = { - texture = "gfx/interface/icons/icon_prowess.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = stress_gain_icon - iconsize = { - texture = "gfx/interface/icons/stress/icon_stress_gain.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = stress_critical_icon - iconsize = { - texture = "gfx/interface/icons/stress/icon_stress_gain_critical.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = stress_loss_icon - iconsize = { - texture = "gfx/interface/icons/stress/icon_stress_loss.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = death_icon - iconsize = { - texture = "gfx/interface/icons/icon_dead.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_icon - iconsize = { - texture = "gfx/interface/icons/icon_scheme.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = personal_scheme_icon - iconsize = { - texture = "gfx/interface/icons/scheme_types/icon_scheme_personal.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = virtue_icon - iconsize = { - texture = "gfx/interface/icons/traits/virtue.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = sin_icon - iconsize = { - texture = "gfx/interface/icons/traits/sin.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = crime_icon - iconsize = { - texture = "gfx/interface/icons/portraits/punishment.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hostage_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_hostage.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fort_icon - iconsize = { - texture = "gfx/interface/icons/text_icons/icon_holding.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = garrison_icon - iconsize = { - texture = "gfx/interface/icons/icon_garrison.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = army_quality_icon_1 - iconsize = { - texture = "gfx/interface/icons/army_quality_icon.dds" - size = { 25 25 } - offset = { 0 6 } - uv ={ 0 0 0.2 1 } - fontsize = 16 - } -} - -texticon = { - icon = army_quality_icon_2 - iconsize = { - texture = "gfx/interface/icons/army_quality_icon.dds" - size = { 25 25 } - offset = { 0 6 } - uv ={ 0.2 0 0.4 1 } - fontsize = 16 - } -} - -texticon = { - icon = army_quality_icon_3 - iconsize = { - texture = "gfx/interface/icons/army_quality_icon.dds" - size = { 25 25 } - offset = { 0 6 } - uv ={ 0.4 0 0.6 1 } - fontsize = 16 - } -} - -texticon = { - icon = army_quality_icon_4 - iconsize = { - texture = "gfx/interface/icons/army_quality_icon.dds" - size = { 25 25 } - offset = { 0 6 } - uv ={ 0.6 0 0.8 1 } - fontsize = 16 - } -} - -texticon = { - icon = army_quality_icon_5 - iconsize = { - texture = "gfx/interface/icons/army_quality_icon.dds" - size = { 25 25 } - offset = { 0 6 } - uv ={ 0.8 0 1 1 } - fontsize = 16 - } -} - -texticon = { - icon = knight_icon - iconsize = { - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = intimidated_icon - iconsize = { - texture = "gfx/interface/icons/portraits/dread_values.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.334 0 0.666 1 } - } -} - -texticon = { - icon = terrified_icon - iconsize = { - texture = "gfx/interface/icons/portraits/dread_values.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.666 0 1 1 } - } -} - -texticon = { - icon = weak_hook_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 25 25 } - framesize = { 40 40 } - frame = 1 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = unspent_strong_hook_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 25 25 } - framesize = { 40 40 } - frame = 2 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = spent_strong_hook_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 25 25 } - framesize = { 40 40 } - frame = 3 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hookable_secret_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 25 25 } - framesize = { 40 40 } - frame = 4 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hook_on_me_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 25 25 } - framesize = { 40 40 } - frame = 5 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pressed_claim - iconsize = { - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = unpressed_claim - iconsize = { - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = implicit_claim - iconsize = { - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = title_succession - iconsize = { - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -#texticon = { -# icon = test_flower -# iconsize = { -# texture = "gfx\interface\icons\traits\beauty_good_2.dds" -# size = { 35 35 } -# fontsize = 16 -# } -#} - -texticon = { - icon = tutorial_education_trait_icon - iconsize = { - texture = "gfx/interface/icons/traits/education_martial_3.dds" #Note: update this if you change the Tutorial character or their Education trait - size = { 35 35 } - #offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fickle_icon - iconsize = { - texture = "gfx/interface/icons/traits/fickle.dds" - size = { 35 35 } - #offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = calm_icon - iconsize = { - texture = "gfx/interface/icons/traits/calm.dds" - size = { 35 35 } - #offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = generous_icon - iconsize = { - texture = "gfx/interface/icons/traits/generous.dds" - size = { 35 35 } - #offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = temperate_icon - iconsize = { - texture = "gfx/interface/icons/traits/temperate.dds" - size = { 35 35 } - offset = { 0 12 } - fontsize = 16 - } -} - -texticon = { - icon = wrathful_icon - iconsize = { - texture = "gfx/interface/icons/traits/wrathful.dds" - size = { 35 35 } - offset = { 0 12 } - fontsize = 16 - } -} - -texticon = { - icon = impatient_icon - iconsize = { - texture = "gfx/interface/icons/traits/impatient.dds" - size = { 35 35 } - offset = { 0 12 } - fontsize = 16 - } -} - -texticon = { - icon = temperate_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/temperate.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = wrathful_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/wrathful.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gregarious_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/gregarious.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = impatient_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/impatient.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ambitious_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/ambitious.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = compassionate_icon_tutorial - iconsize = { - texture = "gfx/interface/icons/traits/compassionate.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = brave_icon - iconsize = { - texture = "gfx/interface/icons/traits/brave.dds" - size = { 35 35 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = lustful_icon - iconsize = { - texture = "gfx/interface/icons/traits/lustful.dds" - size = { 35 35 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gallowsbait_icon - iconsize = { - texture = "gfx/interface/icons/traits/gallowsbait.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = disembarked_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/army_icon_disembarked.dds" - size = { 23 23 } - offset = { 0 3 } - fontsize = 16 - } -} - -texticon = { - icon = embarked_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/naval_transportation.dds" - size = { 23 23 } - offset = { 0 3 } - fontsize = 16 - } -} - -texticon = { - icon = no_siege_weapon_icon - iconsize = { - texture = "gfx/interface/icons/text_icons/no_siege_weapons.dds" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = pending_court_events - iconsize = { - texture = "gfx/interface/_debug/pink_square_chill.png" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = debug_icon - iconsize = { - texture = "gfx/interface/_debug/icon_placeholder_02.dds" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = new_court_artifacts - iconsize = { - texture = "gfx/interface/_debug/pink_square_chill.png" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = below_cgv_expectations - iconsize = { - texture = "gfx/interface/_debug/pink_square_chill.png" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = current_court_events - iconsize = { - texture = "gfx/interface/_debug/pink_square_chill.png" - size = { 28 28 } - offset = { 0 4 } - fontsize = 16 - } -} - -texticon = { - icon = realm_capital_icon - iconsize = { - texture = "gfx/interface/icons/icon_capital.dds" - size = { 30 30 } - fontsize = 16 - } -} - -texticon = { - icon = arrange_marriage_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_marriage.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = fervor_icon - iconsize = { - texture = "gfx/interface/icons/icon_fervor.dds" - size = { 22 22 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = command_modifier_icon - iconsize = { - texture = "gfx/interface/icons/icon_commander.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = alliance_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/alliance.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -## FP2 -texticon = { - icon = struggle_iberia_phase_compromise - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_iberia_phase_compromise.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_iberia_phase_conciliation - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_iberia_phase_conciliation.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_iberia_phase_hostility - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_iberia_phase_hostility.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_iberia_phase_opportunity - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_iberia_phase_opportunity.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = friend_icon - iconsize = { - texture = "gfx/interface/icons/portraits/friend.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = best_friend_icon - iconsize = { - texture = "gfx/interface/icons/portraits/best_friend.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rival_icon - iconsize = { - texture = "gfx/interface/icons/portraits/rival.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nemesis_icon - iconsize = { - texture = "gfx/interface/icons/portraits/nemesis.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = grudge_icon - iconsize = { - texture = "gfx/interface/icons/portraits/rival_grudge.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = lover_icon - iconsize = { - texture = "gfx/interface/icons/portraits/lover.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = soulmate_icon - iconsize = { - texture = "gfx/interface/icons/portraits/soulmate.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = blood_brother_icon - iconsize = { - texture = "gfx/interface/icons/portraits/blood_brother.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -### FP3 -texticon = { - icon = struggle_persia_phase_stabilisation - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_persia_phase_stabilisation.dds" # DBD donation of FP2 icons - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_persia_phase_unrest - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_persia_phase_unrest.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_persia_ending_phase_concession - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_persia_ending_phase_concession.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = struggle_persia_phase_ending_foundation - iconsize = { - texture = "gfx/interface/icons/struggle_types/struggle_persia_phase_ending_foundation.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity - iconsize = { - texture = "gfx/interface/icons/currencies/icon_house_unity.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity_antagonistic - iconsize = { - texture = "gfx/interface/icons/currencies/house_unity/antagonistic.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity_competitive - iconsize = { - texture = "gfx/interface/icons/currencies/house_unity/competitive.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity_impassive - iconsize = { - texture = "gfx/interface/icons/currencies/house_unity/impassive.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity_friendly - iconsize = { - texture = "gfx/interface/icons/currencies/house_unity/friendly.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_house_unity_harmonious - iconsize = { - texture = "gfx/interface/icons/currencies/house_unity/harmonious.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = damage_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/unit_stat_damage.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = toughness_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/unit_stat_toughness.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pursuit_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/unit_stat_pursuit.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = screen_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/unit_stat_screen.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = siege_progress_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/unit_stat_siege_progress.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = raid_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/icon_raid.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = control_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/control.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_success_icon # Name referenced in code - iconsize = { - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_success_growth_icon # Name referenced in code - iconsize = { - texture = "gfx/interface/icons/schemes/icon_scheme_success_growth.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_success_max_icon # Name referenced in code - iconsize = { - texture = "gfx/interface/icons/schemes/icon_scheme_max_success.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_phase_duration_icon # Name referenced in code - iconsize = { - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_secrecy_icon # Name referenced in code - iconsize = { - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = scheme_opportunity_icon - iconsize = { - texture = "gfx/interface/icons/schemes/icon_scheme_opportunity.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = travel_icon - iconsize = { - texture = "gfx/interface/icons/travel/icon_travel_hud_placeholder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = travel_safety_icon - iconsize = { - texture = "gfx/interface/icons/travel/travel_safety_icon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = travel_speed_icon - iconsize = { - texture = "gfx/interface/icons/travel/travel_speed_icon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = movement_speed_icon - iconsize = { - texture = "gfx/interface/icons/combat_effects/moving_army.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = travel_danger_icon - iconsize = { - texture = "gfx/interface/icons/travel_danger_types/generic_icon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = camp_travel_domicile_icon - iconsize = { - texture = "gfx/interface/icons/court_position_types/travel_leader_court_position.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = camp_travel_short_icon - iconsize = { - texture = "gfx/interface/icons/trait_level_tracks/travel.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -# For the Current Situation widget - -texticon = { - icon = titles_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/titles.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = barony_icon - iconsize = { - texture = "gfx/interface/icons/barony_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = county_icon - iconsize = { - texture = "gfx/interface/icons/county_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = duchy_icon - iconsize = { - texture = "gfx/interface/icons/duchy_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = kingdom_icon - iconsize = { - texture = "gfx/interface/icons/kingdom_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = empire_icon - iconsize = { - texture = "gfx/interface/icons/empire_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hegemony_icon - iconsize = { - texture = "gfx/interface/icons/hegemony_crown.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = vassal_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_vassal.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = liege_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_liege.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rightful_liege_icon - iconsize = { - texture = "gfx/interface/icons/levy_tax_reduction.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = stationed_regiment_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/marshal_job.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = war_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/declare_war_interaction.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - - uv ={ 0.85 0 0 0.85 } - } -} - -texticon = { - icon = powerful_vassal_icon - iconsize = { - texture = "gfx/interface/icons/powerful_vassal_icon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cs_arrange_marriage_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/marriage.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = court_physician_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/court_physician.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = court_astrologer_icon - iconsize = { - texture = "gfx/interface/icons/court_position_types/court_astrologer_court_position.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bad_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/generic_bad_effect.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bishop_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/bishop.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cs_knight_icon - iconsize = { - texture = "gfx/interface/icons/icon_knight.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = child_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/child.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cs_weak_hook_icon - iconsize = { - texture = "gfx/interface/icons/portraits/hook_secret.dds" - size = { 24 24 } - framesize = { 40 40 } - frame = 1 - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = law_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/law.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = domain_icon - iconsize = { - texture = "gfx/interface/icons/icon_domain.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = building_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/building.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = concubine_icon - iconsize = { - texture = "gfx/interface/icons/concubine_icon.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = prison_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/prison.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = faction_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/faction.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_dynasty.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_icon_alt - iconsize = { - texture = "gfx/interface/icons/message_feed/dynasty.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = catch_all_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/a_catch_all_councillor_icon.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = religious_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/religious.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = debt_icon - iconsize = { - texture = "gfx/interface/icons/combat_effects/owner_in_debt.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = artifact_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/artifact.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = steal_artifact_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_scheme_steal_back_artifact.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = opinion_icon - iconsize = { - texture = "gfx/interface/icons/icon_opinion.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = builder_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/builder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = cautious_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/cautious.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = conqueror_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/conqueror.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = unpredictable_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/unpredictable.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = warlike_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/warlike.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pious_builder_icon - iconsize = { - texture = "gfx/interface/icons/vassal_stances/zealot.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = personality_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/trait.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = development_icon - iconsize = { - texture = "gfx/interface/icons/development.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = activity_hunt - iconsize = { - texture = "gfx/interface/icons/activities/activity_hunt.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - - -texticon = { - icon = cultural_acceptance_icon - iconsize = { - texture = "gfx/interface/icons/council_task_types/task_accept_culture.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = explore_cultures_icon - iconsize = { - texture = "gfx/interface/icons/council_task_types/task_kurultai_culture.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = hof_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/religious_councillor_job.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = acclaimed_knight_icon - iconsize = { - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = sop_icon - iconsize = { - texture = "gfx/interface/icons/scale_of_power.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = promote_authority_icon - iconsize = { - texture = "gfx/interface/icons/diarchy_mandates/promote_authority.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = declare_regent_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_declare_me_regent.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = icon_contract_modification_single - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_contract_modification_single.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = revoke_title - iconsize = { - texture = "gfx/interface/icons/character_interactions/revoke_title.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = end_regency - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_dismiss_temporary_regency.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = hostage - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_hostage.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = balance_scale - iconsize = { - texture = "gfx/interface/icons/character_interactions/scroll_scales.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = tax_collector_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/tax_collector.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = aptitude - iconsize = { - texture = "gfx/interface/icons/aptitude_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - color = "color_red" - } -} - -texticon = { - icon = change_indicator - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - color = "color:red" - } -} - -texticon = { - icon = change_down_bad_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 1 - color = "color_red" - } -} - -texticon = { - icon = change_down_bad_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 2 - color = "color_red" - } -} - - -texticon = { - icon = change_down_neutral_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 1 - } -} - -texticon = { - icon = change_down_neutral_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 2 - } -} - -texticon = { - icon = change_down_good_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 1 - color = "color_green" - } -} - -texticon = { - icon = change_down_good_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 2 - color = "color_green" - } -} - -texticon = { - icon = change_none_neutral - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 3 - color = "color_yellow" - } -} - -texticon = { - icon = change_none_bad - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 3 - color = "color_red" - } -} - - -texticon = { - icon = change_none_good - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 3 - color = "color_green" - } -} - -texticon = { - icon = change_up_good_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 4 - color = "color_green" - } -} - -texticon = { - icon = change_up_good_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 5 - color = "color_green" - } -} - -texticon = { - icon = change_up_bad_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 4 - color = "color_red" - } -} - -texticon = { - icon = change_up_bad_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 5 - color = "color_red" - } -} - - -texticon = { - icon = change_up_neutral_1 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 4 - } -} - -texticon = { - icon = change_up_neutral_2 - iconsize = { - texture = "gfx/interface/icons/change_indicator_icons.dds" - size = { 25 25 } - offset = { 0 6 } - framesize = { 26 26 } - fontsize = 16 - frame = 5 - } -} - -texticon = { - icon = epidemic_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/plague.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = legend_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/legend.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = landless_rulers_icon - iconsize = { - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = story_content_icon - iconsize = { - texture = "gfx/interface/icons/court_position_types/champion_court_position.dds" - size = { 40 40 } - offset = { 0 14 } - fontsize = 16 - } -} - - -texticon = { - icon = byzantium_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/byzantine_eagle_mixed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = legends_of_ck_icon - iconsize = { - texture = "gfx/interface/icons/icon_legends_of_ck.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = blank_icon - iconsize = { - texture = "gfx/interface/progressbars/blank.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = diplomacy_lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/lifestyles/diplomacy_lifestyle.dds" - size = { 40 40 } - framesize = { 160 160 } - frame = 3 - offset = { 0 16 } - fontsize = 16 - } -} - -texticon = { - icon = intrigue_lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/lifestyles/intrigue_lifestyle.dds" - size = { 40 40 } - framesize = { 160 160 } - frame = 3 - offset = { 0 16 } - fontsize = 16 - } -} - -texticon = { - icon = learning_lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/lifestyles/learning_lifestyle.dds" - size = { 40 40 } - framesize = { 160 160 } - frame = 3 - offset = { 0 16 } - fontsize = 16 - } -} - -texticon = { - icon = martial_lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/lifestyles/martial_lifestyle.dds" - size = { 40 40 } - framesize = { 160 160 } - frame = 3 - offset = { 0 16 } - fontsize = 16 - } -} - -texticon = { - icon = stewardship_lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/lifestyles/stewardship_lifestyle.dds" - size = { 40 40 } - framesize = { 160 160 } - frame = 3 - offset = { 0 16 } - fontsize = 16 - } -} - -texticon = { - icon = crownsoftheworld_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_019.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = khansofthesteppe_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_020.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = allunderheaven_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_022.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = legendsofthedead_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_011.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = roadstopower_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_014.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = couture_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_013.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = northafrican_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_012.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = westslavic_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_016.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = legacyofpersia_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_010.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = elegance_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_008.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = toursandtournaments_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_007.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fateofiberia_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_005.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = royalcourt_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_004.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = wrath_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_003.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = abbasid_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_002.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = garments_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_001.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = medieval_monuments_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_017.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = arctic_attire_icon - iconsize = { - texture = "gfx/interface/icons/dlc/dlc_018.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = skills_icon - iconsize = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 360 60 } - fontsize = 32 - } -} - -texticon = { - icon = tutorial_screenshot_1 - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_1.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = tutorial_screenshot_1_china - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_1_china.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - - -texticon = { - icon = tutorial_screenshot_2 - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_2.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} -texticon = { - icon = tutorial_screenshot_3 - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_3.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = tutorial_screenshot_4 - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_4.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} -texticon = { - icon = tutorial_screenshot_5 - iconsize = { - texture = "gfx/interface/icons/tutorial_screenshot_5.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} -texticon = { - icon = reactive_advice_icon - iconsize = { - texture = "gfx/interface/icons/alerts/generic_reactive_advice.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.333 0 0.666 1 } - - } -} - -texticon = { - icon = scheme_agent_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/spy_master.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = council_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/council.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = guest_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/guest.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = culture_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/culture.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = secret_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/secret.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = royal_court_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/royal_court.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = marriage_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/marriage.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = court_position_icon - iconsize = { - texture = "gfx/interface/icons/court_position_types/seneschal_court_position.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = holy_order_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/holy_order.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = independence_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/independence.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = retreat_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/retreat.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = accolade_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/knight_acclaimed.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = activity_tournament - iconsize = { - texture = "gfx/interface/icons/activities/activity_hunt.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = struggle_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/struggle.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = county_corruption_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/county_corruption.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = inspiration_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/inspiration.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = excommunication_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/excommunication.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = banner_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/banner.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = courtier_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/courtier.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = conversion_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/task_conversion.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tournament_icon - iconsize = { - texture = "gfx/interface/icons/activities/activity_tournament.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = heir_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/heir.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = lifestyle_icon - iconsize = { - texture = "gfx/interface/icons/alerts/action_can_choose_lifestyle.dds" - framesize = { 144 144 } - frame = 2 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = nickname_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/nickname.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = health_icon - iconsize = { - texture = "gfx/interface/icons/character_status/icon_health.dds" - framesize = { 60 60 } - frame = 2 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = health_icon_excellent - iconsize = { - texture = "gfx/interface/icons/character_status/icon_health.dds" - framesize = { 60 60 } - frame = 1 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = health_icon_poor - iconsize = { - texture = "gfx/interface/icons/character_status/icon_health.dds" - framesize = { 60 60 } - frame = 3 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = health_icon_dying - iconsize = { - texture = "gfx/interface/icons/character_status/icon_health.dds" - framesize = { 60 60 } - frame = 4 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = dynasty_perk_icon - iconsize = { - texture = "gfx/interface/icons/alerts/action_can_choose_dynasty_perk.dds" - framesize = { 144 144 } - frame = 2 - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = historical_character_icon - iconsize = { - texture = "gfx/interface/icons/historical_character.dds" - size = { 40 40 } - offset = { 0 13 } - fontsize = 16 - } -} - -texticon = { - icon = jester_icon - iconsize = { - texture = "gfx/interface/icons/court_position_types/court_jester_court_position.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = activity_hike - iconsize = { - texture = "gfx/interface/icons/activities/activity_roaming.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = activity_monument_expedition - iconsize = { - texture = "gfx/interface/icons/activities/activity_journey.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = activity_inspection - iconsize = { - texture = "gfx/interface/icons/activities/activity_survey.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = governor_efficiency - iconsize = { - texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = governor_efficiency_bad - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_damage_efficiency.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = governor_efficiency_good - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_boost_efficiency.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = military_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_military_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = frontier_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_frontier_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = civilian_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_civilian_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = balanced_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_balanced_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = naval_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_naval_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = imperial_administration - iconsize = { - texture = "gfx/interface/icons/theme_administration_types/icon_game_concept_imperial_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = celestial_military_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_military_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = celestial_standard_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_standard_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = celestial_industrial_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_industrial_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = celestial_metropolitan_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_metropolitan_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = celestial_protectorate_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_protectorate_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_administrative - iconsize = { - texture = "gfx/interface/icons/government_types/administrative_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_adventurer - iconsize = { - texture = "gfx/interface/icons/government_types/landless_adventurer_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_celestial - iconsize = { - texture = "gfx/interface/icons/government_types/celestial_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_nomad - iconsize = { - texture = "gfx/interface/icons/government_types/government_type_nomad.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_steppe_admin - iconsize = { - texture = "gfx/interface/icons/government_types/government_type_steppe_admin.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_meritocratic - iconsize = { - texture = "gfx/interface/icons/government_types/meritocratic_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_herder - iconsize = { - texture = "gfx/interface/icons/government_types/government_type_herder.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_clan - iconsize = { - texture = "gfx/interface/icons/government_types/clan_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = government_type_feudal - iconsize = { - texture = "gfx/interface/icons/government_types/feudal_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_holy_order - iconsize = { - texture = "gfx/interface/icons/government_types/holy_order_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_mercenary - iconsize = { - texture = "gfx/interface/icons/government_types/mercenary_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = government_type_republic - iconsize = { - texture = "gfx/interface/icons/government_types/republic_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = government_type_tribal - iconsize = { - texture = "gfx/interface/icons/government_types/tribal_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_theocracy - iconsize = { - texture = "gfx/interface/icons/government_types/theocracy_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_wanua - iconsize = { - texture = "gfx/interface/icons/government_types/wanua_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = followers_icon - iconsize = { - texture = "gfx/interface/icons/traits/adventurer_follower.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = rare_artifact_icon - iconsize = { - texture = "gfx/interface/icons/artifact/artefact_icons_unique_artifact_excalibur.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = pilgrim_trait_icon - iconsize = { - texture = "gfx/interface/icons/traits/pilgrim.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = hajjaj_trait_icon - iconsize = { - texture = "gfx/interface/icons/traits/hajjaj.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = gallowsbait_trait_icon - iconsize = { - texture = "gfx/interface/icons/traits/gallowsbait.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = august_trait_icon - iconsize = { - texture = "gfx/interface/icons/traits/august.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = task_contract_tier_icon - iconsize = { - texture = "gfx/interface/icons/contract_tier.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = ra_admin_gov_1 - iconsize = { - texture = "gfx/interface/ra_admin_gov_1.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = ra_admin_gov_8 - iconsize = { - texture = "gfx/interface/ra_admin_gov_8.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = ra_landless_adventurer - iconsize = { - texture = "gfx/interface/ra_landless_adventurer.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = ra_landless_adventurer_2 - iconsize = { - texture = "gfx/interface/ra_landless_adventurer_2.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = harrying_widget - iconsize = { - texture = "gfx/interface/icons/widgets/harrying_widget.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = task_conversion - iconsize = { - texture = "gfx/interface/icons/vassal_directives/convert_faith.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = task_promote_culture - iconsize = { - texture = "gfx/interface/icons/vassal_directives/promote_culture.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = task_accept_culture - iconsize = { - texture = "gfx/interface/icons/vassal_directives/improve_cultural_acceptance.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = task_train_commanders - iconsize = { - texture = "gfx/interface/icons/vassal_directives/boost_men_at_arms.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = task_develop_county - iconsize = { - texture = "gfx/interface/icons/vassal_directives/improve_development.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_fortification - iconsize = { - texture = "gfx/interface/icons/vassal_directives/construct_fortification_buildings.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_military - iconsize = { - texture = "gfx/interface/icons/vassal_directives/construct_military_buildings.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_economical - iconsize = { - texture = "gfx/interface/icons/vassal_directives/construct_economic_buildings.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_maa - iconsize = { - texture = "gfx/interface/icons/vassal_directives/recruit_men_at_arms.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_none - iconsize = { - texture = "gfx/interface/icons/vassal_directives/no_directive.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = directive_refusal - iconsize = { - texture = "gfx/interface/icons/vassal_directives/refusal.dds" - size = { 35 35 } - offset = { 0 11 } - fontsize = 16 - } -} - -texticon = { - icon = ra_admin_troops_1 - iconsize = { - texture = "gfx/interface/ra_admin_troops_1.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = ra_admin_troops_5 - iconsize = { - texture = "gfx/interface/ra_admin_troops_5.dds" - size = { 505 259 } - offset = { 0 230 } - fontsize = 18 - } -} - -texticon = { - icon = icon_scheme_challenge_status - iconsize = { - texture = "gfx/interface/icons/scheme_types/icon_scheme_challenge_status.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = activity_feast - iconsize = { - texture = "gfx/interface/icons/activities/activity_feast.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = county_fertility_icon - iconsize = { - texture = "gfx/interface/icons/icon_county_fertility.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = loot_icon - iconsize = { - texture = "gfx/interface/icons/icon_loot.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = attrition_icon - iconsize = { - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = obedience_icon - iconsize = { - texture = "gfx/interface/icons/portraits/obedient.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = disobedience_icon - iconsize = { - texture = "gfx/interface/icons/portraits/disobedient_small.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = disobedience_icon - iconsize = { - texture = "gfx/interface/icons/portraits/disobedient.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tributary_icon - iconsize = { - texture = "gfx/interface/icons/tributary.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = raze_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/icon_raid_estate.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = activity_coronation - iconsize = { - texture = "gfx/interface/icons/activities/activity_coronation.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv ={ 0.05 0.05 1 1 } - } -} - -texticon = { - icon = recruit_from_subjects_icon - iconsize = { - texture = "gfx/interface/icons/vassal_directives/recruit_men_at_arms.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_mandala - iconsize = { - texture = "gfx/interface/icons/government_types/mandala_government.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = great_project_icon - iconsize = { - texture = "gfx/interface/icons/icon_great_project.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_ritsuryo - iconsize = { - texture = "gfx/interface/icons/government_types/japan_administrative_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_soryo - iconsize = { - texture = "gfx/interface/icons/government_types/japan_feudal_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = government_type_meritocratic - iconsize = { - texture = "gfx/interface/icons/government_types/meritocratic_government.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = eunuch_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/eunuch.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = innovation_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/technology.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = fascination_icon - iconsize = { - texture = "gfx/interface/icons/inspirations/research_inspiration.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = meritocratic_military_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_military_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = meritocratic_standard_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_standard_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = meritocratic_industrial_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_industrial_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = meritocratic_protectorate_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_protectorate_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = japan_administrative_standard_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_standard_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = japan_administrative_trade_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_industrial_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = japan_administrative_military_administration - iconsize = { - texture = "gfx/interface/icons/celestial_administration_types/icon_game_concept_celestial_military_administration.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = child_exam_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/tgp_send_to_childrens_examination_interaction.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = provincial_exam_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/provincial_examination.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = metropolitan_exam_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/imperial_examination.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = palace_exam_icon - iconsize = { - texture = "gfx/interface/icons/character_interactions/palace_examination.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = appointment_score - iconsize = { - texture = "gfx/interface/icons/appointment_score.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = appointment_score_small - iconsize = { - texture = "gfx/interface/icons/appointment_score.dds" - size = { 25 25 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = movement_power_icon - iconsize = { - texture = "gfx/interface/icons/group_power.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = innovation_fascination_icon - iconsize = { - texture = "gfx/interface/icons/icon_game_concept_innovation_fascination.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - -texticon = { - icon = innovation_spread_icon - iconsize = { - texture = "gfx/interface/icons/icon_game_concept_innovation_spread.dds" - size = { 28 28 } - offset = { 0 8 } - fontsize = 16 - } -} - - - -# ph texticon -texticon = { - icon = placeholder - iconsize = { - texture = "gfx/interface/_debug/icon_placeholder_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = confederation_icon - iconsize = { - texture = "gfx/interface/icons/message_feed/confederation.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = disaster - iconsize = { - texture = "gfx/interface/icons/situation_types/natural_disaster_generic.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = bloc_cohesion - iconsize = { - texture = "gfx/interface/icons/bloc_cohesion.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = house_bloc_icon - iconsize = { - texture = "gfx/interface/icons/icon_bloc.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = elder_icon - iconsize = { - texture = "gfx/interface/icons/portraits/elder.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = disciple_icon - iconsize = { - texture = "gfx/interface/icons/portraits/disciple.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = barter_icon - iconsize = { - texture = "gfx/interface/icons/icon_barter.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = barter_goods_icon - iconsize = { - texture = "gfx/interface/icons/icon_barter.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -# dynastic cycle -texticon = { - icon = tgp_dynastic_cycle_expansion_icon - iconsize = { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_expansion.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tgp_dynastic_cycle_advancement_icon - iconsize = { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_advancement.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tgp_dynastic_cycle_instability_icon - iconsize = { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_instability.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tgp_dynastic_cycle_conquest_icon - iconsize = { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_conquest.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = tgp_dynastic_cycle_chaos_icon - iconsize = { - texture = "gfx/interface/icons/dynastic_cycle/dynastic_cycle_phase_chaos.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = japanese_horse_archers_icon - iconsize = { - texture = "gfx/interface/icons/regimenttypes/japanese_horse_archers.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mandala_aspect_icon - iconsize = { - texture = "gfx/interface/icons/powerful_family_bonus/no_aspect_small.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = mandala_radiance_icon - iconsize = { - texture = "gfx/interface/icons/mandala_radiance.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = silk_road_icon - iconsize = { - texture = "gfx/interface/icons/situation_types/silk_road_situation.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = elder - iconsize = { - texture = "gfx/interface/icons/message_feed/elder.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = minister - iconsize = { - texture = "gfx/interface/icons/court_position_types/favored_minister_court_position.dds" - size = { 28 28 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = unaligned_movement - iconsize = { - texture = "gfx/interface/icons/portraits/dynastic_cycle_group_unaligned.dds" - size = { 24 24 } - offset = { -2 6 } - fontsize = 16 - } -} - -texticon = { - icon = land_held - iconsize = { - texture = "gfx/interface/icons/icon_game_concept_house_realm_county_control.dds" - size = { 24 24 } - offset = { -2 6 } - fontsize = 16 - } -} - - -texticon = { - icon = passed_examination - iconsize = { - texture = "gfx/interface/icons/flat_icons/passed_examination_icon_color.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = expansion_decree_icon - iconsize = { - texture = "gfx/interface/icons/text_icons/tributaries.dds" - size = { 24 24 } - offset = { 0 6 } - fontsize = 16 - } -} diff --git a/N3OW/gui/texticons_legitimacy.gui b/N3OW/gui/texticons_legitimacy.gui deleted file mode 100644 index 6bc9a8ab..00000000 --- a/N3OW/gui/texticons_legitimacy.gui +++ /dev/null @@ -1,32 +0,0 @@ -texticon = { - icon = legitimacy_icon - iconsize = { - texture = "gfx/interface/icons/legitimacy_types/_default.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - } -} - -texticon = { - icon = legitimacy_icon_nomadic - iconsize = { - texture = "gfx/interface/icons/legitimacy_types/nomadic_legitimacy.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - } -} - -texticon = { - icon = legitimacy_icon_mandate - iconsize = { - texture = "gfx/interface/icons/legitimacy_types/mandate_legitimacy.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - uv = { 0.05 0.05 1 1 } - } -} diff --git a/N3OW/gui/texticons_religion.gui b/N3OW/gui/texticons_religion.gui deleted file mode 100644 index f7fdfdb3..00000000 --- a/N3OW/gui/texticons_religion.gui +++ /dev/null @@ -1,810 +0,0 @@ -texticon = { - icon = piety_icon - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = piety_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = piety_level_0_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_christian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_christian_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_confucianism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_confucianism_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_taoism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_taoism_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_islam - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_islam_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_pagan - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_pagan_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_eastern - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_eastern_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_0_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = piety_level_7_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} -texticon = { - icon = piety_level_8_icon_zoroastrian - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_zoroastrian_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - - -texticon = { - icon = piety_level_0_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_00.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_1_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_01.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_2_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_02.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_3_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_03.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_4_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_04.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_5_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_05.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_6_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_06.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_7_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_07.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} - -texticon = { - icon = piety_level_8_icon_judaism - iconsize = { - texture = "gfx/interface/icons/modifiers/icon_piety_judaism_08.dds" - size = { 25 25 } - offset = { 0 6 } - fontsize = 16 - } -} diff --git a/N3OW/gui/tutorial_highlight.gui b/N3OW/gui/tutorial_highlight.gui deleted file mode 100644 index 1d7f568b..00000000 --- a/N3OW/gui/tutorial_highlight.gui +++ /dev/null @@ -1,93 +0,0 @@ -widget = { - name = "highlight_widget" - size = { 100 100 } - layer = top # The layer will be overriden to be that of what it is highlighting, this is here as a just in case to make sure it appears somewhere high up - alwaystransparent = yes - - widget = { - size = { 100% 100% } - parentanchor = center - - background = { - texture = "gfx/interface/component_effects/effect_tutorial_highlight.dds" - spriteType = Corneredtiled - spriteborder = { 30 30 } - margin = { 10 10 } - } - - state = { - name = start - next = a - trigger_on_create = yes - - alpha = 0 - scale = 1 - using = Animation_Curve_Default - } - - state = { - name = a - next = b - - duration = 0.5 - - alpha = 0 - scale = 3 - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - duration = 0.5 - - animation = { - alpha = 1 - bezier = { 0.75 0 0.8 0.6 } - } - scale = 1.5 - } - - state = { - name = c - next = d - - duration = 0.25 - - alpha = 1 - scale = 1 - using = Animation_Curve_Default - } - - state = { - name = d - next = e - - duration = 1 - alpha = 0 - scale = 1 - using = Animation_Curve_Default - } - - state = { - name = e - next = f - - duration = 0.7 - alpha = 0 - - using = Animation_Curve_Default - } - - state = { - name = f - next = e - - duration = 1 - alpha = 1 - - using = Animation_Curve_Default - } - } -} diff --git a/N3OW/gui/window_accolade.gui b/N3OW/gui/window_accolade.gui deleted file mode 100644 index 8de60e67..00000000 --- a/N3OW/gui/window_accolade.gui +++ /dev/null @@ -1,1172 +0,0 @@ -###################################################### -################# ACCOLADE VIEW ################### -###################################################### - -window = { - name = "accolade_view" - size = { 540 865 } - parentanchor = top|right - position = { -626 170 } - movable = no - layer = middle - datacontext = "[AccoladeView.AccessMilitaryView]" - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { -626 170 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -570 - } - - vbox = { - datacontext = "[AccoladeView.GetAccolade]" - visible = "[And( And( Not( AccoladeView.IsShowingSuccessors ), Not( AccoladeView.IsShowingPotentialAcclaimed ) ), Not( AccoladeView.IsShowingHistory ) )]" - - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Accolade.GetNameNoTooltip]" - visible = "[Not( AccoladeView.IsRenaming )]" - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - parentanchor = top|hcenter - size = { 380 30 } - position = { 0 10 } - visible = "[AccoladeView.IsRenaming]" - - blockoverride "editbox_properties" - { - name = "accolade_name" - text = "[AccoladeView.GetTempName]" - ontextedited = "[AccoladeView.EditName]" - onreturnpressed = "[AccoladeView.SubmitName]" - } - } - - blockoverride "button_me" - { - texture = "gfx/interface/icons/flat_icons/edit_text.dds" - - tooltip = "" - - visible = "[Not( AccoladeView.IsRenaming )]" - onclick = "[AccoladeView.ToggleRenaming]" - } - - blockoverride "button_close" - { - onclick = "[AccoladeView.Close]" - onclick = "[OpenGameView( 'knights' )]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - tooltip = "BACK_TOOLTIP" - } - - } - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - margin_top = 10 - using = Background_Area_Dark - alpha = 0.6 - } - - background = { - margin_top = 10 - texture = "gfx/interface/illustrations/activity_header_backgrounds/activity_tournament.dds" - alpha = 0.3 - using = Mask_Rough_Edges - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 4 - margin_top = -10 - - background = { - margin_top = 10 - using = Background_Area_Dark - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - } - - icon = { - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 50 50 } - } - - text_single = { - text = "[Accolade.GetAcclaimedKnight.GetFullNameNoTooltip]" - align = left - using = Font_Size_Medium - } - expand = {} - - text_single = { - margin_bottom = 8 - margin_right = 16 - text = "[prowess_i][Accolade.GetAcclaimedKnight.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - portrait_body = { - datacontext = "[Accolade.GetAcclaimedKnight]" - } - - text_label_center = { - text = "ACCOLADE_ACCLAIMED_KNIGHT" - using = Font_Size_Medium - } - } - - vbox = { - spacing = 4 - - visible = "[AccoladeView.HasAnyRelevantTraits]" - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin = { 5 -5 } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - - datamodel = "[AccoladeView.GetPrimaryTraits]" - - item = { - icon_trait = { - datacontext = "[Accolade.GetAcclaimedKnight]" - - blockoverride "faith_context" - { - datacontext = "[Accolade.GetAcclaimedKnight.GetFaith]" - } - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - margin_bottom = 10 - - datamodel = "[AccoladeView.GetSecondaryTraits]" - item = { - icon_trait = { - datacontext = "[Accolade.GetAcclaimedKnight]" - - blockoverride "faith_context" - { - datacontext = "[Accolade.GetAcclaimedKnight.GetFaith]" - } - blockoverride "icon_size" - { - size = { 55 55 } - } - } - } - } - - expand = {} - } - - vbox = { - portrait_body = { - datacontext = "[Accolade.GetSuccessor]" - } - - hbox = { - spacing = 8 - - text_label_center = { - text = "ACCOLADE_SUCCESSOR" - using = Font_Size_Medium - } - - button_round = { - name = "change_successor" - size = { 40 40 } - - onclick = "[AccoladeView.ToggleSuccessors]" - tooltip = "ACCOLADE_CHANGE_SUCCESSOR" - using = tooltip_se - - button_change = { - alwaystransparent = yes - parentanchor = center - } - } - - button_round = { - name = "clear_successor" - size = { 40 40 } - - visible = "[Accolade.GetSuccessor.IsValid]" - - onclick = "[AccoladeView.ClearSuccessor]" - tooltip = "ACCOLADE_CLEAR_SUCCESSOR" - using = tooltip_se - - button_clear = { - alwaystransparent = yes - parentanchor = center - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = {20 4} - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "ACCOLADE_GLORY_AND_LEVEL" - using = Font_Size_Medium - } - expand = {} - } - - hbox = { - margin = {0 8} - allow_outside = yes - - widget = { - size = { 460 30 } - allow_outside = yes - - datacontext = "[AccoladeView.GetProgressBar]" - - hbox_complex_bar_progress = { - layoutpolicy_horizontal = expanding - } - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" { - icon = { - name = "rank_icon" - parentanchor = center - widgetanchor = center - allow_outside = yes - size = { 44 44 } - - texture = "[Accolade.GetComplexBarRankIcon( ComplexBar.GetIndexOfItem( ComplexBarItem.Self ) )]" - tooltip = "[Accolade.GetComplexBarRankTooltip( ComplexBar.GetIndexOfItem( ComplexBarItem.Self ) )]" - } - } - } - } - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 16 - margin_bottom = 16 - margin_top = 4 - spacing = 8 - - vbox = { - margin_top = 8 - - widget = { - size = { 90 120 } - - accolade_badge = {} - - accolade_rank_icon = { - parentanchor = bottom|hcenter - position = { 0 12 } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 8 - margin_top = 8 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 8 - - vbox = { - spacing = 25 - - accolade_type_box = { - datacontext = "[Accolade.GetPrimaryType]" - - blockoverride "name_text" - { - text = "[AccoladeType.GetNameWithAccolade( Accolade.Self )]" - } - - blockoverride "subtitle_text" - { - text = "ACCOLADE_PRIMARY_TYPE" - } - - blockoverride "icons" { - icon = { - visible = "[AccoladeType.GetPrimaryMaaUnlock.IsValid]" - datacontext = "[AccoladeType.GetPrimaryMaaUnlock]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = {} - } - size = { 30 30 } - } - } - } - - accolade_type_box = { - datacontext = "[Accolade.GetSecondaryType]" - - blockoverride "name_text" - { - text = "[AccoladeType.GetNameWithAccolade( Accolade.Self )]" - } - - blockoverride "subtitle_text" - { - text = "ACCOLADE_SECONDARY_TYPE" - } - - blockoverride "icons" { - icon = { - visible = "[AccoladeType.GetSecondaryMaaUnlock.IsValid]" - datacontext = "[AccoladeType.GetSecondaryMaaUnlock]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = {} - } - size = { 30 30 } - } - } - } - } - - expand = {} - } - } - - expand = {} - } - - expand = { - minimumsize = { 0 4 } - } - - scrollbox = { - name = "active_effects" - visible = "[Accolade.HasActiveEffects]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 120 } - - blockoverride "scrollbox_content" - { - text_multi = { - text = "[Accolade.BuildActiveRankEffects]" - autoresize = yes - max_width = 500 - } - - block "extra_content" {} - } - } - - hbox = { - visible = "[Accolade.IsActive]" - layoutpolicy_horizontal = expanding - - margin = { 0 16 } - - button_standard = { - size = { 200 32 } - text = "ACCOLADE_HISTORY" - tooltip = "SHOW_ACCOLADE_HISTORY" - onclick = "[AccoladeView.ToggleHistory]" - } - - button_standard = { - size = { 200 32 } - text = "DEACTIVATE_ACCOLADE" - tooltip = "[AccoladeView.GetDeactivateTooltip]" - onclick = "[AccoladeView.DeactivateAccolade]" - enabled = "[AccoladeView.CanDeactivateAccolade]" - } - } - } - - vbox = { - datacontext = "[AccoladeView.GetAccolade]" - visible = "[And( And( AccoladeView.IsShowingSuccessors, Not( AccoladeView.IsShowingPotentialAcclaimed ) ), Not( AccoladeView.IsShowingHistory ) )]" - - margin = { 4 4 } - spacing = 4 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACCOLADE_CHANGE_SUCCESSOR" - } - - blockoverride "button_close" - { - onclick = "[AccoladeView.ToggleSuccessors]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - tooltip = "BACK_TOOLTIP" - } - } - - text_label_center = { - margin_left = 20 - margin_right = 20 - text = "ACCOLADE_SUCCESSOR_REQUIREMENTS" - using = Font_Size_Medium - } - - scrollbox = { - name = "successor_requirements" - layoutpolicy_horizontal = expanding - size = { 0 200 } - - blockoverride "scrollbox_content" - { - text_multi = { - text = "[Accolade.GetSuccessorRequirements]" - autoresize = yes - max_width = 500 - } - - block "extra_content" {} - } - } - - hbox = { - margin = { 0 8 } - - text_label_center = { - text = "KNIGHTS_SUBHEADER" - default_format = "#medium" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[AccessKnightsView()]" - - blockoverride "scrollbox_empty" { - datacontext = "[Accolade.GetAcclaimedKnight]" - visible = "[Character.IsPlayerInteractionValid('find_suitable_accolade_successor_interaction')]" - - text = "ACCOLADE_NO_SUCCESSOR_FOUND" - } - - blockoverride "scrollbox_content" { - vbox = { - name = "successors" - datamodel = "[MilitaryView.GetKnights]" - spacing = 8 - layoutpolicy_horizontal = expanding - - item = { - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 130 } - - # only show possible successors to this accolade - visible = "[And( Character.IsBaronOrUnlanded, And( And( Not( Character.IsAcclaimedKnight ), Not( Character.IsAccoladeSuccessor ) ), Accolade.HasSuccessorRequirements( Character.Self ) ) )]" - enabled = "[Accolade.CanBeSuccessor( Character.Self )]" - - onclick = "[AccoladeView.SetSuccessor( Character.Self )]" - onclick = "[AccoladeView.ToggleSuccessors]" - tooltip = "[Accolade.GetSetSuccessorTooltip( Character.Self )]" - using = tooltip_nw - - blockoverride "Background_Guest_pattern_visible" - { - visible = "[Character.IsGuest]" - margin_bottom = -5 - margin_right = 5 - } - blockoverride "Background_Guest_frame_visible" - { - visible = "[Character.IsGuest]" - margin_left = 3 - margin_bottom = -5 - margin_top = 1 - margin_right = 5 - } - - vbox = { - spacing = 7 - margin_top = 5 - margin_left = 5 - margin_right = 20 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - spacing = 10 - - portrait_head = { - alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]" - } - - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - visible = "[And(Character.IsKnight, Not(Character.IsAcclaimedKnight) )]" - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 40 40 } - } - - icon = { - visible = "[Character.IsAcclaimedKnight]" - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 50 50 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - autoresize = no - } - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - align = nobaseline - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - text_label_center = { - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - } - - expand = {} - } - } - - hbox = { - visible = "[Not(Character.IsGuest)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightForced( Character.Self )]" - down = "[Character.IsKnightForced]" - alwaystransparent = no - enabled = "[Not( Character.IsKnightForced )]" - - text = "KNIGHTS_VIEW_FORCE" - - tooltip = "KNIGHTS_VIEW_TITLE_FORCE_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDefault( Character.Self )]" - down = "[Character.IsKnightDefault]" - alwaystransparent = no - enabled = "[Not( Character.IsKnightDefault )]" - - text = "KNIGHTS_VIEW_ALLOW" - - tooltip = "KNIGHTS_VIEW_TITLE_BY_PROWESS_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDisallowed( Character.Self )]" - down = "[Character.IsKnightDisallowed]" - alwaystransparent = no - enabled = "[Not( Character.IsKnightDisallowed )]" - - text = "KNIGHTS_VIEW_FORBID" - tooltip = "[SelectLocalization( Character.IsAcclaimedKnight, 'CANNOT_FORBID_ACCLAIMED_KNIGHT', 'KNIGHTS_VIEW_TITLE_FORBID_TT' )]" - using = tooltip_se - } - - expand = {} - - icon = { - visible = "[And( HasDlcFeature( 'accolades' ), And( Or( Not( Character.HasLandedTitles ), Character.GetPrimaryTitle.IsBarony ), KnightsView.HasPotentialAccolade( Character.Self ) ) )]" - - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 30 30 } - - tooltipwidget = { - using = accolade_types_tooltip - } - - icon = { - visible = "[Not( KnightsView.CanBeAcclaimedKnight( Character.Self ) )]" - size = { 25 25 } - position = { 10 10 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } - - hbox = { - visible = "[Character.IsGuest]" - layoutpolicy_horizontal = expanding - spacing = 10 - - button_standard = { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - using = tooltip_se - } - - expand = {} - } - - expand = {} - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - - } - } - - hbox = { - margin = { 0 16 } - datacontext = "[Accolade.GetAcclaimedKnight]" - visible = "[Character.IsPlayerInteractionValid('find_suitable_accolade_successor_interaction')]" - - button_standard = { - name = "find_successor_button" - size = { 300 45 } - text = "find_suitable_accolade_successor_interaction" - - background = { - texture = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" - fittype = centercrop - alpha = 0.7 - } - - enabled = "[Character.IsPlayerInteractionValid('find_suitable_accolade_successor_interaction')]" - onclick = "[Character.OpenPlayerInteraction('find_suitable_accolade_successor_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('find_suitable_accolade_successor_interaction')]" - } - } - } - - vbox = { - datacontext = "[AccoladeView.GetAccolade]" - visible = "[And( And( AccoladeView.IsShowingPotentialAcclaimed, Not( AccoladeView.IsShowingSuccessors ) ), Not( AccoladeView.IsShowingHistory ) )]" - - margin = { 4 4 } - spacing = 5 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHANGE_ACCLAIMED_KNIGHT" - } - - blockoverride "button_close" - { - onclick = "[AccoladeView.TogglePotentialAcclaimed]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - tooltip = "BACK_TOOLTIP" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - name = "potential_acclaimed_knights" - datamodel = "[MilitaryView.GetKnights]" - spacing = 10 - - item = { - button = { - layoutpolicy_horizontal = expanding - size = { 0 130 } - - # you need to fulfill accolade reqs to be acclaimed ( same as successor reqs ) - visible = "[And( Character.IsBaronOrUnlanded, And( And( Not( Character.IsAcclaimedKnight ), Not( Character.IsAccoladeSuccessor ) ), Accolade.HasPrimaryAccoladeRequirements( Character.Self ) ) )]" - enabled = "[Accolade.CanBeSuccessor( Character.Self )]" - - using = Background_Frame - color = { 0.7 0.4 0.3 0.7 } - - onclick = "[AccoladeView.SetAcclaimedKnight( Character.Self )]" - onclick = "[OpenGameView( 'knights' )]" - - tooltip = "[Accolade.GetSetAcclaimedTooltip( Character.Self )]" - using = tooltip_nw - - blockoverride "Background_Guest_pattern_visible" - { - visible = "[Character.IsGuest]" - margin_bottom = -5 - margin_right = 5 - } - blockoverride "Background_Guest_frame_visible" - { - visible = "[Character.IsGuest]" - margin_left = 3 - margin_bottom = -5 - margin_top = 1 - margin_right = 5 - } - - vbox = { - spacing = 7 - margin_top = 5 - margin_left = 5 - margin_right = 20 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - spacing = 10 - - portrait_head = { - alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - visible = "[And(Character.IsKnight, Not(Character.IsAcclaimedKnight) )]" - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 40 40 } - } - icon = { - visible = "[Character.IsAcclaimedKnight]" - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 50 50 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - autoresize = no - } - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - text_label_center = { - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - } - - expand = {} - } - } - - hbox = { - visible = "[Character.IsGuest]" - layoutpolicy_horizontal = expanding - spacing = 10 - - button_standard = { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - using = tooltip_se - } - - expand = {} - } - - expand = {} - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - vbox = { - datacontext = "[AccoladeView.GetAccolade]" - visible = "[And( And( AccoladeView.IsShowingHistory, Not( AccoladeView.IsShowingSuccessors ) ), Not( AccoladeView.IsShowingPotentialAcclaimed ) )]" - - margin = { 4 4 } - spacing = 5 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACCOLADE_HISTORY" - } - - blockoverride "button_close" - { - onclick = "[AccoladeView.ToggleHistory]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - tooltip = "BACK_TOOLTIP" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - name = "accolade_history_entries" - datamodel = "[Accolade.GetHistory]" - spacing = 10 - layoutpolicy_horizontal = expanding - - item = { - icon = { - datacontext = "[AccoladeHistoryEntry.GetAcclaimedKnight]" - layoutpolicy_horizontal = expanding - size = { 0 130 } - - using = Background_Frame - color = { 0.7 0.4 0.3 0.7 } - - vbox = { - spacing = 7 - margin_top = 5 - margin_left = 5 - margin_right = 20 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - spacing = 10 - - portrait_head = {} - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 50 50 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - autoresize = no - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - text_label_center = { - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - } - - expand = {} - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ACCOLADE_HISTORY_ENTRY_DATE" - using = Font_Size_Small - } - - expand = {} - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - } -} - -types AccoladeWindowTypes -{ - type accolade_type_box = hbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 8 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - block "name_text" - { - text = "[AccoladeType.GetName]" - } - - align = nobaseline - } - - text_single = { - margin_left = 8 - layoutpolicy_horizontal = expanding - - block "subtitle_text" - { - text = "" - } - - default_format = "#low" - align = nobaseline - max_width = 290 - } - } - - block "icons" - { - } - - block "change_button" - { - } - - } - - type accolade_banner = icon { - parentanchor = vcenter - size = { 98 98 } - alwaystransparent = yes - texture = "gfx/interface/icons/knight_badge/badge_base2.dds" - } - - type accolade_banner_broken = icon { - parentanchor = vcenter - size = { 98 98 } - alwaystransparent = yes - texture = "gfx/interface/icons/knight_badge/badge_base_grey.dds" - } - - type accolade_badge = icon { - parentanchor = vcenter - size = { 92 136 } - alwaystransparent = yes - texture = "gfx/interface/icons/knight_badge/badge_base.dds" - - icon = { - position = { 6 6 } - size = { 80 56 } - texture = "[Accolade.GetBadgeColor]" - - datacontext = "[Accolade]" - tooltip = "ACCOLADE_PRIMARY_TYPE_TT" - } - icon = { - position = { 6 6 } - size = { 80 56 } - texture = "gfx/interface/icons/knight_badge/badge_corners.dds" - alwaystransparent = yes - } - icon = { - position = { 6 6 } - size = { 80 56 } - texture = "[Accolade.GetPrimaryIcon]" - alwaystransparent = yes - } - - icon = { - position = { 6 73 } - size = { 80 56 } - texture = "[Accolade.GetBadgeColor]" - - datacontext = "[Accolade]" - tooltip = "ACCOLADE_SECONDARY_TYPE_TT" - } - icon = { - position = { 6 73 } - size = { 80 56 } - texture = "[Accolade.GetSecondaryIcon]" - alwaystransparent = yes - } - } - - type accolade_rank_icon = icon { - parentanchor = bottom|hcenter - size = { 44 44 } - - icon = { - position = { 1 13 } - size = { 100% 100% } - visible = "[Accolade.HasActiveEffects]" - texture = "[Accolade.GetCurrentRankIcon]" - tooltipwidget = accolade_tooltip - } - } -} - diff --git a/N3OW/gui/window_activity.gui b/N3OW/gui/window_activity.gui deleted file mode 100644 index 5c6cb516..00000000 --- a/N3OW/gui/window_activity.gui +++ /dev/null @@ -1,2771 +0,0 @@ -window = { - name = "activity_window" - size = { 1390 750 } - layer = middle - parentanchor = center - allow_outside = yes - - datacontext = "[GetPlayer]" - datacontext = "[GetVariableSystem]" - datacontext = "[ActivityWindow.GetActivity]" - datacontext = "[Activity.GetType]" - - using = Window_Background - using = Window_Movable - using = Window_Decoration_Frontend_Flat_Bottom - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Sound_Panel_Popup_Snapshot - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - on_start = "[PdxGuiWidget.FindChild( 'pulse_action_popup' ).Hide]" - } - - # Background illustration - margin_widget = { - name = "background" - size = { 100% 100% } - - background = { - visible = "[Not( ActivityWindow.HasActiveEvent )]" - texture = "[ActivityWindow.GetBackground.GetTexture]" - fittype = centercrop - using = Mask_Rough_Edges - - margin = { -40 -20 } - } - } - - # Characters idle - vbox = { - name = "idle_character" - - visible = "[Not( ActivityWindow.HasActiveEvent )]" - datacontext = "[ActivityWindow.GetBackground]" - - expand = {} - - widget = { - size = { 1310 750 } - scissor = yes - - hbox = { - name = "idle_characters_ongoing" - datamodel = "[ActivityWindow.GetCharacters]" - visible = "[Not( Activity.IsComplete )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_top = 170 - - item = { - widget = { - size = { 250 550 } - - allow_outside = no - - portrait_body = { - datacontext = "[ActivityWindowCharacter.GetCharacter]" - parentanchor = center - - allow_outside = yes - - blockoverride "portrait_texture" - { - size = { 700 530 } - portrait_texture = "[Character.GetAnimatedPortrait( ActivityWindowBackgroundData.GetEnvironment, ActivityWindowCharacter.GetCamera, ActivityWindowCharacter.GetAnimation, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - - using = tooltip_below - tooltip_widgetanchor = center - } - - blockoverride "mask" - { - mask = "gfx/portraits/portrait_mask_event.dds" - } - - blockoverride "status_icons" {} - blockoverride "coa" {} - blockoverride "opinion_box" {} - - widget = { - parentanchor = bottom|hcenter - position = { 0 -40 } - size = { 200 85 } - - vbox = { - layoutpolicy_vertical = expanding - parentanchor = bottom|hcenter - - expand = {} - - hbox = { - background = { - using = Background_Area_ExtraDark - - alpha = 0.8 - margin = { 50 8 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - portrait_status_icons = { - margin_top = 2 - scale = 0.85 - } - - expand = {} - } - - text_single = { - name = "label" - - text = "[ActivityWindowCharacter.GetLabel]" - align = center|nobaseline - max_width = 200 - - } - } - } - } - } - } - } - } - - hbox = { - name = "idle_characters_complete" - datamodel = "[DataModelFirst( ActivityWindow.GetCharacters, '(int32)3' )]" - visible = "[Activity.IsComplete]" - layoutpolicy_vertical = expanding - - margin_top = 170 - margin_left = 400 - - item = { - widget = { - size = { 280 580 } - - allow_outside = no - - portrait_body = { - datacontext = "[ActivityWindowCharacter.GetCharacter]" - parentanchor = center - - allow_outside = yes - - blockoverride "portrait_texture" - { - size = { 700 530 } - portrait_texture = "[Character.GetAnimatedPortrait( ActivityWindowBackgroundData.GetEnvironment, ActivityWindowCharacter.GetCamera, ActivityWindowCharacter.GetAnimation, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - - tooltip_offset = { -450 0 } - } - - blockoverride "status_icons" {} - blockoverride "coa" {} - blockoverride "opinion_box" {} - - vbox = { - - expand = {} - - hbox = { - background = { - using = Background_Area_Dark - margin = { 50 4 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - portrait_status_icons = { - margin_top = 5 - scale = 0.85 - } - - expand = {} - } - - text_single = { - name = "label" - text = "[ActivityWindowCharacter.GetLabel]" - align = center - margin_bottom = 5 - } - } - } - } - } - } - } - } - } - - # Activity Events - widget = { - name = "activity_event_widgets" - visible = "[ActivityWindow.HasActiveEvent]" - size = { 100% 100% } - - # Used for pivotal moments in Chariot Races which are not fullscreen - widget = { - name = "widget_activity_pivotal_moment_event_window" - parentanchor = center - size = { 100% 95% } - alwaystransparent = yes - } - - allow_outside = yes - activity_event_widget = { - name = "activity_event" - parentanchor = center - size = { 100% 95% } - } - } - - # Tour arrival event - widget = { - name = "activity_top_layer_event_widgets" - visible = "[ActivityWindow.HasActiveEvent]" - size = { 100% 100% } - - activity_event_widget = { - name = "tour_arrival_event" - parentanchor = center - size = { 100% 95% } - - blockoverride "characters_appear_delay" - { - delay = 1.8 - } - - blockoverride "text_appear_delay" - { - delay = 2.3 - } - } - } - - # Conclusion - widget = { - name = "conclusion" - visible = "[Not( ActivityWindow.HasActiveEvent )]" - parentanchor = vcenter - position = { 22 -10 } - size = { 300 600 } - - vbox_activity_conclusion = { - name = "activity_conclusion" - visible = "[Activity.IsComplete]" - layoutpolicy_vertical = expanding - - margin_bottom = 5 - - background = { - using = Background_Area_ExtraDark - margin_top = 5 - margin_bottom = 20 - margin_left = -15 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.3 - } - } - - blockoverride "close_activity_onclick" - { - onclick = "[ActivityWindow.Close]" - } - } - } - - # Main Content - vbox = { - name = "main_content" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_bottom = 20 - - expand = { - visible = "[Not(ActivityWindow.HasActiveEvent)]" - } - - expand = {} - - # Bottom Bar - widget = { - size = { 1328 140 } - - vbox = { - name = "activity_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - vbox = { - name = "bottom_bar" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - name = "ongoing_info" - visible = "[And(Not( Activity.IsComplete ),Not(ActivityWindow.HasActiveEvent))]" - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/window_activities/activity_window_bg.dds" - margin = { 5 0 } - margin_top = 62 - margin_bottom = 38 - - using = Mask_Rough_Edges - } - - hbox_activity_progress = { - name = "activity_progress" - margin_left = 25 - margin_bottom = 5 - } - - expand = {} - - hbox = { - name = "few_phases" - visible = "[LessThan_int32(Activity.GetPlannedPhasesCount, '(int32)9')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 20 - spacing = 5 - - expand = {} - - activity_phase_progress_timline_widget = { - name = "phase_progres_timeline_short" - size = { 750 55 } - } - } - - hbox = { - name = "many_phases" - visible = "[GreaterThan_int32(Activity.GetPlannedPhasesCount, '(int32)8')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 20 - spacing = 5 - - expand = {} - - activity_phase_progress_timline_widget = { - name = "phase_progres_timeline_long" - size = { 770 55 } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - background = { - using = Background_Area_Light - margin_top = 5 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 20 - blend_mode = alphamultiply - texture_density = 4 - } - } - - vbox = { - visible = "[Activity.IsParticipant( Character.Self )]" - - hbox = { - name = "current_intent" - datacontext = "[Character.GetInvolvedActivityIntent]" - visible = "[Not( Activity.IsComplete )]" - margin_left = 15 - - text_single = { - text = "ACTIVITY_WINDOW_YOUR_INTENT" - default_format = "#medium" - align = nobaseline - max_width = 110 - margin_right = 10 - } - - button_standard = { - size = { 300 44 } - onclick = "[ToggleGameViewData( 'activity_intent_selection', GetPlayer )]" - enabled = "[Not( ActivityWindow.HasActiveEvent )]" - tooltip = "[ActivityWindow.GetIntentTooltip]" - - animation_attention_text_single = { - blockoverride "start_state" - { - name = "activity_intent_completed" - } - } - - flowcontainer = { - parentanchor = vcenter - spacing = 10 - margin = { 10 0 } - - icon = { - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "[ActivityIntent.GetName]" - align = left|nobaseline - parentanchor = vcenter - max_width = 230 - } - } - - button_replace = { - parentanchor = right|vcenter - position = { -10 0 } - } - } - - expand = {} - } - - hbox = { - name = "succeeded_multiple_intents" - visible = "[And( Activity.IsComplete, GreaterThan_int32( GetDataModelSize( Character.GetCompletedIntents ), '(int32)1' ) )]" - layoutpolicy_horizontal = expanding - - margin_left = 15 - spacing = 10 - - text_single = { - text = "ACTIVITY_CONCLUSION_COMPLETED_INTENT_MULTI" - } - - hbox = { - datamodel = "[Character.GetCompletedIntents]" - - item = { - icon_flat_standard = { - name = "current_intent_icon" - size = { 30 30 } - - datacontext = "[ActivityIntentData.GetType]" - texture = "[ActivityIntent.GetIcon]" - raw_tooltip = "#T [ActivityIntent.GetName]#!" - } - } - } - - expand = {} - } - - hbox = { - name = "succeeded_single_intent" - visible = "[And( Activity.IsComplete, EqualTo_int32( GetDataModelSize( Character.GetCompletedIntents ), '(int32)1' ) )]" - layoutpolicy_horizontal = expanding - - margin_left = 15 - spacing = 5 - - text_single = { - text = "ACTIVITY_CONCLUSION_COMPLETED_INTENT" - } - - hbox = { - datamodel = "[Character.GetCompletedIntents]" - spacing = 4 - - item = { - hbox = { - datacontext = "[ActivityIntentData.GetType]" - - icon_flat_standard = { - name = "intent_icon" - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - } - - text_single = { - name = "intent_name_completed" - text = "[ActivityIntent.GetName]" - } - } - } - } - } - - hbox = { - name = "failed_intent" - visible = "[And( Activity.IsComplete, IsDataModelEmpty( Character.GetCompletedIntents ) )]" - datacontext = "[Character.GetInvolvedActivityIntent]" - layoutpolicy_horizontal = expanding - margin_left = 15 - - text_single = { - text = "ACTIVITY_CONCLUSION_FAILED_INTENT" - } - - icon_flat_standard = { - name = "intent_icon" - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - } - - text_single = { - name = "intent_name_failed" - text = "[ActivityIntent.GetName]" - } - - expand = {} - } - } - - vbox = { - name = "activity_plugin_widgets_summary" - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - hbox = { - visible = "[EqualTo_string( ActivityType.GetKey(), 'activity_journey')]" - name = "activity_plugin_widgets_skill_text" - layoutpolicy_horizontal = expanding - margin_right = 50 - background = { - margin_right = -40 - margin_left = 10 - margin_bottom = 8 - margin_top = 5 - using = Background_Bottom_Fade - using = Background_Area - using = Mask_Rough_Edges - } - highlight_icon_building = { - alwaystransparent = yes - texture = "[Activity.GetCurrentPhase.GetLocation.GetHolding.GetSpecialBuildingType.GetTypeIcon]" - size = { 44 38 } - datacontext = "[Activity.GetCurrentPhase.GetLocation.GetHolding.GetSpecialBuildingType]" - tooltip = "journey_building_tt" - using = tooltip_ne - } - spacer = { size = { 15 15 } } - vbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "journey_skill_type_desc" - } - text_single = { - text = "journey_skill_desc" - max_width = 320 - } - } - } - - expand = {} - - hbox = { - margin_right = 15 - spacing = 10 - - button_standard = { - name = "guest_list" - text = "ACTIVITY_WINDOW_GUEST_LIST" - down = "[IsGameViewDataShown( 'activity_guest_list', Activity.Self )]" - onclick = "[ToggleGameViewData( 'activity_guest_list', Activity.Self )]" - } - - button_standard = { - name = "activity_log" - text = "ACTIVITY_WINDOW_LOG" - down = "[IsGameViewDataShown( 'activity_log', Activity.Self )]" - onclick = "[ToggleGameViewData( 'activity_log', Activity.Self )]" - } - - button_standard = { - name = "charioteers" - text = "CHARIOTEERS_WINDOW_LABEL" - visible = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'charioteers' ) )]" - down = "[Not( GetVariableSystem.Exists( 'activity_charioteers_view' ) )]" - onclick = "[GetVariableSystem.Toggle( 'activity_charioteers_view' )]" - } - - button_standard = { - name = "entrants" - text = "ENTRANTS_WINDOW_LABEL" - visible = "[DataModelHasItems( ActivityWindow.GetCurrentPhaseGuestSubset( 'scoreboard' ) )]" - down = "[Not( GetVariableSystem.Exists( 'activity_scoreboard_view' ) )]" - onclick = "[GetVariableSystem.Toggle( 'activity_scoreboard_view' )]" - } - } - } - } - } - } - } - - - - widget = { - name = "activity_top_layer_idle_widgets" - visible = "[Not( ActivityWindow.HasActiveEvent )]" - - size = { 100% 100% } - } - - # Header - widget = { - name = "header" - parentanchor = top|hcenter - layoutpolicy_horizontal = expanding - size = { 1346 116 } - - icon = { - name = "activity_header_glass" - position = { 0 -46 } - size = { 100% 100% } - texture = "gfx/interface/window_activities/header_activity_glass.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - icon = { - name = "activity_header_frame" - position = { 0 -46 } - size = { 100% 100% } - texture = "gfx/interface/window_activities/header_activity_frame.dds" - } - - icon = { - texture = "[ActivityType.GetHeaderIcon]" - size = { 60 60 } - position = { 0 -27 } - parentanchor = top|hcenter - } - - flowcontainer = { - name = "non_event_titles" - visible = "[Not( ActivityWindow.HasActiveEvent )]" - ignoreinvisible = yes - - parentanchor = hcenter - position = { 0 17 } - - activity_header = { - name = "ongoing_title" - visible = "[Not( Activity.IsComplete )]" - text = "ACTIVITY_WINDOW_HEADER" - } - - activity_header = { - name = "conclusion_title" - visible = "[Activity.IsComplete]" - text = "ACTIVITY_CONCLUSION_HEADER" - } - - background = { - using = Background_Area_ExtraDark - alpha = 0.4 - - margin = { 80 0 } - margin_bottom = 10 - - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.4 - mirror = vertical - } - } - } - - container = { - name = "activity_event_titles" - visible = "[ActivityWindow.HasActiveEvent]" - - parentanchor = hcenter - position = { 0 17 } - - activity_event_header = { - name = "activity_event" - } - - activity_event_header = { - name = "tour_arrival_event" - } - - activity_event_header = { - name = "chariot_race_pivotal_moment_widget" - } - - background = { - using = Background_Area_ExtraDark - alpha = 0.4 - - margin = { 80 0 } - margin_bottom = 10 - - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.4 - mirror = vertical - } - } - } - - watch_window_button = { - size = { 60 40 } - parentanchor = right - position = { -110 18 } - onclick = "[AddWatchWindow( Activity.MakeScope )]" - } - - buttons_window_control = { - parentanchor = right - position = { -10 18 } - allow_outside = yes - - blockoverride "button_close" - { - onclick = "[ActivityWindow.Close]" - } - blockoverride "button_go_to" - { - tooltip = "ACTIVITY_WINDOW_CURRENT_LOCATION" - onclick = "[Activity.GetCurrentPhase.GetLocation.PanCameraTo]" - } - } - } - - widget = { - parentanchor = top|right - size = { 750 124 } - position = { -30 70 } - - activity_pulse_action_popup_right = { - datacontext = "[ActivityWindow.GetLastWeeklyPulseEffectData]" - visible = "[And( ActivityPulseEffect.IsValid, Not( ActivityWindow.HasActiveEvent ) )]" - parentanchor = right - } - } - - widget = { - parentanchor = right - allow_outside = yes - position = { -5 30 } - - vbox = { - layoutpolicy_vertical = expanding - - window_activity_contestants_right_bar = {} - } - } -} - -types ActivityWindowTypes -{ - type activity_header = text_single - { - fontsize = 29 - fontsize_min = 16 - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - - type activity_event_header = activity_header - { - datacontext = "[ActivityWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[EventWindowViewInsert.HasOpenEvent]" - - text = "ACTIVITY_WINDOW_EVENT_HEADER" - max_width = 1000 - } - - type phase_timeline_icon = icon - { - size = { 50 50 } - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - - using = tooltip_se - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 50 50 } - parentanchor = center - alpha = 0.5 - } - - icon_flat_standard = { - parentanchor = center - size = { 35 35 } - - block "texture" - { - } - } - } - - type activity_phase_progress_timline_widget = widget { - hbox = { - background = { - texture = "gfx/interface/window_scheme/scheme_success_progressbar_bg.dds" - margin_top = -16 - margin_bottom = -15 - } - - hbox = { - name = "starting_phase" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - hbox = { - layoutpolicy_horizontal = expanding - - phase_timeline_icon = { - name = "starting_phase_icon" - - blockoverride "texture" - { - texture = "gfx/interface/icons/activity_phases/phase_planning.dds" - size = { 36 36 } - } - - tooltip = "ACTIVITY_TIMELINE_START" - } - - filled_line_progressbar_icon = { - layoutpolicy_horizontal = expanding - - blockoverride "color" - { - using = Color_Blue - } - } - } - } - - hbox = { - name = "planned_phases" - datacontext = "[Activity.GetLastWeeklyPulseAction]" - datamodel = "[Activity.GetPlannedPhases]" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = "[GetDataModelSize( Activity.GetPlannedPhases )]" - - item = { - hbox = { - datacontext = "[PlannedActivityPhase.GetPhase]" - layoutpolicy_horizontal = expanding - - hbox = { - name = "current_phase" - visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - layoutpolicy_horizontal = expanding - - phase_timeline_icon = { - name = "current_phase_icon" - - blockoverride "texture" - { - texture = "[ActivityPhase.GetIcon]" - size = { 36 36 } - } - - block "current_phase_progress" - { - tooltip = "ACTIVITY_WINDOW_PHASE_IN_PROGRESS_TOOLTIP" - - widget = { - name = "weekly_tick_progress" - parentanchor = center - size = { 50 50 } - visible = "[EqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - - progresspie = { - name = "progress" - size = { 44 44 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - parentanchor = center - frame = 2 - value = "[GetTicksSinceLastProgress( Activity.GetID, DaysPerWeek )]" - min = 0 - max = "[DaysPerWeek]" - } - } - } - } - - arrow_progressbar_icon = { - layoutpolicy_horizontal = expanding - - blockoverride "color" - { - using = Color_Blue - } - } - } - - phase_timeline_icon = { - name = "not_current_phase" - visible = "[NotEqualTo_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - - tooltip = "ACTIVITY_PHASE_TOOLTIP" - - blockoverride "texture" - { - texture = "[ActivityPhase.GetIcon]" - size = { 36 36 } - } - } - - filled_line_progressbar_icon = { - visible = "[LessThan_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - layoutpolicy_horizontal = expanding - - blockoverride "color" - { - using = Color_Blue - } - } - - filled_line_progressbar_icon = { - visible = "[GreaterThan_int32( Activity.GetPhaseIndexOf( PlannedActivityPhase.Self ), Activity.GetCurrentPhaseIndex )]" - layoutpolicy_horizontal = expanding - - blockoverride "color" - { - using = Color_Blue_Transparent - } - } - } - } - } - - phase_timeline_icon = { - name = "conclusion_phase_icon" - - blockoverride "texture" - { - texture = "gfx/interface/icons/activity_phases/phase_conclusion.dds" - size = { 36 36 } - } - - tooltip = "ACTIVITY_TIMELINE_CONCLUSION" - } - } - } - - type window_activity_contestants_right_bar = vbox - { - allow_outside = yes - name = "window_activity_contestants_right_bar_container" - } - - type activity_event_widget = margin_widget - { - datacontext = "[ActivityWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[EventWindowViewInsert.HasOpenEvent]" - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - event_window_background_widget = { - margin = { 40 0 } - - blockoverride "event_mask" {} - - blockoverride "event_mask_properties" - { - loop = no - restart_on_show = yes - } - - blockoverride "event_video_properties" - { - restart_on_show = yes - } - - blockoverride "event_picture_properties" - { - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = corneredstretched - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 2 - } - } - } - - widget = { - name = "main_characters" - size = { 100% 100% } - position = { 0 -55} - - alpha = 0 - - state = { - name = activity_event_appear - alpha = 0 - next = activity_event_fade_in - } - - state = { - name = activity_event_fade_in - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - - block "characters_appear_delay" - { - delay = 0.3 - } - } - - ### CENTER CHARACTER ### - widget = { - parentanchor = bottom|hcenter - size = { 300 558 } - - allow_outside = no - - portrait_event = { - name = "portrait_center" - datacontext = "[EventWindowData.GetPortraitCharacter('center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('center_portrait')]" - parentanchor = center - size = { 500 558 } - - allow_outside = yes - - blockoverride "portrait_button" - { - size = { 140% 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('center_portrait', 'camera_event_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('center_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('center_portrait')]" - using = tooltip_below - tooltip_widgetanchor = center - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('center_portrait') ))]" - position = { -40 0 } - } - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('center_portrait')))]" - visible_at_creation = no - size = { 280 500 } - parentanchor = bottom|hcenter - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### RIGHT CHARACTER ### - widget = { - parentanchor = bottom|hcenter - position = { 350 0 } - size = { 300 558 } - - allow_outside = no - - portrait_event = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = hcenter - position = { -100 0 } - size = { 500 558 } - - allow_outside = yes - - blockoverride "portrait_button" - { - size = { 140% 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - using = tooltip_below - tooltip_widgetanchor = center - tooltip_offset = { 180 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 80 0 } - } - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - size = { 285 500 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### LEFT CHARACTER ### - widget = { - parentanchor = bottom|hcenter - position = { -345 0 } - size = { 300 558 } - - allow_outside = no - - portrait_event = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('left_portrait')]" - parentanchor = hcenter - position = { 30 0 } - size = { 500 558 } - - - allow_outside = yes - - blockoverride "portrait_button" - { - size = { 140% 140% } - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - using = tooltip_below - tooltip_widgetanchor = center - tooltip_offset = { -70 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -40 0 } - } - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - - # Event Effect Video - event_window_effect_2d_widget = { - margin = { 30 20 } - } - - #Foreground Shader VFX - margin_widget = { - name = "foreground_shader_vfx_container" - position = { 40 20 } - size = { 100% 100% } - margin = { 40 20 } - } - - # Side characters & Artifacts - flowcontainer = { - name = "side_characters" - parentanchor = right - position = { -40 40 } - margin = { 15 15 } - spacing = 5 - - direction = vertical - ignoreinvisible = yes - - alpha = 0 - - state = { - name = activity_event_appear - alpha = 0 - next = activity_event_fade_in - } - - state = { - name = activity_event_fade_in - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - - block "characters_appear_delay" - { - delay = 0.4 - } - } - - background = { - using = Background_Area_ExtraDark - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_left_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_left_portrait')]" - parentanchor = hcenter - - direction = vertical - spacing = -8 - - using = artifact_event_flowcontainer - } - - flowcontainer = { - visible = "[EventWindowData.HasPortraitCharacter('lower_left_portrait')]" - direction = vertical - parentanchor = hcenter - - portrait_head_small = { - name = "portrait_left_small_1" - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - parentanchor = hcenter - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_left_portrait', 'camera_head', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "grayscale" {} - } - - text_label_center = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - parentanchor = hcenter - alwaystransparent = yes - - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_center_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_center_portrait')]" - parentanchor = hcenter - - direction = vertical - spacing = -8 - - using = artifact_event_flowcontainer - } - - flowcontainer = { - visible = "[EventWindowData.HasPortraitCharacter('lower_center_portrait')]" - direction = vertical - parentanchor = hcenter - - portrait_head_small = { - name = "portrait_left_small_2" - datacontext = "[EventWindowData.GetPortraitCharacter('lower_center_portrait')]" - parentanchor = hcenter - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_center_portrait', 'camera_head', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_center_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_center_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - } - - text_label_center = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_center_portrait')]" - parentanchor = hcenter - alwaystransparent = yes - - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_right_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_right_portrait')]" - parentanchor = hcenter - - direction = vertical - spacing = -8 - - using = artifact_event_flowcontainer - } - - flowcontainer = { - visible = "[EventWindowData.HasPortraitCharacter('lower_right_portrait')]" - direction = vertical - parentanchor = hcenter - - portrait_head_small = { - name = "portrait_right_small_1" - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - parentanchor = hcenter - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_right_portrait', 'camera_head', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_right_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_right_portrait') ))]" - } - - blockoverride "status_icons"{} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - } - - text_label_center = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - parentanchor = hcenter - alwaystransparent = yes - - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 55 - alpha = 0 - - state = { - name = activity_event_appear - alpha = 0 - next = activity_event_fade_in - } - - state = { - name = activity_event_fade_in - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - - block "characters_appear_delay" - { - delay = 0.4 - } - } - - expand = {} - - hbox = { - name = "text_and_options" - layoutpolicy_horizontal = expanding - - margin = { 35 0 } - spacing = 5 - - background = { - using = Background_Area_ExtraDark - margin = {-35 0 } - margin_top = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.5 - } - } - - background = { - margin = {-35 0 } - margin_top = 10 - using = Background_Area_ExtraDark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - @text_width = 750 - - scrollarea = { - name = "description_scrollarea" - size = { @text_width 270 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - scrollwidget = { - text_multi = { - name = "description" - parentanchor = bottom - autoresize = yes - max_width = @text_width - text = "[EventWindowData.GetDescription]" - fontsize = 16 - - margin = { 25 0 } - margin_bottom = 25 - - background = { - using = Background_Area_ExtraDark - margin_top = 60 - margin_bottom = 5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - spriteType = corneredtiled - spriteborder_top = 150 - blend_mode = alphamultiply - texture_density = 4 - } - } - } - } - } - - vbox = { - name = "option_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_bottom = 23 - margin_left = 20 - spacing = 5 - - expand = {} - - # Hack to be able to center text without having to change in base type which is also used in regular event window - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_ExtraDark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - expand = {} - - hbox = { - name = "custom_widgets_container" - margin_right = 55 - } - - expand = {} - } - - fixedgridbox = { - name = "option_grid" - size = { 420 500 } - addcolumn = 420 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - visible = "[LessThan_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)7' )]" - alwaystransparent = no - layoutpolicy_horizontal = expanding - - item = { - button_eventoption = { - blockoverride "option_tooltip_position" {} - - blockoverride "onmousehierarchy_callbacks" - { - onmousehierarchyenter = "[EventWindowViewInsert.OnMouseEnterOption( EventOption.Self )]" - onmousehierarchyleave = "[EventWindowViewInsert.OnMouseLeaveOption]" - } - } - } - } - - fixedgridbox = { - size = { 480 500 } - datamodel_wrap = 2 - flipdirection = yes - addcolumn = 240 - addrow = 46 - datamodel = "[EventWindowData.GetOptions]" - visible = "[GreaterThanOrEqualTo_int32( GetDataModelSize(EventWindowData.GetOptions), '(int32)7' )]" - alwaystransparent = no - layoutpolicy_horizontal = expanding - - item = { - button_eventoption = { - background = { - using = Background_Area_Dark - using = Mask_Rough_Edges - margin = { 8 8 } - alpha = 0.5 - } - blockoverride "button_size" { - size = { 224 36 } - } - - blockoverride "option_tooltip_position" {} - - blockoverride "onmousehierarchy_callbacks" - { - onmousehierarchyenter = "[EventWindowViewInsert.OnMouseEnterOption( EventOption.Self )]" - onmousehierarchyleave = "[EventWindowViewInsert.OnMouseLeaveOption]" - } - } - } - } - } - } - } - - event_window_transition_widget = { - margin = { 30 0 } - - using = Event_Window_Default_Transition_States - - blockoverride "event_transition_mask_properties" - { - loop = no - restart_on_show = yes - } - blockoverride "event_transition_picture_properties" - { - restart_on_show = yes - } - blockoverride "event_transition_picture_properties" - { - using = Mask_Rough_Edges - } - } - - #icon = { - #visible = "[And( EventWindowData.ShouldShowContentSource, EventWindowData.GetContentSourceDlc.HasEventDecoration )]" - #name = "source_icon" - #position = { 22 50 } - #size = { 263 64 } - #parentanchor = top|left - #texture = "[EventWindowData.GetContentSourceDlc.GetEventDecoration]" - #mirror = horizontal - #tooltip = "EVENT_CONTENT_SOURCE_TT" - #alpha = 1 - #} - - flowcontainer = { - name = "event_debug_info" - visible = "[InDebugMode]" - parentanchor = top|left - position = { 50 55 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - - blockoverride "event_reset_onclick" - { - onclick = "[EventWindowViewInsert.Reload]" - } - } - } - - type activity_event_widget_base = widget - { - visible = "[EventWindowViewInsert.HasOpenEvent]" - - using = Event_Window_Debug_OptionTooltips - using = Event_Window_Debug_EventTools - - using = Window_Background - using = Window_Decoration_Frontend_Flat - - event_window_background_widget = { - margin = { 40 0 } - - blockoverride "event_picture_properties" - { - modify_texture = { - name = "event_picture_fade" - texture = "gfx/interface/window_event/mask_event_image.dds" - blend_mode = alphamultiply - } - } - } - - # This is currently copied from the regular event window and then adding the mouse enter/leave callbacks - vbox = { - widget = { - layoutpolicy_horizontal = expanding - size = { 0 70 } - - icon = { - name = "theme_header" - position = { 20 5 } - size = { 1057 70 } - texture = "gfx/interface/window_event/header_neutral.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - text_single = { - name = "title" - parentanchor = vcenter - position = { 100 0 } - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Type_Flavor - max_width = 950 - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - - icon = { - name = "theme_icon" - parentanchor = vcenter - position = { 20 0 } - size = { 74 74 } - texture = "[EventWindowData.GetThemeIcon]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = {0.6 0} - } - - state = { - name = right - next = left - - duration = 2 - bezier = { .8 .18 .96 .05} - - modify_texture = { - name = overlay - translate_uv = {-0.6 0} - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - } - - expand = {} - } - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiWidget.FindChild( 'event_video' ).GfxVideoControl.Restart]" - } - - vbox = { - name = "event_window" - - widget = { - name = "event_window_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin_left = 35 - margin_right = 35 - margin_bottom = 15 - - widget = { - name = "text_spacer" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - } - - ###CHARACTERS - widget = { - name = "characters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - ### LEFT CHARACTER ### - hbox = { - widget = { - name = "portrait_left" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - portrait_event = { - name = "portrait_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), EventWindowData.HasPortraitCharacter('right_portrait'))]" - parentanchor = bottom|left - position = { -70 0 } - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -40 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### RIGHT CHARACTER ### - widget = { - name = "portrait_right" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### RIGHT CHARACTER ### - portrait_event = { - name = "portrait_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = bottom|right - position = { 8 0 } - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 70 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - visible_at_creation = no - size = { 285 500 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - - ### Use this for single character - portrait_event = { - name = "portrait_center" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), Not(EventWindowData.HasPortraitCharacter('right_portrait')))]" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - size = { 100% 112% } - position = { -60 0 } - parentanchor = bottom|left - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_center', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - using = tooltip_below - tooltip_offset = { 550 -580 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 300 500 } - parentanchor = bottom|hcenter - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - margin_widget = { - name = "bottom_characters" - size = { 100% 170 } - parentanchor = bottom|hcenter - margin_bottom = 10 - allow_outside = yes - - icon = { - name = "bottom_characters_bg" - visible = "[Or(EventWindowData.HasPortraitOrArtifact('lower_left_portrait'), Or(EventWindowData.HasPortraitOrArtifact('lower_center_portrait'), EventWindowData.HasPortraitOrArtifact('lower_right_portrait')))]" - position = { -55 7 } - size = { 624 100% } - texture = "gfx/interface/window_event/event_bottom_char_bg.dds" - } - - flowcontainer = { - spacing = 20 - parentanchor = bottom|hcenter - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_left = { - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - - background = { - texture = "gfx/interface/window_event/event_character_status_icons_bg.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - shaderfile = "gfx/FX/pdxgui_default.shader" - alpha = 0.5 - margin = { 5 5 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 0.5 - } - } - } - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_left_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_left_portrait')]" - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_left_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_left_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_center_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_center_portrait')]" - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - - background = { - using = Background_Area_Dark - alpha = 0.4 - margin_bottom = -30 - margin_top = 10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_center_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_center_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_left_small_2" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_center_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_center_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_center_portrait') ))]" - } - - blockoverride "status_icons" {} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_center_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - color = { 0.1 0.1 0.1 0.8 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - - flowcontainer = { - parentanchor = bottom - direction = vertical - ignoreinvisible = yes - - event_portrait_status_icons_right = { - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - parentanchor = right - - background = { - texture = "gfx/interface/window_event/event_character_status_icons_bg.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - shaderfile = "gfx/FX/pdxgui_default.shader" - alpha = 0.5 - margin = { 5 5 } - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - alpha = 0.5 - } - } - } - - spacer = { - size = { 140 0 } - } - - flowcontainer = { - datacontext = "[EventWindowData.GetArtifact('lower_right_portrait')]" - visible = "[EventWindowData.HasArtifact('lower_right_portrait')]" - direction = vertical - spacing =-5 - - using = artifact_event_flowcontainer - } - - widget = { - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_right_portrait')]" - size = { 140 150 } - - portrait_event_small = { - name = "portrait_right_small_1" - parentanchor = center - position = { 0 -4 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetStaticEventPortraitTexture('lower_right_portrait', 'camera_shoulders', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_right_portrait'))]" - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - } - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_right_portrait') ))]" - } - - blockoverride "status_icons"{} - blockoverride "opinion_box"{} - blockoverride "grayscale" {} - - blockoverride "coa" - { - event_portrait_status_icons_left = { - visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - parentanchor = bottom|left - position = { -15 -5 } - scale = 0.8 - - background = { - using = Background_Bottom_Fade - margin = { 5 15 } - using = Color_Black - using = Mask_Rough_Edges - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/window_event/event_character_status_icons_bg_overlay.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 20 -5 } - alwaystransparent = yes - text = "[Character.GetShortUINameNoTooltip]" - max_width = 115 - align = center - fontsize_min = 12 - } - } - } - } - } - } - } - } - - hbox = { - margin_left = 35 - margin_right = 35 - margin_bottom = 15 - - widget = { - name = "text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - - vbox = { - name = "description_and_options" - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 10 - margin_top = 80 - - scrollarea = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 490 -1 } - maximumsize = { 490 -1 } - - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - scrollwidget = { - text_multi = { - name = "description" - minimumsize = { 480 -1 } - maximumsize = { 480 -1 } - autoresize = yes - margin = { 20 4 } - text = "[EventWindowData.GetDescription]" - fontsize = 16 - } - } - } - - expand = {} - } - - vbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - margin_bottom = 5 - - hbox = { - spacing = 5 - - hbox = { - name = "dynamic_birth_name" - margin = { 5 0 } - } - } - - vbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = { - blockoverride "onmousehierarchy_callbacks" - { - onmousehierarchyenter = "[EventWindowViewInsert.OnMouseEnterOption( EventOption.Self )]" - onmousehierarchyleave = "[EventWindowViewInsert.OnMouseLeaveOption]" - } - } - } - } - } - } - } - - widget = { - name = "characters_spacer" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - } - } - } - } - - event_window_transition_widget = { - using = Event_Window_Default_Transition_States - - blockoverride "event_transition_mask_properties" - { - loop = no - restart_on_show = yes - } - blockoverride "event_transition_picture_properties" - { - restart_on_show = yes - } - blockoverride "event_transition_picture_properties" - { - using = Mask_Rough_Edges - } - } - - flowcontainer = { - name = "event_debug_info" - visible = "[InDebugMode]" - parentanchor = top|right - position = { -40 20 } - ignoreinvisible = yes - - using = Event_Window_Debug_Info - - blockoverride "event_reset_onclick" - { - onclick = "[EventWindowViewInsert.Reload]" - } - } - } - - type vbox_activity_conclusion = vbox { - spacing = 16 - - scrollbox = { - name = "completion_info" - size = { 450 0 } - - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datacontext = "[AccessLocalPlayerCachedData.AccessActivityData]" - - spacing = 8 - margin = { 8 0 } - - text_multi = { - text = "[Activity.GetConclusionDescription( GetPlayer )]" - autoresize = yes - max_width = 380 - } - - text_single = { - name = "effects_header" - text = "ACTIVITY_CONCLUSION_EFFECTS_HEADER" - default_format = "#S" - visible = "[Not( StringIsEmpty( LocalPlayerActivityData.GetCompletionEffectsString ) )]" - } - - text_multi = { - autoresize = yes - text = "[LocalPlayerActivityData.GetCompletionEffectsString]" - max_width = 380 - } - - hbox = { - name = "activity_plugin_widgets_conclusion" - visible = "[Activity.IsComplete]" - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - } - } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - button_primary = { - text = "ACTIVITY_CONCLUSION_CLOSE" - size = { 250 40 } - - block "close_activity_onclick" - { - } - } - } - - type hbox_activity_progress = hbox { - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - spacing = 4 - - hbox = { - name = "travel_state" - visible = "[Character.HasActivityState( 'travel' )]" - - text_single = { - text = "activity_travel_state_full" - align = nobaseline - max_width = 270 - } - } - - hbox = { - name = "passive_state" - visible = "[Character.HasActivityState( 'passive' )]" - - text_single = { - text = "activity_passive_state_full" - align = nobaseline - max_width = 270 - } - } - - hbox = { - name = "active_state" - visible = "[Character.HasActivityState( 'active' )]" - - text_single = { - layoutpolicy_horizontal = expanding - text = "activity_active_state_full" - align = nobaseline - max_width = 270 - } - } - - hbox = { - name = "time_until_progress" - - text_single = { - visible = "[IsValidDate( Activity.GetProgressPhaseDate )]" - layoutpolicy_horizontal = expanding - text = ACTIVITY_TIME_UNTIL_PROGRESS - align = nobaseline - max_width = 210 - } - } - - expand = {} - } -} diff --git a/N3OW/gui/window_activity_guest_list.gui b/N3OW/gui/window_activity_guest_list.gui deleted file mode 100644 index 546524bd..00000000 --- a/N3OW/gui/window_activity_guest_list.gui +++ /dev/null @@ -1,617 +0,0 @@ -window = { - name = "activity_guest_list" - datacontext = "[ActivityGuestListWindow.AccessList]" - - position = { 600 0 } - size = { 1200 90% } - layer = middle - - allow_outside = yes - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 70 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 100 - } - - vbox = { - using = Window_Margins - - datacontext = "[ActivityGuestListWindow.GetActivityType]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACTIVITY_GUEST_LIST_HEADER" - } - blockoverride "button_close" - { - onclick = "[ActivityGuestListWindow.Close]" - } - } - - hbox = { - name = "window_contents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "left_side_planning_activity" - visible = "[ActivityGuestListWindow.IsFromPlanning]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 8 - - text_multi = { - name = "guest_list_instruction_text" - layoutpolicy_horizontal = expanding - - text = "[ActivityType.GetLocalizedText( 'guest_help_text' )]" - align = center|nobaseline - autoresize = yes - minimumsize = { 430 -1 } - maximumsize = { 430 -1 } - - margin = { 16 8 } - - background = { - using = Background_Area - } - } - - vbox = { - name = "guest_category_picking" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[GreaterThan_int32(GetDataModelSize(ActivityType.GetGuestInviteRules), '(int32)1')]" - enabled = "[Not( ActivityGuestListWindow.IsSelectingSpecialGuest )]" - - margin = { 16 0 } - - spacing = 8 - - text_label_center = { - text = "ACTIVITY_GUEST_LIST_INVITE_GROUP" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - - vbox = { - name = "invite_groups" - datamodel = "[ActivityType.GetGuestInviteRules]" - layoutpolicy_horizontal = expanding - - spacing = 4 - - item = { - button_standard = { - name = "add_invite_rule" - datacontext = "[OrderedActivityInviteRule.GetRule]" - - layoutpolicy_horizontal = expanding - - onclick = "[ActivityGuestListWindow.ToggleInviteFromRules( OrderedActivityInviteRule.Self )]" - text = "[ActivityGuestInviteRule.GetName]" - down = "[ActivityGuestListWindow.IsInviteRuleActive( OrderedActivityInviteRule.Self )]" - } - } - } - } - } - } - - text_multi = { - name = "too_many_guests_warning" - - text = "ACTIVITY_GUEST_LIST_INVITING_OVER_MAX" - visible = "[GreaterThan_int32( CharacterSelectionList.NumberOfShownCharacters, ActivityGuestListWindow.GetMaxNumGuests )]" - - align = center|nobaseline - autoresize = yes - minimumsize = { 430 -1 } - maximumsize = { 430 -1 } - - layoutpolicy_horizontal = expanding - - margin = { 8 8 } - - background = { - using = Background_Area - } - } - - expand = {} - - hbox = { - datamodel = "[ActivityGuestListWindow.AccessSpecialGuests]" - datacontext = "[ActivityGuestListWindow.AccessPlanner]" - spacing = 32 - margin_bottom = 8 - - item = { - vbox_special_guest_portrait = { - blockoverride "button_change_visible" - { - visible = "[And( And( ActivitySpecialGuest.GetCharacter.IsValid, ActivityGuestListWindow.IsFromPlanning ), Not( ActivitySpecialGuest.GetType.HasAutoSelectCharacter ) )]" - } - - blockoverride "portrait" - { - portrait_shoulders = { - visible = "[Character.IsValid]" - parentanchor = center - } - } - blockoverride "size" - { - size = { 150 160 } - } - blockoverride "target_glow" - { - animation_attention_text = { - visible = "[ObjectsEqual( ActivityGuestListWindow.GetSelectingSpecialGuest, ActivitySpecialGuest.Self )]" - } - } - } - } - } - } - - vbox = { - name = "left_side_ongoing_activity" - datacontext = "[ActivityGuestListWindow.GetHost]" - visible = "[Not( ActivityGuestListWindow.IsFromPlanning )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - datacontext = "[GetIllustration( 'activity_guest_list' )]" - layoutpolicy_horizontal = expanding - - margin_top = 4 - - background = { - texture = "[Illustration.GetTexture( Character.GetInvolvedActivity.MakeScope )]" - alpha = 0.4 - fittype = centercrop - - margin_top = -32 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 4 } - margin_right = 4 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_GUEST_LIST_HOST" - } - } - - widget = { - size = { 440 500 } - - portrait_body_large = { - parentanchor = bottom|hcenter - scale = 0.87 - size = { 500 560 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 16 } - - background ={ - using = Background_Area_Dark - } - - text_single = { - text = "[Character.GetUINameNotMeNoTooltip]" - align = nobaseline - max_width = 420 - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - datamodel = "[ActivityGuestListWindow.GetSpecialGuests]" - spacing = -32 - - item = { - vbox_special_guest_portrait = { - blockoverride "button_change_visible" - { - visible = no - } - - blockoverride "title_text" - { - # Make sure we use the name appropriate for the guest/host - text = "[ActivitySpecialGuest.GetType.GetNameIfHost( ActivityGuestListWindow.GetHost )]" - } - - blockoverride "title_tooltip_properties" - { - tooltip = "ACTIVITY_PLANNER_SPECIAL_GUEST_ONGOING_TT" - using = tooltip_ne - } - - blockoverride "portrait" - { - portrait_shoulders = { - visible = "[Character.IsValid]" - parentanchor = center - } - } - - blockoverride "size" - { - size = { 150 160 } - } - - blockoverride "selectable_target_portrait_properties" - { - enabled = no - } - } - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - - divider = { - layoutpolicy_vertical = expanding - } - } - - vbox = { - name = "right_side" - layoutpolicy_vertical = expanding - - text_label_center = { - name = "guest_list_instruction_text" - visible = "[And(ActivityGuestListWindow.IsFromPlanning, Not( ActivityType.IsOpenInvite ))]" - layoutpolicy_horizontal = expanding - - text = "ACTIVITY_GUEST_LIST_INFO" - default_format = "#I" - align = center|nobaseline - - margin = {4 4} - } - - vbox_character_list = { - name = "invited_characters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_properties" - { - size = { 660 0 } - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 630 - addrow = 98 - - item = { - widget_guest_list_item = {} - } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 16 16 } - - background = { - using = Background_Area - } - button_primary = { - text = "CLOSE_LABEL" - onclick = "[ActivityGuestListWindow.Close]" - } - } - } - - window_character_filter = { - parentanchor = top|left - widgetanchor = left - position = { -20 20 } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types GuestListWindow -{ - type widget_guest_list_item = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 630 96 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_With_Header - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 - - portrait_head_small = {} - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 4 - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 4 - margin_right = 8 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNoTooltip|U]" - using = Font_Size_Medium - autoresize = no - fontsize_min = 13 - align = nobaseline - max_width = 370 - } - - expand = {} - - hbox_skills_grid = {} - - } - - hbox = { - layoutpolicy_horizontal = expanding - - using = character_age_or_death_text - - blockoverride "list_layout" {} - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 4 - - ## Dynasty - widget = { - size = { 30 30 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - scale = 0.55 - parentanchor = center - } - } - - ## Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - size = { 150 60 } - addcolumn = 30 - addrow = 30 - maxhorizontalslots = 8 - maxverticalslots = 1 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - - expand = {} - - vbox = { - visible = "[ActivityGuestListWindow.IsFromPlanning]" - margin = { 8 0 } - - button_standard = { - name = "select_special_guest" - size = { 160 30 } - text = "SELECT" - onclick = "[CharacterListItem.OnClick( 'select_special_guest' )]" - visible = "[ActivityGuestListWindow.IsSelectingSpecialGuest]" - tooltip = "ACTIVITY_GUEST_LIST_SELECT_HONORARY_GUEST" - } - - hbox = { - name = "guest_info" - layoutpolicy_horizontal = expanding - visible = "[Not( ActivityGuestListWindow.IsSelectingSpecialGuest )]" - spacing = 4 - - expand = {} - - text_single = { - text = "ACTIVITY_GUEST_LIST_TRAVEL_TIME_INFO" - } - - hbox = { - visible = "[GreaterThan_CFixedPoint( ActivityGuestListWindow.GetJoinChance( CharacterListItem.Self ), '(CFixedPoint)0' )]" - - - icon = { - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_check.dds" - - tooltip = "ACTIVITY_GUEST_WILL_ACCEPT" - } - - warning_icon = { - visible = "[ActivityGuestListWindow.MayNotArriveInTime( CharacterListItem.Self )]" - size = { 30 30 } - - tooltip = "ACTIVITY_GUEST_MAY_NOT_ARRIVE" - } - } - - icon = { - visible = "[LessThanOrEqualTo_CFixedPoint( ActivityGuestListWindow.GetJoinChance( CharacterListItem.Self ), '(CFixedPoint)0' )]" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - tooltip = "ACTIVITY_GUEST_WILL_DECLINE" - } - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[Not( ActivityGuestListWindow.IsFromPlanning )]" - - margin = { 12 0 } - - expand = {} - - text_single = { - text = "[Character.GetActivityStateText( 'verb' )]" - } - } - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_activity_intent_selection.gui b/N3OW/gui/window_activity_intent_selection.gui deleted file mode 100644 index 601a15d5..00000000 --- a/N3OW/gui/window_activity_intent_selection.gui +++ /dev/null @@ -1,464 +0,0 @@ -window = { - name = "activity_intent_selection" - datacontext = "[GetVariableSystem]" - layer = middle - allow_outside = yes - size = { 1050 780 } - position = { 26% 120 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Clear( 'activity_intent_selection_target_list' )]" - position_y = 80 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 200 - } - - vbox = { - datacontext = "[ActivityIntentSelectionWindow.GetActivityType]" - datacontext = "[ActivityIntentSelectionWindow.GetSelectedIntent]" - size = { 100% 100% } - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACTIVITY_INTENT_SELECTION_HEADER" - } - blockoverride "button_close" - { - onclick = "[ActivityIntentSelectionWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[GetIllustration( 'activity_intent_selection' )]" - - background = { - texture = "[Illustration.GetTexture( GetPlayer.MakeScope )]" - alpha = 0.3 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - portrait_intent_selection = { - datacontext = "[GetPlayer]" - datacontext = "[ActivityIntentData.GetType]" - layoutpolicy_vertical = expanding - - alwaystransparent = yes - } - - vbox = { - name = "intent_selection_step_1" - visible = "[Not(VariableSystem.Exists( 'activity_intent_selection_target_list' ))]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 8 - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_left = 100 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ACTIVITY_INTENT_SELECTION_TEXT" - default_format = "#I" - align = center|nobaseline - - margin = { 16 8 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - - scrollbox = { - name = "host_intents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - minimumsize = { 0 200 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[ActivityIntentSelectionWindow.GetPotentialIntents]" - layoutpolicy_horizontal = expanding - spacing = 4 - - item = { - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 50 } - - onclick = "[ActivityIntentSelectionWindow.SelectIntent( ActivityIntent.Self )]" - onclick = "[VariableSystem.ClearIf( 'activity_intent_selection_target_list', Not( ActivityIntent.HasTarget ) )]" - enabled = "[ActivityIntentSelectionWindow.CanPickIntent( ActivityIntent.Self )]" - - tooltip = "ACTIVITY_CHANGE_INTENT_TOOLTIP" - - down = "[ObjectsEqual( ActivityIntentData.GetType, ActivityIntent.Self )]" - - alwaystransparent = "[ObjectsEqual( ActivityIntentData.GetType, ActivityIntent.Self )]" - - hbox = { - size = { 100% 100% } - margin = { 8 0 } - spacing = 8 - - highlight_icon = { - size = { 40 40 } - texture = "[ActivityIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = normal - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "[ActivityIntent.GetName]" - align = nobaseline - default_format = "#clickable" - using = Font_Size_Medium - } - - expand = {} - } - } - } - } - } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - - vbox = { - name = "selected_intent_details" - datacontext = "[ActivityIntentData.GetType]" - - layoutpolicy_horizontal = expanding - - margin = {16 0} - margin_top = 8 - margin_bottom = 16 - - - hbox = { - visible = "[ActivityIntent.HasTarget]" - layoutpolicy_horizontal = expanding - - margin = { 8 0 } - margin_bottom = 8 - - text_label_left = { - text = "ACTIVITY_INTENT_TARGET_LABEL" - - margin_right = 8 - } - - button_change = { - onclick = "[VariableSystem.Toggle( 'activity_intent_selection_target_list' )]" - - tooltip = "ACTIVITY_CHANGE_INTENT_TARGET_TOOLTIP" - } - - expand = {} - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - - selectable_target_portrait_widget = { - name = "intent_target" - datacontext = "[ActivityIntentData.GetTarget]" - visible = "[ActivityIntent.HasTarget]" - - blockoverride "empty_slot" - { - onclick = "[VariableSystem.Toggle( 'activity_intent_selection_target_list' )]" - } - } - - expand = { - visible = "[ActivityIntent.HasTarget]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 8 0 } - - expand = {} - - text_single = { - name = "select_target" - visible = "[And( ActivityIntent.HasTarget, Not( ActivityIntentData.GetTarget.IsValid ) )]" - - text = "ACTIVITY_CHANGE_INTENT_SELECT_TARGET" - } - - text_multi = { - name = "intent_effects" - visible = "[Or( Not( ActivityIntent.HasTarget ), ActivityIntentData.GetTarget.IsValid )]" - - text = "[ActivityIntent.GetDescription]" - autoresize = yes - max_width = 360 - } - - expand = { - visible = "[ActivityIntent.HasTarget]" - } - } - - expand = {} - } - - expand = {} - } - } - - vbox = { - name = "intent_selection_step_2_target_character" - datacontext = "[ActivityIntentSelectionWindow.GetSelectedIntent]" - - visible = "[VariableSystem.Exists( 'activity_intent_selection_target_list' )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_right = 8 - margin_top = 4 - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_left = 100 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_CHANGE_INTENT_SELECT_TARGET_FOR_ACTIVITY" - default_format = "#I" - align = center|nobaseline - - margin = { 16 8 } - - button_change = { - parentanchor = vcenter|right - position = {-8 0 } - - onclick = "[VariableSystem.Toggle( 'activity_intent_selection_target_list' )]" - - tooltip = ACTIVITY_CHANGE_INTENT_TT - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - - vbox_character_list = { - name = "intent_targets" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[ActivityIntentSelectionWindow.AccessTargetList]" - - blockoverride "scrollbox_properties" - { - size = { 475 0 } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 475 - addrow = 96 - - item = { - potential_selectable_target_portrait_widget = { - size = { 475 94 } - datacontext = "[CharacterListItem.GetCharacter]" - - blockoverride "onclick" { - onclick = "[CharacterListItem.OnClick( 'select_intent_target' )]" - onclick = "[VariableSystem.Clear( 'activity_intent_selection_target_list' )]" - } - blockoverride "extra_data" - { - warning_icon = { - visible = "[ActivityIntentSelectionWindow.MayNotArriveInTime( CharacterListItem.Self )]" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - tooltip = "ACTIVITY_GUEST_MAY_NOT_ARRIVE" - } - } - } - } - } - } - } - } - } - - hbox = { - name = "cancel_or_confirm" - layoutpolicy_horizontal = expanding - - margin = {16 16} - spacing = 16 - - background = { - using = Background_Area - } - - expand = {} - - button_standard = { - text = "CANCEL" - - onclick = "[ActivityIntentSelectionWindow.Close]" - shortcut = "close_window" - } - - button_primary = { - text = "CONFIRM" - - onclick = "[ActivityIntentSelectionWindow.Confirm]" - onclick = "[ActivityIntentSelectionWindow.Close]" - enabled = "[ActivityIntentSelectionWindow.CanConfirm]" - - tooltip = "[ActivityIntentSelectionWindow.GetCanConfirmDesc]" - } - - expand = {} - } - } - - window_character_filter = { - datacontext = "[ActivityIntentSelectionWindow.AccessTargetList]" - size = { 510 650 } - - parentanchor = top|left - widgetanchor = left - position = { -20 20 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_activity_list.gui b/N3OW/gui/window_activity_list.gui deleted file mode 100644 index a26ac0d2..00000000 --- a/N3OW/gui/window_activity_list.gui +++ /dev/null @@ -1,1038 +0,0 @@ -window = { - name = "activity_list" - widgetid = "activity_panel" #tutorial uses this - parentanchor = top|right - layer = windows_layer - movable = no - - datacontext = "[GetPlayer]" - datacontext = "[GetVariableSystem]" - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - - max_height = 100 - - blockoverride "illustration_texture" { - texture = "gfx/interface/skinned/illustrations/header_illustrations/header_activity.dds" - fittype = centercrop - alpha = 0.4 - } - - blockoverride "header_text" - { - text = "ACTIVITY_LIST" - } - - blockoverride "button_close" - { - onclick = "[ActivityListWindow.Close]" - } - - vbox = { - name = "activity_status" - layoutpolicy_horizontal = expanding - datacontext = "[Character.GetInvolvedActivity]" - margin_top = 40 - - text_single = { - name = "status_no_activity" - text = "ACTIVITY_LIST_NO_ONGOING_ACTIVITY" - visible = "[Not( Activity.IsValid )]" - autoresize = yes - maximumsize = { 450 -1 } - align = center - default_format = "#weak" - } - - vbox = { - name = "status_involved_activity" - layoutpolicy_horizontal = expanding - visible = "[Activity.IsValid]" - - text_multi = { - name = "status_involved_activity" - text = "ACTIVITY_LIST_INVOLVED_ACTIVITY" - visible = "[Not( ObjectsEqual( Activity.GetHost.Self, Character.Self ) )]" - autoresize = yes - max_width = 450 - align = center - } - - text_multi = { - name = "status_hosting_activity" - text = "ACTIVITY_LIST_HOSTING_ACTIVITY" - visible = "[ObjectsEqual( Activity.GetHost.Self, Character.Self )]" - autoresize = yes - max_width = 450 - align = center - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - spacing = 10 - - activity_hud_button = { - name = "activity_hud_icon" - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_LIST_CURRENT_PHASE" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_LIST_CURRENT_STATE" - } - } - - expand = {} - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "activity_content" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 30 - - scrollbox = { - name = "host_scrollbox" - - using = Animation_Tab_Switch - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - name = "activities_container" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "activity_groups_container" - margin_bottom = 8 - spacing = 2 - - layoutpolicy_horizontal = expanding - - datamodel = "[ActivityListWindow.GetActivityGroupItems]" - item = { - vbox_activity_group_foldout = {} - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin_top = 8 - - button_checkbox_label = { - name = "notify_can_join" - datacontext = "[GetActivityType( 'activity_tournament' )]" - - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - - blockoverride "checkbox" - { - checked = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - } - - blockoverride "text" - { - text = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_TOURNAMENTS" - max_width = 450 - } - } - } - - - vbox = { - margin_top = 8 - datacontext = "[GetSituation('dynastic_cycle').GetParticipantGroupByCharacter( Character.Self )]" - visible = "[SituationParticipantGroup.IsValid]" - button_checkbox_label = { - name = "notify_can_join" - datacontext = "[GetActivityType( 'activity_debate' )]" - - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - - blockoverride "checkbox" - { - checked = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - } - - blockoverride "text" - { - text = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_DEBATES" - max_width = 450 - } - } - } - } - } - } - } - } - } - } -} - -# This is basically a duplication of the decision detail view -window = { - name = "activity_list_detail_host" - parentanchor = top|right - position = { -650 110 } - size = { 630 935 } - layer = middle - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - datacontext = "[ActivityListDetailHostView.GetType]" - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - position = { -650 110 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACTIVITY_LIST_DETAIL_HOST_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ActivityListDetailHostView.Close]" - } - } - - vbox = { - name = "contents" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 550 220 } - - background = { - name = "illustrations" - texture = "[ActivityType.GetHeaderBackground]" - margin_top = 10 - alpha = 0.7 - using = Mask_Rough_Edges - } - } - - text_multi = { - name = "description" - minimumsize = { 515 -1 } - maximumsize = { 515 -1 } - margin = { 15 15 } - autoresize = yes - text = "[ActivityType.GetDescription]" - using = Font_Size_Small - } - - scrollbox = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - name = "effect" - layoutpolicy_horizontal = expanding - - # No visible check as we always want the base you host this activity effect description - - background = { - name = "illustrations" - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - max_width = 515 - autoresize = yes - text = "ACTIVITY_LIST_DETAIL_HOST_EFFECTS" - } - } - - vbox = { - name = "requirements" - visible = "[ActivityListDetailHostView.HasRequirements]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "DECISION_DETAIL_REQUIREMENTS" - } - - text_multi = { - alwaystransparent = no - minimumsize = { 515 -1 } - maximumsize = { 515 -1 } - margin = { 15 15 } - autoresize = yes - text = "[ActivityListDetailHostView.GetRequirementsDescription]" - } - } - - expand = {} - - } - } - - blockoverride "scrollbox_background_fade" {} - } - - vbox = { - name = "footer" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - margin_bottom = 10 - spacing = 5 - - text_single = { - name = "cost" - visible = "[ActivityListDetailHostView.HasCost]" - text = "[ActivityListDetailHostView.GetCostDescription]" - tooltip = "ACTIVITY_BASE_COST_TT" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - spacer = { - size = { 10 2 } - } - - button_primary = { - name = "confirm" - size = { 380 50 } - - enabled = "[ActivityListDetailHostView.CanConfirm]" - tooltip = "[ActivityListDetailHostView.GetConfirmTooltip]" - onclick = "[ActivityListDetailHostView.Confirm]" - - text = "ACTIVITY_LIST_DETAIL_HOST_CONFIRM" - - default_clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - clicksound = "[ActivityListDetailHostView.GetConfirmClickSound]" - } - - spacer = { - size = { 0 2 } - } - - button_checkbox_label = { - name = "major_checkbox" - onclick = "[ActivityType.ToggleShouldNotifyCanHost]" - - blockoverride "checkbox" - { - checked = "[ActivityType.ShouldNotifyCanHost]" - } - - blockoverride "text" - { - text = "ACTIVITY_LIST_DETAIL_TOGGLE_SHOULD_NOTIFY_CAN_HOST" - } - } - - expand = {} - } - } - } - } -} - -window = { - name = "activity_list_detail_invite" - parentanchor = top|right - position = { -650 110 } - size = { 630 935 } - layer = middle - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - datacontext = "[ActivityListDetailJoinView.GetActivity]" - datacontext = "[Activity.GetType]" - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - position = { -650 110 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACTIVITY_LIST_DETAIL_JOIN_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ActivityListDetailJoinView.Close]" - } - } - - vbox = { - name = "contents" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 550 220 } - - background = { - name = "illustrations" - texture = "[ActivityType.GetHeaderBackground]" - margin_top = 10 - alpha = 0.7 - using = Mask_Rough_Edges - } - - hbox = { - name = "activity_host" - layoutpolicy_horizontal = expanding - datacontext = "[Activity.GetHost]" - margin = { 20 0 } - spacing = 10 - - widget = { - size = { 165 200 } - allow_outside = no - - portrait_torso = { - parentanchor = center - position = { 0 10 } - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "portrait_mask" - { - mask = "gfx/portraits/portrait_mask_council.dds" - } - - blockoverride "portrait_status_icons" { - portrait_status_icons = { - parentanchor = bottom|right - position = { -20 -10 } - scale = 0.90 - - background = { - using = Background_Area_Dark - margin = { 2 3 } - alpha = 0.8 - } - } - } - - blockoverride "coa" { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 0 -5 } - } - } - - blockoverride "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 5 -8 } - } - } - } - } - - expand = {} - } - } - - vbox = { - name = "invitation" - datacontext = "[Activity.GetHost]" - layoutpolicy_horizontal = expanding - - margin = { 20 15 } - spacing = 5 - - using = Background_Letter_Default - - text_multi = { - name = "description" - minimumsize = { 500 -1 } - maximumsize = { 500 -1 } - autoresize = yes - - text = "[ActivityListDetailJoinView.GetInvitationText]" - - using = Font_Size_Small - - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 10 - - coa_character_sigil = {} - - text_single = { - name = "liege_signature" - max_width = 430 - align = left - layoutpolicy_horizontal = expanding - - text = "ACTIVITY_LIST_INVITATION_SIGNATURE" - - using = Font_Size_Medium - - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - - expand = {} - } - } - - scrollbox = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - name = "phases" - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_bottom = 10 - - background = { - using = Background_Area_Solid - alpha = 0.8 - } - - text_label_center = { - text = "ACTIVITY_LIST_DETAIL_JOIN_PHASES_HEADER" - } - - activity_phase_progress_timline_widget = { - name = "phase_progres_timeline" - size = { 480 55 } - - blockoverride "current_phase_progress" - { - tooltip = "ACTIVITY_PHASE_TOOLTIP" - } - } - } - - hbox = { - name = "destination" - layoutpolicy_horizontal = expanding - - text_single = { - text = "ACTIVITY_LIST_DETAIL_JOIN_LOCATION" - } - - text_single = { - text = "ACTIVITY_LIST_DETAIL_JOIN_TRAVEL_TIME" - } - } - - vbox = { - name = "effect" - layoutpolicy_horizontal = expanding - - background = { - name = "illustrations" - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - max_width = 515 - autoresize = yes - text = "ACTIVITY_LIST_DETAIL_JOIN_EFFECTS" - } - } - - expand = {} - - } - } - - blockoverride "scrollbox_background_fade" {} - } - - vbox = { - name = "footer" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - margin_bottom = 10 - spacing = 7 - - container = { - name = "latest_departure_date" - visible = "[Not( IsDateAfter( GetCurrentDate, ActivityListDetailJoinView.GetLatestDepartureDate ) )]" - - text_single = { - name = "latest_departure_date_normal_guest" - text = "ACTIVITY_LIST_DETAIL_JOIN_DEPARTURE_TIME" - visible = "[Not( Activity.IsSpecialGuest( GetPlayer ) )]" - } - - container = { - name = "latest_departure_date_special_guest" - - datacontext = "[Activity.GetSpecialGuestTypeForCharacter( GetPlayer )]" - visible = "[Activity.IsSpecialGuest( GetPlayer )]" - - text_single = { - text = "ACTIVITY_LIST_DETAIL_JOIN_REQUIRED_SPECIAL_GUEST" - visible = "[ActivitySpecialGuestType.IsRequired]" - } - - text_single = { - text = "ACTIVITY_LIST_DETAIL_JOIN_DEPARTURE_TIME" - visible = "[Not( ActivitySpecialGuestType.IsRequired )]" - } - } - } - - text_single = { - name = "may_not_arrive_in_time" - text = "ACTIVITY_LIST_DETAIL_JOIN_MAY_NOT_ARRIVE_IN_TIME" - visible = "[IsDateAfter( GetCurrentDate, ActivityListDetailJoinView.GetLatestDepartureDate )]" - max_width = 500 - fontsize_min = 9 - } - - hbox = { - spacing = 10 - - button_primary = { - name = "confirm" - size = { 380 50 } - - onclick = "[ActivityListDetailJoinView.Confirm]" - - text = "ACTIVITY_LIST_DETAIL_JOIN_CONFIRM" - } - - button_round = { - name = "change_left_character" - - onclick = "[Activity.DeclineInvite]" - visible = "[Not( Activity.GetType.IsOpenInvite )]" - size = { 40 40 } - tooltip = "ACTIVITY_LIST_DECLINE_INVITE" - - button_dismiss = { - size = { 35 35 } - parentanchor = center - alwaystransparent = yes - } - } - } - - expand = {} - } - } - } - } -} - -types ActivityListTypes -{ - type vbox_activity_group_foldout = vbox { - datacontext = "[ActivityGroupItem.GetGroupType]" - visible = "[Not( IsDataModelEmpty( ActivityGroupItem.GetActivities ) )]" - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[ActivityGroupItem.GetGroupTitle]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "activities_in_group" - datamodel = "[ActivityGroupItem.GetActivities]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 527 - addrow = "[Select_float( ActivityGroupType.HasTag('big_button'), '(float)65.0', '(float)55.0' )]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - # Ongoing activity invites or joinables - button_activity_entry = { - datacontext = "[ActivityItem.GetType]" - datacontext = "[ActivityItem.GetActivity]" - visible = "[ActivityItem.IsOngoing]" - - down = "[IsGameViewDataShown( 'activity_list_detail_invite_window', Activity.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_invite_window', Activity.Self )]" - tooltip = JOIN_ACTIVITY_TOOLTIP - } - - # Hostable Activities - button_activity_entry = { - datacontext = "[ActivityItem.GetType]" # CActitiyType - datacontext = "[ActivityItem.GetActivity]" # CActivity - visible = "[Not( ActivityItem.IsOngoing )]" - - down = "[IsGameViewDataShown( 'activity_list_detail_host_window', ActivityType.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_host_window', ActivityType.Self )]" - tooltip = SHOW_ACTIVITY_TOOLTIP - } - expand = {} - } - } - } - } - } - - type button_activity_entry = button_standard { - minimumsize = "[Select_CVector2f( ActivityGroupType.HasTag('big_button'), '(CVector2f)527,60', '(CVector2f)527,50' )]" - - layoutpolicy_horizontal = expanding - - widget = { - name = "inspection_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetActivityType('activity_survey'), ActivityType.Self)]" - } - - widget = { - minimumsize = "[Select_CVector2f( ActivityGroupType.HasTag('big_button'), '(CVector2f)527,56', '(CVector2f)527,46' )]" - position = { -2 2 } - - parentanchor = right|top - scissor = yes - - icon = { - name = "illustration" - visible = "[Or( ActivityItem.IsOngoing, And( Not( ActivityItem.IsOngoing ), ActivityType.CanPlanActivity( GetPlayer ) ) )]" - parentanchor = right|top - size = { 250 100 } - - texture = "[ActivityType.GetHeaderBackground]" - alpha = 0.7 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - highlight_icon = { - visible = "[And( Not( ActivityItem.IsOngoing ), Not( ActivityType.CanPlanActivity( GetPlayer ) ) )]" - parentanchor = right|top - size = { 250 100 } - - mirror = horizontal - texture = "[ActivityType.GetHeaderBackground]" - alpha = 0.7 - - effectname = "GreyedOut" - - tintcolor = { 0.6 0.6 0.6 0.7 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - block "decision_vignette" - { - icon = { - block "vignette_size" { - size = { 99.2% 100% } - } - parentanchor = vcenter|hcenter - position = { 1 0 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 4 0 } - margin_right = 16 - spacing = 5 - - highlight_icon = { - name = "icon" - size = { 40 40 } - texture = "[ActivityType.GetIcon]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - spacing = -3 - minimumsize = { 150 -1 } - - expand = {} - - text_single = { - name = "ongoing_title" - visible = "[ActivityItem.IsOngoing]" - layoutpolicy_horizontal = expanding - - text = "[Activity.GetNameNoTooltip]" - default_format = "#clickable" - align = nobaseline - } - - text_single = { - name = "title" - visible = "[And( Not( ActivityItem.IsOngoing ), ActivityType.CanPlanActivity( GetPlayer ) )]" - - layoutpolicy_horizontal = growing - - text = "[ActivityType.GetNameNoTooltip]" - default_format = "#clickable" - align = nobaseline - } - - text_single = { - name = "title_disabled" - visible = "[And( Not( ActivityItem.IsOngoing ), Not( ActivityType.CanPlanActivity( GetPlayer ) ) )]" - - layoutpolicy_horizontal = growing - - text = "[ActivityType.GetNameNoTooltip]" - default_format = "#low" - align = nobaseline - } - - text_single = { - name = "base_cost" - visible = "[Not( ActivityItem.IsOngoing )]" - - layoutpolicy_horizontal = growing - - alwaystransparent = yes - text = "ACTIVITY_BASE_COST" - align = nobaseline - } - - expand = {} - } - - expand = {} - - highlight_icon = { - name = "not_possible" - visible = "[And( Not( ActivityItem.IsOngoing ), Not( Or(ActivityType.CanPlanActivity( GetPlayer ), ActivityType.CanAlwaysPlan() ) ) )]" - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } - - type travel_trait_small_vbox = vbox - { - text_single = { - block "name" - { - raw_text = "#D NAME#!" - } - } - - hbox = { - debug_square = { - size = { 50 50 } - } - - progressbar_standard = { - size = { 100 20 } - min = 0 - max = 1 - value = 0.5 - } - } - } -} diff --git a/N3OW/gui/window_activity_locale.gui b/N3OW/gui/window_activity_locale.gui deleted file mode 100644 index 986d9af7..00000000 --- a/N3OW/gui/window_activity_locale.gui +++ /dev/null @@ -1,2212 +0,0 @@ -window = { - name = "activity_locale_window" - - datacontext = "[GetPlayer]" - datacontext = "[GetVariableSystem]" - datacontext = "[ActivityLocaleWindow.GetActivity]" - - layer = middle # figure this one out - parentanchor = center - size = { 100% 100% } - - movable = no - - filter_mouse = all - alwaystransparent = no - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Sound_Window_AmbienceMute_Snapshot - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - on_start = "[GetVariableSystem.Clear( 'activity_view' )]" - on_start = "[VariableSystem.Clear( 'activity_locale_popup' )]" - } - - widget = { - name = "activity_scene" - size = { 100% 100% } - - # Filled from code based on activity background image - # - # Example: - # my_example_activity = { - # ... - # background = "test_locale_background.dds" - # ... - # } - # - # Adds - gui/activity_locale_widgets/test_locale_background.gui - widget = { - name = "activity_locale_background_widget" - size = { 100% 100% } - } - - # Filled from code based on active locale visuals defined within - # the activity type's "locales" field - # - # Example: - # my_example_activity = { - # ... - # locales = { locale_1 = my_example_locale } - # ... - # } - # - # my_example_locale = { - # ... - # visuals = my_example_locale_visual - # ... - # } - # - # Adds - gui/activity_locale_widgets/my_example_locale_visual.gui - # |- widget - my_example_locale_visual - widget = { - name = "activity_locale_widgets" - size = { 100% 100% } - } - - # Filled from code based on activity background image - # - # Example: - # my_example_activity = { - # ... - # background = "test_locale_background.dds" - # ... - # } - # - # Adds - gui/activity_locale_widgets/test_locale_background_top_layer.gui - widget = { - name = "activity_locale_background_widget_top_layer" - size = { 100% 100% } - } - - # Filled from code based on active locale visuals defined within - # the activity type's "locales" field. - # - # Example: - # my_example_activity = { - # ... - # locales = { locale_1 = my_example_locale } - # ... - # } - # - # my_example_locale = { - # ... - # visuals = my_example_locale_visual - # ... - # } - # - # Adds - gui/activity_locale_widgets/my_example_locale_visual.gui - # |- widget - my_example_locale_visual_banner - widget = { - name = "activity_locale_background_widget_banner_layer" - size = { 100% 100% } - } - } - - widget = { - name = "locale_header" - size = { 600 90 } - parentanchor = top|left - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 16 16 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 16 0 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - - margin = { 20 0 } - margin_top = 16 - margin_bottom = 8 - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - alpha = 0.1 - blend_mode = alphamultiply - spriteType = Corneredtiled - spriteborder = { 160 0 } - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Activity.GetShortNameNoTooltip]" - align = nobaseline - fontsize = 28 - fontsize_min = 16 - max_width = 600 - - using = Font_Size_Big - using = Font_Type_Flavor - } - } - - - text_single = { - layoutpolicy_horizontal = expanding - - text = ACTIVITY_IN_CURRENT_LOCATION - align = nobaseline - max_width = 600 - - using = Font_Size_Medium - } - } - } - - activity_pulse_action_popup_left = { - datacontext = "[ActivityLocaleWindow.GetLastWeeklyPulseEffectData]" - visible = "[And( ActivityPulseEffect.IsValid, Not( ActivityLocaleWindow.HasActiveEvent ) )]" - parentanchor = bottom|left - position = { 0 -280 } - - layer = top - } - - widget_activity_locale_fullscreen_event = { - name = "widget_activity_locale_fullscreen_event" - size = { 100% 100% } - parentanchor = top|hcenter - } - - widget = { - name = "widget_activity_locale_fullscreen_other_event" - size = { 100% 100% } - parentanchor = top|hcenter - alwaystransparent = yes - } - - widget = { - size = { 300 870 } - position = { -4 16 } - parentanchor = right|vcenter - alwaystransparent = yes - - vbox = { - layoutpolicy_vertical = expanding - - vbox_activity_locale_right_bar = {} - - expand = {} - } - } - - vbox = { - name = "main_contents" - - expand = {} - - hbox_activity_locale_bottom_bar = { - name = "bottom_bar" - datacontext = "[ActivityLocaleWindow.GetActivity]" - layoutpolicy_horizontal = expanding - } - } - - ## Other custom widget - widget = { - name = "activity_locale_other_custom_widgets" - size = { 100% 100% } - } - - widget_activity_locale_regular_event = { - name = "activity_event" - } - - button_close = { - parentanchor = top|right - position = { -10 60 } - size = { 32 32 } - - onclick = "[VariableSystem.Clear( 'activity_locale_view' )]" - onclick = "[ActivityLocaleWindow.Close]" - - shortcut = "close_window" - - using = Animation_ShowHide_Quick - - tooltip = "CLOSE_TOOLTIP" - - background = { - using = Background_Area_Dark - margin = { 6 6 } - alpha = 0.8 - } - } - - widget = { - layer = hud_layer - size = { 100% 88 } - position = { 0 -10 } - - hbox = { - expand = {} - resources_top_right_bar = { - name = "top_bar_hud" - visible = "[Not(VariableSystem.Exists('royal_court_screenshot_window'))]" - datacontext = "[AccessTopBar]" - - using = Animation_ShowHide_Quick - } - } - } - - ## Top layer - widget = { - name = "activity_locale_top_layer" - size = { 100% 100% } - - widget_locale_window_conclusion = { - size = { 1390 750 } - parentanchor = center - - visible = "[And( Not( ActivityLocaleWindow.HasActiveEvent ), Activity.IsComplete )]" - } - } - - error_horse = { - parentanchor = bottom|left - position = { 50 -380 } - visible = "[And( Not( IsPauseMenuShown ), Not(ReleaseMode) )]" - } -} - -types ActivityLocaleTypes -{ - @widget_activity_locale_phase_item_width = 150 - @icon_activity_locale_phase_progression_size = 48 - @widget_activity_locale_phase_item_spacing = 8 - - @progress_bar_segment_size = @[widget_activity_locale_phase_item_width + widget_activity_locale_phase_item_spacing] - - type widget_locale_actions = widget { - - background = { - texture = "gfx/interface/illustrations/activity_header_backgrounds/activity_tournament.dds" - alpha = 0.2 - mirror = horizontal - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - ## Actions - widget = { - name = "intent_box" - position = { -60 8 } - size = { 250 76 } - parentanchor = top|right - - ## Intent Data - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 16 - - text_label_left = { - text = locale_window_your_intent - } - - expand = {} - } - - button_standard = { - datacontext = "[GetPlayer.GetInvolvedActivityIntent]" - size = { 250 40 } - - onclick = "[ToggleGameViewData( 'activity_intent_selection', GetPlayer )]" - - tooltip = "ACTIVITY_OPEN_INTENT_WINDOW" - - hbox = { - name = "intent" - margin = { 8 4 } - spacing = 5 - layoutpolicy_vertical = expanding - - icon_flat_standard = { - name = "current_intent_icon" - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - - blockoverride "master_color_frame" { - frame = 1 - } - } - - text_single = { - name = "current_intent" - text = "[ActivityIntent.GetName]" - align = nobaseline - } - - expand = {} - - button_change = { - name = "change_intent" - onclick = "[ToggleGameViewData( 'activity_intent_selection', GetPlayer )]" - } - } - } - } - } - - ## Player Portrait and status - widget = { - size = { 100% 100% } - parentanchor = bottom - allow_outside = yes - - portrait_activity_locale_window = { - position = { 2 -17 } - size = { 237 237 } - allow_outside = yes - } - - ## Copy of hud.gui:1742 with adjustments - flowcontainer = { - name = "bottom_left_bar" - visible = "[And( Not( IsPauseMenuShown ), And(And(IsDefaultGUIMode, GetPlayer.IsValid), Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD'))))]" - parentanchor = bottom|left - position = { 66 0 } - ignoreinvisible = yes - alwaystransparent = no - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.21 - - position = { 66 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.21 - - position = { 30 50 } - alpha = 0 - } - - widget = { - name = "stress_widget" - size = { 110 55 } - - widget = { - parentanchor = center - size = { 180 108 } - - tooltip = "PLAYER_STRESS_TOOLTIP" - using = tooltip_ne - - widget = { - name = "progressbar" - parentanchor = center - widgetanchor = left|vcenter - position = { -13 0 } - size = { 60 20 } - - background = { - texture = "gfx/interface/colors/white.dds" - color = { 0.1 0.1 0.1 0.8 } - } - - icon = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - color = { 1 0.1 0.1 0.2 } - - using = Animation_ShowHide_Standard - - state = { - name = a - next = b - trigger_on_create = yes - - using = Animation_Curve_Default - duration = 0.8 - alpha = 0 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 1 - } - } - - hbox = { - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( GetPlayer.GetStressProgress, '(float)100', '(int32)60' )]" - - progressbar_hud_stress = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/red.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.7 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/orange.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)1')]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/gold_darker.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - - progressbar_hud_stress = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)0')]" - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - blockoverride "bar_color" - { - texture = "gfx/interface/colors/blue.dds" - } - - blockoverride "bar_color_flow" - { - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( GetPlayer.GetStressProgress, '(float)100', '(int32)60' )]" - } - } - } - widget = { - size = { 100% 100% } - - progressbar_hud_stress_glow = { - texture = "gfx/interface/hud/hud_stress_glow_red.dds" - - blockoverride "animation_trigger_1" - { - name = "stress_level_increase" - } - - blockoverride "animation_trigger_2" - { - name = "stress_increase" - } - } - - progressbar_hud_stress_glow = { - texture = "gfx/interface/hud/hud_stress_glow_blue.dds" - - blockoverride "animation_trigger_1" { - name = "stress_level_decrease" - } - - blockoverride "animation_trigger_2" - { - name = "stress_decrease" - } - } - - progressbar_hud_stress_glow = { - visible = "[EqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]" - texture = "gfx/interface/hud/hud_stress_glow_red.dds" - - blockoverride "animation_trigger_1" { - name = "lvl3_fire" - trigger_on_create = yes - } - - blockoverride "animation_trigger_2" {} - blockoverride "lvl_3" {} - } - - icon = { - parentanchor = center - position = { -30 0 } - size = { 30 30 } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - - - modify_texture = { - name = "mask_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = 1 - } - - modify_texture = { - name = "mask_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = -1 - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - alpha = 0.1 - } - - modify_texture = { - name = "mask_4" - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = mask - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/colors/gold.dds" - blend_mode = add - } - - state = { - name = "stress_level_increase" - next = b - - using = Animation_Curve_Default - scale = 1 - alpha = 0 - } - - state = { - name = b - next = c - - duration = 0.6 - bezier = { 0.5 0 1 0.5 } - - scale = 5 - alpha = 0.7 - } - - state = { - name = c - duration = 0.3 - alpha = 0 - scale = 6 - } - - state = { - name = rotate_a - next = rotate_b - trigger_on_create = yes - - modify_texture = { - name = "mask_1" - rotate_uv = 1 - } - } - - state = { - name = rotate_a - next = rotate_b - - duration = 1 - - modify_texture = { - name = "mask_1" - rotate_uv = 180 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - trigger_on_create = yes - - modify_texture = { - name = "mask_2" - rotate_uv = -1 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - - duration = 1 - - modify_texture = { - name = "mask_2" - rotate_uv = -180 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - trigger_on_create = yes - - modify_texture = { - name = "mask_3" - rotate_uv = 0 - alpha = 0.1 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - - duration = 1 - - modify_texture = { - name = "mask_3" - rotate_uv = 40 - alpha = 0.8 - } - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/skinned/hud_stress_bg.dds" - - icon = { - parentanchor = vcenter - position = { 41 0 } - size = { 35 35 } - - texture = "gfx/interface/icons/stress/icon_stress_level.dds" - framesize = { 70 70 } - frame = "[IntToFrameIndex( GetPlayer.GetStressLevel )]" - - modify_texture = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - name = "lvl3_glow" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "lvl_increase" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = a - next = b - duration = 0.6 - trigger_on_create = yes - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0.3 - } - } - - state = { - name = b - next = a - duration = 1.5 - using = Animation_Curve_Default - - modify_texture = { - name = "lvl3_glow" - alpha = 0 - } - } - - state = { - name = "stress_level_increase" - next = "stress_level_increase_2" - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - - state = { - name = "stress_level_increase_2" - next = "stress_level_increase_3" - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - modify_texture = { - name = "lvl_increase" - alpha = 0.7 - } - } - - state = { - name = "stress_level_increase_3" - duration = 0.5 - bezier = { 0 0.5 0.5 1 } - - modify_texture = { - name = "lvl_increase" - alpha = 0 - } - } - } - } - } - - } - } - - widget_stress_sounds = {} - } - } - } - - type vbox_guest_management_container = vbox { - - ## Banner - hbox = { - text_label_center = { - maximumsize = { 200 -1 } - - block "header_text" { - } - } - } - } - - type hbox_locale_guest_action_buttons = hbox { - name = "locale_guest_action_buttons" - spacing = 4 - - vbox_guest_management_container = { - name = "guest_management_container" - layoutpolicy_horizontal = expanding - - spacing = 8 - margin_bottom = 50 - - blockoverride "header_text" { - text = locale_window_guests_header - } - - button_standard = { - name = "guest_list" - - size = { 200 32 } - - text = "locale_window_all_guests_button" - tooltip = locale_window_all_guests_button_tooltip - - down = "[IsGameViewDataShown( 'activity_guest_list', Activity.Self )]" - onclick = "[ToggleGameViewData( 'activity_guest_list', Activity.Self )]" - enabled = "[Not(ActivityLocaleWindow.HasActiveEvent)]" - } - } - } - - type hbox_activity_locale_bottom_bar = hbox - { - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - ## Left Section - widget_locale_actions = { - name = "activity_locale_bottom_left" - size = { 528 220 } - } - - ## Middle Section - widget = { - name = "activity_locale_bottom_middle" - size = { 864 220 } - } - - ## Right Section - widget = { - name = "activity_locale_bottom_right" - size = { 528 220 } - - background = { - texture = "gfx/interface/illustrations/activity_header_backgrounds/activity_tournament.dds" - alpha = 0.2 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 0 } - margin_top = 8 - spacing = 8 - - hbox = { - name = "activity_log_button_container" - layoutpolicy_horizontal = expanding - - expand = {} - - button_standard = { - name = "activity_log" - size = { 270 32 } - text = "ACTIVITY_WINDOW_LOG" - down = "[IsGameViewDataShown( 'activity_log', Activity.Self )]" - onclick = "[ToggleGameViewData( 'activity_log', Activity.Self )]" - } - } - - hbox = { - name = "bottom_right_content_container" - layoutpolicy_horizontal = expanding - - hbox = { - name = "bottom_right_content_before_guests" - layoutpolicy_horizontal = expanding - margin_bottom = 70 - margin_right = 122 - } - - hbox_locale_guest_action_buttons = { - margin_right = 32 - } - - hbox = { - name = "bottom_right_content_after_guests" - } - } - } - } - } - - type vbox_activity_locale_right_bar = vbox - { - vbox = { - name = "activity_locale_window_right_bar_container" - } - } - - type widget_activity_locale_regular_event = activity_event_widget_base - { - datacontext = "[ActivityLocaleWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - - size = { 1120 580 } - alwaystransparent = no - - parentanchor = center - } - - type widget_activity_locale_fullscreen_event = widget { - datacontext = "[ActivityLocaleWindow.GetEventWindowInsert( PdxGuiWidget.AccessSelf )]" - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[EventWindowViewInsert.HasOpenEvent]" - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiTriggerAllAnimations( 'activity_event_appear' )]" - } - - widget = { - size = { 100% 100% } - alwaystransparent = no - parentanchor = hcenter|top - - state = { - name = activity_new_event_shown - on_start = "[PdxGuiWidget.FindChild( 'event_video' ).GfxVideoControl.Restart]" - on_start = "[PdxGuiWidget.FindChild( 'event_transition_video' ).GfxVideoControl.Restart]" - } - - event_window_background_widget = { - blockoverride "event_mask" {} - } - - widget = { - size = { 100% 100% } - position = { 0 -220 } - parentanchor = vcenter - - block "fullscreen_event_attributes" - { - - } - - ## Characters - vbox = { - widget = { - name = "text_spacer" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - } - - ## Characters - widget = { - name = "characters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - ## Multiple characters - hbox = { - ### LEFT CHARACTERS ### - widget = { - name = "portraits_left" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### SECONDARY ### - widget = { - parentanchor = bottom|right - position = { -580 0 } - size = { 400 558 } - - allow_outside = no - - portrait_event_tournament = { - name = "portrait_secondary_left" - datacontext = "[EventWindowData.GetPortraitCharacter('lower_left_portrait')]" - visible = "[And(EventWindowData.HasPortraitCharacter('lower_left_portrait'), EventWindowData.HasPortraitCharacter('right_portrait'))]" - parentanchor = center - - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('lower_left_portrait', 'camera_event_tournament_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_left_portrait')]" - tooltip_offset = { 400 -900 } - using = tooltip_below - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_left_portrait') ))]" - position = { -0 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('lower_left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### PRIMARY ### - widget = { - parentanchor = bottom|right - position = { -300 0 } - size = { 400 558 } - - allow_outside = no - - portrait_event_tournament = { - name = "portrait_primary_left" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), EventWindowData.HasPortraitCharacter('right_portrait'))]" - parentanchor = center - - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_tournament_left', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - tooltip_offset = { 540 -900 } - using = tooltip_below - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - position = { -0 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 280 500 } - parentanchor = bottom|left - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - - ### RIGHT CHARACTERS ### - widget = { - name = "portraits_right" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### SECONDARY CHARACTER ### - widget = { - parentanchor = bottom|left - position = { 580 0 } - size = { 400 558 } - - allow_outside = no - - portrait_event_tournament = { - name = "portrait_secondary_right" - datacontext = "[EventWindowData.GetPortraitCharacter('lower_right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('lower_right_portrait')]" - parentanchor = center - - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('lower_right_portrait', 'camera_event_tournament_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('lower_right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('lower_right_portrait')]" - using = tooltip_below - tooltip_offset = { -400 -900 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('lower_right_portrait') ))]" - position = { 0 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible_at_creation = no - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('lower_right_portrait')))]" - size = { 285 500 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - - ### PRIMARY CHARACTER ### - widget = { - parentanchor = bottom|left - position = { 300 0 } - size = { 400 558 } - - allow_outside = no - - portrait_event_tournament = { - name = "portrait_primary_right" - datacontext = "[EventWindowData.GetPortraitCharacter('right_portrait')]" - visible = "[EventWindowData.HasPortraitCharacter('right_portrait')]" - parentanchor = center - - size = { 500 558 } - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('right_portrait', 'camera_event_tournament_right', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('right_portrait'))]" - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('right_portrait')]" - using = tooltip_below - tooltip_offset = { -400 -900 } - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('right_portrait') ))]" - position = { 0 0 } - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible_at_creation = no - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('right_portrait')))]" - size = { 285 500 } - parentanchor = bottom|right - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - } - - ## Single character - portrait_event = { - name = "portrait_center" - visible = "[And(EventWindowData.HasPortraitCharacter('left_portrait'), Not(EventWindowData.HasPortraitCharacter('right_portrait')))]" - datacontext = "[EventWindowData.GetPortraitCharacter('left_portrait')]" - size = { 100% 112% } - position = { 225 16 } - parentanchor = bottom|right - - blockoverride "portrait_button" - { - portrait_texture = "[EventWindowData.GetAnimatedEventPortraitTexture('left_portrait', 'camera_event_center', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - alwaystransparent = "[Not(EventWindowData.ShouldShowPortraitInfo('left_portrait'))]" - size = { 650 558 } - - tooltip_visible = "[EventWindowData.ShouldShowPortraitInfo('left_portrait')]" - tooltip_offset = { 550 -580 } - using = tooltip_below - } - - blockoverride "highlight_visible" - { - visible = "[Or(Character.IsHovered, EventWindowData.IsCharacterHighlighted( EventWindowData.GetPortraitCharacter('left_portrait') ))]" - } - - blockoverride "grayscale" {} - - highlight_icon = { - name = "prison_bars" - visible = "[And(Character.IsImprisoned, Not(EventWindowData.ShouldHideImprisonment('left_portrait')))]" - visible_at_creation = no - size = { 300 500 } - parentanchor = bottom|hcenter - effectname = "NoHighlight" - spriteType = corneredTiled - texture_density = 1.5 - texture = "gfx/portraits/portrait_prison_body.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_event.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - } - } - } - - ## Event text and options - hbox = { - margin_left = 32 - margin_right = 32 - margin_top = 170 - margin_bottom = 250 - parentanchor = hcenter - - widget = { - name = "characters_spacer_left" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - } - - widget = { - name = "text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 45 - - vbox = { - name = "description_and_options" - layoutpolicy_vertical = expanding - alpha = 0 - - state = { - name = appear - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 1.5 - } - - ## Event text - hbox = { - name = "event_text_area" - layoutpolicy_horizontal = expanding - margin_bottom = 8 - - minimumsize = { 490 -1 } - maximumsize = { 490 -1 } - - text_multi = { - name = "description" - minimumsize = { 480 -1 } - maximumsize = { 480 -1 } - autoresize = yes - margin = { 16 0 } - margin_top = 4 - margin_bottom = 32 - text = "[EventWindowData.GetDescription]" - fontsize = 16 - - background = { - using = Background_Area_ExtraDark - alpha = 0.9 - - margin = { 140 16 } - margin_bottom = 32 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - - flowcontainer = { - name = "event_debug_info" - visible = "[InDebugMode]" - ignoreinvisible = yes - - using = Event_Window_Debug_Info - - blockoverride "event_reset_onclick" - { - onclick = "[EventWindowViewInsert.Reload]" - } - - background = { - using = Background_Area_Dark - - margin = { 16 16 } - alpha = 0.9 - } - } - - ## Event options - vbox = { - name = "event_options_area" - allow_outside = yes - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - margin_bottom = 5 - - hbox = { - spacing = 5 - - hbox = { - name = "dynamic_birth_name" - margin = { 5 0 } - } - } - - vbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - fixedgridbox = { - name = "option_grid" - addcolumn = 500 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = { - blockoverride "onmousehierarchy_callbacks" - { - onmousehierarchyenter = "[EventWindowViewInsert.OnMouseEnterOption( EventOption.Self )]" - onmousehierarchyleave = "[EventWindowViewInsert.OnMouseLeaveOption]" - } - } - } - } - } - - widget = { - name = "bottom_event_spacing" - size = { 0 35 } - layoutpolicy_horizontal = expanding - } - } - } - - widget = { - name = "characters_spacer_right" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 55 - } - } - - ## Header - vbox = { - margin_top = 94 - - hbox = { - spacing = 8 - - background = { - using = Background_Area_Solid - - margin = { 250 -8 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - icon = { - name = "theme_icon" - size = { 74 74 } - texture = "[EventWindowData.GetThemeIcon]" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_blue_shine.dds" - blend_mode = colordodge - translate_uv = {0.6 0} - } - - state = { - name = right - next = left - - duration = 2 - bezier = { .8 .18 .96 .05} - - modify_texture = { - name = overlay - translate_uv = {-0.6 0} - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = {0.6 0} - } - } - } - - text_single = { - name = "title" - fontsize = 29 - fontsize_min = 16 - text = "[EventWindowData.GetTitle]" - default_format = "#high;weak_glow" - using = Font_Type_Flavor - max_width = 950 - align = nobaseline - - alpha = 0 - - state = { - name = start - trigger_on_create = yes - delay = 0.2 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - } - - expand = {} - } - - expand = {} - } - - event_window_transition_widget = { - - block "transition_widget_states" - { - using = Event_Window_Default_Transition_States - } - - blockoverride "event_transition_mask_properties" - { - loop = no - restart_on_show = yes - } - - blockoverride "event_transition_video_properties" - { - restart_on_show = yes - } - } - } - } - - type progressbar_phase_progress = progressbar { - size = { @progress_bar_segment_size 24 } - - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/progress_grandeur.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - spriteType = Corneredtiled - spriteborder = { 6 6 } - } - - type widget_activity_locale_news_feed = widget { - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - minimumsize = { 300 -1 } - maximumsize = { 300 -1 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - widget = { - size = { 300 40 } - - text_single = { - parentanchor = center - - text = ACTIVITY_LOG_HEADER - align = nobaseline - default_format = "#high;weak_glow" - max_width = 280 - - using = Font_Type_Flavor - using = Font_Size_Big - } - } - - scrollbox = { - name = "locale_log_entries" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( Activity.GetLogEntries )]" - text = ACTIVITY_LOG_NO_ENTRIES - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "log_entries_list" - datamodel = "[Activity.GetLogEntries]" - spacing = 4 - - item = { - hbox = { - name = "log_entry" - visible = "[CanPlayerSeeActivityLogEntry]" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - spacing = 8 - - tooltip = "[ActivityLogEntry.GetFullDescription]" - - # An ActivityLogEntry can have multiple tags, - # be aware of this when implementing tag - # related art. Speak with design and code if - # you need more tags. - # - # At time of writing this, the current tags - # are provided by design: - # good, bad, contest_info, highlight, - # intent, secret, death - - #################### - ### NO TAG EVENT ### - #################### - background = { - visible = "[ActivityLogEntry.HasNoTags]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.7 - - using = Color_Black - using = Mask_Rough_Edges - - margin = { 0 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ################# - ### BAD EVENT ### - ################# - background = { - visible = "[ActivityLogEntry.HasTag( 'bad' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Red - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'bad' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ################## - ### GOOD EVENT ### - ################## - background = { - visible = "[ActivityLogEntry.HasTag( 'good' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Green - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'good' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ####################### - ### IMPORTANT EVENT ### - ####################### - background = { - visible = "[ActivityLogEntry.HasTag( 'highlight' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'highlight' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - #################### - ### INTENT EVENT ### - #################### - background = { - visible = "[ActivityLogEntry.HasTag( 'intent' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.15 - - using = Color_Purple - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'intent' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - #################### - ### SECRET EVENT ### - #################### - # Secret, will only be shown if local player is the Character - background = { - visible = "[ActivityLogEntry.HasTag( 'secret' )]" - - texture = "gfx/interface/colors/white.dds" - alpha = 0.1 - - using = Color_Grey - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[ActivityLogEntry.HasTag( 'secret' )]" - - using = Background_Frame - - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - widget = { - size = { 24 24 } - name = "activity_locale_log_icon" - - background = { - using = Background_Area_Solid - - alpha = 0.4 - margin = { 2 2 } - } - - icon = { - size = { 16 16 } - parentanchor = center - visible = "[ActivityLogEntry.HasTag( 'secret' )]" - - using = Texture_Placeholder - } - } - - text_single = { - name = "activity_locale_log_title" - - text = "[ActivityLogEntry.GetTitle]" - align = nobaseline - min_width = 230 - max_width = 230 - } - - expand = { } - } - } - } - } - } - } - } - - type button_planned_phase_button = button_standard_clean - { - onclick = "[ActivityLocaleWindow.SetSelectedPhase(PlannedActivityPhase.Self)]" - onclick = "[SetLocaleView( 'phase_information' )]" - - text_label_center = { - layoutpolicy_horizontal = expanding - parentanchor = bottom|hcenter - text = "[PlannedActivityPhase.GetPhase.GetName]" - max_width = 130 - position = { 0 -2 } - } - } - - type widget_locale_window_conclusion = widget { - - using = Window_Background - using = Window_Decoration - - margin_widget = { - name = "background" - size = { 99% 99% } - - background = { - fittype = centercrop - using = Mask_Rough_Edges - texture = "[ActivityLocaleWindow.GetBackground.GetTexture]" - visible = "[Not( ActivityLocaleWindow.HasActiveEvent )]" - margin_bottom = -12 - margin_left = -16 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 2250 - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 2250 - mirror = horizontal - blend_mode = alphamultiply - } - } - } - - widget = { - name = "conclusion_header" - layoutpolicy_horizontal = expanding - parentanchor = hcenter - size = { 1395 144 } - - icon = { - name = "theme_header" - parentanchor = hcenter - position = { 0 -80 } - size = { 97% 97% } - texture = "gfx/interface/window_activities/header_activity.dds" - - modify_texture = { - name = overlay - texture = "gfx/interface/component_effects/effect_header_blue_shine.dds" - blend_mode = colordodge - translate_uv = { 0.6 0 } - } - - state = { - name = right - next = left - - duration = 8 - bezier = { 0.8 0.18 0.96 .05 } - - modify_texture = { - name = overlay - translate_uv = { -0.6 0 } - } - } - - state = { - name = left - next = right - - duration = 0.0 - delay = 5 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - - state = { - trigger_on_create = yes - name = start - next = right - - duration = 0.0 - - modify_texture = { - name = overlay - translate_uv = { 0.6 0 } - } - } - } - - icon = { - texture = "[Activity.GetType.GetHeaderIcon]" - size = { 82 82 } - position = { 0 -40 } - parentanchor = top|hcenter - } - - container = { - parentanchor = left - position = { 50 4 } - - activity_header = { - name = "conclusion_title" - text = "ACTIVITY_CONCLUSION_HEADER" - } - } - - buttons_window_control = { - parentanchor = right - position = { -30 5 } - allow_outside = yes - - blockoverride "button_close" - { - onclick = "[ActivityLocaleWindow.Close]" - } - blockoverride "button_go_to" - { - tooltip = "ACTIVITY_WINDOW_CURRENT_LOCATION" - onclick = "[Activity.GetCurrentPhase.GetLocation.PanCameraTo]" - } - } - } - - vbox = { - name = "conclusion_content" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - expand = { } - - hbox = { - name = "conclusion" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 26 0 } - - vbox_activity_conclusion = { - name = "activity_conclusion" - layoutpolicy_vertical = expanding - margin_top = 54 - margin_bottom = 38 - - spacing = 16 - - background = { - using = Background_Area_ExtraDark - margin_bottom = -18 - margin_top = -54 - alpha = 0.9 - } - - visible = "[Activity.IsComplete]" - - blockoverride "close_activity_onclick" - { - onclick = "[ActivityLocaleWindow.Close]" - } - } - - fixedgridbox = { - name = "idle_characters_small" - datamodel = "[ActivityLocaleWindow.GetCharacters]" - visible = "[LessThanOrEqualTo_int32( GetDataModelSize( ActivityLocaleWindow.GetCharacters ), '(int32)3' )]" - - addcolumn = 290 - addrow = 430 - maxhorizontalslots = 3 - flipdirection = yes - - item = { - widget = { - size = { 250 430 } - - allow_outside = no - - portrait_body = { - parentanchor = center - allow_outside = yes - datacontext = "[ActivityWindowCharacter.GetCharacter]" - - blockoverride "portrait_texture" - { - size = { 550 400 } - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', ActivityWindowCharacter.GetAnimation, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - - tooltip_offset = { 600 -900 } - using = tooltip_below - } - } - - text_label_center = { - name = "label" - parentanchor = bottom|hcenter - text = "[ActivityWindowCharacter.GetLabel]" - } - } - } - } - - fixedgridbox = { - name = "idle_characters_many" - datamodel = "[ActivityLocaleWindow.GetCharacters]" - visible = "[GreaterThan_int32( GetDataModelSize( ActivityLocaleWindow.GetCharacters ), '(int32)3' )]" - - addcolumn = 220 - addrow = 320 - maxhorizontalslots = 4 - flipdirection = yes - datamodel_wrap = 4 - - item = { - widget = { - size = { 220 320 } - - allow_outside = no - - portrait_shoulders = { - parentanchor = center - position = { 0 34 } - allow_outside = yes - datacontext = "[ActivityWindowCharacter.GetCharacter]" - - blockoverride "portrait_texture" - { - size = { 400 280 } - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', ActivityWindowCharacter.GetAnimation, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - - tooltip_offset = { 500 -900 } - using = tooltip_below - } - } - - text_label_center = { - name = "label" - parentanchor = bottom|hcenter - text = "[ActivityWindowCharacter.GetLabel]" - } - } - } - } - - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_activity_log.gui b/N3OW/gui/window_activity_log.gui deleted file mode 100644 index 494c916b..00000000 --- a/N3OW/gui/window_activity_log.gui +++ /dev/null @@ -1,153 +0,0 @@ -window = { - name = "activity_log" - - layer = top - allow_outside = yes - size = { 800 710 } - position = { 600 120 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 120 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 200 - } - - vbox = { - using = Window_Margins - - datacontext = "[ActivityLogWindow.GetActivity]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ACTIVITY_LOG_HEADER" - } - blockoverride "button_close" - { - onclick = "[ActivityLogWindow.Close]" - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( Activity.GetLogEntries )]" - text = "ACTIVITY_LOG_NO_ENTRIES" - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - name = "log_entries_list" - datamodel = "[Activity.GetLogEntries]" - addcolumn = 690 - addrow = 224 - - item = { - widget = { - name = "log_entry" - size = { 690 224 } - - background = { - using = Background_Area_With_Header - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 4 } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "log_title" - text = "[ActivityLogEntry.GetTitle]" - default_format = "#high" - max_width = 480 - } - - expand = {} - - text_single = { - name = "log_date" - text = "[ActivityLogEntry.GetDate.GetString]" - max_width = 200 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 16 } - - text_multi = { - name = "log_desc_only_text" - text = "[ActivityLogEntry.GetFullDescription]" - - size = { 440 164 } - multiline = yes - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - portrait_head = { - name = "log_character" - datacontext = "[ActivityLogEntry.GetCharacter]" - } - - expand = {} - } - - vbox = { - datacontext = "[ActivityLogEntry.GetArtifact]" - datacontext = "[ActivityLogEntry.GetTarget]" - layoutpolicy_vertical = expanding - - portrait_head = { - name = "log_target" - datacontext = "[ActivityLogEntry.GetTarget]" - visible = "[And( Character.IsValid, Not( Artifact.IsValid ) )]" - } - - portrait_head_small = { - name = "log_target_small" - datacontext = "[ActivityLogEntry.GetTarget]" - visible = "[And( Character.IsValid, Artifact.IsValid )]" - } - - icon_artifact = { - visible = "[Artifact.IsValid]" - } - - expand = {} - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_activity_planner.gui b/N3OW/gui/window_activity_planner.gui deleted file mode 100644 index 871737a5..00000000 --- a/N3OW/gui/window_activity_planner.gui +++ /dev/null @@ -1,2058 +0,0 @@ -window = { - name = "activity_planner" - size = { 100% 100% } - movable = no - layer = middle - - alwaystransparent = yes - - datacontext = "[ActivityPlanner.GetActivityType]" - datacontext = "[ActivityPlanner.AccessAsTravelPlanner]" - datacontext = "[TravelPlanner.GetTravelPlanData]" - datacontext = "[GetVariableSystem]" - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Clear( 'reorganizing_multi_location' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'activity_planner_hide_default_magnificence' )]" - } - - location_picking_help_text_widget = { - position = {0 160} - } - - widget = { - name = "bottom_right_area" - visible = "[And(ActivityPlanner.IsPlanningStage( 'options' ), And(Not(IsGameViewOpen('court_window')), Not(IsGameViewOpen('travel_route_edit_window'))))]" - - allow_outside = yes - - parentanchor = bottom|right - - state = { - name = _show - using = Animation_FadeIn_Standard - delay = 0.25 - position_y = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_y = 50 - } - - vbox = { - allow_outside = yes - set_parent_size_to_minimum = yes - - activity_planner_activity_details_hbox = {} - } - } - - multi_location_picker_widget = {} - - activity_special_option_selection_widget = { - visible = "[ActivityPlanner.IsPlanningStage( 'special_option_category' )]" - - parentanchor = center - } - - activity_planner_main_heading_widget = {} - - travel_planning_window = { - widgetid = "travel_planning_tutorial_uses_this_1" - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -100 - } - - blockoverride "visible" - { - visible = "[ActivityPlanner.IsPlanningStage( 'options' )]" - } - - blockoverride "button_close_overload" - { - visible = no - } - - blockoverride "destination_text" { - text_single = { - visible = "[And(ActivityType.IsSingleLocation, TravelPlanData.HasNextDestination)]" - align = nobaseline - text = "TRAVEL_PLAN_CURRENT_DESTINATION" - default_format = "#high" - margin_left = 4 - } - - text_multi = { - visible = "[And(Not(ActivityType.IsSingleLocation), TravelPlanData.HasNextDestination)]" - min_width = 300 - align = nobaseline - text = "TRAVEL_PLAN_NEXT_DESTINATION" - default_format = "#high" - margin_left = 4 - } - - text_single = { - visible = "[Not(TravelPlanData.HasNextDestination)]" - align = nobaseline - text = "TRAVEL_PLAN_NO_DESTINATION" - default_format = "#high" - margin_left = 4 - } - } - } - - ### CREATES THE CONTEST PICKING WINDOW DO NOT REMOVE! - vbox = { - name = "activity_plugin_center" - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - travel_entourage_list_window = { - visible_at_creation = no - visible = "[TravelPlanner.IsEntourageListWindowOpen]" - } - - error_horse = { - parentanchor = bottom|left - position = { 610 -10 } - visible = "[And( Not( IsPauseMenuShown ), Not(ReleaseMode) )]" - } -} - -types ActivityPlannerTypes -{ - type selectable_target_portrait_widget = widget - { - #expects a Character datacontext - - name = "portrait_area" - - block "size" - { - size = { 85 90 } - } - - block "target_glow" - { - } - - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - widget = { - name = "frame" - size = { 100% 100% } - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.5 - } - } - - block "portrait" - { - portrait_head_small = { - name = "filled_slot" - - visible = "[Character.IsValid]" - parentanchor = center - - block "filled_slot" - { - } - } - } - - button = { - name = "empty_slot" - - visible = "[Not(Character.IsValid)]" - - size = { 100% 100% } - - block "empty_slot" - { - } - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('show')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('hide')]" - } - - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 105 110 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - } - - button_plus = { - parentanchor = center - alwaystransparent = yes - } - - widget = { - name = "highlight_frame" - size = { 100% 100% } - alwaystransparent = yes - alpha = 0 - - state = { - name = "show" - alpha = 1 - } - - state = { - name = "hide" - alpha = 0 - } - - background = { - size = { 100% 100% } - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - } - } - - type potential_selectable_target_portrait_widget = widget - { - size = { 475 94 } - - portrait_head_small = { - parentanchor = left|vcenter - } - - button_standard = { - parentanchor = right|vcenter - size = { 380 84 } - - block "onclick" - { - } - - character_list_arrow = { - name = "character_list_arrow" - } - - - hbox = { - margin = { 16 16 } - - vbox = { - - expand = {} - - text_single = { - name = "character_name" - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip|U]" - align = nobaseline - default_format = "#high" - max_width = 320 - using = Font_Size_Medium - - alwaystransparent = yes - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - align = nobaseline - max_width = 320 - - alwaystransparent = yes - } - - expand = {} - } - - expand = {} - - block "extra_data" - { - } - } - } - } - - - type caravan_master_portrait_widget = widget - { - #expects a Character datacontext - - name = "portrait_area" - size = { 125 160 } - - portrait_shoulders = { - name = "filled_slot" - - visible = "[Character.IsValid]" - - block "filled_slot" - { - } - } - - button = { - name = "empty_slot" - visible = "[Not(Character.IsValid)]" - size = { 100% 100% } - - tooltip = "APPOINT_CARAVAN_MASTER" - - block "empty_slot" - { - } - - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds" - size = { 115 150 } - framesize = { 554 780 } - upframe = 1 - overframe = 2 - } - - button_plus = { - visible = "[And( Not( TravelPlanner.GetTravelPlan.IsValid ), Not( Character.IsValid ) )]" - parentanchor = center - alwaystransparent = yes - } - } - - text_multi = { - visible = "[And( TravelPlanner.GetTravelPlan.IsValid, Not( Character.IsValid ) )]" - position = { 0 60 } - - text = "TRAVEL_LEADER_SELECTED_NONE" - align = center|nobaseline - autoresize = yes - default_format = "#weak" - max_width = 150 - - background = { - using = Background_Area_Dark - margin = { 8 4 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - } - - type activity_multi_location_plan_item_widget = widget - { - datacontext = "[PlannedActivityPhase.GetLocation.GetTitle.GetHolder]" - layoutpolicy_horizontal = expanding - size = { 386 116 } - - background = { - using = Background_Area_With_Header - margin = { 4 4 } - } - - widget = { - size = { 386 30 } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetFullNameNoTooltip]" - max_width = 370 - - margin_left = 4 - } - - button_icon = { - parentanchor = right|vcenter - position = { -4 0 } - size = { 30 30 } - - onclick = "[ActivityPlanner.RemovePhase( PlannedActivityPhase.AccessSelf )]" - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - } - - widget = { - position = { 0 26 } - size = { 85 90 } - - portrait_head_small = {} - } - - widget = { - position = { 85 34 } - size = { 386 30 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - margin_bottom = 5 - - text_single = { - text = "TRAVEL_TIME_MULTI_DESTINATION" - max_width = 110 - datacontext = "[ActivityPlanner]" - tooltip = "TRAVEL_TIME_MULTI_DESTINATION_TT" - } - - text_single = { - text = "[ActivityPlanner.GetCostForPhase(PlannedActivityPhase.Self)]" - max_width = 100 - } - - expand = {} - } - } - - widget = { - name = "pickable_phases_tutorial_uses_this" - layoutpolicy_horizontal = expanding - position = { 89 72 } - size = { 120 40 } - - fixedgridbox = { - visible = "[Not(VariableSystem.Exists( 'reorganizing_multi_location' ))]" - datamodel = "[ActivityType.GetPickablePhases]" - flipdirection = yes - addcolumn = 40 - addrow = 40 - - item = { - button_standard = { - size = { 40 40 } - - onclick = "[ActivityPlanner.SelectPhaseTypeFor(PlannedActivityPhase.AccessSelf, ActivityPhase.Self)]" - enabled = "[PlannerCanPickActivityPhase( ActivityPhase, PlannedActivityPhase.GetLocation )]" - down = "[ObjectsEqual(PlannedActivityPhase.GetPhase, ActivityPhase.Self)]" - - tooltip = "ACTIVITY_PLANNER_PHASE_REPLACE_TOOLTIP" - using = tooltip_se - - button_icon_highlight = { - parentanchor = center - size = { 34 34 } - texture = "[ActivityPhase.GetIcon]" - } - } - } - } - } - - widget = { - parentanchor = right|bottom - position = { -4 8} - size = { 30 60 } - - button_icon = { - parentanchor = top - size = { 30 30 } - - enabled = "[Not(ActivityPlanner.IsFirstPickedPhase(PlannedActivityPhase.Self))]" - onclick = "[ActivityPlanner.MovePhaseEarlier(PlannedActivityPhase.AccessSelf)]" - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - } - - button_icon = { - parentanchor = bottom - size = { 30 30 } - - enabled = "[Not(ActivityPlanner.IsLastPickedPhase(PlannedActivityPhase.Self))]" - onclick = "[ActivityPlanner.MovePhaseLater(PlannedActivityPhase.AccessSelf)]" - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - mirror = vertical - } - } - } - - type activity_summary_entry_vbox = vbox - { - layoutpolicy_horizontal = expanding - - margin = { 5 5 } - - background = { - using = Background_Area_With_Header - } - - text_single = { - layoutpolicy_horizontal = expanding - - align = left - - margin = { 10 5 } - - block "header_text" - { - } - } - - block "contents" - { - } - - expand = {} - } - - type activity_special_option_selection_widget = widget - { - datacontext = "[ActivityPlanner.GetEditingOption]" - visible = "[ActivityPlanner.IsEditingOption]" - size = { 100% 100% } - - using = Activity_Planner_Widget - - background = { - using = Background_Area_Dark - margin = { 10 10 } - alpha = 0.5 - } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 80 - spacing = 32 - - allow_outside = yes - - expand = { - layoutpolicy_vertical = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 50 - - allow_outside = yes - - background = { - using = Background_Area_ExtraDark - - margin_top = 150 - margin_bottom = 190 - margin_left = 200 - margin_right = 200 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_down.dds" - blend_mode = alphamultiply - } - } - - expand = {} - - vbox = { - datacontext = "[ActivityPlanner.GetSelectedSpecialOption]" - layoutpolicy_vertical = expanding - - margin_top = 16 - - allow_outside = yes - - text_single = { - layoutpolicy_horizontal = expanding - - text = [ActivityOption.GetName] - align = left|nobaseline - fontsize = 32 - - background = { - texture = "gfx/interface/window_activities/activity_planning/activity_type_banner.dds" - - margin = { 40 20 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - text_multi = { - layoutpolicy_vertical = expanding - - text = "ACTIVITY_TYPE_DESC" - min_width = 400 - max_width = 400 - - autoresize = yes - fontsize = 18 - } - } - - hbox = { - name = "special_options" - datamodel = "[ActiveActivityOption.GetCategory.GetOptions]" - - spacing = 16 - - allow_outside = yes - - item = { - widget = { - allow_outside = yes - size = { 230 550 } - - visible = "[ActivityOption.IsShown( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - - enabled = "[ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - - ### Glow animation on selected type - icon = { - visible = "[ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self )]" - parentanchor = center - size = { 264 590 } - - texture = "gfx/interface/window_activities/activity_planning/type_selected_glow.dds" - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.6 - duration = 1.5 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.2 - duration = 1.5 - - using = Animation_Curve_Default - } - } - - icon = { - visible = "[ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self )]" - parentanchor = center - size = { 264 590 } - mirror = vertical - - texture = "gfx/interface/window_activities/activity_planning/type_selected_glow.dds" - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.5 - delay = 0.5 - duration = 1.5 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.3 - duration = 1.5 - - using = Animation_Curve_Default - } - } - - icon = { - parentanchor = center - size = { 226 546 } - - texture = "[ActivityOption.GetTexture]" - - modify_texture = { - visible = "[Not(ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption ))]" - - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - alpha = 0.3 - } - - modify_texture = { - visible = "[Not(ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption ))]" - - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - - modify_texture = { - visible = "[Not(ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption ))]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.3 - } - } - - icon = { - parentanchor = center - size = { 226 546} - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - button_standard_clean = { - name = "special_option_button" - size = { 100% 100% } - - allow_outside = yes - - widget = { - parentanchor = bottom|hcenter - size = { 230 70 } - - background = { - using = Background_Area_ExtraDark - } - - vbox = { - text_single = { - name = "special_option_name" - - text = "[ActivityOption.GetName]" - using = Font_Size_Big - max_width = 220 - align = nobaseline - } - } - } - - # Activity Type Icon - widget = { - parentanchor = top|hcenter - position = { 0 -29} - size = { 60 60 } - - allow_outside = yes - - # Background - highlight_icon = { - parentanchor = top|hcenter - size = { 60 60 } - allow_outside = yes - - texture = "gfx/interface/window_activities/tournament/contest_selection_inactive_icon_bg.dds" - - - #Disabled type - modify_texture = { - visible = "[Not(ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption ))]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.7 - } - - modify_texture = { - visible = "[ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.4 - } - - modify_texture = { - visible = "[Not( ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self ))]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.4 - } - } - - icon_flat_standard = { - parentanchor = center - size = { 40 40 } - - texture = "[ActivityOption.GetIcon]" - - blockoverride "master_color_frame" { - frame = 1 - } - - modify_texture = { - visible = "[Not( ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self ))]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.6 - } - - modify_texture = { - visible = "[Not(ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption ))]" - - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.3 - } - } - } - - tooltip = "[ActivityOption.GetIsValidDesc(GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - using = tooltip_se - - onclick = "[ActivityPlanner.SelectOption( ActivityOption.Self )]" - - blockoverride "disabled" {} - - } - } - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - size = { 350 108 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - button_primary_big = { - parentanchor = center - - onclick = "[ActivityPlanner.ProgressPlanningStage]" - text = "CONFIRM" - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } -} - -types ActivityPlannerNewTypes -{ - type activity_planner_main_heading_widget = widget - { - name = "activity_planner_main_heading" - - size = { 600 140 } - - datacontext = "[ActivityPlanner.GetSelectedSpecialOption]" - datacontext = "[ActivityPlanner.GetActivityType]" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 16 16 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 8 } - - ignoreinvisible = yes - - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - - margin = { 20 16 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - name = "activity" - layoutpolicy_horizontal = expanding - text = ACTIVITY_PLANNER_MAIN_HEADING - align = left - } - } - - expand = {} - - # vbox if you have selected a Type - vbox = { - name = "has_special_option" - visible = "[And(Not(ActivityPlanner.IsPlanningStage( 'special_option_category' )), ActivityPlanner.HasSelectedSpecialOption)]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 4 - margin_bottom = 4 - - background = { - texture = "[ActivityOption.GetTexture]" - alpha = 0.3 - fittype = centercrop - - margin = { 16 0 } - margin_top = 4 - margin_bottom = 8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - hbox = { - name = "activity_type" - datacontext = "[ActivityPlanner.GetSelectedSpecialOption]" - visible = "[And(Not(ActivityPlanner.IsPlanningStage( 'special_option_category' )),ActivityType.HasSpecialOptionCategory)]" - layoutpolicy_horizontal = expanding - - spacing = 8 - - text_single = { - text = [ActivityOption.GetName] - using = Font_Size_Big - align = left|nobaseline - default_format = "#high" - } - - button_round = { - onclick = "[ActivityPlanner.OpenSpecialOptionSelection]" - tooltip = "ACTIVITY_PLANNER_CHANGE_TYPE_TT" - - button_replace = { - alwaystransparent = yes - parentanchor = center - } - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - name = "quit" - text = "ACTIVITY_PLANNER_QUIT" - min_width = 300 - - onclick = "[ActivityPlanner.Close]" - shortcut = "close_window" - } - - expand = {} - } - } - - # vbox if you have no Type, just using regular Activity image - vbox = { - name = "no_special_option" - visible = "[Or( ActivityPlanner.IsPlanningStage( 'special_option_category' ), Not(ActivityPlanner.HasSelectedSpecialOption))]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 4 - margin_bottom = 4 - - background = { - texture = "[ActivityType.GetHeaderBackground]" - alpha = 0.3 - fittype = centercrop - - margin = { 16 0 } - margin_top = 4 - margin_bottom = 8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - hbox = { - name = "activity_type" - datacontext = "[ActivityPlanner.GetSelectedSpecialOption]" - visible = "[And(And(Not(ActivityPlanner.IsPlanningStage( 'special_option_category' )),ActivityType.HasSpecialOptionCategory), ActivityPlanner.HasSelectedSpecialOption)]" - layoutpolicy_horizontal = expanding - - spacing = 8 - - text_single = { - text = [ActivityOption.GetName] - using = Font_Size_Big - align = left|nobaseline - default_format = "#high" - } - - button_round = { - onclick = "[ActivityPlanner.OpenSpecialOptionSelection]" - tooltip = "ACTIVITY_PLANNER_CHANGE_TYPE_TT" - - button_replace = { - alwaystransparent = yes - parentanchor = center - } - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - name = "quit" - text = "ACTIVITY_PLANNER_QUIT" - min_width = 300 - - onclick = "[ActivityPlanner.Close]" - shortcut = "close_window" - } - - expand = {} - } - } - } - } - - type multi_location_picker_widget = widget - { - widgetid = "multi_destination_selection" - datacontext = "[ActivityPlanner.GetActivityType]" - visible = "[And(ActivityPlanner.IsPlanningStage( 'location' ), Not(ActivityType.IsSingleLocation))]" - parentanchor = vcenter|right - size = { 500 900 } - - alwaystransparent = no - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_x = 200 - } - - widget = { - name = "tour_has_vassals_tutorial_uses_this" - widgetid = "tour_has_vassals_tutorial_uses_this" - size = { 0 0 } - visible = "[TravelPlanData.HasNextDestination]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CUSTOMIZE_TOUR" - } - - blockoverride "button_close" - { - visible = no - } - } - - text_multi = { - text = "MULTI_DESTINATION_PICKER_INSTRUCTION" - default_format = "#I" - align = center - max_width = 400 - autoresize = yes - - margin_bottom = 8 - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/illustrations/event_scenes/ep2_travel_bridge.dds" - fittype = centercrop - alpha = 0.15 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - blockoverride "scrollbox_content" { - layoutpolicy_horizontal = expanding - - vbox = { - name = "planned_phases" - datamodel = "[DataModelSkipLast(ActivityPlanner.AccessPlayerPickedPhases, '(int32)1')]" - layoutpolicy_horizontal = expanding - - spacing = 8 - - item = { - activity_multi_location_plan_item_widget = {} - } - } - } - - blockoverride "scrollbox_empty" { - text = "MULTI_DESTINATION_PICKER_NO_VASSALS_ADDED" - visible = "[Not(TravelPlanData.HasNextDestination)]" - } - } - - vbox = { - spacing = 8 - margin = { 16 16 } - - text_single = { - text = "[SelectLocalization(GreaterThanOrEqualTo_int32(ActivityPlanner.GetNumPickedPhases, ActivityPlanner.GetNumPickablePhases), 'MULTI_DESTINATION_PICKER_SELECTION_COUNT_MAX', 'MULTI_DESTINATION_PICKER_SELECTION_COUNT')]" - } - - text_label_center = { - visible = "[ActivityPlanner.HasPickedPhase]" - - text = TRAVEL_MULTI_DESTINATION_SUMMARY - } - - cost_breakdown_vbox = { - visible = "[ActivityPlanner.HasPickedPhase]" - datacontext = "[ActivityPlanner.AccessTotalPhaseCostBreakdown]" - } - - button_primary = { - text = CONTINUE - enabled = "[TravelPlanData.HasNextDestination]" - onclick = "[ActivityPlanner.FinalizeMultiDestinationSelection]" - } - } - } - } - - type header_pattern_activity = widget { - name = "activity_planning_header" - size = { 100 56 } - - background = { - using = Background_Window_Header - margin_left = 30 - } - - background = { - using = Background_Window_Header_Pattern - margin_left = 30 - } - - text_single = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 5 } - - block "header_text" { - text = "DEFAULT_TEXT" - } - - block "size" { - maximumsize = { 400 -1 } - } - - using = Font_Type_Flavor - using = Font_Size_Big - } - } - - type activity_planner_activity_details_hbox = hbox - { - alwaystransparent = no - allow_outside = yes - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - minimumsize = { 0 266 } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - allow_outside = yes - - background = { - texture = "gfx/interface/window_activities/activity_planning/tile_window_background_subwindow_rounded.dds" - spriteType = Corneredtiled - spriteborder = { 96 0 } - margin = { 0 16 } - margin_left = 56 - margin_right = 16 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect_border.dds" - spriteType = Corneredstretched - blend_mode = overlay - alpha = 1 - } - } - - background = { - texture = "[ActivityType.GetHeaderBackground]" - alpha = 0.2 - fittype = end - margin_top = -48 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - header_pattern_activity = { - name = "planner_details_header" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[ActivityType.GetName]" - parentanchor = left|vcenter - align = nobaseline - position = { 16 -4 } - } - - expand = {} - } - - hbox = { - layoutpolicy_vertical = expanding - - allow_outside = yes - - # Intent - vbox = { - name = "intent" - visible = "[Or(ActivityPlanner.IsPlanningStage( 'options' ), ActivityPlanner.PrevMultiDestStageWas('options'))]" - margin = { 16 0 } - margin_top = 8 - margin_bottom = 16 - spacing = 4 - - datacontext = "[ActivityPlanner.GetSelectedHostIntent]" - datacontext = "[ActivityIntentData.GetType]" - - layoutpolicy_vertical = expanding - - text_label_center = { - text = "[intent|E]" - } - - expand = {} - - flowcontainer = { - visible = "[ActivityIntent.HasTarget]" - - spacing = 20 - - selectable_target_portrait_widget = { - name = "intent_target" - datacontext = "[ActivityIntentData.GetTarget]" - parentanchor = vcenter - - blockoverride "empty_slot" - { - onclick = "[VariableSystem.Toggle( 'activity_intent_selection_target_list' )]" - } - } - - text_multi = { - name = "intent_effects" - parentanchor = vcenter - - text = "[ActivityIntent.GetDescription]" - align = center|nobaseline - autoresize = yes - maximumsize = { 160 120 } - - background = { - using = Background_Area - margin = { 16 8 } - } - } - } - - text_multi = { - name = "intent_effects" - layoutpolicy_horizontal = expanding - visible = "[Not( ActivityIntent.HasTarget )]" - - text = "[ActivityIntent.GetDescription]" - align = center|nobaseline - autoresize = yes - maximumsize = { 250 120 } - - background = { - using = Background_Area - margin = { 16 8 } - } - } - - expand = {} - - button_standard = { - size = { 270 44 } - datacontext = "[ActivityIntentData.GetType]" - visible = "[GreaterThan_int32( GetDataModelSize( ActivityType.GetHostIntents ), '(int32)1' )]" - - onclick = "[ToggleGameViewData( 'activity_intent_selection', ActivityPlanner.AccessSelf )]" - tooltip = "ACTIVITY_OPEN_INTENT_WINDOW" - - flowcontainer = { - parentanchor = vcenter - spacing = 10 - margin = { 8 0 } - - datacontext = "[ActivityIntentData.GetType]" - - icon = { - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "[ActivityIntent.GetName]" - align = left|nobaseline - parentanchor = vcenter - max_width = 250 - default_format = "#clickable" - } - } - - button_replace = { - parentanchor = right|vcenter - position = { -10 0 } - - alwaystransparent = yes - } - } - - button_standard = { - size = { 270 44 } - datacontext = "[ActivityIntentData.GetType]" - - visible = "[LessThanOrEqualTo_int32( GetDataModelSize( ActivityType.GetHostIntents ), '(int32)1' )]" - enabled = no - - tooltip = "ACTIVITY_SINGLE_INTENT_TOOLTIP" - - flowcontainer = { - parentanchor = vcenter - spacing = 10 - margin = { 10 0 } - - icon = { - size = { 30 30 } - texture = "[ActivityIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "[ActivityIntent.GetName]" - align = left|nobaseline - parentanchor = vcenter - max_width = 250 - default_format = "#clickable" - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin = { 0 16} - - divider = { - layoutpolicy_vertical = expanding - } - } - - # Special Guests - vbox = { - visible = "[DataModelHasItems(ActivityPlanner.AccessSpecialGuests)]" - layoutpolicy_vertical = expanding - - margin = { 16 0 } - margin_top = 8 - margin_bottom = 16 - - #expand = {} - - hbox = { - name = "special_guest_slots" - datamodel = "[ActivityPlanner.AccessSpecialGuests]" - visible = "[DataModelHasItems( ActivityPlanner.AccessSpecialGuests )]" - spacing = 32 - - item = { - vbox_special_guest_portrait = {} - } - } - - expand = {} - - button_standard = { - onclick = "[OpenGameViewData( 'activity_guest_list', ActivityPlanner.AccessSelf )]" - text = "ACTIVITY_OTHER_GUESTS_BUTTON_TEXT" - size = { 210 44 } - } - } - - vbox = { - visible = "[DataModelHasItems(ActivityPlanner.AccessSpecialGuests)]" - layoutpolicy_vertical = expanding - - margin_top = 8 - margin_bottom = 16 - - divider = { - layoutpolicy_vertical = expanding - } - } - - vbox = { - name = "activity_options_plugins" - layoutpolicy_vertical = expanding - } - - # Activity Options - widget = { - name = "activity_options" - visible = "[Or(ActivityPlanner.IsPlanningStage( 'options' ), ActivityPlanner.PrevMultiDestStageWas('options'))]" - layoutpolicy_vertical = expanding - size = {350 0} - - allow_outside = yes - - activity_option_edit_widget = { - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - } - - vbox = { - name = "contents" - layoutpolicy_vertical = expanding - - margin = { 16 8 } - spacing = 16 - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 26 } - - text_label_center = { - text = "[activity_options|E]" - parentanchor = center - } - - widget = { - size = { 80 26 } - parentanchor = vcenter|right - - cost_breakdown_vbox = { - name = "activity_option_cost" - datacontext = "[ActivityPlanner.AccessTotalActivityOptionCostBreakdown]" - - blockoverride "heading" {} - } - } - } - - hbox = { - name = "activity_option_categories" - - datamodel = "[ActivityPlanner.AccessOptions]" - spacing = 16 - - background = { - using = Background_Area_ExtraDark - - margin = { 90 0 } - margin_top = -10 - margin_bottom = -30 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - - item = { - button = { - name = "activity_button" - datacontext = "[ActiveActivityOption.GetOption]" - visible = "[Not( ObjectsEqual( ActiveActivityOption.GetCategory, ActivityType.GetSpecialOptionCategory ) )]" - size = { 66 110 } - - onclick = "[ActivityPlanner.ToggleEditingOption( ActiveActivityOption.AccessSelf )]" - - tooltip = ACTIVITY_PLANNER_OPTION_TT - using = tooltip_above - - button_standard_clean = { - size = { 66 90 } - - onclick = "[ActivityPlanner.ToggleEditingOption( ActiveActivityOption.AccessSelf )]" - - highlight_icon = { - parentanchor = top|hcenter - position = { 0 3 } - size = { 60 84 } - - texture = "[ActiveActivityOption.GetCategory.GetTexture]" - - alwaystransparent = yes - } - } - - highlight_icon = { - parentanchor = bottom|hcenter - widgetanchor = center - position = { 0 -21 } - size = { 34 34 } - - texture = "gfx/interface/icons/activity_option_categories/activity_option_category_level_bg.dds" - - modify_texture = { - color = { 0.3 0.3 0.4 1 } - blend_mode = multiply - alpha = 0.3 - } - - text_single = { - parentanchor = center - position = { 1 -2 } - - text = "[Add_int32( ActiveActivityOption.GetOption.GetIndexInCategory, '(int32)1' )]" - } - } - } - } - } - - expand = {} - - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin_top = 8 - margin_bottom = 56 - - divider = { - layoutpolicy_vertical = expanding - } - } - - # Cost & Confirm Planning - vbox = { - alwaystransparent = no - allow_outside = yes - - layoutpolicy_vertical = expanding - - margin = { 16 0 } - margin_top = 16 - margin_bottom = 68 - spacing = 8 - - expand = {} - - cost_breakdown_vbox = { - name = "activity_cost" - datacontext = "[ActivityPlanner.AccessCostBreakdown]" - } - - button_standard = { - visible = "[And(Not(DataModelHasItems(ActivityPlanner.AccessSpecialGuests)), DataModelHasItems(ActivityType.GetGuestInviteRules))]" - size = { 260 40 } - - onclick = "[OpenGameViewData( 'activity_guest_list', ActivityPlanner.AccessSelf )]" - - text = "ACTIVITY_ALL_GUESTS_BUTTON_TEXT" - } - - button_primary = { - name = "progress_planning" - size = { 260 60 } - - onclick = "[ActivityPlanner.ProgressPlanningStage]" - enabled = "[ActivityPlanner.CanProgressPlanningStage]" - - text = "ACTIVITY_PLANNER_START" - - tooltip = "[ActivityPlanner.GetCanProgressPlanningStageTooltip]" - } - - expand = {} - } - } - } - } - - type location_picking_help_text_widget = widget - { - name = "location_selection_guide" - visible = "[ActivityPlanner.IsPlanningStage( 'location' )]" - size = { 450 210 } - - state = { - name = _show - using = Animation_FadeIn_Standard - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_x = -50 - } - - vbox = { - margin = { 16 0 } - margin_bottom = 8 - spacing = 8 - - background = { - margin_top = 16 - margin_bottom = 40 - margin_left = 16 - margin_right = 170 - - using = Background_Area_ExtraDark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ActivityType.GetLocalizedTextWithFallback( 'destination_selection_header', 'ACTIVITY_DESTINATION_SELECTION_HEADER' )]" - default_format = "#T" - using = Font_Size_Medium - max_width = 420 - align = left - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_DESTINATION_SELECTION" - autoresize = yes - max_width = 420 - } - - expand = {} - } - } - - type activity_option_edit_widget = widget - { - name = "editing_option" - visible = "[ActivityPlanner.IsEditingOption]" - size = { 350 420 } - - allow_outside = yes - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 100 - } - - vbox = { - datacontext = "[ActivityPlanner.GetEditingOption]" - datacontext = "[ActiveActivityOption.GetCategory]" - - allow_outside = yes - alwaystransparent = no - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 8 8 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[ActivityOptionCategory.GetName]" - align = nobaseline - max_width = 280 - } - - blockoverride "button_close" - { - onclick = "[ActivityPlanner.StopEditingOption]" - } - - expand = {} - } - - hbox = { - datamodel = "[ActivityOptionCategory.GetOptions]" - - spacing = 8 - margin_bottom = 8 - - item = { - button_radio = { - visible = "[ActivityOption.IsShown( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - size = { 30 30 } - - enabled = "[ActivityOption.IsValid( GetPlayer, ActivityPlanner.GetSelectedSpecialOption )]" - onclick = "[ActivityPlanner.SelectOption( ActivityOption.Self )]" - frame = "[BoolTo1And2( ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self ) )]" - - alwaystransparent = "[ObjectsEqual( ActiveActivityOption.GetOption, ActivityOption.Self )]" - - tooltip = "ACTIVITY_OPTION_TOOLTIP" - using = tooltip_ne - } - } - } - - vbox = { - datacontext = "[ActiveActivityOption.GetOption]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 8 - - background = { - using = Background_Area - margin = { 4 4 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 16 0 } - - background = { - using = Background_Area - margin = { 4 4 } - } - - text_single = { - text = "[ActivityOption.GetName]" - using = Font_Size_Medium - align = nobaseline - max_width = 240 - } - - expand = {} - - text_single = { - text = "[ActivityPlanner.GetActivityOptionCost(ActivityOption.Self)]" - using = Font_Size_Medium - align = nobaseline - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_OPTION_DESC" - autoresize = yes - max_width = 300 - } - - expand = {} - } - } - } - - type vbox_activity_or_travel_confirm = vbox - { - alwaystransparent = no - allow_outside = yes - - layoutpolicy_vertical = expanding - - margin = { 16 0 } - margin_top = 16 - margin_bottom = 64 - spacing = 8 - - expand = {} - - cost_breakdown_vbox = { - name = "activity_cost" - datacontext = "[ActivityPlanner.AccessCostBreakdown]" - } - - button_primary = { - name = "progress_planning" - size = { 260 40 } - - onclick = "[ActivityPlanner.ProgressPlanningStage]" - enabled = "[ActivityPlanner.CanProgressPlanningStage]" - - text = "ACTIVITY_PLANNER_START" - tooltip = "[ActivityPlanner.GetCanProgressPlanningStageTooltip]" - } - - expand = {} - } - - type vbox_special_guest_portrait = vbox - { - datacontext = "[ActivitySpecialGuest.GetCharacter]" - spacing = 7 - - hbox = { - spacing = 10 - - block "title_tooltip_properties" - { - # Default is for planning, override for ongoing - tooltip = "ACTIVITY_PLANNER_SPECIAL_GUEST_PLANNING_TT" - using = tooltip_ne - } - - text_label_center = { - block "title_text" - { - # Default is for planning, override for ongoing - text = "[ActivitySpecialGuest.GetType.GetNameForHost]" - } - } - - button_change = { - block "button_change_visible" - { - visible = "[And( Character.IsValid, Not( ActivitySpecialGuest.GetType.HasAutoSelectCharacter ))]" - } - - button_ignore = none - - onclick = "[OpenGameViewData( 'activity_guest_list', ActivitySpecialGuest.AccessSelf )]" - onrightclick = "[ActivitySpecialGuest.ClearCharacter]" - - tooltip = "ACTIVITY_PLANNER_CHANGE_SPECIAL_GUEST_TT" - } - - warning_icon = { - visible = "[And( Not( Character.IsValid ), ActivitySpecialGuest.GetType.IsRequired)]" - size = { 30 30 } - - tooltip = "ACTIVITY_PLANNER_CHANGE_REQUIRED_SPECIAL_GUEST_TT" - } - } - - selectable_target_portrait_widget = { - block "selectable_target_portrait_properties" - { - } - - blockoverride "empty_slot" - { - onclick = "[OpenGameViewData( 'activity_guest_list', ActivitySpecialGuest.AccessSelf )]" - } - } - } -} - -template Activity_Planner_Widget -{ - datacontext = "[ActivityPlanner.GetActivityType]" - datacontext = "[GetPlayer]" - datacontext = "[GetVariableSystem]" - - alwaystransparent = no -} diff --git a/N3OW/gui/window_add_tradition.gui b/N3OW/gui/window_add_tradition.gui deleted file mode 100644 index 70f4696d..00000000 --- a/N3OW/gui/window_add_tradition.gui +++ /dev/null @@ -1,313 +0,0 @@ -###################################################### -################## CULTURE ADD TRADITION ############# -###################################################### - -window = { - name = "add_tradition_window" - parentanchor = center - size = { 600 950 } - layer = windows_layer - - datacontext = "[GetPlayer.GetCulture]" - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[AddTraditionWindow.SetTraditionCategory( AddTraditionWindow.GetTraditionGrouping( 'realm' ).GetCategory )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - minimumsize = { 600 0 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'REPLACE_TRADITION_WINDOW_TITLE', 'ADD_TRADITION_WINDOW_TITLE')]" - } - - blockoverride "button_close" - { - onclick = "[AddTraditionWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 4 0 } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = -4 - - # The parameter for GetTraditionGrouping should match the categories in the traditions script - add_tradition_category = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'realm' )]" - } - add_tradition_category = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'combat' )]" - } - add_tradition_category = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'societal' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - add_tradition_category = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'ritual' )]" - } - add_tradition_category = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'regional' )]" - } - } - } - - vbox = { - name = "tradition_selection" - margin = { 0 8 } - spacing = 6 - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_traditions_list = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'realm' )]" - } - - vbox_traditions_list = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'combat' )]" - } - - vbox_traditions_list = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'societal' )]" - } - - vbox_traditions_list = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'ritual' )]" - } - - vbox_traditions_list = { - datacontext = "[AddTraditionWindow.GetTraditionGrouping( 'regional' )]" - } - - vbox = { - name = "cost" - datacontext = "[AddTraditionWindow.GetSelectedTradition]" - visible = "[CultureTradition.IsValid]" - minimumsize = { 0 28 } - spacing = 10 - tooltip = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'REPLACE_TRADITION_COST_TOOLTIP', 'ADD_TRADITION_COST_TOOLTIP')]" - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'REPLACE_TRADITION_TOTAL_COST', 'ADD_TRADITION_TOTAL_COST')]" - default_format = "#high" - using = Font_Size_Medium - - background = { - visible = "[Not( AddTraditionWindow.CanPayCost )]" - margin = { 5 0 } - using = Status_Bad - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 44 8 } - spacing = 20 - - button_standard= { - name = "decline_button" - text = "CANCEL_BUTTON" - onclick = [AddTraditionWindow.Close] - shortcut = "close_window" - } - - button_primary = { - name = "done" - layoutpolicy_horizontal = expanding - onclick = "[AddTraditionWindow.AddTradition]" - onclick = "[AddTraditionWindow.Close]" - enabled = "[AddTraditionWindow.CanAddTradition]" - text = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'REPLACE_TRADITION_EXECUTE_LABEL', 'ADD_TRADITION_EXECUTE_LABEL')]" - default_format = "#high" - - tooltip = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'REPLACE_TRADITION_EXECUTE_TOOLTIP', 'ADD_TRADITION_EXECUTE_TOOLTIP')]" - - warning_icon = { - visible = "[Culture.IsReforming]" - parentanchor = vcenter|right - size = { 25 25 } - position = { -3 0 } - alwaystransparent = yes - } - } - } - } - } -} - -types CultureAddTraditionTypes -{ - type widget_tradition_item = widget { - size = { 240 180 } - - tooltipwidget = { - using = culture_tradition_tooltip_clickable - - blockoverride "above_description_text" { - text = "[AddTraditionWindow.GetPickTraditionBlockers( CultureTradition.Self )]" - } - } - - vbox = { - button_standard = { - size = { 220 120 } - onclick = "[AddTraditionWindow.SetSelectedTradition( CultureTradition.Self )]" - enabled = "[AddTraditionWindow.CanPickTradition( CultureTradition.Self )]" - - widget_tradition_icon = { - block "icon_size" { - size = { 220 120 } - } - } - - selection_glow = { - visible = "[ObjectsEqual( AddTraditionWindow.GetSelectedTradition, CultureTradition.Self )]" - } - } - - hbox = { - margin_top = 4 - - text_label_center = { - name = "name" - text = "[CultureTradition.GetNameNoTooltip]" - maximumsize = { 180 44 } - multiline = yes - align = center|nobaseline - - using = Font_Size_Medium - } - - widget = { - size = { 0 30 } - allow_outside = yes - - warning_icon = { - visible = "[Not( AddTraditionWindow.CanPickTradition( CultureTradition.Self ) )]" - position = { 6 -2 } - widgetanchor = left - size = { 30 30 } - tooltip = "[AddTraditionWindow.GetPickTraditionBlockers( CultureTradition.Self )]" - } - } - } - - hbox = { - expand = {} - spacing = 20 - text_label_center = { - name = "cost" - text = "[AddTraditionWindow.GetTraditionCost( CultureTradition.Self )]" - maximumsize = { 130 44 } - margin_left = 20 - multiline = no - align = center - - using = Font_Size_Small - tooltip = "[AddTraditionWindow.GetTraditionCostBreakdown( CultureTradition.Self )]" - using = tooltip_se - - background = { - visible = "[Not( AddTraditionWindow.CanBuyTradition(CultureTradition.Self) )]" - margin_right = 15 - margin_left = -13 - margin_bottom = -1 - using = Status_Bad - } - } - - text_label_left = { - name = "time" - text = "[SelectLocalization(AddTraditionWindow.IsReplacing, Culture.GetTotalReformTimeForReplacingTradition, Culture.GetTotalReformTimeForNewTradition)]" - maximumsize = { 130 44 } - multiline = yes - align = center - - using = Font_Size_Small - tooltip = "[SelectLocalization(AddTraditionWindow.IsReplacing, 'ESTABLISHMENT_TIME_TOOLTIP_REPLACING_TRADITION', 'ESTABLISHMENT_TIME_TOOLTIP_NEW_TRADITION')]" - using = tooltip_se - } - } - } - } - - type add_tradition_category = button_tab { - layoutpolicy_horizontal = expanding - onclick = "[AddTraditionWindow.SetTraditionCategory( TraditionGrouping.GetCategory )]" - down = "[AddTraditionWindow.HasTraditionCategory( TraditionGrouping.GetCategory )]" - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "[TraditionGrouping.GetGroupingName]" - default_format = "#low" - } - - text_single = { - align = center - text = "TRADITION_CATEGORY_COUNT" - default_format = "#low" - margin_right = 15 - min_width = 30 - } - } - } - - # Needs a wrapping vbox as otherwise the blockoverride for the scrollbox_content doesn't work - type vbox_traditions_list = vbox { - visible = "[AddTraditionWindow.HasTraditionCategory( TraditionGrouping.GetCategory )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - fixedgridbox = { - datamodel = "[TraditionGrouping.GetPossibleTraditions]" - flipdirection = yes - addcolumn = 240 - addrow = 200 - datamodel_wrap = 2 - - item = { - widget_tradition_item = { - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_admin_vassal_detail.gui b/N3OW/gui/window_admin_vassal_detail.gui deleted file mode 100644 index 57fec448..00000000 --- a/N3OW/gui/window_admin_vassal_detail.gui +++ /dev/null @@ -1,1091 +0,0 @@ -window = { - name = "admin_vassal_detail_view" - widgetid = "admin_vassal_detail_view" - parentanchor = top|right - position = { -610 90 } - size = { 580 776 } - - movable = no - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.AddTab( 'overview' )]" - oncreate = "[PdxGuiTabs.AddTab( 'appointment' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = -610 - on_start = "[PdxGuiTabs.SetTabByKey( SelectLocalization( GetVariableSystem.Exists( 'AdminVassalDetailAppointment' ), 'appointment', 'overview' ) )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -580 - } - - margin_widget = { - size = { 100% 100% } - using = Window_Margins - - widget = { - datacontext = "[AdminVassalDetailView.GetTitle]" - datacontext = "[AdminVassalDetailView.GetGovernor]" - size = { 100% 100% } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = "admin_vassal_details_refresh" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - ## Header Background - widget = { - datacontext = "[Title.GetProvince.GetHolding]" - size = { 498 170 } - - background = { - using = Background_Area_Holding - - mirror = horizontal - } - - widget_theme_item_small = { - parentanchor = left|vcenter - position = { 0 27} - - blockoverride "outer_size" - { - size = { 116 116 } - } - - blockoverride "inner_size" - { - size = { 106 106 } - } - - blockoverride "theme_item_onclick" - { - onclick = "[OpenGameViewData( 'title_view_window', Title.GetID )]" - onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - button_ignore = none - } - } - - vbox = { - parentanchor = hcenter - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 10 } - - text_label_center = { - text = "[Title.GetNameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "tier_info" - layoutpolicy_horizontal = expanding - text = ADMIN_VASSAL_DETAILS_TITLE_TIER - align = center - } - - expand = {} - } - - # Window control buttons - flowcontainer = { - parentanchor = top|right - position = { -10 10 } - - button_go_to_my_location = { - name = "button_goto" - - onclick = "[DefaultOnCoatOfArmsClick( Title.GetID )]" - onclick = "[DefaultOnCoatOfArmsClick( Title.GetID )]" - - tooltip = "ADMIN_VASSAL_DETAILS_LOCATION" - using = tooltip_ne - } - - button_close = { - name = "button_close" - - onclick = "[AdminVassalDetailView.Close]" - - tooltip = "CLOSE_TOOLTIP" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - } - - hbox_tab_buttons = { - name = "province_window_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'admin_vassal_tab' )]" - } - - blockoverride "on_click" - { - } - } - - ## Appointment Tab - vbox = { - name = "appointment" - visible = "[PdxGuiTabs.IsTabSet( 'appointment' )]" - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - vbox = { - name = "province_window_succession_info" - widgetid = "province_window_succession_info" #tutorial uses this - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 10 } - - background = { - using = Background_Area - } - - hbox_admin_title_successor_candidates_list = { - datacontext = "[AdminVassalDetailView.GetSuccessorCandidateList]" - } - - # Candidate Investment Buttons - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 0 } - margin_top = 7 - spacing = 10 - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "[AdminVassalDetailView.GetSuccessionLineDesc]" - align = center|nobaseline - autoresize = yes - max_width = 470 - } - - # Scheme 'influence_candidacy_interaction' - button_standard = { - datacontext = "[AdminVassalDetailView.GetTitle]" - datacontext = "[AdminVassalDetailView.GetPreferredCandidate]" - visible = "[Character.IsPlayerInteractionShown('influence_candidacy_interaction')]" - layoutpolicy_horizontal = expanding - - minimumsize = { 0 40 } - - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" - - tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers('influence_candidacy_interaction')]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 5 } - spacing = 5 - - expand = {} - - button_promote_candidate = { - alwaystransparent = yes - } - - text_single = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - max_width = 430 - - text = "ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON" - default_format = "#clickable" - align = nobaseline - } - - text_single = { - visible = "[Not( ObjectsEqual( Character.Self, GetPlayer ) )]" - max_width = 430 - - text = "ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON_FOR" - default_format = "#clickable" - align = nobaseline - } - - expand = {} - } - } - - # Scheme 'start_promote_interaction' (if candidate exists) - button_standard = { - datacontext = "[AdminVassalDetailView.GetTitle]" - datacontext = "[AdminVassalDetailView.GetSuccessorCandidateList]" - datacontext = "[AdminVassalDetailView.GetPreferredCandidate]" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - minimumsize = { 0 40 } - - enabled = "[Character.IsPlayerInteractionValid('start_promote_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('start_promote_interaction', Title.Self)]" - - tooltip = "[Character.GetPlayerInteractionTooltip('start_promote_interaction')]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers('start_promote_interaction')]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 5 } - spacing = 5 - - expand = {} - - button_promote_candidate = { - alwaystransparent = yes - } - - text_single = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - - text = "ADMIN_VASSAL_DETAILS_PROMOTE_BUTTON" - align = nobaseline - default_format = "#clickable" - max_width = 430 - } - - text_single = { - visible = "[Not( ObjectsEqual( Character.Self, GetPlayer ) )]" - - text = "ADMIN_VASSAL_DETAILS_PROMOTE_BUTTON_FOR" - align = nobaseline - default_format = "#clickable" - max_width = 430 - } - - expand = {} - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - min_width = 460 - - text = "ADMIN_VASSAL_DETAILS_SUCCESSION_DETAILS" - align = center|nobaseline - default_format = "#weak" - } - } - } - - ## Overview Tab - vbox = { - name = "overview" - visible = "[PdxGuiTabs.IsTabSet( 'overview' )]" - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - # Top Section - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - # Vassal Obligation Info - vbox = { - datacontext = "[Character.GetVassalContract]" - datacontext = "[SubjectContract.GetContractGroup]" - datacontext = "[AdminVassalDetailView.GetPrimaryContractAndObligationItem]" - datacontext = "[PrimaryContractAndObligation.GetObligationLevel]" - visible = "[And( Character.IsValid, SubjectContract.IsValid )]" - - layoutpolicy_horizontal = expanding - - widget = { - size = { 494 40 } - using = Background_Obligation_Banner_Right - - text_single = { - parentanchor = vcenter - position = { 10 -4} - layoutpolicy_horizontal = expanding - - text = "[ObligationLevel.GetName]" - default_format = "#underline" - align = nobaseline - using = Font_Size_Medium - - tooltip = "[ObligationLevel.GetDesc]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 0 } - margin_bottom = 5 - spacing = 5 - - vbox = { - datamodel = "[PrimaryContractAndObligation.GetObligationOptions]" - - item = { - text_single = { - datacontext = "[ContractAndObligation.GetType]" - datacontext = "[ContractAndObligation.GetObligationLevel]" - max_width = 200 - layoutpolicy_horizontal = expanding - - text = "ADMIN_VASSAL_DETAILS_SUBJECT_OBLIGATION_INFO" - align = nobaseline - } - } - } - - expand = {} - - hbox_vassal_contract_button = { - blockoverride "vassal_contract_type_name" {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - } - - # GOVERNOR EFFICIENCY | TAXES | LEVIES - hbox = { - name = "province_window_tax_levy_efficiency" #tutorial uses this - layoutpolicy_horizontal = expanding - datacontext = "[AdminVassalDetailView.GetGovernor]" - - margin_top = 5 - margin_left = 5 - margin_right = 15 - - # GOVERNOR EFFICIENCY - hbox = { - spacing = 5 - - icon_governor_efficiency = { - size = { 42 42 } - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - - text = "[governor_efficiency|E]" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_NO_ICON" - default_format = "#high" - align = nobaseline - using = Font_Size_Medium - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" - } - } - } - - expand = {} - - # TAXES - hbox = { - spacing = 5 - - icon_gold = { - size = { 36 36 } - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - - text = "[taxes|E]" - align = nobaseline - } - - hbox = { - spacing = 4 - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TAX_LEVY_TT" - using = tooltip_se - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ADMIN_VASSAL_DETAILS_TAX_CONTRIBUTION" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - text_single = { - visible = "[GreaterThanOrEqualTo_CFixedPoint( AdminVassalDetailView.GetTaxEfficiencyBonus, '(CFixedPoint)0' )]" - text = "ADMIN_VASSAL_DETAILS_TAX_EFFICIENCY_BONUS" - align = nobaseline - default_format = "#P" - } - - text_single = { - visible = "[LessThan_CFixedPoint( AdminVassalDetailView.GetTaxEfficiencyBonus, '(CFixedPoint)0' )]" - text = "ADMIN_VASSAL_DETAILS_TAX_EFFICIENCY_BONUS" - align = nobaseline - default_format = "#N" - } - } - } - } - - expand = {} - - # LEVIES - hbox = { - spacing = 5 - - icon_levies = { - size = { 36 36 } - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - - text = "[levies|E]" - align = nobaseline - } - - hbox = { - spacing = 4 - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TAX_LEVY_TT" - using = tooltip_se - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ADMIN_VASSAL_DETAILS_LEVY_CONTRIBUTION" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - text_single = { - visible = "[GreaterThanOrEqualTo_CFixedPoint( AdminVassalDetailView.GetLevyEfficiencyBonus, '(CFixedPoint)0' )]" - text = "ADMIN_VASSAL_DETAILS_LEVY_EFFICIENCY_BONUS" - align = nobaseline - default_format = "#P" - } - - text_single = { - visible = "[LessThan_CFixedPoint( AdminVassalDetailView.GetLevyEfficiencyBonus, '(CFixedPoint)0' )]" - text = "ADMIN_VASSAL_DETAILS_LEVY_EFFICIENCY_BONUS" - align = nobaseline - default_format = "#N" - } - } - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = shrinking - - text = "ADMIN_VASSAL_DETAILS_OVERVIEW_DESC" - align = nobaseline - autoresize = yes - default_format = "#weak" - max_width = 460 - - margin_top = 5 - margin_bottom = 15 - } - } - } - - widget = { - size = { 498 85 } - - # Hired Troop Item - widget_province_army_item = { - datacontext = "[AdminVassalDetailView.GetHiredTroops]" - parentanchor = top|hcenter - position = { 0 -18 } - - blockoverride "margins" - { - margin_right = 10 - } - - blockoverride "item_size" - { - size = { 498 100 } - } - - blockoverride "theme_name" - { - text = "[GetPlayer.Custom('GetProvincialArmyConcept')]" - } - - blockoverride "theme_item" {} - - blockoverride "theme_item_margin" - { - margin_left = 10 - } - - blockoverride "reassign_troops_on_click" - { - onclick = "[CloseGameView('government_administration')]" - } - } - } - - # Vassal Directive - hbox = { - margin = { 10 0 } - margin_right = 12 - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[vassal_directive|E]" - align = nobaseline - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.Custom('vassal_directive_text_and_icon')]" - align = nobaseline - } - } - - button_round = { - datacontext = "[Title.GetHolder]" - visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]" - size = { 40 40 } - - enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]" - onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]" - using = tooltip_se - - button_give_directive = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - } - } - } - } - - expand = {} - - widget_current_governor = { - datacontext = "[AdminVassalDetailView.GetGovernor]" - } - } - } - } -} - -types AdminVassalDetails -{ - type widget_current_governor = widget { - size = { 500 130 } - allow_outside = yes - - background = { - using = Background_Area - } - - hbox = { - margin = { 5 0 } - spacing = 5 - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 8 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - max_width = 300 - - text = "ADMIN_VASSAL_DETAILS_CURRENT_GOVERNOR" - align = nobaseline - } - - expand = {} - } - - hbox_character_view_name_age_health = { - blockoverride "health_margin" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_relation_to_you" - max_width = 360 - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - size = { 46 46 } - allow_outside = yes - - coa_house_tiny = { - datacontext = "[Character.GetHouse]" - position = { -5 0 } - } - } - - text_single = { - datacontext = "[Character.GetHouse]" - max_width = 310 - layoutpolicy_horizontal = expanding - - text = "ADMINISTRATIVE_GOVERNMENT_HOUSE_WITH_NAME" - align = nobaseline - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 12 - margin_right = 7 - - button_round = { - visible = "[And( Not( Character.IsLocalPlayer ), Not( Character.IsIndependentRuler ))]" - - onclick = "[ToggleFilteredCharacterInteractionMenu( Character.Self, 'admin_governor' )]" - - tooltip = "ADMIN_GOVERNMENT_GOVERNOR_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not( IsInteractionMenuOpenForCharacterWithFilter( Character.Self, 'admin_governor' ) )]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - margin_top = 10 - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, 'admin_governor' )]" - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - } - - expand = {} - - } - } - } - - type vbox_admin_vassal_successor_candidate = vbox { - margin = { 4 4 } - margin_bottom = 8 - - background = { - using = Background_Area - } - - background = { - visible = "[AdminVassalSuccessorCandidate.IsLocalPlayerCandidate]" - using = Background_Frame_Gold - } - - background = { - visible = "[Not( AdminVassalSuccessorCandidate.IsLocalPlayerCandidate )]" - using = Background_Frame - } - - hbox = { - visible = "[GreaterThan_int32( AdminVassalSuccessorCandidate.GetCandidateIndex, '(int32)0' )]" - - text_single = { - text = "ADMIN_VASSAL_DETAILS_SUCCESSOR_INDEX" - } - } - - portrait_head = { - widget = { - parentanchor = top - size = { 56 64 } - position = { -6 2 } - - widget = { - name = "investment_has_candidate" - visible = "[And( AdminVassalSuccessorCandidate.IsLocalPlayerWinnerOrAnyLoser, And( And( AdminVassalSuccessorCandidate.IsLocalPlayerCandidate, AdminVassalSuccessorCandidate.IsLocalPlayerInvested ), Not( AdminVassalSuccessorCandidate.IsLocalPlayerCandidateInFirst ) ) )]" - - size = { 100% 100% } - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_LOCAL_PLAYER_HAS_INVESTED_LOSING_TT" - - background = { - texture = "gfx/interface/window_theme_administration/admin_theme_no_sucession.dds" - } - - button_promote_candidate = { - parentanchor = center - position = { 0 -8 } - alwaystransparent = yes - } - } - - widget = { - name = "no_investment_has_candidate" - visible = "[And( AdminVassalSuccessorCandidate.IsLocalPlayerWinnerOrAnyLoser, And( And( AdminVassalSuccessorCandidate.IsLocalPlayerCandidate, Not( AdminVassalSuccessorCandidate.IsLocalPlayerInvested ) ), Not( AdminVassalSuccessorCandidate.IsLocalPlayerCandidateInFirst ) ) )]" - - size = { 100% 100% } - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_LOCAL_PLAYER_HAS_CANDIDATE_LOSING_TT" - - background = { - texture = "gfx/interface/window_theme_administration/admin_theme_no_sucession.dds" - } - - button_house = { - parentanchor = center - position = { 0 -8 } - alwaystransparent = yes - } - } - - widget = { - name = "player_candidate_in_first_invested" - visible = "[And( AdminVassalSuccessorCandidate.IsLocalPlayerWinnerOrAnyLoser, And( And( AdminVassalSuccessorCandidate.IsLocalPlayerCandidate, AdminVassalSuccessorCandidate.IsLocalPlayerCandidateInFirst ), AdminVassalSuccessorCandidate.IsLocalPlayerInvested ) )]" - - size = { 100% 100% } - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_LOCAL_PLAYER_HAS_INVESTED_WINNING_TT" - - background = { - texture = "gfx/interface/window_theme_administration/admin_theme_sucession.dds" - } - - button_promote_candidate = { - parentanchor = center - position = { 0 -8 } - alwaystransparent = yes - } - } - - widget = { - name = "player_candidate_in_first" - visible = "[And( AdminVassalSuccessorCandidate.IsLocalPlayerWinnerOrAnyLoser, And( And( AdminVassalSuccessorCandidate.IsLocalPlayerCandidate, AdminVassalSuccessorCandidate.IsLocalPlayerCandidateInFirst ), Not( AdminVassalSuccessorCandidate.IsLocalPlayerInvested ) ) )]" - - size = { 100% 100% } - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_LOCAL_PLAYER_HAS_CANDIDATE_WINNING_TT" - - background = { - texture = "gfx/interface/window_theme_administration/admin_theme_sucession.dds" - } - - button_house = { - parentanchor = center - position = { 0 -8 } - alwaystransparent = yes - } - } - } - } - - hbox = { - spacing = 15 - - - - - - # Merit - widget_merit = { - datacontext = "[AdminVassalSuccessorCandidate.GetMeritItem]" - visible = "[Character.HasMerit]" - - blockoverride "icon_size" - { - size = { 24 24 } - } - } - - hbox = { - spacing = 5 - icon = { - size = { 24 24 } - texture = "gfx/interface/icons/appointment_score.dds" - } - - text_single = { - text = ADMIN_VASSAL_DETAILS_SUCCESSOR_SCORES - align = nobaseline - } - - tooltipwidget = { - widget_value_breakdown_tooltip = { - block "score_breakdown" { - datacontext = "[AdminVassalDetailView.GetSuccessionScoreBreakdown(AdminVassalSuccessorCandidate.GetCandidate.Self )]" - } - blockoverride "header_text" { - text = ADMIN_VASSAL_CANDIDATE_SCORE_TT_HEADING - } - } - } - - using = tooltip_se - } - } - } - - type hbox_admin_title_successor_candidates_list = hbox { - hbox = { - visible = "[AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)3' )]" - spacing = 0 - - hbox = { - datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)3')]" - - spacing = 0 - - item = { - vbox_admin_vassal_successor_candidate = { - datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" - } - } - } - - vbox_admin_vassal_successor_candidate = { - datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)3' )]" - datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" - } - } - - hbox = { - visible = "[Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)3' ) )]" - datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)4')]" - spacing = 0 - - item = { - vbox_admin_vassal_successor_candidate = { - datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" - } - } - } - - hbox = { - visible = "[IsDataModelEmpty( AdminVassalSuccessorCandidateList.GetSuccessorCandidates )]" - - text_single = { - text = ADMIN_VASSAL_DETAILS_NO_SUCCESSORS - default_format = "#low" - } - } - } - - type powerful_family_bonus = powerful_family_bonus_icon_with_frame { - name = "powerful_family_bonus" - - datacontext = "[DynastyHouse.GetHouseAspiration]" - - visible = "[HouseAspiration.IsValid]" - - tooltipwidget = { - using = house_attribute_tooltip - } - - } - - type powerful_family_bonus_icon_with_frame = highlight_icon { - size = { 32 32 } - - icon = { - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/window_theme_administration/icon_house_aspiration_blue_frame.dds" - - block "powerful_family_bonus_frame_properties" - { - - } - } - - powerful_family_bonus_icon = { - size = { 100% 100% } - } - } - - type powerful_family_bonus_icon = widget { - block "family_bonus_size" { - size = { 42 42 } - } - - widget = { - parentanchor = center - size = { 90% 90% } - - block "flat_visible" { - visible = "[Not(HasSpecialHouseAspiration(DynastyHouse))]" - } - - icon_flat_standard = { - size = { 70% 70% } - parentanchor = center - - texture = "[HouseAspiration.GetSmallIcon]" - } - } - - widget = { - size = { 100% 100% } - - block "rendered_visible" { - visible = "[HasSpecialHouseAspiration(DynastyHouse)]" - } - - highlight_icon = { - size = { 92% 92% } - position = { 0 -2} - parentanchor = center - - texture = "[HouseAspiration.GetSmallIcon]" - } - - block "level_icons" { - flowcontainer = { - visible = "[HouseAspiration.HasMultipleLevels]" - datamodel = "[HouseAspiration.GetLevels]" - position = { 0 2} - spacing = -4 - parentanchor = bottom|hcenter - ignoreinvisible = yes - - item = { - icon_flat_standard_gold = { - size = { 16 16 } - texture = "gfx/interface/icons/flat_icons/star.dds" - visible = "[And(LessThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, DynastyHouse.GetHouseAspirationLevelIndex ),LessThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)2' ))]" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - } - } - - flowcontainer = { - visible = "[HouseAspiration.HasMultipleLevels]" - datamodel = "[HouseAspiration.GetLevels]" - position = { 0 10} - spacing = -4 - parentanchor = bottom|hcenter - ignoreinvisible = yes - - item = { - icon_flat_standard_gold = { - size = { 16 16 } - texture = "gfx/interface/icons/flat_icons/star.dds" - visible = "[And(LessThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, DynastyHouse.GetHouseAspirationLevelIndex ),GreaterThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)3' ))]" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_appoint_tax_collector.gui b/N3OW/gui/window_appoint_tax_collector.gui deleted file mode 100644 index 4df4ace4..00000000 --- a/N3OW/gui/window_appoint_tax_collector.gui +++ /dev/null @@ -1,728 +0,0 @@ -window = { - name = "window_appoint_tax_collector" - parentanchor = "center" - size = { 700 1000 } - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - layoutpolicy_vertical = expanding - margin_bottom = 30 - - datacontext = "[AppointTaxCollectorWindow.GetTaxSlot]" - - vbox = { - layoutpolicy_horizontal = expanding - - ###TOPBOX - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[SelectLocalization( AppointTaxCollectorWindow.HasTaxCollector, 'TAX_COLLECTOR_REPLACE_HEADER', 'TAX_COLLECTOR_APPOINT_WINDOW_HEADER' )]" - } - - blockoverride "button_close" - { - onclick = "[AppointTaxCollectorWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - spacing = 10 - - background = { - using = Background_Area_Dark - alpha = 0.6 - } - - background = { - texture = "gfx/interface/window_tax_collector/tax_collector_illustration.dds" - alpha = 0.2 - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - vbox = { - name = "appoint_tax_collector" - layoutpolicy_horizontal = expanding - - visible = "[Not( AppointTaxCollectorWindow.HasTaxCollector )]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 3 } - spacing = 5 - - text_single = { - text = "[TaxSlot.GetName]" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - text_single = { - text = "APPOINT_TAX_COLLECTOR_UNTAXED_TAX_SLOT" - default_format = "#warning" - align = nobaseline - } - - expand = {} - - text_single = { - text = "TAX_COLLECTOR_TAXED_VASSALS_COUNT" - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_single = { - text = "APPOINT_TAX_COLLECTOR_WINDOW_NO_CURRENT_COLLECTOR" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - margin_left = 10 - margin_right = 60 - - text_multi = { - layoutpolicy_horizontal = expanding - default_format = "#low" - text = "APPOINT_TAX_COLLECTOR_WINDOW_DESC" - } - } - } - - vbox = { - name = "replace_tax_collector" - layoutpolicy_horizontal = expanding - - visible = "[AppointTaxCollectorWindow.HasTaxCollector]" - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 5 - - datacontext = "[AppointTaxCollectorWindow.GetTaxCollector]" - - portrait_head = { } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[TaxSlot.GetTaxSlotType]" - - text_multi = { - text = "[Character.GetUINameNoTooltip]" - autoresize = yes - max_width = 325 - } - - expand = {} - - tax_collector_aptitude_text = { - layoutpolicy_horizontal = expanding - align = right|nobaseline - } - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - - visible = "[Character.HasRelationTo( GetPlayer )]" - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - button_standard = { - text = "APPOINT_TAX_COLLECTOR_FIRE_CURRENT" - onclick = "[AppointTaxCollectorWindow.RemoveTaxCollector]" - tooltip = "APPOINT_TAX_COLLECTOR_FIRE_CURRENT_TT" - } - expand = {} - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[AppointTaxCollectorWindow.GetPotentialTaxCollectors]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "eligible_tax_collectors_sort_options" - } - } - } - } - - blockoverride "container_implementation" { - vbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - item = { - tax_collector_candidate_list_widget = { - datacontext = "[CharacterListItem.GetCharacter]" - - visible = "[Not( AppointTaxCollectorWindow.IsCurrentTaxCollector( Character.Self ) )]" - - block "item_size" { - size = { 420 110 } - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - vbox = { - name = "selected_potential_tax_collector" - layoutpolicy_horizontal = expanding - spacing = 3 - margin_bottom = 15 - - visible = "[AppointTaxCollectorWindow.HasSelectedCharacter]" - datacontext = "[AppointTaxCollectorWindow.GetSelectedCharacter]" - datacontext = "[AppointTaxCollectorWindow.GetTaxSlot]" - datacontext = "[TaxSlot.GetTaxSlotType]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 15 } - - background = { - margin = { -10 0 } - using = Background_Area - } - - text_multi = { - text = "TAX_COLLECTOR_NEW_HIRE" - autoresize = yes - max_width = 300 - } - - tax_collector_aptitude_text = { - using = Font_Size_Medium - align = nobaseline - } - - warning_icon = { - visible = "[And( AppointTaxCollectorWindow.HasTaxCollector, AppointTaxCollectorWindow.HasSelectedCharacter)]" - tooltip = "APPOINT_TAX_COLLECTOR_REPLACE_CURRENT_TT" - } - } - - hbox = { - margin = { 10 0 } - spacing = 15 - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - background = { - margin = { 25 3 } - texture = "gfx/interface/colors/blue.dds" - alpha = 0.6 - - modify_texture = { - name = "mask" - texture = "gfx/interface/window_tax_collector/button_arrow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - using = Mask_Rough_Edges - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_THIS_JURISDICTION" - max_width = 240 - align = nobaseline - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - max_width = 250 - - background = { - using = Background_Area - using = Color_White - tintcolor = { 0.6 0.7 0.2 0.3 } - margin = { 30 3 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - } - - expand = {} - - hbox = { - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/message_feed/tax_collector.dds" - } - - text_single = { - datacontext = "[AppointTaxCollectorWindow.GetTaxpayerLimitChange]" - datacontext = "[TaxCollectorValueChange.GetBreakdown]" - - text = "TAX_COLLECTOR_VALUE_CHANGE_INT" - align = nobaseline - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - using = tooltip_ws - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - hbox = { - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[AppointTaxCollectorWindow.GetTaxChange]" - datacontext = "[TaxCollectorValueChange.GetBreakdown]" - - text = "TAX_COLLECTOR_VALUE_CHANGE" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_COLLECTOR_NEW_HIRE_TAX_DESC" - } - } - } - using = tooltip_ws - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - hbox = { - spacing = 5 - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[AppointTaxCollectorWindow.GetLevyChange]" - datacontext = "[TaxCollectorValueChange.GetBreakdown]" - - text = "TAX_COLLECTOR_VALUE_CHANGE_INT" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_COLLECTOR_NEW_HIRE_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - } - - expand = {} - } - } - } - - vbox = { - name = "no_selected_potential_tax_collector" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - visible = "[Not( AppointTaxCollectorWindow.HasSelectedCharacter )]" - - datacontext = "[AppointTaxCollectorWindow.GetTaxSlot]" - datacontext = "[TaxSlot.GetTaxSlotType]" - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 10 10 } - - background = { - margin = { -10 0 } - using = Background_Area - } - - text_single = { - minimumsize = { 0 75 } - text = "APPOINT_TAX_COLLECTOR_NO_SELECTED_DESC" - default_format = "#instruction" - } - } - } - - button_primary = { - onclick = "[AppointTaxCollectorWindow.AppointCharacter]" - enabled = "[AppointTaxCollectorWindow.HasSelectedCharacter]" - text = "TAX_COLLECTOR_APPOINT_WINDOW_BUTTON" - } - } - - - window_character_filter = { - name = "appoint_tax_collector_filter_window" - datacontext = "[AppointTaxCollectorWindow.GetPotentialTaxCollectors]" - - blockoverride "editbox_properties" - { - name = "eligible_tax_collectors_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_house_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - } - } -} - -types AppointTaxCollectorTypes -{ - type tax_collector_aptitude_text = text_single - { - datacontext = "[TaxSlot.GetTaxSlotType]" - datacontext = "[TaxSlotType.GetTaxCollectorAptitudeTooltipFor( Character.Self )]" - - text = APPOINT_TAX_COLLECTOR_VIEW_APTITUDE - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - type tax_collector_candidate_list_widget = widget { - - size = { 10 110 } - - block "divider" { - divider = { - parentanchor = bottom|hcenter - size = { 100% 3 } - } - } - - block "widget" {} - - hbox = { - margin = { 0 5 } - spacing = 15 - - portrait_head_small = {} - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - - spriteType = Corneredtiled - spriteborder = { 20 20 } - - down = "[AppointTaxCollectorWindow.IsCharacterSelected(CharacterListItem.Self)]" - - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - margin = { 10 0 } - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - - block "button" {} - - character_list_arrow = { - name = "character_list_arrow" - } - - # Selected icon - icon = { - visible = "[AppointTaxCollectorWindow.IsCharacterSelected(CharacterListItem.Self)]" - parentanchor = left|vcenter - position = { -20 0 } - size = { 20 20 } - texture = "gfx/interface/buttons/button_entry_characterlist_arrow.dds" - } - - block "overlay" { - using = default_character_list_overlay - } - - block "button_content" - { - hbox = { - # Name, Relation, Age and Aptitude - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Name, Relation, Age - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - # Name - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip]" - } - - # Relation and Age - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - } - - # Aptitude - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - tax_collector_aptitude_text = {} - - expand = {} - } - - expand = {} - } - - expand = {} - - # Skills and Traits - vbox = { - minimumsize = { 200 0 } - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_vertical = expanding - margin_top = 5 - margin_bottom = 5 - margin_right = 5 - - # Skills - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - margin_right = 5 - - item = { - widget = { - size = { 32 25 } - - text_single = { - name = "value" - parentanchor = center - margin_bottom = 4 - align = center - text = "[SkillItem.GetValue]" - tooltip = "[SkillItem.GetName]" - } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - margin = { 5 0 } - - block "bg" - { - frame = "[SkillItem.GetFrame]" - } - } - } - } - } - - expand = {} - - # Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - addcolumn = 30 - addrow = 30 - datamodel_wrap = 7 - maxverticalslots = 2 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_army.gui b/N3OW/gui/window_army.gui deleted file mode 100644 index 53f8d709..00000000 --- a/N3OW/gui/window_army.gui +++ /dev/null @@ -1,2288 +0,0 @@ -window = { - name = "army_window" - datacontext = "[ArmyWindow.GetArmy]" - - parentanchor = bottom|left - size = { 785 350 } - filter_mouse = left|right - movable = no - layer = middle - allow_outside = yes - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -25 -20 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'county_view_open', 'true' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'county_view_open' )]" - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - vbox = { - margin_right = 33 - margin_top = 36 - - ### close button row - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 8 - margin_bottom = -8 - - header_pattern = { - layoutpolicy_horizontal = expanding - - widget = { - size = { 45 50 } - - coa_realm_small_crown = { - name = "owner_flag" - datacontext = "[Army.GetOwner]" - parentanchor = bottom|left - position = { 5 5 } - } - } - - # hbox = { - # #visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - # spacing = 3 - - # icon = { - # name = "icon_soldier" - # texture = "gfx/interface/icons/icon_soldier.dds" - # size = { 30 30 } - # } - - # text_single = { - # name = "strength" - # text = "[ArmyWindow.GetTotalSoldierCountString]" - # align = nobaseline - # } - - # using = tooltip_ne - # tooltip = "[ArmyWindow.GetAllArmiesCompositionString]" - # } - #} - - ## Armies flag - fixedgridbox = { - name = "banner_items_grid" - datamodel = "[ArmyWindow.GetSelectedUnitItems]" - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - position = { 55 0 } - - addcolumn = 50 - addrow = 50 - datamodel_wrap = 8 - flipdirection = yes - maxverticalslots = 1 - - item = { - widget = { - size = { 50 50 } - name = "unit_item" - - button = { - name = "unit_icon" - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_select_army" - - gfxtype = updownframedbuttongfx - framesize = { 96 96 } - size = { 50 50 } - onclick = "[PdxGuiTriggerAllAnimations('army_change')]" - onrightclick = "[SelectedUnitItem.OnRightClick]" - down = "[SelectedUnitItem.IsShown]" - effectname = "NoHighlight" - - upframe = 1 - overframe = 2 - downframe = 3 - - highlight_icon = { - visible = "[SelectedUnitItem.IsGatheringArmy]" - size = { 50 50 } - texture = "gfx/interface/icons/unit_view/unit_view_gathering.dds" - } - - highlight_icon = { - visible = "[SelectedUnitItem.GetArmy.IsEmbarked]" - size = { 50 50 } - texture = "gfx/interface/icons/unit_view/unit_view_disembarking.dds" - } - - icon = { - visible = "[Or( And(SelectedUnitItem.IsShown, SelectedUnitItem.GetArmy.IsEmbarked), And(SelectedUnitItem.IsShown, SelectedUnitItem.IsGatheringArmy))]" - framesize = { 96 96 } - size = { 50 50 } - frame = 5 - alwaystransparent = yes - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - } - - icon = { - visible = "[SelectedUnitItem.IsShown]" - framesize = { 96 96 } - size = { 50 50 } - frame = 4 - alwaystransparent = yes - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - } - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[SelectedUnitItem.OnClick]" - } - } - - text_single = { - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 10 } - - text = "[SelectedUnitItem.GetArmy.GetSoldierCount|*]" - } - - tooltip = "[SelectedUnitItem.GetTooltip]" - using = tooltip_ne - } - } - } - - button_standard_hover = { - name = "expanded_armies_button" - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)8')]" - parentanchor = right|vcenter - position = { -250 -5 } - size = { 35 30 } - onclick = "[GetVariableSystem.Toggle( 'expanded_armies_window' )]" - - text_single = { - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)8')]" - parentanchor = center - - text = "[GetNumberAbove_int32( GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)8' )|=]" - align = center|nobaseline - default_format = "#Clickable" - using = Font_Size_Medium - } - } - - hbox = { - visible = "[Not(Army.IsControlledByCompanionAI)]" - layoutpolicy_horizontal = expanding - margin_right = 45 - margin_bottom = 15 - - expand = {} - - widget = { - size = { 42 45 } - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - - button_round = { - name = "reorganize_button" - enabled = "[ArmyWindow.CanReorgSelected]" - tooltip = "[ArmyWindow.BuildReorgTooltip]" - using = tooltip_ne - parentanchor = bottom - - button_army_reorganize = { - onclick = "[ArmyWindow.ToggleReorganizationWindow]" - parentanchor = center - } - } - } - - widget = { - size = { 42 45 } - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - - button_round = { - name = "merge_button" - enabled = [ArmyWindow.CanMerge] - tooltip = "[ArmyWindow.BuildMergeTooltip]" - using = tooltip_ne - parentanchor = bottom - - button_army_merge = { - parentanchor = center - onclick = "[ArmyWindow.MergeSelected]" - shortcut = "army_merge" - } - } - } - } - } - - blockoverride "header_text" { - name = "name" - visible = "[Not(GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)5'))]" - text = "ARMY_HEADER" - align = center - using = Font_Size_Big - max_width = 600 - } - - blockoverride "button_close" - { - onclick = "[ArmyWindow.CloseAndDeselect]" - } - } - - ### info row - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### Dark header row - hbox = { - ### name - visible = "[Not(GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1'))]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - margin = { 10 4 } - margin_right = 20 - - spacing = 5 - - background = { - margin_left = 15 - margin_right = -7 - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_vertical = expanding - - spacing = 8 - - icon_raider = {} - - icon_barterer = {} - - text_single = { - name = "name" - text = "[Army.GetNameNoTooltip]" - align = left|nobaseline - using = Font_Size_Medium - max_width = 600 - } - } - - expand = {} - - hbox = { - name = "raid_loot" - visible = "[Army.IsRaidArmy]" - tooltip = "ARMY_RAID_LOOT_TOOLTIP" - - icon = { - name = "loot_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_loot.dds" - } - - text_single = { - name = "loot" - text = "[Army.GetRaidLoot|0]/[Army.GetLootCap|0]" - } - } - - hbox = { - name = "barter_loot" - visible = "[Army.IsBarterArmy]" - tooltip = "ARMY_BARTER_LOOT_TOOLTIP" - - icon = { - name = "loot_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_loot.dds" - } - - text_single = { - name = "loot" - text = "[Army.GetBarterLoot|0]/[Army.GetLootCap|0]" - } - } - - hbox = { - tooltip = "ARMY_ATTRITION_TT" - - icon = { - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - size = { 35 35 } - } - - text_single = { - name = "attrition" - text = "[Army.GetArmyAttritionPercentage|%0-]" - } - } - - hbox = { - name = "supplies" - tooltip = "[Army.GetSupplyStateTooltip]" - - icon = { - name = "supply_icon" - size = { 40 40 } - framesize = { 60 60 } - frame = "[ArmyWindow.GetSupplyStateFrame]" - texture = "gfx/interface/icons/icon_supplies.dds" - } - - icon = { - name = "supply_trend_icon" - size = { 25 25 } - visible = "[ArmyWindow.ShowSupplyTrend]" - texture = "gfx/interface/icons/symbols/icon_supplies_trend.dds" - } - - text_single = { - name = "supply_text" - text = "[ArmyWindow.GetCurrentSupply]/[ArmyWindow.GetFullSupplyCapacity]" - minimumsize = { 60 0 } - align = right - } - } - } - - ### selected Dark header row - button = { - name = "select_this_only" - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 48 } - onclick = "[ArmyWindow.SelectThisUnitOnly]" - - tooltip = "ARMY_SELECT_THIS_ONLY" - - state = { - name = "army_change" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - ### name ### - hbox = { - margin_left = 10 - margin_right = 20 - - spacing = 5 - - background = { - margin_left = 15 - margin_right = -6 - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - text_single = { - name = "name" - text = "[Army.GetNameNoTooltip]" - align = left|nobaseline - using = Font_Size_Medium - max_width = 600 - } - - button_select_arrow = { - alwaystransparent = yes - size = { 20 20 } - } - } - - expand = {} - - hbox = { - name = "loot" - visible = "[Army.IsRaidArmy]" - tooltip = "ARMY_RAID_LOOT_TOOLTIP" - - icon = { - name = "loot_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_loot.dds" - } - - text_single = { - name = "loot" - text = "[Army.GetRaidLoot|0]/[Army.GetLootCap|0]" - } - } - - hbox = { - tooltip = "ARMY_ATTRITION_TT" - - icon = { - texture = "gfx/interface/icons/map_icons/attrition_icon.dds" - size = { 35 35 } - } - - text_single = { - name = "attrition" - text = "[Army.GetArmyAttritionPercentage|%0-]" - } - } - - hbox = { - name = "supplies" - tooltip = "[Army.GetSupplyStateTooltip]" - - icon = { - name = "supply_icon" - size = { 40 40 } - framesize = { 60 60 } - frame = "[ArmyWindow.GetSupplyStateFrame]" - texture = "gfx/interface/icons/icon_supplies.dds" - } - - icon = { - name = "supply_trend_icon" - size = { 25 25 } - visible = "[ArmyWindow.ShowSupplyTrend]" - texture = "gfx/interface/icons/symbols/icon_supplies_trend.dds" - } - - text_single = { - name = "supply_text" - text = "[ArmyWindow.GetCurrentSupply]/[ArmyWindow.GetFullSupplyCapacity]" - minimumsize = { 60 0 } - align = right - } - } - } - } - - hbox = { - maximumsize = { -1 274 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - - state = { - name = "army_change" - alpha = 0.5 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - background = { - using = Background_Area - margin_right = -8 - margin_top = 5 - } - - datacontext = "[Army.GetCommander]" - - ### Commmander ### - hbox = { - layoutpolicy_vertical = expanding - margin_left = 5 - - background = { - using = Background_Area - margin_top = 5 - } - - background = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - alpha = 0.3 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_texture_01.dds" - spriteType = Corneredtiled - spriteborder = { 15 15 } - blend_mode = alphamultiply - } - } - - background = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredstretched - spriteborder = { 15 15 } - alpha = 0.25 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - } - - widget = { - size = { 200 210 } - - portrait_torso = { - name = "army_commander" - visible = "[Character.IsValid]" - size = { 100% 100% } - - blockoverride "opinion_box" - {} - blockoverride "status_icons" - {} - - blockoverride "coa" - {} - - blockoverride "portrait_button_template_onclick" - { - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - } - - blockoverride "portrait_button" { - mask = "gfx/portraits/portrait_mask_council.dds" - size = { 195 225 } - } - } - - portrait_torso = { - name = "no_commander" - visible = "[Not( Character.IsValid )]" - position = { 15 0 } - - blockoverride "opinion_box" - {} - blockoverride "status_icons" - {} - - blockoverride "portrait_button_template_onclick" - { - onclick = "[ArmyWindow.ShowCommanders]" - } - - blockoverride "onclick" { - onclick = "[ArmyWindow.ShowCommanders]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 50 50 } - position = { 0 20 } - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - - widget = { - size = { 100% 100% } - - widget = { - size = { 42 33 } - parentanchor = right - - icon = { - name = "commander_is_leader" - texture = "gfx/interface/icons/commander_is_leader.dds" - visible = "[Army.CommanderIsOwner]" - tooltip = "COMMANDER_IS_LEADER_TOOLTIP" - size = { 40 40 } - } - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - minimumsize = { 40 0 } - layoutpolicy_vertical = expanding - expand = {} - - fixedgridbox = { - name = "commander_traits" - datamodel = "[ArmyWindow.GetCommanderTraits]" - setitemsizefromcell = yes - addcolumn = 40 - addrow = 40 - datamodel_wrap = 3 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - position = { -3 0 } - - blockoverride "icon_size" - { - size = { 40 40 } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - - widget = { - size = { 45 35 } - visible = "[Character.IsValid]" - tooltip = "[Character.GetCommanderAdvantageDesc]" - - hbox = { - name = "martial_skill_commander" - datacontext = "[ArmyWindow.GetCommanderMartialSkill]" - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_commander_advantage.dds" - size = { 30 30 } - } - - text_single = { - name = "skill_value" - align = right|nobaseline - default_format = "#high" - text = "[Character.GetCommanderAdvantage]" - } - - background = { - using = Background_Area_Dark - margin = {4 2} - } - } - } - - expand = {} - } - } - expand = {} - } - - widget = { - layoutpolicy_horizontal = expanding - minimumsize = { 150 50 } - allow_outside = yes - - text_label_center = { - name = "Commander" - multiline = yes - max_width = 115 - text = "[commander|E]" - parentanchor = center - } - - button = { - visible = "[Not( Army.GetOwner.HasActiveCompanionAISetting('assign_commanders') )]" - - size = { 50 50 } - enabled = "[ArmyWindow.CanShowCommanders]" - onclick = "[ArmyWindow.ShowCommanders]" - tooltip = "[ArmyWindow.GetShowCommandersTooltip]" - - button_replace = { - name = "change_commander" - parentanchor = center - position = { -3 0 } - size = { 36 36 } - alwaystransparent = yes - } - } - - widget = { - size = { 45 50 } - parentanchor = right|vcenter - allow_outside = yes - - coa_realm_small_crown = { - visible = "[And(Character.IsValid, Character.HasLandedTitles)]" - parentanchor = bottom|hcenter - widgetanchor = bottom|hcenter - } - } - } - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ### Info ### - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 280 0 } - - background = { - name = "army_state_background" - texture = "[Army.GetArmyStatusIllustration]" - margin_top = 5 - margin_right = -5 - using = Mask_Rough_Edges - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - rotate_uv = -90 - mirror = vertical - } - } - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - margin_left = 10 - layoutpolicy_horizontal = expanding - soldiers_and_quality_big = { - datacontext = "[Army.GetComposition]" - } - - expand = {} - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - vbox = { - layoutpolicy_vertical = expanding - - # background = { - # using = Background_Area - # margin = { 14 2 } - - # modify_texture = { - # name = "mask" - # texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - # blend_mode = alphamultiply - # mirror = horizontal - # } - # } - - spacer = { - size = { 5 10 } - visible = "[Not(Or( DataModelHasItems(ArmyWindow.GetHiredTroopItems), Army.HasEventTroops ))]" - } - - ### Hired Troops - hbox = { - name = "hired_and_event_troops" - visible = "[Or( DataModelHasItems(ArmyWindow.GetHiredTroopItems), Army.HasEventTroops )]" - ignoreinvisible = yes - layoutpolicy_horizontal = expanding - - widget = { - visible = "[Army.HasEventTroops]" - size = { 36 30 } - allow_outside = yes - icon = { - name = "event_troops" - texture = "gfx/interface/icons/icon_special_troops.dds" - size = { 36 36 } - tooltip = "ARMY_VIEW_ARMY_HAS_EVENT_TROOPS" - using = tooltip_ne - } - } - - overlappingitembox = { - size = { 350 42 } - name = "hired_troops" - datamodel = "[ArmyWindow.GetHiredTroopItems]" - - item = { - container = { - ignoreinvisible = yes - - container = { - name = "mercenary_item" - visible = "[HiredTroopItem.IsMercenaryCompany]" - datacontext = "[HiredTroopItem.GetMercenaryCompany]" - - coa_title_tiny = { - name = "mercenary_coa" - datacontext = "[MercenaryCompany.GetTitle]" - } - } - - container = { - name = "holy_order_item" - visible = "[HiredTroopItem.IsHolyOrder]" - datacontext = "[HiredTroopItem.GetHolyOrder]" - - coa_title_tiny = { - name = "holy_order_coa" - datacontext = "[HolyOrder.GetTitle]" - } - } - } - } - } - - expand = {} - } - - spacer = { - size = { 5 5 } - visible = "[Or( DataModelHasItems(ArmyWindow.GetHiredTroopItems), Army.HasEventTroops )]" - } - - ### MAA ### - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - dynamicgridbox = { - name = "troops" - datamodel = "[ArmyWindow.GetTroopItems]" - datamodel_wrap = 4 - flipdirection = yes - - item = { - widget = { - tooltip = "ARMY_VIEW_TROOP_TT" - - hbox = { - set_parent_size_to_minimum = yes - margin_right = 8 - spacing = 1 - - icon = { - name = "men_at_arms_icon" - visible = "[TroopItem.IsMaa]" - size = { 35 35 } - texture = "[TroopItem.GetRegiment.GetRegiment.GetMAAType.GetIcon]" - } - - icon = { - name = "levies_icon" - visible = "[TroopItem.IsLevies]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_levies.dds" - } - - widget = { - visible = "[TroopItem.IsKnight]" - size = { 30 35 } - - icon = { - name = "knight_icon" - parentanchor = center - size = { 35 35 } - texture = "gfx/interface/icons/icon_knight_small.dds" - } - } - - text_single = { - layoutpolicy_horizontal = growing - text = "[TroopItem.GetCount|*]" - default_format = "#high" - } - } - } - } - } - - expand = {} - } - } - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Army.HasAcclaimedKnights]" - tooltip = "[Army.BuildAcclaimedKnightsBreakdown]" - using = tooltip_se - - icon = { - name = "acclaimed_knights_icon" - size = { 40 40 } - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "[Army.GetNumAcclaimedKnights]" - } - expand = {} - } - - expand = {} - } - - expand = {} - } - } - - expand = {} - } - } - - } - } - - widget = { - size = { 770 345 } - name = "hundred" - parentanchor = bottom|right - - state = { - name = "army_change" - alpha = 0.5 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - vbox = { - margin_right = 45 - spacing = 5 - - expand = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = { - layoutpolicy_horizontal = expanding - } - - vbox = { - vbox = { - margin = { 10 10 } - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - hbox = { - spacing = 7 - - text_single = { - name = "status_text" - text = "[ArmyWindow.GetUnitItem.GetStatusDescription]" - default_format = "#high" - align = nobaseline - } - - container = { - name = "open_raid_button" - visible = "[Army.IsTakingRaidAction]" - datacontext = "[Army.GetRaid]" - using = raid_goto_template - } - - container = { - name = "open_barter_button" - visible = "[Army.IsTakingBarterAction]" - datacontext = "[Army.GetBarterMission]" - using = barter_goto_template - } - - vbox = { - name = "open_siege_button" - visible = "[Army.IsSieging]" - datacontext = "[Army.GetLocation.GetSiege]" - using = siege_goto_template - } - - button_round = { - name = "stop_gathering_button" - size = { 30 30 } - visible = "[ArmyWindow.CanStopGathering]" - - button_cancel_small = { - parentanchor = center - onclick = "[ArmyWindow.StopGathering]" - tooltip = "STOP_GATHERING" - } - } - } - - hbox = { - visible = "[Army.IsGathering]" - layoutpolicy_horizontal = expanding - - using = Animation_ShowHide_Standard - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { 0 10 } - min = 0 - max = 1 - value = "[Army.GetGatheringProgress]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Army.IsControlledByCompanionAI]" - - expand = {} - - margin_right = 2 - - hbox = { - margin_left = 12 - margin_right = 12 - margin_bottom = 8 - spacing = 4 - - background = { - using = Background_Area_Dark - alpha = 0.7 - margin_top = 5 - } - - text_single = { - name = "status_text" - text = "[Army.GetAIOrderDesc]" - default_format = "#high" - align = nobaseline - } - - army_automation_on = { - size = { 36 36 } - } - } - - - } - - - ### Manage buttons - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - margin_bottom = 5 - visible = "[Not(Army.IsControlledByCompanionAI)]" - - expand = {} - - text_multi = { - name = "attached_to_name" - visible = "[ArmyWindow.IsAttachedToAnyUnit]" - datacontext = "[ArmyWindow.GetAttachedToArmy]" - text = "ATTACHED_ARMY_NAME" - align = left - using = Font_Size_Small - max_width = 250 - autoresize = yes - maximumsize = { -1 40 } - } - - spacer = { - size = { 5 5 } - } - - button_round = { - name = "attach_to_unit_button" - visible = "[And( Not( ArmyWindow.CanAttachToMultipleLocalUnits ), Not( ArmyWindow.IsAttachedToAnyUnit ) )]" - enabled = "[ArmyWindow.CanAttachToAnyLocalUnit]" - tooltip = "[ArmyWindow.BuildAttachToUnitTooltip]" - using = tooltip_ne - - button_attach_to_unit = { - onclick = "[ArmyWindow.AttachToLocalUnit]" - parentanchor = center - } - } - - button_round = { - name = "attach_to_unit_window_button" - visible = "[And( ArmyWindow.CanAttachToMultipleLocalUnits, Not( ArmyWindow.IsAttachedToAnyUnit ) )]" - tooltip = "TOGGLE_ATTACH_TO_UNIT_WINDOW" - using = tooltip_ne - - button_attach_to_unit = { - onclick = "[ArmyWindow.ToggleAttachToWindow]" - parentanchor = center - } - } - - button_round = { - name = "detach_from_unit_button" - visible = "[ArmyWindow.IsAttachedToAnyUnit]" - enabled = "[ArmyWindow.CanDetachFromUnit]" - tooltip = "[ArmyWindow.BuildDetachFromUnitTooltip]" - using = tooltip_ne - - button_detach_from_unit = { - onclick = "[ArmyWindow.DetachFromUnit]" - parentanchor = center - } - } - - hbox = { - layoutpolicy_vertical = expanding - visible = "[Army.IsRaidArmy]" - - button_standard = { - size = { 80 32 } - datacontext = "[ArmyWindow.GetRaidIntent]" - - onclick = "[ToggleGameViewData( 'raid_intent_selection_window', ArmyWindow.AccessSelf )]" - enabled = [ArmyWindow.CanDisband] - - tooltip = "RAID_OPEN_INTENT_WINDOW" - tooltip_when_disabled = "RAID_OPEN_INTENT_WINDOW_DISABLED" - using = tooltip_ne - - flowcontainer = { - parentanchor = vcenter - spacing = 10 - margin = { 8 0 } - - icon = { - size = { 30 30 } - texture = "[RaidIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - } - - button_replace = { - parentanchor = right|vcenter - position = { -10 0 } - size = { 20 20 } - - alwaystransparent = yes - } - } - - spacer = { - size = { 5 5 } - } - - - button_checkbox_label = { - name = "toggle_looting" - onclick = "[ArmyWindow.ToggleLooting]" - tooltip = "TOGGLE_LOOTER_STANCE" - - blockoverride "checkbox" - { - checked = "[Army.HasLooterStance]" - } - - blockoverride "text" - { - text = "AV_ALWAYS_RAID" - } - } - - spacer = { - size = { 5 5 } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - spacer = { - size = { 5 5 } - } - } - - button_round = { - name = "unit_custom_split_button" - enabled = "[ArmyWindow.CanSplitCustomSelected]" - - - button_army_create = { - parentanchor = center - tooltip = "[ArmyWindow.BuildSplitCustomTooltip]" - using = tooltip_ne - onclick = "[ArmyWindow.ToggleSplitArmyWindow]" - shortcut = army_create_new - } - } - - button_round = { - name = "split_in_half_button" - - - button_army_split_in_half = { - parentanchor = center - onclick = [ArmyWindow.SplitHalfSelected] - shortcut = army_split_half - tooltip = [ArmyWindow.BuildSplitHalfTooltip] - using = tooltip_ne - } - enabled = [ArmyWindow.CanSplitHalfSelected] - } - - button_round = { - name = "split_off_button" - onclick = "[ArmyWindow.SplitSelectedHiredAndEventTroops]" - tooltip = "[ArmyWindow.BuildSplitHiredAndEventTroopsTooltip]" - enabled = "[ArmyWindow.CanSplitSelectedHiredAndEventTroops]" - using = tooltip_ne - - button_army_split_off_special_troops = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "split_for_siege_button" - using = tooltip_ne - visible = "[Army.IsSieging]" - button_army_split_off_besiegers = { - parentanchor = center - - onclick = [ArmyWindow.SplitSelectedForSiege] - shortcut = army_split_half - } - enabled = [ArmyWindow.CanSplitSelectedForSiege] - tooltip = [ArmyWindow.BuildSplitForSiegeTooltip] - } - - spacer = { - size = { 5 5 } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - spacer = { - size = { 5 5 } - } - - button_round = { - name = "toggle_raiding" - - button_army_toggle_raiding = { - onclick = [ArmyWindow.ToggleRaiding] - visible = "[Not(Army.IsRaidArmy)]" - parentanchor = center - } - - button_army_details = { - onclick = "[ArmyWindow.ToggleRaiding]" - visible = "[Army.IsRaidArmy]" - parentanchor = center - } - - enabled = [ArmyWindow.CanToggleRaiding] - tooltip = [ArmyWindow.BuildToggleRaidingTooltip] - using = tooltip_ne - visible = "[GetPlayer.CanRaid]" - } - - button_round = { - name = "toggle_bartering" - - button_army_toggle_bartering = { - onclick = [ArmyWindow.ToggleBartering] - visible = "[Not(Army.IsBarterArmy)]" - parentanchor = center - } - - button_army_details = { - onclick = "[ArmyWindow.ToggleBartering]" - visible = "[Army.IsBarterArmy]" - parentanchor = center - } - - enabled = [ArmyWindow.CanToggleBartering] - tooltip = [ArmyWindow.BuildToggleBarteringTooltip] - using = tooltip_ne - visible = "[GetPlayer.HasBarterGoods]" - } - - button_round = { - name = "disband_button" - using = tooltip_ne - - enabled = [ArmyWindow.CanDisband] - tooltip = [ArmyWindow.BuildDisbandTooltip] - - button_army_disband = { - parentanchor = center - onclick = [ArmyWindow.DisbandSelected] - shortcut = army_disband - } - } - } - } - } - - widget = { - name = "expanded_armies_window" - visible = "[GetVariableSystem.Exists( 'expanded_armies_window' )]" - parentanchor = top - widgetanchor = bottom - position = { 40 0 } - layer = top - - allow_outside = yes - - using = Animation_ShowHide_Quick - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 15 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 50 - } - - vbox = { - alwaystransparent = no - set_parent_size_to_minimum = yes - - margin = { 5 5 } - using = Window_Background_Subwindow - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "OUTLINER_ARMIES" - align = nobaseline - max_width = 280 - } - - blockoverride "button_close" - { - onclick = "[GetVariableSystem.Toggle( 'expanded_armies_window' )]" - } - - expand = {} - } - - hbox = { - margin = { 10 10 } - margin_top = 0 - - fixedgridbox = { - name = "banner_items_grid" - datamodel = "[ArmyWindow.GetSelectedUnitItems]" - visible = "[GreaterThan_int32(GetDataModelSize(ArmyWindow.GetSelectedUnitItems), '(int32)1')]" - - addcolumn = 50 - addrow = 50 - datamodel_wrap = 10 - flipdirection = yes - - item = { - widget = { - size = { 50 50 } - name = "unit_item" - - button = { - name = "unit_icon" - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_select_army" - - gfxtype = updownframedbuttongfx - framesize = { 96 96 } - size = { 50 50 } - onclick = "[PdxGuiTriggerAllAnimations('army_change')]" - onrightclick = "[SelectedUnitItem.OnRightClick]" - down = "[SelectedUnitItem.IsShown]" - effectname = "NoHighlight" - - upframe = 1 - overframe = 2 - downframe = 3 - - highlight_icon = { - visible = "[SelectedUnitItem.IsGatheringArmy]" - size = { 50 50 } - texture = "gfx/interface/icons/unit_view/unit_view_gathering.dds" - } - - highlight_icon = { - visible = "[SelectedUnitItem.GetArmy.IsEmbarked]" - size = { 50 50 } - texture = "gfx/interface/icons/unit_view/unit_view_disembarking.dds" - } - - icon = { - visible = "[Or( And(SelectedUnitItem.IsShown, SelectedUnitItem.GetArmy.IsEmbarked), And(SelectedUnitItem.IsShown, SelectedUnitItem.IsGatheringArmy))]" - framesize = { 96 96 } - size = { 50 50 } - frame = 5 - alwaystransparent = yes - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - } - - icon = { - visible = "[SelectedUnitItem.IsShown]" - framesize = { 96 96 } - size = { 50 50 } - frame = 4 - alwaystransparent = yes - texture = "gfx/interface/icons/unit_view/unit_view_banner.dds" - } - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[SelectedUnitItem.OnClick]" - } - } - - text_single = { - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 10 } - - text = "[SelectedUnitItem.GetArmy.GetSoldierCount|*]" - } - - tooltip = "[SelectedUnitItem.GetTooltip]" - using = tooltip_ne - } - } - } - } - } - } -} - -window = { - name = "army_reorganization_window" - size = { 900 700 } - parentanchor = center - layer = top - - attachto = { - widgetid = "army_window" - stackmode = top - inherit_data_context = yes - } - - using = Window_Background - using = Window_Decoration_Spike - - using = Animation_ShowHide_Quick - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ARMY_REORGANIZATION" - } - - blockoverride "button_close" - { - onclick = "[ArmyReorgWindow.Hide]" - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 25 10 } - - widget = { - size = { 300 100 } - vbox = { - name = "left" - datacontext = "[ArmyReorgWindow.GetLeftArmyComposition]" - visible = "[DataModelHasItems( ArmyReorgWindow.GetLeftItems )]" - - vbox = { - text_label_center = { - name = "army_name" - text = "[ArmyComposition.GetName]" - layoutpolicy_horizontal = expanding - default_format = "#high" - using = Font_Size_Medium - align = center - } - - hbox_soldiers_and_quality_small = { - layoutpolicy_horizontal = expanding - } - - text_single = { - name = "army_maintenance" - text = "ARMY_REORG_LEFT_MAINTENANCE" - layoutpolicy_horizontal = expanding - align = center|nobaseline - } - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - widget = { - size = { 300 100 } - - vbox = { - name = "right" - datacontext = "[ArmyReorgWindow.GetRightArmyComposition]" - visible = "[DataModelHasItems( ArmyReorgWindow.GetRightItems )]" - - vbox = { - text_label_center = { - name = "army_name" - text = "[ArmyComposition.GetName]" - layoutpolicy_horizontal = expanding - default_format = "#high" - using = Font_Size_Medium - align = center - } - - hbox_soldiers_and_quality_small = { - layoutpolicy_horizontal = expanding - } - - text_single = { - name = "army_maintenance" - text = "ARMY_REORG_RIGHT_MAINTENANCE" - layoutpolicy_horizontal = expanding - align = center|nobaseline - } - } - - expand = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 20 - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty(ArmyReorgWindow.GetLeftItems)]" - text = "REORG_EMPTY_LIST" - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - datamodel = "[ArmyReorgWindow.GetLeftItems]" - addcolumn = 350 - addrow = 53 - - item = { - button_standard_list = { - name = "regiment_item" - size = { 350 50 } - onclick = "[RegimentReorgEntry.MoveRegiment]" - - using = reorg_regiment_tooltips - - hbox = { - margin_right = 5 - - hbox_reorg_regiment_entry_core = { - name = "info" - } - - button_select_arrow = { - alwaystransparent = yes - size = { 20 20 } - } - } - } - } - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty(ArmyReorgWindow.GetRightItems)]" - text = "REORG_EMPTY_LIST" - } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - datamodel = "[ArmyReorgWindow.GetRightItems]" - addcolumn = 350 - addrow = 53 - - item = { - button_standard_list = { - name = "regiment_item" - size = { 350 50 } - onclick = "[RegimentReorgEntry.MoveRegiment]" - - using = reorg_regiment_tooltips - blockoverride "levies_placement" { - using = tooltip_es - } - blockoverride "maa_placement" { - using = tooltip_es - } - blockoverride "knight_placement" { - using = tooltip_es - } - blockoverride "vassal_placement" { - using = tooltip_es - } - hbox = { - margin_left = 5 - button_select_arrow = { - alwaystransparent = yes - size = { 20 20 } - mirror = horizontal - } - - hbox_reorg_regiment_entry_core = { - name = "info" - } - } - } - } - } - } - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 15 } - - vbox = { - name = "left_buttons" - enabled = "[DataModelHasItems( ArmyReorgWindow.GetLeftItems )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 3 - - button_standard = { - name = "select" - text = "SELECT" - default_format = "#high" - onclick = "[ArmyReorgWindow.SelectLeft]" - tooltip = "SELECT_TOOLTIP" - } - - button_round = { - name = "disband_button" - size = { 38 38 } - - enabled = "[ArmyReorgWindow.CanDisband]" - tooltip = "DISBAND_TOOLTIP" - - button_army_disband = { - parentanchor = center - onclick = "[ArmyReorgWindow.DisbandLeft]" - } - } - } - } - - vbox = { - name = "right_buttons" - enabled = "[DataModelHasItems( ArmyReorgWindow.GetRightItems )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 3 - - button_standard = { - name = "select" - text = "SELECT" - default_format = "#high" - onclick = "[ArmyReorgWindow.SelectRight]" - tooltip = "SELECT_TOOLTIP" - } - - button_round = { - name = "disband_button" - size = { 38 38 } - - enabled = "[ArmyReorgWindow.CanDisband]" - tooltip = "DISBAND_TOOLTIP" - - button_army_disband = { - parentanchor = center - onclick = "[ArmyReorgWindow.DisbandRight]" - } - } - } - } - } - } -} - -window = { - name = "attach_to_army_window" - size = { 600 700 } - parentanchor = center - layer = top - - attachto = { - widgetid = "army_window" - stackmode = top - inherit_data_context = yes - } - - using = Window_Background - using = Window_Decoration_Spike - - using = Animation_ShowHide_Quick - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ATTACH_TO_ARMY_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[AttachToArmyWindow.Hide]" - } - } - - text_multi = { - text = "ATTACH_TO_ARMY_WINDOW_TEXT" - layoutpolicy_horizontal = expanding - align = center - margin = { 10 0 } - default_format = "#I" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - - blockoverride "scrollbox_content" - { - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 3 - - datamodel = "[AttachToArmyWindow.AccessLocalUnits]" - - item = { - button_standard_list = { - name = "local_unit_item" - layoutpolicy_horizontal = expanding - size = { 0 50 } - onclick = "[AttachToArmyWindow.SelectUnit( UnitItem.Self )]" - down = "[AttachToArmyWindow.IsSelectedUnit( UnitItem.Self )]" - - hbox = { - margin = { 10 0 } - spacing = 10 - - coa_realm_tiny = { - datacontext = "[UnitItem.GetOwner]" - } - - hbox_soldiers_and_quality_small = { - datacontext = "[UnitItem.GetArmy.GetComposition]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[UnitItem.GetArmy.GetNameNoTooltip]" - default_format = "#clickable" - align = nobaseline - autoresize = no - } - - expand = {} - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 10 0 } - margin_bottom = 10 - - spacer = { - visible = "[Not(AttachToArmyWindow.HasSelectedUnit)]" - size = { 10 10 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - visible = "[AttachToArmyWindow.HasSelectedUnit]" - text = "ATTACH_TO_UNIT_WINDOW_TEXT" - align = center - } - - hbox = { - spacing = 3 - - button_standard = { - name = "close_button" - text = "CANCEL" - align = center|nobaseline - onclick = "[AttachToArmyWindow.Hide]" - } - - button_primary = { - name = "select_button" - text = "ATTACH" - align = center|nobaseline - enabled = "[AttachToArmyWindow.HasSelectedUnit]" - onclick = "[AttachToArmyWindow.AttachToSelected]" - onclick = "[AttachToArmyWindow.Hide]" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_attach" - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### -template reorg_regiment_tooltips { - hbox = { - datacontext = "[RegimentReorgEntry.GetKnight]" - visible = "[Character.IsValid]" - - block "knight_placement" { - using = tooltip_ws - } - - tooltipwidget = { - container_character_tooltip = { - blockoverride "interaction_info" { - text = "REORG_INSTRUCTION" - } - } - } - } - - hbox = { - datacontext = "[RegimentReorgEntry.GetRegiment.GetRegiment]" - visible = "[RegimentReorgEntry.IsMaA]" - - block "maa_placement" { - using = tooltip_ws - } - - tooltipwidget = { - using = regiment_container_tooltip - - blockoverride "extra_info" { - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "REORG_INSTRUCTION" - margin = { 10 0 } - } - } - } - } - - hbox = { - datacontext = "[RegimentReorgEntry.GetRegiment.GetRegiment]" - visible = "[And( Not( Or( RegimentReorgEntry.IsMaA, RegimentReorgEntry.GetKnight.IsValid ) ), RegimentReorgEntry.GetRegiment.GetFromVassal.IsValid )]" - - block "vassal_placement" { - using = tooltip_ws - } - tooltip = TT_REORG_VASSAL_LEVIES - } - - hbox = { - datacontext = "[RegimentReorgEntry.GetRegiment.GetRegiment]" - visible = "[And( Not( Or( RegimentReorgEntry.IsMaA, RegimentReorgEntry.GetKnight.IsValid ) ), Not( RegimentReorgEntry.GetRegiment.GetFromVassal.IsValid ) )]" - - block "levies_placement" { - using = tooltip_ws - } - tooltip = TT_REORG_LEVIES - } -} - -types ArmyWindow -{ - type multi_unit_button = button { - gfxtype = updownframedbuttongfx - framesize = { 50 50 } - onclick = "[SelectedUnitItem.OnClick]" - onrightclick = "[SelectedUnitItem.OnRightClick]" - button_ignore = none - down = "[SelectedUnitItem.IsShown]" - effectname = "NoHighlight" - - upframe = 1 - overframe = 2 - downframe = 3 - } - - type army_quality_icon = icon { - name = "quality_icon" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[ArmyComposition.CalcQualityLevel]" - tooltip = "[ArmyComposition.GetArmyQualityName|T]" - } - - type unraised_army_quality_icon = icon { - name = "quality_icon" - texture = "gfx/interface/icons/army_quality_icon.dds" - framesize = { 32 32 } - size = { 22 22 } - frame = "[ArmyComposition.CalcUnraisedQualityLevel]" - tooltip = "[ArmyComposition.GetUnraisedArmyQualityName|T]" - } - - type soldiers_and_quality_big = hbox { - margin = { 0 2 } - margin_right = 20 - spacing = 5 - - vbox = { - spacing = 2 - layoutpolicy_vertical = expanding - - expand = {} - - hbox = { - name = "soldiers" - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 40 40 } - } - - text_single = { - name = "strength" - text = "[ArmyComposition.GetSoldierCountString]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline - } - - spacer = { - size = { 5 5 } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 7 - expand = {} - - text_single = { - name = "quality_label" - text = "[ArmyComposition.GetArmyQualityName]" - align = nobaseline - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - progressbar_standard = { - name = "soldiers_max" - size = { 240 10 } - visible = "[NotEqualTo_int32(ArmyComposition.GetCurrentNumberOfSoldiers, ArmyComposition.GetMaxNumberOfSoldiers)]" - min = 0 - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfSoldiers)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfSoldiers)]" - } - - expand = {} - } - - spacer = { - visible = "[NotEqualTo_int32(ArmyComposition.GetCurrentNumberOfSoldiers, ArmyComposition.GetMaxNumberOfSoldiers)]" - } - } - } - - type hbox_soldiers_and_quality_small_core = hbox - { - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - spacing = 3 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 30 30 } - } - - vbox = { - text_single = { - name = "strength" - text = "[ArmyComposition.GetSoldierCountString]" - default_format = "#high" - align = left|nobaseline - using = Font_Size_Medium - } - - progressbar_standard = { - name = "soldiers_max" - visible = "[And( NotEqualTo_int32(ArmyComposition.GetCurrentNumberOfSoldiers, ArmyComposition.GetMaxNumberOfSoldiers), NotEqualTo_int32(ArmyComposition.GetMaxNumberOfSoldiers, '(int32)0' ) )]" - - block "spacing" - { - size = { 50 8 } - } - - min = 0 - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfSoldiers)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfSoldiers)]" - } - } - - army_quality_icon = { - tooltip_visible = no - } - } - - type hbox_soldiers_and_quality_small = hbox - { - margin = {5 5} - spacing = 5 - - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - - expand = { - layoutpolicy_horizontal = expanding - } - - hbox_soldiers_and_quality_small_core = { - tooltip = "" - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - - type hbox_reorg_regiment_entry_core = hbox - { - datacontext = "[RegimentReorgEntry.GetKnight]" - datacontext = "[RegimentReorgEntry.GetRegiment]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 5 0 } - spacing = 5 - - hbox = { - name = "icon" - - highlight_icon = { - name = "men_at_arms_icon" - datacontext = "[RegimentReorgEntry.GetMaAType]" - visible = "[RegimentReorgEntry.IsMaA]" - size = { 35 35 } - texture = "[MenAtArmsType.GetIcon]" - } - - highlight_icon = { - name = "levies_icon" - visible = "[Not( Or( RegimentReorgEntry.IsMaA, Character.IsValid ) )]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - highlight_icon = { - name = "knight_icon" - visible = "[And( Character.IsValid, Not( Character.GetAcclaimedAccolade.IsValid ) )]" - size = { 35 35 } - texture = "gfx/interface/icons/icon_knight_small.dds" - } - - highlight_icon = { - name = "acclaimed_knight_icon" - visible = "[And( Character.IsValid, Character.GetAcclaimedAccolade.IsValid )]" - size = { 45 45 } - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - } - } - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[RegimentReorgEntry.GetName]" - } - - coa_realm_tiny = { - name = "hired_coa" - visible = "[RegimentReorgEntry.ShowCoA]" - datacontext = "[RegimentReorgEntry.GetCoATitle.GetHolder]" - } - - - icon = { - name = "event_troops" - visible = "[ArmyRegiment.IsEventTroops]" - texture = "gfx/interface/icons/icon_special_troops.dds" - size = { 36 36 } - tooltip = "TT_REORG_EVENT_TROOPS" - } - - text_single = { - name = "prowess" - visible = "[Character.IsValid]" - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - default_format = "#high" - } - - vbox = { - name = "soldiers" - visible = "[Not( Character.IsValid )]" - tooltip = "TT_REORG_SOLDIERS" - - text_single = { - name = "soldiers" - text = "[RegimentReorgEntry.GetSoldierCount]" - default_format = "#high" - } - - progressbar_standard = { - name = "soldiers_max" - # visible = "[NotEqualTo_int32(RegimentReorgEntry.GetMaxSoldierCount, RegimentReorgEntry.GetSoldierCount)]" - size = { 50 10 } - min = 0 - max = "[IntToFloat(RegimentReorgEntry.GetMaxSoldierCount)]" - value = "[IntToFloat(RegimentReorgEntry.GetSoldierCount)]" - } - } - } -} diff --git a/N3OW/gui/window_army_automation_options.gui b/N3OW/gui/window_army_automation_options.gui deleted file mode 100644 index 5123d494..00000000 --- a/N3OW/gui/window_army_automation_options.gui +++ /dev/null @@ -1,274 +0,0 @@ -################################################################## -################# ARMY AUTOMATION OPTIONS VIEW ################### -################################################################## - - -window = { - name = "army_automation_options_view" - parentanchor = top|right - position = { -632 170 } - size = { 540 540 } - movable = no - layer = middle - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = -632 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -570 - } - - vbox = { - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "AOV_HEADING" - } - - blockoverride "button_close" - { - onclick = "[ArmyAutomationOptionsView.Close]" - } - } - - vbox = { - spacing = 16 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 4 4 } - - vbox_army_automation_options = { - blockoverride "option_label" - { - text = "AOV_OPT_COMMANDERS" - } - - - blockoverride "option_buttons" - { - button_army_automation_option = { - layoutpolicy_horizontal = expanding - text = "AOV_AUTOMATED" - tooltip = "AOV_OPT_COMMANDERS_AUTOMATED_TT" - - onclick = "[ArmyAutomationOptionsView.SetCommanderAutomated]" - down = "[ArmyAutomationOptionsView.IsCommanderAutomated]" - alwaystransparent = "[ArmyAutomationOptionsView.IsCommanderAutomated]" - } - - button_army_automation_option = { - text = "AOV_OPT_COMMANDERS_NOT_PLAYERS" - tooltip = "AOV_OPT_COMMANDERS_NOT_PLAYERS_TT" - - onclick = "[ArmyAutomationOptionsView.SetCommanderAutomatedNoPlayer]" - down = "[ArmyAutomationOptionsView.IsCommanderAutomatedNoPlayer]" - alwaystransparent = "[ArmyAutomationOptionsView.IsCommanderAutomatedNoPlayer]" - } - - button_army_automation_option = { - text = "AOV_MANUAL" - tooltip = "AOV_OPT_COMMANDERS_MANUAL_TT" - - onclick = "[ArmyAutomationOptionsView.SetCommanderManual]" - down = "[ArmyAutomationOptionsView.IsCommanderManual]" - alwaystransparent = "[ArmyAutomationOptionsView.IsCommanderManual]" - } - } - } - - vbox_army_automation_options = { - visible = "[GetPlayer.CanRaid]" - - blockoverride "option_label" - { - text = "AOV_OPT_RAIDING" - } - - - blockoverride "option_buttons" - { - button_army_automation_option = { - text = "AOV_AUTOMATED" - tooltip = "AOV_OPT_RAIDING_AUTOMATED_TT" - - onclick = "[ArmyAutomationOptionsView.SetSettingFlag('raiding')]" - down = "[ArmyAutomationOptionsView.GetSettingFlag('raiding')]" - alwaystransparent = "[ArmyAutomationOptionsView.GetSettingFlag('raiding')]" - } - - button_army_automation_option = { - text = "AOV_MANUAL" - tooltip = "AOV_OPT_RAIDING_MANUAL_TT" - - onclick = "[ArmyAutomationOptionsView.UnsetSettingFlag('raiding')]" - down = "[Not(ArmyAutomationOptionsView.GetSettingFlag('raiding'))]" - alwaystransparent = "[Not(ArmyAutomationOptionsView.GetSettingFlag('raiding'))]" - - } - } - } - - vbox_army_automation_options = { - visible = "[GetPlayer.HasBarterGoods]" - - blockoverride "option_label" - { - text = "AOV_OPT_BARTERING" - } - - blockoverride "option_buttons" - { - button_army_automation_option = { - text = "AOV_AUTOMATED" - tooltip = "AOV_OPT_BARTERING_AUTOMATED_TT" - - onclick = "[ArmyAutomationOptionsView.SetSettingFlag('bartering')]" - down = "[ArmyAutomationOptionsView.GetSettingFlag('bartering')]" - alwaystransparent = "[ArmyAutomationOptionsView.GetSettingFlag('bartering')]" - } - - button_army_automation_option = { - text = "AOV_MANUAL" - tooltip = "AOV_OPT_BARTERING_MANUAL_TT" - - onclick = "[ArmyAutomationOptionsView.UnsetSettingFlag('bartering')]" - down = "[Not(ArmyAutomationOptionsView.GetSettingFlag('bartering'))]" - alwaystransparent = "[Not(ArmyAutomationOptionsView.GetSettingFlag('bartering'))]" - - } - } - } - - vbox_army_automation_options = { - blockoverride "option_label" - { - text = "AOV_OPT_HIRING" - } - - - blockoverride "option_buttons" - { - button_army_automation_option = { - text = "AOV_OPT_HIRING_FULL" - tooltip = "AOV_OPT_HIRING_FULL_TT" - - onclick = "[ArmyAutomationOptionsView.SetHiringFullyAutomated]" - down = "[ArmyAutomationOptionsView.IsHiringFullyAutomated]" - alwaystransparent = "[ArmyAutomationOptionsView.IsHiringFullyAutomated]" - } - - button_army_automation_option = { - text = "AOV_OPT_HIRING_EXTEND" - tooltip = "AOV_OPT_HIRING_EXTEND_TT" - - onclick = "[ArmyAutomationOptionsView.SetExtendingAutomated]" - down = "[ArmyAutomationOptionsView.IsExtendingAutomated]" - alwaystransparent = "[ArmyAutomationOptionsView.IsExtendingAutomated]" - } - - button_army_automation_option = { - text = "AOV_MANUAL" - tooltip = "AOV_OPT_HIRING_MANUAL_TT" - - onclick = "[ArmyAutomationOptionsView.SetHiringManual]" - down = "[ArmyAutomationOptionsView.IsHiringManual]" - alwaystransparent = "[ArmyAutomationOptionsView.IsHiringManual]" - } - } - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - margin = { 16 16 } - - background = { - using = Background_Area - } - - text_multi = { - visible = "[Not(GetPlayer.HasCompanionAI)]" - max_width = 500 - autoresize = yes - text = "AOV_COMPANION_OFF_WARNING" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 16 - - button_standard = { - size = { 0 33 } - layoutpolicy_horizontal = expanding - text = "AOV_SET_TO_DEFAULT" - tooltip = "AOV_SET_TO_DEFAULT_TT" - using = tooltip_se - enabled = "[Not(ArmyAutomationOptionsView.AreDisplayedSettingsDefault)]" - onclick = "[ArmyAutomationOptionsView.ResetDisplayedToDefault]" - } - - button_primary = { - size = { 0 33 } - layoutpolicy_horizontal = expanding - text = "AOV_APPLY" - onclick = "[ArmyAutomationOptionsView.ApplySettings]" - onclick = "[ArmyAutomationOptionsView.Close]" - } - } - } - } - - - - - } -} - -types ArmyAutomationOptionsView -{ - type vbox_army_automation_options = vbox { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - - spacing = 8 - - - text_label_center = { - block "option_label" { - raw_text = "???" - } - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - - block "option_buttons" { - debug_square = { - size = { 0 40 } - layoutpolicy_horizontal = expanding - } - } - } - } - - type button_army_automation_option = button_standard { - size = { 0 33 } - layoutpolicy_horizontal = expanding - using = tooltip_se - } -} diff --git a/N3OW/gui/window_army_select_commander.gui b/N3OW/gui/window_army_select_commander.gui deleted file mode 100644 index 686aca9c..00000000 --- a/N3OW/gui/window_army_select_commander.gui +++ /dev/null @@ -1,329 +0,0 @@ -###################################################### -################# SELECT COMMANDER ################### -###################################################### - -window = { - name = "select_commander_window" - layer = middle - allow_outside = yes - - using = Window_Position_CharacterList_Small - using = Window_Size_CharacterList_Small - minimumsize = { 630 100 } - using = Window_Background - using = Window_Decoration - - using = Animation_ShowHide_Quick - - datacontext = "[CSelectCommanderWindow.GetArmy]" - datacontext = "[CSelectCommanderWindow.GetListItems]" - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SELECT_COMMANDER_HEADER" - } - - blockoverride "button_close" - { - onclick = "[CSelectCommanderWindow.Close]" - } - } - - vbox = { - margin = { 5 5 } - - text_single = { - layoutpolicy_horizontal = growing - text = "[CSelectCommanderWindow.GetArmy.GetName]" - using = Font_Size_Medium - align = center - } - } - - ### List of Commanders - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "skill_sort_buttons" {} - - blockoverride "container_implementation" { - fixedgridbox = { - name = "commanders_grid" - datamodel = "[CharacterSelectionList.GetList]" - datamodel_reuse_widgets = yes - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 515 - addrow = 110 - - item = { - widget = { - size = { 515 110 } - - widget_character_list_item = { - size = { 515 110 } - visible = "[Not(Character.IsPlayerInteractionShown('recruit_guest_interaction'))]" - - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[CSelectCommanderWindow.GetArmy]" - tooltip = "[CharacterListItem.GetText('tooltip')]" - - - blockoverride "portrait_button" - { - grayscale = "[Not(CharacterListItem.IsSelectable)]" - } - - blockoverride "widget" - { - background = { - visible = "[Not(CharacterListItem.IsSelectable)]" - using = Background_Area - margin_bottom = -4 - } - } - - blockoverride "button_content" - { - button_commander_list_item = {} - } - } - - widget = { - size = { 515 110 } - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[CSelectCommanderWindow.GetArmy]" - tooltip = "[CharacterListItem.GetText('tooltip')]" - - blockoverride "portrait_button" - { - grayscale = "[Not(CharacterListItem.IsSelectable)]" - } - - background = { - visible = "[Not(CharacterListItem.IsSelectable)]" - using = Background_Area - margin_bottom = -4 - } - - hbox = { - portrait_head_small = {} - - spacer = { - size = { 15 20 } - } - - button_commander_list_item = { - using = Background_Guest - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - } - } - } - } - - hbox = { - margin = { 0 10 } - - button_standard = { - size = { 300 50 } - - enabled = "[CSelectCommanderWindow.CanDetachCommander]" - onclick = "[CSelectCommanderWindow.DetachCommander]" - - text = "DETACH_COMMANDER" - default_format = "#high" - using = tooltip_es - } - } - } - } - - window_character_filter = { - position = { -600 20 } - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } -} - -types army_select_commander -{ - type button_commander_list_item = vbox { - margin = { 10 5 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - name = "commander_is_leader" - visible = "[Character.IsLocalPlayer]" - size = {30 30} - texture = "gfx/interface/icons/commander_is_leader.dds" - tooltip = "POTENTIAL_COMMANDER_IS_LEADER_TOOLTIP" - } - - text_single = { - text = "[Character.GetUINameNoTooltip]" - - using = Font_Size_Medium - fontsize_min = 14 - max_width = 400 - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_relation" - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - fontsize_min = 14 - } - - expand = {} - } - - hbox = { - name = "skill_and_traits" - layoutpolicy_horizontal = expanding - margin_right = 15 - spacing = 5 - - hbox = { - tooltip = "[Character.GetCommanderLeadingOwnAdvantageDesc( GetPlayer )]" - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_commander_advantage.dds" - size = { 40 40 } - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = "[CharacterListItem.GetMartialSkill.GetFrame]" - } - } - - text_single = { - name = "skill_value" - text = "[CharacterListItem.GetInt('')]" - default_format = "#high" - using = Font_Size_Big - } - } - - hbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - - item = { - icon_trait = { - blockoverride "icon_size" { - size = { 40 40 } - } - - blockoverride "glow_radius" - { - glow_radius = 4 - } - } - } - } - - expand = {} - - hbox = { - visible = "[Not(Character.IsPlayerInteractionShown('recruit_guest_interaction'))]" - - background = { - visible = "[Character.IsKnightInSpecificArmy( Army.Self )]" - using = Background_Area - margin = { 10 0 } - margin_bottom = 3 - } - - icon = { - size = { 25 25} - visible = "[Character.IsKnightInSpecificArmy( Army.Self )]" - texture = "gfx/interface/icons/portraits/knight.dds" - tooltip = "KNIGHT_IN_THIS_ARMY_TOOLTIP" - } - - hbox = { - visible = "[Character.IsKnightInArmy]" - tooltip = "[Character.GetProwessBreakdown]" - - icon = { - name = "prowess_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_prowess.dds" - } - - text_single = { - name = "prowess_value" - text = "[Character.GetProwess|0]" - default_format = "#high" - } - } - - # text_single = { - # name = "knight_in_an_army" - # visible = "[Not( Character.IsKnightInSpecificArmy( Army.Self ) )]" - # text = "KNIGHT_IN_ARMY_TOOLTIP" - # fontsize_min = 14 - # max_width = 200 - # } - } - - hbox = { - margin = { 0 3 } - spacing = 5 - - button_round = { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - - button_add_character = { - alwaystransparent = yes - parentanchor = center - } - } - } - } - } -} diff --git a/N3OW/gui/window_artifact_details.gui b/N3OW/gui/window_artifact_details.gui deleted file mode 100644 index 271ae736..00000000 --- a/N3OW/gui/window_artifact_details.gui +++ /dev/null @@ -1,709 +0,0 @@ -window = { - name = "artifact_details_view" - size = { 1000 60% } - layer = middle - - position = { 500 200 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - datacontext = "[GetVariableSystem]" - datacontext = "[ArtifactDetailsView.GetArtifact]" - - state = { - name = _show - using = Animation_FadeIn_Standard - on_start = "[GetVariableSystem.Set( 'details_right_side_tab', 'claims' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ARTIFACT_DETAILS_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ArtifactDetailsView.Close]" - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - # left vbox is the artifact details - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 -1 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - button_artifact = { - size = { 160 160 } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 13 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[Artifact.GetRarityAndType]" - max_width = 250 - using = Font_Size_Small - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = "[Artifact.GetNameNoTooltip]" - max_width = 250 - autoresize = yes - using = Font_Size_Medium - default_format = "#high" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - - expand = {} - - button_edit_text = { - visible = "[Artifact.GetOwner.IsLocalPlayer]" - onclick = "[Artifact.OpenRenameWindow]" - tooltip = "RENAME_ARTIFACT" - size = { 25 25 } - } - - button_kill_list = { - visible = "[DataModelHasItems( Artifact.GetKills )]" - onclick = "[ToggleGameViewData( 'artifact_kill_list', Artifact.GetID )]" - tooltip = "OPEN_ARTIFACT_KILL_LIST_TOOLTIP" - size = { 25 25 } - } - } - - expand = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox_artifact_durability = { - visible = "[Artifact.GetOwner.IsLocalPlayer]" - margin_top = 5 - } - - expand = {} - } - - hbox = { - visible = "[Artifact.GetOwner.IsLocalPlayer]" - layoutpolicy_horizontal = expanding - margin_top = 5 - - hbox = { - spacing = 5 - - button_round = { - name = "reforge" - size = { 30 30 } - - button_icon_highlight = { - parentanchor = center - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/reforge.dds" - } - - onclick = "[ToggleGameViewData( 'reforge_artifact', Artifact.GetID )]" - tooltip = "[Artifact.GetReforgeOrRepairTooltip( Artifact.GetOwner.Self )]" - enabled = "[Artifact.CanReforgeOrRepair( Artifact.GetOwner.Self )]" - - icon = { - name = "selection_glow" - visible = "[Artifact.IsDurabilityLow]" - parentanchor = center - size = { 45 45 } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - alpha = 0.5 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - alpha = 0.3 - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - tintcolor = { 1 0.8 0.6 1 } - } - } - } - - text_single = { - text = "REFORGE_OR_REPAIR" - max_width = 200 - align = nobaseline - } - - expand = {} - } - - expand = {} - } - - hbox = { - visible = "[Artifact.GetOwner.IsPlayerInteractionWithTargetArtifactValid( 'destroy_artifact_interaction', Artifact.Self )]" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 5 - - button_round = { - name = "destroy" - size = { 30 30 } - - button_icon_highlight = { - parentanchor = center - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/destroy_artifact.dds" - } - - visible = "[Artifact.GetOwner.IsPlayerInteractionShown( 'destroy_artifact_interaction' )]" - enabled = "[Artifact.GetOwner.IsPlayerInteractionWithTargetArtifactValid( 'destroy_artifact_interaction', Artifact.Self )]" - onclick = "[Artifact.GetOwner.OpenPlayerInteractionWithTargetArtifact( 'destroy_artifact_interaction', Artifact.Self )]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionWithTargetArtifactTooltip( 'destroy_artifact_interaction', Artifact.Self )]" - } - - text_single = { - text = "INVENTORY_DESTROY_ARTIFACT" - max_width = 200 - align = nobaseline - } - - expand = {} - } - - expand = {} - } - - vbox = { - spacing = 5 - visible = "[And( Not( Artifact.GetOwner.IsLocalPlayer ), Artifact.HasClaim( GetPlayer ) )]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "DETAILS_TAB_CLAIM_INTERACTIONS" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - expand = {} - - button_round = { - name = "steal" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/scheme.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('start_stealing_back_artifact')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('start_stealing_back_artifact')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip( 'start_stealing_back_artifact' )]" - } - - button_round = { - name = "declare_war" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/declare_war.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('declare_war_interaction')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('declare_war_interaction')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('declare_war_interaction')]" - } - - button_round = { - name = "duel" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/duel.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('challenge_for_artifact_interaction')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('challenge_for_artifact_interaction')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('challenge_for_artifact_interaction')]" - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - text_multi = { - text = "[Artifact.GetModifierEffects]" - margin_bottom = 10 - margin_top = 5 - max_width = 410 - autoresize = yes - } - - expand = {} - } - - spacer = { - size = { 0 5 } - } - - hbox = { - name = "fallback" - visible = "[Not( Artifact.CanBenefitPlayer )]" - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - text_multi = { - text = "ARTIFACT_FALLBACK_EFFECT" - max_width = 390 - autoresize = yes - - margin_bottom = 5 - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - name = "artifact_description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" - { - background = { - using = Background_Area - } - } - - scrollwidget = { - text_multi = { - name = "artifact_description" - text = "[Artifact.GetDesc]" - max_width = 410 - autoresize = yes - default_format = "#flavor" - - margin_top = 15 - margin_left = 20 - } - } - - blockoverride "scrollbox_background_fade" { - icon = { - alpha = 0 - } - } - } - } - } - - expand = {} - } - - # right vbox is claims and history tabs - vbox = { - layoutpolicy_vertical = expanding - minimumsize = { 500 -1 } - - hbox = { - name = "right_side_tabs" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - text = "DETAILS_TAB_CLAIMS" - onclick = "[VariableSystem.Set( 'details_right_side_tab', 'claims' )]" - down = "[VariableSystem.HasValue( 'details_right_side_tab', 'claims' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - text = "DETAILS_TAB_HISTORY" - onclick = "[VariableSystem.Set( 'details_right_side_tab', 'history' )]" - down = "[VariableSystem.HasValue( 'details_right_side_tab', 'history' )]" - } - } - - scrollbox = { - name = "history" - visible = "[VariableSystem.HasValue( 'details_right_side_tab', 'history' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "history_list" - datamodel = "[Artifact.GetHistory.GetEntries]" - addcolumn = 500 - addrow = 142 - - item = { - widget = { - minimumsize = { 470 138 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_With_Header - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[HistoryEntry.GetTitle]" - margin = { 10 6 } - align = nobaseline - max_width = 400 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - portrait_head_small = { - name = "actor" - datacontext = "[HistoryEntry.GetActor]" - visible = "[HistoryEntry.HasActor]" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - text_multi = { - text = "[HistoryEntry.GetDescription]" - maximumsize = { 270 90 } - min_width = 270 - autoresize = yes - fontsize_min = 12 - } - } - - expand = {} - - vbox = { - name = "actor_house" - datacontext = "[HistoryEntry.GetActor.GetHouse]" - visible = "[And( Or( Not( HistoryEntry.HasRecipient ), ObjectsEqual( HistoryEntry.GetRecipient, HistoryEntry.GetActor ) ), HistoryEntry.GetActor.IsValid )]" - margin = { 5 0 } - - coa_house_small = {} - - text_multi = { - text = "[DynastyHouse.GetBaseNameNoTooltip]" - max_width = 80 - autoresize = yes - } - } - - portrait_head_small = { - name = "recipient" - datacontext = "[HistoryEntry.GetRecipient]" - visible = "[And( HistoryEntry.HasRecipient, Not( ObjectsEqual( HistoryEntry.GetRecipient, HistoryEntry.GetActor ) ) )]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - } - } - } - } - } - - scrollbox = { - name = "artifact_claims" - visible = "[VariableSystem.HasValue( 'details_right_side_tab', 'claims' )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty(ArtifactDetailsView.GetClaimants)]" - text = "DETAILS_TAB_NO_CLAIMANTS" - } - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "claims_list" - datamodel = "[ArtifactDetailsView.GetClaimants]" - addcolumn = 500 - addrow = 142 - - item = { - widget = { - size = { 470 138 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_With_Header - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - margin_right = 22 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_bottom = 8 - - text_single = { - name = "character_name" - visible = "[ClaimantEntry.IsCharacter]" - text = "[ClaimantEntry.GetCharacter.GetUINameNoTooltip|U]" - max_width = 400 - } - - text_single = { - name = "house_name" - visible = "[ClaimantEntry.IsHouse]" - text = "[house|E] [ClaimantEntry.GetHouse.GetNameNoTooltip]" - max_width = 400 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_bottom = 9 - - portrait_head_small = { - name = "character" - visible = "[ClaimantEntry.IsCharacter]" - datacontext = "[ClaimantEntry.GetCharacter]" - } - - coa_house_medium = { - name = "house" - visible = "[ClaimantEntry.IsHouse]" - datacontext = "[ClaimantEntry.GetHouse]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[ClaimantEntry.IsHouse]" - margin_left = 10 - - text_single = { - text = "CLAIMANT_ENTRY_HOUSE_HEAD" - align = nobaseline - multiline = yes - max_width = 240 - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - icon = { - name = "flag_icon" - visible = "[And( ClaimantEntry.IsCharacter, Not( ClaimantEntry.CanDeclareWarForClaim ) )]" - texture = "gfx/interface/icons/icon_retreat.dds" - size = { 30 30 } - tooltip = "CLAIMANT_NOT_A_THREAT" - using = tooltip_ne - } - - text_single = { - datacontext = "[ClaimantEntry.GetCharacter]" - - visible = "[And( ClaimantEntry.IsCharacter, Not( ClaimantEntry.CanDeclareWarForClaim ) )]" - layoutpolicy_horizontal = expanding - text = "CHARACTER_CANNOT_DECLARE_WAR_SHORT" - align = nobaseline - } - } - } - } - } - } - - widget = { - name = "army_composition" - datacontext = "[ClaimantEntry.GetArmyComposition]" - visible = "[GreaterThan_int32(ArmyComposition.GetCurrentNumberOfSoldiers, '(int32)0' )]" - size = { 120 45 } - parentanchor = right|bottom - position = { -10 -10 } - - background = { - using = Background_Area_Dark - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - - margin = { 0 6 } - - hbox = { - spacing = 6 - - icon = { - name = "icon_soldier" - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - text = "[ArmyComposition.GetSoldierCountString]" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - army_quality_icon = {} - } - - progressbar_standard = { - name = "soldiers_max" - size = { 40 8 } - - min = 0 - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfSoldiers)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfSoldiers)]" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_artifact_helper.gui b/N3OW/gui/window_artifact_helper.gui deleted file mode 100644 index 6ac8eb3b..00000000 --- a/N3OW/gui/window_artifact_helper.gui +++ /dev/null @@ -1,246 +0,0 @@ -types ArtifactHelperTypes -{ -type artifact_test_helper_window = window { - size = { 800 800 } - filter_mouse = all - layer = middle - using = Window_Movable - using = Window_Background_Sidebar - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - raw_text = "Selected type: " - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[ArtifactHelperWindow.HasSelectedType]" - raw_text = "[ArtifactHelperWindow.GetSelectedType.GetKey]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - raw_text = "Selected visual type: " - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[ArtifactHelperWindow.HasSelectedVisualType]" - raw_text = "[ArtifactHelperWindow.GetSelectedVisualType.GetKey]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - raw_text = "Selected asset: " - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[ArtifactHelperWindow.HasSelectedAsset]" - raw_text = "[ArtifactHelperWindow.GetSelectedAsset]" - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - - icon = { - visible = "[Not( ArtifactHelperWindow.CanCreate )]" - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - raw_tooltip = "Cant create artifact - sele from all 3 columns: type, visual, asset" - } - - expand = {} - } - - vbox = { - button_standard = { - raw_text = "Create" - onclick = "[ArtifactHelperWindow.CreateArtifact]" - enabled = "[ArtifactHelperWindow.CanCreate]" - raw_tooltip = "Create new artifact with selected properties. All options must be selected" - } - - button_standard = { - raw_text = "Force Update" - onclick = "[ArtifactHelperWindow.UpdateEntities]" - raw_tooltip = "Refresh list of entities" - } - - editbox_search_field = { - layoutpolicy_horizontal = expanding - minimumsize = { 200 25 } - margin_left = 15 - margin_right = 20 - margin_bottom = 6 - - blockoverride "editbox_properties" - { - onreturnpressed = "[ArtifactHelperWindow.OnFilterUpdate]" - ontextedited = "[ArtifactHelperWindow.OnFilterUpdate]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "All" - raw_tooltip = "Show all entities in the game" - onclick = "[ArtifactHelperWindow.SetEntitiesCategory( 'all' )]" - down = "[ArtifactHelperWindow.IsEntitiesCategory( 'all' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Artifacts" - raw_tooltip = "Show all entities in the artifacts folder" - onclick = "[ArtifactHelperWindow.SetEntitiesCategory( 'artifacts' )]" - down = "[ArtifactHelperWindow.IsEntitiesCategory( 'artifacts' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Visual Type" - raw_tooltip = "Show entities available for currently selected visual type" - onclick = "[ArtifactHelperWindow.SetEntitiesCategory( 'visual_type' )]" - down = "[ArtifactHelperWindow.IsEntitiesCategory( 'visual_type' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 220 -1 } - - text_single = { - raw_text = "Type and slot" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[ArtifactHelperWindow.GetArtifactTypes]" - - item = { - button_standard = { - size = { 200 25 } - text = "[ArtifactType.GetKey]" - align = left - tooltip = "[ArtifactType.GetKey]" - onclick = "[ArtifactHelperWindow.OnTypeSelect( ArtifactType.Self )]" - down = "[ArtifactHelperWindow.IsTypeSelected( ArtifactType.Self )]" - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 220 -1 } - - text_single = { - raw_text = "Visual type" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[ArtifactHelperWindow.GetArtifactVisualTypes]" - - item = { - button_standard = { - size = { 200 25 } - text = "[ArtifactVisualType.GetKey]" - align = left - tooltip = "[ArtifactVisualType.GetKey]" - onclick = "[ArtifactHelperWindow.OnVisualTypeSelect( ArtifactVisualType.Self )]" - down = "[ArtifactHelperWindow.IsVisualTypeSelected( ArtifactVisualType.Self )]" - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - raw_text = "Entity" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - addcolumn = 350 - addrow = 25 - datamodel_reuse_widgets = yes - datamodel = "[ArtifactHelperWindow.GetEntitiesList]" - - item = { - button_standard = { - size = { 350 25 } - text = "[CString.GetString]" - align = left - tooltip = "[CString.GetString]" - onclick = "[ArtifactHelperWindow.OnAssetSelect( CString.Self )]" - down = "[ArtifactHelperWindow.IsAssetSelected( CString.Self )]" - } - } - } - } - } - } - } - } -} -} diff --git a/N3OW/gui/window_artifact_reforge.gui b/N3OW/gui/window_artifact_reforge.gui deleted file mode 100644 index 02061257..00000000 --- a/N3OW/gui/window_artifact_reforge.gui +++ /dev/null @@ -1,221 +0,0 @@ -window = { - name = "reforge_artifact_window" - position = { 0 20 } - parentanchor = center - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - margin_bottom = 28 - set_parent_size_to_minimum = yes - - using = Window_Margins - using = Window_Background - - header_pattern = { - layoutpolicy_horizontal = expanding - minimumsize = { 100% 0 } - - blockoverride "header_text" - { - text = "REFORGE_ARTIFACT_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ReforgeArtifactWindow.Close]" - } - } - - vbox_reforge_effects_me = { - blockoverride "EffectText" { - text = "[ReforgeArtifactWindow.GetCharacterEffectsDesc]" - } - } - - expand = { minimumsize = { 0 10 } } - - vbox_reforge_effects_artifact = { - blockoverride "EffectText" { - text = "[ReforgeArtifactWindow.GetArtifactEffectsDesc]" - } - } - - expand = { minimumsize = { 0 10 } } - - button_checkbox_label = { - datacontext = "[ReforgeArtifactWindow.GetArtifact]" - - visible = "[Artifact.CanReforge( ReforgeArtifactWindow.GetCharacter.Self )]" - onclick = "[ReforgeArtifactWindow.ToggleCompleteReforge]" - - blockoverride "checkbox" - { - checked = "[ReforgeArtifactWindow.IsCompleteReforge]" - } - - blockoverride "text" - { - text = "[ReforgeArtifactWindow.GetCompleteReforgeDesc]" - } - } - - expand = { minimumsize = { 0 10 } } - - button_primary_big = { - datacontext = "[ReforgeArtifactWindow.GetArtifact]" - visible = "[ReforgeArtifactWindow.IsCompleteReforge]" - - text = "REFORGE" - - onclick = "[ReforgeArtifactWindow.Reforge]" - enabled = "[Artifact.CanReforge( ReforgeArtifactWindow.GetCharacter.Self )]" - tooltip = "[Artifact.GetReforgeTooltip( ReforgeArtifactWindow.GetCharacter.Self )]" - - clicksound = "event:/DLC/EP1/SFX/UI/artifact_reforge" - } - - button_primary_big = { - datacontext = "[ReforgeArtifactWindow.GetArtifact]" - visible = "[Not( ReforgeArtifactWindow.IsCompleteReforge )]" - - text = "REPAIR" - - onclick = "[ReforgeArtifactWindow.Reforge]" - enabled = "[Artifact.CanRepair( ReforgeArtifactWindow.GetCharacter.Self )]" - tooltip = "[Artifact.GetRepairTooltip( ReforgeArtifactWindow.GetCharacter.Self )]" - - clicksound = "event:/DLC/EP1/SFX/UI/artifact_reforge" - } - } -} - -types ReforgeArtifactWindow -{ - type vbox_reforge_effects_me = vbox { - name = "me" - datacontext = "[ReforgeArtifactWindow.GetCharacter]" - margin_bottom = 5 - minimumsize = { 500 -1 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_With_Header - } - - text_single = { - text = "EFFECTS_ON_ME" - layoutpolicy_horizontal = expanding - margin = { 15 4 } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 4 - margin_left = 8 - - portrait_head = { - blockoverride "opinion_box" {} - } - - text_multi = { - name = "effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 375 - margin = { 5 10 } - block "EffectText" {} - } - - expand = {} - } - } - - type vbox_reforge_effects_artifact = vbox { - name = "recipient" - datacontext = "[ReforgeArtifactWindow.GetArtifact]" - margin_bottom = 5 - minimumsize = { 500 -1 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_With_Header - } - - text_single = { - datacontext = "[ReforgeArtifactWindow.GetArtifact]" - text = "EFFECTS_ON_ARTIFACT" - layoutpolicy_horizontal = expanding - margin = { 15 4 } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 5 - spacing = 5 - - text_multi = { - name = "effects_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 375 - margin = { 5 10 } - block "EffectText" {} - } - - expand = {} - - vbox = { - name = "artifact_icon" - margin_right = 6 - margin_bottom = 4 - spacing = 4 - - widget = { - size = { 80 80 } - - button_artifact = {} - - tooltipwidget = { - artifact_tooltip = {} - } - } - - vbox = { - margin_left = 10 - - progressbar_standard = { - name = "durability" - size = { 80 10 } - - min = 0 - max = "[FixedPointToFloat( Artifact.GetMaxDurability )]" - value = "[FixedPointToFloat( Artifact.GetDurability )]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_barbershop.gui b/N3OW/gui/window_barbershop.gui deleted file mode 100644 index 68feaac7..00000000 --- a/N3OW/gui/window_barbershop.gui +++ /dev/null @@ -1,1829 +0,0 @@ -window = { - name = "window_barbershop" - datacontext = "[BarbershopWindow.GetScreenshotHandler]" - datacontext = "[BarbershopWindow.GetMainCharacter]" - datacontext = "[GetIllustration( 'character_view_bg' )]" - size = { 100% 100% } - movable = no - layer = middle - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - ### HIDE ALL UI FULLSCREEN ### - button_normal = { - visible = "[And( Not(BarbershopScreenshotHandler.IsScreenshotButtonVisible), Not(BarbershopScreenshotHandler.IsScreenshotBeingTaken) )]" - size = { 100% 100% } - shortcut = "close_window" - onclick = "[BarbershopScreenshotHandler.ToggleScreenshotButtons]" - } - - ### ALL CHARACTER PORTRAITS ### - widget = { - name = "portrait_scene" - size = { 1920 1080 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - - icon = { - parentanchor = center - size = { 100% 100% } - texture = "[BarbershopWindow.GetCurrentBackground]" - - modify_texture = { - name = "fade" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - translate_uv = { 1 0 } - alpha = 0 - } - } - - datamodel = "[BarbershopWindow.GetBarbershopCharacters]" - - item = { - barbershop_portrait_window = {} - } - - ### MOVABLE COAT OF ARMS ### - datacontext = "[BarbershopWindow.GetCoAHandler]" - - barbershop_coa_window = { - visible = "[And( BarbershopWindow.IsTabSceneVisible, BarbershopCoAHandler.IsTitleVisible )]" - position = { 520 80 } - - onmousehierarchyenter = "[BarbershopCoAHandler.SetHoverTitleWindow('(bool)yes')]" - onmousehierarchyleave = "[BarbershopCoAHandler.SetHoverTitleWindow('(bool)no')]" - - blockoverride "coa_window_frame" - { - visible = "[BarbershopCoAHandler.IsTitleWindowHovered]" - } - - hbox = { - barbershop_coa_realm = { - datacontext = "[BarbershopWindow.GetMainCharacter.GetPrimaryTitle]" - } - } - } - - barbershop_coa_window = { - visible = "[And( BarbershopWindow.IsTabSceneVisible, BarbershopCoAHandler.IsHouseVisible )]" - position = { 520 260 } - - onmousehierarchyenter = "[BarbershopCoAHandler.SetHoverHouseWindow('(bool)yes')]" - onmousehierarchyleave = "[BarbershopCoAHandler.SetHoverHouseWindow('(bool)no')]" - - blockoverride "coa_window_frame" - { - visible = "[BarbershopCoAHandler.IsHouseWindowHovered]" - } - - hbox = { - barbershop_coa_house = { - datacontext = "[BarbershopWindow.GetMainCharacter.GetHouse]" - } - } - } - - barbershop_coa_window = { - visible = "[And( BarbershopWindow.IsTabSceneVisible, BarbershopCoAHandler.IsDynastyVisible )]" - position = { 520 430 } - - onmousehierarchyenter = "[BarbershopCoAHandler.SetHoverDynastyWindow('(bool)yes')]" - onmousehierarchyleave = "[BarbershopCoAHandler.SetHoverDynastyWindow('(bool)no')]" - - blockoverride "coa_window_frame" - { - visible = "[BarbershopCoAHandler.IsDynastyWindowHovered]" - } - - hbox = { - barbershop_coa_dynasty = { - datacontext = "[BarbershopWindow.GetMainCharacter.GetDynasty]" - } - } - } - } - - widget = { - size = { 1920 1080 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - datamodel = "[BarbershopWindow.GetBarbershopCharacters]" - - item = { - barbershop_name_window = {} - } - } - - ### SCENE TAB - Screenshot notification ### - container = { - name = "screenshot_notification" - visible = "[BarbershopScreenshotHandler.IsScreenshotNotificationVisible]" - layer = confirmation - parentanchor = center - - state = { - name = _show - next = pending - using = Animation_FadeIn_Standard - } - - state = { - name = pending - next = hide - duration = 1 - on_finish = "[BarbershopScreenshotHandler.OnFinishedScreenshotNotification]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - text_label_center = { - name = "screenshot_text" - text = "SCREENSHOT_TAKEN" - position = { 0 -20 } - } - } - - ### SCENE TAB - Hide UI notification ### - container = { - name = "hide_ui_notification" - visible = "[BarbershopScreenshotHandler.IsShowHideUINotificationVisible]" - layer = confirmation - parentanchor = center - - state = { - name = _show - next = pending - using = Animation_FadeIn_Standard - } - - state = { - name = pending - next = hide - duration = 2 - on_finish = "[BarbershopScreenshotHandler.OnFinishedShowHideUINotification]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - text_label_center = { - name = "hide_ui_text" - text = "ROYAL_COURT_SCREENSHOT_HIDE_UI_NOTIFICATION" - position = { 0 -20 } - } - } - - ### SCENE TAB - Screenshot button ### - vbox = { - name = "screenshot_box" - datacontext = "[BarbershopWindow.GetScreenshotHandler]" - visible = "[And( BarbershopScreenshotHandler.IsScreenshotButtonVisible, BarbershopWindow.IsTabSceneVisible )]" - margin_bottom = 30 - - expand = {} - - hbox = { - min_width = 362 - spacing = 22 - - button_standard = { - name = "hide_ui_button" - visible = "[Not(BarbershopScreenshotHandler.IsScreenshotModeActive)]" - text = "ROYAL_COURT_SCREENSHOT_HIDE_UI" - onclick = "[BarbershopScreenshotHandler.ToggleScreenshotButtons]" - tooltip = "ROYAL_COURT_SCREENSHOT_HIDE_UI_TOOLTIP" - using = tooltip_ne - } - - button_standard = { - name = "screenshot_button" - visible = "[BarbershopScreenshotHandler.IsScreenshotButtonVisible]" - button_capture = { - size = { 36 36 } - position = { 2 -2 } - } - text = "BARBERSHOP_SCREENSHOT" - onclick = "[BarbershopScreenshotHandler.TakeScreenshot]" - onmousehierarchyenter = "[BarbershopScreenshotHandler.EnterScreenshotMode]" - onmousehierarchyleave = "[BarbershopScreenshotHandler.ExitScreenshotMode]" - tooltip = "BARBERSHOP_SCREENSHOT_TT" - using = tooltip_ne - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - #### UI ELEMENTS FLOW LAYOUT BEGINS HERE #### - hbox = { - datacontext = "[BarbershopWindow.GetScreenshotHandler]" - visible = "[BarbershopScreenshotHandler.AreTabsVisible]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - name = "left_panel" - layoutpolicy_vertical = expanding - - minimumsize = { 500 0 } - - margin_bottom = 45 - - using = Window_Background_Sidebar - using = Window_Margins_Sidebar - - #### TABS HEADER #### - hbox = { - name = "tabs" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[BarbershopWindow.SetTabAppearanceVisible]" - down = "[BarbershopWindow.IsTabAppearanceVisible]" - text = "BARBERSHOP_TAB_APPEARANCE" - tooltip = "BARBERSHOP_TAB_APPEARANCE_TT" - using = tooltip_ne - default_format = "#low" - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[BarbershopWindow.SetTabSceneVisible]" - down = "[BarbershopWindow.IsTabSceneVisible]" - text = "BARBERSHOP_TAB_SCENE" - tooltip = "BARBERSHOP_TAB_SCENE_TT" - using = tooltip_ne - default_format = "#low" - } - } - - ### APPEARANCE TAB - Accessories ### - vbox = { - name = "appearance_tab" - visible = "[BarbershopWindow.IsTabAppearanceVisible]" - - margin = { 20 10 } - spacing = 15 - - scrollbox = { - layoutpolicy_horizontal = expanding - size = { 480 644 } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[BarbershopWindow.GetAccessoryCategories]" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - spacing = 2 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "[BarbershopAccessoryCategory.GetName]" - } - - expand = {} - } - - hbox = { - spacing = 5 - - button_search = { - size = { 30 30 } - onclick = "[BarbershopWindow.ShowSearchFilter( PdxGuiWidget.GetIndexInDataModel )]" - - tooltip = "BARBERSHOP_FUZZY_SEARCH_TT" - using = tooltip_ne - } - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[BarbershopAccessoryCategory.GetItems]" - onselectionchanged = "[BarbershopAccessoryCategory.OnSelect]" - selectedindex = "[BarbershopAccessoryCategory.GetHoveredIndex]" - } - - blockoverride "dropdown_size" - { - size = { 322 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 314 450 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[BarbershopAccessoryItem.GetName]" - } - - blockoverride "dropdown_item_properties" - { - onmousehierarchyenter = "[BarbershopAccessoryItem.OnHover]" - text = "[BarbershopAccessoryItem.GetName]" - } - - blockoverride "dropdown_list_properties" - { - onmousehierarchyenter = "[BarbershopAccessoryCategory.SetShowTextSearch('(bool)no')]" - onmousehierarchyleave = "[BarbershopWindow.RestorePreviousPortraitModifierIndex]" - } - } - } - - editbox_standard = { - visible = "[BarbershopAccessoryCategory.IsTextSearchVisible]" - layoutpolicy_horizontal = expanding - - blockoverride "editbox_properties" - { - name = "input" - text = "[BarbershopAccessoryCategory.GetSearchFilter]" - focus_on_visible = yes - onreturnpressed = "[BarbershopAccessoryCategory.OnDone]" - ontextedited = "[BarbershopAccessoryCategory.OnEdit]" - } - } - - scrollbox = { - name = "filtered_list" - visible = "[BarbershopAccessoryCategory.HasItemsFiltered]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 100 204 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[BarbershopAccessoryCategory.GetItemsFiltered]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "fuzzy_item_button" - layoutpolicy_horizontal = expanding - size = { 0 24 } - - onclick = "[BarbershopAccessoryCategory.OnSelectFiltered( PdxGuiWidget.GetIndexInDataModel )]" - onmousehierarchyenter = "[BarbershopAccessoryItem.OnHover]" - onmousehierarchyleave = "[BarbershopWindow.RestorePreviousPortraitModifierIndex]" - - button_ignore = none - - text_single = { - text = "[BarbershopAccessoryItem.GetName]" - parentanchor = vcenter|left - position = { 8 0 } - align = nobaseline - default_format = "high" - } - } - } - } - } - } - } - - vbox = { - visible = "[BarbershopAccessoryCategory.CanEditColor]" - - background = { - using = Background_Area_Dark - } - - button_standard_clean = { - name = "color_button" - size = { 64 64 } - onclick = "[BarbershopAccessoryCategory.SelectColorPicker]" - down = "[BarbershopAccessoryCategory.IsActiveColorPicker]" - - icon = { - parentanchor = center - size = { 58 58 } - - texture = "gfx/interface/colors/white.dds" - tintcolor = "[BarbershopAccessoryCategory.GetCurrentColor]" - using = Mask_Rough_Edges - - tooltip = "BARBERSHOP_SELECT_COLOR_PICKER_TT" - using = tooltip_ne - } - } - } - expand = {} - } - } - } - } - } - } - - ### APPEARANCE TAB - Color picker ### - vbox = { - name = "color_picker" - visible = "[BarbershopWindow.IsTabAppearanceVisible]" - - hbox = { - text_label_center = { - text = "COA_DESIGNER_COLOR_PICKER_EXPAND_HEADER" - } - } - hbox = { - datacontext = "[BarbershopWindow.GetColorPickerHandler]" - visible = "[BarbershopColorPickerHandler.HasMultipleColorChannels]" - - dropdown_menu_standard = - { - blockoverride "dropdown_properties" - { - datamodel = "[BarbershopColorPickerHandler.GetColorChannels]" - onselectionchanged = "[BarbershopColorPickerHandler.SetColorChannel]" - selectedindex = "[BarbershopColorPickerHandler.GetHoveredIndex]" - } - - blockoverride "dropdown_size" - { - size = { 300 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 291 350 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[BarbershopItem.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[BarbershopItem.GetName]" - } - } - } - - barbershop_color_picker = { - visible = yes - color = "[BarbershopColorPickerHandler.GetColor]" - oncoloredited = "[BarbershopColorPickerHandler.PickColor]" - } - } - - ### SCENE TAB ### - vbox = { - name = "scene_tab" - visible = "[BarbershopWindow.IsTabSceneVisible]" - layoutpolicy_vertical = expanding - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - vbox = { - name = "backgrounds" - datacontext = "[BarbershopWindow.GetBackgroundCategory]" - margin = { 20 0 } - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "BARBERSHOP_BACKGROUND" - } - - expand = {} - } - - hbox = { - spacing = 5 - - button_search = { - size = { 30 30 } - onclick = "[BarbershopBackgroundCategory.ToggleTextSearch]" - - tooltip = "BARBERSHOP_FUZZY_SEARCH_TT" - using = tooltip_ne - } - - dropdown_menu_standard = - { - blockoverride "dropdown_properties" - { - datamodel = "[BarbershopBackgroundCategory.GetItems]" - onselectionchanged = "[BarbershopBackgroundCategory.OnSelect]" - selectedindex = "[BarbershopBackgroundCategory.GetHoveredIndex]" - } - - blockoverride "dropdown_size" - { - size = { 250 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 241 800 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[BarbershopBackgroundItem.GetName|U]" - } - - blockoverride "dropdown_item_properties" - { - onmousehierarchyenter = "[BarbershopBackgroundItem.OnHover]" - text = "[BarbershopBackgroundItem.GetName|U]" - } - - blockoverride "dropdown_list_properties" - { - onmousehierarchyenter = "[BarbershopBackgroundCategory.SetShowTextSearch('(bool)no')]" - onmousehierarchyleave = "[BarbershopBackgroundCategory.ResetBackground]" - } - } - } - - editbox_standard = { - visible = "[BarbershopBackgroundCategory.IsTextSearchVisible]" - layoutpolicy_horizontal = expanding - - blockoverride "editbox_properties" - { - name = "input" - text = "[BarbershopBackgroundCategory.GetSearchFilter]" - focus_on_visible = yes - onreturnpressed = "[BarbershopBackgroundCategory.OnDone]" - ontextedited = "[BarbershopBackgroundCategory.OnEdit]" - } - } - - scrollbox = { - name = "filtered_list" - visible = "[BarbershopBackgroundCategory.HasItemsFiltered]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 100 204 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[BarbershopBackgroundCategory.GetItemsFiltered]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "fuzzy_item_button" - layoutpolicy_horizontal = expanding - size = { 0 24 } - - onclick = "[BarbershopBackgroundCategory.OnSelectFiltered( PdxGuiWidget.GetIndexInDataModel )]" - onmousehierarchyenter = "[BarbershopBackgroundItem.OnHover]" - onmousehierarchyleave = "[BarbershopBackgroundCategory.ResetBackground]" - - button_ignore = none - text_single = { - text = "[BarbershopBackgroundItem.GetName]" - parentanchor = vcenter|left - position = { 8 0 } - align = nobaseline - default_format = "high" - } - } - } - } - } - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - hbox = { - vbox = { - name = "zoom" - datacontext = "[BarbershopWindow.GetBackgroundCategory]" - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "BARBERSHOP_ZOOM" - } - - expand = {} - } - - hbox = { - name = "zoom_buttons" - spacing = 20 - - barbershop_button_zoom_in = { - name = "zoom_in" - size = { 30 30 } - onclick = "[BarbershopWindow.ZoomIn]" - - using = tooltip_se - tooltip = "BARBERSHOP_ZOOM_IN_TT" - } - - barbershop_button_zoom_out = { - name = "zoom_out" - size = { 30 30 } - onclick = "[BarbershopWindow.ZoomOut]" - - using = tooltip_se - tooltip = "BARBERSHOP_ZOOM_OUT_TT" - } - } - } - } - expand = {} - } - - vbox = { - name = "photo_preset_options" - layoutpolicy_horizontal = expanding - margin = { 20 0 } - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "BARBERSHOP_PRESETS" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - onmousehierarchyenter = "[BarbershopWindow.ResetPortraitPositions('(bool)no')]" - - datamodel = "[BarbershopWindow.GetPhotoPresets]" - - item = { - hbox = { - button_radio_label = { - name = "photo_preset" - onclick = "[BarbershopWindow.SetPhotoPreset( BarbershopPhotoPreset.GetType )]" - - blockoverride "radio" - { - frame = "[BoolTo1And2( BarbershopWindow.IsPhotoPresetSelected( BarbershopPhotoPreset.GetType ) )]" - } - - blockoverride "text" - { - text = "[BarbershopPhotoPreset.GetName]" - max_width = 74 - } - - tooltip = "[BarbershopPhotoPreset.GetTooltip]" - } - - expand = {} - } - } - } - } - - vbox = { - name = "barbershop_characters" - layoutpolicy_horizontal = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - size = { 480 644 } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[BarbershopWindow.GetBarbershopCharacters]" - - item = { - barbershop_character_list_item = { - layoutpolicy_horizontal = expanding - - } - } - } - } - } - } - - vbox = { - name = "coat_of_arms" - datacontext = "[BarbershopWindow.GetCoAHandler]" - datacontext = "[BarbershopWindow.GetMainCharacter.GetPrimaryTitle]" - datacontext = "[BarbershopWindow.GetMainCharacter.GetHouse]" - datacontext = "[BarbershopWindow.GetMainCharacter.GetDynasty]" - visible = "[Or( BarbershopWindow.HasPrimaryTitle, Or( DynastyHouse.IsValid, Dynasty.IsValid) )]" - layoutpolicy_horizontal = expanding - - margin = { 20 0 } - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "COA_DESIGNER_HEADER" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - visible = "[BarbershopWindow.HasPrimaryTitle]" - margin_top = -17 - - coa_realm_small_crown = { - blockoverride "coa_hover_glow_visible" { - visible = no - } - blockoverride "coa_realm_mouse_entry" {} - blockoverride "coa_tooltip" {} - blockoverride "coa_button" { - onclick = "[BarbershopCoAHandler.ToggleTitle]" - } - } - - tooltip = "BARBERSHOP_COA_TOGGLE_TT" - using = tooltip_se - } - - vbox = { - visible = "[DynastyHouse.IsValid]" - - coa_house_small = { - blockoverride "coa_tooltip" {} - blockoverride "coa_button" { - onclick = "[BarbershopCoAHandler.ToggleHouse]" - } - } - - tooltip = "BARBERSHOP_COA_TOGGLE_TT" - using = tooltip_se - } - - vbox = { - visible = "[Dynasty.IsValid]" - - coa_dynasty_small = { - blockoverride "coa_tooltip" {} - blockoverride "coa_button" { - onclick = "[BarbershopCoAHandler.ToggleDynasty]" - } - } - - tooltip = "BARBERSHOP_COA_TOGGLE_TT" - using = tooltip_se - } - expand = {} - } - } - expand = {} - } - - expand = {} - - ### Apply and Reset buttons ### - vbox = { - name = "apply_box" - margin_top = 16 - - hbox = { - spacing = 22 - - button_standard = { - name = "reset_button_appearance" - visible = "[BarbershopWindow.IsTabAppearanceVisible]" - - text = "BARBERSHOP_RESET_APPEARANCE" - size = { 155 33 } - onclick = "[BarbershopWindow.ResetAppearanceTab]" - onmousehierarchyenter = "[BarbershopWindow.ResetPortraitPositions('(bool)no')]" - tooltip = "BARBERSHOP_RESET_CHANGES_APPEARANCE_TT" - using = tooltip_ne - } - - button_standard = { - name = "reset_button_scene" - visible = "[BarbershopWindow.IsTabSceneVisible]" - - text = "BARBERSHOP_RESET_SCENE" - size = { 155 33 } - onclick = "[BarbershopWindow.ResetSceneTab]" - onmousehierarchyenter = "[BarbershopWindow.ResetPortraitPositions('(bool)no')]" - tooltip = "BARBERSHOP_RESET_CHANGES_SCENE_TT" - using = tooltip_ne - } - - button_primary = { - name = "apply_button" - visible = "[BarbershopWindow.IsTabAppearanceVisible]" - - text = "BARBERSHOP_APPLY" - size = { 155 33 } - onclick = "[BarbershopWindow.ApplyAndClose]" - tooltip = "BARBERSHOP_APPLY_CHANGES_TT" - using = tooltip_ne - } - } - } - } - - expand = {} - - - } - expand = {} - } - - ### HEADER - widget = { - datacontext = "[BarbershopWindow.GetScreenshotHandler]" - visible = "[BarbershopScreenshotHandler.AreTabsVisible]" - parentanchor = top|hcenter - - size = { 350 52 } - position = { 0 10} - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - background = { - using = Background_Title - } - - text_single = { - parentanchor = hcenter - text = "BARBERSHOP_TITLE" - align = center - using = Font_Type_Flavor - using = Barbershop_Font_Size_Huge - } - } - - ### CLOSE BUTTON - widget = { - visible = "[BarbershopScreenshotHandler.AreTabsVisible]" - parentanchor = top|right - position = { -10 10} - size = { 50 50 } - - background = { - using = Background_Area_Dark - } - - button_close = { - parentanchor = center - - onclick = "[BarbershopWindow.CloseWithoutSave]" - } - } -} - -types BarbershopTypes { - type barbershop_color_picker = colorpicker - { - datacontext = "[BarbershopWindow.GetColorPickerHandler]" - size = { 400 270 } - - vbox = { - name = "colorpicker_window" - - # even though it's hidden it's required or will crash - widget = { - name = "preview_icon" - visible = no - size = { 298 50 } - - icon = { - name = "colorpicker_button" - visible = no - size = { 298 50 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorButton" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - } - - button_standard_clean = { - name = "palette_border" - parentanchor = center - alwaystransparent = yes - size = { 302 54 } - } - } - - hbox = { - spacing = 10 - - widget = { - name = "palette_icon" - size = { 256 256 } - - icon = { - name = "color_area" - size = { 256 256 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorArea" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - - icon = { - name = "color_area_picker" - position = { 0 0 } - widgetanchor = center|center - alwaystransparent = yes - size = { 15 15 } - texture = "gfx/interface/icons/color_picker.dds" - spriteType = corneredstretched - } - } - - button_standard_clean = { - name = "palette_border" - parentanchor = center - alwaystransparent = yes - size = { 260 260 } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - - vbox = { - spacing = 5 - - button_clear = { - name = "revert_to_default" - size = { 36 36 } - onclick = "[BarbershopColorPickerHandler.ResetColorToNatural]" - - tooltip = "BARBERSHOP_RESET_NATURAL_COLORS_TT" - using = tooltip_ne - } - - widget = { - name = "spectrum_icon" - size = { 32 216 } - - icon = { - name = "color_slider" - size = { 32 216 } - shaderfile = "gfx/FX/pdxgui_colorpicker.shader" - effectname = "PdxGuiColorSlider" - texture = "gfx/editor_gui/editor_transparent.dds" - alwaystransparent = no - spriteType = corneredtiled - - icon = { - name = "color_slider_picker" - position = { 0 40 } - alwaystransparent = yes - size = { 32 2 } - texture = "gfx/interface/icons/color_picker_line.dds" - spriteType = corneredtiled - spriteborder = { 1 1 } - } - } - - button_standard_clean = { - name = "spectrum_border" - parentanchor = center - alwaystransparent = yes - size = { 36 220 } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - } - } - } - } - - using = dummy_color_picker_buttons - } - type barbershop_button_rotate_left = button { - texture = "gfx/interface/buttons/button_standard.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - framesize = { 252 80 } - - button_icon = { - using = ButtonStandardIconProperties - size = { 20 20 } - - texture = "gfx/interface/icons/flat_icons/window_back.dds" - } - using = tooltip_ne - } - type barbershop_button_rotate_right = button { - texture = "gfx/interface/buttons/button_standard.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - framesize = { 252 80 } - - button_icon = { - using = ButtonStandardIconProperties - size = { 20 20 } - - mirror = horizontal - texture = "gfx/interface/icons/flat_icons/window_back.dds" - } - using = tooltip_ne - } - type barbershop_button_zoom_in = button_standard { - text = "" - using = tooltip_ne - - button_icon = { - using = ButtonStandardIconProperties - size = { 20 20 } - - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - type barbershop_button_zoom_out = button_standard { - text = "" - using = tooltip_ne - - button_icon = { - using = ButtonStandardIconProperties - size = { 20 20 } - - texture = "gfx/interface/icons/flat_icons/minus.dds" - } - } - type barbershop_visibility_toggle = checkbutton { - name = "button_checkbox" - texture = "gfx/interface/icons/flat_icons/observer.dds" - size = { 30 30 } - using = Master_Button_Modify_Texture - } - type barbershop_coa_realm = hbox { - vbox = { - coa_realm_huge_crown = { - blockoverride "coa_button" { - alwaystransparent = yes - } - } - } - vbox = { - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - button_close = { - name = "button_close_coa_realm" - visible = "[BarbershopCoAHandler.IsTitleWindowHovered]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - onclick = "[BarbershopCoAHandler.ToggleTitle]" - } - } - expand = {} - text_label_left = { - visible = "[BarbershopCoAHandler.IsTitleTextVisible]" - using = Barbershop_Font_Size_Huge - text = "[Character.GetPrimaryTitle.GetNameNoTooltip|U]" - } - hbox = { - layoutpolicy_horizontal = expanding - button_checkbox_label = { - name = "checkbox_coa_show_text" - visible = "[BarbershopCoAHandler.IsTitleWindowHovered]" - onclick = "[BarbershopCoAHandler.ToggleTitleText]" - - blockoverride "checkbox" - { - checked = "[BarbershopCoAHandler.IsTitleTextVisible]" - } - blockoverride "text" - { - text = "[Character.GetPrimaryTitle.GetNameNoTooltip|U]" - } - background = { - using = Background_Area_Dark - } - tooltip = "BARBERSHOP_COA_TOGGLE_TEXT_TT" - } - expand = {} - } - expand = {} - } - } - type barbershop_coa_house = hbox { - vbox = { - coa_house_huge = { - blockoverride "coa_button" { - alwaystransparent = yes - } - } - } - vbox = { - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - button_close = { - name = "button_close_coa_realm" - visible = "[BarbershopCoAHandler.IsHouseWindowHovered]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - onclick = "[BarbershopCoAHandler.ToggleHouse]" - } - } - expand = {} - text_label_left = { - visible = "[BarbershopCoAHandler.IsHouseTextVisible]" - using = Barbershop_Font_Size_Huge - text = "HOUSE_VIEW_NAME_WITH_HOUSE" - } - hbox = { - layoutpolicy_horizontal = expanding - button_checkbox_label = { - name = "checkbox_coa_show_text" - visible = "[BarbershopCoAHandler.IsHouseWindowHovered]" - onclick = "[BarbershopCoAHandler.ToggleHouseText]" - - blockoverride "checkbox" - { - checked = "[BarbershopCoAHandler.IsHouseTextVisible]" - } - blockoverride "text" - { - text = "HOUSE_VIEW_NAME_WITH_HOUSE" - } - background = { - using = Background_Area_Dark - } - tooltip = "BARBERSHOP_COA_TOGGLE_TEXT_TT" - } - expand = {} - } - expand = {} - } - } - type barbershop_coa_dynasty = hbox { - vbox = { - coa_dynasty_huge = { - blockoverride "coa_button" { - alwaystransparent = yes - } - } - } - vbox = { - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - button_close = { - name = "button_close_coa_realm" - visible = "[BarbershopCoAHandler.IsDynastyWindowHovered]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - onclick = "[BarbershopCoAHandler.ToggleDynasty]" - } - } - expand = {} - text_label_left = { - visible = "[BarbershopCoAHandler.IsDynastyTextVisible]" - using = Barbershop_Font_Size_Huge - text = "HOUSE_VIEW_PART_OF_DYNASTY" - } - hbox = { - layoutpolicy_horizontal = expanding - button_checkbox_label = { - name = "checkbox_coa_show_text" - visible = "[BarbershopCoAHandler.IsDynastyWindowHovered]" - onclick = "[BarbershopCoAHandler.ToggleDynastyText]" - - blockoverride "checkbox" - { - checked = "[BarbershopCoAHandler.IsDynastyTextVisible]" - } - blockoverride "text" - { - text = "HOUSE_VIEW_PART_OF_DYNASTY" - } - background = { - using = Background_Area_Dark - } - tooltip = "BARBERSHOP_COA_TOGGLE_TEXT_TT" - } - expand = {} - } - expand = {} - } - } - type barbershop_coa_window = window { - name = "coa_window" - movable = yes - layer = middle - allow_outside = yes - size = { 500 200 } - - background = { - block "coa_window_frame" { - visible = no - } - using = Background_Area_ExtraDark - alpha = 0.8 - } - - background = { - block "coa_window_frame" { - visible = no - } - using = Background_Frame - color = { 0.9 0.9 0.9 0.25 } - margin = { -4 -4 } - } - - state = { - name = _show - on_start = "[PdxGuiWidget.StackTop]" - } - } - type barbershop_name_window = window { - name = "character_name_window" - datacontext = "[BarbershopCharacter.GetCharacter]" - datacontext = "[BarbershopCharacter.GetPortrait]" - visible = "[And( BarbershopCharacter.IsCharacterVisible, And( BarbershopCharacter.IsNameVisible, BarbershopWindow.IsTabSceneVisible ))]" - position = "[BarbershopPortrait.GetPortraitPosition]" - size = { 500 50 } - movable = yes - layer = middle - allow_outside = yes - - text_label_center = { - layoutpolicy_horizontal = expanding - using = Font_Size_Big - text = "[Character.GetUINameNotMeNoTooltip]" - } - } - type barbershop_portrait = portrait_button { - using = portrait_base - size = { 1920 1400 } - alwaystransparent = yes - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - type vbox_character_debug_tooltip = vbox - { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "DNA_MODIFIERS_LINK" - - fonttintcolor = "[TooltipInfo.GetTintColor]" - - tooltipwidget = { - container = { - name = "DnaModifierTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - button_copy = { - size = { 52 52 } - - onclick = "[Character.CopyDnaAccessoryToClipboard]" - raw_tooltip = "Copy DNA Modifiers" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "DNA_MODIFIERS" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "description_text" - { - max_width = 600 - text = "[Character.GetDnaAccessoryTooltip]" - } - } - } - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "PORTRAIT_ANIMATION_LINK" - - fonttintcolor = "[TooltipInfo.GetTintColor]" - - tooltipwidget = { - container = { - name = "PortraitAnimationTooltip" - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - button_copy = { - size = { 52 52 } - - onclick = "[Character.CopyPortraitAnimationToClipboard]" - raw_tooltip = "Copy Animation Data" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "PORTRAIT_ANIMATION_TITLE" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "description_text" - { - max_width = 600 - text = "[Character.GetPortraitAnimationTooltip( PdxGuiWidget.Self )]" - } - } - } - } - expand = {} - } - expand = {} - } - - type barbershop_character_tooltip = object_tooltip_pop_out - { - blockoverride "title_text" - { - margin = { 0 8 } - text = "[Character.GetShortUINameNotMeNoTooltip]" - default_format = "#T" - } - - blockoverride "concept_link" {} - - blockoverride "main_description" - { - vbox_character_debug_tooltip = {} - } - } - - type barbershop_portrait_window = window { - name = "portrait_window" - datacontext = "[BarbershopCharacter.GetPortrait]" - datacontext = "[BarbershopCharacter.GetCameraSettings]" - visible = "[BarbershopCharacter.IsCharacterVisible]" - - size = { 8% 70% } - movable = yes - layer = middle - allow_outside = yes - - onmousehierarchyenter = "[BarbershopPortrait.SetBeingHovered('(bool)yes')]" - onmousehierarchyleave = "[BarbershopPortrait.SetBeingHovered('(bool)no')]" - - state = { - name = _show - next = reset_position - } - state = { - name = reset_position - position = "[BarbershopPortrait.GetPortraitPosition]" - trigger_when = "[BarbershopPortrait.ShouldResetPosition]" - next = reset_stack - } - state = { - name = reset_stack - on_start = "[BarbershopPortrait.StackWindowOnTop( PdxGuiWidget.AccessSelf )]" - trigger_when = "[BarbershopPortrait.ShouldStackTop]" - } - - position = "[BarbershopPortrait.GetPortraitPosition]" - - icon = { - name = "portrait_glow" - visible = "[And( Not( BarbershopPortrait.IsBaby ), BarbershopPortrait.IsBeingHovered )]" - parentanchor = bottom|hcenter - position = { 0 -40 } - size = "[BarbershopCharacter.GetGlowSize]" - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - icon = { - name = "portrait_glow_baby" - visible = "[And( BarbershopPortrait.IsBaby, BarbershopPortrait.IsBeingHovered )]" - parentanchor = bottom|hcenter - position = { 0 80 } - size = "[BarbershopCharacter.GetGlowSize]" - color = { 0.9 0.8 0.6 0.6 } - - using = Background_Portrait_Glow - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - delay = 0.05 - } - } - - icon = { - name = "portrait_shadow_adult" - visible = "[And( BarbershopWindow.HasPortraitShadow, Not(BarbershopPortrait.IsBaby) )]" - parentanchor = center - position = { 0 341 } - scale = "[BarbershopWindow.GetPortraitShadowScale]" - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - } - - icon = { - name = "portrait_shadow_toddler" - visible = "[And( BarbershopWindow.HasPortraitShadow, BarbershopPortrait.IsBaby )]" - parentanchor = center - position = { -10 357 } - scale = 0.35 - texture = "gfx/interface/frontend/portrait_main_menu_shadow.dds" - } - - barbershop_portrait = { - name = "portrait" - parentanchor = center - position = { 0 0 } - scale = "[ScaleToFitElementInside('(int32)1920', '(int32)1080')]" - portrait_texture = "[BarbershopCharacter.GetTexture(PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_solid.dds" - } - - vbox = { - margin_top = 600 - - hbox = { - name = "portrait_control_panel" - visible = "[BarbershopPortrait.IsBeingHovered]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - maximumsize = { 120 30 } - - barbershop_button_rotate_left = { - name = "rotate_left" - onclick = "[BarbershopCameraSettings.DecrementRotation]" - size = { 30 30 } - - tooltip = "BARBERSHOP_ROTATE_LEFT_TT" - } - - expand = {} - - barbershop_button_rotate_right = { - name = "rotate_right" - onclick = "[BarbershopCameraSettings.IncrementRotation]" - size = { 30 30 } - - tooltip = "BARBERSHOP_ROTATE_RIGHT_TT" - } - } - } - - vbox = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - - tooltipwidget = { - barbershop_character_tooltip = { - datacontext = "[BarbershopCharacter.GetCharacter]" - } - } - } - } - - type barbershop_character_list_item = hbox { - datacontext = "[BarbershopCharacter.GetCharacter]" - datacontext = "[BarbershopCharacter.GetPortrait]" - datacontext = "[BarbershopCharacter.GetPoseSettings]" - layoutpolicy_horizontal = expanding - - minimumsize = { 0 102 } - - vbox = { - name = "portrait_area" - layoutpolicy_vertical = expanding - alpha = "[Select_float( BarbershopCharacter.IsCharacterVisible, '(float)1.0', '(float)0.6' )]" - - portrait_head_small = {} - - expand = {} - } - - vbox = { - name = "main_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Content top row - hbox = { - name = "heading" - layoutpolicy_horizontal = expanding - margin_top = 4 - spacing = 5 - - background = { - using = Background_Area_Dark - margin_top = -4 - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - # Toggle name - button_checkbox_label = { - name = "toggle_name_checkbox" - - onclick = "[BarbershopCharacter.ToggleName]" - enabled = "[BarbershopCharacter.IsCharacterVisible]" - layoutpolicy_horizontal = expanding - - blockoverride "checkbox" - { - checked = "[BarbershopCharacter.IsNameVisible]" - } - - blockoverride "text" - { - maximumsize = { 260 30 } - text = "[Character.GetUINameNoTooltip|U]" - } - - tooltip = "BARBERSHOP_TOGGLE_NAME_TT" - } - - # Edit appearance - button_barbershop = { - name = "edit_appearance" - visible = "[Character.CanCustomizePortrait]" - size = { 30 30 } - enabled = "[BarbershopCharacter.IsCharacterVisible]" - onclick = "[BarbershopCharacter.SetAsEditCharacter]" - tooltip = "BARBERSHOP_TAB_APPEARANCE_TT" - } - - # Visibility toggle - barbershop_visibility_toggle = { - onclick = "[BarbershopCharacter.TogglePortrait]" - checked = "[BarbershopCharacter.IsCharacterVisible]" - tooltip = "BARBERSHOP_TOGGLE_CHARACTER_TT" - - icon = { - visible = "[Not(BarbershopCharacter.IsCharacterVisible)]" - size = { 30 30 } - using = Master_Button_Modify_Texture - texture = "gfx/interface/icons/flat_icons/window_close.dds" - } - } - } - - # Pose drop-down - vbox = { - datacontext = "[BarbershopWindow.GetPoseDropDown]" - visible = "[BarbershopCharacter.IsCharacterVisible]" - layoutpolicy_vertical = expanding - - hbox = { - spacing = 5 - - button_search = { - size = { 30 30 } - onclick = "[BarbershopPoseSettings.ToggleTextSearch]" - - tooltip = "BARBERSHOP_FUZZY_SEARCH_TT" - using = tooltip_ne - } - - dropdown_menu_standard = - { - blockoverride "dropdown_properties" - { - datamodel = "[BarbershopPoseDropDown.GetItems]" - onselectionchanged = "[BarbershopPoseSettings.OnSelect]" - selectedindex = "[BarbershopPoseSettings.GetHoveredIndex]" - } - - blockoverride "dropdown_size" - { - size = { 324 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 316 320 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[BarbershopPoseItem.GetName]" - } - - blockoverride "dropdown_item_properties" - { - onmousehierarchyenter = "[BarbershopPoseSettings.SetHoveredPose( BarbershopPoseItem.GetIndex )]" - text = "[BarbershopPoseItem.GetName]" - } - - blockoverride "dropdown_list_properties" - { - onmousehierarchyenter = "[BarbershopPoseSettings.HideTextSearch]" - onmousehierarchyleave = "[BarbershopPoseSettings.ResetHoveredPose]" - } - } - } - - editbox_standard = { - visible = "[BarbershopPoseSettings.IsTextSearchVisible]" - layoutpolicy_horizontal = expanding - - blockoverride "editbox_properties" - { - name = "input" - text = "[BarbershopPoseSettings.GetSearchFilter]" - focus_on_visible = yes - onreturnpressed = "[BarbershopPoseSettings.OnDone]" - ontextedited = "[BarbershopPoseSettings.OnEdit]" - } - } - - scrollbox = { - name = "filtered_list" - visible = "[BarbershopPoseSettings.HasItemsFiltered]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 120 204 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[BarbershopPoseDropDown.GetItemsFiltered]" - - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "fuzzy_item_button" - layoutpolicy_horizontal = expanding - size = { 0 24 } - - onclick = "[BarbershopPoseSettings.OnSelectFiltered( PdxGuiWidget.GetIndexInDataModel )]" - onmousehierarchyenter = "[BarbershopPoseSettings.SetHoveredPose( BarbershopPoseItem.GetIndex )]" - onmousehierarchyleave = "[BarbershopPoseSettings.ResetHoveredPose]" - - button_ignore = none - text_single = { - text = "[BarbershopPoseItem.GetName]" - parentanchor = vcenter|left - position = { 8 0 } - align = nobaseline - default_format = "high" - } - } - } - } - } - } - expand = {} - } - expand = {} - } - expand = {} - } -} - -template Barbershop_Font_Size_Huge { - fontsize = 33 - size = { 0 43 } -} diff --git a/N3OW/gui/window_barter.gui b/N3OW/gui/window_barter.gui deleted file mode 100644 index fc47f56a..00000000 --- a/N3OW/gui/window_barter.gui +++ /dev/null @@ -1,388 +0,0 @@ -### BARTER WINDOW -window = { - name = "barter_window" - size = { 625 400 } - parentanchor = bottom|left - movable = no - layer = middle - datacontext = "[BarterWindow.GetBarter]" - datacontext = "[BarterMission.GetArmy]" - datacontext = "[BarterMission.GetProvince]" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -17 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - vbox = { - name = "window_content" - margin_right = 35 - margin_top = 30 - - #################################### - ############## HEADER ############## - #################################### - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 15 - margin_left = 5 - margin_top = 5 - margin_bottom = 5 - - background = { - using = Background_Area_Dark - margin_left = 5 - } - - ### BARTERING ARMY SELECT - highlight_icon = { - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/icon_barter.dds" - } - - text_single = { - name = "title" - text = "[BarterMission.GetName]" - margin_left = 5 - margin_bottom = 4 - using = Font_Size_Big - font = TitleFont - } - - expand = {} - - ### BARTERING ARMIES SELECT - button_group = { - onclick = "[BarterWindow.OpenArmyWindow]" - visible = "[Army.GetOwner.IsLocalPlayer]" - tooltip = "BW_TT_OPEN_ARMY_WINDOW" - using = tooltip_ws - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_army_icon.dds" - } - } - - button_group = { - onclick = "[BarterWindow.OpenHoldingView]" - tooltip = "SW_TT_SHOW_HOLDING" - using = tooltip_ne - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_holding_icon.dds" - } - } - - buttons_window_control = { - - blockoverride "button_go_to" - { - onclick = "[DefaultOnCoatOfArmsRightClick(Province.GetCounty.GetTitle.GetID)]" - tooltip = "GOTO_PROVINCE_TT" - using = tooltip_ne - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - - blockoverride "button_close" - { - onclick = "[BarterWindow.Close]" - } - } - } - - #################################### - ########### BARTER INFO ############ - #################################### - - vbox = { - layoutpolicy_horizontal = expanding - - #### DARK AREA ### - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - background = { - using = Background_Area - } - - text_label_center = { - name = "time_left" - visible = "[Not(BarterMission.IsBlocked)]" - text = "BW_TIME_LEFT" - tooltip = "BW_TIME_LEFT_TT" - } - - #### PROGRESSBAR ### - hbox = { - name = "progressbar_area" - margin = { 10 0 } - allow_outside = yes - - datacontext = "[Army.GetOwner]" - - widget = { - size = { 64 50 } - allow_outside = yes - - coa_realm_medium = { - name = "barterer_realm" - tooltip = "BW_TT_BARTERING_REALM_TOOLTIP" - using = tooltip_ws - parentanchor = top - } - } - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - tooltip = "BARTER_PROGRESS_TOOLTIP" - using = tooltip_above - - widget = { - size = { 370 45 } - - progressbar = { - name = "progress_bar_attacker" - visible = "[And(Character.IsLocalPlayer, Not(BarterMission.IsBlocked))]" - - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_blue.dds" - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[BarterMission.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - progressbar = { - name = "progress_bar_defender" - visible = "[And(Not(Character.IsLocalPlayer), Not(BarterMission.IsBlocked))]" - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_red.dds" - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[BarterMission.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - progressbar = { - name = "progress_bar_blocked" - visible = "[BarterMission.IsBlocked]" - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_blue.dds" - - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[BarterMission.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/siege_frame.dds" - spriteType = Corneredstretched - spriteborder = { 30 40 } - margin = { 5 0 } - margin_bottom = 10 - texture_density = 2 - } - } - } - } - - expand = {} - } - - widget = { - size = { 58 50 } - allow_outside = yes - - coa_realm_medium = { - name = "defending_realm" - datacontext = "[BarterMission.GetProvince.GetTitle.GetHolder]" - tooltip = "BW_TT_BARTEREE_REALM_TOOLTIP" - parentanchor = top - position = { -5 0} - } - } - } - - #### BLOCKED BARTERING INFO #### - vbox = { - name = "time" - ignoreinvisible = yes - margin = { 0 3 } - - expand = { - minimumsize = { 0 26 } - visible = "[Not(BarterMission.IsBlocked)]" - } - - text_single = { - name = "desc" - text = "BARTER_BLOCKED_BY_COMBAT" - visible = "[BarterMission.IsBlocked]" - } - } - } - } - - ### BARTERING DETAILS ### - margin_widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 200 } - scissor = yes - - datacontext = "[GetModifier('recently_bartered_modifier')]" - - background = { - using = Background_Area_Dark - margin_left = 5 - margin_top = 3 - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - margin = { 15 10 } - - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/map_icons/icon_barter.dds" - } - - text_single = { - margin = { 5 5 } - - text = "[Province.GetBarterGoodsNeeded|V0]" - using = Font_Size_Medium - align = center|nobaseline - - background = { - visible = "[LessThan_CFixedPoint( GetPlayer.GetCurrency('barter_goods'), Province.GetBarterGoodsNeeded )]" - using = Status_Bad - margin_bottom = -3 - } - } - - icon = { - name = "arrow_icon" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/arrow.dds" - } - - icon = { - name = "loot_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_loot.dds" - } - - text_single = { - text = "[Province.GetLoot|V0]" - using = Font_Size_Medium - align = center|nobaseline - } - - expand = {} - - icon = { - texture = "[StaticModifier.GetIcon]" - size = { 30 30 } - - tooltip = "[StaticModifier.GetDescWithEffects]" - } - } - - expand = {} - - text_multi = { - text = "BARTER_WINDOW_DESC" - using = Font_Size_Medium - align = center|nobaseline - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 340 - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_battle_summary.gui b/N3OW/gui/window_battle_summary.gui deleted file mode 100644 index b3093d43..00000000 --- a/N3OW/gui/window_battle_summary.gui +++ /dev/null @@ -1,2160 +0,0 @@ - -### BATTLE SUMMARY WINDOW -window = { - name = "battle_summary" - parentanchor = top|hcenter - position = { 0 80 } - layer = middle - - using = Window_Decoration_Warfare - blockoverride "frame_bottom" {} - - background = { - texture = "gfx/interface/window_military/battle_summary_bg.dds" - spritetype = corneredstretched - spriteborder = { 0 200 } - texture_density = 2 - margin = { -18 0 } - margin_top = -8 - - modify_texture = { - texture = "gfx/interface/window_military/battle_summary_bg_overlay.dds" - spritetype = corneredtiled - blend_mode = overlay - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { 0 80 } - on_start = "[GetVariableSystem.Set( 'regiment_tab', 'total' )]" - on_start = "[GetVariableSystem.Set( 'knight_tab', 'stats' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_y = -50 - } - - state = { - name = dismiss - using = Animation_FadeOut_Quick - - position_y = 50 - on_finish = "[BattleSummaryWindow.AfterDismiss]" - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 55 20 } - margin_bottom = 70 - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[BattleSummaryWindow.GetLocation.GetTerrain]" - min_width = 630 - - background = { - name = "terrain" - texture = "[Terrain.GetIllustration]" - size = { 40 40 } - tooltip = "HOLDING_TERRAIN_TOOLTIP" - alpha = 0.5 - #margin_bottom = -80 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - hbox = { - margin_top = 40 - - portrait_torso = { - name = "commander_left" - datacontext = "[BattleSummaryWindow.GetLeftSideResult.GetCommander]" - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[BattleSummaryWindow.GetLeftSideCommanderTooltip]" - } - - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "status_icons" {} - - icon = { - visible = "[BattleSummaryWindow.IsKnightWounded( Character.Self )]" - parentanchor = bottom|hcenter - size = { 30 30 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - coa_realm_medium_crown = { - name = "left_realm" - datacontext = "[BattleSummaryWindow.GetLeftSideMainParticipant]" - parentanchor = bottom|left - tooltip = "[BattleSummaryWindow.GetLeftSideRealmFlagTooltip]" - } - blockoverride "glow_visible" - { - visible = no - } - - } - } - - vbox = { - hbox = { - spacing = 30 - - vbox = { - background = { - using = Background_Title - margin = { 50 0 } - margin_bottom = 5 - } - - text_single = { - name = "outcome" - text = "[BattleSummaryWindow.GetWonLostLabel]" - using = Font_Type_Flavor - fontsize = 40 - } - - text_single = { - name = "name" - text = "BATTLE_SUMMARY_BATTLE_TITLE" - default_format = "#high" - using = Font_Type_Flavor - fontsize = 25 - } - - text_single = { - name = "date" - text = "[BattleSummaryWindow.GetEndDate]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 10 - - - background = { - using = Background_Title - margin = { 20 0 } - } - - vbox = { - name = "gold" - visible = "[BattleSummaryWindow.GetCombatResultData.PlayerGotGold]" - - icon = { - texture = "gfx/interface/icons/icon_gold.dds" - size = { 40 40 } - } - - text_single = { - name = "value" - text = "[BattleSummaryWindow.GetCombatResultData.GetPlayerGoldGain|0]" - default_format = "#high" - } - - text_single = { - text = "[gold|E]" - } - } - - vbox = { - name = "prestige" - visible = "[BattleSummaryWindow.GetCombatResultData.PlayerGotPrestige]" - - icon = { - texture = "[GetPlayer.GetPrestigeLevelTexture]" - size = { 40 40 } - } - - text_single = { - name = "value" - text = "[BattleSummaryWindow.GetCombatResultData.GetPlayerPrestigeGain|0]" - default_format = "#high" - } - - text_single = { - visible = "[BattleSummaryWindow.GetCombatResultData.PlayerIsWinnerWarLeader]" - text = "[prestige_experience|E]" - } - - text_single = { - visible = "[Not( BattleSummaryWindow.GetCombatResultData.PlayerIsWinnerWarLeader )]" - text = "[prestige|E]" - } - } - - vbox = { - name = "piety" - visible = "[BattleSummaryWindow.GetCombatResultData.PlayerGotPiety]" - - icon = { - texture = "[GetPlayer.GetPietyLevelTexture]" - size = { 40 40 } - } - - text_single = { - name = "value" - text = "[BattleSummaryWindow.GetCombatResultData.GetPlayerPietyGain|0]" - default_format = "#high" - } - - text_single = { - visible = "[BattleSummaryWindow.GetCombatResultData.PlayerIsWinnerWarLeader]" - text = "[piety_experience|E]" - } - - text_single = { - visible = "[Not( BattleSummaryWindow.GetCombatResultData.PlayerIsWinnerWarLeader )]" - text = "[piety|E]" - } - } - - vbox = { - name = "warscore" - - icon = { - texture = "gfx/interface/icons/war_score/icon_war_score_battles.dds" - size = { 40 40 } - } - - text_single = { - name = "value" - text = "[BattleSummaryWindow.GetWarScore|%0+=]" - - } - - text_single = { - text = "[war_score|E]" - } - } - - vbox = { - name = "contribution" - visible = "[BattleSummaryWindow.GetCombatResultData.GotWarContribution( GetPlayer )]" - tooltip = "END_OF_COMBAT_CONTRIBUTION_TOOLTIP" - - - icon = { - name = "bg" - texture = "gfx/interface/icons/regimenttypes/heavy_infantry.dds" - size = { 40 40 } - } - - text_single = { - name = "value" - text = "[BattleSummaryWindow.GetCombatResultData.GetWarContribution( GetPlayer )|=]" - default_format = "#high" - } - - text_single = { - text = "[contribution|E]" - } - } - } - } - - hbox = { - margin_top = 40 - - portrait_torso = { - name = "commander_right" - datacontext = "[BattleSummaryWindow.GetRightSideResult.GetCommander]" - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[BattleSummaryWindow.GetRightSideCommanderTooltip]" - } - - blockoverride "portrait_button" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "status_icons" {} - - icon = { - visible = "[BattleSummaryWindow.IsKnightWounded( Character.Self )]" - parentanchor = bottom|hcenter - size = { 30 30 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - coa_realm_medium_crown = { - visible = "[Character.IsRuler]" - name = "right_realm" - datacontext = "[BattleSummaryWindow.GetRightSideMainParticipant]" - parentanchor = bottom|right - tooltip = "[BattleSummaryWindow.GetRightSideRealmFlagTooltip]" - } - blockoverride "glow_visible" - { - visible = no - } - } - } - } - - ### SOLDIERS INFO - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - spacing = 5 - - progressbar_green = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = "[BattleSummaryWindow.GetLeftArmyStretch]" - name = "left_ratio" - value = "[BattleSummaryWindow.GetLeftSideResult.GetLossPercent]" - tooltip = "[BattleSummaryWindow.GetLeftTotalTooltip]" - } - - progressbar_red = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = "[BattleSummaryWindow.GetRightArmyStretch]" - name = "right_ratio" - value = "[BattleSummaryWindow.GetRightSideResult.GetLossPercent]" - tooltip = "[BattleSummaryWindow.GetRightTotalTooltip]" - invertprogress = yes - } - } - - hbox = { - datacontext = "[BattleSummaryWindow.GetLocation.GetTerrain]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 10 - - hbox = { - tooltip = "BS_INITIAL_SOLDIERS" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetLeftSideResult.GetInitialNumberOfSoldiers|0]" - default_format = "#high" - } - } - - hbox = { - tooltip = "BS_LOSSES" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetLeftSideResult.GetNumberOfLostSoldiers|0]" - default_format = "#high" - } - } - - hbox = { - tooltip = "BS_SURVIVORS" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_soldier_survivor.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetLeftSideResult.GetNumberOfSurvivingSoldiers|0]" - default_format = "#high" - } - } - - expand = {} - - icon = { - name = "terrain" - datacontext = "[BattleSummaryWindow.GetLocation.GetTerrain]" - texture = "[Terrain.GetIcon]" - size = { 40 40 } - tooltip = "HOLDING_TERRAIN_TOOLTIP" - } - - expand = {} - - hbox = { - tooltip = "BS_SURVIVORS" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_soldier_survivor.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetRightSideResult.GetNumberOfSurvivingSoldiers|0]" - default_format = "#high" - } - } - - hbox = { - tooltip = "BS_LOSSES" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_dead.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetRightSideResult.GetNumberOfLostSoldiers|0]" - default_format = "#high" - } - } - - hbox = { - tooltip = "BS_INITIAL_SOLDIERS" - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - spacing = 3 - text_single = { - text = "[BattleSummaryWindow.GetRightSideResult.GetInitialNumberOfSoldiers|0]" - default_format = "#high" - } - } - } - } - - ### DETAILS - vbox = { - visible = "[Or(BattleSummaryWindow.IsSoldiersShown, BattleSummaryWindow.IsKnightsShown)]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Tab_Area - margin_top = -10 - margin_bottom = 5 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - button_tab = { - visible = "[Not(BattleSummaryWindow.IsSoldiersShown)]" - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_SOLDIERS" - onclick = "[BattleSummaryWindow.OnShowSoldiers]" - onclick = "[BattleSummaryWindow.RestoreSort]" - down = "[BattleSummaryWindow.IsSoldiersShown]" - } - - button_tab = { - visible = "[BattleSummaryWindow.IsSoldiersShown]" - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_SOLDIERS" - down = "[BattleSummaryWindow.IsSoldiersShown]" - } - - button_tab = { - visible = "[Not(BattleSummaryWindow.IsKnightsShown)]" - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_KNIGHTS" - onclick = "[BattleSummaryWindow.OnShowKnights]" - onclick = "[BattleSummaryWindow.RestoreSort]" - down = "[BattleSummaryWindow.IsKnightsShown]" - } - - button_tab = { - visible = "[BattleSummaryWindow.IsKnightsShown]" - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_KNIGHTS" - down = "[BattleSummaryWindow.IsKnightsShown]" - } - } - - vbox = { - visible = "[BattleSummaryWindow.IsSoldiersShown]" - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 5 - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "BATTLE_SUMMARY_SORT_ORDER_DESC" - using = tooltip_ne - onclick = "[BattleSummaryWindow.ToggleSortOrder]" - onclick = "[BattleSummaryWindow.RestoreSort]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo2And1(BattleSummaryWindow.IsSortDescending)]" - } - } - - dropdown_menu_standard = - { - name = "sort_soldiers" - - blockoverride "dropdown_properties" - { - datamodel = "[BattleSummaryWindow.GetSoldiersSortOptions]" - - onselectionchanged = "[BattleSummaryWindow.SortSoldiers]" - selectedindex = "[BattleSummaryWindow.GetSoldiersSortIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[CString.GetString]" - } - - blockoverride "dropdown_item_properties" - { - text = "[CString.GetString]" - } - } - - spacer = { - size = { 10 10 } - } - - expand = {} - - button_standard_clean = { - size = { 100 28} - text = "BATTLE_SUMMARY_TOTAL" - onclick = "[GetVariableSystem.Set( 'regiment_tab', 'total' )]" - onclick = "[BattleSummaryWindow.SetDisplayedPhase( '(int32)3' )]" - onclick = "[BattleSummaryWindow.RestoreSort]" - onclick = "[PdxGuiTriggerAllAnimations('battle_summary_kl_refresh')]" - down = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - alwaystransparent = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - using = tooltip_above - tooltip = BATTLE_SUMMARY_TOTAL_TT - } - - button_standard_clean = { - size = { 100 28} - text = "BATTLE_SUMMARY_MAIN_PHASE" - onclick = "[GetVariableSystem.Set( 'regiment_tab', 'main' )]" - onclick = "[BattleSummaryWindow.SetDisplayedPhase( '(int32)1' )]" - onclick = "[BattleSummaryWindow.RestoreSort]" - onclick = "[PdxGuiTriggerAllAnimations('battle_summary_kl_refresh')]" - down = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - alwaystransparent = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - using = tooltip_above - tooltip = BATTLE_SUMMARY_MAIN_PHASE_TT - } - - button_standard_clean = { - size = { 100 28} - text = "BATTLE_SUMMARY_PURSUIT" - onclick = "[GetVariableSystem.Set( 'regiment_tab', 'pursuit' )]" - onclick = "[BattleSummaryWindow.SetDisplayedPhase( '(int32)2' )]" - onclick = "[BattleSummaryWindow.RestoreSort]" - onclick = "[PdxGuiTriggerAllAnimations('battle_summary_kl_refresh')]" - down = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - alwaystransparent = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - using = tooltip_above - tooltip = BATTLE_SUMMARY_PURSUIT_TT - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 20 - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - text_single = { - text = "BATTLE_SUMMARY_YOUR_SOLDIERS" - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_KL" - tooltip = "BATTLE_SUMMARY_KL_TT" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - text_single = { - text = "BATTLE_SUMMARY_KL" - tooltip = "BATTLE_SUMMARY_KL_TT" - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_ENEMY_SOLDIERS" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - maximumsize = { -1 400 } - - blockoverride "scrollbox_replace_vbox" { - hbox = { - margin = { 5 5 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[BattleSummaryWindow.GetLeftSoldiersStats]" - - item = { - widget_regiment_left = { - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[BattleSummaryWindow.GetRightSoldiersStats]" - - item = { - - widget_regiment_right = { - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } - } - } - } - } - } - - vbox = { - visible = "[BattleSummaryWindow.IsKnightsShown]" - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 5 - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "BATTLE_SUMMARY_SORT_ORDER_DESC" - onclick = "[BattleSummaryWindow.ToggleSortOrder]" - onclick = "[BattleSummaryWindow.RestoreSort]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo2And1(BattleSummaryWindow.IsSortDescending)]" - } - } - - dropdown_menu_standard = - { - name = "sort_knights" - - blockoverride "dropdown_properties" - { - datamodel = "[BattleSummaryWindow.GetKnightsSortOptions]" - onselectionchanged = "[BattleSummaryWindow.SortKnights]" - selectedindex = "[BattleSummaryWindow.GetKnightsSortIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[CString.GetString]" - tooltip = "BATTLE_SUMMARY_SORT_DESC" - } - - blockoverride "dropdown_item_properties" - { - text = "[CString.GetString]" - } - - } - - expand = {} - - button_standard = { - size = { 100 28 } - text = "BATTLE_SUMMARY_KNIGHTS_STATS" - onclick = "[GetVariableSystem.Set( 'knight_tab', 'stats' )]" - onclick = "[BattleSummaryWindow.RestoreSort]" - onclick = "[PdxGuiTriggerAllAnimations('battle_summary_knights_refresh')]" - down = "[GetVariableSystem.HasValue( 'knight_tab', 'stats' )]" - alwaystransparent = "[GetVariableSystem.HasValue( 'knight_tab', 'stats' )]" - } - - button_standard = { - size = { 100 28 } - text = "BATTLE_SUMMARY_KNIGHTS_EVENTS" - onclick = "[GetVariableSystem.Set( 'knight_tab', 'events' )]" - onclick = "[BattleSummaryWindow.RestoreSort]" - onclick = "[PdxGuiTriggerAllAnimations('battle_summary_knights_refresh')]" - down = "[GetVariableSystem.HasValue( 'knight_tab', 'events' )]" - alwaystransparent = "[GetVariableSystem.HasValue( 'knight_tab', 'events' )]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'knight_tab', 'stats' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - state = { - name = "battle_summary_knights_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 20 - - text_single = { - text = "BATTLE_SUMMARY_YOUR_KNIGHTS" - min_width = 140 - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_KILLS" - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_ENEMY_KNIGHTS" - align = right - min_width = 140 - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - autoresizescrollarea = yes - maximumsize = { -1 400 } - - blockoverride "scrollbox_content" { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[BattleSummaryWindow.GetLeftKnightsStats]" - - item = { - widget_knight_left = { - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[BattleSummaryWindow.GetRightKnightsStats]" - - item = { - widget_knight_right = { - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } - } - } - - blockoverride "scrollbox_empty" - { - text = "BATTLE_SUMMARY_NO_KNIGHTS" - visible = "[And( IsDataModelEmpty( BattleSummaryWindow.GetLeftKnightsStats ), IsDataModelEmpty( BattleSummaryWindow.GetRightKnightsStats ) )]" - } - } - } - - - vbox = { - visible = "[GetVariableSystem.HasValue( 'knight_tab', 'events' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - state = { - name = "battle_summary_knights_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 20 - - text_single = { - text = "BATTLE_SUMMARY_YOUR_KNIGHTS" - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_EVENTS" - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_ENEMY_KNIGHTS" - } - } - - scrollbox = { - name = "events_list" - layoutpolicy_horizontal = expanding - autoresizescrollarea = yes - maximumsize = { -1 400 } - - blockoverride "scrollbox_replace_vbox" - { - vbox = { - name = "battle_events" - datamodel = "[BattleSummaryWindow.GetBattleEvents]" - margin = { 5 5 } - - item = { - widget = { - layoutpolicy_horizontal = expanding - size = { 0 95 } - - hbox = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[BattleSummaryWindow.IsKnightKilled( BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - using = Status_Bad - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[BattleSummaryWindow.IsKnightKilled( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - using = Status_Bad - } - - expand = {} - } - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head_small = { - name = "left_portrait" - datacontext = "[BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker )]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - } - - vbox = { - spacing = 5 - visible = "[BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker ).IsValid]" - - hbox = { - text_single = { - text = "BATTLE_SUMMARY_KILLS" - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = ": [BattleSummaryWindow.GetKnightKills( BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker ) )|0]" - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - } - } - - hbox = { - spacing = 2 - - icon = { - name = "prowess_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_prowess.dds" - tooltip = "prowess" - } - - text_single = { - name = "prowess_value" - minimumsize = { 10 0 } - text = "[BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker ).GetProwess|0]" - tooltip = "prowess" - using = Font_Size_Medium - align = nobaseline - } - - icon = { - visible = "[And( BattleEvent.IsWound, BattleEvent.IsShowForPlayer( BattleSummaryWindow.IsPlayerAttacker ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - icon = { - visible = "[BattleSummaryWindow.IsKnightKilled( BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_kill.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_KILLED_TT" - } - } - } - - text_multi = { - name = "message" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[BattleEvent.GetTitle( BattleSummaryWindow.IsPlayerAttacker )] [BattleSummaryWindow.GetEventSequenceSizeText( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - align = center - margin = { 10 0 } - - tooltip_visible = "[BattleSummaryWindow.HasEventSequence( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - - tooltipwidget = { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - direction = vertical - layoutpolicy_horizontal = expanding - margin = { 15 15 } - - text_single = { - text = "BATTLE_SUMMARY_KNIGHT_EVENT_EXPAND_HEADER_TT" - default_format = "#tooltip_heading" - layoutpolicy_horizontal = expanding - } - - datamodel = "[BattleSummaryWindow.GetEventSequence( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[BattleEvent.GetLeftCharacter( BattleSummaryWindow.IsPlayerAttacker )]" - text = "BATTLE_SUMMARY_KNIGHT_EVENT_EXPAND_ENTRY_TT" - } - } - } - } - } - } - - vbox = { - spacing = 5 - visible = "[BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ).IsValid]" - - hbox = { - text_single = { - text = "BATTLE_SUMMARY_KILLS" - } - - text_single = { - raw_text = ": [BattleSummaryWindow.GetKnightKills( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )|0]" - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - } - } - - hbox = { - spacing = 2 - - icon = { - visible = "[BattleSummaryWindow.IsKnightKilled( BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_kill.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_KILLED_TT" - } - - icon = { - visible = "[And( BattleEvent.IsWound, Not( BattleEvent.IsShowForPlayer( BattleSummaryWindow.IsPlayerAttacker ) ) )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - text_single = { - name = "prowess_value" - minimumsize = { 10 0 } - text = "[BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker ).GetProwess|0]" - tooltip = "prowess" - using = Font_Size_Medium - align = nobaseline - } - - icon = { - name = "prowess_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_prowess.dds" - tooltip = "prowess" - } - } - } - - portrait_head_small = { - name = "right_portrait" - datacontext = "[BattleEvent.GetRightCharacter( BattleSummaryWindow.IsPlayerAttacker )]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - alpha = 0.5 - } - } - } - } - text_single = { - default_format = "#low;italic" - - text = "BATTLE_SUMMARY_NO_EVENTS" - visible = "[IsDataModelEmpty(BattleSummaryWindow.GetBattleEvents)]" - } - } - } - - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 17 0 } - margin_bottom = 10 - - expand = {} - - button_checkbox_label = { - name = "auto_expand" - onclick = "[BattleSummaryWindow.ToggleAutoExpand]" - tooltip = "BATTLE_SUMMARY_AUTO_EXPAND_TT" - - blockoverride "checkbox" - { - checked = "[BattleSummaryWindow.IsAutoExpand]" - } - - blockoverride "text" - { - text = "BATTLE_SUMMARY_AUTO_EXPAND" - } - } - - } - } - - spacer = { - visible = "[Not(Or(BattleSummaryWindow.IsSoldiersShown, BattleSummaryWindow.IsKnightsShown))]" - size = { 20 25 } - } - - hbox = { - name = "bottom_buttons" - margin_bottom = 18 - margin_top = 10 - spacing = 10 - - button_standard = { - visible = "[Not(Or(BattleSummaryWindow.IsSoldiersShown, BattleSummaryWindow.IsKnightsShown))]" - name = "show_more" - text = "BATTLE_SUMMARY_DETAILS" - onclick = "[BattleSummaryWindow.OnShowSoldiers]" - onclick = "[BattleSummaryWindow.RestoreSort]" - } - - button_primary = { - name = "dismiss" - text = "DISMISS" - onclick = "[BattleSummaryWindow.Dismiss]" - } - } - } - - buttons_window_control = { - parentanchor = top|right - position = { -50 15 } - - blockoverride "button_close" - { - visible = no - } - - blockoverride "button_minimize" - { - onclick = "[BattleSummaryWindow.Close]" - } - - blockoverride "button_go_to" - { - onclick = "[BattleSummaryWindow.GoToProvince]" - tooltip = "GOTO_PROVINCE" - } - } -} - -types BattleSummary -{ - type container_bs_maa_icon = hbox { - icon = { - name = "maa_icon" - texture = "[MenAtArmsType.GetIcon]" - visible = "[RegimentCombatStats.IsMaa]" - size = { 30 30 } - - glow = { - glow_radius = 3 - using = Glow_Standard - - block "glow" - { - using = Color_Green - } - } - - tooltipwidget = { - widget_maa_summary = {} - } - - using = tooltip_nw - } - } - - type widget_regiment_icon = widget { - block "size" { - size = { 80 80 } - } - - scissor = yes - - icon = { - widgetanchor = center - parentanchor = center - size = { 80 80 } - - block "icon_texture" { - texture = "[GraphicalUnitType.GetLeviesSmallIllustration]" - using = Mask_Rough_Edges - } - } - } - - type widget_regiment_left = widget { - size = { 0 90 } - datacontext = "[BattleSummaryWindow.GetLeftSideMainParticipant.GetCulture.GetGraphicalUnitType]" - - background = { - using = Status_Bad - visible = "[EqualTo_CFixedPoint( RegimentCombatStats.GetFinalCount, '(CFixedPoint)0')]" - } - - hbox = { - margin = { 10 5 } - - widget_regiment_icon = { - visible = "[RegimentCombatStats.IsLevy]" - tooltip = "ARMY_VIEW_LEVIES_TOOLTIP" - } - - widget_regiment_icon = { - visible = "[Not( Or( RegimentCombatStats.IsKnight, RegimentCombatStats.IsLevy ) )]" - - blockoverride "icon_texture" { - texture = "[RegimentCombatStats.GetMenAtArmsType.GetVerticalImageForCulture( BattleSummaryWindow.GetLeftSideMainParticipant.GetCulture )]" - - using = Mask_Rough_Edges - } - - tooltipwidget = { - widget_maa_summary = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - } - } - - widget_regiment_icon = { - visible = "[RegimentCombatStats.IsKnight]" - - blockoverride "icon_texture" { - texture = "[GraphicalUnitType.GetKnightsSmallIllustration]" - - using = Mask_Rough_Edges - } - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_LEFT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftKnightsStats]" - } - } - } - } - - vbox = { - margin = { 10 2 } - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - text_single = { - visible = "[RegimentCombatStats.IsLevy]" - text = "ARMY_VIEW_LEVIES" - using = Font_Size_Medium - tooltip = "ARMY_VIEW_LEVIES_TOOLTIP" - } - - text_single = { - visible = "[Not( Or( RegimentCombatStats.IsKnight, RegimentCombatStats.IsLevy ) )]" - text = "[RegimentCombatStats.GetMenAtArmsType.GetNameNoTooltip]" - - tooltipwidget = { - widget_maa_summary = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - } - } - - text_single = { - visible = "[RegimentCombatStats.IsKnight]" - text = "BATTLE_SUMMARY_KNIGHTS" - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_LEFT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftKnightsStats]" - } - } - } - } - - expand = {} - - hbox = { - state = { - name = "battle_summary_kl_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - text = "[RegimentCombatStats.GetTotalKills|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - default_format = "#positive_value" - } - - text_single = { - text = "[RegimentCombatStats.GetMainKills|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - tooltip = "BATTLE_SUMMARY_KILLS_MAIN_TT" - default_format = "#positive_value" - } - - text_single = { - text = "[RegimentCombatStats.GetPursuitKills|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - tooltip = "BATTLE_SUMMARY_KILLS_PURSUIT_TT" - default_format = "#positive_value" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusLeft( MenAtArmsType.Self ), '(int32)1' )]" - margin_right = 5 - - blockoverride "glow" - { - using = Color_Green - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusLeft( MenAtArmsType.Self ), '(int32)2' )]" - margin_right = 5 - - blockoverride "glow" - { - using = Color_Red - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusLeft( MenAtArmsType.Self ), '(int32)3' )]" - margin_right = 5 - - blockoverride "glow" - { - using = Color_Bright_Yellow - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - } - - icon = { - visible = "[RegimentCombatStats.IsKnight]" - size = { 30 30 } - texture = "gfx/interface/icons/icon_knight_small.dds" - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_LEFT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftKnightsStats]" - } - } - } - } - - widget = { - size = { 0 30 } - visible = "[RegimentCombatStats.IsLevy]" - } - - text_single = { - text = "[RegimentCombatStats.GetFinalCount|0]/[RegimentCombatStats.GetInitialCount|0]" - tooltip = "BATTLE_SUMMARY_REGIMENT_COUNT" - default_format = "#high" - } - - expand = {} - - hbox = { - state = { - name = "battle_summary_kl_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - text = "[RegimentCombatStats.GetTotalLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_TOTAL_TT" - default_format = "#negative_value" - } - - text_single = { - text = "[RegimentCombatStats.GetMainLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_MAIN_TT" - default_format = "#negative_value" - } - - text_single = { - text = "[RegimentCombatStats.GetPursuitLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_PURSUIT_TT" - default_format = "#negative_value" - } - } - } - } - } - } - - type widget_regiment_right = widget { - size = { 0 90 } - datacontext = "[BattleSummaryWindow.GetRightSideMainParticipant.GetCulture.GetGraphicalUnitType]" - - background = { - using = Status_Bad - visible = "[EqualTo_CFixedPoint( RegimentCombatStats.GetFinalCount, '(CFixedPoint)0')]" - } - - hbox = { - margin = { 10 5 } - - vbox = { - margin = { 10 2 } - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - hbox = { - state = { - name = "battle_summary_kl_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - text = "[RegimentCombatStats.GetTotalKills|0]" - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - default_format = "#positive_value" - } - - text_single = { - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - text = "[RegimentCombatStats.GetMainKills|0]" - tooltip = "BATTLE_SUMMARY_KILLS_MAIN_TT" - default_format = "#positive_value" - } - - text_single = { - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - - text = "[RegimentCombatStats.GetPursuitKills|0]" - tooltip = "BATTLE_SUMMARY_KILLS_PURSUIT_TT" - default_format = "#positive_value" - } - } - - expand = {} - - text_single = { - visible = "[RegimentCombatStats.IsLevy]" - text = "ARMY_VIEW_LEVIES" - tooltip = "ARMY_VIEW_LEVIES_TOOLTIP" - } - - text_single = { - visible = "[Not( Or( RegimentCombatStats.IsKnight, RegimentCombatStats.IsLevy ) )]" - text = "[RegimentCombatStats.GetMenAtArmsType.GetNameNoTooltip]" - - tooltipwidget = { - widget_maa_summary = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounteredBy( MenAtArmsType.Self )]" - } - } - } - } - - text_single = { - visible = "[RegimentCombatStats.IsKnight]" - text = "BATTLE_SUMMARY_KNIGHTS" - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_RIGHT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightKnightsStats]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - state = { - name = "battle_summary_kl_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - text = "[RegimentCombatStats.GetTotalLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'total' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_TOTAL_TT" - default_format = "#negative_value" - } - - text_single = { - text = "[RegimentCombatStats.GetMainLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'main' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_MAIN_TT" - default_format = "#negative_value" - } - - text_single = { - text = "[RegimentCombatStats.GetPursuitLosses|0]" - visible = "[GetVariableSystem.HasValue( 'regiment_tab', 'pursuit' )]" - tooltip = "BATTLE_SUMMARY_LOSSES_PURSUIT_TT" - default_format = "#negative_value" - } - } - - expand = {} - - text_single = { - text = "[RegimentCombatStats.GetFinalCount|0]/[RegimentCombatStats.GetInitialCount|0]" - tooltip = "BATTLE_SUMMARY_REGIMENT_COUNT" - default_format = "#high" - } - - hbox = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusRight( MenAtArmsType.Self ), '(int32)1' )]" - margin_left = 5 - - blockoverride "glow" - { - using = Color_Green - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounteredBy( MenAtArmsType.Self )]" - } - } - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusRight( MenAtArmsType.Self ), '(int32)2' )]" - margin_left = 5 - - blockoverride "glow" - { - using = Color_Red - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounteredBy( MenAtArmsType.Self )]" - } - } - - container_bs_maa_icon = { - visible = "[EqualTo_int32( BattleSummaryWindow.GetBonusRight( MenAtArmsType.Self ), '(int32)3' )]" - margin_left = 5 - - blockoverride "glow" - { - using = Color_Bright_Yellow - } - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightCounteredBy( MenAtArmsType.Self )]" - } - } - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_knight_small.dds" - visible = "[RegimentCombatStats.IsKnight]" - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_RIGHT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightKnightsStats]" - } - } - } - } - - widget = { - size = { 0 30 } - visible = "[RegimentCombatStats.IsLevy]" - } - } - } - - widget_regiment_icon = { - visible = "[RegimentCombatStats.IsLevy]" - tooltip = "ARMY_VIEW_LEVIES_TOOLTIP" - } - - widget_regiment_icon = { - visible = "[Not( Or( RegimentCombatStats.IsKnight, RegimentCombatStats.IsLevy ) )]" - - blockoverride "icon_texture" { - texture = "[RegimentCombatStats.GetMenAtArmsType.GetVerticalImageForCulture( BattleSummaryWindow.GetRightSideMainParticipant.GetCulture )]" - using = Mask_Rough_Edges - } - - tooltipwidget = { - widget_maa_summary = { - datacontext = "[RegimentCombatStats.GetMenAtArmsType]" - - blockoverride "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - blockoverride "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - } - } - } - - widget_regiment_icon = { - visible = "[RegimentCombatStats.IsKnight]" - - blockoverride "icon_texture" { - texture = "[GraphicalUnitType.GetKnightsSmallIllustration]" - using = Mask_Rough_Edges - } - - tooltipwidget = { - widget_knight_summary = { - - blockoverride "knights_header" { - text = "BATTLE_SUMMARY_RIGHT_KNIGHTS_HEADER" - } - - blockoverride "knights_datamodel" { - datamodel = "[BattleSummaryWindow.GetRightKnightsStats]" - } - } - } - } - } - } - - type widget_knight_left = widget { - datacontext = "[RegimentCombatStats.GetKnight]" - size = { 0 95 } - - divider_light = { - parentanchor = bottom - position = { 0 3 } - size = { 100% 3 } - } - - hbox = { - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 2 2 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[Character.GetNameNoTooltip]" - } - - text_single = { - text = "[RegimentCombatStats.GetTotalKills|0]" - default_format = "#high" - align = nobaseline - using = Font_Size_Big - margin = { 12 0 } - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - icon = { - name = "prowess_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_prowess.dds" - tooltip = "prowess" - } - - text_single = { - name = "prowess_value" - text = "[Character.GetProwess|0]" - tooltip = "prowess" - size = { 22 0 } - } - - icon = { - visible = "[BattleSummaryWindow.IsKnightWounded( Character.Self )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - expand = {} - } - } - } - } - - type widget_knight_right = widget { - datacontext = "[RegimentCombatStats.GetKnight]" - size = { 0 95 } - - background = { - using = Status_Bad - visible = "[BattleSummaryWindow.IsKnightKilled( RegimentCombatStats.GetKnight )]" - } - - divider_light = { - parentanchor = bottom - position = { 0 3 } - size = { 100% 3 } - } - - hbox = { - vbox = { - layoutpolicy_horizontal = expanding - margin = { 2 2 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - text = "[RegimentCombatStats.GetTotalKills|0]" - default_format = "#high" - align = nobaseline - using = Font_Size_Big - margin = { 12 0 } - tooltip = "BATTLE_SUMMARY_KILLS_TOTAL_TT" - - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[Character.GetNameNoTooltip]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - icon = { - visible = "[BattleSummaryWindow.IsKnightWounded( Character.Self )]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_wounded.dds" - tooltip = "BATTLE_SUMMARY_KNIGHTS_WOUNDED_TT" - } - - text_single = { - name = "prowess_value" - text = "[Character.GetProwess|0]" - tooltip = "prowess" - size = { 22 0 } - } - - icon = { - name = "prowess_icon" - size = { 35 35 } - texture = "gfx/interface/icons/icon_prowess.dds" - tooltip = "prowess" - } - } - } - - portrait_head_small = {} - } - } - - type widget_maa_summary = widget { - alwaystransparent = no - - widget = { - name = "background" - size = { 100% 100% } - using = DefaultTooltipBackground - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin_top = 5 - margin = { 3 3 } - - vbox_maa_stats = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - blockoverride "type_text" {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - margin_top = 0 - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 5 - - icon = { - name = "icon" - size = { 40 40 } - texture = "[MenAtArmsType.GetIcon]" - } - - text_single = { - name = "type" - text = "MEN_AT_ARMS_TYPE_NAME" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[RegimentCombatStats.GetFinalCount|0]/[RegimentCombatStats.GetInitialCount|0]" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - text = "COMBAT_WINDOW_MAA_TT_REGIMENTS" - visible = no - } - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[GreaterThan_CFixedPoint( BattleSummaryWindow.GetTerrainBonus( MenAtArmsType.Self ), '(CFixedPoint)0' )]" - text = "BATTLE_SUMMARY_TARRAIN_BONUS" - default_format = "#positive_value" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[LessThan_CFixedPoint( BattleSummaryWindow.GetTerrainBonus( MenAtArmsType.Self ), '(CFixedPoint)0' )]" - text = "BATTLE_SUMMARY_TARRAIN_PENALTY" - default_format = "#negative_value" - } - - vbox = { - layoutpolicy_horizontal = expanding - - block "counter_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounter( MenAtArmsType.Self )]" - } - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_COUNTERS" - default_format = "#positive_value" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - block "countered_by_datamodel" { - datamodel = "[BattleSummaryWindow.GetLeftCounteredBy( MenAtArmsType.Self )]" - } - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "BATTLE_SUMMARY_COUNTERED_BY" - default_format = "#negative_value" - } - } - } - } - } - } - - type widget_knight_summary = widget { - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 15 } - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#tooltip_heading" - - block "knights_header" { - text = "[knights|E]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - block "knights_datamodel" {} - - item = { - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[RegimentCombatStats.GetKnight]" - spacing = 5 - - text_single = { - raw_text = "[Character.GetNameNoTooltip]: " - max_width = 230 - } - - expand = {} - - text_single = { - text = "BATTLE_SUMMARY_KNIGHT_OUTCOME_TEXT" - default_format = "#high" - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_character.gui b/N3OW/gui/window_character.gui deleted file mode 100644 index 1a72c35d..00000000 --- a/N3OW/gui/window_character.gui +++ /dev/null @@ -1,5506 +0,0 @@ -###################################################### -################# CHARACTER WINDOW ################### -###################################################### - -window = { - name = "character_window" - widgetid = "character_window" - datacontext = "[GetVariableSystem]" - datacontext = "[CharacterWindow.GetCharacter]" - movable = no - layer = middle - allow_outside = yes - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position_x = 0 - - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position_x = -60 - - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - name = "main_content" - using = Window_Margins_Sidebar - - ############### - # Character box - widget = { - name = "main_characters" - datacontext = "[GetIllustration( 'character_view_bg' )]" - layoutpolicy_horizontal = expanding - size = { 0 305 } - - - widget = { - size = { 100% 100% } - using = Animation_Character_Window_Refresh - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - margin_bottom = 5 - margin_left = 1 - alpha = "[Select_float( Character.IsAlive, '(float)1', '(float)0.4' )]" - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges_down_right.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 2 - } - } - } - - ### Primary Spouse - container_secondary = { - visible = "[CharacterWindow.ShouldShowSecondary]" - - blockoverride "portrait_button" - { - alwaystransparent = "[GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('disable_clicking_portraits').GetValue, '(CFixedPoint)0' )]" - } - } - - ### Main Character - portrait_character_view_main = { - name = "tutorial_highlight_main_character_button" - parentanchor = bottom|left - position = { 0 0 } - - using = Animation_Character_Window_Refresh_Short - - blockoverride "portrait_button" - { - using = tooltip_es - tooltip_offset = { -50 0 } - } - - blockoverride "prison_bars" { - highlight_icon = { - parentanchor = center - name = "prison_bars" - visible = "[Character.IsImprisoned]" - visible_at_creation = no - size = { 33% 100% } - - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_prison_character_view.dds" - - modify_texture = { - name = "mask" - texture = "gfx/portraits/portrait_mask_character_view.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - } - - blockoverride "portrait_opinion" - { - vassal_stance_icon = { - name = "vassal_stance" - size = { 20 20 } - } - } - } - - secondary_widget = { - visible = "[CharacterWindow.ShouldShowSecondary]" - position = { 250 0 } - } - - buttons_window_control = { - parentanchor = top|right - - blockoverride "extra_buttons" - { - button = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - size = { 30 30 } - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_group_of_characters.dds" - } - tooltip = "CHARACTER_AI_VALUES_DEBUG_TOOLTIP" - onclick = "[ExecuteConsoleCommand('aiwatch')]" - } - - button_copy = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - size = { 30 30 } - onclick = "[Character.CopyCharacterDna]" - raw_tooltip = "Copy DNA" - } - - button_copy = { - visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]" - size = { 30 30 } - onclick = "[Character.CopyCharacterPersistentDna]" - raw_tooltip = "Copy Persistent DNA" - } - } - - blockoverride "button_close" - { - onclick = "[CharacterWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - visible = "[Not(Character.IsLocalPlayer)]" - onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" - } - - blockoverride "button_pin" { - visible = "[Not( Character.AccessDenied )]" - } - - background = { - using = Background_Area_Solid - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - alpha = 0.7 - margin_left = 30 - margin_right = 30 - } - } - - hbox = { - margin_top = 50 - layoutpolicy_horizontal = expanding - expand = {} - - ### Jailor / Imprisoner / Imprisoned by - vbox = { - name = "imprisoned_by" - datacontext = "[CharacterWindow.GetCharacter.GetImprisonedBy]" - visible = "[Character.IsValid]" - - margin_right = 20 - layoutpolicy_vertical = expanding - using = Animation_Character_Window_Refresh - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - text_label_center = { - text = "IMPRISONED_BY" - } - expand = {} - } - - ### Hostage Home Court - vbox = { - name = "hostage_home_court" - datacontext = "[CharacterWindow.GetCharacter.GetHomeCourt]" - visible = "[Character.IsValid]" - - margin_right = 20 - layoutpolicy_vertical = expanding - using = Animation_Character_Window_Refresh - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - text_label_center = { - text = "[home_court|E]" - } - expand = {} - } - - ### Liege - vbox = { - name = "liege_etc_area" - datacontext = "[CharacterWindow.GetCharacter.GetLiegeEvenWhenDead]" - visible = "[CharacterWindow.HasLiegeEvenWhenDead]" - allow_outside = yes - - margin_right = 20 - layoutpolicy_vertical = expanding - using = Animation_Character_Window_Refresh - - portrait_head_small = { - name = "liege_portrait" #tutorial uses this - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "coa" { - coa_realm_tiny = { - visible = "[And(CharacterWindow.GetCharacter.IsAlive, CharacterWindow.HasLiegeTitleEvenWhenDead)]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - - coa_title_tiny = { - visible = "[And(Not(CharacterWindow.GetCharacter.IsAlive), CharacterWindow.HasLiegeTitleEvenWhenDead)]" - datacontext = "[CharacterWindow.GetCharacter.GetLiegeTitleEvenWhenDead]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - } - } - - hbox = { - spacing = 3 - - datacontext = "[CharacterWindow.GetCharacter]" - - text_label_center = { - visible = "[Character.IsHostage]" - text = "WARDEN_OF" - } - - text_label_center = { - visible = "[Not( Character.IsHostage )]" - text = "[liege|E]" - } - - icon = { - - name = "non_dejure_liege" - visible = "[Not( Character.GetVassalContract.IsRightfulLiege )]" - size = { 30 30 } - texture = "gfx/interface/icons/levy_tax_reduction.dds" - - using = tooltip_ws - tooltip = "MRW_TT_NOT_RIGHTFUL_LIEGE" - } - - icon = { - name = "diarchy_active_icon" - visible = "[Character.IsDiarchOf( Character.GetLiege )]" - size = { 25 25 } - texture = "gfx/interface/icons/scale_of_power.dds" - tooltip = DIARCH_ICON_TOOLTIP - using = tooltip_below - } - } - - - portrait_opinion = { - name = "liege_opinion" - - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And( Character.GetLiege.IsValid, And( Character.IsAlive, Not(Character.IsLocalPlayer ) ) )]" - - blockoverride "dread_logic" { - visible = "[Character.ShouldShowDreadEffectIconFor( Character.GetLiege )]" - frame = "[Character.GetDreadEffectIconFrameFor( Character.GetLiege )]" - tooltip = "[Character.GetDreadEffectTooltipFor( Character.GetLiege )]" - } - - blockoverride "opinion_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetLiege )]" - } - - blockoverride "ott_heading_text" - { - text = "[Character.GetOpinionHeadingText( CharacterWindow.GetCharacter.GetLiege )]" - } - - blockoverride "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetLiege )]" - } - - blockoverride "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( CharacterWindow.GetCharacter.GetLiege )]" - } - } - expand = {} - } - - ### Suzerain - vbox = { - name = "suzerain" - datacontext = "[CharacterWindow.GetCharacter.GetSuzerain]" - visible = "[CharacterWindow.GetCharacter.HasSuzerain]" - allow_outside = yes - - margin_right = 20 - layoutpolicy_vertical = expanding - using = Animation_Character_Window_Refresh - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "coa" { - coa_realm_tiny = { - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - } - } - - hbox = { - spacing = 3 - - datacontext = "[CharacterWindow.GetCharacter]" - - text_label_center = { - visible = "[Character.IsHostage]" - text = "WARDEN_OF" - } - - text_label_center = { - visible = "[Not( Character.IsHostage )]" - text = "[suzerain|E]" - margin_left = 28 - - ### Tributary Icon - widget = { - size = { 24 24 } - datacontext = "[Character.GetTributaryContract]" - tooltip = "CONTRACT_NAME" - using = tooltip_se - - icon = { - visible = "[And( Not( IsNomad( Character )), Not( IsHerder( Character ) ) )]" - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/tributary_settled_map_icon.dds" - } - - icon = { - visible = "[Or(IsNomad( Character ), IsHerder( Character ))]" - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/tributary_nomadic_map_icon.dds" - } - } - } - } - - - portrait_opinion = { - name = "suzerain_opinion" - - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And( Character.GetSuzerain.IsValid, And( Character.IsAlive, Not(Character.IsLocalPlayer ) ) )]" - - blockoverride "opinion_text" - { - text = "[Character.GetOpinionOf( Character.GetSuzerain )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetSuzerain )]" - } - - blockoverride "ott_heading_text" - { - text = "[Character.GetOpinionHeadingText( CharacterWindow.GetCharacter.GetSuzerain )]" - } - - blockoverride "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( Character.GetSuzerain )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCharacter.GetSuzerain )]" - } - - blockoverride "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( CharacterWindow.GetCharacter.GetSuzerain )]" - } - } - expand = {} - } - } - - ### Host - container = { - name = "host" - datacontext = "[CharacterWindow.GetCourtOwner]" - visible = "[And( Not( CharacterWindow.HasLiegeEvenWhenDead ), And( CharacterWindow.GetCourtOwner.IsValid, Not( CharacterWindow.GetCharacter.IsRuler ) ) )]" - parentanchor = bottom|right - widgetanchor = top|left - position = { -105 -250 } - - using = Animation_Character_Window_Refresh - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - text_label_center = { - parentanchor = top|hcenter - position = { 0 85 } - text = "[host|E]" - } - - - portrait_opinion = { - name = "liege_opinion" - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And(Character.IsAlive, Not(Character.IsLocalPlayer))]" - parentanchor = top|hcenter - position = { -10 110 } - - blockoverride "dread_logic" { - visible = "[Character.ShouldShowDreadEffectIconFor( CharacterWindow.GetCourtOwner )]" - frame = "[Character.GetDreadEffectIconFrameFor( CharacterWindow.GetCourtOwner )]" - tooltip = "[Character.GetDreadEffectTooltipFor( CharacterWindow.GetCourtOwner )]" - } - - blockoverride "opinion_text" - { - text = "[Character.GetOpinionOf( CharacterWindow.GetCourtOwner )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCourtOwner )]" - } - - blockoverride "ott_heading_text" - { - text = "[Character.GetOpinionHeadingText( CharacterWindow.GetCourtOwner )]" - } - - blockoverride "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( CharacterWindow.GetCourtOwner )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( CharacterWindow.GetCourtOwner )]" - } - - blockoverride "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( CharacterWindow.GetCourtOwner )]" - } - } - } - - container = { # Player Heir for the local player - name = "heir_player" - datacontext = "[CharacterWindow.GetCharacter.GetPlayerHeir]" - visible = "[And( Character.IsValid, CharacterWindow.GetCharacter.IsLocalPlayer )]" - parentanchor = bottom|right - position = { -20 -6 } - - using = Animation_Character_Window_Refresh - - portrait_head_small = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - blockoverride "portrait_button" - { - alwaystransparent = "[GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('disable_clicking_portraits').GetValue, '(CFixedPoint)0' )]" - } - - } - - text_label_center = { - parentanchor = top|hcenter - position = { 0 85 } - text = "[player_heir|E]" - multiline = yes - autoresize = yes - max_width = 100 - } - } - container = { # Primary Heir for everyone else - name = "heir_primary" - datacontext = "[CharacterWindow.GetCharacter.GetPrimaryTitle.GetHeir]" - visible = "[And( And( Character.IsValid, Not(CharacterWindow.GetCharacter.IsLocalPlayer) ), CharacterWindow.GetCharacter.IsAlive )]" - parentanchor = bottom|right - position = { -20 -6 } - - using = Animation_Character_Window_Refresh - - portrait_head_small = { - parentanchor = right - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - text_label_center = { - parentanchor = top|hcenter - position = { 0 85 } - text = "[primary_heir|E]" - } - } - - ### DEBUG STUFF, please make sure those are visible and usable, especially the watch button, type "watch" into the console to show it - widget = { - name = "debug_buttons" - size = { 200 50 } - parentanchor = top|left - position = { 175 20 } - visible = "[InDebugMode]" - allow_outside = yes - - # Debug personality - vbox = { - hbox = { - spacing = 15 - #text_single = { - # visible = "[AIWatchWindowsEnabled]" - # text = "test_difficulty" - # align = nobaseline - # using = Background_Full_Dim - # tooltipwidget = { - # scripted_score_breakdown_tooltip = { - # blockoverride "breakdown_datacontext" - # { - # datacontext = "[Character.GetDestinyScriptedValueBreakdown( 'character_difficulty_value', GetPlayer, GetPlayer.GetPlayerHeir )]" - # } - # - # blockoverride "header_text" { - # raw_text = "Difficulty Breakdown" - # } - # } - # } - #} - #text_single = { - # visible = "[AIWatchWindowsEnabled]" - # text = "test_interest" - # align = nobaseline - # using = Background_Full_Dim - # tooltipwidget = { - # scripted_score_breakdown_tooltip = { - # blockoverride "breakdown_datacontext" - # { - # datacontext = "[Character.GetDestinyScriptedValueBreakdown( 'destiny_score_interest', GetPlayer, GetPlayer.GetPlayerHeir )]" - # } - # - # blockoverride "header_text" { - # raw_text = "Interest Breakdown" - # } - # } - # } - #} - button = { - using = editor_button - name = "ai_watch_button" - size = { 80 20 } - raw_text = "AI Watch" - align = center|nobaseline - onclick = "[CharacterWindow.OnAIWatch]" - visible = "[AIWatchWindowsEnabled]" - fontcolor = { 1.0 1.0 1.0 1.0 } - } - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( CharacterWindow.GetCharacter.MakeScope )]" - } - } - } - } - - flowcontainer = { - parentanchor = bottom|left - position = { 5 -5 } - spacing = 5 - ignoreinvisible = yes - direction = vertical - - container = { - visible = "[Character.IsLocalPlayer]" - tooltip = "PLAYER_STRESS_TOOLTIP" - using = tooltip_es - - widget = { - visible = "[Not(GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3'))]" - size = { 100% 100%} - - using = Animation_ShowHide_Standard - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.15 0.15 0.15 1 } - margin = { 12 12 } - } - } - - widget = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)3')]" - parentanchor = center - size = { 180% 180% } - using = Animation_ShowHide_Standard - - icon = { - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Red - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.5 - duration = 0.4 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0 - duration = 1 - using = Animation_Curve_Default - } - } - } - - icon = { - parentanchor = vcenter - size = { 35 35 } - texture = "gfx/interface/icons/stress/icon_stress_level.dds" - framesize = { 70 70 } - frame = "[IntToFrameIndex( GetPlayer.GetStressLevel )]" - - - modify_texture = { - visible = "[GreaterThanOrEqualTo_int32(GetPlayer.GetStressLevel, '(int32)2')]" - name = "glow" - texture = "gfx/interface/colors/gold.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = a - next = b - duration = 0.4 - trigger_on_create = yes - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0.3 - } - } - - state = { - name = b - next = a - duration = 1 - using = Animation_Curve_Default - - modify_texture = { - name = "glow" - alpha = 0 - } - } - } - } - - container = { - visible = "[GreaterThan_int32(GetDataModelSize(Character.GetKnownLanguages), '(int32)1')]" - parentanchor = hcenter - tooltip = "KNOWN_LANGUAGES_TOOLTIP" - widget = { - size = { 100% 100%} - - using = Animation_ShowHide_Standard - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.15 0.15 0.15 1 } - margin = { 12 12 } - } - } - icon_culture_pillar = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - } - } - - ## barbershop button - button_normal = { - name = "open_barbershop" - visible = "[Character.CanCustomizePortrait]" - - size = { 35 35 } - datacontext = "[CharacterWindow.AccessCharacter]" - tooltip = "CV_CUSTOMIZE_PORTRAIT" - using = tooltip_ne - - icon_round_button_base = {} - - button_barbershop = { - visible = "[Character.CanCustomizePortrait]" - onclick = "[Character.OnCustomizePortrait]" - onclick = "[CloseGameView( 'character_interaction_menu' )]" - size = { 25 25 } - parentanchor = center - } - } - - button_normal = { - name = "open_kill_list" - visible = "[Character.HasKillsKnownTo( GetPlayer )]" - - size = { 35 35 } - - datacontext = "[Character]" - tooltip = "OPEN_KILL_LIST_TOOLTIP" - using = tooltip_es - - - icon_round_button_base = {} - - button_kill_list = { - onclick = "[ToggleGameViewData( 'kill_list', Character.GetID )]" - size = { 25 25 } - parentanchor = center - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - } - } - - button_normal = { - name = "open_memories" - - size = { 35 35 } - datacontext = "[Character]" - tooltip = "OPEN_MEMORIES_TOOLTIP" - using = tooltip_es - - icon_round_button_base = {} - - button_memories = { - onclick = "[ToggleGameViewData( 'memories', Character.GetID )]" - size = { 25 25 } - parentanchor = center - } - } - - button_normal = { - name = "open_focus_button" - size = { 35 35 } - - visible = "[Or( Character.GetFocus.IsValid, Character.PlayerCanManageFocus )]" - tooltip = "PLAYER_LIFESTYLE_TOOLTIP" - using = tooltip_ne - - icon_round_button_base = {} - - highlight_icon_lifestyle_focus = { - size = { 100% 100% } - visible = "[And(GreaterThan_int32( Character.GetTotalPerkPoints, '(int32)0' ), Character.IsLocalPlayer)]" - texture = "[CharacterWindow.GetCharacter.GetFocus.GetIcon]" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - alpha = 0 - trigger_on_create = yes - duration = 1.2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.5 - duration = 0.6 - using = Animation_Curve_Default - } - - glow = { - glow_radius = 2 - glow_generation_rules= { - glow_alpha_mask = 0 - glow_blur_passes = 2 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - using = Color_Orange - } - } - - highlight_icon_lifestyle_focus = { - size = { 100% 100% } - texture = "[CharacterWindow.GetCharacter.GetFocus.GetIcon]" - onclick = "[CharacterWindow.OnClickFocusButton]" - enabled = "[CharacterWindow.CanClickFocusButton]" - tooltip = "[CharacterWindow.GetFocusButtonTooltip]" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - } - } - - button_open_inventory = { - visible = "[Character.IsAlive]" - name = "open_inventory" - size = { 35 35 } - } - } - - button_normal = { - name = "open_royal_court" - size = { 70 70 } - visible = "[Character.HasRoyalCourt]" - - position = { -30 -30 } - - onclick = "[CharacterWindow.Close]" - onclick = "[Character.OpenRoyalCourtView( 'throne' )]" - datacontext = "[Character.GetCourtGrandeurData]" - tooltip = OPEN_ROYAL_COURT_TOOLTIP - - icon_round_button_base = {} - - button_royal_court = { - onclick = "[CharacterWindow.Close]" - onclick = "[Character.OpenRoyalCourtView( 'throne' )]" - - size = { 30 30 } - parentanchor = center - position = { 9 10 } - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - } - } - } - - ############################ - ### Character internal info - hbox = { - name = "character_info" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_left = 5 - using = Animation_ShowHide_Quick - visible = "[Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_info').GetValue, '(CFixedPoint)0' ) )]" - using = Animation_ShowHide_Quick - - - background = { - using = Background_Area_Dark - margin_left = 5 - } - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "name_and_traits" - layoutpolicy_horizontal = expanding - - using = Animation_Character_Window_Refresh - - vbox = { - name = "name_health_and_relationship" - layoutpolicy_horizontal = expanding - - hbox_character_view_name_age_health = { - margin = { 3 0 } - margin_top = 1 - margin_left = 2 - - blockoverride "name_width" - { - max_width = 398 - } - - blockoverride "name_text" - { - text = "CHARACTER_VIEW_NAME" - } - } - - hbox_character_relation_and_ai = { - name = "character_relation_and_ai" - margin = { 3 0 } - } - } - - ## Traits - hbox_traits_list = { - name = "tutorial_highlight_traits" - datacontext = "[CharacterWindow.GetTraitArrays]" - margin_bottom = 2 - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - ## Skills, Culture, Religion - hbox = { - name = "skills_culture_religion" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - hbox = { - - - hbox = { - name = "tutorial_highlight_skills" - datamodel = "[CharacterWindow.GetSkills]" - margin = { 2 0 } - - using = Animation_Character_Window_Refresh - - item = { - vbox = { - tooltip = "SKILL_ITEM_TOOLTIP" - using = tooltip_ne - spacing = -3 - - icon = { - name = "skill_icon" - size = { 32 32 } - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - text = "[SkillItem.GetValue]" - default_format = "#high" - align = nobaseline - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = "[SkillItem.GetFrame]" - framesize = { 70 26 } - margin = { 10 0 } - } - } - } - } - } - - hbox = { - spacing = -5 - vbox = { - tooltip = "[CharacterWindow.GetCharacter.GetProwessBreakdown]" - using = tooltip_ne - spacing = -3 - - using = Animation_Character_Window_Refresh - - icon = { - name = "prowess_icon" - size = { 32 32 } - texture = "gfx/interface/icons/icon_prowess.dds" - } - - text_single = { - name = "prowess_value" - text = "[CharacterWindow.GetCharacter.GetProwess|0]" - align = nobaseline - } - } - } - - vbox = { - visible = "[Or( Character.GetGovernment.HasRule( 'administrative' ), And( And( Not( Character.HasLandedTitles ), Not( Character.HasLiege ) ), GetPlayer.GetGovernment.HasRule( 'administrative' ) ) )]" - margin_right = 3 - spacing = -3 - - using = Animation_Character_Window_Refresh - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" - using = tooltip_ne - - icon = { - name = "char_governor_efficiency_icon" - size = { 32 32 } - texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" - } - - text_single = { - name = "char_governor_efficiency_value" - text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_VALUE" - align = nobaseline - } - } - - vbox = { - visible = "[Character.HasLandedTitles]" - margin_right = 3 - spacing = -3 - - using = Animation_Character_Window_Refresh - - tooltip = "[Character.GetDreadBreakdown]" - using = tooltip_ne - - icon = { - name = "dread_icon" - size = { 32 32 } - texture = "gfx/interface/icons/icon_dread.dds" - } - - text_single = { - name = "total_dread" - text = "[Character.GetDread|0]" - align = nobaseline - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - spacer = { - size = { 5 5 } - } - } - - hbox = { - name = "faith_and_culture" - layoutpolicy_horizontal = expanding - - using = Animation_Character_Window_Refresh - - button_religion_icon = { - name = "faith_button" - datacontext = "[Character.GetFaith]" - size = { 45 45 } - } - - vbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - datacontext = "[Character.GetFaith]" - layoutpolicy_horizontal = expanding - size = { 0 25 } - onclick = "[OpenGameViewData( 'faith', Faith.GetID )]" - text = "FAITH_CHARACTER_WINDOW" - default_format = "#clickable;italic" - align = left|nobaseline - margin_left = 5 - - tooltipwidget = { faith_tooltip_click = {} } - } - - button_tertiary = { - datacontext = "[Character.GetCulture]" - layoutpolicy_horizontal = expanding - size = { 0 25 } - onclick = "[OpenGameViewData( 'culture_window', Culture.GetID )]" - text = "CULTURE_CHARACTER_WINDOW" - default_format = "#clickable;italic" - align = left|nobaseline - margin_left = 5 - - tooltipwidget = { - culture_tooltip_click = {} - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 0 } - - using = Animation_Character_Window_Refresh - - button_group = { - onclick = "[CharacterWindow.ToggleExpandedModifiers]" - tooltip = "CHARACTER_WINDOW_MODIFIERS" - - button_tertiary = { - size = { 100% 100% } - } - - hbox = { - set_parent_size_to_minimum = yes - margin = { 2 2 } - - fixedgridbox = { - name = "modifiers_grid" - datamodel = "[CharacterWindow.GetTimedModifiers]" - addcolumn = 23 - addrow = 23 - datamodel_wrap = 2 - maxhorizontalslots = 2 - maxverticalslots = 2 - - layoutpolicy_vertical = expanding - - using = Animation_Character_Window_Refresh - - item = { - widget = { - size = { 23 23 } - - modifier_item_icon = { - parentanchor = center - size = { 20 20 } - - blockoverride "input_info_text" { - text = "CHARACTER_WINDOW_MODIFIERS" - } - } - } - } - } - - text_single = { - visible = "[CharacterWindow.IsExtraModifiersNumberShown]" - min_width = 22 - margin_bottom = 10 - text = "CHARACTER_WINDOW_EXTRA_MODIFIERS" - default_format = "#low" - } - } - } - - expand = {} - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - ## House - widget = { - name = "char_view_house_area" #lesson_china_house uses this - datacontext = "[Character.GetHouse]" - layoutpolicy_vertical = expanding - size = { 125 0 } - - using = Animation_Character_Window_Refresh - - vbox = { - expand = { - maximumsize = { 0 5 } - } - - coa_house_big = { - flowcontainer = { - name = "characters_status_in_house" - parentanchor = bottom|right - position = { -10 0 } - ignoreinvisible = yes - - icon = { - name = "bastard" - visible = "[Not(Character.IsLegitimateMemberOfHouse)]" - framesize = { 40 40 } - frame = 4 - size = { 20 20 } - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "CV_TT_BASTARD" - } - - icon = { - name = "head_icon" - visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)no'), '(int32)9')]" - size = { 20 20 } - - texture = "gfx/interface/icons/portraits/relation.dds" - framesize = { 40 40 } - frame = "[Character.GetDynastyHeadRelationFrame('(bool)no')]" - tooltip = "[Character.GetDynastyHeadTooltip]" - } - } - } - - text_multi = { - autoresize = yes - maximumsize = { 118 50 } - text = "[DynastyHouse.GetBaseNameNoTooltip]" - default_format = "#high" - align = top|hcenter - } - - text_multi = { - autoresize = yes - maximumsize = { 118 50 } - visible = "[Not(DynastyHouse.IsValid)]" - text = "[lowborn|E]" - default_format = "#high" - align = top|hcenter - } - - expand = {} - } - } - } - - ######################### - ### Realm, external info - - widget = { - datacontext = "[GetIllustration( 'character_location_exterior' )]" - layoutpolicy_horizontal = expanding - size = { 0 232 } - using = Animation_ShowHide_Quick - visible = "[Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_realm').GetValue, '(CFixedPoint)0' ) )]" - - background = { - using = Background_Bottom_Fade - margin_bottom = 3 - alpha = 0.75 - } - - widget = { - size = { 100% 100% } - - using = Animation_Character_Window_Refresh - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - alpha = 0.35 - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - using = Mask_Rough_Edges - } - } - - vbox = { - name = "realm_info" - min_width = 592 - - hbox_character_view_secondary_stats_bar = {} - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "realm_shield" - visible = "[Character.HasLandedTitles]" - layoutpolicy_vertical = expanding - spacing = 4 - margin_top = -4 - - using = Animation_Character_Window_Refresh - - coa_realm_medium_crown = { - datacontext = "[Character]" - - blockoverride "coa_button" - { - name = "realm_shield" - tooltip = "[Character.GetDefaultRealmFlagTooltipPrimaryTitleClickInfo]" - onclick = "[DefaultOnCoatOfArmsClick(Character.GetPrimaryTitle.GetID)]" - } - } - - vbox = { - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And( Not( Character.GetPrimaryTitle.HasFaction ), And( Character.HasLandedTitles, Character.IsAlive ) )]" - tooltip = "[Character.GetDomainLimitTooltip]" - spacing = -2 - - background = { - visible = "[GreaterThan_int32( Character.GetDomainSize, Character.GetDomainLimit )]" - using = Status_Bad - } - - icon = { - name = "domain_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_domain.dds" - } - - text_single = { - name = "domain_limit" - text = "[Character.GetDomainSize]/[Character.GetDomainLimit]" - default_format = "#high" - align = center|nobaseline - } - } - - flowcontainer = { - margin = { 3 2 } - ignoreinvisible = yes - - background = { - using = Background_Area_Dark - } - - flowcontainer = { - visible = "[Character.IsTheocraticLessee]" - tooltip = "CV_THEOCRACY_LESSEE_TOOLTIP" - spacing = -2 - direction = horizontal - - background = { - using = Background_Area_Dark - margin_right = 10 - } - - icon = { - name = "theocracy_lessee_info" - texture = "gfx/interface/icons/icon_holding_church.dds" - size = { 30 30 } - } - - text_single = { - name = "domain_limit" - parentanchor = hcenter - text = "[Character.GetNumTitlesFromTheocraticLease]" - default_format = "#high" - align = vcenter - margin_top = 2 - } - } - - icon = { - name = "religious_head_info" - visible = "[Character.IsReligiousHead]" - size = { 30 30 } - texture = "gfx/interface/icons/icon_head_of_faith_income.dds" - tooltip = "CV_THEOCRACY_RELIGIOUS_HEAD_TOOLTIP" - } - } - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 5 - - ## Realm name and stats - hbox = { - name = "name_and_stats" - layoutpolicy_horizontal = expanding - margin_right = 10 - - using = Animation_Character_Window_Refresh - - vbox = { - visible = "[Not(Character.HasLandedTitles)]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - max_width = 280 - - text_single = { - name = "character_title" - layoutpolicy_horizontal = expanding - text = "CV_UNLANDED" - using = Font_Size_Medium - align = nobaseline - } - - text_single = { - name = "government_type" - layoutpolicy_horizontal = expanding - text = "[Character.GetLocationDesc]" - default_format = "#low" - format_override = { high medium } - format_override = { V medium } - align = nobaseline - autoresize = no - } - } - - realm_name_and_type_vbox = { - name = "realm_name_and_type" - visible = "[Character.HasLandedTitles]" - datacontext = "[Character.GetPrimaryTitle]" - max_width = 250 - } - - expand = {} - - # Radiance (enabled) - hbox = { - datacontext = "[Character.GetRadianceBreakdown]" - visible = "[Character.ShouldShowRadiance]" - margin = { 4 4 } - spacing = 4 - - background = { - margin = { 6 6 } - using = Background_Area_Titles - } - - using = Animation_Character_Window_Refresh - using = tooltip_se - - expand = {} - - icon = { - texture = "gfx/interface/icons/mandala_radiance.dds" - size = { 25 25 } - } - - expand = {} - - text_single = { - name = "radiance" - text = "[Character.GetRadianceValueNoTooltip|V0]/[GetDefine( 'NMandala', 'MAX_RADIANCE' )|V0]" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - visible = "[ValueBreakdown.HasTooltip]" - widget_value_breakdown_tooltip = {} - } - - expand = {} - } - - # Radiance (disabled) - hbox = { - visible = "[And( Character.GetGovernment.IsType( 'mandala_government' ), Not( Character.ShouldShowRadiance ) )]" - enabled = no - margin = { 4 4 } - spacing = 4 - - background = { - margin = { 6 6 } - using = Background_Area_Titles - } - - using = Animation_Character_Window_Refresh - using = tooltip_se - - expand = {} - - icon = { - texture = "gfx/interface/icons/mandala_radiance.dds" - size = { 25 25 } - } - - tooltip = "RADIANCE_TOOLTIP_DISABLED" - - expand = {} - } - - # Treasury - hbox = { - visible = "[Character.HasTreasury]" - margin = { 4 4 } - spacing = 4 - - background = { - margin = { 6 0 } - using = Background_Area_Titles - } - - using = Animation_Character_Window_Refresh - - tooltip = "[Character.GetTreasuryTooltipWithBalance]" - using = tooltip_ne - - icon = { - name = "treasury_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_imperial_treasury.dds" - } - - text_single = { - name = "treasury_value_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Character.GetTreasury, '(CFixedPoint)0')]" - max_width = 50 - - text = "[Character.GetTreasury|0]" - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - name = "treasury_value_negative" - visible = "[LessThan_CFixedPoint(Character.GetTreasury, '(CFixedPoint)0')]" - max_width = 50 - - text = "[Character.GetTreasury|0]" - align = nobaseline - default_format = "#N" - using = Font_Size_Medium - } - } - - spacer = { - visible = "[And( Character.HasTreasury, GreaterThan_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)0' ) )]" - size = { 10 0 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 2 - - vbox_titles_claims_box = { - visible = "[Not( Character.GetPrimaryTitle.HasFaction )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Character_Window_Refresh - - blockoverride "titles_extra_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )|=]" - } - - blockoverride "titles_max_slots" - { - datamodel_wrap = 8 - } - - blockoverride "claims_extra_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )]" - text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )|=]" - } - - blockoverride "claims_max_slots" - { - datamodel_wrap = 8 - } - } - - expand = { - layoutpolicy_horizontal = expanding - visible = "[Character.GetPrimaryTitle.HasFaction]" - } - expand = {} - } - expand = {} - } - - expand = {} - - vbox = { - name = "diplomacy_items" - - layoutpolicy_vertical = expanding - - vbox_diplomacy_box = { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)0' )]" - margin_top = 4 - margin_right = 5 - using = Animation_Character_Window_Refresh - - blockoverride "diplomacy_extra_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetDiplomacyItems), '(int32)4' )|=]" - } - - blockoverride "diplomacy_slots" - { - maxverticalslots = 2 - maxhorizontalslots = 2 - datamodel_wrap = 2 - } - } - expand = {} - } - } - } - } - - ###################################################### - ################### BOTTOM AREA ###################### - ###################################################### - - ### TABS - hbox = { - name = "tabs" - visible = "[And(CharacterWindow.AreNoneExpanded, Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_sheet_bottom').GetValue, '(CFixedPoint)0' ) ))]" - layoutpolicy_horizontal = expanding - using = Animation_ShowHide_Quick - - button_tab = { - name = "family_button" - datacontext = "[CharacterWindow.GetCharacter]" - layoutpolicy_horizontal = expanding - - onclick = "[CharacterWindow.SetTab('family')]" - down = "[CharacterWindow.IsTabShown('family')]" - - using = tooltip_above - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "CV_TAB_FAMILY" - default_format = "#low" - } - - text_single = { - align = center - text = "[CharacterWindow.GetTabItemsCount('family')]" - default_format = "#low" - margin_right = 15 - min_width = 30 - - using = Animation_Character_Window_Refresh - } - } - } - - button_tab = { - name = "relations_button" - datacontext = "[CharacterWindow.GetCharacter]" - layoutpolicy_horizontal = expanding - - onclick = "[CharacterWindow.SetTab('relations')]" - down = "[CharacterWindow.IsTabShown('relations')]" - - using = tooltip_above - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "CV_TAB_RELATIONS" - default_format = "#low" - } - - text_single = { - align = center - text = "[CharacterWindow.GetTabItemsCount('relations')]" - default_format = "#low" - margin_right = 15 - min_width = 30 - - using = Animation_Character_Window_Refresh - } - } - } - - button_tab = { - name = "court_button" - datacontext = "[CharacterWindow.GetCharacter]" - # visible = "[Not(Character.IsPlayer)]" - layoutpolicy_horizontal = expanding - - onclick = "[CharacterWindow.SetTab('court')]" - down = "[CharacterWindow.IsTabShown('court')]" - - using = tooltip_above - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "CV_TAB_COURT" - default_format = "#low" - } - - text_single = { - align = center - text = "[CharacterWindow.GetTabItemsCount('court')]" - default_format = "#low" - margin_right = 15 - min_width = 30 - - using = Animation_Character_Window_Refresh - } - } - } - - button_tab = { - name = "vassals_button" - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And( Character.IsRuler, Not( IsLandlessAdventurer( Character ) ) )]" - - layoutpolicy_horizontal = expanding - - onclick = "[CharacterWindow.SetTab('subjects')]" - down = "[CharacterWindow.IsTabShown('subjects')]" - - using = tooltip_above - - hbox = { - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "CV_TAB_SUBJECTS" - default_format = "#low" - } - - text_single = { - align = center - text = "[CharacterWindow.GetTabItemsCount('subjects')]" - default_format = "#low" - margin_right = 15 - min_width = 30 - - using = Animation_Character_Window_Refresh - } - } - } - } - - spacer = { size = { 0 2 } } - - widget = { - visible = "[CharacterWindow.AreNoneExpanded]" - layoutpolicy_vertical = preferred - layoutpolicy_horizontal = expanding - size = { 0 350 } - - using = Animation_Tab_Switch - - #################################### - ########### FAMILY TAB ############# - #################################### - - widget = { - name = "family" - visible = "[And(CharacterWindow.IsTabShown('family'), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_character_sheet_bottom').GetValue, '(CFixedPoint)0' ) ))]" - size = { 100% 100% } - - using = Animation_Tab_Switch - - vbox = { - name = "family_main_view" - visible = "[Not( Or(CharacterWindow.IsRelationExpanded( 'children' ), Or(CharacterWindow.IsRelationExpanded( 'siblings' ), CharacterWindow.IsRelationExpanded( 'concubines' ), ) ) )]" - - widget = { - name = "parents_grandparents_spouses" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - hbox = { - vbox_character_row_item = { - name = "children" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetParents]" - } - - blockoverride "header_text" - { - text = "PARENTS" - } - - blockoverride "expand_button" {} - } - - vbox_character_row_item = { - name = "grandparents" - visible = "[Not(Or(GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' ), GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' )))]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetGrandparents]" - } - - blockoverride "header_text" - { - text = "GRANDPARENTS" - } - - blockoverride "expand_button" {} - } - - vbox_character_row_item = { - name = "grandparents_contracted" - visible = "[Or(GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' ), GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' ))]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetGrandparents]" - } - - blockoverride "header_text" - { - text = "GRANDPARENTS" - } - - blockoverride "expand_button" {} - - blockoverride "gridbox" - { - overlappingitembox = { - size = { 170 90 } - - block "portrait_datamodel" { - datamodel = "[CharacterWindow.GetParents]" - } - - item = { - portrait_head_small = { - blockoverride "portrait_button" - { - using = tooltip_ne - } - - } - } - } - } - } - - vbox_character_row_item = { - name = "secondary_spouses" - visible = "[GreaterThan_int32( Character.GetMaxSpouses, '(int32)1' )]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetSecondarySpouses]" - } - - blockoverride "header_text" - { - text = "SECONDARY_SPOUSES" - } - - blockoverride "expand_button" {} - - blockoverride "find_partner" - { - fixedgridbox = { - name = "potential" - datamodel = "[GetNullCharacterDataModel( Character.CalcUnusedSecondarySpouseSlots )]" - visible = "[Character.IsPlayerInteractionShown('marry_off_interaction')]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - - item = { - container = { - portrait_head_small = { - visible = "[Not( ObjectsEqual( GetPlayer, CharacterWindow.GetCharacter ) )]" - - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]" - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "CHARACTER_WINDOW_FIND_SPOUSE" - } - blockoverride "onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 20 20 } - position = {-5 -5} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - - portrait_head_small = { - visible = "[ObjectsEqual( GetPlayer, CharacterWindow.GetCharacter )]" - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]" - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "CHARACTER_WINDOW_FIND_SPOUSE_SELF" - } - blockoverride "onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('marry_off_interaction')]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 26 26 } - position = {-5 0} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - } - } - } - } - } - - vbox_character_row_item = { - name = "consorts" - visible = "[And(GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' ), LessThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)3' ))]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[DataModelFirst( CharacterWindow.GetConcubines, '(int32)3' )]" - } - - blockoverride "header_text" - { - text = "CV_CONCUBINES_HEADING" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)3' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)3' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)3' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'concubines' )]" - } - - blockoverride "find_partner" - { - fixedgridbox = { - name = "potential" - datamodel = "[GetNullCharacterDataModel( Subtract_int32( '(int32)3', GetDataModelSize(CharacterWindow.GetConcubines) ) )]" - visible = "[Character.IsPlayerInteractionShown('find_concubine')]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - container = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('find_concubine')]" - enabled = "[CharacterWindow.GetCharacter.IsPlayerInteractionValid('find_concubine')]" - - button_plus = { - parentanchor = center - alwaystransparent = yes - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip('find_concubine')]" - } - } - } - } - } - } - } - - vbox_character_row_item = { - name = "consorts_contracted" - visible = "[And(GreaterThan_int32( Character.GetMaxConsorts, '(int32)0' ), GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)2' ))]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[DataModelFirst( CharacterWindow.GetConcubines, Character.GetMaxConsorts )]" - } - - blockoverride "header_text" - { - text = "CV_CONCUBINES_HEADING" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), Character.GetMaxConsorts )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetConcubines), Character.GetMaxConsorts )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetConcubines), '(int32)3' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'concubines' )]" - } - - blockoverride "find_partner" - { - fixedgridbox = { - name = "potential" - datamodel = "[GetNullCharacterDataModel( '(int32)1' )]" - visible = "[And(GreaterThan_int32( Character.GetMaxConsorts, GetDataModelSize(CharacterWindow.GetConcubines) ), Character.IsPlayerInteractionShown('find_concubine'))]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction('find_concubine')]" - enabled = "[CharacterWindow.GetCharacter.IsPlayerInteractionValid('find_concubine')]" - - button_plus = { - parentanchor = center - alwaystransparent = yes - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip('find_concubine')]" - } - } - } - } - } - - blockoverride "gridbox" - { - overlappingitembox = { - size = { 170 90 } - - block "portrait_datamodel" { - datamodel = "[CharacterWindow.GetConcubines]" - } - - item = { - portrait_head_small = { - blockoverride "portrait_button" - { - using = tooltip_ne - } - - } - } - } - } - } - - expand = {} - } - } - - widget = { - name = "children" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - vbox_character_row_item = { - name = "children" - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetChildren]" - } - - blockoverride "header_text" - { - text = "CV_CHILDREN_HEADING" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)7' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)7' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetChildren), '(int32)7' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'children' )]" - } - } - } - - widget = { - name = "siblings" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - vbox_character_row_item = { - name = "siblings" - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetSiblings]" - } - - blockoverride "header_text" - { - text = "CV_SIBLINGS_HEADING" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)7' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)7' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetSiblings), '(int32)7' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'siblings' )]" - } - } - } - - expand = {} - } - - ### SIBLINGS EXPANDED - scrollbox = { - name = "family_siblings_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'siblings' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_item = { - name = "siblings" - margin_top = 10 - spacing = 5 - - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetSiblings]" - } - - blockoverride "header_text" - { - text = "CV_SIBLINGS_HEADING" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'siblings' )]" - down = "[CharacterWindow.IsRelationExpanded( 'siblings' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### CHILDREN EXPANDED - scrollbox = { - name = "family_children_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'children' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_item = { - name = "children" - margin_top = 10 - spacing = 5 - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetChildren]" - } - - blockoverride "header_text" - { - text = "CV_CHILDREN_HEADING" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'children' )]" - down = "[CharacterWindow.IsRelationExpanded( 'children' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### CONCUBINES EXPANDED - scrollbox = { - name = "family_concubines_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'concubines' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_item = { - name = "concubines" - margin_top = 10 - spacing = 5 - - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetConcubines]" - } - - blockoverride "header_text" - { - text = "CV_CONCUBINES_HEADING" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'concubines' )]" - down = "[CharacterWindow.IsRelationExpanded( 'concubines' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - } - - #################################### - ########## RELATIONS TAB ########### - #################################### - - widget = { - name = "relations" - visible = "[CharacterWindow.IsTabShown('relations')]" - size = { 100% 100% } - - using = Animation_Tab_Switch - - vbox = { - name = "relations_main_view" - visible = "[And( And( Not(CharacterWindow.AreRelationsExpanded( 'friends', 'rivals', 'lovers') ), Not(CharacterWindow.IsRelationExpanded('grudges')) ), Not(CharacterWindow.IsRelationExpanded('disciples')) ) ]" - - widget = { - name = "first_row" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - hbox = { - vbox_character_row_item = { - name = "wards" - visible = "[CharacterWindow.GetCharacter.IsAdult]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'ward' ) )]" - } - - blockoverride "header_text" - { - text = "WARDS_LABEL" - } - - blockoverride "expand_button" {} - - ### WARD FINDER - blockoverride "find_partner" - { - - ### FIND WARD FOR ME - fixedgridbox = { - name = "educate_ward" - datamodel = "[GetNullCharacterDataModel( CharacterWindow.CalcUnusedRelationSlots( GetRelation( 'ward' ), '(int32)2' ) )]" - visible = "[Character.IsPlayerInteractionShown('educate_child_interaction')]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - container = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction( 'educate_child_interaction' )]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 26 26 } - position = {-2 -4} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip( 'educate_child_interaction' )]" - } - } - } - } - } - - ### FIND WARD FOR COURTIER - fixedgridbox = { - name = "find_ward" - datamodel = "[GetNullCharacterDataModel( CharacterWindow.CalcUnusedRelationSlots( GetRelation( 'ward' ), '(int32)2' ) )]" - visible = "[Character.IsPlayerInteractionShown('offer_ward_interaction')]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - container = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction( 'offer_ward_interaction' )]" - enabled = "[CharacterWindow.GetCharacter.IsPlayerInteractionValid( 'offer_ward_interaction' )]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 20 20 } - position = {-2 -5} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip( 'offer_ward_interaction' )]" - } - } - } - } - } - } - } - - vbox_character_row_item = { - name = "diarch" - datacontext = "[CharacterWindow.GetCharacter.GetDiarchy.GetDiarch]" - visible = "[CharacterWindow.GetCharacter.HasActiveDiarchy]" - layoutpolicy_vertical = expanding - - blockoverride "minimum_width" {} - - blockoverride "gridbox" { - portrait_head_small = { - - blockoverride "portrait_button" - { - using = tooltip_ne - } - blockoverride "glow_visible" - { - visible = no - } - } - } - - blockoverride "header_text" - { - text = "[CharacterWindow.GetCharacter.GetDiarchTitle]" - max_width = 75 - } - - blockoverride "expand_button" {} - } - - ### LOVERS 5 PORTRAITS - vbox_character_row_relationship_item = { - name = "lovers_no_diarchy" - visible = "[And( And( CharacterWindow.GetCharacter.IsAdult, Not( CharacterWindow.GetCharacter.HasActiveDiarchy ) ), Not( GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) ) ), '(int32)0' ) ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]" - } - - blockoverride "header_text" - { - text = "LOVERS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)5' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)5' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)5' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]" - } - - blockoverride "gridbox_slots" - { - maxhorizontalslots = 5 - } - } - - ### LOVERS 4 PORTRAITS (FOR WHEN REGENT OR ELDER PORTRAIT IS VISIBLE) - vbox_character_row_relationship_item = { - name = "lovers_diarchy" - visible = "[Or( And( And( CharacterWindow.GetCharacter.IsAdult, CharacterWindow.GetCharacter.HasActiveDiarchy ), Not( GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) ) ), '(int32)0' ) ) ), And( GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) ) ), '(int32)0' ), And( CharacterWindow.GetCharacter.IsAdult, Not( CharacterWindow.GetCharacter.HasActiveDiarchy ) ) ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]" - } - - blockoverride "header_text" - { - text = "LOVERS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)4' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)4' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)4' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]" - } - - blockoverride "gridbox_slots" - { - maxhorizontalslots = 4 - } - } - - ### LOVERS 3 PORTRAITS (FOR WHEN REGENT AND ELDER PORTRAIT IS VISIBLE) - vbox_character_row_relationship_item = { - name = "lovers_diarchy_and_elder" - visible = "[And( And( CharacterWindow.GetCharacter.IsAdult, CharacterWindow.GetCharacter.HasActiveDiarchy ), GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) ) ), '(int32)0' ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]" - } - - blockoverride "header_text" - { - text = "LOVERS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)3' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)3' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) ) ), '(int32)3' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]" - } - - blockoverride "gridbox_slots" - { - maxhorizontalslots = 3 - } - } - - vbox_character_row_item = { - name = "guardian" - visible = "[Not(CharacterWindow.GetCharacter.IsAdult)]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'guardian' ) )]" - } - - blockoverride "header_text" - { - text = "GUARDIAN_LABEL" - } - - blockoverride "expand_button" {} - - ### GUARDIAN FINDER - blockoverride "find_partner" - { - ### FIND GUARDIAN FOR ME - fixedgridbox = { - name = "educate_child" - datamodel = "[GetNullCharacterDataModel( CharacterWindow.CalcUnusedRelationSlots( GetRelation( 'guardian' ), '(int32)1' ) )]" - visible = "[Character.IsPlayerInteractionShown( 'educate_child_interaction' )]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - container = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction( 'educate_child_interaction' )]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 20 20 } - position = {-2 -5} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip( 'educate_child_interaction' )]" - } - } - } - } - } - - ### GUARDIAN FINDER FOR COURTIER - fixedgridbox = { - name = "find_guardian" - datamodel = "[GetNullCharacterDataModel( CharacterWindow.CalcUnusedRelationSlots( GetRelation( 'guardian' ), '(int32)1' ) )]" - visible = "[Character.IsPlayerInteractionShown( 'offer_guardianship_interaction' )]" - - flipdirection = yes - addcolumn = 85 - addrow = 90 - maxverticalslots = 1 - - item = { - container = { - portrait_head_small = { - blockoverride "portrait_button_template_onclick" - { - onclick = "[CharacterWindow.GetCharacter.OpenPlayerInteraction( 'offer_guardianship_interaction' )]" - enabled = "[CharacterWindow.GetCharacter.IsPlayerInteractionValid( 'offer_guardianship_interaction' )]" - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 26 26 } - position = {-2 -4} - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[CharacterWindow.GetCharacter.GetPlayerInteractionTooltip( 'offer_guardianship_interaction' )]" - } - } - } - } - } - } - } - - vbox_character_row_item = { - name = "crushes" - visible = "[Not(CharacterWindow.GetCharacter.IsAdult)]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'crush' ) )]" - } - - blockoverride "header_text" - { - text = "CRUSHES_LABEL" - } - - blockoverride "expand_button" {} - } - - ### ELDER PORTRAIT - vbox_character_row_item = { - name = "elder" - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) ) ), '(int32)0' )]" - layoutpolicy_vertical = expanding - - blockoverride "minimum_width" {} - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'elder' ) )]" - } - - blockoverride "header_text" - { - text = "ELDER_LABEL" - max_width = 75 - } - - blockoverride "expand_button" {} - } - - expand = {} - } - } - - widget = { - name = "second_row" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - hbox = { - ### FRIENDS 7 PORTRAITS - vbox_character_row_relationship_item = { - name = "friends" - visible = "[Not( GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)0' ) )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )]" - } - - blockoverride "header_text" - { - text = "FRIENDS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)7' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)7' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)7' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'friends' )]" - } - } - ### FRIENDS 4 PORTRAITS - vbox_character_row_relationship_item = { - name = "friends_with_disciples" - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)0' )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )]" - } - - blockoverride "header_text" - { - text = "FRIENDS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)4' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)4' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) ) ), '(int32)4' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'friends' )]" - } - - blockoverride "gridbox_slots" - { - maxhorizontalslots = 4 - } - } - ### DISCIPLES PORTRAITS - vbox_character_row_item = { - name = "disciples" - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)0' )]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) )]" - } - - blockoverride "header_text" - { - text = "DISCIPLE_LABEL" - datacontext = "[GuiScope.SetRoot( CharacterWindow.GetCharacter.MakeScope ).GetScriptValueBreakdown( 'disciples_limit_value' )]" - alwaystransparent = yes - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header_text" - { - text = "disciples_limit_value_name" - } - } - } - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)3' )]" - text = "[GetNumberAbove_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)3' )|=]" - } - - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize( CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) ) ), '(int32)3' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'disciples' )]" - } - - blockoverride "gridbox_slots" - { - maxhorizontalslots = 3 - } - } - - expand = {} - } - } - - widget = { - name = "third_row" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - hbox = { - vbox_character_row_relationship_item = { - name = "rivals" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )]" - } - - blockoverride "header_text" - { - text = "RIVALS_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)7' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)7' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )), '(int32)7' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'rivals' )]" - } - } - - vbox_character_row_relationship_item = { - name = "bullies" - visible = "[Not( CharacterWindow.GetCharacter.IsAdult )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'bully' ) )]" - } - - blockoverride "header_text" - { - text = "BULLIES_LABEL" - } - - blockoverride "expand_button" {} - } - - vbox_character_row_relationship_item = { - name = "victims" - visible = "[Not( CharacterWindow.GetCharacter.IsAdult )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'victim' ) )]" - } - - blockoverride "header_text" - { - text = "VICTIMS_LABEL" - } - - blockoverride "expand_button" {} - } - - vbox_character_row_relationship_item = { - name = "grudges" - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) )), '(int32)1')]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_datamodel" { - datamodel = "[DataModelFirst(CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) ), '(int32)2')]" - } - - blockoverride "header_text" - { - text = "GRUDGES_LABEL" - } - - blockoverride "remaining_items" - { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) )), '(int32)2' )]" - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) )), '(int32)2' )|=]" - } - - blockoverride "expand_button_inside" { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) )), '(int32)2' )]" - onclick = "[CharacterWindow.ToggleExpandedRelation( 'grudges' )]" - } - } - - expand = {} - } - } - - expand = {} - } - ### RIVALS EXPANDED - scrollbox = { - name = "rivals_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'rivals' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_relationship_item = { - name = "rivals" - margin_top = 10 - spacing = 5 - - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'rival' ) )]" - } - - blockoverride "header_text" - { - text = "RIVALS_LABEL" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'rivals' )]" - down = "[CharacterWindow.IsRelationExpanded( 'rivals' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### FRIENDS EXPANDED - scrollbox = { - name = "friends_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'friends' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_relationship_item = { - name = "friends" - margin_top = 10 - spacing = 5 - - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'friend' ) )]" - } - - blockoverride "header_text" - { - text = "FRIENDS_LABEL" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'friends' )]" - down = "[CharacterWindow.IsRelationExpanded( 'friends' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### LOVERS EXPANDED - scrollbox = { - name = "lovers_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'lovers' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_relationship_item = { - name = "friends" - margin_top = 10 - spacing = 5 - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'lover' ) )]" - } - - blockoverride "header_text" - { - text = "LOVERS_LABEL" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'lovers' )]" - down = "[CharacterWindow.IsRelationExpanded( 'lovers' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### DISCIPLES EXPANDED - scrollbox = { - name = "disciples_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'disciples' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_relationship_item = { - name = "disciples" - margin_top = 10 - spacing = 5 - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'disciple' ) )]" - } - - blockoverride "header_text" - { - text = "DISCIPLE_LABEL" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'disciples' )]" - down = "[CharacterWindow.IsRelationExpanded( 'disciples' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - - ### GRUDGES EXPANDED - scrollbox = { - name = "grudges_expanded" - visible = "[CharacterWindow.IsRelationExpanded( 'grudges' )]" - size = { 100% 100% } - - blockoverride "scrollbox_replace_vbox" { - vbox_character_row_relationship_item = { - name = "grudges" - margin_top = 10 - spacing = 5 - - blockoverride "portrait_datamodel" { - datamodel = "[CharacterWindow.GetRelationsOfType( GetRelation( 'grudge' ) )]" - } - - blockoverride "header_text" - { - text = "GRUDGES_LABEL" - } - - blockoverride "expand_button_inside" { - onclick = "[CharacterWindow.ToggleExpandedRelation( 'grudges' )]" - down = "[CharacterWindow.IsRelationExpanded( 'grudges' )]" - } - - blockoverride "gridbox_slots" {} - } - } - } - } - - #################################### - ############ COURT TAB ############# - #################################### - - vbox_character_list = { - datacontext = "[CharacterWindow.GetCourt]" - visible = "[CharacterWindow.IsTabShown('court')]" - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - # unique name needed to distinct from vassal sort options - name = "court_sort_options" - } - } - - blockoverride "scrollbox_margins" { - margin_right = 15 - margin_top = 10 - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 560 - addrow = 125 - setitemsizefromcell = yes - - item = { - widget_courtier_item = { - datacontext = "[CharacterListItem.GetCharacter]" - - # blockoverride "description_relation_text" { - # text = "[Character.GetSpecialGuestRelationDescription]" - # } - - blockoverride "gridbox_items" - { - datamodel_wrap = 7 - maxverticalslots = 2 - } - - blockoverride "action_buttons" {} - } - } - } - } - - blockoverride "character_count" - { - hbox = { - layoutpolicy_horizontal = growing - margin = { 15 0 } - margin_bottom = 5 - spacing = 5 - - block "bottom_bar" {} - - expand = {} - - widget = { - size = { 20 15 } - - warning_icon = { - size = { 20 20 } - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - tooltip = "CHARACTER_FINDER_FILTER_SET" - } - } - - text_single = { - name = "character_count" - datacontext = "[CharacterSelectionList]" - text = "CHARACTER_FINDER_COUNT" - default_format = "#low" - } - } - } - } - - #################################### - ########### VASSALS TAB ############ - #################################### - - vbox_character_list = { - visible = "[CharacterWindow.IsTabShown('subjects')]" - datacontext = "[CharacterWindow.GetVassals]" - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - # unique name needed to distinct from court sort options - name = "vassal_sort_options" - } - } - - blockoverride "scrollbox_margins" { - margin = { 0 5 } - margin_right = 10 - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 575 - addrow = 125 - setitemsizefromcell = yes - - item = { - widget_vassal_list_item = { - datacontext = "[CharacterListItem.GetCharacter]" - - blockoverride "vassal_buttons" { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[And( Character.IsPowerfulVassal, Character.IsVassalOf( Character.GetOverlord ) )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_POWERFUL_VASSAL" - align = nobaseline - max_width = 200 - } - - expand = {} - } - } - blockoverride "own_vassal" {} - - blockoverride "realm_size_powerful_status" { - hbox = { - spacing = 10 - - text_single = { - visible = "[NotEqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)2')]" #nonbaron - layoutpolicy_horizontal = expanding - - text = "REALM_WINDOW_SIZE" - align = nobaseline - max_width = 200 - - tooltip = "REALM_WINDOW_SIZE_TT" - } - - expand = {} - } - } - - blockoverride "release_tributary_button" {} - } - } - } - } - - blockoverride "character_count" - { - hbox = { - layoutpolicy_horizontal = growing - margin = { 15 0 } - margin_bottom = 5 - spacing = 5 - - block "bottom_bar" {} - - expand = {} - - widget = { - size = { 20 15 } - - warning_icon = { - size = { 20 20 } - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - tooltip = "CHARACTER_FINDER_FILTER_SET" - } - } - - text_single = { - name = "character_count" - datacontext = "[CharacterSelectionList]" - text = "CHARACTER_FINDER_COUNT" - default_format = "#low" - } - } - } - } - } - - ### EXPANDED VIEWS - - # TRAITS EXPANDED - scrollbox = { - name = "traits_expanded" - visible = "[CharacterWindow.AreTraitsExpanded]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - spacing = 10 - - vbox = { - spacing = 10 - - text_label_center = { - text = "MODIFIERS" - } - - text_single = { - visible = "[IsDataModelEmpty(CharacterWindow.GetTimedModifiers)]" - text = "CV_NO_MODIFIERS" - default_format = "#low;italic" - } - - dynamicgridbox = { - name = "modifiers_grid" - datamodel = "[CharacterWindow.GetTimedModifiers]" - datamodel_wrap = 8 - flipdirection = yes - - item = { - modifier_item_icon = { - size = { 35 35 } - } - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - spacing = 10 - datacontext = "[CharacterWindow.GetTraitArrays]" - - text_label_center = { - text = "TRAITS" - } - - fixedgridbox = { - name = "personality_traits_grid" - datamodel = "[TraitArrays.GetPersonalityTraits]" - addcolumn = 85 - addrow = 105 - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon_trait = { - text_multi = { - parentanchor = bottom|hcenter - widgetanchor = top|hcenter - position = { 0 -5 } - autoresize = yes - max_width = 80 - text = "[Trait.GetNameNoTooltip(Character.Self)]" - default_format = "#high" - align = hcenter - } - } - } - } - - fixedgridbox = { - name = "traits_grid" - datamodel = "[TraitArrays.GetTraits]" - addcolumn = 85 - addrow = 105 - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon_trait = { - text_multi = { - parentanchor = bottom|hcenter - widgetanchor = top|hcenter - position = { 0 -5 } - autoresize = yes - max_width = 80 - text = "[Trait.GetNameNoTooltip(Character.Self)]" - default_format = "#high" - align = hcenter - } - } - } - } - } - } - } - - # TITLES EXPANDED - scrollbox = { - name = "titles_expanded" - visible = "[CharacterWindow.AreTitlesExpanded]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - spacing = 15 - - text_label_center = { - text = "CV_TITLES_NOCOUNT" - } - - fixedgridbox = { - name = "titles_box_bishop" - datacontext = "[CharacterWindow.GetCharacter]" - flipdirection = yes - addrow = 90 - addcolumn = 270 - datamodel_wrap = 2 - - datamodel = "[CharacterWindow.GetTitles]" - - item = { - flowcontainer = { - datacontext = "[TitleItem.GetTitle]" - spacing = 5 - - coa_title_small_crown = { - using = tooltip_ne - } - - text_multi = { - text = "[Title.GetNameNoTooltip]" - parentanchor = vcenter - autoresize = yes - default_format = "#high" - using = Font_Size_Medium - max_width = 190 - margin_top = 5 - } - } - } - } - } - } - - # CLAIMS EXPANDED - scrollbox = { - name = "claims_expanded" - visible = "[CharacterWindow.AreClaimsExpanded]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - spacing = 10 - - text_label_center = { - text = "CV_CLAIMS_NOCOUNT" - } - - flowcontainer = { - name = "titles_box_bishop" - datacontext = "[CharacterWindow.GetCharacter]" - datamodel = "[CharacterWindow.GetClaims]" - direction = vertical - spacing = 10 - - item = { - flowcontainer = { - spacing = 5 - using = tooltip_ne - tooltip = "[Claim.GetTooltip]" - - coa_title_medium = { - datacontext = "[Claim.GetTitle]" - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - text_single = { - text = "[Claim.GetTitle.GetNameNoTooltip|U]" - default_format = "#high" - using = Font_Size_Big - } - - text_single = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - text = "[pressed_claim_i][pressed_claim|E]" - } - - text_single = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - text = "[unpressed_claim_i][unpressed_claim|E]" - } - - text_single = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - text = "[implicit_claim_i][implicit_claim|E]" - } - - text_multi = { - visible = "[Claim.GetTitle.GetHolder.IsValid]" - text = "CLAIM_TITLE_HOLDER" - max_width = 400 - autoresize = yes - } - - text_single = { - visible = "[Not(Claim.GetTitle.GetHolder.IsValid)]" - text = "CLAIM_TITLE_NOT_CREATED" - default_format = "#weak" - align = nobaseline - } - } - } - } - } - } - } - - # DIPLOMACY EXPANDED - scrollbox = { - name = "diplomacy_expanded" - visible = "[CharacterWindow.AreDiplomacyExpanded]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - spacing = 15 - - text_label_center = { - text = "CV_DIPLOMACY" - } - - vbox = { - name = "diplomacy_items" - datamodel = "[CharacterWindow.GetDiplomacyItems]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - divider_light = { - layoutpolicy_horizontal = expanding - } - - button_group = { - layoutpolicy_horizontal = expanding - alwaystransparent = "[DiplomacyItem.IsConfederation]" - - onclick = "[DiplomacyItem.OnClick]" - - tooltip = "[DiplomacyItem.GetTooltip]" - using = tooltip_se - - hbox = { - widget = { - size = { 65 74 } - - button = { - parentanchor = top|hcenter - alwaystransparent = "[DiplomacyItem.IsConfederation]" - position = { 0 -30 } - size = { 50 50 } - texture = "gfx/interface/icons/diplomatic_icons.dds" - frame = "[DiplomacyItem.GetDiplomacyFrame]" - framesize = { 120 120 } - scale = 1.3 - - tooltip_visible = no - } - - coa_realm_medium = { - visible = "[And(Not(DiplomacyItem.IsStruggle), Not(DiplomacyItem.IsConfederation))]" - datacontext = "[DiplomacyItem.GetTargetCharacter]" - parentanchor = hcenter - - tooltip = "[DiplomacyItem.GetTooltip]" - - text_single = { - name = "warscore" - visible = "[DiplomacyItem.HasWarScore]" - parentanchor = hcenter - position = { 0 -20 } - - text = "[DiplomacyItem.GetWarScoreFraction|0%=+]" - align = nobaseline - using = Font_Size_Medium - - background = { - using = Background_Area_ExtraDark - margin = { 3 1 } - } - } - } - - coa_confederation_medium = { - datacontext = "[DiplomacyItem.GetConfederation]" - parentanchor = hcenter - } - - coa_bloc_medium = { - datacontext = "[DiplomacyItem.GetConfederation]" - parentanchor = hcenter - } - - button = { - datacontext = "[DiplomacyItem.GetStruggle]" - datacontext = "[DiplomacyItem.GetTargetCharacter]" - visible = "[DiplomacyItem.IsStruggle]" - position = { 0 -3 } - size = { 70 90 } - - onclick = "[DiplomacyItem.OnClick]" - - tooltipwidget = struggle_tooltip - using = tooltip_es - tooltip_offset = { 0 22 } - - widget_struggle_icon = {} - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - alwaystransparent = "[DiplomacyItem.IsConfederation]" - - text = "[DiplomacyItem.GetInfo]" - autoresize = yes - max_width = 440 - min_height = 120 - using = Font_Size_Tiny - } - } - } - - hbox = { - name = "reason_characters" - visible = "[DiplomacyItem.HasReasonCharacters]" - margin_bottom = 10 - - portrait_head_small = { - name = "reason_character_left" - datacontext = "[DiplomacyItem.GetLeftReasonCharacter]" - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - portrait_head_small = { - name = "reason_character_right" - datacontext = "[DiplomacyItem.GetRightReasonCharacter]" - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - } - } - } - } - - # Modifiers expanded - scrollbox = { - name = "modifiers_expanded" - visible = "[CharacterWindow.AreModifiersExpanded]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - spacing = 15 - - text_label_center = { - text = "MODIFIERS" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CharacterWindow.GetTimedModifiers]" - spacing = 2 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 32 32 } - texture = "[ModifierItem.GetIcon]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ModifierItem.GetStaticModifier.GetName]" - } - } - - textbox = { - layoutpolicy_horizontal = expanding - visible = "[ModifierItem.HasTooltipDataByTag('single_modifier')]" - datacontext = "[ModifierItem.GetSingleModifierTooltipData]" - max_width = 500 - using = DefaultTooltipText - multiline = yes - text = "[TimedModifierSingleItem.GetDesc]" - alwaystransparent = no - } - - vbox = { - visible = "[ModifierItem.HasTooltipDataByTag('preview_list')]" - datacontext = "[ModifierItem.GetPreviewList]" - layoutpolicy_horizontal = expanding - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 500 - using = DefaultTooltipText - multiline = yes - text = "[TimedModifierPreviewList.GetScaledDesc]" - alwaystransparent = no - } - - vbox = { - datamodel = "[TimedModifierPreviewList.GetItems]" - layoutpolicy_horizontal = expanding - max_width = 500 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[TimedModifierPreviewItem.GetTitle]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[TimedModifierPreviewItem.GetExpirationDate]" - } - - expand = {} - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[ModifierItem.HasTooltipDataByTag('scaled_single_modifier')]" - datacontext = "[ModifierItem.GetScaledSingleModifierTooltipData]" - - textbox = { - layoutpolicy_horizontal = expanding - max_width = 500 - using = DefaultTooltipText - multiline = yes - text = "[TimedModifierScaledSingleItem.GetDesc]" - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[TimedModifierScaledSingleItem.GetEffectItems]" - - item = { - textbox = { - layoutpolicy_horizontal = expanding - max_width = 500 - margin_top = 5 - margin_left = 10 - margin_right = 5 - margin_bottom = 10 - using = DefaultTooltipText - using = Background_Area - text = "[CString.GetString]" - alwaystransparent = no - } - } - } - - text_single = { - layoutpolicy_horizontal = growing - max_width = 500 - text = "[TimedModifierScaledSingleItem.GetExpirationDate]" - } - } - - spacer = { - size = { 2 10 } - } - - divider_light = { - layoutpolicy_horizontal = expanding - # Don't show divider after the last item in the datamodel - visible = "[Not( EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, Subtract_int32( GetDataModelSize( CharacterWindow.GetTimedModifiers ), '(int32)1' ) ) )]" - } - } - } - } - } - } - } - - window_character_filter = { - name = "court_character_filter_window" - datacontext = "[CharacterWindow.GetCourt]" - size = { 510 860 } - position = { 525 140 } - - blockoverride "editbox_properties" - { - name = "court_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - } - } - } - } - - window_character_filter = { - name = "vassal_filter_window" - datacontext = "[CharacterWindow.GetVassals]" - size = { 510 820 } - position = { 525 200 } - - blockoverride "editbox_properties" - { - name = "vassal_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('vassal_stance_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - } - } - } - } -} - - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types CharacterWindow -{ - type modifier_item_icon = widget { - datacontext = "[ModifierItem.GetStaticModifier]" - - size = { 25 25 } - - # Preview list - icon = { - # the tag is hard-coded, if you want to change the name or add a new one please contact someone from code team - visible = "[ModifierItem.HasTooltipDataByTag('preview_list')]" - - size = { 100% 100% } - alwaystransparent = no - texture = "[ModifierItem.GetIcon]" - - block "icon_data" { - alwaystransparent = no - } - - tooltipwidget = { - object_tooltip_pop_out = { - datacontext = "[ModifierItem.GetPreviewList]" - - blockoverride "header_additions" { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 32 32 } - texture = "[StaticModifier.GetIcon]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[StaticModifier.GetName]" - } - - blockoverride "concept_link" { - text = "" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - autoresize = yes - max_width = 350 - text = "[TimedModifierPreviewList.GetScaledDesc]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datamodel = "[TimedModifierPreviewList.GetItems]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = growing - text = "[TimedModifierPreviewItem.GetTitle]" - } - - text_single = { - layoutpolicy_horizontal = growing - text = "[TimedModifierPreviewItem.GetExpirationDate]" - } - } - } - } - - textbox = { - name = "input_info" - layoutpolicy_horizontal = expanding - margin_top = 10 - margin_bottom = 20 - using = DefaultTooltipText - multiline = yes - block "input_info_text" {} - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - - # Single modifier - icon = { - # the tag is hard-coded, if you want to change the name or add a new one please contact someone from code team - visible = "[ModifierItem.HasTooltipDataByTag('single_modifier')]" - size = { 100% 100% } - alwaystransparent = no - texture = "[ModifierItem.GetIcon]" - - block "icon_data" { - alwaystransparent = no - } - - tooltipwidget = { - static_modifier_tooltip = { - datacontext = "[ModifierItem.GetSingleModifierTooltipData]" - - blockoverride "description_text_data" { - text = "[TimedModifierSingleItem.GetDesc]" - } - } - } - } - - # Scaled single modifier - icon = { - # the tag is hard-coded, if you want to change the name or add a new one please contact someone from code team - visible = "[ModifierItem.HasTooltipDataByTag('scaled_single_modifier')]" - - size = { 100% 100% } - alwaystransparent = no - texture = "[ModifierItem.GetIcon]" - - block "icon_data" { - alwaystransparent = no - } - - tooltipwidget = { - scaled_static_modifier_tooltip = { - datacontext = "[ModifierItem.GetScaledSingleModifierTooltipData]" - - blockoverride "description_text_data" { - text = "[TimedModifierScaledSingleItem.GetDesc]" - } - - blockoverride "effects_datamodel" { - datamodel = "[TimedModifierScaledSingleItem.GetEffectItems]" - } - - blockoverride "expiration_date" { - text_single = { - layoutpolicy_horizontal = growing - text = "[TimedModifierScaledSingleItem.GetExpirationDate]" - } - margin_bottom = 10 - } - } - } - } - } - - type skill_icon_label_vertical = widget { - size = { 40 60 } - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - position = { -10 17 } - - block "icon" - { - frame = "[SkillItem.GetFrame]" - } - } - - block "tooltip" - { - tooltip = "SKILL_ITEM_TOOLTIP" - using = tooltip_ne - } - - text_single = { - name = "skill_value" - parentanchor = top|hcenter - position = { 5 17 } - align = center - - block "value" - { - text = "[SkillItem.GetValue]" - } - } - } - - type hbox_character_view_name_age_health = hbox { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_name" - block "name_width" - { - max_width = 300 - } - - default_format = "#medium" - fontsize = 20 - fontsize_min = 14 - align = nobaseline - - block "name_text" - { - text = "CHARACTER_VIEW_NAME_SHORT" - } - - tooltip = "CHARACTER_VIEW_NAME_TT" - } - - text_single = { - name = "character_age" - layoutpolicy_horizontal = expanding - max_width = 28 - - text = "CHARACTER_VIEW_AGE" - default_format = "#low" - fontsize = 20 - align = nobaseline - - tooltip = "CHARACTER_VIEW_AGE_TT" - } - - hbox = { - block "health_margin" - { - margin_left = 2 - } - - icon = { - visible = "[Not( Character.IsDeadAndValid )]" - size = { 23 23 } - - framesize = { 60 60 } - frame = "[Character.GetHealthIconFrame]" - texture = "gfx/interface/icons/character_status/icon_health.dds" - - tooltip = "CHARACTER_VIEW_ALIVE_TT" - } - - icon = { - visible = "[Character.IsDeadAndValid]" - size = { 23 23 } - - texture = "gfx/interface/icons/character_status/icon_dead.dds" - - tooltip = "CHARACTER_DEAD_TOOLTIP" - } - } - expand = {} - } - - type hbox_character_relation_and_ai = hbox - { - layoutpolicy_horizontal = expanding - spacing = 2 - - hbox = { - maximumsize = { 430 -1 } - - text_single = { - maximumsize = { 281 -1 } - name = "character_relation_to_you" - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - - fontsize_min = 13 - align = nobaseline - } - - text_single = { - maximumsize = { 149 -1 } - name = "other_player_name" - visible = "[And( Character.IsPlayer, Not( Character.IsLocalPlayer ) )]" - - raw_text = " • #L [Character.GetHumanName]#!" - tooltip = "AI_PERSONALITY_IS_PLAYER_TOOLTIP" - using = tooltip_se - - fontsize_min = 13 - align = nobaseline - } - - text_single = { - maximumsize = { 149 -1 } - name = "ai_personality" - visible = "[Not( Character.IsPlayer )]" - - raw_text = " • #L [Character.GetAIPersonalityNoTooltip]#!" - tooltip = "AI_PERSONALITY_TT" - using = tooltip_se - - fontsize_min = 13 - align = nobaseline - } - } - - icon = { - visible = "[Not(Character.IsFemale)]" - size = { 20 20 } - framesize = { 40 40 } - frame = "[Character.GetSexualityFrame]" - texture = "gfx/interface/icons/character_status/sexuality_icons_male.dds" - tooltip = "SEXUALITY_TT" - } - - icon = { - visible = "[Character.IsFemale]" - size = { 20 20 } - framesize = { 40 40 } - frame = "[Character.GetSexualityFrame]" - texture = "gfx/interface/icons/character_status/sexuality_icons_female.dds" - tooltip = "SEXUALITY_TT" - } - - expand = {} - } - - type icon_row_header_background = icon - { - size = { 100% 25 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spritetype = corneredtiled - spriteborder = { 20 0 } - texture_density = 2 - alpha = 0.5 - } - - type widget_family_row_item = widget - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 110 } - scissor = yes - - icon_row_header_background = {} - - hbox = { - - block "item_list" - { - } - - expand = {} - } - } - - type vbox_character_row_item = vbox { - spacing = -3 - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 25 } - - block "minimum_width" { - min_width = 110 - } - - block "expand_button" { - button_standard_hover = { - size = { 100% 100% } - - block "expand_button_inside" {} - } - } - - hbox = { - margin = { 10 0 } - - background = { - using = Text_Label_Background - alpha = 0.5 - margin = { 0 -2 } - } - - text_single = { - align = nobaseline - fontsize = 14 - - block "header_text" - { - raw_text = "#D NEEDS TEXT#!" - } - } - - expand = {} - - text_single = { - align = nobaseline - default_format = "#weak" - - block "remaining_items" { - visible = no - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - using = Animation_Character_Window_Refresh - - block "gridbox" { - fixedgridbox = { - flipdirection = yes - addcolumn = 85 - addrow = 90 - datamodel_wrap = 7 - - block "gridbox_slots" - { - maxverticalslots = 1 - } - - block "portrait_datamodel" { - datamodel = "[CharacterWindow.GetParents]" - } - - item = { - block "portrait_head_widget" { - portrait_head_small = { - blockoverride "portrait_button" - { - using = tooltip_ne - } - blockoverride "glow_visible" - { - visible = no - } - } - } - } - } - } - - block "find_partner" {} - - expand = {} - } - - expand = {} - } - - ### Modified character row for relationship tab - type vbox_character_row_relationship_item = vbox_character_row_item { - blockoverride "portrait_head_widget" { - portrait_head_small_relationship = { - blockoverride "portrait_button" - { - using = tooltip_ne - } - blockoverride "glow_visible" - { - visible = no - } - } - } - } - - type vbox_titles_claims_box = vbox { - ## Titles - hbox = { - name = "char_view_titles" #lesson_china_titles uses this - visible = "[Not( IsDataModelEmpty( CharacterWindow.GetTitles ) )]" - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - margin_left = 5 - using = Background_Area_Titles - } - - hbox = { - margin_left = 5 - - text_single = { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)1' )]" - - text = "CV_TITLES" - align = nobaseline - } - - text_single = { - visible = "[Not(GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)1' ))]" - - text = "CV_TITLES_SINGULAR" - align = nobaseline - } - } - - button_standard_hover = { - size = { 25 25 } - - onclick = "[CharacterWindow.ToggleExpandedTitles]" - down = "[CharacterWindow.AreTitlesExpanded]" - - tooltip = "[SelectLocalization( CharacterWindow.AreTitlesExpanded, 'CV_TITLES_HIDE_TT', 'CV_TITLES_SHOW_TT' )]" - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[LessThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)9' )]" - layoutpolicy_horizontal = expanding - - text = "KEY_KP_PLUS" - align = center|nobaseline - default_format = "#weak" - } - - text_single = { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )]" - layoutpolicy_horizontal = expanding - - text = "[GetNumberAbove_int32( GetDataModelSize(CharacterWindow.GetTitles), '(int32)8' )|=]" - align = center|nobaseline - default_format = "#weak" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - datamodel = "[CharacterWindow.GetTitles]" - flipdirection = yes - addrow = 56 - addcolumn = 38 - maxverticalslots = 1 - - block "titles_max_slots" { - datamodel_wrap = 0 - } - - item = { - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - parentanchor = left|vcenter - using = tooltip_ne - - icon = { - name = "has_laws" - visible = "[TitleItem.GetTitle.HasLaws]" - parentanchor = bottom|right - size = { 25 25 } - position = { 5 0 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - icon = { - name = "is_nomad" - visible = "[TitleItem.GetTitle.IsNomad]" - parentanchor = bottom|right - size = { 25 25 } - position = { 5 0 } - texture = "gfx/interface/icons/title_status/icon_title_nomad.dds" - } - } - } - } - - expand = {} - } - } - - ## Claims - hbox = { - name = "claims" - visible = "[Not(IsDataModelEmpty(CharacterWindow.GetClaims))]" - layoutpolicy_horizontal = expanding - - background = { - margin_left = 6 - margin_top = -15 - margin_bottom = -15 - using = Background_Area_Titles - } - - hbox = { - minimumsize = { 60 0 } - - text_single = { - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)1' )]" - align = nobaseline - text = "CV_CLAIMS" - } - - text_single = { - visible = "[Not(GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)1' ))]" - align = nobaseline - text = "CV_CLAIMS_SINGULAR" - } - - expand = {} - } - - button_standard_hover = { - size = { 25 25 } - - onclick = "[CharacterWindow.ToggleExpandedClaims]" - down = "[CharacterWindow.AreClaimsExpanded]" - tooltip = "[SelectLocalization( CharacterWindow.AreClaimsExpanded, 'CV_CLAIMS_HIDE_TT', 'CV_CLAIMS_SHOW_TT' )]" - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - align = nobaseline - default_format = "#weak" - - visible = "[LessThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)9' )]" - text = "KEY_KP_PLUS" - } - text_single = { - align = nobaseline - default_format = "#weak" - - visible = "[GreaterThan_int32( GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )]" - text = "[GetNumberAbove_int32(GetDataModelSize(CharacterWindow.GetClaims), '(int32)8' )|=]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "claims_box" - datamodel = "[CharacterWindow.GetClaims]" - flipdirection = yes - addrow = 60 - addcolumn = 38 - maxverticalslots = 1 - - block "titles_max_slots" { - datamodel_wrap = 0 - } - - item = { - container = { - datacontext = "[Claim.GetTitle]" - using = tooltip_ne - tooltip = "CHARACTER_WINDOW_CLAIM_TOOLTIP" - - coa_title_tiny_crown = { - name = "claim" - tooltip_visible = no - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - position = { 5 3 } - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - position = { 5 3 } - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - position = { 5 3 } - size = { 24 24 } - parentanchor = bottom|right - } - } - } - } - } - expand = {} - } - } - expand = {} - } - - type vbox_diplomacy_box = vbox { - name = "diplomacy" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - button_standard_hover = { - layoutpolicy_horizontal = expanding - size = { 100 25 } - - onclick = "[SetMapMode( Select_CString( CharacterWindow.AreDiplomacyExpanded, 'realms', 'diplomatic_relations' ) )]" - onclick = "[CharacterWindow.ToggleExpandedDiplomacy]" - down = "[Or( CharacterWindow.AreDiplomacyExpanded, IsMapMode( 'diplomatic_relations' ) )]" - - tooltip = "[SelectLocalization( CharacterWindow.AreDiplomacyExpanded, 'CV_DIPLOMACY_HIDE_TT', 'CV_DIPLOMACY_SHOW_TT' )]" - - hbox = { - text_label_left = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - text = "CV_DIPLOMACY" - autoresize = no - margin_right = 0 - margin_left = 18 - - button_expand = { - alwaystransparent = yes - position = { 1 3 } - alpha = 0.7 - scale = 0.75 - frame = "[BoolTo1And2( CharacterWindow.AreDiplomacyExpanded )]" - } - } - - text_single = { - margin_bottom = 5 - margin_right = 3 - default_format = "#weak" - - block "diplomacy_extra_items" - { - visible = no - } - } - } - } - - vbox = { - margin_top = 20 - - fixedgridbox = { - name = "diplomacy_items" - datamodel = "[CharacterWindow.GetDiplomacyItems]" - addrow = 75 - addcolumn = 50 - flipdirection = yes - - block "diplomacy_slots" - { - datamodel_wrap = 2 - maxverticalslots = 2 - maxhorizontalslots = 2 - } - - item = { - container = { - datacontext = "[DiplomacyItem.GetConfederation]" - onmousehierarchyenter = "[DiplomacyItem.MouseEnter]" - onmousehierarchyleave = "[DiplomacyItem.MouseLeave]" - - button = { - visible = "[And(Not(DiplomacyItem.IsStruggle), Not(And(DiplomacyItem.IsConfederation, DiplomacyItem.GetConfederation.GetType.IsHouseBasedConfederation)))]" - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 -26 } - size = { 54 54 } - texture = "gfx/interface/icons/diplomatic_icons.dds" - # A new icon in diplomatic_icons.dds requires code support for mapping the DiplomacyItem type to that icon via the function below - frame = "[DiplomacyItem.GetDiplomacyFrame]" - framesize = { 120 120 } - - tooltip_visible = no - } - - coa_realm_small = { - datacontext = "[DiplomacyItem.GetTargetCharacter]" - visible = "[And(Not(DiplomacyItem.IsStruggle), Not(DiplomacyItem.IsConfederation))]" - parentanchor = hcenter - - onrightclick = "[DefaultOnRealmFlagClick(Character.GetID)]" - - tooltip = "[DiplomacyItem.GetTooltip]" - tooltip_offset = { 0 22 } - using = tooltip_es - - state = { - name = _mouse_hierarchy_enter - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - } - } - - blockoverride "coa_button" - { - onclick = "[DiplomacyItem.OnClick]" - button_ignore = none - } - } - - coa_confederation_small = { - visible = "[And(Not(Confederation.GetType.IsHouseBasedConfederation), DiplomacyItem.IsConfederation)]" - parentanchor = hcenter - - tooltip = "[DiplomacyItem.GetTooltip]" - using = tooltip_es - - blockoverride "coa_button" - { - onclick = "[DiplomacyItem.OnClick]" - button_ignore = none - } - } - - button = { - visible = "[And(Confederation.GetType.IsHouseBasedConfederation, DiplomacyItem.IsConfederation)]" - parentanchor = top|hcenter - alwaystransparent = yes - position = { 0 -12 } - size = { 60 20 } - texture = "gfx/interface/coat_of_arms/frames/coa_topframe_bloc.dds" - - tooltip_visible = no - } - - coa_bloc_small = { - visible = "[And(Confederation.GetType.IsHouseBasedConfederation, DiplomacyItem.IsConfederation)]" - parentanchor = hcenter - - tooltip = "[DiplomacyItem.GetTooltip]" - using = tooltip_es - - blockoverride "coa_button" - { - onclick = "[DiplomacyItem.OnClick]" - button_ignore = none - } - } - - text_single = { - name = "warscore" - visible = "[DiplomacyItem.HasWarScore]" - parentanchor = top|hcenter - position = { 0 -12 } - - text = "[DiplomacyItem.GetWarScoreFraction|0%=+]" - align = nobaseline - fontsize = 13 - - background = { - using = Background_Area_ExtraDark - margin = { 0 1 } - } - } - - button = { - datacontext = "[DiplomacyItem.GetStruggle]" - datacontext = "[DiplomacyItem.GetTargetCharacter]" - visible = "[DiplomacyItem.IsStruggle]" - parentanchor = hcenter - position = { 0 -3 } - size = { 52 64 } - - onclick = "[DiplomacyItem.OnClick]" - - tooltipwidget = struggle_tooltip; - using = tooltip_es - tooltip_offset = { 0 22 } - - widget_struggle_icon = {} - } - } - } - } - } - - expand = {} - } - - type widget_struggle_icon = widget { - size = { 100% 100% } - - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - visible = "[Struggle.IsInvolvedCharacter(Character.Self)]" - - blockoverride "point_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/point_involved_banner_small.dds" - } - } - - blockoverride "time_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/time_involved_banner_small.dds" - } - } - } - - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - visible = "[Struggle.IsInterloperCharacter(Character.Self)]" - - blockoverride "point_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/point_interloper_banner_small.dds" - } - } - - blockoverride "time_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/time_interloper_banner_small.dds" - } - } - } - - widget = { - size = { 100% 100% } - position = { 0 -3 } - - icon = { - visible = "[Struggle.IsInvolvedCharacter(Character.Self)]" - parentanchor = center - size = { 34 34 } - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - visible = "[Struggle.IsInterloperCharacter(Character.Self)]" - parentanchor = center - size = { 34 34 } - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - parentanchor = center - size = { 30 30 } - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - } - } - - type realm_name_and_type_vbox = vbox { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_title" - visible = "[Character.IsAlive]" - layoutpolicy_horizontal = expanding - - text = "[Title.GetNameNoTooltip|U]" - default_format = "#medium" - using = Font_Size_Medium - max_width = 220 - } - - text_single = { - name = "character_title_dead" - visible = "[Not( Character.IsAlive )]" - layoutpolicy_horizontal = expanding - - text = "[Title.GetNameAtDateNoTooltip( Character.GetDeathDate )|U]" - default_format = "#medium" - using = Font_Size_Medium - max_width = 220 - } - - expand = {} - } - - text_single = { - name = "faction" - visible = "[Title.HasFaction]" - layoutpolicy_horizontal = expanding - autoresize = no - text = "CV_CIVIL_WAR_FACTION" - default_format = "#low" - align = nobaseline - fontsize_min = 14 - } - - text_single = { - name = "government_type" - visible = "[Not( Title.HasFaction )]" - layoutpolicy_horizontal = expanding - autoresize = no - text = "CV_REALM_TYPE" - default_format = "#low" - align = nobaseline - fontsize_min = 14 - } - } - - type button_marry_off = button { - name = "marry_off_button" - onclick = "[Character.OpenPlayerInteraction( 'marry_off_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'marry_off_interaction' )]" - - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/unknown_spouse.dds" - size = { 195 282 } - framesize = { 554 780 } - upframe = 1 - overframe = 2 - alpha = 0.8 - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 50 50 } - position = { 0 45 } - texture = "gfx/interface/icons/faith_doctrine_groups/doctrine_marriage_type.dds" - } - } - - type container_secondary = container { - parentanchor = bottom|hcenter - position = { 15 0 } - datacontext = "[CharacterWindow.GetSecondaryCharater]" - - using = Animation_Character_Window_Refresh_Short - - # We only have invalid secondary character here if player can marry them off - container = { - name = "tutorial_spouse" - visible = "[And(Not( Character.IsValid ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_spouse').GetValue, '(CFixedPoint)0' ) ))]" - position = { 0 35 } - parentanchor = center - using = Animation_ShowHide_Standard - - button_marry_off = { - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[And( Not( ObjectsEqual( GetPlayer, Character.Self ) ), Not( Character.IsConcubine ) )]" - tooltip = "CHARACTER_WINDOW_FIND_SPOUSE" - } - - button_marry_off = { - datacontext = "[CharacterWindow.GetCharacter]" - visible = "[ObjectsEqual( GetPlayer, Character.Self )]" - tooltip = "CHARACTER_WINDOW_FIND_SPOUSE_SELF" - } - } - - portrait_character_view_spouse = { - visible = "[Character.IsValid]" - - state = { - name = cw_spouse_cycle - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - - } - - type secondary_widget = widget { - parentanchor = bottom - allow_outside = yes - position = { 93 0 } - size = { 182 60 } - datacontext = "[CharacterWindow.GetSecondaryCharater]" - visible = "[Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_ui_spouse').GetValue, '(CFixedPoint)0' ) )]" - using = Animation_ShowHide_Standard - - flowcontainer = { - parentanchor = bottom - widgetanchor = bottom|left - position = { 33 -3 } - ignoreinvisible = yes - - flowcontainer = { - direction = vertical - parentanchor = bottom - margin_right = 5 - - portrait_opinion = { - block "portrait_opinion" {} - } - - flowcontainer = { - ignoreinvisible = yes - - text_label_center = { - text = "[CharacterWindow.GetSecondaryText]" - max_width = 120 - align = nobaseline - } - - flowcontainer = { - visible = "[Or( CharacterWindow.HasPreviousSecondary, CharacterWindow.HasNextSecondary )]" - margin_bottom = 4 - spacing = -5 - parentanchor = bottom - - using = Animation_ShowHide_Standard - - button_expand = { - enabled = "[CharacterWindow.HasPreviousSecondary]" - onclick = "[CharacterWindow.PreviousSecondary]" - onclick = "[PdxGuiTriggerAllAnimations( 'cw_spouse_cycle' )]" - tooltip = "[CharacterWindow.GetPreviousSecondaryTooltip]" - mirror = horizontal - } - - button_expand = { - enabled = "[CharacterWindow.HasNextSecondary]" - onclick = "[CharacterWindow.NextSecondary]" - onclick = "[PdxGuiTriggerAllAnimations( 'cw_spouse_cycle' )]" - tooltip = "[CharacterWindow.GetNextSecondaryTooltip]" - } - } - } - } - - flowcontainer = { - parentanchor = bottom - - coa_realm_small = { - visible = "[Character.HasLandedTitles]" - using = Animation_ShowHide_Standard - parentanchor = bottom - } - - portrait_status_icons = { - parentanchor = bottom - margin_bottom = 4 - } - } - } - - icon = { - name = "diarchy_active_icon" - visible = "[And(CharacterWindow.GetCharacter.HasActiveDiarchy, Not(CharacterWindow.ShowMarriageIcon))]" - parentanchor = bottom - position = { 0 -3 } - size = { 30 30 } - texture = "gfx/interface/icons/scale_of_power.dds" - tooltip = DIARCH_ICON_TOOLTIP - using = tooltip_below - } - - icon = { - name = "marriage_type_icon" - visible = "[CharacterWindow.ShowMarriageIcon]" - parentanchor = bottom - position = { 0 -3 } - size = { 30 30 } - framesize = { 60 60 } - texture = "gfx/interface/icons/marriage_types.dds" - frame = "[CharacterWindow.GetMarriageIcon]" - tooltip = "[CharacterWindow.GetMarriageIconTooltip]" - using = tooltip_below - } - } - - type hbox_character_view_secondary_stats_bar = hbox { - name = "character_view_secondary_stats_bar" - visible = "[Character.IsAlive]" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - margin_right = 10 - - background = { - using = Background_Area_Dark - margin_left = 3 - } - - #Gold - widget = { - size = { 72 32 } - - hbox = { - tooltip = "[Character.GetGoldTooltipWithBalance]" - using = tooltip_se - spacing = 3 - - expand = {} - - icon = { - name = "icon_gold" - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "total_gold" - text = "[Character.GetGold|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - #Prestige - widget = { - size = { 72 32 } - - hbox = { - spacing = 3 - - tooltip = "[Character.GetPrestigeTooltipWithBalance]" - using = tooltip_se - - expand = {} - - icon = { - name = "icon_prestige" - size = { 30 30 } - texture = "[Character.GetPrestigeLevelTexture]" - } - - text_single = { - name = "prestige" - text = "[Character.GetPrestige|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - #Piety - widget = { - size = { 72 32 } - - hbox = { - tooltip = "[Character.GetPietyTooltipWithBalance]" - using = tooltip_se - - expand = {} - - icon = { - name = "icon_piety" - size = { 30 30 } - texture = "[Character.GetPietyLevelTexture]" - } - - text_single = { - name = "piety" - text = "[Character.GetPiety|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - visible = "[IsNomad( Character )]" - layoutpolicy_vertical = expanding - } - - #Herd - widget = { - datacontext = "[Character.GetDomicile]" - visible = "[IsNomad( Character )]" - size = { 92 32 } - - hbox = { - spacing = 3 - - tooltip = "[Domicile.GetHerdBreakdown]" - using = tooltip_se - - expand = {} - - icon = { - name = "herd_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_herd.dds" - } - - text_single = { - name = "total_herd" - text = "[Domicile.GetHerd|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - visible = "[Character.GetGovernment.HasRule( 'administrative' )]" - layoutpolicy_vertical = expanding - } - - #Influence - widget = { - visible = "[Character.GetGovernment.HasRule( 'administrative' )]" - size = { 72 32 } - - hbox = { - spacing = 3 - - tooltip = "[Character.GetInfluenceTooltipWithBalance]" - using = tooltip_se - - expand = {} - - icon = { - name = "icon_influence" - size = { 30 30 } - texture = "[Character.GetInfluenceLevelTexture]" - } - - text_single = { - name = "influence" - text = "[Character.GetInfluence|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - visible = "[Or( Character.ShouldShowLegitimacy, Character.ShouldShowMerit )]" - layoutpolicy_vertical = expanding - } - - #Legitimacy - widget = { - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - visible = "[Character.ShouldShowLegitimacy]" - size = { 72 32 } - - tooltipwidget = { - legitimacy_hud_tooltip = { - datacontext = "[CharacterWindow.GetLegitimacyBar]" - } - } - - using = tooltip_se - - hbox = { - spacing = 3 - - expand = {} - - icon = { - size = { 30 30 } - - texture = "[Character.GetLegitimacyType.GetLevelsIcon]" - framesize = { 70 70 } - frame = "[IntToFrameIndex( LegitimacyLevel.GetIndex )]" - } - - text_single = { - text = CHARACTER_WINDOW_LEGITIMACY_LEVEL - align = nobaseline - } - - expand = {} - } - } - - # Merit - hbox_merit_with_label = { - name = "merit" - datacontext = "[CharacterWindow.GetMeritItem]" - - blockoverride "hbox_merit_with_label_background" - { - # no background - } - } - - divider_light = { - visible = "[Character.HasBarterGoods]" - layoutpolicy_vertical = expanding - } - - # Barter Goods - widget = { - name = "barter_goods" - visible = "[Character.HasBarterGoods]" - size = { 72 32 } - - hbox = { - tooltip = "[Character.GetBarterGoodsTooltipWithBalance]" - using = tooltip_se - spacing = 3 - - expand = {} - - icon = { - name = "barter_goods_icon" - size = { 30 30 } - texture = "gfx/interface/icons//icon_barter.dds" - } - - text_single = { - name = "total_barter_goods" - - text = "[Character.GetCurrency('barter_goods')|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - - expand = {} - } - } - - divider_light = { - visible = "[Character.HasLandedTitles]" - layoutpolicy_vertical = expanding - } - - # Military Strength - widget = { - visible = "[Character.HasLandedTitles]" - size = { 72 32 } - - tooltip = CHARACTER_WINDOW_MILITARY_STRENGTH_TOOLTIP - using = tooltip_es - - hbox = { - spacing = 3 - - expand = {} - - icon = { - name = "icon_combat_strength" - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "military_total_strength" - text = "[CharacterWindow.GetCachedMilitaryStrengthText]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 80 - - progressbar_standard = { - name = "soldiers_max" - visible = "[NotEqualTo_int32(CharacterWindow.GetMaxSoldiers, '(int32)0')]" - parentanchor = bottom|hcenter - position = { 0 5 } - size = { 33 8 } - min = 0 - max = "[IntToFloat(CharacterWindow.GetMaxSoldiers)]" - value = "[IntToFloat(CharacterWindow.GetCurrentSoldiers)]" - } - } - - expand = {} - } - } - } -} - -template Background_Area_Titles -{ - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - color = { 0 0 0 0.3 } - texture_density = 2 -} - -template Animation_Character_Window_Refresh -{ - state = { - name = character_window_refresh - using = Animation_Refresh_FadeOut - alpha = 0.65 - } - - state = { - using = Animation_Refresh_FadeIn - } -} - -template Animation_Character_Window_Refresh_Short -{ - state = { - name = character_window_refresh - using = Animation_Refresh_FadeOut - alpha = 0.8 - } - - state = { - using = Animation_Refresh_FadeIn - duration = 0.25 - } -} - -template Character_Window_Relation_Icon -{ - size = { 24 24 } - framesize = { 40 40 } - - visible = "[ScriptedRelation.HasRelationBetween( CharacterWindow.GetCharacter, Character.Self )]" - - tooltipwidget = { - scripted_relation_tooltip = { - blockoverride "description_text" - { - text = "[GetScriptedRelationTooltip( ScriptedRelation, CharacterWindow.GetCharacter, Character )]" - } - } - } -} diff --git a/N3OW/gui/window_character_filter.gui b/N3OW/gui/window_character_filter.gui deleted file mode 100644 index 103a92bf..00000000 --- a/N3OW/gui/window_character_filter.gui +++ /dev/null @@ -1,741 +0,0 @@ -types Filters { - type filter_item = hbox { - spacing = 10 - margin_bottom = 10 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[CharacterListFilter.GetName]" - default_format = "#medium" - align = nobaseline - autoresize = no - } - - expand = {} - - dropdown_sort_characterlist = { - datamodel = "[CharacterListFilter.GetOptions]" - onselectionchanged = "[CharacterListFilter.SetCurrentFilterFromIndex]" - selectedindex = "[CharacterListFilter.GetCurrentFilterIndex]" - - blockoverride "text_button_drop" { - text = "[CharacterListFilterOption.GetName]" - tooltip = "[CharacterListFilterOption.GetDescription]" - } - - blockoverride "size_button_drop" { - size = { 185 33 } - } - - blockoverride "size_dropdown" { - size = { 175 33 } - } - } - } - - type vbox_filter_group = vbox { - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - - button_expand = { - name = "show" - frame = "[Select_int32( CharacterListFilterCategory.IsExpanded, '(int32)2', '(int32)1' )]" - onclick = "[CharacterListFilterCategory.OnExpand]" - using = tooltip_ws - tooltip = "EXPAND_FILTER" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - - text_label_center = { - name = "label" - layoutpolicy_horizontal = expanding - margin_right = 36 - text = "[CharacterListFilterCategory.GetLabel]" - align = center - } - } - - - vbox = { - visible = "[CharacterListFilterCategory.IsExpanded]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 5 - - block "filters" {} - } - } - - type window_character_filter = window { - name = "character_filter_window" - visible_at_creation = no - visible = "[CharacterSelectionList.FiltersShown]" - parentanchor = top|right - position = { -730 20 } - size = { 510 800 } - focuspolicy = click - - allow_outside = yes - - using = Window_Movable - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - margin = { 4 4 } - - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHARACTER_LIST_FILTERS" - } - blockoverride "button_close" - { - onclick = "[CharacterSelectionList.OnToggleFilters]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - margin_right = 5 - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[CharacterSelectionList.GetSavedFilterPresets]" - onselectionchanged = "[CharacterSelectionList.SelectPresetIndex]" - selectedindex = "[CharacterSelectionList.GetSelectedPresetIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[SelectLocalization(CharacterSelectionList.HasSelectedPreset, CharacterSelectionList.GetSelectedPreset.GetName, 'CHARACTER_LIST_OPEN_FILTER_PRESET_BUTTON_SELECT')]" - } - - blockoverride "dropdown_item_properties" - { - raw_text = "[Select_CString(FilterPresetItem.CanBeApplied, '#clickable', '#low')] [FilterPresetItem.GetPreset.GetName]#!" - tooltip = "CHARACTER_LIST_FILTER_PRESET_APPLY_TOOLTIP" - enabled = "[FilterPresetItem.CanBeApplied]" - } - blockoverride "dropdown_list_properties" - { - minimumsize = { 192 50 } - hbox = { - visible = "[IsDataModelEmpty(CharacterSelectionList.GetSavedFilterPresets)]" - textbox = { - text = "CHARACTER_LIST_FILTER_PRESET_DROPDOWN_NO_SELECTED_BODY" - align = center - } - } - } - } - - button_standard_small = { - name = "delete_selected_preset" - - text = "CHARACTER_LIST_FILTER_PRESET_DELETE_TOOLTIP" - - enabled = "[CharacterSelectionList.HasSelectedPreset]" - onclick = "[CharacterSelectionList.DeleteSelectedPreset]" - tooltip = "CHARACTER_LIST_FILTER_PRESET_DELETE_TOOLTIP" - } - - button_standard_small = { - name = "open_filter_manage_save" - - text = "CHARACTER_LIST_FILTER_PRESET_BUTTON_UNSAVED_PRESET" - onclick = "[CharacterSelectionList.ShowFilterPresets]" - tooltip = "CHARACTER_LIST_OPEN_SAVE_FILTERS" - - warning_icon = { - position = { 3 0 } - parentanchor = vcenter - visible = "[Not( StringIsEmpty( CharacterSelectionList.GetUnsaveableFiltersWarning ) )]" - size = { 24 24 } - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_left = -2 - margin_right = -2 - margin_bottom = 2 - - editbox_search_field = { - layoutpolicy_horizontal = expanding - margin_right = 6 - - blockoverride "editbox_properties" - { - name = "text_filter" - focus_on_visible = yes - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - tooltip = "CHARACTER_LIST_TEXT_FILTER_TOOLTIP" - } - - button_icon = { - name = "cross" - visible = "[CharacterSelectionList.HasTextInEdit]" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - onclick = "[CharacterSelectionList.ClearPattern]" - tooltip = "CHARACTER_LIST_CLEAR" - } - } - - vbox = { - datamodel = "[CharacterSelectionList.GetMatchedPatterns]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "label" - visible = "[DataModelHasItems(CharacterSelectionList.GetMatchedPatterns)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - text = "CHARACTER_LIST_TEXT_FILTER_TITLE" - align = center|nobaseline - - background = { - using = Background_Area - margin = { 4 4 } - } - } - - expand = { - minimumsize = { 0 5 } - } - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 4 - - button_standard_list = { - name = "drop_filters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 52 } - - default_format = "#low" - onclick = "[PatternItem.OnClick]" - onclick = "[CharacterSelectionList.ClearPattern]" - onclick = "[CharacterSelectionList.ApplyFiltersSort]" - - background = { - using = Background_Area_Dark - } - - hbox = { - margin_left = 6 - - button_icon = { - name = "cross" - visible = "[PatternItem.IsSelected]" - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/window_close.dds" - alwaystransparent = yes - } - - hbox = { - visible = "[PatternItem.IsName]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_LIST_TEXT_FILTER_MATCH_NAME" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltip = "CHARACTER_LIST_FILTER_NAME_TT" - } - - hbox = { - datacontext = "[PatternItem.GetTrait]" - datacontext = "[GetNullCharacter]" - datacontext = "[GetPlayer.GetFaith]" - - visible = "[PatternItem.IsTrait]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_left = 5 - spacing = 5 - - icon_trait = { - blockoverride "faith_context" - { - datacontext = "[GetPlayer.GetFaith]" - } - - blockoverride "icon_size" - { - size = { 45 45 } - } - - blockoverride "tooltip_placement" - { - tooltip_visible = no - } - - blockoverride "glow_radius" - { - glow_radius = 4 - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetTrait.GetNameNoTooltip( Character.Self )]" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - using = character_trait_tooltip - } - } - - hbox = { - datacontext = "[PatternItem.GetFaith]" - visible = "[PatternItem.IsFaith]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_left = 5 - spacing = 5 - - icon = { - size = { 45 45 } - texture = "[PatternItem.GetFaith.GetIcon]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "PATTERNITEM_GETFAITH" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - faith_tooltip = {} - } - } - - hbox = { - datacontext = "[PatternItem.GetHouse]" - visible = "[PatternItem.IsHouse]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_left = 5 - spacing = 5 - - coa_house_tiny = { - blockoverride "coa_button" - { - onclick = "[DefaultOnHouseCoatOfArmsClick(DynastyHouse.GetID)]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetHouse.GetBaseNameNoTooltip]" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - using = dynasty_house_tooltip - } - } - - hbox = { - datacontext = "[PatternItem.GetDynasty]" - visible = "[PatternItem.IsDynasty]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_left = 5 - spacing = 5 - - coa_dynasty_tiny = { - blockoverride "coa_button" - { - onclick = "[DefaultOnDynastyCoatOfArmsClick(Dynasty.GetID)]" - } - } - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetDynasty.GetBaseNameNoTooltip]" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - using = DynastyTooltip - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - visible = "[PatternItem.IsCulture]" - datacontext = "[PatternItem.GetCulture]" - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetCulture.GetNameNoTooltip]" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - culture_tooltip = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - visible = "[PatternItem.IsHeritage]" - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetHeritage.GetNameNoTooltip]" - align = nobaseline - } - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - tooltip = "CHARACTER_LIST_CULTURE_GROUP_TT" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - visible = "[PatternItem.IsReligion]" - datacontext = "[PatternItem.GetReligion]" - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetReligion.GetNameNoTooltip]" - align = nobaseline - } - - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - - tooltipwidget = { - using = religion_tooltip - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - visible = "[PatternItem.IsGovernment]" - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[PatternItem.GetGovernment.GetNameNoTooltip]" - align = nobaseline - } - text_single = { - text = "[PatternItem.GetType]" - align = nobaseline - } - tooltip = "CHARACTER_LIST_GOVERNMENT_TT" - } - } - } - } - } - } - } - vbox = { - visible = "[Not(CharacterSelectionList.IsSuggesting)]" - layoutpolicy_horizontal = expanding - - block "addition_filter" {} - } - } - } - } - - hbox = { - layoutpolicy_horizontal = growing - margin_bottom = 10 - - button_standard = { - name = "drop_filters" - text = "CHARACTER_RESET_FILTERS" - focuspolicy = click - onclick = "[CharacterSelectionList.OnResetFilters]" - } - } - } - window_character_filter_manage_presets = {} - } - - type window_character_filter_manage_presets = window { - name = "character_filter_manage_presets_window" - visible = [CharacterSelectionList.IsFilterPresetsShown] - parentanchor = right - position = { 420 0 } - size = { 415 510 } - - layer = confirmation - alwaystransparent = no - movable = no - using = Window_Background_Subwindow - - vbox = { - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHARACTER_LIST_FILTER_PRESET_HEADER" - } - - blockoverride "button_close" - { - onclick = "[CharacterSelectionList.HideFilterPresets]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - vbox = { - name = "current_filter" - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "CHARACTER_LIST_FILTER_PRESET_CURRENT_FILTER" - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - margin = { 24 0 } - margin_bottom = 10 - - blockoverride "editbox_label" - { - text = "CHARACTER_LIST_FILTER_PRESET_CURRENT_FILTER_PRESET_NAME" - margin_bottom = 2 - } - - blockoverride "editbox_properties" - { - name = "preset_name_edit" - multiline = no - maxcharacters = 40 - text = "[CharacterSelectionList.GetFilterPresetName]" - margin_left = 2 - ontextedited = "[CharacterSelectionList.OnFilterPresetNameEdit]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 24 0 } - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - text = "CHARACTER_LIST_FILTER_PRESET_BUTTON_SAVE" - onclick = "[CharacterSelectionList.SaveFiltersToPreset]" - enabled = "[CharacterSelectionList.CanSavePreset]" - tooltip = "[CharacterSelectionList.CanSavePresetTooltip]" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 18 - - text_single = { - text = "[CharacterSelectionList.GetSavePresetWarning]" - minimumsize = { 350 12 } - } - expand = {} - } - } - } - - vbox = { - name = "current_filter_all_default" - visible = "[CharacterSelectionList.IsAllDefault]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "CHARACTER_LIST_FILTER_PRESET_CURRENT_FILTER" - } - - text_single = { - margin_top = 24 - margin_bottom = 24 - text = "CHARACTER_LIST_FILTER_PRESET_CURRENT_FILTER_DEFAULT_FILTERS" - } - } - - vbox = { - name = "saved_filters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 5 - - hbox = { - margin_bottom = 6 - - text_label_center = { - text = "CHARACTER_LIST_FILTER_PRESET_SAVED_PRESETS" - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - size = { 406 0 } #hitboxes are wrong? - - blockoverride "scrollbox_content" - { - - fixedgridbox = { - datamodel = "[CharacterSelectionList.GetSavedFilterPresets]" - addcolumn = 366 - addrow = 70 - datamodel_wrap = 1 - maxhorizontalslots = 1 - flipdirection = yes - - item = { - widget = { - size = { 370 60 } - - hbox = { - spacing = 5 - - button_standard = { - name = "apply_preset_button" - layoutpolicy_horizontal = expanding - size = { 0 60 } - - onclick = "[CharacterSelectionList.SetSavePresetName(FilterPresetItem.GetPreset.GetName)]" - down = "[And( Not( CharacterSelectionList.IsAllDefault ), EqualTo_string(CharacterSelectionList.GetFilterPresetName, FilterPresetItem.GetPreset.GetName) )]" - tooltip = "CHARACTER_LIST_SELECT_TO_OVERWRITE_PRESET_TOOLTIP" - - vbox = { - margin_left = 8 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[FilterPresetItem.GetPreset.GetName]" - align = nobaseline - margin_left = 2 - margin_top = 5 - } - - text_single = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = -10 - margin_right = 10 - max_width = 310 - - text = "[FilterPresetItem.GetPreset.GetDescription]" - align = left|nobaseline - default_format = "#low" - } - expand = {} - } - - hbox = { - margin_right = 4 - - expand = {} - - button_icon = { - name = "delete_preset_button" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - - onclick = "[CharacterSelectionList.DeleteFilterPreset( FilterPresetItem.Self )]" - tooltip = "CHARACTER_LIST_FILTER_PRESET_DELETE_TOOLTIP" - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_character_finder.gui b/N3OW/gui/window_character_finder.gui deleted file mode 100644 index 05e532f4..00000000 --- a/N3OW/gui/window_character_finder.gui +++ /dev/null @@ -1,203 +0,0 @@ -### LIST TEMPLATE - -window = { - name = "character_finder_window" - # size = { 750 90% } - parentanchor = top|right - position = { -50 65 } - allow_outside = yes - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - datacontext = "[CharacterFinderWindow.GetCharacterList]" - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHARACTER_FINDER_TITLE" - } - - blockoverride "button_close" - { - onclick = "[CharacterFinderWindow.Close]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "CHARACTER_FINDER_NO_MATCH" - } - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 630 - addrow = 92 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 94 } - blockoverride "character_relation" {} - } - } - } - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilterWithDefault('relation_filter', '(int32)1')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('government_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('vassal_stance_filter')]" - } - - - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('trait_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('artifact_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_character_focus.gui b/N3OW/gui/window_character_focus.gui deleted file mode 100644 index a41b41ee..00000000 --- a/N3OW/gui/window_character_focus.gui +++ /dev/null @@ -1,308 +0,0 @@ -###################################################### -################## EDUCATION FOCUS ################### -###################################################### - -window = { - name = "character_focus_window" - size = { 520 880 } - parentanchor = center - layer = middle - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[CharacterFocusWindow.GetWindowTitle]" - } - - blockoverride "button_close" - { - onclick = "[CharacterFocusWindow.Close]" - - } - } - - vbox = { - name = "focus_selection_area" - size = { 500 850 } - - ### PENTAGON W EDUCATION FOCUSES - widget = { - name = "education_focuses_and_portrait" - size = { 350 350 } - - background = { - name = "martial_disposition" - framesize = { 352 352 } - texture = "gfx/interface/window_lifestyles/education_affinity_up_side.dds" - frame = "[CharacterFocusWindow.GetDispositionFrame('1')]" - } - - background = { - name = "diplomacy_disposition" - framesize = { 352 352 } - - texture = "gfx/interface/window_lifestyles/education_affinity_up_side.dds" - mirror = horizontal - frame = "[CharacterFocusWindow.GetDispositionFrame('0')]" - } - - background = { - name = "stewardship_disposition" - framesize = { 352 352 } - - texture = "gfx/interface/window_lifestyles/education_affinity_down_side.dds" - frame = "[CharacterFocusWindow.GetDispositionFrame('2')]" - } - - background = { - name = "learning_disposition" - framesize = { 352 352 } - - texture = "gfx/interface/window_lifestyles/education_affinity_down_side.dds" - mirror = horizontal - frame = "[CharacterFocusWindow.GetDispositionFrame('3')]" - } - - background = { - name = "intrigue_disposition" - framesize = { 352 352 } - - texture = "gfx/interface/window_lifestyles/education_affinity_up.dds" - frame = "[CharacterFocusWindow.GetDispositionFrame('4')]" - } - - ### Diplomacy - button = { - name = "diplomacy_button" - position = { -3 100 } - parentanchor = top|left - texture = "gfx/interface/icons/lifestyles/diplomacy_lifestyle.dds" - framesize = { 160 160 } - size = { 80 80 } - onclick = "[CharacterFocusWindow.OnClickSetSelectedFocus('0')]" - down = "[CharacterFocusWindow.IsSelectedFocus('0')]" - clicksound = "event:/SFX/UI/Unique/CharacterLifestyle/sfx_ui_unique_lifestyle_diplomacy" - datacontext = "[CharacterFocusWindow.GetFocus( '(int32)0' )]" - - highlight_icon = { - visible = "[CharacterFocusWindow.IsCharacterFocus('0')]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - tooltip = "EDUCATION_FOCUS_BUTTON_TOOLTIP" - using = tooltip_below - } - - ### Martial - button = { - name = "martial_button" - position = { 3 100 } - parentanchor = top|right - texture = "gfx/interface/icons/lifestyles/martial_lifestyle.dds" - framesize = { 160 160 } - size = { 80 80 } - onclick = "[CharacterFocusWindow.OnClickSetSelectedFocus('1')]" - down = "[CharacterFocusWindow.IsSelectedFocus('1')]" - clicksound = "event:/SFX/UI/Unique/CharacterLifestyle/sfx_ui_unique_lifestyle_martial" - datacontext = "[CharacterFocusWindow.GetFocus( '(int32)1' )]" - - highlight_icon = { - visible = "[CharacterFocusWindow.IsCharacterFocus('1')]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - tooltip = "EDUCATION_FOCUS_BUTTON_TOOLTIP" - using = tooltip_below - } - - ### Stewardship - button = { - name = "stewardship_button" - position = { -45 -4 } - parentanchor = bottom|right - texture = "gfx/interface/icons/lifestyles/stewardship_lifestyle.dds" - framesize = { 160 160 } - size = { 80 80 } - onclick = "[CharacterFocusWindow.OnClickSetSelectedFocus('2')]" - down = "[CharacterFocusWindow.IsSelectedFocus('2')]" - clicksound = "event:/SFX/UI/Unique/CharacterLifestyle/sfx_ui_unique_lifestyle_stewardship" - datacontext = "[CharacterFocusWindow.GetFocus( '(int32)2' )]" - - highlight_icon = { - visible = "[CharacterFocusWindow.IsCharacterFocus('2')]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - tooltip = "EDUCATION_FOCUS_BUTTON_TOOLTIP" - using = tooltip_below - } - - ### Learning - button = { - name = "learning_button" - position = { 45 -4 } - parentanchor = bottom|left - texture = "gfx/interface/icons/lifestyles/learning_lifestyle.dds" - framesize = { 160 160 } - size = { 80 80 } - onclick = "[CharacterFocusWindow.OnClickSetSelectedFocus('3')]" - down = "[CharacterFocusWindow.IsSelectedFocus('3')]" - clicksound = "event:/SFX/UI/Unique/CharacterLifestyle/sfx_ui_unique_lifestyle_learning" - datacontext = "[CharacterFocusWindow.GetFocus( '(int32)3' )]" - - highlight_icon = { - visible = "[CharacterFocusWindow.IsCharacterFocus('3')]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - tooltip = "EDUCATION_FOCUS_BUTTON_TOOLTIP" - using = tooltip_below - } - - ### Intrigue - button = { - name = "intrigue_button" - position = { 0 4 } - parentanchor = top|hcenter - texture = "gfx/interface/icons/lifestyles/intrigue_lifestyle.dds" - framesize = { 160 160 } - size = { 80 80 } - onclick = "[CharacterFocusWindow.OnClickSetSelectedFocus('4')]" - down = "[CharacterFocusWindow.IsSelectedFocus('4')]" - clicksound = "event:/SFX/UI/Unique/CharacterLifestyle/sfx_ui_unique_lifestyle_intrigue" - datacontext = "[CharacterFocusWindow.GetFocus( '(int32)4' )]" - - highlight_icon = { - visible = "[CharacterFocusWindow.IsCharacterFocus('4')]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - tooltip = "EDUCATION_FOCUS_BUTTON_TOOLTIP" - using = tooltip_below - } - - portrait_shoulders = { - name = "character_portrait" - datacontext = "[CharacterFocusWindow.GetCharacter]" - parentanchor = center - position = { 0 0 } - blockoverride "coa" {} - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "glow_local_player" {} - blockoverride "glow_selected" {} - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 15 0 } - margin_top = 0 - margin_bottom = 30 - alpha = 0.5 - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 10 - # we hide the text_label_center if nothing is selected - ignoreinvisible = no - - text_label_center = { - name = "selected_focus_name" - text = "[CharacterFocusWindow.GetSelectedFocusName]" - visible = "[Not(StringIsEmpty(CharacterFocusWindow.GetSelectedFocusName))]" - } - - # Info about Selected Focus - scrollbox = { - name = "focus_info_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - visible = "[Not(StringIsEmpty(CharacterFocusWindow.GetSelectedFocusName))]" - spacing = 4 - - text_multi = { - autoresize = yes - maximumsize = { 390 -1 } - minimumsize = { 390 -1 } - text = "[CharacterFocusWindow.GetSelectedFocusDescription]" - } - - text_multi = { - autoresize = yes - maximumsize = { 390 -1 } - minimumsize = { 390 -1 } - text = "[CharacterFocusWindow.GetFocusDescriptionFromDatabase]" - } - - text_multi = { - autoresize = yes - maximumsize = { 390 -1 } - minimumsize = { 390 -1 } - text = "[CharacterFocusWindow.GetSelectedFocusEffectDesc]" - } - - text_multi = { - autoresize = yes - maximumsize = { 390 -1 } - minimumsize = { 390 -1 } - text = "[CharacterFocusWindow.GetSelectedFocusModifierDesc]" - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[StringIsEmpty(CharacterFocusWindow.GetSelectedFocusName)]" - text = "EDUCATION_FOCUS_SELECTED_EMPTY_STATE" - } - } - - } - - vbox = { - margin = { 15 15 } - spacing = 15 - - text_multi = { - text = "[CharacterFocusWindow.GetWarningText]" - default_format = "#low;italic" - autoresize = yes - maximumsize = { 390 -1 } - } - - button_primary = { - tooltip = "[CharacterFocusWindow.GetCanChangeFocusDescription]" - onclick = "[CharacterFocusWindow.OnClickChangeFocus]" - enabled = "[CharacterFocusWindow.CanChangeFocus]" - text = "CHOOSE_FOCUS" - } - } - } -} - - - - diff --git a/N3OW/gui/window_character_lifestyle.gui b/N3OW/gui/window_character_lifestyle.gui deleted file mode 100644 index 423ac01b..00000000 --- a/N3OW/gui/window_character_lifestyle.gui +++ /dev/null @@ -1,1513 +0,0 @@ -###################################################### -################### LIFESTYLES ####################### -###################################################### - -window = { - name = "character_lifestyle_window" - widgetid = "character_lifestyle_window" - size = { 100% 100% } - parentanchor = center|hcenter - # position = { 80 20 } - movable = no - filter_mouse = all - layer = middle - - datacontext = "[CharacterLifestyleWindow.GetCharacter]" - datacontext = "[CharacterLifestyleWindow.GetSelectedLifestyle]" - - using = Window_Background_No_Edge - - background = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - color = { 0.12 0.12 0.12 1 } - mirror = horizontal - margin_right = -1200 - alpha = 0.6 - } - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Sound_Window_AmbienceMute_Snapshot - - on_start = "[GetVariableSystem.Set( 'lifestyle_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - - on_start = "[GetVariableSystem.Clear( 'lifestyle_open' )]" - } - - - ### Select Focus start screen - vbox = { - name = "lifestyle_selection" - visible = "[Not( Lifestyle.IsValid )]" - - margin_top = 10 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHARACTER_LIFESTYLE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[CharacterLifestyleWindow.Close]" - } - } - - background = { - using = Background_Bottom_Fade - } - - background = { - using = Background_Area_Dark - margin = { 0 -100 } - alpha = 0.3 - } - - hbox = { - name = "lifestyles" - datamodel = "[CharacterLifestyleWindow.GetLifestyles]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 150 } - margin_left = 260 - margin_right = 40 - spacing = 10 - max_width = 2080 - - item = { - button_normal = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - onclick = "[CharacterLifestyleWindow.OpenLifestyle( Lifestyle.Self )]" - onclick = "[PlaySfxEvent( Concatenate( 'event:/SFX/UI/Character/Lifestyle/sfx_ui_character_lifestyle_', Lifestyle.GetKey ) )]" - #clicksound = - maximumsize = { -1 900 } - - effectname = "NoHighlight" - #gfxtype = propstretchedicongfx - #shaderfile = "gfx/FX/pdxgui_default.shader" - - texture = "[Lifestyle.GetBackground]" - - modify_texture = { - texture = "gfx/interface/window_lifestyles/lifestyles_illustration_mask.dds" - blend_mode = alphamultiply - spriteType = Corneredstretched - spriteborder = { 30 30 } - } - - button = { - size = { 100% 100% } - alpha = 0 - onclick = "[CharacterLifestyleWindow.OpenLifestyle( Lifestyle.Self )]" - onclick = "[PlaySfxEvent( Concatenate( 'event:/SFX/UI/Character/Lifestyle/sfx_ui_character_lifestyle_', Lifestyle.GetKey ) )]" - - state = { - name = _mouse_enter - alpha = 1 - } - - state = { - name = _mouse_leave - alpha = 0 - } - - background = { - texture = "gfx/interface/window_lifestyles/lifestyles_illustration_hover.dds" - spriteType = Corneredtiled - spriteborder = { 30 30 } - alpha = 1 - - modify_texture = { - texture = "gfx/interface/window_lifestyles/lifestyles_illustration_mask.dds" - blend_mode = alphamultiply - spriteType = Corneredtiled - spriteborder = { 30 30 } - } - } - } - - icon = { - size = { 100% 100% } - using = Background_Bottom_Fade - mirror = vertical - - modify_texture = { - texture = "gfx/interface/window_lifestyles/lifestyles_illustration_mask.dds" - blend_mode = alphamultiply - spriteType = Corneredtiled - spriteborder = { 30 30 } - } - } - - icon = { - parentanchor = top|hcenter - position = { 0 -50 } - size = { 120 120 } - texture = "[Lifestyle.GetIcon]" - framesize = { 160 160 } - } - - text_multi = { - parentanchor = top|right - position = { -20 10 } - visible = "[GreaterThan_int32( Character.GetPerkPointsUsed( Lifestyle.Self ), '(int32)0' )]" - - text = "LIFESTYLE_POINTS_ALREADY_USED_TEXT" - default_format = "#low" - max_width = 60 - autoresize = yes - align = center - - background = { - using = Background_Area_Dark - margin = { 10 0 } - margin_bottom = 5 - } - } - - vbox = { - margin = { 10 30 } - margin_top = 60 - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - spacing = 20 - - text_single = { - text = "[Lifestyle.GetNameNoTooltip]" - default_format = "#high" - using = Font_Type_Flavor - fontsize = 25 - } - - text_multi = { - text = "[Lifestyle.GetDescription]" - size = { 100 90 } - align = top|hcenter - layoutpolicy_horizontal = expanding - margin = { 5 0 } - } - - text_multi = { - visible = "[Lifestyle.IsHighlightedForCharacter( Character.Self )]" - layoutpolicy_horizontal = expanding - size = { 100 80 } - margin = { 10 0 } - text = "[Lifestyle.GetHighlightDescription]" - align = center - - background = { - using = Background_Area_Dark - } - } - - expand = {} - } - - vbox = { - text_single = { - visible = "[GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' )]" - text = "LIFESTYLE_POINTS_TO_USE_TEXT" - default_format = "#low" - max_width = 280 - - # animation_attention = {} - - background = { - using = Background_Area_Dark - margin = { 10 0 } - margin_bottom = 5 - } - } - } - - expand = {} - } - } - } - } - } - - hbox = { - visible = "[Lifestyle.IsValid]" - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 3 - - background = { - texture = "[Lifestyle.GetBackground]" - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 7 - } - } - - widget = { - parentanchor = bottom|left - size = { 270 560 } - allow_outside = no - - portrait_lifestyles = { - alwaystransparent = "[Not(Lifestyle.IsValid)]" - parentanchor = bottom|left - position = { -200 0 } - } - } - - ### Focus View - vbox = { - name = "focus_view" - visible = "[Lifestyle.IsValid]" - - using = Window_Margins - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - margin_top = -500 - color = { 0 0 0 0.7 } - alpha = 0.7 - mirror = vertical - } - - ### HEADER - widget = { - name = "header_bar" - layoutpolicy_horizontal = expanding - size = { 0 85 } - - background = { - texture = "gfx/interface/component_tiles/tile_background_window_header.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 12 0 } - } - - text_single = { - parentanchor = vcenter - position = { 0 -8 } - margin_left = 5 - text = "LIFESTYLE_WINDOW_TITLE" - using = Font_Type_Flavor - fontsize = 35 - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - } - - hbox = { - widget = { - layoutpolicy_vertical = expanding - size = { 450 0 } - - background = { - texture = "gfx/interface/window_lifestyles/lifestyles_tabs_bg.dds" - margin = { 15 -10 } - } - - flowcontainer = { - name = "lifestyles" - datamodel = "[CharacterLifestyleWindow.GetLifestyles]" - spacing = 10 - parentanchor = center - - item = { - container = { - parentanchor = vcenter - - button_normal = { - visible = "[Not(EqualTo_string( Lifestyle.GetKey, CharacterLifestyleWindow.GetSelectedLifestyle.GetKey ))]" - parentanchor = center - size = { 70 70 } - framesize = { 160 160 } - onclick = "[CharacterLifestyleWindow.OpenLifestyle( Lifestyle.Self )]" - onclick = "[PdxGuiTriggerAllAnimations('lifestyle_tabs_refresh')]" - texture = "[Lifestyle.GetIcon]" - - effectname = "NoHighlight" - gfxtype = framedbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - - #Fade out if character has no perks in that lifestyle - alpha = "[Select_float( GreaterThan_int32(Character.GetPerkPointsUsed( Lifestyle.Self ),'(int32)0'),'(float)1.0','(float)0.6')]" - - tooltip = "LIFESTYLE_SELECT_TOOLTIP" - using = tooltip_se - - highlight_icon = { - visible = "[EqualTo_string( Lifestyle.GetKey, Character.GetLifestyle.GetKey )]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - button_round = { - visible = "[And(GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' ), Character.IsLocalPlayer)]" - parentanchor = bottom|right - size = { 28 28 } - frame = 1 - upframe = 1 - alwaystransparent = yes - - text_single = { - parentanchor = center - position = { 0 -3 } - text = "[Character.GetPerkPoints( Lifestyle.Self )]" - default_format = "#high" - max_width = 180 - align = center - } - } - } - - button_normal = { - visible = "[EqualTo_string( Lifestyle.GetKey, CharacterLifestyleWindow.GetSelectedLifestyle.GetKey )]" - parentanchor = center - size = { 70 70 } - framesize = { 160 160 } - texture = "[Lifestyle.GetIcon]" - - effectname = "NoHighlight" - gfxtype = framedbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - - tooltip = "LIFESTYLE_SELECT_TOOLTIP" - using = tooltip_se - - - - state = { - name = _show - size = { 90 90 } - duration = 0.15 - using = Animation_Curve_Default - } - - state = { - name = _hide - size = { 70 70 } - duration = 0.15 - using = Animation_Curve_Default - } - - icon = { - visible = "[EqualTo_string( Lifestyle.GetKey, Character.GetLifestyle.GetKey )]" - size = { 100% 100%} - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - } - - button_round = { - visible = "[And(GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' ), Character.IsLocalPlayer)]" - parentanchor = bottom|right - size = { 28 28 } - frame = 2 - upframe = 2 - alwaystransparent = yes - - text_single = { - parentanchor = center - position = { 0 -3 } - text = "[Character.GetPerkPoints( Lifestyle.Self )]" - default_format = "#high" - max_width = 180 - align = center - } - } - } - } - } - } - } - } - - flowcontainer = { - parentanchor = right|vcenter - position = { -10 0 } - spacing = 25 - - button_tertiary = { - visible = "[Character.IsLocalPlayer]" - parentanchor = vcenter - size = { 150 32 } - onclick = "[CharacterLifestyleWindow.OpenRefundPerks]" - enabled = "[CharacterLifestyleWindow.CanRefundPerks]" - - text = "REFUND_PERKS" - tooltip = "REFUND_PERKS_TOOLTIP" - } - - buttons_window_control = { - blockoverride "button_close" - { - onclick = "[CharacterLifestyleWindow.Close]" - } - } - } - } - - ### MAIN BODY - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - margin_top = 10 - - ## LEFT BAR - vbox = { - layoutpolicy_vertical = expanding - minimumsize = { 270 0 } - - vbox = { - - minimumsize = { 0 100 } - spacing = 10 - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - # background = { - # texture = "gfx/interface/component_tiles/tile_background_window_header.dds" - # spriteType = Corneredtiled - # spriteborder = { 20 20 } - # margin = { 10 27 } - # margin_top = 54 - # } - - vbox = { - spacing = 10 - visible = "[Character.IsLocalPlayer]" - - - text_multi = { - layoutpolicy_horizontal = expanding - text = "[Lifestyle.GetDescription]" - using = Font_Size_Medium - autoresize = yes - max_width = 550 - min_width = 550 - - } - - text_multi = { - layoutpolicy_horizontal = expanding - visible = "[Lifestyle.IsHighlightedForCharacter( Character.Self )]" - text = "[Lifestyle.GetHighlightDescription]" - default_format = "#high;italic" - autoresize = yes - max_width = 550 - - } - } - - spacer = { - size = {550 10 } - visible = "[Not(Character.IsLocalPlayer)]" - } - - - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - vbox = { - name = "focus_area" - datamodel = "[CharacterLifestyleWindow.GetFocuses]" - margin = { 10 0 } - spacing = 8 - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - text_label_center = { - text = "LIFESTYLE_FOCUS_HEADER" - } - - text_single = { - visible = "[GetPlayer.GetLifestyle.IsValid]" - text = "FOCUS_CANCHANGE" - default_format = "#low" - } - - text_single = { - visible = "[Not( GetPlayer.GetLifestyle.IsValid )]" - text = "FOCUS_CANCHANGE_NO_FOCUS" - default_format = "#low" - # animation_attention_text = {} - } - - item = { - button_standard_clean = { - layoutpolicy_horizontal = expanding - size = { 300 240 } - - enabled = "[Or(CharacterLifestyleWindow.CanSelectFocus( FocusType.Self ), EqualTo_string( FocusType.GetKey, Character.GetFocus.GetKey ))]" - down = "[EqualTo_string( FocusType.GetKey, Character.GetFocus.GetKey )]" - onclick = "[CharacterLifestyleWindow.SelectFocus( FocusType.Self )]" - alwaystransparent = "[EqualTo_string( FocusType.GetKey, Character.GetFocus.GetKey )]" - - - blockoverride "disabled" {} - - background = { - using = Background_Area_Dark - alpha = 0.9 - } - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'diplomacy_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_blue.dds" - alpha = 0.4 - } - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'martial_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_red.dds" - alpha = 0.4 - } - - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'stewardship_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_green.dds" - alpha = 0.4 - } - - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'intrigue_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_purple.dds" - alpha = 0.4 - } - - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'learning_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_gray.dds" - alpha = 0.4 - } - - background = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'wanderer_lifestyle' )]" - texture = "gfx/interface/progressbars/progress_brown.dds" - alpha = 0.2 - } - - vbox = { - margin = { 10 5 } - margin_bottom = 10 - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 3 - spacing = 7 - - highlight_icon_lifestyle_focus = { - texture = "[FocusType.GetIcon]" - alwaystransparent = yes - size = { 35 35 } - } - - text_single = { - text = "[FocusType.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - autoresize = no - - background = { - margin_left = 15 - margin_right = 5 - margin_top = 0 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - text_single = { - visible = "[EqualTo_string( FocusType.GetKey, Character.GetFocus.GetKey )]" - align = right|nobaseline - text = "CURRENT_FOCUS" - default_format = "#low;italic" - margin_right = 5 - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - alwaystransparent = yes - text = "LONG_FOCUS_TEXT" - align = left - } - } - - icon = { - visible = "[Not(Or(CharacterLifestyleWindow.CanSelectFocus( FocusType.Self ), EqualTo_string( FocusType.GetKey, Character.GetFocus.GetKey )))]" - size = { 100% 100% } - using = Background_Area_Dark - alpha = 0.5 - } - } - } - } - } - - expand = {} - } - - ## CENTER AREA - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 0 } - margin_top = 15 - - background = { - #using = Background_Area_Dark - texture = "gfx/interface/window_lifestyles/lifestyles_tree_area_bg.dds" - margin = { 5 5 } - spriteType = Corneredtiled - spriteborder = { 200 200 } - # alpha = 0.8 - - # modify_texture = { - # texture = "gfx/interface/window_lifestyles/lifestyles_dark_bg_mask.dds" - # blend_mode = alphamultiply - # } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Frame - margin_top = -5 - alpha = 0.5 - } - - vbox = { - visible = "[Character.IsLocalPlayer]" - margin = { 0 20 } - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - widget = { - size = { 550 30 } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'diplomacy_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_blue.dds" - noprogresstexture = "gfx/interface/progressbars/progress_blue_bg.dds" - } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'martial_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_red.dds" - noprogresstexture = "gfx/interface/progressbars/progress_red_bg.dds" - } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'stewardship_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_green.dds" - noprogresstexture = "gfx/interface/progressbars/progress_green_bg.dds" - } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'intrigue_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_purple.dds" - noprogresstexture = "gfx/interface/progressbars/progress_purple_bg.dds" - } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'learning_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_gray.dds" - noprogresstexture = "gfx/interface/progressbars/progress_gray_bg.dds" - } - - progressbar_lifestyle_xp = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'wanderer_lifestyle' )]" - progresstexture = "gfx/interface/progressbars/progress_brown.dds" - noprogresstexture = "gfx/interface/progressbars/progress_brown_bg.dds" - } - - text_single = { - parentanchor = right - position = { -10 -6 } - visible = "[GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' )]" - text = "[Character.GetPerkPoints( Lifestyle.Self )]" - default_format = "#low" - max_width = 180 - using = Font_Size_Big - tooltip = "LIFESTYLE_POINTS_TOOLTIP" - - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'diplomacy_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_diplomacy.dds" - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'martial_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_martial.dds" - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'stewardship_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_stewardship.dds" - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'intrigue_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_intrigue.dds" - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'learning_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_learning.dds" - } - - icon_lifestyle_unspent_points = { - visible = "[EqualTo_string( Lifestyle.GetKey, 'wanderer_lifestyle' )]" - texture = "gfx/interface/icons/lifestyles_perks/node_wanderer.dds" - } - - - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "EXPERIENCE" - } - - text_single = { - text = "UNLOCKED_PERKS" - } - } - } - } - - ## Trees - hbox = { - datamodel = "[CharacterLifestyleWindow.GetPerkTrees]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 20 - spacing = 10 - - state = { - name = "lifestyle_tabs_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[Not(PerkGuiTree.IsCompleted)]" - texture = "[PerkGuiTree.GetBackground]" - alpha = 0.15 - - modify_texture = { - texture = "gfx/interface/window_lifestyles/lifestyles_perk_tree_bg.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - blend_mode = alphamultiply - } - } - - container = { - text_label_center = { - parentanchor = top|hcenter - position = { 0 25 } - text = "[PerkGuiTree.GetName]" - default_format = "#low" - using = Font_Size_Medium - } - - divider_light = { - position = { 0 65 } - size = { 100% 3 } - alpha = 0.25 - } - - container = { - name = "perk_tree_item_line_area" # Name used in code do not change - datamodel = "[PerkGuiTree.GetItems]" - parentanchor = hcenter - position = { 0 85 } - - widget = { - name = "connection_lines" - size = { 100% 100% } - datamodel = "[PerkGuiTree.GetConnections]" - visible = "[PerkGuiTree.SetupLinesContainer( PdxGuiWidget.Self )]" - - item = { - container = { - - # Perks that are unlocked - line = { - visible = "[PerkGuiTree.HasUnlockedPerk( PerkLineConnection.GetChild.GetItem )]" - using = Line_Lifestyles_Unlocked - from = "[PerkLineConnection.GetLineFrom]" - to = "[PerkLineConnection.GetLineTo]" - } - - # Perks that can be chosen - line = { - visible = "[And( Not( PerkGuiTree.HasUnlockedPerk( PerkLineConnection.GetChild.GetItem ) ), CharacterLifestyleWindow.CanSelectPerkIgnoreCost( PerkLineConnection.GetChild.GetItem ) )]" - using = Line_Lifestyles_CanUnlock - from = "[PerkLineConnection.GetLineFrom]" - to = "[PerkLineConnection.GetLineTo]" - } - - # Perks that are unavailable - line = { - visible = "[Not( Or( PerkGuiTree.HasUnlockedPerk( PerkLineConnection.GetChild.GetItem ), CharacterLifestyleWindow.CanSelectPerkIgnoreCost( PerkLineConnection.GetChild.GetItem ) ) )]" - using = Line_Lifestyles_Unavailable - from = "[PerkLineConnection.GetLineFrom]" - to = "[PerkLineConnection.GetLineTo]" - } - } - } - } - - item = { - widget = { - size = { 100 100 } - datacontext = "[PerkLineItem.GetItem]" - position = "[PerkGuiTree.GetItemPosition( Perk.Self )]" - - container = { - parentanchor = center - - widget = { - name = "top_pin" - visible = "[PerkLineItem.SetupTopWidget( PdxGuiWidget.Self )]" - position = { 0 -20 } - } - - widget = { - name = "bottom_pin" - visible = "[PerkLineItem.SetupBottomWidget( PdxGuiWidget.Self )]" - position = { 0 -15 } - } - } - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - ignoreinvisible = yes - - # Normal, non-chosen perks - button_normal = { - size = { 95 75 } - visible = "[And(And( Character.IsLocalPlayer, Not( Character.HasPerk( Perk.Self ) ) ), Not(Perk.IsFinisher) )]" - onclick = "[CharacterLifestyleWindow.SelectPerk( Perk.Self )]" - enabled = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - - tooltipwidget = { - using = perk_tooltip_selection - } - using = tooltip_se - tooltip_offset = {30 0} - - widget = { - size = { 50 50 } - parentanchor = center - alwaystransparent = yes - visible = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - - # animation_attention = { - # position = { 0 -22 } - # texture = "gfx/particles/glow.dds" - # } - } - - highlight_icon = { - parentanchor = top|hcenter - texture = "[Perk.GetIcon]" - size = { 32 32 } - framesize = { 60 60 } - - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - } - - text_multi = { - visible = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - parentanchor = top|hcenter - position = { 0 30 } - max_width = 115 - autoresize = yes - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - default_format = "#high" - align = top|hcenter - - background = { - using = Background_Area - margin = { 20 0 } - margin_bottom = 5 - margin_top = 5 - } - } - - text_multi = { - visible = "[Not(And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid))]" - parentanchor = top|hcenter - position = { 0 30 } - max_width = 115 - autoresize = yes - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - default_format = "#low" - align = top|hcenter - - background = { - using = Background_Area - margin = { 20 0 } - margin_bottom = 5 - margin_top = 5 - } - } - } - - # Normal chosen perks - widget = { - visible = "[And(Or( Not( Character.IsLocalPlayer ), Character.HasPerk( Perk.Self ) ), Not(Perk.IsFinisher))]" - size = { 95 75 } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'perk_spent', 'true' )]" - } - - tooltipwidget = { - using = perk_tooltip_contents - } - using = tooltip_se - tooltip_offset = {30 0} - - icon = { - parentanchor = top|hcenter - enabled = "[Character.HasPerk( Perk.Self )]" - texture = "[Perk.GetIcon]" - - size = { 32 32 } - framesize = { 60 60 } - frame = "[BoolTo1And2( Character.HasPerk( Perk.Self ) )]" - } - - text_multi = { - parentanchor = top|hcenter - position = { 0 32 } - max_width = 115 - autoresize = yes - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - align = top|hcenter - - background = { - using = Background_Area_Dark - margin = { 20 0 } - margin_bottom = 5 - margin_top = 5 - } - } - } - - # Non-chosen Mastery perks - button_normal = { - datacontext = "[Perk.GetUnlockTrait]" - datacontext = "[Character.GetFaith]" - visible = "[And(And( Character.IsLocalPlayer, Not( Character.HasPerk( Perk.Self ) ) ), Perk.IsFinisher )]" - size = { 100 100 } - onclick = "[CharacterLifestyleWindow.SelectPerk( Perk.Self )]" - enabled = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - - gfxtype = framedbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - - tooltipwidget = { - using = character_trait_tooltip - } - using = tooltip_se - tooltip_offset = {30 0} - - highlight_icon = { - parentanchor = top|hcenter - position = { 0 -10 } - texture = "[Perk.GetIcon]" - - size = { 60 60 } - - glow = { - visible = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - using = Color_Orange - using = Glow_Standard - block "glow_radius" - { - glow_radius = 10 - } - } - using = Animation_Glow_Pulse - - gfxtype = framedbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - } - - text_multi = { - visible = "[And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid)]" - parentanchor = center - position = { 0 5 } - size = { 115 50 } - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - default_format = "#high" - align = center - - background = { - using = Background_Area - margin_bottom = 3 - margin = { 10 0 } - } - } - - text_multi = { - visible = "[Not(And(CharacterLifestyleWindow.CanSelectPerk( Perk.Self ), Character.GetLifestyle.IsValid))]" - parentanchor = center - position = { 0 5 } - size = { 115 50 } - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - default_format = "#low" - align = center - - background = { - using = Background_Area - margin_bottom = 3 - margin = { 10 0 } - } - } - } - - # Chosen Mastery perks - widget = { - datacontext = "[Perk.GetUnlockTrait]" - datacontext = "[Character.GetFaith]" - visible = "[And(Or( Not( Character.IsLocalPlayer ), Character.HasPerk( Perk.Self ) ), Perk.IsFinisher)]" - size = { 100 100 } - - tooltipwidget = { - using = character_trait_tooltip - } - using = tooltip_se - tooltip_offset = {30 0} - - - icon = { - parentanchor = top|hcenter - position = { 0 -10 } - enabled = "[Character.HasPerk( Perk.Self )]" - texture = "[Perk.GetIcon]" - - size = { 60 60 } - frame = "[BoolTo1And2( Character.HasPerk( Perk.Self ) )]" - } - - text_multi = { - parentanchor = center - position = { 0 5 } - size = { 115 50 } - - text = "[Perk.GetNameNoTooltip( Character.Self )]" - align = center - - background = { - using = Background_Area - margin_bottom = 3 - } - } - } - } - } - } - } - } - - expand = {} - } - } - } - } - } - } - } - } - - flowcontainer = { - parentanchor = bottom|left - position = { 20 -10 } - spacing = 10 - direction = vertical - - background = { - using = Background_Area_Dark - margin_top = 150 - margin_bottom = 20 - margin_right = 280 - margin_left = 20 - mirror = horizontal - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - # background = { - # texture = "gfx/interface/window_character/characterlist_skills_bg.dds" - # spriteType = Corneredstretched - # spriteborder = { 10 10 } - # margin = { 15 5 } - # } - - # background = { - # using = Background_Area_Dark - # margin = { 10 5 } - # } - - flowcontainer = { - spacing = 5 - margin_left = 15 - margin_right = 25 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = 1 - } - - icon = { - name = "skill_icon" - size = { 35 35 } - framesize = { 60 60 } - frame = 1 - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - text = "[Character.GetSkill( 'diplomacy' )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - flowcontainer = { - spacing = 5 - margin_left = 15 - margin_right = 25 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = 2 - } - - icon = { - name = "skill_icon" - size = { 35 35 } - framesize = { 60 60 } - frame = 2 - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - text = "[Character.GetSkill( 'martial' )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - flowcontainer = { - spacing = 5 - margin_left = 15 - margin_right = 25 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = 3 - } - - icon = { - name = "skill_icon" - size = { 35 35 } - framesize = { 60 60 } - frame = 3 - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - text = "[Character.GetSkill( 'stewardship' )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - flowcontainer = { - spacing = 5 - margin_left = 15 - margin_right = 25 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = 4 - } - - icon = { - name = "skill_icon" - size = { 35 35 } - framesize = { 60 60 } - frame = 4 - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - text = "[Character.GetSkill( 'intrigue' )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - flowcontainer = { - spacing = 5 - margin_left = 15 - margin_right = 25 - - background = { - name = "skill_icon_bg" - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - framesize = { 70 26 } - frame = 5 - } - - icon = { - name = "skill_icon" - size = { 35 35 } - framesize = { 60 60 } - frame = 5 - texture = "gfx/interface/icons/icon_skills.dds" - } - - text_single = { - name = "skill_value" - parentanchor = vcenter - text = "[Character.GetSkill( 'learning' )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - } -} - - -types Lifestyle -{ - type progressbar_lifestyle_xp = progressbar_standard { - parentanchor = vcenter - size = { 500 20 } - - min = 0 - max = "[IntToFloat( Lifestyle.GetXpPerLevel )]" - value = "[FixedPointToFloat( Character.GetLifestyleXp( Lifestyle.Self, '(bool)yes' ) )]" - - tooltip = "LIFESTYLE_XP_TOOLTIP" - using = tooltip_below - } - - type icon_lifestyle_unspent_points = icon { - # set texture when used - - position = { 1 -6 } - parentanchor = right - size = { 40 40 } - framesize = { 60 60 } - frame = 2 - - tooltip = "LIFESTYLE_POINTS_TOOLTIP" - - textbox = { - size = { 100% 100% } - align = center|nobaseline - visible = "[GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' )]" - text = "[Character.GetPerkPoints( Lifestyle.Self )]" - default_format = "#high;weak_glow" - using = Font_Size_Big - } - - textbox = { - size = { 100% 100% } - align = center|nobaseline - visible = "[Not(GreaterThan_int32( Character.GetPerkPoints( Lifestyle.Self ), '(int32)0' ))]" - text = "[Character.GetPerkPoints( Lifestyle.Self )]" - default_format = "#low;weak_glow" - using = Font_Size_Big - } - } -} \ No newline at end of file diff --git a/N3OW/gui/window_combat.gui b/N3OW/gui/window_combat.gui deleted file mode 100644 index 132dc71d..00000000 --- a/N3OW/gui/window_combat.gui +++ /dev/null @@ -1,2412 +0,0 @@ -window = { - name = "combat_window" - size = { 875 330 } - position = { 0 27 } - gfxtype = windowgfx - parentanchor = bottom|hcenter - movable = no - layer = top - allow_outside = yes - - state = { - name = _show - position = { 0 27 } - duration = 0.15 - bezier = { 0.5 0 1 0.5 } - alpha = 1 - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_show" - - } - } - - state = { - name = _hide - position = { 0 60 } - duration = 0.2 - bezier = { 0.5 0 1 0.5 } - alpha = 0 - - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_hide" - - } - } - - state = { - name = "phase_change" - alpha = 1 - } - - state = { - name = "daily_tick" - alpha = 1 - } - - state = { - name = "new_battle_event" - alpha = 1 - } - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { -23 -17 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/window_combat/combat_bg_mask.dds" - blend_mode = alphamultiply - spriteType = corneredStretched - spriteborder_top = 200 - spriteborder_right = 200 - spriteborder_left = 200 - } - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { -23 -17 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/window_combat/combat_bg_mask.dds" - blend_mode = alphamultiply - spriteType = corneredStretched - spriteborder_top = 200 - spriteborder_right = 200 - spriteborder_left = 200 - } - } - - margin_widget = { - size = { 100% 100% } - margin = { 23 17 } - - icon = { - datacontext = "[CombatWindow.GetCombat.GetProvince.GetTerrain]" - size = { 100% 100% } - texture = "[Terrain.GetIllustration]" - # texture = "gfx/interface/illustrations/terrain_types/steppe.dds" - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/window_combat/combat_bg_mask.dds" - blend_mode = alphamultiply - spriteType = corneredStretched - spriteborder_top = 200 - spriteborder_right = 200 - spriteborder_left = 200 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - alpha = 0.8 - rotate_uv = -4.75 - translate_uv = { 0 -0.3 } - } - - modify_texture = { - texture = "gfx/interface/window_combat/combat_bg_darken.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - } - - widget = { - size = { 100% 100% } - alpha = 0.6 - - icon = { - visible = "[CombatWindow.IsCombatInPursuitPhase]" - size = { 100% 103 } - parentanchor = top|hcenter - using = Background_Area_Dark - color = { 0.1 0.1 0.1 1 } - - modify_texture = { - texture = "gfx/interface/window_combat/combat_bg_mask.dds" - blend_mode = alphamultiply - spriteType = corneredStretched - spriteborder_top = 200 - spriteborder_right = 200 - spriteborder_left = 200 - } - - using = Animation_ShowHide_Standard - } - } - } - - icon = { - parentanchor = hcenter - position = { 0 -12 } - size = { 821 126 } - texture = "gfx/interface/window_combat/combat_decoration.dds" - } - - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/window_war/tile_frame_top.dds" - position = { 0 -40 } - parentanchor = top|hcenter - texture_density = 2 - } - - widget = { - name = "commander_info" - parentanchor = bottom|hcenter - size = { 100% 0 } - allow_outside = yes - - ### Commander Left - widget = { - name = "left_commander" - datacontext = "[CombatWindow.GetLeftSideCommander]" - parentanchor = left|bottom - position = { 10 -25 } - allow_outside = yes - - container = { - visible = "[Character.IsValid]" - parentanchor = bottom|left - - portrait_body = { - visible = "[CombatWindow.IsAttackerOnLeftSide]" - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetPortrait('environment_combat_window', 'camera_combat_window', 'war_attacker', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - } - - blockoverride "portrait_button_template_tooltip" { - tooltip = "[CombatWindow.GetLeftSideCommanderTooltip]" - } - - blockoverride "coa" {} - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - portrait_body = { - visible = "[Not(CombatWindow.IsAttackerOnLeftSide)]" - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetPortrait('environment_combat_window', 'camera_combat_window', 'war_defender', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - } - - blockoverride "portrait_button_template_tooltip" { - tooltip = "[CombatWindow.GetLeftSideCommanderTooltip]" - } - - blockoverride "coa" {} - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - } - - icon = { - parentanchor = bottom|left - position = { 9 0 } - size = { 200 100 } - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - mirror = vertical - color = { 0.15 0.15 0.15 0.5 } - } - - coa_realm_medium_crown = { - datacontext = "[CombatWindow.GetLeftSideMainParticipant]" - parentanchor = bottom|left - position = { 20 -70 } - tooltip = "[CombatWindow.GetLeftSideRealmFlagTooltip]" - } - - text_label_center = { - visible = "[Not(Character.IsValid)]" - parentanchor = bottom|left - widgetanchor = center - position = { 110 -25 } - text = "COMBAT_WINDOW_NO_COMMANDER" - } - - flowcontainer = { - name = "martial_value" - visible = "[Character.IsValid]" - parentanchor = bottom|left - position = { 100 -80 } - tooltip = "[Character.GetCommanderAdvantageDesc]" - direction = vertical - - background = { - using = Background_Area_Dark - margin = { 12 8 } - color = { 0.1 0.1 0.1 0.8 } - } - - background = { - using = Background_Frame - margin = { 9 5 } - alpha = 0.7 - } - - icon = { - name = "icon" - parentanchor = hcenter - texture = "gfx/interface/icons/icon_commander_advantage.dds" - size = { 30 30 } - } - - text_single = { - name = "label" - parentanchor = hcenter - text = "[Character.GetCommanderAdvantage]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Size_Big - align = nobaseline - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetLeftCommanderTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(CombatWindow.GetLeftCommanderTraits), '(int32)3')]" - - parentanchor = bottom|left - position = { 25 -5 } - flipdirection = yes - datamodel_wrap = 3 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 50 50 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetLeftCommanderTraits]" - visible = "[EqualTo_int32(GetDataModelSize(CombatWindow.GetLeftCommanderTraits), '(int32)4')]" - - parentanchor = bottom|left - position = { 25 -5 } - flipdirection = yes - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 45 45 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetLeftCommanderTraits]" - visible = "[EqualTo_int32(GetDataModelSize(CombatWindow.GetLeftCommanderTraits), '(int32)5')]" - - parentanchor = bottom|left - position = { 25 -5 } - flipdirection = yes - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 36 36 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetLeftCommanderTraits]" - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(CombatWindow.GetLeftCommanderTraits), '(int32)6')]" - - parentanchor = bottom|left - position = { 25 -5 } - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - } - } - } - - flowcontainer = { - parentanchor = bottom|left - position = { 25 -60 } - ignoreinvisible = yes - - text_label_left = { - visible = "[CombatWindow.IsAttackerOnLeftSide]" - text = "ATTACKER" - default_format = "#defender_color" - } - - text_label_left = { - visible = "[Not(CombatWindow.IsAttackerOnLeftSide)]" - text = "DEFENDER" - default_format = "#defender_color" - } - } - } - - ### Commander Right - widget = { - name = "right_commander" - datacontext = "[CombatWindow.GetRightSideCommander]" - parentanchor = bottom|right - position = { -10 -25 } - allow_outside = yes - - container = { - parentanchor = bottom|right - visible = "[Character.IsValid]" - - portrait_body = { - visible = "[Not(CombatWindow.IsAttackerOnLeftSide)]" - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetPortrait('environment_combat_window', 'camera_combat_window', 'war_attacker', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "portrait_button_template_tooltip" { - tooltip = "[CombatWindow.GetRightSideCommanderTooltip]" - } - - blockoverride "coa" {} - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - portrait_body = { - visible = "[CombatWindow.IsAttackerOnLeftSide]" - - blockoverride "portrait_button" - { - portrait_texture = "[Character.GetPortrait('environment_combat_window', 'camera_combat_window', 'war_defender', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_blank.dds" - - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "portrait_button_template_tooltip" { - tooltip = "[CombatWindow.GetRightSideCommanderTooltip]" - } - - blockoverride "coa" {} - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - } - - icon = { - parentanchor = bottom|right - position = { -9 0 } - size = { 200 100 } - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - mirror = vertical - color = { 0.15 0.15 0.15 0.5 } - } - - coa_realm_medium_crown = { - datacontext = "[CombatWindow.GetRightSideMainParticipant]" - parentanchor = bottom|right - position = { -20 -70 } - tooltip = "[CombatWindow.GetRightSideRealmFlagTooltip]" - } - - text_label_center = { - visible = "[Not(Character.IsValid)]" - parentanchor = bottom|right - widgetanchor = center - position = { -110 -25 } - text = "COMBAT_WINDOW_NO_COMMANDER" - } - - flowcontainer = { - name = "martial_value" - visible = "[Character.IsValid]" - parentanchor = bottom|right - position = { -100 -80 } - tooltip = "[Character.GetCommanderAdvantageDesc]" - direction = vertical - - background = { - using = Background_Area_Dark - margin = { 12 8 } - color = { 0.1 0.1 0.1 0.8 } - } - - background = { - using = Background_Frame - margin = { 9 5 } - alpha = 0.7 - } - - icon = { - name = "icon" - parentanchor = hcenter - texture = "gfx/interface/icons/icon_commander_advantage.dds" - size = { 30 30 } - } - - text_single = { - name = "label" - parentanchor = hcenter - text = "[Character.GetCommanderAdvantage]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - using = Font_Size_Big - align = nobaseline - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetRightCommanderTraits]" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(CombatWindow.GetRightCommanderTraits), '(int32)3')]" - - parentanchor = bottom|right - position = { -25 -5 } - flipdirection = yes - datamodel_wrap = 3 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 50 50 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetRightCommanderTraits]" - visible = "[EqualTo_int32(GetDataModelSize(CombatWindow.GetRightCommanderTraits), '(int32)4')]" - - parentanchor = bottom|right - position = { -25 -5 } - flipdirection = yes - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 45 45 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetRightCommanderTraits]" - visible = "[EqualTo_int32(GetDataModelSize(CombatWindow.GetRightCommanderTraits), '(int32)5')]" - - parentanchor = bottom|right - position = { -25 -5 } - flipdirection = yes - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 36 36 } - } - } - } - } - - dynamicgridbox = { - datamodel = "[CombatWindow.GetRightCommanderTraits]" - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(CombatWindow.GetRightCommanderTraits), '(int32)6')]" - - parentanchor = bottom|right - position = { -25 -5 } - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - } - } - } - - flowcontainer = { - parentanchor = bottom|right - position = { -25 -60 } - ignoreinvisible = yes - - text_label_right = { - visible = "[Not(CombatWindow.IsAttackerOnLeftSide)]" - text = "ATTACKER" - default_format = "#attacker_color" - } - - text_label_right = { - visible = "[CombatWindow.IsAttackerOnLeftSide]" - text = "DEFENDER" - default_format = "#attacker_color" - } - } - } - } - } - - text_label_center = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, CombatWindow.IsRightSideWinning)]" - parentanchor = top|hcenter - position = { 0 17 } - fontsize = 30 - text = "game_concept_defeat" - default_format = "#negative_value;bold;glow_color:{0.1,0.1,0.1,1.0}" - - using = Animation_ShowHide_Standard - - background = { - texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds" - margin = { 100 0 } - margin_bottom = 100 - margin_top = 0 - using = Color_Red - alpha = 0.3 - } - } - - text_label_center = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, CombatWindow.IsLeftSideWinning)]" - parentanchor = top|hcenter - position = { 0 17 } - fontsize = 30 - text = "game_concept_victory" - default_format = "#positive_value;bold;glow_color:{0.1,0.1,0.1,1.0}" - - using = Animation_ShowHide_Standard - - background = { - texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds" - margin = { 100 0 } - margin_bottom = 100 - margin_top = 3 - using = Color_Green - alpha = 0.3 - } - } - - widget = { - name = "combat_progress" - visible = "[Not(CombatWindow.IsCombatInPursuitPhase)]" - parentanchor = top|hcenter - position = { 0 19 } - size = { 410 42 } - tooltip = "CV_TT_RELATIVE_SOLDIERS" - using = tooltip_above - - using = Animation_ShowHide_Standard - - background = { - texture = "gfx/interface/progressbars/war_progress_noprogress.dds" - margin = { 0 -3 } - } - - widget = { - size = { 100% 100% } - scissor = yes - - hbox = { - margin_top = 5 - - icon = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( CombatWindow.GetCombat.GetPowerSlider, '(float)100', '(int32)410' )]" - size = { 0 0 } - - texture = "gfx/interface/progressbars/war_progress_blue.dds" - spriteType = Corneredtiled - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/orange.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "daily_tick_left_most_casualties" - next = "b" - duration = 0.05 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0.5 - } - } - - state = { - name = "b" - duration = 0.2 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - icon = { - parentanchor = right|vcenter - position = { 5 0 } - - size = { 25 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.9 0.9 0.9 1 } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.2 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.4 - alpha = 0.85 - } - } - } - - icon = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( CombatWindow.GetCombat.GetPowerSlider, '(float)100', '(int32)410' )]" - size = { 0 0 } - - texture = "gfx/interface/progressbars/war_progress_red.dds" - spriteType = Corneredtiled - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/orange.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "daily_tick_right_most_casualties" - next = "b" - duration = 0.05 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0.3 - } - } - - state = { - name = "b" - duration = 0.2 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - icon = { - parentanchor = left|vcenter - position = { -6 0 } - mirror = horizontal - - size = { 25 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.9 0.9 0.9 1 } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.2 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.4 - alpha = 0.85 - } - } - } - } - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/siege_frame.dds" - spriteType = Corneredstretched - spriteborder = { 30 40 } - margin = { 5 0 } - margin_bottom = 10 - texture_density = 2 - } - } - - text_label_center = { - name = "combat_result" - visible = "[CombatWindow.IsCombatInPursuitPhase]" - parentanchor = center - text = "[CombatWindow.GetWonLostLabel]" - font = TitleFont - fontsize = 35 - align = nobaseline - margin_bottom = 0 - } - } - - widget = { - name = "troop_counters" - parentanchor = top|hcenter - position = { 0 63 } - size = { 410 70 } - - widget = { - size = { 100% 100% } - visible = "[CombatWindow.IsCombatInPursuitPhase]" - - state = { - name = _show - using = Animation_FadeIn_Standard - duration = 0.8 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - animation_soldier_loss = { - visible = "[CombatWindow.IsCombatInPursuitPhase]" - position = { 55 20 } - - blockoverride "animation_trigger_name" - { - name = "daily_tick_left_most_casualties" - } - } - - animation_soldier_loss = { - visible = "[CombatWindow.IsCombatInPursuitPhase]" - parentanchor = right - position = { -22 20 } - - blockoverride "animation_trigger_name" - { - name = "daily_tick_right_most_casualties" - } - } - } - - flowcontainer = { - name = "left_soldiers" - datacontext = "[CombatWindow.GetLeftCombatSide]" - datacontext = "[CombatSide.GetComposition]" - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - ignoreinvisible = yes - - background = { - margin = { 45 20 } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.2 0.2 0.2 0.8 } - } - - flowcontainer = { - visible = "[And( CombatWindow.IsCombatInPursuitPhase, Not(CombatSide.IsStillFighting ))]" - spacing = 3 - - using = Animation_ShowHide_Standard - - icon = { - name = "fled_icon_left" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_retreat.dds" - } - - text_single = { - text = "[ArmyComposition.GetSoldierCountString]" - default_format = "#N;glow_color:{0.1,0.1,0.1,1}" - fontsize = 25 - align = nobaseline - } - } - - flowcontainer = { - visible = "[Or( Not(CombatWindow.IsCombatInPursuitPhase), CombatSide.IsStillFighting )]" - direction = vertical - spacing = -5 - - using = Animation_ShowHide_Standard - - flowcontainer = { - spacing = 3 - - icon = { - name = "icon_soldier" - parentanchor = vcenter - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 25 25 } - } - - text_single = { - text = "[CombatSide.GetCurrentFightingMen|0]" - fontsize = 25 - align = nobaseline - default_format = "#high;glow_color:{0.1,0.1,0.1,1}" - - text_single = { - text = "[CombatSide.GetCurrentFightingMen|0]" - fontsize = 25 - align = nobaseline - default_format = "#N;glow_color:{0.1,0.1,0.1,1}" - - state = { - name = "daily_tick_left_most_casualties" - next = "b" - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - trigger_on_create = yes - } - - state = { - name = "b" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - } - - } - - army_quality_icon = { - parentanchor = vcenter - } - } - - flowcontainer = { - visible = "[CombatSide.IsStillFighting]" - tooltip = "COW_TT_SOFT_CASUALTIES_LEFT" - spacing = 3 - ignoreinvisible = yes - - using = Animation_ShowHide_Standard - - icon = { - name = "fled_icon_left" - parentanchor = vcenter - size = { 20 20 } - texture = "gfx/interface/icons/icon_retreat.dds" - } - - text_single = { - text = "[CombatWindow.GetLeftCombatSide.GetSoftCasualties|0]" - default_format = "#medium;glow_color:{0.1,0.1,0.1,1}" - align = nobaseline - } - } - } - } - - text_label_center = { - parentanchor = top|hcenter - position = { 0 1 } - text = "[CombatWindow.GetName]" - max_width = 185 - fontsize = 20 - font = TitleFont - default_format = "#high" - alpha = 0.5 - } - - flowcontainer = { - name = "right_soldiers" - parentanchor = right - datacontext = "[CombatWindow.GetRightCombatSide]" - datacontext = "[CombatSide.GetComposition]" - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - ignoreinvisible = yes - - background = { - margin = { 45 20 } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.2 0.2 0.2 0.8 } - } - - flowcontainer = { - visible = "[And( CombatWindow.IsCombatInPursuitPhase, Not(CombatSide.IsStillFighting ))]" - spacing = 3 - - using = Animation_ShowHide_Standard - - icon = { - name = "fled_icon_left" - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_retreat.dds" - } - - text_single = { - text = "[ArmyComposition.GetSoldierCountString]" - default_format = "#N;glow_color:{0.1,0.1,0.1,1}" - fontsize = 25 - align = nobaseline - } - - } - - flowcontainer = { - visible = "[Or( Not(CombatWindow.IsCombatInPursuitPhase), CombatSide.IsStillFighting )]" - direction = vertical - spacing = -5 - - using = Animation_ShowHide_Standard - - flowcontainer = { - spacing = 3 - - icon = { - name = "icon_soldier" - parentanchor = vcenter - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 25 25 } - } - - text_single = { - text = "[CombatSide.GetCurrentFightingMen|0]" - fontsize = 25 - align = nobaseline - default_format = "#high;glow_color:{0.1,0.1,0.1,1}" - - text_single = { - text = "[CombatSide.GetCurrentFightingMen|0]" - fontsize = 25 - align = nobaseline - default_format = "#N;glow_color:{0.1,0.1,0.1,1}" - - state = { - name = "daily_tick_right_most_casualties" - next = "b" - duration = 0.1 - using = Animation_Curve_Default - alpha = 1 - trigger_on_create = yes - } - - state = { - name = "b" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - } - } - - army_quality_icon = { - parentanchor = vcenter - } - } - - flowcontainer = { - visible = "[CombatSide.IsStillFighting]" - tooltip = "COW_TT_SOFT_CASUALTIES_RIGHT" - spacing = 3 - parentanchor = right - - using = Animation_ShowHide_Standard - - icon = { - name = "fled_icon_left" - parentanchor = vcenter - size = { 20 20 } - texture = "gfx/interface/icons/icon_retreat.dds" - } - - text_single = { - text = "[CombatWindow.GetRightCombatSide.GetSoftCasualties|0]" - default_format = "#medium;glow_color:{0.1,0.1,0.1,1}" - align = nobaseline - } - } - } - } - } - - icon = { - name = "terrain" - position = { 187 26 } - datacontext = "[CombatWindow.GetCombat.GetProvince.GetTerrain]" - texture = "[Terrain.GetIcon]" - size = { 30 30 } - tooltip = "HOLDING_TERRAIN_TOOLTIP" - alwaystransparent = no - } - - widget = { - name = "mouseover_catcher" - parentanchor = top|right - position = { -135 15 } - size = { 70 70 } - alwaystransparent = no - } - - buttons_window_control = { - parentanchor = top|right - position = { -154 18 } - - blockoverride "button_go_to" { - onclick = "[CombatWindow.GoToProvince]" - tooltip = "GOTO_PROVINCE_TT" - } - - blockoverride "button_close" - { - onclick = "[CombatWindow.CloseAndDeselect]" - } - } - - ### Battle event - container = { - visible = "[CombatWindow.BattleEventIsShown]" - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - allow_outside = yes - position = { 0 -20 } - - state = { - name = _show - using = Animation_FadeIn_Standard - position_y = -20 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_small" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_y = 0 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_small" - } - } - - button_group = { - size = { 100% 100% } - onclick = "[CombatWindow.IncrementBattleEvent]" - - background = { - using = Background_Area_Dark - color = { 0.13 0.13 0.13 0.85 } - } - } - - flowcontainer = { - name = "battle_event" - datacontext = "[CombatWindow.GetCurrentBattleEvent]" - margin = { 10 10 } - allow_outside = yes - - portrait_head_small = { - name = "left_portrait" - datacontext = "[BattleEvent.GetLeftCharacter( CombatWindow.GetLeftCombatSide.IsAttacker )]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - blockoverride "coa" {} - } - - text_multi = { - name = "title" - autoresize = yes - max_width = 230 - min_width = 230 - margin = { 5 5 } - - text = "[CombatWindow.GetCurrentBattleEvent.GetTitle( CombatWindow.GetLeftCombatSide.IsAttacker )]" - } - - portrait_head_small = { - name = "right_portrait" - datacontext = "[BattleEvent.GetRightCharacter( CombatWindow.GetLeftCombatSide.IsAttacker )]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - blockoverride "coa" {} - - blockoverride "portrait_button" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - } - - icon = { - name = "center_box" - parentanchor = bottom|hcenter - position = { 0 -25 } - size = { 450 170 } - - texture = "gfx/interface/window_combat/combat_info_box.dds" - - modify_texture = { - name = "1_maneuver" - visible = "[CombatWindow.IsCombatInManeuverPhase]" - texture = "gfx/interface/window_combat/combat_info_box_glow.dds" - blend_mode = colordodge - } - - modify_texture = { - name = "2_reteat" - visible = "[CombatWindow.ShowNoRetreatIcon]" - texture = "gfx/interface/window_combat/combat_info_box_glow.dds" - blend_mode = colordodge - translate_uv = { -0.07 0 } - } - - modify_texture = { - name = "3_no_reteat" - visible = "[CombatWindow.ShowRetreatIcon]" - texture = "gfx/interface/window_combat/combat_info_box_glow.dds" - blend_mode = colordodge - translate_uv = { -0.13 0 } - } - - modify_texture = { - name = "4_pursuit" - visible = "[CombatWindow.IsCombatInPursuitPhase]" - texture = "gfx/interface/window_combat/combat_info_box_glow.dds" - blend_mode = colordodge - translate_uv = { -0.198 0 } - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/window_combat/combat_info_box_glow_full.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "phase_change" - next = "b" - duration = 0.4 - using = Animation_Transition_Start - - modify_texture = { - name = "flash" - alpha = 1 - } - } - - state = { - name = "b" - duration = 1 - using = Animation_Transition_End - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - background = { - texture ="gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - color = { 0.6 0.7 0.65 0.3 } - margin = { -10 0 } - margin_top = -30 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - widget = { - name = "combat_phases" - parentanchor = top|hcenter - position = { 0 10 } - size = { 120 28 } - tooltip = "[CombatWindow.GetCurrentPhaseTooltip]" - using = tooltip_ne - } - - widget = { - name = "main_info" - size = { 100% 100% } - - vbox = { - margin = { 10 10 } - margin_top = 40 - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 45 } - - widget = { - name = "advantage" - visible = "[Not(CombatWindow.IsCombatInPursuitPhase)]" - visible_at_creation = no - position = { 0 0 } - size = { 100% 100% } - tooltip = "[CombatWindow.GetAdvantageDescription]" - - using = Animation_ShowHide_Standard - - hbox = { - margin = { 38 0 } - margin_top = 0 - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - - widget = { - name = "progressbar" - size = { 145 10 } - - background = { - texture = "gfx/interface/component_overlay/overlay_stone.dds" - texture_density = 2 - spritetype = corneredtiled - color = { 0.3 0.3 0.34 1 } - alpha = 0.8 - } - - arrow_progressbar_icon = { - size = { 100% 100% } - visible = "[GreaterThan_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)40')]" - - blockoverride "color" - { - using = Color_Blue - mirror = horizontal - } - } - - hbox = { - visible = "[And(LessThanOrEqualTo_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)40'), GreaterThan_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)0'))]" - - widget = { - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( FixedPointToFloat( CombatWindow.GetAdvantage ), '(float)40', '(int32)145' )]" - layoutpolicy_horizontal = expanding - } - - arrow_progressbar_icon = { - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( CombatWindow.GetAdvantage ), '(float)40', '(int32)145' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "color" - { - using = Color_Blue - mirror = horizontal - } - } - } - } - - hbox = { - name = "advantage_icons" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 4 - - # icon = { - # name = "terrain" - # datacontext = "[CombatWindow.GetCombat.GetProvince.GetTerrain]" - # texture = "[Terrain.GetIcon]" - # size = { 30 30 } - # tooltip = "HOLDING_TERRAIN_TOOLTIP" - # } - - expand = {} - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - - widget = { - name = "progressbar" - size = { 145 10 } - - background = { - texture = "gfx/interface/component_overlay/overlay_stone.dds" - texture_density = 2 - spritetype = corneredtiled - color = { 0.3 0.3 0.34 1 } - alpha = 0.8 - } - - arrow_progressbar_icon = { - size = { 100% 100% } - visible = "[LessThan_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)-40')]" - - blockoverride "color" - { - using = Color_Red - } - } - - - hbox = { - visible = "[And(GreaterThanOrEqualTo_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)-40'), LessThan_CFixedPoint( CombatWindow.GetAdvantage, '(CFixedPoint)0'))]" - - arrow_progressbar_icon = { - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( Multiply_float( FixedPointToFloat( CombatWindow.GetAdvantage ), '(float)-1'), '(float)40', '(int32)145' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "color" - { - using = Color_Red - } - } - - widget = { - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( Multiply_float( FixedPointToFloat( CombatWindow.GetAdvantage ), '(float)-1'), '(float)40', '(int32)145' )]" - layoutpolicy_horizontal = expanding - } - } - } - - hbox = { - name = "advantage_icons" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 4 - - # icon = { - # name = "terrain" - # datacontext = "[CombatWindow.GetCombat.GetProvince.GetTerrain]" - # texture = "[Terrain.GetIcon]" - # size = { 30 30 } - # tooltip = "HOLDING_TERRAIN_TOOLTIP" - # } - - expand = {} - } - - expand = {} - } - } - - icon = { - visible = "[Not(CombatWindow.IsCombatInPursuitPhase)]" - parentanchor = top|hcenter - position = { 0 -10 } - size = { 450 64 } - texture = "gfx/interface/window_combat/combat_advantage_bars.dds" - - modify_texture = { - name = "swoosh_left" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - alpha = 1 - translate_uv = { 0.6 0 } - } - - modify_texture = { - name = "swoosh_right" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - alpha = 1 - translate_uv = { -0.6 0 } - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/window_combat/combat_info_advantage_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - # Left side - state = { - name = "combat_left_roll" - next = "left_b" - delay = 0.4 - trigger_on_create = yes - - modify_texture = { - name = "swoosh_left" - alpha = 0.2 - translate_uv = { 0.6 0 } - } - } - - state = { - name = "left_b" - next = "left_c" - duration = 0.3 - - modify_texture = { - name = "swoosh_left" - alpha = 0.3 - translate_uv = { 0 0 } - } - } - - state = { - name = "left_c" - next = "left_d" - - duration = 0.1 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0.3 - } - - modify_texture = { - name = "swoosh_left" - alpha = 0.2 - } - } - - state = { - name = "left_d" - duration = 0.8 - bezier = { 0 0.8 0.6 1 } - - modify_texture = { - name = "flash" - alpha = 0 - } - - modify_texture = { - name = "swoosh_left" - alpha = 0 - } - } - - - # Right side - state = { - name = "combat_right_roll" - next = "right_b" - delay = 0.4 - trigger_on_create = yes - - modify_texture = { - name = "swoosh_right" - alpha = 0.2 - translate_uv = { -0.6 0 } - } - } - - state = { - name = "right_b" - next = "right_c" - duration = 0.3 - - modify_texture = { - name = "swoosh_right" - alpha = 0.3 - translate_uv = { 0 0 } - } - } - - state = { - name = "right_c" - next = "right_d" - - duration = 0.1 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0.3 - } - - modify_texture = { - name = "swoosh_right" - alpha = 0.2 - } - } - - state = { - name = "right_d" - duration = 0.8 - bezier = { 0 0.8 0.6 1 } - - modify_texture = { - name = "flash" - alpha = 0 - } - - modify_texture = { - name = "swoosh_right" - alpha = 0 - } - } - } - - icon = { - parentanchor = top|left - position = { -5 -5 } - texture = "gfx/interface/window_combat/combat_roll_bg.dds" - size = { 55 55 } - tooltip = COW_TT_CURRENT_ROLL_LEFT - - modify_texture = { - name = "flash" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "combat_left_roll" - next = "b" - trigger_on_create = yes - - duration = 0.1 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 1 - } - } - - state = { - name = "b" - - duration = 0.3 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - text_single = { - parentanchor = center - text = "[CombatWindow.GetLeftRoll]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 25 - align = nobaseline - } - } - - icon = { - parentanchor = top|right - position = { 5 -5 } - texture = "gfx/interface/window_combat/combat_roll_bg.dds" - size = { 55 55 } - tooltip = COW_TT_CURRENT_ROLL_RIGHT - mirror = horizontal - - modify_texture = { - name = "flash" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "combat_right_roll" - next = "b" - trigger_on_create = yes - - duration = 0.1 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 1 - } - } - - state = { - name = "b" - - duration = 0.3 - using = Animation_Curve_Default - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - text_single = { - parentanchor = center - text = "[CombatWindow.GetRightRoll]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - fontsize = 25 - align = nobaseline - } - } - - widget = { - size = { 50 50 } - parentanchor = center - position = { 0 -5 } - - text_single = { - name = "advantage" - parentanchor = center - text = "COMBAT_WINDOW_ADVANTAGE" - fontsize = 20 - tooltip = "[CombatWindow.GetAdvantageDescription]" - default_format = "#high;bold;glow_color:{0.1,0.1,0.1,1.0}" - align = nobaseline - } - } - } - - widget = { - name = "pursuit_phase" - visible = "[CombatWindow.IsCombatInPursuitPhase]" - visible_at_creation = no - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - background = { - using = Background_Area - } - - hbox = { - margin = { 20 0 } - margin_top = 5 - - hbox = { - visible = "[CombatWindow.IsRightSideWinning]" - spacing = 5 - - icon = { - name = "left_side_fled" - texture = "gfx/interface/icons/icon_fled.dds" - size = { 35 35 } - } - - text_single = { - text = "[CombatWindow.GetLeftCombatSide.GetPursuingRetreatingLabel]" - using = Font_Size_Medium - align = nobaseline - default_format = "#N" - } - } - - hbox = { - visible = "[CombatWindow.IsLeftSideWinning]" - spacing = 5 - - icon = { - name = "left_side_pursuing" - texture = "gfx/interface/icons/icon_pursuit.dds" - size = { 35 35 } - } - - text_single = { - text = "[CombatWindow.GetLeftCombatSide.GetPursuingRetreatingLabel]" - using = Font_Size_Medium - align = nobaseline - } - - } - - expand = {} - - hbox = { - visible = "[CombatWindow.IsLeftSideWinning]" - spacing = 5 - - text_single = { - text = "[CombatWindow.GetRightCombatSide.GetPursuingRetreatingLabel]" - using = Font_Size_Medium - align = nobaseline - default_format = "#N" - } - - icon = { - name = "right_side_fled" - texture = "gfx/interface/icons/icon_fled.dds" - size = { 35 35 } - } - } - - hbox = { - visible = "[CombatWindow.IsRightSideWinning]" - spacing = 5 - - text_single = { - text = "[CombatWindow.GetRightCombatSide.GetPursuingRetreatingLabel]" - using = Font_Size_Medium - align = nobaseline - } - - icon = { - name = "right_side_pursuing" - texture = "gfx/interface/icons/icon_pursuit.dds" - mirror = horizontal - size = { 35 35 } - } - } - } - } - } - - hbox = { - name = "MAA" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - text_single = { - visible = "[IsDataModelEmpty(CombatWindow.GetLeftSideMaaTypes)]" - text = "COMBAT_WINDOW_NO_MAA" - default_format = "#weak" - align = nobaseline - margin_left = 5 - } - - overlappingitembox = { - datamodel = "[CombatWindow.GetLeftSideMaaTypes]" - datacontext = "[CombatWindow.GetLeftCombatSide]" - ignoreinvisible = yes - spacing = -2 - maximumsize = { 200 40 } - minimumsize = { 0 40 } - autoresize = yes - - item = { - container = { - icon_maa_combat = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, Not(CombatMaaItem.IsGoodAftermath(CombatSide.IsStillFighting)))]" - - blockoverride "glow" - { - visible = no - - } - } - - icon_maa_combat = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, CombatMaaItem.IsGoodAftermath(CombatSide.IsStillFighting))]" - - blockoverride "glow" - { - using = Color_Green - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)3'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Red - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)2'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Bright_Yellow - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)1'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Green - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)0'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - visible = no - - } - } - } - } - } - - expand = { - } - - overlappingitembox = { - datamodel = "[CombatWindow.GetRightSideMaaTypes]" - datacontext = "[CombatWindow.GetRightCombatSide]" - ignoreinvisible = yes - spacing = -2 - maximumsize = { 200 40 } - minimumsize = { 0 40 } - autoresize = yes - righttoleft = yes - - item = { - container = { - icon_maa_combat = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, Not(CombatMaaItem.IsGoodAftermath(CombatSide.IsStillFighting)))]" - - blockoverride "glow" - { - visible = no - - } - } - - icon_maa_combat = { - visible = "[And(CombatWindow.IsCombatInPursuitPhase, CombatMaaItem.IsGoodAftermath(CombatSide.IsStillFighting))]" - - blockoverride "glow" - { - using = Color_Green - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)3'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Red - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)2'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Bright_Yellow - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)1'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - using = Color_Green - - } - } - - icon_maa_combat = { - visible = "[And(EqualTo_int32(CombatMaaItem.GetPerformance, '(int32)0'), Not(CombatWindow.IsCombatInPursuitPhase))]" - - blockoverride "glow" - { - visible = no - - } - } - } - } - } - - text_single = { - visible = "[IsDataModelEmpty(CombatWindow.GetRightSideMaaTypes)]" - text = "COMBAT_WINDOW_NO_MAA" - default_format = "#weak" - align = nobaseline - margin_right = 5 - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - alpha = 0.5 - } - - hbox = { - name = "knights" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_top = 3 - - text_single = { - visible = "[And(LessThanOrEqualTo_int32( CombatWindow.GetLeftKnightCount, '(int32)0' ), LessThanOrEqualTo_int32( CombatWindow.GetRightKnightCount, '(int32)0' ))]" - text = "CW_NO_KNIGHTS" - default_format = "#weak" - align = nobaseline - } - - hbox = { - visible = "[Not(And(LessThanOrEqualTo_int32( CombatWindow.GetLeftKnightCount, '(int32)0' ), LessThanOrEqualTo_int32( CombatWindow.GetRightKnightCount, '(int32)0' )))]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "left_knights" - visible = "[GreaterThan_int32( CombatWindow.GetLeftKnightCount, '(int32)0' )]" - # visible = "[GreaterThan_int32( CombatWindow.GetLeftKnightCount, '(int32)10' )]" - text = "COW_KNIGHT_COUNT_LEFT" - align = nobaseline - tooltip = "COW_TT_KNIGHT_COUNT_LEFT" - } - - text_single = { - name = "left_no_knights" - visible = "[Not(GreaterThan_int32( CombatWindow.GetLeftKnightCount, '(int32)0' ))]" - text = "CW_NO_KNIGHTS" - default_format = "#weak" - align = nobaseline - } - - # icon = { - # size = { 20 20 } - # texture = "gfx/interface/icons/portraits/knight.dds" - # } - - expand = {} - - # icon = { - # size = { 20 20 } - # texture = "gfx/interface/icons/portraits/knight.dds" - # } - - text_single = { - name = "right_no_knights" - visible = "[Not(GreaterThan_int32( CombatWindow.GetRightKnightCount, '(int32)0' ))]" - text = "CW_NO_KNIGHTS" - default_format = "#weak" - align = nobaseline - } - - text_single = { - name = "right_knights" - visible = "[GreaterThan_int32( CombatWindow.GetRightKnightCount, '(int32)0' )]" - # visible = "[GreaterThan_int32( CombatWindow.GetRightKnightCount, '(int32)10' )]" - text = "COW_KNIGHT_COUNT_RIGHT" - align = nobaseline - tooltip = "COW_TT_KNIGHT_COUNT_RIGHT" - } - } - } - - expand = {} - } - } - } -} - -types CombatWindow -{ - type animation_soldier_loss = icon { - widgetanchor = center - size = { 15 15 } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - alpha = 0 - - modify_texture = { - name = "mask_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = 1 - } - - modify_texture = { - name = "mask_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - rotate_uv = -1 - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - alpha = 0.1 - } - - modify_texture = { - name = "mask_4" - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = mask - } - - modify_texture = { - name = "mask_3" - texture = "gfx/interface/colors/gold.dds" - blend_mode = add - } - - state = { - block "animation_trigger_name" - { - name = "name" - } - next = b - trigger_on_create = yes - - using = Animation_Curve_Default - scale = 1 - alpha = 0 - } - - state = { - name = b - next = c - - duration = 0.3 - bezier = { 0.5 0 1 0.5 } - - scale = 5 - alpha = 0.7 - } - - state = { - name = c - duration = 0.3 - alpha = 0 - scale = 6 - } - - state = { - name = rotate_a - next = rotate_b - trigger_on_create = yes - - modify_texture = { - name = "mask_1" - rotate_uv = 1 - } - } - - state = { - name = rotate_a - next = rotate_b - - duration = 0.5 - - modify_texture = { - name = "mask_1" - rotate_uv = 180 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - trigger_on_create = yes - - modify_texture = { - name = "mask_2" - rotate_uv = -1 - } - } - - state = { - name = rotate_a_2 - next = rotate_b_2 - - duration = 0.5 - - modify_texture = { - name = "mask_2" - rotate_uv = -180 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - trigger_on_create = yes - - modify_texture = { - name = "mask_3" - rotate_uv = 0 - alpha = 0.1 - } - } - - state = { - name = rotate_a_3 - next = rotate_b_3 - - duration = 0.5 - - modify_texture = { - name = "mask_3" - rotate_uv = 40 - alpha = 0.8 - } - } - } - - type icon_maa_combat = icon { - name = "maa_icon" - datacontext = "[CombatMaaItem.GetMenAtArmsType]" - size = { 40 40 } - texture = "[MenAtArmsType.GetIcon]" - - alwaystransparent = yes - using = tooltip_nw - - tooltipwidget = { - maa_tooltip_widget = {} - } - - glow = { - glow_radius = 3 - using = Glow_Standard - - block "glow" - { - using = Color_Green - } - } - - } - - type maa_tooltip_widget = widget { - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - margin = { 10 3 } - margin_bottom = 10 - minimumsize = { 380 0 } - spacing = 5 - set_parent_size_to_minimum = yes - - vbox_maa_stats = { - layoutpolicy_horizontal = expanding - - blockoverride "siege_stat" - { - text = "COMBAT_REGIMENT_SIEGE" - } - blockoverride "siege_tt" - { - tooltip = "COMBAT_REGIMENT_SIEGE_TT" - } - blockoverride "damage_stat" - { - text = "[CombatMaaItem.GetStat( 'damage' )|0]" - } - blockoverride "damage_tt" - { - tooltip = "COMBAT_REGIMENT_DAMAGE_TT" - } - blockoverride "toughness_stat" - { - text = "[CombatMaaItem.GetStat( 'toughness' )|0]" - } - blockoverride "toughness_tt" - { - tooltip = "COMBAT_REGIMENT_TOUGHNESS_TT" - } - blockoverride "pursuit_stat" - { - text = "[CombatMaaItem.GetStat( 'pursuit' )|0]" - } - blockoverride "pursuit_tt" - { - tooltip = "COMBAT_REGIMENT_PURSUIT_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(CombatMaaItem.GetStat( 'pursuit' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "screen_stat" - { - text = "[CombatMaaItem.GetStat( 'screen' )|0]" - } - blockoverride "screen_tt" - { - tooltip = "COMBAT_REGIMENT_SCREEN_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(CombatMaaItem.GetStat( 'screen' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[CombatMaaItem.GetCurrentStrength|0]/[CombatMaaItem.GetMaxStrength]" - } - - text_single = { - text = "COMBAT_WINDOW_MAA_TT_REGIMENTS" - } - } - - text_single = { - margin = { 10 0 } - layoutpolicy_horizontal = expanding - visible = "[And(Not(CombatWindow.IsCombatInPursuitPhase), GreaterThan_int32(CombatMaaItem.GetTerrainBonus, '(int32)0'))]" - text = "COMBAT_WINDOW_MAA_TT_TERRAIN_GOOD" - } - - - text_single = { - margin = { 10 0 } - layoutpolicy_horizontal = expanding - visible = "[And(Not(CombatWindow.IsCombatInPursuitPhase), LessThan_int32(CombatMaaItem.GetTerrainBonus, '(int32)0'))]" - text = "COMBAT_WINDOW_MAA_TT_TERRAIN_BAD" - } - - vbox = { - layoutpolicy_horizontal = expanding - text_single = { - margin = { 6 0 } - layoutpolicy_horizontal = expanding - visible = "[And(Not(CombatWindow.IsCombatInPursuitPhase), LessThan_CFixedPoint(CombatMaaItem.GetCountered, '(CFixedPoint)1'))]" - text = "COMBAT_WINDOW_MAA_TT_EFFICIENCY" - } - - flowcontainer = { - layoutpolicy_horizontal = expanding - visible = "[And( DataModelHasItems(CombatMaaItem.GetCounteredByMaa), Not( CombatWindow.IsCombatInPursuitPhase ) )]" - margin = { 10 0 } - margin_left = 30 - direction = vertical - datamodel = "[CombatMaaItem.GetCounteredByMaa]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "COMBAT_WINDOW_MAA_TT_COUNTERED_BY" - } - } - } - } - - flowcontainer = { - layoutpolicy_horizontal = expanding - visible = "[And( DataModelHasItems(CombatMaaItem.GetCountersMaa), Not( CombatWindow.IsCombatInPursuitPhase ) )]" - margin = { 10 0 } - direction = vertical - datamodel = "[CombatMaaItem.GetCountersMaa]" - - item = { - text_single = { - layoutpolicy_horizontal = expanding - text = "COMBAT_WINDOW_MAA_TT_COUNTERS" - } - } - } - - text_single = { - datacontext = "[CombatWindow.GetCombat.GetProvince]" - datacontext = "[GetNullLandedTitle]" - - visible = "[And( And( CombatWindow.IsCombatInPursuitPhase, GreaterThan_CFixedPoint( MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'screen' ), '(CFixedPoint)0' ) ), Not( CombatSide.IsStillFighting ) )]" - - margin = { 10 0 } - layoutpolicy_horizontal = expanding - - text = "COMBAT_WINDOW_MAA_TT_SCREEN" - } - - text_single = { - datacontext = "[CombatWindow.GetCombat.GetProvince]" - datacontext = "[GetNullLandedTitle]" - - visible = "[And( And(CombatWindow.IsCombatInPursuitPhase, GreaterThan_CFixedPoint(MenAtArmsType.GetStat(GetPlayer, Province.Self, Title.Self, 'pursuit'), '(CFixedPoint)0')), CombatSide.IsStillFighting )]" - - margin = { 10 0 } - layoutpolicy_horizontal = expanding - - text = "COMBAT_WINDOW_MAA_TT_PURSUIT" - } - } - } -} diff --git a/N3OW/gui/window_confederation.gui b/N3OW/gui/window_confederation.gui deleted file mode 100644 index 950c09b1..00000000 --- a/N3OW/gui/window_confederation.gui +++ /dev/null @@ -1,1041 +0,0 @@ -#################################################################################################### -# Confederation Window # -#################################################################################################### - -window = { - name = "confederation_window" - widgetid = "confederation_window" #tutorial uses this - movable = no - layer = middle - - datacontext = "[ConfederationWindow.GetConfederation]" - datacontext = "[Confederation.GetType]" - datacontext = "[ConfederationWindow.GetProgressBar]" - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position_x = 0 - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position_x = -60 - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - layoutpolicy_vertical = expanding - - using = Window_Margins_Sidebar - - background = { - visible = "[ConfederationType.IsHouseBasedConfederation]" - texture = "gfx/interface/illustrations/event_story/tgp_japanese_shogunate.dds" - alpha = 0.3 - fittype = start - framesize = { 2800 1030 } - - margin_top = -25 - margin_right = -18 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[Not(ConfederationType.IsHouseBasedConfederation)]" - texture = "gfx/interface/illustrations/decisions/mpo_decision_confederation.dds" - alpha = 0.3 - fittype = start - framesize = { 1100 220 } - - margin_top = -31 - margin_right = -18 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - widget_confederation_window_header = { - layoutpolicy_horizontal = expanding - } - - hbox = { - visible = "[ConfederationType.IsHouseBasedConfederation]" - layoutpolicy_horizontal = expanding - - - margin_bottom = 10 - margin_top = 15 - - hbox = { - bloc_cohesion_complex_bar = { - - layoutpolicy_horizontal = expanding - } - } - } - - # Confederation member houses - scrollbox = { - name = "bloc_confederation_holder" - visible = "[ConfederationType.IsHouseBasedConfederation]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbarpolicy_horizontal = always_off - - blockoverride "scrollbox_margins" { - margin_top = 20 - margin_bottom = 15 - margin_left = 15 - } - - blockoverride "scrollbox_content" { - vbox_member_houses = { - layoutpolicy_vertical = expanding - } - - expand = {} - } - } - - # Confederation member characters - vbox = { - name = "nomadic_confederation_holder" - visible = "[Not( ConfederationType.IsHouseBasedConfederation )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 10 - - vbox_list_of_confederation_members = { - layoutpolicy_horizontal = expanding - } - } - - vbox_nomadic_confederation_decisions = { - visible = "[And(Not( ConfederationType.IsHouseBasedConfederation), ConfederationWindow.IsPlayerConfederation )]" - - margin_top = 10 - } - - spacer = { - size = { 0 20 } - } - - hbox_confederation_bloc_leader = { - visible = "[And(ConfederationType.IsHouseBasedConfederation, Confederation.HasLeadingHouse)]" - } - - expand = {} - } -} - -################################################################################ - -types ConfederationWindow -{ - # [Confederation name] (& < X) - type widget_confederation_window_header = header_pattern { - min_height = 100 - - container = { - parentanchor = left|top - - tooltipwidget = { - using = confederation_tooltip - } - - button = { - - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - parentanchor = top|left - alwaystransparent = yes - position = { 10 -9 } - size = { 75 75 } - texture = "gfx/interface/icons/diplomatic_icons.dds" - framesize = { 120 120 } - frame = 6 - - tooltip_visible = no - } - - coa_confederation_medium = { - visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]" - parentanchor = center|center - position = { 0 10 } - } - - coa_bloc_big = { - visible = "[Confederation.GetType.IsHouseBasedConfederation]" - parentanchor = left|top - position = { 10 10 } - } - } - - blockoverride "header_text" - { - text = "CONFEDERATION_WINDOW_HEADER" - } - - container = { - name = "your_header" - visible = "[ConfederationWindow.IsPlayerConfederation]" - layoutpolicy_horizontal = expanding - parentanchor = top|hcenter - position = { 0 40 } - - text_single = { - visible = "[Not( Confederation.GetType.IsHouseBasedConfederation )]" - text = "CONFEDERATION_YOURS_HEADER" - align = nobaseline - parentanchor = hcenter - } - text_single = { - visible = "[Confederation.GetType.IsHouseBasedConfederation]" - text = "CONFEDERATION_BLOC_YOURS_HEADER" - align = nobaseline - parentanchor = hcenter - } - } - - text_single = { - visible = "[Confederation.HasCohesion]" - text = "CONFEDERATION_WINDOW_COHESION_LEVEL_NAME" - align = nobaseline - parentanchor = hcenter|bottom - position = { 0 -10 } - } - - blockoverride "button_close" - { - onclick = "[ConfederationWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick( GetPlayer.GetID )]" - } - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( Confederation.MakeScope )]" - } - } - - - # Misc information /stats about this confederation - type hbox_confederation_strength = hbox { - spacing = 2 - - expand = {} - tooltip = CONFEDERATION_WINDOW_COMBINED_MILITARY_STRENGTH_TOOLTIP - using = tooltip_es - - # Confederation information - icon = { - name = "icon_combat_strength" - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - vbox = { - text_single = { - name = "military_total_strength" - text = "[ConfederationWindow.GetCurrentCombinedMilitaryStrength]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - - max_width = 120 - } - - progressbar_standard = { - name = "soldiers_max" - visible = "[NotEqualTo_int32( ConfederationWindow.GetMaxCombinedMilitaryStrength, '(int32)0' )]" - size = { 40 8 } - min = 0 - max = "[IntToFloat( ConfederationWindow.GetMaxCombinedMilitaryStrength )]" - value = "[IntToFloat( ConfederationWindow.GetCurrentCombinedMilitaryStrength )]" - } - } - } - - # Confederation member houses - type vbox_member_houses = vbox { - fixedgridbox = { - datamodel = "[ConfederationWindow.GetMemberHouses]" - datamodel_wrap = 4 - addrow = 208 - addcolumn = 145 - maxhorizontalslots = 4 - flipdirection = yes - - item = { - hbox_confederation_house_item = {} - } - } - - expand = {} - } - - type vbox_nomadic_confederation_decisions = vbox { - spacing = 5 - - button_decision_entry = { - name = "elevate_confederation_decision" - datacontext = "[GetDecisionWithKey( 'confederation_kingdom_decision' )]" - visible = "[Decision.IsShownForPlayer]" - size = { 560 45 } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - - using = tooltip_se - - blockoverride "button_size" - { - layoutpolicy_horizontal = expanding - } - } - - button_decision_entry = { - name = "leave_confederation_decision" - datacontext = "[GetDecisionWithKey( 'leave_confederation_decision' )]" - visible = "[Decision.IsShownForPlayer]" - size = { 560 45 } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - - using = tooltip_se - - blockoverride "button_size" - { - layoutpolicy_horizontal = expanding - } - } - } - - # List of members of the selected confederation. - type vbox_list_of_confederation_members = vbox_character_list { - name = "confederation_members" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[ConfederationWindow.AccessMemberList]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" { - margin_left = 20 - margin_right = 10 - margin_top = 5 - spacing = 5 - } - - hbox_confederation_strength = { - visible = "[Not(ConfederationType.IsHouseBasedConfederation)]" - layoutpolicy_horizontal = expanding - margin_bottom = 3 - } - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_margins" { - margin_top = 20 - margin_bottom = 15 - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 560 - addrow = 94 - - item = { - widget_confederation_member_list_item = { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 555 90 } - } - } - } - } - } - - type hbox_confederation_bloc_leader = hbox { - layoutpolicy_horizontal = expanding - datacontext = "[Confederation.GetLeadingHouse]" - datacontext = "[Confederation.GetLeadingHouse.GetHeadOfHouse]" - - margin_left = 15 - spacing = 16 - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_study_japan.dds" - alpha = 0.3 - fittype = centercrop - - margin = { 0 20 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - # Head of leading house - widget = { - - size = { 195 225 } - - portrait_torso = { - name = "head_of_house_portrait" - datacontext = "[GetIllustration( 'character_view_bg' )]" - visible = "[DynastyHouse.HasHeadOfHouse]" - parentanchor = center - - size = { 195 225 } - - blockoverride "portrait_status_icons" - { - portrait_status_icons = { - parentanchor = bottom|right - position = { -15 -15 } - } - } - - blockoverride "opinion_box" - { - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 0 -15 } - } - } - - blockoverride "coa" - { - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 0 -15 } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 16 - margin_bottom = 36 - - vbox = { - layoutpolicy_horizontal = expanding - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CONFEDERATION_WINDOW_LEADING_HOUSE_HEAD" - max_width = 350 - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNotMeNoTooltip]" - using = Font_Size_Medium - max_width = 350 - } - - text_single = { - - name = "character_relation_to_you" - max_width = 350 - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - default_format = "#low" - } - } - - expand = {} - - vbox = { - - layoutpolicy_horizontal = expanding - spacing = 8 - - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 32 } - visible = "[Character.IsPlayerInteractionShown( 'join_house_bloc_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'join_house_bloc_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'join_house_bloc_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'join_house_bloc_interaction' )]" - using = tooltip_se - - text_single = { - name = "join_bloc_title" - layoutpolicy_horizontal = expanding - text = "join_house_bloc_interaction" - default_format = "#high" - parentanchor = center|hcenter - align = nobaseline - } - } - - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 32 } - visible = "[Character.IsPlayerInteractionShown( 'leave_house_bloc_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'leave_house_bloc_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'leave_house_bloc_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'leave_house_bloc_interaction' )]" - - text_single = { - name = "leave_house_bloc_interaction" - layoutpolicy_horizontal = expanding - text = "leave_house_bloc_interaction" - default_format = "#high" - parentanchor = center|hcenter - align = nobaseline - } - } - - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 32 } - visible = "[Character.IsPlayerInteractionShown( 'assume_house_bloc_leadership_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'assume_house_bloc_leadership_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'assume_house_bloc_leadership_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'assume_house_bloc_leadership_interaction' )]" - - text_single = { - name = "assume_house_bloc_leadership_interaction" - layoutpolicy_horizontal = expanding - text = "assume_house_bloc_leadership_interaction" - default_format = "#high" - parentanchor = center|hcenter - align = nobaseline - } - } - } - - } - - expand = {} - } - - # Single member of the select confederation. - type hbox_confederation_house_item = widget { - size = { 120 190 } - allow_outside = yes - - vbox = { - layoutpolicy_vertical = expanding - parentanchor = bottom|hcenter - allow_outside = yes - spacing = 2 - - onmousehierarchyenter = "[ConfederationWindow.SetHoveredHouse( DynastyHouse.Self )]" - onmousehierarchyleave = "[ConfederationWindow.ClearHoveredHouse]" - - coa_house_big = { - - onmousehierarchyenter = "[GetVariableSystem.Set( 'bloc_house_hovered', 'true' )]" - onmousehierarchyleave = "[GetVariableSystem.Clear( 'bloc_house_hovered' )]" - - - # just adjust the tooltip positioning - blockoverride "coa_tooltip" - { - tooltipwidget = { - using = dynasty_house_tooltip - } - using = tooltip_se - } - - - powerful_family_bonus_icon_with_frame = { - name = "house_aspiration_mismatch_warning" - visible = "[Not( ObjectsEqual( DynastyHouse.GetHouseAspiration.Self, Confederation.GetLeadingHouse.GetHouseAspiration.Self ) )]" - datacontext = "[DynastyHouse.GetHouseAspiration]" - - - parentanchor = bottom|left - size = { 36 36 } - - tooltip = "CONFEDERATION_WINDOW_HOUSE_ASPIRATION_MISMATCH_TOOLTIP" - - blockoverride "powerful_family_bonus_frame_properties" - { - using = Animation_Glow_Pulse - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Red - } - } - } - - button_round = { - visible = "[And( And( ConfederationWindow.IsHouseHovered( DynastyHouse.Self ), Character.IsPlayerInteractionShown( 'kick_from_house_bloc_interaction' ) ), And( ConfederationWindow.IsPlayerHouseHeadOfConfederation , GetVariableSystem.Exists( 'bloc_house_hovered' ) ) )]" - datacontext = "[DynastyHouse.GetHeadOfHouse]" - allow_outside = yes - position = { 90 0 } - size = { 40 40 } - - enabled = "[Character.IsPlayerInteractionValid( 'kick_from_house_bloc_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'kick_from_house_bloc_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'kick_from_house_bloc_interaction' )]" - using = tooltip_es - - button_kick_player = { - alwaystransparent = yes - parentanchor = center - size = { 20 20 } - } - } - - button_round = { - datacontext = "[DynastyHouse.GetHeadOfHouse]" - visible = "[And( And( ConfederationWindow.IsHouseHovered( DynastyHouse.Self ), Character.IsPlayerInteractionShown( 'grant_house_bloc_leadership_interaction' ) ), And( ConfederationWindow.IsPlayerHouseHeadOfConfederation , Or(GetVariableSystem.Exists( 'bloc_button_hovered' ), GetVariableSystem.Exists( 'bloc_house_hovered' ) ) ) )]" - allow_outside = yes - position = { 90 40 } - size = { 40 40 } - - - enabled = "[Character.IsPlayerInteractionValid( 'grant_house_bloc_leadership_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'grant_house_bloc_leadership_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'grant_house_bloc_leadership_interaction' )]" - using = tooltip_es - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/grant_house_bloc_leadership.dds" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - margin = { 10 0 } - - background = { - margin = { 0 3 } - - using = Background_Area_Dark - alpha = 0.8 - } - - text_single = { - max_width = 130 - - text = "CONFEDERATION_WINDOW_HOUSE_ENTRY" - align = nobaseline|center - using = Font_Size_Small - } - - icon_flat_standard = { - visible = "[DynastyHouse.IsLeadingHouseInConfederation]" - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/star.dds" - tooltip = "CONFEDERATION_WINDOW_BLOC_LEADER_ICON_TOOLTIP" - } - } - - hbox = { - spacing = 2 - - background = { - using = Background_Area - margin = { 20 7 } - margin_top = 4 - } - - vbox = { - name = "individual_house_cohesion" #tutorial uses this - datacontext = "[ConfederationWindow.GetCohesionForHoveredHouseTooltip]" - layoutpolicy_vertical = expanding - - icon = { - name = "icon_bloc_cohesion" - texture = "gfx/interface/icons/bloc_cohesion.dds" - size = { 28 28 } - tooltip = "game_concept_bloc_cohesion_tt" - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline - - visible = "[Confederation.HasCohesion]" - text = CONFEDERATION_WINDOW_COHESION_PER_HOUSE_VALUE - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - using = tooltip_es - } - } - - spacer = { - size = { 8 0 } - } - - vbox = { - tooltip = CONFEDERATION_WINDOW_HOUSE_MILITARY_STRENGTH_TOOLTIP - using = tooltip_es - - icon = { - name = "icon_combat_strength" - size = { 27 27 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - text_single = { - name = "military_total_strength" - text = "[DynastyHouse.CalculateHouseCurrentMilitaryStrength]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - } - } - } - } - - type bloc_cohesion_complex_bar = vbox { - spacing = 5 - - margin_widget = { - name = "bloc_cohesion_bar" # tutorial uses this - size = { 530 50 } - - datacontext = "[Confederation.GetType]" - datacontext = "[Confederation.GetCohesionLevel]" - - hbox_complex_bar_progress = { - layoutpolicy_horizontal = expanding - margin_top = 30 - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - position = { 0 -10 } - - blockoverride "marker" - { - widget_level_marker = { - scale = 0.75 - - # Hide last one, it is the maximum not an actual level - visible = "[LessThan_int32( PdxGuiWidget.GetIndexInDataModel, GetDataModelSize( ConfederationType.GetLevels ) )]" - - blockoverride "marker_addon" { - icon = { - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - position = { -4 28 } - size = { 8 40 } - alpha = 0.4 - - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - } - } - - blockoverride "visible_active" - { - visible = "[EqualTo_int32( CohesionLevel.GetIndex, PdxGuiWidget.GetIndexInDataModel )]" - } - - blockoverride "visible_inactive" - { - visible = "[NotEqualTo_int32( CohesionLevel.GetIndex, PdxGuiWidget.GetIndexInDataModel )]" - } - - blockoverride "marker_tooltip" - { - datacontext_from_model = { - datamodel = "[ConfederationType.GetLevels]" - index = "[PdxGuiWidget.GetIndexInDataModel]" - } - tooltip = "COHESION_LEVEL_TOOLTIP" - using = tooltip_se - } - - blockoverride "marker_text" - { - text = "[PdxGuiWidget.GetIndexInDataModel|V]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - margin_left = 10 - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 2 5 } - margin_right = 15 - } - - hbox = { - - layoutpolicy_horizontal = expanding - - icon_cohesion_flat = { - size = { 30 30 } - } - vbox = { - layoutpolicy_vertical = expanding - text_single = { - text = "COHESION_TRACK_TITLE" - layoutpolicy_horizontal = expanding - align = nobaseline - } - } - - spacer = { - size = { 7 0 } - } - - text_single = { - datacontext = "[ConfederationWindow.GetTotalCohesionMonthlyTooltip]" - visible = "[Confederation.HasCohesion]" - text = CONFEDERATION_WINDOW_COHESION_MONTHLY_CHANGE - tooltip_visible = "[ValueBreakdown.HasTooltip]" - align = nobaseline - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "CONFEDERATION_WINDOW_MEMBER_HOUSE_COUNT" - } - - spacer = { - size = { 15 10 } - } - - hbox_confederation_strength = { - name = "house_total_strength" #tutorial uses this - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } - - vbox = { - datacontext = "[Confederation.GetLeadingHouse]" - layoutpolicy_vertical = expanding - - hbox = { - background = { - using = Background_Area_Dark - alpha = 0.5 - - margin = { 10 10 } - } - - powerful_family_bonus = { - blockoverride "flat_visible" { - visible = no - } - blockoverride "rendered_visible" { - visible = yes - } - using = tooltip_se - } - - spacer = { - size = { 10 0 } - } - - vbox = { - spacing = 3 - - tooltip = "CONFEDERATION_WINDOW_LEADING_HOUSE_ASPIRATION_TOOLTIP" - - text_single = { - text = "CONFEDERATION_WINDOW_ACTIVE_HOUSE_ASPIRATION" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[DynastyHouse.GetHouseAspiration.GetName|V]" - max_width = 90 - align = nobaseline - - } - } - } - } - } - } - - type widget_confederation_member_list_item = widget { - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - spacing = 5 - - background = { - using = Background_Area_With_Header_Dark - } - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 2 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNotMeNoTooltip]" - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 10 - - expand = {} - - hbox = { - spacing = 16 - hbox = { - name = "prestige" - spacing = 4 - - tooltip = "[Character.GetPrestigeTooltipWithBalance]" - using = tooltip_se - - icon = { - name = "icon_prestige" - size = { 30 30 } - texture = "[Character.GetPrestigeLevelTexture]" - } - - text_single = { - name = "prestige" - text = "[Character.GetPrestige|0]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 50 - } - } - - hbox = { - name = "military" - spacing = 4 - - tooltip = CONFEDERATION_WINDOW_CHARACTER_MILITARY_STRENGTH_TOOLTIP - using = tooltip_es - - icon = { - name = "icon_combat_strength" - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - vbox = { - text_single = { - name = "military_total_strength" - text = "[Character.GetCurrentMilitaryStrength]" - default_format = "#high" - align = center|nobaseline - fontsize_min = 12 - max_width = 120 - } - - progressbar_standard = { - name = "soldiers_max" - visible = "[NotEqualTo_int32(Character.GetMaxMilitaryStrength, '(int32)0' )]" - size = { 33 8 } - min = 0 - max = "[IntToFloat(Character.GetMaxMilitaryStrength)]" - value = "[IntToFloat(Character.GetCurrentMilitaryStrength)]" - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_council.gui b/N3OW/gui/window_council.gui deleted file mode 100644 index 7afc60f0..00000000 --- a/N3OW/gui/window_council.gui +++ /dev/null @@ -1,2325 +0,0 @@ - -###################################################### -################## COUNCIL WINDOW #################### -###################################################### - -window = { - name = "council_window" - widgetid = "council_window" - parentanchor = top|right - layer = windows_layer - movable = no - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[GetVariableSystem.Set( 'council_tabs', 'my_council' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "COUNCIL_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[CouncilWindow.Close]" - } - } - - # two tabs hbox: your council and liege council - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And( Not( GetPlayer.IsIndependentRuler ), Not( CouncilWindow.CanShowTopLiegeTab ) )]" - - button_tab = { - layoutpolicy_horizontal = expanding - down = "[And( CouncilWindow.IsPlayerCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - onclick = "[CouncilWindow.SetPlayerCouncil]" - onclick = "[GetVariableSystem.Clear( 'diarchy_tab' )]" - - text_single = { - minimumsize = { 281 38 } - margin = { 15 0 } - text = "COUNCIL_WINDOW_PLAYER_COUNCIL" - resizeparent = yes - align = center|nobaseline - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - down = "[And( CouncilWindow.IsLiegeCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - onclick = "[CouncilWindow.SetLiegeCouncil]" - onclick = "[GetVariableSystem.Clear( 'diarchy_tab' )]" - - text_single = { - minimumsize = { 281 38 } - margin = { 15 0 } - text = "COUNCIL_WINDOW_LIEGE_COUNCIL" - resizeparent = yes - align = center|nobaseline - default_format = "#low" - } - } - } - - # three tabs hbox: your council, liege's and top liege's - hbox = { - layoutpolicy_horizontal = expanding - visible = "[CouncilWindow.CanShowTopLiegeTab]" - - button_tab = { - layoutpolicy_horizontal = preferred - down = "[And( CouncilWindow.IsPlayerCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - onclick = "[CouncilWindow.SetPlayerCouncil]" - onclick = "[GetVariableSystem.Clear( 'diarchy_tab' )]" - - text_single = { - layoutpolicy_horizontal = expanding - min_height = 38 - margin = { 15 0 } - text = "COUNCIL_WINDOW_PLAYER_COUNCIL" - resizeparent = yes - align = center|nobaseline - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - down = "[And( CouncilWindow.IsLiegeCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - onclick = "[CouncilWindow.SetLiegeCouncil]" - onclick = "[GetVariableSystem.Clear( 'diarchy_tab' )]" - - text_single = { - layoutpolicy_horizontal = expanding - min_height = 38 - margin = { 15 0 } - text = "COUNCIL_WINDOW_LIEGE_COUNCIL" - parentanchor = center - align = center|nobaseline - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = preferred - down = "[And( CouncilWindow.IsTopLiegeCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - onclick = "[CouncilWindow.SetTopLiegeCouncil]" - onclick = "[GetVariableSystem.Clear( 'diarchy_tab' )]" - - text_single = { - layoutpolicy_horizontal = expanding - min_height = 38 - margin = { 15 0 } - text = "COUNCIL_WINDOW_TOP_LIEGE_COUNCIL" - resizeparent = yes - align = center|nobaseline - default_format = "#low" - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_council_layout = { - name = "my_council" - visible = "[And( CouncilWindow.IsPlayerCouncilShown, Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - - using = Animation_Tab_Switch - } - - vbox_council_layout = { - name = "council_refresh" - visible = "[And( Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ), Not( GetVariableSystem.Exists( 'diarchy_tab' ) ) )]" - - using = Animation_Tab_Switch - } - } - } - } - } -} - -widget = { - name = "potential_task_location_window" - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - # position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - # position_x = -40 - } - - portrait_council = { - datacontext = "[PotentialTaskLocationWindow.GetActiveTask.GetCouncillor]" - datacontext = "[PotentialTaskLocationWindow.GetTaskType.GetCouncilPosition]" - parentanchor = bottom|left - scale = 2 - position = {-100 0} - - blockoverride "portrait_button" - { - intersectionmask = yes - } - - blockoverride "mask" { - mask = "gfx/portraits/portrait_mask_blank.dds" - } - - - widget = { - parentanchor = bottom|left - # position = { 70 -20} - position = { 85 -5 } - - vbox = { - set_parent_size_to_minimum = yes - scale = 0.5 - minimumsize = { 190 0 } - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - margin = { 10 0 } - margin_right = 25 - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - text_label_left = { - text = "COUNCIL_WINDOW_MAP_COUNCILLOR_TYPE" - margin = { 5 5 } - layoutpolicy_horizontal = expanding - align = nobaseline - } - - text_label_left = { - text = "[PotentialTaskLocationWindow.GetActiveTask.GetCouncillor.GetUINameNoTooltip]" - margin = { 5 5 } - layoutpolicy_horizontal = expanding - align = nobaseline - } - } - } - } - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - scale = 1.2 - - position = {0 100 } - - text_label_center = { - text = "COUNCIL_WINDOW_MAP_TASK_NAME" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "[PotentialTaskLocationWindow.GetTaskType.GetName]" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "COUNCIL_WINDOW_MAP_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - - icon = { - using = Background_Label_Center - parentanchor = bottom|hcenter - size = { 400 85 } - position = { 0 10 } - - button_primary_big = { - name = "close_assignment_window" - text = BACK_LABEL - parentanchor = center - - onclick = "[PotentialTaskLocationWindow.Close]" - tooltip = "COUNCIL_TASK_CANCEL_ASSIGNMENT" - shortcut = "close_window" - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types CouncilWindow -{ - - type council_task_info = vbox - { - name = "task" - datacontext = "[ActiveCouncilTask.GetTaskTypeOrDefault]" - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - vbox = { - visible = "[CouncilTaskType.IsPercentageTask]" - layoutpolicy_horizontal = expanding - margin = { 5 3 } - - text_single = { - name = "location" - layoutpolicy_horizontal = expanding - text = "[ActiveCouncilTask.GetTaskTarget]" - default_format = "#high" - autoresize = no - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - progressbar_standard = { - name = "progress" - layoutpolicy_horizontal = expanding - size = { 0 12 } - value = "[ActiveCouncilTask.GetProgressFloat]" - - tooltipwidget = { - council_task_progress_breakdown_widget = {} - } - - text_single = { - name = "eta" - parentanchor = center - text = "[ActiveCouncilTask.GetETA]" - align = nobaseline - } - } - } - } - - vbox = { - visible = "[And(And( CouncilTaskType.IsValueTask, Not( ActiveCouncilTask.IsFrozen ) ), Not(GuiCouncilPosition.ArePotentialTasksVisible))]" - layoutpolicy_horizontal = expanding - margin = { 5 3 } - - text_single = { - name = "location" - layoutpolicy_horizontal = expanding - text = "[ActiveCouncilTask.GetTaskTarget]" - default_format = "#high" - autoresize = no - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - progressbar_standard = { - name = "progress" - layoutpolicy_horizontal = expanding - size = { 0 12 } - value = "[ActiveCouncilTask.GetProgressFloat]" - min = 0 - max = "[ActiveCouncilTask.GetProgressMaxFloat]" - tooltipwidget = { - council_task_progress_breakdown_widget = {} - } - using = tooltip_ws - text_single = { - name = "eta" - parentanchor = center - text = "[ActiveCouncilTask.GetETA]" - align = nobaseline - } - } - } - } - } - - type widget_councillor_item = widget { - size = { 260 250 } - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('character_skills').TriggerAnimation('mouse_enter_panel')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('character_skills').TriggerAnimation('mouse_leave_panel')]" - } - - ### Required Datacontexts - # A council position type - # The councillor - # The active council task - widget = { - block "visible" - { - visible = "[Not(GuiCouncilPosition.ArePotentialTasksVisible)]" - } - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - portrait_council = { - name = "councillor_portrait" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - visible = "[Character.IsValid]" - parentanchor = bottom - position = { 15 4 } - - blockoverride "portrait_button_no_character_text" - { - text = "PORTRAIT_NO_COUNCILLOR" - } - - blockoverride "portrait_button" - { - using = tooltip_ws - } - } - - block "missing_councillor" - { - portrait_council = { - name = "councillor_portrait_blank" - visible = "[And( Not(Character.IsValid), CouncilWindow.IsPlayerCouncilShown)]" - parentanchor = center - - blockoverride "portrait_button_no_character_text" - { - text = "[SelectLocalization(IsNomad( GetPlayer ) , 'PORTRAIT_NO_KURULTAI', 'PORTRAIT_NO_COUNCILLOR' )]" - } - - blockoverride "portrait_button_template_onclick" - { - onclick = "[GuiCouncilPosition.SelectCouncillor]" - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_CLICK_TO_HIRE" - default_format = "#low;italic" - max_width = 235 - } - - blockoverride "onclick" { - onclick = "[GuiCouncilPosition.SelectCouncillor]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 40 40 } - position = { 0 70 } - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - blockoverride "portrait_button" - { - using = tooltip_ws - } - } - - portrait_council = { - name = "councillor_portrait_blank_liege" - visible = "[And( Not(Character.IsValid), Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ) )]" - parentanchor = center - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_BLANK_LIEGE" - default_format = "#low;italic" - } - - blockoverride "portrait_button" - { - using = tooltip_ws - } - } - } - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_right = 3 - - background = { - using = Background_Area_Dark - } - - background = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - alpha = 0.4 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_texture_01.dds" - spriteType = Corneredtiled - spriteborder = { 15 15 } - blend_mode = alphamultiply - } - } - - background = { - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredstretched - spriteborder = { 15 15 } - alpha = 0.25 - - using = Color_Blue - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - } - - spacer = { - visible = "[GuiCouncilPosition.CanPotentiallySelectCouncillor]" - size = { 6 6 } - } - - spacer = { - visible = "[Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown )]" - size = { 5 5 } - } - - block "replace_councillor" - { - hbox = { - - button_round = { - name = "replace" - visible = "[GuiCouncilPosition.CanPotentiallySelectCouncillor]" - onclick = "[GuiCouncilPosition.SelectCouncillor]" - enabled = "[GuiCouncilPosition.CanSelectCouncillor]" - tooltip = "[GuiCouncilPosition.GetSelectCouncillorTooltip]" #COUNCILWINDOW_TT_REPLACE - using = tooltip_se - - button_change = { - alwaystransparent = yes - parentanchor = center - } - } - - button_round = { - name = "leave" - visible = "[ObjectsEqual( GetPlayer.Self, Character.Self )]" - onclick = "[CouncilWindow.OnLeaveCouncil]" - tooltip = "DECISIONS_VIEW_LEAVE_COUNCIL_TT" - using = tooltip_se - - button_leave_council = { - mirror = horizontal - parentanchor = center - alwaystransparent = yes - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 6 - - text_single = { - name = "title" - layoutpolicy_horizontal = expanding - text = "[ActiveCouncilTask.GetPositionName|E]" - tooltip = "[ActiveCouncilTask.GetPositionTooltip]" - autoresize = no - fontsize_min = 13 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetShortUINameNoTooltip|U]" - default_format = "#high" - align = nobaseline - autoresize = no - fontsize_min = 13 - } - } - - skill_icon_label = { - datacontext = "[GuiCouncilPosition.GetMainSkillItem]" - visible = "[ActiveCouncilTask.HasMainSkill]" - - blockoverride "icon_size" - { - size = { 35 35 } - } - - blockoverride "font_size" { - using = Font_Size_Medium - visible = "[And( ActiveCouncilTask.HasMainSkill, ActiveCouncilTask.HasCouncillor )]" - min_width = 13 - } - - blockoverride "tooltip" - { - tooltip_visible = "[And( ActiveCouncilTask.HasMainSkill, ActiveCouncilTask.HasCouncillor )]" - tooltip = "[SkillItem.GetSkillBreakdownTooltip]" - } - } - - - ### Character Skills - widget = { - size = { 42 46 } - allow_outside = yes - - block "skill_visible" { - visible = "[And(Character.IsValid, Not(ActiveCouncilTask.HasMainSkill))]" - } - - widget = { - name = "character_skills" - allow_outside = yes - size = { 100% 100% } - position = { 56 0 } - alpha = 0 - - state = { - name = "mouse_enter_panel" - position = { 0 0 } - alpha = 1 - using = Animation_Curve_Default - duration = 0.05 - } - - state = { - name = "mouse_leave_panel" - position = { 56 0 } - alpha = 0 - using = Animation_Curve_Default - duration = 0.05 - } - - vbox = { - parentanchor = right|top - layoutpolicy_vertical = expanding - margin = { 8 4 } - max_width = 48 - spacing = 2 - - background = { - using = Background_Area_Light - using = Mask_Rough_Edges - } - - hbox = { - spacing = 4 - - background = { - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = 1 - framesize = { 70 26 } - margin = { 10 0 } - } - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - frame = 1 - } - text_single = { - text = "[Character.GetSkill('diplomacy')]" - align = nobaseline - } - } - - hbox = { - spacing = 4 - - background = { - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = 2 - framesize = { 70 26 } - margin = { 10 0 } - } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - frame = 2 - } - - text_single = { - text = "[Character.GetSkill('martial')]" - align = nobaseline - } - } - - hbox = { - spacing = 4 - - background = { - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = 3 - framesize = { 70 26 } - margin = { 10 0 } - } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - frame = 3 - } - - text_single = { - text = "[Character.GetSkill('stewardship')]" - align = nobaseline - } - } - - hbox = { - spacing = 4 - - background = { - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = 4 - framesize = { 70 26 } - margin = { 10 0 } - } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - frame = 4 - } - text_single = { - text = "[Character.GetSkill('intrigue')]" - align = nobaseline - } - } - - hbox = { - spacing = 4 - - background = { - texture = "gfx/interface/window_character/character_view_skills_bg.dds" - frame = 5 - framesize = { 70 26 } - margin = { 10 0 } - } - - icon = { - texture = "gfx/interface/icons/icon_skills.dds" - size = { 24 24 } - framesize = { 60 60 } - frame = 5 - } - text_single = { - text = "[Character.GetSkill('learning')]" - align = nobaseline - } - } - } - } - } - } - - widget = { - visible = "[GuiCouncilPosition.ArePotentialTasksVisible]" - - block "expanded_potential_tasks" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - flowcontainer = { - name = "council_position_tasks" - datamodel = "[GuiCouncilPosition.GetPotentialCouncilTasks]" - parentanchor = bottom|hcenter - margin_bottom = 10 - direction = vertical - spacing = 3 - alwaystransparent = no - - item = { - button_standard = { - name = "potential_task" - datacontext = "[GuiPotentialCouncilTask.GetCouncilTaskType]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - visible = "[GuiPotentialCouncilTask.IsVisible]" - size = { 220 25 } - - enabled = "[GuiPotentialCouncilTask.CanSelect]" - onclick = "[GuiPotentialCouncilTask.SelectTaskType]" - - tooltip = "[CouncilTaskType.GetEffectDesc( ActiveCouncilTask.GetScopes )]" - - text_single = { - parentanchor = left|vcenter - position = { 10 0 } - text = "[CouncilTaskType.GetName]" - align = nobaseline - default_format = "#clickable" - } - - container = { - visible = "[CouncilTaskType.HasMainSkill]" - parentanchor = right|vcenter - - skill_icon_label_vertical = { - datacontext = "[GuiCouncilPosition.GetSkillItemForTask(CouncilTaskType.Self)]" - - blockoverride "font_size" { - min_width = 13 - } - - blockoverride "value" - { - text = "[GuiCouncilPosition.GetSkillModifierForTask(CouncilTaskType.Self)|+=]" - } - - blockoverride "tooltip" - { - } - } - } - } - } - } - } - } - - widget = { - visible = "[Not(GuiCouncilPosition.ArePotentialTasksVisible)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - button_round = { - visible = "[And( And( Character.GetLiege.GetGovernment.HasGovernmentFlag( 'government_is_celestial' ), GreaterThanOrEqualTo_int32( Character.GetLiege.GetPrimaryTitle.GetTierFrame, '(int32)7' ) ), Not(Character.IsPlayer) )]" - parentanchor = top|right - position = { -5 0 } - - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'celestial_ministry')]" - - tooltip = "CELESTIAL_MINISTRY_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'celestial_ministry'))]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'celestial_ministry')]" - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - } - - icon = { - size = { 40 40 } - parentanchor = top|right - position = { -4 8 } - texture = "gfx/interface/icons/modifiers/council_positive.dds" - tooltip = "ON_COUNCIL_EFFECTS" - visible = "[Character.IsLocalPlayer]" - } - - portrait_opinion = { - visible = "[And(Character.IsValid, Not(Character.IsLocalPlayer) )]" - parentanchor = bottom|hcenter - position = { 0 -4 } - - blockoverride "opinion_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( Character.GetLiege )]" - } - - blockoverride "ott_heading_text" - { - text = "[Character.GetOpinionHeadingText( Character.GetLiege )]" - } - - blockoverride "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( Character.GetLiege )]" - } - - blockoverride "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( Character.GetLiege )|=]" - } - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - color = { 0.12 0.12 0.12 1 } - alpha = 0.5 - margin_top = -130 - margin_left = -150 - } - - flowcontainer = { - parentanchor = bottom|right - position = { -5 -10 } - ignoreinvisible = yes - - portrait_status_icons = { - parentanchor = bottom - - background = { - using = Background_Area_Dark - margin = { 2 4 } - } - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - icon = { - name = "church_approval_icon" - visible = "[Character.IsTheocraticLesseeOf( GetPlayer )]" - size = { 50 50 } - - texture = "gfx/interface/icons/icon_bishop_approval.dds" - framesize = { 120 120 } - frame = "[Select_int32( And( Character.TheocraticLesseeHasApprovalStatus, Character.TheocraticLesseeApprovesOfLiege ), '(int32)1', '(int32)2' )]" - - tooltip = "[Character.GetTheocraticLesseeApprovalTooltip]" - } - - widget = { - size = { 52 87 } - - coa_realm_small_crown = { - name = "councillor_realm" - visible = "[Character.HasLandedTitles]" - position = { 0 9 } - } - } - } - } - - block "regular_task" - { - dynamicgridbox = { - name = "council_position_tasks" - visible = "[Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))]" - datamodel = "[GuiCouncilPosition.GetPotentialCouncilTasks]" - - datamodel_wrap = 4 - maxhorizontalslots = 2 - maxverticalslots = 4 - layoutanchor = bottomleft - - parentanchor = bottom|left - position = { 5 -3 } - - background = { - texture = "gfx/interface/hud/tab_bg.dds" - mirror = horizontal - margin_top = 15 - margin_bottom = 12 - margin_right = 15 - margin_left = 5 - - using = Color_Black - using = Mask_Rough_Edges - } - - item = { - container = { - visible = "[GuiPotentialCouncilTask.IsVisible]" - spacer = { - size = { 45 45 } - } - - widget = { - size = { 42 42 } - - icon = { - visible = "[GuiPotentialCouncilTask.IsActive]" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskGlow]" - parentanchor = center - size = { 58 58 } - color = { 1 0.85 0.6 1 } - } - - button_council_task = { - visible = "[Or(And(GuiPotentialCouncilTask.CanSelect, Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))), GuiPotentialCouncilTask.IsActive)]" - parentanchor = center - size = { 46 46 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - onclick = "[GuiPotentialCouncilTask.SelectTaskType]" - enabled = "[Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))]" - down = "[GuiPotentialCouncilTask.IsActive]" - - using = tooltip_ws - - tooltipwidget = { - council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - - upframe = 1 - downframe = 1 - uphoverframe = 2 - disableframe = 6 - - button_normal = { - name = "potential_task" - parentanchor = center - widgetanchor = center - effectname = "NoHighlight" - gfxtype = togglepushbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alwaystransparent = yes - size = { 38 38 } - - - widget = { - name = "fabricate_claim_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetCouncilTaskType('task_fabricate_claim'), GuiPotentialCouncilTask.GetCouncilTaskType.Self)]" - } - - } - } - - widget = { - size = { 40 40 } - visible = "[And(Not(GuiPotentialCouncilTask.CanSelect), Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown )))]" - - icon = { - parentanchor = center - size = { 38 38 } - alwaystransparent = yes - - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alpha = 0.4 - - tooltipwidget = { - invalid_potential_council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - } - } - } - } - } - } - } - } - - vbox = { - visible = "[Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))]" - layoutpolicy_horizontal = expanding - margin = { 7 0 } - - background = { - using = Background_Area_Dark - } - - council_task_info = { - layoutpolicy_horizontal = expanding - } - - block "assist_task" {} - } - } - } -} - -types CouncilTaskTypes -{ - - # Requires a GuiPotentialCouncilTask data context to be provided - type invalid_potential_council_task_icon_tooltip_widget = widget - { - size = { 50 50 } - - vbox = { - restrictparent_min = yes - minimumsize = { 280 0 } - - margin = { 15 15 } - spacing = 5 - - datacontext = "[GuiPotentialCouncilTask.GetDummyTask]" - - text_single = { - name = "task_info" - text = "[GuiPotentialCouncilTask.GetCouncilTaskType.GetName]" - default_format = "#T" - layoutpolicy_horizontal = expanding - } - - text_multi = { - name = "cannot_select_text" - text = "[GuiPotentialCouncilTask.GetCannotSelectTooltip]" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 280 - align = left - } - } - } - - # Requires an ActiveCouncilTask data context to be provided - type council_task_icon_tooltip_widget_base = widget - { - size = { 50 50 } - - vbox = { - restrictparent_min = yes - minimumsize = { 280 0 } - maximumsize = { 400 0 } - - margin = { 15 15 } - margin_top = 10 - spacing = 7 - - text_multi = { - name = "task_info" - block "task_info_heading" - { - raw_text = "#D GIVE ME SOME TEXT#!" - } - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 380 - align = left - } - - text_single = { - name = "progress" - layoutpolicy_horizontal = expanding - - block "progress_visiblity" - { - visible = "[Not( ActiveCouncilTask.GetTaskType.IsInfiniteTask )]" - } - - text = COUNCIL_TASK_PROGRESSBAR_TOOLTIP_HEADER - tooltipwidget = { - council_task_progress_breakdown_widget = {} - } - } - - text_multi = { - name = "effects" - text = COUNCIL_TASK_EFFECTS - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 380 - align = left - } - } - } - - # Requires an ActiveCouncilTask data context to be provided - type council_task_icon_tooltip_widget = council_task_icon_tooltip_widget_base - { - datacontext = "[GuiPotentialCouncilTask.GetDummyTaskOrActualIfActive]" - blockoverride "task_info_heading" - { - text = COUNCIL_TASK_TT - } - blockoverride "progress_visiblity" - { - visible = "[And( Not( ActiveCouncilTask.GetTaskType.IsInfiniteTask ), GuiPotentialCouncilTask.IsActive ) ]" - } - } - - type council_task_map_icon_tooltip_widget = council_task_icon_tooltip_widget_base - { - blockoverride "task_info_heading" - { - text = COUNCIL_TASK_MAP_TT - } - } - - type vbox_council_layout = vbox { - ### COUNCIL - vbox = { - visible = "[Not( And( CouncilWindow.GetCharacter.GetGovernment.HasGovernmentFlag( 'government_is_celestial' ), GreaterThanOrEqualTo_int32( CouncilWindow.GetCharacter.GetPrimaryTitle.GetTierFrame, '(int32)7' ) ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow]" - maximumsize = { -1 932 } - spacing = 5 - - hbox = { # Vizier/Spouse + Spymaster/Court Chaplain - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - spacing = 5 - - widget_councillor_item = { # Vizier - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_vizier')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - visible = "[CouncilOwnerHasVizier]" - - blockoverride "skill_visible" { - visible = no - } - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_spouse.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.8 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - - # make spouse portrait unique size, so it doesn't reuse - # textures from other councilors during hide animation - blockoverride "portrait_size" - { - size = { 260 286 } - } - - blockoverride "regular_task" {} - - blockoverride "assist_task" - { - hbox = { - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 3 - - button_standard = { - size = { 190 25 } - onclick = "[GuiCouncilPosition.ShowHideTasks]" - tooltip = "[GuiCouncilPosition.GetShowHideTooltip]" - down = "[GuiCouncilPosition.ArePotentialTasksVisible]" - - text_single = { - datacontext = "[ActiveCouncilTask.GetTaskTypeOrDefault]" - parentanchor = vcenter - position = { 10 0 } - text = "[CouncilTaskType.GetName]" - align = nobaseline - } - - button_change = { - name = "show_tasks" - parentanchor = right|vcenter - position = { -5 0 } - alwaystransparent = yes - size = { 25 25 } - } - } - } - } - - blockoverride "missing_councillor" - { - text_label_center = { - visible = "[And( Not(Character.IsValid), CouncilWindow.IsPlayerCouncilShown )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_MISSING_VIZIER" - default_format = "#low;italic" - } - - text_label_center = { - visible = "[And( Not(Character.IsValid), CouncilWindow.IsLiegeCouncilShown )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_LIEGE_MISSING_VIZIER" - default_format = "#low;italic" - max_width = 250 - fontsize_min = 14 - } - } - } - - widget_councillor_item = { # Spouse (If you do not have a vizier) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_spouse')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - visible = "[Not( CouncilOwnerHasVizier )]" - - blockoverride "skill_visible" { - visible = no - } - - background = { - visible = "[Not( CouncilOwnerNomadic )]" - texture = "gfx/interface/skinned/illustrations/council/bg_council_spouse.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.8 - } - - background = { - visible = "[CouncilOwnerNomadic]" - texture = "gfx/interface/illustrations/event_scenes/mpo_tent_interior_mongol.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.8 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - - # make spouse portrait unique size, so it doesn't reuse - # textures from other councilors during hide animation - blockoverride "portrait_size" - { - size = { 260 286 } - } - - blockoverride "replace_councillor" - { - spacer = { - visible = "[Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))]" - size = { 5 5 } - } - } - - blockoverride "regular_task" {} - - blockoverride "assist_task" - { - hbox = { - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 3 - - button_standard = { - size = { 190 25 } - onclick = "[GuiCouncilPosition.ShowHideTasks]" - tooltip = "[GuiCouncilPosition.GetShowHideTooltip]" - down = "[GuiCouncilPosition.ArePotentialTasksVisible]" - - text_single = { - datacontext = "[ActiveCouncilTask.GetTaskTypeOrDefault]" - parentanchor = vcenter - position = { 10 0 } - text = "[CouncilTaskType.GetName]" - align = nobaseline - } - - button_change = { - name = "show_tasks" - parentanchor = right|vcenter - position = { -5 0 } - alwaystransparent = yes - size = { 25 25 } - } - } - } - } - - blockoverride "missing_councillor" - { - text_label_center = { - visible = "[And( And( Not( CouncilOwnerCanUseVizier ), CouncilWindow.IsPlayerCouncilShown ), Not( Character.IsValid ) )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_MISSING_SPOUSE" - default_format = "#low;italic" - } - - text_label_center = { - visible = "[And( And( CouncilOwnerCanUseVizier, CouncilWindow.IsPlayerCouncilShown ), Not( Character.IsValid ) )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_MISSING_VIZIER" - default_format = "#low;italic" - } - - text_label_center = { - visible = "[And( And( Not( CouncilOwnerCanUseVizier ), Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ) ), Not( Character.IsValid ) )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_LIEGE_MISSING_SPOUSE" - default_format = "#low;italic" - max_width = 250 - fontsize_min = 14 - } - - text_label_center = { - visible = "[And( And( CouncilOwnerCanUseVizier, Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ) ), Not( Character.IsValid ) )]" - parentanchor = bottom|hcenter - position = { 0 -10 } - text = "COUNCILLOR_LIEGE_MISSING_VIZIER" - default_format = "#low;italic" - max_width = 250 - fontsize_min = 14 - } - } - } - - widget_councillor_item = { # Spymaster (If Nomadic it's moved up here) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_spymaster')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - visible = "[CouncilOwnerNomadic]" - - background = { - texture = "gfx/interface/illustrations/event_scenes/mpo_campfire_steppe.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Court Chaplain - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_court_chaplain')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - name = "tutorial_court_chaplain" - - visible = "[Not( CouncilOwnerNomadic )]" - - datacontext = "[GetIllustration( 'character_religion_interior' )]" - - background = { - texture = "[Illustration.GetTexture( ActiveCouncilTask.GetCouncillor.MakeScope )]" - fittype = centercrop - alpha = 0.7 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - hbox = { # Chancellor + Steward - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - spacing = 5 - - visible = "[Not( CouncilOwnerNomadic )]" - - widget_councillor_item = { # Chancellor - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_chancellor')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - visible = "[Not( CouncilOwnerNomadic )]" - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_chancellor.dds" - fittype = centercrop - alpha = 0.6 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Steward - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_steward')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_steward.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - hbox = { # Marshal + Spymaster - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - - visible = "[Not( CouncilOwnerNomadic )]" - - widget_councillor_item = { # Marshal - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_marshal')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_marshal.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Spymaster - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_spymaster')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_spymaster.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - vbox = { - name = "kurultai_council_first" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Kurultai positions 1 & 2 - kurultai_hbox = { - - visible = "[CouncilOwnerNomadic]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - } - - # Kurultai positions 3 & 4 - kurultai_hbox = { - visible = "[CouncilOwnerNomadic]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - - blockoverride "kurultai_datamodel_first" - { - datacontext = "[CouncilWindow.GetCouncillor('councillor_kurultai_3')]" - } - blockoverride "kurultai_datamodel_second" - { - datacontext = "[CouncilWindow.GetCouncillor('councillor_kurultai_4')]" - } - } - } - } - - ### MINISTRY - vbox = { - visible = "[And( CouncilWindow.GetCharacter.GetGovernment.HasGovernmentFlag( 'government_is_celestial' ), GreaterThanOrEqualTo_int32( CouncilWindow.GetCharacter.GetPrimaryTitle.GetTierFrame, '(int32)7' ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow]" - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 5 10 } - margin_bottom = 5 - } - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Top Header - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 1 - margin_bottom = 8 - - background = { - name = "ministry_top_header" - texture = "gfx/interface/icons/banners/banner_red_background_tgp.dds" - alpha = 0.95 - } - - header_text = { - blockoverride "header_text" - { - text = "CELESTIAL_MINISTRY_HEADER_DEP" - } - } - } - - vbox = { # Prime Minister + Imperial Censor + Grand Marshal - These are shown at the top - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - spacing = 5 - - widget_councillor_item = { # Prime Minister (chancellor) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_chancellor')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_garden_asia.dds" - fittype = centercrop - alpha = 0.7 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Imperial Censor (spymaster) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_spymaster')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_chinese_corridor_day.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Grand Marshal - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('minister_grand_marshal')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_courtyard_asia.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - widget = { - size = { 0 15 } - } - - # Ministry Header - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 1 - margin_bottom = 8 - - background = { - name = "ministry_header" - texture = "gfx/interface/icons/banners/banner_red_background_tgp.dds" - alpha = 0.95 - } - - header_text = { - blockoverride "header_text" - { - text = "CELESTIAL_MINISTRY_HEADER_MIN" - } - } - } - - hbox = { # Minister of Personnel + War - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - - widget_councillor_item = { # Minister of Personnel - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('minister_personnel')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_examination_room.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Minister of War (marshal) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_marshal')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_crossroad_inn_asia.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - hbox = { # Minister of Revenue + Justice - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - - widget_councillor_item = { # Minister of Revenue (steward) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_steward')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_market_asia.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Minister of Justice - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('minister_justice')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_physician_asia.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - hbox = { # Minister of Rites + Works - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - margin_bottom = 5 - spacing = 5 - - widget_councillor_item = { # Minister of Rites (court chaplain) - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('councillor_court_chaplain')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - name = "tutorial_court_chaplain" - size = { -1 290 } - - datacontext = "[GetIllustration( 'character_religion_interior' )]" - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_holysite_asia.dds" - fittype = centercrop - alpha = 0.7 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Minister of Works - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[CouncilWindow.GetCouncillor('minister_works')]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - size = { -1 290 } - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_chinese_city.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - } - } - } - - expand = { - layoutpolicy_vertical = growing - } - } - - - type kurultai_hbox = hbox - { - widget_councillor_item = { # Kurultai - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "visible" {} - - block "kurultai_datamodel_first" - { - datacontext = "[CouncilWindow.GetCouncillor('councillor_kurultai_1')]" - } - - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - background = { - texture = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - widget_councillor_item = { # Kurultai - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "visible" {} - - block "kurultai_datamodel_second" - { - datacontext = "[CouncilWindow.GetCouncillor('councillor_kurultai_2')]" - } - - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - datacontext = "[ActiveCouncilTask.GetPositionType]" - datacontext = "[ActiveCouncilTask.GetCouncillor]" - - background = { - texture = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - color = { 0.15 0.15 0.15 1 } - alpha = 0.3 - } - } - - blockoverride "regular_task" { - flowcontainer = { - name = "council_position_tasks" - visible = "[Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))]" - datamodel = "[GuiCouncilPosition.GetPotentialCouncilTasks]" - parentanchor = bottom|left - position = { 2 -3 } - ignoreinvisible = yes - - background = { - texture = "gfx/interface/hud/tab_bg.dds" - mirror = horizontal - margin_top = 15 - margin_bottom = 8 - margin_right = 10 - margin_left = 3 - - using = Color_Black - using = Mask_Rough_Edges - } - - item = { - container = { - ignoreinvisible = yes - visible = "[GuiPotentialCouncilTask.IsActive]" - - widget = { - size = { 50 50 } - - icon = { - visible = "[GuiPotentialCouncilTask.IsActive]" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskGlow]" - parentanchor = center - size = { 62 62 } - color = { 1 0.85 0.6 1 } - } - - button = { - size = { 50 50 } - parentanchor = center - - button_council_task = { - visible = "[Or(And(GuiPotentialCouncilTask.CanSelect, Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))), GuiPotentialCouncilTask.IsActive)]" - parentanchor = center - size = { 50 50 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - onclick = "[GuiCouncilPosition.ShowHideTasks]" - tooltip = "[GuiCouncilPosition.GetShowHideTooltip]" - down = "[GuiCouncilPosition.ArePotentialTasksVisible]" - - using = tooltip_ws - - tooltipwidget = { - council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - - button_normal = { - name = "potential_task" - parentanchor = center - widgetanchor = center - effectname = "NoHighlight" - gfxtype = togglepushbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alwaystransparent = yes - size = { 42 42 } - } - } - - widget = { - size = { 40 40 } - visible = "[And(Not(GuiPotentialCouncilTask.CanSelect), Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown )))]" - - icon = { - parentanchor = center - size = { 42 42 } - alwaystransparent = yes - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alpha = 0.4 - - tooltipwidget = { - invalid_potential_council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - } - } - - button_round = { - name = "show_tasks" - parentanchor = bottom|right - size = { 25 25 } - position = { 5 0 } - alwaystransparent = yes - - button_change = { - size = { 19 19 } - alwaystransparent = yes - parentanchor = center - } - } - } - } - } - } - } - } - - blockoverride "assist_task" {} - - blockoverride "expanded_potential_tasks" { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - flowcontainer = { - name = "potential_council_position_tasks" - parentanchor = bottom|left - position = { 2 -3 } - direction = vertical - - background = { - mirror = horizontal - margin_top = -10 - margin_bottom = 4 - margin_right = 5 - margin_left = 4 - - using = Background_Area_Dark - using = Mask_Rough_Edges - } - - widget = { - size = { 100 35 } - - icon = { - texture = "gfx/interface/skins/nomad/component_decoration/decoration_frame_top.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 150 22 } - parentanchor = top|hcenter - position = { 1 7 } - } - - icon = { - size = { 32 32 } - texture = "gfx/interface/component_masks/mask_circle.dds" - parentanchor = center - } - - button_round = { - parentanchor = center - size = { 30 30 } - - onclick = "[GuiCouncilPosition.ShowHideTasks]" - - tooltip = "CLOSE_TOOLTIP" - - button_icon = { - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - size = { 30 30 } - position = { 0 7 } - mirror = vertical - } - } - } - - fixedgridbox = { - name = "council_position_tasks" - datamodel = "[GuiCouncilPosition.GetPotentialCouncilTasks]" - addcolumn = 50 - addrow = 50 - datamodel_wrap = 4 - maxhorizontalslots = 2 - maxverticalslots = 4 - - alwaystransparent = no - - item = { - widget = { - size = { 50 50 } - - icon = { - visible = "[GuiPotentialCouncilTask.IsActive]" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskGlow]" - parentanchor = center - size = { 62 62 } - color = { 1 0.85 0.6 1 } - } - - button_council_task = { - name = "potential_task" - datacontext = "[GuiPotentialCouncilTask.GetCouncilTaskType]" - datacontext = "[GuiCouncilPosition.GetActiveCouncilTask]" - visible = "[Or(And(GuiPotentialCouncilTask.CanSelect, Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown ))), GuiPotentialCouncilTask.IsActive)]" - size = { 50 50 } - - enabled = "[GuiPotentialCouncilTask.CanSelect]" - onclick = "[GuiPotentialCouncilTask.SelectTaskType]" - - button_normal = { - name = "potential_task" - parentanchor = center - widgetanchor = center - effectname = "NoHighlight" - gfxtype = togglepushbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alwaystransparent = yes - size = { 42 42 } - } - - using = tooltip_ws - - tooltipwidget = { - council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - } - - widget = { - size = { 50 50 } - visible = "[And(Not(GuiPotentialCouncilTask.CanSelect), Not(Or( CouncilWindow.IsLiegeCouncilShown, CouncilWindow.IsTopLiegeCouncilShown )))]" - - icon = { - parentanchor = center - size = { 42 42 } - alwaystransparent = yes - texture = "[GuiPotentialCouncilTask.GetTaskAsset.GetTaskIcon]" - alpha = 0.4 - - using = tooltip_ws - - tooltipwidget = { - invalid_potential_council_task_icon_tooltip_widget = { - using = DefaultTooltipBackground - using = GeneralTooltipSetup - alwaystransparent = no - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_council_potential_councillor.gui b/N3OW/gui/window_council_potential_councillor.gui deleted file mode 100644 index 5623e71c..00000000 --- a/N3OW/gui/window_council_potential_councillor.gui +++ /dev/null @@ -1,271 +0,0 @@ -###################################################### -################ APPOINT COUNCILLOR ################## -###################################################### - -window = { - name = "potential_councillor_window" - parentanchor = right - position = { -700 90 } - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - datacontext = "[PotentialCouncillorWindow.GetCharacterList]" - datacontext = "[PotentialCouncillorWindow.GetPotentialCouncillorList]" - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - datacontext = "[PotentialCouncillorWindow.GetCouncilPositionType]" - text = "POTENTIAL_COUNCILLOR_TITLE" - } - - blockoverride "button_close" - { - onclick = "[PotentialCouncillorWindow.Close]" - } - } - - vbox = { - datacontext = "[PotentialCouncillorWindow.GetCouncillor]" - visible = "[PotentialCouncillorWindow.HasCouncillor]" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 3 - - portrait_shoulders = {} - - vbox = { - margin = { 10 20 } - spacing = 2 - - text_label_center = { - text = "COUNCIL_WINDOW_CURRENTLY_APPOINTED" - default_format = "#low" - } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "[Character.GetUINameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - min_width = 320 - max_width = 320 - } - - text_single = { - visible = "[Character.HasRelationTo( GetPlayer )]" - layoutpolicy_horizontal = expanding - autoresize = no - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - expand = {} - - button_standard = { - visible = "[PotentialCouncillorWindow.HasCouncillor]" - - text = "CONFIRM_FIRE_COUNCILLOR_ACCEPT" - - onclick = "[PotentialCouncillorWindow.FireCouncillor]" - enabled = "[PotentialCouncillorWindow.CanFireCouncillor]" - tooltip = "[PotentialCouncillorWindow.GetFireCouncillorTooltip]" - } - } - - vbox = { - margin_bottom = 20 - spacing = 16 - layoutpolicy_vertical = expanding - - expand = {} - - vbox = { - margin = {0 2} - spacing = 2 - - background = { - using = Background_Area - margin = { 5 0 } - margin_bottom = 10 - } - - text_single = { - text = "COUNCIL_WINDOW_SKILLS" - default_format = "#S" - } - - hbox = { - name = "skills_grid" - datamodel = "[PotentialCouncillorWindow.GetCouncillorSkillItems]" - margin = { 8 0 } - - item = { - widget_skill_item_no_icon = {} - } - } - } - - hbox_merit_with_label = { - datacontext = "[PotentialCouncillorWindow.GetMeritItem]" - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - fixed_gridbox_character_list = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[PotentialCouncillorWindow.CanReassignCouncillor]" - - blockoverride "scrollbox_empty" - { - text = "NO_POTENTIAL_COUNCILLORS" - visible = "[Not(PotentialCouncillorWindow.HasMembers)]" - } - - blockoverride "item_size" - { - size = { 630 110 } - } - - blockoverride "button" - { - using = Background_Guest - } - - blockoverride "base_button" - { - alwaystransparent = yes - } - - blockoverride "bottom_middle_box_extra_content" - { - widget_merit = { - datacontext = "[PotentialCouncillorList.GetMeritItem( CharacterListItem.GetIndex )]" - } - } - - blockoverride "button_box_content" - { - button_standard = { - name = "reassign_to_position" - visible = "[And(And( Not( CharacterListItem.GetBool('can_swap') ), Character.IsCouncillor ), Not(CharacterListItem.GetCharacter.IsGuest))]" - onclick = "[CharacterListItem.OnClick('set_position')]" - enabled = "[Not( PotentialCouncillorWindow.HasPendingInteraction( CharacterListItem.GetCharacter ) )]" - - text = "POTENTIAL_COUNCILLOR_REASSIGN" - - tooltip = "[CharacterListItem.GetText('assign_tooltip')]" - using = tooltip_below - - } - - button_standard = { - name = "add_to_position" - visible = "[And(Not( Character.IsCouncillor ), Not(CharacterListItem.GetCharacter.IsGuest))]" - onclick = "[CharacterListItem.OnClick('set_position')]" - enabled = "[And( PotentialCouncillorWindow.CanFireCouncillor, Not( PotentialCouncillorWindow.HasPendingInteraction( CharacterListItem.GetCharacter ) ) )]" - - text = "POTENTIAL_COUNCILLOR_ASSIGN" - - using = tooltip_below - tooltip = "[Select_CString( PotentialCouncillorWindow.CanFireCouncillor, CharacterListItem.GetText('assign_tooltip'), PotentialCouncillorWindow.GetFireCouncillorTooltip )]" - } - - button_standard = { - name = "swap_position" - visible = "[And(CharacterListItem.GetBool('can_swap'), Not(CharacterListItem.GetCharacter.IsGuest))]" - onclick = "[CharacterListItem.OnClick('swap_position')]" - - text = "POTENTIAL_COUNCILLOR_SWAP" - - using = tooltip_below - tooltip = "[CharacterListItem.GetText('swap_tooltip')]" - } - - button_standard = { - name = "recruit_guest" - visible = "[And(Character.IsPlayerInteractionShown('recruit_guest_interaction'), Character.IsGuest)]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - - text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - using = tooltip_below - } - } - - blockoverride "bottom_right_box" {} - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - visible = "[Not(PotentialCouncillorWindow.CanReassignCouncillor)]" - - textbox = { - name = "cannot_assign_info" - size = { 30 20 } - margin_bottom = 4 - default_format = "#low;italic" - align = center - text = "COUNCIL_WINDOW_CANT_REASSIGN_WARNING" - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_county_view.gui b/N3OW/gui/window_county_view.gui deleted file mode 100644 index 82799f9d..00000000 --- a/N3OW/gui/window_county_view.gui +++ /dev/null @@ -1,3638 +0,0 @@ -###################################################### -################### COUNTY VIEW ###################### -###################################################### - -window = { - name = "holding_view" - widgetid = "holding_view" - parentanchor = bottom|left - allow_outside = yes - movable = no - layer = windows_layer - size = { 605 750 } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'county_view_open', 'true' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'county_view_open' )]" - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - alwaystransparent = yes - - vbox = { - layoutpolicy_horizontal = expanding - expand = { - ignoreinvisible = yes - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - name = "window_content" - margin_right = 40 - margin_top = 35 - alwaystransparent = no - - datacontext = "[HoldingView.GetHolding]" - datacontext = "[HoldingView.GetProvince]" - datacontext = "[HoldingView.GetHolder]" - datacontext = "[Province.GetCounty]" - - background = { - texture = "gfx/interface/skinned/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -17 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - hbox = { - name = "county_header" - layoutpolicy_horizontal = expanding - margin_right = 15 - margin_left = 5 - margin_top = 5 - margin_bottom = 5 - spacing = 10 - - background = { - using = Background_Area_Dark - margin_left = 5 - } - - coa_title_small = { - datacontext = "[HoldingView.GetCountyTitle]" - } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - - text_single = { - text = "[HoldingView.GetCountyTitle.GetNameNoTooltip|U]" - using = Font_Size_Big - font = TitleFont - max_width = 380 - fontsize_min = 16 - } - - button_edit_text = { - visible = "[HoldingView.GetCountyTitle.CanPlayerCustomizeTitle]" - onclick = "[OpenTitleCustomizationWindow(HoldingView.GetCountyTitle)]" - tooltip = "CUSTOMIZE_TITLE" - } - - expand = {} - } - - vbox = { - datacontext = "[HoldingView.GetCountyTitle.GetHolder]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "your_county" - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_YOUR_COUNTY" - margin_bottom = 5 - using = Font_Size_Small - fontsize_min = 10 - max_width = 420 - } - - text_single = { - name = "top_realm_county" - visible = "[Character.IsOtherLiegeOrAbove( GetPlayer )]" - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_TOP_REALM_COUNTY" - margin_bottom = 5 - using = Font_Size_Small - fontsize_min = 10 - max_width = 420 - } - - text_single = { - name = "foreign_county" - visible = "[Not(Or(ObjectsEqual( Character.Self, GetPlayer ),Character.IsOtherLiegeOrAbove( GetPlayer )))]" - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_FOREIGN_COUNTY" - margin_bottom = 5 - using = Font_Size_Small - fontsize_min = 10 - max_width = 420 - } - } - } - - expand = {} - - ### SIEGE AND RAID GOTO BUTTON ### - button_group = { - name = "open_siege_button" - datacontext = "[HoldingView.GetProvince.GetSiege]" - visible = "[HoldingView.GetProvince.HasActiveSiege]" - onclick = "[DefaultOnSiegeClick(Siege.GetID)]" - tooltip = "[Siege.GetSiegeDescription]" - using = tooltip_se - shortcut = county_go_to_siege - using = siege_goto_template - } - - button_group = { - name = "open_raid_button" - datacontext = "[HoldingView.GetProvince.GetRaid]" - visible = "[HoldingView.GetProvince.HasActiveRaid]" - onclick = "[DefaultOnRaidClick( Raid.Self )]" - tooltip = "MAP_RAID_TOOLTIP" - shortcut = county_go_to_siege - using = tooltip_se - using = raid_goto_template - blockoverride "tooltip" {} - } - - buttons_window_control = { - - blockoverride "button_go_to" - { - tooltip = "GOTO_PROVINCE_TT" - using = tooltip_ne - onclick = "[HoldingView.PanToCountyCapital]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_close" - { - onclick = "[HoldingView.Close]" - } - } - } - - #################################### - ########### COUNTY INFO ############ - #################################### - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 5 - - hbox = { - datamodel = "[HoldingView.GetDeJureLieges]" - - item = { - coa_title_tiny_crown = { - visible = "[GreaterThan_int32( Title.GetTierFrame, '(int32)3' )]" - using = tooltip_se - } - } - } - - text_single = { - text = "DE_JURE_HIERARCHY" - default_format = "#low" - } - - expand = {} - - widget = { - layoutpolicy_horizontal = expanding - scissor = yes - - hbox = { - name = "county_modifiers_grid" - datamodel = "[HoldingView.GetCountyModifiers]" - - button_round = { - name = "move_domcicle_button" - datacontext = "[GetPlayer.GetDomicile]" - datacontext = "[HoldingView.GetProvince]" - visible = "[IsLandlessAdventurer( GetPlayer )]" - widgetid = "move_domcicle_button" - size = { 50 50 } - - enabled = "[Domicile.CanMoveTo( Province.Self )]" - onclick = "[OpenGameViewData( 'move_domicile_planner', Province.Self )]" - - tooltip = "[Domicile.GetType.GetMoveTooltip( Character.Self )]" - tooltip_when_disabled = "[Domicile.GetMoveToTooltip( Province.Self )]" - using = tooltip_ne - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/move_camp.dds" - } - } - - expand = {} - - spacer = { - visible = "[Or( IsLandlessAdventurer( GetPlayer ), County.IsFullyOccupied )]" - size = { 8 0 } - } - - item = { - modifier_item_icon = { - size = { 30 30 } - - blockoverride "icon_data" { - using = tooltip_ne - } - } - } - - widget = { - datacontext = [County.GetCountyOccupant] - visible = [County.IsFullyOccupied] - size = { 50 50 } - - icon = { - name = "war_icon" - parentanchor = center - size = { 50 50 } - texture = "gfx/interface/icons/war_status/war_icon.dds" - - } - - coa_realm_tiny = { - parentanchor = center - position = { 0 6 } - - blockoverride "coa_button" { - onclick = "[DefaultOnRealmFlagClick(Character.GetID)]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacter(Character.GetID))]" - tooltip = "COUNTY_OCCUPIER_TOOLTIP" - } - } - } - } - } - } - - hbox = { # County Fertility - visible = "[County.UsesCountyFertility]" - - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_left = 10 - margin_right = 15 - spacing = 5 - - background = { - visible = "[County.IsInSituation( 'the_great_steppe' )]" - texture = "[County.GetCurrentPhaseTypeInSituation('the_great_steppe').GetIllustration]" - fittype = centercrop - alpha = 0.6 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[Not( County.IsInSituation( 'the_great_steppe' ) )]" - texture = "gfx/interface/illustrations/terrain_types/steppe.dds" - fittype = centercrop - alpha = 0.6 - - using = Mask_Rough_Edges - } - - vbox = { # County Fertility & Steppe Season - datacontext = "[HoldingView.GetProvince.GetCounty]" - datacontext = "[HoldingView.AccessCountyBreakdowns]" - - margin = { 5 5 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "HOLDING_VIEW_COUNTY_FERTILITY_LABEL" - align = left|nobaseline - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - } - - text_single = { - text = "HOLDING_VIEW_COUNTY_FERTILITY_VALUE" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - align = left|nobaseline - - } - - tooltipwidget = { - county_fertility_tooltip_container = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "HOLDING_VIEW_HERD_FROM_COUNTY_LABEL" - align = left|nobaseline - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - } - - text_single = { - text = "HOLDING_VIEW_HERD_FROM_COUNTY_VALUE" - align = left|nobaseline - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - tooltip = "[County.GetHerdFromCountyTooltip]" - } - - tooltipwidget = { - county_fertility_tooltip_container = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[County.IsInSituation('the_great_steppe')]" - spacing = 5 - - text_single = { - text = "HOLDING_VIEW_STEPPE_SEASON_LABEL" - align = left|nobaseline - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - } - - text_single = { - text = "[County.GetCurrentPhaseTypeInSituation('the_great_steppe').GetName]" - default_format = "#high;glow_color:{0.1,0.1,0.1,1.0}" - align = left|nobaseline - } - - expand = {} - } - } - - expand = {} - - button_round = { - name = "abandon_lands_button" - datacontext = "[HoldingView.GetCountyTitle]" - visible = "[And(And( ObjectsEqual( HoldingView.GetTitle.GetHolder, GetPlayer ), Not(HoldingView.GetTitle.IsLeasedOut) ), Not(HoldingView.GetProvince.IsRealmCapital))]" - - onclick = "[CreateCommandPopup( Title.CreateHerderForTitle( GetPlayer ) )]" - enabled = "[IsValidCommand( Title.CreateHerderForTitle( GetPlayer ) )]" - tooltip = "[GetCommandDesc( Title.CreateHerderForTitle( GetPlayer ) )]" - - button_icon = { - parentanchor = center - size = { 27 27 } - texture = "gfx/interface/icons/domicile_building/domicile_sheep_yurt.dds" - alwaystransparent = yes - } - } - - widget = { - size = { 150 60 } - - fertility_bar = { - datacontext = "[HoldingView.GetProvince.GetCounty.GetTitle]" - datacontext = "[HoldingView.AccessCountyFertilityBar]" - datacontext = "[HoldingView.AccessCountyBreakdowns]" - parentanchor = center - position = { 18 0 } - - blockoverride "bar_tooltip" { - tooltipwidget = { - county_fertility_tooltip_container = {} - } - using = tooltip_ne - } - - blockoverride "button_tooltip" { - tooltipwidget = { - county_fertility_tooltip_container = {} - } - using = tooltip_ne - } - - blockoverride "grey_fertility_icon_visibility" { - visible = no - } - - blockoverride "green_fertility_icon_visibility" { - visible = "[Title.IsAverageFertilityBetween( '(CFixedPoint)0.6', '(CFixedPoint)1.1' )]" - } - - blockoverride "yellow_fertility_icon_visibility" { - visible = "[Title.IsAverageFertilityBetween( '(CFixedPoint)0.3', '(CFixedPoint)0.6' )]" - } - - blockoverride "red_fertility_icon_visiblity" { - visible = "[Title.IsAverageFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.3' )]" - } - } - } - } - } - - hbox = { - name = "county_info" - datacontext = "[HoldingView.GetProvince.GetCountyCapitalProvince]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin_bottom = -2 - } - - hbox = { - name = "holder_info" - datacontext = "[HoldingView.GetCountyTitle.GetHolder]" - visible = "[Province.IsValid]" - layoutpolicy_horizontal = expanding - - margin = { 5 5 } - margin_right = 15 - - background = { - name = "Held_directly_by_me" - visible = "[ObjectsEqual( Character.Self, GetPlayer )]" - - texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" - spriteType = Corneredtiled - margin = { -7 -5 } - using = Color_Green - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - texture_density = 2 - blend_mode = alphamultiply - } - } - - background = { - name = "Held_by_someone_below_me" - visible = "[Character.IsOtherLiegeOrAbove( GetPlayer )]" - - texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" - spriteType = Corneredtiled - margin = { -7 -5 } - using = Color_Blue - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - texture_density = 2 - blend_mode = alphamultiply - } - } - - background = { - name = "Held_under_my_Top_Liege,_but_Not_Me" - visible = "[And(And(Not( ObjectsEqual( Character.Self, GetPlayer )),Not(Character.IsOtherLiegeOrAbove( GetPlayer ))),ObjectsEqual( Character.GetTopLiege, GetPlayer.GetTopLiege ))]" - - texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" - spriteType = Corneredtiled - margin = { -7 -5 } - using = Color_Bright_Yellow - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - texture_density = 2 - blend_mode = alphamultiply - } - } - - ## Holder - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 5 - margin_left = 5 - margin_bottom = 10 - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_COUNTY_HOLDER" - default_format = "#low" - } - - text_multi = { - datacontext = "[HoldingView.GetCountyTitle.GetHolder]" - visible = "[And(Character.HasRelationTo( GetPlayer ), Not(Character.IsPlayer))]" - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - autoresize = yes - max_width = 170 - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - - } - - text_multi = { - datacontext = "[HoldingView.GetCountyTitle.GetHolder]" - layoutpolicy_horizontal = expanding - - text = "[Character.GetShortUINameNoTooltip|U]" - autoresize = yes - default_format = "#high" - max_width = 170 - - } - - expand = {} - } - } - - vbox = { - name = "county_stats" - datacontext = "[HoldingView.GetProvince.GetCounty]" - datacontext = "[HoldingView.AccessCountyBreakdowns]" - layoutpolicy_vertical = expanding - - margin = { 10 10 } - margin_right = 15 - min_width = 260 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_CONTROL_LABEL" - } - - text_single = { - text = "[County.GetControlLevel]" - default_format = "#high" - - margin = { 5 0 } - - tooltipwidget = { - county_control_tooltip_container = {} - } - - background = { - visible = "[LessThan_CFixedPoint(County.GetControl, '(CFixedPoint)100')]" - margin = { 5 0 } - using = Status_Bad - } - } - - text_single = { - datacontext = "[CountyDataBreakdowns.AccessControl( County.Self )]" - visible = "[Or( LessThan_CFixedPoint(County.GetControl, '(CFixedPoint)100'), LessThan_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0') )]" - - text = "COUNTY_CONTROL_CHANGE_MONTHLY" - margin_right = 5 - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - - hbox = { - datacontext = "[County.GetCount.GetGovernment]" - datacontext = "[CountyDataBreakdowns.AccessDevelopmentChange( County.Self )]" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_DEVELOPMENT_LABEL" - } - - text_single = { - visible = "[GovernmentType.IsAffectedByDevelopment]" - - text = "[County.GetDevelopmentLevel]" - default_format = "#high" - - margin = { 5 0 } - - tooltipwidget = { - county_development_tooltip_container = {} - } - } - - text_single = { - visible = "[Not( GovernmentType.IsAffectedByDevelopment )]" - - text = "[County.GetDevelopmentLevel]" - default_format = "#high;weak" - - margin = { 5 0 } - - tooltipwidget = { - county_development_tooltip_container = {} - } - } - - text_single = { - visible = "[GovernmentType.IsAffectedByDevelopment]" - - text = "[ValueBreakdown.GetValueIndicatorHideNone( '(CFixedPoint)-5', '(CFixedPoint)1' )]" - - margin_left = -5 - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header_text" { - text = "COUNTY_DEVELOPMENT_PROGRESS_MONTHLY_TOOLTIP_HEADER" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_COUNTY_OPINION_LABEL" - } - - button_normal = { - name = "in_faction" - visible = "[HoldingView.IsInFaction]" - size = { 20 20 } - - onclick = "[HoldingView.OnGotoFaction]" - - tooltip = "COUNTY_IN_FACTION_TOOLTIP" - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - - text_single = { - datacontext = "[CountyDataBreakdowns.AccessOpinion( County.Self )]" - - text = "[ValueBreakdown.GetValue]" - default_format = "#high" - max_width = 160 - - margin = { 5 0 } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - - hbox = { - datacontext = "[County.GetCulture]" - layoutpolicy_horizontal = expanding - spacing = 2 - - using = tooltip_ne - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_CULTURE_LABEL" - } - - text_single = { - visible = "[NotEqualTo_uint32(Culture.GetID, GetPlayer.GetCulture.GetID)]" - text = "COUNTY_CULTURE_ACCEPTANCE_DIFF_CULTURE" - margin_right = 5 - max_width = 160 - - tooltip = "CULTURE_ACCEPTANCE_TOOLTIP" - } - - button_group = { - onclick = "[OpenGameViewData( 'culture_window', Culture.GetID )]" - - text_single = { - text = "CULTURE_COUNTY_WINDOW" - default_format = "#high" - margin = { 5 0 } - max_width = 120 - - background = { - visible = "[And( NotEqualTo_uint32(Culture.GetID, GetPlayer.GetCulture.GetID), EqualTo_CFixedPoint( Culture.GetAcceptance( GetPlayer.GetCulture ), '(CFixedPoint)100') )]" - margin = { 5 0 } - using = Status_Good - } - - background = { - visible = "[And(And( NotEqualTo_uint32(Culture.GetID, GetPlayer.GetCulture.GetID), NotEqualTo_CFixedPoint( Culture.GetAcceptance( GetPlayer.GetCulture ), '(CFixedPoint)100') ), NotEqualTo_CFixedPoint( Culture.GetAcceptance( GetPlayer.GetCulture ), '(CFixedPoint)0') )]" - margin = { 5 0 } - using = Status_Mixed - } - - background = { - visible = "[EqualTo_CFixedPoint( Culture.GetAcceptance( GetPlayer.GetCulture ), '(CFixedPoint)0')]" - margin = { 5 0 } - using = Status_Bad - } - } - - tooltipwidget = { - culture_tooltip = { - blockoverride "extra_info" - { - text_single = { - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - visible = "[Not( ObjectsEqual( Culture.Self, GetPlayer.GetCulture ) )]" - text = "COUNTY_NOT_YOUR_CULTURE" - } - } - } - } - } - } - - hbox = { - datacontext = "[County.GetFaith]" - layoutpolicy_horizontal = expanding - spacing = 2 - - using = tooltip_ne - - tooltipwidget = { - - faith_tooltip = { - - blockoverride "extra_info" { - using = faith_tooltip_click_default_extra_info - - text_single = { - margin = { 10 0 } - layoutpolicy_horizontal = expanding - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - visible = "[Not( ObjectsEqual( Faith.Self, GetPlayer.GetFaith ) )]" - text = "COUNTY_NOT_YOUR_FAITH" - } - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_FAITH_LABEL" - } - - vbox = { - expand = { - minimumsize = { 0 2 } - } - - icon = { - size = { 22 22 } - datacontext = "[Province.GetCounty.GetFaith]" - texture = "[Faith.GetIcon]" - } - } - - button_group = { - onclick = "[OpenGameViewData( 'faith', Faith.GetID )]" - - text_single = { - visible = "[EqualTo_uint32(Faith.GetID, GetPlayer.GetFaith.GetID)]" - text = "WINDOW_COUNTY_FAITH_NAME" - default_format = "#high" - margin_right = 5 - max_width = 160 - - } - - text_single = { - visible = "[NotEqualTo_uint32(Faith.GetID, GetPlayer.GetFaith.GetID)]" - text = "WINDOW_COUNTY_FAITH_NAME" - default_format = "#high" - margin = { 5 0 } - max_width = 160 - - background = { - margin = { 5 0 } - using = Status_Bad - } - } - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - datamodel = "[HoldingView.GetCountyHoldings]" - margin_left = 5 - spacing = 5 - - item = { - button_tab_dark = { - datacontext = "[GUICountyHolding.GetHolding]" - size = { 45 45 } - - down = "[GUICountyHolding.IsSelected]" - alwaystransparent = "[GUICountyHolding.IsSelected]" - onclick = "[GUICountyHolding.OnClick]" - onclick = "[PdxGuiTriggerAllAnimations('holding_view_refresh')]" - - using = tooltip_ne - tooltipwidget = { holding_tooltip_click = {} } - - icon_building_tab = { - parentanchor = center - position = { 0 1 } - size = { 35 30 } - texture = "[GUICountyHolding.GetHolding.GetType.GetTabIcon]" - alwaystransparent = yes - - down = "[GUICountyHolding.IsSelected]" - - - blockoverride "button_frames" - { - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - upframe = 4 - uphoverframe = 5 - uppressedframe = 6 - downframe = 5 - } - } - - icon = { - name = "realm_capital_icon" - visible = "[GUICountyHolding.GetHolding.GetProvince.GetTitle.IsCountyCapital]" - parentanchor = bottom|right - position = { 1 -3 } - size = { 24 24 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 1 - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - } - } - } - } - - expand = {} - } - - #################################### - ########## HOLDING INFO ############ - #################################### - vbox = { - name = "holding_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 320 } - margin = { 5 5 } - - state = { - name = "holding_view_refresh" - next = a - alpha = 0.5 - } - - state = { - name = "a" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - background = { - using = Background_Area_Dark - margin_left = 5 - margin_top = 3 - } - - background = { - visible = "[HoldingView.HasHolding]" - texture = "[HoldingView.GetHolding.GetIllustration]" - alpha = 0.8 - - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/window_county/mask_holding_illustration.dds" - blend_mode = alphamultiply - alpha = 0.95 - } - } - - background = { - visible = "[Not(HoldingView.HasHolding)]" - texture = "[HoldingView.GetProvince.GetTerrain.GetIllustration]" - alpha = 0.7 - - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/window_county/mask_holding_illustration.dds" - blend_mode = alphamultiply - alpha = 0.95 - } - } - - ### TOP LEFT - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - coa_title_medium = { - datacontext = "[HoldingView.GetTitle]" - visible = "[HoldingView.GetTitle.HasHolder]" - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - visible = "[HoldingView.GetTitle.HasHolder]" - ignoreinvisible = yes - spacing = 5 - - text_single = { - text = "[HoldingView.GetProvince.GetTitle.GetNameNoTierNoTooltip]" - default_format = "#high" - align = nobaseline - using = Font_Size_Big - max_width = 129 - fontsize_min = 14 - margin_left = 5 - - tooltip = "[HoldingView.GetProvince.GetTitle.GetNameNoTierNoTooltip]" - } - - button_edit_text = { - visible = "[HoldingView.GetProvince.GetTitle.CanPlayerCustomizeTitle]" - parentanchor = vcenter - size = { 25 25 } - - onclick = "[OpenTitleCustomizationWindow(HoldingView.GetProvince.GetTitle)]" - - tooltip = "CUSTOMIZE_TITLE" - } - - widget = { - size = { 30 30 } - visible = "[And(HoldingView.GetProvince.GetTitle.IsCountyCapital, Not(HoldingView.GetProvince.IsRealmCapital))]" - - icon = { - name = "county_capital_icon" - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 1 - - tooltip = "COUNTY_CAPITAL_TOOLTIP" - } - } - - widget = { - size = { 30 30 } - visible = "[HoldingView.GetProvince.IsRealmCapital]" - - icon = { - name = "realm_capital_icon" - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - - tooltip = "REALM_CAPITAL_TOOLTIP" - } - } - - widget = { - size = { 30 30 } - - button_move_capital = { - name = "set_realm_capital_button" - visible = "[HoldingView.PotentialSetRealmCapital]" - texture = "gfx/interface/icons/flat_icons/move_capital.dds" - - enabled = "[HoldingView.CanSetRealmCapital]" - onclick = "[HoldingView.SetRealmCapital]" - - tooltip = "[HoldingView.GetSetRealmCapitalTooltip]" - } - - button_move_capital = { - name = "set_county_capital_button" - visible = "[HoldingView.CanSetCountyCapital]" - texture = "gfx/interface/icons/flat_icons/move_capital.dds" - - onclick = "[HoldingView.SetCountyCapital]" - - tooltip = "SET_COUNTY_CAPITAL_TOOLTIP" - } - } - } - - text_single = { - visible = "[Not(HoldingView.GetTitle.HasHolder)]" - text = "[HoldingView.GetProvince.GetTitle.GetNameNoTierNoTooltip]" - default_format = "#medium" - using = Font_Size_Big - align = nobaseline - margin_left = 5 - } - - flowcontainer = { - datacontext = "[HoldingView.GetGUIHoldingBuilding]" - ignoreinvisible = yes - - text_label_left = { - text = "[HoldingView.GetHoldingDesc]" - max_width = 210 - multiline = yes - margin_left = 5 - } - } - - text_single = { - visible = "[HoldingView.GetProvince.IsOccupied]" - text = "[HoldingView.GetOccupiedInfo]" - default_format = "#high" - } - } - - expand = {} - } - - expand = {} - } - - ### HOLDING STATUSES - vbox = { - layoutpolicy_vertical = expanding - - fixedgridbox = { - name = "holding_statuses" - datamodel = "[HoldingView.GetHoldingStatuses]" - flipdirection = yes - datamodel_wrap = 2 - maxverticalslots = 4 - - addrow = 35 - addcolumn = 37 - - item = { - flowcontainer = { - ignoreinvisible = yes - - icon = { - name = "terrain" - datacontext = "[HoldingStatus.GetTerrainType]" - datacontext = "[HoldingView.GetProvince]" - visible = "[HoldingStatus.IsTerrainType]" - - texture = "[Terrain.GetIcon]" - size = { 35 35 } - - tooltip = "HOLDING_TERRAIN_TOTAL_TOOLTIP" - } - - button_round = { - name = "stationed_maa_button" - datacontext = "[HoldingStatus.GetMAAOriginHere]" - visible = "[HoldingStatus.IsMAAOriginHere]" - size = { 35 35 } - - onclick = "[OpenGameView( 'military' )]" - onclick = "[OpenGameViewData( 'men_at_arms', Regiment.GetID )]" - - tooltip = "VIEW_MAA_ORIGIN_TT" - - button_icon_highlight = { - texture = "gfx/interface/icons/flat_icons/army_details.dds" - parentanchor = center - alwaystransparent = yes - size = { 35 35 } - } - } - - icon = { - datacontext = "[HoldingStatus.GetMAATypeOriginHere]" - visible = "[HoldingStatus.IsMAATypeOriginHere]" - - texture = "[MenAtArmsType.GetIcon]" - alwaystransparent = yes - size = { 35 35 } - - tooltip = "SHOW_MAA_ORIGIN_TT" - } - - flowcontainer = { - visible = "[HoldingStatus.IsWinterLevel]" - ignoreinvisible = yes - - icon = { # Mild Winter - name = "winter_level_icon_mild" - visible = "[EqualTo_int32( HoldingStatus.GetWinterLevel, '(int32)1' )]" - texture = "gfx/interface/icons/terrain_types/winter_mild.dds" - size = { 35 35 } - - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - - icon = { # Normal Winter - name = "winter_level_icon_normal" - visible = "[EqualTo_int32( HoldingStatus.GetWinterLevel, '(int32)2' )]" - texture = "gfx/interface/icons/terrain_types/winter_normal.dds" - size = { 35 35 } - - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - - icon = { # Harsh Winter - name = "winter_level_icon_harsh" - visible = "[EqualTo_int32( HoldingStatus.GetWinterLevel, '(int32)3' )]" - texture = "gfx/interface/icons/terrain_types/winter_harsh.dds" - size = { 35 35 } - - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - } - - flowcontainer = { - datacontext = "[HoldingStatus.GetEpidemic]" - visible = "[HoldingStatus.IsEpidemic]" - ignoreinvisible = yes - - button_epidemic = { - blockoverride "extra_data" - { - datacontext = "[Epidemic.GetInfectionLevelIn( HoldingView.GetProvince )]" - - spacer = { - size = { 0 16 } - } - - cooltip_paragraph = { - visible = "[EpidemicInfectionLevel.HasRealmModifier]" - text = "[EpidemicInfectionLevel.GetRealmModifierDesc]" - } - - cooltip_paragraph = { - visible = "[Or( EpidemicInfectionLevel.HasProvinceModifier, EpidemicInfectionLevel.HasCountyModifier )]" - text = "EPIDEMIC_MODIFIERS_PROVINCE_AND_COUNTY" - } - } - - blockoverride "infection_chance_text" - { - text = "EPIDEMIC_TOOLTIP_CHANCE_OF_INFECTION_SPECIFIC_PROVINCE" - } - } - } - - - flowcontainer = { - datacontext = "[HoldingStatus.GetLegend]" - visible = "[HoldingStatus.IsLegend]" - ignoreinvisible = yes - - button_legend = { - visible = "[Not( Or( Legend.IsCurrentlyPromotedInProvince( Province.Self ), Legend.WasPromotedOnCompletionInProvince( Province.Self ) ) )]" - effectname = "GreyedOut" - - blockoverride "province_details" { - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - maximumsize = { 400 300 } - - text = "DISABLED_LEGEND_PROVINCE_MODIFIERS" - } - } - } - - button_legend = { - visible = "[Or( Legend.IsCurrentlyPromotedInProvince( Province.Self ), Legend.WasPromotedOnCompletionInProvince( Province.Self ) )]" - } - } - - flowcontainer = { - datacontext = "[HoldingStatus.GetTimedModifier]" - visible = "[HoldingStatus.IsTimedModifier]" - ignoreinvisible = yes - - modifier_item_icon = { - size = { 30 30 } - - blockoverride "icon_data" - { - using = tooltip_ne - } - } - } - } - } - } - - expand = {} - } - - ### HOLDING STATS - vbox = { - layoutpolicy_vertical = expanding - - margin = { 15 0 } - margin_bottom = 10 - minimumsize = { 171 0 } - spacing = 5 - - background = { - visible = "[HoldingView.HasHolding]" - using = Background_Area_Dark - alpha = 0.7 - margin_top = 9 - } - - ### Tax Income - hbox = { - name = "tutorial_highlight_holding_view_taxes_box" - visible = "[And( HoldingView.HasHolding, Not( Holding.GetHolder.HasBarterGoods ) )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - tooltip = "[Holding.GetTaxTooltip]" - - background = { - visible = "[Holding.LevyAndTaxIsAffectedByFixableSituation]" - using = Status_Bad - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_TAX" - default_format = "#high" - } - - text_single = { - text = "HOLDING_TAX_VALUE" - default_format = "#V" - } - } - - ### Barter Goods Income - hbox = { - visible = "[And( HoldingView.HasHolding, Holding.GetHolder.HasBarterGoods )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - tooltip = "[Holding.GetBarterGoodsIncomeTooltip]" - - background = { - visible = "[Holding.LevyAndTaxIsAffectedByFixableSituation]" - using = Status_Bad - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_BARTER_GOODS" - default_format = "#high" - } - - text_single = { - text = "HOLDING_BARTER_GOODS_VALUE" - default_format = "#V" - } - } - - ### Raid loot - hbox = { - name = "tutorial_highlight_holding_view_loot_box" - visible = "[HoldingView.HasHolding]" - layoutpolicy_horizontal = expanding - spacing = 3 - - tooltip = "[Holding.GetProvince.GetLootTooltip]" - - background = { - visible = "[Holding.GetProvince.IsRecentlyLooted]" - using = Status_Bad - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_LOOT" - default_format = "#high" - } - - text_single = { - text = "HOLDING_LOOT_VALUE" - } - } - - ### Levies - vbox = { - visible = "[And( HoldingView.HasHolding, Not( Holding.GetType.HasParameter( 'no_levies' ) ) )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - hbox = { - layoutpolicy_horizontal = expanding - - tooltip = "[Holding.GetLeviesTooltip]" - - background = { - visible = "[Holding.LevyAndTaxIsAffectedByFixableSituation]" - using = Status_Bad - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "LEVIES" - default_format = "#high" - } - - text_single = { - text = "HOLDING_LEVY_SIZE" - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard_transparent = { - layoutpolicy_horizontal = expanding - size = { 0 10 } - value = "[Holding.GetUnraisedLevyRatioPercent]" - direction = horizontal - } - } - } - - - ### Supply Level - hbox = { - layoutpolicy_horizontal = expanding - - tooltip = "[HoldingView.GetSupplyLimitTooltip]" - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUPPLY_LIMIT" - default_format = "#high" - max_width = 140 - } - - text_single = { - raw_text = " [HoldingView.GetSupplyLimit|V]" - default_format = "#high" - } - } - - - ### Plague Resistance - hbox = { - datacontext = "[Holding.GetProvince]" - datacontext = "[HoldingView.AccessPlagueResistanceBreakdown]" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_VIEW_EPIDEMIC_RESISTANCE" - default_format = "#high" - } - - expand = {} - - text_single = { - text = "HOLDING_VIEW_EPIDEMIC_RESISTANCE_VALUE" - default_format = "#high" - } - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - expand = {} - } - } - - ### CONSTRUCT NEW HOLDING & CONSTRUCTING PROGRESS - vbox = { - hbox = { - visible = "[And(Not(HoldingView.HasHolding), Not(HoldingView.IsBeingConstructed))]" - margin_bottom = 30 - - button_standard_big = { - name = "construct_holding" - size = { 300 50 } - text = "CREATE_NEW_HOLDING_BUTTON" - - enabled = "[And(HoldingView.CanNewHoldingBeConstructed, Not(HoldingView.IsSelectingHoldingType))]" - onclick = "[HoldingView.OnConstructHoldingClick]" - - tooltip = "[HoldingView.GetHoldingConstructionTooltip]" - - } - } - - hbox = { - visible = "[HoldingView.IsBeingConstructed]" - margin_bottom = 30 - - vbox = { - name = "constructing_holding" - spacing = 5 - - progressbar_standard = { - name = "constructing_holding_progress" - alwaystransparent = yes - size = { 300 30 } - value = "[HoldingView.GetConstructionProgressForSlot('(int32)0')]" - direction = horizontal - - tooltip = "[HoldingView.GetHoldingUnderConstructionTooltip]" - - text_single = { - parentanchor = center - text = "[HoldingView.GetConstructionTimeLeftForSlot('(int32)0')]" - default_format = "#high" - align = nobaseline - using = Font_Size_Medium - } - } - - button_standard_big = { - name = "cancel_holding_construction" - size = { 300 30 } - text = "CANCEL_HOLDING_CONSTRUCTION" - visible = "[HoldingView.CanCancelConstruction]" - - onclick = "[HoldingView.CancelHoldingConstruction]" - - tooltip = "CANCEL_HOLDING_CONSTRUCTION_TOOLTIP" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - ### BOTTOM LEFT - background = { - visible = "[And(NotEqualTo_uint32( HoldingView.GetCountyTitle.GetHolder.GetID, HoldingView.GetTitle.GetLesseeOrHolder.GetID ), HoldingView.GetTitle.HasHolder)]" - - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - using = Color_Blue - alpha = 0.6 - - margin_left = 4 - margin_bottom = 3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_texture_01.dds" - spriteType = Corneredtiled - spriteborder = { 15 15 } - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[And(NotEqualTo_uint32( HoldingView.GetCountyTitle.GetHolder.GetID, HoldingView.GetTitle.GetLesseeOrHolder.GetID ), HoldingView.GetTitle.HasHolder)]" - - texture = "gfx/interface/component_masks/mask_frame.dds" - spriteType = Corneredstretched - spriteborder = { 15 15 } - using = Color_Blue - alpha = 0.6 - - margin_bottom = 7 - margin_left = 6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - vbox = { - layoutpolicy_vertical = expanding - allow_outside = yes - - expand = {} - - hbox = { - allow_outside = yes - - widget = { - datacontext = "[HoldingView.GetTitle.GetLesseeOrHolder]" - visible = "[And( NotEqualTo_uint32( HoldingView.GetCountyTitle.GetHolder.GetID, HoldingView.GetProvince.GetTitle.GetLesseeOrHolder.GetID ), HoldingView.GetTitle.HasHolder )]" - allow_outside = yes - size = { 85 90 } - - text_single = { - datacontext = "[HoldingView.GetTitle]" - visible = "[Not(Title.IsLeasedOut)]" - layoutpolicy_horizontal = expanding - parentanchor = top|left - position = { 0 -22 } - allow_outside = yes - - text = "HOLDING_VIEW_HOLDER" - default_format = "#low" - - margin_left = 5 - } - - text_single = { - datacontext = "[HoldingView.GetTitle]" - visible = "[Title.IsLeasedOut]" - layoutpolicy_horizontal = expanding - parentanchor = top|left - position = { 0 -22 } - allow_outside = yes - - text = "HOLDING_VIEW_LESSEE" - default_format = "#low" - - margin_left = 5 - } - - portrait_head_small = { - blockoverride "opinion_box" {} - } - } - - widget = { - size = { 30 90 } - allow_outside = yes - - vbox = { - name = "theocracy_property" - layoutpolicy_vertical = expanding - parentanchor = bottom - allow_outside = yes - - expand = {} - - icon = { - name = "church_property" - datacontext = "[HoldingView.GetTitle]" - visible = "[Title.IsUnderTheocraticLease]" - size = { 30 30 } - texture = "gfx/interface/icons/icon_holding_church.dds" - - tooltip = "CHURCH_PROPERTY_TOOLTIP" - } - - container = { - name = "revoke_lease_button" - datacontext = "[HoldingView.GetTitle]" - visible = "[Title.IsLeasedOut]" - ignoreinvisible = yes - - button_round = { - datacontext = "[Title.GetLessee]" - visible = "[And( Or(Title.GetHolder.IsLocalPlayer, Title.GetHolder.IsOtherLiegeOrAbove( GetPlayer )), Character.IsPlayerInteractionShownAndCanPickTitle('revoke_leased_title_interaction', Title.Self) )]" - - enabled = "[Character.IsPlayerInteractionWithTargetTitleValid('revoke_leased_title_interaction', Title.Self)]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - - tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip('revoke_leased_title_interaction', Title.Self)]" - - button_revoke_lease = { - parentanchor = center - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('revoke_leased_title_interaction', Title.Self)]" - } - } - } - - vbox = { - button_round = { - name = "toggle_find_vassal" - datacontext = "[HoldingView.GetTitle]" - datacontext = "[GetPlayer]" - visible = "[And( And( ObjectsEqual( Title.GetHolder, Character.Self ), Title.CanUseFindVassal( Character.Self ) ), Not( Title.IsLeasedOut ) )]" - - onclick = "[HoldingView.ToggleFindVassalListWindow]" - - tooltip = "FIND_VASSAL_BUTTON_TOOLTIP" - - shortcut = "find_vassal_for_holding" - - button_grant_title_to_vassal = { - parentanchor = center - alwaystransparent = yes - } - } - - hbox_title_shared_buttons = { - datacontext = "[HoldingView.GetTitle]" - datacontext = "[Title.GetHolder]" - } - } - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 3 - - expand = {} - - # Showing special buildings even if the holding type do not allow buildings (has to be positioned differently) - widget_building_item = { - name = "special_building_no_others" - datacontext = "[HoldingView.GetGUISpecialBuilding]" - visible = "[And(HoldingView.HasSpecialBuildingSlot, HoldingView.GetHolding.GetType.HasParameter('no_buildings'))]" - - button_standard = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_special_building.dds" - alwaystransparent = yes - spriteborder = { 20 20 } - } - } - } - - ### BOTTOM RIGHT - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - flowcontainer = { - visible = "[HoldingView.GetTitle.HasHolder]" - direction = vertical - ignoreinvisible = yes - spacing = 3 - - button_standard = { - datacontext = "[HoldingView.GetGUIHoldingBuilding]" - parentanchor = right - size = { 171 85 } - allow_outside = yes - - onclick = "[GUIBuildingItem.OnClick]" - down = "[GUIBuildingItem.IsHighlighted]" - enabled = "[GUIBuildingItem.IsBuildingButtonEnabled]" - - tooltip = "[GUIBuildingItem.GetTooltip]" - - vbox = { - layoutpolicy_vertical = expanding - margin = { 5 0 } - - ### Fort Info - hbox = { - visible = "[HoldingView.GetProvince.HasFort]" - layoutpolicy_horizontal = expanding - spacing = 10 - margin_left = 2 - margin_right = 2 - margin_top = 5 - - expand = {} - - widget = { - size = { 50 40 } - - tooltip = "[HoldingView.GetGarrisonTooltip]" - - flowcontainer = { - parentanchor = top|hcenter - spacing = 3 - - icon = { - name = "icon_garrison" - texture = "gfx/interface/icons/icon_garrison.dds" - size = { 30 30 } - } - - text_single = { - text = "[HoldingView.GetCurrentGarrisonSize]" - default_format = "#high" - } - } - - flowcontainer = { - parentanchor = bottom|hcenter - position = { 0 -2 } - - progressbar_standard_transparent = { - size = { 70 10 } - value = "[HoldingView.GetGarrisonRatio]" - direction = horizontal - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 5 0 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 5 - - expand = {} - - hbox = { - spacing = 3 - tooltip = "[Province.GetFortLevelTooltip]" - - icon = { - name = "icon_fort" - texture = "gfx/interface/window_siege/fort_icon.dds" - size = { 30 25 } - } - - text_single = { - text = "[HoldingView.GetProvince.GetFortLevel]" - default_format = "#high" - align = nobaseline - } - } - - expand = {} - } - - expand = {} - } - - ### No Fort Info - hbox = { - visible = "[Not( HoldingView.GetProvince.HasFort )]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - widget = { - size = { 45 30 } - - icon_building = { - name = "building_icon" - parentanchor = center - position = { 0 5 } - size = { 45 40 } - texture = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetTypeIcon]" - } - } - } - - expand = {} - - widget = { - size = { 161 40 } - - background = { - using = Background_Area_Dark - margin = { 4 -2 } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - spacing = 5 - - expand = {} - - text_single = { - text = "[HoldingView.GetHolding.GetPrimaryBuildingType.GetTypeName]" - max_width = 115 - } - - text_single = { - visible = "[GUIBuildingItem.HasLevel]" - text = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetLevel]" - size = { 15 20 } - margin = { 5 0 } - fontsize = 15 - default_format = "#low;bold" - align = center - - background = { - using = Background_Area_ExtraDark - } - } - - warning_icon = { - name = "wrong_type" - datacontext = "[HoldingView.GetHolder]" - visible = "[And( Not( Holding.IsEmpty ), Not( Holding.IsValidForLesseeOrHolder ) )]" - size = { 20 20 } - - tooltip = HOLDING_VIEW_WRONG_HOLDING_TYPE - } - - warning_icon = { - name = "reduced_by_fixable_situation" - visible = "[And( ObjectsEqual( GUIBuildingItem.Self, Holding.Self ), GUIBuildingItem.IsBuildingDisabled )]" - size = { 20 20 } - } - - expand = {} - } - - widget = { - visible = "[GUIBuildingItem.IsConstructing]" - size = { 161 8 } - - progressbar_standard = { - name = "holding_upgrade_progressbar" - parentanchor = center - size = { 167 10 } - alwaystransparent = yes - value = "[GUIBuildingItem.GetConstructingProgress]" - } - } - - expand = {} - } - } - } - } - - flowcontainer = { - - name = "holding_view_buildings_area" - widgetid = "holding_view_buildings_area" - # ra_merit_governor_holding_view uses this - - visible = "[Not(HoldingView.GetHolding.GetType.HasParameter('no_buildings'))]" - ignoreinvisible = yes - parentanchor = right - - # Upgrade buildings - flowcontainer = { - name = "buildings_grid" - datamodel = "[HoldingView.GetBuildings]" - ignoreinvisible = yes - spacing = 3 - righttoleft = yes - - item = { - widget_building_item = {} - } - } - - flowcontainer = { - visible = "[Or(HoldingView.HasDuchyCapitalBuildingSlot, Or( HoldingView.HasSpecialBuildingSlot, HoldingView.HasGreatBuildingSlot ) )]" - ignoreinvisible = yes - margin_left = 3 - - widget_building_item = { - name = "duchy_capital_building" - datacontext = "[HoldingView.GetGUIDuchyCapitalBuilding]" - visible = "[HoldingView.HasDuchyCapitalBuildingSlot]" - - blockoverride "building_frame" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_duchy_capital.dds" - alwaystransparent = yes - spriteType = Corneredtiled - spriteborder = { 18 18 } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.2 - } - } - } - } - - spacer = { - size = { 3 0 } - } - - widget_building_item = { - name = "special_building" - datacontext = "[HoldingView.GetGUISpecialBuilding]" - visible = "[HoldingView.HasSpecialBuildingSlot]" - - blockoverride "building_frame" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_special_building.dds" - alwaystransparent = yes - spriteType = Corneredtiled - spriteborder = { 18 18 } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.2 - } - } - } - } - - spacer = { - size = { 3 0 } - } - - widget_building_item = { - name = "great_building" - datacontext = "[HoldingView.GetGUIGreatBuilding]" - visible = "[HoldingView.HasGreatBuildingSlot]" - - blockoverride "building_frame" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_great_building.dds" - alwaystransparent = yes - spriteType = Corneredtiled - spriteborder = { 18 18 } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.2 - } - } - } - warning_icon = { - name = "ruined_great_building" - visible = "[GUIBuildingItem.IsBuildingRuined]" - position = { 3 3 } - size = { 20 20 } - } - } - - widget = { - # This is needed to offset the building slots correctly when special building slots exist. - name = "Conditional_margin_widget" - size = { 0 0 } - visible = "[HoldingView.HasSpecialBuildingSlot]" - } - } - } - } - } - } - } - } - } -} - -###################################################### -########### CONSTRUCT NEW BUILDING WINDOW ############ -###################################################### - -window = { - name = "holding_tracks_view" - size = { 100% 100% } - movable = no - layer = top - datacontext = "[HoldingView.GetHolder]" - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -50 - } - - alwaystransparent = yes - - hbox = { - expand = { - max_width = 610 - } - - widget = { - layoutpolicy_vertical = expanding - size = { 725 0 } - - vbox = { - margin_top = 170 - margin_bottom = 10 - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 730 } - - ## New Building - vbox = { - visible = "[Not(HoldingView.IsSelectingBuildingToConstruct)]" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - margin = { 3 3 } - margin_bottom = 5 - - using = Window_Background_Subwindow - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[HoldingView.GetTracksViewLabel]" - } - - blockoverride "button_close" - { - onclick = "[HoldingView.CloseSubwindows]" - } - } - - building_in_vassal_warning_hbox = {} - - text_single = { - name = "prompt" - layoutpolicy_horizontal = shrinking - - text = "[HoldingView.GetTracksViewPrompt]" - margin_bottom = 10 - } - - text_single = { - name = "no_potential_buildings_text" - visible = "[IsDataModelEmpty(HoldingView.GetPotentialBuildings)]" - layoutpolicy_horizontal = shrinking - - text = "NO_POTENTIAL_BUILDINGS_WARNING" - margin_bottom = 10 - } - - ## Construct New Building - container = { - visible = "[Not(IsDataModelEmpty(HoldingView.GetPotentialBuildings))]" - layoutpolicy_vertical = expanding - - scrollbox = { - visible = "[Not(HoldingView.IsSelectingBuildingToConstruct)]" - size = { 700 300 } - autoresizescrollarea = yes - maximumsize = { -1 800 } - - blockoverride "scrollbox_content" - { - name = "tracks_grid" - datamodel = "[HoldingView.GetPotentialBuildings]" - datacontext = "[HoldingView.GetProvince]" - - visible = "[HoldingView.IsSelectingNewBuilding]" - spacing = 10 - set_parent_size_to_minimum = yes - - block "scrollbox_margins" - { - using = Scrollbox_Margins - margin_right = 15 - margin_top = 5 - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Light - } - - hbox = { - name = "header" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 10 - - icon_building = { - name = "building_icon" - size = { 75 65 } - texture = "[GUIPotentialBuildingItem.GetBuilding.GetTypeIcon]" - } - - vbox = { - spacing = 5 - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUIPotentialBuildingItem.GetBuilding.GetTypeName]" - using = Font_Size_Medium - align = left - autoresize = no - } - - hbox = { - button_tertiary = { - text = "CONSTRUCT_BUILDINGS_DETAILS" - - onclick = "[GUIPotentialBuildingItem.ShowDetails]" - tooltip = "CONSTRUCT_BUILDINGS_DETAILS_TT" - using = tooltip_es - } - - expand = {} - } - } - - expand = {} - - hbox = { - spacing = 5 - - hbox = { - margin = { 5 5 } - min_width = 120 - spacing = 10 - - background = { - using = Background_Area - margin_bottom = 4 - margin_left = 6 - } - - text_single = { - datacontext = "[GUIPotentialBuildingItem.GetCost]" - visible = "[GUIPotentialBuildingItem.HasCost]" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[Not( GUIPotentialBuildingItem.CanAffordCost( GetPlayer.Self ) )]" - using = Status_Bad - } - } - - text_single = { - datacontext = "[GUIPotentialBuildingItem.GetPrestigeCost]" - visible = "[GUIPotentialBuildingItem.HasPrestigeCost]" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPrestige, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GUIPotentialBuildingItem.GetPietyCost]" - visible = "[GUIPotentialBuildingItem.HasPietyCost]" - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPiety, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GUIPotentialBuildingItem.GetConstructionTime]" - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - expand = {} - } - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 100 53 } - enabled = "[GUIPotentialBuildingItem.CanConstruct]" - tooltip = "[GUIPotentialBuildingItem.GetTooltip]" - onclick = "[GUIPotentialBuildingItem.Construct]" - onclick = "[HoldingView.CloseSubwindows]" - text = "CONSTRUCT" - using = tooltip_es - } - } - } - } - - hbox = { - name = "dynamic_content" - layoutpolicy_horizontal = expanding - margin = {5 5} - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = {5 0} - text = "[GUIPotentialBuildingItem.GetBuilding.GetTypeDescription]" - default_format = "#F" - autoresize = yes - max_width = 280 - min_width = 280 - } - - vbox = { - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - datacontext = "[GUIPotentialBuildingItem.GetBuilding]" - text = CV_BUILDING_LEVEL_AND_NAME - autoresize = no - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 355 - min_width = 355 - text = "[GUIPotentialBuildingItem.GetBuilding.GetEffectDescriptionAtProvince( Character.Self, Province.Self )]" - margin = { 15 10 } - - background = { - using = Background_Frame - } - } - } - } - } - } - } - } - } - } - - vbox = { - vbox = { - visible = "[HoldingView.IsSelectingBuildingToConstruct]" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - ## Upgrade Building - vbox = { - name = "upgrade" - datacontext = "[HoldingView.GetTrack]" - layoutpolicy_horizontal = expanding - - margin_bottom = 10 - - using = Window_Background_Subwindow - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 10 } - spacing = 10 - - background = { - using = Background_Area - } - - icon_building = { - name = "building_icon" - texture = "[GUITrackItem.GetSelectedBuilding.GetTypeIcon]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUITrackItem.GetSelectedBuilding.GetTypeName]" - using = Font_Size_Big - default_format = "#high" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUITrackItem.GetBuildingTypeText]" - } - - building_in_vassal_warning_hbox = { - } - } - - buttons_window_control = { - blockoverride "button_close" - { - onclick = "[HoldingView.CloseSubwindows]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 15 5 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 10 } - - ### PREVIOUS BUILDINGS - hbox = { - name = "level_track_previous" - datamodel = "[GUITrackItem.GetPreLevelItems]" - - item = { - hbox = { - button_icon = { - name = "track_icon" - onclick = "[BuildingLevelItem.OnClick]" - down = "[BuildingLevelItem.IsSelected]" - alwaystransparent = "[BuildingLevelItem.IsSelected]" - - size = { 60 60 } - texture = "gfx/interface/buttons/button_round_big.dds" - - tooltip = "[BuildingLevelItem.GetTooltip]" - using = tooltip_ne - tooltip_offset = { 40 0 } - - background = { - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 3 - } - } - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[BuildingLevelItem.IsSelected]" - texture = "[BuildingLevelItem.GetIcon]" - } - - icon = { - visible = "[BuildingLevelItem.IsSelected]" - parentanchor = bottom|hcenter - position = { 0 8 } - texture = "gfx/interface/window_county/building_selected_arrow.dds" - size = { 18 12 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - - widget = { - visible = "[GUITrackItem.HasCurrentBuilding]" - layoutpolicy_horizontal = expanding - size = { 5 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - } - } - } - - ### CURRENT BUILDING - button_icon = { - name = "current_building" - visible = "[GUITrackItem.HasCurrentBuilding]" - onclick = "[GUITrackItem.OnCurrentBuildingClick]" - down = "[GUITrackItem.IsCurrentBuildingSelected]" - alwaystransparent = "[GUITrackItem.IsCurrentBuildingSelected]" - tooltip = "[GUITrackItem.GetCurrentBuildingTooltip]" - using = tooltip_ws - size = { 60 60 } - texture = "gfx/interface/buttons/button_round_big.dds" - using = tooltip_ne - tooltip_offset = { 40 0 } - - background = { - visible = "[Not(GUITrackItem.IsConstructingReplacement)]" - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 3 - } - } - - background = { - visible = "[GUITrackItem.IsConstructingReplacement]" - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - alpha = 0.5 - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 3 - } - } - background = { - visible = "[GUITrackItem.IsConstructingReplacement]" - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - frame = 2 - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 3 - } - } - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[GUITrackItem.IsCurrentBuildingSelected]" - texture = "[GUITrackItem.GetCurrentLevelIcon]" - } - - icon = { - visible = "[GUITrackItem.IsCurrentBuildingSelected]" - parentanchor = bottom|hcenter - position = { 0 8 } - texture = "gfx/interface/window_county/building_selected_arrow.dds" - size = { 18 12 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - - expand = { - visible = "[Not(And(GUITrackItem.HasCurrentBuilding, GUITrackItem.HasNextBuilding))]" - } - - widget = { - visible = "[And(GUITrackItem.HasCurrentBuilding, GUITrackItem.HasNextBuilding)]" - layoutpolicy_horizontal = expanding - size = { 5 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - ### NEXT BUILDING - button_icon = { - name = "next_building" - visible = "[GUITrackItem.HasNextBuilding]" - down = "[GUITrackItem.IsNextBuildingSelected]" - alwaystransparent = "[GUITrackItem.IsNextBuildingSelected]" - size = { 60 60 } - texture = "gfx/interface/buttons/button_round_big.dds" - onclick = "[GUITrackItem.OnNextBuildingClick]" - tooltip = "[GUITrackItem.GetNextBuildingTooltip]" - using = tooltip_ne - tooltip_offset = { 40 0 } - - background = { - visible = "[And(GUITrackItem.IsConstructing, Not(GUITrackItem.IsConstructingReplacement))]" - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - frame = 2 - alpha = 0.5 - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 4 - } - } - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[GUITrackItem.IsNextBuildingSelected]" - alwaystransparent = yes - texture = "[GUITrackItem.GetNextLevelIcon]" - #frame = "[GUITrackItem.GetNextLevelIconFrame]" - } - - icon = { - visible = "[GUITrackItem.IsNextBuildingSelected]" - parentanchor = bottom|hcenter - position = { 0 8 } - texture = "gfx/interface/window_county/building_selected_arrow.dds" - size = { 18 12 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - - widget = { - visible = "[Not(IsDataModelEmpty( GUITrackItem.GetPostLevelItems ))]" - layoutpolicy_horizontal = expanding - size = { 5 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - #Post Track - ### LEVEL TRACK - hbox = { - name = "level_track_next" - datamodel = "[GUITrackItem.GetPostLevelItems]" - - item = { - hbox = { - widget = { - layoutpolicy_horizontal = expanding - size = { 5 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - button_icon = { - down = "[BuildingLevelItem.IsSelected]" - alwaystransparent = "[BuildingLevelItem.IsSelected]" - size = { 60 60 } - texture = "gfx/interface/buttons/button_round_big.dds" - onclick = "[BuildingLevelItem.OnClick]" - tooltip = "[BuildingLevelItem.GetTooltip]" - using = tooltip_ne - tooltip_offset = { 40 0 } - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[BuildingLevelItem.IsSelected]" - texture = "[BuildingLevelItem.GetIcon]" - # frame = 2 - } - - icon = { - visible = "[BuildingLevelItem.IsSelected]" - parentanchor = bottom|hcenter - position = { 0 8 } - texture = "gfx/interface/window_county/building_selected_arrow.dds" - size = { 18 12 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - } - } - } - } - - spacer = { - size = { 10 10 } - } - - # Buliding info - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Frame - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_left = 15 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[GUITrackItem.GetSelectedBuilding.GetNameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - } - } - - hbox = { - name = "flavor_and_effect" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 5 5 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - autoresize = yes - max_width = 300 - min_width = 300 - text = "[GUITrackItem.GetSelectedBuilding.GetDescription]" - - margin = { 15 5 } - } - - text_single = { - datacontext = "[GUITrackItem.GetSelectedBuilding]" - visible = "[InDebugMode]" - layoutpolicy_horizontal = expanding - - text = "BUILDING_DEBUG_FULL" - - margin = { 10 5 } - } - - hbox = { - visible = "[And( And( Or( GUITrackItem.CanReplace, GUITrackItem.CanCancel ), GUITrackItem.IsCurrentBuildingSelected), Not( GUITrackItem.IsConstructing ) )]" - spacing = 10 - margin_bottom = 10 - - text_single = { - text = "CURRENT_BUILDING" - default_format = "#weak" - align = nobaseline - } - } - - vbox = { - visible = "[And(And(GreaterThan_int32(GUITrackItem.GetSelectedBuilding.GetLevel,GUITrackItem.GetCurrentBuilding.GetLevel),GreaterThan_int32(GUITrackItem.GetSelectedBuilding.GetLevel,'(int32)1')), Not(GUITrackItem.IsNextBuildingSelected))]" - layoutpolicy_horizontal = expanding - - margin_left = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "UPGRADE_COST" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 10 10 } - - hbox = { - spacing = 10 - - text_single = { - datacontext = "[GUITrackItem.GetSelectedCost]" - visible = "[GUITrackItem.HasSelectedCost]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[Not( GUITrackItem.CanAffordSelectedCost( GetPlayer.Self ) )]" - using = Status_Bad - } - } - - text_single = { - datacontext = "[GUITrackItem.GetSelectedPrestigeCost]" - visible = "[GUITrackItem.HasSelectedPrestigeCost]" - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[GUITrackItem.GetSelectedPietyCost]" - visible = "[GUITrackItem.HasSelectedPietyCost]" - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[GUITrackItem.GetSelectedConstructionTime]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - - warning_icon = { - name = "cant_construct" - size = { 30 30 } - tooltip = "[GUITrackItem.GetSelectedBuildingBlockReasons]" - visible = "[Not(GUITrackItem.CanConstructSelectedBuilding)]" - } - - expand = {} - } - } - - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - scrollbox = { - size = { 375 310 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - - blockoverride "scrollbox_content" { - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 355 - min_width = 355 - text = "[GUITrackItem.GetSelectedBuilding.GetEffectDescriptionAtProvince( Character.Self, HoldingView.GetProvince )]" - margin = { 5 5 } - } - } - } - } - } - - vbox = { - visible = "[GUITrackItem.IsConstructing]" - layoutpolicy_horizontal = expanding - margin = { 0 15 } - spacing = 10 - - text_single = { - text = "HOLDING_VIEW_IN_PROGRESS" - margin = { 0 5 } - } - - hbox = { - spacing = 10 - - widget = { - size = { 20 20 } - allow_outside = yes - - button_round = { - name = "abort_button" - parentanchor = center - visible = "[GUITrackItem.CanShowCancel]" - enabled = "[GUITrackItem.CanCancel]" - onclick = "[GUITrackItem.Cancel]" - tooltip = "[GUITrackItem.GetCancelTooltip]" - - button_cancel = { - parentanchor = center - alwaystransparent = yes - } - } - } - - progressbar_standard = { - name = "construct_progressbar" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - size = { 300 25 } - alwaystransparent = yes - value = "[GUITrackItem.GetConstructionProgress]" - - text_single = { - parentanchor = center - text = "[GUITrackItem.GetConstructTimeLeft]" - default_format = "#high" - align = nobaseline - } - } - } - } - - spacing = 5 - - hbox = { - visible = "[Not(GUITrackItem.IsConstructing)]" - spacing = 10 - margin = { 10 10 } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - button_standard_back = { - name = "back_button" - text = "BACK_LABEL" - visible = "[And(EqualTo_int32(GUITrackItem.GetNextBuilding.GetLevel,'(int32)1'), Not(GUITrackItem.IsConstructing))]" - onclick = "[GUITrackItem.GoBack]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - - button_round = { - name = "replace_button" - onclick = "[GUITrackItem.Replace]" - tooltip = "[GUITrackItem.GetReplaceTooltip]" - visible = "[And(GUITrackItem.IsCurrentBuildingSelected, GUITrackItem.CanReplace)]" - - button_change = { - alwaystransparent = yes - parentanchor = center - } - } - } - vbox = { - spacing = 10 - - hbox = { - visible = "[And( GUITrackItem.HasNextBuilding, Not( GUITrackItem.IsGreatBuildingRuined ) )]" - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 10 5 } - margin_right = 15 - spacing = 10 - - background = { - using = Background_Area - margin_bottom = 4 - margin_left = 6 - } - - text_single = { - datacontext = "[GUITrackItem.GetNextCost]" - visible = "[GUITrackItem.HasNextCost]" - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[Not( GUITrackItem.CanAffordNextCost( GetPlayer.Self ) )]" - using = Status_Bad - } - } - - text_single = { - datacontext = "[GUITrackItem.GetNextPrestigeCost]" - visible = "[GUITrackItem.HasNextPrestigeCost]" - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPrestige, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GUITrackItem.GetNextPietyCost]" - visible = "[GUITrackItem.HasNextPietyCost]" - - text_single = { - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPiety, ValueBreakdown.GetFixedPointValue)]" - raw_text = "@warning_icon!" - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GUITrackItem.GetNextConstructionTime]" - visible = "[LessThan_CFixedPoint('(CFixedPoint)0', ValueBreakdown.GetFixedPointValue)]" - text = "[ValueBreakdown.GetValue]" - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - } - - hbox = { - visible = "[GUITrackItem.IsGreatBuildingRuined]" - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 10 5 } - margin_right = 15 - spacing = 10 - - background = { - using = Background_Area - margin_bottom = 4 - margin_left = 6 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUITrackItem.GetCurrentBuilding.GetRebuildCostDescription( GetPlayer)]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GUITrackItem.GetRebuildConstructionTime]" - } - } - } - - - button_primary = { - onclick = "[GUITrackItem.OnClick]" - onclick = "[HoldingView.CloseSubwindows]" - - tooltip = "[GUITrackItem.GetNextBuildingTooltip]" - enabled = "[GUITrackItem.CanConstructNextBuilding]" - visible = "[And( And( GUITrackItem.HasNextBuilding, Not( GUITrackItem.IsUpgradingWithGreatProject ) ), Not( GUITrackItem.IsGreatBuildingRuined ) )]" - text = "[SelectLocalization(EqualTo_int32(GUITrackItem.GetNextBuilding.GetLevel, '(int32)1'),'CONSTRUCT', Select_CString( GUITrackItem.UpgradesViaGreatProject, 'CONSTRUCT_BUILDING_PLAN_EXPANSION', 'UPGRADE' ) )]" - } - - button_primary = { - onclick = "[GUITrackItem.ShowGreatProjectUpgrade]" - onclick = "[HoldingView.CloseSubwindows]" - - visible = "[GUITrackItem.IsUpgradingWithGreatProject]" - text = "CONSTRUCT_BUILDING_SEE_UPGRADE_PROJECT" - } - - button_primary = { - onclick = "[CreateCommandPopup( HoldingView.GetProvince.RebuildGreatBuilding( GetPlayer ) )]" - enabled = "[IsValidCommand( HoldingView.GetProvince.RebuildGreatBuilding( GetPlayer ) )]" - tooltip = "[GetCommandDesc( HoldingView.GetProvince.RebuildGreatBuilding( GetPlayer ) )]" - - visible = "[GUITrackItem.IsGreatBuildingRuined]" - text = "REBUILD_GREAT_BUILDING_BUTTON" - } - } - } - } - } - } - - expand = {} - } - - expand = {} - } - } - } - - expand = {} - } -} - -###################################################### -############ HOLDING TYPE SELECTION VIEW ############# -###################################################### - -window = { - name = "holding_type_selection_view" - movable = no - layer = windows_layer - parentanchor = bottom|hcenter - position = { 40 -50 } - using = Animation_ShowHide_Quick - - using = Window_Background_Subwindow - - vbox = { - set_parent_size_to_minimum = yes - margin = { 4 4 } - margin_bottom = 15 - spacing = 15 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CREATE_NEW_HOLDING_HEADING" - } - - blockoverride "button_close" - { - onclick = "[HoldingView.CloseHoldingConstruction]" - } - } - - building_in_vassal_warning_hbox = {} - - hbox = { - name = "holding_types" - datamodel = "[HoldingView.GetHoldingTypeItems]" - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 10 10 } - - item = { - vbox = { - spacing = 5 - - button_standard = { - size = { 250 148 } - enabled = "[HoldingTypeItem.CanConstructBuilding]" - onclick = "[HoldingTypeItem.OnClick]" - tooltip = "[HoldingTypeItem.GetTooltip]" - datacontext = "[HoldingTypeItem.GetProvince]" - - widget = { - scissor = yes - size = { 247 146 } - - icon = { - visible = "[HoldingTypeItem.CanConstructBuilding]" - size = { 320 146 } - texture = "[HoldingTypeItem.GetBuilding.GetIllustration(Province.Self)]" - using = Mask_Rough_Edges - alpha = 0.7 - } - - highlight_icon = { - visible = "[Not(HoldingTypeItem.CanConstructBuilding)]" - size = { 320 146 } - texture = "[HoldingTypeItem.GetBuilding.GetIllustration(Province.Self)]" - effectname = "GreyedOut" - tintcolor = { 0.6 0.6 0.6 1 } - using = Mask_Rough_Edges - } - } - - flowcontainer = { - parentanchor = bottom|right - ignoreinvisible = yes - margin = { 5 5 } - - warning_icon = { - name = "wrong_type" - visible = "[Not(HoldingTypeItem.IsValidForPlayer)]" - size = { 35 35 } - tooltip = HOLDING_SELECTION_VIEW_WRONG_HOLDING_TYPE - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[HoldingTypeItem.GetHoldingType.GetName]" - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types CountyViewTypes -{ - type widget_building_item = widget { - size = { 55 55 } - enabled = "[GUIBuildingItem.IsBuildingButtonEnabled]" - tooltip = "[GUIBuildingItem.GetTooltip]" - using = tooltip_ne - - button_standard = { - name = "building_button" - size = { 100% 100% } - onclick = "[GUIBuildingItem.OnClick]" - down = "[GUIBuildingItem.IsHighlighted]" - - block "building_frame" {} - - button_icon = { - name = "build_new_icon" - visible = "[And(And(GUIBuildingItem.IsBuildNewIconShown, GUIBuildingItem.IsBuildingButtonEnabled), Not(GUIBuildingItem.HasLevel))]" - parentanchor = center - size = { 28 28 } - alpha = 0.7 - texture = "gfx/interface/icons/flat_icons/plus.dds" - alwaystransparent = yes - } - - icon_building = { - name = "building_icon" - visible = "[And( Not( GUIBuildingItem.CanUpgrade ), Not( GUIBuildingItem.IsBuildingRuined ) )]" - parentanchor = center - size = { 45 40 } - texture = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetTypeIcon]" - } - - icon_building = { - name = "ruined_building_icon" - visible = "[GUIBuildingItem.IsBuildingRuined]" - parentanchor = center - size = { 45 40 } - texture = "gfx/interface/icons/flat_icons/ruined_building.dds" - } - - highlight_icon_building = { - name = "building_icon_can_upgrade" - visible = "[GUIBuildingItem.CanUpgrade]" - parentanchor = center - size = { 45 40 } - texture = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetTypeIcon]" - } - - text_single = { - visible = "[And( GUIBuildingItem.HasLevel, Not( GUIBuildingItem.IsConstructing ) ) ]" - text = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetLevel]" - parentanchor = bottom|right - position = { -6 -2 } - fontsize = 15 - default_format = "#low;bold" - align = nobaseline - - background = { - using = Background_Area_ExtraDark - margin = { 5 0 } - } - } - - warning_icon = { - name = "reduced_by_fixable_situation" - visible = "[GUIBuildingItem.IsBuildingDisabled]" - position = { 3 3 } - size = { 20 20 } - } - } - - icon = { - name = "building_slot" - size = { 100% 100% } - using = Background_Area - visible = "[GUIBuildingItem.IsBuildingSlotShown]" - } - - flowcontainer = { - visible = "[And( GUIBuildingItem.HasLevel, GUIBuildingItem.IsConstructing ) ]" - parentanchor = bottom|hcenter - position = { 0 -3 } - direction = vertical - ignoreinvisible = yes - - widget = { - size = { 15 15 } - parentanchor = right - - text_single= { - visible = "[GUIBuildingItem.HasLevel]" - parentanchor = center - position = { -1 0 } - - text = "[GUIBuildingItem.GetCurrentOrConstrucingBuilding.GetLevel]" - fontsize = 15 - default_format = "#low;bold" - align = nobaseline - - background = { - using = Background_Area_ExtraDark - margin = { 5 0 } - } - } - } - - progressbar_standard = { - name = "construct_progressbar" - visible = "[GUIBuildingItem.IsConstructing]" - parentanchor = hcenter - alwaystransparent = yes - size = { 51 10 } - value = "[GUIBuildingItem.GetConstructingProgress]" - direction = horizontal - } - } - - flowcontainer = { - visible = "[And( Not( GUIBuildingItem.HasLevel ), GUIBuildingItem.IsConstructing ) ]" - parentanchor = bottom|hcenter - position = { 0 -3 } - direction = vertical - ignoreinvisible = yes - - progressbar_standard = { - name = "construct_progressbar" - visible = "[GUIBuildingItem.IsConstructing]" - parentanchor = hcenter - alwaystransparent = yes - size = { 51 10 } - value = "[GUIBuildingItem.GetConstructingProgress]" - direction = horizontal - } - } - } - - type building_in_vassal_warning_hbox = hbox - { - name = "vassal_warning" - visible = "[Not( ObjectsEqual( HoldingView.GetHolder, GetPlayer ) )]" - - coa_title_tiny = { - datacontext = "[HoldingView.GetHolder.GetPrimaryTitle]" - } - - text_multi = { - autoresize = yes - text = "HOLDING_VIEW_BUILDING_IN_VASSAL" - } - } - - # Requires County and CountyDataBreakdowns data context - type county_control_tooltip_container = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - text = "COUNTY_CONTROL_TOOLTIP_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "[County.GetCountyControlEffectsDesc]" - } - - spacer = { - size = { 0 15 } - } - - cooltip_paragraph = { - datacontext = "[CountyDataBreakdowns.AccessControl( County.Self )]" - - text = "VALUE_BREAKDOWN_TEXT_LINK" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - } - } - } - - # Requires County and CountyDataBreakdowns data context - type county_development_tooltip_container = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - text = "COUNTY_DEVELOPMENT_TOOLTIP_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[County.GetCount]" - datacontext = "[Character.GetGovernment]" - - cooltip_paragraph = { - visible = "[Not( GovernmentType.IsAffectedByDevelopment )]" - text = "COUNTY_DEVELOPMENT_IGNORED_DESC" - } - - cooltip_paragraph = { - text = "[County.GetCountyDevelopmentEffectsDesc]" - } - - spacer = { - size = { 0 15 } - } - - cooltip_paragraph = { - text = "[County.GetDevelopmentProgressOutOfMax]" - } - - cooltip_paragraph = { - datacontext = "[CountyDataBreakdowns.AccessDevelopmentChange( County.Self )]" - - text = "VALUE_BREAKDOWN_TEXT_LINK" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - } - } - } - - # Requires County and CountyDataBreakdowns data context - type county_fertility_tooltip_container = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "title_text" - { - margin = { 0 8 } - text = "COUNTY_FERTILITY_TOOLTIP_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - text = "PROJECTED_COUNTY_FERTILITY_EQUILIBRIUM" - } - - cooltip_paragraph = { - datacontext = "[CountyDataBreakdowns.AccessFertilityChange( County.Self )]" - datacontext = "[HoldingView.AccessCountyBreakdowns]" - - text = "VALUE_BREAKDOWN_TEXT_LINK" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - using = tooltip_se - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_court.gui b/N3OW/gui/window_court.gui deleted file mode 100644 index e9664d5a..00000000 --- a/N3OW/gui/window_court.gui +++ /dev/null @@ -1,819 +0,0 @@ -window = { - name = "court_window" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - datacontext = "[GetVariableSystem]" - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[GetVariableSystem.Set( 'council_tabs', 'my_council' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "COURT_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[CourtWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - name = "court_positions_tab_button_tutorial_uses_this" - layoutpolicy_horizontal = expanding - text = COURT_WINDOW_COURT_POSITIONS - - onclick = "[CourtWindow.SetShowPositions]" - down = "[CourtWindow.IsShowPositions]" - - text_single = { - parentanchor = vcenter|right - position = { -20 -2 } - text = "[GetDataModelSize(CourtWindow.GetCourtOwner.GetEmployedCourtPositions)]" - - default_format = "#low" - - alpha = "[Select_float( GreaterThan_int32(GetDataModelSize(CourtWindow.GetCourtOwner.GetEmployedCourtPositions), '(int32)0'), '(float)1.0', '(float)0.5' )]" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - text = "COURT_WINDOW_YOUR_COURTIERS" - - onclick = "[CourtWindow.SetShowCourt]" - down = "[CourtWindow.IsShowCourt]" - } - - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[CourtWindow.SetShowPrison]" - down = "[CourtWindow.IsShowPrison]" - - text_single = { - text = "INTRIGUE_WINDOW_PRISONERS" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - - alpha = "[Select_float( GreaterThan_int32(CourtWindow.GetPrisoners.GetTotalNumber, '(int32)0'), '(float)1.0', '(float)0.5' )]" - } - - text_single = { - parentanchor = vcenter|right - position = { -20 0 } - text = "[CourtWindow.GetPrisoners.GetTotalNumber]" - - default_format = "#low" - - alpha = "[Select_float( GreaterThan_int32(CourtWindow.GetPrisoners.GetTotalNumber, '(int32)0'), '(float)1.0', '(float)0.5' )]" - } - } - } - - ##### YOUR COURTIERS ##### - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[CourtWindow.IsShowCourt]" - - using = Animation_Tab_Switch - - vbox = { - name = "court" - - vbox = { - visible = "[Not(IsDataModelEmpty(GetPlayer.GetCourt))]" - layoutpolicy_horizontal = expanding - spacing = 15 - margin_top = 15 - - hbox = { - spacing = 10 - - button_decision_entry = { - name = "invite_knights_decision" - datacontext = "[GetDecisionWithKey('invite_knights_decision')]" - visible = "[Decision.IsShownForPlayer]" - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - using = tooltip_se - - blockoverride "button_size" - { - size = { 210 30 } - } - } - - button_decision_entry = { - name = "invite_claimants_decision" - datacontext = "[GetDecisionWithKey('invite_claimants_decision')]" - visible = "[Decision.IsShownForPlayer]" - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - using = tooltip_se - - blockoverride "button_size" - { - size = { 210 30 } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - text_label_center = { - text = "COUNCIL_WINDOW_GUESTS_AND_COURTIERS" - layoutpolicy_horizontal = expanding - autoresize = no - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { -1 800 } - datacontext = "[CourtWindow.GetCourt]" - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - # unique name needed to distinct from prisoner sort options - name = "court_sort_options" - } - } - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[And(Not(CharacterSelectionList.IsBuildingList), IsDataModelEmpty(CharacterSelectionList.GetList) )]" - text = "COURT_WINDOW_NO_GUESTS_OR_COURTIERS" - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 520 - addrow = 130 - setitemsizefromcell = yes - - item = { - widget_courtier_item = { - datacontext = "[CharacterListItem.GetCharacter]" - - blockoverride "description_relation_text" { - text = "[SelectLocalization(Character.IsGuest, Character.GetRelationAndGuestDesc, Character.GetRelationToString(GetPlayer.Self))]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - } - } - } - } - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - - ## POSITONS - vbox_court_positions = { - name = "court_positions_subtab_tutorial_uses_this" - widgetid = "court_positions_subtab_tutorial_uses_this" - datacontext = "[CourtWindow.AccessCourtPositionWindow]" - visible = "[CourtWindow.IsShowPositions]" - - using = Animation_Tab_Switch - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - ## PRISONERS - vbox = { - datacontext = "[CourtWindow.GetPrisoners]" - visible = "[CourtWindow.IsShowPrison]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_single = { - visible = "[LessThanOrEqualTo_int32( CharacterSelectionList.GetTotalNumber, '(int32)0' )]" - text = "PRISON_EMPTY" - default_format = "#weak" - } - - background = { - visible = "[LessThanOrEqualTo_int32( CharacterSelectionList.GetTotalNumber, '(int32)0' )]" - texture = "gfx/interface/skinned/illustrations/dungeon.dds" - fittype = centercrop - framesize = { 700 800 } - frame = 2 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[GreaterThan_int32( CharacterSelectionList.GetTotalNumber, '(int32)0' )]" - texture = "gfx/interface/skinned/illustrations/dungeon.dds" - fittype = end - alpha = 0.4 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ## Layout with more than MAX_PRISONER_COUNT_GRID(4) prisoners - vbox_character_list = { - visible = "[GreaterThan_int32( CourtWindow.GetPrisoners.GetTotalNumber, GetDefine( 'NGui', 'MAX_PRISONER_COUNT_GRID' ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" - { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - addcolumn = 520 - addrow = 148 - datamodel_reuse_widgets = yes - - item = { - vbox = { - maximumsize = { 520 148 } - - widget_character_list_item_finder = { - layoutpolicy_horizontal = expanding - blockoverride "divider" {} - blockoverride "character_relation" {} - - blockoverride "gridbox_items" - { - datamodel_wrap = 4 - maxverticalslots = 2 - } - } - - hbox = { - name = "prisoner_data" - layoutpolicy_horizontal = expanding - margin = { 8 4 } - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - name = "info_text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 8 - - text_single = { - name = "type" - layoutpolicy_horizontal = expanding - text = "[CharacterListItem.GetText('tooltip')]" - default_format = "#low" - autoresize = no - align = nobaseline - } - - text_single = { - name = "imprisoned_time" - layoutpolicy_horizontal = expanding - text = "[CharacterListItem.GetText('imprisoned_time')]" - autoresize = no - align = nobaseline - default_format = "#low" - } - - - } - - button_checkbox = { - name = "lock_from_mass_actions" - checked = "[CharacterListItem.GetBool('is_mass_action_locked')]" - onclick = "[CharacterListItem.OnClick('mass_action_lock')]" - tooltip = "[CharacterListItem.GetText('mass_action_lock_tooltip')]" - } - - prison_interactions_hbox = {} - } - } - } - } - } - - blockoverride "bottom_bar" - { - hbox = { - margin = { 10 0 } - spacing = 3 - - text_single = { - text = "MASS_PRISONER_ACTIONS" - default_format = "#low" - align = nobaseline - } - - spacer = { - size = { 5 5 } - } - - button_round = { - name = "ransom" - enabled = "[CourtWindow.CanDoMassPrisonerAction('ransom')]" - - button_prison_ransom = { - parentanchor = center - onclick = "[CourtWindow.MassPrisonerAction('ransom')]" - tooltip = "[CourtWindow.GetMassPrisonerActionTooltip('ransom')]" - using = tooltip_se - } - } - - button_round = { - name = "release" - enabled = "[CourtWindow.CanDoMassPrisonerAction('release')]" - - button_prison_release = { - parentanchor = center - onclick = "[CourtWindow.MassPrisonerAction('release')]" - tooltip = "[CourtWindow.GetMassPrisonerActionTooltip('release')]" - using = tooltip_se - } - } - - button_round = { - name = "execute" - enabled = "[CourtWindow.CanDoMassPrisonerAction('execute')]" - - button_prison_execute = { - parentanchor = center - onclick = "[CourtWindow.MassPrisonerAction('execute')]" - tooltip = "[CourtWindow.GetMassPrisonerActionTooltip('execute')]" - using = tooltip_se - } - } - } - } - } - - ## Layout with MAX_PRISONER_COUNT_GRID(4) or fewer prisoners - vbox = { - visible = "[And( GreaterThan_int32( CourtWindow.GetPrisoners.GetTotalNumber, '(int32)0' ), LessThanOrEqualTo_int32( CourtWindow.GetPrisoners.GetTotalNumber, GetDefine( 'NGui', 'MAX_PRISONER_COUNT_GRID' ) ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 15 } - margin_left = 10 - - fixedgridbox = { - datamodel = "[CharacterSelectionList.GetList]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - addcolumn = 262 - addrow = 405 - datamodel_wrap = 2 - flipdirection = yes - #setitemsizefromcell = yes - - item = { - widget = { - size = { 262 395} - datacontext = "[CharacterListItem.GetCharacter]" - - background = { - texture = "gfx/interface/skinned/illustrations/dungeon.dds" - margin = { -5 0 } - fittype = centercrop - alpha = 0.3 - - using = Mask_Rough_Edges - } - - background = { - using = Background_Frame - alpha = 0.5 - } - - widget = { - size = { 100% 100% } - scissor = yes - - portrait_body = { - parentanchor = bottom|hcenter - position = { 0 -70 } - - blockoverride "coa" {} - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - } - - vbox = { - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - expand = {} - - hbox = { - spacing = 5 - - background = { - using = Background_Area - } - - vbox = { - margin_bottom = 3 - - expand = {} - - portrait_status_icons = {} - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - coa_realm_tiny_crown = { - visible = "[Character.HasLandedTitles]" - } - - portrait_opinion = {} - } - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - background = { - using = Background_Area - margin_bottom = 3 - } - - text_single = { - text = "[Character.GetShortUINameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - visible = "[Character.IsImprisoned]" - name = "type" - text = "[CharacterListItem.GetText('tooltip')]" - } - } - - spacer = { - size = { 3 3 } - } - - ### Actions - vbox = { - name = "actions" - layoutpolicy_horizontal = expanding - visible = "[And( CharacterListItem.GetCharacter.IsAlive, CharacterListItem.GetCharacter.IsImprisoned )]" - spacing = 10 - margin = { 10 5 } - margin_bottom = 15 - - background = { - using = Background_Area_Dark - } - - hbox = { - spacing = 5 - - icon = { - texture = "gfx/interface/icons/portraits/punishment.dds" - size = { 20 20 } - } - - text_single = { - name = "imprisoned_time" - layoutpolicy_horizontal = expanding - text = "[CharacterListItem.GetText('imprisoned_time')]" - } - } - - prison_interactions_hbox = {} - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - name = "court_character_filter_window" - datacontext = "[CourtWindow.GetCourt]" - size = { 510 902 } - - blockoverride "editbox_properties" - { - name = "court_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('tutor_filter')]" - } - } - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - - window_character_filter = { - datacontext = "[CourtWindow.GetPrisoners]" - blockoverride "addition_filter" { - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('tutor_filter')]" - } - } - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } -} - -types PrisonTypes -{ - - type prison_interactions_hbox = hbox { - spacing = 1 - - button_round = { - name = "ransom" - enabled = "[CharacterListItem.GetBool('can_ransom')]" - - button_prison_ransom = { - parentanchor = center - onclick = "[CharacterListItem.OnClick('ransom')]" - enabled = "[CharacterListItem.GetBool('can_ransom')]" - tooltip = "[CharacterListItem.GetText('ransom_tooltip')]" - using = tooltip_se - } - } - - button_round = { - name = "release" - enabled = "[CharacterListItem.GetBool('can_release')]" - - button_prison_release = { - parentanchor = center - onclick = "[CharacterListItem.OnClick('release')]" - enabled = "[CharacterListItem.GetBool('can_release')]" - tooltip = "[CharacterListItem.GetText('release_tooltip')]" - using = tooltip_se - } - } - - button_round = { - name = "execute" - enabled = "[CharacterListItem.GetBool('can_execute')]" - - button_prison_execute = { - parentanchor = center - onclick = "[CharacterListItem.OnClick('execute')]" - enabled = "[CharacterListItem.GetBool('can_execute')]" - tooltip = "[CharacterListItem.GetText('execute_tooltip')]" - using = tooltip_se - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - button_round = { - - datacontext = "[CharacterListItem.GetCharacter]" - - tooltip = "PRISON_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'interaction_category_prison'))]" - using = tooltip_se - - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'interaction_category_prison')]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - } - } - - -} \ No newline at end of file diff --git a/N3OW/gui/window_court_amenities.gui b/N3OW/gui/window_court_amenities.gui deleted file mode 100644 index 8ad974a5..00000000 --- a/N3OW/gui/window_court_amenities.gui +++ /dev/null @@ -1,1978 +0,0 @@ -types RoyalCourtTypes -{ - - type court_grandeur_expected_level_vbox = vbox { - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_BELOW_EXPECTATION - } - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[EqualTo_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_AT_EXPECTATION - } - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[GreaterThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_ABOVE_EXPECTATION - } - - vbox = { - visible = "[NotEqualTo_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetCurrentLevelIgnoreGrace )]" - - spacer = { - size = { 10 10 } - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevelIgnoreGrace, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_BELOW_EXPECTATION_IGNORE_GRACE - } - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[EqualTo_int32( CourtGrandeurData.GetCurrentLevelIgnoreGrace, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_AT_EXPECTATION_IGNORE_GRACE - } - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[GreaterThan_int32( CourtGrandeurData.GetCurrentLevelIgnoreGrace, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = COURT_GRANDEUR_TOOLTIP_ABOVE_EXPECTATION_IGNORE_GRACE - } - } - } - - - # Requires CourtAmenitiesWindow datacontext - type widget_court_grandeur_view = widget - { - - container = { - name = "royal_court_grandeur_view_tutorial_uses_this" - widgetid = "royal_court_grandeur_view_tutorial_uses_this" - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { 20 0 } - margin_top = -100 - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - widget = { - name = "background_texture_sides" - size = { 100% 100%} - position = { 0 40 } - - icon = { - name = "background_texture_sides_tier1" - texture = "gfx/interface/window_roco_grandeur/sides_tier01.dds" - size = { 100% 73} - - visible = "[LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4')]" - } - - icon = { - name = "background_texture_sides_tier2" - texture = "gfx/interface/window_roco_grandeur/sides_tier02.dds" - size = { 100% 73} - - visible = "[And(GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4'),LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7'))]" - } - - icon = { - name = "background_texture_sides_tier3" - texture = "gfx/interface/window_roco_grandeur/sides_tier03.dds" - size = { 100% 73} - - visible = "[GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7')]" - } - } - - icon = { - name = "background_texture_top" - size = { 100% 147 } - position = { 0 32 } - texture = "gfx/interface/window_roco_grandeur/court_grandeur_bg.dds" - } - - widget = { - name = "background_texture_trim" - size = { 100% 70 } - position = { 0 46 } - - icon = { - name = "background_texture_trim_tier1" - size = { 100% 70 } - alpha = 0.5 - texture = "gfx/interface/window_roco_grandeur/trim_tier1.dds" - - visible = "[LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4')]" - } - - icon = { - name = "background_texture_trim_tier2" - size = { 100% 70 } - alpha = 0.5 - texture = "gfx/interface/window_roco_grandeur/trim_tier2.dds" - - visible = "[And(GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4'),LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7'))]" - } - - icon = { - name = "background_texture_trim_tier3" - size = { 100% 70 } - alpha = 0.5 - texture = "gfx/interface/window_roco_grandeur/trim_tier3.dds" - - visible = "[GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7')]" - } - } - - widget = { - name = "illustration_left" - size = {450 230} - parentanchor = left|bottom - - background = { - texture = "gfx/interface/illustrations/event_scenes/throneroom_west.dds" - using = Mask_Rough_Edges - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - widget = { - name = "illustration_right" - size = {450 230} - parentanchor = right|bottom - - background = { - texture = "gfx/interface/illustrations/event_scenes/throneroom_west.dds" - using = Mask_Rough_Edges - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - widget = { - size = { 100% 330 } - parentanchor = bottom|hcenter - allow_outside = yes - - widget = { - size = { 100% 110 } - datacontext = "[Character.GetCourtGrandeurData]" - allow_outside = yes - - @progress_bar_size = 1000 - @progress_bar_spacing = @[progress_bar_size / 20] # Number of steps for level items - - flowcontainer = { - name = "current_value_text" - parentanchor = bottom|left - spacing = 5 - margin_bottom = 10 - margin_left = 15 - - icon_flat_standard = { - name = "grandeur_icon" - size = { 45 45 } - texture = "gfx/interface/window_roco_grandeur/icon_grandeur.dds" - } - - text_single = { - name = "court_grandeur_label" - text = COURT_GRANDEUR_LABEL - - margin_top = 10 - using = Font_Size_Small - } - - text_single = { - name = "court_grandeur_current_value" - text = "[CourtGrandeurData.GetCurrent|V0]" - align = nobaseline - margin_top = 10 - using = Font_Size_Medium - default_format = "#underline" - - using = tooltip_ne - - tooltipwidget = { court_grandeur_progress_bar_tooltip = {} } - } - - text_single = { - name = "court_grandeur_current_baseline_value" - datacontext = "[CourtGrandeurWindow.GetBaseBreakdownTooltip]" - text = COURT_GRANDEUR_PROGRESS_TOOLTIP_BASELINE_SIMPLE - - margin_top = 10 - using = Font_Size_Small - - using = tooltip_ne - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - } - - ### progressbar ### - widget = { - parentanchor = center - size = { 1100 40 } - position = { 5 24 } - allow_outside = yes - - text_single = { - text = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )|V0]" - align = right - using = Font_Size_Medium - parentanchor = left - position = { 24 4 } - } - - widget = { - name = "grandeur_tutorial_uses_this" - parentanchor = center - size = { @progress_bar_size 40 } - tooltipwidget = { court_grandeur_progress_bar_tooltip = {} } - - # Ensure a consistent background - progressbar_royal_court = { - name = "background" - size = { @progress_bar_size 40 } - value = 0 - - } - - progressbar_royal_court = { - name = "below_base_level" - size = { @progress_bar_size 40 } - value = "[CourtGrandeurData.GetBase]" - min = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )]" - max = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )]" - - noprogresstexture = "gfx/interface/progressbars/blank.dds" - progresstexture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - alpha = "[Select_float( CourtAmenitiesWindow.HasChangedAnyAmenity, '(float)0.7', '(float)1.0' )]" - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 36 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.80 0.96 0.82 0.9 } - } - } - } - - #### GRANDEUR BAR ANIMATION INCREASE #### - hbox = { - margin = { 0 2 } - visible = "[Not( GreaterThan_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase ) )]" - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( CourtGrandeurData.GetCurrent ), '(float)100', '(int32)1000' )]" - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( Subtract_CFixedPoint( CourtGrandeurData.GetBase, CourtGrandeurData.GetCurrent ) ), '(float)100', '(int32)1000' )]" - - #### HORIZONTAL WIPE #### - icon = { - size = { 100% 100% } - parentanchor = vcenter - texture = "gfx/interface/colors/white.dds" - color = { 0.854 0.964 0.694 1 } - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/progressbars/progressbar_center_glow_white_increase.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0 - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = c - duration = 0.5 - alpha = 0.4 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_glow')]" - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - - state = { - name = c - next = a - duration = 1 - alpha = 0 - delay = 1.5 - } - } - - #### GLOW #### - icon = { - name = "glow" - texture = "gfx/interface/progressbars/progressbar_side_glow.dds" - size = { 100% 100% } - color = { 0.854 0.964 0.694 1 } - alpha = 0 - - state = { - name = grandeur_bar_glow - next = b - duration = 0.1 - alpha = 0.4 - } - - state = { - name = b - duration = 1 - alpha = 0 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_arrow_glow')]" - } - } - - #### ARROW #### - icon = { - name = "arrow" - size = { 20 20 } - position = { 20 0 } - mirror = horizontal - parentanchor = vcenter|right - color = { 0.909 0.988 0.792 1 } - alpha = 0.2 - visible = "[NotEqualTo_CFixedPoint( CourtGrandeurData.GetBase, CourtGrandeurData.GetCurrent )]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - - modify_texture = { - name = "color" - texture = "gfx/interface/colors/white.dds" - } - - state = { - name = grandeur_bar_arrow_glow - next = b - duration = 1 - alpha = 0.2 - } - - state = { - name = b - duration = 1 - alpha = 0.4 - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( FixedPointToFloat( CourtGrandeurData.GetBase ), '(float)100', '(int32)1000' )]" - - } - } - } - - progressbar_royal_court = { - name = "current_value_bar_below_baseline" - layoutpolicy_horizontal = expanding - size = { @progress_bar_size 40 } - - value = "[CourtGrandeurData.GetCurrent]" - min = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )]" - max = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )]" - - noprogresstexture = "gfx/interface/progressbars/blank.dds" - visible = "[Not( GreaterThan_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase ) )]" - alpha = "[Select_float( CourtAmenitiesWindow.HasChangedAnyAmenity, '(float)0.7', '(float)1.0' )]" - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 36 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.75 0.89 0.97 0.9 } - } - icon = { - name = "current_value_divider" - size = { 12 50 } - position = { -5 -5 } - texture = "gfx/interface/window_roco_grandeur/grandeur_bar_base_level.dds" - } - } - } - } - - progressbar_royal_court = { - name = "current_value_bar_meeting_baseline" - layoutpolicy_horizontal = expanding - size = { @progress_bar_size 40 } - - progresstexture = "gfx/interface/progressbars/progress_grandeur_decrease.dds" - - value = "[CourtGrandeurData.GetCurrent]" - min = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )]" - max = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )]" - - noprogresstexture = "gfx/interface/progressbars/blank.dds" - visible = "[GreaterThan_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase )]" - alpha = "[Select_float( CourtAmenitiesWindow.HasChangedAnyAmenity, '(float)0.7', '(float)1.0' )]" - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 36 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.96 0.76 0.76 0.9 } - } - - icon = { - name = "current_value_divider" - size = { 12 50 } - position = { -5 -5 } - texture = "gfx/interface/window_roco_grandeur/grandeur_bar_base_level.dds" - } - } - } - - #### GRANDEUR BAR ANIMATION DECREASE #### - hbox = { - margin = { 0 2 } - visible = "[GreaterThan_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase )]" - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( CourtGrandeurData.GetBase ), '(float)100', '(int32)1000' )]" - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( Subtract_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase ) ), '(float)100', '(int32)1000' )]" - - #### HORIZONTAL WIPE #### - icon = { - size = { 100% 100% } - parentanchor = vcenter - texture = "gfx/interface/colors/white.dds" - color = { 0.988 0.776 0.690 1 } - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/progressbars/progressbar_center_glow_white_decrease.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0 - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = c - duration = 0.5 - alpha = 0.4 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_glow')]" - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = c - next = a - duration = 1 - alpha = 0 - delay = 1.5 - } - } - - #### GLOW #### - icon = { - name = "glow" - texture = "gfx/interface/progressbars/progressbar_side_glow.dds" - size = { 100% 100% } - color = { 0.988 0.776 0.690 1 } - alpha = 0 - mirror = horizontal - - state = { - name = grandeur_bar_glow - next = b - duration = 0.1 - alpha = 0.4 - } - - state = { - name = b - duration = 1 - alpha = 0 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_arrow_glow')]" - } - } - - #### ARROW #### - icon = { - name = "arrow" - size = { 20 20 } - parentanchor = vcenter|right - position = { 22 0 } - color = { 0.988 0.776 0.690 1 } - alpha = 0.2 - visible = "[NotEqualTo_CFixedPoint( CourtGrandeurData.GetBase, CourtGrandeurData.GetCurrent )]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - - modify_texture = { - name = "color" - texture = "gfx/interface/colors/white.dds" - } - - state = { - name = grandeur_bar_arrow_glow - next = b - duration = 1 - alpha = 0.2 - } - - state = { - name = b - duration = 1 - alpha = 0.4 - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( FixedPointToFloat( CourtGrandeurData.GetCurrent ), '(float)100', '(int32)1000' )]" - } - } - } - - progressbar_royal_court = { - name = "above_base_level" - size = { @progress_bar_size 40 } - value = "[CourtGrandeurData.GetBase]" - min = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )]" - max = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )]" - - noprogresstexture = "gfx/interface/progressbars/blank.dds" - visible = "[GreaterThan_CFixedPoint( CourtGrandeurData.GetCurrent, CourtGrandeurData.GetBase )]" - alpha = "[Select_float( CourtAmenitiesWindow.HasChangedAnyAmenity, '(float)0.7', '(float)1.0' )]" - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 36 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.75 0.89 0.97 0.9 } - } - } - } - } - - progressbar = { - name = "new_base_level" - size = { @progress_bar_size 40 } - value = "[CourtAmenitiesWindow.GetNewGrandeurBaseline]" - min = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MIN' )]" - max = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )]" - - progresstexture = "gfx/interface/progressbars/blank.dds" - noprogresstexture = "gfx/interface/progressbars/blank.dds" - visible = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - - - marker = { - name = "current_value" - widget = { - icon = { - size = { 25 36 } - position = { -20 2 } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.9 0.9 0.9 1 } - } - } - } - } - - ### Placeholder TIT-28275 Grandeur is above expectations - # hbox = { - # visible = "[GreaterThan_CFixedPoint( CourtGrandeurData.GetChangeTowardsBase, '(CFixedPoint)0' )]" - - # icon_flat_standard = { - # size = { 20 20 } - # mirror = horizontal - # texture = "gfx/interface/icons/flat_icons/window_back.dds" - # } - # } - - ### Placeholder TIT-28275 When changing Amenities that causes the Grandeur to change - ### from increasing to decreasing, or vice versa, - ### trigger an animation with a specific name. ie. "animation_amenities_change" - - ### Note it only trigger is there is a change in increasing / decreasing - ### changing from already increasing to increasing will not trigger the animation - #hbox = { - # icon_flat_standard = { - # size = { 25 25 } - # texture = "gfx/interface/icons/symbols/icon_arrow_up.dds" - # alpha = 0 - # state = { - # name = "animation_amenities_change" - # using = Animation_FadeIn_Standard - # next = "fade_out" - # } - # state = { - # name = "fade_out" - # using = Animation_FadeOut_Standard - # } - # } - #} - - ### dividers ### - flowcontainer = { - name = "level_dividers" - position = { 0 6 } - allow_outside = yes - spacing = @progress_bar_spacing - - datamodel = "[CourtGrandeurWindow.GetLevels]" - - item = { - widget = { - name = "level_divider" - size = { 0 30 } - allow_outside = yes - - icon = { - visible = "[CourtGrandeurLevel.ShouldShow]" - size = { 3 36 } - position = { 0 14 } - widgetanchor = center - texture = "gfx/interface/colors/white.dds" - color = { 1 1 1 1 } - alpha = 0.2 - spriteType = Corneredtiled - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - } - } - - icon = { - name = "grandeur_bar_bracket_left" - texture = "gfx/interface/window_roco_grandeur/grandeur_bar_bracket_left.dds" - size = { 29 60 } - position = { -10 -10 } - parentanchor = left - } - - icon = { - name = "grandeur_bar_bracket_right" - texture = "gfx/interface/window_roco_grandeur/grandeur_bar_bracket_right.dds" - size = { 29 60 } - position = { 10 -10 } - parentanchor = right - } - } - - ### levels ### - flowcontainer = { - name = "level_items" - parentanchor = top|hcenter - position = { 0 -28 } - spacing = @progress_bar_spacing - - datamodel = "[CourtGrandeurWindow.GetLevels]" - allow_outside = yes - ignoreinvisible = no - - item = { - widget = { - name = "level_item" - size = { 0 20 } - allow_outside = yes - visible = "[CourtGrandeurLevel.ShouldShow]" - - ### Expected grandeur level ### - widget = { - size = { 60 80 } - position = { 0 10 } - widgetanchor = center - - icon = { - name = "highlight_current_level" - size = { 80 80 } - position = { 0 -10 } - parentanchor = center - texture = "gfx/interface/window_roco_grandeur/pin_highlight.dds" - visible = "[EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel )]" - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.3 - alpha = 0.7 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.6 - alpha = 0 - } - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.7 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 7 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - widget = { - name = "expected_grandeur_level" - size = { 30 48 } - allow_outside = yes - parentanchor = bottom|hcenter - - ### Expected grandeur pin - icon = { - framesize = { 96 96 } - size = { 48 48 } - parentanchor = bottom|hcenter - position = { 0 5 } - visible = "[EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetMinimumExpectedLevel )]" - frame = "[Select_int32( Not(EqualTo_int32(CourtGrandeurData.GetCurrentLevel, CourtGrandeurLevel.GetValue)), Select_int32( LessThan_int32(CourtGrandeurData.GetCurrentLevel, CourtGrandeurLevel.GetValue), '(int32)1', '(int32)2' ), '(int32)3' )]" - texture = "gfx/interface/window_roco_grandeur/pin_expected_grandeur_bg.dds" - } - - icon = { - framesize = { 70 70 } - size = { 35 35 } - parentanchor = bottom|hcenter - position = { 0 0 } - visible = "[EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetMinimumExpectedLevel )]" - frame = "[BoolTo1And2( LessThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel ) )]" - texture = "gfx/interface/window_roco_grandeur/pin_expected_grandeur_icon.dds" - } - - warning_icon = { - size = { 25 25 } - parentanchor = top|hcenter - position = { 0 -52 } - allow_outside = yes - visible = "[And(EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetMinimumExpectedLevel ), LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel ) )]" - } - - tooltipwidget = { - court_grandeur_level_tooltip = {} - } - } - } - - widget = { - name = "level_backgrounds" - size = { 60 60 } - widgetanchor = center - - ### Level background level 1 - icon_grandeur_level = { - texture = "gfx/interface/window_roco_grandeur/pin_grandeur_rank_01.dds" - visible = "[LessThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, '(int32)4' )]" - } - - ### Level background level 2 - icon_grandeur_level = { - texture = "gfx/interface/window_roco_grandeur/pin_grandeur_rank_02.dds" - visible = "[GreaterThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, '(int32)5' )]" - } - - ### Level background level 3 - icon_grandeur_level = { - texture = "gfx/interface/window_roco_grandeur/pin_grandeur_rank_03.dds" - visible = "[GreaterThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, '(int32)8' )]" - } - - tooltipwidget = { - court_grandeur_level_tooltip = {} - } - } - - # In grace period, and this is either the start or end level - widget = { - visible = "[And( NotEqualTo_int32( CourtGrandeurData.GetCurrentLevelIgnoreGrace, CourtGrandeurData.GetCurrentLevel ), And( GreaterThan_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevelIgnoreGrace ), LessThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel ) ) )]" - size = { 60 60 } - widgetanchor = center - - icon = { - size = { 20 20 } - parentanchor = top|right - position = { -8 5 } - texture = "gfx/interface/icons/icon_time.dds" - } - } - - ### LEVEL ### - text_single = { - text = "[CourtGrandeurLevel.GetValue]" - align = center - widgetanchor = center - parentanchor = center - position = { 0 -13 } - } - } - } - } - - text_single = { - text = "[GetDefine( 'NRoyalCourt', 'COURT_GRANDEUR_MAX' )|V0]" - align = left - parentanchor = right - position = { -5 4 } - using = Font_Size_Medium - } - } - - ### WORLD RANKING ### - flowcontainer = { - parentanchor = bottom|right - margin_bottom = 24 - margin_right = 20 - - text_single = { - text = "ROYAL_COURT_WINDOW_WORLD_RANK" - align = right - using = Font_Size_Small - default_format = "#underline" - tooltip = "[CourtGrandeurWindow.GetWorldRankTooltip]" - } - } - } - - widget = { - parentanchor = bottom - size = { 100% 200 } - - flowcontainer = { - name = "type_and_language_tutorial_uses_this" - direction = vertical - parentanchor = left - spacing = 15 - margin_left = 20 - - ###### COURT TYPE ####### - flowcontainer_change_court_component = { - name = "court_types" - datacontext = "[RoyalCourtWindow.AccessCourtTypeWindow]" - - blockoverride "component_label" - { - text = "COURT_TYPE_LEVEL_MODIFIER" - } - - blockoverride "component_button" - { - visible = "[Character.IsLocalPlayer]" - - text = "[CourtTypeWindow.GetActiveCourtTypeItem.GetNameNoTooltip]" - tooltip = "TT_COURT_TYPE_BUTTON" - onclick = "[CourtTypeWindow.ToggleShowHideCourtTypeWindow]" - align = left - default_format = "#high" - margin_bottom = 5 - } - - blockoverride "component_text" - { - visible = "[Not( Character.IsLocalPlayer )]" - text = "[CourtTypeWindow.GetActiveCourtTypeItem.GetNameNoTooltip]" - tooltip = "[CourtTypeWindow.GetActiveCourtTypeItem.GetDescription]" - } - } - - ###### COURT LANGUAGE ####### - flowcontainer_change_court_component = { - name = "court_language" - datacontext = "[Character.GetCulture]" - datacontext = "[Character.GetCourtLanguage]" - - blockoverride "component_label" - { - text = "COURT_LANGUAGE_LABEL" - } - - blockoverride "component_button" - { - enabled = yes - text = "[CulturePillar.GetNameNoTooltip]" - tooltip = "COURT_LANGUAGE_OPEN_VIEW_TOOLTIP" - onclick = "[RoyalCourtWindow.CloseToLanguageWindow]" - onclick = "[ToggleGameViewData( 'language', CulturePillar.Self )]" - align = left - default_format = "#high" - margin_bottom = 5 - } - } - } - - ###### COURT AMENITIES ####### - widget = { - name = "amenities_tutorial_uses_this" - size = { 1000 200 } - parentanchor = center - - widget = { - name = "court_amenity_line_vertical" - parentanchor = top|hcenter - position = { 5 -30 } - size = { 15 46 } - - icon = { - texture = "gfx/interface/window_roco_grandeur/line_vertical_court_amenities.dds" - size = { 15 36 } - } - } - - widget = { - name = "court_amenity_fashion" - parentanchor = left|top - position = { -30 0 } - size = { 307 82} - - widget_court_amenity_left = { - datacontext = "[CourtAmenitiesWindow.GetCategory( 'court_fashion' )]" - } - } - - widget = { - name = "court_amenity_line_horizontal_left" - parentanchor = center - position = { -146 -50 } - size = { 46 15 } - - icon = { - texture = "gfx/interface/window_roco_grandeur/line_horizontal_court_amenities.dds" - size = { 48 15 } - } - } - - ### Label & cost ### - widget = { - parentanchor = top|hcenter - position = { 5 10 } - size = { 180 75 } - - background = { - margin = { 40 8 } - using = Background_Area - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - expand = { - layoutpolicy_vertical = expanding - } - - text_single = { - text = COURT_AMENITIES_LABEL - align = center - using = Font_Size_Medium - margin_top = -3 - } - - text_single = { - text = "COURT_AMENITIES_EXPENSES_MONTHLY_COST" - align = center - margin_bottom = 6 - tooltip = "[CourtAmenitiesWindow.GetMonthlyCostBreakdown]" - } - - text_single = { - text = "COURT_AMENITIES_EXPENSES_NEW_MONTHLY_COST" - align = center - margin_bottom = 8 - margin_top = -6 - default_format = "#high" - visible = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - - widget = { - name = "court_amenity_line_horizontal_right" - parentanchor = center - position = { 152 -50} - size = { 46 15 } - - icon = { - texture = "gfx/interface/window_roco_grandeur/line_horizontal_court_amenities.dds" - size = { 50 15 } - mirror = horizontal - } - } - - widget = { - name = "court_amenity_lodgings" - parentanchor = right - position = { -20 0 } - size = { 307 82} - - widget_court_amenity_right = { - datacontext = "[CourtAmenitiesWindow.GetCategory( 'court_lodging_standards' )]" - - blockoverride "amenity_icon_texture" - { - texture = "gfx/interface/window_roco_grandeur/icon_amenity_lodgings.dds" - } - } - } - - widget = { - name = "court_amenity_dining" - parentanchor = bottom|left - position = { 98 -20 } - size = { 307 82} - - allow_outside = yes - - widget_court_amenity_left = { - datacontext = "[CourtAmenitiesWindow.GetCategory( 'court_food_quality' )]" - - blockoverride "amenity_icon_texture" - { - texture = "gfx/interface/window_roco_grandeur/icon_amenity_dining.dds" - } - } - } - - widget = { - name = "court_amenity_lines_bottom" - parentanchor = center - position = { 5 -12} - size = { 42 78 } - - icon = { - parentanchor = center - widgetanchor = right - position = { -5 1 } - size = { 42 62 } - texture = "gfx/interface/window_roco_grandeur/line_corner_court_amenities.dds" - } - - icon = { - parentanchor = center - widgetanchor = left - position = { 5 1 } - size = { 42 62 } - mirror = horizontal - texture = "gfx/interface/window_roco_grandeur/line_corner_court_amenities.dds" - } - } - - widget = { - name = "court_amenity_servants" - parentanchor = bottom|right - position = { -148 -20 } - size = { 307 82} - - allow_outside = yes - - widget_court_amenity_right = { - datacontext = "[CourtAmenitiesWindow.GetCategory( 'court_servants' )]" - } - - blockoverride "amenity_icon_texture" - { - texture = "gfx/interface/window_roco_grandeur/icon_amenity_servants.dds" - } - } - } - - widget = { - visible = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - parentanchor = vcenter|right - size = { 350 210 } - position = { -20 0 } - - using = Animation_ShowHide_Quick - - flowcontainer = { - direction = vertical - parentanchor = right - spacing = 10 - margin_right = 17 - margin_top = 8 - margin_bottom = 14 - visible = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - - background = { - using = Background_Area_Dark - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - flowcontainer = { - icon = { - parentanchor = vcenter|left - texture = "gfx/interface/icons/symbols/icon_warning.dds" - size = { 30 30 } - } - - text_multi = { - name = "apply_warning" - text = "COURT_AMENITIES_APPLY_WARNING" - autoresize = yes - max_width = 260 - align = center - default_format = "#weak" - margin_left = 5 - fontsize = 14 - } - } - - ###### APPLY ####### - button_primary_big = { - text = "APPLY" - size = { 280 40 } - - onclick = "[CourtAmenitiesWindow.OpenApplySettingsConfirmation]" - enabled = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - - tooltip = "AMENITIES_APPLY_TOOLTIP" - } - - ###### RESET ####### - button_standard = { - text = RESET - size = { 280 30 } - - onclick = "[CourtAmenitiesWindow.ResetSettings]" - enabled = "[CourtAmenitiesWindow.HasChangedAnyAmenity]" - - tooltip = "AMENITIES_RESET_TOOLTIP" - } - } - } - } - - widget_court_amenity_changed = { - visible = "[CourtAmenitiesWindow.HasAppliedAmenityChanges]" - parentanchor = center - position = { 0 -450 } - } - } - } - - type widget_court_amenity_right = widget - { - size = { 368 98 } - - background = { - using = Background_Area_With_Header - - modify_texture = { - texture = "gfx/interface/window_roco_grandeur/mask_court_amenity_left.dds" - blend_mode = alphamultiply - } - } - - widget = { - name = "radio_button_bar" - size = { 320 98 } - - icon = { - name = "radio_button_bg" - texture = "gfx/interface/window_roco_grandeur/amenity_level_bg.dds" - size = { 256 54 } - position = { 56 27 } - } - - flowcontainer = { - margin_left = 58 - margin_top = 6 - - text_single = { - text = "[CourtAmenitiesWindow.GetCurrentSettingName( CourtAmenitiesCategoryItem.Self )]" - default_format = "#high" - align = left - margin_right = 5 - margin_top = -2 - } - - } - - text_single = { - name = "current_level" - # Account for levels being zero indexed - text = "[Add_int32( CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ), '(int32)1' )]" - align = center - widgetanchor = center - position = { 84 51 } - using = Font_Size_Medium - } - - widget = { - name = "progressbar_widget" - size = { 200 10 } - position = { 120 50 } - - progressbar_standard = { - name = "progressbar_court_amenities" - layoutpolicy_horizontal = expanding - size = { 150 10 } - min = 0 - max = 100 - value = 0 - } - } - - flowcontainer = { - datamodel = "[CourtAmenitiesCategoryItem.AccessPossibleSettings]" - spacing = 8 - margin_left = 110 - margin_top = 39 - - item = { - button_radio = { - datacontext = "[CourtAmenitiesSettingItem.GetSetting]" - size = { 30 30 } - - enabled = "[CourtAmenitiesWindow.CanApplyCourtAmenitySetting( CourtAmenitiesCategoryItem.Self, CourtAmenitiesSettingItem.Self )]" - onclick = "[CourtAmenitiesWindow.SelectSetting( CourtAmenitiesSettingItem.AccessSelf )]" - - frame = 1 - - button_radio = { - visible = "[EqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) ]" - frame = 2 - - alpha = 0.5 - alwaystransparent = yes - } - - icon = { - framesize = { 120 120 } - frame = 1 - size = { 70 70 } - position = { 1 1 } - parentanchor = center - visible = "[EqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) ]" - texture = "gfx/interface/window_roco_grandeur/radio_button_decoration.dds" - } - - button_radio = { - visible = "[And( CourtAmenitiesSettingItem.IsSelected, NotEqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) )]" - frame = 2 - alwaystransparent = yes - } - - tooltipwidget = { - court_amenity_setting_tooltip_contents = { - blockoverride "warning_description_text" - { - text = "[CourtAmenitiesWindow.GetSettingBlockerTooltip( CourtAmenitiesCategoryItem.Self, CourtAmenitiesSettingItem.Self )]" - } - } - } - using = tooltip_ne - } - } - } - } - - icon= { - name = "banner_icon" - framesize = { 160 160 } - size = { 94 94 } - position = { -18 0 } - - block "amenity_icon_texture" - { - texture = "gfx/interface/window_roco_grandeur/icon_amenity_fashion.dds" - } - } - } - - type widget_court_amenity_left = widget - { - size = { 368 98 } - - background = { - using = Background_Area_With_Header - - modify_texture = { - texture = "gfx/interface/window_roco_grandeur/mask_court_amenity_right.dds" - blend_mode = alphamultiply - } - } - - widget = { - name = "radio_button_bar" - size = { 320 98 } - - icon = { - name = "radio_button_bg" - texture = "gfx/interface/window_roco_grandeur/amenity_level_bg.dds" - size = { 256 54 } - position = { 56 27 } - } - - flowcontainer = { - parentanchor = right - margin_top = 6 - - text_single = { - text = "[CourtAmenitiesWindow.GetCurrentSettingName( CourtAmenitiesCategoryItem.Self )]" - default_format = "#high" - align = nobaseline - margin = { 5 0 } - } - - spacer = { - size = { 4 0 } - } - - - } - - text_single = { - name = "current_level" - # Account for levels being zero indexed - text = "[Add_int32( CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ), '(int32)1' )]" - align = center - widgetanchor = center - position = { 84 51 } - using = Font_Size_Medium - } - - widget = { - name = "progressbar_widget" - size = { 200 10 } - position = { 120 50 } - - progressbar_standard = { - name = "progressbar_court_amenities" - layoutpolicy_horizontal = expanding - size = { 150 10 } - min = 0 - max = 100 - value = 0 - } - } - - - flowcontainer = { - datamodel = "[CourtAmenitiesCategoryItem.AccessPossibleSettings]" - spacing = 8 - margin_left = 110 - margin_top = 39 - - item = { - button_radio = { - datacontext = "[CourtAmenitiesSettingItem.GetSetting]" - size = { 30 30} - - enabled = "[CourtAmenitiesWindow.CanApplyCourtAmenitySetting( CourtAmenitiesCategoryItem.Self, CourtAmenitiesSettingItem.Self )]" - onclick = "[CourtAmenitiesWindow.SelectSetting( CourtAmenitiesSettingItem.AccessSelf )]" - - frame = 1 - - button_radio = { - visible = "[EqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) ]" - frame = 2 - - alpha = 0.5 - alwaystransparent = yes - } - - icon = { - framesize = { 120 120 } - frame = 1 - size = { 70 70 } - position = { 1 1 } - parentanchor = center - visible = "[EqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) ]" - texture = "gfx/interface/window_roco_grandeur/radio_button_decoration.dds" - } - - button_radio = { - visible = "[And( CourtAmenitiesSettingItem.IsSelected, NotEqualTo_int32( CourtAmenitiesSettingItem.GetLevel, CourtAmenitiesWindow.GetCurrentSettingLevel( CourtAmenitiesCategoryItem.Self ) ) )]" - frame = 2 - alwaystransparent = yes - } - - tooltipwidget = { - court_amenity_setting_tooltip_contents = { - blockoverride "warning_description_text" - { - text = "[CourtAmenitiesWindow.GetSettingBlockerTooltip( CourtAmenitiesCategoryItem.Self, CourtAmenitiesSettingItem.Self )]" - } - } - } - using = tooltip_ne - } - } - } - } - - icon = { - name = "banner_icon" - framesize = { 160 160 } - frame = 1 - size = { 94 94 } - position = { 292 0 } - - block "amenity_icon_texture" - { - texture = "gfx/interface/window_roco_grandeur/icon_amenity_fashion.dds" - } - } - } - - type court_grandeur_level_header_tooltip = object_tooltip_pop_out - { - blockoverride "header_tt" - { - text_single = { - margin = { 0 8 } - text = COURT_GRANDEUR_CURRENT_LEVEL_TITLE - } - } - - blockoverride "concept_link" - { - text = "[court_grandeur_level|E]" - } - - blockoverride "description_text" - { - text = COURT_GRANDEUR_CURRENT_LEVEL_TOOLTIP - } - } - - type court_grandeur_level_tooltip = object_tooltip_pop_out - { - blockoverride "header_tt" - { - text_single = { - margin = { 0 8 } - text = COURT_GRANDEUR_LEVEL_TITLE - } - } - - blockoverride "concept_link" - { - text = "[court_grandeur_level|E]" - } - - blockoverride "description_text" - { - text = COURT_GRANDEUR_LEVEL_TOOLTIP - } - - blockoverride "extra_data" - { - vbox = { - layoutpolicy_horizontal = expanding - - cooltip_paragraph = { - visible = "[LessThan_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel )]" - - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_ACTIVE_LEVEL - } - - cooltip_paragraph = { - visible = "[EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel )]" - - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_CURRENT_LEVEL - } - - cooltip_paragraph = { - visible = "[GreaterThan_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel )]" - - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_INACTIVE_LEVEL - } - - cooltip_paragraph = { - visible = "[And( NotEqualTo_int32( CourtGrandeurData.GetCurrentLevelIgnoreGrace, CourtGrandeurData.GetCurrentLevel ), And( GreaterThan_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevelIgnoreGrace ), LessThanOrEqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetCurrentLevel ) ) )]" - - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_CURRENT_LEVEL_GRACE_PERIOD - } - } - } - - blockoverride "extra_data_after_description" - { - vbox = { - visible = "[EqualTo_int32( CourtGrandeurLevel.GetValue, CourtGrandeurData.GetMinimumExpectedLevel )]" - layoutpolicy_horizontal = expanding - - spacer = { - size = { 10 10 } - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_EXPECTED_LEVEL - default_format = "#bold" - } - - court_grandeur_expected_level_vbox = {} - } - } - } - - type court_grandeur_progress_bar_tooltip = object_tooltip_pop_out - { - blockoverride "header_tt" - { - text_single = { - margin = { 0 8 } - text = COURT_GRANDEUR_PROGRESS_TOOLTIP_HEADER - align = nobaseline - } - } - - blockoverride "concept_link" {} - - blockoverride "extra_data" - { - cooltip_paragraph = { - datacontext = "[CourtGrandeurWindow.GetBaseBreakdownTooltip]" - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_PROGRESS_TOOLTIP_BASELINE - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - cooltip_paragraph = { - datacontext = "[CourtGrandeurWindow.GetChangeTowardsBaseBreakdownTooltip]" - visible = "[NotEqualTo_CFixedPoint( CourtGrandeurData.GetChangeTowardsBase, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_PROGRESS_TOOLTIP_BASELINE_CHANGE - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - cooltip_paragraph = { - layoutpolicy_horizontal = expanding - visible = "[NotEqualTo_int32( CourtGrandeurData.GetDaysUntilAtBase, '(int32)0' )]" - text = COURT_GRANDEUR_PROGRESS_TOOLTIP_BASELINE_TIME - } - - spacer = { - size = { 10 10 } - } - - court_grandeur_expected_level_vbox = {} - } - } - - type court_grandeur_expectations_tooltip = object_tooltip_pop_out - { - # datacontext = "[CourtGrandeurData.Self]" - datacontext = "[GetCourtGrandeurDiffFromExpectedLevelModifier( CourtGrandeurData.GetDifferenceFromExpectedLevel )]" - blockoverride "header_tt" - { - text_single = { - margin = { 0 8 } - text = "[StaticModifier.GetName|T]" - } - } - - blockoverride "concept_link" - { - text = "[court_grandeur_expectations|E]" - } - - blockoverride "description_text" - { - text = COURT_GRANDEUR_EXPECTATIONS_TOOLTIP - } - } - - type flowcontainer_change_court_component = flowcontainer - { - direction = vertical - spacing = 10 - - flowcontainer = { - margin_left = 5 - - text_label_left = { - block "component_label" - { - raw_text = "#D REPLACE ME#!" - } - } - } - - container = { - button_standard = { - size = { 300 45 } - enabled = "[Character.IsLocalPlayer]" - - block "component_button" - { - raw_tooltip = "#D REPLACE ME#" - raw_text = "#D REPLACE ME#" - } - - button_change = { - visible = "[Character.IsLocalPlayer]" - parentanchor = right|vcenter - position = { -10 0 } - alwaystransparent = yes - size = { 25 25 } - } - } - - text_single = { - size = { 300 45 } - autoresize = no - margin = { 10 0 } - align = nobaseline - alwaystransparent = yes - - background = { - using = Background_Area_Dark - } - - block "component_text" - { - visible = no - } - } - } - } - - type widget_court_amenity_changed = widget { - - state = { - name = _show - next = "lingering_court_amenity_notification" - - scale = 1 - alpha = 1 - duration = 0.4 - bezier = { 0.5 0 1 0.5 } - - start_sound = { - soundeffect = "event:/DLC/EP1/SFX/UI/Notifications/court_grandeur_amenity_icon_show" - } - } - - state = { - name = "lingering_court_amenity_notification" - delay = 3 - on_finish = "[CourtAmenitiesWindow.NotifyAmenityWidgetHidden]" - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.15 - bezier = { 0.5 0 1 0.5 } - - alpha = 0 - scale = 0 - } - - vbox = { - set_parent_size_to_minimum = yes - spacing = 0 - - background = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - color = { 0.1 0.1 0.1 1 } - margin = { 0 10 } - #spritetype = CorneredStretched - #spriteborder = { 100 0 } - - using = Mask_Rough_Edges - } - - text_single = { - text = "COURT_AMENITIES_CHANGED_NOTIFICATION_HEADER" - default_format = "#high" - using = Font_Size_Big - margin = { 100 0 } - } - - spacer = { - size = { 0 7 } - } - - divider_light = { - layoutpolicy_horizontal = expanding - size = { 0 5 } - - alpha = 0.4 - - using = Color_Orange - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - spritetype = CorneredStretched - spriteborder = { 100 0 } - - blend_mode = alphamultiply - } - } - - spacer = { - size = { 0 7 } - } - - hbox = { - datamodel = "[CourtAmenitiesWindow.GetCategories]" - margin = { 300 0 } - - item = { - hbox = { - datamodel = "[CourtAmenitiesCategoryItem.GetPossibleSettings]" - - item = { - widget = { - visible = "[CourtAmenitiesSettingItem.WasSelected]" - size = { 280 256 } - - widget = { - parentanchor = center - size = { 256 256 } - - icon = { - parentanchor = center - size = { 120% 120% } - texture = "gfx/interface/colors/white.dds" - using = Color_Bright_Yellow - alpha = 0.15 - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.15 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 15 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon = { - name = "amenity_background" - size = { 100% 100% } - texture = "gfx/interface/icons/amenities/court_amenity_background.dds" - } - - icon = { - name = "info_popup_image" - size = { 100% 100% } - texture = "[CourtAmenitiesSettingItem.GetSetting.GetIcon]" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 -5 } - text = "[CourtAmenitiesSettingItem.GetSetting.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - } - } - } - } - } - } - } - } - - type icon_grandeur_level = icon { - framesize = { 120 120 } - size = { 60 60 } - - frame = "[Select_int32( Not(EqualTo_int32(CourtGrandeurData.GetCurrentLevel, CourtGrandeurLevel.GetValue)), Select_int32( LessThan_int32(CourtGrandeurData.GetCurrentLevel, CourtGrandeurLevel.GetValue), '(int32)1', '(int32)2' ), '(int32)3' )]" - } -} diff --git a/N3OW/gui/window_court_events.gui b/N3OW/gui/window_court_events.gui deleted file mode 100644 index aecfb871..00000000 --- a/N3OW/gui/window_court_events.gui +++ /dev/null @@ -1,219 +0,0 @@ -types RoyalCourtTypes -{ - # Requires an EventWindowViewInsert data context - type widget_court_event = widget { - allow_outside = yes - parentanchor = bottom|right - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - margin_top = 16 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - widget = { - size = { 642 22 } - - icon = { - name = "tile_frame_top" - texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_clean.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - texture_density = 2 - size = { 643 22 } - position = { -43 -22 } - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - ### Event Portraits ### - flowcontainer = { - name = "event_portraits" - datamodel = "[EventWindowData.GetInvolvedCharacters]" - parentanchor = bottom|left - widgetanchor = bottom|right - position = { -25 -60 } - direction = vertical - spacing = 10 - - item = { - portrait_head = { } - } - } - - ### Event Information ### - vbox = { - name = "court_event_data" # name referenced from code to fill in event data - margin_bottom = 40 - alwaystransparent = no - - hbox = { - margin_left = -15 - margin_bottom = -15 - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[EventWindowData.GetTitle]" - parentanchor = center - align = left - position = { -10 -10 } - - } - - blockoverride "button_close" - { - visible = no - } - } - } - - vbox = { - name = "description_and_options" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 30 - margin_top = 20 - - vbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - - state = { - trigger_on_create = yes - name = appear_test - delay = 0.8 - using = Animation_Curve_Default - alpha = 1 - duration = 0.6 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area - - margin_left = 15 - } - - scrollbox = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - - blockoverride "alpha"{ - alpha = 0.6 - } - } - - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_content" - { - text_multi = { - name = "description" - max_width = 510 - autoresize = yes - margin = { 10 20 } - text = "[EventWindowData.GetDescription]" - fontsize = 16 - } - } - } - } - - - vbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - margin_bottom = 15 - margin_top = 15 - - hbox = { - spacing = 5 - - hbox = { - name = "dynamic_birth_name" - margin = { 5 0 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[EventWindowData.ShouldShowTimeoutInfo]" - margin_bottom = 10 - margin_top = -10 - - text_single = { - text = "COURT_EVENT_TIME_WARNING" - default_format = "#weak" - } - } - - fixedgridbox = { - name = "option_grid" - addcolumn = 510 - addrow = 42 - datamodel = "[EventWindowData.GetOptions]" - - item = { - button_eventoption = { - blockoverride "onmousehierarchy_callbacks" { - onmousehierarchyenter = "[EventWindowViewInsert.OnMouseEnterOption(EventOption.Self)]" - onmousehierarchyleave = "[EventWindowViewInsert.OnMouseLeaveOption]" - } - } - } - } - } - } - - hbox = { - name = "debug_event_info" - visible = "[InDebugMode]" - using = Event_Window_Debug_Info - - blockoverride "event_reset_onclick" - { - onclick = "[EventWindowViewInsert.Reload]" - } - } - } - } -} diff --git a/N3OW/gui/window_court_position_appoint.gui b/N3OW/gui/window_court_position_appoint.gui deleted file mode 100644 index 9f4fb975..00000000 --- a/N3OW/gui/window_court_position_appoint.gui +++ /dev/null @@ -1,869 +0,0 @@ - -############################################################# -################# APPOINT COURT POSITONS #################### -############################################################# - - -window = { - name = "appoint_court_position_view" - widgetid = "appoint_court_position_view" - parentanchor = "top|right" - position = { -610 80 } - size = { 680 920 } - movable = no - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - layoutpolicy_vertical = expanding - datacontext = "[AppointCourtPositionView.GetCourtOwner]" - - #Header for appointing - header_pattern = { - layoutpolicy_horizontal = expanding - visible = "[AppointCourtPositionView.IsAppointingNewPosition]" - - blockoverride "header_text" - { - text = APPOINT_COURT_POSITION_VIEW_select_character_header - } - - blockoverride "button_close" - { - onclick = "[AppointCourtPositionView.Close]" - } - } - - #Header for replacing - header_pattern = { - layoutpolicy_horizontal = expanding - visible = "[AppointCourtPositionView.IsReplacingPosition]" - - blockoverride "header_text" - { - text = APPOINT_COURT_POSITION_VIEW_replace_character_header - } - - blockoverride "button_close" - { - onclick = "[AppointCourtPositionView.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = fixed - - vbox = { - datacontext = "[AppointCourtPositionView.GetCourtPositionType]" - visible = "[AppointCourtPositionView.IsAppointingNewPosition]" - - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 20 2 } - margin_bottom = 8 - - background = { - using = Background_Area_With_Header_Dark - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - default_format = "#high" - text = "[AppointCourtPositionView.GetPositionNameNoTooltip]" - } - - text_single = { - align = right - text = "APPOINT_COURT_POSITION_VIEW_EMPLOYER_SALARY" - tooltip = "[CourtPositionType.GetEmployerSalaryBreakdownFor( Character.Self )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - text_multi = { - default_format = "#F" - autoresize = yes - max_width = 550 - min_width = 550 - text = "[CourtPositionType.GetDescription]" - } - - expand = {} - } - } - - hbox = { - datacontext = "[AppointCourtPositionView.GetCourtPositionToReplace]" - datacontext = "[CourtPosition.GetEmployee]" - visible = "[AppointCourtPositionView.IsReplacingPosition]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 20 10 } - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - portrait_head = { } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "APPOINT_COURT_POSITION_VIEW_REPLACE_CURRENTLY_APPOINTED" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - default_format = "#high" - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - visible = "[Character.HasRelationTo( GetPlayer )]" - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - button_standard = { - size = { 130 33 } - - text = "APPOINT_COURT_POSITION_VIEW_REPLACE_FIRE_CURRENT_HOLDER" - onclick = "[AppointCourtPositionView.RevokeSelectedPosition]" - tooltip = COURT_POSITION_REVOKE - } - } - - expand = {} - - caravan_master_travel_info = { - margin_top = 10 - visible = "[AppointCourtPositionView.GetCourtPositionType.IsTravelRelated]" - } - - vbox = { - minimumsize = { 200 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "COURT_POSITION_aptitude_description_position" - max_width = 200 - align = right - - tooltipwidget = { - court_position_aptitude_breakdown_tooltip = { - datacontext = "[CourtPosition.GetAptitudeTooltip]" - - blockoverride "header_text" { - text = COURT_POSITION_aptitude_description_position - } - - blockoverride "modifier_list" { - text = "[CourtPosition.GetEmployerBonuses]" - } - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "APPOINT_COURT_POSITION_VIEW_REPLACE_CURRENT_SALARY" - tooltip = "[CourtPosition.GetEmployerSalaryBreakdownTooltip]" - max_width = 200 - align = right - } - } - } - } - } - } - - #Character List - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### fades in correctly but does something wierd on hide, investigate ### - #using = Animation_ShowHide_Quick - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[AppointCourtPositionView.GetCourt]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "eligible_courtiers_sort_options" - } - } - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "special_character" { - hbox = { - visible = "[AppointCourtPositionView.IsReplacingPosition]" - } - - } - - blockoverride "container_implementation" { - vbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - item = { - court_position_candidate_list_item = { - datacontext = "[CharacterListItem.GetCharacter]" - - block "item_size" { - size = { 420 110 } - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - hbox_liege_modifiers = { - datacontext = "[AppointCourtPositionView.GetCourtPositionType]" - visible = "[AppointCourtPositionView.IsAppointingNewPosition]" - } - - hbox_liege_modifiers = { - datacontext = "[AppointCourtPositionView.GetCourtPositionToReplace.GetPositionType]" - visible = "[AppointCourtPositionView.IsReplacingPosition]" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 10 } - - datacontext = "[AppointCourtPositionView.GetCourtPositionType]" - - expand = {} - - hbox = { - spacing = 5 - min_width = 200 - - expand = {} - - ### POWERFUL AGENT WARNING ### - icon = { - name = "powerful_agent_warning" - visible = "[CourtPositionType.IsPowerfulAgent]" - size = { 32 32 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - tooltip = "COURT_POSITION_POWERFUL_AGENT" - using = tooltip_ne - } - - warning_icon = { - size = { 32 32 } - visible = "[And(AppointCourtPositionView.HasSelectedCharacter, AppointCourtPositionView.IsReplacingPosition)]" - tooltip = APPOINT_COURT_POSITION_VIEW_REPLACE_CONSEQUENCE_FOR_REVOKE_TOOLTIP - } - - alert_icon = { - size = { 32 32 } - visible = "[And(AppointCourtPositionView.HasSelectedCharacter, AppointCourtPositionView.IsAppointingNewPosition )]" - tooltip = APPOINT_COURT_POSITION_VIEW_REVOKE_CONSEQUENCE_FOR_APPOINTMENT_TOOLTIP - } - } - - button_primary = { - onclick = "[AppointCourtPositionView.AppointSelectedCourtier]" - enabled = "[AppointCourtPositionView.HasSelectedCharacter]" - text = APPOINT_COURT_POSITION_VIEW_appoint_button - } - - hbox = { - min_width = 200 - - button_round = { - name = "automate_position" - size = { 40 40 } - - button_edit_automation = { - parentanchor = center - position = { -1 0 } - size = { 24 24 } - - enabled = "[IsValidCommand( CourtPositionType.ToggleAutomationCmd )]" - onclick = "[PostCommand( CourtPositionType.ToggleAutomationCmd )]" - - tooltip = "COURT_POSITION_TOGGLE_AUTOMATION" - using = tooltip_se - } - } - - expand = {} - } - - expand = {} - } - } - - window_character_filter = { - name = "appoint_court_character_filter_window" - datacontext = "[AppointCourtPositionView.GetCourt]" - - blockoverride "editbox_properties" - { - name = "eligible_courtiers_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types AppointCourtPositionTypes -{ - - type hbox_liege_modifiers = vbox { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - margin_bottom = 15 - spacing = 10 - - background = { - using = Background_Area - } - - vbox = { - visible = "[Not(AppointCourtPositionView.HasSelectedCharacter)]" - spacing = 5 - - text_single = { - text = APPOINT_COURT_POSITION_VIEW_NO_SELECTED_COURTIER - using = Font_Size_Medium - default_format = "#I" - margin = { 5 5 } - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 10 10 } - margin_top = 5 - - background = { - using = Background_Area_Light - margin_top = 2 - alpha = 0.6 - } - - background = { - using = Background_Frame - margin_top = 2 - margin_bottom = 2 - margin_right = -3 - } - - text_multi = { - layoutpolicy_vertical = expanding - autoresize = yes - margin = { 8 4 } - min_width = 440 - max_width = 440 - text = "[CourtPositionType.GetEmployerModifierDescription]" - } - - text_multi = { - visible = "[CourtPositionType.HasLiegeCourtModifiers]" - layoutpolicy_vertical = expanding - autoresize = yes - margin = { 8 4 } - min_width = 440 - max_width = 440 - text = "COURT_POSITION_TYPE_EMPLOYER_COURT_EFFECTS" - } - } - } - - hbox = { - datacontext = "[AppointCourtPositionView.GetSelectedCharacter]" - visible = "[AppointCourtPositionView.HasSelectedCharacter]" - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - - vbox = { - margin = { 10 10 } - margin_top = 5 - - background = { - using = Background_Area_Light - margin_top = 2 - alpha = 0.6 - } - - background = { - using = Background_Frame - margin_top = 2 - margin_bottom = 2 - margin_right = -3 - } - - text_single = { - layoutpolicy_vertical = expanding - min_width = 440 - max_width = 440 - margin = { 8 4 } - align = right - visible = "[Not(EqualTo_int32(AppointCourtPositionView.GetOpinionBonusForSelectedEmployee, '(int32)0'))]" - text = APPOINT_COURT_POSITION_VIEW_OPINION_BONUS - } - - text_single = { - name = "aptitude" - align = left|nobaseline - min_width = 440 - max_width = 440 - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - margin = {8 8} - - text = "APPOINT_COURT_POSITION_VIEW_APTITUDE" - - tooltipwidget = { - court_position_aptitude_breakdown_tooltip = { - datacontext = "[AppointCourtPositionView.GetAptitudeTooltip(Character.Self)]" - - blockoverride "header_text" { - text = APPOINT_COURT_POSITION_VIEW_APTITUDE - } - - blockoverride "modifier_list" { - - } - } - } - } - - text_single = { - datacontext = "[AppointCourtPositionView.GetSelectedCharacter]" - visible = "[CourtPositionType.IsTravelRelated]" - layoutpolicy_vertical = expanding - autoresize = yes - margin = { 8 4 } - min_width = 440 - max_width = 440 - text = "APPOINT_COURT_POSITION_VIEW_salary_per_travel" - tooltip = "[Character.GetTravelLeaderCostBreakdown]" - } - - text_multi = { - layoutpolicy_vertical = expanding - autoresize = yes - margin = { 8 4 } - min_width = 440 - max_width = 440 - text = "[AppointCourtPositionView.GetLiegeModifierForSelectedEmployee]" - } - - text_multi = { - layoutpolicy_vertical = expanding - visible = "[CourtPositionType.HasLiegeCourtModifiers]" - align = left - autoresize = yes - margin = { 8 4 } - min_width = 440 - max_width = 440 - text = COURT_POSITION_APPOINT_EMPLOYER_COURT_EFFECTS - } - } - } - } - - type court_position_candidate_list_item = widget { - size = { 10 110 } - - block "divider" { - divider = { - parentanchor = bottom|hcenter - size = { 100% 3 } - } - } - - block "widget" {} - - hbox = { - margin = { 0 5 } - spacing = 15 - - portrait_head_small = { - blockoverride "portrait_button" { - text_single = { - name = "tutorial_highlight_character_view_opinion" - visible = "[AIWatchWindowsEnabled]" - max_width = 100 - margin = { 3 0 } - using = tooltip_es - default_format = "#D" - raw_text = "AI Score: [AppointCourtPositionView.GetAICandidateScoreFor(Character.Self)|0]" - } - } - } - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - - framesize = { 252 80 } - spriteType = Corneredtiled - spriteborder = { 20 20 } - - down = "[AppointCourtPositionView.IsItemSelected(CharacterListItem.Self)]" - - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - margin = { 10 0 } - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - - block "button" {} - - character_list_arrow = { - name = "character_list_arrow" - } - - # Selected icon - icon = { - visible = "[AppointCourtPositionView.IsItemSelected(CharacterListItem.Self)]" - parentanchor = left|vcenter - position = { -20 0 } - size = { 20 20 } - texture = "gfx/interface/buttons/button_entry_characterlist_arrow.dds" - } - - block "overlay" { - using = default_character_list_overlay - } - - block "button_content" - { - hbox = { - - - # Name, Relation, Age and Aptitude - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Name, Relation, Age - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - # Name - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip]" - } - - # Relation and Age - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - - # Personality - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "[Character.GetAIPersonality]" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - } - } - - # Aptitude - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - margin_bottom = 7 - - text_single = { - text = APPOINT_COURT_POSITION_VIEW_APTITUDE - - tooltipwidget = { - court_position_aptitude_breakdown_tooltip = { - datacontext = "[AppointCourtPositionView.GetAptitudeTooltip(Character.Self)]" - - blockoverride "header_text" { - text = APPOINT_COURT_POSITION_VIEW_APTITUDE - } - - blockoverride "modifier_list" { - text = "[AppointCourtPositionView.GetLiegeModifierForPositionType(Character.Self)]" - } - } - } - } - - expand = {} - - caravan_master_travel_info = { - visible = "[AppointCourtPositionView.GetCourtPositionType.IsTravelRelated]" - } - - } - - expand = {} - } - - expand = {} - - # SKills and Traits - vbox = { - minimumsize = { 200 0 } - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_vertical = expanding - margin_top = 5 - margin_bottom = 5 - margin_right = 5 - - # Skills - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - margin_right = 5 - - item = { - widget_skill_item_no_icon = {} - } - } - - expand = {} - - # Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - addcolumn = 30 - addrow = 30 - datamodel_wrap = 7 - maxverticalslots = 2 - - block "horizontal_slots" - { - maxhorizontalslots = 6 - } - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - } - } - } - } - } -} - -types CourtPosition -{ - type caravan_master_travel_info = hbox { - spacing = 8 - - hbox = { - spacing = 3 - - tooltip = "[Character.GetTravelSpeedAptitudeBreakdown]" - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/travel/travel_speed_icon.dds" - } - - text_single = { - name = "value" - margin_bottom = 4 - align = center - text = "[Max_CFixedPoint(Character.GetTravelSpeedAptitude, '(CFixedPoint)0' )|0]" - } - } - - hbox = { - spacing = 3 - - tooltip = "[Character.GetTravelSafetyAptitudeBreakdown]" - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/travel/travel_safety_icon.dds" - } - - text_single = { - name = "value" - margin_bottom = 4 - align = center - text = "[Max_CFixedPoint(Character.GetTravelSafetyAptitude, '(CFixedPoint)0' )|0]" - } - } - } -} diff --git a/N3OW/gui/window_court_positions.gui b/N3OW/gui/window_court_positions.gui deleted file mode 100644 index 5551734e..00000000 --- a/N3OW/gui/window_court_positions.gui +++ /dev/null @@ -1,1130 +0,0 @@ -types CourtPositionTypes -{ - type court_position_task_icon_tooltip_widget = widget - { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - alwaystransparent = no - size = { 100% 100% } - using = DefaultTooltipBackground - } - - vbox = { - set_parent_size_to_minimum = yes - minimumsize = { 280 0 } - maximumsize = { 400 0 } - - margin_top = 5 - margin_bottom = 20 - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 10 } - spacing = 10 - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "FancyHeader" - layoutpolicy_horizontal = expanding - alwaystransparent = no - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - icon = { - name = "tooltip_icon" - size = { 60 60 } - texture = "[CourtPositionTaskType.GetIcon]" - } - - text_multi = { - name = "task_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 5 } - - text = "COURT_POSITION_TASK_HEADER" - autoresize = yes - align = left|nobaseline - fontsize_min = 14 - max_width = 380 - using = Font_Size_Medium - } - } - } - } - - expand = {} - } - - ### TOOLTIP FILLED/EMPLOYED - vbox = { - visible = "[CourtPosition.IsValid]" - layoutpolicy_horizontal = expanding - - margin = { 20 0 } - spacing = 5 - - text_multi = { - text = "[GetCommandDesc( CourtPosition.ToggleTaskCmd( CourtPositionTaskType.Self ) )]" - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[CourtPositionTaskType.HasEmployerCourtModifiers]" - - text = COURT_POSITION_TASK_EMPLOYER_COURT_EFFECTS - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetEmployerModifierDescription( CourtPosition.Self ) ) )]" - text = COURT_POSITION_TASK_EMPLOYER_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[CourtPositionTaskType.HasEmployerCourtModifiers]" - using = court_position_tooltip_text_format - - text = COURT_POSITION_TASK_EMPLOYER_COURT_EFFECTS - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetOnStartEffectDesc( CourtPosition.Self ) ) )]" - text = COURT_POSITION_TASK_START_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetEmployeeModifierDescription ) )]" - text = COURT_POSITION_TASK_EMPLOYEE_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetOnEndEffectDesc( CourtPosition.Self ) ) )]" - text = COURT_POSITION_TASK_END_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - text = COURT_POSITION_TASK_COST - - using = court_position_tooltip_text_format - } - - text_multi = { - text = "[CourtPositionTaskType.GetDescription]" - default_format = "#F" - - using = court_position_tooltip_text_format - } - - block "click_to_activate" - { - text_multi = { - visible = "[IsValidCommand( CourtPosition.ToggleTaskCmd( CourtPositionTaskType.Self ) )]" - - text = "COURT_POSITION_TASK_CLICK_TT" - default_format = "#I" - - using = court_position_tooltip_text_format - } - } - } - - ### TOOLTIP EMPTY/UNEMPLOYED - vbox = { - visible = "[Not( CourtPosition.IsValid )]" - layoutpolicy_horizontal = expanding - - margin = { 20 0 } - spacing = 5 - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetEmployerModifierGenericDescription ) )]" - text = COURT_POSITION_TASK_EMPLOYER_GENERIC_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[CourtPositionTaskType.HasEmployerCourtModifiers]" - text = COURT_POSITION_TASK_EMPLOYER_COURT_GENERIC_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetOnStartEffectGenericDesc() ) )]" - text = COURT_POSITION_TASK_START_GENERIC_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - block "employee_modifier_description" { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetEmployeeModifierDescription ) )]" - text = COURT_POSITION_TASK_EMPLOYEE_EFFECTS - } - - using = court_position_tooltip_text_format - } - - text_multi = { - visible = "[Not( StringIsEmpty( CourtPositionTaskType.GetOnEndEffectGenericDesc() ) )]" - text = COURT_POSITION_TASK_END_GENERIC_EFFECTS - - using = court_position_tooltip_text_format - } - - text_multi = { - text = COURT_POSITION_TASK_GENERIC_COST - - using = court_position_tooltip_text_format - } - - text_multi = { - text = "[CourtPositionTaskType.GetDescription]" - default_format = "#F" - - using = court_position_tooltip_text_format - } - } - } - } - - type widget_court_position_task_view = widget { - ### VIEW - TASK OUTER CIRCLE ### - icon = { - size = { 40 40 } - parentanchor = center - - enabled = "[IsValidCommand( CourtPosition.ToggleTaskCmd( CourtPositionTaskType.Self ) )]" - - texture = "gfx/interface/buttons/button_round_frame.dds" - - background = { - texture = "gfx/interface/buttons/button_round_bg.dds" - using = Color_Button_Background - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_texture.dds" - blend_mode = overlay - } - } - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - spritetype = corneredtiled - frame = 1 - } - - ### VIEW - TASK INNER ICON ### - icon = { - size = { 84% 84% } - parentanchor = center - - texture = "[CourtPositionTaskType.GetIcon]" - } - - tooltipwidget = { - court_position_task_icon_tooltip_widget = {} - } - using = tooltip_sw - } - } - - type widget_court_position_task = widget { - ### ACTIVE TASK GLOW ### - icon = { - visible = "[CourtPosition.IsActiveTask( CourtPositionTaskType.Self )]" - size = { 48 48 } - parentanchor = center - - texture = "gfx/particles/halo.dds" - color = { 1 0.85 0.6 1 } - } - - ### TASK OUTER CIRCLE ### - button_round = { - size = { 40 40 } - parentanchor = center - - upframe = 1 - downframe = 1 - uphoverframe = 2 - disableframe = 6 - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - enabled = "[IsValidCommand( CourtPosition.ToggleTaskCmd( CourtPositionTaskType.Self ) )]" - - using = tooltip_sw - - tooltipwidget = { - court_position_task_icon_tooltip_widget = {} - } - - ### TASK INNER ICON ### - button_normal = { - size = { 84% 84% } - parentanchor = center - - texture = "[CourtPositionTaskType.GetIcon]" - - effectname = "NoHighlight" - gfxtype = togglepushbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - - block "on_click" - { - } - onclick = "[PostCommand( CourtPosition.ToggleTaskCmd( CourtPositionTaskType.Self ) )]" - } - } - } - - type vbox_court_position_aptitude = vbox { - minimumsize = { 80 0 } - margin_left = 2 - margin_right = 8 - margin_bottom = 4 - margin_top = 2 - - background = { - using = Background_Area_Dark - alpha = 0.5 - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { -20 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - max_width = 100 - - text = "[CourtPosition.GetAptitudeText|V]" - align = nobaseline - - tooltipwidget = { - court_position_aptitude_breakdown_tooltip = { - datacontext = "[CourtPosition.GetAptitudeTooltip]" - - blockoverride "header_text" { - text = "COURT_POSITION_aptitude_description_position" - } - - blockoverride "modifier_list" { - text = "[CourtPosition.GetEmployerBonuses]" - } - } - } - } - - text_single = { - max_width = 100 - - text = "COURT_POSITIONS_WINDOW_EMPLOYER_SALARY_SHORT" - align = nobaseline - tooltip = "[CourtPosition.GetEmployerSalaryBreakdownTooltip]" - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - max_width = 100 - - text = "COURT_POSITIONS_WINDOW_POSITION_AI_SHORT" - default_format= "#D" - } - } - - type widget_court_position_item = widget { - datacontext = "[CourtPositionItem.GetType]" - datacontext = "[CourtPositionItem.GetCourtOwner]" - - scissor = yes - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Toggle( CourtPositionItem.GetItemId )]" - on_finish = "[GetVariableSystem.Toggle( CourtPositionItem.GetItemId )]" - } - - state = { - name = _mouse_hierarchy_leave - on_finish = "[GetVariableSystem.Clear( CourtPositionItem.GetItemId )]" - } - - proportional_icon = { - size = { 99% 99% } - parentanchor = center - using = Mask_Rough_Edges - texture = "[CourtPositionItem.GetBackground]" - alpha = "[CourtPositionsWindow.GetCardBackgroundAlpha]" - } - proportional_icon = { - size = { 99% 99% } - parentanchor = center - using = Mask_Rough_Edges - texture = "[CourtPositionItem.GetBackground]" - alpha = 0.15 - enabled = no - } - - ### ITEM CONTENTS ### - vbox = { - datacontext = "[CourtPositionItem.GetPosition]" - margin = { 3 0 } - margin_top = 1 - margin_bottom = 4 - layoutpolicy_vertical = expanding - - ### EMPLOYEE PORTRAIT ### - widget = { - datacontext = "[CourtPosition.GetEmployee]" - widgetanchor = top - layoutpolicy_vertical = expanding - - allow_outside = yes - scissor = yes - - widget = { - visible = "[Character.IsValid]" - position = { -52 46 } - size = { 190 155 } - - using = Portrait_Background_Glows - } - - ### POSITION HIRED ### - portrait_button = { - visible = "[Character.IsValid]" - position = { -40 28 } - size = { 180 195 } - - allow_outside = yes - using = portrait_base - - portrait_texture = "[CourtPositionItem.GetPortraitAnimation( 'environment_council', 'camera_council', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - - ### FIRE/REPLACE BUTTONS ### - widget = { - visible = "[GetVariableSystem.Exists( CourtPositionItem.GetItemId )]" - visible_at_creation = no - position = { -12 0 } - - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - button_round = { - name = "fire_courtier" - size = { 30 30 } - position = { 58 28 } - - button_cancel = { - size = { 24 24 } - parentanchor = center - - onclick = "[CourtPosition.OpenRevokeConfirmation]" - tooltip = "COURT_POSITION_REVOKE" - using = tooltip_ne - } - } - - button_round = { - name = "replace_courtier" - size = { 30 30 } - position = { 58 62 } - - button_change = { - size = { 24 24 } - parentanchor = center - - onclick = "[CourtPosition.OpenReplaceWindow]" - tooltip = "COURT_POSITION_REPLACE" - using = tooltip_ne - } - } - - button_round = { - name = "automate_position" - size = { 30 30 } - position = { 58 96 } - - button_edit_automation = { - size = { 24 24 } - parentanchor = center - - enabled = "[IsValidCommand( CourtPositionType.ToggleAutomationCmd )]" - onclick = "[PostCommand( CourtPositionType.ToggleAutomationCmd )]" - - tooltip = "COURT_POSITION_TOGGLE_AUTOMATION" - using = tooltip_se - } - } - } - - ### FILLED - DEBUG AI SCORE ### - text_label_center = { - name = "ai_score" - datacontext = "[CourtPosition.GetEmployee]" - visible = "[AIWatchWindowsEnabled]" - position = { 34 34 } - parentanchor = center - - text = "[CourtPosition.GetAICandidateScore]" - default_format = "#D" - align = nobaseline - } - } - - ### VACANT/EMPTY POSITION ### - portrait_button = { - visible = "[Not( Character.IsValid )]" - enabled = "[And( CourtPositionItem.IsAllowed, CourtPositionItem.IsEnabled )]" - position = { -4 20 } - size = { 180 190 } - - allow_outside = yes - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait('environment_council', 'camera_council', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - } - - ### VACANT/EMPTY POSITION - HIRE BUTTON ### - button = { - visible = "[Not( Character.IsValid )]" - enabled = "[And( CourtPositionItem.IsAllowed, CourtPositionItem.IsEnabled )]" - position = { 3 -20 } - size = { 168 220 } - - allow_outside = yes - gfxtype = framedbuttongfx - effectname = "NoHighlight" - - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - ### EMPTY - DEBUG AI SCORE ### - text_label_center = { - name = "ai_score" - datacontext = "[CourtPositionItem.GetCourtOwner]" - visible = "[AIWatchWindowsEnabled]" - position = { 0 10 } - parentanchor = center - - text = "[CourtPositionType.GetBestCandidateAiScore( Character.Self )]" - default_format = "#D" - align = nobaseline - } - - text_label_center = { - visible = "[AIWatchWindowsEnabled]" - - position = { 0 20 } - parentanchor = center - - text = "COURT_POSITIONS_WINDOW_POSITION_AI_SHORT" - default_format= "#D" - align = nobaseline - } - - button_icon = { - parentanchor = center - size = { 40 40 } - position = { 0 65 } - - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - - onclick = "[CourtPositionType.OpenAppointWindow( CourtPositionsWindow.CourtOwner.Self )]" - tooltip = "[CourtPositionItem.GetRequirementsTooltip]" - } - - ### CONTENT NEEDS TO BE BELOW PORTRAITS ### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### HEADER | ICON, POSITION & CHARACTER NAME ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 4 } - minimumsize = { -1 50 } - - background = { - using = Background_Area_Characterlist - } - background = { - using = GenericObjectCardHeaderBackground - using = court_position_header_background_colors - } - - tooltipwidget = { - court_position_type_tooltip = { - blockoverride "title_text_inner" { - datacontext = "[GetPlayer]" - text = "[Select_CString( CourtPosition.IsValid, CourtPosition.GetNameNoTooltip, CourtPositionType.CalcTriggeredNameNoTooltip( Character.Self ) )]" - } - blockoverride "description_text_inner" { - datacontext = "[GetPlayer]" - text = "[Select_CString( CourtPosition.IsValid, CourtPosition.GetDescription, CourtPositionType.CalcTriggeredDescription( Character.Self ) )]" - } - } - } - using = tooltip_ws - - #### ICON #### - vbox = { - margin = { 5 0 } - layoutpolicy_vertical = expanding - - icon = { - texture = "[CourtPositionType.GetIcon]" - size = { 32 32 } - - #### AUTOMATION ICON #### - widget = { - position = { 0 0 } - visible = "[Not( CourtPositionType.HasAutomationNone( GetPlayer ) )]" - - allow_outside = yes - - button_round = { - parentanchor = top|left - onclick = "[PostCommand( CourtPositionType.DisableAutomationCmd )]" - - size = { 20 20 } - position = { 16 16 } - - tooltip = "COURT_POSITION_AUTOMATION_DISABLE_TOOLTIP" - - icon_flat_standard_gold = { - size = { 16 16 } - texture = "gfx/interface/colors/black.dds" - parentanchor = center - - alpha = 0.8 - - modify_texture = { - name = "spin" - blend_mode = alphaMultiply - texture = "gfx/interface/icons/flat_icons/army_automation.dds" - rotate_uv = 0 - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - trigger_on_create = yes - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - } - } - } - } - } - - vbox = { - max_width = 40 - - ### POSITION NAME ### - text_single = { - layoutpolicy_horizontal = expanding - max_width = 126 - - text = "[CourtPositionItem.GetNameNoTooltip]" - default_format = "#high" - align = nobaseline - } - - ### EMPLOYEE NAME ### - hbox = { - visible = "[CourtPositionItem.IsEmployed]" - layoutpolicy_horizontal = expanding - - text_single = { - datacontext = "[CourtPosition.GetEmployee]" - layoutpolicy_horizontal = expanding - max_width = 126 - - text = "[Character.GetShortUINameNoTooltipNoFormat]" - default_format = "#medium" - align = nobaseline - } - } - } - expand = {} - } - - #### APTITUDE & SALARY #### - hbox = { - margin_right = 7 - margin_top = 5 - layoutpolicy_horizontal = expanding - - expand = {} - - vbox_court_position_aptitude = { - visible = "[Character.IsValid]" - } - } - - expand = {} - - #### TASK BUTTONS #### - vbox = { - layoutpolicy_horizontal = expanding - hbox = { - visible = "[GreaterThan_int32( GetDataModelSize( CourtPositionItem.GetTasks ), '(int32)3')]" - layoutpolicy_horizontal = expanding - - ### OPINION OF LIEGE ### - hbox = { - visible = "[And(Character.IsValid, Not(Character.ShouldShowDreadEffectIcon))]" - margin_left = 15 - - portrait_opinion_small = {} - } - hbox = { - visible = "[And(Character.IsValid, Character.ShouldShowDreadEffectIcon)]" - margin_left = 3 - - portrait_opinion_small = {} - } - ### POWERFUL AGENT WARNING ### - hbox = { - visible = "[And( Not( Character.IsValid ), CourtPositionType.IsPowerfulAgent )]" - margin_left = 10 - margin_bottom = "[Select_int32( IsDataModelEmpty( CourtPositionItem.GetTasks ), '(int32)5', '(int32)0' )]" - - icon = { - name = "powerful_agent_warning" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - tooltip = "COURT_POSITION_POWERFUL_AGENT" - using = tooltip_ne - } - expand = {} - } - expand = {} - } - hbox = { - # OFFSET FROM BOTTOM - margin_bottom = 3 - layoutpolicy_horizontal = expanding - - # TASK BUTTON CONTENT - hbox = { - margin_top = 5 - margin_right = 10 - margin_bottom = 3 - layoutpolicy_horizontal = expanding - - background = { - visible = "[Not( IsDataModelEmpty( CourtPositionItem.GetTasks ) )]" - using = Background_Area_Dark - alpha = 0.7 - } - - hbox = { - #layoutpolicy_horizontal = expanding - visible = "[Not( GreaterThan_int32( GetDataModelSize( CourtPositionItem.GetTasks ), '(int32)3') )]" - - ### OPINION OF LIEGE ### - hbox = { - visible = "[And(Character.IsValid, Not(Character.ShouldShowDreadEffectIcon))]" - margin_left = 15 - layoutpolicy_horizontal = expanding - - portrait_opinion_small = {} - } - hbox = { - visible = "[And(Character.IsValid, Character.ShouldShowDreadEffectIcon)]" - margin_left = 3 - layoutpolicy_horizontal = expanding - - portrait_opinion_small = {} - } - - ### POWERFUL AGENT WARNING ### - hbox = { - visible = "[And( Not( Character.IsValid ), CourtPositionType.IsPowerfulAgent )]" - margin_left = 10 - margin_bottom = "[Select_int32( IsDataModelEmpty( CourtPositionItem.GetTasks ), '(int32)5', '(int32)0' )]" - - icon = { - name = "powerful_agent_warning" - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - tooltip = "COURT_POSITION_POWERFUL_AGENT" - using = tooltip_ne - } - expand = {} - } - expand = {} - } - - expand = {} - - fixedgridbox = { - name = "task_items" - - addcolumn = 38 - addrow = 38 - setitemsizefromcell = yes - datamodel_wrap = 4 - flipdirection = yes - layoutanchor = bottomleft - - datamodel = "[CourtPositionItem.GetTasks]" - item = { - widget_court_position_task = { - visible = "[CourtPositionTaskItem.IsShown]" - datacontext = "[CourtPositionTaskItem.GetTask]" - datacontext = "[CourtPositionTaskItem.GetCourtPosition]" - } - } - } - } - } - } - } - } - } - - ### CARD FRAME ### - widget = { - size = { 100% 97% } - - background = { - using = Background_Frame - margin_top = 2 - margin_bottom = 2 - margin_right = -3 - } - } - } - - type vbox_court_positions = vbox { - layoutpolicy_horizontal = expanding - - spacing = 5 - - ### Header - Decision Button and Monthly Salaries ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - margin_bottom = 10 - spacing = 10 - - expand = {} - - ### Monthly Salaries - vbox = { - name = "salaries_tutorial_uses_this" - datacontext = "[CourtPositionsWindow.CourtPositionsExpenseBreakdown]" - visible = "[CourtPositionsWindow.HasEmployedPositions]" - minimumsize = { 200 0 } - layoutpolicy_vertical = expanding - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_label_center = { - max_width = 250 - - text = "COURT_POSITIONS_WINDOW_MONTHLY_SALARY" - } - - text_single = { - max_width = 250 - - text = "[CourtPositionsWindow.TotalPaidSalaries]" - default_format = "#high" - align = nobaseline - } - } - } - - ### Recruit Decision Button - button_decision_entry = { - name = "recruit_position_decision" - datacontext = "[GetDecisionWithKey('recruit_court_position_decision')]" - visible = "[Decision.IsShownForPlayer]" - size = { 300 45 } - using = tooltip_se - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - } - - expand = {} - } - - ### Monthly Income from held positions - hbox = { - visible = "[Not( IsDataModelEmpty( CourtPositionsWindow.GetHeldPositions ) )]" - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 10 10 } - minimumsize = { 532 0 } - maximumsize = { 532 0 } - - background = { - using = Background_Area_Dark - } - - hbox = { - datamodel = "[CourtPositionsWindow.GetHeldPositions]" - - text_single = { - max_width = 210 - - text = "COURT_POSITIONS_WINDOW_YOUR_POSITIONS" - align = nobaseline - margin_right = 6 - } - - item = { - icon = { - datacontext = "[CourtPosition.GetPositionType]" - texture = "[CourtPositionType.GetIcon]" - size = { 32 32 } - - tooltipwidget = { - using = court_position_tooltip - } - } - } - } - expand = {} - - hbox = { - margin_left = 10 - - text_single = { - max_width = 210 - - text = "COURT_POSITIONS_WINDOW_MONTHLY_SALARY_YOUR" - align = nobaseline - } - - text_single = { - datacontext = "[CourtPositionsWindow.CourtPositionsIncomeBreakdown]" - visible = "[CourtPositionsWindow.CourtOwner.HoldsCourtPosition]" - margin_left = 10 - max_width = 200 - - text = "[CourtPositionsWindow.TotalEarnedSalaries]" - default_format = "#high" - align = nobaseline - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - } - expand = {} - } - - ### Court Position Group Foldouts ### - scrollbox = { - using = Animation_Tab_Switch - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 6 10 } - margin_right = 20 - } - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### Available Court Positions ### - fixedgridbox = { - name = "court_position_items" - layoutpolicy_horizontal = expanding - - addcolumn = 180 - addrow = 228 - setitemsizefromcell = yes - datamodel_wrap = 3 - flipdirection = yes - - datamodel = "[CourtPositionsWindow.GetCourtPositions]" - item = { - widget_court_position_item = {} - } - } - - ### Denied Court Positions Group Foldout ### - vbox = { - visible = "[Not( IsDataModelEmpty( CourtPositionsWindow.GetDeniedCourtPositions ) )]" - margin_bottom = 8 - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[CourtPositionsWindow.GetGroupTitle]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - fixedgridbox = { - name = "court_position_items" - layoutpolicy_horizontal = expanding - - addcolumn = 180 - addrow = 228 - setitemsizefromcell = yes - datamodel_wrap = 3 - flipdirection = yes - - datamodel = "[CourtPositionsWindow.GetDeniedCourtPositions]" - item = { - widget_court_position_item = {} - } - } - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - } - } - - expand = {} - } -} - -template court_position_tooltip_text_format -{ - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 380 - align = left -} - -template court_position_header_background_colors -{ - modify_texture = { - visible = "[CourtPositionType.HasNoPrimarySkill]" - using = Color_Courtier_Blue - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'diplomacy' )]" - using = Color_Courtier_Blue - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'martial' )]" - using = Color_Red - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'stewardship' )]" - using = Color_Green - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'intrigue' )]" - using = Color_Courtier_Purple - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'learning' )]" - using = Color_White - blend_mode = normal - } - modify_texture = { - visible = "[CourtPositionType.HasPrimarySkill( 'prowess' )]" - using = Color_Red - blend_mode = normal - } -} diff --git a/N3OW/gui/window_court_scene_editor.gui b/N3OW/gui/window_court_scene_editor.gui deleted file mode 100644 index c75554a3..00000000 --- a/N3OW/gui/window_court_scene_editor.gui +++ /dev/null @@ -1,2603 +0,0 @@ - -types SceneEditorTypes -{ - -type court_scene_editor_tool_checkbutton = checkbutton -{ - size = { 32 32 } - gfxtype = checkbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - framesize = { 32 32 } -} - -type court_scene_editor_window = window -{ - name = "court_scene_editor_window" #Name is referenced by the source, please do not rename. - size = { 630 1080 } - minimumsize = { 600 300 } - filter_mouse = all - layer = middle - resizable = yes - using = Window_Movable - using = Window_Background_Sidebar - - # Make entire window transparent while user is holding RMB and moving camera around (according to ck3 developers request). - # We can easily check that by checking if we can switch the active camera, because camera switching is not allowed when - # user is moving the camera. - alpha = "[Select_float( CourtSceneEditorWindow.CanChangeActiveCamera, '(float)1.0', '(float)0.3' )]" - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - raw_text = "Editor" - } - } - - button_close = { - raw_tooltip = "Close editor window" - onclick = "[GetVariableSystem.Clear( 'scene_editor' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[CourtSceneEditorWindow.AccessToolset]" - - court_scene_editor_tool_checkbutton = { - name = "dev_cam" - texture = "gfx/court_scene/tools/dev_cam.png" - enabled = "[And( CourtSceneEditorWindow.CanChangeActiveCamera, CourtSceneEditorWindow.IsToolsetEnabled )]" - checked = "[CourtSceneEditorWindow.IsDeveloperCameraActive]" - onclick = "[CourtSceneEditorWindow.SetDeveloperCameraActive(Not(CourtSceneEditorWindow.IsDeveloperCameraActive))]" - shortcut = court_scene_editor_dev_cam - raw_tooltip = "Toggle between a temporary developer camera and a currently selected in-game camera. Developer camera is used to look around the scene without modifying the in-game cameras." - } - - checkbutton = { - name = "tool_select" - texture = "gfx/court_scene/tools/selection.png" - enabled = "[And( CourtSceneEditorWindow.CanChangeActiveCamera, CourtSceneEditorWindow.IsToolsetEnabled )]" - checked = "[CourtToolset.IsModeSelect]" - onclick = "[CourtToolset.SetModeSelect]" - shortcut = court_scene_editor_toolset_select - raw_tooltip = "Object selection mode." - } - - checkbutton = { - name = "tool_translate" - texture = "gfx/court_scene/tools/translate.png" - enabled = "[And( CourtSceneEditorWindow.CanChangeActiveCamera, CourtSceneEditorWindow.IsToolsetEnabled )]" - checked = "[CourtToolset.IsModeTranslate]" - onclick = "[CourtToolset.SetModeTranslate]" - shortcut = court_scene_editor_toolset_translate - raw_tooltip = "Object translating mode." - } - - checkbutton = { - name = "tool_rotate" - texture = "gfx/court_scene/tools/rotate.png" - enabled = "[And( CourtSceneEditorWindow.CanChangeActiveCamera, CourtSceneEditorWindow.IsToolsetEnabled )]" - checked = "[CourtToolset.IsModeRotation]" - onclick = "[CourtToolset.SetModeRotation]" - shortcut = court_scene_editor_toolset_rotate - raw_tooltip = "Object rotation mode." - } - - checkbutton = { - name = "tool_scale" - texture = "gfx/court_scene/tools/scale.png" - enabled = "[And( CourtSceneEditorWindow.CanChangeActiveCamera, CourtSceneEditorWindow.IsToolsetEnabled )]" - checked = "[CourtToolset.IsModeScale]" - onclick = "[CourtToolset.SetModeScale]" - shortcut = court_scene_editor_toolset_scale - raw_tooltip = "Object scale mode." - } - - button_standard = { - size = { 100 30 } - raw_text = "Toggle tools" - onclick = "[CourtSceneEditorWindow.ToggleToolsedEnabled]" - raw_tooltip = "Toggle interactive scene editor tools" - shortcut = court_scene_editor_toolset_toggle - } - - expand = {} - - button_standard = { - size = { 80 30 } - raw_text = "Save" - onclick = "[CourtSceneEditorWindow.Save]" - raw_tooltip = "Save current scene configuration. New configuration file can be found in the user Documents folder" - } - - button_standard = { - size = { 80 30 } - raw_text = "Reload" - onclick = "[CourtSceneEditorWindow.ReloadEdit]" - raw_tooltip = "Reload scene settings. Uses configuration file in the user Documents folder if it exists." - } - - button_standard = { - raw_text = "Default" - size = { 80 30 } - onclick = "[CourtSceneEditorWindow.ReloadSafe]" - raw_tooltip = "Reload default scene settings. Uses configuration file shipped with game files" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_undo = { - size = { 40 40 } - onclick = "[CourtSceneEditorWindow.UndoCommand]" - enabled = "[CourtSceneEditorWindow.CanUndo]" - shortcut = "undo" - raw_tooltip = "Undo change" - } - - button_redo = { - size = { 40 40 } - onclick = "[CourtSceneEditorWindow.RedoCommand]" - enabled = "[CourtSceneEditorWindow.CanRedo]" - shortcut = "redo" - raw_tooltip = "Redo change" - } - - expand = {} - - text_single = { - raw_text = "Settings name" - } - - dropdown_menu_standard = { - - blockoverride "dropdown_size" - { - size = { 150 32 } - } - - blockoverride "dropdown_properties" - { - datamodel = "[CourtSceneEditorWindow.GetAllSettings]" - onselectionchanged = "[CourtSceneEditorWindow.OnActiveSettingsChange]" - selectedindex = "[CourtSceneEditorWindow.GetActiveSettingsIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[GetSceneSettingsName( CourtSceneSettings.Self )]" - tooltip = "[GetSceneSettingsName( CourtSceneSettings.Self )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[GetSceneSettingsName( CourtSceneSettings.Self )]" - tooltip = "[GetSceneSettingsName( CourtSceneSettings.Self )]" - } - } - } - - hbox = { - name = "tabs" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Cameras" - onclick = "[GetVariableSystem.Set( 'active_tab', 'cameras' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'cameras' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Lights" - onclick = "[GetVariableSystem.Set( 'active_tab', 'lights' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'lights' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Characters" - onclick = "[GetVariableSystem.Set( 'active_tab', 'characters' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'characters' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Assets" - onclick = "[GetVariableSystem.Set( 'active_tab', 'assets' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'assets' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Artifacts" - onclick = "[GetVariableSystem.Set( 'active_tab', 'artifacts' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'artifacts' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - raw_text = "Misc" - onclick = "[GetVariableSystem.Set( 'active_tab', 'misc' )]" - down = "[GetVariableSystem.HasValue( 'active_tab', 'misc' )]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'cameras' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_checkbox_label = { - - onclick = "[CourtSceneEditorWindow.ToggleAnimationCameraIdle]" - raw_tooltip = "Animate idle camera" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsCameraIdleAnimated]" - } - - blockoverride "text" - { - raw_text = "Animate Camera" - } - } - - button_checkbox_label = { - - onclick = "[CourtSceneEditorWindow.ToggleAnimationCameraTransition]" - raw_tooltip = "Use animated transitions between cameras" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsCameraTransitionAnimated]" - } - - blockoverride "text" - { - raw_text = "Use transitions" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - layoutpolicy_horizontal = expanding - raw_text = "Expand all" - onclick = "[CourtSceneEditorWindow.ExpandAllCameras]" - } - - button_standard = { - layoutpolicy_horizontal = expanding - raw_text = "Collapse all" - onclick = "[CourtSceneEditorWindow.CollapseAllCameras]" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CourtSceneEditorWindow.AccessCameras]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - button_checkbox_label = { - enabled = "[CourtSceneEditorWindow.CanChangeActiveCamera]" - onclick = "[CourtSceneEditorWindow.SetCameraActive( Camera.AccessSelf )]" - raw_tooltip = "View the scene from this camera" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsCameraActive( Camera.Self )]" - } - - blockoverride "text" {} - } - - editor_expand_button = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleCameraExpanded( Camera.Self )]" - - blockoverride "is_expanded" - { - frame = "[Select_int32( CourtSceneEditorWindow.IsCameraExpanded( Camera.Self ), '(int32)2', '(int32)1' )]" - } - - blockoverride "text" - { - text = "[Select_CString( StringIsEmpty( CourtSceneEditorWindow.GetCameraDescription( Camera.Self ) ), 'Camera', CourtSceneEditorWindow.GetCameraDescription( Camera.Self ) )]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - camera_settings_widget = { - visible = "[CourtSceneEditorWindow.IsCameraExpanded( Camera.Self )]" - - blockoverride "visible_default_camera" {} - blockoverride "visible_screenshot_camera" {} - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnCameraEditStarted( Camera.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnCameraEditFinished( Camera.Self )]" - } - } - } - } - } - } - } - } - - button_standard = { - raw_text = "Add camera" - onclick = "[CourtSceneEditorWindow.AddCamera]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'lights' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - raw_text = "Expand all" - onclick = "[CourtSceneEditorWindow.ExpandAllLights]" - } - - button_standard = { - raw_text = "Collapse all" - onclick = "[CourtSceneEditorWindow.CollapseAllLights]" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CourtSceneEditorWindow.AccessLights]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - editor_expand_button = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleLightExpanded( Light.Self )]" - - blockoverride "is_expanded" - { - frame = "[Select_int32( CourtSceneEditorWindow.IsLightExpanded( Light.Self ), '(int32)2', '(int32)1' )]" - } - - blockoverride "text" - { - text = "[Select_CString( StringIsEmpty( CourtSceneEditorWindow.GetLightDescription( Light.Self ) ), 'Light', CourtSceneEditorWindow.GetLightDescription( Light.Self ) )]" - } - } - - text_single = { - visible = "[CourtSceneEditorWindow.IsLightEnabled( Light.Self )]" - raw_text = "Enabled" - } - - spacer = { - visible = "[CourtSceneEditorWindow.IsLightEnabled( Light.Self )]" - size = { 5 5 } - } - - text_single = { - visible = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - raw_text = "Shadow" - } - - spacer = { - visible = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - size = { 5 5 } - } - } - - light_settings_vbox = { - layoutpolicy_horizontal = expanding - visible = "[CourtSceneEditorWindow.IsLightExpanded( Light.Self )]" - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnLightEditStarted( Light.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnLightEditFinished( Light.Self )]" - } - } - } - } - } - } - } - - button_standard = { - raw_text = "Add light" - onclick = "[CourtSceneEditorWindow.AddLight]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'characters' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - raw_text = "Expand all" - onclick = "[CourtSceneEditorWindow.ExpandAllCharacters]" - } - - button_standard = { - raw_text = "Collapse all" - onclick = "[CourtSceneEditorWindow.CollapseAllCharacters]" - } - - button_checkbox_label = { - onclick = "[CourtSceneEditorWindow.ToggleCharacterDebugLines]" - raw_tooltip = "Toggle showing debug lines" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.ShowCharacterDebugLines]" - } - - blockoverride "text" - { - raw_text = "Debug lines" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CourtSceneEditorWindow.AccessCharacters]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - editor_expand_button = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleCharacterExpanded( CharacterProperties.Self )]" - - blockoverride "is_expanded" - { - frame = "[Select_int32( CourtSceneEditorWindow.IsCharacterExpanded( CharacterProperties.Self ), '(int32)2', '(int32)1' )]" - } - - blockoverride "text" - { - text = "[Select_CString( StringIsEmpty( CourtSceneEditorWindow.GetCharacterDescription( CharacterProperties.Self ) ), 'Character', CourtSceneEditorWindow.GetCharacterDescription( CharacterProperties.Self ) )]" - } - } - - character_settings_widget = { - layoutpolicy_horizontal = expanding - visible = "[CourtSceneEditorWindow.IsCharacterExpanded( CharacterProperties.Self )]" - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnCharacterEditStarted( CharacterProperties.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnCharacterEditFinished( CharacterProperties.Self )]" - } - } - } - } - } - } - } - - button_standard = { - raw_text = "Add character" - onclick = "[CourtSceneEditorWindow.AddCharacter]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'assets' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - raw_text = "Expand all" - onclick = "[CourtSceneEditorWindow.ExpandAllAssets]" - } - - button_standard = { - raw_text = "Collapse all" - onclick = "[CourtSceneEditorWindow.CollapseAllAssets]" - } - - button_checkbox_label = { - onclick = "[CourtSceneEditorWindow.ToggleAssetsDebugLines]" - raw_tooltip = "Toggle showing debug lines" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.ShowAssetsDebugLines]" - } - - blockoverride "text" - { - raw_text = "Debug lines" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CourtSceneEditorWindow.AccessAssets]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - editor_expand_button = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleAssetExpanded( AssetSettings.Self )]" - - blockoverride "is_expanded" - { - frame = "[Select_int32( CourtSceneEditorWindow.IsAssetExpanded( AssetSettings.Self ), '(int32)2', '(int32)1' )]" - } - - blockoverride "text" - { - text = "[Select_CString( StringIsEmpty( CourtSceneEditorWindow.GetAssetDescription( AssetSettings.Self ) ), 'Asset', CourtSceneEditorWindow.GetAssetDescription( AssetSettings.Self ) )]" - } - } - - asset_settings_widget = { - layoutpolicy_horizontal = expanding - visible = "[CourtSceneEditorWindow.IsAssetExpanded( AssetSettings.Self )]" - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnAssetEditStarted( AssetSettings.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnAssetEditFinished( AssetSettings.Self )]" - } - } - } - } - } - } - } - - button_standard = { - raw_text = "Add asset" - onclick = "[CourtSceneEditorWindow.AddAsset]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'artifacts' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - raw_text = "Expand all" - onclick = "[CourtSceneEditorWindow.ExpandAllArtifacts]" - } - - button_standard = { - raw_text = "Collapse all" - onclick = "[CourtSceneEditorWindow.CollapseAllArtifacts]" - } - - button_checkbox_label = { - onclick = "[CourtSceneEditorWindow.ToggleArtifactDebugLines]" - raw_tooltip = "Toggle showing debug lines" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.ShowArtifactDebugLines]" - } - - blockoverride "text" - { - raw_text = "Debug lines" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[CourtSceneEditorWindow.AccessArtifacts]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - editor_expand_button = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleArtifactExpanded( ArtifactSettings.Self )]" - - blockoverride "is_expanded" - { - frame = "[Select_int32( CourtSceneEditorWindow.IsArtifactExpanded( ArtifactSettings.Self ), '(int32)2', '(int32)1' )]" - } - - blockoverride "text" - { - text = "[CourtSceneEditorWindow.GetArtifactDescriptionOrSlot(ArtifactSettings.Self)]" - } - } - - artifact_settings_widget = { - layoutpolicy_horizontal = expanding - visible = "[CourtSceneEditorWindow.IsArtifactExpanded( ArtifactSettings.Self )]" - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnArtifactEditStarted( ArtifactSettings.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnArtifactEditFinished( ArtifactSettings.Self )]" - } - } - } - } - } - } - } - - button_standard = { - raw_text = "Add artifact" - onclick = "[CourtSceneEditorWindow.AddArtifact]" - } - } - - vbox = { - visible = "[GetVariableSystem.HasValue( 'active_tab', 'misc' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 20 0 } - spacing = 10 - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GetRoyalCourtSelectedCharacter]" - visible = "[Character.IsValid]" - raw_text = "Current selection: [Character.GetName] id: [Character.GetID]" - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GetRoyalCourtSelectedArtifact]" - visible = "[Artifact.IsValid]" - raw_text = "Current selection: [Artifact.GetName] id: [Artifact.GetID]" - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GetRoyalCourtHoveredCharacter]" - visible = "[Character.IsValid]" - raw_text = "Current hovered: [Character.GetName] id: [Character.GetID]" - } - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[GetRoyalCourtHoveredArtifact]" - visible = "[Artifact.IsValid]" - raw_text = "Current hovered: [Artifact.GetName] id: [Artifact.GetID]" - } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleSelectionDebugLines]" - raw_tooltip = "Toggle showing debug lines" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.ShowSelectionDebugLines]" - } - - blockoverride "text" - { - raw_text = "Debug lines" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "Visual culture: [CourtSceneEditorWindow.GetActiveSettings.GetSettingsCulture]" - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetShadowsStrength]" - onvaluechanged = "[CourtSceneEditorWindow.SetShadowsStrength]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 1 - min = -4 - step = 0.1 - } - - blockoverride "Label" { - raw_text = "Shadows strength" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetShadowsStrength]" - oneditingfinished = "[CourtSceneEditorWindow.OnShadowsStrengthEdit]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetShadowsFade]" - onvaluechanged = "[CourtSceneEditorWindow.SetShadowsFade]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 1000 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Shadows fade" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetShadowsFade]" - oneditingfinished = "[CourtSceneEditorWindow.OnShadowsFadeEdit]" - } - } - - expand = {} - } - - expand = {} - } -} - -type editor_expand_button = button_group { - flowcontainer = { - spacing = 5 - - widget = { - size = { 18 22 } - - button_expand = { - block "is_expanded" { - frame = 1 - } - parentanchor = center - } - } - - text_single = { - block "text" { - raw_text = "#D Expand text#!" - } - default_format = "#low" - align = nobaseline - } - } -} - -type property_scrollbar_hbox = hbox -{ - maximumsize = { -1 25 } - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - block "Label" { - raw_text = "#D Radius#!" - } - } - - scrollbar = { - direction = horizontal - size = { 300 20 } - minimumsize = { -1 14 } - wheelstep = 0 - - onchangestart = "[CourtSceneEditorWindow.PauseSelectionUpdate]" - onchangefinish = "[CourtSceneEditorWindow.ResumeSelectionUpdate]" - - block "DataCalls" {} - - block "Scale" { - using = ScaleColor - } - - track = { - button = { - texture ="gfx/interface/progressbars/progress_black.dds" - size = { 20 14 } - spriteType = Corneredtiled - spriteborder = { 6 6 } - } - } - - slider = { - using = SettingsValueSlider - } - - dec_button = { - using = SettingsValueDecButton - } - - inc_button = { - using = SettingsValueIncButton - } - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 50 25 } - minimumsize = { 50 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - raw_text = "#D 100#!" - } - } - } -} - - -type camera_position_settings_vbox = vbox -{ - block "position_visibility" {} - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraPosition( Camera.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position X" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCameraPositionEdit( Camera.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraPosition( Camera.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Y" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCameraPositionEdit( Camera.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraPosition( Camera.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Z" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraPosition( Camera.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCameraPositionEdit( Camera.AccessSelf, 'z' )]" - } - } -} - -type camera_settings_widget = widget -{ - size = { 495 415 } - - vbox = { - block "camera_desc" - { - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Description: " - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraDescription( Camera.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCameraDescriptionEdit( Camera.AccessSelf )]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - - block "visible_default_camera" - { - visible = no - } - - onclick = "[CourtSceneEditorWindow.SetCameraDefault( Camera.AccessSelf )]" - raw_tooltip = "Set camera as the default one for royal court" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsCameraDefault( Camera.Self )]" - } - - blockoverride "text" - { - raw_text = "Default camera" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - - block "visible_screenshot_camera" - { - visible = no - } - - onclick = "[CourtSceneEditorWindow.ToggleCameraToTakeScreenshot( Camera.AccessSelf )]" - raw_tooltip = "Use the camera to take screenshots" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsCameraUsedForScreenshots( Camera.Self )]" - } - - blockoverride "text" - { - raw_text = "Use camera for screenshots" - } - } - } - - block "camera_name" - { - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Localisation key: " - } - - expand = {} - - visible = "[CourtSceneEditorWindow.IsCameraUsedForScreenshots( Camera.Self )]" - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraNameLocalizationKey( Camera.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCameraNameLocalizationKeyEdit( Camera.AccessSelf )]" - } - } - } - } - } - - - camera_position_settings_vbox = { - layoutpolicy_horizontal = expanding - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraFov( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraFov( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Fov" - } - - blockoverride "Scale" { - max = 170 - min = 5 - step = 1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraFov( Camera.Self )]" - block "camera_fov" { - oneditingfinished = "[CourtSceneEditorWindow.OnCameraFovEdit( Camera.AccessSelf )]" - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetPitch( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetPitch( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Pitch" - } - - - blockoverride "Scale" { - max =180 - min = -180 - step = 1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetPitch( Camera.Self )]" - block "camera_pitch" { - oneditingfinished = "[CourtSceneEditorWindow.OnSetPitch( Camera.AccessSelf )]" - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetYaw( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetYaw( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Yaw" - } - - blockoverride "Scale" { - max = 180 - min = -180 - step = 1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetYaw( Camera.Self )]" - block "camera_yaw" { - oneditingfinished = "[CourtSceneEditorWindow.OnSetYaw( Camera.AccessSelf )]" - } - } - } - - spacer = { - size = { 10 10 } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraNear( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraNear( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - using = ScaleCoord - } - - blockoverride "Label" { - raw_text = "Near" - } - - blockoverride "Scale" { - max = "[CourtSceneEditorWindow.GetCameraFar( Camera.Self )]" - min = 0 - step = 10 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraNear( Camera.Self )]" - block "camera_near" { - oneditingfinished = "[CourtSceneEditorWindow.OnCameraNearEdit( Camera.AccessSelf )]" - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCameraFar( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCameraFar( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - using = ScaleCoord - } - - blockoverride "Label" { - raw_text = "Far" - } - - blockoverride "Scale" { - max = 5000 - min = "[CourtSceneEditorWindow.GetCameraNear( Camera.Self )]" - step = 10 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCameraFar( Camera.Self )]" - block "camera_far" { - oneditingfinished = "[CourtSceneEditorWindow.OnCameraFarEdit( Camera.AccessSelf )]" - } - } - } - - hbox = { - button_standard = { - raw_text = "Remove camera" - onclick = "[CourtSceneEditorWindow.RemoveCamera( Camera.Self )]" - block "position_visibility" {} - } - button_standard = { - raw_text = "Duplicate camera" - onclick = "[CourtSceneEditorWindow.DuplicateCamera( Camera.Self )]" - block "position_visibility" {} - } - } - - expand = {} - } -} - -type light_settings_vbox = vbox -{ - background = { - visible = "[Not( CourtSceneEditorWindow.IsLightInLimits( Light.Self ) )]" - using = Status_Bad - } - - widget = { - size = { 500 380 } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "Description" - } - - editbox_standard = { - size = { 370 25 } - minimumsize = { -1 14 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightDescription( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightDescriptionEdit( Light.AccessSelf )]" - } - } - } - } - - spacer = { - size = { 10 10 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - hbox = { - text_single = { - maximumsize = { 150 25 } - minimumsize = { 150 0 } - raw_text = "Color" - raw_tooltip = "Click the colored square to open color picker" - } - - tools_colorpicker = { - color = "[CourtSceneEditorWindow.GetColor( Light.Self )]" - oncolorchanged = "[CourtSceneEditorWindow.OnColorChange( Light.AccessSelf )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightColorPickerFinishChange( Light.Self )]" - raw_tooltip = "Click to open color picker" - using = tooltip_above - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - raw_tooltip = "Type of light source" - - text_single = { - maximumsize = { 100 25 } - minimumsize = { 100 0 } - raw_text = "Type" - } - - dropdown_menu_standard = { - - blockoverride "dropdown_size" - { - size = { 150 32 } - } - - blockoverride "dropdown_properties" - { - datamodel = "[GetAllLightTypes]" - onselectionchanged = "[CourtSceneEditorWindow.SetLightType( Light.AccessSelf )]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[CourtSceneEditorWindow.GetLightType( Light.Self )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[CString.GetString]" - } - } - - expand = {} - } - } - - spacer = { - size = { 10 10 } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPosition( Light.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "Label" { - raw_text = "Position X" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightPositionEdit( Light.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPosition( Light.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "Label" { - raw_text = "Position Y" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightPositionEdit( Light.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPosition( Light.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "Label" { - raw_text = "Position Z" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPosition( Light.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightPositionEdit( Light.AccessSelf, 'z' )]" - } - } - - spacer = { - size = { 10 10 } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetRadius( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetRadius( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 5000 - min = 0.1 - step = 0.1 - } - - blockoverride "Label" { - raw_text = "Radius" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetRadius( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnRadiusEdit( Light.AccessSelf )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetIntensity( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetIntensity( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 5000 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Intensity" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetIntensity( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnIntensityEdit( Light.AccessSelf )]" - } - } - - spacer = { - size = { 10 10 } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPitch( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPitch( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Pitch" - } - - blockoverride "Scale" { - max = 360 - min = -360 - step = 1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPitch( Light.Self )]" - block "camera_pitch" { - oneditingfinished = "[CourtSceneEditorWindow.OnLightPitchEdit( Light.AccessSelf )]" - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightYaw( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightYaw( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Yaw" - } - - blockoverride "Scale" { - max = 360 - min = -360 - step = 1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightYaw( Light.Self )]" - block "light_yaw" { - oneditingfinished = "[CourtSceneEditorWindow.OnLightYawEdit( Light.AccessSelf )]" - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetConeInnerAngle( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetConeInnerAngle( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 1 - min = 0 - step = 0.01 - } - - blockoverride "Label" { - raw_text = "Inner Cone" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetConeInnerAngle( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnConeInnerAngleEdit( Light.AccessSelf )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetConeOuterAngle( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetConeOuterAngle( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 1 - min = 0 - step = 0.01 - } - - blockoverride "Label" { - raw_text = "Outer Cone" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetConeOuterAngle( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnConeOuterAngleEdit( Light.AccessSelf )]" - } - } - } - } - - spacer = { - size = { 10 10 } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleAnimatedLight( Light.AccessSelf )]" - raw_tooltip = "Make this light flicker and show animation controls" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsAnimatedLight( Light.Self )]" - } - - blockoverride "text" - { - raw_text = "Animated light" - } - } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleLightEnabled( Light.AccessSelf )]" - raw_tooltip = "Toggle this light" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsLightEnabled( Light.Self )]" - } - - blockoverride "text" - { - raw_text = "Enabled" - } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[CourtSceneEditorWindow.IsAnimatedLight( Light.Self )]" - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPositionVariation( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPositionVariation( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 200 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Position variation" - raw_tooltip = "Position variation" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPositionVariation( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightPositionVariationEdit( Light.AccessSelf )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightPositionVariationFrequency( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightPositionVariationFrequency( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 200 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Position variation frequency" - raw_tooltip = "Position variation frequency" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightPositionVariationFrequency( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightPositionVariationFrequencyEdit( Light.AccessSelf )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightIntensityVariation( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightIntensityVariation( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 200 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Intensity variation" - raw_tooltip = "Intensity variation" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightIntensityVariation( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightIntensityVariationEdit( Light.AccessSelf )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetLightIntensityVariationFrequency( Light.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetLightIntensityVariationFrequency( Light.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 200 - min = 0 - step = 1 - } - - blockoverride "Label" { - raw_text = "Intensity variation frequency" - raw_tooltip = "Intensity variation frequency" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetLightIntensityVariationFrequency( Light.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnLightIntensityVariationFrequencyEdit( Light.AccessSelf )]" - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleLightAffectedByShadow( Light.AccessSelf )]" - raw_tooltip = "Make this light source cast shadows" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - } - - blockoverride "text" - { - raw_text = "Cast shadow" - } - } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleCubemapShadow( Light.AccessSelf )]" - enabled = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - raw_tooltip = "Make this light source use omnidirectional shadows" - - blockoverride "checkbox" - { - checked = "[And( CourtSceneEditorWindow.IsAffectedByShadow( Light.Self ), CourtSceneEditorWindow.IsCubemapShadow( Light.Self ) )]" - } - - blockoverride "text" - { - raw_text = "Omnidirectional shadows" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleShowDebugLight( Light.AccessSelf )]" - raw_tooltip = "Toggle debug widges for light sources" - - blockoverride "checkbox" - { - checked = "[CourtSceneEditorWindow.IsShowDebugLight( Light.Self )]" - } - - blockoverride "text" - { - raw_text = "Toggle debug widget" - } - } - - button_checkbox_label = { - layoutpolicy_horizontal = expanding - onclick = "[CourtSceneEditorWindow.ToggleShowDebugCamera( Light.AccessSelf )]" - enabled = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - raw_tooltip = "Draw shadow camera volume. Only available when shadow is active" - - blockoverride "checkbox" - { - checked = "[And( CourtSceneEditorWindow.IsAffectedByShadow( Light.Self ), CourtSceneEditorWindow.IsShowDebugCamera( Light.Self ) )]" - } - - blockoverride "text" - { - raw_text = "Show shadow camera" - } - } - } - - property_scrollbar_hbox = { - datacontext = "[CourtSceneEditorWindow.AccessShadowCamera( Light.AccessSelf )]" - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetShadowFade( Camera.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetShadowFade( Camera.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Scale" { - max = 1000 - min = -1 - step = 1 - } - - blockoverride "Label" { - raw_text = "Shadow fade" - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetShadowFade( Camera.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnSetShadowFade( Camera.AccessSelf )]" - } - - } - } - - camera_settings_widget = { - size = { 495 180 } - visible = "[CourtSceneEditorWindow.IsAffectedByShadow( Light.Self )]" - - background = { - visible = "[Not( CourtSceneEditorWindow.IsLightShadowInLimits(Light.Self) )]" - using = Status_Bad - } - - datacontext = "[CourtSceneEditorWindow.AccessShadowCamera( Light.AccessSelf )]" - - blockoverride "position_visibility" - { - visible = no - } - - blockoverride "camera_desc" {} - - blockoverride "camera_name" {} - - blockoverride "command_callbacks" - { - onchangestart = "[CourtSceneEditorWindow.OnLightEditStarted( Light.Self )]" - onchangefinish = "[CourtSceneEditorWindow.OnLightEditFinished( Light.Self )]" - } - - blockoverride "camera_fov" - { - oneditingfinished = "[CourtSceneEditorWindow.OnLightCameraEdit( Light.AccessSelf, Camera.AccessSelf, 'fov' )]" - } - - blockoverride "camera_pitch" - { - oneditingfinished = "[CourtSceneEditorWindow.OnLightCameraEdit( Light.AccessSelf, Camera.AccessSelf, 'pitch' )]" - } - - blockoverride "camera_yaw" - { - oneditingfinished = "[CourtSceneEditorWindow.OnLightCameraEdit( Light.AccessSelf, Camera.AccessSelf, 'yaw' )]" - } - - blockoverride "camera_far" - { - oneditingfinished = "[CourtSceneEditorWindow.OnLightCameraEdit( Light.AccessSelf, Camera.AccessSelf, 'far' )]" - } - - blockoverride "camera_near" - { - oneditingfinished = "[CourtSceneEditorWindow.OnLightCameraEdit( Light.AccessSelf, Camera.AccessSelf, 'near' )]" - } - } - - hbox = { - button_standard = { - raw_text = "Remove light" - onclick = "[CourtSceneEditorWindow.RemoveLight( Light.Self )]" - } - - button_standard = { - raw_text = "Duplicate light" - onclick = "[CourtSceneEditorWindow.DuplicateLight( Light.Self )]" - } - } - - spacer = { - size = { 10 10 } - } -} - -type character_settings_widget = widget -{ - size = { 490 310 } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Description: " - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterDescription( CharacterProperties.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterDescriptionEdit( CharacterProperties.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Locator:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterLocator( CharacterProperties.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterLocatorEdit( CharacterProperties.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Roles:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterRoles( CharacterProperties.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterRolesEdit( CharacterProperties.AccessSelf )]" - } - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterPosition( CharacterProperties.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position X" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterPositionEdit( CharacterProperties.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterPosition( CharacterProperties.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Y" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterPositionEdit( CharacterProperties.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterPosition( CharacterProperties.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Z" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterPosition( CharacterProperties.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterPositionEdit( CharacterProperties.AccessSelf, 'z' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterRotation( CharacterProperties.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Rotation X" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterRotationEdit( CharacterProperties.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterRotation( CharacterProperties.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Rotation Y" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterRotationEdit( CharacterProperties.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetCharacterRotation( CharacterProperties.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Rotation Z" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetCharacterRotation( CharacterProperties.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnCharacterRotationEdit( CharacterProperties.AccessSelf, 'z' )]" - } - } - - hbox = { - button_standard = { - raw_text = "Remove character" - onclick = "[CourtSceneEditorWindow.RemoveCharacter( CharacterProperties.Self )]" - } - - button_standard = { - raw_text = "Duplicate character" - onclick = "[CourtSceneEditorWindow.DuplicateCharacter( CharacterProperties.Self )]" - } - } - - expand = {} - } -} -type asset_settings_widget = widget { - size = { 490 345 } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Description: " - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetDescription( AssetSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetDescriptionEdit( AssetSettings.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Asset:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetName( AssetSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetNameEdit( AssetSettings.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Locator:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetLocator( AssetSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetLocatorEdit( AssetSettings.AccessSelf )]" - } - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetPosition( AssetSettings.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position X" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetPositionEdit( AssetSettings.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetPosition( AssetSettings.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Y" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetPositionEdit( AssetSettings.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetPosition( AssetSettings.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Z" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetPosition( AssetSettings.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetPositionEdit( AssetSettings.AccessSelf, 'z' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetRotation( AssetSettings.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Direction" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetRotationEdit( AssetSettings.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetRotation( AssetSettings.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Pitch" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetRotationEdit( AssetSettings.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetRotation( AssetSettings.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Roll" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetRotation( AssetSettings.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetRotationEdit( AssetSettings.AccessSelf, 'z' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetAssetScale( AssetSettings.Self )]" - onvaluechanged = "[CourtSceneEditorWindow.SetAssetScale( AssetSettings.AccessSelf )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Scale" - } - - blockoverride "Scale" { - min = 0 - max = 100 - step = 0.1 - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetAssetScale( AssetSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnAssetScaleEdit( AssetSettings.AccessSelf )]" - } - } - - hbox = { - button_standard = { - raw_text = "Remove asset" - onclick = "[CourtSceneEditorWindow.RemoveAsset( AssetSettings.Self )]" - } - - button_standard = { - raw_text = "Duplicate asset" - onclick = "[CourtSceneEditorWindow.DuplicateAsset( AssetSettings.Self )]" - } - } - - expand = {} - } -} - -type artifact_settings_widget = widget -{ - size = { 490 310 } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Description:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactDescription( ArtifactSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactDescriptionEdit( ArtifactSettings.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Slot Type:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactSlotType( ArtifactSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactSlotTypeEdit( ArtifactSettings.AccessSelf )]" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 450 25 } - - text_single = { - raw_text = "Locator:" - } - - expand = {} - - editbox_standard = { - layoutpolicy_horizontal = expanding - maximumsize = { 340 25 } - minimumsize = { 300 25 } - blockoverride "editbox_properties" - { - block "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactLocator( ArtifactSettings.Self )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactLocatorEdit( ArtifactSettings.AccessSelf )]" - } - } - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactPosition( ArtifactSettings.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position X" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactPositionEdit( ArtifactSettings.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactPosition( ArtifactSettings.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Y" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactPositionEdit( ArtifactSettings.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactPosition( ArtifactSettings.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Position Z" - } - - blockoverride "Scale" { - using = ScaleCoordinates - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactPosition( ArtifactSettings.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactPositionEdit( ArtifactSettings.AccessSelf, 'z' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'y' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactRotation( ArtifactSettings.AccessSelf, 'y' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Direction" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'y' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactRotationEdit( ArtifactSettings.AccessSelf, 'y' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'x' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactRotation( ArtifactSettings.AccessSelf, 'x' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Pitch" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'x' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactRotationEdit( ArtifactSettings.AccessSelf, 'x' )]" - } - } - - property_scrollbar_hbox = { - blockoverride "DataCalls" { - value = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'z' )]" - onvaluechanged = "[CourtSceneEditorWindow.SetArtifactRotation( ArtifactSettings.AccessSelf, 'z' )]" - block "command_callbacks" {} - } - - blockoverride "Label" { - raw_text = "Roll" - } - - blockoverride "Scale" { - using = ScaleRotation - } - - blockoverride "LabelValue" { - text = "[CourtSceneEditorWindow.GetArtifactRotation( ArtifactSettings.Self, 'z' )]" - oneditingfinished = "[CourtSceneEditorWindow.OnArtifactRotationEdit( ArtifactSettings.AccessSelf, 'z' )]" - } - } - - hbox = { - button_standard = { - raw_text = "Remove artifact" - onclick = "[CourtSceneEditorWindow.RemoveArtifact( ArtifactSettings.Self )]" - } - - button_standard = { - raw_text = "Duplicate artifact" - onclick = "[CourtSceneEditorWindow.DuplicateArtifact( ArtifactSettings.Self )]" - } - } - - expand = {} - } -} -} - -template ScaleCoordinates -{ - max = 1500 - min = -1500 - step = 0.1 -} - -template ScaleColor -{ - max = 2 - min = 0 - step = 0.1 -} - -template ScaleRotation -{ - max = 180 - min = -180 - step = 1 -} diff --git a/N3OW/gui/window_court_types.gui b/N3OW/gui/window_court_types.gui deleted file mode 100644 index a39cd68a..00000000 --- a/N3OW/gui/window_court_types.gui +++ /dev/null @@ -1,280 +0,0 @@ -window = { - name = "change_court_type_window" - visible = "[CourtTypeWindow.IsCourtTypeWindowVisible]" - - parentanchor = center|hcenter - layer = top - - using = Window_Movable - using = Window_Size_MainTab - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - set_parent_size_to_minimum = yes - using = Window_Margins - - hbox = { - layoutpolicy_horizontal = expanding - - header_pattern_interaction = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "CHANGE_COURT_TYPE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[CourtTypeWindow.ToggleShowHideCourtTypeWindow]" - } - } - } - - hbox = { - datacontext = "[CourtTypeWindow.GetOwner.GetCulture]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = -5 - - icon = { - texture = "[Culture.GetEthos.GetIcon]" - using = Mask_Rough_Edges - size = { 940 202 } - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 20 10 } - - vbox = { - # selection list - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 20 - - vbox = { - # Showing current court type separately in case it's no longer valid - datacontext = "[CourtTypeWindow.GetActiveCourtTypeItem]" - visible = "[Or(Not(CourtTypeSettingItem.IsShown), Not(CourtTypeSettingItem.IsValid))]" - spacing = 10 - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "CURRENT_INVALID_COURT_TYPE" - max_width = 330 - } - - button_standard = { - name = "current_court_type" - size = { 300 40 } - - blockoverride "button_standard_current" - { - visible = yes - } - - onclick = "[CourtTypeWindow.SelectCourtType(CourtTypeSettingItem.Self)]" - down = "[ObjectsEqual(CourtTypeWindow.GetCurrentlySelectedCourtTypeItem, CourtTypeSettingItem.Self)]" - - selection_glow = { - visible = "[ObjectsEqual(CourtTypeWindow.GetCurrentlySelectedCourtTypeItem, CourtTypeSettingItem.Self)]" - } - - text_single = { - parentanchor = center - text = "[CourtTypeSettingItem.GetNameNoTooltip]" - align = nobaseline - default_format = "#clickable" - } - } - } - - vbox = { - spacing = 10 - datacontext = "[CourtTypeWindow.GetOwner.GetCulture]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "COURT_TYPES_FOR_CULTURE" - max_width = 330 - } - - flowcontainer = { - name = "court_types" - datamodel = "[CourtTypeWindow.GetCourtTypes]" - direction = vertical - spacing = 5 - alwaystransparent = no - ignoreinvisible = yes - - item = { - button_standard = { - name = "potential_court_type" - visible = "[CourtTypeSettingItem.IsShown]" - size = { 300 40 } - - onclick = "[CourtTypeWindow.SelectCourtType(CourtTypeSettingItem.Self)]" - down = "[ObjectsEqual(CourtTypeWindow.GetCurrentlySelectedCourtTypeItem, CourtTypeSettingItem.Self)]" - - text_single = { - parentanchor = center - text = "[CourtTypeSettingItem.GetNameNoTooltip]" - align = nobaseline - default_format = "#clickable" - } - - blockoverride "button_standard_current" - { - visible = "[ObjectsEqual(CourtTypeWindow.GetActiveCourtTypeItem, CourtTypeSettingItem.Self)]" - } - - selection_glow = { - visible = "[ObjectsEqual(CourtTypeWindow.GetCurrentlySelectedCourtTypeItem, CourtTypeSettingItem.Self)]" - } - - warning_icon = { - parentanchor = right|vcenter - visible = "[Not( CourtTypeSettingItem.IsValid )]" - size = { 25 25 } - position = { -5 1 } - alwaystransparent = yes - tooltip = "[CourtTypeSettingItem.CannotSelectTooltip]" - } - } - } - } - } - - expand = {} - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - size = { 600 360 } - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_top = -15 - - # header - text_label_center = { - text = "[CourtTypeWindow.GetCurrentlySelectedCourtTypeItem.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - align = center - } - - # effects - text_multi = { - margin = { 10 5 } - max_width = 580 - min_width = 580 - autoresize = yes - text = "[CourtTypeWindow.GetCurrentlySelectedCourtTypeItem.GetDescription]" - } - - expand = {} - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_bottom = 5 - margin_top = 10 - - background = { - using = Background_Area - margin_bottom = 10 - alpha = 1 - } - - # change warning text - text_single = { - max_width = 600 - align = center - margin_top = 5 - - datacontext = "[CourtTypeWindow.GetActiveCourtTypeItem]" - visible = "[Or(Not(CourtTypeSettingItem.IsShown), Not(CourtTypeSettingItem.IsValid))]" - multiline = yes - text = "CHANGE_COURT_TYPE_WARNING" - default_format = "#weak" - } - - # cost - text_single = { - datacontext = "[CourtTypeWindow.GetCurrentlySelectedCourtTypeItem]" - margin_bottom = 5 - - background = { - visible = "[Not(CourtTypeWindow.GetCurrentlySelectedCourtTypeItem.CanAfford)]" - using = Status_Bad - } - - text = "CHANGE_COURT_TYPE_COST" - } - - hbox = { - spacing = 20 - margin_bottom = 10 - - # cancel button - button_standard = { - size = { 200 40 } - onclick = "[CourtTypeWindow.ToggleShowHideCourtTypeWindow]" - - text_single = { - parentanchor = center - position = { 0 0 } - text = "CANCEL" - align = nobaseline - } - } - - # confirm button - button_primary = { - datacontext = "[CourtTypeWindow.GetCurrentlySelectedCourtTypeItem]" - - size = { 200 40 } - enabled = "[And(CourtTypeSettingItem.IsValid, And(CourtTypeSettingItem.CanAfford, Not(ObjectsEqual(CourtTypeSettingItem.Self, CourtTypeWindow.GetActiveCourtTypeItem))))]" - onclick = "[CourtTypeWindow.FinalizeCourtTypeChange]" - onclick = "[CourtTypeWindow.ToggleShowHideCourtTypeWindow]" - tooltip = "[CourtTypeSettingItem.GetConfirmChangeTooltip]" - # opposite of "enabled" - tooltip_visible = "[Not(And(CourtTypeSettingItem.IsValid, And(CourtTypeSettingItem.CanAfford, Not(ObjectsEqual(CourtTypeSettingItem.Self, CourtTypeWindow.GetActiveCourtTypeItem)))))]" - - text_single = { - parentanchor = center - text = "CHANGE_COURT_TYPE_ACCEPT" - align = nobaseline - max_width = 170 - } - } - } - - } - } -} diff --git a/N3OW/gui/window_create_accolade.gui b/N3OW/gui/window_create_accolade.gui deleted file mode 100644 index f62d58b2..00000000 --- a/N3OW/gui/window_create_accolade.gui +++ /dev/null @@ -1,712 +0,0 @@ -###################################################### -################# CREATE ACCOLADE VIEW ################### -###################################################### - -window = { - name = "create_accolade_view" - size = { 540 865 } - parentanchor = top|right - position = { -626 170 } - movable = no - layer = middle - datacontext = "[CreateAccoladeView.AccessMilitaryView]" - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { -626 170 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -570 - } - - vbox = { - name = "create_accolade_tutorial_uses_this" - widgetid = "create_accolade_tutorial_uses_this" - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CREATE_ACCOLADE" - } - - blockoverride "button_close" - { - onclick = "[CreateAccoladeView.Close]" - onclick = "[OpenGameView( 'knights' )]" - texture = "gfx/interface/icons/flat_icons/window_back.dds" - tooltip = "BACK_TOOLTIP" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 16 0 } - margin_top = 8 - - widget = { - size = { 140 160 } - - accolade_banner = { - size = { 100% 100% } - } - - portrait_shoulders = { - datacontext = "[CreateAccoladeView.GetSelectedKnight]" - parentanchor = center - } - } - - vbox = { - visible = "[CreateAccoladeView.GetSelectedKnight.IsValid]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 0 } - - background = { - using = Background_Area - - margin = { 0 2 } - } - - hbox = { - spacing = 8 - layoutpolicy_horizontal = expanding - - margin = { 0 8 } - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin = { 16 0 } - } - - text_single = { - visible = "[Not( CreateAccoladeView.IsRenaming )]" - text = "[CreateAccoladeView.GetAccoladeName]" - max_width = 285 - using = Font_Size_Medium - align = nobaseline - } - - button_edit_text = { - size = { 25 25 } - visible = "[Not( CreateAccoladeView.IsRenaming )]" - onclick = "[CreateAccoladeView.ToggleRenaming]" - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - visible = "[CreateAccoladeView.IsRenaming]" - - blockoverride "editbox_properties" - { - name = "accolade_name" - text = "[CreateAccoladeView.GetTempName]" - ontextedited = "[CreateAccoladeView.EditName]" - onreturnpressed = "[CreateAccoladeView.SubmitName]" - } - } - - expand = {} - } - - hbox = { - name = "candidate_attributes_tutorial_uses_this" - widgetid = "candidate_attributes_tutorial_uses_this" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - accolade_type_box = { - datacontext = "[CreateAccoladeView.GetSelectedPrimaryType]" - - blockoverride "subtitle_text" - { - text = "ACCOLADE_PRIMARY_TYPE" - } - - blockoverride "change_button" - { - icon = { - visible = "[AccoladeType.GetPrimaryMaaUnlock.IsValid]" - datacontext = "[AccoladeType.GetPrimaryMaaUnlock]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = { - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - } - } - size = { 30 30 } - } - - button_round = { - name = "change_primary_type" - size = { 32 32 } - - enabled = "[GreaterThan_int32( GetDataModelSize( CreateAccoladeView.GetPotentialTypes ), '(int32)2')]" - onclick = "[CreateAccoladeView.ToggleChangingPrimaryType]" - tooltip = "[CreateAccoladeView.GetChangePrimaryTypeTooltip]" - - button_change = { - parentanchor = center - size = { 24 24 } - alwaystransparent = yes - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - divider_light = { - layoutpolicy_horizontal = expanding - } - - widget = { - size = { 30 6 } - allow_outside = yes - - button_round = { - size = { 24 24 } - parentanchor = center - widgetanchor = center - - enabled = "[GreaterThan_int32( GetDataModelSize( CreateAccoladeView.GetPotentialTypes ), '(int32)1')]" - onclick = "[CreateAccoladeView.SwapSelectedAttributeTypes]" - - button_change = { - parentanchor = center - size = { 18 18 } - alwaystransparent = yes - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - accolade_type_box = { - datacontext = "[CreateAccoladeView.GetSelectedSecondaryType]" - - blockoverride "subtitle_text" - { - text = "ACCOLADE_SECONDARY_TYPE" - } - - blockoverride "icons" - { - icon = { - visible = "[AccoladeType.GetPrimaryMaaUnlock.IsValid]" - datacontext = "[AccoladeType.GetPrimaryMaaUnlock]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = { - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - } - } - size = { 30 30 } - - icon = { - size = { 30 30 } - position = { 5 5 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - tooltip = "[AccoladeType.GetPrimaryMaaUnlockWarning]" - } - } - } - - blockoverride "change_button" - { - button_round = { - name = "change_secondary_type" - size = { 32 32 } - - enabled = "[GreaterThan_int32( GetDataModelSize( CreateAccoladeView.GetPotentialTypes ), '(int32)2')]" - onclick = "[CreateAccoladeView.ToggleChangingSecondaryType]" - tooltip = "[CreateAccoladeView.GetChangeSecondaryTypeTooltip]" - - button_change = { - parentanchor = center - size = { 24 24 } - alwaystransparent = yes - } - } - } - } - } - } - - expand = {} - } - - vbox = { - visible = "[Not(CreateAccoladeView.GetSelectedKnight.IsValid)]" - layoutpolicy_horizontal = expanding - margin = { 8 0 } - - text_multi = { - text = "CREATE_ACCOLADE_SELECT_KNIGHT" - default_format = "#help" - using = Font_Size_Medium - autoresize = yes - max_width = 300 - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 4 } - visible = "[CreateAccoladeView.GetSelectedKnight.IsValid]" - - hbox = { - margin = { 0 8 } - allow_outside = yes - - widget = { - size = { 460 30 } - allow_outside = yes - - datacontext = "[CreateAccoladeView.GetProgressBar]" - - hbox_complex_bar_progress = { - layoutpolicy_horizontal = expanding - } - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" { - icon = { - name = "rank_icon" - parentanchor = center - widgetanchor = center - allow_outside = yes - size = { 44 44 } - - texture = "[CreateAccoladeView.GetComplexBarRankIcon( ComplexBar.GetIndexOfItem( ComplexBarItem.Self ) )]" - tooltip = "[CreateAccoladeView.GetComplexBarRankTooltip( ComplexBar.GetIndexOfItem( ComplexBarItem.Self ) )]" - } - } - } - } - - } - } - - hbox = { - spacing = 8 - margin = { 0 16 } - - button_standard = { - size = { 200 40 } - - onclick = "[CreateAccoladeView.Close]" - onclick = "[OpenGameView( 'knights' )]" - - text = "CANCEL" - } - - button_primary = { - size = { 200 40 } - enabled = "[CreateAccoladeView.CanCreateAccolade]" - onclick = "[CreateAccoladeView.CreateAccolade]" - - tooltip = "[CreateAccoladeView.GetCreateAccoladeTooltip]" - text = "CREATE_ACCOLADE" - } - } - - hbox = { - margin_bottom = 8 - - text_label_center = { - text = "KNIGHTS_SUBHEADER" - default_format = "#medium" - } - } - - scrollbox = { - name = "accolade_candidate_list_tutorial_uses_this" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Not( CreateAccoladeView.IsChangingType )]" - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - - name = "acclaimed_knights" - datamodel = "[MilitaryView.GetKnights]" - datacontext = "[CreateAccoladeView.AccessKnightsView]" - spacing = 8 - - item = { - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 130 } - - # has at least 2 potential accolade types - visible = "[And( Or( Not( Character.HasLandedTitles ), Character.GetPrimaryTitle.IsBarony ), KnightsView.HasPotentialAccolade( Character.Self ) )]" - onclick = "[CreateAccoladeView.SetSelectedKnight( Character.Self )]" - tooltip = "CREATE_ACCOLADE_ASSIGN_TT" - using = tooltip_nw - - blockoverride "Background_Guest_pattern_visible" - { - visible = "[Character.IsGuest]" - margin_bottom = -5 - margin_right = 5 - } - - blockoverride "Background_Guest_frame_visible" - { - visible = "[Character.IsGuest]" - margin_left = 3 - margin_bottom = -5 - margin_top = 1 - margin_right = 5 - } - - vbox = { - spacing = 8 - margin_top = 4 - margin_left = 4 - margin_right = 16 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 4 - spacing = 5 - - portrait_head = { - alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 4 - - icon = { - visible = "[Character.IsKnight]" - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 40 40 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - } - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - align = nobaseline - alwaystransparent = yes - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 4 4 } - - text_label_center = { - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - alwaystransparent = yes - } - - expand = {} - } - } - - hbox = { - visible = "[Not(Character.IsGuest)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightForced( Character.Self )]" - down = "[Character.IsKnightForced]" - alwaystransparent = "[Character.IsKnightForced]" - - text = "KNIGHTS_VIEW_FORCE" - - tooltip = "KNIGHTS_VIEW_TITLE_FORCE_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDefault( Character.Self )]" - down = "[Character.IsKnightDefault]" - alwaystransparent = "[Character.IsKnightDefault]" - - text = "KNIGHTS_VIEW_ALLOW" - - tooltip = "KNIGHTS_VIEW_TITLE_BY_PROWESS_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDisallowed( Character.Self )]" - down = "[Character.IsKnightDisallowed]" - alwaystransparent = "[Character.IsKnightDisallowed]" - enabled = "[Not( Character.IsAcclaimedKnight )]" - - text = "KNIGHTS_VIEW_FORBID" - tooltip = "[SelectLocalization( Character.IsAcclaimedKnight, 'CANNOT_FORBID_ACCLAIMED_KNIGHT', 'KNIGHTS_VIEW_TITLE_FORBID_TT' )]" - using = tooltip_se - } - - expand = {} - - icon = { - visible = "[And( HasDlcFeature( 'accolades' ), And( Or( Not( Character.HasLandedTitles ), Character.GetPrimaryTitle.IsBarony ), KnightsView.HasPotentialAccolade( Character.Self ) ) )]" - - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 30 30 } - - tooltipwidget = { - using = accolade_types_tooltip - } - - icon = { - visible = "[Not( KnightsView.CanBeAcclaimedKnight( Character.Self ) )]" - size = { 25 25 } - position = { 10 10 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } - - hbox = { - visible = "[Character.IsGuest]" - layoutpolicy_horizontal = expanding - - button_standard = { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - using = tooltip_se - } - - expand = {} - - icon = { - datacontext = "[CreateAccoladeView.AccessKnightsView]" - - visible = "[And( HasDlcFeature( 'accolades' ), And( Or( Not( Character.HasLandedTitles ), Character.GetPrimaryTitle.IsBarony ), KnightsView.HasPotentialAccolade( Character.Self ) ) )]" - - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 30 30 } - - tooltipwidget = { - using = accolade_types_tooltip - } - - icon = { - visible = "[Not( KnightsView.CanBeAcclaimedKnight( Character.Self ) )]" - size = { 25 25 } - position = { 10 10 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } - - expand = {} - } - - } - - divider = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[CreateAccoladeView.IsChangingType]" - - blockoverride "scrollbox_content" { - - vbox = { - name = "accolade_types" - datamodel = "[CreateAccoladeView.GetPotentialTypes]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - hbox = { - visible = "[And( Not( ObjectsEqual( AccoladeType.Self, CreateAccoladeView.GetSelectedPrimaryType ) ), Not( ObjectsEqual( AccoladeType.Self, CreateAccoladeView.GetSelectedSecondaryType ) ) )]" - layoutpolicy_horizontal = expanding - - margin_top = 10 - margin_bottom = 10 - spacing = 10 - - background = { - using = Background_Area - - margin = { 15 5 } - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[AccoladeType.GetName]" - - align = nobaseline - } - - icon = { - datacontext = "[AccoladeType.GetPrimaryMaaUnlock]" - visible = "[MenAtArmsType.IsValid]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = { - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - } - } - size = { 30 30 } - - icon = { - visible = "[CreateAccoladeView.IsChangingSecondaryType]" - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - tooltip = "[AccoladeType.GetPrimaryMaaUnlockWarning]" - } - } - - icon = { - datacontext = "[AccoladeType.GetSecondaryMaaUnlock]" - visible = "[MenAtArmsType.IsValid]" - texture = "[MenAtArmsType.GetIcon]" - tooltipwidget = { - widget_maa_type_container_tooltip = { - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - } - } - size = { 30 30 } - } - - button_standard = { - visible = "[CreateAccoladeView.IsChangingPrimaryType]" - - onclick = "[CreateAccoladeView.SetSelectedPrimaryType( AccoladeType.Self )]" - onclick = "[CreateAccoladeView.ToggleChangingPrimaryType]" - tooltip = "CREATE_ACCOLADE_SET_PRIMARY_TYPE_TT" - using = tooltip_nw - - text = "SELECT" - } - - button_standard = { - visible = "[CreateAccoladeView.IsChangingSecondaryType]" - - onclick = "[CreateAccoladeView.SetSelectedSecondaryType( AccoladeType.Self )]" - onclick = "[CreateAccoladeView.ToggleChangingSecondaryType]" - tooltip = "CREATE_ACCOLADE_SET_SECONDARY_TYPE_TT" - using = tooltip_nw - - text = "SELECT" - } - } - } - } - } - } - } -} - -types CreateAccoladeWindowTypes -{ - type empty_accolade_type_box = hbox { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - layoutpolicy_horizontal = expanding - text = "CREATE_ACCOLADE_EMPTY_TYPE" - align = nobaseline - } - - debug_square = { - size = { 30 30 } - } - } -} - diff --git a/N3OW/gui/window_culture.gui b/N3OW/gui/window_culture.gui deleted file mode 100644 index df618a09..00000000 --- a/N3OW/gui/window_culture.gui +++ /dev/null @@ -1,2561 +0,0 @@ -###################################################### -##################### CULTURE ######################## -###################################################### - -window = { - name = "culture_window" - datacontext = "[CultureWindow.GetCulture]" - datacontext = "[Culture.GetReformation]" - widgetid = "culture_window" - layer = middle - movable = no - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - position = { 0 0 } - on_start = "[GetVariableSystem.Set( 'culture_tab', 'early' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - on_start = "[GetVariableSystem.Set( 'culture_view_tabs', 'overview' )]" - on_start = "[CultureWindow.HideReformationMode]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - - position = { -90 0 } - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - using = Window_Margins_Sidebar - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CULTURE_WINDOW_CULTURE" - } - - blockoverride "button_close" - { - onclick = "[CultureWindow.Close]" - # shortcut = "innovations_window" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" - } - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( Culture.MakeScope )]" - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 48 } - - vbox = { - name = "acceptance" - visible = "[Not( ObjectsEqual( Culture.Self, GetPlayer.GetCulture ) )]" - spacing = 2 - margin_left = 450 - margin_right = 10 - - text_single = { - name = "acceptance_text" - layoutpolicy_horizontal = expanding - text = "CULTURE_VIEW_ACCEPTANCE" - align = right - autoresize = no - tooltip = "CULTURE_ACCEPTANCE_TOOLTIP" - } - - text_single = { - visible = "[NotEqualTo_CFixedPoint( Culture.GetAcceptanceDiff( GetPlayer.GetCulture ), '(CFixedPoint)0')]" - layoutpolicy_horizontal = expanding - text = "CULTURE_VIEW_ACCEPTANCE_DIFF" - align = right - autoresize = no - tooltip = "CULTURE_ACCEPTANCE_TOOLTIP" - } - - expand = {} - } - - hbox = { - name = "whos_culture" - margin_top = 5 - - vbox = { - layoutpolicy_vertical = expanding - - text_label_center = { - text = "[Culture.GetPlayerRelationString]" - default_format = "#low" - } - - text_single = { - text = "[Culture.GetCreationString]" - max_width = 490 - } - } - } - } - - - hbox = { - name = "tabs" - layoutpolicy_horizontal = expanding - margin_top = 10 - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_view_tabs', 'overview' )]" - onclick = "[CultureWindow.HideReformationMode]" - down = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'overview' )]" - - text_single = { - parentanchor = center - text = "CULTURE_VIEW_OVERVIEW" - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - name = "innovations_tab_tutorial_uses_this" - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_view_tabs', 'innovations' )]" - onclick = "[CultureWindow.HideReformationMode]" - down = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'innovations' )]" - - text_single = { - parentanchor = center - text = "CULTURE_VIEW_INNOVATIONS" - maximumsize = { 400 -1 } - default_format = "#low" - } - } - } - - vbox = { - name = "traditions_and_pillars_tab_tutorial_uses_this" - visible = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'overview' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - container_pillar_item = { - datacontext = "[Culture.GetEthos]" - - blockoverride "icon_size" { - size = { 400 100 } - } - - button_round = { - visible = "[CultureWindow.IsInReformationMode]" - parentanchor = bottom|right - onclick = "[Culture.OpenReplaceEthosWindow]" - position = { -8 -8 } - - tooltip = "CULTURE_CLICK_TO_REPLACE" - - button_change = { - alwaystransparent = yes - parentanchor = center - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - margin = { 10 6 } - text = "[culture_pillars|E]" - default_format = "#low" - align = nobaseline - } - } - - hbox = { - name = "cultural_pillars_block" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 594 104 } - - widget = { - name = "cultural_pillars_collumn_one" - layoutpolicy_horizontal = expanding - - vbox = { - margin_left = 10 - - hbox = { - name = "heritage" - datacontext = "[Culture.GetHeritage]" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 10 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - icon_doctrine = { - visible = "[ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage )]" - size = { 44 44 } - texture = "gfx/interface/icons/culture_pillars/heritage.dds" - } - - icon_doctrine = { - visible = "[Not( ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ))]" - size = { 44 44 } - texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds" - } - - text_multi = { - datacontext = "[Culture.GetHeritage]" - text = "CULTURE_VIEW_HERITAGE_TEXT" - autoresize = yes - max_width = 220 - } - } - - expand = {} - } - - hbox = { - name = "martial" - datacontext = "[Culture.GetMartial]" - layoutpolicy_horizontal = expanding - - # Only show Martial if culture affects martial customs, - # which is only the case if we are able to modify - # the culture pillars. - visible = "[HasDlcFeature( 'diverge_culture' )]" - - spacing = 10 - - icon_doctrine = { - size = { 44 44 } - texture = "[CulturePillar.GetIcon]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 5 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - text_multi = { - text = "CULTURE_VIEW_MARTIAL_CUSTOM_TEXT" - autoresize = yes - max_width = 220 - } - - button_change = { - visible = "[CultureWindow.IsInReformationMode]" - onclick = "[Culture.OpenReplaceMartialWindow]" - - tooltip = "CULTURE_CLICK_TO_REPLACE" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And(CultureReformation.IsReformingSamePillarTypeAs(Culture.GetMartial), Not(CultureWindow.IsInReformationMode))]" - - margin_top = 3 - - progressbar_reform = { - - blockoverride "progressbar_reform_size" - { - size = { 150 14 } - } - - tooltipwidget = { - using = culture_pillar_tooltip_establishing - } - } - - expand = {} - } - } - } - } - } - - widget = { - name = "cultural_pillars_collumn_two" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - margin_left = 10 - - hbox = { - name = "language" - datacontext = "[Culture.GetLanguage]" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 10 - - tooltipwidget = { - using = culture_pillar_tooltip - } - - icon_culture_pillar = { - visible = "[ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage )]" - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - } - - icon_culture_pillar = { - visible = "[Not( ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ))]" - texture = "gfx/interface/icons/culture_pillars/language_diverge.dds" - } - - text_multi = { - datacontext = "[Culture.GetLanguage]" - text = "CULTURE_VIEW_LANGUAGE_TEXT" - autoresize = yes - max_width = 220 - } - - button_adopt_court_language = { - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - onclick = "[ToggleGameViewData( 'language', CulturePillar.Self )]" - enabled = "[Character.CanAdoptCourtLanguage( CulturePillar.Self )]" - tooltip = "ADOPT_COURT_LANGUAGE_CULTURE_WINDOW" - visible = "[And( HasDlcFeature( 'royal_court' ), And( Character.HasRoyalCourt, Not( ObjectsEqual( CulturePillar.Self, Character.GetCourtLanguage ) ) ) )]" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 10 - - tooltip = "CULTURE_AESTHETICS_TOOLTIP" - - icon_culture_pillar = { - texture = "gfx/interface/icons/culture_pillars/aesthetics.dds" - } - - text_multi = { - text = "CULTURE_AESTHETICS" - autoresize = yes - max_width = 220 - } - } - - expand = {} - } - } - } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - margin = { 10 6 } - text = "[traditions|E]" - align = nobaseline - - text_single = { - parentanchor = vcenter|right - position = {-14 0} - text = "[GetDataModelSize(Culture.GetTraditions)]/[Culture.GetMaxNumberOfTraditions]" - tooltip = "[Culture.GetMaxNumberOfTraditionsBreakdown]" - default_format = "#low" - align = nobaseline - } - } - - scrollbox = { - name = "traditions_holder" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbarpolicy_horizontal = always_off - - blockoverride "scrollbox_content" { - vbox = { - fixedgridbox = { - datamodel = "[CultureWindow.GetCultureTraditions]" - visible = "[Not(CultureWindow.IsInReformationMode)]" - flipdirection = yes - addcolumn = 284 - addrow = 180 - datamodel_wrap = 2 - - item = { - container = { - widget = { - name = "exisiting_tradition" - datacontext = "[GuiCultureTradition.GetTradition]" - visible = "[Not(GuiCultureTradition.IsEmpty)]" - size = { 276 168 } - - tooltipwidget = { - using = culture_tradition_tooltip - } - - widget_tradition_icon = { - visible = "[Not(GuiCultureTradition.IsEmpty)]" - - block "icon_size" { - size = { 276 138 } - } - } - - text_label_center = { - name = "name_replacing" - visible = "[Not(GuiCultureTradition.IsEmpty)]" - parentanchor = bottom|hcenter - text = "[CultureTradition.GetNameNoTooltip]" - using = Font_Size_Medium - multiline = yes - align = center - } - } - - widget = { - name = "new_tradition" - datacontext = "[CultureReformation.GetNewTradition]" - visible = "[And(GuiCultureTradition.IsNextAvailable, CultureReformation.IsAddingNewTradition)]" - size = { 276 168} - - tooltipwidget = { - using = culture_tradition_tooltip_establishing - } - - widget_tradition_icon = { - enabled = "[Not(And(CultureReformation.IsAddingNewTradition, GuiCultureTradition.IsNextAvailable))]" - - block "icon_size" { - size = { 276 138 } - } - } - - widget = { - size = { 276 38} - parentanchor = center|hcenter - position = { 0 30 } - - background = { - using = Background_Area_Dark - margin_top = 1 - margin_bottom = 5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - text_single = { - name = "name_adding" - visible = "[GuiCultureTradition.IsEmpty]" - parentanchor = top|hcenter - text = "REFORMATION_NEW_TRADITION_INFO" - using = Font_Size_Small - multiline = yes - max_width = 240 - align = center - } - - widget = { - name = "progressbar_new_tradition" - size = { 100% 100% } - visible = "[And(CultureReformation.IsAddingNewTradition, GuiCultureTradition.IsNextAvailable)]" - - progressbar_reform = { - parentanchor = bottom|hcenter - - blockoverride "progressbar_reform_size" - { - size = { 250 14 } - } - } - } - } - - text_label_center = { - name = "name_replacing" - parentanchor = bottom|hcenter - text = "[CultureTradition.GetNameNoTooltip]" - using = Font_Size_Medium - default_format = "#low" - multiline = yes - align = center - } - } - } - } - } - - fixedgridbox = { - datamodel = "[CultureWindow.GetCultureTraditions]" - visible = "[CultureWindow.IsInReformationMode]" - flipdirection = yes - addcolumn = 284 - addrow = 180 - datamodel_wrap = 2 - - item = { - widget = { - name = "traditions" - datacontext = "[GuiCultureTradition.GetTradition]" - size = { 276 168 } - - tooltip_visible = "[Not(GuiCultureTradition.IsEmpty)]" - - tooltipwidget = { - using = culture_tradition_tooltip - } - - widget_tradition_icon = { - visible = "[Not(GuiCultureTradition.IsEmpty)]" - block "icon_size" { - size = { 276 138 } - } - } - - widget_tradition_selectable_glow = { - visible = "[Or(Not(GuiCultureTradition.IsEmpty), GuiCultureTradition.IsNextAvailable)]" - block "icon_size" { - size = { 276 138 } - } - } - - widget_tradition_empty = { - visible = "[GuiCultureTradition.IsEmpty]" - block "icon_size" { - size = { 276 138 } - } - } - - text_label_center = { - name = "name" - visible = "[Not(GuiCultureTradition.IsEmpty)]" - parentanchor = bottom|hcenter - maximumsize = { 220 44 } - text = "[CultureTradition.GetNameNoTooltip]" - using = Font_Size_Medium - multiline = yes - align = center - elide = right - } - - button_standard = { - visible = "[GuiCultureTradition.IsNextAvailable]" - onclick = "[Culture.OpenAddTraditionWindow]" - size = { 276 138 } - - tooltip = "CULTURE_CLICK_TO_ADD_TRADITION" - - highlight_icon = { - name = "build_new_icon" - parentanchor = center - size = { 45 45 } - alpha = 0.7 - texture = "gfx/interface/icons/flat_icons/plus.dds" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - blend_mode = add - - } - - modify_texture = { - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - } - } - } - } - } - } - } - } - } - - expand = {} - - hbox = { - visible = "[Not(CultureWindow.IsInReformationMode)]" - layoutpolicy_horizontal = expanding - margin = { 10 8 } - spacing = 10 - margin_top = 8 - - hbox = { - visible = "[And( And( HasDlcFeature( 'hybridize_culture' ), Not( ObjectsEqual( Culture.Self, GetPlayer.GetCulture ) ) ), GetPlayer.IsValid )]" - - text_multi = { - name = "no_hybridize_parent" - visible = "[GetPlayer.GetCulture.IsChildOf( Culture.Self )]" - max_width = 580 - autoresize = yes - text = "NO_HYBRIDIZE_INFO_PARENT" - align = nobaseline - default_format = "#weak" - margin_top = 6 - margin_bottom = 6 - } - - text_multi = { - name = "no_hybridize_child" - visible = "[Culture.IsChildOf( GetPlayer.GetCulture )]" - max_width = 580 - autoresize = yes - text = "NO_HYBRIDIZE_INFO_CHILD" - align = nobaseline - default_format = "#weak" - margin_top = 6 - margin_bottom = 6 - } - - text_multi = { - name = "no_hybridize_heritage" - visible = "[And( ObjectsEqual(Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ), And( Not( GetPlayer.GetCulture.IsChildOf( Culture.Self ) ), Not( Culture.IsChildOf( GetPlayer.GetCulture ) ) ) )]" - max_width = 580 - autoresize = yes - text = "NO_HYBRIDIZE_INFO_HERITAGE" - align = nobaseline - default_format = "#weak" - margin_top = 6 - margin_bottom = 6 - } - - button_standard = { - name = "hybridize_tutorial_uses_this" - visible = "[And( Not( ObjectsEqual(Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ) ), And( Not( GetPlayer.GetCulture.IsChildOf( Culture.Self ) ), Not( Culture.IsChildOf( GetPlayer.GetCulture ) ) ) )]" - minimumsize = { 240 0 } - onclick = "[Culture.OpenHybridizationWindow]" - onclick = "[CultureWindow.Close]" - text = "HYBRIDIZE_CULTURE_LABEL" - tooltip = "HYBRIDIZE_CULTURE_TOOLTIP" - using = tooltip_nw - - icon = { - visible = "[Not( GetPlayer.GetCulture.CanHybridize( Culture.Self ) )]" - parentanchor = vcenter|right - position = { -3 0 } - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - alwaystransparent = yes - } - } - } - - button_standard = { - name = "add_tradition" - visible = "[And(ObjectsEqual(Culture.GetCultureHead.Self, GetPlayer ), Not(HasDlcFeature( 'reform_culture' )))]" - text = "ADD_TRADITION_LABEL" - minimumsize = { 240 0 } - onclick = "[Culture.OpenAddTraditionWindow]" - down = "[IsGameViewOpen('add_culture_tradition')]" - tooltip = "ADD_TRADITION_TOOLTIP" - using = tooltip_nw - - icon = { - visible = "[Not( Culture.CanAddTradition )]" - parentanchor = vcenter|right - position = { -3 0 } - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - alwaystransparent = yes - } - } - - expand = {} - - button_standard = { - name = "reform_culture" - visible = "[And(And(ObjectsEqual(Culture.GetCultureHead.Self, GetPlayer ), HasDlcFeature( 'reform_culture' )), GetPlayer.IsValid)]" - enabled = "[Not(Culture.IsReforming)]" - text = "REFORM_CULTURE_LABEL" - minimumsize = { 240 0 } - onclick = "[CultureWindow.ShowReformationMode]" - down = "[IsGameViewOpen('add_culture_tradition')]" - tooltip = "REFORM_CULTURE_TOOLTIP" - using = tooltip_nw - - } - - button_standard = { - name = "diverge" - visible = "[And( ObjectsEqual(Culture.Self, GetPlayer.GetCulture ), HasDlcFeature( 'diverge_culture' ) )]" - minimumsize = { 240 0 } - onclick = "[Culture.OpenDivergenceWindow]" - onclick = "[CultureWindow.Close]" - text = "DIVERGE_CULTURE_LABEL" - tooltip = "DIVERGE_CULTURE_TOOLTIP" - using = tooltip_nw - - #icon debug - icon = { - visible = "[Not( GetPlayer.GetCulture.CanDiverge )]" - parentanchor = vcenter|right - size = { 25 25 } - position = { -3 0 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - alwaystransparent = yes - } - } - - expand = {} - } - - hbox = { - visible = "[CultureWindow.IsInReformationMode]" - layoutpolicy_horizontal = expanding - margin = { 10 8 } - spacing = 10 - margin_top = 8 - - button_standard = { - name = "cancel_reform_culture" - text = "REFORM_CULTURE_CLOSE_LABEL" - minimumsize = { 240 0 } - onclick = "[CultureWindow.HideReformationMode]" - down = "[IsGameViewOpen('add_culture_tradition')]" - tooltip = "REFORM_CULTURE_CLOSE_TOOLTIP" - using = tooltip_nw - } - } - } - - vbox = { - name = "innovations_area_tutorial_uses_this" - widgetid = "innovations_area_tutorial_uses_this" - visible = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'innovations' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - text_label_center = { - text = "CULTURE_WINDOW_INNOVATIONS" - using = Font_Size_Medium - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - background = { - using = Background_Area_Dark - } - - datamodel = "[CultureWindow.GetCultureEras]" - - item = { - vbox_era_tab = {} - } - } - - vbox = { - - - background = { - spriteType = Corneredtiled - alpha = 0.3 - texture = "gfx/interface/colors/gold_darker.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_floral.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.8 - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - } - } - - background = { - spriteType = Corneredtiled - alpha = 0.3 - texture = "gfx/interface/colors/blue.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_floral.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.8 - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - } - } - - layoutpolicy_horizontal = expanding - margin = { 12 12 } - - hbox = { - layoutpolicy_horizontal = expanding - - - visible = "[Or( CultureWindow.GetCulture.HasSpread, Culture.HasFascination )]" - - # FASCINATION - - hbox = { - layoutpolicy_horizontal = expanding - vbox = { - layoutpolicy_vertical = expanding - visible = "[Culture.HasFascination]" - - hbox = { - - # tooltip = "INNOVATION_FASCINATION_MARKER_TOOLTIP" - icon = { - size = { 32 32 } - texture = "gfx/interface/icons/icon_game_concept_innovation_fascination.dds" - } - - spacer = { - size = { 7 0 } - } - - text_label_left = { - name = "fascination_info_tutorial_uses_this" - datacontext = "[CultureWindow.GetCulture]" - text = "CULTURE_WINDOW_HEAD_FASCINATION" - layoutpolicy_horizontal = expanding - } - } - - spacer = { - size = { 0 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - background = { - margin_left = 15 - margin_right = 5 - margin_bottom = 10 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - mirror = horizontal - } - } - - datacontext = "[CultureWindow.GetCulture.GetFascination]" - - vbox = { - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[CultureInnovation.GetName|V]" - align = left|nobaseline - max_width = 170 - } - expand = {} - } - - spacer = { - size = { 0 5 } - } - - hbox = { - visible = "[Not(ObjectsEqual( CultureWindow.GetSelectedCultureEra.GetCultureEra.Self, CultureInnovation.GetCultureEra.Self ))]" - layoutpolicy_horizontal = expanding - text_single = { - text = "INNOVATION_ERA_WITH_ERA_CONCEPT" - align = left|nobaseline - max_width = 170 - } - expand = {} - } - - expand = {} - - spacer = { - size = { 0 5 } - } - - innovation_progress_bar = { - size = { 170 15 } - } - } - expand = {} - } - } - } - - expand = {} - - divider = { - layoutpolicy_vertical = expanding - } - - expand = {} - - # SPREAD INNOVATION - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacer = { - size = { 10 0 } - } - vbox = { - layoutpolicy_vertical = expanding - hbox = { - - icon = { - size = { 32 32 } - texture = "gfx/interface/icons/icon_game_concept_innovation_spread.dds" - } - - spacer = { - size = { 7 0 } - } - - text_label_left = { - datacontext = "[CultureWindow.GetCulture]" - name = "current_spread" - text = "CULTURE_WINDOW_CURRENT_SPREAD" - layoutpolicy_horizontal = expanding - max_width = 268 - } - } - - spacer = { - size = { 0 5 } - } - - hbox = { - - datacontext = "[CultureWindow.GetCulture.GetSpread]" - - background = { - visible = "[CultureWindow.GetCulture.HasSpread]" - margin_left = 15 - margin_right = 5 - margin_bottom = 10 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - mirror = horizontal - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - background = { - visible = "[Not(CultureWindow.GetCulture.HasSpread)]" - margin_left = 15 - margin_right = 20 - margin_bottom = 10 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - mirror = horizontal - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - visible = "[Not(CultureWindow.GetCulture.HasSpread)]" - text_single = { - text = "CULTURE_WINDOW_NO_SPREAD" - max_width = 170 - } - expand = {} - } - - vbox = { - - visible = "[CultureWindow.GetCulture.HasSpread]" - margin_right = 10 - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "[CultureInnovation.GetName|V]" - align = right|nobaseline - max_width = 170 - } - expand = {} - } - - spacer = { - size = { 0 5 } - } - - vbox = { - hbox = { - visible = "[Not(ObjectsEqual( CultureWindow.GetSelectedCultureEra.GetCultureEra.Self, CultureInnovation.GetCultureEra.Self ))]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "INNOVATION_ERA_WITH_ERA_CONCEPT" - align = right|nobaseline - max_width = 170 - } - expand = {} - } - - spacer = { - size = { 0 5 } - } - - innovation_progress_bar = { - size = { 170 15 } - } - } - } - } - - expand = {} - } - } - } - - spacer = { - size = { 0 15 } - } - - text_label_center = { - visible = "[CultureWindow.CanPredictNextSpread]" - name = "next_spread_preview" - text = "CULTURE_WINDOW_NEXT_SPREAD_PREVIEW" - align = center|nobaseline - max_width = 568 - } - } - - scrollbox = { - name = "selected_culture_era" - datacontext = "[CultureWindow.GetSelectedCultureEra]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datacontext = "[GuiCultureEra.GetCultureEra]" - layoutpolicy_horizontal = expanding - spacing = 10 - - state = { - name = "culture_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - visible = "[GuiCultureEra.GetCultureEra.GetType.IsInvalidForPlayerGovernment]" - layoutpolicy_horizontal = expanding - text = "CULTURE_WINDOW_ERA_INNOVATION_BLOCKED_FOR_PLAYER_GOVERNMENT" - margin_bottom = 5 - } - - hbox = { - visible = "[Not(CultureEra.IsActive)]" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - background = { - using = Background_Area - margin = { 10 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 550 - text = "CULTURE_ERA_BLOCKED_BLOCKED_TILE" - autoresize = yes - margin_left = 3 - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin = { 10 5 } - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - text_multi = { - visible = "[Not(CultureEra.CanGainProgress)]" - layoutpolicy_horizontal = expanding - text = "[CultureEra.GetCantGainProgressReason]" - autoresize = no - margin_left = 3 - } - - expand = {} - } - - vbox = { - visible = "[CultureEra.CanGainProgress]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 3 - tooltip = "[CultureEra.GetProgressAndGainBreakdown]" - - progressbar_standard = { - layoutpolicy_horizontal = expanding - value = "[FixedPointToFloat(CultureEra.GetProgress)]" - minimumsize = { 0 25 } - min = 0 - max = 100 - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "[CultureEra.GetCultureEraProgressEstimation]" - } - - expand = {} - } - } - } - } - - vbox = { - name = "era_groups" - datamodel = "[GuiCultureEra.GetCultureEraGroups]" - layoutpolicy_horizontal = expanding - spacing = 20 - - item = { - vbox = { - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - visible = "[GuiCultureEraGroup.HasInnovations]" - layoutpolicy_horizontal = expanding - spacing = 10 - - # Innovation group foldout name - button_expandable_toggle_field = { - text_label_left = { - layoutpolicy_horizontal = expanding - align = left - margin_left = 40 - margin_top = 3 - text = "[GuiCultureEraGroup.GetName]" - } - } - - # Innovation group foldout content (grid) - dynamicgridbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - datamodel = "[GuiCultureEraGroup.GetInnovations]" - datamodel_wrap = 2 - flipdirection = yes - - item = { - flowcontainer = { - margin_right = 10 - margin_bottom = 10 - - flowcontainer = { - datacontext = "[GuiCultureInnovation.GetCultureInnovation]" - direction = horizontal - - allow_outside = yes - using = tooltip_es - ignoreinvisible = yes - - tooltipwidget = { - using = culture_innovation_tooltip - - blockoverride "AfterDescription" - { - container = { - name = "can_select_as_fascination" - visible = "[And(CultureInnovation.CanPlayerSetAsFascination, Not(CultureInnovation.IsFascination) )]" - minimumsize = { 100% 0 } - textbox = { - text = "INNOVATION_CLICK_TO_SELECT_FASCINATION" - autoresize = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - using = DefaultTooltipText - multiline = yes - } - } - } - } - - ######### NOT CLICKABLE ###### - button_standard = { - alwaystransparent = yes - visible = "[Not(And(CultureInnovation.GetCulture.IsPlayerCultureHead, Not(CultureInnovation.IsActive)))]" - down = "[CultureInnovation.IsActive]" - enabled = "[Not(And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive)))]" - size = { 270 92 } - downframe = 3 - upframe = 1 - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 8 - margin_right = 2 - margin_top = 3 - margin_bottom = 1 - - widget = { - size = { 29 24 } - icon = { - name = "skill_icon" - size = { 24 24 } - - datacontext = "[GuiCultureInnovation.GetSkill]" - - texture = "gfx/interface/icons/icon_skills.dds" - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - tooltip = "CULTURE_INNOVATION_FASCINATION_SKILL_TT" - - } - } - - background = { - using = Background_Area_Solid - } - - background = { - texture = "gfx/interface/colors/black.dds" - margin_top = -2 - margin_left = -2 - margin_right = -2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphaMultiply - mirror = horizontal - translate_uv = { 0.3 0 } - } - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.15 - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)1', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.11 0.16 0.20 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)2', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.16 0.07 0.05 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)3', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.08 0.13 0.08 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)4', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.14 0.07 0.14 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)5', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.16 0.16 0.16 1 } - blend_mode = normal - } - } - - text_single = { - max_width = 160 - name = "name_clickable" - visible = "[CultureInnovation.CanBeFascination]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#medium" - align = nobaseline - } - - text_single = { - max_width = 160 - name = "name_unlocked" - visible = "[CultureInnovation.IsActive]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#low" - align = nobaseline - - } - - text_single = { - max_width = 160 - name = "name_blocked" - visible = "[And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive))]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#low" - align = nobaseline - - } - expand = {} - } - - hbox = { - ignoreinvisible = yes - layoutpolicy_horizontal = expanding - background = { - using = Background_Area - alpha = 0.3 - } - widget = { - size = { 90 60 } - - icon_innovation = { - parentanchor = center - blockoverride "mask_rough_edges" - { - using = Mask_Rough_Edges - } - } - } - - widget = { - size = { 165 60 } - alwaystransparent = yes - - # Status Description text - vbox = { - - ignoreinvisible = yes - layoutpolicy_vertical = expanding - expand = {} - - text_single = { - name = "spread_status" - visible = "[CultureInnovation.HasSpreadMarker]" - text = "INNOVATION_SPREAD_SOURCE" - layoutpolicy_horizontal = expanding - default_format = "#weak " - max_width = 165 - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - margin = { 6 0 } - - background = { - visible = "[IsOnTheSilkRoad( CultureInnovation.GetType )]" - using = Background_Area - using = Color_White - tintcolor = { 0.9 0.5 0.2 0.3 } - alpha = 0.6 - margin = { 0 4 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - } - - text_single = { - visible = "[And(IsOnTheSilkRoad( CultureInnovation.GetType ), Not(CultureInnovation.CanBeFascination))]" - alwaystransparent = no - raw_text = "[silk_road_innovation_i|E]" - } - - text_single = { - visible = "[And(IsOnTheSilkRoad( CultureInnovation.GetType ), Not(CultureInnovation.IsActive))]" - alwaystransparent = no - raw_text = "[silk_road_innovation_i|E]" - } - - text_single = { - layoutpolicy_vertical = expanding - visible = "[And(IsOnTheSilkRoad( CultureInnovation.GetType ), Not(CultureInnovation.IsActive))]" - text = "tgp_silk_road_region" - default_format = "#weak" - max_width = 165 - align = nobaseline - } - - - icon = { - visible = "[And(CultureInnovation.IsActive, Not(CultureInnovation.CanBeFascination))]" - texture = "gfx/interface/icons/symbols/icon_check.dds" - size = { 22 22 } - tintcolor = { 0.5 0.85 0.6 0.9 } - } - - text_single = { - name = "known_status" - visible = "[Or(CultureInnovation.IsActive, Not(CultureInnovation.CanBeFascination))]" - text = "[CultureInnovation.GetInnovationState]" - default_format = "#weak" - max_width = 165 - align = top - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 2 - - innovation_progress_bar = { - visible = "[CultureInnovation.CanBeFascination]" - size = { 175 15 } - } - innovation_progress_bar_complete = { - visible = "[CultureInnovation.IsActive]" - size = { 175 15 } - } - - innovation_progress_bar_blocked = { - visible = "[And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive))]" - size = { 175 15 } - } - - } - } - } - expand = {} - } - } - - widget_innovation_progress_banner_fc = { - name = "innovation_banner_widget" - alwaystransparent = yes - parentanchor = top|right - } - } - - ######### CLICKABLE ###### - button_standard = { - texture = "gfx/interface/buttons/button_standard_clean.dds" - visible = "[And(CultureInnovation.GetCulture.IsPlayerCultureHead, Not(CultureInnovation.IsActive))]" - enabled = "[CultureInnovation.CanBeFascination]" - size = { 270 92 } - onclick = "[CultureInnovation.SelectAsFascination]" - down = "[CultureInnovation.IsFascination]" - downframe = 4 - downhoverframe = 5 - upframe = 6 - uphoverframe = 4 - uppressedframe = 5 - - background = { - using = Background_Area - alpha = 0.3 - } - - selection_glow = { - visible = "[CultureInnovation.IsFascination]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 8 - margin_right = 2 - margin_top = 3 - margin_bottom = 1 - - widget = { - size = { 29 24 } - icon = { - name = "skill_icon" - size = { 24 24 } - - datacontext = "[GuiCultureInnovation.GetSkill]" - - texture = "gfx/interface/icons/icon_skills.dds" - framesize = { 60 60 } - frame = "[SkillItem.GetFrame]" - tooltip = "CULTURE_INNOVATION_FASCINATION_SKILL_TT" - - } - - } - - background = { - using = Background_Area_Solid - } - - background = { - texture = "gfx/interface/colors/white.dds" - margin_top = -2 - margin_left = -2 - margin_right = -2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphaMultiply - mirror = horizontal - translate_uv = { 0.3 0 } - } - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.15 - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)1', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.11 0.16 0.20 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)2', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.16 0.07 0.05 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)3', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.08 0.13 0.08 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)4', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.14 0.07 0.14 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[EqualTo_int32( '(int32)5', GuiCultureInnovation.GetSkill.GetFrame )]" - color = { 0.16 0.16 0.16 1 } - blend_mode = normal - } - - modify_texture = { - visible = "[CultureInnovation.IsFascination]" - using = Color_White - blend_mode = overlay - alpha = 0.2 - } - } - - text_single = { - max_width = 160 - name = "name_clickable" - visible = "[CultureInnovation.CanBeFascination]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#high" - align = nobaseline - } - - text_single = { - max_width = 160 - name = "name_unlocked" - visible = "[CultureInnovation.IsActive]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#P" - align = nobaseline - - } - - text_single = { - max_width = 160 - name = "name_blocked" - visible = "[And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive))]" - layoutpolicy_horizontal = expanding - text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME" - default_format = "#low" - align = nobaseline - - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - widget = { - size = { 90 60 } - - icon_innovation = { - parentanchor = center - position = { 2 0 } - blockoverride "mask_rough_edges" - { - using = Mask_Rough_Edges - } - } - } - - widget = { - size = { 165 60 } - - # Status Description text - vbox = { - layoutpolicy_vertical = expanding - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[IsOnTheSilkRoad( CultureInnovation.GetType )]" - spacing = 4 - margin = { 6 0 } - margin_bottom = 3 - - background = { - using = Background_Area - using = Color_White - tintcolor = { 0.9 0.5 0.2 0.3 } - alpha = 0.6 - margin = { 2 4 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - } - - text_single = { - - raw_text = "[silk_road_innovation_i|E]" - default_format = "#weak" - max_width = 165 - align = top - - } - - text_single = { - - text = "tgp_silk_road_region" - default_format = "#weak" - max_width = 165 - align = top - - } - - expand = {} - } - - text_single = { - name = "spread_status" - visible = "[CultureInnovation.HasSpreadMarker]" - text = "INNOVATION_SPREAD_SOURCE" - layoutpolicy_horizontal = expanding - default_format = "#weak " - max_width = 165 - } - - text_single = { - name = "known_status" - visible = "[And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive))]" - text = "[CultureInnovation.GetInnovationState]" - default_format = "#weak " - layoutpolicy_horizontal = expanding - max_width = 165 - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 2 - - innovation_progress_bar = { - visible = "[Not(And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive)))]" - size = { 177 15 } - } - - innovation_progress_bar_blocked = { - visible = "[And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive))]" - size = { 177 15 } - } - } - } - } - expand = {} - } - - expand = {} - } - - widget_innovation_progress_banner_fc = { - name = "innovation_banner_widget" - parentanchor = top|right - widgetanchor = top|right - } - } - - } - } - } - } - } - } - } - - background = { - name = "gray_overlay" - visible = "[GuiCultureEra.GetCultureEra.GetType.IsInvalidForPlayerGovernment]" - using = Background_Area_Border_Solid - tintcolor = { 0.5 0.5 0.5 0.3 } - alwaystransparent = no - margin = { 10 10 } - } - } - } - } - } - - culture_head_vbox = { - visible = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'innovations' )]" - - blockoverride "margin_top_block" {} - blockoverride "culture_head_portrait" { - portrait_head_small = { - name = "culture_head_portrait" - } - } - } - culture_head_vbox = { - visible = "[GetVariableSystem.HasValue( 'culture_view_tabs', 'overview' )]" - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types CultureWindow -{ - type vbox_era_tab = vbox { - datacontext = "[GuiCultureEra.GetCultureEra]" - layoutpolicy_horizontal = expanding - - tooltipwidget = { - using = culture_era_tooltip - } - - using = tooltip_se - - spacer = { - visible = "[GuiCultureEra.IsSelected]" - size = { 150 0 } - - state = { - name = _show - size = { 135 0 } - duration = 0.3 - } - - state = { - name = _hide - size = { 0 0 } - duration = 0.3 - } - } - - button = { - layoutpolicy_horizontal = expanding - size = { 0 128 } - onclick = "[PdxGuiTriggerAllAnimations('culture_refresh')]" - scissor = yes - - state = { - name = _mouse_click - on_finish = "[GuiCultureEra.Select]" - } - - highlight_icon = { - parentanchor = center - size = { 248 128 } - texture = "[CultureEra.GetType.GetIllustration]" - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_culture_era_tab.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - } - - highlight_icon = { - visible = "[Not(CultureEra.IsActive)]" - parentanchor = center - size = { 248 128 } - texture = "[CultureEra.GetType.GetIllustration]" - tintcolor = { 0 0 0 0.5 } - } - - ##### FRAYED EDGES #### - widget = { - parentanchor = left - size = { 6 128 } - - background = { - using = Background_Area_Solid - spriteType = Corneredtiled - spriteborder = { 20 20 } - spriteborder_right = 11 - margin = { 0 20 } - margin_left = 10 - } - } - - widget = { - parentanchor = right - size = { 6 128 } - - background = { - using = Background_Area_Solid - mirror = horizontal - spriteType = Corneredtiled - spriteborder = { 20 20 } - spriteborder_right = 11 - margin = { 0 20 } - margin_right = 10 - } - } - - text_multi = { - visible = "[GuiCultureEra.IsSelected]" - size = { 100% 100% } - margin = { 5 10 } - autoresize = no - text = "[CultureEra.GetNameNoTooltip]" - align = top|hcenter - default_format = "#low" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - - text_label_center = { - visible = "[Not(CultureEra.IsActive)]" - parentanchor = bottom|hcenter - position = { 0 -8 } - text = "CULTURE_ERA_INNOVATION_COUNT" - default_format = "#low" - } - - text_label_center = { - visible = "[CultureEra.IsActive]" - parentanchor = bottom|hcenter - position = { 0 -8 } - text = "CULTURE_ERA_INNOVATION_COUNT_JOIN_LEAVE" - } - } - } - - type icon_innovation_no_context = icon { - size = { 90 60 } - - icon = { - texture = "[CultureInnovation.GetIcon]" - size = { 90 60 } - } - - icon = { - texture = "[CultureInnovation.GetType.GetCultureEraType.GetFrame]" - size = { 90 60 } - } - } - - type icon_innovation_type_no_context = icon { - size = { 90 60 } - - icon = { - texture = "[CultureInnovationType.GetIcon]" - size = { 90 60 } - } - - icon = { - texture = "[CultureInnovationType.GetCultureEraType.GetFrame]" - size = { 90 60 } - } - } - - type icon_innovation = icon { - size = { 90 60 } - - icon = { - texture = "[CultureInnovation.GetIcon]" - size = { 90 60 } - - block "mask_rough_edges" {} - - modify_texture = { - name = "shimmer" - visible = "[Not(CultureInnovation.IsActive)]" - texture = "gfx/interface/component_effects/effect_shimmer.dds" - blend_mode = colordodge - translate_uv = { 0.2 0.2 } - } - - state = { - name = shimmer - next = pause - duration = 1.2 - trigger_when = "[CultureInnovation.IsFascination]" - bezier = { 0 0.9 1 0.4 } - - modify_texture = { - name = "shimmer" - translate_uv = { -1 1 } - } - } - - state = { - # reset the UV coordinates after a little while so player does not notice :) - - name = pause - duration = 0 - delay = 5 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - } - } - - state = { - name = _show - duration = 0 - - modify_texture = { - name = "shimmer" - translate_uv = { 1 -1 } - } - } - } - - icon = { - visible = "[Not(CultureInnovation.IsActive)]" - size = { 100% 100% } - texture = "[CultureInnovation.GetIcon]" - tintcolor = { 0 0 0 0.1 } - } - - highlight_icon = { - visible = "[Not(CultureInnovation.CanGainProgress)]" - size = { 100% 100% } - texture = "[CultureInnovation.GetIcon]" - tintcolor = { 0 0 0 0.1 } - } - - } - - type innovation_progress_bar = progressbar_standard { - name = "innovation_progressbar" - visible = "[Not(CultureInnovation.IsActive)]" - alwaystransparent = yes - - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - min = 0 - max = 100 - color = { 0.9 0.9 0.9 1 } - - progresstexture = "gfx/interface/progressbars/progress_domicile_banner.dds" - noprogresstexture = "gfx/interface/progressbars/progress_domicile_banner_bg.dds" - text_single = { - visible = "[Not(And(Not(CultureInnovation.CanBeFascination),Not(CultureInnovation.IsActive)))]" - parentanchor = center - text = "[CultureInnovation.GetInnovationState]" - default_format = "#high" - alpha = 0.7 - align = nobaseline - fontsize = 14 - position = { 0 -1 } - max_width = 251 - } - } - - type innovation_progress_bar_blocked = progressbar_standard { - name = "innovation_progressbar_completed" - alwaystransparent = yes - - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - color = { 0.5 0.5 0.5 0.8 } - min = 0 - max = 100 - - progresstexture = "gfx/interface/progressbars/progress_domicile_banner_bg.dds" - noprogresstexture = "gfx/interface/progressbars/progress_domicile_banner_bg.dds" - } - - type innovation_progress_bar_complete = progressbar_standard { - name = "innovation_progressbar_completed" - visible = "[CultureInnovation.IsActive]" - alwaystransparent = yes - - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - color = { 0.6 0.55 0.25 0.65 } - min = 0 - max = 100 - - text_single = { - visible = "[Not(CultureInnovation.IsActive)]" - parentanchor = center - text = "[CultureInnovation.GetInnovationState]" - default_format = "#high" - alpha = 0.7 - align = nobaseline - fontsize = 14 - position = { 0 -1 } - max_width = 251 - } - } - - type culture_head_vbox = vbox { - layoutpolicy_horizontal = expanding - - hbox = { - name = "no_culture_head" - visible = "[And(Not(CultureWindow.IsInReformationMode), Not( Culture.HasCultureHead ))]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - background = { - using = Background_Area - } - - text_single = { - text = "CULTURE_WINDOW_NO_HEAD" - } - - text_single = { - text = "[Culture.GetNoHeadReason]" - } - } - - hbox = { - name = "culture_head_tutorial_uses_this" - datacontext = "[Culture.GetCultureHead]" - visible = "[And(Not(CultureWindow.IsInReformationMode), Culture.HasCultureHead)]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - block "margin_top_block" - { - margin_top = 10 - } - spacing = 10 - - background = { - using = Background_Area - } - - vbox = { - layoutpolicy_vertical = expanding - expand = {} - - block "culture_head_portrait" - { - portrait_head = { - name = "culture_head_portrait" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 420 - text = "CULTURE_WINDOW_CULTURE_HEAD_TITLE" - } - - spacer = { - visible = "[Not(EqualTo_uint32( CultureWindow.GetCulture.GetID, GetPlayer.GetCulture.GetID ))]" - size = { -1 10 } - } - - vbox = { - name = "culture_head_influence_info" - visible = "[EqualTo_uint32( CultureWindow.GetCulture.GetID, GetPlayer.GetCulture.GetID )]" - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[Not(CultureWindow.ShouldShowMyCultureInfo)]" - layoutpolicy_horizontal = expanding - text = "[CultureWindow.GetCultureHeadInfo( Character.Self )]" - autoresize = yes - max_width = 415 - align = left - } - - text_multi = { - visible = "[CultureWindow.ShouldShowMyCultureInfo]" - layoutpolicy_horizontal = expanding - text = "CULTURE_WINDOW_CULTURE_HEAD_NOTPLAYER" - default_format = "#low" - autoresize = yes - max_width = 415 - align = left - } - } - - text_multi = { - visible = "[And(Not( ObjectsEqual( Culture.GetCultureHead.Self, GetPlayer.Self ) ) , Not(EqualTo_uint32( CultureWindow.GetCulture.GetID, GetPlayer.GetCulture.GetID )) )]" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 420 - text = "CULTURE_WINDOW_NOT_CULTURE_HEAD_INFO" - } - - spacer = { - size = { -1 10 } - } - } - } - } - } -} - - -types CultureShared -{ - type container_pillar_item = container { - using = tooltip_ws - - tooltipwidget = { - using = culture_pillar_tooltip - } - - highlight_icon = { - name = "icon" - size = { 592 130 } - texture = "[CulturePillar.GetIcon]" - using = Mask_Rough_Edges - } - - widget = { - size = { 100% 100% } - - vbox = { - margin_bottom = 5 - expand = {} - - text_label_center = { - name = "name" - text = "[CulturePillar.GetNameNoTooltip]" - default_format = "#high" - maximumsize = { 150 44 } - fontsize_min = 12 - multiline = yes - align = center - - using = Font_Size_Medium - } - - spacer = { - size = { 0 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - visible = "[And(CultureReformation.IsReformingSamePillarTypeAs(Culture.GetEthos), Not(CultureWindow.IsInReformationMode))]" - - background = { - using = Background_Area_Dark - margin = { 0 5 } - } - - tooltipwidget = { - using = culture_pillar_tooltip_establishing - } - - expand = {} - - text_single = { - text = "REFORM_ETHOS_NEW_NAME" - align = nobaseline - } - - text_single = { - text = "REFORMATION_NEW_TRADITION_INFO" - align = nobaseline - } - - progressbar_reform = { - - blockoverride "progressbar_reform_size" - { - size = { 200 14 } - } - } - - expand = {} - } - } - } - } - - type widget_tradition_icon = widget - { - - icon = { - name = "background" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)0' )]" - size = { 100% 100% } - } - - icon = { - name = "pattern_left" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)1' )]" - size = { 100% 100% } - parentanchor = hcenter - } - - icon = { - name = "pattern_right" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)1' )]" - size = { 100% 100% } - parentanchor = hcenter - mirror = horizontal - } - - icon = { - name = "support" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)2' )]" - size = { 100% 100% } - } - - icon = { - name = "stroke" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)3' )]" - size = { 90% 90% } - parentanchor = center - } - - icon = { - name = "items" - texture = "[CultureTradition.GetLayeredIcon.GetTexture( '(int32)4' )]" - size = { 100% 100% } - parentanchor = center - } - } - - type widget_tradition_selectable_glow = widget - { - - size = { 276 138 } - - button_standard_clean = { - onclick = "[Culture.OpenReplaceTraditionWindow(CultureTradition.Self)]" - size = { 276 138 } - - icon = { - texture = "gfx/interface/icons/flat_icons/circle.dds" - parentanchor = bottom|right - size = { 45 45 } - position = { -1 2 } - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - button_replace = { - visible = "[Not(GuiCultureTradition.IsEmpty)]" - onclick = "[Culture.OpenReplaceTraditionWindow(CultureTradition.Self)]" - parentanchor = bottom|right - size = { 35 35 } - position = { -5 -2 } - - } - } - } - - type widget_tradition_empty = widget - { - - icon = { - name = "background" - texture = "gfx/interface/colors/black.dds" - alpha = 0.3 - size = { 100% 100% } - parentanchor = center - - using = Mask_Rough_Edges - } - } - - type progressbar_reform = progressbar_standard - { - block "progressbar_reform_size" {} - - min = 0 - max = 100 - value = "[CultureReformation.GetProgress]" - } - - type widget_bonus_innovation_progress = widget - { - size = { 100% 100% } - visible = "[CultureInnovation.HasSpreadMarker]" - # we should make sure this tooltip also prints out whether or not you have a potential bonus - tooltip = "[CultureInnovation.GetBonusProgressDescription]" - alwaystransparent = yes - background = { - block "background_block" {} - } - } - - type widget_innovation_progress_banner_fc = flowcontainer - { - visible = "[Or( CultureInnovation.HasSpreadMarker, CultureInnovation.IsFascination )]" - ignoreinvisible = yes - margin_right = 5 - - widget_bonus_innovation_progress = { - size = { 38 56 } - - visible = "[And( CultureInnovation.HasSpreadMarker, CultureInnovation.IsFascination)]" - - blockoverride "background_block" { - texture = "gfx/interface/window_culture/current_fascination_banner.dds" - tintcolor = { 0.7 0.8 1 1 } - } - - icon = { - parentanchor = center - position = { 0 -6 } - size = { 32 32 } - texture = "gfx/interface/icons/icon_game_concept_innovation_spread.dds" - alpha = 0.8 - } - } - - widget_bonus_innovation_progress = { - size = { 38 56 } - - visible = "[Not(CultureInnovation.IsFascination)]" - - blockoverride "background_block" { - texture = "gfx/interface/window_culture/current_fascination_banner.dds" - tintcolor = { 0.7 0.8 1 1 } - } - - icon = { - parentanchor = center - position = { 0 -6 } - size = { 32 32 } - texture = "gfx/interface/icons/icon_game_concept_innovation_spread.dds" - alpha = 0.8 - } - } - - widget_bonus_innovation_progress = { - size = { 38 56 } - - visible = "[CultureInnovation.IsFascination]" - - blockoverride "background_block" { - texture = "gfx/interface/window_culture/current_fascination_banner.dds" - modify_texture = { - blend_mode = overlay - using = Color_Intense_Orange - alpha = 0.7 - } - } - - icon = { - parentanchor = center - position = { -1 -6 } - size = { 32 32 } - texture = "gfx/interface/icons/icon_game_concept_innovation_fascination.dds" - alpha = 0.8 - } - } - } -} - -template innovation_skill_colors -{ - modify_texture = { - using = Color_Red - blend_mode = normal - } -} diff --git a/N3OW/gui/window_decisions.gui b/N3OW/gui/window_decisions.gui deleted file mode 100644 index a78950bf..00000000 --- a/N3OW/gui/window_decisions.gui +++ /dev/null @@ -1,853 +0,0 @@ -window = { - name = "decisions_view" - parentanchor = top|right - layer = windows_layer - movable = no - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.ListenFor( 'decision_tabs' )]" - oncreate = "[PdxGuiTabs.AddTab( 'decision' )]" - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[PdxGuiTabs.RemoveTab( 'great_projects' )]" - on_start = "[PdxGuiTabs.AddTabIf( 'great_projects', Or(Not(IsDataModelEmpty(DecisionsView.GetAvailableGreatProjectItems)), Or(Not(IsDataModelEmpty(DecisionsView.GetPlannedGreatProjectItems)), Not(IsDataModelEmpty(DecisionsView.GetOngoingGreatProjectItems)))))]" - - on_start = "[PdxGuiTabs.SetTabByKey( DecisionsView.SelectedTab )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - datacontext = "[GetPlayer]" - text = "DECISIONS_VIEW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[DecisionsView.Close]" - onclick = "[CloseGameView( 'great_project' )]" - } - } - - hbox_tab_buttons = { - name = "decision_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'decision_tab' )]" - } - } - - ### DECISIONS ### - scrollbox = { - name = "decision_scrollarea" - widgetid = "decisions_panel_decisions_scrollarea" #lesson_china_decisions_open uses this - visible = "[PdxGuiTabs.IsTabSet( 'decision' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/skinned/illustrations/decisions.dds" - fittype = end - alpha = 0.4 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "decision_groups_container" - spacing = 2 - - layoutpolicy_horizontal = expanding - - datamodel = "[DecisionsView.GetDecisionGroupItems]" - item = { - vbox_decision_group_foldout = {} - } - } - } - blockoverride "scrollbox_expand" { - expand = {} - } - } - - ### GREAT PROJECTS ### - scrollbox = { - name = "tab_projects" - widgetid = "tab_projects" - visible = "[PdxGuiTabs.IsTabSet( 'great_projects' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - on_start = "[DecisionsView.SetGreatProjectsTabActive( '(bool)yes' )]" - } - - state = { - name = _hide - on_start = "[DecisionsView.SetGreatProjectsTabActive( '(bool)no' )]" - } - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - # EMPTY PROJECT LIST - vbox = { - visible = "[And( IsDataModelEmpty( DecisionsView.GetAvailableGreatProjectItems ), And( IsDataModelEmpty( DecisionsView.GetPlannedGreatProjectItems), IsDataModelEmpty( DecisionsView.GetOngoingGreatProjectItems) ) )]" - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "DECISIONS_VIEW_EMPTY_PROJECTS" - align = hcenter|nobaseline - } - } - - # PROJECTS YOU CAN FUND (planned, need contributions) - text_label_center = { - visible = "[Not( IsDataModelEmpty( DecisionsView.GetPlannedGreatProjectItems))]" - layoutpolicy_horizontal = expanding - - text = "DECISIONS_VIEW_PLANNED_PROJECTS" - } - - vbox = { - datamodel = "[DecisionsView.GetPlannedGreatProjectItems]" - visible = "[Not( IsDataModelEmpty( DecisionsView.GetPlannedGreatProjectItems))]" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - spacing = 10 - - item = { - button_project_item = { - datacontext = "[GreatProjectItem.GetProject]" - layoutpolicy_horizontal = expanding - - blockoverride "can_contribute_text_visible" - { - visible = "[GreatProject.CanPlayerContributeToProject]" # "[DecisionView.CanPlayerContributeToProject( GreatProject.Self )]" - } - } - } - } - - # PROJECTS YOU CAN FUND (ongoing) - text_label_center = { - visible = "[Not( IsDataModelEmpty( DecisionsView.GetOngoingGreatProjectItems))]" - layoutpolicy_horizontal = expanding - - text = "DECISIONS_VIEW_ONGOING_PROJECTS" - - } - - vbox = { - datamodel = "[DecisionsView.GetOngoingGreatProjectItems]" - visible = "[Not( IsDataModelEmpty( DecisionsView.GetOngoingGreatProjectItems))]" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - spacing = 10 - - item = { - button_project_item = { - datacontext = "[GreatProjectItem.GetProject]" - layoutpolicy_horizontal = expanding - - blockoverride "can_contribute_text_visible" - { - visible = "[GreatProject.CanPlayerContributeToProject]" # "[DecisionView.CanPlayerContributeToProject( GreatProject.Self )]" - } - - } - } - } - - # PROJECTS YOU CAN START - text_label_center = { - visible = "[Not( IsDataModelEmpty( DecisionsView.GetAvailableGreatProjectItems))]" - layoutpolicy_horizontal = expanding - - text = "AVAILABLE_DECISIONS_VIEW_PROJECTS" - } - - vbox = { - datamodel = "[DecisionsView.GetAvailableGreatProjectItems]" - visible = "[Not( IsDataModelEmpty( DecisionsView.GetAvailableGreatProjectItems))]" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - spacing = 10 - - item = { - button_available_project_item = { - layoutpolicy_horizontal = expanding - - blockoverride "size_illustration" - { - position = { -2 0 } - size = { 250 48 } - } - } - } - } - - - - expand = {} - } - } - } - - expand = {} - } - } - } -} - -types Decisions -{ - type vbox_decision_group_foldout = vbox { - datacontext = "[DecisionGroupItem.GetType]" - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[DecisionGroupItem.GetGroupTitle]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "decisions_in_group" - datamodel = "[DecisionGroupItem.GetDecisions]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 527 - addrow = "[Select_float( DecisionGroupType.HasTag('extra_big_button'), '(float)70.0', Select_float( DecisionGroupType.HasTag('big_button'), '(float)60.0', '(float)50.0' ))]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - button_decision_entry_cached = { - datacontext = "[DecisionsViewItem.GetDecision]" - - layoutpolicy_horizontal = expanding - - blockoverride "button_size" { - minimumsize = "[Select_CVector2f( DecisionGroupType.HasTag('extra_big_button'), '(CVector2f)527,65', Select_CVector2f( DecisionGroupType.HasTag('big_button'), '(CVector2f)527,55', '(CVector2f)527,45' ) )]" - } - - blockoverride "size_illustration" { - minimumsize = "[Select_CVector2f( DecisionGroupType.HasTag('extra_big_button'), '(CVector2f)527,65', Select_CVector2f( DecisionGroupType.HasTag('big_button'), '(CVector2f)527,55', '(CVector2f)527,45' ) )]" - } - - blockoverride "decision_texture_icon" { - texture = "[DecisionsViewItem.GetDecisionPicture]" - } - - blockoverride "decision_texture_highlight" { - texture = "[DecisionsViewItem.GetDecisionPicture]" - } - - onclick = "[DecisionsViewItem.OnSelect]" - onclick = "[PdxGuiTriggerAllAnimations('decisions_detail_refresh')]" - down = "[DecisionsViewItem.IsSelected]" - } - expand = {} - } - } - } - } - } - - type button_decision_entry_cached = button_decision_entry { - blockoverride "illustration_possible_check" { - visible = "[DecisionsViewItem.IsPossibleForPlayer]" - } - blockoverride "illustration_not_possible_check" { - visible = "[Not(DecisionsViewItem.IsPossibleForPlayer)]" - } - blockoverride "title_possible_check" { - visible = "[DecisionsViewItem.IsPossibleForPlayer]" - } - blockoverride "title2_not_possible_check" { - visible = "[Not(DecisionsViewItem.IsPossibleForPlayer)]" - } - blockoverride "title_not_possible_check" { - visible = "[Not(DecisionsViewItem.IsPossibleForPlayer)]" - } - } - - type button_decision_entry = button_standard { - block "button_size" { - size = { 300 45 } - } - - tooltipwidget = { - decision_tooltip = {} - } - - widget = { - name = "cram_study_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetDecision('tgp_china_study_confucian_classics_decision'), Decision.Self)]" - } - - widget = { - name = "renounce_governorship_decision_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetDecision('renounce_governorship_decision'), Decision.Self)]" - } - - widget = { - name = "tgp_japan_assert_regional_dominion_government_decision_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetDecision('tgp_japan_assert_regional_dominion_government_decision'), Decision.Self)]" - } - - widget = { - name = "tgp_japan_become_shogun_decision_tutorial_highlight" - size = { 100% 100% } - visible = "[ObjectsEqual( GetDecision('tgp_japan_become_shogun_decision'), Decision.Self)]" - } - - - margin_widget = { - parentanchor = right|vcenter - scissor = yes - - margin = { 2 2 } - - block "size_illustration" { - size = { 100% 100% } - } - - proportional_icon = { - name = "illustration" - block "illustration_possible_check" { - visible = "[Decision.IsPossibleForPlayer]" - } - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - - block "icon_alpha" { - alpha = 0.6 - } - - block "decision_texture_icon" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - proportional_icon = { - block "illustration_not_possible_check" { - visible = "[Not(Decision.IsPossibleForPlayer)]" - } - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - - enabled = no - - alpha = 0.6 - - block "decision_texture_highlight" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - # Vignette - margin_widget = { - parentanchor = center - size = { 100% 100% } - - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - hbox = { - margin = { 15 0 } - margin_right = 10 - - text_single = { - name = "title" - block "title_possible_check" { - visible = "[Decision.IsPossibleForPlayer]" - } - layoutpolicy_horizontal = growing - - text = "[Decision.GetTitleForPlayer]" - align = nobaseline - block "default_format" { - default_format = "#clickable" - } - } - - text_single = { - name = "title2" - block "title2_not_possible_check" { - visible = "[Not( Decision.IsPossibleForPlayer )]" - } - layoutpolicy_horizontal = growing - - text = "[Decision.GetTitleForPlayer]" - align = nobaseline - block "default_format" { - default_format = "#low" - } - } - - highlight_icon = { - name = "not_possible" - block "title_not_possible_check" { - visible = "[Not( Decision.IsPossibleForPlayer )]" - } - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } -} - -types Project -{ - type hbox_project_contribution_status = hbox { - - margin = { 10 5 } - margin_left = 5 - - block "background" - { - background = { - using = Background_Area_Dark - } - } - - hbox = { - text_single = { - text = "GREAT_PROJECT_REQUIRED_CONTRIBUTION_RATIO" - align = nobaseline - - margin = { 10 5 } - } - } - - # cost - block "cost_section" - { - vbox_great_project_cost = { - visible = "[GreaterThan_int32( GreatProject.GetRequiredContributionCount, GreatProject.GetRequiredFundedContributionCount )]" - - margin = { 10 5 } - - blockoverride "title_visible" { visible = no } - - blockoverride "cost" { - text = "[GreatProject.GetMandatoryContributionsCost( GetPlayer )]" - } - } - } - } - - type button_project_item = widget { - size = { 526 180 } - - tooltip = "[GreatProject.GetType.GetGreatProjectItemDescriptionTooltip]" - - # background - margin_widget = { - size = { 100% 100% } - scissor = yes - - margin = { 2 2 } - - proportional_icon = { - name = "illustration" - size = { 100% 100% } - alpha = 0.6 - - block "great_project_texture_icon" { - texture = "[GreatProject.GetIllustration]" - } - } - } - - # Vignette - margin_widget = { - parentanchor = center - size = { 100% 100% } - - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - button_standard_clean = { - onclick = "[OpenGameViewData('great_project', GreatProject.Self )]" - size = { 100% 100% } - name = "great_project_button" - - # info - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_top = 10 - spacing = 5 - - background = { - using = Background_Area_Dark - margin = { 3 0 } - margin_bottom = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - highlight_icon = { - size = { 30 30 } - texture = "[GreatProject.GetIcon]" - } - - text_single = { - text = "[GreatProject.GetName]" - align = hcenter|nobaseline - - block "default_format" { - default_format = "#clickable" - } - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 2 - - # Owner portrait - hbox = { - layoutpolicy_horizontal = expanding - margin = { 2 0 } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 3 - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - - text_single = { - block "can_contribute_text_visible" - { - visible = "[And( GreatProject.AcceptsContributionsFrom( GetPlayer ), Not( GreatProject.IsUnderConstruction ))]" - } - layoutpolicy_horizontal = expanding - - text = "GREAT_PROJECT_CAN_CONTRIBUTE" - align = left - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - } - } - - hbox_project_contribution_status = { - visible = "[Not( GreatProject.IsUnderConstruction )]" - - blockoverride "contributions_source" - { - datamodel = "[GreatProjectItem.GetMandatoryContributions]" - } - } - } - - expand = {} - - portrait_head_small = { - name = "portrait_project_owner" - datacontext = "[GreatProject.GetOwner]" - visible = "[And( And( Character.IsValid, GreatProject.GetType.ShouldShowOwnerPortrait ), Not( Character.IsLocalPlayer ) )]" - } - } - - vbox = { - visible = "[GreatProject.IsUnderConstruction]" - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[GreatProject.AcceptsContributionsFrom( GetPlayer )]" - - text = "GREAT_PROJECT_CAN_CONTRIBUTE" - align = left - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - margin_left = 10 - } - - expand = {} - - text_single = { - visible = "[GreatProject.IsUnderConstruction]" - - text = "GREAT_PROJECT_CONSTRUCTION_TIME_UNTIL_COMPLETION" - align = right - default_format = "glow_color:{0.1,0.1,0.1,1.0}" - - margin_right = 10 - } - } - - # construction progress - progressbar_standard = { - name = "great_project_progressbar" - visible = "[GreatProject.IsUnderConstruction]" - size = { 522 15 } - alwaystransparent = yes - - direction = horizontal - - value = "[GreatProject.GetConstructionProgress]" - - tooltip = "[GreatProject.GetConstructionEndDateDesc]" - } - } - } - } - } - } - - type button_available_project_item = widget { - datacontext = "[AvailableGreatProjectItem.GetProjectType]" - size = { 526 150 } - name = "great_project_button" - - tooltip = "[GreatProjectType.GetGreatProjectItemDescriptionTooltip]" - - margin_widget = { - size = { 100% 100% } - scissor = yes - - margin = { 2 2 } - - proportional_icon = { - name = "illustration" - visible = "[AvailableGreatProjectItem.CanStartPlanning]" - size = { 100% 100% } - - texture = "[GreatProjectType.GetIllustration]" - alpha = 0.6 - } - - proportional_icon = { - name = "illustration_disabled" - visible = "[Not( AvailableGreatProjectItem.CanStartPlanning )]" - size = { 100% 100% } - - enabled = no - - texture = "[GreatProjectType.GetIllustration]" - alpha = 0.6 - } - } - - # Vignette - margin_widget = { - parentanchor = center - size = { 100% 100% } - - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - button_standard_clean = { - onclick = "[OpenGameViewData('plan_great_project', GreatProjectType.Self ) ]" - size = { 100% 100% } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_top = 10 - spacing = 5 - - background = { - using = Background_Area_Dark - margin = { 3 0 } - margin_bottom = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - highlight_icon = { - size = { 30 30 } - texture = "[GreatProjectType.GetIcon]" - } - - text_single = { - text = "[AvailableGreatProjectItem.GetProjectItemName]" - align = left|nobaseline - max_width = 490 - - block "default_format" { - default_format = "#clickable" - } - } - - expand = {} - } - - expand = {} - - hbox = { - visible = "[Not( AvailableGreatProjectItem.CanStartPlanning )]" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_left = 10 - spacing = 5 - - background = { - using = Background_Area_Dark - } - - highlight_icon = { - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - text_single = { - text = "[AvailableGreatProjectItem.GetProjectStatus]" - align = left|nobaseline - max_width = 510 - - block "default_format" { - default_format = "#low" - } - } - - expand = {} - } - } - } - } -} - diff --git a/N3OW/gui/window_decisions_detail.gui b/N3OW/gui/window_decisions_detail.gui deleted file mode 100644 index 58b9cc3c..00000000 --- a/N3OW/gui/window_decisions_detail.gui +++ /dev/null @@ -1,320 +0,0 @@ -###################################################### -############## DECISIONS DETAIL VIEW ################# -###################################################### - -window = { - name = "decisiondetail_view" - parentanchor = top|right - position = "[DecisionDetailView.GetDynamicPosition]" # can be changed by DECISION_DETAILS_VIEW_POSITION_DEFAULT and DECISION_DETAILS_VIEW_POSITION_COURT in 00_graphics.txt - size = { 630 940 } - layer = middle - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - position = "[DecisionDetailView.GetDynamicPosition]" - on_start = "[GetVariableSystem.Clear('show_decision_next_step')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - datacontext = "[DecisionDetailView.GetDecision]" - using = Window_Margins - - state = { - name = "decisions_detail_refresh" - alpha = 0.5 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - on_start = "[GetVariableSystem.Clear('show_decision_next_step')]" - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[DecisionDetailView.GetTitle]" - } - - blockoverride "button_close" - { - onclick = "[DecisionDetailView.Close]" - } - } - - decision_detail_view_content = { - margin_top = -10 - } - - decision_detail_buttons = {} - } -} - - -types DecisionDetailViewTypes -{ - type decision_detail_description_content = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[DecisionDetailView.IsDefaultWidgetShown]" - - text_multi = { - name = "description" - minimumsize = { 515 -1 } - maximumsize = { 515 -1 } - margin = { 15 15 } - autoresize = yes - text = "[DecisionDetailView.GetDescription]" - using = Font_Size_Small - } - - scrollbox = { - name = "description_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - name = "effect" - visible = "[DecisionDetailView.HasEffect]" - layoutpolicy_horizontal = expanding - - background = { - name = "illustrations" - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - text = "DECISION_DETAIL_EFFECTS" - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - max_width = 515 - autoresize = yes - text = "[DecisionDetailView.GetEffectDescription]" - } - } - - vbox = { - name = "requirements" - visible = "[DecisionDetailView.HasRequirements]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "DECISION_DETAIL_REQUIREMENTS" - } - - text_multi = { - alwaystransparent = no - minimumsize = { 515 -1 } - maximumsize = { 515 -1 } - margin = { 15 15 } - autoresize = yes - text = "[DecisionDetailView.GetRequirementsDescription]" - } - } - - expand = {} - - } - } - - blockoverride "scrollbox_background_fade" {} - } - - vbox = { - margin_bottom = 4 - - dynamicgridbox = { - name = "additional_widgets_desc_container" - } - } - } - - type decision_custom_widget_content = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Not(DecisionDetailView.IsDefaultWidgetShown)]" - - dynamicgridbox = { - name = "custom_widgets_container" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - type decision_detail_view_content = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 550 220 } - visible = "[Not(DecisionDetailView.IsOpenedFromRoyalCourt) ]" - - proportional_icon = { - name = "illustrations" - size = { 100% 100% } - texture = "[DecisionDetailView.GetDecisionPicture]" - alpha = 0.7 - using = Mask_Rough_Edges - - } - } - - decision_detail_description_content = {} - decision_custom_widget_content = {} - } - - type decision_confirm_button = button_primary { - enabled = "[DecisionDetailView.CanConfirm]" - tooltip = "[DecisionDetailView.GetConfirmTooltip]" - onclick = "[DecisionDetailView.Confirm]" - - text = "[DecisionDetailView.GetConfirmText]" - - default_clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - clicksound = "[DecisionDetailView.GetConfirmClickSound]" - } - - type decision_detail_buttons = vbox { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - margin_bottom = 10 - spacing = 5 - - text_single = { - name = "cost" - visible = "[DecisionDetailView.HasCost]" - text = "[DecisionDetailView.GetCostDescription]" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - spacer = { - size = { 10 2 } - } - - # default step - widget = { - visible = "[Not(GetVariableSystem.HasValue( 'show_decision_next_step', 'true' ))]" - size = { 380 50 } - - # next step button - button_primary = { - size = { 100% 100% } - - visible = "[DecisionDetailView.HasNextStep]" - - tooltip = "[DecisionDetailView.GetConfirmTooltip]" - onclick = "[GetVariableSystem.Set('show_decision_next_step', 'true')]" - onclick = "[DecisionDetailView.ToggleCustomWidgetState]" - - text = "[DecisionDetailView.GetNextStepButtonLabel]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_advance" - } - - decision_confirm_button = { - visible = "[Not( DecisionDetailView.HasNextStep )]" - size = { 100% 100% } - } - - widget = { - name = "cram_study_start_tutorial_highlight" #lesson_china_decisions uses this - size = { 100% 100% } - visible = "[ObjectsEqual( GetDecision('tgp_china_study_confucian_classics_decision'), Decision.Self)]" - } - } - - hbox = { - visible = "[GetVariableSystem.HasValue( 'show_decision_next_step', 'true' )]" - - spacing = 10 - - button_standard_back = { - name = "back" - size = { 180 50 } - visible = "[DecisionDetailView.HasNextStep]" - onclick = "[GetVariableSystem.Clear('show_decision_next_step')]" - onclick = "[DecisionDetailView.ToggleCustomWidgetState]" - text = "BACK_LABEL" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - - decision_confirm_button = { - size = { 250 50 } - } - } - - spacer = { - size = { 0 2 } - } - - button_checkbox_label = { - onclick = "[Decision.OnToggleImportantForPlayer]" - - blockoverride "checkbox" - { - checked = "[Decision.IsImportantForPlayer]" - } - - blockoverride "text" - { - text = "DECISIONS_VIEW_MAJOR_TOGGLE" - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/window_diarchy.gui b/N3OW/gui/window_diarchy.gui deleted file mode 100644 index 48832814..00000000 --- a/N3OW/gui/window_diarchy.gui +++ /dev/null @@ -1,1143 +0,0 @@ - -window = { - name = "diarchy_window" - widgetid = "diarchy_window" - visible = "[And( DiarchyWindow.IsVisible, Not(IsGameViewOpen('barbershop')) )]" - layer = middle - allow_outside = yes - size = {720 800} - - using = Window_Position_CharacterList_Small - using = Window_Background - using = Window_Decoration - using = Window_Movable - - widget = { - name = "tutorial_tab_visible_your_regent" - widgetid = "tutorial_tab_visible_your_regent" - visible = "[DiarchyWindow.IsYourDiarchyShown]" - size = {0 0} - } - - widget = { - name = "tutorial_tab_visible_your_liege" - widgetid = "tutorial_tab_visible_your_liege" - visible = "[DiarchyWindow.IsLiegeDiarchyShown]" - size = {0 0} - } - - position = { -10 0 } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - position_x = -10 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - - position_x = 100 - } - - vbox = { - datacontext = "[DiarchyWindow.GetDiarchyOwner]" - datacontext = "[Character.GetDiarchy]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "DIARCHY_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[DiarchyWindow.Close]" - } - } - - hbox = { - name = "your_liege_buttons" - visible = "[And(Not( DiarchyWindow.GetCharacter.IsIndependentRuler ), Not(DiarchyWindow.IsAvailableDiarchsShown))]" - layoutpolicy_horizontal = expanding - - button_tab = { - name = "your_regent_tab_tutorial_uses_this" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_YOUR_TAB" - - onclick = "[DiarchyWindow.SetYourDiarchyTab]" - down = "[DiarchyWindow.IsYourDiarchyShown]" - - } - - button_tab = { - name = "liege_tab_tutorial_uses_this" - visible = "[Not( DiarchyWindow.GetCharacter.IsIndependentRuler )]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_LIEGE_TAB" - - onclick = "[DiarchyWindow.SetLiegeDiarchyTab]" - down = "[DiarchyWindow.IsLiegeDiarchyShown]" - } - } - - hbox = { - visible = "[Not(DiarchyWindow.IsAvailableDiarchsShown)]" - datacontext = "[GetIllustration( 'character_view_bg' )]" - layoutpolicy_horizontal = expanding - - background = { - texture = "[Illustration.GetTexture( DiarchyWindow.GetDisplayedDiarch.MakeScope )]" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.8 - } - - portrait_regency = { - name = "regency_portrait_tutorial_uses_this" - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - - flowcontainer = { - direction = vertical - parentanchor = bottom|left - position = { 8 -8 } - - flowcontainer = { - name = "mandates_tutorial_uses_this" - datamodel = "[DiarchyWindow.GetAvailableMandates]" - direction = vertical - - item = { - widget_mandate_button = { - enabled = "[DiarchyWindow.CanChangeMandate]" - } - } - } - - text_label_left = { - text = "[mandates|E]" - max_width = 134 - } - } - - - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - text_label_center = { - visible = "[Diarchy.IsValid]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_STATUS_ACTIVE_DIARCHY" - max_width = 340 - } - - text_label_center = { - visible = "[Not( Diarchy.IsValid )]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_STATUS_INACTIVE_DIARCHY" - } - } - - expand = {} - - vbox = { - name = "scales_of_power_area_tutorial_uses_this" - layoutpolicy_horizontal = expanding - - margin = { 16 0 } - margin_top = 8 - margin_bottom = 16 - - background = { - using = Background_Area_Dark - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - expand = {} - - icon = { - name = "scales_of_power_icon" - size = { 30 30 } - texture = "gfx/interface/icons/scale_of_power.dds" - } - - text_label_left = { - text = "[scales_of_power|E]" - } - - expand = {} - } - - spacer = { #need to account for the rhombus shapes on the scales of power not being considered part of its size - size = {0 8} - } - - margin_widget = { - name = "scales_of_power_bar" - datacontext = "[DiarchyWindow.GetAlternativePowerLevels]" - size = { 318 15 } - allow_outside = yes - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - - blockoverride "texture_empty" { - texture = "gfx/interface/progressbars/progress_red.dds" - } - - tooltip = "DIARCHY_WINDOW_SCALES_OF_POWER_CURRENT_TOOLTIP" - using = tooltip_se - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" { - widget = { - parentanchor = center - size = { 0 40 } - allow_outside = yes - - visible = "[And( ComplexBarItem.IsVisible, GreaterThan_int32( DiarchyWindow.GetLevelForSwing( ComplexBarItem.GetValue ), '(int32)0' ) )]" - - ### Current marker glow - icon = { - name = "highlight_current_level" - visible = "[DiarchyWindow.IsCurrentPowerLevel( ComplexBarItem.GetValue )]" - parentanchor = center - size = { 65 65 } - - texture = "gfx/interface/window_roco_grandeur/pin_highlight.dds" - - state = { - name = _show - using = Animation_Curve_Default - alpha = 0.6 - } - - state = { - name = _hide - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.6 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 7 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - ### Current marker background - icon = { - visible = "[DiarchyWindow.IsCurrentPowerLevel( ComplexBarItem.GetValue )]" - parentanchor = center - size = { 45 45 } - - texture = "gfx/interface/window_regency/regency_level_bg.dds" - - tooltip = "[DiarchyWindow.GetPowerLevelTooltip( PdxGuiWidget.GetIndexInDataModel )]" - using = tooltip_se - } - - ### Current marker text - text_single = { - visible = "[DiarchyWindow.IsCurrentPowerLevel( ComplexBarItem.GetValue )]" - parentanchor = center - - text = "[DiarchyWindow.GetLevelForSwing( ComplexBarItem.GetValue )]" - default_format = "#high" - align = nobaseline - } - - ### Inactive marker background - icon = { - visible = "[Not(DiarchyWindow.IsCurrentPowerLevel( ComplexBarItem.GetValue ))]" - parentanchor = center - size = { 35 35 } - - texture = "gfx/interface/window_regency/regency_level_bg_inactive.dds" - - tooltip = "[DiarchyWindow.GetPowerLevelTooltip( PdxGuiWidget.GetIndexInDataModel )]" - using = tooltip_se - } - - ### Inactive marker text - text_single = { - visible = "[Not(DiarchyWindow.IsCurrentPowerLevel( ComplexBarItem.GetValue ))]" - parentanchor = center - - text = "[DiarchyWindow.GetLevelForSwing( ComplexBarItem.GetValue )]" - align = nobaseline - - } - } - } - } - } - - spacer = { #need to account for the rhombus shapes on the scales of power not being considered part of its size - size = {0 8} - } - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_SCALES_OF_POWER_HELP" - default_format = "#I" - align = center - autoresize = yes - min_width = 346 - max_width = 346 - } - - button_swing_scales = { - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - visible = "[And( DiarchyWindow.GetDiarchyOwner.IsLocalPlayer, Character.IsPlayerInteractionShown( 'swing_scales_currency_interaction' ) )]" - } - - button_swing_scales = { - datacontext = "[DiarchyWindow.GetDiarchyOwner]" - visible = "[And( Not( Character.IsLocalPlayer ), Character.IsPlayerInteractionShown( 'swing_scales_currency_interaction' ) )]" - } - } - } - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { -1 102 } - - margin = { 16 8 } - - background = { - using = Background_Area_Dark - } - - vbox = { - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_round = { - name = "view_available_diarchs_tutorial_uses_this" - visible = "[And( DiarchyWindow.CanDesignateDiarch, Not( DiarchyWindow.IsAvailableDiarchsShown ) )]" - - onclick = "[DiarchyWindow.ToggleAvailableDiarchs]" - enabled = "[Not( DiarchyWindow.IsDesignateDiarchOnCooldown )]" - - tooltip = "DIARCHY_WINDOW_DIARCH_SELECTION_TOOLTIP" - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - - button_back = { - visible = "[And( DiarchyWindow.CanDesignateDiarch, DiarchyWindow.IsAvailableDiarchsShown )]" - onclick = "[DiarchyWindow.ToggleAvailableDiarchs]" - enabled = "[Not( DiarchyWindow.IsDesignateDiarchOnCooldown )]" - tooltip = "DIARCHY_WINDOW_BACK_TOOLTIP" - shortcut = "go_back" - shortcut = "go_back_2" - shortcut = "go_back_3" - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[DiarchyWindow.GetDiarchLabel]" - max_width = 300 - } - - expand = {} - - widget = { - size = { 230 20 } - allow_outside = yes - - hbox = { - parentanchor = center - allow_outside = yes - - hbox_diarch_succession_score = { - - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - } - - blockoverride "succession_score" - { - text = "[DiarchyWindow.GetDisplayedSuccessionScore]" - } - } - - hbox_skills_grid = { - blockoverride "skills_datamodel" - { - datamodel = "[DiarchyWindow.GetSkills]" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[DiarchyWindow.GetDisplayedDiarch.GetUIName|U]" - max_width = 300 - default_format = "#high" - } - - expand = {} - - text_aptitude_label = { - align = right - - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_loyalty_label = { - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - } - } - - expand = {} - - hbox = { - spacing = 5 - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - - icon = { - name = "inactive_diarchy_warning" - visible = "[And( Not( Diarchy.IsValid ), Not( StringIsEmpty( DiarchyWindow.GetModifierDescription( Character.Self ) ) ) )]" - size = { 21 21 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - - tooltip = "DIARCHY_WINDOW_BENEFITS_INACTIVE_DIARCHY" - } - - icon = { - name = "indisposed_diarch_warning" - visible = "[And( And( Diarchy.IsValid, Not( DiarchyWindow.GetDisplayedDiarch.IsDiarchAble ) ), Not( StringIsEmpty( DiarchyWindow.GetModifierDescription( Character.Self ) ) ) )]" - size = { 21 21 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - tooltip = "DIARCHY_WINDOW_BENEFITS_DIARCH_INDISPOSED" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[And( DiarchyWindow.IsYourDiarchyShown, Not( StringIsEmpty( DiarchyWindow.GetModifierDescription( Character.Self ) ) ) )]" - - text = "DIARCHY_WINDOW_LIEGE_BENEFITS" - align = left|nobaseline - max_width = 240 - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[And( DiarchyWindow.IsLiegeDiarchyShown, Not( StringIsEmpty( DiarchyWindow.GetModifierDescription( Character.Self ) ) ) )]" - - text = "DIARCHY_WINDOW_DIARCH_BENEFITS" - align = left|nobaseline - max_width = 260 - } - } - } - } - } - } - } - - vbox = { - visible = "[Not(DiarchyWindow.IsAvailableDiarchsShown)]" #If there is no active diarchy we display regency succession - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 8 8 } - - background = { - using = Background_Area_With_Header - } - - background = { - texture = "gfx/interface/illustrations/window_headers/header_my_realm.dds" - alpha = 0.5 - fittype = centercrop - - margin_top = -32 - - using = Mask_Rough_Edges - } - - text_single = { - visible = "[Not(DiarchyWindow.IsAvailableDiarchsShown)]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_SUCCESSION" - align = nobaseline - - margin = { 8 0 } - } - - text_single = { - visible = "[And(Not(DiarchyWindow.IsAvailableDiarchsShown),And(Not(DiarchyWindow.HasSuccession),DiarchyWindow.HasActiveScalesOfPower))]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_NO_SUCCESSION" - align = nobaseline - - margin = { 8 0 } - } - - expand = {} - - fixedgridbox = { - name = "regent_succession_tutorial_uses_this" - visible = "[And(Not(DiarchyWindow.IsAvailableDiarchsShown),Or(DiarchyWindow.HasSuccession,Not(DiarchyWindow.HasActiveScalesOfPower)))]" - - datamodel = "[DiarchyWindow.GetDiarchySuccession]" - addcolumn = 150 - addrow = 160 - flipdirection = yes - maxhorizontalslots = 4 - - item = { - widget = { - datacontext = "[DiarchySuccessor.GetCharacter]" - size = { 150 160 } - - vbox = { - portrait_head = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - expand = {} - - icon = { - texture = "gfx/interface/icons/loyalty.dds" - size = { 30 30 } - framesize = { 60 60 } - frame = "[Character.GetDiarchLoyaltyIconFrame]" - - tooltipwidget = { - diarch_loyalty_breakdown_tooltip = { - blockoverride "header_text" { - text = "DIARCHY_WINDOW_DIARCH_LOYALTY" - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 8 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - hbox_diarch_succession_score = { - blockoverride "succession_score" - { - text = "[DiarchySuccessor.GetScore|V0]" - } - } - - expand = {} - } - } - } - } - } - - expand = {} - - widget = { - visible = "[And( Diarchy.IsValid, DiarchyWindow.IsYourDiarchyShown)]" - size = { 622 50 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 8 8 } - } - - button_primary = { - name = "end_diarchy_tutorial_uses_this" - datacontext = "[DiarchyWindow.GetDisplayedDiarch]" - size = { 300 36 } - - enabled = "[Character.IsPlayerInteractionValid( DiarchyWindow.GetEndInteractionName )]" - onclick = "[Character.OpenPlayerInteraction( DiarchyWindow.GetEndInteractionName )]" - - text = DIARCHY_WINDOW_END_DIARCHY - - tooltip = "[Character.GetPlayerInteractionTooltip( DiarchyWindow.GetEndInteractionName )]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers(DiarchyWindow.GetEndInteractionName)]" - icon = { - position = { 4 4 } - size = { 30 30 } - - texture = "[GetCharacterInteraction( DiarchyWindow.GetEndInteractionName ).GetIcon( Character.Self )]" - } - } - } - } - - widget = { - visible = "[And( DiarchyWindow.GetDisplayedDiarch.IsLocalPlayer, Character.IsPlayerInteractionShown( 'diarch_entrench_regency_interaction' ) )]" - size = { 622 50 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 8 8 } - } - - button_standard = { - name = "entrench_regency" - datacontext = "[DiarchyWindow.GetDiarchyOwner]" - size = { 300 36 } - - onclick = "[Character.OpenPlayerInteraction( 'diarch_entrench_regency_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'diarch_entrench_regency_interaction' )]" - - text = "[Character.GetPlayerInteractionName( 'diarch_entrench_regency_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'diarch_entrench_regency_interaction' )]" - - icon = { - position = { 4 4 } - size = { 30 30 } - texture = "[GetCharacterInteraction( 'diarch_entrench_regency_interaction' ).GetIcon( Character.Self )]" - } - } - } - } - } - - vbox_character_list = { - datacontext = "[DiarchyWindow.GetAvailableDiarchs]" - visible = "[DiarchyWindow.IsAvailableDiarchsShown]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { -1 420 } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not( CharacterSelectionList.IsBuildingList )]" - layoutpolicy_horizontal = expanding - addcolumn = 604 - addrow = 122 - - item = { - widget_diarch_candidate_item = { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 604 122 } - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[DiarchyWindow.GetAvailableDiarchs]" - visible_at_creation = no - - blockoverride "addition_filter" { - - vbox_filter_group = { - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - layoutpolicy_horizontal = expanding - - blockoverride "filters" { - filter_item = { - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - layoutpolicy_horizontal = expanding - } - - filter_item = { - datacontext = "[CharacterSelectionList.GetFilter('vassal_stance_filter')]" - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - } - } - } - } -} - -types DiarchyWindowTypes { - type widget_diarch_candidate_item = widget { - hbox = { - spacing = 4 - - background = { - using = Background_Area_With_Header - margin_right = 8 - margin_left = 4 - } - - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip]" - fontsize_min = 14 - margin_right = 10 - max_width = 310 - autoresize = no - - using = Font_Size_Medium - align = nobaseline - } - - expand = {} - - hbox_skills_grid = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = character_age_or_death_text - blockoverride "list_layout" {} - - text_single = { - name = "character_relation" - visible = "[Character.HasRelationTo( GetPlayer )]" - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - align = nobaseline - autoresize = no - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_bottom = 5 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 60 } - - background = { - using = Background_Area_Dark - - margin_top = 3 - margin_bottom = 4 - margin_left = 10 - margin_right = 5 - - alpha = 0.5 - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - text_aptitude_label = { - layoutpolicy_horizontal = expanding - text = "DIARCHY_WINDOW_DIARCH_APTITUDE_LIST" - } - - text_loyalty_label = { - layoutpolicy_horizontal = expanding - text = "DIARCHY_WINDOW_DIARCH_LOYALTY_LIST" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_LIEGE_BENEFITS" - max_width = 280 - } - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_vertical = expanding - spacing = 5 - margin_right = 5 - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.5 - } - - hbox_diarch_succession_score = { - blockoverride "succession_score" - { - text = "[CharacterListItem.GetFixedPoint( 'succession_score' )]" - } - } - - button_standard = { - enabled = "[Not( DiarchyWindow.IsDesignateDiarchOnCooldown )]" - size = { 120 30 } - - text = "DIARCHY_WINDOW_DESIGNATE_DIARCH" - - onclick = "[DiarchyWindow.DesignateDiarch( Character.Self )]" - - tooltip = "DIARCHY_WINDOW_DESIGNATE_DIARCH_TOOLTIP" - } - } - } - } - } - } - } - - type hbox_diarch_succession_score = hbox { - margin = { 0 4 } - - tooltipwidget = { - diarch_score_breakdown_tooltip = { - - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDiarchySuccessionTooltip( Character.Self )]" - } - - blockoverride "header_text" { - text = "DIARCHY_WINDOW_SUCCESSION_SCORE_BREAKDOWN" - } - } - } - - vote_chance_icon = {} - - text_single = { - block "succession_score" {} - - min_width = 20 - align = nobaseline|hcenter - } - } - - type text_aptitude_label = text_single { - text = "DIARCHY_WINDOW_DIARCH_APTITUDE" - - tooltipwidget = { - diarch_score_breakdown_tooltip = { - - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDiarchAptitudeTooltip( Character.Self )]" - } - - blockoverride "header_text" { - text = "DIARCHY_WINDOW_DIARCH_APTITUDE_TOOLTIP" - } - } - } - } - - type diarch_loyalty_breakdown_tooltip = diarch_score_breakdown_tooltip { - blockoverride "breakdown_datacontext" - { - datacontext = "[DiarchyWindow.GetDiarchyLoyaltyTooltip( Character.Self )]" - } - } - - type text_loyalty_label = text_single { - text = "DIARCHY_WINDOW_DIARCH_LOYALTY" - - tooltipwidget = { - diarch_loyalty_breakdown_tooltip = { - blockoverride "header_text" { - text = "DIARCHY_WINDOW_DIARCH_LOYALTY_TOOLTIP_HEADER" - } - } - } - } - - type widget_mandate_button = widget { - size = { 46 46 } - - icon = { - visible = "[DiarchyWindow.IsMandateActive( Mandate.Self )]" - parentanchor = center - size = { 58 58 } - - texture = "gfx/particles/halo.dds" - color = { 1 0.85 0.6 1 } - } - - button_round = { - name = "mandate_item" - size = { 46 46 } - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - onclick = "[DiarchyWindow.SetMandate( Mandate.Self )]" - down = "[DiarchyWindow.IsMandateActive( Mandate.Self )]" - - tooltipwidget = { - widget = { - using = GeneralTooltipSetup - using = DefaultTooltipBackground - alwaystransparent = no - - vbox = { - set_parent_size_to_minimum = yes - margin = { 15 15 } - margin_top = 10 - spacing = 2 - - text_multi = { - text = "DIARCHY_WINDOW_MANDATE_TOOLTIP" - min_width = 100 - max_width = 400 - autoresize = yes - align = left - } - - spacer = { - size = { 20 20 } - } - - text_multi = { - visible = "[DiarchyWindow.CanChangeMandate]" - layoutpolicy_horizontal = expanding - - text = "DIARCHY_WINDOW_MANDATE_CLICK_TOOLTIP" - min_width = 100 - max_width = 400 - autoresize = yes - align = left - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - layoutpolicy_horizontal = expanding - - raw_text = "Ai Score: [DiarchyWindow.GetMandateAiScore( Mandate.Self )]" - default_format = "#D" - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - layoutpolicy_horizontal = expanding - - raw_text = "Qualification: [DiarchyWindow.GetQualificationScore( Mandate.Self )]" - default_format = "#D" - } - } - } - } - - downframe = 1 - - button_normal = { - name = "mandate_icon" - parentanchor = center - widgetanchor = center - effectname = "NoHighlight" - gfxtype = togglepushbuttongfx - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - texture = "[Mandate.GetIcon]" - alwaystransparent = yes - size = { 38 38 } - } - } - } - - type button_swing_scales = button_standard { - size = { 250 33 } - - onclick = "[Character.OpenPlayerInteraction( 'swing_scales_currency_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'swing_scales_currency_interaction' )]" - - text = "DIARCHY_WINDOW_SWING_SCALES" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'swing_scales_currency_interaction' )]" - - icon = { - position = { 4 4 } - size = { 27 27 } - texture = "[GetCharacterInteraction( 'swing_scales_currency_interaction' ).GetIcon( Character.Self )]" - } - } -} diff --git a/N3OW/gui/window_diverge_culture.gui b/N3OW/gui/window_diverge_culture.gui deleted file mode 100644 index 8b000a0e..00000000 --- a/N3OW/gui/window_diverge_culture.gui +++ /dev/null @@ -1,993 +0,0 @@ -###################################################### -################## CULTURE DIVERGENCE ################ -###################################################### - -window = { - name = "diverge_culture_window" - datacontext = "[GetPlayer.GetCulture]" - datacontext = "[GetVariableSystem]" - datacontext = "[DivergenceWindow.GetVassalConversionWindow]" - parentanchor = center - size = { 1220 950 } - layer = middle - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'culture_creation_tab', 'pillars' )]" - on_start = "[GetVariableSystem.Clear( 'culture_creation_right_view' )]" - on_start = "[GetVariableSystem.Clear('conversion_view_vassals')]" - on_start = "[DivergenceWindow.SetTraditionCategory( DivergenceWindow.GetTraditionGrouping( 'realm' ).GetCategory )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "DIVERGE_CULTURE_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[DivergenceWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Vassal conversion list - vassal_conversion_preview = { - visible = "[VariableSystem.Exists( 'conversion_view_vassals')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - vbox = { - name = "left_side" - visible = "[Not( VariableSystem.Exists( 'conversion_view_vassals' ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - margin_left = 2 - - hbox = { - spacing = 10 - - button_standard = { - name = "culture_name" - size = { 530 60 } - onclick = "[GetVariableSystem.Set( 'culture_creation_right_view', 'name_selection' )]" - - tooltip = CULTURE_CREATION_NAME_TOOLTIP - - text_multi = { - name = "culture_name_label" - size = { 100% 100% } - margin = { 10 0 } - fontsize_min = 16 - text = "DIVERGE_CULTURE_NAME" - default_format = "#high" - using = Font_Size_Big - align = center|nobaseline - } - - button_replace = { - name = "reset" - alwaystransparent = yes - parentanchor = right|vcenter - position = { -6 0 } - size = { 40 40 } - } - } - - map_color_button = { - blockoverride "mcb_click" - { - onclick = "[GetVariableSystem.Set( 'culture_creation_right_view', 'color_selection' )]" - } - - blockoverride "mcb_color" - { - tintcolor = "[DivergenceWindow.GetColor]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - margin_bottom = 10 - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_creation_tab', 'pillars' )]" - down = "[GetVariableSystem.HasValue( 'culture_creation_tab', 'pillars' )]" - - text_single = { - text = "CULTURE_VIEW_PILLARS" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_creation_tab', 'traditions' )]" - down = "[GetVariableSystem.HasValue( 'culture_creation_tab', 'traditions' )]" - - text_single = { - text = "CULTURE_VIEW_TRADITIONS" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - } - - scrollbox = { - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'pillars' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - vbox = { - name = "pillars tab" - spacing = 10 - - text_label_center = { - name = "header" - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_ETHOS" - default_format = "#low" - } - - vbox = { - margin_left = 18 - - fixedgridbox = { - datamodel = "[DivergenceWindow.GetPossibleEthos]" - flipdirection = yes - addcolumn = 286 - addrow = 106 - datamodel_wrap = 2 - - item = { - widget = { - size = { 268 96 } - - tooltipwidget = { - using = culture_pillar_tooltip - } - - button_standard_clean = { - size = { 268 58 } - down = "[DivergenceWindow.HasPillar( CulturePillar.Self )]" - onclick = "[DivergenceWindow.SetPillar( CulturePillar.Self )]" - - - icon = { #illustration - name = "icon" - parentanchor = center - texture = "[CulturePillar.GetIcon]" - size = { 100% 100% } - - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - text_label_center = { - parentanchor = bottom|hcenter - widgetanchor = center - position = { 0 20 } - text = "[CulturePillar.GetNameNoTooltip]" - fontsize_min = 16 - align = center - - using = Font_Size_Medium - } - - warning_icon = { - visible = "[Not( DivergenceWindow.CanPickPillar( CulturePillar.Self ) )]" - position = { 2 2 } - size = { 30 30 } - alwaystransparent = yes - tooltip = "[DivergenceWindow.GetPickPillarBlockers( CulturePillar.Self )]" - } - - selection_glow = { - visible = "[DivergenceWindow.HasPillar( CulturePillar.Self )]" - } - } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_LANGUAGE" - default_format = "#low" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_right = 6 - - fixedgridbox = { - datamodel = "[DivergenceWindow.GetPossibleLanguage]" - flipdirection = yes - addcolumn = 172 - addrow = 40 - datamodel_wrap = 2 - - item = { - button_diverge_pillar_selection = { - blockoverride "icon" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - framesize = { 220 220 } - } - } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_HERITAGE" - default_format = "#low" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_right = 6 - - fixedgridbox = { - datamodel = "[DivergenceWindow.GetPossibleHeritage]" - flipdirection = yes - addcolumn = 172 - addrow = 40 - datamodel_wrap = 2 - - item = { - button_diverge_pillar_selection = { - blockoverride "icon" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/culture_pillars/heritage.dds" - framesize = { 220 220 } - } - } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_MARTIAL_CUSTOM" - default_format = "#low" - } - - - scrollarea = { - maximumsize = { 600 100 } - minimumsize = { 420 46 } - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - vbox = { - fixedgridbox = { - datamodel = "[DivergenceWindow.GetPossibleMartial]" - flipdirection = yes - addcolumn = 180 - addrow = 40 - datamodel_wrap = 3 - - item = { - button_diverge_pillar_selection = {} - } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_AESTHETICS" - default_format = "#low" - } - - fixedgridbox = { - datamodel = "[DivergenceWindow.GetPossibleAesthetics]" - flipdirection = yes - addcolumn = 180 - addrow = 40 - datamodel_wrap = 2 - - item = { - button_standard = { - down = "[DivergenceWindow.HasAesthetic( CultureAesthetics.Self )]" - onclick = "[DivergenceWindow.SetAesthetic( CultureAesthetics.Self )]" - tooltip = "CULTURE_AESTHETICS_DIVERGE_TOOLTIP" - - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/culture_pillars/aesthetics.dds" - framesize = { 220 220 } - } - - text_multi = { - size = { 100% 100% } - text = "CULTURE_AESTHETICS_DIVERGE_CULTURE" - align = center|nobaseline - default_format = "#clickable" - margin = { 4 0 } - } - } - } - } - - expand = {} - } - } - } - - scrollbox = { - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'traditions' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 6 - - vbox = { - margin_top = 0 - margin_left = 30 - spacing = 4 - - using = Animation_Tab_Switch - - fixedgridbox = { - datamodel = "[DivergenceWindow.GetTraditions]" - flipdirection = yes - addcolumn = 250 - addrow = 195 - datamodel_wrap = 2 - - item = { - widget_tradition_selection_buttons = { - } - } - } - - expand = {} - } - } - } - } - - scrollbox = { - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'aesthetics' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - spacing = 10 - - expand = {} - } - } - } - - expand = {} - } - - divider = { - layoutpolicy_vertical = expanding - } - - ### RIGHT PANEL - widget = { - name = "right_side" - layoutpolicy_vertical = expanding - minimumsize = { 510 0 } - - ## Main right side view - vbox = { - visible = "[Not( VariableSystem.Exists('culture_creation_right_view') )]" - spacing = 20 - margin_top = 12 - margin_bottom = 20 - - vbox = { - name = "info" - layoutpolicy_horizontal = expanding - margin = { 30 20 } - spacing = 10 - - vbox = { - name = "blockers" - visible = "[Not( DivergenceWindow.CanDiverge )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_BLOCKERS_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_multi = { - text = "[DivergenceWindow.GetDivergeBlockers]" - autoresize = yes - max_width = 440 - } - expand = {} - } - } - - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_NEW_CULTURE_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_NEW_CULTURE_TEXT" - } - - expand = {} - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_ACCEPTANCE_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_DIVERGENCE_ACCEPTANCE_TEXT" - } - - expand = {} - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_REALM_ADOPTION_HEADER" - default_format = "#low" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_REALM_ADOPTION_TEXT" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "see_vassals" - onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]" - text = "FAITH_CREATION_OPEN_VASSAL_LIST" - down = "[VariableSystem.HasValue( 'conversion_view_vassals', 'true' )]" - } - - expand = {} - } - } - } - - expand = {} - - - vbox = { - name = "cost" - tooltip = "DIVERGENCE_COST_TOOLTIP" - - text_single = { - layoutpolicy_horizontal = expanding - text = "DIVERGENCE_TOTAL_COST" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - margin = { 5 0 } - margin_top = 5 - - background = { - visible = "[Not( DivergenceWindow.CanPayCost )]" - margin = { 5 0 } - using = Status_Bad - } - } - } - - text_multi = { - name = "cooldown" - layoutpolicy_horizontal = expanding - align = center - - text = "CULTURE_DIVERGENCE_COOLDOWN" - default_format = "#low" - using = Font_Size_Small - autoresize = yes - max_width = 400 - } - - button_primary = { - name = "create_culture" - size = { 400 60 } - onclick = "[DivergenceWindow.DivergeCulture]" - onclick = "[DivergenceWindow.Close]" - enabled = "[DivergenceWindow.CanDiverge]" - - text = "DIVERGE_CULTURE_EXECUTE_LABEL" - using = Font_Size_Medium - tooltip = "DIVERGE_CULTURE_EXECUTE_TOOLTIP" - } - } - - ## Name selection - vbox = { - name = "name_selection" - visible = "[VariableSystem.HasValue( 'culture_creation_right_view', 'name_selection' )]" - margin = { 0 20 } - margin_top = 30 - spacing = 10 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_single = { - name = "header_label" - text = "CULTURE_CREATION_NAMING_HEADER" - default_format = "#I" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 50 0 } - - # The names of these are referenced in code. If you change them, they'll no longer get properly reset - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_NAME" - } - - blockoverride "editbox_properties" - { - name = "culture_name_edit" - focus_on_visible = yes - ontextedited = "[DivergenceWindow.OnEditName]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_COLLECTIVE_NOUN" - } - - blockoverride "editbox_properties" - { - name = "culture_collective_noun_edit" - ontextedited = "[DivergenceWindow.OnEditCollectiveNoun]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_PREFIX" - } - - blockoverride "editbox_properties" - { - name = "culture_prefix_edit" - ontextedited = "[DivergenceWindow.OnEditPrefix]" - maxcharacters = 30 - } - } - } - - expand = {} - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'culture_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - - vbox = { - name = "color_selection" - visible = "[VariableSystem.HasValue( 'culture_creation_right_view', 'color_selection' )]" - margin = { 0 20 } - margin_top = 15 - margin_left = 10 - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "MAP_COLOR_SELECTION_LABEL" - max_width = 280 - } - - colorpicker_simple = { - visible = yes - color = "[DivergenceWindow.GetColor]" - oncoloredited = "[DivergenceWindow.SetColor]" - } - - expand = {} - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'culture_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - - ## Tradition selection - vbox = { - name = "tradition_selection" - visible = "[VariableSystem.HasValue( 'culture_creation_right_view', 'tradition_selection' )]" - margin = { 0 15 } - spacing = 12 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_REPLACE_TRADITION_HEADER" - max_width = 280 - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - # The parameter for GetTraditionGrouping should match the categories in the traditions script - button_tabs_replace_tradition_category = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'realm' )]" - } - - button_tabs_replace_tradition_category = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'combat' )]" - } - - button_tabs_replace_tradition_category = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'societal' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = -2 - - button_tabs_replace_tradition_category = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'ritual' )]" - } - - button_tabs_replace_tradition_category = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'regional' )]" - } - } - } - - - - vbox_diverge_traditions_list = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'realm' )]" - } - vbox_diverge_traditions_list = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'combat' )]" - } - vbox_diverge_traditions_list = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'societal' )]" - } - vbox_diverge_traditions_list = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'ritual' )]" - } - vbox_diverge_traditions_list = { - datacontext = "[DivergenceWindow.GetTraditionGrouping( 'regional' )]" - } - - hbox = { - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'culture_creation_right_view' )]" - onclick = "[DivergenceWindow.ClearSelectedTradition]" - text = "CANCEL" - default_format = "#high" - } - } - } - } - } - } -} - -types DivergenceTypes -{ - type button_diverge_pillar_selection = button_standard { - down = "[DivergenceWindow.HasPillar( CulturePillar.Self )]" - onclick = "[DivergenceWindow.SetPillar( CulturePillar.Self )]" - using = tooltip_se - enabled = "[StringIsEmpty(DivergenceWindow.GetPickPillarBlockers( CulturePillar.Self ))]" - - tooltipwidget = { - using = culture_pillar_tooltip - - blockoverride "above_description_text" { - - text = "[DivergenceWindow.GetPickPillarBlockers( CulturePillar.Self )]" - } - } - - block "icon" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "[CulturePillar.GetIcon]" - framesize = { 220 220 } - } - } - - text_multi = { - size = { 100% 100% } - margin = { 10 0 } - text = "[CulturePillar.GetNameNoTooltip]" - align = center|nobaseline - default_format = "#clickable" - } - } - - type widget_tradition_selection_buttons = widget { - size = { 220 184 } - - tooltipwidget = { - using = culture_tradition_tooltip_clickable - - blockoverride "above_description_text" { - text = "[DivergenceWindow.GetPickTraditionBlockers( CultureTradition.Self )]" - } - } - - vbox = { - button_standard = { - size = { 220 120 } - - block "onclick" { - onclick = "[DivergenceWindow.SetSelectedTradition( CultureTradition.Self )]" - onclick = "[GetVariableSystem.Set( 'culture_creation_right_view', 'tradition_selection' )]" - } - - widget_tradition_icon = { - block "icon_size" { - size = { 220 120 } - } - } - - selection_glow = { - visible = "[ObjectsEqual( CultureTradition.Self, DivergenceWindow.GetSelectedTradition )]" - } - } - - hbox = { - text_label_center = { - name = "name" - maximumsize = { 220 44 } - text = "[CultureTradition.GetNameNoTooltip]" - fontsize_min = 12 - multiline = yes - align = center - elide = right - - using = Font_Size_Medium - } - - widget = { - size = { 0 30 } - allow_outside = yes - - warning_icon = { - visible = "[Not( DivergenceWindow.CanPickTradition( CultureTradition.Self ) )]" - size = { 30 30 } - position = { 6 0 } - widgetanchor = left - alwaystransparent = yes - tooltip = "[DivergenceWindow.GetPickTraditionBlockers( CultureTradition.Self )]" - } - } - } - - - text_label_center = { - name = "cost" - text = "[DivergenceWindow.GetTraditionCost( CultureTradition.Self )]" - maximumsize = { 130 44 } - fontsize_min = 12 - multiline = yes - align = center - elide = right - default_format = "#weak" - - using = Font_Size_Small - tooltip = "[DivergenceWindow.GetTraditionCostBreakdown( CultureTradition.Self )]" - } - } - } - - type button_tabs_replace_tradition_category = button_standard { - layoutpolicy_horizontal = expanding - onclick = "[DivergenceWindow.SetTraditionCategory( TraditionGrouping.GetCategory )]" - down = "[DivergenceWindow.HasTraditionCategory( TraditionGrouping.GetCategory )]" - text = "TRADITION_CATEGORY_DIVERGE_NAME" - } - - type map_color_button = button_standard_clean { - name = "color_button" - size = { 60 60 } - tooltip = "CREATE_CULTURE_SELECT_COLOR" - - block "mcb_click" - { - } - - highlight_icon = { - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/colors/white.dds" - - block "mcb_color" - { - } - - using = Mask_Rough_Edges - } - } - - # Needs a wrapping vbox as otherwise the blockoverride for the scrollbox_content doesn't work - type vbox_diverge_traditions_list = vbox { - visible = "[DivergenceWindow.HasTraditionCategory( TraditionGrouping.GetCategory )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - margin_top = 4 - margin_left = 6 - - fixedgridbox = { - flipdirection = yes - addcolumn = 240 - addrow = 196 - datamodel_wrap = 2 - datamodel = "[TraditionGrouping.GetPossibleTraditions]" - - item = { - widget_tradition_selection_buttons = { - - blockoverride "onclick" { - onclick = "[DivergenceWindow.ReplaceTradition( CultureTradition.Self )]" - onclick = "[GetVariableSystem.Clear( 'culture_creation_right_view' )]" - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_dlc_info.gui b/N3OW/gui/window_dlc_info.gui deleted file mode 100644 index 555ece6d..00000000 --- a/N3OW/gui/window_dlc_info.gui +++ /dev/null @@ -1,232 +0,0 @@ - -window = { - name = "dlc_info" - - size = { 100% 100% } - movable = no - layer = confirmation - - using = Background_Full_Dim - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[PdxGuiWidget.FindChild('dlc_info_window').TriggerAnimation('appear')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[PdxGuiWidget.FindChild('dlc_info_window').TriggerAnimation('disappear')]" - } - - button_normal = { - size = { 100% 100% } - onclick = "[DlcInfoGui.Hide]" - } - - widget = { - name = "dlc_info_window" - parentanchor = center - size = { 1200 900 } - alwaystransparent = no - allow_outside = yes - - using = Window_Decoration_Frontend_Spike - using = Window_Background - - state = { - name = appear - duration = 0.15 - using = Animation_Curve_Default - - position_y = 0 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_show" - } - } - - state = { - name = disappear - duration = 0.15 - using = Animation_Curve_Default - - position_y = 50 - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_hide" - } - } - - vbox = { - using = Window_Margins - spacing = 5 - - datacontext = "[DlcInfoGui.GetDlc]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Dlc.GetName]" - } - - blockoverride "button_close" - { - onclick = "[DlcInfoGui.Hide]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - icon = { - size = { 1125 300 } - texture = "[Dlc.GetPicture]" - modify_texture = { - - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 600 - blend_mode = alphamultiply - } - modify_texture = { - - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 600 - mirror = vertical - blend_mode = alphamultiply - } - modify_texture = { - - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 2250 - blend_mode = alphamultiply - } - modify_texture = { - - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 2250 - mirror = horizontal - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 20 - margin = { 20 0 } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Dlc.GetName]" - using = Font_Size_Big - } - - scrollbox = { - name = "dlc_description_text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - min_width = 600 - - blockoverride "scrollbox_background" - { - background = { - using = Background_Area - } - } - - scrollwidget = { - text_multi = { - text = "[Dlc.GetDesc]" - max_width = 600 - autoresize = yes - margin = { 20 15 } - } - } - - blockoverride "scrollbox_background_fade" { - icon = { - alpha = 0 - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "DLC_FEATURES" - using = Font_Size_Big - } - - scrollbox = { - name = "dlc_feature_text" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - min_width = 400 - - blockoverride "scrollbox_background" - { - background = { - using = Background_Area - } - } - - scrollwidget = { - text_multi = { - text = "[Dlc.GetFeatures]" - max_width = 400 - autoresize = yes - - margin = { 20 15 } - } - } - - blockoverride "scrollbox_background_fade" { - icon = { - alpha = 0 - } - } - } - } - - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding; - margin = { 20 10 } - - text_single = { - text = "[SelectLocalization( Dlc.IsVerified, 'PLAYER_OWN_DLC', 'PLAYER_OWN_DLC_NOT' )]" - align = nobaseline - } - - expand = {} - - button_primary = { - text = VISIT_STORE_BUTTON - onclick = "[DlcInfoGui.OpenStore]" - } - } - } - - } - -} diff --git a/N3OW/gui/window_domicile.gui b/N3OW/gui/window_domicile.gui deleted file mode 100644 index 2fd42ffb..00000000 --- a/N3OW/gui/window_domicile.gui +++ /dev/null @@ -1,4520 +0,0 @@ -window = { - datacontext = "[DomicileWindow.GetDomicile]" - datacontext = "[DomicileWindow.GetDomicileSettings]" - datacontext = "[DomicileWindow.GetCharacter]" - - name = "domicile_window" - widgetid = "domicile_window" - layer = middle - parentanchor = center - size = { 1390 694 } - - allow_outside = yes - - using = Window_Movable - - ### TABS - widget = { - visible = "[Not(GetVariableSystem.Exists( 'hide_ui' ))]" - parentanchor = top|left - position = { -49 25 } - size = { 60 140 } - - allow_outside = yes - - ### DOMCILE BOOKMARK TABS - flowcontainer = { - direction = vertical - spacing = 2 - ignoreinvisible = yes - - ### DOMCILE BOOKMARK OVERVIEW - button_tab_vertical_bookmark = { - down = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Toggle( 'bookmark_overview' )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_patrons' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_followers' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_disciples' )]" - datacontext = "[DomicileWindow.GetCharacter]" - - tooltip = "DOMICILE_WINDOW_BOOKMARK_OVERVIEW_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_overview' ) )]" - } - - blockoverride "tab_texture" - { - datacontext = "[DomicileWindow.GetDomicile]" - texture = "[Domicile.GetType.GetIcon]" - - down = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - } - } - - ### DOMICILE BOOKMARK PATRONS - button_tab_vertical_bookmark = { - visible = "[IsLandlessAdventurer( DomicileWindow.GetCharacter )]" - down = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Toggle( 'bookmark_patrons' )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_overview' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_followers' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_disciples' )]" - - tooltip = "DOMICILE_WINDOW_BOOKMARK_PATRONS_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_patrons' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/outliner.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - } - } - - ### DOMICILE BOOKMARK FOLLOWERS - button_tab_vertical_bookmark = { - visible = "[IsLandlessAdventurer( DomicileWindow.GetCharacter )]" - down = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Toggle( 'bookmark_followers' )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_overview' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_patrons' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_disciples' )]" - onclick = "[DomicileWindow.RebuildTemperamentWindow]" - - tooltip = "DOMICILE_WINDOW_BOOKMARK_FOLLOWERS_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_followers' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/three_people.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - } - } - ### DOMICILE BOOKMARK DISCIPLES - button_tab_vertical_bookmark = { - visible = "[Character.GetGovernment.HasRule('merit')]" - down = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Toggle( 'bookmark_disciples' )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_overview' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_patrons' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_followers' )]" - onclick = "[DomicileWindow.RebuildTemperamentWindow]" - - tooltip = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_disciples' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/three_people.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - } - } - } - } - - widget = { - allow_outside = yes - parentanchor = center - size = { 100% 100% } - - using = Window_Background - using = Window_Decoration - } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - on_start = "[GetVariableSystem.Clear( 'bookmark_overview' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_patrons' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_followers' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_disciples' )]" - on_start = "[GetVariableSystem.Clear( 'show_building_panel' )]" - on_start = "[DomicileWindow.ClearConstructionStartedNotification]" - on_start = "[DomicileWindow.CacheRelationOfType( GetRelation( 'elder' ) ) ]" - on_start = "[DomicileWindow.CacheRelationOfType( GetRelation( 'disciple' ) ) ]" - on_start = "[DomicileWindow.CacheRelationOfType( GetRelation( 'fellow_disciple' ) ) ]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - vbox = { - datamodel = "[DomicileWindow.GetBuildingSlots]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/window_domiciles/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/window_domiciles/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_domiciles/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - } - } - - ### FRAME - widget = { - name = "domicile_frame" - visible = "[And( Not( IsNomad( GetPlayer ) ), Not( Or( Or( GetPlayer.GetGovernment.IsType( 'celestial_government' ), GetPlayer.GetGovernment.IsType( 'meritocratic_government' ) ), Or( GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ), GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ) ) ) ) )]" - parentanchor = center - position = { 0 -2 } - size = { 1274 624 } - - background = { - texture = "gfx/interface/window_domiciles/domicile_frame.dds" - } - } - - widget = { - name = "domicile_frame_asian" - visible = "[Or( IsNomad( GetPlayer ), Or( Or( GetPlayer.GetGovernment.IsType( 'celestial_government' ), GetPlayer.GetGovernment.IsType( 'meritocratic_government' ) ), Or( GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ), GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ) ) ) )]" - parentanchor = center - position = { 0 -2 } - size = { 1274 624 } - - background = { - texture = "gfx/interface/window_domiciles/domicile_frame_asia.dds" - } - } - - ### BACKGROUND - widget = { - parentanchor = center - position = { 0 -2 } - size = { 1206 556 } - - background = { - texture = "[DomicileSettings.GetBackgroundTexture]" - } - } - - ### BUILDINGS - widget = { - name = "domicile_buildings" - visible = "[Domicile.IsValid]" - parentanchor = center - position = { 0 -2 } - size = { 1206 556 } - - allow_outside = yes - - datamodel = "[DomicileWindow.GetBuildingSlots]" - - item = { - domicile_building_button = { - name = "domicile_building_item" - datacontext = "[DomicileBuildingSlot.GetAsset]" - visible = "[Not( And( And(DomicileBuildingSlot.IsFree, Not(DomicileBuildingSlot.IsUnderConstruction) ), Not(DomicileWindow.IsEditMode) ) )]" - - allow_outside = yes - - blockoverride "locale_texture" - { - position = "[DomicileBuildingSlot.GetPositionInPercent( PdxGuiWidget.AccessParent.Self )]" - size = "[DomicileBuildingSlot.GetSizeInPercent( PdxGuiWidget.AccessParent.Self )]" - intersectionmask_texture = "[DomicileBuildingAsset.GetTextureMask]" - } - } - } - } - - ### FOREGROUND - widget = { - parentanchor = center - position = { 0 -2 } - size = { 1206 556 } - - background = { - texture = "[DomicileSettings.GetForegroundTexture]" - } - } - - ### PAPER RIPPLE NOISE VFX - # The size and position should be same as domicile_frame - widget = { - name = "ripple_noise_vfx" - parentanchor = center - size = { 1274 624 } - - icon_ripple_noise = { - size = { 100% 100% } - } - } - - ## HEADER - widget = { - parentanchor = top|hcenter - position = { 0 18 } - size = { 1274 66 } - - # Header Western - widget = { - visible = "[Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ))))))]" - size = { 444 66 } - parentanchor = center - - icon = { - parentanchor = center - size = { 444 66 } - texture = "gfx/interface/window_domiciles/domicile_header_background.dds" - } - - text_single = { - margin = { 80 10 } - parentanchor = center - - text = "[Domicile.GetName|U]" - align = nobaseline - default_format = "#light_background" - max_width = 460 - using = Font_Size_Big - using = Font_Type_Flavor - } - - ### Parent button to make area that trigger show/hide animation bigger - button = { - visible = "[DomicileWindow.IsEditMode]" - parentanchor = center - size = { 100% 100% } - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - on_finish = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - on_finish = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - } - - button_edit_text = { - visible = "[And( DomicileWindow.HasRenameWindow, GetVariableSystem.Exists( 'open_edit_domicile_name_contextual_button' ) )]" - parentanchor = right|vcenter - position = { -40 -2 } - - onclick = "[DomicileWindow.OpenRenameWindow]" - - tooltip = "DOMICILE_WINDOW_CUSTOMIZE_NAME" - - # ### Hover animation - used when hovering banner texture - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - } - } - } - - # Header Asia - widget = { - visible = "[Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))]" - position = { 0 -2 } - size = { 444 66 } - parentanchor = center - - icon = { - parentanchor = center - size = { 444 66 } - texture = "gfx/interface/window_domiciles/domicile_header_background_asia.dds" - } - - widget = { - parentanchor = center - size = { 444 66 } - - text_single = { - parentanchor = top|hcenter - position = { 0 8 } - - text = "[Domicile.GetName|U]" - align = nobaseline - default_format = "#light_background" - max_width = 460 - using = Font_Size_Big - using = Font_Type_Flavor - - margin = { 80 0 } - } - - text_single = { - visible = "[Domicile.GetType.UsesCultureAndFaith]" - parentanchor = bottom|hcenter - position = { 0 -5} - - text = "domicile_header_faith_culture" - align = nobaseline - default_format = "#light_background" - max_width = 460 - using = Font_Size_Medium - using = Font_Type_Flavor - } - } - - ### Parent button to make area that trigger show/hide animation bigger - button = { - visible = "[DomicileWindow.IsEditMode]" - parentanchor = center - position = { 0 -10 } - size = { 100% 34 } - - state = { - name = _mouse_hierarchy_enter - on_start = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - on_finish = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - on_finish = "[GetVariableSystem.Toggle( 'open_edit_domicile_name_contextual_button' )]" - } - - button_edit_text = { - visible = "[And( DomicileWindow.HasRenameWindow, GetVariableSystem.Exists( 'open_edit_domicile_name_contextual_button' ) )]" - parentanchor = right|vcenter - position = { -25 0 } - size = { 25 25 } - - onclick = "[DomicileWindow.OpenRenameWindow]" - - tooltip = "DOMICILE_WINDOW_CUSTOMIZE_NAME" - - # ### Hover animation - used when hovering banner texture - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - background = { - using = Background_Area_Dark - alpha = 0.8 - margin = { 5 5 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - } - } - } - - ## WINDOW CONTROL BUTTONS - widget = { - parentanchor = right|vcenter - position = { 8 0 } - size = { 124 54 } - - icon = { - visible = "[Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ))))))]" - size = { 124 54 } - texture = "gfx/interface/window_domiciles/domicile_window_control_background.dds" - spriteType = Corneredtiled - spriteborder = { 72 10 } - texture_density = 2 - } - - icon = { - visible = "[Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))]" - size = { 124 54 } - texture = "gfx/interface/window_domiciles/domicile_window_control_background_asia.dds" - spriteType = Corneredtiled - spriteborder = { 72 10 } - texture_density = 2 - } - - hbox = { - spacing = 5 - - margin = { 10 0 } - - button_hide_ui = { - visible = "[Not( GetVariableSystem.Exists( 'hide_ui' ) )]" - size = { 30 30 } - - onclick = "[GetVariableSystem.Toggle( 'hide_ui' )]" - - tooltip = "HIDE_UI_BUTON_TEXT_HIDE" - using = tooltip_ne - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - } - - button_show_ui = { - visible = "[GetVariableSystem.Exists( 'hide_ui' )]" - size = { 30 30 } - - onclick = "[GetVariableSystem.Toggle( 'hide_ui' )]" - - tooltip = "HIDE_UI_BUTTON_TEXT_SHOW" - using = tooltip_ne - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - } - - button_go_to_my_location = { - size = { 30 30 } - - onclick = "[Domicile.GetLocation.PanCameraTo]" - - using = Animation_ShowHide_Quick - - tooltip = "[DomicileWindow.GetGoToLocationTooltip]" - using = tooltip_ne - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - } - - button_close = { - size = { 30 30 } - - onclick = "[DomicileWindow.Close]" - shortcut = "close_window" - - using = Animation_ShowHide_Quick - - tooltip = "CLOSE_TOOLTIP" - using = tooltip_ne - - background = { - using = Background_Area_Dark - margin = { 2 2 } - } - } - } - } - } - - ### MOVE DOMICILE BUTTON - widget = { - name = "move_domicile" - visible = "[And( DomicileWindow.CanMoveManually(), And( DomicileWindow.IsEditMode, Not( GetVariableSystem.Exists( 'hide_ui' ) ) ) )]" - parentanchor = bottom|hcenter - position = { 0 -28 } - size = { 200 54 } - - background = { - visible = "[And( Not( GetVariableSystem.Exists( 'hide_ui' ) ), Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))))]" - texture = "gfx/interface/window_domiciles/domicile_window_control_background.dds" - spriteType = Corneredtiled - spriteborder = { 72 10 } - texture_density = 2 - } - - background = { - visible = "[And( Not( GetVariableSystem.Exists( 'hide_ui' )), Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ))))))]" - texture = "gfx/interface/window_domiciles/domicile_window_control_background_asia.dds" - spriteType = Corneredtiled - spriteborder = { 72 10 } - texture_density = 2 - } - - button_standard = { - name = "move_domcicle_button" - datacontext = "[DomicileWindow.GetDomicile]" - parentanchor = center - - text = "DOMICILE_OVERVIEW_MOVE_BUTTON_TEXT" - - onclick = "[OpenGameView( 'move_domicile_planner' )]" - onclick = "[DomicileWindow.Close]" - enabled = "[Domicile.CanMove]" - - tooltip = "[Domicile.GetType.GetMoveTooltip( Character.Self )]" - tooltip_when_disabled = "[Domicile.GetMoveTooltip]" - using = tooltip_ne - - background = { - using = Background_Area_Light - alpha = 0.8 - } - } - } - - ### DEBUG INTERACTIONS - widget = { - name = "debug_interactions" - visible = "[InDebugMode]" - parentanchor = bottom|right - position = { -70 -28 } - size = { 480 54 } - - flowcontainer = { - parentanchor = center - spacing = 5 - - using = Background_Letter - margin = { 10 10 } - - text_single = { - visible = "[Domicile.GetType.UsesCultureAndFaith]" - text = "[Domicile.GetCulture.GetName]" - default_format = "#D" - } - - text_single = { - visible = "[Domicile.GetType.UsesCultureAndFaith]" - text = "[Domicile.GetFaith.GetName]" - default_format = "#D" - } - - button_standard = { - size = { 140 33 } - raw_text = "Refresh Data" - - raw_tooltip = "DEBUG: Click to reload domicile database changes" - using = tooltip_ne - - onclick = "[DomicileWindow.RefreshBuildingSlots]" - } - - button_standard = { - size = { 110 33 } - text = "[DomicileSettings.GetType.GetName]" - default_format = "#D" - - raw_tooltip = "DEBUG: Click to toggle between Camp and Estate" - using = tooltip_ne - - onclick = "[DomicileSettings.ToggleType]" - } - - dropdown_menu_standard = { - blockoverride "dropdown_properties" - { - datamodel = "[DomicileWindow.GetCultureSets]" - onselectionchanged = "[DomicileWindow.OnSelectCultureSet]" - selectedindex = "[DomicileWindow.GetHoveredCultureSetIndex]" - } - - blockoverride "dropdown_size" - { - size = { 135 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 127 550 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[DomicileCultureSet.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[DomicileCultureSet.GetName]" - } - - raw_tooltip = "DEBUG: Click to toggle between culture sets" - using = tooltip_ne - } - } - } - - ### CONSTRUCT BUILDING PANELS - widget = { - name = "construction_panel" - visible = "[GetVariableSystem.Exists( 'show_building_panel' )]" - parentanchor = top|right - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - ### RIGHT SIDE PANELS - widget = { - datacontext = "[DomicileWindow.GetSelectedBuildingSlot]" - visible = "[And( Not(DomicileWindow.IsInspectLineTreeBuilding), And( DomicileBuildingSlot.IsFree, Not(DomicileBuildingSlot.IsUnderConstruction) ) )]" - widgetanchor = right - - position = { 0 2 } - size = { 600 690 } - - using = Window_Background - - ### EMPTY SLOT PANEL - vbox_domicile_empty_slot_panel = {} - } - - widget = { - datacontext = "[DomicileWindow.GetSelectedBuildingSlot]" - visible = "[Or( Or( DomicileBuildingSlot.HasBaseBuilding, DomicileWindow.IsInspectLineTreeBuilding ), DomicileBuildingSlot.IsUnderConstruction )]" - parentanchor = vcenter - widgetanchor = right - - position = { 0 2 } - size = { 600 688 } - - using = Window_Background - - ### UPGRADE PANEL - vbox_domicile_upgrade_panel = {} - } - } - - ### BOOKMARK PANEL - OVERVIEW - widget = { - name = "bookmark_overview" - visible = "[GetVariableSystem.Exists( 'bookmark_overview' )]" - parentanchor = left - allow_outside = yes - size = { 600 690 } - position = { 0 1 } - alwaystransparent = yes - - # we want to be able to click the tab buttons, - # but we don't want to be able to click the buildings - # that are behind this panel... - widget = { - parentanchor = top|left - position = { 5% 0 } - size = { 90% 100% } - alwaystransparent = yes - } - - using = Window_Background - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[DomicileWindow.GetDomicile]" - - using = Window_Margins - - ### Header ### - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "DOMICILE_WINDOW_BOOKMARK_OVERVIEW_TITLE" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Toggle( 'bookmark_overview' )]" - } - } - - vbox = { - datacontext = "[DomicileWindow.GetDomicile]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### Domicile background illustration - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = end - alpha = 0.3 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Overview Resources - vbox = { - datacontext = "[DomicileWindow.GetDomicile]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_OVERVIEW_RESOURCES" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_top = 5 - margin_bottom = 5 - spacing = 10 - - expand = {} - - ### Overview Resources Gold - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetGoldResourceTooltip]" - using = tooltip_ne - - icon = { - name = "gold_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetGoldResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_GOLD_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - vbox = { - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ### Overview Resources Provisions - hbox = { - visible = "[IsLandlessAdventurer( DomicileWindow.GetCharacter )]" - spacing = 5 - - tooltip = "[Domicile.GetProvisionsBreakdown]" - using = tooltip_ne - - icon = { - name = "icon_provisions" - size = { 30 30 } - framesize = { 60 60 } - frame = 0 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - - text_single = { - name = "provisions_value_positive" - visible = "[Not( Or( Domicile.IsProvisionsLow, Domicile.IsProvisionsCritical ) )]" - - text = "[Domicile.GetProvisions|0]" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "provisions_value_low" - visible = "[Domicile.IsProvisionsLow]" - - text = "[Domicile.GetProvisions|0]" - align = nobaseline - max_width = 50 - default_format = "#color_yellow" - using = Font_Size_Small - } - - text_single = { - name = "provisions_value_critical" - visible = "[Domicile.IsProvisionsCritical]" - - text = "[Domicile.GetProvisions|0]" - align = nobaseline - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - vbox = { - visible = "[IsLandlessAdventurer( DomicileWindow.GetCharacter )]" - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ### Overview Resources Prestige - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetPrestigeResourceTooltip]" - using = tooltip_ne - - icon = { - name = "prestige_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPrestigeResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PRESTIGE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - vbox = { - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ### Overview Resources Piety - hbox = { - spacing = 5 - - tooltip = "[Domicile.GetPietyResourceTooltip]" - using = tooltip_ne - - icon = { - name = "piety_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetPietyResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_PIETY_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - vbox = { - visible = "[IsAdministrativeRuler( DomicileWindow.GetCharacter )]" - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ### Overview Resources Influence - hbox = { - visible = "[IsAdministrativeRuler( DomicileWindow.GetCharacter )]" - spacing = 5 - - tooltip = "[Domicile.GetInfluenceResourceTooltip]" - using = tooltip_ne - - icon = { - name = "influence_icon" - size = { 30 30 } - texture = "[GetPlayer.GetInfluenceLevelTexture]" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetInfluenceResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_INFLUENCE_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - ### Overview Resources Herd - hbox = { - visible = "[IsNomad( DomicileWindow.GetCharacter )]" - spacing = 5 - - tooltip = "[Domicile.GetHerdResourceTooltip]" - using = tooltip_ne - - icon = { - name = "herd_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_herd.dds" - } - - text_single = { - name = "balance_positive" - visible = "[GreaterThanOrEqualTo_CFixedPoint(Domicile.GetHerdResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_HERD_BALANCE" - align = nobaseline - max_width = 50 - default_format = "#high" - using = Font_Size_Small - } - - text_single = { - name = "balance_negative" - visible = "[LessThan_CFixedPoint(Domicile.GetHerdResource, '(CFixedPoint)0')]" - text = "DOMICILE_RESOURCE_HERD_BALANCE" - max_width = 50 - default_format = "#N" - using = Font_Size_Small - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 5 - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 10 10 } - margin_right = 20 - } - - blockoverride "scrollbox_content" - { - vbox = { - margin_bottom = 20 - layoutpolicy_horizontal = expanding - - datamodel = "[DomicileWindow.GetOverviewBuildings]" - - ### Overview Buildings - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_OVERVIEW_BUILDINGS_LIST" - } - - item = { - vbox_domicile_building_overview_group_foldout = {} - } - } - } - } - } - } - } - } - - ### BOOKMARK PANEL - PATRONS - widget = { - name = "bookmark_patrons" - visible = "[GetVariableSystem.Exists( 'bookmark_patrons' )]" - parentanchor = left - allow_outside = yes - position = { 0 1 } - size = { 600 690 } - alwaystransparent = yes - - # we want to be able to click the tab buttons, - # but we don't want to be able to click the buildings - # that are behind this panel... - widget = { - parentanchor = top|left - position = { 5% 0 } - size = { 90% 100% } - alwaystransparent = yes - } - - using = Window_Background - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - ### Domicile background illustration - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = end - alpha = 0.3 - margin = { -40 0 } - margin_bottom = -20 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Header ### - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "DOMICILE_WINDOW_BOOKMARK_PATRONS_TITLE" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Toggle( 'bookmark_patrons' )]" - } - } - - scrollbox = { - name = "patrons_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - - datamodel = "[GetPlayer.GetTaskContractEmployers]" - - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_PATRONS_INFO" - } - - item = { - hbox_patron_item = { - visible = "[Not( DomicileWindow.IsPatronTooFarAway( Character.Self ) )]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - - datamodel = "[GetPlayer.GetTaskContractEmployers]" - - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_PATRONS_FAR_AWAY" - } - - item = { - hbox_patron_item = { - visible = "[DomicileWindow.IsPatronTooFarAway( Character.Self )]" - } - } - } - } - } - } - } - } - - ### BOOKMARK PANEL - FOLLOWERS - widget = { - name = "bookmark_followers" - visible = "[GetVariableSystem.Exists( 'bookmark_followers' )]" - parentanchor = center - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - alwaystransparent = no - - size = { 1350 689 } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - texture_density = 2 - margin = { -10 -17 } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 20 18} - - ### Header ### - header_pattern = { - datacontext = "[DomicileWindow.GetCharacter]" - - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "[DomicileSettings.GetType.GetTitleText( Character.Self )]" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Toggle( 'bookmark_followers' )]" - } - } - - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = centercrop - using = Mask_Rough_Edges - - margin = { -20 -16 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - portrait_button = { - name = "solo_leader" - datacontext = "[DomicileWindow.GetCharacter]" - visible = "[IsDataModelEmpty( Character.GetCourt )]" - size = { 360 560 } - - using = portrait_base - alwaystransparent = yes - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_body', 'shop_camera_main_near_angle_30', 'personality_honorable', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - mask = "gfx/portraits/portrait_mask_solid.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - } - - hbox = { - name = "follower_cards_container" - spacing = 20 - - datamodel = "[DomicileWindow.GetFollowerCardItems]" - - item = { - widget_domicile_follower_card = {} - } - } - - expand = {} - } - - widget = { - datacontext = "[DomicileWindow.GetCharacter]" - visible = "[Not( IsDataModelEmpty( Character.GetCourt ) )]" - allow_outside = yes - parentanchor = hcenter - position = { 0 100 } - - tooltip = "[DomicileWindow.GetTemperamentModifierDesc]" - tooltip_offset = { 0 20 } - using = tooltip_ne - - hbox = { - parentanchor = center - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_center = { - text = "[DomicileWindow.GetTemperamentText]" - using = Font_Size_Medium - } - - icon = { - size = { 30 30 } - framesize = { 60 60 } - frame = "[DomicileWindow.GetTemperamentFrame]" - texture = "gfx/interface/icons/loyalty.dds" - } - } - } - - widget = { - datacontext = "[DomicileWindow.GetCharacter]" - visible = "[IsDataModelEmpty( Character.GetCourt )]" - allow_outside = yes - parentanchor = hcenter - position = { 0 100 } - - hbox = { - parentanchor = center - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_FOLLOWERS_MISSING" - using = Font_Size_Medium - } - } - } - } - - ### BOOKMARK PANEL - DISCIPLES - widget = { - name = "bookmark_disciples" - visible = "[GetVariableSystem.Exists( 'bookmark_disciples' )]" - allow_outside = yes - size = { 600 690 } - alwaystransparent = yes - - # we want to be able to click the tab buttons, - # but we don't want to be able to click the buildings - # that are behind this panel... - widget = { - parentanchor = top|left - position = { 5% 0 } - size = { 90% 100% } - alwaystransparent = yes - } - - using = Window_Background - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - ### Domicile background illustration - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = end - alpha = 0.3 - margin = { -40 0 } - margin_bottom = -20 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Header ### - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_TITLE" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Toggle( 'bookmark_disciples' )]" - } - } - scrollbox = { - name = "disciples_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - visible = "[Not( ObjectsEqual( GetSituation('dynastic_cycle').GetParticipantGroupByCharacter(Character.Self), GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler') ) )]" - - datamodel = "[DomicileWindow.GetRelationOfType( GetRelation( 'elder' ))]" - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_ELDER" - } - expand = {} - button_round = { - visible = "[Character.IsPlayerInteractionShown('find_elder_interaction') ]" - - enabled = "[Character.GetTopLiege.IsPlayerInteractionValid('find_elder_interaction' ) ]" - onclick = "[Character.GetTopLiege.OpenPlayerInteraction( 'find_elder_interaction' )]" - tooltip = "[Character.GetTopLiege.GetPlayerInteractionTooltip( 'find_elder_interaction' )]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/add_character.dds" - } - } - } - item = { - visible = "[Not( IsDataModelEmpty( DomicileWindow.GetRelationOfType( GetRelation( 'elder' ) ) ) ) ]" - hbox_elder_item = { - } - - } - } - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - - datamodel = "[DomicileWindow.GetRelationOfType( GetRelation( 'disciple' ))]" - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - text_label_center = { - datacontext = [DomicileWindow.GetCharacter] - datacontext = "[GuiScope.SetRoot( DomicileWindow.GetCharacter.MakeScope ).GetScriptValueBreakdown( 'disciples_limit_value' )]" - text = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_DISCIPLE" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - blockoverride "header_text" - { - text = "disciples_limit_value_name" - } - } - } - } - expand = {} - button_round = { - visible = "[Character.IsPlayerInteractionShown('request_mentoring_interaction') ]" - - enabled = "[Character.IsPlayerInteractionValid('request_mentoring_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'request_mentoring_interaction' )]" - tooltip = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_FIND" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/add_character.dds" - } - } - } - item = { - visible = "[Not( IsDataModelEmpty( DomicileWindow.GetRelationOfType( GetRelation( 'disciple' ) ) ) ) ]" - hbox_disciple_item = { - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - visible = "[Not( IsDataModelEmpty( DomicileWindow.GetRelationOfType( GetRelation( 'fellow_disciple' ) ) ) ) ]" - - datamodel = "[DomicileWindow.GetRelationOfType( GetRelation( 'fellow_disciple' ) ) ]" - - text_label_center = { - text = "DOMICILE_WINDOW_BOOKMARK_DISCIPLES_DISCIPLE_FELLOW" - } - - item = { - hbox_disciple_item = { - } - } - } - } - } - } - } - } -} - -template domicile_building_slot_tooltip { - container = { - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - visible = "[Or( Not( DomicileBuildingSlot.IsFree ), DomicileBuildingSlot.IsUnderConstruction )]" - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon_building = { - datacontext = "[DomicileBuilding.GetRandomAsset]" - size = { 52 52 } - - texture = "[DomicileBuildingAsset.GetIcon]" - } - } - } - - blockoverride "title_text" - { - margin = { 0 8 } - text = "[DomicileBuildingSlot.GetName]" - default_format = "#T" - } - - blockoverride "concept_link" { - text = "[domicile_building|E]" - } - - blockoverride "description_text" - { - text = "[DomicileBuildingSlot.GetSlotModifierDesc]" - } - } - } -} - -types DomicileWindowTypes { - type widget_domicile_follower_card = widget { - datacontext = "[DomicileFollowerCardItem.GetFeaturedCharacter]" - visible = "[Not( DomicileFollowerCardItem.IsEmpty )]" - size = { 330 588 } - - portrait_button = { - visible = "[Character.IsValid]" - parentanchor = top|hcenter - size = { 330 300 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_council', 'camera_council', DomicileFollowerCardItem.GetAnimation, PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - - background = { - margin_top = -40 - margin_bottom = 10 - - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -34 } - text = "[Character.GetNameNoTooltip]" - } - } - - widget = { - parentanchor = bottom|hcenter - position = { 0 -15 } - size = { 330 226 } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin_top = 30 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - scrollbox = { - name = "follower_scroll_area" - position = { 0 -8} - size = { 295 216 } - parentanchor = top|hcenter - - scrollbarpolicy_horizontal = always_off - - blockoverride "scrollbox_margins" { - margin_top = 15 - margin_bottom = 10 - } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - fixedgridbox = { - flipdirection = yes - addcolumn = 90 - addrow = 95 - - datamodel_wrap = 3 - - datamodel = "[DomicileFollowerCardItem.GetFollowers]" - - item = { - portrait_head_small = { - blockoverride "portrait_button" - { - using = tooltip_ne - } - blockoverride "glow_visible" - { - visible = no - } - } - } - } - expand = {} - } - } - } - } - - widget = { - parentanchor = center - position = { 0 14 } - size = { 350 68 } - - icon = { - parentanchor = center - size = { 350 68 } - texture = "gfx/interface/window_domiciles/camp_follower_opinion_banner_bg.dds" - - frame = "[DomicileFollowerCardItem.GetIconFrame]" - framesize = { 700 136 } - } - - widget = { - position = { 37 -18 } - allow_outside = yes - - icon = { - size = { 60 100 } - - framesize = { 120 200 } - frame = "[DomicileFollowerCardItem.GetIconFrame]" - texture = "gfx/interface/window_domiciles/camp_follower_opinion_bg.dds" - - - icon = { - size = { 26 26 } - parentanchor = center - - alpha = 0.7 - framesize = { 60 60 } - frame = "[DomicileFollowerCardItem.GetIconFrame]" - texture = "gfx/interface/icons/loyalty.dds" - } - } - } - - widget = { - size = { 350 68 } - - tooltip = "[DomicileFollowerCardItem.GetTemperamentDesc]" - - text_single = { - parentanchor = top|hcenter - position = { 0 7 } - text = "[DomicileFollowerCardItem.GetTitle]" - using = Font_Size_Medium - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 -13 } - text = "[DomicileFollowerCardItem.GetAmountText]" - default_format = "#weak" - } - } - } - } - - type domicile_building_button = button - { - name = "building_slot" - effectname = "NoDisabled" - - onclick = "[GetVariableSystem.Set( 'show_building_panel', 'true' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_overview' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_patrons' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_followers' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_disciples' )]" - onclick = "[DomicileWindow.SelectBuildingSlot( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.PlayBuildingNotificationSfx( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.ClearNewBuildingEffectFor( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.ClearConstructionStartedNotification]" - - alwaystransparent = "[Not( DomicileBuildingSlot.IsUnlocked )]" - - allow_outside = yes - - tooltipwidget = { - container = { - name = "BuildingSlotTooltip" - datacontext = "[DomicileBuildingSlot.GetBuilding]" - alwaystransparent = no - - using = domicile_building_slot_tooltip - } - } - tooltip_visible = "[Or( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileBuildingSlot.IsFree ) )]" - using = tooltip_ws - - ### Mouse enter animation built slot - state = { - name = _mouse_enter - on_start = "[PdxGuiWidget.FindChild('building_banner').TriggerAnimation('mouse_enter_domicile')]" - } - - state = { - name = _mouse_leave - on_start = "[PdxGuiWidget.FindChild('building_banner').TriggerAnimation('mouse_leave_domicile')]" - } - - ### Mouse enter animation built slot asia - Needs separate animation cause the banner is another type - state = { - name = _mouse_enter - on_start = "[PdxGuiWidget.FindChild('building_banner_asia').TriggerAnimation('mouse_enter_domicile')]" - } - - state = { - name = _mouse_leave - on_start = "[PdxGuiWidget.FindChild('building_banner_asia').TriggerAnimation('mouse_leave_domicile')]" - } - - ### Mouse enter animation empty building slot - state = { - name = _mouse_enter - on_start = "[PdxGuiWidget.FindChild('building_slot_empty').TriggerAnimation('mouse_enter_empty_slot')]" - } - - state = { - name = _mouse_leave - on_start = "[PdxGuiWidget.FindChild('building_slot_empty').TriggerAnimation('mouse_leave_empty_slot')]" - } - - ### Display the original texture when the transition animation is not playing. - # Display it when slot is free. - highlight_icon = { - visible = "[And( DomicileBuildingSlot.IsFree, Not( DomicileBuildingSlot.IsUnderConstruction ) )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - } - - # Display it when slot is construction. - highlight_icon = { - visible = "[And( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileWindow.ShowConstructionStartedNotification( DomicileBuildingSlot.Self ) ) )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - } - - # Display it when slot is building. - # There is a one-frame bug in this part. Perhaps the issue lies in the order of setting the state. TIT-51102 - highlight_icon = { - visible = "[And( And( Not( DomicileBuildingSlot.IsUnderConstruction ), Not( DomicileBuildingSlot.IsFree ) ), Not( DomicileWindow.ShowNewBuildingEffect( DomicileBuildingSlot.Self ) ) )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - } - - ### Before playing the fade-out animation, there will be one frame missing, so these are uesd to add the frame at beginning - highlight_icon = { - visible = "[And( DomicileBuildingSlot.IsUnderConstruction, DomicileWindow.ShowConstructionStartedNotification( DomicileBuildingSlot.Self ) )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetPreviousAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - alpha = 1.0 - - state = { - name = _show - duration = 0.5 - alpha = 0.0 - } - state = { - name = _hide - alpha = 1.0 - } - } - - highlight_icon = { - visible = "[DomicileWindow.ShowNewBuildingEffect( DomicileBuildingSlot.Self )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetPreviousAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - alpha = 1.0 - - state = { - name = _show - duration = 0.5 - alpha = 0.0 - } - - state = { - name = _hide - alpha = 1.0 - } - } - - ### Fadeout animation - highlight_icon = { - visible = "[DomicileWindow.ShowConstructionStartedNotification( DomicileBuildingSlot.Self )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetPreviousAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - - modify_texture = { - name = "construction_fadeout" - gfxtype = videogfx - video = "gfx/interface/video/brush_stroke_erase.bk2" - loop = no - restart_on_show = yes - blend_mode = alphamultiply - } - } - - highlight_icon = { - visible = "[DomicileWindow.ShowNewBuildingEffect( DomicileBuildingSlot.Self )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetPreviousAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - - modify_texture = { - name = "building_fadeout" - gfxtype = videogfx - video = "gfx/interface/video/brush_stroke_erase.bk2" - loop = no - restart_on_show = yes - blend_mode = alphamultiply - } - } - - ### Fadein animation - highlight_icon = { - visible = "[And( DomicileBuildingSlot.IsUnderConstruction, DomicileWindow.ShowConstructionStartedNotification( DomicileBuildingSlot.Self ) )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - alpha = 0.0 - - modify_texture = { - name = "construction_fadein" - gfxtype = videogfx - video = "gfx/interface/video/brush_stroke_paint.bk2" - loop = no - restart_on_show = yes - blend_mode = alphamultiply - } - - # Here is used to fix flickering during switching. Before fade in animation shows up, there is one frame pop up. Try to decrease the alpha at beginning. - state = { - name = _show - duration = 0.7 - alpha = 1.0 - } - - state = { - name = _hide - alpha = 0.0 - } - } - - highlight_icon = { - visible = "[DomicileWindow.ShowNewBuildingEffect( DomicileBuildingSlot.Self )]" - size = { 100% 100% } - position = { 0 0 } - datacontext = "[DomicileBuildingSlot.GetAsset]" - texture = "[DomicileBuildingAsset.GetTexture]" - alpha = 0.0 - - modify_texture = { - name = "building_fadein" - gfxtype = videogfx - video = "gfx/interface/video/brush_stroke_paint.bk2" - loop = no - restart_on_show = yes - blend_mode = alphamultiply - } - - # Here is used to fix flickering during switching. Before fade in animation shows up, there is one frame pop up. Try to decrease the alpha at beginning. - state = { - name = _show - duration = 0.7 - alpha = 1.0 - } - - state = { - name = _hide - alpha = 0.0 - } - } - - block "locale_texture" - { - } - - block "locale_vfx" - { - } - - domicile_building_empty_slot_button = { - visible = "[And( And( And( DomicileWindow.IsEditMode, Not( GetVariableSystem.Exists( 'hide_ui' ) ) ), DomicileBuildingSlot.IsFree), Not( DomicileBuildingSlot.IsUnderConstruction ) )]" - parentanchor = center - position = { -30 -30 } - enabled = "[DomicileBuildingSlot.IsUnlocked]" - } - - domicile_building_banner_button = { - visible = "[And( Not( GetVariableSystem.Exists( 'hide_ui' ) ), Not(Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' )))))))]" - - parentanchor = top|hcenter - - allow_outside = yes - } - - domicile_building_banner_asia_button = { - visible = "[And( Not( GetVariableSystem.Exists( 'hide_ui' )), Or(GetPlayer.GetGovernment.IsType( 'celestial_government'), Or(GetPlayer.GetGovernment.IsType( 'meritocratic_government'), Or(GetPlayer.GetGovernment.IsType( 'nomad_government' ), Or(GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ))))))]" - parentanchor = top|hcenter - - allow_outside = yes - } - } - - type domicile_building_banner_button = button { - name = "building_banner" - onclick = "[GetVariableSystem.Set( 'show_building_panel', 'true' )]" - onclick = "[DomicileWindow.SelectBuildingSlot( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.ClearNewBuildingEffectFor( DomicileBuildingSlot.Self )]" - alwaystransparent = "[And( And( Not( DomicileBuildingSlot.CanBuild ), DomicileBuildingSlot.IsFree), Not( DomicileBuildingSlot.IsUnderConstruction ) )]" - - allow_outside = yes - - ### Hover animation - used when hovering banner texture - state = { - name = _mouse_enter - using = Animation_Curve_Default - duration = 0.05 - position = { 0 -5 } - scale = 1.15 - } - - state = { - name = _mouse_leave - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Hover animation - used when hovering building texture - state = { - name = "mouse_enter_domicile" - using = Animation_Curve_Default - duration = 0.05 - position = { 0 -5 } - scale = 1.15 - } - - state = { - name = "mouse_leave_domicile" - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Construction progress bar - widget = { - visible = "[DomicileBuildingSlot.IsUnderConstruction]" - parentanchor = bottom|hcenter - size = { 84% 30 } - position = { 10 16 } - - allow_outside = yes - - background = { - texture = "gfx/interface/window_domiciles/domicile_progress_bar_bg.dds" - } - - domicile_progress_bar = { - parentanchor = center - size = { 70% 13 } - position = { 4 -3 } - } - } - - hbox = { - set_parent_size_to_minimum = yes - minimumsize = { 220 0 } - margin_right = 10 - - background = { - texture = "gfx/interface/window_domiciles/domicile_banner.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - texture_density = 4 - - margin = { 0 -8 } - margin_left = -20 - } - - widget = { - visible = "[Or( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileBuildingSlot.IsFree ) )]" - size = { 58 58 } - - ### Icon background tier 1 - icon = { - visible = "[LessThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)2' )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_01.dds" - } - - ### Icon background tier 2 - icon = { - visible = "[And( GreaterThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)3' ), Not( EqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)5' ) ) )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_02.dds" - } - - ### Icon background tier 3 - icon = { - visible = "[GreaterThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)5' )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_03.dds" - } - - ### Can upgrade color - button_domicile_building_can_upgrade = { - datacontext = "[DomicileBuildingSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[DomicileBuildingSlot.CanBuild]" - size = { 25 25 } - } - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileBuildingSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[Not( DomicileBuildingSlot.CanBuild )]" - size = { 25 25 } - } - } - - ### Banner text - text_single = { - visible = "[Or( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileBuildingSlot.IsFree ) )]" - layoutpolicy_vertical = expanding - - text = "[DomicileBuildingSlot.GetName]" - max_width = 170 - default_format = "#light_background" - using = Font_Type_Flavor - margin_bottom = 3 - } - - expand = { - minimumsize = { 20 0 } - } - - ### Banner level - text_single = { - visible = "[Not( DomicileBuildingSlot.IsFree )]" - layoutpolicy_vertical = expanding - - text = "[DomicileBuildingSlot.GetLevelText]" - max_width = 70 - alpha = 0.8 - default_format = "#light_background" - using = Font_Size_Tiny - margin_bottom = 3 - } - } - } - - type domicile_building_banner_asia_button = button { - name = "building_banner_asia" - onclick = "[GetVariableSystem.Set( 'show_building_panel', 'true' )]" - onclick = "[DomicileWindow.SelectBuildingSlot( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.ClearNewBuildingEffectFor( DomicileBuildingSlot.Self )]" - alwaystransparent = "[And( And( Not( DomicileBuildingSlot.CanBuild ), DomicileBuildingSlot.IsFree), Not( DomicileBuildingSlot.IsUnderConstruction ) )]" - - allow_outside = yes - - ### Hover animation - used when hovering banner texture - state = { - name = _mouse_enter - using = Animation_Curve_Default - duration = 0.05 - position = { 0 -5 } - scale = 1.15 - } - - state = { - name = _mouse_leave - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Hover animation - used when hovering building texture - state = { - name = "mouse_enter_domicile" - using = Animation_Curve_Default - duration = 0.05 - position = { 0 -5 } - scale = 1.15 - } - - state = { - name = "mouse_leave_domicile" - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Construction progress bar - widget = { - visible = "[DomicileBuildingSlot.IsUnderConstruction]" - parentanchor = bottom|hcenter - size = { 84% 30 } - position = { 10 16 } - - allow_outside = yes - - background = { - texture = "gfx/interface/window_domiciles/domicile_progress_bar_bg_asia.dds" - } - - domicile_progress_bar = { - parentanchor = center - size = { 70% 13 } - position = { 4 -3 } - } - } - - hbox = { - set_parent_size_to_minimum = yes - minimumsize = { 220 0 } - margin_right = 10 - - background = { - texture = "gfx/interface/window_domiciles/domicile_banner_asia.dds" - spriteType = Corneredtiled - spriteborder = { 72 0 } - texture_density = 4 - - margin = { 0 -8 } - margin_left = -20 - } - - widget = { - visible = "[Or( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileBuildingSlot.IsFree ) )]" - size = { 58 58 } - - ### Icon background tier 1 - icon = { - visible = "[LessThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)2' )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_01.dds" - } - - ### Icon background tier 2 - icon = { - visible = "[And( GreaterThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)3' ), Not( EqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)5' ) ) )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_02.dds" - } - - ### Icon background tier 3 - icon = { - visible = "[GreaterThanOrEqualTo_int32( DomicileBuildingSlot.GetLevel, '(int32)5' )]" - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_03.dds" - } - - ### Can upgrade color - button_domicile_building_can_upgrade = { - datacontext = "[DomicileBuildingSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[DomicileBuildingSlot.CanBuild]" - size = { 25 25 } - } - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileBuildingSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[Not( DomicileBuildingSlot.CanBuild )]" - size = { 25 25 } - } - } - - ### Banner text - text_single = { - visible = "[Or( DomicileBuildingSlot.IsUnderConstruction, Not( DomicileBuildingSlot.IsFree ) )]" - layoutpolicy_vertical = expanding - - text = "[DomicileBuildingSlot.GetName]" - max_width = 170 - default_format = "#light_background" - using = Font_Type_Flavor - margin_bottom = 3 - } - - expand = { - minimumsize = { 20 0 } - } - - ### Banner level - text_single = { - visible = "[Not( DomicileBuildingSlot.IsFree )]" - layoutpolicy_vertical = expanding - - text = "[DomicileBuildingSlot.GetLevelText]" - max_width = 70 - alpha = 0.8 - default_format = "#light_background" - using = Font_Type_Flavor - margin_bottom = 3 - } - } - } - - type domicile_building_empty_slot_button = button { - allow_outside = yes - - button = { - name = "building_slot_empty" - size = { 56 56 } - - onclick = "[GetVariableSystem.Set( 'show_building_panel', 'true' )]" - onclick = "[DomicileWindow.SelectBuildingSlot( DomicileBuildingSlot.Self )]" - onclick = "[DomicileWindow.ClearNewBuildingEffectFor( DomicileBuildingSlot.Self )]" - - state = { - name = _mouse_enter - using = Animation_Curve_Default - duration = 0.05 - position = { -3 -5 } - scale = 1.15 - } - - state = { - name = _mouse_leave - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Hover animation - used when hovering building texture - state = { - name = "mouse_enter_empty_slot" - using = Animation_Curve_Default - duration = 0.05 - position = { -3 -5 } - scale = 1.15 - } - - state = { - name = "mouse_leave_empty_slot" - using = Animation_Curve_Default - duration = 0.05 - position = { 0 0 } - scale = 1 - } - - ### Visible when construction is available, has floating animation on widget - widget = { - visible = "[DomicileBuildingSlot.IsUnlocked]" - parentanchor = center - size = { 56 56 } - - tooltip = "DOMICILE_WINDOW_CONSTRUCT_BUILDING_TT" - - ### Float animation - state = { - name = float_a - next = float_b - trigger_when = "[DomicileBuildingSlot.IsUnlocked]" - - position = { 0 -4 } - duration = 2 - using = Animation_Curve_Default - } - - state = { - name = float_b - next = float_a - position = { 0 0 } - duration = 2 - using = Animation_Curve_Default - } - - ### Temporary Glow - icon = { - name = "temporary_glow" - parentanchor = center - size = { 90 90 } - color = { 0.9 0.8 0.6 1 } - texture = "gfx/interface/window_roco_grandeur/pin_highlight.dds" - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0 - duration = 1 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 1 - duration = 1 - - using = Animation_Curve_Default - } - } - - icon = { - parentanchor = center - size = { 58 58 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_01.dds" - } - - button_icon = { - visible = "[DomicileBuildingSlot.IsUnlocked]" - parentanchor = center - - texture = "gfx/interface/icons/flat_icons/plus.dds" - size = { 30 30 } - alwaystransparent = yes - } - - } - - ### Visible when construction is locked, has no animation on widget - widget = { - visible = "[Not( DomicileBuildingSlot.IsUnlocked )]" - parentanchor = center - size = { 56 56 } - alwaystransparent = "[DomicileBuildingSlot.IsUnlocked]" - - tooltip = "DOMICILE_WINDOW_CONSTRUCT_BUILDING_LOCKED_TT" - - icon = { - parentanchor = center - size = { 56 56 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = center - texture = "gfx/interface/window_activities/tournament/contest_selection_locked_icon.dds" - size = { 30 30 } - } - } - } - } - - type domicile_progress_bar = progressbar_standard { - name = "construct_progressbar" - visible = "[DomicileBuildingSlot.IsUnderConstruction]" - size = { 204 13 } - - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - alwaystransparent = yes - - value = "[DomicileWindow.GetDomicile.GetConstructionProgress]" - min = 0 - max = 1 - - progresstexture = "gfx/interface/progressbars/progress_domicile_banner.dds" - noprogresstexture = "gfx/interface/progressbars/progress_domicile_banner_bg.dds" - - text_single = { - parentanchor = center - text = "[DomicileBuildingSlot.GetConstructionDaysLeft]" - default_format = "#high" - align = nobaseline - fontsize = 14 - position = { 0 -1 } - max_width = 120 - } - } - - type domicile_construct_item = vbox { - datacontext = "[PotentialBuildingItem.GetBuilding]" - - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - background = { - using = Background_Frame - } - - ### Building Icon, Name and Preview Button ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_right = 15 - margin_left = 10 - spacing = 5 - - background = { - using = Background_Area_Dark - margin = { -4 -2 } - } - - icon_building = { - name = "building_icon" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - - size = { 45 45 } - texture = "[DomicileBuildingAsset.GetIcon]" - } - - text_single = { - text = "[DomicileBuilding.GetNameNoTooltip]" - } - - expand = {} - - icon_flat_standard = { - visible = "[And( Not( DomicileBuilding.IsInternal ), PotentialBuildingItem.HasInternalUpgrades )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/internal_building.dds" - - tooltip = "[PotentialBuildingItem.GetInternalBuildingsList]" - using = tooltip_ne - } - - button_tertiary = { - size = { 155 33 } - text = "DOMICILE_WINDOW_PREVIEW" - - onclick = "[DomicileWindow.InspectLineTreeBuilding( DomicileBuilding.Self )]" - tooltip = "[DomicileBuilding.GetInspectLineTreeTooltip]" - using = tooltip_ne - } - } - - ### Building Description ### - vbox = { - name = "construct_description" - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[DomicileBuilding.GetModifierDesc]" - max_width = 500 - autoresize = yes - - margin = { 15 10 } - } - } - - ### Building Costs ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - spacing = 15 - - background = { - using = Background_Area - } - - expand = {} - - hbox_domicile_building_cost_bar = { - blockoverride "upgrade_cost_text_visibility" {} - } - allow_outside = yes - - button_standard = { - name = "construct_button" - size = { 155 33 } - - text = "CONSTRUCT" - - onclick = "[DomicileWindow.SetShowConstructionStartedNotification( DomicileWindow.GetSelectedSlotIndex )]" - onclick = "[PostCommand( Domicile.BuildBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - enabled = "[IsValidCommand( Domicile.BuildBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - - tooltip = "[DomicileBuilding.GetBuildTooltip( Character.Self )]" - using = tooltip_ne - } - } - } - - type vbox_domicile_empty_slot_panel = vbox { - name = "empty_slot_construction_panel" - alwaystransparent = no - - using = Window_Margins - - ### Domicile background illustration - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = end - alpha = 0.3 - margin = { -40 0 } - margin_bottom = -16 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Header ### - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "DOMICILE_WINDOW_FREE_BUILDING_SLOT" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - } - } - - ### Building List ### - scrollbox = { - name = "construct_building_list" #used in lesson_china_estate_intro - widgetid = "construct_building_list" #used in lesson_china_estate_intro - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin_top = 10 - margin_bottom = 10 - margin_left = 10 - margin_right = 15 - } - - blockoverride "scrollbox_content" - { - ### Instructions - text_label_center = { - text = "DOMICILE_WINDOW_SELECT_BUILDING" - default_format = "#I" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - datamodel = "[DomicileWindow.GetPotentialBuildings]" - item = { - domicile_construct_item = { - visible = "[DomicileBuildingSlot.IsSameSlotType( DomicileBuilding.Self )]" - } - } - - expand = {} - } - } - } - expand = {} - } - - type domicile_internal_construct_panel = vbox { - name = "internal_slot_construction_panel" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - alwaystransparent = no - - ### Building List ### - scrollbox = { - name = "construct_building_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin_top = 10 - margin_bottom = 10 - margin_left = 10 - margin_right = 15 - } - - blockoverride "scrollbox_content" - { - ### Instructions - text_label_center = { - text = "DOMICILE_WINDOW_SELECT_INTERNAL_BUILDING" - default_format = "#I" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - datamodel = "[DomicileBuildingSlot.GetPotentialInternalUpgrades]" - item = { - domicile_construct_item = { - datacontext = "[PotentialBuildingItem.GetBuilding]" - visible = "[DomicileBuilding.IsRootOfTrack]" - } - } - - expand = {} - } - } - } - - expand = {} - } - - type vbox_domicile_upgrade_panel = vbox { - name = "upgrade_panel" - widgetid = "domicile_upgrade_panel" #used in lesson_china_estate_manor - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - alwaystransparent = no - - using = Window_Margins - - background = { - texture = "[Domicile.GetType.GetIllustration]" - fittype = end - alpha = 0.3 - margin = { -40 0 } - margin_bottom = -16 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### Header ### - header_pattern = { - datacontext = "[DomicileWindow.GetSelectedTreePreview]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "[DomicileBuildingSlot.GetName]" - } - - blockoverride "button_back" { - name = "back_button" - visible = "[Or( Or( DomicileWindow.IsInspectLineTreeBuilding, DomicileBuildingSlot.HasSelectedFreeInternalSlot ), DomicileBuilding.IsInternal )]" - - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - onclick = "[DomicileWindow.NavigateBack]" - - tooltip = "BACK_TOOLTIP" - } - - blockoverride "button_close" { - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - } - } - - hbox = { - visible = "[And( And( DomicileBuildingSlot.HasInternalSlots, Not( DomicileWindow.IsInspectLineTreeBuilding ) ), Or( Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ), DomicileBuildingSlot.HasSelectedInternalSlotUnderConstruction ) )]" - - margin = { 15 0 } - - background = { - texture = "gfx/interface/window_scheme/scheme_countermeasures_bg.dds" - margin = { 0 -13 } - margin_left = -15 - margin_right = 15 - spriteType = Corneredtiled - spriteborder = { 72 0 } - texture_density = 2 - } - - ### Reset tree view to main/external ### - button = { - name = "reset_tree_button" - size = { 65 65 } - allow_outside = yes - - onclick = "[DomicileWindow.ResetLineTreeToSelectedSlot]" - onclick = "[DomicileWindow.ClearInternalBuildingSelected]" - - tooltip = "DOMICILE_WINDOW_RESET_TREE_TT" - using = tooltip_ne - - icon = { - alwaystransparent = yes - parentanchor = center - size = { 65 65 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_01.dds" - } - - button_domicile_building_can_upgrade = { - datacontext = "[DomicileBuildingSlot.GetAsset]" - visible = "[DomicileBuildingSlot.CanUpgradeExternal]" - } - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileBuildingSlot.GetAsset]" - visible = "[Not( DomicileBuildingSlot.CanUpgradeExternal )]" - } - } - - ### Scroll internal buildings left button ### - widget = { - size = { 30 30 } - - button = { - size = { 30 30 } - - visible = "[DomicileBuildingSlot.CanScrollInternalUpgradesLeft]" - onclick = "[DomicileBuildingSlot.ScrollInternalUpgradesLeft]" - - tooltip = "DOMICILE_WINDOW_INTERNAL_SCROLL_LEFT" - using = tooltip_ne - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 20 20 } - - texture = "gfx/interface/icons/flat_icons/window_back.dds" - } - } - } - - ### Internal Upgrades Scrollbar ### - fixedgridbox = { - visible = "[Not( DomicileBuildingSlot.IsDirty )]" - datamodel = "[DomicileBuildingSlot.GetInternalSlots]" - addcolumn = 45 - addrow = 45 - maxverticalslots = 1 - maxhorizontalslots = 10 - flipdirection = yes - - layoutpolicy_horizontal = expanding - - item = { - widget = { - enabled = "[DomicileInternalGuiSlot.IsUnlocked]" - allow_outside = yes - - ### Locked Internal Slot - vbox = { - visible = "[Or( Not( DomicileInternalGuiSlot.IsUnlocked ), DomicileBuildingSlot.IsUnderConstruction )]" - - button = { - name = "internal_slot_locked" - size = { 45 45 } - - enabled = no - tooltip = "[DomicileBuildingSlot.GetInternalSlotTooltip( DomicileInternalGuiSlot.Self )]" - using = tooltip_ne - - icon_round_button_base = { - parentanchor = center - size = { 42 42 } - } - - button_domicile_building_unavailable = { - blockoverride "icon_texture" - { - texture = "gfx/interface/window_activities/tournament/contest_selection_locked_icon.dds" - } - } - } - } - - ### Unlocked Internal Slot - vbox = { - visible = "[DomicileInternalGuiSlot.IsUnlocked]" - - ### Internal Slot Empty ### - button = { - name = "internal_slot_empty" - visible = "[And( DomicileInternalGuiSlot.IsFree, Not( DomicileBuildingSlot.IsUnderConstruction ) )]" - size = { 45 45 } - - enabled = "[DomicileWindow.IsEditMode]" - onclick = "[DomicileBuildingSlot.SelectInternalSlot( DomicileInternalGuiSlot.GetSlotIndex )]" - tooltip = "DOMICILE_WINDOW_INTERNAL_SLOT_UNLOCKED_TT" - using = tooltip_ne - - icon_round_button_base = { - parentanchor = center - size = { 42 42 } - } - - button_domicile_building_can_upgrade = { - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - - ### Internal Slot Under Construction ### - button = { - name = "internal_slot_under_construction" - visible = "[And( DomicileInternalGuiSlot.IsFree, DomicileBuildingSlot.IsInternalSlotUnderConstruction( DomicileInternalGuiSlot.GetSlotIndex ) )]" - size = { 45 45 } - - onclick = "[DomicileBuildingSlot.SelectInternalSlot( DomicileInternalGuiSlot.GetSlotIndex )]" - tooltip = "[DomicileBuildingSlot.GetInternalSlotTooltip( DomicileInternalGuiSlot.Self )]" - using = tooltip_ne - - icon_round_button_base = { - parentanchor = center - size = { 42 42 } - } - - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileBuildingSlot.GetBuildingTypeUnderConstruction]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - } - } - - ### Internal Slot Taken ### - button = { - name = "internal_slot_taken" - visible = "[Not( DomicileInternalGuiSlot.IsFree )]" - size = { 45 45 } - - onclick = "[DomicileBuildingSlot.SelectInternalSlot( DomicileInternalGuiSlot.GetSlotIndex )]" - tooltip = "[DomicileBuildingSlot.GetInternalSlotTooltip( DomicileInternalGuiSlot.Self )]" - using = tooltip_ne - - ### Selected glow ### - icon = { - visible = "[DomicileBuildingSlot.IsInternalSlotSelected( DomicileInternalGuiSlot.GetSlotIndex )]" - parentanchor = center - size = { 65 65 } - color = { 0.9 0.8 0.6 1 } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - alpha = 1 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.7 - duration = 1.5 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 1 - duration = 1.5 - - using = Animation_Curve_Default - } - } - - icon_round_button_base = { - parentanchor = center - size = { 42 42 } - } - - button_domicile_building_can_upgrade = { - datacontext = "[DomicileInternalGuiSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[DomicileInternalGuiSlot.CanUpgrade]" - } - - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileInternalGuiSlot.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[Not( DomicileInternalGuiSlot.CanUpgrade )]" - } - } - } - } - } - } - - ### Scroll internal buildings right button ### - - widget = { - size = { 30 30 } - - - button = { - visible = "[DomicileBuildingSlot.CanScrollInternalUpgradesRight]" - size = { 30 30 } - - - onclick = "[DomicileBuildingSlot.ScrollInternalUpgradesRight]" - tooltip = "DOMICILE_WINDOW_INTERNAL_SCROLL_RIGHT" - using = tooltip_ne - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 20 20 } - mirror = horizontal - - texture = "gfx/interface/icons/flat_icons/window_back.dds" - } - } - } - - } - - hbox = { - visible = "[And( DomicileBuildingSlot.HasInternalSlots, And( Not( DomicileWindow.IsInspectLineTreeBuilding ), Or( Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ), DomicileBuildingSlot.HasSelectedInternalSlotUnderConstruction ) ) )]" - layoutpolicy_horizontal = expanding - margin_top = 5 - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - name = "domicile_building_upgrade_track" #used by lesson_china_estate_manor_selected - visible = "[Or( Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ), DomicileBuildingSlot.HasSelectedInternalSlotUnderConstruction )]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - ### Domicile Upgrade Tree ### - scrollbox = { - autoresizescrollarea = yes - - layoutpolicy_horizontal = expanding - - scrollbarpolicy_horizontal = as_needed - scrollbarpolicy_vertical = as_needed - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - blockoverride "scrollbox_content" - { - set_parent_size_to_minimum = yes - - vbox_domicile_upgrade_tree = {} - } - - blockoverride "scrollbox_margins" { - margin_left = 23 - margin_bottom = 10 - } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - } - } - - hbox = { - name = "construct_internal_building" - visible = "[And( DomicileBuildingSlot.HasSelectedFreeInternalSlot, Not( DomicileBuildingSlot.HasSelectedInternalSlotUnderConstruction ) )]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - domicile_internal_construct_panel = {} - } - - vbox = { - datacontext = "[DomicileWindow.GetSelectedTreePreview]" - visible = "[Or( Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ), DomicileBuildingSlot.HasSelectedInternalSlotUnderConstruction )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_bottom = 5 - - background = { - using = Background_Area - } - - ### Upgrade Header Text ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_right = 5 - spacing = 10 - - background = { - using = Background_Area_Dark - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon_building = { - name = "building_icon" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - - size = { 48 48 } - texture = "[DomicileBuildingAsset.GetIcon]" - } - - text_single = { - visible = "[Not( DomicileBuilding.HasParameter( 'can_receive_artifacts' ) )]" - text = "[DomicileBuilding.GetNameAndLevel]" - align = nobaseline - using = Font_Size_Medium - max_width = 360 - } - - text_single = { - visible = "[DomicileBuilding.HasParameter( 'can_receive_artifacts' )]" - text = "[DomicileBuilding.GetNameAndLevel]" - align = nobaseline - using = Font_Size_Medium - max_width = 260 - } - - expand = {} - - ### House of Curiosities widget ### - hbox = { - visible = "[DomicileBuilding.HasParameter( 'can_receive_artifacts' )]" - spacing = 5 - - tooltip = "DOMICILE_ARTIFACT_COUNTER_TOOLTIP" - using = tooltip_se - - text_single = { - text = "CABINET_OF_CURIOSITIES_ARTIFACT_HEADER" - align = nobaseline - using = Font_Size_Small - max_width = 80 - } - - text_single = { - text = "[DomicileWindow.GetCharacter.GetHouse.MakeScope.ScriptValue('cabinet_of_curiosities_artifact_score')|0]" - align = nobaseline - using = Font_Size_Small - max_width = 30 - } - - button_round = { - datacontext = "[DomicileWindow.GetCharacter.GetInventory]" - name = "cabinet_of_curiosities_button" - size = { 40 40 } - - enabled = "[Not( IsDataModelEmpty( Inventory.GetArtifacts ) )]" - onclick = "[Character.OpenPlayerInteraction( 'cabinet_of_curiosities_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'cabinet_of_curiosities_interaction' )]" - using = tooltip_se - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - - expand = {} - } - } - - ### Upgrade Desc ### - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - hbox = { - layoutpolicy_horizontal = expanding - hbox_domicile_building_cost_bar = { - datacontext = "[DomicileWindow.GetPreviewCostBreakdown]" - visible = "[And( DomicileWindow.IsEditMode, Not( DomicileWindow.GetDomicile.HasBuildingOrHigherTier( DomicileWindow.GetSelectedTreePreview ) ) )]" - } - - expand = {} - } - - text_multi = { - margin = { 15 10 } - max_width = 520 - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[DomicileBuilding.GetModifierDesc]" - autoresize = yes - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - } - - ### Cost & Upgrade/Construct/Demolish ### - vbox = { - datacontext = "[DomicileWindow.GetNextUpgrade]" - visible = "[Not( DomicileBuildingSlot.IsUnderConstruction )]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - ### Upgrade Costs ### - hbox_domicile_building_cost_bar = { - blockoverride "upgrade_cost_text_visibility" {} - datacontext = "[DomicileWindow.GetNextUpgradeCostBreakdown]" - visible = "[And( DomicileWindow.IsEditMode, DomicileWindow.IsSelectedUpgradeValid )]" - } - - ### Upgrade Buttons ### - hbox = { - spacing = 10 - - button_standard = { - name = "construct_button" - size = { 155 33 } - visible = "[And( DomicileWindow.IsEditMode, Or( DomicileWindow.IsInspectLineTreeBuilding, DomicileBuildingSlot.HasSelectedFreeInternalSlot ) )]" - - text = "CONSTRUCT" - - onclick = "[DomicileWindow.SetShowConstructionStartedNotification( DomicileWindow.GetSelectedSlotIndex )]" - onclick = "[PostCommand( Domicile.BuildBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - enabled = "[IsValidCommand( Domicile.BuildBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - - tooltip = "[DomicileBuilding.GetBuildTooltip( Character.Self )]" - using = tooltip_ne - } - - button_primary = { - datacontext = "[DomicileWindow.GetNextUpgrade]" - name = "upgrade_button" - visible = "[And( And( DomicileWindow.IsEditMode, Not( DomicileWindow.IsInspectLineTreeBuilding ) ), Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ) )]" - size = { 250 33 } - - text = "UPGRADE_DOMICILE" - - onclick = "[PostCommand( Domicile.UpgradeBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - enabled = "[IsValidCommand( Domicile.UpgradeBuilding( DomicileBuilding.Self, DomicileWindow.Self ) )]" - tooltip = "[DomicileBuilding.GetUpgradeTooltip( Character.Self )]" - using = tooltip_se - } - - button_round= { - name = "demolish_button" - datacontext = "[DomicileWindow.GetConstructedBuildingInSelectedSlot]" - - visible = "[And( Not( DomicileBuilding.IsMain ), And( And( DomicileWindow.IsEditMode, Not( DomicileWindow.IsInspectLineTreeBuilding ) ), Not( DomicileBuildingSlot.HasSelectedFreeInternalSlot ) ) )]" - size = { 40 40 } - - onclick = "[DomicileWindow.ClearInternalBuildingSelected]" - onclick = "[DomicileWindow.ResetLineTreeToSelectedSlot]" - onclick = "[CreateCommandPopup( Domicile.DemolishBuilding( DomicileBuilding.Self ) )]" - enabled = "[IsValidCommand( Domicile.DemolishBuilding( DomicileBuilding.Self ) )]" - tooltip = "[DomicileBuilding.GetDemolishTooltip]" - using = tooltip_se - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/reforge.dds" - } - } - } - } - - vbox = { - visible = "[DomicileBuildingSlot.IsUnderConstruction]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 5 - - text_label_center = { - text = "[Domicile.GetConstructionStatusText]" - align = nobaseline - - margin = { 0 5 } - } - - hbox = { - spacing = 5 - - ### Under Construction ### - progressbar_standard = { - visible = "[DomicileBuildingSlot.IsUnderConstruction]" - name = "construct_progressbar" - size = { 250 30 } - - layoutstretchfactor_horizontal = 1 - alwaystransparent = yes - - value = "[DomicileWindow.GetDomicile.GetConstructionProgress]" - min = 0 - max = 1 - - text_single = { - parentanchor = center - text = "[DomicileBuildingSlot.GetConstructionDaysLeft]" - default_format = "#high" - align = nobaseline - max_width = 120 - } - } - - button_round = { - name = "abort_button" - visible = "[DomicileWindow.IsEditMode]" - size = { 42 42 } - - onclick = "[GetVariableSystem.Clear( 'show_building_panel' )]" - onclick = "[CreateCommandPopup( Domicile.CancelConstruction )]" - enabled = "[IsValidCommand( Domicile.CancelConstruction )]" - - tooltip = "[DomicileWindow.GetCancelConstructionTooltip]" - - using = tooltip_ne - - button_icon = { - parentanchor = center - size = { 26 26 } - texture = "gfx/interface/icons/flat_icons/window_close.dds" - alwaystransparent = yes - } - } - } - } - } - } - - type vbox_domicile_upgrade_tree = vbox { - datacontext = "[DomicileWindow.GetDomicileLineTree]" - allow_outside = yes - - container = { - container = { - name = "domicile_tree_item_line_area" # Name used in code do not change - parentanchor = hcenter - position = { -5 -50 } - allow_outside = yes - - datamodel = "[DomicileLineTree.GetItems]" - - widget = { - name = "connection_lines" - visible = "[DomicileLineTree.SetupLinesContainer( PdxGuiWidget.Self )]" - position = { 22 30 } # HERE YOU MODIFY LINE START POSITION - allow_outside = yes - - datamodel = "[DomicileLineTree.GetConnections]" - - item = { - container = { - datacontext = "[DomicileLineConnection.GetChild.GetItem]" - - # Upgrades that are unlocked - line = { - visible = "[DomicileTreeNode.IsUnlocked]" - using = Line_Domicile_Constructed - from = "[DomicileLineConnection.GetLineFrom]" - to = "[DomicileLineConnection.GetLineTo]" - } - - # Upgrades that can be constructed - line = { - visible = "[And( Not(DomicileTreeNode.IsUnlocked), Not(DomicileTreeNode.IsUnAvailable) )]" - using = Line_Domicile_CanConstruct - from = "[DomicileLineConnection.GetLineFrom]" - to = "[DomicileLineConnection.GetLineTo]" - } - - # Upgrades that are unavailable - line = { - visible = "[And( Not(DomicileTreeNode.IsUnlocked), DomicileTreeNode.IsUnAvailable )]" - using = Line_Domicile_Unavailable - from = "[DomicileLineConnection.GetLineFrom]" - to = "[DomicileLineConnection.GetLineTo]" - } - } - } - } - - item = { - button_domicile_upgrade_tree_node = {} - } - } - } - } - - type button_domicile_upgrade_tree_node = button { - datacontext = "[DomicileLineItem.GetItem]" - position = "[DomicileLineTree.GetItemPosition( DomicileTreeNode.Self )]" - size = { 60 60 } - - ### Upgrade Button ### - datacontext = "[DomicileTreeNode.GetBuilding]" - allow_outside = yes - - onclick = "[DomicileWindow.ClearInternalBuildingSelected]" - onclick = "[DomicileTreeNode.OnClick]" - tooltip = "[DomicileTreeNode.GetNodeTooltip]" - using = tooltip_ne - - container = { - parentanchor = center - - widget = { - name = "top_pin" - visible = "[DomicileLineItem.SetupTopWidget( PdxGuiWidget.Self )]" - position = { 0 -38 } - } - - widget = { - name = "bottom_pin" - visible = "[DomicileLineItem.SetupBottomWidget( PdxGuiWidget.Self )]" - position = { 0 -15 } - } - } - - ### Temporary Glow when selected External Building ### - icon = { - name = "temporary_glow_external" - visible = "[And( DomicileTreeNode.IsSelected, Not( DomicileBuilding.IsInternal ) )]" - parentanchor = center - size = { 90 90 } - color = { 0.9 0.8 0.6 1 } - texture = "gfx/interface/window_roco_grandeur/pin_highlight.dds" - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.3 - duration = 1.5 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.5 - duration = 1.5 - - using = Animation_Curve_Default - } - } - - ### Temporary Glow when selected Internal Building### - icon = { - name = "temporary_glow_internal" - visible = "[And( DomicileTreeNode.IsSelected, DomicileBuilding.IsInternal )]" - parentanchor = center - size = { 75 75 } - color = { 0.9 0.8 0.6 1 } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - alpha = 1 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - alpha = 0.7 - duration = 1.5 - - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 1 - duration = 1.5 - - using = Animation_Curve_Default - } - } - - button = { - parentanchor = center - size = { 65 65 } - - onclick = "[DomicileWindow.ClearInternalBuildingSelected]" - onclick = "[DomicileTreeNode.OnClick]" - tooltip = "[DomicileTreeNode.GetNodeTooltip]" - using = tooltip_ne - - button = { - alwaystransparent = yes - parentanchor = top|hcenter - size = { 65 65 } - - - highlight_icon = { - #visible = "[Not( DomicileBuilding.IsInternal )]" - alwaystransparent = yes - parentanchor = center - size = { 65 65 } - texture = "gfx/interface/window_domiciles/domicile_icon_bg_level_01.dds" - } - - ### Icon color ### - button_domicile_building_can_upgrade = { - name = "building_icon_can_constructed" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[And( Not(DomicileTreeNode.IsUnlocked), Not(DomicileTreeNode.IsUnAvailable) )]" - } - - button_domicile_building_cannot_upgrade = { - name = "building_icon_is_constructed" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[DomicileTreeNode.IsUnlocked]" - } - - button_domicile_building_unavailable = { - name = "building_icon_unavailable" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - visible = "[And( Not(DomicileTreeNode.IsUnlocked), DomicileTreeNode.IsUnAvailable )]" - } - } - - ### Building Tier ### - widget = { - parentanchor = bottom|hcenter - size = { 45 16 } - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - text_single = { - name = "upgrade_tier" - parentanchor = center - text = "[DomicileTreeNode.GetTier]" - align = nobaseline - fontsize = 13 - } - } - } - } - - type vbox_domicile_building_overview_group_foldout = vbox { - datacontext = "[DomicileOverviewBuildingItem.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - visible = "[Not( IsDataModelEmpty( DomicileOverviewBuildingItem.GetInternalOverviewBuildings ) )]" - min_height = 68 - - hbox_domicile_building_overview_item = {} - } - button_expandable_toggle_field = { - visible = "[IsDataModelEmpty( DomicileOverviewBuildingItem.GetInternalOverviewBuildings )]" - min_height = 68 - - hbox_domicile_building_overview_item = {} - - blockoverride "foldout_button" { - visible = no - } - } - - vbox = { - visible = "[And( PdxGuiFoldOut.IsUnfolded, Not( IsDataModelEmpty( DomicileOverviewBuildingItem.GetInternalOverviewBuildings ) ) )]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "internal_building_items" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 195 - addrow = 68 - - datamodel = "[DomicileOverviewBuildingItem.GetInternalOverviewBuildings]" - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox_domicile_building_overview_item = {} - expand = {} - } - } - } - } - } - - type hbox_domicile_building_overview_item = hbox { - datacontext = "[DomicileOverviewBuildingItem.GetBuilding]" - datacontext = "[DomicileBuilding.GetAsset( DomicileWindow.GetDomicile.Self )]" - margin_left = "[Select_float( DomicileBuilding.IsInternal, '(float)90.0', '(float)40.0' )]" - margin_right = 20 - spacing = 5 - - layoutpolicy_horizontal = expanding - - background = { - visible = "[DomicileBuilding.IsInternal]" - margin_left = -82 - - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - } - } - - tooltipwidget = { - container = { - using = domicile_building_tooltip - } - } - - widget = { - size = { 60 60 } - - button_domicile_building_can_upgrade = { - datacontext = "[DomicileBuilding.GetAsset( Domicile.Self )]" - visible = "[DomicileOverviewBuildingItem.CanUpgrade]" - parentanchor = center - - size = { 42 42 } - texture = "[DomicileBuildingAsset.GetIcon]" - } - - button_domicile_building_cannot_upgrade = { - datacontext = "[DomicileBuilding.GetAsset( Domicile.Self )]" - visible = "[Not( DomicileOverviewBuildingItem.CanUpgrade )]" - parentanchor = center - - size = { 42 42 } - texture = "[DomicileBuildingAsset.GetIcon]" - } - - widget = { - visible = "[And( DomicileWindow.IsEditMode, DomicileOverviewBuildingItem.CanUpgrade )]" - parentanchor = top|right - size = { 30 30 } - - tooltip = "DOMICILE_WINDOW_UPGRADE_AVAILABLE" - - widget = { - size = { 100% 100% } - - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 1 - duration = 1.5 - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - alpha = 0 - duration = 1.5 - using = Animation_Curve_Default - } - - state = { - name = c - next = a - - alpha = 0 - delay = 2 - using = Animation_Curve_Default - } - - background = { - using = Background_Area_Dark - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - } - - icon = { - parentanchor = center - position = { 0 0 } - - size = { 16 16 } - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 2 - } - - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 1 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - alpha = 0 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = c - next = a - - alpha = 0 - delay = 3 - using = Animation_Curve_Default - } - } - - icon = { - parentanchor = center - position = { 0 -5 } - - size = { 16 16 } - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 2 - } - - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - alpha = 1 - delay = 0.5 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - alpha = 0 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = c - next = a - - alpha = 0 - delay = 2.5 - using = Animation_Curve_Default - } - } - - icon = { - parentanchor = center - position = { 0 -10 } - - size = { 16 16 } - texture = "gfx/interface/icons/flat_icons/arrow_vertical.dds" - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 2 - } - - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - - - alpha = 1 - delay = 1 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = b - next = c - - alpha = 0 - duration = 1 - using = Animation_Curve_Default - } - - state = { - name = c - next = a - - alpha = 0 - delay = 2 - using = Animation_Curve_Default - } - } - } - } - - text_single = { - max_width = 200 - min_width = 200 - layoutpolicy_vertical = expanding - text = "[DomicileBuilding.GetNameNoTooltip]" - align = nobaseline - } - - expand = {} - - text_single = { - raw_text = "Level" - align = nobaseline|hcenter - } - - text_single = { - name = "upgrade_tier" - align = nobaseline - text = "[DomicileOverviewBuildingItem.GetTier]" - } - } - - type hbox_domicile_building_cost_bar = hbox { - name = "building_costs" - margin = { 3 3 } - min_width = 120 - spacing = 10 - - background = { - margin_left = 40 - margin_right = 40 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - ### AI Will Do ### - debug_square = { - name = "tributary" - visible = "[AIWatchWindowsEnabled]" - - size = { 20 20 } - raw_tooltip = "#D AI will build: [PotentialBuildingItem.GetAIWillDo]#!" - } - - block "upgrade_cost_text_visibility" - { - vbox = { - text_single = { - text = "UPGRADE_COST" - align = nobaseline - visible = "[Not( PotentialBuildingItem.GetBuilding.IsRootOfTrack )]" - } - text_single = { - text = "CONSTRUCT_COST" - align = nobaseline - visible = "[PotentialBuildingItem.GetBuilding.IsRootOfTrack]" - } - } - } - - ### Gold Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetGoldCost]" - visible = "[PotentialBuildingItem.HasGoldCost]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetGold, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - ### Prestige Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetPrestigeCost]" - visible = "[PotentialBuildingItem.HasPrestigeCost]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPrestige, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - ### Piety Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetPietyCost]" - visible = "[PotentialBuildingItem.HasPietyCost]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetPiety, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - ### Influence Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetInfluenceCost]" - visible = "[PotentialBuildingItem.HasInfluenceCost]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetInfluence, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - ### Herd Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetHerdCost]" - visible = "[PotentialBuildingItem.HasHerdCost]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - background = { - visible = "[LessThan_CFixedPoint(GetPlayer.GetDomicile.GetHerd, ValueBreakdown.GetFixedPointValue)]" - using = Status_Bad - } - } - - ### Time Cost ### - text_single = { - datacontext = "[PotentialBuildingItem.GetConstructionTime]" - layoutpolicy_horizontal = expanding - - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - } - - type hbox_patron_item = hbox { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin = { 5 8 } - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin_left = 10 - } - - text_single = { - layoutpolicy_horizontal = expanding - - - text = "[Character.GetShortUINameNoTooltip]" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_LOCATION_TOOLTIP" - align = nobaseline - max_width = 350 - } - - expand = {} - - vbox = { - margin_top = 5 - margin_right = 5 - - button_round = { - visible = "[Not( DomicileWindow.IsPatronTooFarAway( Character.Self ) )]" - - enabled = "[Character.IsPlayerInteractionValid('contact_list_request_interaction')]" - onclick = "[Character.OpenPlayerInteraction( 'contact_list_request_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'contact_list_request_interaction' )]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/election_window.dds" - } - } - } - } - - expand = {} - } - } - - type hbox_disciple_item = hbox { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin = { 5 8 } - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin_left = 10 - } - - text_single = { - layoutpolicy_horizontal = expanding - - - text = "[Character.GetShortUINameNoTooltip]" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_LOCATION_TOOLTIP" - align = nobaseline - max_width = 350 - } - hbox = { - button_round = { - datacontext = "[DomicileWindow.GetDomicile]" - visible = "[Character.IsPlayerInteractionShown('celestial_request_elders_support_interaction') ]" - - enabled = "[Character.IsPlayerInteractionValid('celestial_request_elders_support_interaction')]" - onclick = "[Character.OpenPlayerInteraction( 'celestial_request_elders_support_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'celestial_request_elders_support_interaction' )]" - - button_icon = { - size = { 25 25 } - parentanchor = center - alwaystransparent = yes - texture = "[Domicile.GetType.GetIcon]" - } - } - button_round = { - visible = "[Character.IsPlayerInteractionShown('break_with_disciple') ]" - - enabled = "[Character.IsPlayerInteractionValid('break_with_disciple')]" - onclick = "[Character.OpenPlayerInteraction( 'break_with_disciple' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'break_with_disciple' )]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/army_disband.dds" - } - } - } - - expand = {} - } - - expand = {} - } - } - - type hbox_elder_item = hbox { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin = { 5 8 } - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin_left = 10 - } - - text_single = { - layoutpolicy_horizontal = expanding - - - text = "[Character.GetShortUINameNoTooltip]" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CHARACTER_LOCATION_TOOLTIP" - align = nobaseline - max_width = 350 - } - hbox = { - button_round = { - datacontext = "[DomicileWindow.GetDomicile]" - visible = "[Character.IsPlayerInteractionShown('celestial_request_elders_support_interaction') ]" - - enabled = "[Character.IsPlayerInteractionValid('celestial_request_elders_support_interaction')]" - onclick = "[Character.OpenPlayerInteraction( 'celestial_request_elders_support_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'celestial_request_elders_support_interaction' )]" - - button_icon = { - size = { 25 25 } - parentanchor = center - alwaystransparent = yes - texture = "[Domicile.GetType.GetIcon]" - } - } - button_round = { - visible = "[Character.IsPlayerInteractionShown('break_with_elder') ]" - - enabled = "[Character.IsPlayerInteractionValid('break_with_elder')]" - onclick = "[Character.OpenPlayerInteraction( 'break_with_elder' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'break_with_elder' )]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/army_disband.dds" - } - } - } - - expand = {} - } - - expand = {} - } - } - - ### Golden color - type button_domicile_building_can_upgrade = button { - size = { 30 30 } - - alwaystransparent = yes - parentanchor = center - - block "icon_texture" - { - texture = "[DomicileBuildingAsset.GetIcon]" - } - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 1 - } - } - - ### Blue color - type button_domicile_building_cannot_upgrade = button { - size = { 30 30 } - - alwaystransparent = yes - parentanchor = center - - block "icon_texture" - { - texture = "[DomicileBuildingAsset.GetIcon]" - } - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 7 - } - } - - ### Gray color - type button_domicile_building_unavailable = button { - size = { 30 30 } - - alwaystransparent = yes - parentanchor = center - - block "icon_texture" - { - texture = "[DomicileBuildingAsset.GetIcon]" - } - - modify_texture = { - texture = "gfx/interface/window_domiciles/colors_textured_domiciles.dds" - blend_mode = add - framesize = { 96 96 } - frame = 4 - } - } -} diff --git a/N3OW/gui/window_dynasty_house.gui b/N3OW/gui/window_dynasty_house.gui deleted file mode 100644 index f608a82f..00000000 --- a/N3OW/gui/window_dynasty_house.gui +++ /dev/null @@ -1,3008 +0,0 @@ -### DYNASTY HOUSE WINDOW -window = { - name = "dynasty_house_view" - widgetid = "dynasty_house_view" - datacontext = "[DynastyHouseView.GetDynastyHouse]" - datacontext = "[DynastyHouse.GetDynasty]" - movable = no - allow_outside = yes - layer = middle - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position_x = 0 - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - on_start = "[GetVariableSystem.Set( 'dynasty_view_expand', 'none' )]" - } - - state = { - name = _hide - - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position_x = -60 - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - name = "dynasty_house" - widgetid = "dynasty_house" - datacontext = "[DynastyHouse.GetDynasty]" - datacontext = "[DynastyHouseView.GetTopLegacy]" - using = Window_Margins_Sidebar - - background = { - using = Background_Bottom_Fade - margin_right = -10 - } - - background = { - visible = "[DynastyHouseView.IsInHouseRelationsTabMode]" - texture = "[DynastyLegacyItem.GetLegacy.GetTrackIcon]" - tintcolor = { 0.6 0.6 0.6 0.7 } - alpha = 0.5 - fittype = end - using = Mask_Rough_Edges - framesize = { 826 368 } - frame = 3 - margin_right = -17 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - ### HOUSE ### - vbox = { - name = "house" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - #### HEADER - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 5 0 } - - coa_house_big = { - state = { - name = "house_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - blockoverride "coa_button" - { - alwaystransparent = yes - } - - tooltipwidget = { - using = dynasty_house_tooltip - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_vertical = expanding - text = "HOUSE_VIEW_NAME_WITH_HOUSE" - max_width = 320 - autoresize = yes - fontsize_min = 14 - align = left - using = Font_Type_Flavor - using = Font_Size_Big - default_format = "#high" - - state = { - name = "house_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - spacer = { - size = { 5 0 } - } - - button_edit_text = { - visible = "[DynastyHouse.CanPlayerCustomize]" - onclick = "[OpenHouseCustomizationWindow(DynastyHouse.Self)]" - tooltip = "CUSTOMIZE_HOUSE" - } - - expand = {} - - buttons_window_control = { - - blockoverride "button_close" - { - onclick = "[DynastyHouseView.Close]" - onclick = "[DynastyHouseView.CloseMembersWindow]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 10 - margin_right = -1 - spacing = 3 - - state = { - name = "house_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - vbox = { - layoutpolicy_vertical = expanding - text_single = { - text = "HOUSE_VIEW_CONCEPT" - align = nobaseline - } - expand = {} - } - text_multi = { - text = "HOUSE_VIEW_FOUNDED" - default_format = "#low" - autoresize = yes - max_width = 361 - align = nobaseline - } - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - maximumsize = { 0 40 } - max_width = 400 - autoresize = yes - text = "HOUSE_VIEW_MOTTO" - fontsize = 17 - default_format = "#medium;bold;italic" - } - - expand = {} - } - - hbox = { - visible = "[DataModelHasItems( DynastyHouseView.GetHouseModifiers )]" - layoutpolicy_horizontal = expanding - - hbox = { - datamodel = "[DynastyHouseView.GetHouseModifiers]" - spacing = 5 - - text_single = { - maximumsize = { 0 40 } - max_width = 400 - autoresize = yes - text = "HOUSE_MODIFIERS" - align = nobaseline - } - - item = { - modifier_item_icon = { - } - } - } - - expand = {} - } - expand = {} - } - } - } - } - - ### INVALID ### - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[DynastyHouse.GetFounder]" - visible = "[Not( DynastyHouse.GetHeadOfHouse.IsValid )]" - margin = { 15 0 } - minimumsize = { 0 260 } - margin_bottom = 10 - - datacontext = "[GetIllustration( 'character_view_bg' )]" - - state = { - name = "house_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - background = { - visible = "[Character.IsValid]" - texture = "[Illustration.GetTexture( Character.MakeScope )]" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - margin_top = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - spacer = { - size = { 100 100 } - } - - expand = {} - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "DYNASTY_TT_DEAD_HOUSE" - max_width = 370 - } - - expand = {} - } - - #### VALID #### - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[DynastyHouse.GetHeadOfHouse]" - datacontext = "[GetIllustration( 'character_view_bg' )]" - visible = "[DynastyHouse.GetHeadOfHouse.IsValid]" - margin_top = 20 - margin_bottom = 5 - - state = { - name = "house_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - alpha = 0.6 - fittype = centercrop - margin_top = 120 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - spritetype = corneredstretched - spriteborder_left = 290 - alpha = 0.9 - mirror = horizontal - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - size = { 20 20 } - alwaystransparent = yes - - texture = "gfx/interface/icons/portraits/relation_small.dds" - framesize = { 28 28 } - frame = "1" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "HOUSE_VIEW_HOUSE_HEAD_OF" - autoresize = no - max_width = 360 - default_format = "#high" - } - - expand = {} - } - - text_single = { - margin_left = 25 - layoutpolicy_horizontal = expanding - text = "[DynastyHouse.GetHeadOfHouse.GetName]" - default_format = "#high" - max_width = 400 - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#weak" - max_width = 400 - - margin_left = 25 - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 17 - margin_bottom = 5 - - background={ - using = Background_Area - margin_left = -15 - margin_top = -2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 8 8 } - - text = "HOUSE_VIEW_MAX_MILITARY_STRENGTH" - max_width = 385 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 25 - - text_multi = { - visible = "[DynastyHouse.HasHeirOfHouse]" - datacontext = "[DynastyHouse.GetHeirOfHouse]" - - text = "HOUSE_HEAD_HEIR" - maximumsize = { 350 60 } - max_width = 350 - autoresize = yes - } - - expand = {} - } - - hbox = { - visible = "[And( AIWatchWindowsEnabled, DynastyHouse.HasHouseTitle )]" - - layoutpolicy_horizontal = expanding - margin_left = 25 - - datacontext = "[DynastyHouse.GetHouseTitle]" - - text_multi = { - raw_text = "#D House Title: [Title.GetName|U] #D" - maximumsize = { 350 60 } - max_width = 350 - autoresize = yes - } - - expand = {} - } - - spacer = { - visible = "[Character.IsDynast]" - size = { 10 10 } - } - - expand = {} - - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - widget = { - size = { 140 140 } - - icon = { - size = { 160 160 } - position = { -60 -40 } - parentanchor = center - - texture = "[HouseAspiration.GetIcon]" - alpha = 0.7 - - datacontext = "[DynastyHouse.GetHouseAspiration]" - visible = "[Character.GetGovernment.IsType( 'mandala_government' )]" - - modify_texture = { - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 0.2 - } - } - - portrait_torso = { - size = { 100% 100% } - name = "head_of_house_portrait" - datacontext = "[GetIllustration( 'character_view_bg' )]" - visible = "[DynastyHouse.HasHeadOfHouse]" - - - blockoverride "status_icons" {} - blockoverride "coa" {} - - blockoverride "portrait_button" {} - } - } - button_standard = { - onclick = "[DynastyHouseView.ToggleMembersWindow('house')]" - tooltip = "HOUSE_VIEW_MEMBERS_TT" - text = "HOUSE_VIEW_MEMBERS" - } - } - } - } - - hbox = { - name = "house_aspiration_et_al" - visible = "[Or( DynastyHouse.UsesHouseAspirations, Character.HasDomicile )]" - datacontext = "[DynastyHouse.GetHeadOfHouse]" - - layoutpolicy_horizontal = expanding - margin = { 10 8 } - - background = { - using = Background_Area - } - - hbox = { - visible = "[Character.HasDomicile]" - datacontext = "[Character.GetDomicile]" - - widget_access_domicile_button = { } - - vbox = { - name = "domicile_info" - - margin = { 8 4 } - margin_top = 2 - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOUSE_VIEW_DOMICILE_NAME" - align = left - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOUSE_VIEW_DOMICILE_LOCATION" - align = left - } - } - } - - expand = {} - - hbox_house_bloc_info = {} - - hbox = { - visible = "[DynastyHouse.UsesHouseAspirations]" - datacontext = "[DynastyHouse.GetHouseAspiration]" - spacing = 5 - - widget_house_powerfulness = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - hbox_house_power_levels = {} - } - } - - #TABS - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[DynastyHouseView.OpenDynastyTab]" - down = "[DynastyHouseView.IsInDynastyTabMode]" - - text_single = { - text = "HOUSE_DYNASTY_TAB_BUTTON" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - visible = "[DynastyHouseView.HasHouseUnity]" - layoutpolicy_horizontal = expanding - onclick = "[DynastyHouseView.OpenHouseUnityTab]" - down = "[DynastyHouseView.IsInHouseUnityTabMode]" - - text_single = { - text = "HOUSE_UNITY_TAB_BUTTON" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - - text_single = { - parentanchor = vcenter|right - position = { -20 0 } - - text = "[DynastyHouse.GetHouseUnityValue]" - - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[DynastyHouseView.OpenHouseRelationsTab]" - down = "[DynastyHouseView.IsInHouseRelationsTabMode]" - - text_single = { - text = "HOUSE_RELATIONS_TAB_BUTTON" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - - text_single = { - parentanchor = vcenter|right - position = { -20 0 } - - text = "[GetDataModelSize( DynastyHouseView.GetHouseRelations )]" - - default_format = "#low" - - alpha = "[Select_float( GreaterThan_int32(GetDataModelSize( DynastyHouseView.GetHouseRelations ), '(int32)0'), '(float)1.0', '(float)0.5' )]" - } - } - - } - - vbox = { - name ="house_details" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_house_dynasty = { - visible = "[Or(DynastyHouseView.IsInDynastyTabMode, And( DynastyHouseView.IsInHouseUnityTabMode, Not( DynastyHouseView.HasHouseUnity ) ) )]" - } - - vbox_house_relations = { - visible = "[DynastyHouseView.IsInHouseRelationsTabMode]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - vbox_house_unity = { - visible = "[And(DynastyHouseView.IsInHouseUnityTabMode, DynastyHouseView.HasHouseUnity)]" - } - } - } - } - - window = { - name = "houses_list" - size = { 580 90% } - resizable = no - focuspolicy = click - visible = "[GetVariableSystem.HasValue( 'dynasty_view_expand', 'houses' )]" - datacontext = "[DynastyHouseView.GetDynastyHouse.GetDynasty]" - - attachto = { - widgetid = "dynasty_house_view" - inherit_visibility = no - } - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 600 - on_start = "[GetVariableSystem.Set( 'houses_list_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = 580 - on_start = "[GetVariableSystem.Clear( 'houses_list_open' )]" - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "DYNASTY_VIEW_HOUSES" - } - - blockoverride "button_close" - { - onclick = "[GetVariableSystem.Set( 'dynasty_view_expand', 'none' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 20 - margin_top = 5 - spacing = 5 - - dropdown_menu_standard = - { - blockoverride "dropdown_properties" - { - datamodel = "[DynastyHouseView.GetOrderOptions]" - onselectionchanged = "[DynastyHouseView.SortHouses]" - selectedindex = "[DynastyHouseView.GetSortSelectedIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[HouseOrderOption.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[HouseOrderOption.GetName]" - } - - } - - expand = {} - } - - scrollbox = { - name = "houses" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[DynastyHouseView.GetDynastyHouses]" - - item = { - button_standard_hover = { - visible = "[DynastyHouse.HasBeenFounded]" - layoutpolicy_horizontal = expanding - size = { 0 120 } - - onclick = "[PdxGuiTriggerAllAnimations('house_view_refresh')]" - onclick = "[DefaultOnHouseCoatOfArmsClick(DynastyHouse.GetID)]" - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 5 10 } - - coa_house_medium = {} - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[DynastyHouse.GetBaseNameNoTooltip]" - default_format = "#high" - align = nobaseline - fontsize_min = 14 - autoresize = no - using = Font_Size_Medium - } - - expand = {} - - text_single = { - visible = "[DynastyHouse.IsFoundingHouse]" - text = "HOUSE_LIST_FOUNDING" - default_format = "#weak" - align = nobaseline - } - - text_single = { - visible = "[Not(DynastyHouse.IsFoundingHouse)]" - text = "HOUSE_LIST_CADET" - align = nobaseline - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = HOUSE_LIST_HEAD - max_width = 365 - fontsize_min = 14 - align = nobaseline - } - - spacer = { - size = { 10 10 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOUSE_LIST_MEMBERS" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOUSE_LIST_FOUNDATION" - default_format = "#weak" - } - text_single = { - text = "HOUSE_LIST_HEAD_MAX_MILITARY_STRENGTH" - tooltip = "HOUSE_LIST_MILITARY_STRENGTH_TT" - align = right - } - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 3 } - } - } - } - } - } - } - } - } - } -} - -types DynastyView -{ - type hbox_house_bloc_info = hbox { - datacontext = "[DynastyHouse.GetConfederation]" - visible = "[Confederation.IsValid]" - margin = { 8 0 } - - widget = { - size = { 48 48 } - - using = tooltip_es - tooltip_offset = { 20 0 } - - tooltipwidget = { - using = confederation_tooltip - } - - coa_bloc_tiny = { - parentanchor = vcenter|hcenter - datacontext = "[Confederation]" - onclick = "[OpenGameViewData( 'confederation_window', Confederation.Self )]" - } - } - - text_single = { - max_width = 220 - - text = "DYNASTY_HOUSE_BLOC_MEMBERSHIP_STATUS" - align = nobaseline - } - - expand = {} - } - - - ### DYNASTY - type vbox_house_dynasty = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - margin_top = 10 - margin_left = 15 - margin_right = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0} - - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - margin_right = 10 - - coa_dynasty_medium = { - - blockoverride "coa_button" - { - alwaystransparent = yes - } - - tooltipwidget = { - using = DynastyTooltip - } - } - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_multi = { - text = "HOUSE_VIEW_PART_OF_DYNASTY" - autoresize = yes - maximumsize = { 0 60 } - max_width = 240 - using = Font_Type_Flavor - using = Font_Size_Big - default_format = "#high" - } - - button_edit_text = { - visible = "[Dynasty.CanPlayerCustomize]" - onclick = "[OpenDynastyCustomizationWindow(Dynasty.Self)]" - tooltip = "CUSTOMIZE_DYNASTY" - } - - expand = {} - } - - ### MODIFIERS ### - hbox = { - visible = "[DataModelHasItems( DynastyHouseView.GetDynastyModifiers )]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_bottom = -8 - - text_single = { - text = "DYNASTY_MODIFIERS" - align = nobaseline - } - - hbox = { - name = "dynasty modifiers" - datamodel = "[DynastyHouseView.GetDynastyModifiers]" - - item = { - modifier_item_icon = {} - } - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTY_VIEW_CONCEPT" - max_width = 280 - align = left - } - - text_multi= { - visible = "[Dynasty.GetDynast.IsValid]" - layoutpolicy_horizontal = expanding - text = "DYNASTY_TT_DYNAST" - default_format = "#low" - align = top - } - - text_single = { - visible = "[Not( Dynasty.GetDynast.IsValid )]" - layoutpolicy_horizontal = expanding - text = "DYNASTY_TT_DEAD_DYNASTY" - default_format = "#low" - autoresize = no - max_width = 440 - align = left - } - - } - - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "DYNASTY_SPLENDOR" - using = Font_Size_Medium - default_format = "#high" - max_width = 200 - } - - text_single = { - - text = "[Dynasty.GetPrestigeLevelName]" - using = Font_Size_Medium - default_format = "#high" - max_width = 180 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { -2 0 } - - progressbar_standard = { - size = { 350 25 } - - value = "[Dynasty.GetPrestigeLevelProgress]" - tooltip = "[Dynasty.GetPrestigeLevelProgressTooltip]" - } - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOUSE_VIEW_DYNASTY_PRESTIGE" - align = nobaseline - max_width = 380 - } - } - expand = {} - } - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - - container = { - name = "dynasty_head" - datacontext = "[Dynasty.GetHeadOfDynasty]" - - using = Animation_Character_Window_Refresh - - portrait_head = { - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - } - ### DYNASTY TREE ### - button_standard_clean = { - tooltip = "DYNASTY_VIEW_TT_DYNASTY_TREE" - onclick = "[OpenGameViewData( 'dynasty_tree_view', DynastyHouse.GetHeadOfHouseOrLastHistoricHead.GetID )]" - size = { 60 110 } - - button_dynasty_tree = { - alwaystransparent = yes - parentanchor = center - size = {50 50} - } - - background = { - texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - fittype = centercrop - scissor = yes - alpha = 0.4 - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - texture_density = 2 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - vbox = { - spacing = 10 - - button_standard = { - onclick = "[DynastyHouseView.ToggleMembersWindow('dynasty')]" - tooltip = "DYNASTY_VIEW_MEMBERS_TT" - text = "DYNASTY_VIEW_MEMBERS" - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_standard = { - visible = "[GetVariableSystem.HasValue( 'dynasty_view_expand', 'houses' )]" - onclick = "[GetVariableSystem.Set( 'dynasty_view_expand', 'none' )]" - tooltip = "DYNASTY_VIEW_HOUSES_TT" - text = "DYNASTY_VIEW_HOUSES_AMOUNT" - } - - button_standard = { - visible = "[Not(GetVariableSystem.HasValue( 'dynasty_view_expand', 'houses' ))]" - onclick = "[GetVariableSystem.Set( 'dynasty_view_expand', 'houses' )]" - tooltip = "DYNASTY_VIEW_HOUSES_TT" - text = "DYNASTY_VIEW_HOUSES_AMOUNT" - } - } - } - } - expand = {} - } - } - } - - ### LEGACY ### - vbox = { - datacontext = "[DynastyHouse.GetDynasty]" - datacontext = "[DynastyHouseView.GetTopLegacy]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "tutorial_highlight_dynasty_perks_button" - layoutpolicy_horizontal = expanding - spacing = 5 - } - - vbox = { - datacontext = "[DynastyHouse.GetDynasty]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 5 - - widget = { - layoutpolicy_horizontal = expanding - size = { -1 24 } - - hbox = { - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[dynasty_perks|E]" - } - } - - hbox = { - margin = { 15 0 } - - tooltip = "DYNASTY_HOUSE_VIEW_PROGRESS_TOOLTIP" - - expand = {} - - text_single = { - name = "cost" - text = "DYNASTY_HOUSE_VIEW_LEGACY_COST" - align = nobaseline - max_width = 190 - } - } - } - - #This gridbox should display 5 empty spaces if you don't have any legacies yet. New legacies are added on top of those. If you have over 5 legacies, the icons become smaller. - dynamicgridbox = { - datamodel = "[DynastyHouseView.GetLegacies]" - visible = "[Not(LessThan_int32(GetDataModelSize(DynastyHouseView.GetLegacies), '(int32)10'))]" - datamodel_wrap = 6 - flipdirection = yes - - item = { - widget = { - size = { 95 95 } - tooltip = "[DynastyLegacyItem.GetTooltip]" - - widget_legacy_icon = {} - - widget = { - parentanchor = bottom|hcenter - position = { 0 -15 } - allow_outside = yes - - flowcontainer = { - name = "progress_none" - spacing = 2 - parentanchor = center - - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - } - - flowcontainer = { - name = "progress" - spacing = 2 - parentanchor = center - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)1')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)2')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)3')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)4')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - } - } - } - } - } - } - - vbox = { - visible = "[LessThan_int32(GetDataModelSize(DynastyHouseView.GetLegacies), '(int32)10')]" - layoutpolicy_horizontal = expanding - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 100 } - scissor = yes - - dynamicgridbox = { - datamodel = "[DynastyHouseView.GetLegacies]" - datamodel_wrap = 4 - flipdirection = yes - parentanchor = top|hcenter - size = { 0 154 } - - item = { - widget = { - size = { 120 100 } - tooltip = "[DynastyLegacyItem.GetTooltip]" - - widget_legacy_icon = {} - - widget = { - parentanchor = bottom|hcenter - position = { 0 -15 } - allow_outside = yes - - flowcontainer = { - name = "progress_none" - spacing = 2 - parentanchor = center - - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - } - - flowcontainer = { - name = "progress" - spacing = 2 - parentanchor = center - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)1')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)2')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)3')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)4')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - } - } - } - } - } - } - } - - widget = { - visible = "[Not(GreaterThan_int32(GetDataModelSize(DynastyHouseView.GetLegacies), '(int32)7'))]" - size = { 360 100 } - scissor = yes - - dynamicgridbox = { - datamodel = "[DynastyHouseView.GetLegacies]" - flipdirection = yes - parentanchor = bottom - position = { -480 0 } - size = { 0 154 } - - item = { - widget = { - size = { 120 100 } - tooltip = "[DynastyLegacyItem.GetTooltip]" - - widget_legacy_icon = {} - - widget = { - parentanchor = bottom|hcenter - position = { 0 -15 } - allow_outside = yes - - flowcontainer = { - name = "progress_none" - spacing = 2 - parentanchor = center - - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - } - - flowcontainer = { - name = "progress" - spacing = 2 - parentanchor = center - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)1')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)2')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)3')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)4')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - } - } - } - } - } - } - } - - widget = { - visible = "[GreaterThan_int32(GetDataModelSize(DynastyHouseView.GetLegacies), '(int32)7')]" - size = { 550 100 } - scissor = yes - - dynamicgridbox = { - datamodel = "[DynastyHouseView.GetLegacies]" - flipdirection = yes - parentanchor = bottom - position = { -440 0 } - size = { 0 154 } - - item = { - widget = { - size = { 110 100 } - tooltip = "[DynastyLegacyItem.GetTooltip]" - - widget_legacy_icon = {} - - widget = { - parentanchor = bottom|hcenter - position = { 0 -15 } - allow_outside = yes - - flowcontainer = { - name = "progress_none" - spacing = 2 - parentanchor = center - - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - legacy_progress_none = {} - } - - flowcontainer = { - name = "progress" - spacing = 2 - parentanchor = center - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)1')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)2')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)3')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)4')]" - } - - legacy_progress = { - visible = "[GreaterThanOrEqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - } - } - } - } - } - } - } - } - } - - hbox = { - datacontext = "[DynastyHouse.GetDynasty]" - layoutpolicy_horizontal = expanding - margin = { 0 15 } - spacing = 5 - - ### REFERENCE - button_standard_clean = { - name = "top_legacy" - size = { 344 46 } - datacontext = "[DynastyHouseView.GetTopLegacy]" - - onclick = "[OpenGameViewData( 'dynasty_legacy_window', Dynasty.GetID )]" - tooltip = "HOUSE_VIEW_SHOW_DYNASTY_TT" - - widget = { - size = { 100% 100% } - scissor = yes - - background = { - visible = "[EqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)0')]" - texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - fittype = centercrop - tintcolor = { 0.6 0.6 0.6 0.7 } - using = Mask_Rough_Edges - } - - background = { - visible = "[GreaterThan_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)0')]" - texture = "[DynastyLegacyItem.GetLegacy.GetTrackIcon]" - alwaystransparent = yes - fittype = centercrop - tintcolor = { 0.6 0.6 0.6 0.7 } - using = Mask_Rough_Edges - } - } - - icon = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - size = { 99% 92% } - parentanchor = center - } - - text_label_center = { - #text here should say Open Legacies when you don't have enough renown to get one. When you do, it should say acquire legacies. - name = "legacies" - text = "HOUSE_VIEW_SHOW_LEGACIES" - parentanchor = center - align = center - default_format = "#clickable" - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - - type widget_legacy_icon = widget { - size = { 100% 100% } - - background = { - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/temptation.dds" - tintcolor = { 0.2 0.2 0.2 1 } - - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - background = { - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/temptation.dds" - tintcolor = { 1 0.9 1 0.15 } - - using = Mask_Rough_Edges - fittype = centercrop - mirror = horizontal - margin_right = 10 - margin_top = 20 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = alphamultiply - } - } - - icon_flat_standard = { - size = { 80 80 } - parentanchor = top|hcenter - visible = "[GreaterThan_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)0')]" - texture = "[DynastyLegacyItem.GetLegacy.GetIcon]" - alwaystransparent = yes - } - - icon_flat_standard = { - size = { 80 80 } - parentanchor = top|hcenter - visible = "[EqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)5')]" - texture = "[DynastyLegacyItem.GetLegacy.GetIcon]" - alwaystransparent = yes - } - - icon_flat_standard = { - visible = "[EqualTo_int32(DynastyLegacyItem.GetUnlockedPerksCount, '(int32)0')]" - size = { 80 80 } - parentanchor = top|hcenter - texture = "[DynastyLegacyItem.GetLegacy.GetIcon]" - alwaystransparent = yes - blockoverride "master_color_frame" { - frame = 6 - } - } - } - - type legacy_progress_none = icon { - texture = "gfx/interface/progressbars/progress_scheme.dds" - size = { 14 14 } - framesize = { 45 45 } - } - - type legacy_progress = icon { - texture = "gfx/interface/progressbars/progress_scheme.dds" - size = { 14 14 } - framesize = { 45 45 } - frame = 3 - } - - ### HOUSE RELATIONS DETAILS ### - type vbox_house_relations = vbox { - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - fixedgridbox = { - addcolumn = 560 - addrow = 106 - - datamodel = "[DynastyHouseView.GetHouseRelations]" - - item = { - widget = { - size = { 560 96 } - - background = { - visible = "[Not(GreaterThan_int32(HouseRelationItem.GetOpinion, '(int32)-1'))]" - using = Background_Area - using = Color_Red - tintcolor = { 0.9 0.6 0.2 0.15} - margin = { 5 3 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - mirror = vertical - } - } - - background = { - visible = "[GreaterThan_int32(HouseRelationItem.GetOpinion, '(int32)0')]" - using = Background_Area - using = Color_White - tintcolor = { 0.0 0.6 0.9 0.15} - margin = { 5 3 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - mirror = vertical - } - } - - hbox_house_relation_item = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - text = "HOUSE_VIEW_NO_RELATIONS" - visible = "[IsDataModelEmpty(DynastyHouseView.GetHouseRelations)]" - } - } - - expand = {} - } - - - ## House Relation list item - # - # Display House Head, CoA, Relation Level, etc for the relation to one other house. - # - type hbox_house_relation_item = hbox { - datacontext = "[HouseRelationItem.GetOppositeHouse]" - datacontext = "[HouseRelationItem.GetRelation]" - datacontext = "[HouseRelationItem.GetLevels]" - datacontext = "[DynastyHouse.GetHeadOfHouse]" - - hbox = { - coa_house_medium = { - text_single = { - name = "house_relation_opinion" - max_width = 45 - align = nobaseline - margin = { 3 0 } - widgetanchor = bottom|right - parentanchor = bottom|right - position = { -6 -4} - - background = { - name = "portrait_opinion_bg" - texture = "gfx/interface/component_tiles/solid_black_label.dds" - spritetype = Corneredtiled - spriteborder = { 20 20 } - margin = { 3 1 } - texture_density = 2 - } - - block "opinion_text" { - text = "[HouseRelationItem.GetOpinion|=]" - fonttintcolor = "[HouseRelationItem.GetOpinionTint]" - default_format = "#true_white" - } - } - - tooltipwidget = { - using = dynasty_house_tooltip - } - } - - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 90 } - - using = Background_Vignette_Button - - tooltipwidget = { - house_relation_item_tooltip = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 8 4 } - - - hbox = { - name = "house_relation_name" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 8 8 } - } - - hbox = { - name = "house_relation_status" - spacing = 5 - margin_top = 1 - - icon = { - size = { 32 32 } - texture = "[HouseRelation.GetLevel.GetIcon]" - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - text = "[HouseRelation.GetLevelFraction|1]" - default_format = "#D" - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - text = "HOUSE_RELATION_ITEM_HISTORY_SIZE" - default_format = "#D" - } - spacer = { - size = { 2 0 } - } - } - - text_single = { - align right|top - text = "HOUSE_RELATION_ITEM_NAME" - } - - expand = {} - } - - hbox = { - name = "house_relation_latest_change" - layoutpolicy_horizontal = expanding - margin = { 16 4 } - - using = Background_Letter - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 384 - align = nobaseline - text = "HOUSE_RELATION_ITEM_LATEST_CHANGE" - using = Text_Light_Background_Overrides - default_format = "#light_background" - } - - - expand = {} - - button_normal = { - name = "open_memories" - - size = { 35 35 } - datacontext = "[Character]" - tooltip = "HOUSE_RELATION_ITEM_SHOW_HISTORY_BUTTON_TOOLTIP" - using = tooltip_es - - onclick = "[ToggleGameViewData( 'house_relation_history_window', HouseRelation.Self )]" - - icon_round_button_base = {} - - button_memories = { - alwaystransparent = yes - - - size = { 25 25 } - parentanchor = center - } - } - } - - expand = {} - } - } # button_standard_clean - - expand = {} - } - - - # Tooltip used for the entire House Relation list item - # Displays the ipact of the current house relation level, - # and a progress bar with all levels. - type house_relation_item_tooltip = object_tooltip_pop_out { - alwaystransparent = no - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[HouseRelation.GetLevel.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[HouseRelation.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - spacing = 32 - - cooltip_paragraph = { - text = "[HouseRelation.GetTooltip]" - min_width = 320 - } - - widget = { - name = "house_relation_levels" - size = { 320 24 } - - hbox_complex_bar_progress_next = { - visible = "[EqualTo_int32(HouseRelationItem.GetOpinion, '(int32)0')]" - layoutpolicy_horizontal = expanding - - blockoverride "texture_increase" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_empty" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_green.dds" - } - } - - hbox_complex_bar_progress_next = { - visible = "[GreaterThan_int32(HouseRelationItem.GetOpinion, '(int32)1')]" - layoutpolicy_horizontal = expanding - - blockoverride "texture_increase" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_decrease" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_empty" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - } - - hbox_complex_bar_progress_next = { - visible = "[Not(GreaterThan_int32(HouseRelationItem.GetOpinion, '(int32)-1'))]" - layoutpolicy_horizontal = expanding - - blockoverride "texture_increase" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_decrease" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_empty" - { - texture = "gfx/interface/progressbars/progress_black.dds" - } - - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_red.dds" - } - } - - hbox_complex_bar_levels = { - datacontext = "[HouseRelation.GetLevel]" - layoutpolicy_horizontal = expanding - - tooltip = "[HouseRelation.GetCurrentLevelProgressTooltip]" - blockoverride "marker" { - datacontext_from_model = { - datamodel = "[HouseRelation.GetType.GetLevels]" - index = "[PdxGuiWidget.GetIndexInDataModel]" - } - icon = { - position = { -16 -4 } - size = { 32 32 } - texture = "[HouseRelationLevel.GetIcon]" - tooltip = "HOUSE_RELATION_COMPLEX_BAR_ITEM_TOOLTIP" - using = tooltip_se - - using = Animation_Glow_Pulse - - glow = { - visible = "[ObjectsEqual( HouseRelationLevel.Self, HouseRelation.GetLevel.Self )]" - glow_radius = 3 - using = Color_Bright_Yellow - } - - } - } - hbox = { - minimumsize = { 10 10 } - } - } - } - } - } - - blockoverride "concept_link" { - text = "[house_relation|E]" - } - } - - ### HOUSE UNITY DETAILS ### - type vbox_house_unity = vbox { - datacontext = "[DynastyHouseView.GetCurrentHouseUnityStage]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single ={ - text = "HOUSE_UNITY_ACTIONS_INSTRUCTIONS" - autoresize = yes - max_width = 570 - default_format = "#instruction" - } - - vbox = { - name = house_unity_panel_widget # Used for Reactive Advice - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 0 300 } - - margin_top = 10 - - background = { - fittype = centercrop - using = Mask_Rough_Edges - - texture = "[HouseUnityStage.GetBackground]" - - modify_texture = { - texture = "gfx/interface/illustrations/window_headers/mask_header_illustration.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - # House Unity score & Name - widget = { - size = { 570 60 } - allow_outside = yes - - widget = { - size = { 180 30 } - visible = "[DataModelHasItems( DynastyHouseView.GetHouseUnityModifiers )]" - parentanchor = left - allow_outside = yes - - flowcontainer = { - datamodel = "[DynastyHouseView.GetHouseUnityModifiers]" - margin_top = 2 - - text_label_left = { - max_width = 120 - text = "HOUSE_UNITY_MODIFIERS" - align = vcenter - margin_right = 5 #To reset the margin in the text_label_left type - } - - item = { - modifier_item_icon = {} - } - } - } - - widget = { - size = { 200 60 } - parentanchor = hcenter - allow_outside = yes - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - margin_top = 2 - spacing = 5 - - text_single = { - text = "HOUSE_UNITY_VALUE" - default_format = "#high" - } - - text_single = { - text = "[house_unity|E]" - } - } - - text_single = { - text = "[HouseUnityStage.GetNameNoTooltip]" - default_format = "#high" - using = Font_Type_Flavor - using = Font_Size_Big - align = center - margin_bottom = 5 - - background = { - margin_left = 40 - margin_right = 40 - alpha = 0.5 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 1 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - - } - } - } - } - } - - widget = { - size = { 220 30 } - parentanchor = right - allow_outside = yes - - text_label_right = { - max_width = 220 - text = "HOUSE_UNITY_RECENT_CHANGES_LABEL" - default_format = "#underline" - using = tooltip_es - parentanchor = right|vcenter - - tooltipwidget = { - house_unity_recent_changes_tooltip = {} - } - } - } - } - - expand = {} - - # House Unity status bar - widget = { - size = { 592 80 } - - widget_house_unity_status_bar = {} - } - } - - ### DECISIONS AND EFFECTS ### - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - ### SCROLLBOX ### - vbox = { - name = house_unity_effects # Used for Reactive Advice - datacontext = "[DynastyHouseView.GetCurrentHouseUnityStage]" - layoutpolicy_horizontal = expanding - spacing = 5 - - ### HOUSE UNITY EFFECTS ### - text_label_center = { - text = "HOUSE_UNITY_EFFECTS_TITLE" - } - - scrollbox = { - visible = "[DataModelHasItems(DynastyHouseView.GetDecisions(DynastyHouseView.GetCurrentHouseUnityStage))]" - layoutpolicy_horizontal = expanding - size = { 300 145 } - - blockoverride "scrollbox_content" - { - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 545 - autoresize = yes - text = "[HouseUnityStage.GetModifierDesc]" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not(DataModelHasItems(DynastyHouseView.GetDecisions(DynastyHouseView.GetCurrentHouseUnityStage)))]" - size = { 300 356 } - - blockoverride "scrollbox_content" - { - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 550 - autoresize = yes - text = "[HouseUnityStage.GetModifierDesc]" - } - } - } - - text_label_center = { - visible = "[And( DynastyHouseView.IsPlayersHouse(), Not(DynastyHouseView.IsPlayerEffectedByHouseUnity()) )]" - default_format = "#alert_trial" - text = "HOUSE_UNITY_EFFECTS_NOT_APPLIED_TO_YOU" - } - } - - ### HOUSE UNITY DECISIONS ### - vbox = { - visible = "[DataModelHasItems(DynastyHouseView.GetDecisions(DynastyHouseView.GetCurrentHouseUnityStage))]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_center = { - text = "HOUSE_UNITY_DECISIONS_TITLE" - } - - ### DECISION BUTTONS ### - scrollbox = { - name = house_unity_decisions # Used for Reactive Advice - layoutpolicy_horizontal = expanding - size = { 300 226 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[DynastyHouseView.GetDecisions(DynastyHouseView.GetCurrentHouseUnityStage)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - button_unity_decision = { - visible = "[Decision.IsValid]" - layoutpolicy_horizontal = expanding - - blockoverride "decision_context" { - datacontext = "[DynastyHouseView.GetCurrentHouseUnityStage]" - } - } - } - } - } - } - } - } - - expand = {} - } - - ### UNITYBAR ### - type house_unity_stage = icon { - datacontext = "[GUIHouseUnityStage.GetHouseUnityStage]" - - layoutpolicy_horizontal = expanding - - block "size" { - size = { 50 20 } - } - - visible = "[And(HouseUnityStage.IsValid, Not(GUIHouseUnityStage.IsActive))]" - texture = "[HouseUnityStage.GetProgressBar]" - - block "stage_icon" { } - - spriteborder = { 6 6 } - spriteType = Corneredtiled - - tooltipwidget = { - house_unity_stage_tooltip = {} - } - } - - type house_unity_stage_active = house_unity_stage { - visible = "[And(HouseUnityStage.IsValid, GUIHouseUnityStage.IsActive)]" - animation_attention_bar = {} - - ### Horizontal Wipe Animation Left - icon = { - size = { 100% 90% } - parentanchor = vcenter - texture = "gfx/interface/colors/white.dds" - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/progressbars/progressbar_center_glow_white_decrease.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0 - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -0.5 0 } - } - } - - state = { - name = b - next = c - duration = 1 - alpha = 1 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_glow')]" - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = c - next = a - duration = 0.5 - alpha = 0 - delay = 1.5 - } - } - - ### Horizontal Wipe Animation Right - icon = { - size = { 100% 90% } - parentanchor = vcenter - texture = "gfx/interface/colors/white.dds" - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/progressbars/progressbar_center_glow_white_increase.dds" - blend_mode = alphamultiply - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0 - alpha = 0 - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 0.5 0 } - } - } - - state = { - name = b - next = c - duration = 1 - alpha = 1 - on_finish = "[PdxGuiTriggerAllAnimations('grandeur_bar_glow')]" - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - - state = { - name = c - next = a - duration = 0.5 - alpha = 0 - delay = 1.5 - } - } - - - widget = { - position = "[GUIHouseUnityStage.GetMarkerPosition(PdxGuiWidget.Self)]" - - icon = { - block "marker_glow_attributes" { - position = { -17 2 } - size = { 25 28 } - } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - color = { 0.75 0.89 0.97 0.9 } - } - - block "marker" { - icon = { - size = { 12 34 } - position = { -5 -2 } - texture = "gfx/interface/window_roco_grandeur/grandeur_bar_base_level.dds" - } - } - } - - block "stage_icon" {} - } - - type widget_house_unity_status_bar = widget { - size = { 100% 100% } - - widget = { - size = { 98% 20 } - parentanchor = bottom|hcenter - position = { 0 -64} - - background = { - using = Background_Area_ExtraDark - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 20 - margin_right = 20 - - datamodel = "[DynastyHouseView.GetHouseUnityStages]" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GUIHouseUnityStage.GetWeight]" - - widget = { - icon = { - size = { 30 40 } - position = { -15 -10 } - texture = "gfx/interface/window_dynasty_house/small_arrow.dds" - alpha = 1 - - text_single = { - parentanchor = center - position = { 0 -10 } - text = "[GUIHouseUnityStage.GetValue]" - align = center - } - } - } - - house_unity_stage = { - blockoverride "size" { - size = { 50 25 } - } - - blockoverride "stage_icon" { - icon = { - texture = "[HouseUnityStage.GetIcon]" - size = { 50 50 } - position = { 0 -35 } - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/grey.dds" - alpha = 0.3 - blend_mode = multiply - } - } - } - } - - house_unity_stage_active = { - blockoverride "size" { - size = { 50 40 } - } - - blockoverride "marker_glow_attributes" { - position = { -10 2 } - size = { 14 35 } - } - - blockoverride "marker" { - icon = { - size = { 45 45 } - position = { -22 15 } - texture = "gfx/interface/window_dynasty_house/unity_arrow.dds" - } - } - - blockoverride "stage_icon" { - icon = { - texture = "[HouseUnityStage.GetIcon]" - position = { 0 -40 } - size = { 70 70 } - parentanchor = center - } - } - } - } - } - } - } - - type house_unity_stage_tooltip = object_tooltip_pop_out { - alwaystransparent = no - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[HouseUnityStage.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[HouseUnityStage.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - multiline = yes - text = "[HouseUnityStage.GetDescription]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - text_multi = { - visible = "[DynastyHouse.IsPlayerMember]" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - multiline = yes - text = "[HouseUnityStage.GetAffectHouseUnityDesc(GetPlayer)]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - margin_bottom = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - margin_left = 16 - text = "HOUSE_UNITY_EFFECTS_TITLE" - } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 400 - autoresize = yes - text = "[HouseUnityStage.GetModifierDesc]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - block "decisions_visibility" { - visible = "[DataModelHasItems( DynastyHouseView.GetDecisions(HouseUnityStage.Self) )]" - } - - text_label_left = { - layoutpolicy_horizontal = expanding - margin_left = 16 - text = "HOUSE_UNITY_DECISIONS_TITLE" - } - - vbox = { - layoutpolicy_horizontal = expanding - block "decisions_datamodel" { - datamodel = "[DynastyHouseView.GetDecisions(HouseUnityStage.Self)]" - } - margin_left = 6 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[Decision.IsValid]" - text = "[Decision.GetName]" - align = nobaseline - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - blockoverride "concept_link" { - text = "[house_unity_level|E]" - } - } - - type button_unity_decision = button_standard { - size = { 300 45 } - - block "decision_context" { } - - tooltipwidget = { - decision_tooltip = {} - } - - onclick = "[DynastyHouseView.OnDecisionClick(Decision.Self)]" - - widget = { - datacontext = "[DynastyHouse.GetFounder]" - scissor = yes - parentanchor = right|top - - block "size_illustration" { - size = { 250 43 } - } - - icon = { - name = "illustration" - parentanchor = right|top - size = { 250 100 } - - mirror = horizontal - texture = "[Decision.GetPicture( Character.Self )]" - alpha = 0.7 - - visible = "[Decision.IsPossibleForPlayer]" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - highlight_icon = { - parentanchor = right|top - size = { 250 100 } - - mirror = horizontal - texture = "[Decision.GetPicture( Character.Self )]" - alpha = 0.7 - - visible = "[Not(Decision.IsPossibleForPlayer)]" - - effectname = "GreyedOut" - - tintcolor = { 0.6 0.6 0.6 0.7 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - margin = { 20 0 } - margin_right = 10 - - text_single = { - layoutpolicy_horizontal = growing - name = "title" - text = "[Decision.GetTitleForPlayer]" - visible = "[Decision.IsPossibleForPlayer]" - default_format = "#clickable" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = growing - name = "title2" - text = "[Decision.GetTitleForPlayer]" - visible = "[Not(Decision.IsPossibleForPlayer)]" - block "default_format" { - default_format = "#low" - } - align = nobaseline - } - - highlight_icon = { - size = { 30 30 } - name = "not_possible" - texture = "gfx/interface/icons/symbols/icon_cross.dds" - visible = "[Not(Decision.IsPossibleForPlayer)]" - } - } - } - - # "Look at me!" Animation for bar - type animation_attention_bar = icon { - name = "bar_effect" - parentanchor = center - size = { 100% 100% } - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - texture = "gfx/interface/component_effects/attention_text.dds" - using = Color_White - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 0.8 - alpha = 1 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1.5 - alpha = 0.5 - } - } - - type hbox_house_unity_changelog_entry = hbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - - widget = { - size = { 56 30 } - - block "icon_progress" { - icon = { - size = { 100% 100% } - background = { - visible = "[GreaterThan_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[LessThanOrEqualTo_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[GreaterThan_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.5 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - background = { - visible = "[LessThanOrEqualTo_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Area_Light - alpha = 0.4 - margin_left = 4 - margin_right = 16 - margin_top = 1 - margin_bottom = 3 - } - - hbox = { - margin_left = 5 - icon = { - size = { 25 25 } - texture = "[HouseUnityChangelogEntry.GetCurrentHouseUnityStageType.GetIcon]" - } - - spacer = { - size { 5 0 } - } - - text_single = { - text = "[HouseUnityChangelogEntry.GetProgress|+=]" - align = nobaseline - #margin_bottom = 5 - } - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text_single = { - block "change_value_text" { - text = "HOUSE_UNITY_STAGE_CHANGE_VALUE_TRIGGER_CHARACTER" - } - align = nobaseline - } - } - - block "change_value_desc" { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - #visible = "[Not( HouseUnityChangelogEntry.GetNextHouseUnityStageType.IsValid )]" - - text_single = { - text = "[HouseUnityChangelogEntry.GetDescription]" - align = nobaseline - } - } - } - } - } - - type house_unity_recent_changes_tooltip = object_tooltip_pop_out { - - #maximumsize = { 1000 600 } - - blockoverride "header_additions" { } - - blockoverride "title_text" { - margin = { 0 8 } - text = "HOUSE_UNITY_RECENT_CHANGES_LABEL" - default_format = "#T" - } - - blockoverride "concept_link" { - text = "" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[DataModelHasItems( DynastyHouseView.GetDynastyHouse.GetChangelog )]" - datamodel = "[DataModelFirst( DynastyHouseView.GetDynastyHouse.GetChangelog, '(int32)13' )]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 20 - - hbox_house_unity_changelog_entry = { - visible = "[HouseUnityChangelogEntry.GetNextHouseUnityStageType.IsValid]" - background = { - using = Background_Area_Dark - #using = Color_Green - alpha = 0.5 - margin_left = 4 - margin_right = 10 - margin_top = 15 - margin_bottom = -4 - } - background = { - visible = "[GreaterThan_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 10 - margin_top = 15 - margin_bottom = -4 - } - background = { - visible = "[LessThanOrEqualTo_int32( HouseUnityChangelogEntry.GetProgress, '(int32)0' )]" - using = Background_Frame - using = Color_Red - alpha = 0.5 - margin_left = 4 - margin_right = 10 - margin_top = 15 - margin_bottom = -4 - } - blockoverride "icon_progress" { - hbox = { - margin_top = -20 - icon = { - size = { 45 45 } - texture = "[HouseUnityChangelogEntry.GetNextHouseUnityStageType.GetIcon]" - } - } - } - - blockoverride "change_value_text" { - text = "HOUSE_UNITY_STAGE_CHANGE_VALUE_TRIGGER_CHANGE_STAGE" - layoutpolicy_vertical = expanding - margin_bottom = 15 - } - blockoverride "change_value_desc" { - } - } - - hbox_house_unity_changelog_entry = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Not(DataModelHasItems( DynastyHouseView.GetDynastyHouse.GetChangelog ))]" - - text_single = { - text = "HOUSE_UNITY_NO_RECENT_CHANGE_LABEL" - layoutpolicy_vertical = expanding - align = nobaseline - margin_bottom = 20 - } - } - } - } - - type widget_access_domicile_button = widget - { - size = { 42 42 } - - button_round = { - size = { 100% 100% } - onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" - tooltip = "[Domicile.GetMapPinTooltip( GetPlayer.Self )]" - - button_icon = { - size = { 30 30 } - parentanchor = center - alwaystransparent = yes - texture = "[Domicile.GetType.GetIcon]" - } - } - } - - type hbox_house_power_levels = hbox { - name = "house_aspiration_levels" - datamodel = "[HouseAspiration.GetLevels]" - spacing = 3 - - visible = "[LessThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, DynastyHouse.GetHouseAspirationLevelIndex )]" - - powerful_family_bonus = { - using = tooltip_se - } - - widget = { - size = { 40 40 } - - visible = "[DynastyHouse.IsPlayerMember]" - - button_round = { - parentanchor = center - size = { 100% 100% } - - enabled = "[ObjectsEqual( DynastyHouse.GetHeadOfHouse, GetPlayer )]" - tooltip = "HOUSE_VIEW_CHANGE_HOUSE_POWER" - tooltip_when_disabled = "HOUSE_VIEW_CHANGE_HOUSE_POWER_DISABLED" - onclick = "[ToggleGameViewData( 'house_aspiration_window', DynastyHouse.Self )]" - - button_icon = { - size = { 30 30 } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/replace.dds" - } - } - - } - } - - type widget_house_powerfulness = widget { - size = { 42 42 } - visible = "[Not( GetPlayer.GetGovernment.IsType( 'mandala_government' ) )]" - - icon = { - parentanchor = center - size = { 42 42 } - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - # Not a powerful house - icon_flat_standard = { - visible = "[Not( Or( Or( DynastyHouse.IsPowerful, DynastyHouse.IsDominant ), DynastyHouse.IsImperial ) )]" - texture = "gfx/interface/icons/not_powerful_house.dds" - size = { 36 36 } - parentanchor = center - } - - # A powerful house - icon_flat_standard = { - visible = "[And( DynastyHouse.IsPowerful, Not( DynastyHouse.IsDominant ) )]" - texture = "gfx/interface/icons/powerful_house.dds" - size = { 36 36 } - parentanchor = center - } - - # A dominant house - icon_flat_standard = { - visible = "[DynastyHouse.IsDominant]" - texture = "gfx/interface/icons/dominant_house.dds" - size = { 36 36 } - parentanchor = center - - } - - # An imperial house - icon_flat_standard = { - visible = "[DynastyHouse.IsImperial]" - texture = "gfx/interface/icons/imperial_house.dds" - size = { 36 36 } - parentanchor = center - - } - - tooltip = "ADMINISTRATIVE_GOVERNMENT_HOUSE_POWERFULNESS_TOOLTIP" - using = tooltip_se - } -} diff --git a/N3OW/gui/window_dynasty_house_members.gui b/N3OW/gui/window_dynasty_house_members.gui deleted file mode 100644 index 5b2db860..00000000 --- a/N3OW/gui/window_dynasty_house_members.gui +++ /dev/null @@ -1,103 +0,0 @@ -### LIST TEMPLATE - -window = { - name = "dynasty_house_members_view" - widgetid = "dynasty_house_members_view" - size = { 750 90% } - position = { 600 60 } - resizable = no - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Background - using = Window_Decoration - using = Window_Size_CharacterList - - datacontext = "[DynastyHouseMembersWindow.GetCharacterList]" - datacontext = "[CharacterSelectionList.GetFilterWithDefault('alive_filter', '(int32)1')]" - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 600 - on_start = "[GetVariableSystem.Set( 'dynasty_house_members_view_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = 580 - on_start = "[GetVariableSystem.Clear( 'dynasty_house_members_view_open' )]" - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[DynastyHouseMembersWindow.GetHeader]" - } - - blockoverride "button_close" - { - onclick = "[DynastyHouseMembersWindow.Close]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 630 - addrow = 92 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 94 } - blockoverride "character_relation" {} - } - } - } - - text_single = { - visible = "[Not(CharacterSelectionList.HasItems)]" - layoutpolicy_vertical = expanding - name = "no_match" - text = "CHARACTER_FINDER_NO_MATCH" - } - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('alive_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_dynasty_legacy.gui b/N3OW/gui/window_dynasty_legacy.gui deleted file mode 100644 index 47cd197f..00000000 --- a/N3OW/gui/window_dynasty_legacy.gui +++ /dev/null @@ -1,490 +0,0 @@ -### DYNASTY LEGACIES WINDOW - -window = { - name = "dynasty_legacy_window" - widgetid = "dynasty_legacy_window" - datacontext = "[DynastyView.GetDynasty]" - size = { 100% 100% } - parentanchor = center|hcenter - movable = no - filter_mouse = all - layer = middle - - using = Window_Background_No_Edge - - background = { - using = Background_Bottom_Fade - alpha = 0.5 - } - - state = { - name = _show - - using = Animation_FadeIn_Standard - using = Sound_Panel_Popup_Snapshot - } - - state = { - name = _hide - - using = Animation_FadeOut_Standard - } - - vbox = { - margin_top = 10 - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "DYNASTY_VIEW_HEADING" - } - - blockoverride "button_close" - { - name = "button_close" - onclick = "[DynastyView.Close]" - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 5 } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 40 - margin_top = 10 - - widget = { - coa_dynasty_medium = { - blockoverride "coa_button" { - alwaystransparent = yes - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 100 0 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 15 - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 3 0 } - - text_single = { - text = "DYNASTY_VIEW_SHOW_RENOWN" - } - - expand = {} - - text_single = { - text = "DYNASTY_VIEW_SHOW_LEGACY_COST" - } - } - - spacer = { - size = { 3 3 } - } - - progressbar_standard = { - name = "progress" - size = { 250 12 } - value = "[FixedPointToProgressbarValue(Dynasty.GetNextPerkProgress)]" - min = 0 - tooltip = "DYNASTY_HOUSE_VIEW_PROGRESS_TOOLTIP" - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 3 0 } - text = "DYNASTY_VIEW_SHOW_LEGACIES" - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 7 - - text_multi = { - visible = "[GetPlayer.IsDynast]" - layoutpolicy_horizontal = expanding - text = "DYNASTY_VIEW_SHOW_LEGACY_EXPLANATION_HEAD" - autoresize = yes - fontsize_min = 14 - default_format = "#low" - } - - text_multi = { - visible = "[Not(GetPlayer.IsDynast)]" - layoutpolicy_horizontal = expanding - text = "DYNASTY_VIEW_SHOW_LEGACY_EXPLANATION_NOT_HEAD" - autoresize = yes - fontsize_min = 14 - default_format = "#low" - } - } - } - } - } - - expand = {} - } - } - - expand = {} - } - - widget = { - size = { 100% 100% } - parentanchor = center - - vbox = { - margin_top = 150 - - margin_bottom = 60 - - # background = { - # using = Background_Bottom_Fade - # } - - vbox = { - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(DynastyView.GetLegacies), '(int32)7')]" - datamodel = "[DynastyView.GetLegacies]" - layoutpolicy_horizontal = expanding - margin_bottom = 60 - - spacing = 5 - - item = { - hbox_legacy_item = { - layoutpolicy_horizontal = expanding - } - } - } - - scrollbox = { - visible = "[GreaterThan_int32(GetDataModelSize(DynastyView.GetLegacies), '(int32)7')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background_fade" {} - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_content" - { - - vbox = { - datamodel = "[DynastyView.GetLegacies]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - item = { - hbox_legacy_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } -} - -confirmation_popup = { - name = "dynasty_perk_confirmation_popup" - - blockoverride "extra_contents" { - fixedgridbox = { - name = "traits_grid" - addcolumn = 55 - addrow = 55 - maxhorizontalslots = 5 - datamodel_wrap = 5 - flipdirection = yes - - datamodel = "[DynastyPerkConfirmation.GetAssociatedTraits]" - - item = { - container = { - button_group = { - visible = "[Not( EqualTo_string( Trait.GetKey, DynastyPerkConfirmation.GetSelectedTrait.GetKey ) ) ]" - onclick = "[DynastyPerkConfirmation.SelectTrait( Trait.Self )]" - datacontext = "[GetPlayer]" - - icon_trait = { - blockoverride "tooltip_placement" - { - using = tooltip_se - } - blockoverride "trait_glow" - { - } - } - } - - button_group = { - datacontext = "[GetPlayer]" - - visible = "[EqualTo_string( Trait.GetKey, DynastyPerkConfirmation.GetSelectedTrait.GetKey ) ]" - onclick = "[DynastyPerkConfirmation.SelectTrait( Trait.Self )]" - - icon_trait = { - blockoverride "tooltip_placement" - { - using = tooltip_se - } - blockoverride "trait_glow" - { - glow = { - using = Color_Blue - using = Glow_Standard - glow_radius = 5 - } - } - } - } - } - } - } - } -} - -types DynastyLegacies { - type hbox_legacy_item = hbox { - expand = {} - - ### TEXT ### - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - max_width = 330 - margin_right = 10 - - background = { - layoutpolicy_horizontal = expanding - margin_right = 5 - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - - background = { - using = Background_Area - } - - icon_doctrine = { - size = { 80 80 } - texture = "[DynastyLegacy.GetIcon]" - } - - expand = {} - } - - vbox = { - margin = { 5 5 } - spacing = 2 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[DynastyLegacy.GetName]" - default_format = "#high" - using = Font_Size_Medium - fontsize_min = 14 - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[DynastyLegacy.GetDesc]" - maximumsize = { -1 90 } - fontsize_min = 14 - } - - expand = {} - } - } - } - - #### ILLUSTRATION #### - hbox = { - background = { - texture = "[DynastyLegacy.GetTrackIcon]" - - modify_texture = { - texture = "gfx/interface/component_tiles/tile_frame_thin_02.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - blend_mode = alphamultiply - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_legacy_track.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - blend_mode = alphamultiply - } - } - - background = { - texture = "[DynastyLegacy.GetTrackIcon]" - - modify_texture = { - texture = "gfx/interface/component_tiles/tile_frame_thin_02.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - blend_mode = alphamultiply - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_legacy_track.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - blend_mode = alphamultiply - } - } - - hbox = { - datacontext = "[Dynasty.GetHeadOfDynasty]" - datamodel = "[DynastyLegacy.GetPerks]" - - item = { - widget = { - size = { 296 128 } - - button = { - size = { 296 128 } - visible = "[Not( Dynasty.HasPerk( DynastyPerk.Self ) )]" - enabled = "[DynastyView.CanSelectPerk( DynastyPerk.Self )]" - onclick = "[DynastyView.SelectPerk( DynastyPerk.Self )]" - - background = { - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_frame_horizontal.dds" - tintcolor = { 0 0 0 0.7 } - alpha = 0.9 - } - - background = { - visible = "[Not(DynastyView.CanSelectPerk( DynastyPerk.Self ))]" - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_frame_horizontal.dds" - tintcolor = { 0 0 0 0.8 } - - modify_texture = { - texture = "gfx/interface/component_tiles/tile_frame_thin_02.dds" - spriteType = Corneredtiled - spriteborder = { 50 50 } - blend_mode = alphamultiply - alpha = 0.2 - texture_density = 2 - } - } - - vbox = { - visible = "[Not(And(Dynasty.GetDynast.IsLocalPlayer, DynastyView.IsNextUnlockablePerk( DynastyPerk.Self )))]" - margin = { 10 5 } - margin_top = 18 - - text_multi = { - text = "[DynastyPerk.GetNameNoTooltip]" - autoresize = yes - max_width = 296 - fontsize_min = 14 - default_format = "#low" - } - } - - ### TEXT ### - vbox = { - visible = "[And(Dynasty.GetDynast.IsLocalPlayer, DynastyView.IsNextUnlockablePerk( DynastyPerk.Self ))]" - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 5 } - margin_top = 18 - - text_multi = { - text = "[DynastyPerk.GetNameNoTooltip]" - autoresize = yes - max_width = 296 - fontsize_min = 14 - default_format = "#high" - } - - text_single = { - visible = "[DynastyView.CanSelectPerk( DynastyPerk.Self )]" - text = "DYNASTY_VIEW_SHOW_UNLOCK" - default_format = "#I" - } - } - - tooltip_visible = "[DynastyView.CanSelectPerk( DynastyPerk.Self )]" - tooltip = "UNLOCK_DYNASTY_PERK_TOOLTIP" - using = tooltip_se - } - - button_standard_clean = { - visible = "[DynastyView.CanSelectPerk( DynastyPerk.Self )]" - size = { 100% 100% } - alwaystransparent = yes - - animation_attention_text = {} - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - } - - tooltip = "LOCKED_DYNASTY_PERK_TOOLTIP" - using = tooltip_se - } - - widget = { - size = { 296 128 } - - vbox = { - tooltip = "DYNASTY_PERK_TOOLTIP" - using = tooltip_se - } - } - } - } - } - } - - expand = {} - } -} diff --git a/N3OW/gui/window_dynasty_tree.gui b/N3OW/gui/window_dynasty_tree.gui deleted file mode 100644 index 3da84dfa..00000000 --- a/N3OW/gui/window_dynasty_tree.gui +++ /dev/null @@ -1,641 +0,0 @@ -types DynastyTreeView -{ - type dynasty_tree_item = container { - name = "dynasty_tree_item" - ignoreinvisible = yes - - widget = { - name = "background" - visible = "[DynastyTreeItem.IsCadetBranchFounder]" - size = { 100% 100% } - alwaystransparent = yes - - background = { - using = Background_Frame - margin = { -4 -4 } - } - - background = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = CorneredTiled - spriteborder = { 5 5 } - alpha = 0.4 - - using = Color_Blue - tintcolor = { 0.45 0.3 0.4 1 } - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_popup.dds" - spriteType = CorneredTiled - spriteborder = { 20 20 } - texture_density = 2 - alpha = 0.4 - - using = Color_Blue - tintcolor = { 0.35 0.2 0.3 1 } - } - - background = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = CorneredTiled - spriteborder = { 5 5 } - alpha = 0.6 - - using = Color_Blue - mirror = vertical - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_04.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_thin_frame.dds" - blend_mode = alphamultiply - } - } - } - - flowcontainer = { - name = "dynasty_tree_item_line_area" - direction = vertical - ignoreinvisible = yes - margin = { 0 10 } - - container = { - parentanchor = hcenter - - widget = { - name = "top_pin" - parentanchor = hcenter - size = { 0 0 } - position = { 0 -10 } - # always returns true. Function call allows to connect the widget with the data in code - visible = "[DynastyTreeItem.SetupTopWidget( PdxGuiWidget.AccessSelf )]" - } - - line = { - visible = "[DynastyTreeItem.HasParent]" - using = Line_DynastyTree - parentanchor = hcenter - from = { 0 -8 } - to = { 0 12 } - } - - flowcontainer = { - name = "character_container" - direction = vertical - ignoreinvisible = yes - - container = { - datacontext = "[DynastyTreeItem.GetCharacter]" - ignoreinvisible = yes - # always returns true. Function call allows to connect the widget with the data in code - visible = "[DynastyTreeItem.SetupCharacterWidget(PdxGuiWidget.AccessSelf)]" - - flowcontainer = { - name = "tree_header" - datacontext = "[Character.GetHouse]" - datacontext = "[DynastyTreeView.GetDynasty]" - visible = "[And( Character.IsFounderOfDynasty, ObjectsEqual( Character.GetDynasty.Self, DynastyTreeView.GetDynasty.Self ))]" - ignoreinvisible = yes - direction = vertical - minimumsize = { 330 255 } - position = { 0 -250 } - - background = { - using = Background_Area_With_Header_Dark - } - - background = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - spriteType = CorneredTiled - spriteborder = { 5 5 } - alpha = 0.6 - - using = Color_Orange - mirror = vertical - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_05.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_thin_frame.dds" - blend_mode = alphamultiply - } - } - - text_single = { - parentanchor = hcenter - autoresize = yes - text = "DYNASTY_VIEW_INFO_TITLE" - } - - icon = { - parentanchor = hcenter - texture = "gfx/interface/component_tiles/tile_divider_01.dds" - } - - widget = { - size = { 165 175 } - parentanchor = hcenter - - coa_dynasty_huge = { - parentanchor = bottom|hcenter - datacontext = "[DynastyTreeView.GetDynasty]" - } - } - - text_single = { - name = "dynasty_prestige" - parentanchor = hcenter - autoresize = yes - text = "DYNASTY_VIEW_PRESTIGE" - } - - text_single = { - name = "house_motto" - parentanchor = hcenter - autoresize = yes - text = "HOUSE_VIEW_MOTTO" - } - - icon = { - parentanchor = hcenter - texture = "gfx/interface/component_tiles/tile_divider_01.dds" - } - } - - portrait_body = { - datacontext = "[DynastyTreeView.GetDynasty]" - visible = "[And( Character.IsFounderOfDynasty, ObjectsEqual( Character.GetDynasty.Self, DynastyTreeView.GetDynasty.Self ))]" - parentanchor = hcenter - } - - widget = { - name = "background_dynasty_head" - visible = "[And( Character.IsDynastyHead, Not( Character.IsFounderOfDynasty ))]" - size = { 120 150 } - - background = { - margin = { 10 5 } - margin_bottom = 42 - - texture = "gfx/interface/component_overlay/overlay_noise.dds" - using = Mask_Rough_Edges - using = Color_Blue - alpha = 0.8 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - background = { - margin = { 7 2 } - margin_bottom = 40 - using = Background_Frame - } - } - - widget = { - name = "background_house_head" - visible = "[And( Character.IsHouseHead, Not( Character.IsDynastyHead ))]" - size = { 120 150 } - - background = { - margin = { 10 5 } - margin_bottom = 42 - - texture = "gfx/interface/component_overlay/overlay_noise.dds" - using = Mask_Rough_Edges - using = Color_Purple - alpha = 0.8 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - background = { - margin = { 10 5 } - margin_bottom = 42 - using = Background_Area_Dark_Border - alpha = 0.2 - } - - background = { - margin = { 7 2 } - margin_bottom = 40 - using = Background_Frame - } - } - - portrait_shoulders = { - visible = "[Not(And( Character.IsFounderOfDynasty, ObjectsEqual( Character.GetDynasty.Self, DynastyTreeView.GetDynasty.Self )))]" - position = { 0 25 } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - parentanchor = right - - button_me = { - size = { 25 25 } - visible = "[Character.IsLocalPlayer]" - alwaystransparent = yes - tooltip = "CV_TT_YOU" - } - - icon = { - size = { 25 25 } - framesize = { 40 40 } - frame = 4 - visible = "[Character.IsBastard]" - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "CV_TT_BASTARD" - } - - icon = { - size = { 25 25 } - framesize = { 40 40 } - frame = 8 - visible = "[Character.IsDynastyHead]" - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "[Character.GetDynastyHeadTooltip]" - } - - icon = { - size = { 25 25 } - framesize = { 40 40 } - frame = 1 - visible = "[And( Character.IsHouseHead, Not( Character.IsDynastyHead ))]" - texture = "gfx/interface/icons/portraits/relation.dds" - tooltip = "[Character.GetDynastyHeadTooltip]" - } - } - - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - button = { - name = "show_hide_parent" - parentanchor = hcenter - position = { 7 12 } - visible = "[And(Not( DynastyTreeItem.IsTopParent ), Not(Character.IsDynastyHead))]" - size = { 25 25 } - framesize = { 60 60 } - texture = "gfx/interface/icons/symbols/plus_minus.dds" - frame = "[BoolTo2And1( DynastyTreeItem.IsTopDisplayed )]" - tooltip = "[SelectLocalization( DynastyTreeItem.IsTopDisplayed, 'DYNASTY_VIEW_EXPAND_ROOT', 'DYNASTY_VIEW_SET_ROOT' )]" - onclick = "[DynastyTreeItem.ToggleParentVisibility]" - } - - button = { - name = "show_hide_parent_player" - parentanchor = hcenter - position = { 0 12 } - visible = "[And(Not( DynastyTreeItem.IsTopParent ), Character.IsDynastyHead)]" - - size = { 25 25 } - framesize = { 60 60 } - texture = "gfx/interface/icons/symbols/plus_minus.dds" - frame = "[BoolTo2And1( DynastyTreeItem.IsTopDisplayed )]" - tooltip = "[SelectLocalization( DynastyTreeItem.IsTopDisplayed, 'DYNASTY_VIEW_EXPAND_ROOT', 'DYNASTY_VIEW_SET_ROOT' )]" - onclick = "[DynastyTreeItem.ToggleParentVisibility]" - } - } - - text_single = { - name = "title" - size = { 140 30 } - parentanchor = hcenter - - # Must be autoresize no, since the text scales to nearest whole size increment, and therefore would push around other elements in the flowcontainer parent - autoresize = no - elide = right - - align = center - text = "[DynastyTreeItem.GetCharacter.GetTitledFirstNameOnlyNotMeNoTooltip|U]" - default_format = "#high" - fontsize = 20 - fontsize_min = 10 - } - - coa_dynasty_small = { - parentanchor = hcenter - datacontext = "[DynastyTreeItem.GetCharacter.GetDynasty]" - visible = "[DynastyTreeItem.IsFromOtherDynasty]" - - blockoverride "OnClickDefault" { - onclick = "[OpenGameViewData( 'dynasty_tree_view', DynastyTreeItem.GetCharacter.GetID )]" - } - } - - coa_house_small = { - parentanchor = hcenter - visible = "[DynastyTreeItem.IsCadetBranchFounder]" - datacontext = "[DynastyTreeItem.GetCharacter.GetHouse]" - } - - button = { - name = "show_hide" - visible = "[DataModelHasItems(DynastyTreeItem.GetChildren)]" - size = { 25 25 } - framesize = { 60 60 } - texture = "gfx/interface/icons/symbols/plus_minus.dds" - parentanchor = hcenter - tooltip = "[SelectLocalization(DynastyTreeItem.AreChildrenVisible, 'DYNASTY_VIEW_CHILDREN_HIDE', 'DYNASTY_VIEW_CHILDREN_SHOW')]" - frame = "[BoolTo1And2(DynastyTreeItem.AreChildrenVisible)]" - onclick = "[DynastyTreeItem.ToggleChildrenVisibility]" - } - } - } - - widget = { - parentanchor = hcenter - visible = "[DynastyTreeItem.AreChildrenVisible]" - - line = { - resizeparent = yes - visible = "[DynastyTreeItem.AreChildrenVisible]" - using = Line_DynastyTree - from = { 0 0 } - to = { 0 50 } - } - } - - container = { - parentanchor = hcenter - visible = "[DynastyTreeItem.AreChildrenVisible]" - - dynamicgridbox = { - datamodel = "[DynastyTreeItem.GetChildren]" - flipdirection = yes - - item = { - recursive = yes - dynasty_tree_item = {} - } - } - } - } - - widget = { - visible = "[DynastyTreeItem.AreChildrenVisible]" - - line = { - resizeparent = yes - using = Line_DynastyTree - visible = "[DynastyTreeItem.AreChildrenVisible]" - from = "[DynastyTreeItem.GetLineStartPoint]" - to = "[DynastyTreeItem.GetLineEndPoint]" - } - } - } -} - - -### DYNASTY VIEW -window = { - name = "dynasty_tree_view" - parentanchor = center - spriteType = Corneredtiled - spriteborder = { 20 20 } - movable = no - datacontext = "[DynastyTreeView.GetDynasty]" - size = { 102% 102% } - layer = middle - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - size = { 100% 100% } - color = { 0.3 0.285 0.25 1 } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - } - - background = { - texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - alpha = 0.15 - color = { 0.65 0.65 0.65 1 } - - fittype = centercrop - } - - widget = { - size = { 100% 100% } - - vbox = { - margin = { 10 10 } - - zoomarea = { - name = "dynasty_zoom_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scissor = yes - zoom = 1 - zoom_step = 0.2 - zoom_min = 0.2 - zoom_max = 1.0 - pan_position = { 0 0 } - draggable_by = left|middle - - state = { - name = "_zoom_changed" - duration = 0.1 - # bezier = { 0.05 0.55 0.46 1.02 } - } - - zoomwidget = { - widget = { - flowcontainer = { - alwaystransparent = no - direction = vertical - resizeparent = yes - - dynamicgridbox = { - name = "dynasty_tree" # Do not change this name! - setitemsizefromcell = yes - datamodel = "[DynastyTreeView.GetDynastyTrees]" - item = { - recursive = yes - dynasty_tree_item = {} - } - } - } - } - } - } - } - } - - ### TOP RIGHT INFO - widget = { - datacontext = "[DynastyTreeView.GetDynasty]" - size = { 520 155 } - parentanchor = top|right - widgetanchor = top|right - position = { -33 20 } - - vbox = { - margin = { 10 5 } - margin_left = 20 - margin_bottom = 15 - - background = { - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - coa_dynasty_small = { - datacontext = "[DynastyTreeView.GetDynasty]" - blockoverride "OnClickDefault" { - onclick = "[DefaultOnDynastyCoatOfArmsClick(Dynasty.GetID)]" - onclick = "[DynastyTreeView.Close]" - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 7 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - align = left - text = "DYNASTY_VIEW_INFO_TITLE" - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "dynasty_prestige" - autoresize = yes - align = left - text = "DYNASTY_VIEW_PRESTIGE" - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - - text_single = { - name = "total_members" - text = "DYNASTY_VIEW_MEMBERS" - align = nobaseline - } - - buttons_window_control = { - name = "close_button" - - blockoverride "button_close" { - onclick = "[DynastyTreeView.Close]" - - } - } - } - - expand = {} - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - spacing = 15 - - progressbar_standard = { - name = "progress" - size = { 160 20 } - value = "[Dynasty.GetPrestigeLevelProgress]" - tooltip = "[Dynasty.GetPrestigeLevelProgressTooltip]" - } - - vbox = { - margin_bottom = 5 - text_single = { - name = "current_level" - text = "[Dynasty.GetPrestigeLevelName]" - align = nobaseline - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - button_standard = { - text = "DYNASTY_VIEW_PAN_TO_DYNAST" - onclick = "[DynastyTreeView.PanToDynast]" - } - - button_standard = { - text = "DYNASTY_VIEW_PAN_TO_ME" - visible = "[DynastyTreeView.IsShownPanToMe]" - onclick = "[DynastyTreeView.PanToMe]" - tooltip = "DYNASTY_VIEW_PAN_TO_ME_TT" - shortcut = dynasty_tree_pan_to_me - } - - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - spacing = 5 - text_single = { - text = "DYNASTY_VIEW_CLICK_TO_PAN" - autoresize = yes - max_width = 470 - fontsize_min = 13 - } - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_epidemics.gui b/N3OW/gui/window_epidemics.gui deleted file mode 100644 index 13b7ec48..00000000 --- a/N3OW/gui/window_epidemics.gui +++ /dev/null @@ -1,942 +0,0 @@ -window = { - name = "epidemics_window" - widgetid = "epidemics_window" - parentanchor = top|right - layer = windows_layer - movable = no - - using = Window_Size_MainTab - - state = { - name = _show - using = Expand_Epidemics - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 26 } - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "EPIDEMICS_TITLE" - } - - blockoverride "button_close" - { - onclick = "[EpidemicsWindow.Close]" - } - - blockoverride "button_go_to" - { - visible = "[EpidemicsWindow.HasFocusedEpidemic]" - onclick = "[EpidemicsWindow.GetFocusedEpidemic.ZoomCameraTo]" - tooltip = "EPIDEMIC_GO_TO" - } - - blockoverride "button_back" - { - visible = "[EpidemicsWindow.HasFocusedEpidemic]" - onclick = "[EpidemicsWindow.ClearFocusedEpidemic]" - tooltip = EPIDEMIC_BACK_LABEL - } - } - - vbox = { - name = "contents" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[GetPlayer]" - - epidemics_view_vbox = { } - } - } - } - } -} - -types EpidemicsWindowTypes -{ - type epidemic_modifier_tooltip = object_tooltip_pop_out - { - blockoverride "subtitle_text" - { - text = "[Epidemic.GetNameNoTooltip]" - default_format = "#weak" - } - blockoverride "concept_link" - { - text = "[epidemic|E]" - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - datacontext = "[Epidemic.GetType]" - - text_multi = { - text = "EPIDEMIC_INFECTION_LEVEL_EXPLANATION" - autoresize = yes - max_width = 400 - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - datamodel = "[EpidemicType.GetInfectionLevels]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 5 - - block "level_visible" - { - } - - background = { - using = Background_Frame - margin = { 10 0 } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "EPIDEMIC_INFECTION_LEVEL_NAME" - default_format = "#S" - align = nobaseline - } - - text_multi = { - layoutpolicy_horizontal = expanding - block "level_entry_text" - { - raw_text = "#D Replace Me#!" - } - autoresize = yes - max_width = 400 - } - } - } - } - } - } - } - - type epidemic_modifiers_hbox = hbox - { - datacontext = "[Epidemic.GetType]" - - icon_trait = { - datacontext = "[EpidemicType.GetTrait]" - datacontext = "[GetNullCharacter]" - } - - icon_modifier_legend_owner = { - visible = "[EpidemicType.HasRealmModifiers]" - - tooltipwidget = { - epidemic_modifier_tooltip = { - blockoverride "title_text" - { - text = "EPIDEMIC_MODIFIER_HEADING_REALM" - default_format = "#T" - } - blockoverride "level_visible" - { - visible = "[EpidemicInfectionLevel.HasRealmModifier]" - } - blockoverride "level_entry_text" - { - text = "[EpidemicInfectionLevel.GetRealmModifierDesc]" - } - } - } - } - - icon_modifier_legend_province_and_county = { - visible = "[Or( EpidemicType.HasProvinceModifiers, EpidemicType.HasCountyModifiers )]" - - tooltipwidget = { - epidemic_modifier_tooltip = { - blockoverride "title_text" - { - text = "PROVINCE_AND_COUNTY_MODIFIERS" - default_format = "#T" - } - blockoverride "level_visible" - { - visible = "[Or( EpidemicInfectionLevel.HasProvinceModifier, EpidemicInfectionLevel.HasCountyModifier )]" - } - blockoverride "level_entry_text" - { - text = "EPIDEMIC_MODIFIERS_PROVINCE_AND_COUNTY" - } - } - } - } - } - - type epidemic_item_vbox = vbox_generic_object_card - { - layoutpolicy_horizontal = expanding - using = Epidemic_Mouse_Entry - - visible = "[Epidemic.IsValidCheck]" - - blockoverride "header_properties" - { - using = GenericObjectCardDefaultHeaderProperites - margin = { 10 4 } - } - - blockoverride "header_background" { - - background = { - spriteType = Corneredtiled - texture = "gfx/interface/colors/blue.dds" - using = Mask_Rough_Edges - alpha = 0.2 - - modify_texture = { - spriteType = Corneredtiled - texture = "gfx/interface/component_overlay/seamless_noise.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - background = { - spriteType = Corneredtiled - alpha = 0.3 - texture = "gfx/interface/colors/white.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.2 - } - - block "header_background_color" {} - } - } - - blockoverride "header_background_color" - { - modify_texture = { - visible = "[Epidemic.HasOutbreakIntensity( 'minor' )]" - color = { 1 0.5 0.4 1 } - blend_mode = normal - } - modify_texture = { - visible = "[Epidemic.HasOutbreakIntensity( 'major' )]" - color = { 0.65 0.15 0.15 1 } - blend_mode = normal - } - modify_texture = { - visible = "[Epidemic.HasOutbreakIntensity( 'apocalyptic' )]" - color = { 0.7 0.0 0.0 1 } - blend_mode = normal - } - } - blockoverride "header_pre_contents" - { - icon_epidemic = { - datacontext = "[Epidemic.GetType]" - datacontext = "[EpidemicType.GetTrait]" - datacontext = "[GetNullCharacter]" - datacontext = "[GetNullCharacter.GetFaith]" - tooltipwidget = { - using = character_trait_tooltip - } - using = tooltip_ws - } - } - - blockoverride "header_top_contents" - { - text_single = { - text = "[Epidemic.GetNameNoTooltip]" - default_format = "#high" - - using = Font_Size_Medium - align = nobaseline - - parentanchor = vcenter|left - } - } - blockoverride "header_bottom_contents" - { - text_single = { - margin_bottom = 4 - text = "[Epidemic.GetType.GetName]" - default_format = "#weak" - align = nobaseline - parentanchor = vcenter|left - } - } - blockoverride "header_post_contents" - { - text_single = { - margin_right = 10 - text = "EPIDEMIC_INTENSITY" - default_format = "#weak" - align = nobaseline - } - hbox = { - spacing = -4 - - icon_flat_standard_red = { - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/epidemics.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - - icon_flat_standard_red = { - - visible = "[Or(Epidemic.HasOutbreakIntensity( 'major' ),Epidemic.HasOutbreakIntensity( 'apocalyptic' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/epidemics.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - - } - - icon_flat_standard_red = { - visible = "[Epidemic.HasOutbreakIntensity( 'apocalyptic' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/epidemics.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - - icon_flat_standard_black = { - visible = "[Not(Or(Epidemic.HasOutbreakIntensity( 'major' ),Epidemic.HasOutbreakIntensity( 'apocalyptic' )))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/epidemics.dds" - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.2 - } - } - - icon_flat_standard_black = { - visible = "[Not(Epidemic.HasOutbreakIntensity( 'apocalyptic' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/epidemics.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.2 - } - } - } - } - - blockoverride "card_contents" - { - margin = { 10 0 } - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 4 10 } - margin_bottom = 15 - spacing = 10 - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "EPIDEMIC_OUTBREAK_LOCATION" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "EPIDEMIC_OUTBREAK_DATE" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "EPIDEMIC_TOTAL_DEATH_TOLL" - } - } - - expand = {} - - vbox = { - text_single = { - text = AFFECTING_MODIFIERS_LABEL - fontsize = 14 - align = nobaseline|left - } - - epidemic_modifiers_hbox = {} - } - - block "epidemic_extras" - { - } - } - } - } - - type select_epidemic_button = button_round - { - tooltip = "OPEN_EPIDEMIC_DETAIL" - - onclick = "[Epidemic.ZoomCameraTo]" - - button_search = { - name = view_epidemic_tutorial_uses_this - parentanchor = center - alwaystransparent = yes - } - } - - type epidemic_infected_province_item = widget - { - datacontext = "[EpidemicInfectedProvinceItem.GetProvince]" - - # This is required for performance reasons. - size = "[GetDefine( 'NEpidemic', 'EPIDEMIC_INFECTED_PROVINCE_ITEM_SIZE' )]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - block "container_margin" { } - - coa_title_tiny = { - datacontext = "[Province.GetCoATitle]" - using = tooltip_ws - - blockoverride "coa_onclick" - { - onclick = "[OpenGameViewData( 'holding_view', Province.Self )]" - onclick = "[Province.ZoomCameraTo]" - } - - blockoverride "coa_tooltip" - { - tooltipwidget = { - using = ProvinceTooltip - } - } - } - - text_single = { - text = "[Province.GetName]" - } - - icon = { - name = "realm_capital_icon" - visible = "[Province.IsRealmCapital]" - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - - tooltip = "REALM_CAPITAL_TOOLTIP" - } - - expand = {} - - widget = { - name = "infection_rate_progressbar" - size = { 220 16 } - - datacontext = "[EpidemicInfectedProvinceItem.GetInfectionProgress]" - - hbox_complex_bar_progress_next = { - layoutpolicy_horizontal = expanding - - blockoverride "texture_filled" - { - texture = "gfx/interface/progressbars/progress_red.dds" - } - blockoverride "texture_empty" - { - texture = "gfx/interface/progressbars/progress_gray.dds" - } - blockoverride "texture_increase" - { - texture = "gfx/interface/progressbars/progress_orange.dds" - } - blockoverride "texture_decrease" - { - texture = "gfx/interface/progressbars/progress_green.dds" - } - - tooltip = "EPIDEMIC_WINDOW_INFECTION_RATE_TOOLTIP" - using = tooltip_se - } - } - } - } - - # Brief: Summary of the infection state of a group of provinces - # Data context: EpidemicInfectedRealm - type epidemic_infected_realm_item = widget { - datacontext = "[EpidemicInfectedRealm.GetTitle]" - - # This is required for performance reasons. - size = "[EpidemicInfectedRealm.GetWidgetSize]" - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 16 8 } - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - coa_title_tiny_crown = {} - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 8 4 } - spacing = 2 - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "[Title.GetName]" - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = yes - text = "EPIDEMIC_HAS_INFECTED_NUM_PROVINCES" - } - } - - expand = {} - - progressbar_standard = { - name = "infection_rate_progressbar" - size = { 220 16 } - - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_red.dds" - noprogresstexture = "gfx/interface/progressbars/progress_gray.dds" - } - - value = "[EpidemicInfectedRealm.GetAverageInfection]" - tooltip = "EPIDEMIC_AVERAGE_INFECTION_RATE_TOOLTIP" - } - - button_expand = { - frame = "[BoolTo1And2( EpidemicInfectedRealm.IsExpanded )]" - mirror = horizontal - onclick = "[EpidemicInfectedRealm.ToggleExpanded]" - } - } - - fixedgridbox = { - visible = "[EpidemicInfectedRealm.IsExpanded]" - datamodel = "[EpidemicInfectedRealm.GetInfectedProvinces]" - - addcolumn = 524 - addrow = 44 - - item = { - epidemic_infected_province_item = { - blockoverride "container_margin" - { - margin = { 24 0 } - } - } - } - } - } - } - - type epidemics_view_vbox = vbox - { - name = "epidemics" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - # Currently focused epidemic (if any) - vbox = { - name = "epidemic_in_focus" - widgetid = "epidemic_in_focus" - - visible = "[EpidemicsWindow.HasFocusedEpidemic]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[EpidemicsWindow.GetFocusedEpidemic]" - - text_label_left = { - name = "epidemic_in_focus_heading" - layoutpolicy_horizontal = expanding - margin = { 16 8 } - text = "[EpidemicsWindow.GetFocusedAreaHeading]" - using = Font_Size_Medium - } - - # Overview of epidemic (same as in listing) - epidemic_item_vbox = {} - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - margin = { 4 0 } - - vbox = { - name = "domain_infections" - - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( EpidemicsWindow.GetFocusedEpidemicDomainInfections )]" - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemic_domain_infections' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemic_domain_infections' )]" - } - - blockoverride "text" - { - text = "EPIDEMIC_INFECTION_IN_DOMAIN" - } - } - - fixedgridbox = { - datamodel = "[EpidemicsWindow.GetFocusedEpidemicDomainInfections]" - visible = "[GetVariableSystem.Exists( 'expand_epidemic_domain_infections' )]" - - addcolumn = 524 - addrow = 44 - - item = { - epidemic_infected_province_item = { - blockoverride "container_margin" - { - margin = { 8 0 } - } - } - } - } - } - - vbox = { - name = "realm_infections" - - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( EpidemicsWindow.AccessFocusedEpidemicOwnRealmInfections )]" - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemic_realm_infections' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemic_realm_infections' )]" - } - - blockoverride "text" - { - text = "EPIDEMIC_INFECTION_IN_OWN_REALM" - } - } - - dynamicgridbox = { - datamodel = "[EpidemicsWindow.AccessFocusedEpidemicOwnRealmInfections]" - visible = "[GetVariableSystem.Exists( 'expand_epidemic_realm_infections' )]" - - item = { - epidemic_infected_realm_item = { } - } - } - } - - vbox = { - name = "other_realm_infections" - - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( EpidemicsWindow.AccessFocusedEpidemicInfectedRealms )]" - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemic_other_realm_infections' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemic_other_realm_infections' )]" - } - - blockoverride "text" - { - text = "EPIDEMIC_INFECTION_IN_OTHER_REALMS" - } - } - - dynamicgridbox = { - datamodel = "[EpidemicsWindow.AccessFocusedEpidemicInfectedRealms]" - visible = "[GetVariableSystem.Exists( 'expand_epidemic_other_realm_infections' )]" - - item = { - epidemic_infected_realm_item = { } - } - } - } - } - } - - expand = {} - } - - scrollbox = { - visible = "[Not( EpidemicsWindow.HasFocusedEpidemic )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - name = "epidemics_container" - margin = { 4 0 } - - vbox = { - name = "epidemics_in_my_realm" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - margin_right = 8 - spacing = 4 - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemics_realm' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemics_realm' )]" - } - - blockoverride "text" - { - text = "EPIDEMICS_IN_OWN_REALM" - } - } - - text_single = { - visible = "[And( IsDataModelEmpty( EpidemicsWindow.GetOwnRealmEpidemics ), GetVariableSystem.Exists( 'expand_epidemics_realm' ) )]" - text = "EPIDEMICS_IN_OWN_REALM_EMPTY" - default_format = "#low;italic" - } - - vbox = { - name = "epidemic_entries" - visible = "[GetVariableSystem.Exists( 'expand_epidemics_realm' )]" - layoutpolicy_horizontal = expanding - spacing = 4 - - datamodel = "[EpidemicsWindow.GetOwnRealmEpidemics]" - - item = { - epidemic_item_vbox = { - blockoverride "epidemic_extras" - { - select_epidemic_button = { - onclick = "[EpidemicsWindow.SelectFocusedEpidemicInOwnRealm( PdxGuiWidget.GetIndexInDataModel )]" - } - } - } - } - } - } - - vbox = { - name = "epidemics_nearby" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - margin_right = 8 - spacing = 4 - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemics_nearby' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemics_nearby' )]" - } - - blockoverride "text" - { - text = "EPIDEMICS_NEARBY" - } - } - - text_single = { - visible = "[And( IsDataModelEmpty( EpidemicsWindow.GetNearbyEpidemics ), GetVariableSystem.Exists( 'expand_epidemics_nearby' ) )]" - text = "EPIDEMICS_NEARBY_EMPTY" - default_format = "#low;italic" - } - - vbox = { - name = "epidemic_entries" - visible = "[GetVariableSystem.Exists( 'expand_epidemics_nearby' )]" - layoutpolicy_horizontal = expanding - spacing = 4 - - datamodel = "[EpidemicsWindow.GetNearbyEpidemics]" - - item = { - epidemic_item_vbox = { - blockoverride "epidemic_extras" - { - select_epidemic_button = { - onclick = "[EpidemicsWindow.SelectFocusedEpidemicNearby( PdxGuiWidget.GetIndexInDataModel )]" - } - } - } - } - } - } - - vbox = { - name = "epidemics_rest_of_world" - layoutpolicy_horizontal = expanding - margin = { 4 4 } - margin_right = 8 - spacing = 4 - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'expand_epidemics_world' )]" - } - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'expand_epidemics_world' )]" - } - - blockoverride "text" - { - text = "EPIDEMICS_REST_OF_WORLD" - } - } - - text_single = { - visible = "[And( IsDataModelEmpty( EpidemicsWindow.GetOtherEpidemics ), GetVariableSystem.Exists( 'expand_epidemics_world' ))]" - text = "EPIDEMICS_REST_OF_WORLD_EMPTY" - default_format = "#low;italic" - } - - vbox = { - name = "epidemic_entries" - visible = "[GetVariableSystem.Exists( 'expand_epidemics_world' )]" - layoutpolicy_horizontal = expanding - spacing = 4 - - datamodel = "[EpidemicsWindow.GetOtherEpidemics]" - - item = { - epidemic_item_vbox = { - blockoverride "epidemic_extras" - { - select_epidemic_button = { - onclick = "[EpidemicsWindow.SelectFocusedEpidemicInOther( PdxGuiWidget.GetIndexInDataModel )]" - } - } - } - } - } - } - } - } - } -} - -template Expand_Epidemics { - on_start = "[GetVariableSystem.Set( 'expand_epidemics_realm', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemics_nearby', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemics_world', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemic_domain_infections', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemic_realm_infections', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemic_realm_infections', 'true' )]" - on_start = "[GetVariableSystem.Set( 'expand_epidemic_court_physician', 'true' )]" -} diff --git a/N3OW/gui/window_factions.gui b/N3OW/gui/window_factions.gui deleted file mode 100644 index 425aa78f..00000000 --- a/N3OW/gui/window_factions.gui +++ /dev/null @@ -1,913 +0,0 @@ -###################################################### -##################### FACTIONS ####################### -###################################################### - -window = { - name = "factions_window" - parentanchor = top|right - layer = windows_layer - movable = no - - using = Window_Size_MainTab - - # Tabs setup - oncreate = "[BindTabsContext]" - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[PdxGuiTabs.RemoveTab( 'targeting_factions' )]" - on_start = "[PdxGuiTabs.RemoveTab( 'my_factions' )]" - on_start = "[PdxGuiTabs.AddTabIf( 'targeting_factions', Not( And( FactionsWindow.IsPrimaryTitleTitular, Not( GetPlayer.IsIndependentRuler ) ) ) )]" - on_start = "[PdxGuiTabs.AddTabIf( 'my_factions', Not( And( GetPlayer.IsIndependentRuler, Not( FactionsWindow.IsInAnyFaction ) ) ) )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "FACTIONS_WINDOW" - } - - blockoverride "button_close" - { - onclick = "[FactionsWindow.Close]" - } - } - - ### Tabs header - hbox_tab_buttons = { - name = "factions_panel_tab_buttons" #tutorial uses this - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'factions_tab' )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/skinned/illustrations/faction_bg.dds" - fittype = end - alpha = 0.7 - framesize = { 1200 848 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - # Outer container for factions against player character - scrollbox = { - name = "against_you" - visible = "[PdxGuiTabs.IsTabSet( 'targeting_factions' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 12 - spacing = 10 - margin_top = 12 - - text_label_center = { - visible = "[GetPlayer.IsIndependentRuler]" - text = "FACTIONS_WINDOW_TARGETING_FACTIONS" - } - - ## Factions against Me - vbox = { - name = "targeting_factions" - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - name = "targeting_factions_grid" - datamodel = "[FactionsWindow.GetTargetingFactions]" - visible = "[FactionsWindow.HasTargetingFactions]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - vbox_faction_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - name = "no_factions_against_me" - visible = "[Not(FactionsWindow.HasTargetingFactions)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "FACTIONS_WINDOW_NOT_FACTION_AGAINST" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 10 - - background = { - using = Background_Area_With_Header - } - - text_single = { - text = "FACTIONS_WINDOW_CASSALC_CANT_CREATE_JOIN" - } - - dynamicgridbox = { - name = "cant_join_creater_members_grid" - datamodel = "[FactionsWindow.GetCantCreateOrJoinFactionVassals]" - datamodel_wrap = 4 - flipdirection = yes - - item = { - container = { - datacontext = "[CantCreateOrJoinFactionVassal.GetVassal]" - - portrait_head = { - blockoverride "portrait_button_template_tooltip" { - tooltip = "[CantCreateOrJoinFactionVassal.GetTooltip]" - } - } - - icon = { - size = { 32 32 } - parentanchor = top|right - position = { -6 6 } - texture = "gfx/interface/icons/faction_type/claimant_faction.dds" - visible = "[CantCreateOrJoinFactionVassal.IsSoftBlock]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 5 - } - } - } - } - } - } - - text_multi = { - text = "FACTIONS_WINDOW_CREATE_JOIN_EXPLANATION" - autoresize = yes - max_width = 500 - default_format = "#weak" - margin = { 15 10 } - margin_top = 0 - } - } - } - - } - } - } - - # Outer container for factions against players liege - scrollbox = { - name = "against_liege" - visible = "[Or( PdxGuiTabs.IsTabSet( 'my_factions' ), FactionsWindow.IsPrimaryTitleTitular ) ]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - spacing = 20 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 10 - - text_label_center = { - text = "FACTION_WINDOW_JOINED_FACTIONS" - } - - vbox = { - name = "joined_factions" - datamodel = "[FactionsWindow.GetJoinedFactions]" - visible = "[FactionsWindow.IsInAnyFaction]" - layoutpolicy_horizontal = expanding - - item = { - vbox_faction_item = { - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - - text_multi = { - name = "not_in_factions" - visible = "[Not(FactionsWindow.IsInAnyFaction)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "FACTIONS_WINDOW_NOT_IN_FACTION" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - - text_label_center = { - text = "FACTION_WINDOW_OTHER_FACTIONS" - } - - # Factions to Join - vbox = { - name = "joinable_factions" - visible = "[FactionsWindow.CanJoinAnyFaction]" - datamodel = "[FactionsWindow.GetJoinableFactions]" - layoutpolicy_horizontal = expanding - - item = { - vbox_faction_item = { - layoutpolicy_horizontal = expanding - } - } - } - - # Joined Factions - text_multi = { - name = "joined" - visible = "[Not(FactionsWindow.CanJoinAnyFaction)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "FACTIONS_WINDOW_NOT_JOINABLE_FACTION" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - } - - # Potential factions - vbox = { - name = "potential_factions" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_center = { - text = "FACTION_WINDOW_FACTIONS_TO_CREATE" - default_format = "#low" - } - - vbox = { - name = "creatable_factions" - widgetid = "faction_panel_potential_factions" #tutorial uses this - datamodel = "[FactionsWindow.GetCreateFactionItems]" - visible = "[FactionsWindow.CanCreateAnyFaction]" - layoutpolicy_horizontal = growing - spacing = 3 - margin = { 20 0 } - - item = { - button_standard = { - layoutpolicy_horizontal = growing - name = "create_faction" - visible = "[CreateFactionItem.IsShown]" - enabled = "[CreateFactionItem.CanPlayerCreateFaction]" - text = "[CreateFactionItem.GetCreateFactionText]" - tooltip = "[CreateFactionItem.BuildCreateFactionTooltip]" - onclick = "[CreateFactionItem.CreateFaction]" - } - } - } - - text_multi = { - name = "not_creatable_factions" - visible = "[Not(FactionsWindow.CanCreateAnyFaction)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "FACTIONS_WINDOW_NOT_CREATABLE_FACTION" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - } - } - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types FactionWindow -{ - type vbox_faction_item = vbox { - name = "faction_item" - datacontext = "[FactionItem.GetFaction]" - layoutpolicy_horizontal = expanding - margin_top = 3 - - background = { - using = Background_Area_With_Header - } - - background = { - visible = "[And(Faction.IsDangerous, Not(FactionItem.IsPlayerMember))]" - texture = "gfx/interface/colors/red.dds" - alpha = 0.2 - using = Mask_Rough_Edges - margin_top = -30 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - text_single = { - text = "[Faction.GetName|E]" - using = Font_Size_Medium - align = center|nobaseline - using = tooltip_nw - max_width = 350 - } - - icon = { - name = "cannot_join" - visible = "[FactionItem.ShowCannotJoin]" - alwaystransparent = yes - size = { 36 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - tooltip = "PLAYER_CANNOT_JOIN_FACTION_OF_THIS_TYPE" - } - - expand = {} - - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 5 - - # Faction Leader / Claimant - - vbox = { - layoutpolicy_vertical = expanding - allow_outside = yes - spacing = -4 - - background = { - using = Background_Area_Dark - margin = { 0 2 } - } - - widget = { - size = { 100 100 } - name = "leader" - allow_outside = yes - - icon_flat_standard = { - visible = "[Not( Faction.HasSpecialCharacter )]" - size = { 76 76 } - texture = "[Faction.GetIcon]" - parentanchor = center - } - - portrait_head_small = { - datacontext = "[Faction.GetSpecialCharacter]" - visible = "[Faction.HasSpecialCharacter]" - parentanchor = center - - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - - icon = { - visible = "[And(Faction.IsDangerous, Not(FactionItem.IsPlayerMember))]" - size = { 32 32 } - position = { -6 -4 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - parentanchor = bottom|right - - tooltip = "FACTION_WINDOW_IS_DANGEROUS" - - icon = { - size = { 100% 100% } - alwaystransparent = yes - texture = "gfx/interface/icons/symbols/icon_warning.dds" - - modify_texture = { - texture = "gfx/interface/icons/focuses/hud_icon_mask.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/colors/red.dds" - blend_mode = colordodge - } - - state = { - name = a - next = b - alpha = 0 - trigger_on_create = yes - duration = 1.2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.8 - duration = 0.6 - using = Animation_Curve_Default - } - } - } - } - text_multi = { - visible = "[Faction.HasSpecialCharacter]" - max_width = 100 - min_width = 100 - align = center|nobaseline - autoresize = yes - - text = "[Faction.GetSpecialCharacterTitle]" - } - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 2 - margin_left = 2 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - coa_title_tiny = { - datacontext = "[Faction.GetSpecialTitle]" - visible = "[And( Faction.ShouldShowSpecialTitle, Faction.HasSpecialTitle )]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Faction.GetShortEffectDescription]" - autoresize = no - } - } - ### Discontent and power // Not at war - vbox = { - visible = "[Not(Faction.IsAtWar)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 20 - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - text_single = { - text = "FACTIONS_WINDOW_POWER" - using = Font_Size_Small - } - - text_single = { - text = "[FactionItem.GetPower|%0V]" - default_format = "#high" - } - - expand = {} - } - - ### Power - widget = { - name = "power_widget" - size = { 0 28 } - layoutpolicy_horizontal = expanding - tooltip = "[FactionItem.GetPowerTooltip]" - - widget = { - name = "progressbar_power_holder" - size = { 100% 28 } - position = { -2 4 } - - progressbar_red = { - visible = "[And( FactionItem.IsPowerThresholdVisible, Not(FactionItem.HasEnoughPower))]" - size = { 100% 25 } - position = { 0 1 } - max = 1 - value = "[FactionItem.GetPowerPushPercentage]" - noprogresstexture = "gfx/interface/progressbars/progress_transparent_bg.dds" - } - - progressbar_red = { - visible = "[Or( Not( FactionItem.IsPowerThresholdVisible), FactionItem.HasEnoughPower )]" - size = { 100% 25 } - position = { 0 1 } - max = 1 - value = "[FactionItem.GetPowerPushPercentage]" - noprogresstexture = "gfx/interface/progressbars/progress_transparent_bg.dds" - } - - container = { - visible = "[FactionItem.IsPowerThresholdVisible]" - widgetanchor = top|hcenter - position = "[FactionItem.GetPowerThresholdPosition]" - alwaystransparent = yes - - icon = { - parentanchor = top|hcenter - alwaystransparent = yes - texture = "gfx/interface/window_factions/faction_progress_threshold.dds" - } - } - } - } - - # Discontent - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "discontent_widget" - layoutpolicy_horizontal = expanding - tooltip = "[FactionItem.GetDiscontentTooltip]" - - text_single = { - text = "FACTIONS_WINDOW_DISCONTENT" - using = Font_Size_Small - } - icon = { - visible = "[FactionItem.IsDiscontentIncreasing]" - texture = "gfx/interface/icons/icon_trend_arrow.dds" - framesize = { 22 22 } - frame = 1 - } - icon = { - visible = "[FactionItem.IsDiscontentDecreasing]" - texture = "gfx/interface/icons/icon_trend_arrow.dds" - framesize = { 22 22 } - frame = 2 - } - expand = {} - } - - text_single = { - visible = "[FactionItem.IsDiscontentIncreasing]" - layoutpolicy_horizontal = expanding - text = "FACTIONS_WINDOW_DISCONTENT_INCREASING" - } - - text_single = { - visible = "[FactionItem.IsDiscontentAtMax]" - layoutpolicy_horizontal = expanding - text = "FACTIONS_WINDOW_DISCONTENT_CAN_SEND" - } - - text_single = { - visible = "[Not( Or( FactionItem.IsDiscontentAtMax, FactionItem.IsDiscontentIncreasing) )]" - layoutpolicy_horizontal = expanding - text = "FACTIONS_WINDOW_DISCONTENT_TO_WEAK" - } - - } - - expand = {} - - vbox = { - margin_top = 10 - - button_standard = { - visible = "[And( FactionItem.IsPlayerLeader, Not( Faction.IsAtWar ) )]" - name = "press_demands_button" - enabled = "[FactionItem.CanPressDemands]" - text = "FACTION_WINDOW_PRESS_DEMANDS" - tooltip = "[FactionItem.BuildPressDemandsTooltip]" - onclick = "[FactionItem.PressDemmands]" - } - - button_standard = { - visible = "[And(And( FactionItem.IsPlayerMember, Not( FactionItem.IsPlayerLeader)), Not( Faction.IsAtWar ) )]" - name = "press_demands_button_disabled" - enabled = no - text = "FACTION_WINDOW_PRESS_DEMANDS" - tooltip = "FACTION_WINDOW_PRESS_DEMANDS_CANNOT_LEADER" - } - - button_standard = { - name = "join" - visible = "[FactionItem.ShowJoinButton]" - enabled = "[FactionItem.CanJoinFaction]" - onclick = "[FactionItem.JoinFaction]" - text = "FACTION_WINDOW_JOIN" - tooltip = "[FactionItem.BuildJoinFactionTooltip]" - } - - button_standard = { - name = "show_members_tageting_factions" - visible = "[And(PdxGuiTabs.IsTabSet('targeting_factions'), Not(FactionItem.ShowCannotJoin))]" - - onclick = "[FactionItem.ShowHideMembersFrame]" - - button_expand = { - name = "show_members_tageting_factions_2" - frame = "[FactionItem.GetShowMembersFrame]" - parentanchor = left|vcenter - position = { 8 0 } - alwaystransparent = yes - - using = tooltip_ws - tooltip = "[FactionItem.GetShowHideMembersTooltip]" - } - - text_single = { - text = "[FactionItem.GetMembersString]" - align = nobaseline - parentanchor = left|vcenter - position = { 32 0 } - } - } - - button_standard = { - name = "show_members_against_liege" - visible = "[And(PdxGuiTabs.IsTabSet('my_factions'), FactionItem.ShowCannotJoin)]" - - onclick = "[FactionItem.ShowHideMembersFrame]" - - button_expand = { - name = "show_members_against_liege_2" - frame = "[FactionItem.GetShowMembersFrame]" - parentanchor = left|vcenter - position = { 8 0 } - alwaystransparent = yes - - using = tooltip_ws - tooltip = "[FactionItem.GetShowHideMembersTooltip]" - } - - text_single = { - text = "[FactionItem.GetMembersString]" - align = nobaseline - parentanchor = left|vcenter - position = { 32 0 } - } - } - } - } - } - } - - ### Faction at war - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "faction_in_war" - visible = "[Faction.IsAtWar]" - margin_top = 10 - spacing = -2 - - icon = { - texture = "gfx/interface/icons/character_interactions/icon_coax_to_war.dds" - size = { 64 64 } - } - - text_single = { - text = "FACTIONS_WINDOW_FACTION_AT_WAR" - align = center - using = Font_Size_Medium - } - } - - expand = {} - } - } - } - - ### Faction members - - # Member buttons - hbox = { - name = "faction_buttons" - layoutpolicy_horizontal = expanding - margin_right = 20 - margin_top = 10 - margin_bottom = 8 - spacing = 10 - - expand = {} - - button_standard = { - name = "leave" - visible = "[FactionItem.IsPlayerMember]" - text = "FACTION_WINDOW_LEAVE" - onclick = "[FactionItem.LeaveFaction]" - enabled = "[FactionItem.CanLeaveFaction]" - tooltip = "[FactionItem.BuildLeaveFactionTooltip]" - } - - button_standard = { - name = "add_member" - visible = "[FactionItem.IsPlayerMember]" - onclick = "[FactionItem.ShowPotentialMembers]" - text = "FACTION_ADD_MEMBER" - tooltip = "FACTION_ADD_MEMBER_TT" - } - - button_standard = { - name = "show_members" - visible = "[And(PdxGuiTabs.IsTabSet('my_factions'), Not(FactionItem.ShowCannotJoin))]" - onclick = "[FactionItem.ShowHideMembersFrame]" - - button_expand = { - name = "show_members_2" - frame = "[FactionItem.GetShowMembersFrame]" - parentanchor = left|vcenter - position = { 8 0 } - alwaystransparent = yes - - using = tooltip_ws - tooltip = "[FactionItem.GetShowHideMembersTooltip]" - } - - text_single = { - text = "[FactionItem.GetMembersString]" - align = nobaseline - parentanchor = left|vcenter - position = { 32 0 } - } - } - } - - # Members - vbox = { - name = "faction_members" - visible = "[FactionItem.AreMembersVisible]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - background = { - using = Background_Area - margin_bottom = 5 - } - - fixedgridbox = { - name = "character_member_grid" - visible = "[FactionItem.HasCharacterMembers]" - addcolumn = 80 - addrow = 90 - datamodel = "[FactionItem.GetCharacterMembers]" - datamodel_wrap = 6 - flipdirection = yes - - item = { - container = { - datacontext = "[FactionCharacterMember.GetMember]" - - portrait_head_small = { - position = { 0 -0 } - parentanchor = top|left - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "FACTION_WINDOW_MEMBER_TOOLTIP" - } - } - - warning_icon = { - name = "portrait_opinion_bg" - visible = "[FactionCharacterMember.IsAtWarAgainstTarget]" - parentanchor = top|left - position = { -5 15 } - size = { 25 25 } - } - } - } - } - - fixedgridbox = { - name = "title_member_grid" - datamodel = "[FactionItem.GetCountyMembers]" - visible = "[FactionItem.HasCountyMembers]" - addcolumn = 75 - addrow = 70 - datamodel_wrap = 6 - flipdirection = yes - - item = { - container = { - datacontext = "[FactionCountyMember.GetMember]" - tooltip = "FACTION_WINDOW_COUNTY_MEMBER_TT" - - button_icon = { - name = "county_faction_member" - size = { 54 54 } - onclick = "[Title.SelectTitle]" - parentanchor = right - using = State_Title_MouseEntry - texture = "gfx/interface/icons/faction_type/peasants.dds" - } - - widget = { - name = "opinion" - position = { 20 2 } - size = { 35 26 } - parentanchor = bottom - tooltip = "FACTIONS_WINDOW_COUNTY_OPINION_TOOLTIP" - - text_single = { - position = { 10 -10 } - parentanchor = center - text = "FACTIONS_WINDOW_COUNTY_OPINION" - - background = { - using = Background_Area_Dark - } - } - } - - coa_title_tiny = { - position = { 0 32 } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_faith.gui b/N3OW/gui/window_faith.gui deleted file mode 100644 index 28b23bab..00000000 --- a/N3OW/gui/window_faith.gui +++ /dev/null @@ -1,1521 +0,0 @@ -###################################################### -################### FAITH WINDOW ##################### -###################################################### - -window = { - name = "faith_window" - widgetid = "faith_window" - datacontext = "[FaithWindow.GetFaith]" - datacontext = "[GetVariableSystem]" - movable = no - layer = middle - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - position = { 0 0 } - on_start = "[GetVariableSystem.Set( 'faith_view_tabs', 'beliefs' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - position = { -60 0 } - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - ### INSIDE WINDOW - vbox = { - using = Window_Margins_Sidebar - - ### Header - widget_header_with_picture = { - name = "header" - datacontext = "[GetIllustration( 'religion_interior' )]" - size = { 0 130 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = fixed - - blockoverride "size" { - size = { 100% 143 } - } - - blockoverride "header_text" - { - text = "FAITH_VIEW_HEADING" - using = tooltip_es - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - blockoverride "button_close" - { - onclick = "[FaithWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" - } - - blockoverride "illustration_texture" - { - texture = "[Illustration.GetTexture( FaithWindow.GetFaith.MakeScope )]" - spriteType = stretched - fittype = centercrop - alpha = 0.35 - } - - hbox = { - datacontext = "[FaithWindow.GetFaith]" - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( FaithWindow.GetFaith.MakeScope )]" - } - - vbox = { - margin_top = 30 - margin_left = 10 - - icon = { - name = "faith_icon" - size = { 100 100 } - texture = "[Faith.GetIcon]" - using = tooltip_se - tooltipwidget = { - faith_tooltip = {} - } - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 4 - margin_left = 25 - spacing = 1 - - text_single = { - name = "your_faith" - visible = "[ObjectsEqual( GetPlayer.GetFaith, Faith.Self )]" - text = "FAITH_VIEW_YOUR_FAITH" - align = nobaseline|center - } - - expand = {} - - text_single = { - name = "our_view" - visible = "[Not(ObjectsEqual( GetPlayer.GetFaith, Faith.Self ))]" - layoutpolicy_horizontal = expanding - text = "FAITH_VIEW_OUR_VIEW" - align = nobaseline|center - } - - text_single = { - name = "their_view" - visible = "[Not(ObjectsEqual( GetPlayer.GetFaith, Faith.Self ))]" - layoutpolicy_horizontal = expanding - text = "FAITH_VIEW_THEIR_VIEW" - align = nobaseline|center - } - } - - expand = {} - - vbox = { - margin = { 10 0 } - spacing = 2 - - fervor_container_vbox = {} - - button_sidepanel_right = { - name = "religion_information" - datacontext = "[Faith.GetReligion]" - onclick = "[FaithWindow.ToggleReligionWindow]" - tooltip = "TOGGLE_RELIGION_VIEW_TOOLTIP" - - using = tooltip_nw - - blockoverride "button_text" - { - text = "TOGGLE_RELIGION_VIEW" - } - } - } - } - } - } - - text_single = { - visible = "[And( Not( Faith.GetReligion.HasPaganRoots ), Not( Faith.IsUnreformed ) )]" - text = "FAITH_VIEW_SUBHEADING" - align = center - parentanchor = top|hcenter - position = {0 40} - alpha = 0.9 - } - - text_label_center = { - visible = "[Faith.IsUnreformed]" - text = "FAITH_VIEW_UNREFORMED_SUBHEADING" - align = center - parentanchor = top|hcenter - position = {0 40} - alpha = 0.8 - } - - text_label_center = { - visible = "[And( Faith.GetReligion.HasPaganRoots, Not( Faith.IsUnreformed ) )]" - text = "FAITH_VIEW_REFORMED_SUBHEADING" - align = center - parentanchor = top|hcenter - position = {0 40} - alpha = 0.8 - } - } - - ### Tabs - hbox = { - layoutpolicy_horizontal = expanding - name = "tabs" - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'faith_view_tabs', 'beliefs' )]" - down = "[GetVariableSystem.HasValue( 'faith_view_tabs', 'beliefs' )]" - text = "FAITH_BELIEFS" - default_format = "#low" - - using = tooltip_below - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'faith_view_tabs', 'holy_sites' )]" - down = "[GetVariableSystem.HasValue( 'faith_view_tabs', 'holy_sites' )]" - text = "FAITH_HOLY_SITES" - default_format = "#low" - - using = tooltip_below - } - } - - vbox = { - name = "tab_beliefs" - visible = "[GetVariableSystem.HasValue( 'faith_view_tabs', 'beliefs' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - ### Core Tenets - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - #margin_top = 15 - margin = { 8 16 } - margin_bottom = 11 - - text_label_center = { - text = "FAITH_CORE_TENETS_HEADING" - } - - hbox = { - name = "doctrines_grid_core_tenets" - datamodel = "[FaithWindow.GetGroupingHelper( 'core_tenets' ).GetGrouping]" - spacing = 52 - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - item = { - container_tenet_item = { - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP" - } - } - } - } - - ### Doctrines - vbox = { - name = "doctrines" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - #margin_top = 10 - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - - blockoverride "scrollbox_content" - { - spacing = 16 - #margin_top = 20 - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - name = "sins_and_virtues" - layoutpolicy_vertical = expanding - spacing = 15 - - expand = { - layoutstretchfactor_horizontal = 1 - } - - vbox = { - name = "sins" - spacing = 3 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 5 - - expand = {} - - icon = { - texture = "gfx/interface/icons/traits/sin_big.dds" - } - - text_single = { - text = "FAITH_WINDOW_SINS" - align = right|nobaseline - } - } - - vbox = { - dynamicgridbox = { - name = "virtues_grid" - datamodel = "[FaithWindow.GetSins]" - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon = { - datacontext = "[GuiVirtueOrSinItem.GetTrait]" - size = { 40 40 } - alwaystransparent = yes - texture = "[Trait.GetIcon( GetPlayer )]" - - tooltipwidget = { - using = faith_window_trait_tooltip - } - - block "tooltip_placement" - { - using = tooltip_ne - tooltip_offset = { 0 20 } - } - } - } - } - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - name = "virtues" - spacing = 3 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 5 - expand = {} - - icon = { - texture = "gfx/interface/icons/traits/virtue_big.dds" - } - - text_single = { - text = "FAITH_WINDOW_VIRTUES" - align = nobaseline - } - } - - vbox = { - dynamicgridbox = { - name = "virtues_grid" - datamodel = "[FaithWindow.GetVirtues]" - flipdirection = yes - datamodel_wrap = 6 - - item = { - icon = { - datacontext = "[GuiVirtueOrSinItem.GetTrait]" - size = { 40 40 } - alwaystransparent = yes - texture = "[Trait.GetIcon( GetPlayer )]" - - tooltipwidget = { - using = faith_window_trait_tooltip - } - - block "tooltip_placement" - { - using = tooltip_ne - tooltip_offset = { 0 20 } - } - } - } - } - } - - expand = {} - } - - expand = { - layoutstretchfactor_horizontal = 1 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - margin_bottom = -8 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_IMPORTANT" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "important_doctrines" - datamodel = "[FaithWindow.GetGroupingHelper( 'main_group' ).GetGrouping]" - spacing = -6 - layoutpolicy_vertical = expanding - minimumsize = { 0 108 } - - item = { - vbox = { - layoutpolicy_vertical = expanding - minimumsize = { 100 0 } - name = "doctrine_list_item" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - visible = "[FaithDoctrine.IsVisible]" - tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP" - using = tooltip_se - - icon_doctrine = { - name = "doctrine_group_icon" - size = { 60 60 } - texture = "[FaithDoctrine.GetIcon]" - } - - text_single = { - name = "doctrine_name" - align = center - text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]" - default_format = "#high" - multiline = yes - max_width = 101 ##### minimum in order to look good in german - } - - expand = {} - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - margin_bottom = -10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_MARRIAGE" - default_format = "#low" - } - - fixedgridbox = { - datamodel = "[FaithWindow.GetGroupingHelper( 'marriage' ).GetGrouping]" - flipdirection = yes - addcolumn = 225 - addrow = 67 - datamodel_wrap = 2 - - item = { - widget_doctrine_item = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - margin_bottom = -10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_CRIMES" - default_format = "#low" - } - - fixedgridbox = { - datamodel = "[FaithWindow.GetGroupingHelper( 'crimes' ).GetGrouping]" - flipdirection = yes - addcolumn = 225 - addrow = 67 - datamodel_wrap = 2 - - item = { - widget_doctrine_item = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - margin_bottom = -10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_CLERGY" - default_format = "#low" - } - - fixedgridbox = { - datamodel = "[FaithWindow.GetGroupingHelper( 'clergy' ).GetGrouping]" - flipdirection = yes - addcolumn = 225 - addrow = 67 - datamodel_wrap = 2 - - item = { - widget_doctrine_item = {} - } - } - } - - vbox = { - visible = "[DataModelHasItems(FaithWindow.GetGroupingHelper( 'special' ).GetGrouping)]" - layoutpolicy_horizontal = expanding - spacing = 7 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_SPECIAL" - default_format = "#low" - } - - vbox = { - datamodel = "[FaithWindow.GetGroupingHelper( 'special' ).GetGrouping]" - layoutpolicy_horizontal = expanding - margin_left = 50 - margin_right = 66 - - spacing = 8 - - item = { - text_single = { - layoutpolicy_horizontal = expanding - - - margin = { 17 0 } - margin_top = 12 - margin_bottom = 13 - - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - - text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]" - tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP_WITH_FAITH" - - align = nobaseline - - using = tooltip_es - - background = { - using = Background_Area - } - - - } - - } - } - } - } - } - } - - widget = { - size = { 0 8 } - } - - ### Religious Head // Footer - vbox = { - name = "religious_head" - layoutpolicy_horizontal = expanding - #margin_top = { 0 10 } - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - name = "current_hof" - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area - } - - portrait_head = { - name = "character_portrait" - datacontext = "[Faith.GetReligiousHead]" - visible = "[Faith.GetReligiousHead.IsValid]" - - blockoverride "coa" {} - blockoverride "opinion_box"{} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 3 - margin = { 0 10 } - - spacer = { - visible = "[Not( Faith.GetReligiousHead.IsValid)]" - size = { 10 3 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RELIGIOUS_HEAD" - default_format = "#low" - fontsize_min = 14 - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[Faith.GetReligiousHead.IsValid]" - text = "RELIGIOUS_HEAD_WITH_NAME" - default_format = "#high" - layoutpolicy_horizontal = expanding - fontsize_min = 10 - } - - text_multi = { - visible = "[Not( Faith.GetReligiousHead.IsValid)]" - text = "RELIGIOUS_HEAD_EMPTY_DESC" - default_format = "#weak" - layoutpolicy_horizontal = expanding - align = left - fontsize_min = 10 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_round = { - datacontext = "[Faith.GetReligiousHead]" - visible = "[Faith.GetReligiousHead.IsValid]" - - tooltip = "HOF_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'interaction_category_religion'))]" - - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'interaction_category_religion')]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'interaction_category_religion')]" - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - } - - expand = {} - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 5 } - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 5 5 } - spacing = 5 - - widget_doctrine_item = { - visible = "[Faith.HasDoctrineByKey( 'doctrine_no_head' )]" - - blockoverride "background" {} - - blockoverride "doctrine_icon" - { - texture = "[GetDoctrine( 'doctrine_no_head' ).GetIcon]" - } - - blockoverride "wdi_context" - { - datacontext = "[GetDoctrine('doctrine_no_head')]" - datacontext = "[Faith]" - } - } - - widget_doctrine_item = { - visible = "[Faith.HasDoctrineByKey( 'doctrine_spiritual_head' )]" - - blockoverride "background" {} - - blockoverride "doctrine_icon" - { - texture = "[GetDoctrine( 'doctrine_spiritual_head' ).GetIcon]" - } - - blockoverride "wdi_context" - { - datacontext = "[GetDoctrine('doctrine_spiritual_head')]" - datacontext = "[Faith]" - } - } - - widget_doctrine_item = { - visible = "[Faith.HasDoctrineByKey( 'doctrine_temporal_head' )]" - - blockoverride "background" {} - - blockoverride "doctrine_icon" - { - texture = "[GetDoctrine( 'doctrine_temporal_head' ).GetIcon]" - } - - blockoverride "wdi_context" - { - datacontext = "[GetDoctrine('doctrine_temporal_head')]" - datacontext = "[Faith]" - } - } - - expand = {} - - hbox = { - name = "hof_title" - layoutpolicy_horizontal = expanding - datacontext = "[Faith.GetReligiousHeadTitle]" - visible = "[Title.IsValid]" - spacing = 5 - - coa_title_tiny_crown = { - name = "head_title" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = "[Title.GetNameNoTooltip|U]" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 160 - } - - expand = {} - } - } - - expand = {} - } - } - } - - hbox = { - spacing = 10 - margin_bottom = 8 - margin_top = 8 - layoutpolicy_horizontal = expanding - - expand = {} - - button_standard = { - name = "convert_faith" - minimumsize = { 240 0 } - visible = "[NotEqualTo_uint32( Faith.GetID, GetPlayer.GetFaith.GetID )]" - text = "FAITH_CONVERSION_CONVERT" - onclick = "[ToggleGameViewData( 'faith_conversion', Faith.GetID )]" - - using = tooltip_nw - } - - button_standard = { - name = "create_faith" - minimumsize = { 240 0 } - visible = "[And( ObjectsEqual(Faith.Self, GetPlayer.GetFaith ), GetVariableSystem.HasValue( 'faith_view_tabs', 'beliefs' ))]" - text = "CREATE_REFORM_FAITH_TEXT" - onclick = "[OpenGameViewData( 'faith_creation', Faith.GetID )]" - tooltip = "CREATE_REFORM_FAITH_TOOLTIP" - - using = tooltip_nw - } - - button_standard = { - name = "create_head_of_faith" - minimumsize = { 240 0 } - visible = "[And( And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), Not( Faith.GetReligiousHeadTitle.IsValid ) ), ObjectsEqual( GetPlayer.GetFaith, Faith.Self ) )]" - datacontext = "[GetScriptedGui( 'create_head_of_faith' )]" - enabled = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - tooltip = "[ScriptedGui.BuildTooltip( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - text = "CREATE_TEMPORAL_HEAD_OF_FAITH_TITLE" - } - - button_standard = { - name = "recreate_head_of_faith" - minimumsize = { 240 0 } - visible = "[And( And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), And(Faith.GetReligiousHeadTitle.IsValid, Not( Faith.GetReligiousHeadTitle.HasHolder ))), ObjectsEqual( GetPlayer.GetFaith, Faith.Self ) )]" - datacontext = "[GetScriptedGui( 'recreate_head_of_faith' )]" - enabled = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - tooltip = "[ScriptedGui.BuildTooltip( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End ) ]" - text = "RECREATE_TEMPORAL_HEAD_OF_FAITH_TITLE" - } - - expand = {} - } - } - - ## HOLY SITES - scrollbox = { - name = "tab_holy_sites" - visible = "[GetVariableSystem.HasValue( 'faith_view_tabs', 'holy_sites' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[GetIllustration( 'religion_holding' )]" - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - background = { - alpha = 0.5 - fittype = end - texture = "[Illustration.GetTexture( FaithWindow.GetFaith.MakeScope )]" - - modify_texture = { - mirror = vertical - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "holy_sites" - datamodel = "[FaithWindow.GetHolySites]" - layoutpolicy_horizontal = expanding - - text_multi = { - datacontext = "[FaithWindow.GetFaith]" - layoutpolicy_horizontal = expanding - size = { 0 45 } - text = FAITH_HOLY_SITE_EXPLANATION - default_format = "#weak" - margin = { 0 5 } - margin_bottom = 15 - align = center - max_width = 560 - autoresize = yes - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - name = "faith_list_item" - datacontext = "[GuiHolySiteItem.GetHolySite]" - datacontext = "[HolySite.GetBarony]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 15 - - background = { - using = Background_Area - alpha = 0.2 - } - - vbox = { - layoutpolicy_vertical = expanding - min_width = 175 - spacing = 3 - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - coa_title_tiny = {} - - text_single = { - name = "name_notheld" - visible = "[Not( GuiHolySiteItem.IsHeldByFaith )]" - layoutpolicy_horizontal = expanding - - text = "[HolySite.GetName]" - align = nobaseline - autoresize = no - default_format = "#low" - using = Font_Size_Big - - margin_bottom = 5 - } - - text_single = { - name = "name_held" - visible = "[GuiHolySiteItem.IsHeldByFaith]" - layoutpolicy_horizontal = expanding - - text = "[HolySite.GetName]" - align = nobaseline - autoresize = no - default_format = "#high" - using = Font_Size_Big - - margin_bottom = 5 - - } - - expand = {} - } - - hbox = { - datacontext = "[Title.GetHolder]" - tooltip = "FAITH_HOLY_SITE_HOLDER_TOOLTIP" - - background = { - visible = "[Not( GuiHolySiteItem.IsHeldByFaith )]" - using = Status_Bad - margin_top = 3 - margin_bottom = -1 - alpha = 0.8 - } - - background = { - visible = "[GuiHolySiteItem.IsHeldByFaith]" - using = Background_Area - margin_top = 3 - margin_bottom = -1 - alpha = 0.8 - } - - highlight_icon = { - name = "faith_button" - datacontext = "[Title.GetDeJureLiege.GetHolder.GetFaith]" - size = { 45 45 } - texture = "[Faith.GetIcon]" - } - - coa_realm_small = { - visible = "[Title.HasHolder]" - datacontext = "[Title.GetHolder.GetTopLiege]" - } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 20 - - vbox = { - layoutpolicy_vertical = expanding - - state = { - name = "faith_view_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_multi = { - name = "effects_notheld" - visible = "[Not( GuiHolySiteItem.IsHeldByFaith )]" - layoutpolicy_horizontal = expanding - text = "[HolySite.GetEffectDesc( GuiHolySiteItem.GetFaith )]" - default_format = "#low" - format_override = { P low } - format_override = { L low } - format_override = { E low } - format_override = { S low } - autoresize = yes - max_width = 315 - } - - text_multi = { - name = "effects_held" - visible = "[GuiHolySiteItem.IsHeldByFaith]" - - layoutpolicy_horizontal = expanding - text = "[HolySite.GetEffectDesc( GuiHolySiteItem.GetFaith )]" - autoresize = yes - max_width = 315 - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - - button_go_to_my_location = { - onclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - tooltip = "GOTO_PROVINCE" - } - - } - } - } - } - } - } - } -} - -### RELIGION VIEW -window = { - name = "religion_window" - size = { 590 80% } - position = { 620 75 } - datacontext = "[ReligionWindow.GetReligion]" - layer = windows_layer - - using = Window_Movable - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - attachto = { - widgetid = "faith_window" - inherit_visibility = no - } - - vbox = { - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "RELIGION_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ReligionWindow.Close]" - } - - blockoverride "button_back" - { - visible = no - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 5 - spacing = 5 - - hbox = { - spacing = 5 - - text_single = { - text = "SORT_BY" - align = nobaseline - } - - dropdown_sort_characterlist = { - datamodel = "[ReligionWindow.GetOrderByOptions]" - onselectionchanged = "[ReligionWindow.OnOrderBySelectionChanged]" - selectedindex = "[ReligionWindow.GetOrderBySelectedIndex]" - - blockoverride "text_button_drop" { - text = "[OrderFaithOption.GetName]" - } - } - } - - expand = {} - - ### Only Selected religion faiths - hbox = { - layoutpolicy_horizontal = expanding - max_width = 550 - spacing = 5 - - expand = {} - - button_checkbox_label = { - onclick = "[ReligionWindow.OnShowOnlyReligionFaiths]" - - blockoverride "text" - { - text = "RELIGION_SHOW_ONLY" - max_width = 180 - } - blockoverride "checkbox" - { - checked = "[ReligionWindow.ShowOnlyReligionFaiths]" - } - } - - tooltip = "[ReligionWindow.GetShowOnlyReligionFaithsTooltip]" - using = tooltip_ne - } - } - - scrollbox = { - name = "faiths_scroll_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[ReligionWindow.GetFaiths]" - layoutpolicy_horizontal = expanding - - item = { - button_standard_hover = { - name = "show_faith_info" - layoutpolicy_horizontal = expanding - size = { 0 80 } - tooltipwidget = { faith_tooltip_click = {} } - onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]" - - using = tooltip_es - - state = { - name = _mouse_click - on_finish = "[OpenGameViewData( 'faith', Faith.GetID )]" - } - - background = { - visible = "[Faith.IsSelected]" - using = Background_Area - } - - divider_light = { - alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]" - size = { 100% 3 } - parentanchor = bottom - position = { 0 1 } - } - - hbox = { - margin = { 10 5 } - alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]" - - icon = { - name = "faith_icon" - texture = "[Faith.GetIcon]" - size = { 60 60 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - name = "faith_name" - align = left|nobaseline - text = "FAITH_COOLTIP_GETNAME" - using = Font_Size_Medium - default_format = "#high" - max_width = 240 - } - - expand = {} - - text_single = { - min_width = 160 - name = "religion_faith_name" - align = right|nobaseline - text = "FAITH_RELIGION" - margin_right = 5 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - texture = "gfx/interface/icons/icon_fervor.dds" - size = { 22 22 } - } - - text_single = { - name = "fervor" - text = "FAITH_WINDOW_FERVOR" - using = Font_Size_Small - align = left|nobaseline - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "counties" - align = left|nobaseline - text = "FAITH_WINDOW_COUNTIES" - default_format = "#low" - autoresize = no - } - } - } - } - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types FaithCreationWindow -{ - type name_entry_big = editbox_standard_with_label { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - block "label" - { - text = "DEFAULT_TEXT" - } - } - size = { 380 30 } - } - -} - -types FaithShared -{ - type container_tenet_item = container { - - using = tooltip_se - - highlight_icon = { - name = "doctrine_group_bg" - texture = "[Faith.GetDoctrineBackgroundIcon]" - size = { 130 200 } - } - - highlight_icon = { - name = "doctrine_group_icon" - texture = "[FaithDoctrine.GetIcon]" - size = { 130 200 } - alpha = 0.85 - position = {0 0} - } - - text_label_center = { - name = "doctrine_name" - parentanchor = bottom|hcenter - widgetanchor = center - position = { 0 -24 } - maximumsize = { 130 44 } - fontsize_min = 12 - multiline = yes - align = center - elide = right - text = "[FaithDoctrine.GetNameNoTooltip( Faith.Self )]" - default_format = "#high" - - using = Font_Size_Medium - } - } - - type fervor_container_vbox = vbox { - name = "fervor_container" - tooltip = "FERVOR_TT" - spacing = -6 - - # Fervor - hbox = { - - icon = { - texture = "gfx/interface/icons/icon_fervor.dds" - size = { 22 22 } - } - - text_single = { - text = "FAITH_WINDOW_FERVOR" - default_format = "#high" - align = nobaseline - } - } - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 1 - expand = {} - - text_single = { - name = "fervor_trend" - text = "[Faith.GetYearlyFervorChange|=+2]" - max_width = 110 - default_format = "#low" - fontsize = 13 - size = { 0 12 } - } - } - } -} - -types FaithWindow -{ - type widget_doctrine_item = margin_widget { - size = { 210 53 } - #margin = {5 5} - block "wdi_context" - { - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - } - - block "background" { - background = { - using = Background_Area - margin = { 5 5 } - } - } - - hbox = { - parentanchor = center - name = "faith_list_item" - block "tooltip" { #### current solution as to not display 2 different tooltips for special doctrines - tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP_WITH_FAITH" - } - spacing = 8 - - using = tooltip_ne - - block "doctrine_icon" - { - icon_doctrine = { - name = "doctrine_group_icon" - size = { 50 50 } - - texture = "[FaithDoctrine.GetGroup.GetIcon]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "doctrine_group_name" - layoutpolicy_horizontal = expanding - align = left - autoresize = no - fontsize_min = 12 - # default_format = "#low" - block "text_title" - { - text = "[FaithDoctrine.GetGroup.GetName( Faith.Self )]" - } - } - - text_single = { - name = "faith_name" - layoutpolicy_horizontal = expanding - elide = right - autoresize = no - fontsize_min = 12 - align = left - default_format = "#high" - block "text_desc" - { - text = "[FaithDoctrine.GetNameNoTooltip( Faith.Self )]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_faith_conversion.gui b/N3OW/gui/window_faith_conversion.gui deleted file mode 100644 index b5df1ef6..00000000 --- a/N3OW/gui/window_faith_conversion.gui +++ /dev/null @@ -1,136 +0,0 @@ -window = { - name = "faith_conversion_window" - datacontext = "[FaithConversionWindow.GetVassalConversionWindow]" - datacontext = "[GetVariableSystem]" - datacontext = "[FaithConversionWindow.GetFaith]" - parentanchor = center - size = { 680 900 } - layer = middle - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CONVERT_FAITH_WINDOW_TITLE_UI" - } - - blockoverride "button_close" - { - onclick = "[FaithConversionWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 20 } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - vbox = { - name = "realm_adoption" - layoutpolicy_horizontal = expanding - - text_single = { - name = "header" - layoutpolicy_horizontal = expanding - - text = "FAITH_CREATION_ADOPTION" - default_format = "#low" - } - - text_single = { - name = "desc" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_ADOPTION_TEXT" - } - } - - vbox = { - name = "old_faith_tolerance" - layoutpolicy_horizontal = expanding - - text_single = { - name = "header" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_TOLERANCE" - default_format = "#low" - } - - text_single = { - name = "desc" - layoutpolicy_horizontal = expanding - text = "FAITH_CONVERSION_TOLERANCE_TEXT" - } - } - } - - vbox = { - name = "cost" - datacontext = "[FaithConversionWindow.GetFaith]" - - tooltip = "FAITH_CONVERSION_COST_TOOLTIP" - - text_single = { - name = "label" - layoutpolicy_horizontal = expanding - text = "FAITH_CONVERSION_TOTAL_COST" - default_format = "#high" - using = Font_Size_Medium - align = right - } - - text_single = { - name = "missing" - layoutpolicy_horizontal = expanding - visible = "[GreaterThan_int32( FaithConversionWindow.CalcPietyMissing, '(int32)0' )]" - text = "FAITH_CONVERSION_COST_MISSING" - using = Font_Size_Medium - align = right - } - } - } - spacer = { - size = { 15 15 } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vassal_conversion_preview = { - #visible = "[VariableSystem.Exists( 'faith_conversion_see_vassals' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 500 } - - blockoverride "footer" { - visible = no - } - } - - hbox= { - margin_bottom = 10 - - button_primary = { - name = "create_faith" - size = { 400 60 } - - onclick = "[FaithConversionWindow.ConvertFaith]" - tooltip = "FAITH_CONVERSION_BUTTON_TOOLTIP" - enabled = "[FaithConversionWindow.CanConvertFaith]" - - text = "FAITH_CONVERSION_CONVERT" - using = Font_Size_Medium - } - } - } -} diff --git a/N3OW/gui/window_faith_creation.gui b/N3OW/gui/window_faith_creation.gui deleted file mode 100644 index 85866267..00000000 --- a/N3OW/gui/window_faith_creation.gui +++ /dev/null @@ -1,1439 +0,0 @@ -###################################################### -################## FAITH CREATION #################### -###################################################### - -window = { - name = "faith_creation_window" - widgetid = "faith_creation_window" - datacontext = "[FaithCreationWindow.GetVassalConversionWindow]" - datacontext = "[GetVariableSystem]" - parentanchor = center - size = { 1300 950 } - layer = middle - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'faith_creation_doctrine_page', 'main_group' )]" - on_start = "[GetVariableSystem.Set( 'faith_creation_icon_selection', 'false' )]" - on_start = "[GetVariableSystem.Clear('faith_creation_right_view')]" - on_start = "[GetVariableSystem.Clear('conversion_view_vassals')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]" - - blockoverride "header_text" - { - text = "CREATE_FAITH_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[FaithCreationWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - } - - header_pattern = { - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.GetFaith.IsUnreformed]" - - blockoverride "header_text" - { - text = "REFORM_FAITH_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[FaithCreationWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - name = "left_side" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - visible = "[Not(VariableSystem.Exists( 'conversion_view_vassals' ))]" - spacing = 10 - - hbox = { - name = "name_and_icon" - margin_top = 15 - spacing = 10 - - button_standard = { - size = { 60 60 } - visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'icon_selection' )]" - tooltip = "CHANGE_FAITH_ICON" - - highlight_icon = { - name = "faith_icon" - visible = "[GetVariableSystem.HasValue( 'faith_creation_icon_selection', 'true' )]" - parentanchor = center - size = { 52 52 } - texture = "[FaithCreationWindow.GetFaithIcon]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'icon_selection' )]" - tooltip = "CHANGE_FAITH_ICON" - } - - animation_attention_text = { - visible = "[Not(GetVariableSystem.HasValue( 'faith_creation_icon_selection', 'true' ))]" - } - } - - hbox = { - visible = "[GetPlayer.GetFaith.IsUnreformed]" - layoutpolicy_horizontal = expanding - - icon = { - visible = "[GetPlayer.GetFaith.IsUnreformed]" - name = "faith_icon" - size = { 45 45 } - texture = "[FaithCreationWindow.GetFaithIcon]" - } - - text_single = { - name = "faith_name_static" - visible = "[GetPlayer.GetFaith.IsUnreformed]" - text = "FAITH_WINDOW_FAITH_NAME" - default_format = "#high" - using = Font_Size_Big - } - } - - button_standard = { - name = "faith_name" - size = { 550 60 } - visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'name_selection' )]" - tooltip = FAITH_WINDOW_FAITH_NAME_TOOLTIP - - text_multi = { - name = "faith_name_label" - size = { 100% 100% } - margin = { 10 0 } - fontsize_min = 16 - text = "FAITH_WINDOW_FAITH_NAME" - default_format = "#high" - using = Font_Size_Big - align = center|nobaseline - } - - button_replace = { - name = "reset" - parentanchor = right|vcenter - position = { -6 0 } - size = { 40 40 } - } - } - - map_color_button = { - tooltip = "CREATE_FAITH_SELECT_COLOR" - blockoverride "mcb_click" - { - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'color_selection' )]" - } - blockoverride "mcb_color" - { - tintcolor = "[FaithCreationWindow.GetColor]" - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox = { - name = "tenets" - layoutpolicy_horizontal = expanding - spacing = 15 - - text_label_center = { - text = "[core_tenets|E]" - } - - hbox = { - name = "tenets_grid" - datamodel = "[FaithCreationWindow.GetGroupingHelper( 'core_tenets' ).GetGrouping]" - spacing = 45 - - item = { - button_group = { - datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - - icon = { - size = { 130 160 } - scale = 1.5 - parentanchor = center - visible = "[EqualTo_int32( GuiFaithCreationDoctrineItem.GetSlotIndex, GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.GetSlotIndex ) ]" - texture = "gfx/portraits/portrait_glow.dds" - using = Color_Orange - } - - container_tenet_item = { - tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP" - } - - onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindowSortList( GuiFaithCreationDoctrineItem.GetSlotIndex )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]" - onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]" - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox = { - name = "doctrines" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 15 - - text_label_center = { - text = "[doctrines|E]" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_IMPORTANT" - default_format = "#low" - } - - fixedgridbox = { - name = "doctrines_grid_main_group" - datamodel = "[FaithCreationWindow.GetGroupingHelper( 'main_group' ).GetGrouping]" - - flipdirection = yes - addcolumn = 270 - addrow = 65 - datamodel_wrap = 2 - - item = { - widget_doctrine_selection_item = { - blockoverride "doctrine_icon_texture" - { - texture = "[FaithDoctrine.GetIcon]" - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_MARRIAGE" - default_format = "#low" - } - - fixedgridbox = { - name = "doctrines_grid_marriage" - datamodel = "[FaithCreationWindow.GetGroupingHelper( 'marriage' ).GetGrouping]" - flipdirection = yes - addcolumn = 270 - addrow = 65 - datamodel_wrap = 2 - - item = { - widget_doctrine_selection_item = {} - } - } - - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_CRIMES" - default_format = "#low" - } - - fixedgridbox = { - name = "doctrines_grid_crimes" - datamodel = "[FaithCreationWindow.GetGroupingHelper( 'crimes' ).GetGrouping]" - - flipdirection = yes - addcolumn = 270 - addrow = 65 - datamodel_wrap = 2 - - item = { - widget_doctrine_selection_item = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "FAITH_DOCTRINES_CLERGY" - default_format = "#low" - } - - fixedgridbox = { - name = "doctrines_grid_clergy" - datamodel = "[FaithCreationWindow.GetGroupingHelper( 'clergy' ).GetGrouping]" - - flipdirection = yes - addcolumn = 270 - addrow = 65 - datamodel_wrap = 2 - - item = { - widget_doctrine_selection_item = {} - } - } - } - } - } - } - - hbox = { - name = "footer_area" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 15 - - hbox = { - name = "sins_and_virtues" - spacing = 10 - - vbox = { - name = "sins" - spacing = 3 - - hbox = { - spacing = 5 - icon = { - texture = "gfx/interface/icons/traits/sin_big.dds" - } - - text_single = { - text = "FAITH_WINDOW_SINS" - align = right|nobaseline - } - } - - hbox = { - name = "virtues_grid" - datamodel = "[FaithCreationWindow.GetSins]" - - item = { - icon = { - datacontext = "[GuiVirtueOrSinItem.GetTrait]" - size = { 40 40 } - alwaystransparent = yes - texture = "[Trait.GetIcon( GetPlayer )]" - - tooltipwidget = { - using = faith_window_trait_tooltip - } - - block "tooltip_placement" - { - using = tooltip_ne - tooltip_offset = { 0 20 } - } - } - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - name = "virtues" - spacing = 3 - - hbox = { - spacing = 5 - icon = { - texture = "gfx/interface/icons/traits/virtue_big.dds" - } - - text_single = { - text = "FAITH_WINDOW_VIRTUES" - align = nobaseline - } - } - - hbox = { - name = "virtues_grid" - datamodel = "[FaithCreationWindow.GetVirtues]" - - item = { - icon = { - datacontext = "[GuiVirtueOrSinItem.GetTrait]" - size = { 40 40 } - alwaystransparent = yes - texture = "[Trait.GetIcon( GetPlayer )]" - - tooltipwidget = { - using = faith_window_trait_tooltip - } - - block "tooltip_placement" - { - using = tooltip_ne - tooltip_offset = { 0 20 } - } - } - } - } - } - } - } - } - - # Vassal conversion list - vassal_conversion_preview = { - visible = "[VariableSystem.Exists( 'conversion_view_vassals')]" - size = { 100% 100% } - } - } - - divider = { - layoutpolicy_vertical = expanding - } - - ### RIGHT PANEL - widget = { - name = "right_side" - minimumsize = { 500 0 } - layoutpolicy_vertical = expanding - - ## Main right side view - vbox = { - name = "primary_view" - visible = "[Not( VariableSystem.Exists('faith_creation_right_view') )]" - margin_bottom = 20 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - spacer = { size = {0 20}} - - - vbox = { - name = "confirm_and_preview" - layoutpolicy_horizontal = expanding - spacing = 20 - margin = { 30 0 } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[Not( FaithCreationWindow.CanCreateFaith )]" - text_label_left = { - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_BLOCKERS_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - autoresize = yes - max_width = 440 - text = "[FaithCreationWindow.GetCreationBlockers]" - } - - expand = {} - } - } - - vbox = { - name = "old_faith_tolerance" - layoutpolicy_horizontal = expanding - - text_label_left = { - name = "header" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_TOLERANCE" - default_format = "#low" - } - - expand = { - size = { 0 10 } - } - - text_single = { - name = "desc" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_TOLERANCE_TEXT" - } - } - - - vbox = { - name = "realm_adoption" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - name = "header" - text = "FAITH_CREATION_ADOPTION" - default_format = "#low" - } - - expand = { - size = { 0 10 } - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "desc" - text = "FAITH_CREATION_ADOPTION_TEXT" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 5 } - - button_standard = { - name = "see_vassals" - onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]" - text = "FAITH_CREATION_OPEN_VASSAL_LIST" - down = "[VariableSystem.HasValue( 'conversion_view_vassals', 'true' )]" - } - - expand = {} - } - } - - vbox = { - name = "pagan_reformation" - visible = "[Or( GetPlayer.GetFaith.HasDoctrineByKey( 'unreformed_faith_doctrine' ) , GetPlayer.GetFaith.HasDoctrineByKey( 'west_african_unreformed_faith_doctrine' ) )]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "header" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_PAGAN_REFORM" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "desc" - minimumsize = { 0 70 } - autoresize = yes - max_width = 440 - text = "FAITH_CREATION_PAGAN_REFORM_TEXT" - } - - expand = {} - } - } - - vbox = { - name = "theocracy_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.HasParameterByKey( 'lay_clergy' ), FaithCreationWindow.HasParameter( 'lay_clergy' ) ) )]" - - text_label_left = { - layoutpolicy_horizontal = expanding - name = "header" - text = "FAITH_CREATION_THEOCRACY_INFO" - default_format = "#low" - } - - expand = { - size = { 0 10 } - } - - hbox = { - name = "church_property" - visible = "[Not( FaithCreationWindow.HasParameter( 'lay_clergy' ) )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - icon_doctrine = { - texture = "[GetDoctrine( 'doctrine_theocracy_temporal' ).GetIcon]" - size = { 35 35 } - } - - text_multi = { - name = "desc" - max_width = 390 - autoresize = yes - - text = "FAITH_CREATION_ADDS_CHURCH_PROPERTY_TEXT" - } - - expand = {} - } - - hbox = { - name = "lay_clergy" - visible = "[FaithCreationWindow.HasParameter( 'lay_clergy' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - icon_doctrine = { - texture = "[GetDoctrine( 'doctrine_theocracy_lay_clergy' ).GetIcon]" - size = { 35 35 } - } - - text_multi = { - name = "desc" - max_width = 390 - autoresize = yes - - text = "FAITH_CREATION_ADDS_LAY_CLERGY_TEXT" - } - - expand = {} - } - } - - vbox = { - name = "head_of_faith_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Not( FaithCreationWindow.HasParameter( 'no_head_of_faith' ) )]" - - text_label_left = { - layoutpolicy_horizontal = expanding - name = "header" - text = "FAITH_CREATION_HEAD_OF_FAITH_INFO" - default_format = "#low" - } - - expand = { - size = { 0 10 } - } - - hbox = { - name = "spiritual" - visible = "[FaithCreationWindow.HasParameter( 'spiritual_head_of_faith' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - icon_doctrine = { - texture = "[GetDoctrine( 'doctrine_spiritual_head' ).GetIcon]" - size = { 35 35 } - } - - text_multi = { - name = "desc" - max_width = 390 - autoresize = yes - - text = "FAITH_CREATION_ADDS_SPIRITUAL_HEAD_TEXT" - } - - expand = {} - } - - hbox = { - name = "temporal" - visible = "[FaithCreationWindow.HasParameter( 'temporal_head_of_faith' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - icon_doctrine = { - texture = "[GetDoctrine( 'doctrine_temporal_head' ).GetIcon]" - size = { 35 35 } - } - - text_multi = { - name = "desc" - max_width = 390 - autoresize = yes - - text = "FAITH_CREATION_ADDS_TEMPORAL_HEAD_TEXT" - } - - expand = {} - } - } - - - } - - expand = {} - - - vbox = { - name = "cost" - tooltip = "FAITH_CREATION_COST_TOOLTIP" - - text_single = { - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_TOTAL_COST" - default_format = "#high" - using = Font_Size_Medium - align = right - - background = { - visible = "[GreaterThan_int32( FaithCreationWindow.CalcPietyMissing, '(int32)0' )]" - margin = { 5 0 } - using = Status_Bad - } - } - } - - spacer = { size = {0 10}} - - text_multi = { - align = center - name = "cooldown" - layoutpolicy_horizontal = expanding - text = "FAITH_CREATION_COOLDOWN" - default_format = "#low" - using = Font_Size_Medium - autoresize = yes - max_width = 400 - } - - spacer = { size = {0 10}} - - button_primary = { - name = "create_faith" - size = { 400 60 } - visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]" - - enabled = "[FaithCreationWindow.CanCreateFaith]" - onclick = "[FaithCreationWindow.CreateFaith]" - - text = "FAITH_CREATION_CREATE" - using = Font_Size_Medium - - tooltip = "FAITH_CREATION_BUTTON_TOOLTIP" - } - - button_primary = { - name = "reform_faith" - size = { 400 60 } - visible = "[GetPlayer.GetFaith.IsUnreformed]" - - enabled = "[FaithCreationWindow.CanCreateFaith]" - onclick = "[FaithCreationWindow.CreateFaith]" - - text = "FAITH_CREATION_REFORM" - using = Font_Size_Big - - tooltip = "FAITH_REFORM_BUTTON_TOOLTIP" - } - } - - ## Name selection - vbox = { - name = "name_selection" - visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'name_selection' )]" - margin = { 0 15 } - spacing = 20 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_single = { - name = "header_label" - text = "FAITH_CREATION_NAMING_HEADER" - default_format = "#I" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = {50 0} - # The names of these four are referenced in code. If you change them, they'll no longer get blanked after creating a faith - name_entry_big = { - blockoverride "label" - { - text = "FAITH_CREATION_NAMING_NAME" - } - - blockoverride "editbox_properties" - { - name = "faith_name_edit" - focus_on_visible = yes - ontextedited = "[FaithCreationWindow.OnEditName]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "FAITH_CREATION_NAMING_ADJECTIVE" - } - - blockoverride "editbox_properties" - { - name = "faith_adjective_edit" - ontextedited = "[FaithCreationWindow.OnEditAdjective]" - maxcharacters = 30 - } - - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "FAITH_CREATION_NAMING_FOLLOWER" - } - - blockoverride "editbox_properties" - { - name = "faith_adherent_edit" - ontextedited = "[FaithCreationWindow.OnEditAdherent]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "FAITH_CREATION_NAMING_FOLLOWERS" - } - - blockoverride "editbox_properties" - { - name = "faith_adherent_plural_edit" - ontextedited = "[FaithCreationWindow.OnEditAdherentPlural]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - minimumsize = {0 220} - - blockoverride "editbox_label" - { - text = "FAITH_CREATION_NAMING_DESC" - } - - blockoverride "editbox_properties" - { - name = "faith_desc_edit" - multiline = yes - ontextedited = "[FaithCreationWindow.OnEditDescription]" - maxcharacters = 240 - } - } - - - } - - expand = {} - - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - - vbox = { - name = "color_selection" - visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'color_selection' )]" - margin = { 0 20 } - margin_top = 15 - margin_left = 2 - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "MAP_COLOR_SELECTION_LABEL" - max_width = 280 - } - - colorpicker_simple = { - visible = yes - color = "[FaithCreationWindow.GetColor]" - oncoloredited = "[FaithCreationWindow.SetColor]" - } - - expand = {} - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - - - ## Doctrine selection - vbox = { - name = "doctrine_selection" - visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' )]" - margin = { 0 15 } - spacing = 20 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[VariableSystem.Get( 'doctrine_group_name' )]" - max_width = 280 - } - - scrollbox = { - name = "contents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datacontext = "[FaithCreationWindow.GetDoctrineGroupWindow]" - datamodel = "[DoctrineGroupWindow.GetDoctrines]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - button_standard_hover = { - name = "faith_list_item" - layoutpolicy_horizontal = expanding - datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - datacontext = "[GetVariableSystem]" - size = { 430 80 } - - onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.SelectDoctrine( GuiFaithCreationDoctrineItem.Self )]" - onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]" - visible = "[GuiFaithCreationDoctrineItem.ShouldDisplay]" - enabled = "[GuiFaithCreationDoctrineItem.CanPick]" - down = "[GuiFaithCreationDoctrineItem.IsSelected]" - tooltip = "FAITH_WINDOW_DOCTRINE_SELECT_TOOLTIP" - - icon_doctrine = { - name = "doctrine_icon_main" - visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'main_group' )]" - texture = "[FaithDoctrine.GetIcon]" - size = { 60 60 } - position = { 5 10 } - } - - icon_doctrine = { - name = "doctrine_icon_other" - visible = "[And(Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'main_group' )), Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )))]" - texture = "[FaithDoctrine.GetGroup.GetIcon]" - size = { 60 60 } - position = { 5 10 } - } - - widget = { - name = "doctrine_icon_core_bg" - visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )]" - - background = { - using = Background_Area_Dark - alpha = 0.4 - } - - size = { 45 70 } - position = { 15 5 } - } - - icon = { - name = "doctrine_icon_core" - visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )]" - texture = "[FaithDoctrine.GetIcon]" - size = { 45 70 } - position = { 15 5 } - } - - text_single = { - name = "doctrine_name" - position = { 75 25 } - text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]" - default_format = "#high" - using = Font_Size_Medium - max_width = 270 - } - - text_single = { - name = "piety_cost" - position = { 350 23 } - text = "[piety_i][FaithDoctrine.CalcPietyCostWithFervorDiscount( GuiFaithDoctrineItem.GetFaith )]" - using = Font_Size_Medium - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - button_standard = { - name = "cancel" - onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]" - text = "CANCEL" - default_format = "#high" - } - } - - - ## Icon selection - vbox = { - name = "icon_selection" - visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'icon_selection' )]" - margin = { 0 15 } - spacing = 20 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_single = { - name = "header_label" - text = "SELECT_FAITH_ICON" - default_format = "#I" - } - - scrollbox = { - name = "contents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - fixedgridbox = { - name = "icons_grid" - datamodel = "[FaithCreationWindow.GetFaithIcons]" - size = { 500 240 } - addcolumn = 60 - addrow = 70 - datamodel_wrap = 8 - flipdirection = yes - - item = { - button_normal = { - size = { 60 60 } - texture = "[GuiFaithIcon.GetIconTexture]" - onclick = "[GuiFaithIcon.GetFaithCreationWindow.SelectFaithIcon( GuiFaithIcon.GetIconName )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_icon_selection', 'true' )]" - tooltip = "SELECT_FAITH_ICON_TOOLTIP" - - glow = { - using = Color_Orange - visible = "[GuiFaithIcon.IsSelected]" - - glow_radius = 5 - using = Glow_Standard - } - } - } - } - } - } - - button_standard = { - name = "close" - onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - } - } - } -} - -template faith_creation_doctrine_grid -{ - datamodel_wrap = 2 - flipdirection = yes - addcolumn = 350 - addrow = 65 - item = { - button_group = { - name = "doctrine_list_item" - tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP" - datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindow( GuiFaithCreationDoctrineItem.GetSlotIndex )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]" - onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]" - down = "[GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' )]" - - button_standard_hover = { - position = { 0 0 } - size = { 350 80 } - name = "select_doctrine" - down = "[And(GetVariableSystem.HasValue( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) ), GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' ))]" - } - - icon = { - name = "doctrine_group_icon" - size = { 60 60 } - position = { 5 5 } - texture = "[FaithDoctrine.GetGroup.GetIcon]" - } - - text_single = { - name = "doctrine_group_name" - autoresize = yes - position = { 80 7 } - align = left - text = "[FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith )]" - } - - text_single = { - name = "doctrine_name" - position = { 80 33 } - align = left - text = "[FaithDoctrine.GetName( GuiFaithDoctrineItem.GetFaith )]" - } - } - } -} - -template faith_window_trait_tooltip -{ - object_tooltip_pop_out = { - blockoverride "header_additions" - { - hbox = { - margin_right = 5 - margin_top = 5 - - icon = { - size = { 52 52 } - texture = "[Trait.GetIcon( GetPlayer )]" - tintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - blockoverride "title_text" - { - text = "[Trait.GetNameNoTooltip( GetPlayer )]" - } - blockoverride "concept_link" { - text = [trait|E] - } - blockoverride "description_text" - { - text = "[GuiVirtueOrSinItem.GetFullDescription]" - } - } -} - -types "FaithCreation" -{ - type widget_doctrine_selection_item = button_standard_hover { - size = { 240 53 } - tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP" - datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindow( GuiFaithCreationDoctrineItem.GetSlotIndex )]" - onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]" - onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]" - down = "[And(GetVariableSystem.HasValue( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) ), GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' ))]" - - background = { - using = Background_Area - margin = { 5 5 } - } - - hbox = { - name = "faith_list_item" - datacontext = "[GuiFaithDoctrineItem.GetDoctrine]" - spacing = 5 - using = tooltip_nw - tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP" - - icon_doctrine = { - name = "doctrine_icon" - size = { 50 50 } - block "doctrine_icon_texture" - { - texture = "[FaithDoctrine.GetGroup.GetIcon]" - } - - alpha = "[Select_float( GetPlayer.GetFaith.HasDoctrine( GuiFaithDoctrineItem.GetDoctrine ), '(float)0.4', '(float)1.0' )]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "doctrine_group_name" - text = "[FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith )]" - align = left - default_format = "#low" - layoutpolicy_horizontal = expanding - autoresize = no - fontsize_min = 12 - } - - text_single = { - name = "faith_name" - text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]" - datacontext = "[GuiFaithDoctrineItem.GetFaith]" - layoutpolicy_horizontal = expanding - elide = right - autoresize = no - fontsize_min = 12 - align = left - } - } - } - } - - type vassal_conversion_preview = widget { - name = "vassal_conversion_preview_list" - - vbox = { - margin = { 0 15 } - spacing = 5 - - text_label_center = { - name = "header" - text = "[vassals|E]" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - datacontext = "[VassalConversionWindow.GetVassalList]" - - widget = { - name = "sort_area" - size = { 0 33 } - layoutpolicy_horizontal = expanding - - hbox = { - margin_left = 8 - spacing = 5 - - text_single = { - text = "SORT_BY" - align = nobaseline - } - - dropdown_sort_characterlist = {} - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "CHARACTER_SORT_BY" - onclick = "[CharacterSelectionList.RevertSortOrder]" - - button_icon = { - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - size = { 25 25 } - frame = "[BoolTo1And2(CharacterSelectionList.GetSortOrder)]" - alwaystransparent = yes - } - } - - expand = {} - } - } - } - - scrollbox = { - name = "list_area" - layoutpolicy_horizontal = growing - layoutpolicy_vertical = growing - - blockoverride "scrollbox_content" - { - visible = "[GreaterThan_int32( VassalConversionWindow.GetNumberOfVassals, '(int32)0' )]" - - vbox = { - name = "vassals_grid" - datacontext = "[VassalConversionWindow.GetVassalList]" - datamodel = "[CharacterSelectionList.GetList]" - layoutpolicy_horizontal = expanding - - item = { - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - divider = { - layoutpolicy_horizontal = expanding - } - - hbox = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 10 - - tooltip = "[CharacterListItem.GetText('tooltip')]" - - portrait_head = { - using = tooltip_ws - - blockoverride "coa" {} - } - - coa_realm_small_crown = { - #visible = "[Character.HasLandedTitles]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNoTooltip]" - using = Font_Size_Medium - } - - ### acceptance - text_single = { - name = "acceptance" - layoutpolicy_horizontal = expanding - text = "[CharacterListItem.GetText( 'acceptance' )]" - tooltip = "[CharacterListItem.GetText( 'acceptance_desc' )]" - } - } - } - } - } - } - } - - vbox = { - visible = "[EqualTo_int32( VassalConversionWindow.GetNumberOfVassals, '(int32)0' )]" - text_single = { - text = "NO_CONVERSION_VASSALS_TO_DISPLAY" - } - } - } - - vbox = { - margin_top = 10 - - block "footer" {} - - button_standard = { - name = "close" - text = "CLOSE_LABEL" - onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]" - } - } - - - } - } -} diff --git a/N3OW/gui/window_family_attribute.gui b/N3OW/gui/window_family_attribute.gui deleted file mode 100644 index f5513e40..00000000 --- a/N3OW/gui/window_family_attribute.gui +++ /dev/null @@ -1,46 +0,0 @@ -types HouseAttributes -{ - type house_attribute = house_attribute_icon { - name = "powerful_family_bonus" - - datacontext = "[DynastyHouse.GetHouseAspiration]" - - visible = "[HouseAspiration.IsValid]" - - tooltipwidget = { - using = house_attribute_tooltip - } - - } - - type house_attribute_icon = icon { - size = { 36 36 } - - icon = { - parentanchor = center - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/icon_background_blue_frame.dds" - } - - icon_flat_standard = { - size = { 24 24 } - parentanchor = center - texture = "[HouseAspiration.GetSmallIcon]" - } - - flowcontainer = { - visible = "[HouseAspiration.HasMultipleLevels]" - datamodel = "[HouseAspiration.GetLevels]" - spacing = 2 - parentanchor = bottom|hcenter - ignoreinvisible = yes - - item = { - icon_placeholder = { - size = { 12 12 } - visible = "[LessThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, DynastyHouse.GetHouseAspirationLevelIndex )]" - } - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/window_find_title.gui b/N3OW/gui/window_find_title.gui deleted file mode 100644 index faceb62f..00000000 --- a/N3OW/gui/window_find_title.gui +++ /dev/null @@ -1,94 +0,0 @@ -window = { - name = "find_title_view" - size = { 450 700 } - parentanchor = top|right - position = { -80 130 } - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - using = Animation_ShowHide_Standard - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "FIND_TITLE" - } - - blockoverride "button_close" - { - onclick = "[FindTitleView.Close]" - } - } - - editbox_search_field = { - layoutpolicy_horizontal = expanding - margin_left = 15 - margin_right = 20 - margin_bottom = 6 - - blockoverride "editbox_properties" - { - name = "input" - onreturnpressed = "[FindTitleView.OnDone]" - ontextedited = "[FindTitleView.OnEdit]" - } - } - - scrollbox = { - name = "title_grid" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[FindTitleView.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "title_button" - layoutpolicy_horizontal = expanding - size = { 0 50 } - - onclick = "[ToggleOnCoatOfArmsClick(Title.GetID)]" - onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - button_ignore = none - down = "[Title.IsShownInTitleView]" - text_single = { - visible = "[Title.GetHolder.IsValid]" - text = "[Title.GetNameNoTooltip]" - parentanchor = vcenter|left - position = {50 0 } - default_format = "#high" - } - - text_single = { - visible = "[Not(Title.GetHolder.IsValid)]" - text = "[Title.GetNameNoTooltip]" - parentanchor = vcenter|left - position = {50 0 } - default_format = "#low" - } - - coa_title_tiny_crown = { - parentanchor = vcenter - position = {5 -1 } - } - } - - - } - } - } - } - } -} - diff --git a/N3OW/gui/window_find_vassal.gui b/N3OW/gui/window_find_vassal.gui deleted file mode 100644 index 5b055465..00000000 --- a/N3OW/gui/window_find_vassal.gui +++ /dev/null @@ -1,256 +0,0 @@ -window = { - name = "find_vassal_list_window" - layer = middle - allow_outside = yes - - using = title_view_window_side_pop_out - # using = Window_Position_CharacterList - using = Window_Movable - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration - - datacontext = "[FindVassalListWindow.GetFindVassalList]" - - vbox = { - margin = { 40 20 } - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "FIND_VASSAL_HEADER" - } - - blockoverride "button_close" - { - onclick = "[FindVassalListWindow.Close]" - } - } - - hbox = { - visible = "[Or(FindVassalListWindow.GetTitle.IsBarony,FindVassalListWindow.GetTitle.IsCounty)]" - layoutpolicy_horizontal = expanding - spacing = 20 - margin = { 20 0 } - - button_standard_clean = { - name = "grant_to_same_culture_noble" - onclick = "[FindVassalListWindow.GetTitle.CreateHolderForTitle]" - onclick = "[FindVassalListWindow.Close]" - shortcut = "grant_to_same_culture_noble" - using = tooltip_se - tooltip = "[FindVassalListWindow.GetGrantVassalToSameCultureTooltip]" - - layoutpolicy_horizontal = expanding - size = { 200 140 } - max_width = 300 - - background = { - texture = "gfx/interface/illustrations/decisions/decision_recruitment.dds" - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - using = Background_Vignette_Button - - hbox = { - spacing = 3 - layoutpolicy_horizontal = expanding - vbox = { - layoutpolicy_vertical = expanding - expand = {} - margin = { 8 10 } - vbox = { - margin = { 7 3 } - background = { - using = Background_Area_Dark - } - text_single = { - min_width = 230 - max_width = 275 - layoutpolicy_horizontal = expanding - text = "GRANT_TO_SAME_CULTURE_NOBLE_HEADER" - default_format = "#clickable" - align = nobaseline - } - text_multi = { - min_width = 230 - max_width = 275 - layoutpolicy_horizontal = expanding - text = "GRANT_TO_SAME_CULTURE_NOBLE_INFO" - default_format = "#low" - align = nobaseline - } - } - } - expand = {} - } - } - - button_standard_clean = { - name = "grant_to_local_culture_noble" - visible = "[Not( ObjectsEqual( FindVassalListWindow.GetTitle.GetProvince.GetCulture, GetPlayer.GetCulture ) )]" - onclick = "[FindVassalListWindow.GetTitle.CreateLocalHolderForTitle]" - onclick = "[FindVassalListWindow.Close]" - shortcut = "grant_to_local_culture_noble" - using = tooltip_se - tooltip = "[FindVassalListWindow.GetTitle.GetAutoGrantTitleToLocalRulerDesc]" - - layoutpolicy_horizontal = expanding - size = { 200 140 } - max_width = 300 - - background = { - texture = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" - alpha = 0.7 - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - using = Background_Vignette_Button - - hbox = { - spacing = 3 - layoutpolicy_horizontal = expanding - vbox = { - layoutpolicy_vertical = expanding - expand = {} - margin = { 8 10 } - vbox = { - margin = { 7 3 } - background = { - using = Background_Area_Dark - } - text_single = { - min_width = 230 - max_width = 275 - layoutpolicy_horizontal = expanding - text = "GRANT_TO_LOCAL_CULTURE_NOBLE_HEADER" - default_format = "#clickable" - align = nobaseline - } - text_multi = { - min_width = 230 - max_width = 275 - layoutpolicy_horizontal = expanding - text = "GRANT_TO_LOCAL_CULTURE_NOBLE_INFO" - default_format = "#low" - align = nobaseline - } - } - } - expand = {} - } - } - } - - text_single = { - visible = "[Or(FindVassalListWindow.GetTitle.IsBarony,FindVassalListWindow.GetTitle.IsCounty)]" - text = grant_title_info_text - default_format = "#I" - } - - vbox_character_list = { - name = "find_vassal_list" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - - - blockoverride "container_implementation" - { - fixedgridbox = { - addcolumn = 650 - addrow = 110 - - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item = { - size = { 630 110 } - text_single = { - name = "debug_relevance_score" - raw_text = "Relevance: [FindVassalListWindow.GetRelevance( CharacterListItem.Self )]" - default_format = "D" - visible = "[InDebugMode]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[FindVassalListWindow.GetRelevanceBreakdown( CharacterListItem.GetCharacter )]" - } - } - } - } - } - } - blockoverride "scrollbox_empty_visibility" - { - visible = "[Not(CharacterSelectionList.HasItems)]" - layoutpolicy_vertical = expanding - text = "CHARACTER_FINDER_NO_MATCH" - } - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('relation_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('claim_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_ghw.gui b/N3OW/gui/window_ghw.gui deleted file mode 100644 index 534288d9..00000000 --- a/N3OW/gui/window_ghw.gui +++ /dev/null @@ -1,1701 +0,0 @@ -window = { - name = "great_holy_war_window" - parentanchor = center - datacontext = "[GreatHolyWarWindow.GetGreatHolyWar]" - datacontext = "[GetVariableSystem]" - size = { 680 890 } - layer = middle - - background = { - texture = "gfx/interface/window_war_ghw/tile_bg_shield.dds" - spriteType = Corneredtiled - spriteborder = { 730 10 } - spriteborder_bottom = 287 - margin = { -23 -17 } - margin_bottom = 50 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'ghw_view', 'main_view' )]" - on_start = "[GetVariableSystem.Set( 'ghw_tab', 'attackers' )]" - - on_start = "[PdxGuiTriggerAllAnimations('ghw_bar_flash')]" - - position_y = 25 - start_sound = { - soundeffect = "event:/SFX/UI/War/sfx_ui_window_great_holy_war_show" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = -25 - start_sound = { - soundeffect = "event:/SFX/UI/War/sfx_ui_window_great_holy_war_hide" - } - } - - vbox = { - margin_top = 17 - using = Window_Margins - - widget = { - size = { 100 56 } - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/window_war_ghw/tile_big_top_02.dds" - spriteborder = { 310 0 } - margin_bottom = 5 - - fittype = centercrop - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_title_big_top.dds" - spriteType = Corneredtiled - spriteborder = { 160 0 } - blend_mode = alphamultiply - alpha = 0.5 - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_title_big_top.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - buttons_window_control = { - parentanchor = top|right - - blockoverride "button_close" - { - onclick = "[GreatHolyWarWindow.Close]" - - } - } - - text_single = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 5 } - - text = "GREAT_HOLY_WAR_WINDOW_TITLE" - - maximumsize = { 400 -1 } - - using = Font_Type_Flavor - using = Font_Size_Big - } - } - - vbox = { - name = "main_content" - visible = "[GetVariableSystem.HasValue( 'ghw_view', 'main_view' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - vbox = { - name = "attacker_and_target" - layoutpolicy_horizontal = expanding - datacontext = "[GreatHolyWar.GetFaith.GetReligiousHead]" - datacontext = "[GetIllustration( 'character_view_bg' )]" - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - background = { - margin = { 25 0 } - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - alpha = 0.7 - spriteType = corneredTiled - texture_density = 2 - spriteborder = { 40 0 } - } - - text_single = { - name = "ghw_concept" - text = "GHW_CONCEPT" - } - } - - hbox = { - - widget = { - name = "holy_glow" - icon = { - parentanchor = left - position = { -24 0 } - size = { 600 260 } - - texture = "gfx/interface/window_war_ghw/effect_glow_ghw.dds" - color = { 0.88 0.80 0.7 1 } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_masks/mask_clouds_solid.dds" - blend_mode = colordodge - spriteType = corneredTiled - rotate_uv = 0 - } - - state = { - trigger_on_create = yes - name = a - next = b - duration = 0 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 0 } - alpha = 0.1 - rotate_uv = 0 - } - } - - state = { - name = b - next = c - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { 0.1 0 } - alpha = 0.3 - rotate_uv = -180 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 0 0 } - alpha = 0.5 - rotate_uv = -180 - } - } - - state = { - name = c - next = d - duration = 10 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0.1 - rotate_uv = -360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 0 } - alpha = 0.1 - rotate_uv = -360 - } - } - - state = { - name = d - next = e - duration = 1.5 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0 - rotate_uv = -360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 0 } - alpha = 0.1 - rotate_uv = -360 - } - } - - state = { - name = e - next = a - duration = 0 - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -1 0 } - alpha = 0.1 - rotate_uv = 0 - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 5 - margin_top = 10 - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - margin = { 45 5 } - margin_left = 25 - - alpha = 0.7 - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges_down_right.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 2 - } - - using = Mask_Rough_Edges - - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - spacer = { - size = { 10 0} - } - - portrait_torso = { - name = "designated_winner_portrait" - - blockoverride "opinion_box" {} - - } - - text_single = { - name = "designated_winner_label" - - text = "[head_of_faith|E]" - align = nobaseline - } - - button_standard_select_arrow = { - name = "see_participants" - onclick = "[GetVariableSystem.Set( 'ghw_view', 'tab_view' )]" - onclick = "[GetVariableSystem.Set( 'ghw_tab', 'attackers' )]" - - blockoverride "button_text" { - text = "GHW_TAB_ATTACKERS" - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 35 - spacing = 10 - - hbox = { - name = "versus" - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - margin_top = 35 - - button_religion_icon = { - datacontext = "[GreatHolyWar.GetFaith]" - } - } - - coa_title_medium_crown = { - name = "target_title" - datacontext = "[GreatHolyWar.GetTargetTitle]" - } - - vbox = { - margin_top = 35 - - button_religion_icon = { - datacontext = "[GreatHolyWar.GetTargetCharacter.GetFaith]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - name = "launch_date_text" - visible = "[Not( GreatHolyWar.HasWarStarted )]" - text = "GHW_TIME_TO_LAUNCH_IN_WINDOW" - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_bottom = 5 - margin_top = 10 - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - margin = { 45 5 } - margin_right = 25 - - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges_down_right.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - blend_mode = alphamultiply - texture_density = 2 - } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - spacer = { - size = { 10 0} - } - - portrait_torso = { - name = "target_character_portrait" - datacontext = "[GreatHolyWar.GetTargetCharacter]" - - blockoverride "opinion_box" {} - } - - text_single = { - name = "target_character_label" - - text = "GHW_TARGET_CHARACTER" - align = nobaseline - } - - button_standard_select_arrow = { - name = "see_participants" - onclick = "[GetVariableSystem.Set( 'ghw_view', 'tab_view' )]" - onclick = "[GetVariableSystem.Set( 'ghw_tab', 'defenders' )]" - - blockoverride "button_text" { - text = "GHW_TAB_DEFENDERS" - } - } - } - } - } - - vbox = { - name = "center_area" - layoutpolicy_horizontal = expanding - margin_top = 10 - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - name = "pre_war_relative_strength" - # visible = "[Not(GreatHolyWar.HasWarStarted)]" - - text_single = { - name = "relative_military_strength" - text = "GHW_RELATIVE_STRENGTH" - } - - background = { - using = Background_Area - margin = { -8 5 } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 10 - - tooltip = "GHW_TT_ATTACKERS_VS_DEFENDERS" - - hbox = { - spacing = 15 - - hbox = { - spacing = 5 - - icon = { - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 25 25 } - } - - text_single = { - name = "attackers_label" - align = nobaseline - text = "[GreatHolyWar.GetAttackerStrength]" - } - } - - #### PROGRESSBAR #### - widget = { - # Size's x-value needs to match the last parameter for GetProgressBarValueMaxScaled and GetProgressBarValueMaxOtherScaled - size = { 350 25 } - - widget = { - size = { 100% 100% } - scissor = yes - - hbox = { - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( GreatHolyWar.GetStrengthProgress, '(float)100', '(int32)350' )]" - - #### LEFT #### - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/progress_ghw.dds" - - spriteType = Corneredtiled - texture_density = 2 - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/gold.dds" - alpha = 0 - } - - state = { - trigger_on_create = yes - name = "ghw_bar_flash" - next = a - duration = 0.0 - delay = 0.1 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { 1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.1 - } - } - - state = { - name = a - duration = 0.75 - bezier = { 0.5 0.1 1 1} - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.4 - } - } - } - - icon = { - visible = "[GreaterThanOrEqualTo_float( GreatHolyWar.GetStrengthProgress, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = right|vcenter - position = { 20 0 } - - size = { 80 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - icon = { - visible = "[LessThan_float( GreatHolyWar.GetStrengthProgress, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = right|vcenter - position = { 5 0 } - - size = { 20 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - } - - #### RIGHT #### - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( GreatHolyWar.GetStrengthProgress, '(float)100', '(int32)350' )]" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/war_progress_red.dds" - spriteType = Corneredtiled - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/gold.dds" - alpha = 0 - } - - state = { - trigger_on_create = yes - name = start - next = a - delay = 0.1 - duration = 0.0 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.1 - } - } - - state = { - name = a - duration = 0.75 - bezier = { 0.5 0.1 1 1} - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { 1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.4 - } - } - } - - icon = { - visible = "[LessThan_float( GreatHolyWar.GetStrengthProgress, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = left|vcenter - position = { -20 0 } - mirror = horizontal - size = { 80 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - icon = { - visible = "[GreaterThanOrEqualTo_float( GreatHolyWar.GetStrengthProgress, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = left|vcenter - position = { -5 0 } - mirror = horizontal - size = { 20 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - } - } - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/progress_frame_war.dds" - spriteType = Corneredstretched - spriteborder = { 10 10 } - margin = { 5 4 } - } - } - } - - hbox = { - spacing = 5 - - text_single = { - name = "defenders_label" - text = "[GreatHolyWar.GetDefenderStrength]" - align = nobaseline - } - icon = { - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 25 25 } - } - } - } - } - } - } - - vbox = { - name = "info_and_war_chest" - layoutpolicy_horizontal = expanding - - vbox = { - name = "pledge_info" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - name = "not_pledged_attacker" - margin = { 0 10 } - datacontext = "[GetScriptedGui( 'can_pledge_as_attacker' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - min_width = 500 - max_width = 500 - autoresize = yes - - text = "GHW_NOT_ATTACKER_PLEDGED" - } - - text_multi = { - name = "not_pledged_defender" - margin = { 0 10 } - datacontext = "[GetScriptedGui( 'can_pledge_as_defender' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - min_width = 500 - max_width = 500 - autoresize = yes - - text = "GHW_NOT_DEFENDER_PLEDGED" - } - - text_multi = { - name = "pledged_defender" - margin = { 0 10 } - visible = "[GreatHolyWar.IsPledgedDefender( GetPlayer )]" - min_width = 500 - max_width = 500 - autoresize = yes - - text = "GHW_PLEDGED" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[GreatHolyWar.IsPledgedAttacker( GetPlayer )]" - max_width = 504 - margin_top = 5 - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - alpha = 0.7 - texture_density = 2 - } - - text_single = { - text = "GHW_MY_BENEFICIARY" - } - } - - hbox = { - name = "pledged_attacker" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - portrait_head = { - name = "beneficiary_portrait" - datacontext = "[GetPlayer.GetBeneficiary]" - visible = "[GetPlayer.GetBeneficiary.IsValid]" - - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - blockoverride "onclick" { - - enabled = "[GreatHolyWarWindow.HasPotentialBeneficiary]" - onclick = "[OpenCharacterInteraction( 'select_ghw_beneficiary_interaction', GetPlayer )]" - tooltip = "SELECT_GHW_BENEFICIARY" - - } - } - - vbox = { - spacing = 2 - margin_left = 5 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - text_single = { - visible = "[GetPlayer.GetBeneficiary.IsValid]" - layoutpolicy_horizontal = expanding - text = "[GetPlayer.GetBeneficiary.GetFullName]" - autoresize = no - margin_right = 5 - } - - hbox = { - datacontext = "[GetScriptedGui( 'toggle_great_holy_war_beneficiary_stance' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_checkbox = { - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetOverrideCandidateTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "GHW_TOGGLE_BENEFICIARY" - max_width = 260 - autoresize = yes - } - - expand = {} - } - - spacer = { - visible = "[GetPlayer.GetBeneficiary.IsValid]" - size = { 10 5 } - } - - hbox = { - visible = "[GetPlayer.GetBeneficiary.IsValid]" - layoutpolicy_horizontal = expanding - - button_standard = { - name = "change_beneficiary" - size = { 150 30 } - enabled = "[GreatHolyWarWindow.HasPotentialBeneficiary]" - onclick = "[OpenCharacterInteraction( 'select_ghw_beneficiary_interaction', GetPlayer )]" - tooltip = "SELECT_GHW_BENEFICIARY" - text = "GHW_CHANGE_BENEFICIARY" - - button_change = { - alwaystransparent = yes - parentanchor = right|vcenter - position = { -5 0 } - size = { 25 25 } - } - } - - expand = {} - } - - vbox = { - visible = "[Not(GetPlayer.GetBeneficiary.IsValid)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 116 } - margin_bottom = 35 - - button_standard = { - name = "change_beneficiary" - size = { 150 30 } - onclick = "[OpenCharacterInteraction( 'select_ghw_beneficiary_interaction', GetPlayer )]" - tooltip = "SELECT_GHW_BENEFICIARY" - text = "GHW_CHANGE_BENEFICIARY" - - button_icon = { - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - - expand = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - max_width = 504 - - widget = { - name = "war_chest" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 50% 149 } - max_width = 252 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not( GreatHolyWar.IsDirectedGhw )]" - - background = { - using = Background_Area - } - - background = { - name = "illustration" - size = { 130 116 } - - texture = "gfx/interface/illustrations/ghw/ghw_chest.dds" - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - hbox = { - name = "heading" - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - alpha = 0.7 - texture_density = 2 - } - - text_single = { - name = "war_chest_label" - text = "GHW_WAR_CHEST_LABEL" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - expand = {} - - vbox = { - margin = { 20 0 } - margin_bottom = 10 - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[GreatHolyWarWindow]" - datacontext = "[GreatHolyWar]" - tooltip = "GHW_WAR_CHEST_PIETY_TOOLTIP" - - expand = {} - - icon = { - name = "piety_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPietyLevelTexture]" - } - - text_single = { - name = "war_chest_piety" - text = "[GreatHolyWar.GetWarChestPiety|0V]" - align = nobaseline - } - - text_single = { - name = "war_chest_piety_player" - visible = "[And( GreatHolyWar.HasWarStarted, Or( GreatHolyWar.IsPledgedAttacker( GetPlayer ), GreatHolyWar.IsPledgedDefender( GetPlayer ) ) )]" - raw_text = " ([GreatHolyWarWindow.GetPietyForCharacter( GetPlayer )|V])" - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[GreatHolyWarWindow]" - datacontext = "[GreatHolyWar]" - tooltip = "GHW_WAR_CHEST_PRESTIGE_TOOLTIP" - - expand = {} - - icon = { - name = "prestige_icon" - size = { 30 30 } - texture = "[GetPlayer.GetPrestigeLevelTexture]" - } - - text_single = { - name = "war_chest_prestige" - text = "[GreatHolyWar.GetWarChestPrestige|0V]" - align = nobaseline - } - - text_single = { - name = "war_chest_prestige_player" - visible = "[And( GreatHolyWar.HasWarStarted, Or( GreatHolyWar.IsPledgedAttacker( GetPlayer ), GreatHolyWar.IsPledgedDefender( GetPlayer ) ) )]" - raw_text = " ([GreatHolyWarWindow.GetPrestigeForCharacter( GetPlayer )|V])" - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - datacontext = "[GreatHolyWarWindow]" - datacontext = "[GreatHolyWar]" - tooltip = "GHW_WAR_CHEST_GOLD_TOOLTIP" - - expand = {} - - icon = { - name = "gold_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - name = "war_chest_gold" - text = "[GreatHolyWar.GetWarChestGold|0V]" - align = nobaseline - } - - text_single = { - name = "war_chest_gold_player" - visible = "[And( GreatHolyWar.HasWarStarted, Or( GreatHolyWar.IsPledgedAttacker( GetPlayer ), GreatHolyWar.IsPledgedDefender( GetPlayer ) ) )]" - raw_text = " ([GreatHolyWarWindow.GetGoldForCharacter( GetPlayer )|V])" - align = nobaseline - } - } - } - } - } - } - - widget = { - name = "contribution" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 50% 149 } - visible = "[GreatHolyWar.HasWarStarted]" - - vbox = { - background = { - using = Background_Area - } - - hbox = { - name = "heading" - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - alpha = 0.7 - texture_density = 2 - } - - text_single = { - text = "GHW_MY_CONTRIBUTION" - } - } - - vbox = { - name = "values" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - ignoreinvisible = yes - margin = { 0 10 } - spacing = 5 - - hbox = { - name = "share" - spacing = 1 - minimumsize = { 0 25 } - visible = "[Not(GreatHolyWar.IsDirectedGhw)]" - - tooltip = "GHW_MY_SHARE_TT" - - # animation_attention_text = { - # size = { 100 30 } - # # visible = "[GreatHolyWarWindow.IsCharacterMaxScoreReached( GetPlayer )]" - # } - - text_single = { - text = "GHW_WARCHEST_SHARE" - } - - text_single = { - raw_text = ": " - } - - text_single = { - name = "my_percentage" - text = "[GreatHolyWarWindow.GetScore( GetPlayer ).GetScorePercent|0V/%]" - } - } - - hbox = { - name = "rank" - spacing = 1 - minimumsize = { 0 25 } - visible = "[GreatHolyWar.IsPledgedAttacker( GetPlayer )]" - - tooltip = "GHW_MY_RANK_TT" - - text_single = { - text = "GHW_MY_RANK" - } - - text_single = { - raw_text = ": " - } - - text_single = { - text = "[GreatHolyWarWindow.GetRankForCharacter( GetPlayer )]" - # animation_attention_text = { - # size = { 100 30 } - # visible = "[EqualTo_int32( GreatHolyWar.CalculateContributionRank( GetPlayer ), '(int32)0' )]" - # } - } - } - - hbox = { - name = "score" - spacing = 1 - minimumsize = { 0 25 } - - visible = "[GreatHolyWar.HasWarStarted]" - tooltip = "GHW_MY_SCORE_TT" - - text_single = { - text = "GHW_SCORE" - } - - text_single = { - raw_text = ": " - } - - text_single = { - name = "score" - text = "[GreatHolyWarWindow.GetScore( GetPlayer ).GetScore|0V]" - } - } - - expand = {} - } - } - } - } - } - } - - vbox = { - name = "actions" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - datacontext = "[GetScriptedGui( 'not_pledged_not_donated_tooltip' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "GHW_TITLE_NOT_PLEDGED" - max_width = 400 - } - - text_single = { - datacontext = "[GetScriptedGui( 'not_pledged_donated_tooltip' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "GHW_TITLE_NOT_PLEDGED_DONATED" - max_width = 400 - } - } - - hbox = { - name = "buttons" - spacing = 10 - - button_standard = { - name = "toggle_pledge" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'toggle_great_holy_war_pledge' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetPledgeTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[GreatHolyWarWindow.PledgeToGreatHolyWar( ScriptedGui.Self, GreatHolyWarWindow.GetScope )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "[SelectLocalization(GreatHolyWar.IsPledgedAttacker( GetPlayer ), 'GHW_WITHDRAW', 'GHW_PLEDGE')]" - } - - button_standard = { - name = "directed_pledge" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'join_great_holy_war_directed' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetPledgeTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "[SelectLocalization(GreatHolyWar.IsPledgedAttacker( GetPlayer ), 'GHW_WITHDRAW', 'GHW_PLEDGE')]" - } - - button_standard = { - name = "great_holy_war_give_gold" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'great_holy_war_give_gold' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetGiveGoldTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - visible = "[And(Not(GreatHolyWar.IsPledgedAttacker( GetPlayer )), ScriptedGui.IsShown( GreatHolyWarWindow.GetScope ))]" - - text = "GHW_GIVE_GOLD" - } - - button_standard = { - name = "toggle_defense_pledge" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'toggle_great_holy_war_pledge_defense' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetPledgeTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "[SelectLocalization(GreatHolyWar.IsPledgedDefender( GetPlayer ), 'GHW_WITHDRAW', 'GHW_PLEDGE')]" - } - - button_standard = { - name = "directed_defense_pledge" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'join_great_holy_war_directed_defense' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetPledgeTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - text = "[SelectLocalization(GreatHolyWar.IsPledgedDefender( GetPlayer ), 'GHW_WITHDRAW', 'GHW_PLEDGE')]" - } - - button_standard = { - name = "change_target" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'change_target' )]" - visible = "[ScriptedGui.IsShown( GreatHolyWarWindow.GetScope )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[SelectLocalization(ScriptedGui.IsValid(GreatHolyWarWindow.GetScope), 'GHW_CHANGE_TARGET_TT', 'GHW_PLEDGE_FIRST_TT')]" - onclick = "[GreatHolyWarWindow.ChangeTarget]" - text = "GHW_CHANGE_TARGET" - } - } - - spacer = { - size = { 2 1 } - } - - button_primary = { - name = "great_holy_war_give_gold" - size = { 200 30 } - datacontext = "[GetScriptedGui( 'great_holy_war_give_gold' )]" - enabled = "[ScriptedGui.IsValid( GreatHolyWarWindow.GetScope )]" - tooltip = "[GreatHolyWarWindow.GetGiveGoldTooltip(ScriptedGui.Self, GreatHolyWarWindow.GetScope)]" - onclick = "[ScriptedGui.Execute( GreatHolyWarWindow.GetScope )]" - visible = "[And(GreatHolyWar.IsPledgedAttacker( GetPlayer ), ScriptedGui.IsShown( GreatHolyWarWindow.GetScope ))]" - text = "GHW_GIVE_GOLD" - } - } - - expand = {} - } - - expand = {} - - vbox = { - name = "tabs" - visible = "[GetVariableSystem.HasValue( 'ghw_view', 'tab_view' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 600 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'ghw_tab', 'attackers' )]" - down = "[GetVariableSystem.HasValue( 'ghw_tab', 'attackers' )]" - - text = "GHW_TAB_ATTACKERS" - } - - button_tab = { - name = "tab_defenders" - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'ghw_tab', 'defenders' )]" - down = "[GetVariableSystem.HasValue( 'ghw_tab', 'defenders' )]" - - text = "GHW_TAB_DEFENDERS" - } - } - } - - scrollbox = { - name = "tab_attackers" - visible = "[GetVariableSystem.HasValue( 'ghw_tab', 'attackers' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 580 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "attackers" - datamodel = "[GreatHolyWar.GetPledgedAttackers]" - datacontext = "[GreatHolyWarWindow]" - layoutpolicy_horizontal = expanding - - item = { - - hbox = { - name = "faith_list_item" - datacontext = "[GreatHolyWarParticipant.GetParticipant]" - layoutpolicy_horizontal = expanding - using = tooltip_nw - size = { 0 110 } - - background = { - using = Background_Area_Dark - alpha = 0.3 - } - - vbox = { - name = "rank_and_total_score" - visible = "[And(GreatHolyWar.HasWarStarted, GreatHolyWarWindow.CanHaveScore( Character.Self ))]" - min_width = 100 - max_width = 100 - - text_single = { - datacontext = "[Character]" - text = "[GreatHolyWarWindow.GetRankForCharacter( Character.Self )]" - tooltip = "GHW_RANK_TT" - } - - text_single = { - datacontext = "[Character]" - text = "[GreatHolyWarWindow.GetScore( Character.Self ).GetScorePercent|0V%/]" - tooltip = "GHW_SCORE_TT" - } - - text_single = { - name = "score" - text = "[GreatHolyWarWindow.GetScore( Character.Self ).GetScore|0V]" - tooltip = "GHW_MY_SCORE_OTHER_TT" - } - } - - vbox = { - name = "no_score" - visible = "[And(GreatHolyWar.HasWarStarted, Not(GreatHolyWarWindow.CanHaveScore( Character.Self )))]" - min_width = 100 - max_width = 100 - - text_single = { - datacontext = "[Character]" - text = "GHW_NO_SCORE" - tooltip = "GHW_NO_SCORE_TT" - } - } - - portrait_head = { - using = tooltip_ws - - blockoverride "opinion_box" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "name_and_info" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 3 - ignoreinvisible = yes - - text_single = { - visible = "[Not(Character.IsLocalPlayer)]" - text = "[Character.GetUINameNoTooltip|U]" - tooltip = "[Character.GetUINameNoTooltip|U]" - autoresize = no - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - } - - text_single = { - visible = "[Character.IsLocalPlayer]" - text = "THIS_IS_YOU_STATIC" - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - } - - text_single = { - name = "beneficiary" - visible = "[Character.GetBeneficiary.IsValid]" - text = "GHW_BENEFICIARY" - autoresize = no - layoutpolicy_horizontal = expanding - align = nobaseline - } - - text_single = { - name = "no_beneficiary" - visible = "[Not(Character.GetBeneficiary.IsValid)]" - text = "GHW_NO_BENEFICIARY" - layoutpolicy_horizontal = expanding - align = nobaseline - } - - text_single = { - text = "GHW_MILITARY_STRENGTH" - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox_soldiers_and_quality_small = { - datacontext = "[GreatHolyWarWindow.GetArmyComposition( Character.Self )]" - } - expand = {} - } - } - - expand = {} - } - } - } - } - } - } - - scrollbox = { - visible = "[GetVariableSystem.HasValue( 'ghw_tab', 'defenders' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 580 } - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "holy_sites" - datamodel = "[GreatHolyWar.GetPledgedDefenders]" - datacontext = "[GreatHolyWarWindow]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - name = "faith_list_item" - datacontext = "[GreatHolyWarParticipant.GetParticipant]" - layoutpolicy_horizontal = expanding - using = tooltip_nw - size = { 0 110 } - - background = { - using = Background_Area_Dark - alpha = 0.3 - } - - vbox = { - name = "rank_and_total_score" - visible = "[GreatHolyWar.HasWarStarted]" - layoutpolicy_horizontal = expanding - min_width = 100 - max_width = 100 - - text_single = { - datacontext = "[Character]" - text = "[GreatHolyWarWindow.GetScore( Character.Self ).GetScorePercent|0V%/]" - tooltip = "GHW_SCORE_TT" - } - - text_single = { - name = "score" - text = "[GreatHolyWarWindow.GetScore( Character.Self ).GetScore|0V]" - tooltip = "GHW_MY_SCORE_OTHER_TT" - } - } - - portrait_head = { - using = tooltip_ws - - blockoverride "opinion_box" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - name = "name_and_info" - spacing = 3 - - text_single = { - text = "[Character.GetUINameNoTooltip|U]" - tooltip = "[Character.GetUINameNoTooltip|U]" - using = Font_Size_Medium - autoresize = no - layoutpolicy_horizontal = expanding - } - - spacer = { - size = { 10 20 } - } - - text_single = { - text = "GHW_MILITARY_STRENGTH" - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox_soldiers_and_quality_small = { - datacontext = "[GreatHolyWarWindow.GetArmyComposition( Character.Self )]" - } - expand = {} - } - - expand = {} - - } - - expand = {} - } - } - } - } - } - } - - hbox = { - visible = "[GetVariableSystem.HasValue( 'ghw_view', 'tab_view' )]" - name = "buttons" - spacing = 10 - margin = { 10 10 } - - button_standard_back = { - name = "back" - onclick = "[GetVariableSystem.Set( 'ghw_view', 'main_view' )]" - } - } - expand = {} - - } - } - - widget = { - size = { 100% 100% } - position = { 0 20 } - parentanchor = top|hcenter - - icon = { - size = { 668 80 } - - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - texture = "gfx/interface/window_war/tile_frame_top_ghw_2.dds" - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - } -} diff --git a/N3OW/gui/window_ghw_change_target.gui b/N3OW/gui/window_ghw_change_target.gui deleted file mode 100644 index 3f919ca4..00000000 --- a/N3OW/gui/window_ghw_change_target.gui +++ /dev/null @@ -1,167 +0,0 @@ -###################################################### -################# REDIRECT GHW TARGET ################ -###################################################### - -window= { - name = "change_ghw_target_window" - parentanchor = top|right - position = { -15 90 } - size = { 550 940 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CHANGE_GHW_TARGET_HEADER" - } - - blockoverride "button_close" - { - onclick = "[ChangeGHWTargetWindow.Close]" - } - } - - scrollbox = { - name = "titles_scroll_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_empty" - { - text = "LEASE_OUT_BARONIES_NO_TITLES" - visible = "[IsDataModelEmpty(ChangeGHWTargetWindow.GetTitles)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "titles_grid" - datamodel = "[ChangeGHWTargetWindow.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - widget = { - name = "title_button" - layoutpolicy_horizontal = expanding - size = { 0 150 } - - background = { - using = Background_Area - margin = { 0 0 } - } - - hbox = { - set_parent_size_to_minimum = yes - - widget = { - layoutpolicy_vertical = expanding - size = {100 0} - - coa_title_medium_crown = { - datacontext = "[ChangeGHWTargetWindowTitleItem.GetTitle]" - parentanchor = center - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 340 25 } - - text_single = { - name = "text" - text = "[ChangeGHWTargetWindowTitleItem.GetTitle.GetNameNoTooltip]" - default_format = "#high" - using = Font_Size_Medium - } - } - - text_single = { - name = "defenders_label" - layoutpolicy_horizontal = expanding - text = "CHANGE_GHW_TARGET_DEFENDERS" - } - - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - fixedgridbox = { - name = "defenders_titles" - addcolumn = 36 - addrow = 48 - datamodel = "[ChangeGHWTargetWindowTitleItem.GetDefenders]" - datamodel_wrap = 9 - flipdirection = yes - - item = { - coa_realm_tiny_crown = { - using = tooltip_ne - } - } - } - - expand = {} - } - spacer = { - size = { 0 6 } - } - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_standard = { - text = "SELECT" - onclick = "[ChangeGHWTargetWindowTitleItem.OnClick]" - down = "[ChangeGHWTargetWindowTitleItem.IsSelected]" - - highlight_icon = { - texture = "gfx/interface/icons/symbols/icon_check.dds" - visible = "[ChangeGHWTargetWindowTitleItem.IsSelected]" - size = { 30 30 } - } - } - } - } - } - } - } - } - } - } - - ### SEND OFFER BUTTON - vbox = { - margin = { 0 15 } - spacing = 8 - text_single = { - name = "cost" - text = "CHANGE_GHW_TARGET_COST" - using = Font_Size_Medium - tooltip = "CHANGE_GHW_TARGET_COST_TOOLTIP" - } - - button_primary_big = { - name = "confirm_button" - text = "CHANGE_GHW_TARGET_CONFIRM" - onclick = "[ChangeGHWTargetWindow.OnConfirm]" - enabled = "[ChangeGHWTargetWindow.CanConfirm]" - tooltip = "[ChangeGHWTargetWindow.CanConfirmDesc]" - } - } - } -} diff --git a/N3OW/gui/window_government_administration.gui b/N3OW/gui/window_government_administration.gui deleted file mode 100644 index 79925cca..00000000 --- a/N3OW/gui/window_government_administration.gui +++ /dev/null @@ -1,4136 +0,0 @@ -window = { - name = "government_administration_window" - widgetid = "government_administration_window" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - visible = "[And( IsGameViewOpen('government_administration'), IsDefaultGUIMode )]" - - using = Window_Size_MainTab - - datacontext = "[GovernmentAdministrationWindow.GetMeritPoolCharacterWindow]" - datacontext = "[GovernmentAdministrationWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.ListenFor( 'administration_tabs' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - using = Expand_Admin_Themes - on_start = "[SetMapMode( 'admin_vassal_types_map' )]" - - on_start = "[PdxGuiTabs.RemoveTab( 'family' )]" - on_start = "[PdxGuiTabs.AddTabIf( 'family', Not( Character.GetGovernment.HasGovernmentFlag( 'government_is_japan_feudal' ) ) )]" # Referenced in Code, don't rename` - - on_start = "[PdxGuiTabs.RemoveTab( 'families' )]" - on_start = "[PdxGuiTabs.AddTab( 'families' )]" - - on_start = "[PdxGuiTabs.RemoveTab( 'themes' )]" - on_start = "[PdxGuiTabs.AddTabIf( 'themes', Character.GetGovernment.HasRule( 'administrative' ) )]" - - on_start = "[GetVariableSystem.Clear( 'show_prominent_appointment' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - on_start = "[SetMapMode( 'realms' )]" - on_start = "[MeritPoolWindow.Close]" - } - - vbox = { - margin_left = 40 - margin_right = 53 - margin_top = 44 - margin_bottom = 20 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ADMINISTRATIVE_GOVERNMENT_HEADER" - } - - blockoverride "button_close" - { - onclick = "[GovernmentAdministrationWindow.Close]" - } - } - - hbox_tab_buttons = { - name = "administration_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'administraction_tab' )]" - } - - blockoverride "on_click" - { - onclick = "[CloseGameView( 'admin_vassal_detail_view' )]" - onclick = "[GetVariableSystem.Clear( 'show_prominent_appointment' )]" - } - } - - vbox = { - name = "your_family" - widgetid = "your_family" - datacontext = "[GovernmentAdministrationWindow.GetPlayerHouse]" - visible = "[PdxGuiTabs.IsTabSet( 'family' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 10 - margin_bottom = 15 - - vbox_your_family_tab = { - visible = "[Not( GetVariableSystem.Exists( 'show_prominent_appointment' ) )]" - } - - widget_your_family_appointments = { - visible = "[GetVariableSystem.Exists( 'show_prominent_appointment' )]" - } - } - - vbox = { - name = "themes" - visible = "[PdxGuiTabs.IsTabSet( 'themes' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 10 - margin_bottom = 20 - - state = { - name = _show - on_start = "[SetMapMode( 'admin_vassal_types_map' )]" - } - - state = { - name = _hide - on_start = "[SetMapMode( 'realms' )]" - } - - widget_header_state_faith = {} - - hbox_theme_sort_options = { - blockoverride "dropdown_properties" - { - datamodel = "[GovernmentAdministrationWindow.GetOrderOptions]" - onselectionchanged = "[GovernmentAdministrationWindow.SortThemes]" - selectedindex = "[GovernmentAdministrationWindow.GetSortSelectedIndex]" - } - - button_checkbox_label = { - onclick = "[GovernmentAdministrationWindow.ToggleGroupByHouse]" - blockoverride "checkbox" - { - checked = "[GovernmentAdministrationWindow.ShouldGroupByHouse]" - } - - blockoverride "text" - { - text = "ADMIN_WINDOW_THEME_GROUP_BY_HOUSE" - max_width = 170 - } - } - } - - scrollbox = { - name = "admin_panel_province_list" # tutorial uses this - widgetid = "admin_panel_province_list" # tutorial uses this - - size = { 560 0 } - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox_themes_list = { - name = "themes_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - } - - vbox = { - name = "powerful_families" - widgetid = "powerful_families" - visible = "[PdxGuiTabs.IsTabSet( 'families' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 5 - margin_bottom = 20 - - ### Top Liege - widget = { - size = { 560 140 } - - hbox = { - datacontext = "[GetIllustration( 'character_view_bg' )]" - spacing = 4 - margin = { 8 0 } - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - alpha = 0.3 - fittype = centercrop - margin = { 10 0 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - vbox_featured_family_portrait_big = { - name = "government_panel_figurehead_family" #reactive_advice_welcome_to_japan_step_emperor_and_regent uses this - datacontext = "[GovernmentAdministrationWindow.GetFigureheadTitle]" - datacontext = "[GovernmentAdministrationWindow.GetFigureheadTitle.GetHolder]" - visible = "[Title.IsValid]" - - background = { - using = Background_Area_Dark - alpha = 0.5 - - margin = { 4 4 } - } - - blockoverride "interactions_on_click" - { - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'ceremonial_liege')]" - - tooltip = "ADMIN_GOVERNMENT_CEREMONIAL_LIEGE_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'ceremonial_liege'))]" - } - - blockoverride "interaction_number_text" - { - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'ceremonial_liege')]" - } - - blockoverride "subtitle" - { - text = "[GetPlayer.Custom('GetCeremonialLiegeOrLiegeTitle')]" - } - } - - vbox_featured_family_portrait_big = { - name = "government_panel_defacto_ruling_family" #reactive_advice_welcome_to_japan_step_emperor_and_regent uses this - datacontext = "[GovernmentAdministrationWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - - blockoverride "interactions_on_click" - { - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'admin_liege')]" - - tooltip = "ADMIN_GOVERNMENT_LIEGE_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'admin_liege'))]" - } - - blockoverride "interaction_number_text" - { - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'admin_liege')]" - } - - blockoverride "subtitle" - { - text = "[GetPlayer.Custom('GetImperialFamilyType')]" - } - } - - expand = {} - } - } - - - scrollbox = { - size = { 560 0 } - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "family_groups_container" - - margin = { 0 4 } - - layoutpolicy_horizontal = expanding - - datamodel = "[GovernmentAdministrationWindow.GetFamilyGroups]" - - item = { - vbox_family_group_foldout = {} - } - } - } - } - } - } - - window_merit_pool_characters = { - datacontext = "[GovernmentAdministrationWindow.GetMeritPoolCharacterList]" - datacontext = "[GovernmentAdministrationWindow.GetSelectedAdminMeritPool]" - visible = "[MeritPoolWindow.IsVisible]" - } -} - -types GovernmentAdministrationThemes -{ - type widget_empty_governor_portrait = widget - { - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.5 - } - } - - button = { - size = { 100% 100% } - using = Placeholder_Inactive_Button - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('show')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('hide')]" - } - - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - } - - button_plus = { - alwaystransparent = yes - parentanchor = center - } - - widget = { - name = "highlight_frame" - size = { 100% 100% } - alwaystransparent = yes - alpha = 0 - - state = { - name = "show" - alpha = 1 - } - - state = { - name = "hide" - alpha = 0 - } - - background = { - size = { 100% 100% } - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - } - } - - type button_unassigned_county_item = button_standard_list - { - layoutpolicy_horizontal = expanding - - button_ignore = none - - raw_tooltip = "#X Not yet implemented button.#!" - default_format = "#X" - - background = { - using = Background_Area_Border - using = Background_Frame_Gold - } - - hbox = { - position = { 0 -5 } - margin = { 8 0 } - - coa_title_tiny_crown = { } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Title.GetNameNoTooltip]" - } - - expand = { } - - button_plus = { } - } - } - - type vbox_house_theme_list = vbox - { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - hbox = { - layoutpolicy_horizontal = expanding - - coa_house_tiny = { - visible = "[And(DynastyHouse.IsValid, GovernmentAdministrationWindow.ShouldGroupByHouse)]" - } - - button_expandable_toggle_field = { - layoutpolicy_horizontal = expanding - datacontext = "[AdministrativeHouseItem.GetHouse]" - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( AdministrativeHouseItem.GetGroupTitle )]" - } - - blockoverride "button_expand" - { - frame = "[BoolTo1And2( Not( GetVariableSystem.Exists( AdministrativeHouseItem.GetGroupTitle ) ) )]" - } - - blockoverride "text" - { - text = "[AdministrativeHouseItem.GetGroupTitle]" - } - } - } - - fixedgridbox = { - name = "assigned_themes_list" - visible = "[Not( GetVariableSystem.Exists( AdministrativeHouseItem.GetGroupTitle ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 525 - addrow = 95 - - datamodel = "[AdministrativeHouseItem.GetControlledThemes]" - - item = { - widget_theme_row_item = { - datacontext = "[AdministrativeTitleItem.GetTitle]" - visible = "[AdministrativeTitleItem.ShouldShowTitle]" - } - } - } - } - - type widget_theme_item_small_no_buttons = widget - { - block "outer_size" - { - size = { 80 80 } - } - allow_outside = yes - - widget = { - parentanchor = center - block "inner_size" - { - size = { 80 80 } - } - - icon = { - name = "crown" - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 2 } - - size = { 64% 40% } - - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - frame = "[Title.GetTierFrame]" - framesize = { 128 80 } - - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_theme_administration/admin_theme_coa_title.dds" - } - - icon = { - size = { 100% 100% } - parentanchor = top|hcenter - texture = "gfx/interface/window_theme_administration/admin_theme_coa_title.dds" - } - - coat_of_arms_icon = { - parentanchor = top|hcenter - size = { 100% 100% } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/window_theme_administration/admin_theme_mask.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 1 - - visible = "[Not(Title.GetHolder.IsValid)]" - } - } - - icon = { - parentanchor = top - size = { 100% 10 } - texture = "gfx/interface/window_theme_administration/admin_theme_coa_header.dds" - } - } - } - - type widget_theme_item_small = widget - { - block "outer_size" - { - size = { 80 80 } - } - allow_outside = yes - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('theme_glow').TriggerAnimation('appear')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('theme_glow').TriggerAnimation('disappear')]" - } - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_THEME_TT" - using = tooltip_ne - - button = { - name = "open_detail_button" - visible = "[And(Not( GetVariableSystem.Exists( 'admin_vassal_details_refresh' ) ), IsAdministrativeRuler(Title.GetHolder))]" - size = { 100% 100% } - - block "theme_item_onclick" - { - onclick = "[GetVariableSystem.Clear( 'AdminVassalDetailAppointment' )]" - onclick = "[ToggleAdminVassalDetailView( Title.Self )]" - down = "[IsAdminVassalDetailViewShown( Title.Self )]" - } - } - - button = { - name = "refresh_detail_button" - visible = "[And(GetVariableSystem.Exists( 'admin_vassal_details_refresh' ),IsAdministrativeRuler(Title.GetHolder))]" - size = { 100% 100% } - - onclick = "[PdxGuiTriggerAllAnimations('admin_vassal_details_refresh')]" - down = "[IsAdminVassalDetailViewShown( Title.Self )]" - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[ToggleAdminVassalDetailView( Title.Self )]" - } - } - - button = { - visible = "[Or( Not(Title.GetHolder.IsValid), And( And( Not( IsAdministrativeRuler( Title.GetHolder )), Not(Title.GetHolder.IsPlayerInteractionValid('demand_admin_interaction'))), Title.GetHolder.GetLiege.IsPlayer ) ) ]" - size = { 100% 100% } - onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" - } - - ### Makes a yellow border around your coa, should we have this? ### - - #background = { - #visible = "[Title.GetHolder.IsPlayer]" - #using = Background_Area_Border - #using = Background_Frame_Gold - #} - - widget = { - size = { 162 162} - parentanchor = center - - block "inner_size" - { - size = { 80 80 } - } - - block "crown" { - icon = { - name = "crown" - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 -2 } - - allow_outside = yes - - size = { 80% 56% } - - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - frame = "[Title.GetTierFrame]" - framesize = { 128 80 } - } - } - - icon = { - size = { 100% 100% } - parentanchor = top|hcenter - texture = "gfx/interface/window_theme_administration/admin_theme_coa_title.dds" - } - - coat_of_arms_icon = { #Dynasty - parentanchor = top|hcenter - size = { 100% 100% } - coat_of_arms = "[Title.GetTitleCoA.GetTexture('(int32)256','(int32)256')]" - coat_of_arms_slot = "[Title.GetTitleCoA.GetSlot('(int32)256','(int32)256')]" - coat_of_arms_mask = "gfx/interface/window_theme_administration/admin_theme_mask.dds" - - modify_texture = { - texture = "gfx/interface/coat_of_arms/coa_overlay.dds" - blend_mode = overlay - spritetype = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphaMultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 0.5 - - visible = "[Not(Title.GetHolder.IsValid)]" - } - } - - icon = { - name = "theme_glow" - parentanchor = top|hcenter - size = { 100% 100% } - texture = "gfx/interface/window_theme_administration/admin_theme_glow.dds" - alpha = 0 - - state = { - name = appear - using = Animation_Curve_Default - duration = 0.2 - position = { 0 0 } - alpha = 0.7 - scale = 1.01 - } - - state = { - name = disappear - using = Animation_Curve_Default - duration = 0.2 - position = { 0 0 } - alpha = 0 - scale = 0.97 - } - } - - icon = { - parentanchor = top|hcenter - size = { 100% 10 } - position = { 0 -4} - texture = "gfx/interface/window_theme_administration/admin_theme_coa_header.dds" - } - } - - } - - type button_theme_row_admin = button_standard { - datacontext = "[AdministrativeTitleItem.GetPrimaryContractAndObligationItem]" - datacontext = "[PrimaryContractAndObligation.GetObligationLevel]" - size = { 476 90 } - - block "on_click" {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - margin_left = 70 - margin_bottom = 8 - - # Non-Admin item - widget = { - visible = "[Not( IsAdministrativeRuler( Title.GetHolder ) )]" - - size = { 0 38 } - layoutpolicy_horizontal = expanding - allow_outside = yes - - highlight_icon = { - size = { 384 36 } - position = { -68 2 } - mirror = horizontal - - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - - hbox = { - parentanchor = left|vcenter - layoutpolicy_horizontal = expanding - margin = { 15 0 } - spacing = 10 - - # Name of non-theme - text_single = { - text = "ADMIN_WINDOW_THEME_NAME" - align = nobaseline - max_width = 350 - using = Font_Size_Medium - } - - # Non-Admin Tag - text_single = { - margin_right = 10 - - text = "ADMIN_WINDOW_VASSAL_GOVERNMENT_TYPE" - align = nobaseline - } - - expand = {} - } - } - - # Admin item - widget = { - visible = "[IsAdministrativeRuler( Title.GetHolder )]" - datacontext = "[AdministrativeTitleItem.GetPrimaryContractAndObligationItem]" - datacontext = "[PrimaryContractAndObligation.GetObligationLevel]" - - size = { 0 38 } - layoutpolicy_horizontal = expanding - allow_outside = yes - - icon = { - size = { 384 36 } - position = { -68 2 } - using = Background_Obligation_Banner_Right - } - - hbox = { - parentanchor = left|vcenter - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 5 - - # Admin Icon - text_single = { - text = "ADMIN_WINDOW_THEME_ADMINISTRATION_TYPE_TEXT_ICON" - align = nobaseline - } - - # Name of theme - text_single = { - text = "ADMIN_WINDOW_THEME_NAME" - align = nobaseline - max_width = 350 - using = Font_Size_Medium - } - - expand = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - margin_left = 10 - spacing = 10 - - text_single = { - datacontext = "[Title.GetHolder]" - - text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY" - align = nobaseline - default_format = "#low" - max_width = 80 - - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" - } - - text_single = { - text = "ADMIN_WINDOW_THEME_TAXES" - align = nobaseline - max_width = 80 - } - - text_single = { - text = "ADMIN_WINDOW_THEME_LEVIES" - align = nobaseline - max_width = 80 - } - - expand = {} - } - - hbox = { - datacontext = "[Title.GetHolder]" - visible = "[And( IsAdministrativeRuler( Title.GetHolder ), DataModelHasItems( AdministrativeTitleItem.GetRegiments ) )]" - - spacing = 5 - - icon_soldiers = { - size = { 25 25 } - } - - text_single = { - text = "ADMIN_WINDOW_THEME_TITLE_TROOPS" - align = nobaseline - } - } - - expand = {} - } - } - - widget_theme_item_small = { - parentanchor = vcenter - position = { 8 6 } - - tooltip_when_disabled = "ADMIN_WINDOW_NON_ADMIN_THEME_FAIL_DEMAND_INTERACTION" - using = tooltip_ws - - blockoverride "crown" { - icon = { - name = "crown" - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - position = { 0 -2 } - - allow_outside = yes - - size = { 60% 42% } - - texture = "gfx/interface/coat_of_arms/crown_strip_115.dds" - frame = "[Title.GetTierFrame]" - framesize = { 128 80 } - } - } - - blockoverride "outer_size" - { - position = { -2 20 } - size = { 68 68 } - } - - blockoverride "inner_size" - { - size = { 68 68 } - } - } - } - - type widget_theme_row_item = widget - { - size = { 525 90 } - - button_theme_row_admin = { - visible = "[IsAdministrativeRuler( Title.GetHolder )]" - - blockoverride "on_click" - { - onclick = "[CloseGameView('character_interaction_confirmation')]" - onclick = "[GetVariableSystem.Clear( 'AdminVassalDetailAppointment' )]" - onclick = "[ClearAdminVassalDetailCandidate]" - onclick = "[ToggleAdminVassalDetailView( Title.Self )]" - down = "[IsAdminVassalDetailViewShown( Title.Self )]" - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_THEME_TT" - using = tooltip_ne - } - } - - button_theme_row_admin = { - datacontext = "[Title.GetHolder]" - visible = "[Not( IsAdministrativeRuler( Character ) )]" - - blockoverride "on_click" - { - enabled = "[And( And( And( Not( IsAdministrativeRuler( Character ) ), Character.IsValid ), Character.GetLiege.IsPlayer ), Character.IsPlayerInteractionValid('demand_admin_interaction') )]" - onclick = "[CloseGameView('admin_vassal_detail_view')]" - onclick = "[Character.OpenPlayerInteraction('demand_admin_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('demand_admin_interaction')]" - } - } - - widget = { - datacontext = "[Title.GetHolder]" - parentanchor = vcenter|right - position = { 4 0 } - size = { 48 90 } - - background = { - using = Background_Area_Dark - margin = { 3 2 } - } - - vbox = { - layoutpolicy_vertical = expanding - - coa_house_tiny = { - datacontext = "[Character.GetHouse]" - } - - widget = { - visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]" - size = { 40 40 } - - text_single = { - parentanchor = hcenter - position = { -1 -2 } - text = "[Character.Custom('vassal_directive_icon')]" - align = nobaseline - using = Font_Size_Medium - - tooltip = "VASSAL_DIRECTIVE_ICON_TOOLTIP" - using = tooltip_se - } - - button_round = { - parentanchor = bottom|right - position = { 1 0 } - size = { 22 22 } - - enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]" - onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]" - using = tooltip_se - - button_give_directive = { - alwaystransparent = yes - parentanchor = center - size = { 18 18 } - } - } - } - - expand = {} - } - } - } - - type hbox_theme_contract_obligation_result = hbox - { - layoutpolicy_horizontal = expanding - spacing = 8 - - text_single = { - text = ADMIN_WINDOW_THEME_ADMINISTRATION_LEVIES - } - - text_single = { - text = ADMIN_WINDOW_THEME_ADMINISTRATION_TAXES - } - } - - type button_modify_theme = button_round { - visible = "[Character.IsPlayerInteractionShown('admin_liege_modify_vassal_contract_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('admin_liege_modify_vassal_contract_interaction')]" - - onclick = "[Character.OpenPlayerInteraction('admin_liege_modify_vassal_contract_interaction')]" - onclick = "[Character.PanCameraTo]" - - tooltip = "[Character.GetPlayerInteractionTooltip('admin_liege_modify_vassal_contract_interaction')]" - - block "feudal_contract_button_round" {} - - button_add_laws = { - alwaystransparent = yes - parentanchor = center - } - } - - type button_replace_governor = button_round { - using = Placeholder_Inactive_Button - - tooltip = "REPLACE_GOVERNOR_TOOLTIP" - - button_change = { - parentanchor = center - } - } - - type button_revoke_theme = button_round { - enabled = "[Character.IsPlayerInteractionValid('revoke_title_interaction')]" - - onclick = "[Character.OpenPlayerInteraction('revoke_title_interaction')]" - onclick = "[Character.PanCameraTo]" - - tooltip = "[Character.GetPlayerInteractionTooltip('revoke_title_interaction')]" - - button_cancel = { - alwaystransparent = yes - parentanchor = center - } - } - - type vbox_themes_list = vbox - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - name = "house_list" - datamodel = "[GovernmentAdministrationWindow.GetHousesWithThemes]" - - layoutpolicy_horizontal = expanding - - item = { - vbox_house_theme_list = { - datacontext = "[AdministrativeHouseItem.GetHouse]" - layoutpolicy_horizontal = expanding - } - } - } - - expand = { } - } -} - -types GovernmentAdministration -{ - type vbox_merit_examinations = vbox { - - - } - - type widget_title_troop_icon = widget { - visible = "[Not( HiredTroopRegiment.IsLevies )]" - size = { 26 26 } - parentanchor = center - - widget = { - datacontext = "[HiredTroopRegiment.GetRegiment]" - size = { 100% 100% } - - tooltipwidget = regiment_container_tooltip - using = tooltip_se - } - - icon = { - size = { 26 26 } - texture = "[HiredTroopRegiment.GetMenAtArmsType.GetIcon]" - } - } - - type widget_header_state_faith = widget { - datacontext = "[Title.GetStateFaith]" - visible = "[GetPlayer.GetGovernment.HasRule( 'state_faith' )]" - size = { 562 50 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 16 0 } - margin_bottom = 10 - spacing = 10 - - text_single = { - text = "[state_faith|E]" - align = nobaseline - } - - button_standard = { - layoutpolicy_horizontal = expanding - minimumsize = { 200 33 } - - onclick = "[ToggleGameViewData( 'faith', Faith.GetID )]" - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 30 30 } - texture = "[Title.GetStateFaith.GetIcon]" - } - - text_single = { - text = "[Faith.GetNameNoTooltip]" - align = nobaseline - } - - expand = {} - } - } - - hbox = { - button_round = { - datacontext = "[GetDecisionWithKey('change_state_faith')]" - visible = "[Decision.IsShownForPlayer]" - size = { 30 30 } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - tooltip = "[Decision.GetShortDescForPlayer]" - using = tooltip_ne - - button_change = { - parentanchor = center - alwaystransparent = yes - size = { 20 20 } - } - } - - button_round = { - datacontext = "[GetDecisionWithKey('adopt_state_faith')]" - visible = "[Decision.IsShownForPlayer]" - size = { 30 30 } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - tooltip = "[Decision.GetShortDescForPlayer]" - using = tooltip_ne - - button_plus = { - size = { 20 20 } - parentanchor = center - alwaystransparent = yes - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - text = "[GovernmentAdministrationWindow.GetCountiesOfStateFaith]" - align = nobaseline - } - } - } - - type widget_prominent_theme_banner = widget { - allow_outside = yes - layoutpolicy_horizontal = expanding - size = { 0 34 } - - # Banner Status available - block "background_banner" - { - highlight_icon = { - position = { -2 2 } - size = { 100% 100% } - mirror = horizontal - - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - } - - # Name of theme - text_single = { - parentanchor = left|vcenter - - text = "ADMIN_WINDOW_THEME_NAME" - align = nobaseline - max_width = 330 - using = Font_Size_Medium - - block "text_margin" {} - } - - hbox = { - block "taxes_and_levies_visiblity" {} - layoutpolicy_horizontal = expanding - parentanchor = right|vcenter - margin_right = 8 - spacing = 10 - - expand = {} - - text_single = { - min_width = 52 - - text = "ADMIN_WINDOW_FIND_APPOINTMENT_TAXES" - align = nobaseline - } - - text_single = { - min_width = 52 - - text = "ADMIN_WINDOW_FIND_APPOINTMENT_LEVIES" - align = nobaseline - } - } - } - - type widget_prominent_theme_item = widget { - size = { 525 82 } - - button_standard = { - size = { 525 82 } - - block "on_click" {} - - tooltip = "ADMIN_WINDOW_THEME_ADMINISTRATION_THEME_TT" - using = tooltip_ne - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 4 - - widget_prominent_theme_banner = { - visible = "[Not( GovernmentAdministrationWindow.AllowMeritPools )]" - - blockoverride "text_margin" { - margin_left = 75 - } - } - - widget_prominent_theme_banner = { - datacontext = "[GovernmentAdministrationWindow.GetSelectedAdminMeritPool]" - visible = "[GovernmentAdministrationWindow.AllowMeritPools]" - - blockoverride "text_margin" { - margin_left = 75 - } - - blockoverride "background_banner" - { - # Banner Status Military - highlight_icon = { - visible = "[AdminMeritPool.IsMilitary]" - position = { -4 2 } - size = { 100% 100% } - mirror = horizontal - - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - # Banner Status Civilian - highlight_icon = { - visible = "[Not( AdminMeritPool.IsMilitary )]" - position = { -4 2 } - size = { 100% 100% } - mirror = horizontal - - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 75 - margin_top = 8 - - text_single = { - max_width = 450 - layoutpolicy_horizontal = expanding - - text = "[ProminentThemeItem.GetSuccessionLineDesc]" - align = nobaseline - } - expand = {} - } - - hbox = { - visible = "[GovernmentAdministrationWindow.AllowMeritPools]" - layoutpolicy_horizontal = expanding - margin_left = 75 - spacing = 4 - - tooltip = "ADMIN_WINDOW_MERIT_POOLS_TITLE_RATING_TT" - using = tooltip_ne - - text_single = { - text = "ADMIN_WINDOW_MERIT_POOLS_TITLE_RATING" - align = nobaseline - } - - text_single = { - text = "[ProminentThemeItem.GetTitleProminence|V2]" - align = nobaseline - } - - expand = {} - } - expand = {} - } - - widget_theme_item_small = { - parentanchor = left|vcenter - position = { 6 3 } - - blockoverride "crown" {} - - blockoverride "outer_size" - { - size = { 64 64 } - } - blockoverride "inner_size" - { - size = { 64 64 } - } - } - - } - } - - type vbox_prominent_theme_group_foldout = vbox { - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[ProminentThemeGroupItem.GetGroupTitle]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "themes_in_group" - datamodel = "[ProminentThemeGroupItem.GetItems]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 507 - addrow = 87 - - item = { - container = { - datacontext = "[ProminentThemeItem.GetTitle]" - datacontext = "[ProminentThemeItem.GetCandidate]" - - # Top Liege Title - widget_prominent_theme_item = { - visible = "[ObjectsEqual( Title.GetHolder, Character.GetTopLiege )]" - - blockoverride "on_click"{ - onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" - } - - blockoverride "taxes_and_levies_visiblity" - { - visible = no - } - } - - # All other titles - widget_prominent_theme_item = { - visible = "[Not( ObjectsEqual( Title.GetHolder, Character.GetTopLiege ) )]" - - blockoverride "on_click"{ - onclick = "[CloseGameView( 'character_interaction_confirmation' )]" - onclick = "[GetVariableSystem.Set( 'AdminVassalDetailAppointment', 'true' )]" - onclick = "[SetAdminVassalDetailCandidate( Character.Self )]" - onclick = "[ToggleAdminVassalDetailView( Title.Self )]" - down = "[IsAdminVassalDetailViewShown( Title.Self )]" - } - } - } - } - } - } - } - - type button_promote_candidate_scheme = button_standard { - visible = "[Character.IsValid]" - minimumsize = { 100 33 } - - enabled = "[Character.IsPlayerInteractionValid( 'start_promote_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'start_promote_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'start_promote_interaction' )]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers( 'start_promote_interaction' )]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - button_promote_candidate = {} - - text_single = { - max_width = 320 - - text = "ADMIN_VASSAL_DETAILS_PROMOTE_BUTTON" - default_format = "#clickable" - align = nobaseline|center - } - - expand = {} - } - } - - type button_influence_career = button_standard { - visible = "[Character.IsValid]" - minimumsize = { 100 33 } - - enabled = "[Character.IsPlayerInteractionValid( 'influence_meritorious_career_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'influence_meritorious_career_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'influence_meritorious_career_interaction' )]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers( 'influence_meritorious_career_interaction' )]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - button_promote_candidate = {} - - text_single = { - max_width = 320 - - text = "influence_meritorious_career_interaction" - default_format = "#clickable" - align = nobaseline|center - } - - expand = {} - } - } - - type widget_your_family_appointments = vbox { - datacontext = "[GovernmentAdministrationWindow.GetSelectedProminentHouseMember]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - hbox = { - datacontext = "[Title.GetProvince.GetHolding]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_bottom = 10 - spacing = 10 - - background = { - using = Background_Area_Holding - margin_bottom = 40 - - mirror = horizontal - } - - portrait_head = { - visible = "[Not( Character.HasMerit )]" - allow_outside = yes - } - - portrait_shoulders = { - visible = "[Character.HasMerit]" - allow_outside = yes - } - - # Content, except widgets - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Top Section (not dropdowns) - # Character name - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNotMeNoTooltip]" - align = nobaseline - max_width = 380 - using = Font_Size_Medium - } - - expand = {} - - ### MERIT - Your Family - Selected Prominent House Member - hbox_merit_with_label = { - datacontext = "[GovernmentAdministrationWindow.GetMeritItem]" - } - } - - # Relation to you - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - max_width = 380 - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - } - expand = {} - } - - text_single = { - visible = "[Character.HasMerit]" - margin_top = 10 - margin_bottom = 4 - layoutpolicy_horizontal = expanding - - text = "ADMIN_WINDOW_MERIT_POOLS" - align = nobaseline - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - margin_right = 5 - - button_round = { - allow_outside = yes - - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - - onclick = "[CloseGameView('admin_vassal_detail_view')]" - onclick = "[GetVariableSystem.Clear( 'show_prominent_appointment' )]" - - shortcut = "go_back" - shortcut = "go_back_2" - shortcut = "go_back_3" - - tooltip = "ADMIN_WINDOW_FIND_APPOINTMENT_BACK_BUTTON_TT" - - button_back = { - parentanchor = center - position = { -2 0 } - alwaystransparent = yes - size = { 28 28 } - } - } - - expand = {} - } - } - - hbox_theme_sort_options = { - datacontext = "[GovernmentAdministrationWindow.GetTitle]" - - blockoverride "dropdown_properties" - { - datamodel = "[GovernmentAdministrationWindow.GetAppointmentOrderOptions]" - onselectionchanged = "[GovernmentAdministrationWindow.SortAppointmentThemes]" - selectedindex = "[GovernmentAdministrationWindow.GetAppointmentSortSelectedIndex]" - } - - blockoverride "sort_order_onclick" - { - onclick = "[GovernmentAdministrationWindow.ReverseAppointmentSortOrder]" - } - - blockoverride "sort_order_frame" - { - frame = "[BoolTo1And2(GovernmentAdministrationWindow.GetAppointmentSortOrder)]" - } - } - - # Prominent Theme Items - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - datamodel = "[GovernmentAdministrationWindow.GetProminentThemeGroups]" - layoutpolicy_horizontal = expanding - spacing = 2 - - item = { - vbox_prominent_theme_group_foldout = {} - } - } - } - blockoverride "scrollbox_expand" { - expand = {} - } - } - - - - expand = {} - } - - type vbox_your_family_tab = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ## Top info - hbox = { - margin = { 15 0 } - margin_top = 10 - margin_bottom = 24 - layoutpolicy_horizontal = expanding - - using = Background_Area_Family_Decoration - - ## Left Side - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 6 - margin_top = 6 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - - # House Name - text_single = { - text = "HOUSE_VIEW_NAME_WITH_HOUSE" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - text_single = { - text = "[DynastyHouse.GetFamilyStatusConcept]" - align = nobaseline - } - - expand = {} - - } - - # House Land Share % - hbox = { - visible = "[And(Or(DynastyHouse.IsDominant,DynastyHouse.IsPowerful), Not( Character.HasMerit ))]" - layoutpolicy_horizontal = expanding - margin_left = -5 #Ugly solution to offset icon - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ADMIN_WINDOW_HOUSE_LAND_SHARE" - tooltip = "ADMIN_WINDOW_HOUSE_LAND_SHARE_TOOLTIP" - align = nobaseline - max_width = 320 - } - - expand = {} - } - - - expand = {} - - # House Attribute - hbox = { - visible = "[DynastyHouse.UsesHouseAspirations]" - datacontext = "[DynastyHouse.GetHouseAspiration]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - button_standard = { - size = { 230 33 } - onclick = "[ToggleGameViewData( 'house_aspiration_window', DynastyHouse.Self )]" - - tooltip = "HOUSE_VIEW_CHANGE_HOUSE_POWER" - - hbox = { - margin = { 5 0 } - spacing = 5 - - expand = {} - - button_icon = { - visible = "[GetPlayer.GetGovernment.IsType( 'administrative_government' )]" - size = { 28 28 } - texture = "[HouseAspiration.GetSmallIcon]" - } - - icon = { - visible = "[Not(GetPlayer.GetGovernment.IsType( 'administrative_government' ))]" - size = { 28 28 } - texture = "[HouseAspiration.GetSmallIcon]" - } - - text_single = { - text = "[HouseAspiration.GetName]" - align = nobaseline|center - default_format = "#clickable" - max_width = 190 - } - - expand = {} - } - } - - warning_icon = { - size = { 32 32 } - visible = "[DynastyHouse.IsHouseAttributeInactive]" - tooltip = "FAMILY_ATTRIBUTE_WINDOW_ALERT" - using = tooltip_se - } - - expand = {} - } - - - } - - expand = {} - - ## Right Side - vbox = { - background = { - using = Background_Area - margin = { 6 12} - margin_top = 2 - } - - allow_outside = yes - - dynamicgridbox = { - - allow_outside = yes - - flipdirection = yes - maxverticalslots = 1 - - datamodel = "[GovernmentAdministrationWindow.AccessRankedNeighborFamilies]" - - item = { - widget_ranked_family_neighbor = { - datacontext = "[RankedHouseItem.GetHouse]" - } - - } - } - } - } - - #exams - vbox = { - name = "government_panel_exam_area" #lesson_china_exam uses this - widgetid = "government_panel_exam_area" #lesson_china_exam uses this - - visible = "[GetPlayer.GetTopLiege.GetGovernment.HasRule( 'merit' )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - # non-joinable-now examinations - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 2 } - margin_bottom = 5 - - background = { - using = Background_Area - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[examinations|E]" - using = Font_Size_Medium - } - - ### Local Examination - hbox = { - datacontext = "[GetActivityType( 'activity_local_examination' )]" - datacontext = "[ActivityType.FindJoinableOpenActivityOfType]" - visible = "[Not( Activity.IsValid )]" - - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = activity_local_examination_not_available_tt - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 180 - - text = "activity_local_examination_with_icon" - align = nobaseline - } - - expand = {} - - text_single = { - text = "[ActivityType.GetLastSeenDateOfOpenActivityType]" - align = nobaseline - default_format = "#weak" - } - - button_round = { - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - size = { 36 36 } - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "LOCAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanJoinOpenActivity)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "LOCAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - ### Imperial Examination - hbox = { - datacontext = "[GetActivityType( 'activity_imperial_examination' )]" - datacontext = "[ActivityType.FindJoinableOpenActivityOfType]" - visible = "[Not( Activity.IsValid )]" - - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = activity_imperial_examination_not_available_tt - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 180 - text = "activity_imperial_examination_with_icon" - align = nobaseline - } - - expand = {} - - text_single = { - text = "[ActivityType.GetLastSeenDateOfOpenActivityType]" - align = nobaseline - default_format = "#weak" - } - - button_round = { - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - size = { 36 36 } - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "CAPITAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanJoinOpenActivity)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "CAPITAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - } - } - } - - # joinable activities - vbox = { - margin = { 15 0 } - layoutpolicy_horizontal = expanding - visible = "[Or( GetActivityType( 'activity_local_examination' ).FindJoinableOpenActivityOfType.IsValid, GetActivityType( 'activity_imperial_examination' ).FindJoinableOpenActivityOfType.IsValid )]" - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GetActivityType( 'activity_local_examination' )]" - datacontext = "[ActivityType.FindJoinableOpenActivityOfType]" - visible = "[Activity.IsValid]" - spacing = 10 - - button_standard = { - layoutpolicy_horizontal = expanding - visible = "[Activity.IsValid]" - - onclick = "[ToggleGameViewData( 'activity_list_detail_invite_window', Activity.Self )]" - down = "[IsGameViewDataShown( 'activity_list_detail_invite_window', Activity.Self )]" - tooltip = JOIN_ACTIVITY_TOOLTIP - - text = "ACTIVITY_LIST_JOIN_GENERIC" - } - - button_round = { - size = { 36 36 } - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "LOCAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanJoinOpenActivity)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "LOCAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GetActivityType( 'activity_imperial_examination' )]" - datacontext = "[ActivityType.FindJoinableActivityOfType]" - visible = "[Activity.IsValid]" - spacing = 10 - - button_standard = { - layoutpolicy_horizontal = expanding - visible = "[Activity.IsValid]" - - onclick = "[ToggleGameViewData( 'activity_list_detail_invite_window', Activity.Self )]" - down = "[IsGameViewDataShown( 'activity_list_detail_invite_window', Activity.Self )]" - tooltip = JOIN_ACTIVITY_TOOLTIP - - text = "ACTIVITY_LIST_JOIN_GENERIC" - } - - button_round = { - size = { 36 36 } - onclick = "[ActivityType.ToggleShouldNotifyCanJoinOpenActivity]" - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanJoinOpenActivity]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "CAPITAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanJoinOpenActivity)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "CAPITAL_EXAMINATIONS_NOTIFY_TOGGLE_TT" - } - } - } - } - - # hostable activities - vbox = { - visible = "[Or( GetActivityType( 'activity_local_examination' ).CanPlanActivity( GetPlayer.Self ), GetActivityType( 'activity_imperial_examination' ).CanPlanActivity( GetPlayer.Self ) )]" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - hbox = { - datacontext = "[GetActivityType( 'activity_local_examination' )]" - visible = "[ActivityType.CanPlanActivity( GetPlayer.Self )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - button_standard = { - layoutpolicy_horizontal = expanding - text = "ACTIVITY_LIST_HOST_GENERIC" - - enabled = "[ActivityType.CanStartActivity( GetPlayer.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_host_window', ActivityType.Self )]" - down = "[IsGameViewDataShown( 'activity_list_detail_host_window', ActivityType.Self )]" - - tooltip = SHOW_ACTIVITY_TOOLTIP - } - - button_round = { - onclick = "[ActivityType.ToggleShouldNotifyCanHost]" - size = { 36 36 } - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanHost]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_HOSTING_EXAMINATIONS_LOCAL_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanHost)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_HOSTING_EXAMINATIONS_LOCAL_TT" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GetActivityType( 'activity_imperial_examination' )]" - visible = "[ActivityType.CanPlanActivity( GetPlayer.Self )]" - spacing = 10 - - button_standard = { - layoutpolicy_horizontal = expanding - - enabled = "[ActivityType.CanStartActivity( GetPlayer.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_host_window', ActivityType.Self )]" - down = "[IsGameViewDataShown( 'activity_list_detail_host_window', ActivityType.Self )]" - tooltip = SHOW_ACTIVITY_TOOLTIP - - text = "ACTIVITY_LIST_HOST_GENERIC" - } - - button_round = { - onclick = "[ActivityType.ToggleShouldNotifyCanHost]" - size = { 36 36 } - - button_icon = { - visible = "[ActivityType.ShouldNotifyCanHost]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_on.dds" - size = { 24 24 } - - tooltip = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_HOSTING_EXAMINATIONS_IMPERIAL_TT" - } - - button_icon = { - visible = "[Not(ActivityType.ShouldNotifyCanHost)]" - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/notifications_off.dds" - size = { 24 24 } - - tooltip = "ACTIVITY_LIST_NOTIFY_ME_ABOUT_HOSTING_EXAMINATIONS_IMPERIAL_TT" - } - } - } - } - } - - spacer = { - size = { 0 10 } - } - - ## Prominent House Member Character List - vbox_character_list = { - name = "admin_panel_your_family_character_list" #ra_merit_candidacy_house_members uses this - datacontext = "[GovernmentAdministrationWindow.AccessProminentHouseMemberList]" - datacontext = "[GovernmentAdministrationWindow.AccessProminentHouseMemberCharacterList]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" { - margin_left = 15 - margin_right = -38 #-margin to offset an expand in the hbox_list_sort_buttons type. This was an easier solution that going into the base type and fix since we use it in so many places. - margin_top = 5 - spacing = 5 - } - - blockoverride "filters_visible" { - visible = no - } - - blockoverride "sort_prefix" { - text_single = { - text = "ADMIN_WINDOW_PROMINENT_MEMBERS" - align = nobaseline - max_width = 240 - } - expand = {} - } - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "prominent_house_member_sort_options" - } - } - } - } - - blockoverride "skill_sort_buttons" {} - blockoverride "character_count" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - - text = "ADMIN_WINDOW_NO_FAMILY_MEMBERS" - } - - blockoverride "container_implementation" - { - ### CHARACTER LIST ITEM - MERIT ### - fixedgridbox = { - datamodel = "[CharacterSelectionList.GetList]" - visible = "[And( Not( CharacterSelectionList.IsBuildingList ), GetPlayer.GetTopLiege.GetGovernment.HasRule( 'merit' ) )]" - - addcolumn = 530 - addrow = 187 - - item = { - widget_prominent_house_member_item_celestial = {} - } - } - - ### CHARACTER LIST ITEM - OTHER ADMIN ### - fixedgridbox = { - datamodel = "[CharacterSelectionList.GetList]" - visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( GetPlayer.GetTopLiege.GetGovernment.HasRule( 'merit' ) ) )]" - - addcolumn = 530 - addrow = 130 - - item = { - widget_prominent_house_member_item = {} - } - } - } - } - } - - type widget_prominent_house_member_item_celestial = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 530 182 } - - background = { - using = Background_Area_Dark - - alpha = 0.6 - margin = { -2 -2 } - margin_bottom = -120 - } - - background = { - using = Background_Frame - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 10 9 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - - ### LEFT PORTRAIT - portrait_head = {} - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - ### NAME - hbox = { - margin_left = 5 - layoutpolicy_horizontal = expanding - - text_single = { - max_width = 310 - - text = "[Character.GetUINameNotMeNoTooltip]" - using = Font_Size_Medium - align = nobaseline - } - - expand = {} - } - - ### RELATION - hbox = { - margin_left = 5 - layoutpolicy_horizontal = expanding - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - - text_single = { - max_width = 310 - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - } - - expand = {} - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - allow_outside = yes - - hbox = { - allow_outside = yes - margin_right = 5 - - widget = { - datacontext = "[ProminentHouseMemberCharacterList.GetMeritItem( CharacterListItem.GetIndex )]" - visible = "[GreaterThanOrEqualTo_int32( Character.GetMeritLevel, '(int32)1' )]" - size = { 76 46 } - allow_outside = yes - - ### MERIT - Your Family - Character List Selection - hbox_merit_with_label = { - name = "admin_panel_character_item_merit_rank" - - blockoverride "icon_size" - { - size = { 42 42 } - } - - blockoverride "hbox_merit_with_label_background" {} - } - - warning_icon = { - visible = "[And(Character.IsMeritCapped, Not( EqualTo_int32( Character.GetMeritLevel, '(int32)9' ) ) )]" - position = { -5 0 } - size = { 25 25 } - allow_outside = yes - - tooltip = "ADMIN_WINDOW_MERIT_CAPPED_TT" - using = tooltip_se - } - } - - widget = { - datacontext = "[ProminentHouseMemberCharacterList.GetMeritItem( CharacterListItem.GetIndex )]" - visible = "[EqualTo_int32( Character.GetMeritLevel, '(int32)0' )]" - size = { 90 46 } - allow_outside = yes - - ### MERIT - Your Family - Character List Selection - hbox_merit_with_label = { - name = "admin_panel_character_item_merit_rank" - - blockoverride "icon_size" - { - size = { 42 42 } - } - - blockoverride "hbox_merit_with_label_background" {} - } - } - - expand = {} - } - } - } - - ### MERIT and EXAMINATIONS (adults) - hbox = { - visible = "[And(Character.IsAdult, Character.ShouldShowMerit)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 5 - spacing = 16 - - ### MERIT POOLS - hbox = { - datamodel = "[ProminentHouseMemberCharacterList.GetMeritPools( CharacterListItem.GetIndex )]" - visible = "[Not(IsDataModelEmpty( ProminentHouseMemberCharacterList.GetMeritPools( CharacterListItem.GetIndex )))]" - margin_top = 10 - spacing = 10 - - item = { - button_merit_pool_item = { - blockoverride "default_format" {} - } - } - } - - expand = {} - - hbox = { - layoutpolicy_vertical = expanding - margin_top = 5 - - expand = {} - - ### EXAMINATIONS (all 3 adult exams, if there is space) - hbox = { - name = "admin_panel_character_item_exams" #ra_merit_candidacy_exams uses this - - visible = "[LessThanOrEqualTo_int32( GetDataModelSize(ProminentHouseMemberCharacterList.GetMeritPools( CharacterListItem.GetIndex )) , '(int32)3' )]" - - spacing = 5 - layoutpolicy_horizontal = expanding - - widget_provincial_exam_status = { - - size = { 40 40 } - } - - widget_metropolitan_exam_status = { - size = { 40 40 } - } - - widget_palace_exam_status = { - size = { 40 40 } - } - } - - ### PALACE EXAM (if there is little space) - - widget_palace_exam_status = { - visible = "[GreaterThanOrEqualTo_int32( GetDataModelSize(ProminentHouseMemberCharacterList.GetMeritPools( CharacterListItem.GetIndex )) , '(int32)4' )]" - } - } - } - - ### MERIT and EXAMINATIONS (children) - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[And(Not(Character.IsAdult), Character.ShouldShowMerit)]" - - spacing = 4 - margin = { 4 4 } - - widget_childrens_exam_status = { } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "game_concept_childrens_examination" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[HasPassedChildrenExamination(Character)]" - text = "EXAMINATION_PASSED" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Not(HasPassedChildrenExamination(Character))]" - text = "EXAMINATION_NOT_TAKEN" - align = nobaseline - } - } - } - - } - } - - ### BUTTONS BOTTOM ROW - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - margin_bottom = 5 - spacing = 10 - - # Scheme 'influence_candidacy_interaction' - button_standard = { - datacontext = "[GetNullLandedTitle]" - visible = "[Character.IsPlayerInteractionShown( 'influence_candidacy_interaction' )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 33 } - - onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_candidacy_interaction', Title.Self )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'influence_candidacy_interaction' )]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers( 'influence_candidacy_interaction' )]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 4 } - spacing = 4 - - button_promote_candidate = { - alwaystransparent = yes - } - - text_single = { - max_width = 430 - - text = "ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON" - default_format = "#clickable" - align = nobaseline - } - - expand = {} - } - } - - button_influence_career = { - name = "admin_panel_character_item_influence_career" #ra_merit_candidacy_score uses this - visible = "[Not(Character.IsPlayerInteractionShown( 'send_child_to_examination_interaction' ))]" - layoutpolicy_horizontal = expanding - } - - button_promote_candidate_scheme = { - name = "admin_panel_character_item_promote_scheme" #ra_merit_candidacy_score uses this - - # hide invalid interaction to save space - visible = "[And(Character.IsValid,Character.IsPlayerInteractionValid( 'start_promote_interaction' ))]" - layoutpolicy_horizontal = expanding - } - - ### Interaction Button - Child Exam - button_standard = { - name = "admin_panel_character_item_child_exam" #ra_merit_candidacy_child_exams uses this - visible = "[Character.IsPlayerInteractionShown( 'send_child_to_examination_interaction' )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 33 } - - enabled = "[Character.IsPlayerInteractionValid( 'send_child_to_examination_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'send_child_to_examination_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'send_child_to_examination_interaction' )]" - tooltip_when_disabled = "[Character.GetPlayerInteractionValidBlockers( 'send_child_to_examination_interaction' )]" - - text = "send_child_to_examination_interaction" - } - - ### Decision Button - Attend Child Exam - button_decision_entry = { - datacontext = "[GetDecisionWithKey( 'tgp_china_attend_child_exam_decision' )]" - visible = "[And( Not( Character.IsPlayerInteractionShown( 'send_child_to_examination_interaction' ) ), Decision.IsShownForPlayer )]" - - blockoverride "button_size" - { - minimumsize = { 300 33 } - } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - } - } - } - } - - type widget_prominent_house_member_item = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 530 124 } - allow_outside = yes - - background = { - using = Background_Area - } - - # Container - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_bottom = -65 - } - - vbox = { - layoutpolicy_vertical = expanding - - portrait_head = {} - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - margin = { 5 5 } - margin_top = 4 - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - # Character name - text_single = { - layoutpolicy_horizontal = expanding - max_width = 340 - - text = "[Character.GetUINameNotMeNoTooltip]" - using = Font_Size_Medium - align = nobaseline - } - - expand = {} - } - - # Relation to you - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 340 - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - } - - expand = {} - } - } - - expand = {} - - # CoA Theme - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 - margin_right = 14 - allow_outside = yes - - - widget = { - size = { 50 50 } - allow_outside = yes - - widget_theme_item_small = { - datacontext = "[Character.GetPrimaryTitle]" - visible = "[Title.IsValid]" - parentanchor = center - allow_outside = yes - - blockoverride "crown" {} - - blockoverride "outer_size" - { - size = { 62 62 } - } - blockoverride "inner_size" - { - size = { 62 62 } - } - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Character.IsAdult]" - - expand = {} - - # Button Options - hbox = { - - layoutpolicy_horizontal = expanding - margin_bottom = 10 - spacing = 10 - - button_promote_candidate_scheme = { - layoutpolicy_horizontal = expanding - } - - button_standard = { - layoutpolicy_horizontal = expanding - - text = "ADMIN_WINDOW_BUTTON_FIND_APPOINTMENT" - - onclick = "[GovernmentAdministrationWindow.SelectProminentHouseMember( Character.Self )]" - onclick = "[GetVariableSystem.Set( 'show_prominent_appointment', 'true' )]" - } - - expand = {} - } - } - - text_single = { - visible = "[Not(Character.IsAdult)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # added after loc freeze, text could be better - text = "NOT_IS_ADULT_TRIGGER" - - default_format = "#weak" - align = hcenter|nobaseline - } - } - } - } - - type vbox_family_group_foldout = vbox { - layoutpolicy_horizontal = expanding - - spacing = 6 - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[AdminFamilyGroupItem.GetName]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "families_in_group" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 520 - addrow = 124 - - datamodel = "[AdminFamilyGroupItem.GetFamilyItems]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - button_family_group_item = { - datacontext = "[AdminFamilyItem.GetHouse]" - } - expand = {} - } - } - } - } - } - - type widget_house_power_banner_small = widget - { - size = { 92% 32 } - parentanchor = bottom|hcenter - position = { 0 -14 } - - background = { - texture = "gfx/interface/window_theme_administration/rating_banner.dds" - } - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[GovernmentAdministrationWindow.GetHousePowerTooltip( DynastyHouse.Self )]" - - blockoverride "header" - { - text_label_left = { - layoutpolicy_horizontal = expanding - text = "game_concept_powerful_family_rating" - default_format = "#T" - } - } - } - } - - text_single = { - parentanchor = center - position = { 0 -1 } - max_width = 250 - - text = "[DynastyHouse.GetHousePower]" - default_format = "#light_background" - align = nobaseline - } - } - - type widget_house_power_banner_medium = widget - { - size = { 100 32 } - parentanchor = bottom|hcenter - position = { 0 -4 } - - background = { - texture = "gfx/interface/window_theme_administration/rating_banner.dds" - } - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[GovernmentAdministrationWindow.GetHousePowerTooltip( DynastyHouse.Self )]" - } - } - - text_single = { - parentanchor = center - position = { 5 -1 } - max_width = 200 - - text = "[AdminFamilyItem.GetRankAndPower]" - default_format = "#light_background" - using = Font_Size_Tiny - align = nobaseline - } - } - - type widget_ranked_family_neighbor = widget - { - minimumsize = "[Select_CVector2f( RankedHouseItem.IsPlayerHouse, '(CVector2f)88,110', '(CVector2f)64,110' )]" - layoutpolicy_horizontal = expanding - allow_outside = yes - - vbox = { - - spacing = -4 - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "[RankedHouseItem.GetRank]" - tooltip = "ADMIN_WINDOW_FAMILY_RANK_TOOLTIP" - default_format = "#high" - align = nobaseline - } - } - - coa_house_medium = { - visible = "[RankedHouseItem.IsPlayerHouse]" - allow_outside = yes - - widget_house_power_banner_small = { - position = { 0 22 } - allow_outside = yes - } - } - - coa_house_small = { - visible = "[Not( RankedHouseItem.IsPlayerHouse )]" - allow_outside = yes - - widget_house_power_banner_small = { - position = { 0 22 } - allow_outside = yes - } - } - - expand = {} - } - } - - type hbox_featured_family_head_portrait = hbox - { - background = { - using = Background_Area - alpha = 1.2 - - margin = { 8 4 } - } - - vbox = { - spacing = 2 - layoutpolicy_vertical = expanding - - - expand = {} - - widget_access_domicile_button = { - datacontext = "[DynastyHouse.GetHeadOfHouse]" - datacontext = "[Character.GetDomicile]" - visible = "[Character.HasDomicile]" - } - - button_round = { - visible = "[Not( Character.IsPlayer )]" - - tooltip = "ADMIN_GOVERNMENT_HOUSE_HEAD_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'admin_house_head'))]" - - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'admin_house_head')]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'admin_house_head')]" - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - - } - - expand = {} - } - - block "portrait_head" - { - portrait_head_small = {} - } - } - - type vbox_featured_family_portrait_big = hbox - { - layoutpolicy_horizontal = expanding - - vbox = { - margin_top = 12 - - # House CoA - widget = { - size = { 120 120 } - - allow_outside = yes - - coa_house_big = { - datacontext = "[Character.GetHouse]" - parentanchor = top|hcenter - allow_outside = yes - - powerful_family_bonus = { - parentanchor = top|right - size = { 36 36 } - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin = { 4 0 } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 160 - margin_left = 8 - align = nobaseline - using = Font_Size_Medium - block "subtitle" {} - } - - hbox = { - spacing = 2 - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - spacing = 2 - - expand = {} - - widget_access_domicile_button = { - datacontext = "[Character.GetDomicile]" - visible = "[Character.HasDomicile]" - } - - button_round = { - visible = "[Not( Character.IsPlayer )]" - - block "interactions_on_click" {} - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - - block "interaction_number_text" {} - - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - } - - expand = {} - } - - portrait_head_small = {} - } - } - - } - - type button_family_group_item = widget - { - size = { 520 118 } - - using = Background_Area_Administrative_Decoration - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 6 - margin_left = 5 - spacing = 8 - - # House CoA - widget = { - size = { 84 110 } - layoutpolicy_vertical = expanding - allow_outside = yes - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - coa_house_medium = { - allow_outside = yes - - powerful_family_bonus = { - parentanchor = top|right - position = { 2 0 } - size = { 32 32 } - blockoverride "level_icons" {} - } - } - - expand = {} - } - - widget_house_power_banner_medium = {} - } - - hbox = { - datacontext = "[DynastyHouse.GetHeadOfHouse]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 5 5 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ignoreinvisible = no - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "ADMINISTRATIVE_GOVERNMENT_HOUSE_WITH_NAME" - align = nobaseline - max_width = 270 - using = Font_Size_Medium - } - - expand = {} - } - - hbox_house_bloc_info = { - layoutpolicy_horizontal = expanding - } - - # House County Control in Realm - hbox = { - layoutpolicy_horizontal = expanding - margin_left = -5 #Ugly solution to offset icon - - text_single = { - visible = "[And(Or(DynastyHouse.IsDominant,DynastyHouse.IsPowerful), Not( Character.HasMerit ))]" - layoutpolicy_horizontal = expanding - - text = "ADMIN_WINDOW_HOUSE_LAND_SHARE" - tooltip = "ADMIN_WINDOW_HOUSE_LAND_SHARE_TOOLTIP" - align = nobaseline - max_width = 270 - - - } - - expand = {} - } - - expand = {} - } - - vbox = { - - margin = { 5 2 } - - layoutpolicy_vertical = expanding - - hbox_featured_family_head_portrait = {} - - expand = {} - } - - expand = {} - } - } - } - - type widget_special_ruler = widget - { - size = { 110 149 } - - portrait_head = { - visible = "[Not( Title.MakeScope.Var( 'administrative_ui_special_title' ).Title.IsValid )]" - parentanchor = hcenter - - blockoverride "coa" {} - blockoverride "portrait_button_template_tooltip" {} - } - - widget = { - visible = "[Title.MakeScope.Var( 'administrative_ui_special_title' ).Title.IsValid]" - datacontext = "[Title.MakeScope.Var( 'administrative_ui_special_title' ).Title.GetHolder]" - size = { 110 149 } - - portrait_head = { - blockoverride "portrait_button_template_tooltip" {} - } - - text_single = { - widgetanchor = bottom|hcenter - parentanchor = bottom|hcenter - text = "[Character.GetTitledFirstName]" - } - } - } - - type button_merit_pool_item = widget { - size = { 56 56 } - allow_outside = yes - - button = { - parentanchor = bottom|hcenter - size = { 56 56 } - allow_outside = yes - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - - block "button_onclick" - { - onclick = "[GovernmentAdministrationWindow.SelectProminentHouseMember( Character.Self )]" - onclick = "[GovernmentAdministrationWindow.SetMeritPoolCharacterList( AdminMeritPool.Self )]" - onclick = "[MeritPoolWindow.ScrollToCandidate( Character.Self, '(int32)15' )]" - down = "[ObjectsEqual( AdminMeritPool.Self, GovernmentAdministrationWindow.GetSelectedAdminMeritPool )]" - } - - tooltip = "[AdminMeritPool.GetCandidateTooltip( Character.Self )]" - using = tooltip_se - - text_single = { - visible = "[Not( AdminMeritPool.IsMilitary )]" - parentanchor = center - position = { 0 -5 } - - text = "celestial_province_standard_text_icon" - align = nobaseline - } - - text_single = { - visible = "[AdminMeritPool.IsMilitary]" - parentanchor = center - position = { 0 -5 } - - text = "celestial_province_military_text_icon" - align = nobaseline - } - - button_round = { - parentanchor = top|right - position = { 11 -6 } - size = { 30 30 } - - onclick = "[GovernmentAdministrationWindow.SelectProminentHouseMember( Character.Self )]" - onclick = "[GovernmentAdministrationWindow.SetMeritPoolCharacterList( AdminMeritPool.Self )]" - onclick = "[MeritPoolWindow.ScrollToCandidate( Character.Self, '(int32)15' )]" - - icon = { - name = "crown" - parentanchor = center - texture = "gfx/interface/coat_of_arms/crown_strip_28.dds" - frame = "[AdminMeritPool.GetTierFrame]" - framesize = { 32 22 } - scale = 0.8 - position = { 0 -3 } - } - } - } - - widget_succession_candidate_banner_small = { - parentanchor = bottom|hcenter - position = { 0 -3 } - size = { 60 24 } - - blockoverride "background_texture" - { - texture = "gfx/interface/hud/tgp_widget_button_banner.dds" - } - - blockoverride "banner_text" - { - parentanchor = center|vcenter - widgetanchor = center - position = { 0 2 } - - text = "TITLE_APPOINTMENT_RANK_SMALL" - } - } - - icon = { - visible = "[And( Not(Character.HasNewAppointmentCooldown), AdminMeritPool.HasCareerScorePotential( Character.Self ) )]" - parentanchor = bottom|hcenter - allow_outside = yes - - position = { 26 -3 } - size = { 20 20 } - texture = "gfx/interface/icons/appointment_score.dds" - } - - icon = { - visible = "[Character.HasNewAppointmentCooldown]" - parentanchor = bottom|hcenter - allow_outside = yes - - position = { 24 -2 } - size = { 25 25 } - texture = "gfx/interface/icons/icon_time.dds" - } - } - - type vbox_merit_pool_character_item = vbox { - margin_top = 2 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### NAME and GOVERNOR EFFICIENCY ### - hbox = { - margin = { 5 5 } - margin_right = 10 - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin_left = 7 - margin_right = -2 - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip|U]" - using = Font_Size_Medium - align = nobaseline - - max_width = 330 - min_height = 32 - } - - expand = {} - - ### MERIT ### - hbox_merit_with_label = { - datacontext = "[MeritPoolWindow.GetMeritItem( CharacterListItem.GetIndex )]" - - blockoverride "hbox_merit_with_label_background" {} - } - - ### APPOINTMENT SCORE ### - hbox = { - datacontext = "[CharacterListItem]" - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 50 - - text = "ADMIN_WINDOW_MERIT_POOLS_APPOINTMENT_SCORE" - align = nobaseline - } - - using = tooltip_se - tooltipwidget = { - widget_value_breakdown_tooltip = { - block "score_breakdown" { - datacontext = "[MeritPoolWindow.GetSuccessionScoreBreakdown( CharacterListItem.GetCharacter )]" - } - } - } - } - - } - - ### RELATION TO YOU ### - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 470 - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - } - - expand = {} - } - - ### HOUSE, SCORE and MERIT - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 5 - - ### House Coat of Arms - vbox = { - datacontext = "[Character.GetHouse]" - - coa_house_small = { - powerful_family_bonus = { - parentanchor = bottom|right - position = { 7 1 } - size = { 29 29 } - blockoverride "level_icons" {} - } - } - } - - # Currently held Primary Title, if not a Noble Family title - widget = { - size = { 50 64 } - visible = "[Not( Character.GetPrimaryTitle.IsNobleFamilyTitle )]" - - coa_realm_tiny_crown = { - position = { 10 6 } - - blockoverride "coa_button" - { - tooltip = "[Character.GetDefaultRealmFlagTooltipPrimaryTitleClickInfo]" - onclick = "[DefaultOnCoatOfArmsClick(Character.GetPrimaryTitle.GetID)]" - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - visible = "[Character.HasNewAppointmentCooldown]" - - expand = {} - - hbox = { - margin = { 10 0 } - spacing = 10 - min_height = 32 - - background = { - using = Background_Area - margin_top = 5 - margin_bottom = 2 - margin_right = 5 - } - - ### APPOINTMENT TIMEOUT ### - hbox = { - visible = "[Character.HasNewAppointmentCooldown]" - tooltip = "ADMIN_WINDOW_APPOINTMENT_COOLDOWN_TT" - - alert_icon = { - size = { 30 30 } - - texture = "gfx/interface/icons/icon_time.dds" - } - - text_single = { - layoutpolicy_horizontal = expanding - margin_left = 5 - - text = "[Character.GetNewAppointmentCooldownDate.GetTimeDiffFromNow]" - align = nobaseline - } - } - - # GOVERNOR EFFICIENCY -# hbox = { -# tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" -# using = tooltip_ne -# -# icon = { -# name = "char_governor_efficiency_icon" -# size = { 32 32 } -# texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" -# } -# -# text_single = { -# name = "char_governor_efficiency_value" -# text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_VALUE" -# align = nobaseline -# } -# } - } - } - } - - expand = {} - } - - type window_merit_pool_characters = window { - name = "merit_pool_characters_window" # Referenced in Code, don't rename - widgetanchor = right - position = { 20 90 } - size = { 700 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[AdminMeritPool.GetTitle]" - } - - blockoverride "button_close" - { - onclick = "[MeritPoolWindow.Close]" - onclick = "[GovernmentAdministrationWindow.ClearMeritPoolCharacterList]" - } - } - - vbox = { - margin = { 20 5 } - margin_bottom = 15 - layoutpolicy_horizontal = expanding - visible = no - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - # Leaving this commented out just in case - #text_single = { - # layoutpolicy_horizontal = expanding - # margin_bottom = 5 - # - # text = "ADMIN_WINDOW_MERIT_POOLS_PARTICIPANT_INFO" - # default_format = "#weak" - # align = center|nobaseline - # max_width = 580 - #} - - text_multi = { - layoutpolicy_horizontal = expanding - margin_top = 15 - margin_bottom = 5 - max_width = 580 - autoresize = yes - - text = "[AdminMeritPool.GetRequiredMeritLevel]" - default_format = "#weak" - align = center|nobaseline - } - - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_top = 0 - - text_multi = { - autoresize = yes - max_width = 580 - - text = "ADMIN_WINDOW_MERIT_POOLS_CANDIDATE_RANKING_DESC" - } - - tooltipwidget = { - container = { - using = GeneralTooltipSetup - alwaystransparent = no - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - flowcontainer = { - margin = { 20 10 } - margin_bottom = 15 - direction = vertical - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - text_multi = { - margin_bottom = 5 - max_width = 580 - autoresize = yes - - text = "[AdminMeritPool.GetRequiredMeritLevel]" - } - - ### Valid Obligation Level Types - flowcontainer = { - datamodel = "[GovernmentAdministrationWindow.GetAdminPoolTypeObligations]" - ignoreinvisible = yes - direction = vertical - - item = { - flowcontainer = { - visible = "[ObligationLevel.HasTag( AdminMeritPool.GetPoolTypeTag )]" - ignoreinvisible = yes - spacing = 5 - - text_single = { - raw_text = "•" - } - - text_single = { - text = "[ObligationLevel.GetName]" - align = center|nobaseline - } - } - } - } - } - } - - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "filters_visible" { - visible = no - } - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "merit_pools_sort_options" - } - } - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "ADMIN_WINDOW_MERIT_POOLS_EMPTY" - } - - blockoverride "container_implementation" - { - fixedgridbox = { - name = "characters_grid" - addcolumn = 580 - addrow = 140 - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 580 135 } - blockoverride "character_relation" {} - - background = { - using = Background_Frame - } - - background = { - visible = "[ObjectsEqual( Character.Self, GovernmentAdministrationWindow.GetSelectedProminentHouseMember.Self )]" - - using = Background_Frame_Gold - } - } - } - } - } - - blockoverride "portrait_head_margin" - { - margin_left = 5 - - widget_succession_candidate_banner = { - blockoverride "banner_text" - { - text = "[Add_int32( CharacterListItem.GetIndex, '(int32)1' )|O]" - } - } - } - - blockoverride "button_content" - { - vbox_merit_pool_character_item = {} - } - } - } - } - - type hbox_theme_sort_options = hbox { - layoutpolicy_horizontal = expanding - margin = { 16 0 } - margin_bottom = 8 - spacing = 4 - - hbox = { - spacing = 2 - - text_single = { - text = "SORT_BY" - align = nobaseline - } - - dropdown_menu_standard = { - blockoverride "dropdown_active_item_properties" - { - text = "[ThemeOrderOption.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[ThemeOrderOption.GetName]" - } - } - } - - button_standard = { - name = "sort_order" - size = { 25 25 } - - block "sort_order_onclick" - { - onclick = "[GovernmentAdministrationWindow.ReverseSortOrder]" - } - - tooltip = "ADMIN_WINDOW_THEME_SORT_BY" - using = tooltip_nw - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - - block "sort_order_frame" - { - frame = "[BoolTo1And2(GovernmentAdministrationWindow.GetSortOrder)]" - } - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - expand = {} - } - - type widget_childrens_exam_status = widget { - size = { 60 60 } - - datacontext = "[Character.MakeScope]" - - tooltip = "MERIT_TOOLTIP_EXAMINATION_PASSED_CHILD_EXAM" - using = tooltip_se - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/character_interactions/tgp_send_to_childrens_examination_interaction.dds" - enabled = "[HasPassedChildrenExamination(Character)]" - } - - passed_examination_icon = { - visible = "[HasPassedChildrenExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - - failed_examination_icon = { - visible = "[HasFailedChildrenExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - } - - type widget_provincial_exam_status = widget { - size = { 60 60 } - - datacontext = "[Character.MakeScope]" - - tooltip = "MERIT_TOOLTIP_EXAMINATION_PASSED_PROVINCIAL_EXAM" - using = tooltip_se - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/character_interactions/provincial_examination.dds" - enabled = "[HasPassedProvincialExamination(Character)]" - } - - passed_examination_icon = { - visible = "[HasPassedProvincialExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - - failed_examination_icon = { - visible = "[HasFailedProvincialExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - } - - - type widget_metropolitan_exam_status = widget { - size = { 60 60 } - - datacontext = "[Character.MakeScope]" - - tooltip = "MERIT_TOOLTIP_EXAMINATION_PASSED_METROPOLITAN_EXAM" - using = tooltip_se - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/character_interactions/imperial_examination.dds" - enabled = "[HasPassedMetropolitanExamination(Character)]" - } - - passed_examination_icon = { - visible = "[HasPassedMetropolitanExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - - failed_examination_icon = { - visible = "[HasFailedMetropolitanExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - } - - type widget_palace_exam_status = widget { - size = { 60 60 } - - datacontext = "[Character.MakeScope]" - - tooltip = "MERIT_TOOLTIP_EXAMINATION_PASSED_PALACE_EXAM" - using = tooltip_se - - icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/character_interactions/palace_examination.dds" - enabled = "[HasPassedPalaceExamination(Character)]" - } - - passed_examination_icon = { - visible = "[HasPassedPalaceExamination(Character)]" - - size = { 50% 50% } - parentanchor = bottom|right - } - - # no failed stamp, you cannot fail palace exam - } -} - -template Background_Obligation_Banner_Right { - highlight_icon = { - visible = "[ObligationLevel.HasTag( 'byzantine_purple' )]" - size = { 100% 100% } - mirror = horizontal - spritetype = corneredTiled - spriteborder = { 0 8 } - texture_density = 2 - - texture = "gfx/interface/window_military/military_banner_gray.dds" - color = { 0.89 0.5 0.89 1 } - } - - highlight_icon = { - visible = "[ObligationLevel.HasTag( 'military' )]" - size = { 100% 100% } - mirror = horizontal - spritetype = corneredTiled - spriteborder = { 0 8 } - texture_density = 2 - - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - highlight_icon = { - visible = "[And( Not( ObligationLevel.HasTag( 'byzantine_purple' ) ), Not( ObligationLevel.HasTag( 'military' ) ) )]" - size = { 100% 100% } - mirror = horizontal - spritetype = corneredTiled - spriteborder = { 2 8 } - texture_density = 2 - - texture = "gfx/interface/window_military/military_banner_blue.dds" - } -} - -template Background_Area_Administrative_Decoration { - background = { - visible = "[DynastyHouse.IsImperial]" - margin = { 4 4 } - using = Background_Area_Admin_Purple - alpha = 1 - } - - background = { - visible = "[DynastyHouse.IsDominant]" - margin = { 4 4 } - using = Background_Area_Admin_Orange - alpha = 1 - } - - background = { - visible = "[DynastyHouse.IsPowerful]" - margin = { 4 4 } - using = Background_Area_Admin_Blue - alpha = 1 - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - margin_bottom = 2 - spriteborder_bottom = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - margin_top = 2 - spriteborder_top = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin = { 0 -10 } - alpha = 0.2 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } - - background = { - visible = "[DynastyHouse.GetHeadOfHouse.IsPlayer]" - using = Background_Area_Border - using = Background_Frame_Gold - } - - background = { - visible = "[And(Not(DynastyHouse.IsImperial),Not(DynastyHouse.IsPowerful))]" - texture = "gfx/interface/window_administrative_government/powerful_family_decoration.dds" - using = Mask_Rough_Edges - fittype = start - alpha = 1 - tintcolor = { 0.7 0.7 0.7 0.8 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - - } - - background = { - visible = "[DynastyHouse.IsPowerful]" - texture = "gfx/interface/window_administrative_government/powerful_family_decoration.dds" - using = Mask_Rough_Edges - fittype = start - alpha = 1 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - } - - background = { - visible = "[DynastyHouse.IsImperial]" - texture = "gfx/interface/window_administrative_government/imperial_family_decoration.dds" - using = Mask_Rough_Edges - fittype = start - alpha = 1 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphaMultiply - } - } -} - -template Background_Area_Family_Decoration { - background = { - visible = "[DynastyHouse.IsImperial]" - margin = { 4 4 } - using = Background_Area_Admin_Purple - alpha = 1 - } - - background = { - visible = "[DynastyHouse.IsDominant]" - margin = { 4 4 } - using = Background_Area_Admin_Orange - alpha = 1 - } - - background = { - visible = "[DynastyHouse.IsPowerful]" - margin = { 4 4 } - using = Background_Area_Admin_Blue - alpha = 1 - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - margin_bottom = 2 - spriteborder_bottom = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - margin_top = 2 - spriteborder_top = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin = { 0 -10 } - alpha = 0.2 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } - - #background = { - #visible = "[DynastyHouse.GetHeadOfHouse.IsPlayer]" - #using = Background_Area_Border - #using = Background_Frame_Gold - #} -} - -template Background_Area_Admin_Purple { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.5 0.1 0.5 0.6 } - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - alpha = 0.5 - } - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } -} - -template Background_Area_Admin_Blue { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0 0.635 0.9 0.3 } - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - alpha = 0.5 - } - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } -} - -template Background_Area_Admin_Orange { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 1 0.5 0.1 0.6 } - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } -} - -template Expand_Admin_Themes { - on_start = "[GetVariableSystem.Set( 'admin_gov_unassigned_counties_list', 'true' )]" - on_start = "[GetVariableSystem.Set( 'admin_gov_assigned_duchy_themes_list', 'true' )]" - on_start = "[GetVariableSystem.Set( 'admin_gov_unassigned_duchy_themes_list', 'true' )]" -} diff --git a/N3OW/gui/window_great_project.gui b/N3OW/gui/window_great_project.gui deleted file mode 100644 index 2a0594e3..00000000 --- a/N3OW/gui/window_great_project.gui +++ /dev/null @@ -1,529 +0,0 @@ -window = { - name = "great_project" - widgetid = "great_project" - size = { 630 900 } - position = { 660 90 } - datacontext = "[GreatProjectWindow.GetProject]" - - layoutpolicy_vertical = expanding - - layer = middle - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - layoutpolicy_vertical = expanding - - # Name and close button - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[GreatProject.GetName]" - } - - blockoverride "button_close" - { - shortcut = "close_window" - onclick = "[GreatProjectWindow.Close]" - - } - } - - # icon, progress bars - widget = { - size = { 550 220 } - - # background - background = { - name = "illustration" - texture = "[GreatProject.GetIllustration]" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.9 - } - - text_single = { - datacontext = "[GreatProject.GetLocation]" - parentanchor = top|left - position = { 10 5 } - - text = "GREAT_PROJECT_ONGOING_LOCATION" - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 10 5 } - margin_right = 70 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - hbox_project_contribution_status = { - visible = "[Not( GreatProject.IsUnderConstruction )]" - } - } - - expand = {} - } - - vbox = { - expand = {} - - # owner overtext - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 5 - - expand = {} - - widget = { - datacontext = "[GreatProject.GetOwner]" - visible = "[And( Character.IsValid, Not( Character.IsLocalPlayer ) )]" - size = { 85 145 } - - portrait_head = { - name = "portrait_project_owner" - datacontext = "[GreatProject.GetOwner]" - visible = "[And( And( Character.IsValid, GreatProject.GetType.ShouldShowOwnerPortrait ), Not( Character.IsLocalPlayer ) )]" - parentanchor = bottom|right - position = { 0 -5 } - } - - text_label_right = { - text = "GREAT_PROJECT_OWNER_LABEL" - visible = "[GreatProject.GetType.ShouldShowOwnerPortrait]" - max_width = 220 - align = right|nobaseline - position = { -10 0 } - } - } - } - - # construction progress bar - vbox = { - visible = "[GreatProject.IsUnderConstruction]" - layoutpolicy_horizontal = expanding - allow_outside = yes - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - margin_bottom = 3 - - expand = {} - - text_single = { - text = "GREAT_PROJECT_CONSTRUCTION_TIME_UNTIL_COMPLETION" - visible = "[GreatProject.IsUnderConstruction]" - max_width = 220 - align = right|nobaseline - } - } - - widget = { - allow_outside = yes - size = { 550 15 } - - progressbar_standard = { - name = "great_project_progressbar" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - size = { 550 15 } - value = "[GreatProject.GetConstructionProgress]" - direction = horizontal - - tooltip = "[GreatProject.GetConstructionEndDateDesc]" - } - - hbox = { - visible = "[DataModelHasItems( GreatProjectWindow.AccessOptionalContributions )]" - allow_outside = yes - position = { 0 -50 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[FixedPointToInt( GreatProject.GetDeadlinePercentageForContributions )]" - } - - widget = { - name = "deadline_marker" - visible = yes - allow_outside = yes - size = { 45 50 } - - tooltip = "GREAT_PROJECT_CONTRIBUTION_DEADLINE" - - background = { - using = Background_Area_Dark - alpha = 0.4 - - margin = { 15 0 } - margin_top = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - - background = { - texture = "gfx/interface/icons/map_icons/portrait_pin.dds" - } - - icon = { - parentanchor = bottom|hcenter - position = { 0 14 } - size = { 6 13 } - texture = "gfx/interface/colors/white.dds" - alpha = 0.2 - - using = Mask_Rough_Edges - } - - icon_flat_standard = { - name = "deadline_icon" - parentanchor = center - position = { 0 -5 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/contribute.dds" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[FixedPointToInt( Subtract_CFixedPoint( '(CFixedPoint)100', GreatProject.GetDeadlinePercentageForContributions ) )]" - } - } - } - } - } - } - - # CONTRIBUTIONS SECTION - vbox = { - name = "contribution_tab" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - name = "contributions_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - margin_bottom = 15 - - text = "[GreatProject.GetProjectCompletedEffectsDescription]" - autoresize = yes - max_width = 520 - } - - vbox = { - datamodel = "[GreatProjectWindow.AccessMandatoryContributions]" - layoutpolicy_horizontal = expanding - - margin_bottom = 15 - spacing = 5 - - text_label_center = { - text = "great_project_list_mandatory_contributions" - default_format = "#bold" - } - - text_single = { - visible = "[IsDataModelEmpty( GreatProjectWindow.AccessMandatoryContributions )]" - text = "GREAT_PROJECT_NO_CONTRIBUTION_MANDATORY" - default_format = "#weak" - } - - item = { - widget_mandatory_project_contribution_item = { - visible = "[ContributionItem.IsShown]" - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - text = "GREAT_PROJECT_CONTRIBUTION_MANDATORY_EXPLANATION" - default_format = "#weak" - align = center - max_width = 500 - autoresize = yes - - margin_bottom = 15 - } - - vbox = { - datamodel = "[GreatProjectWindow.AccessOptionalContributions]" - layoutpolicy_horizontal = expanding - - margin_bottom = 15 - spacing = 5 - - text_label_center = { - text = "great_project_list_optional_contributions" - default_format = "#bold" - } - - text_single = { - visible = "[IsDataModelEmpty( GreatProjectWindow.AccessOptionalContributions )]" - text = "GREAT_PROJECT_NO_CONTRIBUTION_OPTIONAL" - default_format = "#weak" - } - - item = { - widget_optional_project_contribution_item = { - visible = "[ContributionItem.IsShown]" - layoutpolicy_horizontal = expanding - } - } - } - } - } - - vbox = { - visible = "[GreatProjectWindow.HasSelectedContributions]" - - margin = { 0 15} - margin_top = 10 - spacing = 10 - - text_single = { - text = "[GreatProjectWindow.GetSelectedContributionsCost( GetPlayer )]" - align = nobaseline - } - - button_primary = { - name = "fund_contributions_button" - visible = "[GreatProjectWindow.CanContributeToGreatProject( GetPlayer )]" - size = { 320 33 } - - text = "[SelectLocalization( GreatProjectWindow.CanStartProjectWithSelectedContributions, 'GREAT_PROJECT_FUND_CONTRIBUTIONS_START', 'GREAT_PROJECT_FUND_CONTRIBUTIONS' )]" - - enabled = "[And( GreatProjectWindow.HasSelectedContributions, GreatProjectWindow.CanAffordSelectedContributions( GetPlayer ) )]" - onclick = "[GreatProjectWindow.FundContributions( GetPlayer )]" - - tooltip = "[GreatProjectWindow.GetCannotAffordDescription( GetPlayer )]" - tooltip_visible = "[Not( GreatProjectWindow.CanAffordSelectedContributions( GetPlayer ) )]" - } - } - } - - hbox = { - visible = "[GreatProjectWindow.CanCancelGreatProject( GetPlayer )]" - layoutpolicy_horizontal = expanding - - margin = { 0 15 } - - button_standard = { - name = "abort_button" - text = "GREAT_PROJECT_CANCEL_LABEL" - - onclick = "[GreatProjectWindow.ShowCancelGreatProjectConfirmation]" - - tooltip = "GREAT_PROJECT_CANCEL_LABEL_TT" - } - } - } -} - -types Project -{ - type contributor_list_button = button_standard { - name = "show_contributors_button" - # Only show this button when the project has been created and is not yet funded - visible = "[And( ObjectsEqual( ContributionItem.GetProject.GetOwner, GetPlayer ), And( GreatProjectWindow.CanShowPotentialContributorsList, Not( ContributionItem.IsFunded ) ) )]" - size = { 70 50 } - - onclick = "[GreatProjectWindow.ShowPotentialContributors( ContributionItem.Self )]" - - tooltip = "[ContributionItem.GetPotentialContributorsTooltip]" - - hbox = { - expand = {} - - icon = { - using = Master_Button_Modify_Texture - texture = "gfx/interface/icons/flat_icons/window_me.dds" - size = { 25 25 } - margin_left = 3 - } - - expand = {} - - text_single = { - text = "[ContributionItem.GetNumberOfValidContributors]" - align = right|nobaseline - margin_right = 3 - } - - expand = {} - } - } - - type widget_mandatory_project_contribution_item = widget_project_plan_contribution_item { - size = { 300 45 } - datacontext = "[ContributionItem.GetContributor]" - - blockoverride "contributor_slot" - { - # sigils for mandatory contributions - coa_character_sigil = { - name = "contributor_house_coa_player" - visible = "[And( Character.IsValid, Character.IsLocalPlayer )]" - - blockoverride "size" - { - size = { 30 30 } - } - blockoverride "sigil_size" - { - size = { 34 34 } - } - } - - coa_character_sigil = { - name = "contributor_house_coa_other" - visible = "[And( Character.IsValid, Not( Character.IsLocalPlayer ) )]" - alpha = 0.6 - - blockoverride "size" - { - size = { 30 30 } - } - blockoverride "sigil_size" - { - size = { 34 34 } - } - } - } - - blockoverride "contribution_status" - { - button_checkbox = { - visible = "[Not( ContributionItem.GetContributor.IsValid )]" - enabled = "[ContributionItem.IsContributionFundable( GetPlayer )]" - size = { 30 30 } - checked = "[ContributionItem.IsSelected]" - onclick = "[ContributionItem.ToggleSelection]" - - tooltip = "GREAT_PROJECT_CONTRIBUTION_UNAVAILABLE_TT" - tooltip_visible = "[Not( ContributionItem.IsContributionFundable( GetPlayer ) )]" - } - } - - blockoverride "contributor_interaction" - { - contributor_list_button = {} - } - } - - type widget_optional_project_contribution_item = widget_project_plan_contribution_item { - datacontext = "[ContributionItem.GetContributor]" - - blockoverride "contributor_slot" - { - coa_character_sigil = { - name = "contributor_house_coa_player" - visible = "[And( Character.IsValid, Character.IsLocalPlayer )]" - - blockoverride "size" - { - size = { 30 30 } - } - blockoverride "sigil_size" - { - size = { 34 34 } - } - } - - coa_character_sigil = { - name = "contributor_house_coa_other" - visible = "[And( Character.IsValid, Not( Character.IsLocalPlayer ) )]" - alpha = 0.6 - - blockoverride "size" - { - size = { 30 30 } - } - blockoverride "sigil_size" - { - size = { 34 34 } - } - } - - icon = { - visible = "[And( Not(Character.IsValid), And( Not( GreatProject.CanFundOptionalContributions ), GreatProject.IsUnderConstruction ) )]" - texture = "gfx/interface/icons/symbols/icon_cross.dds" - size = { 30 30 } - tooltip = "GREAT_PROJECT_CANNOT_FUND_TOO_LATE_TT" - } - } - - blockoverride "contribution_status" - { - button_checkbox = { - visible = "[And( Not( ContributionItem.GetContributor.IsValid ), GreatProject.CanFundOptionalContributions )]" - enabled = "[ContributionItem.IsContributionFundable( GetPlayer )]" - size = { 30 30 } - checked = "[ContributionItem.IsSelected]" - onclick = "[ContributionItem.ToggleSelection]" - - tooltip = "GREAT_PROJECT_CONTRIBUTION_UNAVAILABLE_TT" - tooltip_visible = "[Not( ContributionItem.IsContributionFundable( GetPlayer ) )]" - } - } - - blockoverride "contributor_interaction" - { - contributor_list_button = {} - } - - } -} diff --git a/N3OW/gui/window_hired_troops_detail.gui b/N3OW/gui/window_hired_troops_detail.gui deleted file mode 100644 index ccbdee7c..00000000 --- a/N3OW/gui/window_hired_troops_detail.gui +++ /dev/null @@ -1,796 +0,0 @@ -window = { - name = "hired_troop_detail_view" - widgetid = "hired_troop_detail_view" - datacontext = "[HiredTroopDetailView.GetHiredTroop]" - parentanchor = top|right - position = { -610 90 } - - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = -610 - on_start = "[GetVariableSystem.Set( 'hired_troop_detail_view_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -580 - on_start = "[GetVariableSystem.Clear( 'hired_troop_detail_view_open' )]" - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - state = { - name = "mercenary_details_refresh" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[HiredTroopItem.GetName]" - } - - blockoverride "button_close" - { - onclick = "[HiredTroopDetailView.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "header_details" - layoutpolicy_horizontal = expanding - margin = { 5 0 } - spacing = 5 - - coa_realm_medium = { - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - visible = "[Not( HiredTroopItem.IsAdministrativeArmy )]" - } - coa_title_medium_crown = { - datacontext = "[HiredTroopItem.GetTitle]" - visible = "[HiredTroopItem.IsAdministrativeArmy]" - scale = 0.9 - } - - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - vbox_holy_order_troop_header_details = {} - - vbox_mercenary_company_header_details = {} - - vbox_administrative_army_header_details = {} - - vbox_hireable_ruler_header_details = {} - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 5 - - background = { - using = Background_Area - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_REGIMENTS" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "soldiers_count" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_LIST_NUMBER_OF_SOLDIERS" - default_format = "#high" - using = Font_Size_Big - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard = { - name = "strength_bar" - size = { 380 15 } - value = "[HiredTroopItem.GetSoldiersProgressBarRatio]" - } - } - } - - expand = {} - } - } - - vbox = { - name = "regiments_details" - layoutpolicy_horizontal = expanding - - vbox = { - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(HiredTroopItem.GetRegiments), '(int32)4')]" - margin = { 15 0 } - margin_top = 10 - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "regiments" - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(HiredTroopItem.GetRegiments), '(int32)4')]" - addcolumn = 190 - addrow = 110 - datamodel = "[HiredTroopItem.GetRegiments]" - flipdirection = yes - datamodel_wrap = 2 - - item = { - widget = { - size = { 185 105 } - - datacontext = "[HiredTroopRegiment.GetRegiment]" - - widget = { - size = { 100% 100% } - visible = "[Not(HiredTroopRegiment.IsLevies)]" - - tooltipwidget = regiment_container_tooltip - } - - background = { - name = "image" - visible = "[HiredTroopRegiment.IsLevies]" - - texture = "gfx/interface/illustrations/men_at_arms_big/levies.dds" - alpha = 0.7 - using = Mask_Rough_Edges - margin = { -2 -2 } - } - - background = { - name = "image" - visible = "[Not(HiredTroopRegiment.IsLevies)]" - - texture = "[HiredTroopRegiment.GetMenAtArmsType.GetHorizontalImageForCulture( HiredTroopRegiment.GetRegiment.GetOwner.GetCulture )]" - alpha = 0.7 - using = Mask_Rough_Edges - margin = { -2 -2 } - } - - background = { - using = Background_Frame - } - - flowcontainer = { - parentanchor = bottom|left - direction = vertical - margin = { 10 10 } - ignoreinvisible = yes - spacing = 3 - - flowcontainer = { - visible = "[HiredTroopRegiment.IsLevies]" - spacing = 3 - - icon = { - parentanchor = vcenter - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "soldiers_label" - text = HIRED_TROOPS_VIEW_SOLDIER_COUNT - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - flowcontainer = { - visible = "[Not(HiredTroopRegiment.IsLevies)]" - spacing = 3 - - icon = { - size = { 25 25 } - texture = "[HiredTroopRegiment.GetMenAtArmsType.GetIcon]" - } - - text_single = { - name = "soldiers_label" - text = HIRED_TROOPS_VIEW_SOLDIER_COUNT - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - - progressbar_standard = { - name = "strength_bar" - size = { 160 10 } - value = "[HiredTroopRegiment.GetProgressBarRatio]" - } - } - } - } - } - } - - #### REGIMENTS #### - scrollbox = { - visible = "[GreaterThan_int32(GetDataModelSize(HiredTroopItem.GetRegiments), '(int32)4')]" - layoutpolicy_horizontal = expanding - maximumsize = { -1 300 } - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - blockoverride "scrollbox_margins" { - margin_top = 15 - margin_bottom = 10 - } - - blockoverride "scrollbox_content" { - vbox = { - name = "regiments_area" - - fixedgridbox = { - name = "regiments" - addcolumn = 190 - addrow = 110 - datamodel = "[HiredTroopItem.GetRegiments]" - flipdirection = yes - datamodel_wrap = 2 - - item = { - widget = { - datacontext = "[HiredTroopRegiment.GetRegiment]" - size = { 185 105 } - - widget = { - visible = "[Not(HiredTroopRegiment.IsLevies)]" - size = { 100% 100% } - - tooltipwidget = regiment_container_tooltip - } - - background = { - name = "image" - visible = "[HiredTroopRegiment.IsLevies]" - texture = "gfx/interface/illustrations/men_at_arms_big/levies.dds" - margin = { -2 -2 } - - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - name = "image" - visible = "[Not(HiredTroopRegiment.IsLevies)]" - texture = "[HiredTroopRegiment.GetMenAtArmsType.GetHorizontalImageForCulture( HiredTroopRegiment.GetRegiment.GetOwner.GetCulture )]" - margin = { -2 -2 } - - using = Mask_Rough_Edges - alpha = 0.7 - } - - background = { - using = Background_Frame - } - - flowcontainer = { - parentanchor = bottom|left - direction = vertical - margin = { 10 10 } - ignoreinvisible = yes - - flowcontainer = { - visible = "[HiredTroopRegiment.IsLevies]" - spacing = 5 - - icon = { - parentanchor = vcenter - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "soldiers_label" - text = HIRED_TROOPS_VIEW_SOLDIER_COUNT - default_format = "#high" - using = Font_Size_Medium - } - } - - flowcontainer = { - visible = "[Not(HiredTroopRegiment.IsLevies)]" - spacing = 5 - - icon = { - size = { 30 30 } - texture = "[HiredTroopRegiment.GetMenAtArmsType.GetIcon]" - } - - text_single = { - name = "soldiers_label" - text = HIRED_TROOPS_VIEW_SOLDIER_COUNT - default_format = "#high" - using = Font_Size_Medium - } - } - - progressbar_standard = { - name = "strength_bar" - size = { 160 10 } - value = "[HiredTroopRegiment.GetProgressBarRatio]" - } - } - } - } - } - } - } - } - } - - vbox = { - name = "leader_details" - layoutpolicy_horizontal = expanding - - margin = { 15 5 } - spacing = 5 - - text_label_left = { - name = "leader_label_ho" - visible = "[HiredTroopItem.IsHolyOrder]" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_HO_GRANDMASTER_LABEL" - default_format = "#low" - } - - text_label_left = { - name = "leader_label_ma" - visible = "[HiredTroopItem.IsMercenaryCompany]" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_MC_CAPTAIN_LABEL" - default_format = "#low" - } - - text_label_left = { - name = "leader_label_aa" - visible = "[HiredTroopItem.IsAdministrativeArmy]" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_AA_GOVERNOR_LABEL" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - portrait_head_small = { - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - name = "leader_name" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 294 - text = "[HiredTroopItem.GetTitle.GetHolder.GetUIName]" - default_format = "#high" - } - - hbox = { - name = "governor_skills" - visible = "[HiredTroopItem.IsAdministrativeArmy]" - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY - tooltip = ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT - default_format = "#low" - } - - expand = {} - } - - hbox = { - name = "commander_leader_skills" - visible = "[Or( Or( HiredTroopItem.IsHolyOrder, HiredTroopItem.IsMercenaryCompany ), HiredTroopItem.IsHireableRuler )]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 5 - - skill_icon_label = { - name = "martial_skill" - datacontext = "[HiredTroopItem.GetMartialSkillItem]" - } - - hbox = { - name = "commander_traits" - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - datamodel = "[HiredTroopItem.GetCommanderTraits]" - - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "glow_radius" - { - glow_radius = 4 - } - } - } - } - - expand = {} - } - - expand = {} - } - - expand = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 5 } - margin_bottom = 10 - spacing = 5 - - background = { - using = Background_Area - } - - vbox = { - name = "hire_area" - visible = "[Not( HiredTroopItem.IsHiredByPlayer )]" - spacing = 5 - - text_single = { - name = "mercenary_hire_info" - visible = "[HiredTroopItem.IsMercenaryCompany]" - text = "HIRED_TROOPS_VIEW_MC_HIRE_INFO" - } - - text_single = { - visible = "[HiredTroopItem.IsHolyOrder]" - name = "holy_order_hire_info" - text = "HIRED_TROOPS_VIEW_HO_HIRE_INFO" - } - - text_multi = { - visible = "[And( HiredTroopItem.IsHired, HiredTroopItem.GetHolyOrder.IsPlayerPatron )]" - text = "HIRED_TROOPS_HIRED_BY" - autoresize = yes - max_width = 280 - } - - text_single = { - name = "hireable_ruler_hire_info" - visible = "[HiredTroopItem.IsHireableRuler]" - text = "HIRED_TROOPS_VIEW_HR_COST_INFO" - } - - text_single = { - name = "admin_cost_area" - visible = "[And( HiredTroopItem.IsAdministrativeArmy, And( GetPlayer.IsIndependentRuler, Not( HiredTroopItem.IsHiredByPlayer ) ) )]" - text = "HIRED_TROOPS_REASSIGN_COST" - tooltip = "[HiredTroopItem.GetAdminReassignCostTooltip]" - } - - hbox = { - spacing = 5 - - button_primary = { - name = "hire_button_non_interaction" - visible = "[Not( Or( HiredTroopItem.IsHireableRuler, HiredTroopItem.IsAdministrativeArmy ) )]" - onclick = "[HiredTroopItem.Hire]" - enabled = "[HiredTroopItem.CanBeHired]" - text = "HIRED_TROOPS_VIEW_HIRE" - - using = tooltip_ne - tooltip = "[HiredTroopItem.GetHireTooltip]" - } - - button_primary = { - name = "hire_button_non_interaction_admin" - visible = "[And(HiredTroopItem.IsAdministrativeArmy, GetPlayer.IsIndependentRuler)]" - onclick = "[HiredTroopItem.Hire]" - enabled = "[HiredTroopItem.CanBeHired]" - text = "HIRED_TROOPS_REQUEST_AS_EMPEROR" - - using = tooltip_ne - tooltip = "[HiredTroopItem.GetHireTooltip]" - } - - button_primary = { - name = "hire_button_interaction" - visible = "[HiredTroopItem.IsHireableRuler]" - datacontext = "[HiredTroopItem.GetHireableRuler]" - - onclick = "[Character.OpenPlayerInteraction( 'hire_laamp_mercenaries_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' )]" - text = "HIRED_TROOPS_VIEW_HIRE" - tooltip = "[Character.GetPlayerInteractionTooltip( 'hire_laamp_mercenaries_interaction' )]" - - using = tooltip_ne - } - - button_standard = { - name = "reassign_button" - visible = "[HiredTroopItem.CanBeReassigned]" - onclick = "[HiredTroopDetailView.OpenTitleTroopAssignmentView]" - enabled = "[HiredTroopItem.CanBeHired]" - tooltip = "[HiredTroopItem.GetHireTooltip]" - - text = "HIRED_TROOPS_VIEW_REASSIGN" - } - - hbox = { - visible = "[HiredTroopItem.IsAdministrativeArmy]" - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - spacing = 8 - - button_standard = { - name = "request_admin_troops_from_emperor" - visible = "[And( Not(Character.IsPlayer), Character.IsPlayerInteractionShown('request_emperor_title_troops_interaction') )]" - enabled = "[Character.IsPlayerInteractionValid('request_emperor_title_troops_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_emperor_title_troops_interaction', HiredTroopItem.GetTitle)]" - tooltip = "[Character.GetPlayerInteractionTooltip('request_emperor_title_troops_interaction')]" - - text = "HIRED_TROOPS_REQUEST_FROM_EMPEROR" - using = tooltip_se - } - - button_standard = { - name = "hire_peer_admin_vassal" - visible = "[Character.IsPlayerInteractionShown('request_ally_title_troops_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('request_ally_title_troops_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_ally_title_troops_interaction', HiredTroopItem.GetTitle)]" - tooltip = "[Character.GetPlayerInteractionTooltip('request_ally_title_troops_interaction')]" - - text = "HIRED_TROOPS_REQUEST_FROM_GOVERNOR" - using = tooltip_se - } - } - } - } - - vbox = { - visible = "[And( HiredTroopItem.IsAdministrativeArmy, HiredTroopItem.IsHiredByPlayer )]" - margin_top = 10 - - button_primary = { - name = "return_button" - visible = "[HiredTroopItem.GetTitle.CanReturnTitleMaaToOwner]" - onclick = "[HiredTroopItem.GetTitle.ReturnTitleMaaToOwner]" - - text = "HIRED_TROOPS_VIEW_RETURN" - } - } - - button_primary = { - name = "take_back_button" - visible = "[Character.IsPlayerInteractionShown('request_title_troops_back_interaction')]" - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - - enabled = "[Character.IsPlayerInteractionValid('request_title_troops_back_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_title_troops_back_interaction', HiredTroopItem.GetTitle)]" - tooltip = "[Character.GetPlayerInteractionTooltip('request_title_troops_back_interaction')]" - - text = "HIRED_TROOPS_VIEW_RECLAIM" - } - - vbox = { - name = "extend_area" - visible = "[And( HiredTroopItem.IsMercenaryCompany, HiredTroopItem.IsHiredByPlayer )]" - spacing = 5 - - text_single = { - name = "time_left" - datacontext = "[HiredTroopItem.GetMercenaryCompany]" - text = "HIRED_TROOPS_VIEW_HIRED_BY_ME" - default_format = "#weak" - } - - text_single = { - name = "hire_info" - text = "HIRED_TROOPS_VIEW_MC_HIRE_INFO" - align = nobaseline - } - - hbox = { - spacing = 5 - - button_primary = { - datacontext = "[HiredTroopItem.GetMercenaryCompany]" - tooltip = "RAISE_HIRED_TROOP" - onclick = "[RaiseMercenaryCompany(MercenaryCompany.Self)]" - text = "RAISE_HIRED_TROOP" - enabled = "[And(MercenaryCompany.IsHiredByLocalPlayer, MercenaryCompany.CanBeRaised)]" - } - - button_standard = { - name = "extend_button" - onclick = "[HiredTroopItem.Extend]" - enabled = "[HiredTroopItem.CanBeExtended]" - text = "HIRED_TROOPS_VIEW_MC_EXTEND" - - using = tooltip_ne - tooltip = "[HiredTroopItem.GetExtendTooltip]" - } - } - } - } - } - } -} - - -types HiredTroopHolyOrderDetails -{ - type vbox_holy_order_troop_header_details = vbox - { - visible = "[HiredTroopItem.IsHolyOrder]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "HIRED_TROOPS_VIEW_HO_NUM_HOLDINGS" - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "HIRED_TROOPS_VIEW_HO_CAPITAL" - layoutpolicy_horizontal = expanding - } - - text_multi = { - text = "HIRED_TROOPS_VIEW_HO_PATRON" - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 280 - } - } -} - -types HiredTroopMercenaryCompanyDetails -{ - type vbox_mercenary_company_header_details = vbox - { - visible = "[HiredTroopItem.IsMercenaryCompany]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "culture_text" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_MC_CULTURE" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_MC_CAPITAL" - default_format = "#low" - } - } -} - -types HiredTroopAdministrativeArmyDetails -{ - type vbox_administrative_army_header_details = vbox - { - visible = "[HiredTroopItem.IsAdministrativeArmy]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "culture_text" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_AA_HEADER_NAME" - default_format = "#high" - max_width = 350 - using = Font_Size_Medium - } - - text_multi = { - name = province_army_status - layoutpolicy_horizontal = expanding - - datacontext = "[HiredTroopItem.GetAdministrativeTitle]" - text = "TITLE_TROOPS_MAPMODE_TOOLTIP_STATUS" - default_format = "#low" - autoresize = yes - max_width = 350 - } - } -} - -types HiredTroopHireableRulerDetails -{ - type vbox_hireable_ruler_header_details = vbox - { - visible = "[HiredTroopItem.IsHireableRuler]" - layoutpolicy_horizontal = expanding - - text_single = { - name = "culture_text" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_HR_NAME" - default_format = "#high" - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_VIEW_HR_CAPITAL" - default_format = "#low" - } - } -} diff --git a/N3OW/gui/window_house_aspiration.gui b/N3OW/gui/window_house_aspiration.gui deleted file mode 100644 index 4fc255a8..00000000 --- a/N3OW/gui/window_house_aspiration.gui +++ /dev/null @@ -1,599 +0,0 @@ -############################### -### House Aspiration Window ### -############################### - -window = { - name = "window_house_aspiration" - widgetid = "window_house_aspiration" - datacontext = "[HouseAspirationWindow.GetDynastyHouse]" - - size = { 880 910 } - parentanchor = center - resizable = no - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Background - using = Window_Decoration - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - position_y = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - - position_y = 10 - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "FAMILY_ATTRIBUTE_WINDOW_TITLE_EDIT" - } - - blockoverride "button_close" - { - onclick = "[HouseAspirationWindow.Close]" - } - } - - vbox_house_aspirations_custom = { - visible = "[HasSpecialHouseAspiration(DynastyHouse)]" - } - hbox_house_aspirations_default = { - visible = "[Not(HasSpecialHouseAspiration(DynastyHouse))]" - } - } -} - -types HouseAspirations -{ - type vbox_house_aspiration_level_info = vbox { - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - visible = "[HouseAspiration.HasMultipleLevels]" - layoutpolicy_horizontal = expanding - - text = "[HouseAspiration.GetLevelName( PdxGuiWidget.GetIndexInDataModel )]" - fontsize = 18 - } - - text_single = { - visible = "[And( HouseAspirationWindow.IsCurrentHouseAspirationSelected, And( HouseAspiration.HasMultipleLevels, EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, DynastyHouse.GetHouseAspirationLevelIndex ) ) )]" - - text = "FAMILY_ATTRIBUTE_WINDOW_CURRENT_LEVEL" - default_format = "#weak" - align = nobaseline - } - } - - text_single = { - visible = "[AIWatchWindowsEnabled]" - layoutpolicy_horizontal = expanding - - raw_text = "AI score: [HouseAspiration.GetLevelAiScore( GetPlayer, PdxGuiWidget.GetIndexInDataModel )]" - default_format = "#D" - } - - text_multi = { - layoutpolicy_horizontal = expanding - min_width = 450 - max_width = 450 - autoresize = yes - - text = "[HouseAspiration.GetLevelDesc( PdxGuiWidget.GetIndexInDataModel )]" - } - } - - type attribute_button = button_standard_clean { - - block "size" { - size = { 120 110 } - } - - onclick = "[HouseAspirationWindow.SelectHouseAspiration( HouseAspiration.Self )]" - down = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - alwaystransparent = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - - icon = { - parentanchor = center - - block "icon_size" { - size = { 100 100 } - } - - #should get a rendered icon instead - texture = "[HouseAspiration.GetIcon]" - } - - blockoverride "button_standard_current" - { - visible = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetDynastyHouse.GetHouseAspiration.Self )]" - } - - background = { - using = Background_Area - } - - - widget = { - size = {98% 20%} - parentanchor = bottom - position = { 0 -4 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 2 } - - background = { - using = Background_Area_Dark - } - text_single = { - max_width = 120 - text = "[HouseAspiration.GetName]" - default_format = "#clickable" - fontsize_min = 10 - align = nobaseline - } - } - } - - selection_glow = { - visible = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - } - - } - - type vbox_house_aspirations_custom = vbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - spacing = 25 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - fixedgridbox = { - datamodel = "[HouseAspirationWindow.GetAvailableHouseAspirations]" - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(HouseAspirationWindow.GetAvailableHouseAspirations), '(int32)6')]" - - addcolumn = 128 - addrow = 120 - datamodel_wrap = 6 - flipdirection = yes - - item = { - attribute_button = {} - } - } - - fixedgridbox = { - datamodel = "[HouseAspirationWindow.GetAvailableHouseAspirations]" - visible = "[LessThan_int32(GetDataModelSize(HouseAspirationWindow.GetAvailableHouseAspirations), '(int32)6')]" - - addcolumn = 155 - addrow = 110 - datamodel_wrap = 6 - flipdirection = yes - - item = { - attribute_button = { - blockoverride "size" { - size = { 146 130 } - } - blockoverride "icon_size" { - size = { 132 132 } - } - } - } - } - } - - vbox = { - datacontext = "[HouseAspirationWindow.GetHouseAspiration]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - text_label_center = { - layoutpolicy_horizontal = expanding - fontsize = 20 - text = "FAMILY_ATTRIBUTE_WINDOW_SELECTED" - } - } - - hbox = { - name = "level_track" - datamodel = "[HouseAspiration.GetLevels]" - visible = "[GreaterThan_int32( GetDataModelSize( HouseAspiration.GetLevels ), '(int32)1' )]" - margin_bottom = 12 - margin_top = 4 - - item = { - hbox = { - widget = { - name = "connecting_line" - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - layoutpolicy_horizontal = expanding - size = { 16 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - button_icon = { - down = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - alwaystransparent = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - size = { 60 60 } - texture = "gfx/interface/buttons/button_round_big.dds" - - onclick = "[HouseAspirationWindow.SetSelectedLevelIndex( PdxGuiWidget.GetIndexInDataModel )]" - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - alwaystransparent = yes - texture = "[HouseAspirationWindow.GetLevelIconForHouseAspirationLevel(PdxGuiWidget.GetIndexInDataModel)]" - } - background = { - visible = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - texture = "gfx/interface/window_county/building_status_circle.dds" - framesize = { 120 120 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 3 - } - } - } - } - } - } - - scrollbox = { - name = "house_aspiration_levels" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 10 0 } - margin_bottom = 20 - } - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - margin_top = 12 - datamodel = "[HouseAspiration.GetLevels]" - item = { - vbox_house_aspiration_level_info = { - visible = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - } - } - } - } - } - - expand = {} - - vbox = { - visible = "[HouseAspirationWindow.CanEdit]" - margin = { 15 15 } - spacing = 10 - - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[HouseAspirationWindow.ShouldShowCooldownNotification]" - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "FAMILY_ATTRIBUTE_WINDOW_COOLDOWN_ALERT" - max_width = 450 - autoresize = yes - } - - text_multi = { - visible = "[DynastyHouse.IsHouseAttributeInactive]" - layoutpolicy_horizontal = expanding - - text = "FAMILY_ATTRIBUTE_WINDOW_ALERT" - max_width = 450 - autoresize = yes - } - - text_single = { - visible = "[HouseAspirationWindow.HasSelectedHouseAspirationCost]" - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "FAMILY_ATTRIBUTE_WINDOW_HOUSE_POWER_COST" - } - - hbox = { - # Family Attributes for Administrative - button_primary_big = { - visible = "[Not(And( HouseAspirationWindow.IsCurrentHouseAspirationSelected, HouseAspiration.HasMultipleLevels ))]" - text = "FAMILY_ATTRIBUTE_WINDOW_CHANGE_ATTRIBUTE" - - enabled = "[IsValidCommand( HouseAspirationWindow.ConfirmHouseAspiration )]" - onclick = "[CreateCommandPopup( HouseAspirationWindow.ConfirmHouseAspiration )]" - onclick = "[HouseAspirationWindow.Close]" - tooltip = "[SelectLocalization( IsValidCommand( HouseAspirationWindow.ConfirmHouseAspiration ), HouseAspiration.GetHouseAspirationChangeEffectDesc, GetCommandDesc( HouseAspirationWindow.ConfirmHouseAspiration ))]" - } - - button_primary_big = { - visible = "[And( HouseAspirationWindow.IsCurrentHouseAspirationSelected, HouseAspiration.HasMultipleLevels )]" - text = "FAMILY_ATTRIBUTE_WINDOW_UPGRADE_HOUSE_POWER" - - enabled = "[IsValidCommand( HouseAspirationWindow.UpgradeHouseAspiration )]" - onclick = "[CreateCommandPopup( HouseAspirationWindow.UpgradeHouseAspiration )]" - onclick = "[HouseAspirationWindow.Close]" - tooltip = "[SelectLocalization( IsValidCommand( HouseAspirationWindow.UpgradeHouseAspiration ), HouseAspiration.GetHouseAspirationUpgradeEffectDesc, GetCommandDesc( HouseAspirationWindow.UpgradeHouseAspiration ))]" - } - } - } - } - } - - type hbox_house_aspirations_default = hbox { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - scrollbox = { - visible = "[HouseAspirationWindow.CanEdit]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 300 -1 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[HouseAspirationWindow.GetAvailableHouseAspirations]" - spacing = 5 - - item = { - button_standard = { - alwaystransparent = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - size = { 280 40 } - - onclick = "[HouseAspirationWindow.SelectHouseAspiration( HouseAspiration.Self )]" - down = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - - blockoverride "button_standard_current" - { - visible = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetDynastyHouse.GetHouseAspiration.Self )]" - } - - selection_glow = { - visible = "[ObjectsEqual( HouseAspiration.Self, HouseAspirationWindow.GetHouseAspiration )]" - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - spacing = 5 - - button_icon = { - alwaystransparent = yes - size = { 30 30 } - texture = "[HouseAspiration.GetSmallIcon]" - } - - text_single = { - max_width = 190 - text = "[HouseAspiration.GetName]" - align = nobaseline - default_format = "#clickable" - } - - expand = {} - } - } - } - - expand = {} - } - } - } - - vbox = { - datacontext = "[HouseAspirationWindow.GetHouseAspiration]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - background = { - texture = "[HouseAspiration.GetIllustration]" - fittype = centercrop - using = Mask_Rough_Edges - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "FAMILY_ATTRIBUTE_WINDOW_SELECTED" - using = Font_Size_Medium - } - - hbox = { - name = "level_track" - datamodel = "[HouseAspiration.GetLevels]" - visible = "[GreaterThan_int32( GetDataModelSize( HouseAspiration.GetLevels ), '(int32)1' )]" - margin_bottom = 15 - - item = { - hbox = { - widget = { - name = "connecting_line" - visible = "[GreaterThan_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - layoutpolicy_horizontal = expanding - size = { 16 6 } - - background = { - texture = "gfx/interface/icons/building_types/building_buttons_connector.dds" - margin = { 2 0 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - button_icon = { - down = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - alwaystransparent = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - size = { 45 45 } - texture = "gfx/interface/buttons/button_round_big.dds" - - onclick = "[HouseAspirationWindow.SetSelectedLevelIndex( PdxGuiWidget.GetIndexInDataModel )]" - - button_icon_highlight = { - name = "level_icon" - parentanchor = center - size = { 41 24 } - down = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - alwaystransparent = yes - texture = "[HouseAspirationWindow.GetLevelIconForHouseAspirationLevel(PdxGuiWidget.GetIndexInDataModel)]" - } - - icon = { - visible = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - parentanchor = bottom|hcenter - position = { 0 8 } - texture = "gfx/interface/window_county/building_selected_arrow.dds" - size = { 18 12 } - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - } - } - } - - scrollbox = { - name = "house_aspiration_levels" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" - { - margin = { 20 20 } - } - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - datamodel = "[HouseAspiration.GetLevels]" - item = { - vbox_house_aspiration_level_info = { - visible = "[HouseAspirationWindow.IsSelectedLevelIndex(PdxGuiWidget.GetIndexInDataModel)]" - } - } - } - } - } - - expand = {} - - vbox = { - visible = "[HouseAspirationWindow.CanEdit]" - margin = { 15 15 } - spacing = 10 - - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[HouseAspirationWindow.ShouldShowCooldownNotification]" - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "FAMILY_ATTRIBUTE_WINDOW_COOLDOWN_ALERT" - max_width = 450 - autoresize = yes - } - - text_multi = { - visible = "[DynastyHouse.IsHouseAttributeInactive]" - layoutpolicy_horizontal = expanding - - text = "FAMILY_ATTRIBUTE_WINDOW_ALERT" - max_width = 450 - autoresize = yes - } - - text_single = { - visible = "[HouseAspirationWindow.HasSelectedHouseAspirationCost]" - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "FAMILY_ATTRIBUTE_WINDOW_HOUSE_POWER_COST" - } - - hbox = { - # Family Attributes for Administrative - button_primary_big = { - visible = "[Not(And( HouseAspirationWindow.IsCurrentHouseAspirationSelected, HouseAspiration.HasMultipleLevels ))]" - text = "FAMILY_ATTRIBUTE_WINDOW_CHANGE_ATTRIBUTE" - - enabled = "[IsValidCommand( HouseAspirationWindow.ConfirmHouseAspiration )]" - onclick = "[CreateCommandPopup( HouseAspirationWindow.ConfirmHouseAspiration )]" - onclick = "[HouseAspirationWindow.Close]" - tooltip = "[SelectLocalization( IsValidCommand( HouseAspirationWindow.ConfirmHouseAspiration ), HouseAspiration.GetHouseAspirationChangeEffectDesc, GetCommandDesc( HouseAspirationWindow.ConfirmHouseAspiration ))]" - } - - button_primary_big = { - visible = "[And( HouseAspirationWindow.IsCurrentHouseAspirationSelected, HouseAspiration.HasMultipleLevels )]" - text = "FAMILY_ATTRIBUTE_WINDOW_UPGRADE_HOUSE_POWER" - - enabled = "[IsValidCommand( HouseAspirationWindow.UpgradeHouseAspiration )]" - onclick = "[CreateCommandPopup( HouseAspirationWindow.UpgradeHouseAspiration )]" - onclick = "[HouseAspirationWindow.Close]" - tooltip = "[SelectLocalization( IsValidCommand( HouseAspirationWindow.UpgradeHouseAspiration ), HouseAspiration.GetHouseAspirationUpgradeEffectDesc, GetCommandDesc( HouseAspirationWindow.UpgradeHouseAspiration ))]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_house_relation_history.gui b/N3OW/gui/window_house_relation_history.gui deleted file mode 100644 index a388fdc6..00000000 --- a/N3OW/gui/window_house_relation_history.gui +++ /dev/null @@ -1,400 +0,0 @@ -window = { - name = "window_house_relation_history" - widgetid = "window_house_relation_history" - - layer = middle - parentanchor = center - size = { 796 898 } - - allow_outside = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Movable - - datacontext = "[HouseRelationHistoryWindow.GetHouseRelation]" - - - margin_widget = { - size = { 100% 100% } - margin = { 16 20 } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 24 48 } - margin_top = 0 - margin_right = 56 - margin_bottom = 40 - - # Window heading - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "HOUSE_RELATION_HISTORY_WINDOW_HEADING" - } - - blockoverride "button_close" - { - onclick = "[HouseRelationHistoryWindow.Close]" - } - } - - # Relation overview - hbox_house_relation_history_info = { - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/illustrations/event_scenes/tgp_study_japan.dds" - fittype = centercrop - mirror = horizontal - alpha = 0.5 - framesize = { 1599 852 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - using = Background_Letter - margin_bottom = 10 - - # Relation history - scrollbox = { - name = "house_relation_changes" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 630 525 } - - blockoverride "scrollbox_margins" {} - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_content" - { - vbox_house_relation_history_list = { - layoutpolicy_horizontal = expanding - } - - expand = {} - - } - } # scrollbox "house_relation_changes" - } - } - } -} - - -############################################################################### - -types HouseRelationHistoryWindow -{ - ## House Relation history heading - # - # Window heading allowing the player top close the window. - # - type header_pattern_house_relation_history = header_pattern { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "HOUSE_RELATION_HISTORY_WINDOW_HEADING" - } - - blockoverride "button_close" - { - onclick = "[HouseRelationHistoryWindow.Close]" - } - } - - - ## House Relation information overview - # - type hbox_house_relation_history_info = hbox { - layoutpolicy_horizontal = expanding - - margin = { 24 20 } - - vbox = { - datacontext = "[HouseRelationHistoryWindow.GetLeftHouse]" - - - coa_house_big = { } - - text_single = { - max_width = 96 - text = "[DynastyHouse.GetNameNoTooltip]" - } - } - - widget = { - size = { 140 165 } - portrait_torso = { - parentanchor = center - datacontext = "[HouseRelationHistoryWindow.GetLeftHouse.GetHeadOfHouseOrLastHistoricHead]" - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso_left', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - tooltipwidget = { - house_relation_item_tooltip_no_progressbar = {} - } - - icon = { - size = { 55 55 } - texture = "[HouseRelation.GetLevel.GetIcon]" - } - - spacer = { - size = { 0 3 } - } - - text_single = { - align = center - text = "HOUSE_RELATIONS_CURRENT_RELATION" - using = Text_Light_Background_Overrides - default_format = "#medium" - } - - text_single = { - align = center - text = "[HouseRelation.GetLevel.GetName]" - using = Text_Light_Background_Overrides - default_format = "#high" - } - } - - widget = { - size = { 140 165 } - portrait_torso = { - parentanchor = center - datacontext = "[HouseRelationHistoryWindow.GetRightHouse.GetHeadOfHouseOrLastHistoricHead]" - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso_right', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - } - - vbox = { - datacontext = "[HouseRelationHistoryWindow.GetRightHouse]" - - coa_house_big = { } - - text_single = { - max_width = 96 - text = "[DynastyHouse.GetNameNoTooltip]" - } - } - } - - - ## Listing of all House Relation history items - # - type vbox_house_relation_history_list = vbox { - - margin_right = 5 - spacing = 4 - - bottomtotop = yes - - datamodel = "[HouseRelation.GetHistory]" - - item = { - hbox_house_relation_history_item = { - layoutpolicy_horizontal = expanding - } - } - } - - - ## Single change to the house relation - # - type hbox_house_relation_history_item = hbox { - - margin = { 16 7 } - margin_right = 15 - spacing = 2 - - background = { - alpha = 0.5 - using = Background_Area - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - margin = { 10 7 } - alpha = 0.6 - using = Background_Area - } - - text_multi = { - name = "house_relation_change_description" - layoutpolicy_horizontal = expanding - text= "[HouseRelationChange.GetDescription]" - default_format = "#light_background" - using = Text_Light_Background_Overrides - - autoresize = yes - max_width = 410 - } - - expand = {} - - text_single = { - name = "house_relation_change_amount" - align = center - fonttintcolor = { 0.6 0.55 0.9 1.0 } - visible = "[HouseRelationChange.NonZeroAmount]" - min_width = 48 - text = "[HouseRelationChange.GetChangeAmount|+=]" - default_format = "#light_background" - } - - text_single = { - name = "house_relation_no_change_amount" - visible = "[Not( HouseRelationChange.NonZeroAmount )]" - align = center - min_width = 48 - text = "" - } - - spacer = { - size = { 5 0 } - } - - divider = { - layoutpolicy_vertical = expanding - } - - spacer = { - size = { 10 0 } - } - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - name = "house_relation_change_date" - align = right - min_width = 120 - alpha = 0.45 - text = "[HouseRelationChange.GetChangeDate.GetString|V]" - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - - spacer = { - visible = "[Not( HouseRelation.IsIndexAtRelationChange( PdxGuiWidget.GetIndexInDataModel ) )]" - size = { 112 1 } - } - expand = {} - } - } - - spacer = { - size = { 0 8 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - visible = "[HouseRelation.IsIndexAtRelationChange( PdxGuiWidget.GetIndexInDataModel )]" - min_width = 112 - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - size = { 32 32 } - texture = "[HouseRelationChange.GetLevel.GetIcon]" - } - - spacer = { - size = { 5 0 } - } - text_single = { - text = "[HouseRelationChange.GetLevel.GetName]" - default_format = "#light_background" - using = Text_Light_Background_Overrides - tooltip = "[HouseRelationChange.GetLevelTooltip]" - } - expand = {} - } - } - } - } - } - - # Displays the impact of the current house relation level - type house_relation_item_tooltip_no_progressbar = object_tooltip_pop_out { - alwaystransparent = no - - blockoverride "header_additions" - { - hbox = { - margin_right = 10 - margin_top = 8 - margin_left = -4 - - icon = { - size = { 52 52 } - texture = "[HouseRelation.GetLevel.GetIcon]" - } - } - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "[HouseRelation.GetNameNoTooltip]" - default_format = "#T" - } - - blockoverride "main_description" { - vbox = { - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - max_width = 400 - margin_top = 5 - margin_bottom = 15 - using = DefaultTooltipText - multiline = yes - text = "[HouseRelation.GetTooltip]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - alwaystransparent = no - } - } - } - blockoverride "concept_link" { - text = "[house_relation|E]" - } - } -} diff --git a/N3OW/gui/window_hybridize_culture.gui b/N3OW/gui/window_hybridize_culture.gui deleted file mode 100644 index 1a21f3b1..00000000 --- a/N3OW/gui/window_hybridize_culture.gui +++ /dev/null @@ -1,1506 +0,0 @@ -###################################################### -################## CULTURE HYBRIDIZATION ############# -###################################################### - -window = { - name = "hybridize_culture_window" - datacontext = "[HybridizationWindow.GetOtherCulture]" - datacontext = "[GetVariableSystem]" - datacontext = "[HybridizationWindow.GetVassalConversionWindow]" - parentanchor = center - size = { 1300 950 } - layer = middle - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'culture_creation_tab', 'pillars' )]" - on_start = "[GetVariableSystem.Clear( 'culture_creation_right_view' )]" - on_start = "[GetVariableSystem.Clear('conversion_view_vassals')]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "HYBRIDIZE_CULTURE_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[HybridizationWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Vassal conversion list - vassal_conversion_preview = { - visible = "[VariableSystem.Exists( 'conversion_view_vassals')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - vbox = { - name = "left_side" - visible = "[Not(VariableSystem.Exists( 'conversion_view_vassals' ))]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - margin_left = 2 - - hbox = { - spacing = 10 - - button_standard = { - name = "culture_name" - size = { 530 60 } - onclick = "[GetVariableSystem.Set( 'culture_creation_right_view', 'name_selection' )]" - tooltip = CULTURE_CREATION_NAME_TOOLTIP - - text_multi = { - name = "culture_name_label" - size = { 100% 100% } - margin = { 10 0 } - fontsize_min = 16 - text = "HYBRIDIZE_CULTURE_NAME" - default_format = "#high" - using = Font_Size_Big - align = center|nobaseline - } - - button_replace = { - name = "reset" - alwaystransparent = yes - parentanchor = right|vcenter - position = { -6 0 } - size = { 40 40 } - } - } - - map_color_button = { - blockoverride "mcb_click" - { - onclick = "[GetVariableSystem.Set( 'culture_creation_right_view', 'color_selection' )]" - } - blockoverride "mcb_color" - { - tintcolor = "[HybridizationWindow.GetColor]" - } - } - } - - hbox = { - name = "tab_buttons" - layoutpolicy_horizontal = expanding - margin_top = 10 - margin_bottom = 10 - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_creation_tab', 'pillars' )]" - down = "[GetVariableSystem.HasValue( 'culture_creation_tab', 'pillars' )]" - - text_single = { - text = "CULTURE_VIEW_PILLARS" - parentanchor = center - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_creation_tab', 'traditions' )]" - down = "[GetVariableSystem.HasValue( 'culture_creation_tab', 'traditions' )]" - - text_single = { - text = "CULTURE_VIEW_TRADITIONS" - parentanchor = center - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Set( 'culture_creation_tab', 'aesthetics' )]" - down = "[GetVariableSystem.HasValue( 'culture_creation_tab', 'aesthetics' )]" - - text_single = { - text = "CULTURE_VIEW_AESTHETICS" - parentanchor = center - maximumsize = { 400 -1 } - default_format = "#low" - } - } - } - - background = { - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'pillars' )]" - texture = "[HybridizationWindow.GetLeftHoldingTexture]" - alpha = 0.3 - fittype = centercrop - margin_top = -400 - margin_right = 5 - - using = Animation_Tab_Switch - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - using = Mask_Rough_Edges - } - - vbox = { - name = "pillars_tab_content" - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'pillars' )]" - spacing = 10 - - using = Animation_Tab_Switch - - text_label_center = { - name = "header" - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_ETHOS" - default_format = "#low" - } - - hbox = { - spacing = 20 - - widget_ethos_selection_button = { - datacontext = "[GetPlayer.GetCulture.GetEthos]" - using = tooltip_ws - } - - widget_ethos_selection_button = { - visible = "[Not( ObjectsEqual( Culture.GetEthos, GetPlayer.GetCulture.GetEthos ) )]" - datacontext = "[Culture.GetEthos]" - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_HERITAGE" - default_format = "#low" - } - - hbox = { - spacing = 10 - margin_bottom = 10 - - button_pillar_selection = { - datacontext = "[GetPlayer.GetCulture.GetHeritage]" - using = tooltip_ws - - blockoverride "editbox_label" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/culture_pillars/heritage.dds" - framesize = { 220 220 } - } - } - } - - button_pillar_selection = { - datacontext = "[Culture.GetHeritage]" - visible = "[Not( ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ) )]" - - blockoverride "editbox_label" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds" - framesize = { 220 220 } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_LANGUAGE" - default_format = "#low" - } - - hbox = { - spacing = 10 - margin_bottom = 10 - - button_pillar_selection = { - datacontext = "[GetPlayer.GetCulture.GetLanguage]" - using = tooltip_ws - - blockoverride "editbox_label" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - framesize = { 220 220 } - } - } - } - - button_pillar_selection = { - datacontext = "[Culture.GetLanguage]" - visible = "[Not( ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ) )]" - - blockoverride "editbox_label" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "gfx/interface/icons/culture_pillars/language_diverge.dds" - framesize = { 220 220 } - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_MARTIAL_CUSTOM" - default_format = "#low" - } - - hbox = { - spacing = 5 - margin_bottom = 10 - - button_pillar_selection = { - datacontext = "[GetPlayer.GetCulture.GetMartial]" - using = tooltip_ws - } - - button_pillar_selection = { - visible = "[Not( ObjectsEqual( Culture.GetMartial, GetPlayer.GetCulture.GetMartial ) )]" - datacontext = "[Culture.GetMartial]" - } - } - - expand = {} - } - - vbox = { - name = "tradtions_tab_content" - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'traditions' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - name = "header_label" - text = "CULTURE_CREATION_TRADITIONS_COUNT" - default_format = "#I" - margin_bottom = 15 - } - - scrollbox = { - name = "tradtions_scrollbox" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - - vbox = { - margin_top = 10 - - fixedgridbox = { - datamodel = "[HybridizationWindow.GetTraditions]" - flipdirection = yes - addcolumn = 250 - addrow = 170 - datamodel_wrap = 2 - - item = { - container_tradition_selection_item = { - } - } - } - } - } - } - } - - scrollbox = { - name = "aesthetic_tab_content" - visible = "[VariableSystem.HasValue( 'culture_creation_tab', 'aesthetics' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_content" - { - vbox = { - spacing = 14 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_UNITS" - default_format = "#low" - } - - hbox = { - margin = { 20 10 } - spacing = 50 - - background = { - texture = "gfx/interface/illustrations/terrain_types/plains.dds" - fittype = centercrop - margin = { 60 14 } - alpha = 0.4 - - modify_texture = { - texture = "gfx/interface/window_county/mask_holding_illustration.dds" - blend_mode = alphamultiply - alpha = 1 - } - } - - vbox = { - cameracontrolwidget = { - name = "left_unit_preview" - size = { 200 200 } - - gfxtype = game_entity_view - effectname = "PdxGuiDefault" - shaderfile = "gfx/FX/pdxgui_default.shader" - - camera_position = { 0 5 -12 } - camera_look_at = { 0 5 0 } - gfx_environment_file = "gfx/map/environment/environment_unit_preview.txt" - camera_rotation_pitch_limits = { 0 0 } - camera_zoom_limits = { 1.0 1.0 } - camera_translation_limits = { 0 0 0 } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasLeftUnits]" - onclick = "[HybridizationWindow.SetLeftUnits]" - - blockoverride "text" { - text = "[GetPlayer.GetCulture.GetUnitGfxName]" - } - } - } - - vbox = { - visible = "[Not( And( HybridizationWindow.HasLeftUnits, HybridizationWindow.HasRightUnits ) )]" - - cameracontrolwidget = { - name = "right_unit_preview" - size = { 200 200 } - - gfxtype = game_entity_view - effectname = "PdxGuiDefault" - shaderfile = "gfx/FX/pdxgui_default.shader" - - camera_position = { 0 5 -12 } - camera_look_at = { 0 5 0 } - gfx_environment_file = "gfx/map/environment/environment_unit_preview.txt" - camera_rotation_pitch_limits = { 0 0 } - camera_zoom_limits = { 1.0 1.0 } - camera_translation_limits = { 0 0 0 } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasRightUnits]" - onclick = "[HybridizationWindow.SetRightUnits]" - - blockoverride "text" { - text = "[Culture.GetUnitGfxName]" - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_NAMING_LIST" - default_format = "#low" - } - - widget = { - size = { 640 190 } - - widget = { - name = "hybrid_culture_pattern_naming_left" - visible = "[HybridizationWindow.CanDoHybridNamingList]" - size = { 100% 100% } - - icon = { - size = { 128 80 } - position = { 120 32 } - texture = "gfx/interface/window_culture/hybrid_culture_background_small.dds" - } - } - - widget = { - name = "hybrid_culture_pattern_naming_right" - visible = "[HybridizationWindow.CanDoHybridNamingList]" - size = { 100% 100% } - - icon = { - size = { 128 80 } - position = { 390 32 } - mirror = horizontal - texture = "gfx/interface/window_culture/hybrid_culture_background_small.dds" - } - } - - widget = { - size = { 200 190 } - parentanchor = left - - text_multi = { - autoresize = yes - min_width = 200 - max_width = 200 - parentanchor = vcenter - position = { 0 -20 } - align = center - text = "[HybridizationWindow.GetLeftNamingExamples]" - - margin_bottom = 12 - } - - button_generic_selection = { - down = "[HybridizationWindow.HasLeftNamingList]" - onclick = "[HybridizationWindow.SetLeftNamingList]" - parentanchor = bottom|hcenter - - blockoverride "text" { - text = "[GetPlayer.GetCulture.GetNamingListName]" - } - } - } - - widget = { - visible = "[HybridizationWindow.CanDoHybridNamingList]" - size = { 200 190 } - parentanchor = center - - text_single = { - parentanchor = hcenter|center - position = { 0 -23 } - text = "HYBRID_NAMES" - multiline = yes - maximumsize = { 150 180 } - align = center - default_format = "#weak" - - margin_bottom = 4 - - background = { - margin = { 10 8 } - using = Background_Area - } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasHybridNamingList]" - onclick = "[HybridizationWindow.SetHybridNamingList]" - parentanchor = bottom|hcenter - - blockoverride "text" - { - text = "HYBRID_PILLAR" - } - } - } - - widget = { - visible = "[Not( And( HybridizationWindow.HasLeftNamingList, HybridizationWindow.HasRightNamingList ) )]" - size = { 200 190 } - parentanchor = right - - text_multi = { - parentanchor = vcenter - position = { 0 -20 } - autoresize = yes - min_width = 200 - max_width = 200 - align = center - - margin_bottom = 12 - - text = "[HybridizationWindow.GetRightNamingExamples]" - } - - - button_generic_selection = { - down = "[HybridizationWindow.HasRightNamingList]" - onclick = "[HybridizationWindow.SetRightNamingList]" - parentanchor = bottom|hcenter - - blockoverride "text" - { - text = "[Culture.GetNamingListName]" - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_BUILDINGS" - default_format = "#low" - } - - hbox = { - spacing = 5 - - vbox = { - spacing = 10 - - highlight_icon = { - name = "icon" - size = { 300 135 } - texture = "[HybridizationWindow.GetLeftHoldingTexture]" - - using = Mask_Rough_Edges - } - - button_generic_selection = { - down = "[HybridizationWindow.HasLeftBuildings]" - onclick = "[HybridizationWindow.SetLeftBuildings]" - - blockoverride "text" { - text = "[GetPlayer.GetCulture.GetBuildingGfxName]" - } - } - } - - vbox = { - visible = "[Not( And( HybridizationWindow.HasLeftBuildings, HybridizationWindow.HasRightBuildings ) )]" - spacing = 10 - - highlight_icon = { - name = "icon" - texture = "[HybridizationWindow.GetRightHoldingTexture]" - size = { 300 135 } - - using = Mask_Rough_Edges - } - - button_generic_selection = { - down = "[HybridizationWindow.HasRightBuildings]" - onclick = "[HybridizationWindow.SetRightBuildings]" - - blockoverride "text" { - text = "[Culture.GetBuildingGfxName]" - } - } - } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_CLOTHING" - default_format = "#low" - } - - widget = { - datacontext = "[GetPlayer]" - size = { 580 270 } - - widget = { - name = "hybrid_culture_pattern_fashion_left" - visible = "[Not( And( HybridizationWindow.HasLeftClothing, HybridizationWindow.HasRightClothing ) )]" - size = { 100% 100% } - - icon = { - position = { 94 33 } - texture = "gfx/interface/window_culture/hybrid_culture_background_big.dds" - } - } - - widget = { - name = "hybrid_culture_pattern_fashion_right" - visible = "[Not( And( HybridizationWindow.HasLeftClothing, HybridizationWindow.HasRightClothing ) )]" - size = { 100% 100% } - - icon = { - position = { 366 33 } - mirror = horizontal - texture = "gfx/interface/window_culture/hybrid_culture_background_big.dds" - } - } - - widget = { - parentanchor = left - size = { 180 270 } - - portrait_body = { - parentanchor = hcenter - size = { 180 235 } - - blockoverride "portrait_button" - { - alwaystransparent = yes - tooltip_visible = no - size = { 182 275 } - portrait_texture = "[HybridizationWindow.GetLeftPortraitTexture('environment_body', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "status_icons" {} - blockoverride "coa" {} - blockoverride "portrait_glow" {} - } - - button_generic_selection = { - down = "[HybridizationWindow.HasLeftClothing]" - onclick = "[HybridizationWindow.SetLeftClothing]" - parentanchor = bottom|hcenter - - blockoverride "text" { - text = "[GetPlayer.GetCulture.GetClothingGfxName]" - } - } - } - - vbox = { - visible = "[HybridizationWindow.CanHaveHybridClothing]" - layoutpolicy_vertical = expanding - - expand = { - layoutpolicy_vertical = expanding - } - - hbox = { - text_single = { - maximumsize = { 160 180 } - text = "HYBRID_FASHION_DESC" - multiline = yes - align = center - margin_bottom = 4 - default_format = "#weak" - - background = { - margin = { 10 8 } - using = Background_Area - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - - button_generic_selection = { - down = "[HybridizationWindow.HasHybridClothing]" - onclick = "[HybridizationWindow.SetHybridClothing]" - - blockoverride "text" { - text = "HYBRID_PILLAR" - } - } - } - - widget = { - visible = "[Not( And( HybridizationWindow.HasLeftClothing, HybridizationWindow.HasRightClothing ) )]" - parentanchor = right - size = { 180 270 } - - portrait_body = { - parentanchor = right - size = { 180 235 } - - blockoverride "portrait_button" - { - alwaystransparent = yes - tooltip_visible = no - size = { 182 275 } - portrait_texture = "[HybridizationWindow.GetRightPortraitTexture('environment_body', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - - blockoverride "status_icons" {} - blockoverride "coa" {} - blockoverride "portrait_glow" {} - } - - button_generic_selection = { - down = "[HybridizationWindow.HasRightClothing]" - onclick = "[HybridizationWindow.SetRightClothing]" - parentanchor = bottom|hcenter - - blockoverride "text" { - text = "[Culture.GetClothingGfxName]" - } - } - } - } - - # Hybridize - CoA - text_label_center = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_COAS" - default_format = "#low" - } - - widget = { - size = { 540 170 } - - widget = { - name = "hybrid_culture_pattern_coa_left" - visible = "[HybridizationWindow.CanHaveHybridCoAs]" - size = { 100% 100% } - - icon = { - position = { 68 14 } - size = { 128 95 } - texture = "gfx/interface/window_culture/hybrid_culture_background_small.dds" - } - } - - widget = { - name = "hybrid_culture_pattern_coa_right" - visible = "[HybridizationWindow.CanHaveHybridCoAs]" - size = { 100% 100% } - - icon = { - position = { 345 14 } - size = { 128 95 } - mirror = horizontal - texture = "gfx/interface/window_culture/hybrid_culture_background_small.dds" - } - } - - widget = { - parentanchor = left - size = { 170 170 } - - coa_hybridize_window = { - datacontext = "[HybridizationWindow.GetLeftCoA]" - datacontext = "[GetPlayer.GetCulture]" - parentanchor = hcenter - - blockoverride "mask" - { - coat_of_arms_mask = "gfx/interface/coat_of_arms/designer_mask.dds" - } - - blockoverride "frame" - { - } - - blockoverride "coa_button" { - alwaystransparent = yes - } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasLeftCoAs]" - onclick = "[HybridizationWindow.SetLeftCoAs]" - parentanchor = bottom|left - - blockoverride "text" { - text = "[GetPlayer.GetCulture.GetCoAGfxName]" - } - } - } - - widget = { - visible = "[HybridizationWindow.CanHaveHybridCoAs]" - parentanchor = hcenter - size = { 170 170 } - - text_single = { - parentanchor = hcenter|center - position = { 0 -24 } - text = "HYBRID_COA_DESC" - multiline = yes - maximumsize = { 160 180 } - align = center - margin_bottom = 4 - default_format = "#weak" - - background = { - margin = { 10 8 } - using = Background_Area - } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasHybridCoAs]" - onclick = "[HybridizationWindow.SetHybridCoAs]" - parentanchor = bottom|hcenter - - blockoverride "text" { - text = "HYBRID_PILLAR" - } - } - } - - widget = { - visible = "[Not( And( HybridizationWindow.HasLeftCoAs, HybridizationWindow.HasRightCoAs ) )]" - parentanchor = right - size = { 170 170 } - - coa_hybridize_window = { - datacontext = "[HybridizationWindow.GetRightCoA]" - datacontext = "[HybridizationWindow.GetOtherCulture]" - parentanchor = hcenter - - blockoverride "mask" - { - coat_of_arms_mask = "gfx/interface/coat_of_arms/designer_mask.dds" - } - - blockoverride "frame" - { - } - - blockoverride "coa_button" { - alwaystransparent = yes - } - } - - button_generic_selection = { - down = "[HybridizationWindow.HasRightCoAs]" - onclick = "[HybridizationWindow.SetRightCoAs]" - parentanchor = bottom|right - - blockoverride "text" { - text = "[Culture.GetCoAGfxName]" - } - } - } - } - - text_label_center = { - visible = "[HybridizationWindow.HasDifferentCoAFrames]" - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_COA_FRAME" - default_format = "#low" - } - - widget = { - visible = "[HybridizationWindow.HasDifferentCoAFrames]" - size = { 540 170 } - - widget = { - parentanchor = left - size = { 170 170 } - - coa_hybridize_frame_preview = { - datacontext = "[HybridizationWindow.GetLeftCoA]" - datacontext = "[GetPlayer.GetCulture]" - parentanchor = hcenter - - blockoverride "frame_override" - { - frame = 2 - } - - blockoverride "coa_button" { - alwaystransparent = yes - } - } - - button_generic_selection = { - parentanchor = bottom|left - datacontext = "[GetPlayer.GetCulture]" - margin = { 40 20 } - - down = "[HybridizationWindow.HasLeftCoAFrame]" - onclick = "[HybridizationWindow.SetLeftCoAFrame]" - - blockoverride "text" { - text = "USE_CULTURE_FRAME_STYLE" - } - } - } - - widget = { - parentanchor = right - size = { 170 170 } - - coa_hybridize_frame_preview = { - datacontext = "[HybridizationWindow.GetRightCoA]" - datacontext = "[HybridizationWindow.GetOtherCulture]" - parentanchor = hcenter - - blockoverride "frame_override" - { - frame = 2 - } - - blockoverride "coa_button" { - alwaystransparent = yes - } - } - - button_generic_selection = { - parentanchor = bottom|right - datacontext = "[HybridizationWindow.GetOtherCulture]" - margin = { 40 20 } - - down = "[HybridizationWindow.HasRightCoAFrame]" - onclick = "[HybridizationWindow.SetRightCoAFrame]" - - blockoverride "text" { - text = "USE_CULTURE_FRAME_STYLE" - } - } - } - } - - expand = {} - } - } - } - - expand = {} - } - - divider = { - layoutpolicy_vertical = expanding - } - - ### RIGHT PANEL - widget = { - name = "right_side" - layoutpolicy_vertical = expanding - minimumsize = { 500 0 } - - ## Main right side view - vbox = { - visible = "[Not( VariableSystem.Exists('culture_creation_right_view') )]" - spacing = 10 - margin_bottom = 20 - - vbox = { - name = "info" - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 30 14 } - - vbox = { - name = "blockers" - visible = "[Not( HybridizationWindow.CanHybridize )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_BLOCKERS_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 4 - - text_multi = { - autoresize = yes - max_width = 440 - text = "[HybridizationWindow.GetHybridizeBlockers]" - } - expand = {} - } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_NEW_CULTURE_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 4 - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_NEW_CULTURE_TEXT" - } - - expand = {} - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_ACCEPTANCE_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 4 - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_ACCEPTANCE_TEXT" - } - - expand = {} - } - - vbox = { - visible = "[GreaterThan_int32(GetDataModelSize(HybridizationWindow.GetInnovationsGained), '(int32)0')]" - layoutpolicy_horizontal = expanding - spacing = 4 - margin_bottom = 4 - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 4 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_INNOVATIONS_HEADER" - default_format = "#low" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 4 - - text_multi = { - visible = "[EqualTo_int32(GetDataModelSize(HybridizationWindow.GetInnovationsGained), '(int32)1')]" - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_INNOVATIONS_TEXT" - } - - text_multi = { - visible = "[And( GreaterThan_int32(GetDataModelSize(HybridizationWindow.GetInnovationsGained), '(int32)1'), LessThan_int32(GetDataModelSize(HybridizationWindow.GetInnovationsGained), '(int32)5') )]" - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_INNOVATIONS_PLURAL_TEXT" - } - - text_multi = { - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(HybridizationWindow.GetInnovationsGained), '(int32)5')]" - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_INNOVATIONS_PLURAL_INCLUDING_TEXT" - } - expand = {} - } - - scrollarea = { - maximumsize = { 500 130 } - minimumsize = { 420 100 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - vbox = { - - fixedgridbox = { - datamodel = "[HybridizationWindow.GetInnovationsGained]" - flipdirection = yes - datamodel_wrap = 4 - addrow = 100 - addcolumn = 114 - maxverticalslots = 1 - - item = { - flowcontainer = { - tooltipwidget = { using = culture_innovation_tooltip } - direction = vertical - icon_innovation_no_context = {widgetanchor = center} - margin_left = 46 - - text_multi = { - max_width = 100 - min_width = 95 - text = "[CultureInnovation.GetType.GetName]" - autoresize = yes - widgetanchor = center - align = center|hcenter - } - } - } - } - } - } - } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CULTURE_CREATION_REALM_ADOPTION_HEADER" - default_format = "#low" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - autoresize = yes - max_width = 440 - text = "CULTURE_CREATION_REALM_ADOPTION_TEXT" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "see_vassals" - onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]" - text = "FAITH_CREATION_OPEN_VASSAL_LIST" - down = "[VariableSystem.HasValue( 'conversion_view_vassals', 'true' )]" - } - - expand = {} - } - } - - expand = {} - - - vbox = { - name = "cost" - tooltip = "HYBRIDIZATION_COST_TOOLTIP" - - text_single = { - layoutpolicy_horizontal = expanding - text = "HYBRIDIZATION_TOTAL_COST" - default_format = "#high" - using = Font_Size_Medium - align = right - - background = { - visible = "[Not( HybridizationWindow.CanPayCost )]" - margin = { 5 0 } - using = Status_Bad - } - } - } - - text_multi = { - name = "cooldown" - layoutpolicy_horizontal = expanding - align = center - text = "CULTURE_HYBRIDIZATION_COOLDOWN" - default_format = "#low" - using = Font_Size_Small - autoresize = yes - max_width = 400 - } - - button_primary = { - name = "create_culture" - size = { 400 60 } - - onclick = "[HybridizationWindow.HybridizeCulture]" - onclick = "[HybridizationWindow.Close]" - enabled = "[HybridizationWindow.CanHybridize]" - - text = "HYBRIDIZE_CULTURE_EXECUTE_LABEL" - using = Font_Size_Medium - tooltip = "HYBRIDIZE_CULTURE_EXECUTE_TOOLTIP" - } - } - - ## Name selection - vbox = { - name = "name_selection" - visible = "[VariableSystem.HasValue( 'culture_creation_right_view', 'name_selection' )]" - margin = { 0 20 } - margin_top = 30 - spacing = 10 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - text_single = { - name = "header_label" - text = "CULTURE_CREATION_NAMING_HEADER" - default_format = "#I" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 50 0} - # The names of these are referenced in code. If you change them, they'll no longer get properly reset - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_NAME" - } - - blockoverride "editbox_properties" - { - name = "culture_name_edit" - ontextedited = "[HybridizationWindow.OnEditName]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_COLLECTIVE_NOUN" - } - - blockoverride "editbox_properties" - { - name = "culture_collective_noun_edit" - ontextedited = "[HybridizationWindow.OnEditCollectiveNoun]" - maxcharacters = 30 - } - } - - widget = { - size = { 10 10 } - } - - name_entry_big = { - blockoverride "label" - { - text = "CULTURE_CREATION_NAMING_PREFIX" - } - - blockoverride "editbox_properties" - { - name = "culture_prefix_edit" - ontextedited = "[HybridizationWindow.OnEditPrefix]" - maxcharacters = 30 - } - } - } - - expand = {} - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'culture_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - - vbox = { - name = "color_selection" - visible = "[VariableSystem.HasValue( 'culture_creation_right_view', 'color_selection' )]" - margin = { 0 20 } - margin_top = 15 - margin_left = 2 - spacing = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "MAP_COLOR_SELECTION_LABEL" - default_format = "#low" - } - - colorpicker_simple = { - visible = yes - color = "[HybridizationWindow.GetColor]" - oncoloredited = "[HybridizationWindow.SetColor]" - } - - expand = {} - - button_standard = { - name = "done" - onclick = "[VariableSystem.Clear( 'culture_creation_right_view' )]" - text = "DONE" - default_format = "#high" - } - } - } - } - } -} - - -types HybridizationTypes -{ - type button_pillar_selection = button_standard { - down = "[HybridizationWindow.HasPillar( CulturePillar.Self )]" - onclick = "[HybridizationWindow.SetPillar( CulturePillar.Self )]" - - tooltipwidget = { - using = culture_pillar_tooltip - - blockoverride "datacontext" { - datacontext = "[GetPlayer.GetCulture]" - } - } - - block "editbox_label" - { - button_icon = { - parentanchor = vcenter - position = { 4 0 } - size = { 26 26 } - alwaystransparent = yes - texture = "[CulturePillar.GetIcon]" - framesize = { 220 220 } - } - } - - text_multi = { - size = { 100% 100% } - margin = { 10 0 } - text = "[CulturePillar.GetNameNoTooltip]" - align = center|nobaseline - default_format = "#clickable" - } - } - - type widget_ethos_selection_button = widget { - size = { 274 96 } - - tooltipwidget = { - using = culture_pillar_tooltip - - blockoverride "datacontext" { - datacontext = "[GetPlayer.GetCulture]" - } - } - - button_standard = { - size = { 274 60 } - down = "[HybridizationWindow.HasPillar( CulturePillar.Self )]" - onclick = "[HybridizationWindow.SetPillar( CulturePillar.Self )]" - - - icon = { #illustration - name = "icon" - parentanchor = center - texture = "[CulturePillar.GetIcon]" - size = { 100% 100% } - - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - text_label_center = { - parentanchor = bottom|hcenter - widgetanchor = center - position = { 0 20 } - text = "[CulturePillar.GetNameNoTooltip]" - fontsize_min = 16 - align = center - using = Font_Size_Medium - } - - using = Background_Vignette_Button - - selection_glow = { - visible = "[HybridizationWindow.HasPillar( CulturePillar.Self )]" - } - } - } - - - type container_tradition_selection_item = widget { - size = { 220 120 } - - tooltipwidget = { - using = culture_tradition_tooltip_clickable - } - - vbox = { - spacing = -4 - - button_standard = { - size = { 220 120 } - onclick = "[HybridizationWindow.ToggleTradition( CultureTradition.Self )]" - - widget_tradition_icon = { - block "icon_size" { - size = { 220 120 } - } - } - - selection_glow = { - visible = "[HybridizationWindow.HasTradition( CultureTradition.Self )]" - } - } - - hbox = { - margin_top = 6 - - text_label_center = { - name = "name" - maximumsize = { 200 44 } - fontsize_min = 12 - multiline = yes - align = center - elide = right - text = "[CultureTradition.GetNameNoTooltip]" - using = Font_Size_Medium - } - } - } - } - - type button_generic_selection = button_standard { - - text_multi = { - size = { 100% 100% } - margin = { 10 0 } - block "text" {} - align = center|nobaseline - default_format = "#clickable" - } - } -} diff --git a/N3OW/gui/window_inspirations.gui b/N3OW/gui/window_inspirations.gui deleted file mode 100644 index 398dda98..00000000 --- a/N3OW/gui/window_inspirations.gui +++ /dev/null @@ -1,299 +0,0 @@ -types RoyalCourtTypes -{ - type widget_inspiration_details = widget - { - datacontext = "[InspirationsWindow.GetSelectedInspiration]" - datacontext = "[Inspiration.GetOwner]" - visible = "[InspirationsWindow.HasSelectedInspiration]" - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - using = tooltip_above - - vbox = { - name = "selected_inspiration" - set_parent_size_to_minimum = yes - margin = { 4 4 } - margin_bottom = 20 - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SELECTED_INSPIRATION_HEADER" - } - - blockoverride "button_close" - { - onclick = "[InspirationsWindow.ClearSelectedInspiration]" - } - - blockoverride "button_back" - { - visible = no - } - } - } - - hbox = { - name = "selected_inspiration_data" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 20 - - background = { - using = Background_Area - layoutpolicy_horizontal = expanding - margin_top = 14 - } - - portrait_shoulders = { - name = "inspiration_owner_portrait" - - blockoverride "inspiration_status_icons" - { - } - } - - vbox = { - name = "text" - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_bottom = 10 - margin_top = -14 - - text_multi = { - name = "inspiration_text" - min_width = 300 - max_width = 300 - autoresize = yes - text = "SELECTED_INSPIRATION_TEXT" - margin_right = 10 - } - - spacer = { - size = { 0 6 } - } - - hbox = { - name = "recuirt_owner" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "[Character.GetRelationToString( RoyalCourtWindow.GetCharacter )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - button_recruit_character = {} - - warning_icon = { - name = "wants_to_leave" - visible = "[And( Character.CourtierWantsToLeaveCourt, Not( Character.IsImprisoned))]" - size = { 20 20 } - tooltip = "[Character.GetCourtierLeaveDescription]" - } - - expand = {} - } - - text_single = { - name = "gold_invested" - visible = "[Inspiration.GetSponsor.IsLocalPlayer]" - layoutpolicy_horizontal = expanding - text = INSPIRATION_INVESTED_GOLD - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 4 - - button_primary = { - name = "sponsor_inspiration_tutorial_uses_this" - widgetid = "sponsor_inspiration_tutorial_uses_this" - text = START_SPONSOR_INSPIRATION - visible = "[Not( Inspiration.GetSponsor.IsValid )]" - - enabled = "[Character.IsPlayerInteractionValid( 'fund_inspiration_interaction' )]" - onclick = "[Character.OpenPlayerInteraction( 'fund_inspiration_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'fund_inspiration_interaction' )]" - } - } - - vbox = { - name = "inspiration_progress" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = -8 - margin_top = -10 - spacing = 5 - - visible = "[Inspiration.GetSponsor.IsValid]" - - text_single = { - text = INSPIRATION_IN_PROGRESS - } - - progressbar_segmented_chance = { - name = "progress_bar" - tooltip = "INSPIRATION_ITEM_PROGRESS_TOOLTIP" - datamodel = "[GetSegmentedProgressChanceBar( GetDefine( 'NInspiration', 'MAX_PROGRESS' ), GetDefine( 'NInspiration', 'PROGRESS_FRAMES' ), Inspiration.GetProgress, Inspiration.GetProgressChance )]" - } - - text_single = { - text = INSPIRATION_ESTIMATED_REMAINING - tooltip = INSPIRATION_ESTIMATED_TIME_TOOLTIP - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - - type flowcontainer_inspiration_list_item = flowcontainer - { - button_normal = { - datacontext = "[Inspiration.GetOwner]" - size = { 60 60 } - tooltip = "TT_INSPIRATION_WIDGET" - onclick = "[InspirationsWindow.ToggleInspiration( Inspiration.Self )]" - onclick = "[InspirationsWindow.RemoveNewInspiration( Inspiration.Self )]" - - icon = { - size = { 60 60 } - texture = "gfx/interface/component_masks/mask_circle.dds" - visible = "[InspirationsWindow.IsNewInspiration( Inspiration.Self ) ]" - - glow = { - glow_radius = 20 - using = Glow_Standard - using = Color_Bright_Yellow - } - - using = Animation_Glow_Pulse - } - - icon_round_button_base = {} - - icon = { - visible = "[ObjectsEqual( InspirationsWindow.GetSelectedInspiration, Inspiration.Self )]" - texture = "gfx/interface/buttons/button_lifestyles_active_frame.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - parentanchor = center - alpha = 0.5 - } - - progresspie = { - name = "progress" - visible = "[And( Inspiration.GetSponsor.IsValid, Not( Inspiration.IsComplete ) )]" - - size = { 52 52 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - frame = 2 - - widgetanchor = center - parentanchor = center - - min = 0 - max = 100 - - value = "[Select_float( GreaterThan_int32( Inspiration.GetProgress, '(int32)0' ), CurrentAndMaxToProgressbarValueInt32( Inspiration.GetProgress, GetDefine( 'NInspiration', 'MAX_PROGRESS' ) ), '(float)2' )]" - } - - highlight_icon = { - texture = "[Inspiration.GetType.GetIcon]" - alwaystransparent = yes - size = { 45 45 } - position = { 1 1 } - parentanchor = center - } - } - } - - type flowcontainer_inspirations_list = flowcontainer - { - name = "inspirations_list" - allow_outside = yes - - flowcontainer = { - direction = vertical - margin_right = 10 - allow_outside = yes - - widget = { - visible = "[RoyalCourtWindow.GetCharacter.IsLocalPlayer]" - size = { 50 30 } - allow_outside = yes - - text_label_center = { - layoutpolicy_horizontal = expanding - position = { -14 -4 } - text = "[inspirations|E]" - margin = { 18 4 } - align = nobaseline - } - } - - flowcontainer = { - direction = vertical - visible = "[RoyalCourtWindow.GetCharacter.IsLocalPlayer]" - name = "potential_inspirations" - datamodel = "[InspirationsWindow.GetPotentialInspirations]" - spacing = 5 - - item = { - flowcontainer_inspiration_list_item = { - name = "inspiration_item" - } - } - } - - spacer = { - size = { 0 5 } - } - - flowcontainer = { - direction = vertical - name = "sponsored_inspirations" - datamodel = "[InspirationsWindow.GetSponsoredInspirations]" - spacing = 5 - - item = { - flowcontainer_inspiration_list_item = { - name = "sponsored_item" - } - } - } - } - - widget_inspiration_details = {} - } -} diff --git a/N3OW/gui/window_intrigue.gui b/N3OW/gui/window_intrigue.gui deleted file mode 100644 index 2a282247..00000000 --- a/N3OW/gui/window_intrigue.gui +++ /dev/null @@ -1,2172 +0,0 @@ -###################################################### -##################### INTRIGUE ####################### -###################################################### - -window = { - name = "intrigue_window" - widgetid = "intrigue_window" - parentanchor = top|right - layer = windows_layer - movable = no - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[IntrigueWindow.SetTab( 'schemes' )]" - on_start = "[GetVariableSystem.Set( 'secrets_show_all', 'true' )]" - on_start = "[GetVariableSystem.Set( 'own_scheme_expand', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - size = { 0 140 } - - ## My Scheme Countermeasures - widget_scheme_countermeasures = { - parentanchor = bottom|hcenter - position = { 0 -5 } - } - - ### Illustration size - blockoverride "size" { - size = { 100% 156 } - } - - blockoverride "header_text" - { - text = "INTRIGUE_VIEW" - } - - blockoverride "button_close" - { - onclick = "[IntrigueWindow.Close]" - } - - blockoverride "illustration_texture" - { - texture = "gfx/interface/skinned/illustrations/header_illustrations/header_prison.dds" - } - } - - hbox = { - name = "tabs" - layoutpolicy_horizontal = expanding - margin_left = 1 - - button_tab = { - name = "open_scheme_tab" #tutorial uses this - layoutpolicy_horizontal = expanding - - text = "OPEN_SCHEMES_TAB" - default_format = "#low" - onclick = "[IntrigueWindow.SetTab( 'schemes' )]" - down = "[IntrigueWindow.IsTabShown( 'schemes' )]" - - using = tooltip_above - } - - button_tab = { - name = "open_hooks_and_secrets_tab" - layoutpolicy_horizontal = expanding - - text = "OPEN_HOOKS_AND_SECRETS_TAB" - default_format = "#low" - onclick = "[IntrigueWindow.SetTab( 'hooks_and_secrets' )]" - down = "[IntrigueWindow.IsTabShown( 'hooks_and_secrets' )]" - - using = tooltip_above - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### SCHEMES - scrollbox = { - name = "schemes" - visible = "[IntrigueWindow.IsTabShown( 'schemes' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - background = { - texture = "gfx/interface/skinned/illustrations/council/bg_council_spymaster.dds" - margin = { -5 0 } - fittype = end - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" - { - ## My Schemes - vbox = { - name = "my_own_schemes" - widgetid = "my_own_schemes" - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - name = "my_contract_schemes" - visible = "[SkillSchemeGroup.HasSchemes]" - datacontext = "[IntrigueWindow.GetContractSchemes]" - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[contract_schemes|E]" - } - - vbox = { - name = "my_own_contract_schemes" - visible = "[SkillSchemeGroup.HasSchemes]" - datamodel = "[SkillSchemeGroup.GetSchemes]" - layoutpolicy_horizontal = expanding - - item = { - widget_own_scheme_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - - vbox = { - name = "my_hostile_schemes" - datacontext = "[IntrigueWindow.GetHostileSchemes]" - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[hostile_schemes|E]" - } - - vbox = { - name = "my_own_hostile_schemes" - visible = "[SkillSchemeGroup.HasSchemes]" - datamodel = "[SkillSchemeGroup.GetSchemes]" - layoutpolicy_horizontal = expanding - - item = { - widget_own_scheme_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - name = "no_own_hostile_schemes" - visible = "[Not(SkillSchemeGroup.HasSchemes)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "SCHEME_WINDOW_NOT_OWNED_SCHEMES" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - } - - vbox = { - name = "my_personal_schemes" - datacontext = "[IntrigueWindow.GetPersonalSchemes]" - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[personal_schemes|E]" - } - - vbox = { - name = "my_own_personal_schemes" - widgetid = "my_own_personal_schemes" - visible = "[SkillSchemeGroup.HasSchemes]" - datamodel = "[SkillSchemeGroup.GetSchemes]" - layoutpolicy_horizontal = expanding - - item = { - widget_own_scheme_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - name = "no_own_personal_schemes" - visible = "[Not(SkillSchemeGroup.HasSchemes)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "SCHEME_WINDOW_NOT_OWNED_SCHEMES" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - } - - vbox = { - name = "my_political_schemes" - datacontext = "[IntrigueWindow.GetPoliticalSchemes]" - visible = "[Or(GetPlayer.GetGovernment.HasRule( 'administrative' ), Or(GetPlayer.GetGovernment.IsType( 'japan_feudal_government' ), Or( GetPlayer.GetTopLiege.GetGovernment.HasRule( 'administrative' ), GetPlayer.GetGovernment.IsType( 'mandala_government' ) ) ) )]" - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[political_schemes|E]" - } - - vbox = { - name = "my_own_political_schemes" - visible = "[SkillSchemeGroup.HasSchemes]" - datamodel = "[SkillSchemeGroup.GetSchemes]" - layoutpolicy_horizontal = expanding - - item = { - widget_own_scheme_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - name = "no_own_political_schemes" - visible = "[Not(SkillSchemeGroup.HasSchemes)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "SCHEME_WINDOW_NOT_OWNED_SCHEMES" - default_format = "#low;italic" - align = center - - background = { - using = Background_Area - } - } - } - } - - ## Known schemes - vbox = { - name = "discovered_schemes" - layoutpolicy_horizontal = expanding - margin_top = 10 - - # text_label_center = { - # name = "label" - # layoutpolicy_horizontal = expanding - - # text = "SCHEME_WINDOW_KNOWN_SCHEMES_TITLE" - - # icon = { - # name = "discovered_icon" - # position = { 5 -5 } - # size = { 35 35 } - # texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - # } - # } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - margin = { 0 -4 } #Uses a negative margin to make the header be the same height as regular text labels. Doesn't affect any of the content. - margin_right = 35 #Margin to offset the icon size - - background = { - margin_left = 40 - margin_right = 40 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - icon = { - name = "discovered_icon" - size = { 35 35 } - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - } - - text_single = { - text = "SCHEME_WINDOW_KNOWN_SCHEMES_TITLE" - align = nobaseline - } - - expand = {} - } - - vbox = { - name = "known_schemes_grid" - visible = "[IntrigueWindow.HasKnownSchemes]" - datamodel = "[IntrigueWindow.GetKnownSchemes]" - layoutpolicy_horizontal = expanding - - item = { - vbox_discovered_scheme_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - name = "no_own_schemes" - visible = "[Not(IntrigueWindow.HasKnownSchemes)]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 110 } - - text = "SCHEME_WINDOW_NOT_KNOWN_SCHEMES" - default_format = "#low" - align = center - - background = { - using = Background_Area - } - } - } - } - } - - ## Autofill agent button - hbox = { - visible = "[IntrigueWindow.IsTabShown( 'schemes' )]" - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 5 - - tooltip = "SCHEME_WINDOW_AUTO_ASSIGN_AGENTS_TOOLTIP" - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - } - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/message_feed/spy_master.dds" - } - - button_checkbox_label = { - size = { 30 30 } - onclick = "[IntrigueWindow.ToggleAutoAssigningAgents]" - - blockoverride "checkbox" - { - checked = "[IntrigueWindow.IsAutoAssigningAgents]" - } - - blockoverride "text" - { - text = "SCHEME_WINDOW_AUTO_ASSIGN_AGENTS" - } - } - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - ### HOOKS AND SECRETS - scrollbox = { - name = "hooks_and_secrets" - widgetid = "hooks_and_secrets" - visible = "[IntrigueWindow.IsTabShown( 'hooks_and_secrets' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - } - - background = { - texture = "gfx/interface/illustrations/event_scenes/alley.dds" - fittype = end - alpha = 0.6 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" - { - spacing = 10 - - # My Hooks - vbox = { - name = "my_hooks" - layoutpolicy_horizontal = expanding - spacing = 2 - - widget = { - size = { -1 24 } - layoutpolicy_horizontal = expanding - - hbox = { - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "INTRIGUE_WINDOW_MY_HOOKS_TITLE" - } - } - - hbox = { - margin = { 10 0 } - spacing = 10 - - expand = {} - - hbox = { - spacing = 4 - tooltip = "INTRIGUE_WINDOW_WEAK_HOOKS_COUNT" - - icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = 1 - } - - text_single = { - text = "[IntrigueWindow.GetMyWeakHooksCount]" - } - } - - hbox = { - spacing = 4 - tooltip = "INTRIGUE_WINDOW_STRONG_HOOKS_COUNT" - - icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = 2 - } - - text_single = { - text = "[IntrigueWindow.GetMyStrongHooksCount]" - } - } - - spacer = {} - - hbox = { - - button_expand = { - name = "show" - visible = "[GreaterThan_int32(GetDataModelSize(IntrigueWindow.GetMyHooks), '(int32)4')]" - frame = "[Select_int32( GetVariableSystem.Exists( 'hooks_expand' ), '(int32)2', '(int32)1' )]" - onclick = "[GetVariableSystem.Toggle( 'hooks_expand' )]" - - using = tooltip_ws - tooltip = "EXPAND_FILTER" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - datamodel = "[IntrigueWindow.GetMyHooks]" - visible = "[And( GetVariableSystem.Exists( 'hooks_expand' ), DataModelHasItems( IntrigueWindow.GetMyHooks ) )]" - flipdirection = yes - maxhorizontalslots = 4 - datamodel_wrap = 4 - - addcolumn = 116 - addrow = 120 - - item = { - portrait_head = { - datacontext = "[IntrigueWindowHookItem.GetCharacter]" - } - } - } - - fixedgridbox = { - datamodel = "[IntrigueWindow.GetMyHooks]" - visible = "[And( Not( GetVariableSystem.Exists( 'hooks_expand' ) ), DataModelHasItems( IntrigueWindow.GetMyHooks ) )]" - flipdirection = yes - maxhorizontalslots = 4 - - addcolumn = 116 - addrow = 120 - - item = { - portrait_head = { - datacontext = "[IntrigueWindowHookItem.GetCharacter]" - } - } - } - - expand = {} - - text_single = { - visible = "[And( Not( GetVariableSystem.Exists( 'hooks_expand' ) ), GreaterThan_int32(GetDataModelSize(IntrigueWindow.GetMyHooks), '(int32)4') )]" - layoutpolicy_vertical = growing - layoutpolicy_horizontal = expanding - - text = "[GetNumberAbove_int32(GetDataModelSize(IntrigueWindow.GetMyHooks), '(int32)4' )|=]" - align = center - default_format = "#weak" - using = Font_Size_Medium - } - } - - text_multi = { - visible = "[IsDataModelEmpty( IntrigueWindow.GetMyHooks )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 120 } - text = "MY_HOOKS_ARE_EMPTY" - align = center - - background = { - using = Background_Area - } - } - } - - # Secrets known to me - vbox = { - name = "secrets_known_to_me" - layoutpolicy_horizontal = expanding - spacing = 2 - - widget = { - size = { -1 24 } - layoutpolicy_horizontal = expanding - - hbox = { - text_label_center = { - layoutpolicy_horizontal = expanding - text = "INTRIGUE_WINDOW_SECRETS_KNOWN_TO_ME_TITLE" - } - } - - hbox = { - expand = {} - - hbox = { - margin_right = 15 - spacing = 5 - tooltip = "INTRIGUE_WINDOW_HOOK_SHOW_ALL" - - button_checkbox = { - name = "show_all_secrets" - onclick = "[GetVariableSystem.Toggle( 'secrets_show_all' )]" - checked = "[GetVariableSystem.Exists( 'secrets_show_all' )]" - } - - icon = { - size = { 20 20 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = 4 - } - } - } - } - - vbox_secret_item = { - datamodel = "[IntrigueWindow.GetSecretsKnownToMe]" - layoutpolicy_horizontal = expanding - - blockoverride "portrait" - { - datacontext = "[IntrigueWindowSecretGroup.GetCharacter]" - } - } - - text_multi = { - visible = "[IsDataModelEmpty( IntrigueWindow.GetSecretsKnownToMe )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 120 } - text = "SECRETS_KNOWN_TO_ME_IS_EMPTY" - align = center - - background = { - using = Background_Area - } - } - } - - # Hooks on you - vbox = { - name = "hooks_on_me" - layoutpolicy_horizontal = expanding - spacing = 2 - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "INTRIGUE_WINDOW_HOOKS_ON_ME_TITLE" - - hbox = { - margin = { 10 0 } - spacing = 10 - - expand = {} - - hbox = { - spacing = 4 - tooltip = "INTRIGUE_WINDOW_WEAK_HOOKS_COUNT" - - icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = 1 - } - - text_single = { - text = "[IntrigueWindow.GetWeakHooksOnMeCount]" - } - } - - hbox = { - spacing = 4 - tooltip = "INTRIGUE_WINDOW_STRONG_HOOKS_COUNT" - - icon = { - size = { 14 14 } - texture = "gfx/interface/icons/portraits/hook_secret_small.dds" - framesize = { 28 28 } - frame = 2 - } - - text_single = { - text = "[IntrigueWindow.GetStrongHooksOnMeCount]" - } - } - } - } - - vbox = { - datamodel = "[IntrigueWindow.GetHooksOnMe]" - visible = "[DataModelHasItems( IntrigueWindow.GetHooksOnMe )]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[IntrigueWindowHookItem.GetHook]" - - background = { - using = Background_Area - } - - portrait_head_small = { - datacontext = "[IntrigueWindowHookItem.GetCharacter]" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 20 20 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = "[Hook.GetHookFrame]" - } - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = " [Hook.GetHookStrengthState]" - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "[Hook.GetName]" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Hook.HasExpirationDate]" - text = "INTRIGUE_WINDOW_HOOK_EXPIRATION" - default_format = "#low" - autoresize = no - } - - expand = {} - } - } - - expand = {} - } - } - } - - text_multi = { - visible = "[IsDataModelEmpty( IntrigueWindow.GetHooksOnMe )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 120 } - text = "NOBODY_HAS_HOOKS_ON_ME" - align = center - - background = { - using = Background_Area - } - } - } - - # My secrets - vbox = { - name = "my_secrets" - layoutpolicy_horizontal = expanding - spacing = 2 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "INTRIGUE_WINDOW_MY_SECRETS_TITLE" - } - - vbox = { - name = "my_secrets_grid" - datamodel = "[IntrigueWindow.GetMySecrets]" - visible = "[DataModelHasItems( IntrigueWindow.GetMySecrets )]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - datacontext = "[IntrigueWindowSecretItem.GetSecret]" - visible = "[Secret.IsValid]" - layoutpolicy_horizontal = expanding - - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - spacing = 5 - - tooltip = "[Secret.GetTooltipDesc]" - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon = { - texture = "[Secret.GetType.GetIcon]" - size = { 30 30 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "INTRIGUE_WINDOW_SECRET_DESC" - align = nobaseline - max_width = 450 - } - - expand = {} - } - - vbox_secret_item = { - visible = "[IntrigueWindowSecretItem.IsExpanded]" - datamodel = "[IntrigueWindowSecretItem.GetKnownBy]" - layoutpolicy_horizontal = expanding - - blockoverride "portrait_context" - { - } - } - } - } - } - - text_multi = { - visible = "[IsDataModelEmpty( IntrigueWindow.GetMySecrets )]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 290 } - text = "I_HAVE_NO_SECRETS" - align = center - } - } - } - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types IntrigueWindow -{ - type widget_own_scheme_item = widget { - name = "my_own_scheme" - datacontext = "[SchemeItem.GetScheme]" - - widget = { - visible = "[Scheme.IsExposed]" - parentanchor = bottom|hcenter - size = { 99% 92% } - - icon = { - position = { 0 -5 } - size = { 100% 101% } - texture = "gfx/interface/colors/white.dds" - alpha = 0.3 - using = Color_Red - using = Mask_Rough_Edges - - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_vignette.dds" - blend_mode = alphamultiply - } - - state = { - trigger_on_create = yes - name = a - next = b - alpha = 0.4 - duration = 2 - using = Animation_Curve_Default - } - - state = { - name = b - next = a - alpha = 0.2 - duration = 2.5 - using = Animation_Curve_Default - } - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 1 - } - - state = { - name = mask_a - next = mask_b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - - state = { - name = mask_b - next = mask_a - duration = 40 - - modify_texture = { - name = "clouds" - translate_uv = { 0 1 } - } - } - } - } - - vbox = { - set_parent_size_to_minimum = yes - - background = { - using = Background_Area - } - - background = { - using = Background_Frame - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - hbox = { - name = "my_own_scheme_header" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - margin_left = 20 - margin_right = 5 - - background = { - texture = "gfx/interface/window_scheme/scheme_panel_header_banner.dds" - margin_top = -2 - margin_bottom = -3 - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - texture = "[Scheme.GetSchemeType.GetIcon]" - size = { 30 30 } - alwaystransparent = yes - - tooltip = "SCHEME_WINDOW_TT_ITEM" - - background = { - texture = "gfx/interface/window_scheme/scheme_panel_header_icon_bg.dds" - margin = { 13 13 } - } - } - - text_single = { - text = "SCHEME_WINDOW_ITEM_NAME" - using = Font_Size_Medium - align = nobaseline - max_width = 480 - margin_left = 15 - } - - icon = { - visible = "[Scheme.IsExposed]" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - - tooltip = "SCHEME_WINDOW_EXPOSED_TOOLTIP" - - glow = { - using = Color_Red - using = Glow_Standard - glow_radius = 3 - } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - - glow_alpha = 0.8 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - - glow_alpha = 0.2 - } - } - - expand = {} - } - - button_cancel = { - name = "cancel_button" - size = { 30 30 } - - onclick = "[SchemeItem.OnCancelClick]" - enabled = "[SchemeItem.CanCancelScheme]" - tooltip = "[SchemeItem.GetCancelSchemeDescription]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 5 - spacing = 5 - - widget = { - name = "scheme_target_portrait_and_countermeasure" - size = { 110 120 } - - # Target - container = { - parentanchor = center - - # Character Target - container = { - datacontext = "[Scheme.GetTargetCharacter]" - visible = "[Character.IsValid]" - - portrait_head = { - datacontext = "[Scheme.GetTargetCharacter]" - using = tooltip_es - - blockoverride "portrait_button" - { - tooltip = "SCHEME_WINDOW_SCHEME_TARGET" - } - } - } - - # Title Target - container = { - datacontext = "[Scheme.GetTargetTitle]" - visible = "[Title.IsValid]" - parentanchor = center - - coa_title_big = { - tooltip_visible = no - alwaystransparent = yes - } - } - - # Faith Target - container = { - datacontext = "[Scheme.GetTargetFaith]" - visible = "[Faith.IsValid]" - - icon = { - name = "faith_icon" - texture = "[Faith.GetIcon]" - size = { 100 100 } - } - } - - # Culture Target - container = { - datacontext = "[Scheme.GetTargetCulture]" - visible = "[Culture.IsValid]" - - text_single = { - text = "INTRIGUE_WINDOW_GETCULTURE" - } - } - } - - widget = { - visible = "[Scheme.GetSchemeCountermeasureProtectingTarget().IsValid()]" - datacontext = "[Scheme.GetSchemeCountermeasureProtectingTarget()]" - parentanchor = top|left - size = { 30 30 } - - tooltip = "SCHEME_COUNTERMEASURE_PROTECTING_TARGET" - - background = { - using = Background_Area_ExtraDark - margin = { 2 2 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_circle.dds" - blend_mode = alphamultiply - } - } - - # The frame - icon = { - parentanchor = center - size = { 30 30 } - alwaystransparent = yes - - texture = "gfx/interface/icons/scheme_countermeasure_types/frame_purple.dds" - } - - # The countermeasure icon - icon = { - visible = "[SchemeCountermeasureType.IsValid]" - parentanchor = center - size = { 30 30 } - alwaystransparent = yes - - texture = "[SchemeCountermeasureType.GetIcon]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]" - allow_outside = yes - layoutpolicy_horizontal = expanding - size = { 390 30 } - - tooltip = "SCHEME_WINDOW_SUCCESS_TOOLTIP" - - widget = { - name = "scheme_success_progressbar" - datacontext = "[SchemeItem.GetProgressLevels]" - parentanchor = right|vcenter - position = { -8 0 } - size = { 350 16 } - allow_outside = yes - - icon = { - parentanchor = center - size = { 372 26 } - texture = "gfx/interface/window_scheme/scheme_success_progressbar_bg.dds" - } - - hbox_complex_bar_progress_next = { - blockoverride "texture_decrease" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - } - - icon = { - name = "success_icon" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - position = { -32 -8} - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" { - widget_level_marker = { - allow_outside = yes - scale = 0.80 - - blockoverride "visible_active" { - visible = "[EqualTo_CFixedPoint( Scheme.GetSuccessChance, ComplexBarItem.GetValue )]" - } - - text_single = { - parentanchor = center - - text = "[ComplexBarItem.GetValue|0%/]" - tooltip = "[SchemeItem.GetProgressLevelTooltips( PdxGuiWidget.GetIndexInDataModel )]" - align = nobaseline - - using = Font_Size_Medium - } - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[SchemeItem.GetScheme]" - visible = "[Scheme.GetSchemeType.IsBasic]" - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "SCHEME_WINDOW_SUCCESS_BASIC_TOOLTIP" - - icon = { - name = "success_icon" - size = { 30 30 } - - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - } - - text_single = { - name = "success_chance" - text = "SCHEME_WINDOW_SUCCESS_CHANCE" - align = nobaseline - max_width = 310 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "SCHEME_WINDOW_PROGRESS_INFO_BREAKDOWN" - - icon = { - name = "speed_icon" - size = { 30 30 } - - texture = "gfx/interface/icons/schemes/icon_scheme_speed.dds" - } - - text_single = { - name = "speed" - visible = "[Scheme.IsUnfrozen]" - text = "[SelectLocalization(Scheme.GetSchemeType.IsBasic, 'SCHEME_WINDOW_PROGRESS_INFO_BASIC', 'SCHEME_WINDOW_PROGRESS_INFO')]" - align = nobaseline - max_width = 310 - } - - text_single = { - name = "scheme_frozen" - visible = "[Scheme.IsFrozen]" - text = "SCHEME_WINDOW_PROGRESS_FROZEN" - align = nobaseline - max_width = 310 - } - - expand = {} - } - - hbox = { - visible = "[Scheme.IsSecret]" - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "SCHEME_WINDOW_SECRECY_TOOLTIP" - - icon = { - name = "secrecy_icon" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - } - - text_single = { - name = "secrecy" - text = "SCHEME_WINDOW_SECRECY" - align = nobaseline - max_width = 310 - } - - expand = {} - } - - hbox = { - visible = "[Scheme.IsSecret]" - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - name = "breach_not_in_grace_period" - visible = "[LessThanOrEqualTo_CFixedPoint( Scheme.MakeScope.Var('secrecy_grace_period').GetValue, '(CFixedPoint)0' )]" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_breach.dds" - } - - icon = { - name = "breach_in_grace_period" - visible = "[Not( LessThanOrEqualTo_CFixedPoint( Scheme.MakeScope.Var('secrecy_grace_period').GetValue, '(CFixedPoint)0' ))]" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_breach_grace_period.dds" - } - - text_single = { - name = "breaches" - text = "SCHEME_WINDOW_BREACHES" - align = nobaseline - max_width = 310 - } - - expand = {} - } - - text_multi = { - visible = "[And( Scheme.HasTaskContract, InDebugMode )]" - layoutpolicy_horizontal = expanding - raw_text= "#D Contract: [Scheme.GetTaskContract.GetNameNoTooltip]#!" - } - - expand = {} - - hbox = { - widget = { - visible = "[SchemeItem.GetScheme.GetSchemeType.IsBasic]" - size = { 384 0 } - } - } - } - } - - expand = {} - } - } - - spacer = { - visible = "[IsDataModelEmpty(Scheme.GetModifiers)]" - size = { 0 10 } - } - - hbox = { - visible = "[Not( IsDataModelEmpty(Scheme.GetModifiers))]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - margin_left = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 5 - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - text = "SCHEME_WINDOW_MODIFIERS" - align = nobaseline - margin_left = 10 - } - - fixedgridbox = { - datamodel = "[Scheme.GetModifiers]" - addcolumn = 30 - addrow = 25 - flipdirection = yes - datamodel_wrap = 10 - maxhorizontalslots = 10 - maxverticalslots = 1 - - item = { - widget = { - parentanchor = vcenter - size = { 25 25 } - - datacontext = "[SchemeModifier.GetStaticModifier]" - - icon = { - name = "scheme_modifier_icon" - size = { 100% 100% } - texture = "[SchemeModifier.GetIcon]" - } - - tooltipwidget = { - static_modifier_tooltip = { - - blockoverride "description_text_data" - { - text = "[SchemeModifier.GetDesc]" - } - } - } - } - } - } - - expand = {} - } - } - - button_standard = { - name = "open_scheme_prep" - visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]" - size = { 490 44 } - - onclick = "[PostCommand( SchemeItem.TriggerSchemeHudClick )]" - onrightclick = "[PostCommand( SchemeItem.TriggerSchemeHudClick )]" - - tooltip = "SCHEME_WINDOW_OPEN_PREP_EXPLANATION_TT" - - icon = { - parentanchor = vcenter - position = { 2 0 } - size = { 98 56 } - texture = "gfx/interface/window_scheme/scheme_opportunity_illustration.dds" - alpha = 0.6 - scale = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - icon = { - parentanchor = center - size = { 99.3% 40 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - hbox = { - datacontext = "[SchemeItem.GetScheme]" - layoutpolicy_horizontal = expanding - - text_single = { - alwaystransparent = yes - text = "SCHEME_WINDOW_OPEN_PREP_TT" - align = left|nobaseline - max_width = 480 - } - } - - widget = { - parentanchor = right|vcenter - position = { -10 0 } - - hbox = { - widgetanchor = right|vcenter - parentanchor = center - layoutpolicy_horizontal = preferred - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_opportunity.dds" - visible = "[Not( SchemeHasExecutableAdvantages( Scheme ) )]" - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_scheme_opportunity.dds" - visible = "[SchemeHasExecutableAdvantages( Scheme )]" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Green - alpha = 0 - } - - state = { - name = start_glow - next = a - duration = 3 - glow_alpha = 0.3 - trigger_on_create = yes - } - - state = { - name = a - next = b - duration = 3 - glow_alpha = 0.5 - } - - state = { - name = b - next = a - duration = 3 - glow_alpha = 0.1 - } - } - - text_single = { - text = "[Scheme.GetAgentCharges]" - align = nobaseline|right - } - } - } - } - - vbox = { - visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]" - layoutpolicy_horizontal = expanding - - margin = { 0 10 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 5 - spacing = 10 - - ### MEMBERS BUTTONS - button_expandable_toggle_field = { - name = "my_own_scheme_buttons" - visible = "[Not(SchemeItem.GetScheme.GetSchemeType.IsBasic)]" - layoutpolicy_horizontal = expanding - - enabled = "[SchemeItem.HasAgents]" - - blockoverride "button_expand" - { - frame = "[SelectFrame( 'own_scheme_expand' )]" - } - - blockoverride "onclick" - { - onclick = "[GetVariableSystem.Toggle( 'own_scheme_expand')]" - } - - blockoverride "text" - { - text = "SCHEME_WINDOW_SHOW_MEMBERS" - } - - - } - } - - ### MEMBERS - vbox = { - name = "my_own_scheme_members" - visible = "[And(GetVariableSystem.Exists( 'own_scheme_expand' ), Not(SchemeItem.GetScheme.GetSchemeType.IsBasic))]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - fixedgridbox = { - name = "owner_member_grid" - datamodel = "[SchemeItem.GetAgentSlots]" - addcolumn = 100 - addrow = 152 - flipdirection = yes - datamodel_wrap = 5 - - item = { - widget_scheme_agent_slot_item = {} - } - } - } - } - } - } -} - -types IntrigueWindowTypes -{ - type widget_scheme_agent_slot_item = widget { - datacontext = "[SchemeAgentSlotItem.GetCharacter]" - size = { 96 150 } - - background = { - using = Background_Area - } - - background = { - using = Background_Frame - } - - vbox = { - margin_top = 5 - margin_bottom = 10 - - selectable_target_portrait_widget = { - blockoverride "empty_slot" - { - onclick = "[SchemeItem.ShowPotentialAgents(SchemeAgentSlotItem.Self)]" - } - - blockoverride "filled_slot" - { - button_round = { - - parentanchor = top|right - size = { 25 25 } - - onclick = "[CreateCommandPopup( SchemeAgentSlotItem.RemoveAgent )]" - - tooltip = "INTRIGUE_WINDOW_REMOVE_AGENT_TT" - - button_close = { - alwaystransparent = yes - datacontext = "[SchemeAgentSlotItem.GetCharacter]" - parentanchor = center - size = { 15 15 } - } - } - } - - icon = { - visible = "[SchemeAgentSlotItem.IsExposed]" - parentanchor = top|left - size = { 25 25 } - alwaystransparent = yes - texture = "gfx/interface/icons/schemes/icon_discovered_scheme.dds" - - tooltip = "INTRIGUE_WINDOW_AGENT_DISCOVERED_TT" - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - } - - glow = { - using = Color_Red - using = Glow_Standard - glow_radius = 3 - } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - - glow_alpha = 0.8 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - - glow_alpha = 0.2 - } - } - } - - vbox = { - name = "scheme_agent_info" - - text_single = { - text = "[SchemeAgentSlotItem.GetSlot.GetSlotType.GetName]" - align = nobaseline - max_width = 70 - - tooltip = "[SchemeAgentSlotItem.GetSlot.GetSlotType.GetDesc]" - } - - hbox = { - name = "scheme_agent_contribution" - spacing = 5 - - tooltip = "[SelectLocalization(SchemeAgentSlotItem.IsFilled, 'INTRIGUE_WINDOW_SCHEME_CONTRIBUTION_TT', 'INTRIGUE_WINDOW_SCHEME_CONTRIBUTION_TT_AGENT_SLOT_EMPTY')]" - - icon = { - name = contribution_icon - size = { 25 25 } - texture = "[SchemeAgentSlotItem.GetContributionIcon]" - } - - text_single = { - text = "[SchemeAgentSlotItem.GetContribution|0]" - align = nobaseline - default_format = "#high" - } - } - } - } - } - - type widget_scheme_countermeasures = widget { - size = { 400 80 } - - vbox = { - # Scheme Countermeasures heading - text_label_center = { - text = "[scheme_countermeasures|E]" - } - - ## Countermeasure icons - hbox = { - name = "scheme_countermeasure_icons" - datamodel = "[IntrigueWindow.GetCountermeasures]" - - background = { - texture = "gfx/interface/window_scheme/scheme_countermeasures_bg.dds" - margin = { 45 -6 } - } - - item = { - container = { - visible = "[IntrigueWindowCountermeasureItem.IsVisible]" - - datacontext = "[IntrigueWindowCountermeasureItem.GetType]" - tooltip = "[IntrigueWindowCountermeasureItem.GetTooltip]" - using = tooltip_se - - widget = { - size = { 50 50 } - - # Selection halo - icon = { - visible = "[IntrigueWindowCountermeasureItem.IsActive]" - texture = "gfx/particles/halo.dds" - parentanchor = center - size = { 60 60 } - color = { 1 0.85 0.6 1 } - } - - button_round = { - parentanchor = center - size = { 48 48 } - - onclick = "[IntrigueWindowCountermeasureItem.SetCounterMeasure( IntrigueWindow.GetCharacter.Self )]" - alwaystransparent = "[And( IntrigueWindowCountermeasureItem.IsSelectable(), IntrigueWindowCountermeasureItem.IsActive )]" - #enabled = "[And( IntrigueWindowCountermeasureItem.IsSelectable(), Not( IntrigueWindowCountermeasureItem.IsActive ) )]" - - # Frame - highlight_icon = { - parentanchor = center - size = { 38 38 } - alwaystransparent = yes - - texture = "gfx/interface/icons/scheme_countermeasure_types/frame_purple.dds" - enabled = "[IntrigueWindowCountermeasureItem.IsSelectable()]" - } - - # Countermeasure icon - highlight_icon = { - visible = "[SchemeCountermeasureType.IsValid]" - parentanchor = center - size = { 38 38 } - alwaystransparent = yes - - texture = "[IntrigueWindowCountermeasureItem.GetType.GetIcon]" - enabled = "[IntrigueWindowCountermeasureItem.IsSelectable()]" - } - - # No countermeasure icon - highlight_icon = { - visible = "[Not( SchemeCountermeasureType.IsValid )]" - parentanchor = center - size = { 38 38 } - alwaystransparent = yes - - texture = "gfx/interface/icons/scheme_countermeasure_types/no_countermeasure.dds" - enabled = "[IntrigueWindowCountermeasureItem.IsSelectable()]" - } - - # Countermeasure tier - highlight_icon = { - visible = "[SchemeCountermeasureType.IsValid]" - parentanchor = center - position = { 0 2 } - size = { 48 48 } - alwaystransparent = yes - - texture = "[SchemeCountermeasureType.GetFrame]" - } - - # AI debug info - text_single = { - visible = "[AIWatchWindowsEnabled]" - parentanchor = bottom|left - position = { 0 15 } - text = "INTRIGUE_WINDOW_SCHEME_COUNTERMEASURE_ITEM_AI_VALUE_LABLE" - } - } - } - } - } - } - } - } - - type vbox_discovered_scheme_item = vbox { - name = "known_scheme" - datacontext = "[SchemeItem.GetScheme]" - - background = { - using = Background_Area - margin_bottom = -2 - } - - background = { - using = Background_Frame - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - vbox = { - name = "my_own_scheme_header" - layoutpolicy_horizontal = expanding - - hbox = { - name = "my_own_scheme_header" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - margin_left = 20 - margin_right = 5 - - background = { - texture = "gfx/interface/window_scheme/scheme_panel_header_banner_red.dds" - margin_top = -2 - margin_bottom = -3 - } - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - texture = "[Scheme.GetSchemeType.GetIcon]" - size = { 30 30 } - alwaystransparent = yes - - tooltip = "SCHEME_WINDOW_TT_ITEM" - - background = { - texture = "gfx/interface/window_scheme/scheme_panel_header_icon_bg_red.dds" - margin = { 13 13 } - } - } - - text_single = { - text = "SCHEME_WINDOW_ITEM_NAME" - using = Font_Size_Medium - align = nobaseline - max_width = 480 - margin_left = 15 - } - - expand = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 10 5 } - spacing = 5 - - portrait_head = { - name = "target_portrait" - datacontext = "[Scheme.GetTargetCharacter]" - - using = tooltip_es - - blockoverride "portrait_button" - { - tooltip = "SCHEME_WINDOW_SCHEME_TARGET" - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "SCHEME_WINDOW_SUCCESS_DISCOVERED_TOOLTIP" - - icon = { - name = success_icon - size = { 30 30 } - - texture = "gfx/interface/icons/schemes/icon_scheme_success.dds" - } - - text_multi = { - name = "success" - autoresize = yes - text = "SCHEME_WINDOW_SUCCESS_CHANCE_MAIN" - align = nobaseline - max_width = 350 - } - - expand = {} - } - - hbox = { - visible = "[Scheme.IsSecret]" - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "SCHEME_WINDOW_SECRECY_DISCOVERED_TOOLTIP" - - icon = { - name = "secrecy_icon" - size = { 30 30 } - texture = "gfx/interface/icons/schemes/icon_secrecy.dds" - } - - text_single = { - name = "secrecy" - text = "SCHEME_WINDOW_SECRECY" - align = nobaseline - max_width = 350 - } - - expand = {} - } - - expand = {} - } - - expand = {} - } - } - - vbox = { - name = "known_scheme_members" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 5 - - background = { - using = Background_Area - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SCHEME_WINDOW_MEMBER_LIST" - align = center|nobaseline - margin = { 0 5 } - - background = { - using = Background_Area - margin = { 5 0 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "owner_member_grid" - datamodel = "[SchemeItem.GetAgentSlots]" - addcolumn = 95 - addrow = 95 - datamodel_wrap = 5 - flipdirection = yes - - item = { - portrait_head_small = { - datacontext = "[SchemeAgentSlotItem.GetCharacter]" - visible = "[SchemeAgentSlotItem.IsFilled]" - } - } - } - - expand = {} - } - - hbox = { - visible = "[Not(SchemeItem.HasAgents)]" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - text_single = { - text = "SCHEME_WINDOW_NO_KNOWN_AGENTS" - align = center|nobaseline - default_format = "#low;italic" - } - } - - expand = {} - } - } - - type vbox_secret_item = vbox { - spacing = 7 - - item = { - hbox = { - visible = "[Or( IntrigueWindowSecretGroup.HasUnspentHooks, GetVariableSystem.Exists( 'secrets_show_all' ) )]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - portrait_head_small = { - block "portrait" {} - } - - vbox = { - datacontext = "[IntrigueWindowSecretGroup.GetCharacter]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_right = 10 - margin_top = 5 - margin_bottom = 10 - - vbox = { - name = "secrets" - datamodel = "[IntrigueWindowSecretGroup.GetSecrets]" - visible = "[DataModelHasItems( IntrigueWindowSecretGroup.GetSecrets )]" - layoutpolicy_horizontal = expanding - - margin = { 5 5 } - spacing = 5 - - item = { - hbox = { - datacontext = "[IntrigueWindowSecretItem.GetSecret]" - visible = "[And( Secret.IsValid, Or( Not( IntrigueWindowSecretItem.IsSpent ), GetVariableSystem.Exists( 'secrets_show_all' ) ) )]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - icon = { - texture = "[Secret.GetType.GetIcon]" - size = { 30 30 } - tooltip = "INTRIGUE_WINDOW_SECRET_TOOLTIP" - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "INTRIGUE_WINDOW_SECRET_DESC" - align = nobaseline - autoresize = yes - max_width = 300 - } - - expand = {} - - icon = { - visible = "[IntrigueWindowSecretItem.IsWeakHook( Character.Self )]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = {40 40 } - frame = 1 - - tooltip = "INTRIGUE_WINDOW_BLACKMAIL_WEAK_HOOK_TT" - } - - icon = { - visible = "[IntrigueWindowSecretItem.IsStrongHook( Character.Self )]" - size = { 20 20 } - texture = "gfx/interface/icons/portraits/hook_secret.dds" - framesize = { 40 40 } - frame = 2 - - tooltip = "INTRIGUE_WINDOW_BLACKMAIL_STRONG_HOOK_TT" - } - - warning_icon = { - visible = "[Not( Character.IsPlayerInteractionWithTargetSecretValid( 'blackmail_interaction', Secret.Self ) )]" - size = { 20 20 } - - tooltip = "[Character.GetPlayerInteractionWithTargetSecretTooltip( 'blackmail_interaction', Secret.Self )]" - } - } - } - } - - expand = {} - - hbox = { - visible = "[Character.IsPlayerInteractionShown('blackmail_interaction')]" - layoutpolicy_horizontal = expanding - margin_right = 5 - spacing = 5 - - expand = {} - - button_standard_small = { - name = "blackmail_button" - datacontext = "[IntrigueWindowSecretGroup.GetFirstSecret.GetSecret]" - size = { 120 25 } - enabled = "[IntrigueWindowSecretGroup.CanBlackmail]" - onclick = "[Character.OpenPlayerInteraction( 'blackmail_interaction' )]" - text = "INTRIGUE_WINDOW_SECRET_KNOWN_TO_ME_BLACKMAIL" - - tooltip = "INTRIGUE_WINDOW_SECRET_BLACKMAIL_TT" - using = tooltip_se - } - - button_tertiary = { - name = "expose_button" - datacontext = "[IntrigueWindowSecretGroup.GetFirstSecret.GetSecret]" - size = { 120 25 } - onclick = "[Character.OpenPlayerInteraction( 'expose_secret_interaction' )]" - #"[IntrigueWindow.ExposeSecret( Character.Self, 'blackmail_interaction', Secret.Self )]" - text = "INTRIGUE_WINDOW_SECRET_EXPOSE" - - tooltip = "INTRIGUE_WINDOW_SECRET_EXPOSE_TT" - using = tooltip_se - } - - - } - } - - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_intrigue_potential_faction_member.gui b/N3OW/gui/window_intrigue_potential_faction_member.gui deleted file mode 100644 index 5e1c51e7..00000000 --- a/N3OW/gui/window_intrigue_potential_faction_member.gui +++ /dev/null @@ -1,173 +0,0 @@ -window = { - name = "potential_faction_member_window" - position = { -590 110 } - movable = no - resizable = no - parentanchor = right - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList_Small - - state = { - name = _show - using = Animation_FadeIn_Quick - - position_x = -590 - - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -560 - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "POTENTIAL_FACTION_MEMBERS_HEADER" - } - - blockoverride "button_close" - { - onclick = "[PotentialFactionMemberWindow.Close]" - } - } - - vbox_character_list = { - datacontext = "[PotentialFactionMemberWindow.GetListItems]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - blockoverride "item_size" { - size = { 480 110 } - layoutpolicy_horizontal = expanding - } - - blockoverride "button_content" - { - vbox = { - margin = { 10 5 } - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - autoresize = no - text = "[Character.GetUINameNoTooltip]" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - margin_top = 3 - - text_single = { - name = "opinion_liege" - visible = "[Not(Character.GetLiege.IsLocalPlayer)]" - text = "CHARACTER_WINDOW_OPINION_OF_LIEGE" - align = nobaseline - } - - - portrait_opinion = { - name = "liege_opinion" - visible = "[Not(Character.GetLiege.IsLocalPlayer)]" - - blockoverride "opinion_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( Character.GetLiege )]" - } - - blockoverride "ott_heading_text" - { - text = "[Character.GetOpinionHeadingText( Character.GetLiege )]" - } - - blockoverride "ott_opinion_value_text" - { - text = "[Character.GetOpinionOf( Character.GetLiege )|=]" - fonttintcolor = "[Character.GetOpinionOfTint( Character.GetLiege )]" - } - - blockoverride "ott_opinion_breakdown_text" - { - text = "[Character.GetOpinionBreakdownText( Character.GetLiege )]" - } - } - - expand = {} - - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - tooltip = "[CharacterListItem.GetText('military_strength_tooltip')]" - layoutpolicy_horizontal = expanding - spacing = 5 - - icon = { - name = "icon_combat_strength" - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - name = "military_total_strength" - layoutpolicy_horizontal = expanding - text = "[CharacterListItem.GetInt('military_strength')]" - default_format = "#high" - using = Font_Size_Big - } - } - - text_single = { - name = "status" - text = "[CharacterListItem.GetText('status')]" - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[PotentialFactionMemberWindow.GetListItems]" - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_intrigue_potential_scheme_agent.gui b/N3OW/gui/window_intrigue_potential_scheme_agent.gui deleted file mode 100644 index 489c25af..00000000 --- a/N3OW/gui/window_intrigue_potential_scheme_agent.gui +++ /dev/null @@ -1,217 +0,0 @@ -window = { - name = "potential_agent_window" - position = { -630 110 } - movable = no - parentanchor = right - allow_outside = yes - layer = middle - - using = Window_Background_Subwindow - using = Window_Size_CharacterList_Small - - state = { - name = _show - using = Animation_FadeIn_Quick - - position_x = -630 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -590 - } - - vbox = { - margin = { 5 5 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "POTENTIAL_AGENT_HEADER" - } - - blockoverride "button_close" { - onclick = "[PotentialAgentWindow.Close]" - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - - text = "[PotentialAgentWindow.GetAgentSlotType.GetDesc]" - max_width = 530 - max_height = 150 - } - - vbox_character_list = { - datacontext = "[PotentialAgentWindow.GetListItems]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - - blockoverride "item_size" { - size = { 480 110 } - layoutpolicy_horizontal = expanding - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 535 - addrow = 110 - - item = { - widget_character_list_item = { - size = { 515 110 } - - datacontext = "[CharacterListItem.GetCharacter]" - - blockoverride "portrait_button" - { - grayscale = "[Not(CharacterListItem.IsSelectable)]" - } - - blockoverride "widget" - { - background = { - visible = "[Not(CharacterListItem.IsSelectable)]" - using = Background_Area - margin_bottom = -4 - } - } - - blockoverride "button_content" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 5 } - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNoTooltip]" - max_width = 220 - using = Font_Size_Medium - alwaystransparent = yes - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - align = left - max_width = 220 - alwaystransparent = yes - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 10 - - ### Contribution - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - tooltip = "[CharacterListItem.GetText( 'contribution_desc' )]" - - icon = { - name = contribution_icon - size = { 30 30 } - texture = "[PotentialAgentWindow.GetContributionTypeIcon]" - } - - text_single = { - name = "success" - layoutpolicy_horizontal = expanding - text = "[Abs_int32( CharacterListItem.GetInt( 'contribution' ) )]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - } - - expand = {} - - } - } - - vbox = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_top = 10 - margin_bottom = 8 - margin_right = 10 - - # Skills - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - - item = { - widget_skill_item_no_icon = {} - } - } - - expand = {} - - ### Acceptance - text_single = { - name = "acceptance" - layoutpolicy_horizontal = expanding - - text = "[CharacterListItem.GetText( 'acceptance' )]" - align = nobaseline|right - - tooltip = "[CharacterListItem.GetText( 'acceptance_desc' )]" - # not sure why it is needed, but without alwaystransparent, the button the text is on will not highlight - alwaystransparent = yes - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[PotentialAgentWindow.GetListItems]" - - blockoverride "addition_filter" { - filter_item = { - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - layoutpolicy_horizontal = expanding - } - } - } -} diff --git a/N3OW/gui/window_inventory.gui b/N3OW/gui/window_inventory.gui deleted file mode 100644 index 04de042b..00000000 --- a/N3OW/gui/window_inventory.gui +++ /dev/null @@ -1,1706 +0,0 @@ -window = { - name = "inventory_view" - widgetid = "inventory_view" - visible = "[And( InventoryView.IsVisible, Not(IsGameViewOpen('barbershop')) )]" - size = { 1222 840 } - layer = middle - - position = { 620 100 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - datacontext = "[GetVariableSystem]" - datacontext = "[InventoryView.GetCharacter]" - datacontext = "[InventoryView.GetCharacter.GetInventory]" - - state = { - name = _show - using = Animation_FadeIn_Standard - on_start = "[GetVariableSystem.Clear( 'court_artifacts' )]" - on_start = "[GetVariableSystem.Clear( 'claims' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - on_finish = "[AccessLocalPlayerCachedData.AccessNewArtifacts.ClearNewArtifactsOfCategory( 'inventory' )]" - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "INVENTORY_TITLE" - } - - blockoverride "button_close" - { - onclick = "[InventoryView.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ###LEFT SIDE - widget = { - name = "left side" - layoutpolicy_vertical = expanding - size = { 510 0 } - - background = { - texture = "gfx/interface/icons/inventory/character_paperdoll.dds" - fittype = centercrop - alpha = 0.6 - margin_bottom = -100 - margin_left = -10 - margin_right = -10 - margin_top = 20 - } - - widget = { - name = "equipped_inventory_artifacts_top_bar" - layoutpolicy_horizontal = expanding - position = { 150 0 } - allow_outside = yes - - text_label_center = { - datacontext = "[InventoryView.GetCharacter]" - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "INVENTORY_EQUIPPED_ARTIFACTS_HEADER" - margin = { 0 2 } - } - } - - widget = { - name = "antiquarian" - position = { 20 0 } - allow_outside = yes - visible = "[Not( IsLandlessAdventurer( InventoryView.GetCharacter ) )]" - - vbox = { - parentanchor = top - alwaystransparent = yes - - portrait_head_small = { - name = "antiquarian_portrait" - datacontext = "[InventoryView.GetCharacter.GetCharacterEmployedAs( 'antiquarian_court_position' )]" - - blockoverride "portrait_button" - { - onclick = "[ShowAppointCourtPositionIfNoEmployee( InventoryView.GetCharacter.GetID, 'antiquarian_court_position' )]" - enabled = "[InventoryView.GetCharacter.IsLocalPlayer]" - - icon_flat_standard_gold = { - visible = "[And( InventoryView.GetCharacter.IsLocalPlayer, Not( InventoryView.GetCharacter.GetCharacterEmployedAs( 'antiquarian_court_position' ).IsValid ) )]" - parentanchor = center - size = { 30 30 } - - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - - blockoverride "portrait_button_no_character_text" - { - text = "[SelectLocalization( InventoryView.GetCharacter.IsLocalPlayer,'PORTRAIT_NO_ANTIQUARIAN','CHARACTER_TOOLTIP_NO_PORTRAIT')]" - } - } - - text_single = { - text = "[GetCourtPositionType( 'antiquarian_court_position' ).GetName]" - } - } - } - - widget_inventory_slot = { - name = "head_slot" - datacontext = "[Inventory.GetSlot('crown')]" - parentanchor = top|hcenter - position = { 0 40 } - } - - widget_inventory_slot = { - name = "journal_slot" - datacontext = "[Inventory.GetSlot('journal')]" - parentanchor = top|right - position = { 0 40 } - } - - widget_inventory_slot = { - name = "regalia_slot" - datacontext = "[Inventory.GetSlot('regalia')]" - parentanchor = vcenter|right - position = { 0 -50 } - } - - widget_inventory_slot = { - name = "weapon_slot" - datacontext = "[Inventory.GetSlot('weapon')]" - parentanchor = vcenter|left - position = { 0 -50 } - } - - widget_inventory_slot = { - name = "armor_slot" - datacontext = "[Inventory.GetSlot('armor')]" - parentanchor = center - position = { 0 -50 } - } - - widget = { - name = "trinket_widget_hight" - parentanchor = bottom|hcenter - position = { 0 -120 } - allow_outside = yes - - widget_inventory_slot = { - name = "trinket_1_slot" - datacontext = "[Inventory.GetSlot('trinket_1')]" - parentanchor = bottom|hcenter - position = { -185 0 } - } - - widget_inventory_slot = { - name = "trinket_2_slot" - datacontext = "[Inventory.GetSlot('trinket_2')]" - parentanchor = bottom|hcenter - position = { -62 0 } - } - - widget_inventory_slot = { - name = "trinket_3_slot" - datacontext = "[Inventory.GetSlot('trinket_3')]" - parentanchor = bottom|hcenter - position = { 62 0 } - } - - widget_inventory_slot = { - name = "trinket_4_slot" - datacontext = "[Inventory.GetSlot('trinket_4')]" - parentanchor = bottom|hcenter - position = { 185 0 } - } - } - - widget = { - parentanchor = bottom|hcenter - position = { 0 -12 } - size = { 510 100 } - allow_outside = yes - - vbox = { - hbox = { - spacing = 10 - - button_standard = { - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - visible = "[Not( Character.HasRoyalCourt )]" - text = "INVENTORY_TAB_COURT_ARTIFACTS" - - tooltip = "[SelectLocalization( Inventory.HasAnyCourtArtifact, 'INVENTORY_TAB_COURT_ARTIFACTS_TOOLTIP', 'NO_COURT_ARTIFACTS' )]" - using = tooltip_se - - onclick = "[VariableSystem.Toggle( 'court_artifacts' )]" - onclick = "[VariableSystem.Clear( 'claims' )]" - onclick = "[InventoryView.ClearSelectedSlot]" - onclick = "[LocalPlayerNewArtifacts.ClearNewArtifactsOfCategory( 'court' )]" - - down = "[VariableSystem.Exists( 'court_artifacts' )]" - - button_round = { - size = { 20 20 } - parentanchor = top|right - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' )]" - } - } - - button_standard = { - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - visible = "[Character.HasRoyalCourt]" - text = "ROYAL_COURT" - - tooltip = "INVENTORY_COURT_ARTIFACTS_BUTTON_TOOLTIP" - using = tooltip_se - - onclick = "[VariableSystem.Set( 'artifacts_tab', 'artifacts' )]" - onclick = "[Character.OpenRoyalCourtView( 'artifacts' )]" - - onclick = "[InventoryView.Close]" - onclick = "[LocalPlayerNewArtifacts.ClearNewArtifactsOfCategory( 'court' )]" - - button_round = { - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - parentanchor = vcenter|right - size = { 20 20 } - position = { -5 0 } - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' )]" - } - } - - button_standard = { - datacontext = "[InventoryView.GetArtifactClaimsList]" - text = "INVENTORY_TAB_CLAIMS_HIS_HER_MY" - enabled = "[And( DataModelHasItems( ArtifactClaimsList.GetClaims ), Not( InventoryView.HasSelectedSlot ) )]" - tooltip = "[SelectLocalization( DataModelHasItems( ArtifactClaimsList.GetClaims ), 'INVENTORY_TAB_CLAIMS_TOOLTIP', 'NO_ARTIFACT_CLAIMS' )]" - using = tooltip_se - onclick = "[VariableSystem.Toggle( 'claims' )]" - onclick = "[VariableSystem.Clear( 'court_artifacts' )]" - down = "[VariableSystem.Exists( 'claims' )]" - - text_single = { - min_width = 30 - margin_right = 10 - parentanchor = vcenter|right - - autoresize = no - align = center|nobaseline - text = "[GetDataModelSize(ArtifactClaimsList.GetClaims)]" - default_format = "#clickable" - } - } - } - - button_standard = { - name = "commission_decision" - datacontext = "[GetDecisionWithKey('commission_artifact_decision')]" - visible = "[And( Character.IsLocalPlayer, Decision.IsShownForPlayer )]" - size = { 350 45 } - - onclick = "[InventoryView.Close]" - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - - widget = { - parentanchor = center - size = { 346 41 } - scissor = yes - - icon = { - name = "illustration" - visible = "[Decision.IsPossibleForPlayer]" - parentanchor = right|vcenter - - alpha = 0.7 - position = { 30 0 } - size = { 250 100 } - mirror = horizontal - - block "decision_texture_icon" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - highlight_icon = { - visible = "[Not(Decision.IsPossibleForPlayer)]" - parentanchor = right|vcenter - - alpha = 0.7 - size = { 250 100 } - mirror = horizontal - effectname = "GreyedOut" - tintcolor = { 0.6 0.6 0.6 0.7 } - - block "decision_texture_highlight" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - icon = { - parentanchor = center - size = { 346 41 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - hbox = { - margin = { 20 0 } - margin_right = 10 - - text_single = { - name = "title" - visible = "[Decision.IsPossibleForPlayer]" - text = "[Decision.GetTitleForPlayer]" - layoutpolicy_horizontal = growing - - align = nobaseline - default_format = "#clickable" - } - - text_single = { - name = "title2" - visible = "[Not(Decision.IsPossibleForPlayer)]" - layoutpolicy_horizontal = growing - text = "[Decision.GetTitleForPlayer]" - - align = nobaseline - block "default_format" { - default_format = "#low" - } - } - - highlight_icon = { - name = "not_possible" - visible = "[Not(Decision.IsPossibleForPlayer)]" - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - } - } - } - } - } - } - - divider = { - layoutpolicy_vertical = expanding - } - - # right side is other artifacts and claims - vbox = { - name = "right_side" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "equip_artifacts_top_bar" - visible = "[And( Not( VariableSystem.Exists( 'claims' ) ), Not( VariableSystem.Exists( 'court_artifacts' ) ) )]" - layoutpolicy_horizontal = expanding - margin_top = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "SELECT_ARTIFACT" - max_width = 440 - } - - hbox = { - name = "artifact_slot_tabs" - visible = "[And( Not( VariableSystem.Exists( 'claims' ) ), Not( VariableSystem.Exists( 'court_artifacts' ) ) )]" - datamodel = "[InventoryView.GetUniqueInventorySlotTypes]" - layoutpolicy_horizontal = expanding - margin_top = 10 - - button_tab = { # Show all artifacts tab - size = { 110 42 } - - onclick = "[InventoryView.ClearSelectedSlot]" - down = "[Not( InventoryView.HasSelectedSlot )]" - - tooltip = ARTIFACT_SORTING_TAB_ALL_TOOLTIP - using = tooltip_above - - hbox = { - margin = { 10 0 } - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "ARTIFACT_SORTING_ALL_BUTTON" - } - - text_single = { - min_width = 30 - align = center - text = "[Inventory.GetNumOfArtifactInCategory( 'inventory' )]" - } - } - } - - item = { - widget_inventory_slot_tab = { - name = "artifact_slot_type" - datacontext = "[Inventory.GetSlot('crown')]" - visible = "[InventorySlotType.IsInventoryType]" - } - } - } - } - - vbox = { - name = "court_artifacts_top_bar" - visible = "[And( Not( InventoryView.HasSelectedSlot ), VariableSystem.Exists( 'court_artifacts' ) )]" - layoutpolicy_horizontal = expanding - margin = { 20 0 } - margin_top = 10 - margin_bottom = 5 - spacing = 5 - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "[court_artifacts|E]" - max_width = 440 - } - - text_multi = { - datacontext = "[InventoryView.GetCharacter]" - layoutpolicy_horizontal = expanding - text = "CHARACTER_WITHOUT_ROYAL_COURT_COURT_ARTIFACT_TAB" - autoresize = yes - align = center - default_format = "#weak" - max_width = 520 - } - } - - hbox = { - name = "claims_top_bar" - visible = "[And( Not( InventoryView.HasSelectedSlot ), VariableSystem.Exists( 'claims' ) )]" - layoutpolicy_horizontal = expanding - - margin_top = 10 - - text_label_center = { - layoutpolicy_horizontal = expanding - align = center - text = "[artifact_claims|E]" - max_width = 440 - } - } - - hbox = { # artifact sorting - name = "artifact_sorting" - visible = "[Not( VariableSystem.Exists( 'claims' ) )]" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 5 - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "ARTIFACT_SORT_ORDER_TOOLTIP" - using = tooltip_ne - onclick = "[InventoryView.ToggleArtifactSortOrder]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo2And1(InventoryView.IsArtifactSortOrderDescending)]" - - alwaystransparent = yes - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - - dropdown_menu_standard = { - name = "sort_artifacts" - - blockoverride "dropdown_properties" - { - datamodel = "[InventoryView.GetArtifactSortOptions]" - onselectionchanged = "[InventoryView.SortArtifacts]" - selectedindex = "[InventoryView.GetArtifactSortOptionsIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( CString.GetString )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( CString.GetString )]" - } - } - - expand = {} - } - - hbox = { # claims sorting - name = "claim_sorting" - visible = "[VariableSystem.Exists( 'claims' )]" - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 5 - - datacontext = "[InventoryView.GetArtifactClaimsList]" - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "ARTIFACT_CLAIM_SORT_ORDER_TOOLTIP" - using = tooltip_ne - onclick = "[ArtifactClaimsList.ToggleSortOrder]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo2And1( ArtifactClaimsList.IsSortOrderDescending )]" - - alwaystransparent = yes - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - - dropdown_menu_standard = { - name = "sort_claims" - - blockoverride "dropdown_properties" - { - datamodel = "[ArtifactClaimsList.GetSortOptions]" - onselectionchanged = "[ArtifactClaimsList.SortClaims]" - selectedindex = "[ArtifactClaimsList.GetSortOptionsIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( CString.GetString )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( CString.GetString )]" - } - } - - expand = {} - } - - scrollbox = { # court artifacts - name = "court_artifacts" - visible = "[And( Not( InventoryView.HasSelectedSlot ), VariableSystem.Exists( 'court_artifacts' ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - name = "artifacts_list" - datamodel = "[InventoryView.GetSortedArtifacts]" - layoutpolicy_horizontal = expanding - spacing = 6 - - item = { - widget_artifact_entry = { - visible = "[Artifact.IsCourtArtifact]" - datacontext = "[InventoryView.GetCharacter.GetInventory]" - datacontext = "[InventoryView.GetSelectedSlot]" - - blockoverride "background_button_overrides" - { - alwaystransparent = yes - enabled = no - } - - blockoverride "portrait" { - expand = { minimumsize = { 0 0 } } - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( InventoryView.GetSortedArtifacts )]" - text = "CHARACTER_HAS_NO_ARTIFACTS" - } - } - - scrollbox = { # artifact claims - name = "artifact_claims" - datacontext = "[InventoryView.GetArtifactClaimsList]" - visible = "[And( Not( InventoryView.HasSelectedSlot ), VariableSystem.Exists( 'claims' ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "artifacts_list" - datamodel = "[ArtifactClaimsList.GetClaims]" - addcolumn = 570 - addrow = 122 - - item = { - artifact_claim = { - datacontext = "[ArtifactClaim.GetArtifact]" - datacontext = "[InventoryView.GetCharacter]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( ArtifactClaimsList.GetClaims )]" - text = "CHARACTER_HAS_NO_CLAIMED_ARTIFACTS" - } - } - - scrollbox = { # artifact list - name = "artifacts" - visible = "[And( Not( VariableSystem.Exists( 'court_artifacts' ) ), Not( VariableSystem.Exists( 'claims' ) ))]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - name = "equippable_artifacts_list" - datamodel = "[InventoryView.GetSortedArtifacts]" - layoutpolicy_horizontal = expanding - spacing = 8 - - item = { - widget_artifact_entry = { - datacontext = "[InventoryView.GetCharacter.GetInventory]" - datacontext = "[InventoryView.GetSelectedSlot]" - datacontext = "[InventoryView.GetSelectedSlot.GetType]" - - visible = "[And( Artifact.IsInventoryArtifact, Or( Not( InventoryView.HasSelectedSlot ), InventorySlot.CanHoldArtifact( Artifact.Self ) ) )]" - - - tooltipwidget = { - artifact_tooltip = { - blockoverride "extra_information" - { - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[InventoryView.GetCharacter.IsLocalPlayer]" - text = "[InventoryView.GetArtifactOnClickTooltip( Artifact.Self )]" - max_width = 500 - autoresize = yes - using = Font_Size_Small - } - - expand = {} - } - } - } - } - - using = tooltip_es - - blockoverride "background_button_overrides" - { - onclick = "[InventoryView.OnClickArtifact( Artifact.Self )]" - enabled = "[InventoryView.GetCharacter.IsLocalPlayer]" - down = "[Inventory.IsEquipped( Artifact.Self )]" - } - - blockoverride "portrait" { - expand = { minimumsize = { 0 0 } } - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[Or( Not( Inventory.HasAnyInventoryArtifact ), And( InventoryView.HasSelectedSlot, Not( Inventory.HasArtifactsOfSlotType( InventoryView.GetSelectedSlot.GetType ) ) ) )]" - text = "CHARACTER_HAS_NO_ARTIFACTS" - } - } - } - } - } -} - -types InventoryViewTypes -{ - type widget_inventory_slot = widget - { - size = { 150 140 } - - - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - - icon = { # Glow Effect - # visible = "[And(RoyalCourtWindow.IsSelectedSlot( InventorySlot.Self ), InventorySlot.IsEmpty)]" - visible = "[InventoryView.IsSelectedSlot( InventorySlot.Self )]" - size = { 120% 120% } - texture = "gfx/interface/colors/white.dds" - using = Color_Bright_Yellow - alpha = 0.7 - parentanchor=center - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.3 - alpha = 0.7 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.6 - alpha = 0 - } - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.7 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 7 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - widget = { - using = Window_Background_NoDecoration - size = {100% 100%} - } - - text_single = { - parentanchor = top|hcenter - text = "[InventorySlot.GetName]" - position = { 0 -6 } - } - - button_artifact = { - name = "equipped_artifact_button" - datacontext = "[InventorySlot.GetArtifact]" - visible = "[Not( InventorySlot.IsEmpty )]" - parentanchor = center - size = { 100 100 } - - using = tooltip_se - - down = "[InventoryView.IsSelectedSlot( InventorySlot.Self )]" - - blockoverride "on_click" - { - onclick = "[InventoryView.OnClickSlot( InventorySlot.Self )]" - onclick = "[GetVariableSystem.Clear( 'court_artifacts' )]" - } - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('unequip_button').TriggerAnimation('hover_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('unequip_button').TriggerAnimation('hover_leave')]" - } - - button_round = { - name = "unequip_button" - parentanchor = top|right - size = { 30 30 } - - visible = "[And( Not(InventorySlot.IsEmpty), InventoryView.GetCharacter.IsLocalPlayer )]" - alpha = 0 - - state = { - name = hover_enter - alpha = 1 - duration = 0.4 - using = Animation_Curve_Default - } - - state = { - name = hover_leave - alpha = 0 - duration = 0.6 - using = Animation_Curve_Default - } - - onclick = "[InventoryView.Unequip( InventorySlot.GetArtifact )]" - tooltip = "UNEQUIP_QUICK_TT" - - button_icon_highlight = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel_small.dds" - } - } - } - - button_icon = { - name = "empty_slot_button" - datacontext = "[InventorySlot]" - datacontext = "[InventoryView]" - visible = "[And( InventorySlot.IsEmpty, InventoryView.GetCharacter.IsLocalPlayer )]" - parentanchor = center - size = { 60 60 } - - texture = "[InventorySlot.GetType.GetIcon]" - spriteType = Corneredtiled - spriteborder = { 2 2 } - - tooltip = "INVENTORY_SLOT_TT" - onclick = "[InventoryView.ToggleSelectedSlot( InventorySlot.Self )]" - onclick = "[GetVariableSystem.Clear( 'court_artifacts' )]" - down = "[InventoryView.IsSelectedSlot( InventorySlot.Self )]" - } - - button_round = { - parentanchor = bottom|right - position = { -20 -20 } - size = { 20 20 } - alwaystransparent = yes - visible = "[And( InventoryView.GetCharacter.IsLocalPlayer, GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( InventorySlot.GetSlotTypeString ), '(int32)0' ) )]" - - text_single = { - parentanchor = center - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( InventorySlot.GetSlotTypeString )]" - align = nobaseline - } - } - - widget = { - parentanchor = bottom|hcenter - position = { 0 10 } - datacontext = "[InventorySlot.GetArtifact]" - - hbox = { - visible = "[And( Not(InventorySlot.IsEmpty), Artifact.IsDurabilityLow) ]" - spacing = 2 - tooltip = "[Artifact.GetDurabilityTooltip]" - margin = { 8 3 } - set_parent_size_to_minimum = yes - - icon_flat_standard = { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/quality.dds" - } - - expand = {} - - hbox = { - spacing = 2 - - text_single = { - max_width = 80 - text = "ARTIFACT_YEARS_UNTIL_DECAY" - using = Font_Size_Small - align = nobaseline - } - - expand = {} - - icon = { - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - } - - background = { - margin = { 20 2 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - } - } - - type widget_inventory_slot_tab = button_tab - { - size = { 85 42 } - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - down = "[InventoryView.SelectedSlotHasType( InventorySlotType.Self )]" - onclick = "[InventoryView.OnClickSlotTypeTab( InventorySlotType.Self )]" - - tooltip = ARTIFACT_SORTING_TAB_TOOLTIP - using = tooltip_above - - button_icon = { - parentanchor = center - position = { 0 1 } - size = { 30 30 } - texture = "[InventorySlotType.GetIcon]" - alwaystransparent = yes - } - - button_round = { - visible = "[And( InventoryView.GetCharacter.IsLocalPlayer, GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( InventorySlotType.GetSlotTypeString ), '(int32)0' ) )]" - parentanchor = bottom|right - position = { -6 -4 } - size = { 20 20 } - alwaystransparent = yes - - text_single = { - parentanchor = center - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfSlot( InventorySlotType.GetSlotTypeString )]" - align = nobaseline - } - } - } - - type hbox_artifact_durability = hbox - { - visible = "[Artifact.IsValid]" - spacing = 2 - tooltip = "[Artifact.GetDurabilityTooltip]" - - icon_flat_standard = { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/quality.dds" - } - - progressbar_standard = { - name = "durability_high" - visible = "[Not( Artifact.IsDurabilityLow )]" - size = { 100 10 } - - min = 0 - max = "[FixedPointToFloat( Artifact.GetMaxDurability )]" - value = "[FixedPointToFloat( Artifact.GetDurability )]" - } - - progressbar_standard = { - name = "durability_low" - visible = "[Artifact.IsDurabilityLow]" - size = { 100 10 } - - min = 0 - max = "[FixedPointToFloat( Artifact.GetMaxDurability )]" - value = "[FixedPointToFloat( Artifact.GetDurability )]" - } - - hbox = { - spacing = 4 - - text_single = { - visible = "[And( Artifact.ShouldDecay, GreaterThanOrEqualTo_int32( Artifact.GetYearsUntilDecay, '(int32)0' ) )]" - max_width = 80 - text = "ARTIFACT_YEARS_UNTIL_DECAY" - using = Font_Size_Small - align = nobaseline - } - - icon = { - visible = "[Artifact.IsDurabilityLow]" - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - } - - expand = {} - } - - type widget_artifact_entry = widget - { - # Requires - # datacontext = character - # datacontext = Inventory - # datacontext = InventorySlot - - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - datacontext = "[GetIllustration( 'artifact_regional_pattern' )]" - size = { 560 110 } - using = tooltip_above - - button_standard = { - size = { 92% 100% } - - framesize = { 252 80 } - spriteType = Corneredtiled - spriteborder = { 10 10 } - - icon = { - parentanchor = hcenter - size = { 99% 15% } - texture = "[Illustration.GetTexture( Artifact.GetCulture.MakeScope )]" - spriteType = Corneredtiled - color = "[Artifact.GetRarityColor]" - alpha = 0.2 - alwaystransparent = yes - } - - icon = { - parentanchor = bottom|hcenter - size = { 99% 15% } - texture = "[Illustration.GetTexture( Artifact.GetCulture.MakeScope )]" - spriteType = Corneredtiled - color = "[Artifact.GetRarityColor]" - alpha = 0.2 - alwaystransparent = yes - } - - icon = { - parentanchor = center - size = { 511 106 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - block "button" - { - enabled = "[Character.IsLocalPlayer]" - clicksound = "event:/DLC/EP1/SFX/UI/inventory_artifact_place" - } - - block "overlay" - { - using = default_character_list_overlay - } - - block "background_button_overrides" {} - - tooltipwidget = { - artifact_tooltip = {} - } - - using = tooltip_es - - block "new_artifact" - { - icon = { - name = "new_artifact_glow" - visible = "[LocalPlayerNewArtifacts.IsNewArtifact( Artifact.Self )]" - parentanchor = center - position = { 0 1 } - size = { 100% 100% } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - alpha = 0.5 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - alpha = 0.3 - } - - background = { - texture = "gfx/interface/component_effects/innovation_glow.dds" - margin = { 14 12 } - spriteType = Corneredstretched - spriteborder = { 30 30 } - tintcolor = { 1 0.8 0.6 1 } - } - } - } - } - - flowcontainer = { - name = "equip_status" - visible = "[Inventory.IsEquipped( Artifact.Self )]" - parentanchor = top|right - widgetanchor = top|right - position = { -52 18 } - - allow_outside = yes - - text_single = { - text = "EQUIPPED_ARTIFACT" - align = right|nobaseline - tooltip = "ARTIFACT_EQUIPPED_TOOLTIP" - default_format = "#weak" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "icon" - layoutpolicy_vertical = expanding - margin = { 2 2 } - - icon_artifact = { - blockoverride "tooltipwidget" {} - } - - block "new_artifact" - { - text_single = { - visible = "[LocalPlayerNewArtifacts.IsNewArtifact( Artifact.Self )]" - margin_top = -14 - text = "NEW_ARTIFACT" - align = nobaseline - - tooltip = "NEW_ARTIFACT_TOOLTIP" - } - } - } - - vbox = { - name = "text" - layoutpolicy_vertical = expanding - margin_top = 4 - margin_bottom = 10 - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Artifact.GetRarityAndSlotType]" - max_width = 300 - using = Font_Size_Small - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "[Artifact.GetNameNoTooltip]" - autoresize = yes - max_width = 350 - using = Font_Size_Medium - default_format = "#high" - alwaystransparent = yes - } - - spacer = { - size = { 0 6 } - } - - hbox_artifact_durability = { - layoutpolicy_horizontal = expanding - # simple tooltip override so that the durability tooltip doesnt show up here - tooltip = "" - } - - expand = {} - } - - expand = {} - } - - widget = { - name = "horizontal_hostile_minor_buttons" - visible = "[And( Not( Artifact.GetOwner.IsLocalPlayer ), Artifact.HasClaim( GetPlayer ) )]" - - parentanchor = center - position = { 112 14 } - allow_outside = yes - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - button_round = { - name = "steal" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/scheme.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('start_stealing_back_artifact')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('start_stealing_back_artifact')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip( 'start_stealing_back_artifact' )]" - } - - button_round = { - name = "declare_war" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/declare_war.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('declare_war_interaction')]" - onclick = "[Artifact.GetOwner.OpenDeclareWarViewWithArtifactCB]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('declare_war_interaction')]" - } - - button_round = { - name = "duel" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/duel.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('challenge_for_artifact_interaction')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('challenge_for_artifact_interaction')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('challenge_for_artifact_interaction')]" - } - - expand = {} - } - } - - widget = { - name = "round_buttons" - size = { 40 105 } - parentanchor = right|vcenter - position = { 2 0 } - allow_outside = yes - - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - - vbox = { - layoutpolicy_vertical = expanding - - button_round = { - name = "reforge" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/reforge.dds" - } - visible = "[Artifact.GetOwner.IsLocalPlayer]" - - onclick = "[ToggleGameViewData( 'reforge_artifact', Artifact.GetID )]" - onclick = "[LocalPlayerNewArtifacts.RemoveNewArtifact( Artifact.Self )]" - enabled = "[Artifact.CanReforgeOrRepair( Artifact.GetOwner.Self )]" - tooltip = "[Artifact.GetReforgeOrRepairTooltip( Artifact.GetOwner.Self )]" - - icon = { - name = "selection_glow" - visible = "[Artifact.IsDurabilityLow]" - parentanchor = center - size = { 45 45 } - - state = { - trigger_on_create = yes - - name = max_glow - next = min_glow - duration = 1 - using = Animation_Curve_Default - alpha = 0.5 - } - - state = { - name = min_glow - next = max_glow - duration = 1.6 - using = Animation_Curve_Default - alpha = 0.3 - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - tintcolor = { 1 0.8 0.6 1 } - } - } - } - - button_round = { - name = "destroy" - - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/destroy_artifact.dds" - } - - visible = "[Character.IsPlayerInteractionShown( 'destroy_artifact_interaction' )]" - enabled = "[Character.IsPlayerInteractionWithTargetArtifactValid( 'destroy_artifact_interaction', Artifact.Self )]" - onclick = "[Character.OpenPlayerInteractionWithTargetArtifact( 'destroy_artifact_interaction', Artifact.Self )]" - tooltip = "[Character.GetPlayerInteractionWithTargetArtifactTooltip( 'destroy_artifact_interaction', Artifact.Self )]" - } - - button_round = { - name = "details" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - position = { 0 -6 } - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/dots.dds" - } - - onclick = "[ToggleGameViewData( 'artifact_details', Artifact.GetID )]" - onclick = "[LocalPlayerNewArtifacts.RemoveNewArtifact( Artifact.Self )]" - tooltip = "ARTIFACT_DETAILS" - } - } - } - } - - type artifact_claim = widget - { - # Requires - # datacontext = Inventory - # datacontext = InventorySlot - - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - - size = { 560 118 } - using = tooltip_es - - widget = { - name = "background" - size = { 78% 100% } - - background = { - using = Background_Area_Dark - } - - tooltipwidget = { - artifact_tooltip = {} - } - } - - widget = { - name = "detail_button" - parentanchor = center - position = { 160 -16 } - allow_outside = yes - - button_round = { - name = "details" - size = { 35 35 } - - onclick = "[ToggleGameViewData( 'artifact_details', Artifact.GetID )]" - onclick = "[LocalPlayerNewArtifacts.RemoveNewArtifact( Artifact.Self )]" - tooltip = "ARTIFACT_DETAILS" - - button_icon_highlight = { - parentanchor = center - position = { 0 -6 } - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/dots.dds" - } - } - } - - widget = { - name = "horizontal_icons" - parentanchor = center - position = { 40 15 } - allow_outside = yes - - hbox = { - visible = "[And( Not( Artifact.GetOwner.IsLocalPlayer ), Artifact.HasClaim( GetPlayer ) )]" - layoutpolicy_horizontal = expanding - spacing = 2 - - button_round = { - name = "steal" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/scheme.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('start_stealing_back_artifact')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('start_stealing_back_artifact')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('start_stealing_back_artifact')]" - - using = tooltip_below - } - - button_round = { - name = "declare_war" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/declare_war.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('declare_war_interaction')]" - onclick = "[Artifact.GetOwner.OpenDeclareWarViewWithArtifactCB]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('declare_war_interaction')]" - using = tooltip_below - } - - button_round = { - name = "duel" - size = { 35 35 } - - button_icon_highlight = { - parentanchor = center - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/duel.dds" - } - - enabled = "[Artifact.GetOwner.IsPlayerInteractionValid('challenge_for_artifact_interaction')]" - onclick = "[Artifact.GetOwner.OpenPlayerInteraction('challenge_for_artifact_interaction')]" - tooltip = "[Artifact.GetOwner.GetPlayerInteractionTooltip('challenge_for_artifact_interaction')]" - } - - expand = {} - } - } - - widget = { - name = "item_and_owner" - size = { 425 118 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - parentanchor = left - margin = { 2 2 } - - vbox = { - layoutpolicy_vertical = expanding - - icon_artifact = { - blockoverride "tooltipwidget" {} - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "rarity" - layoutpolicy_horizontal = expanding - text = "[Artifact.GetRarityAndType]" - max_width = 190 - using = Font_Size_Small - } - - expand = {} - - text_single = { - name = "house_claim" - layoutpolicy_horizontal = expanding - visible = "[ArtifactClaim.IsHouseClaim]" - text = "ARTIFACT_HOUSE_CLAIM" - align = right - max_width = 130 - } - - text_single = { - name = "personal_claim" - layoutpolicy_horizontal = expanding - visible = "[ArtifactClaim.IsPersonalClaim]" - text = "ARTIFACT_PERSONAL_CLAIM" - align = right - max_width = 130 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = "[Artifact.GetNameNoTooltip]" - autoresize = yes - max_width = 300 - using = Font_Size_Medium - default_format = "#high" - } - - expand = {} - } - - hbox_artifact_durability = { - layoutpolicy_horizontal = expanding - margin_left = -3 - margin_top = 8 - # simple tooltip override so that the durability tooltip doesnt show up here - tooltip = "" - - expand = {} - } - - expand = {} - } - } - } - - widget = { - name = "portrait_artifact_owner" - size = { 90 110 } - parentanchor = right - position = { 4 0 } - - block "portrait" - { - vbox = { - name = "righthand_portrait" - margin_top = 2 - margin_right = -6 - - portrait_head_small = { - datacontext = "[Artifact.GetOwner]" - name = "owner_portrait" - } - - text_single = { - text = "OWNER" - align = nobaseline - } - } - } - } - } - - type icon_artifact = icon { - size = { 90 90 } - - block "tooltipwidget" { - tooltipwidget = { - artifact_tooltip = {} - } - } - - icon = { - name = "rarity_icon" - size = { 100% 100% } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/artifact/artifact_bg.dds" - frame = "[Artifact.GetIconFrame]" - framesize = { 240 240 } - } - - icon = { - name = "unique_icon" - visible = "[Artifact.IsUnique]" - size = { 100% 100% } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/artifact/artifact_unique.dds" - } - - icon = { - name = "artifact_icon" - size = { 90% 90% } - parentanchor = center - - texture = "[Artifact.GetIcon]" - frame = "[Artifact.GetIconFrame]" - framesize = { 240 240 } - } - } - - type button_artifact = button { - size = { 90 90 } - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - - icon = { - name = "rarity_icon" - size = { 100% 100% } - parentanchor = top - alwaystransparent = yes - - texture = "gfx/interface/icons/artifact/artifact_bg.dds" - frame = "[Artifact.GetIconFrame]" - framesize = { 240 240 } - } - - icon = { - name = "unique_icon" - visible = "[Artifact.IsUnique]" - size = { 100% 100% } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/artifact/artifact_unique.dds" - } - - button = { - name = "artifact_icon" - size = { 90% 90% } - parentanchor = center - - texture = "[Artifact.GetIcon]" - frame = "[Artifact.GetIconFrame]" - framesize = { 240 240 } - - block "on_click" - { - onclick = "[ToggleGameViewData( 'artifact_details', Artifact.GetID )]" - onclick = "[LocalPlayerNewArtifacts.RemoveNewArtifact( Artifact.Self )]" - } - } - - tooltipwidget = { - artifact_tooltip = {} - } - } -} diff --git a/N3OW/gui/window_kill_list.gui b/N3OW/gui/window_kill_list.gui deleted file mode 100644 index 8fb802bd..00000000 --- a/N3OW/gui/window_kill_list.gui +++ /dev/null @@ -1,183 +0,0 @@ -kill_list_window = { - name = "kill_list" - - datacontext = "[KillListWindow.GetKills]" - - blockoverride "header_text" - { - text = "KILL_LIST" - } - blockoverride "button_close" - { - onclick = "[KillListWindow.Close]" - } -} - -kill_list_window = { - name = "artifact_kill_list" - - datacontext = "[ArtifactKillListWindow.GetKills]" - - blockoverride "header_text" - { - text = "ARTIFACT_KILL_LIST" - } - blockoverride "button_close" - { - onclick = "[ArtifactKillListWindow.Close]" - } - blockoverride "additional_data" - { - text_single = { - datacontext = "[ArtifactKillListWindow.GetArtifact]" - name = "forgotten_soldiers" - visible = "[GreaterThan_int32( Artifact.GetForgottenSoldiersCount, '(int32)0' )]" - text = ARTIFACT_FORGOTTEN_SOLDIER_KILLS - } - } -} - -types KillListTypes -{ - # Requires a character list - type kill_list_window = window - { - layer = middle - allow_outside = yes - position = { 600 90 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 600 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = 580 - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - } - - block "additional_data" - { - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 650 - addrow = 120 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 650 122 } - - blockoverride "gridbox_items" - { - min_width = 260 - maxhorizontalslots = 9 - maxverticalslots = 2 - } - - blockoverride "character_relation" {} # Relation is not important really, if you want to know click the portrait - blockoverride "character_age" {} # Age is listed in the death tooltip - blockoverride "is_dead" {} - blockoverride "claims" {} - blockoverride "additional_info_kill_list" { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_multi = { - text = CHARACTER_DEAD_TOOLTIP_HIDE_KILLER # The killer is always listed at the top of the UI, so we can shorten that out of the text here for less duplication per entry - layoutpolicy_horizontal = expanding - } - - expand = {} - } - } - } - } - } - } - } - } - - window_character_filter = { - parentanchor = top|right - widgetanchor = left - position = { -20 20 } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_knights.gui b/N3OW/gui/window_knights.gui deleted file mode 100644 index c0f503f4..00000000 --- a/N3OW/gui/window_knights.gui +++ /dev/null @@ -1,643 +0,0 @@ -###################################################### -################# KNIGHTS VIEW ################### -###################################################### - -window = { - datacontext = "[KnightsView.GetMilitaryView]" - name = "knight_view" - size = { 540 865 } - parentanchor = top|right - position = { -626 170 } - movable = no - layer = middle - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { -626 170 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -570 - } - - vbox = { - margin = { 4 4 } - spacing = 2 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - datacontext = "[MilitaryView.GetCharacter]" - text = "[SelectLocalization( GreaterThan_int32( Character.GetNumAccoladeSlots, '(int32)0' ), 'KV_HEADER_ACCOLADES', 'KV_HEADER' )]" - } - - blockoverride "button_close" - { - onclick = "[KnightsView.Close]" - } - } - - # ACCOLADES ---------------------------------------------------------------------------- - vbox = { - - background = { - using = Background_Area_ExtraDark - alpha = 0.3 - margin = {10 0} - margin_top = 10 - } - - text_label_center = { - datacontext = "[MilitaryView.GetCharacter]" - visible = "[GreaterThan_int32( Character.GetNumAccoladeSlots, '(int32)0' )]" - - name = "accolades_limit" - text = "ACCOLADES_LIMIT" - default_format = "#low" - - tooltip = "[Character.GetNumAccoladeSlotsBreakdown]" - } - - hbox = { - name = "accolades_box" - datacontext = "[MilitaryView.GetCharacter]" - visible = "[GreaterThan_int32( Character.GetNumAccoladeSlots, '(int32)0' )]" - - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 6 - margin_top = -2 - margin_bottom = 10 - - expand = {} - - hbox = { - name = "active_accolades" - spacing = 10 - datamodel = "[Character.GetActiveAccolades]" - - item = { - widget = { - size = { 96 110 } - accolade_banner = {} - - portrait_head_small = { - parentanchor = center - position = { 2 0 } - datacontext = "[Accolade.GetAcclaimedKnight]" - - tooltip = "MANAGE_ACCOLADE_NAME" - - blockoverride "portrait_button" - { - onclick = "[OpenGameViewData( 'accolade_view', Accolade.GetID )]" - onclick = "[KnightsView.Close]" - } - - blockoverride "portrait_button_template_onclick" {} - blockoverride "opinion_box" {} - } - - accolade_rank_icon = {} - } - } - } - - hbox = { - name = "other_accolade_slots" - spacing = 5 - - datamodel = "[GetNullCharacterDataModel( Subtract_int32( GetDefine('NGui', 'KNIGHTS_VIEW_NUM_ACCOLADES'), MilitaryView.GetCharacter.GetNumActiveAccolades ) )]" - item = { - widget = { - enabled = "[LessThan_int32( PdxGuiWidget.GetIndexInDataModel, MilitaryView.GetCharacter.GetNumFreeAccoladeSlots )]" - - size = { 96 110 } - - widget = { - size = {100% 100%} - name = "available_accolade_tutorial_uses_this" - - visible = "[And( MilitaryView.GetCharacter.HasFreeAccoladeSlots, KnightsView.HasCachedPotentialAcclaimedKnights )]" - } - - accolade_banner = { - visible = "[LessThan_int32( PdxGuiWidget.GetIndexInDataModel, MilitaryView.GetCharacter.GetNumFreeAccoladeSlots )]" - } - accolade_banner_broken = { - visible = "[GreaterThanOrEqualTo_int32( PdxGuiWidget.GetIndexInDataModel, MilitaryView.GetCharacter.GetNumFreeAccoladeSlots )]" - } - - widget = { - parentanchor = center - position = { 2 0 } - size = { 85 90 } - tooltip = "[SelectLocalization( LessThan_int32( PdxGuiWidget.GetIndexInDataModel, MilitaryView.GetCharacter.GetNumFreeAccoladeSlots ), KnightsView.GetAccoladeSlotTooltip( MilitaryView.GetCharacter.Self ), 'LOCKED_ACCOLADE_SLOT' )]" - - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.5 - } - } - - button = { - size = { 100% 100% } - - onclick = "[OpenGameViewData( 'create_accolade_view', MilitaryView.GetCharacter.GetID )]" - onclick = "[KnightsView.Close]" - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('show')]" - - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiWidget.FindChild('highlight_frame').TriggerAnimation('hide')]" - - } - - highlight_icon = { - name = "portrait_unknown_head_glow" - parentanchor = center - position = { 3 -7 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 78 105 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - } - - - button_plus = { - parentanchor = center - position = { 0 0 } - alwaystransparent = yes - - visible = "[LessThan_int32( PdxGuiWidget.GetIndexInDataModel, MilitaryView.GetCharacter.GetNumFreeAccoladeSlots )]" - } - - widget = { - name = "highlight_frame" - size = { 100% 100% } - alwaystransparent = yes - alpha = 0 - - state = { - name = "show" - alpha = 1 - } - - state = { - name = "hide" - alpha = 0 - } - - background = { - size = { 100% 100% } - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - alpha = 0.7 - margin = { -4 -4 } - } - } - } - } - } - } - } - - expand = {} - } - } - - button_standard = { - datacontext = "[MilitaryView.GetCharacter]" - size = { 220 33 } - - visible = "[And( GreaterThan_int32( Character.GetNumInactiveAccolades, '(int32)0' ), Not(KnightsView.IsShowingInactiveAccolades ) )]" - onclick = "[KnightsView.ToggleInactiveAccolades]" - - text = "INACTIVE_ACCOLADES" - } - - button_standard = { - size = { 150 30 } - - visible = "[KnightsView.IsShowingInactiveAccolades]" - onclick = "[KnightsView.ToggleInactiveAccolades]" - - text = "BACK_LABEL" - } - - # KNIGHTS ---------------------------------------------------------------------------- - - vbox = { - visible = "[Not(KnightsView.IsShowingInactiveAccolades)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - text_label_center = { - name = "knights_cap" - text = "MAX_KNIGHT_COUNT" - tooltip = "MAX_KNIGHT_TOOLTIP" - default_format = "#low" - } - - text_label_center = { - name = "knights_effectiveness" - - text = "KNIGHT_EFFECTIVENESS" - tooltip = "KNIGHT_EFFECTIVENESS_TOOLTIP" - default_format = "#low" - } - } - - vbox = { - name = "decision_buttons" - margin_top = 5 - margin_bottom = 10 - spacing = 5 - - button_decision_entry = { - name = "invite_knights_decision" - datacontext = "[GetDecisionWithKey('invite_knights_decision')]" - visible = "[Decision.IsShownForPlayer]" - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - } - - button_decision_entry = { - name = "invite_from_nomad_capital" - datacontext = "[GetDecisionWithKey('recruit_from_nomadic_capital_decision')]" - visible = "[Decision.IsShownForPlayer]" - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - - background = { - using = Background_Area_Dark - blend_mode = multiply - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - } - } - - blockoverride "icon_alpha" { - alpha = 0.3 - } - } - } - - text_label_center = { - name = "knights_effectiveness" - text = "[MilitaryView.GetCharacter.Custom('GetValidKnightsHeader')]" - default_format = "#medium" - } - - scrollbox = { - name = "knights" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "knights" - datamodel = "[MilitaryView.GetKnights]" - - addcolumn = 500 - addrow = 140 - datamodel_reuse_widgets = yes - - item = { - widget = { - layoutpolicy_horizontal = expanding - size = { 500 130 } - - using = Background_Guest - - blockoverride "Background_Guest_pattern_visible" - { - visible = "[Character.IsGuest]" - margin_bottom = -5 - margin_right = 5 - } - blockoverride "Background_Guest_frame_visible" - { - visible = "[Character.IsGuest]" - margin_left = 3 - margin_bottom = -5 - margin_top = 1 - margin_right = 5 - } - - vbox = { - spacing = 7 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - spacing = 10 - - portrait_head = { - alpha = "[Select_float( Character.IsKnight, '(float)1.0', '(float)0.6' )]" - } - - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - visible = "[And(Character.IsKnight, Not(Character.IsAcclaimedKnight) )]" - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 40 40 } - } - - icon = { - visible = "[Character.IsAcclaimedKnight]" - texture = "gfx/interface/icons/icon_knight_acclaimed.dds" - size = { 50 50 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - using = Font_Size_Medium - autoresize = no - } - - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - text_label_center = { - text = "[prowess_i][Character.GetSkill( 'prowess' )]" - using = Font_Size_Big - default_format = "#high" - } - - expand = {} - } - } - - hbox = { - visible = "[Not(Character.IsGuest)]" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightForced( Character.Self )]" - down = "[Character.IsKnightForced]" - alwaystransparent = "[Character.IsKnightForced]" - - text = "KNIGHTS_VIEW_FORCE" - - tooltip = "KNIGHTS_VIEW_TITLE_FORCE_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDefault( Character.Self )]" - down = "[Character.IsKnightDefault]" - alwaystransparent = "[Character.IsKnightDefault]" - - text = "KNIGHTS_VIEW_ALLOW" - - tooltip = "KNIGHTS_VIEW_TITLE_BY_PROWESS_TT" - using = tooltip_se - } - - button_standard = { - size = { 90 33 } - onclick = "[MilitaryView.SetKnightDisallowed( Character.Self )]" - down = "[Character.IsKnightDisallowed]" - alwaystransparent = "[Character.IsKnightDisallowed]" - enabled = "[Not( Character.IsAcclaimedKnight )]" - - - text = "KNIGHTS_VIEW_FORBID" - tooltip = "[SelectLocalization( Character.IsAcclaimedKnight, 'CANNOT_FORBID_ACCLAIMED_KNIGHT', 'KNIGHTS_VIEW_TITLE_FORBID_TT' )]" - using = tooltip_se - } - - expand = {} - } - - hbox = { - visible = "[Character.IsGuest]" - layoutpolicy_horizontal = expanding - spacing = 10 - - button_standard = { - visible = "[Character.IsPlayerInteractionShown('recruit_guest_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('recruit_guest_interaction')]" - onclick = "[Character.OpenPlayerInteraction('recruit_guest_interaction')]" - text = "[Character.GetPlayerInteractionName('recruit_guest_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('recruit_guest_interaction')]" - using = tooltip_se - } - - expand = {} - } - - expand = {} - } - - - } - - divider = { - layoutpolicy_horizontal = expanding - texture = "gfx/interface/colors/gold_darker.dds" - } - } - } - } - } - } - } - } - - # INACTIVE ACCOLADES ----------------------------------------------------------------------------------------------- - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[KnightsView.IsShowingInactiveAccolades]" - - scrollbox = { - name = "inactive_accolades" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[MilitaryView.GetCharacter]" - - blockoverride "scrollbox_content" { - vbox = { - name = "knights" - datamodel = "[Character.GetInactiveAccolades]" - spacing = 20 - layoutpolicy_horizontal = expanding - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Frame - color = { 0.7 0.4 0.3 0.7 } - spacing = 7 - margin_top = 12 - margin_bottom = 12 - margin_left = 10 - margin_right = 5 - } - - widget = { - size = { 85 90 } - accolade_banner = {} - - portrait_head_small = { - parentanchor = center - position = { 6 0 } - datacontext = "[Accolade.GetAcclaimedKnight]" - - tooltipwidget = accolade_tooltip - - blockoverride "portrait_button_template_onclick" {} - blockoverride "opinion_box" {} - } - - accolade_rank_icon = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 20 - - text_multi = { - layoutpolicy_horizontal = expanding - text = "[Accolade.GetNameNoTooltip]" - align = nobaseline|bottom - max_width = 255 - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "[Accolade.GetAcclaimedKnight.GetNameNoTooltip]" - align = nobaseline|top - max_width = 255 - default_format = "#low" - } - - expand = {} - } - - vbox = { - spacing = 2 - margin_left = 7 - - button_standard = { - size = { 120 30 } - - visible = "[Accolade.CanBeActivated]" - onclick = "[Accolade.Activate]" - clicksound = "event:/DLC/EP2/SFX/UI/Knighthood/ep2_ui_knighthood_lineage_creation" - - text = "ACTIVATE_ACCOLADE" - } - - button_standard = { - size = { 120 30 } - - visible = "[Accolade.HasPotentialSuccessor]" - onclick = "[OpenSetAcclaimedView( Accolade.Self )]" - - text = "ACCOLADE_APPOINT" - } - - button_standard = { - size = { 120 30 } - - onclick = "[KnightsView.DestroyAccolade( Accolade.Self )]" - - text = "DESTROY_ACCOLADE" - } - } - - expand = { minimumsize = { 10 0 } } - } - } - } - } - } - } - - expand = {} - } -} - diff --git a/N3OW/gui/window_languages.gui b/N3OW/gui/window_languages.gui deleted file mode 100644 index 017ecfd0..00000000 --- a/N3OW/gui/window_languages.gui +++ /dev/null @@ -1,408 +0,0 @@ -window = { - name = "languages_window" - parentanchor = bottom|left - movable = no - layer = middle - - datacontext = "[LanguageWindow.GetLanguage]" - datacontext = "[GetPlayer]" - datacontext = "[Character.GetCulture]" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - margin_top = 16 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - vbox = { - name = "window_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # The height can vary a lot when looking at your native language if nobody uses it including you, so we resize from the overall vbox - set_parent_size_to_minimum = yes - min_width = 620 - max_width = 620 - - margin_right = 28 - margin_left = 15 - margin_bottom = 10 - spacing = 6 - - hbox = { - margin_left = -15 - margin_right = -10 - margin_bottom = -15 - layoutpolicy_horizontal = expanding - - header_pattern = { - visible = "[Or( Not( HasDlcFeature( 'royal_court' ) ), Not( LanguageWindow.IsOpenedFromRoyalCourt ) )]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = COURT_LANGUAGE_NAME - parentanchor = left|vcenter - align = left - position = { 15 -10 } - - } - - blockoverride "button_close" - { - onclick = "[LanguageWindow.Close]" - } - } - header_pattern = { - visible = "[And( HasDlcFeature( 'royal_court' ), LanguageWindow.IsOpenedFromRoyalCourt)]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = COURT_LANGUAGE_NAME - parentanchor = left|vcenter - align = left - position = { 15 -10 } - - } - - blockoverride "button_close" - { - onclick = "[LanguageWindow.Close]" - onclick = "[Character.OpenRoyalCourtView( 'grandeur' )]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - text_single = { - text = "[court_language|E]" - } - - text_single = { - text = IS_NATIVE_LANGUAGE - visible = "[ObjectsEqual( Culture.GetLanguage, CulturePillar.Self )]" - default_format = "#weak" - margin_left = 5 - } - - expand = {} - } - - vbox = { - name = "grandeur_effects" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 3 - margin_bottom = 10 - - background = { - margin_right = 10 - margin_left = 20 - - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = COURT_GRANDEUR_EFFECTS - } - - expand = {} - } - - vbox = { - hbox = { - spacing = 5 - margin_top = 5 - icon_culture_pillar = { - name = "grandeur_icon" - size = { 50 50 } - texture = "gfx/interface/window_roco_grandeur/icon_grandeur.dds" - } - text_grandeur_from_language = { - margin_bottom = 8 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - text_multi = { - max_width = 400 - autoresize = yes - text = "COURT_GRANDEUR_EFFECTS_DESCRIPTION" - default_format = "#weak" - align = center - } - } - } - } - - vbox = { - name = "grandest_royal_court" - layoutpolicy_horizontal = expanding - spacing = 5 - - visible = "[DataModelHasItems( LanguageWindow.GetRankedRoyalCourtItems )]" - - background = { - margin_right = 10 - margin_left = 20 - - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = GRANDEST_ROYAL_COURT - } - - expand = {} - } - - hbox = { - name = "grandest_court_name" - - layoutpolicy_horizontal = expanding - datacontext = "[LanguageWindow.GetGrandestRoyalCourt.GetCharacter]" - - text_label_left = { - layoutpolicy_horizontal = expanding - text = ROYAL_COURT_NAME - default_format = "#high" - } - - expand = {} - } - - spacer = { - size = { 0 15 } - } - - hbox = { - datacontext = "[LanguageWindow.GetGrandestRoyalCourt.GetCharacter]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - background = { - layoutpolicy_horizontal = expanding - margin_top = 24 - margin_right = 15 - alpha = 0.3 - texture = "gfx/interface/illustrations/event_scenes/corridor_day.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphamultiply - } - } - - portrait_torso = { - name = "grandest_court_portrait" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - name = "court_ranked_items" - layoutpolicy_horizontal = expanding - datamodel = "[LanguageWindow.GetRankedRoyalCourtItems]" - margin_bottom = 20 - - item = { - vbox = { - datacontext = "[RankedRoyalCourtItem.GetCharacter]" - max_width = 150 - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - background = { - using = Background_Area_Dark - margin = { 0 10 } - alpha = 0.8 - } - - coa_realm_small_crown = {} - - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_single = { - text = "[RankedRoyalCourtItem.GetRank]" - default_format = "#weak" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetCourtGrandeurData.GetCurrent|2]" - margin_bottom = 6 - align = center - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_grandeur_from_language = {} - } - } - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - } - - vbox = { - name = "adopt_as_court_language" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 0 - margin_bottom = 5 - - text_multi = { - max_width = 400 - autoresize = yes - text = ADOPT_COURT_LANGUAGE_INFO - align = center - margin_bottom = 5 - default_format = "#weak" - } - - button_standard = { - text = ADOPT_COURT_LANGUAGE - onclick = "[Character.AdoptCourtLanguage( CulturePillar.Self )]" - enabled = "[Character.CanAdoptCourtLanguage( CulturePillar.Self )]" - tooltip = "[Character.GetCanAdoptCourtLanguageText( CulturePillar.Self )]" - size = { 300 34 } - visible = "[Not(Character.IsCharacterCourtLanguage(CulturePillar.Self))]" - } - } - - hbox = { - name = "current_court_language" - layoutpolicy_horizontal = expanding - - visible = "[ObjectsEqual( Character.GetCourtLanguage, CulturePillar.Self )]" - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - background = { - margin_right = 10 - margin_left = 20 - margin_bottom = 20 - - using = Background_Area - } - - expand = { - layoutpolicy_horizontal = expanding - } - - icon_culture_pillar = { - texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = YOUR_CURRENT_COURT_LANGUAGE - } - text_single = { - text = LANGUAGE_ADOPTED_ON - default_format = "#weak" - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - } - - expand = {} - } -} - -types LanguageTypes -{ - type coa_language_county = coa_title_tiny - { - blockoverride "coa_tooltip" - { - tooltipwidget = { - using = CountyTitleTooltipLanguage - } - } - } - - type text_grandeur_from_language = text_single - { - name = "current" - text = "[Character.CalculateGrandeurFromCourtLanguage( CulturePillar.Self )|+=]" - using = Font_Size_Big - - tooltip_visible = "[NotEqualTo_CFixedPoint( Character.CalculateGrandeurFromCourtLanguage( CulturePillar.Self ), '(CFixedPoint)0' )]" - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[Character.CalculateGrandeurFromCourtLanguageBreakdown( CulturePillar.Self )]" - - blockoverride "header" { - text_single = { - text = COURT_LANGUAGE_BASELINE_BONUS_BREAKDOWN_HEADER - default_format = "#T" - } - } - } - } - } -} diff --git a/N3OW/gui/window_lease_out_baronies.gui b/N3OW/gui/window_lease_out_baronies.gui deleted file mode 100644 index 79dea747..00000000 --- a/N3OW/gui/window_lease_out_baronies.gui +++ /dev/null @@ -1,100 +0,0 @@ -###################################################### -################### SELECT CAPITAL ################### -###################################################### -window = { - name = "lease_out_baronies_window" - parentanchor = top|right - position = { -15 90 } - size = { 550 940 } - movable = no - layer = windows_layer - - using = Window_Background - using = Window_Decoration_Spike - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "LEASE_OUT_BARONIES_TITLE" - } - - blockoverride "button_close" - { - onclick = "[LeaseOutBaroniesWindow.Close]" - } - } - - scrollbox = { - name = "titles_scroll_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - - blockoverride "scrollbox_empty" - { - text = "LEASE_OUT_BARONIES_NO_TITLES" - visible = "[IsDataModelEmpty(LeaseOutBaroniesWindow.GetTitles)]" - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "titles_grid" - datamodel = "[LeaseOutBaroniesWindow.GetTitles]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - button_standard_list = { - name = "title_button" - layoutpolicy_horizontal = expanding - size = { 0 58 } - onclick = "[LeaseOutBaroniesWindowTitleItem.OnClick]" - down = "[LeaseOutBaroniesWindowTitleItem.IsSelected]" - using = tooltip_es - - hbox = { - margin = { 10 0 } - spacing = 10 - - coa_title_tiny_crown = { - datacontext = "[LeaseOutBaroniesWindowTitleItem.GetTitle]" - } - - text_single = { - name = "text" - layoutpolicy_horizontal = expanding - text = "[LeaseOutBaroniesWindowTitleItem.GetTitle.GetName]" - default_format = "#high" - using = Font_Size_Medium - alwaystransparent = yes - } - - highlight_icon = { - texture = "gfx/interface/icons/symbols/icon_check.dds" - visible = "[LeaseOutBaroniesWindowTitleItem.IsSelected]" - size = { 30 30 } - } - } - } - } - } - } - } - - hbox = { - margin = { 0 15 } - ### SEND OFFER BUTTON - button_primary_big = { - name = "confirm_button" - text = "LEASE_OUT_BARONIES_CONFIRM" - onclick = "[LeaseOutBaroniesWindow.OnConfirm]" - } - } - } -} \ No newline at end of file diff --git a/N3OW/gui/window_legend_chronicle.gui b/N3OW/gui/window_legend_chronicle.gui deleted file mode 100644 index 960fc18f..00000000 --- a/N3OW/gui/window_legend_chronicle.gui +++ /dev/null @@ -1,570 +0,0 @@ -window = { - name = "legend_chronicle" - parentanchor = center - position = { 0 20 } - size = { 650 940 } - layer = windows_layer - - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - hbox = { - using = Window_Background - - blockoverride "bg_margins" { - margin = { 35 0 } - margin_top = -2 - margin_bottom = -5 - } - - background = { - margin = { 32 0 } - margin_top = -2 - margin_bottom = -5 - - using = Background_Window_Header - } - - background = { - margin = { 36 0 } - margin_top = -2 - margin_bottom = -5 - - using = Background_Window_Header_Pattern - } - } - - vbox = { - datacontext = "[LegendChronicleWindow.GetLegend]" - datacontext = "[Legend.GetType]" - margin = { -38 0 } - margin_bottom = -870 - margin_top = -20 - - using = Window_Margins - - allow_outside = yes - - vbox = { - name = "parchment_background" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - background = { - name = "paper_texture_shadow" - texture = "gfx/interface/skinned/window_letter/tile_letter_shadow.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "top_edge_mask" - texture = "gfx/interface/component_masks/legend_chronicle_mask.dds" - blend_mode = alphamultiply - } - } - - background = { - name = "paper_texture_flat" - texture = "gfx/interface/skinned/window_letter/tile_letter_flat.dds" - spriteType = Corneredtiled - spriteborder = { 200 200 } - - modify_texture = { - name = "paper_texture_overlay" - texture = "gfx/interface/window_event/overlay_letter_texture.dds" - spriteType = Corneredstretched - blend_mode = overlay - } - - modify_texture = { - name = "top_edge_mask" - texture = "gfx/interface/component_masks/legend_chronicle_mask.dds" - blend_mode = alphamultiply - } - } - - background = { - name = "decal" - texture = "gfx/interface/window_legend_chronicle/marginalia_decal_ground.dds" - fittype = end - margin = { -64 0 } - margin_bottom = -25 - alpha = 0.7 - } - - background = { - name = "top_edge_overlay" - texture = "gfx/interface/window_legend_chronicle/legend_chronicle_overlay.dds" - alpha = 0.8 - } - - background = { - texture = "[GetIllustration( 'legend_chronicle_frame' ).GetTexture( Legend.MakeScope )]" - margin = { -16 0 } - margin_top = -16 - margin_bottom = -18 - } - - background = { - name = "top_edge_highlight_and_shadow" - texture = "gfx/interface/window_legend_chronicle/legend_chronicle_highlight_shadow.dds" - } - - margin_widget = { - size = { 0 50 } - layoutpolicy_horizontal = expanding - - buttons_window_control = { - parentanchor = top|right - position = { -2 2 } - - blockoverride "button_close" - { - onclick = "[LegendChronicleWindow.Close]" - } - margin_right = 18 - } - - text_single = { - name = "header_text" - parentanchor = top|hcenter - position = { 0 6 } - - text = "LEGEND_CHRONICLE_HEADER" - align = nobaseline - default_format = "#light_background" - max_width = 200 - using = Text_Light_Background_Overrides - using = Font_Size_Big - using = Font_Type_Flavor - - margin_top = 16 - - } - } - - spacer = { - size = { 0 2 } - } - - icon = { - texture = "[GetIllustration( 'legend_chronicle_illustration' ).GetTexture( Legend.MakeScope )]" - size = { 600 242 } - } - - vbox = { - name = "main_content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 64 0 } - margin_bottom = 72 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - spacing = 4 - - background = { - using = Background_Area - - margin_left = -28 - margin_top = -4 - margin_bottom = -6 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon_legend = { - blockoverride "icon_size" - { - size = { 50 50 } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - name = "legend_title" - text = "[Legend.GetNameNoTooltip]" - default_format = "#light_background" - align = nobaseline - using = Font_Size_Big - using = Font_Type_Flavor - using = Text_Light_Background_Overrides - - max_width = 490 - } - } - - hbox = { - name = "legend_flavor" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 16 - - scrollbox = { - size = { 350 362 } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_scrollbar_vertical" { - scrollbar_vertical = { - using = Chronicle_Scrollbar_Vertical - } - } - - blockoverride "scrollbox_content" - { - vbox = { - name = "chapters" - datamodel = "[LegendChronicleWindow.GetChapters]" - spacing = 16 - - item = { - text_multi = { - name = "chapter_text" - layoutpolicy_vertical = expanding - - margin_right = 16 - - min_width = 350 - max_width = 350 - autoresize = yes - - text = "[CString.GetString]" - - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - } - } - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - - portrait_legend_chronicle = {} - - expand = {} - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin_bottom = 16 - - icon = { - name = "divider" - size = { 524 40 } - texture = "[GetIllustration( 'legend_chronicle_divider' ).GetTexture( Legend.MakeScope )]" - } - } - - vbox = { - name = "buttons" - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.IsValid]" - - hbox = { - name = "owner_buttons" - visible = "[ObjectsEqual( Legend.GetOwner.Self, GetPlayer )]" - - spacing = 8 - - button_primary = { - text = "LEGEND_CHRONICLE_COMPLETE" - onclick = "[CreateCommandPopup( Legend.Complete )]" - enabled = "[IsValidCommand( Legend.Complete )]" - tooltip = "[GetCommandDesc( Legend.Complete )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - - button_primary = { - text = "LEGEND_CHRONICLE_INCREASE_QUALITY" - onclick = "[PostCommand( Legend.IncreaseLegendQuality )]" - enabled = "[IsValidCommand( Legend.IncreaseLegendQuality )]" - tooltip = "[GetCommandDesc( Legend.IncreaseLegendQuality )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - } - - hbox = { - name = "unowned_buttons" - visible = "[And( Not( Legend.GetOwner.IsValid ), Not( ObjectsEqual( Legend.GetOwner.Self, GetPlayer ) ) )]" - - spacing = 10 - - button_primary = { - text = "LEGEND_CHRONICLE_START_OWNING" - onclick = "[PostCommand( GetPlayer.TakeUnownedLegend( Legend.Self ) )]" - enabled = "[IsValidCommand( GetPlayer.TakeUnownedLegend( Legend.Self ) )]" - tooltip = "[GetCommandDesc( GetPlayer.TakeUnownedLegend( Legend.Self ) )]" - visible = "[Not( Legend.IsCompleted )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - } - - hbox = { - name = "library_buttons" - visible = "[Legend.IsCompleted]" - - button_primary = { - text = "LEGEND_CHRONICLE_ADD_TO_LIBRARY" - - visible = "[Not( Legend.IsInPlayerLibrary( GetPlayer ) )]" - - onclick = "[PostCommand( GetPlayer.AddToLegendLibrary( Legend.Self ) )]" - enabled = "[IsValidCommand( GetPlayer.AddToLegendLibrary( Legend.Self ) )]" - tooltip = "[GetCommandDesc( GetPlayer.AddToLegendLibrary( Legend.Self ) )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - - button_primary = { - text = "LEGEND_CHRONICLE_REMOVE_FROM_LIBRARY" - - visible = "[Legend.IsInPlayerLibrary( GetPlayer )]" - - onclick = "[PostCommand( GetPlayer.RemoveFromLegendLibrary( Legend.Self ) )]" - onclick = "[LegendChronicleWindow.Close]" - enabled = "[IsValidCommand( GetPlayer.RemoveFromLegendLibrary( Legend.Self ) )]" - tooltip = "[GetCommandDesc( GetPlayer.RemoveFromLegendLibrary( Legend.Self ) )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - } - - hbox = { - name = "non_owner_buttons" - visible = "[And( Legend.GetOwner.IsValid, Not( ObjectsEqual( Legend.GetOwner.Self, GetPlayer ) ) )]" - - spacing = 8 - - button_primary = { - text = "LEGEND_CHRONICLE_STOP_PROMOTING" - visible = "[Legend.IsCharacterPromotingLegend( GetPlayer.Self )]" - - onclick = "[PostCommand( GetPlayer.StopPromotingLegend( Legend.Self ) )]" - enabled = "[IsValidCommand( GetPlayer.StopPromotingLegend( Legend.Self ) )]" - tooltip = "[GetCommandDesc( GetPlayer.StopPromotingLegend( Legend.Self ) )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - - button_primary = { - text = "LEGEND_CHRONICLE_START_PROMOTING" - visible = "[Not( Legend.IsCharacterPromotingLegend( GetPlayer.Self ) )]" - - onclick = "[CreateCommandPopup( GetPlayer.StartPromotingLegend( Legend.Self ) )]" - enabled = "[IsValidCommand( GetPlayer.StartPromotingLegend( Legend.Self ) )]" - tooltip = "[GetCommandDesc( GetPlayer.StartPromotingLegend( Legend.Self ) )]" - - background = { - using = Background_Area_Light - alpha = 0.7 - } - } - } - } - - expand = {} - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types LegendChronicleWindow -{ - type portrait_legend_chronicle = widget { - size = { 200 380 } - - background = { - texture = "gfx/interface/window_legend_chronicle/marginalia_portrait_gold_bg.dds" - } - - portrait_button = { - datacontext = "[Legend.GetProtagonist]" - size = { 200 380 } - alpha = 0.80 # We blend in the portrait into the background a bit - parentanchor = bottom|hcenter - - using = portrait_base - alwaystransparent = yes - tooltip_visible = no - - portrait_texture = "[Character.GetAnimatedPortraitEvenIfDead( 'environment_painterly', 'camera_legend_chronicle', Legend.GetPortraitAnimation, PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - mask = "gfx/portraits/portrait_mask_legend_chronicle.dds" - effectname = "NoHighlight" - - shaderfile = "gfx/FX/gui_painterly_portrait.shader" - pop_out = yes # Painterly shader override for `pop_out` property, it now means "add outline" - pop_out_v = 3.0 # Painterly shader override for `pop_out_v` property, it now means "outline width" - grayscale = no # Dead people should be painted non-gray - } - - icon = { - size = { 100% 100% } - texture = "[GetIllustration( 'legend_chronicle_portrait_frame' ).GetTexture( Legend.MakeScope )]" - } - - button = { - name = "legend_protagonist_name_plate" - - parentanchor = bottom - - size = { 160 36 } - position = { 20 -20 } - - using = Background_Letter_No_Frame - - alpha = 0.8 - - datacontext = "[Legend.GetProtagonist]" - onclick = "[DefaultOnCharacterClick( Character.GetID )]" - - tooltipwidget = { - container_character_tooltip = {} - } - - text_multi = { - min_width = 144 - max_width = 144 - min_height = 34 - max_height = 34 - - position = { 8 1 } - - text = "[Legend.GetProtagonist.GetShortUINameNotMeNoTooltip]" - default_format = "#light_background" - align = vcenter|nobaseline|center - using = Font_Size_Big - using = Font_Type_Flavor - using = Text_Light_Background_Overrides - } - } - } -} - -template Chronicle_Scrollbar_Vertical { - scrollbar = { - name = "vertical_scrollbar" - size = { 12 12 } - wheelstep = 60 - direction = vertical - - track = { - button = { - size = { 12 12 } - gfxtype = buttongfx - - alpha = 0.4 # This is the only difference with template 'Scrollbar_Vertical' - to provide contrast - - texture = "gfx/interface/scrollbars/scrollbar_track_vertical.dds" - spriteType = Corneredtiled - spriteborder = { 0 3 } - effectname = "NoHighlight" - } - } - - slider = { - button = { - gfxtype = framedbuttongfx - effectname = "NoHighlight" - - texture = "gfx/interface/scrollbars/scrollbar_slider.dds" - spriteType = Corneredtiled - spriteborder = { 0 3 } - framesize = { 12 40 } - minimumsize = { -1 40 } - - upframe = 1 - overframe = 2 - downframe = 2 - - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - - state = { - name = _mouse_press - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - - state = { - name = _mouse_release - start_sound = { - soundeffect = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - } - } - } - - dec_button = { - button = { - } - } - - inc_button = { - button = { - } - } - } -} diff --git a/N3OW/gui/window_legend_creation.gui b/N3OW/gui/window_legend_creation.gui deleted file mode 100644 index 849c558b..00000000 --- a/N3OW/gui/window_legend_creation.gui +++ /dev/null @@ -1,258 +0,0 @@ -window = { - name = "legend_creation" - datacontext = "[LegendCreationWindow.AccessPotentialProtagonists]" - - layer = middle - parentanchor = center - allow_outside = yes - - using = Window_Movable - using = Window_Background - using = Window_Decoration - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - datacontext = "[LegendCreationWindow.GetSeed]" - datacontext = "[GetPlayer]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CREATE_LEGEND_TITLE" - } - blockoverride "button_close" - { - onclick = "[LegendCreationWindow.Close]" - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 4 4 } - autoresize = yes - max_width = 650 - text = "CREATE_LEGEND_DESC" - align = center - } - - fixed_gridbox_character_list = { - name = "invited_characters" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "button_texture" - { - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - margin = { 10 0 } - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - } - - blockoverride "button" - { - down = "[ObjectsEqual( CharacterListItem.GetCharacter, LegendCreationWindow.GetProtagonist.Self )]" - } - - blockoverride "character_gridbox" - { - addcolumn = 630 - addrow = 105 - datamodel_reuse_widgets = yes - } - - blockoverride "divider" {} - - blockoverride "item_size" - { - size = { 630 110 } - } - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" { - margin_left = 20 - margin_right = 30 - margin_top = 5 - spacing = 5 - } - } - } - } - - vbox = { - name = "completion_rewards" - widgetid = "completion_rewards" - layoutpolicy_horizontal = expanding - - using = Create_Resetting_Fold_Out - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "LEGEND_REWARDS" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[PdxGuiFoldOut.IsUnfolded]" - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.SetResetOnShown( '(bool)no')]" - oncreate = "[PdxGuiTabs.AddTab( 'famed' )]" - oncreate = "[PdxGuiTabs.AddTab( 'illustrious' )]" - oncreate = "[PdxGuiTabs.AddTab( 'mythical' )]" - oncreate = "[PdxGuiTabs.ListenFor( 'seed_quality' )]" - - hbox_tab_buttons = { - name = "quality_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'legend_quality' )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - name = "effects_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 220} - - blockoverride "scrollbox_content" - { - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 630 - text = "[LegendCreationWindow.GetCompletionDesc( PdxGuiTabs.GetActiveTab.GetKey )]" - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 16 16 } - spacing = 8 - - background = { - using = Background_Area - } - - legend_seed_cost_hbox = {} - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 2 2 } - autoresize = yes - max_width = 650 - text = "CREATE_LEGEND_WARNING_DESC" - align = center - } - - button_primary = { - text = "CREATE" - enabled = "[LegendCreationWindow.CanCreate]" - tooltip_when_disabled = "[LegendCreationWindow.GetCanCreateDesc]" - - onclick = "[LegendCreationWindow.Create]" - onclick = "[LegendCreationWindow.Close]" - clicksound = "event:/DLC/FP4/SFX/UI/Unique/sfx_ui_spread_legend" - } - } - } - - window_character_filter = { - parentanchor = top|left - widgetanchor = left - position = { -20 20 } - - blockoverride "addition_filter" { - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('age_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('age_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('alive_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('politics_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_house_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hostage_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_legends.gui b/N3OW/gui/window_legends.gui deleted file mode 100644 index 7f76474d..00000000 --- a/N3OW/gui/window_legends.gui +++ /dev/null @@ -1,1554 +0,0 @@ -window = { - name = "legends_window" - widgetid = "legends_window" - movable = no - layer = middle - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - position = { 0 0 } - - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - } - - state = { - name = _hide - position = { -90 0 } - - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - using = Window_Margins_Sidebar - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "LEGENDS_TITLE" - } - - blockoverride "button_close" - { - onclick = "[LegendsWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick( GetPlayer.GetID )]" - } - } - - vbox = { - name = "contents" - widgetid = "legends_window_legend_tabs" # Used in code - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.AddTab( 'realm' )]" # Name used in code - oncreate = "[PdxGuiTabs.AddTab( 'distant' )]" # Name used in code - oncreate = "[PdxGuiTabs.AddTab( 'library' )]" # Name used in code - - oncreate = "[PdxGuiTabs.ListenFor( 'legend_window_change_tab' )]" # Code can send an event which we can listen for to switch tabs - - datacontext = "[GetPlayer]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - name = "special_cards" - - layoutpolicy_horizontal = expanding - spacing = 12 - margin = { 10 0 } - margin_bottom = 15 - - vbox_labelled_legend = { - name = "focused_legend" - - datacontext = "[LegendsWindow.GetFocusedLegend]" - datacontext = "[LegendsWindow.GetFocusedLegend.GetLegend]" - visible = "[Legend.IsValid]" - - blockoverride "label" - { - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 20 - - widget = { - size = { 120 26 } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - - text = "[SelectLocalization( ObjectsEqual( Legend.Self, LegendsWindow.GetPromotedLegend.GetLegend.Self ), SelectLocalization( ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self ), 'PROMOTED_OWNED_LEGEND', 'PROMOTED_LEGEND'), 'FOCUSED_LEGEND' )]" - margin_left = 30 - margin_right = 30 - } - - widget = { - size = { 120 26 } - button_standard_back = { - size = { 120 26 } - onclick = "[LegendsWindow.ClearFocusedLegend()]" - - visible = "[And(LegendsWindow.GetPromotedLegend.GetLegend.IsValid, Not( ObjectsEqual( Legend.Self, LegendsWindow.GetPromotedLegend.GetLegend.Self ) ) )]" - - tooltip = "RETURN_TO_PROMOTED_LEGEND_TT" - } - } - } - - } - } - vbox = { - visible = "[And( Not( LegendsWindow.GetFocusedLegend.GetLegend.IsValid ), Not( LegendsWindow.GetPromotedLegend.GetLegend.IsValid ) )]" - - text_label_center = { - text = "PROMOTED_LEGEND" - margin_left = 30 - margin_right = 30 - } - - text_single = { - text = "PROMOTED_LEGEND_EMPTY" - default_format = "#low;italic" - } - - text_single = { - margin_top = 5 - text = "PROMOTED_LEGEND_EMPTY_INSTRUCTION" - max_width = 550 - default_format = "#P" - align = center - } - } - } - - hbox_tab_buttons = { - name = "tab_buttons" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'legend_tab' )]" - } - } - - scrollbox = { - name = "realm_legends_scrollbox" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - visible = "[PdxGuiTabs.IsTabSet( 'realm' )]" - - blockoverride "scrollbox_content" - { - margin = { 4 4 } - spacing = 8 - - legend_seeds_vbox = { - name = "legend_seeds" - } - - active_legends_vbox = { - name = "realm_legends" - - blockoverride "text" - { - text = "LEGENDS_REALM_ACTIVE_LEGENDS_SECTION" - using = tooltip_sw - } - blockoverride "empty_text" - { - visible = "[IsDataModelEmpty( LegendsWindow.GetRealmActiveLegends )]" - text = "NO_REALM_ACTIVE_LEGENDS" - margin_top = 5 - margin_bottom = 5 - } - blockoverride "datamodel" - { - datamodel = "[LegendsWindow.GetRealmActiveLegends]" - } - } - - completed_legends_vbox = { - name = "realm_completed_legends" - - visible = "[Not( IsDataModelEmpty( LegendsWindow.GetRealmCompletedLegends ) )]" - - blockoverride "text" - { - text = "REALM_COMPLETED_LEGENDS" - } - blockoverride "empty_text" - { - visible = "[IsDataModelEmpty( LegendsWindow.GetRealmCompletedLegends )]" - text = "NO_REALM_COMPLETED_LEGENDS" - margin_top = 5 - margin_bottom = 5 - } - blockoverride "datamodel" - { - datamodel = "[LegendsWindow.GetRealmCompletedLegends]" - } - } - } - } - - scrollbox = { - name = "distant_legends_scrollbox" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - visible = "[PdxGuiTabs.IsTabSet( 'distant' )]" - - blockoverride "scrollbox_content" - { - margin = { 4 4 } - spacing = 8 - - active_legends_vbox = { - name = "distant_legends" - - blockoverride "text" - { - text = "LEGENDS_DISTANT_ACTIVE_LEGENDS_SECTION" - } - blockoverride "empty_text" - { - visible = "[IsDataModelEmpty( LegendsWindow.GetDistantActiveLegends )]" - text = "NO_DISTANT_ACTIVE_LEGENDS" - margin_top = 5 - margin_bottom = 5 - } - blockoverride "datamodel" - { - datamodel = "[LegendsWindow.GetDistantActiveLegends]" - } - } - - completed_legends_vbox = { - name = "distant_completed_legends" - - blockoverride "text" - { - text = "DISTANT_COMPLETED_LEGENDS" - } - blockoverride "empty_text" - { - visible = "[IsDataModelEmpty( LegendsWindow.GetDistantCompletedLegends )]" - text = "NO_DISTANT_COMPLETED_LEGENDS" - margin_top = 5 - margin_bottom = 5 - } - blockoverride "datamodel" - { - datamodel = "[LegendsWindow.GetDistantCompletedLegends]" - } - } - } - } - - scrollbox = { - name = "library_legends_scrollbox" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - visible = "[PdxGuiTabs.IsTabSet( 'library' )]" - - blockoverride "scrollbox_content" - { - margin = { 8 8 } - spacing = 8 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - margin = { 4 4 } - - - text_multi = { - layoutpolicy_horizontal = expanding - - visible = "[IsDataModelEmpty( LegendsWindow.GetLibraryLegends )]" - - margin_top = 5 - text = "LEGEND_LIBRARY_INSTRUCTION" - max_width = 450 - autoresize = yes - default_format = "#low;italic" - align = center - } - - fixedgridbox = { - name = "legend_entries" - layoutpolicy_horizontal = expanding - - addcolumn = 570 - addrow = 70 - - datamodel = "[LegendsWindow.GetLibraryLegends]" - - item = { - button = { - size = { 570 70 } - onclick = "[ToggleGameViewData( 'legend_chronicle', LegendItem.GetLegend )]" - onclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - - onrightclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - onrightclick = "[LegendItem.GetLegend.PanCameraTo]" - - button_ignore = none - - legend_library_entry_vbox = {} - } - } - } - } - } - } - } - } -} - -types LegendTypes -{ - type legend_chronicles_round_button = button_round - { - onclick = "[ToggleGameViewData( 'legend_chronicle', Legend.Self )]" - tooltip = "OPEN_CHRONICLE_BUTTON_TT" - - button_history = { - parentanchor = center - alwaystransparent = yes - } - } - - type legend_modifiers_hbox = hbox - { - layoutpolicy_vertical = expanding - - icon_modifier_legend_owner = { - visible = "[And(Legend.HasImpactModifiers( 'owner' ), Not( Legend.IsCompleted ))]" - tooltip = "LEGEND_OWNER_MODIFIERS_TOOLTIP" - } - - icon_modifier_legend_promoter = { - visible = "[And(Legend.HasImpactModifiers( 'promoter' ), Not( Legend.IsCompleted ))]" - tooltip = "LEGEND_PROMOTER_MODIFIERS_TOOLTIP" - } - - icon_modifier_legend_province_and_county = { - visible = "[Or( Legend.HasImpactModifiers( 'province' ), Legend.HasImpactModifiers( 'county' ) )]" - tooltip = "LEGEND_PROVINCE_AND_COUNTY_MODIFIERS_TOOLTIP" - } - } - - type legend_promoters_tooltip = object_tooltip_pop_out - { - blockoverride "title_text" - { - margin = { 0 8 } - text = "LEGEND_PROMOTERS_LABEL" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[Legend.GetPromoters]" - - item = { - cooltip_paragraph = { - text = "[Character.GetUIName|U]" - } - } - } - } - } - - type legend_summary_vbox = vbox - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - name = "no_promoters" - layoutpolicy_horizontal = expanding - visible = "[IsDataModelEmpty( Legend.GetPromoters )]" - text = LEGEND_PROMOTERS - } - - text_single = { - name = "promoters" - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( Legend.GetPromoters )]" - - text = LEGEND_PROMOTERS - - tooltipwidget = { - legend_promoters_tooltip = {} - } - } - - text_single = { - name = "spread" - layoutpolicy_horizontal = expanding - text = "LEGEND_SPREAD" - } - - text_single = { - name = "owner" - layoutpolicy_horizontal = expanding - text = "LEGEND_OWNER_DESCRIPTION" - } - - expand = {} - } - - type legend_summary_completed_vbox = vbox - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - margin_right = 5 - - visible = "[GreaterThan_int32( Legend.GetCurrentNumProvinces, '(int32)0' )]" - - name = "completed_text" - text = "SUMMARY_LEGEND_IS_COMPLETED" - } - - text_single = { - name = "spread" - layoutpolicy_horizontal = expanding - text = "LEGEND_SPREAD" - } - - expand = {} - } - - type legend_library_entry_vbox = vbox_generic_object_card - { - datacontext = "[LegendItem.GetLegend]" - visible = "[Legend.IsValid]" - - layoutpolicy_horizontal = expanding - using = Legend_Mouse_Entry - - blockoverride "header_properties" - { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - } - blockoverride "header_tooltip" - { - tooltip = "LEGEND_HEADER_TT" - } - - blockoverride "header_background_color" - { - using = Legend_Quality_Colors - } - - blockoverride "header_pre_contents" - { - icon_legend = { - visible = "[Not( Legend.IsCharacterPromotingLegend( GetPlayer ) )]" - datacontext = "[Legend.GetType]" - } - - icon_legend_highlight = { - visible = "[Legend.IsCharacterPromotingLegend( GetPlayer )]" - datacontext = "[Legend.GetType]" - } - } - blockoverride "header_top_contents" - { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - text = "[Legend.GetNameNoTooltip]" - default_format = "#high" - - using = Font_Size_Medium - align = nobaseline - max_width = 350 - - } - expand = {} - } - } - blockoverride "header_bottom_contents" - { - layoutpolicy_vertical = expanding - - text_single = { - text = "LEGEND_HEADER_SUBTITLE" - default_format = "#weak" - align = nobaseline - parentanchor = vcenter|left - max_width = 350 - } - } - blockoverride "header_post_contents" - { - using = GenericObjectCardDefaultHeaderPostProperties - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - text_single = { - text = "[Legend.GetQualityLevel]" - default_format = "#weak" - align = nobaseline - margin_right = 5 - } - - hbox = { - spacing = -4 - - icon_flat_standard_gold = { - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_gold = { - visible = "[Legend.HasQuality( 'mythical' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - - icon_flat_standard_gold = { - visible = "[Or(Legend.HasQuality( 'illustrious' ), Legend.HasQuality( 'mythical' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_black = { - visible = "[Legend.HasQuality( 'famed' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - - icon_flat_standard_black = { - visible = "[Or(Legend.HasQuality( 'famed' ), Legend.HasQuality( 'illustrious' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - text_single = { - text = "LEGEND_DURATION_COMPLETED" - default_format = "#weak" - align = nobaseline - margin_right = 5 - } - - button_round = { - onclick = "[ToggleGameViewData( 'legend_chronicle', Legend.Self )]" - tooltip = "OPEN_CHRONICLE_BUTTON_TT" - - size = { 20 20 } - - button_history = { - size = { 16 16 } - parentanchor = center - alwaystransparent = yes - } - } - - button_go_to_my_location = { - onclick = "[Legend.PanCameraTo]" - tooltip = "PAN_TO_LEGEND_TT" - - size = { 25 25 } - } - } - - expand = {} - } - } - } - - type legend_entry_vbox = vbox_generic_object_card - { - datacontext = "[LegendItem.GetLegend]" - visible = "[Legend.IsValid]" - - layoutpolicy_horizontal = expanding - using = Legend_Mouse_Entry - - blockoverride "header_properties" - { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - } - blockoverride "header_tooltip" - { - tooltip = "LEGEND_HEADER_TT" - } - - blockoverride "header_background_color" - { - using = Legend_Quality_Colors - } - - blockoverride "header_pre_contents" - { - icon_legend = { - visible = "[Not( Legend.IsCharacterPromotingLegend( GetPlayer ) )]" - datacontext = "[Legend.GetType]" - } - - icon_legend_highlight = { - visible = "[Legend.IsCharacterPromotingLegend( GetPlayer )]" - datacontext = "[Legend.GetType]" - } - } - blockoverride "header_top_contents" - { - layoutpolicy_vertical = expanding - - text_single = { - text = "[Legend.GetNameNoTooltip]" - default_format = "#high" - - using = Font_Size_Medium - align = nobaseline - max_width = 350 - - parentanchor = vcenter|left - } - } - blockoverride "header_bottom_contents" - { - layoutpolicy_vertical = expanding - - text_single = { - text = "LEGEND_HEADER_SUBTITLE" - default_format = "#weak" - align = nobaseline - parentanchor = vcenter|left - max_width = 350 - } - } - blockoverride "header_post_contents" - { - using = GenericObjectCardDefaultHeaderPostProperties - - text_single = { - text = "[Legend.GetQualityLevel]" - default_format = "#weak" - align = nobaseline - margin_right = 5 - } - - hbox = { - spacing = -4 - - icon_flat_standard_gold = { - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_gold = { - visible = "[Legend.HasQuality( 'mythical' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - - icon_flat_standard_gold = { - visible = "[Or(Legend.HasQuality( 'illustrious' ), Legend.HasQuality( 'mythical' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_black = { - visible = "[Legend.HasQuality( 'famed' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - - icon_flat_standard_black = { - visible = "[Or(Legend.HasQuality( 'famed' ), Legend.HasQuality( 'illustrious' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - } - } - blockoverride "card_contents" - { - datacontext = "[Legend.GetOwner]" - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_right = 5 - - Background = { - spriteType = Corneredtiled - alpha = 0.15 - texture = "gfx/interface/colors/gold.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_floral.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.8 - texture_density = 2 - } - } - - widget = { - datacontext = "[Legend.GetProtagonist]" - size = { 95 140 } - portrait_head_small_legend = { - parentanchor = top - position = { 10 6 } - } - } - - vbox = { - datacontext = "[GetPlayer]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - min_width = 240 - maximumsize = { 250 -1 } - margin_left = 24 - margin_bottom = 5 - margin_top = 5 - - legend_summary_vbox = { - visible = "[Not( Legend.IsCompleted )]" - } - legend_summary_completed_vbox = { - visible = "[Legend.IsCompleted]" - } - - expand = {} - - text_single = { - text = AFFECTING_MODIFIERS_LABEL - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - legend_modifiers_hbox = {} - - fixedgridbox = { - name = "modifiers_grid" - datamodel = "[LegendItem.GetModifiers]" - addcolumn = 25 - addrow = 23 - datamodel_wrap = 4 - flipdirection = yes - maxverticalslots = 2 - - item = { - modifier_item_icon = { - size = { 22 22 } - } - } - } - expand = {} - } - - expand = {} - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - vbox = { - datacontext = "[GetPlayer]" - - layoutpolicy_vertical = expanding - - visible = "[Not( Legend.IsCompleted )]" - - margin = { 2 18 } - spacing = -4 - - expand = {} - - text_label_right = { - visible = "[ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self )]" - layoutpolicy_horizontal = expanding - - text = "LEGEND_UPGRADE_LABEL" - margin_left = 10 - margin_right = 10 - max_width = 170 - } - - text_single = { - visible = "[ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self )]" - layoutpolicy_horizontal = expanding - - text = "LEGEND_UPGRADE_COST" - align = right|nobaseline - margin_left = 10 - margin_right = 10 - max_width = 160 - margin_bottom = 20 - } - - text_label_right = { - layoutpolicy_horizontal = expanding - - visible = "[Or( Legend.IsCharacterPromotingLegend( GetPlayer ), IsValidCommand( GetPlayer.StartPromotingLegend( Legend.Self ) ) )]" - - text = "LEGEND_MAINTENANCE_LABEL" - align = right|nobaseline - margin_left = 10 - margin_right = 10 - max_width = 170 - } - - text_single = { - layoutpolicy_horizontal = expanding - - visible = "[Or( Legend.IsCharacterPromotingLegend( GetPlayer ), IsValidCommand( GetPlayer.StartPromotingLegend( Legend.Self ) ) )]" - - text = "LEGEND_MAINTENANCE_COST" - align = right|nobaseline - margin_left = 10 - margin_right = 10 - max_width = 170 - } - - expand = {} - } - - widget = { - size = { 45 120 } - - icon = { - size = { 40 110 } - position = { -5 0 } - texture = "gfx/interface/window_legend_chronicle/legend_button_frame.dds" - parentanchor = right|vcenter - alpha = 0.8 - } - - legend_chronicles_round_button = { - parentanchor = right|vcenter - position = { -3 0 } - } - } - } - } - } - - type vbox_labelled_legend = vbox - { - layoutpolicy_horizontal = expanding - spacing = 5 - - block "label" {} - - vbox = { - name = "no_legend" - visible = "[Not( LegendItem.GetLegend.IsValid )]" - - block "no_legend" {} - } - - legend_entry_vbox = {} - } - - type active_legends_vbox = vbox { - layoutpolicy_horizontal = expanding - spacing = 4 - - using = Create_Resetting_Fold_Out - - button_expandable_toggle_field = {} - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[PdxGuiFoldOut.IsUnfolded]" - - text_single = { - block "empty_text" - { - } - default_format = "#low;italic" - } - - margin_left = 6 - - fixedgridbox = { - name = "legends_in_realm" - layoutpolicy_horizontal = expanding - - addcolumn = 570 - addrow = 210 - - block "datamodel" - { - datamodel = "[LegendsWindow.GetRealmActiveLegends]" - } - - item = { - button = { - size = { 570 200 } - - onclick = "[ToggleGameViewData( 'legend_chronicle', LegendItem.GetLegend )]" - onclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - - onrightclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - onrightclick = "[LegendItem.GetLegend.PanCameraTo]" - - button_ignore = none - - legend_entry_vbox = {} - } - } - } - } - } - - type completed_legends_vbox = vbox - { - layoutpolicy_horizontal = expanding - spacing = 4 - - using = Create_Resetting_Fold_Out - - button_expandable_toggle_field = {} - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[PdxGuiFoldOut.IsUnfolded]" - - text_single = { - block "empty_text" - { - } - default_format = "#low;italic" - } - - margin_left = 6 - - fixedgridbox = { - name = "legend_entries" - layoutpolicy_horizontal = expanding - - addcolumn = 570 - addrow = 70 - - block "datamodel" - { - } - - item = { - button = { - size = { 570 70 } - - onclick = "[ToggleGameViewData( 'legend_chronicle', LegendItem.GetLegend )]" - onclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - - onrightclick = "[LegendsWindow.SetFocusedLegend( LegendItem.GetLegend.Self )]" - onrightclick = "[LegendItem.GetLegend.PanCameraTo]" - - button_ignore = none - - legend_library_entry_vbox = { - - } - } - } - } - } - } -} - -template Legend_Seed_Quality_Colors -{ - modify_texture = { - visible = "[LegendSeed.HasQuality( 'famed' )]" - using = Color_Blue - blend_mode = normal - } - modify_texture = { - visible = "[LegendSeed.HasQuality( 'illustrious' )]" - using = Color_Intense_Purple - blend_mode = normal - } - modify_texture = { - visible = "[LegendSeed.HasQuality( 'mythical' )]" - using = Color_Intense_Orange - blend_mode = normal - } -} - -template Legend_Quality_Colors -{ - modify_texture = { - visible = "[Legend.HasQuality( 'famed' )]" - using = Color_Blue - blend_mode = normal - } - modify_texture = { - visible = "[Legend.HasQuality( 'illustrious' )]" - using = Color_Intense_Purple - blend_mode = normal - } - modify_texture = { - visible = "[Legend.HasQuality( 'mythical' )]" - using = Color_Intense_Orange - blend_mode = normal - } -} - -types LegendSeedTypes -{ - type legend_seed_modifiers_hbox = hbox - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = -2 - - icon_modifier_legend_owner = { - visible = "[LegendSeed.HasImpactModifiers( 'owner' )]" - tooltip = "LEGEND_SEED_OWNER_MODIFIERS_TOOLTIP" - } - - icon_modifier_legend_promoter = { - visible = "[LegendSeed.HasImpactModifiers( 'promoter' )]" - tooltip = "LEGEND_SEED_PROMOTER_MODIFIERS_TOOLTIP" - } - - icon_modifier_legend_province_and_county = { - visible = "[Or( LegendSeed.HasImpactModifiers( 'province' ), LegendSeed.HasImpactModifiers( 'county' ) )]" - tooltip = "LEGEND_SEED_PROVINCE_AND_COUNTY_MODIFIERS_TOOLTIP" - } - - expand = {} - } - - type legend_seed_cost_hbox = hbox - { - layoutpolicy_vertical = expanding - spacing = 15 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = -5 - - text_label_right = { - text = "LEGEND_CREATION_LABEL" - margin_left = 10 - - block "text_properties" - { - layoutpolicy_horizontal = expanding - align = right|nobaseline - max_width = 100 - } - } - - text_single = { - text = "LEGEND_CREATION_COST" - - block "text_properties" - { - layoutpolicy_horizontal = expanding - align = right|nobaseline - max_width = 100 - } - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - spacing = -5 - - text_label_right = { - text = "LEGEND_MAINTENANCE_LABEL" - margin_left = 10 - - block "text_properties" - { - layoutpolicy_horizontal = expanding - align = right|nobaseline - max_width = 150 - } - } - - text_single = { - text = "LEGEND_SEED_MAINTENANCE_COST" - - block "text_properties" - { - layoutpolicy_horizontal = expanding - align = right|nobaseline - max_width = 150 - } - } - } - } - - type base_legend_seed_entry_vbox = vbox_generic_object_card - { - layoutpolicy_horizontal = expanding - alwaystransparent = no - - blockoverride "header_properties" - { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - } - - blockoverride "header_background_color" - { - using = Legend_Seed_Quality_Colors - } - - blockoverride "header_pre_contents" - { - icon_legend = {} - } - - blockoverride "header_top_contents" - { - text_single = { - block "legend_seed_name" - { - text = "[LegendSeed.GetName( Character.Self )]" - } - default_format = "#high" - max_width = 380 - - using = Font_Size_Medium - align = nobaseline - - parentanchor = vcenter|left - } - } - - blockoverride "header_bottom_contents" - { - text_single = { - text = "[LegendSeed.GetType.GetName]" - default_format = "#weak" - - using = Font_Size_Small - align = nobaseline - - parentanchor = vcenter|left - } - } - - blockoverride "header_post_contents" - { - using = GenericObjectCardDefaultHeaderPostProperties - - text_single = { - text = "[LegendSeed.GetQualityLevel]" - default_format = "#weak" - align = nobaseline - } - - hbox = { - spacing = -4 - - icon_flat_standard_gold = { - visible = "[LegendSeed.HasQuality( 'famed' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_gold = { - visible = "[LegendSeed.HasQuality( 'illustrious' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_gold = { - visible = "[LegendSeed.HasQuality( 'mythical' )]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - } - - icon_flat_standard_black = { - visible = "[Not(LegendSeed.HasQuality( 'famed' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - - icon_flat_standard_black = { - visible = "[Not(LegendSeed.HasQuality( 'illustrious' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - - icon_flat_standard_black = { - visible = "[Not(LegendSeed.HasQuality( 'mythical' ))]" - size = { 24 24 } - texture = "gfx/interface/icons/flat_icons/map_modes/legends.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_White - alpha = 0.08 - } - } - } - } - - blockoverride "card_contents" - { - Background = { - spriteType = Corneredtiled - alpha = 0.15 - texture = "gfx/interface/colors/gold.dds" - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/patterns/mask_pattern_floral.dds" - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 0.8 - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/colors/grey.dds" - blend_mode = normal - - block "can_not_create" - { - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 20 - margin_right = 10 - spacing = 5 - - vbox = { - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = AFFECTING_MODIFIERS_LABEL - fontsize = 14 - align = nobaseline|left - } - - legend_seed_modifiers_hbox = { - layoutpolicy_horizontal = expanding - } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - legend_seed_cost_hbox = {} - - widget = { - size = { 60 80 } - - block "create_button" {} - } - } - } - } - - type create_legend_round_button = button_round - { - name = legends_button_tutorial_uses_this - - onclick = "[ToggleGameViewData( 'legend_creation', LegendSeed.Self )]" - enabled = "[Character.CanCreateLegend( LegendSeed.Self )]" - - tooltip = "CREATE_LEGEND_TOOLTIP" - using = tooltip_below - - button_plus = { - size = { 80% 80% } - parentanchor = center - alwaystransparent = yes - } - } - - type create_triggered_legend_round_button = button_round - { - name = legends_button_tutorial_uses_this - - onclick = "[ToggleGameViewData( 'legend_creation', TriggeredLegendSeed.Self )]" - enabled = "[Character.CanCreateTriggeredLegend( TriggeredLegendSeed.Self )]" - - tooltip = "CREATE_TRIGGERED_LEGEND_TOOLTIP" - using = tooltip_below - - button_plus = { - parentanchor = center - alwaystransparent = yes - } - } - - type legend_seed_entry_vbox = base_legend_seed_entry_vbox - { - datacontext = "[LegendSeed.GetType]" - - blockoverride "header_tooltip" - { - tooltip = "SEED_LEGEND_HEADER_TT" - } - blockoverride "create_frame" - { - enabled = "[Character.CanCreateLegend( LegendSeed.Self )]" - } - blockoverride "can_not_create" - { - visible = "[Not( Character.CanCreateLegend( LegendSeed.Self ) )]" - } - blockoverride "create_button" - { - create_legend_round_button = { - parentanchor = right|vcenter - position = { -3 0 } - } - } - } - - type triggered_legend_seed_entry_vbox = base_legend_seed_entry_vbox - { - datacontext = "[TriggeredLegendSeed.GetSeed]" - datacontext = "[LegendSeed.GetType]" - - blockoverride "header_tooltip" - { - tooltip = "TRIGGERED_LEGEND_SEED_HEADER_TT" - } - blockoverride "legend_seed_name" - { - text = "[TriggeredLegendSeed.GetName( Character.Self )]" - } - blockoverride "create_frame" - { - enabled = "[Character.CanCreateTriggeredLegend( TriggeredLegendSeed.Self )]" - } - blockoverride "can_not_create" - { - visible = "[Not( Character.CanCreateTriggeredLegend( TriggeredLegendSeed.Self ) )]" - } - blockoverride "create_button" - { - create_triggered_legend_round_button = { - parentanchor = right|vcenter - position = { -3 0 } - } - } - } - - type legend_seeds_vbox = vbox - { - layoutpolicy_horizontal = expanding - spacing = 4 - - using = Create_Resetting_Fold_Out - - datacontext = "[AccessLocalPlayerCachedData]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "LEGEND_SEEDS" - } - } - - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - margin_left = 5 - - text_single = { - visible = "[And( IsDataModelEmpty( Character.GetLegendSeeds ), IsDataModelEmpty( LocalPlayerCachedData.GetTriggeredLegendSeeds ) )]" - margin_top = 5 - margin_bottom = 5 - text = "LEGEND_SEEDS_EMPTY" - default_format = "#low;italic" - } - - fixedgridbox = { - name = "legend_seed_entries" - layoutpolicy_horizontal = expanding - - addcolumn = 570 - addrow = 170 - - datamodel = "[Character.GetLegendSeeds]" - - item = { - widget = { - size = { 570 160 } - - legend_seed_entry_vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - } - - fixedgridbox = { - name = "triggered_legend_seed_entries" - layoutpolicy_horizontal = expanding - - addcolumn = 570 - addrow = 170 - - datamodel = "[LocalPlayerCachedData.GetTriggeredLegendSeeds]" - - item = { - widget = { - size = { 570 160 } - - triggered_legend_seed_entry_vbox = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_levy.gui b/N3OW/gui/window_levy.gui deleted file mode 100644 index 8309c961..00000000 --- a/N3OW/gui/window_levy.gui +++ /dev/null @@ -1,182 +0,0 @@ -###################################################### -################# LEVY VIEW ################### -###################################################### - -window = { - name = "levy_view" - datacontext = "[LevyView.GetLevyType]" - size = { 400 200 } - parentanchor = top|right - position = { -630 290 } - movable = no - layer = middle - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { -630 290 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = -570 - } - - - vbox = { - set_parent_size_to_minimum = yes - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = LV_HEADER - } - - blockoverride "button_close" - { - onclick = "[LevyView.Close]" - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 340 200 } - - vbox = { - hbox = { - layoutpolicy_horizontal = expanding - icon = { - name = "icon_levies" - texture = "[GetPlayer.GetCulture.GetGraphicalUnitType.GetLeviesBigIllustration]" - size = { 390 200 } - using = Mask_Rough_Edges - } - } - - hbox = { - visible = "[Not(LevyView.HasRaisedLevies)]" - layoutpolicy_horizontal = expanding - margin_top = -360 - - expand = {} - - text_label_right = { - text = "LV_UNRAISED" - using = Font_Size_Big - default_format = "#high" - } - - spacer = { - size = {8 0} - } - } - - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 15 - margin_top = -50 - - hbox = { - layoutpolicy_horizontal = expanding - size = { 340 200 } - spacing = 5 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_levies.dds" - size = { 40 40 } - } - - text_label_left = { - text = "LV_COUNTS" - default_format = "#high" - using = Font_Size_Big - } - - expand = {} - - } - expand = {} - } - } - } - - vbox = { - visible = "[LevyView.HasRaisedLevies]" - margin = { 20 0 } - margin_bottom = 10 - - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "LV_RAISED" - align = left - } - expand = {} - } - - hbox = { - spacing = 10 - layoutpolicy_horizontal = expanding - - text_single = { - text = "LV_MAINTENANCE" - } - expand = {} - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin = { 5 0 } - - vbox_maa_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 10 - - text_single = { - name = "counters" - visible = "[MenAtArmsType.FightsInMainPhase]" - layoutpolicy_horizontal = expanding - text = "LV_NO_COUNTERS" - } - - text_single = { - name = "no_terrains" - text = "REGIMENT_TERRAIN_BONUS_NONE" - } - - text_multi = { - layoutpolicy_horizontal = expanding - size = { 0 90 } - max_width = 380 - autoresize = yes - text = "LV_FLAVOR" - } - } - } - } -} - diff --git a/N3OW/gui/window_lineage.gui b/N3OW/gui/window_lineage.gui deleted file mode 100644 index 97a76ff0..00000000 --- a/N3OW/gui/window_lineage.gui +++ /dev/null @@ -1,178 +0,0 @@ -###################################################### -################# LINEAGE VIEW ####################### -###################################################### -# Lineage View and Succession Event Window share the same backend - -window = { - name = "lineage_window" - size = { 1000 750 } - parentanchor = center - # movable = no - - layer = top - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - using = Animation_ShowHide_Standard - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SUCCESSION_EVENT_WINDOW_HEADING_LINEAGE" - } - - blockoverride "button_close" - { - onclick = "[SuccessionEventWindow.Close]" - } - } - - # widget_header_with_picture = { - # layoutpolicy_horizontal = expanding - - # blockoverride "header_text" - # { - # text = "SUCCESSION_EVENT_WINDOW_HEADING_LINEAGE" - # } - - # blockoverride "illustration_texture" { - # texture = "gfx/interface/window_ruler_transition/illustration_header.dds" - # spriteborder = { 0 0 } - # tintcolor = { 0.8 0.8 0.9 1 } - # } - - # blockoverride "button_close" - # { - # onclick = "[SuccessionEventWindow.Close]" - # } - # } - - ### LINEAGE - scrollarea = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Bottom_Fade - } - - background = { - texture = "gfx/interface/illustrations/event_scenes/temple.dds" - fittype = centercrop - alpha = 0.2 - margin_top = 10 - - using = Mask_Rough_Edges - } - - background = { - using = Background_Area - margin_right = -700 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - mirror = horizontal - } - } - - scrollbarpolicy_vertical = always_off - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - blockoverride "name" - { - name = legacy_scroll - } - } - - scrollwidget = { - hbox = { - name = "info" - parentanchor = vcenter|right - margin = { 30 0 } - margin_top = 150 - - expand = {} - - hbox = { - - background = { - margin = { 0 -180 } - margin_right = -100 - margin_left = 200 - - texture = "gfx/interface/colors/white.dds" - color = { 0.3 0.3 0.35 0.8 } - spriteType = Corneredtiled - size = { 3 3 } - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - hbox = { - datamodel = "[SuccessionEventWindow.GetLegacy]" - spacing = 80 - - item = { - vbox_legacy_item = { - } - } - } - - spacer = { - visible = "[GreaterThan_int32(GetDataModelSize(SuccessionEventWindow.GetLegacy), '(int32)0')]" - size = { 80 0 } - } - - vbox_current_lineage = { - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - datacontext = "[SuccessionEventWindow.GetPlayerHeirLegacy]" - } - } - - vbox_dynasty = { - name = "dynasty_right" - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetDynasty]" - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.IsValid)]" - } - - expand = {} - } - } - } - } -} diff --git a/N3OW/gui/window_lobby_helper.gui b/N3OW/gui/window_lobby_helper.gui deleted file mode 100644 index 77491c13..00000000 --- a/N3OW/gui/window_lobby_helper.gui +++ /dev/null @@ -1,10 +0,0 @@ -window = { - name = "window_lobby_helper" - visible = no - size = { 1 1 } - - dropdown_menu_standard = { - name = "sort_options" - visible = no - } -} diff --git a/N3OW/gui/window_manage_tax_slots.gui b/N3OW/gui/window_manage_tax_slots.gui deleted file mode 100644 index 653bf281..00000000 --- a/N3OW/gui/window_manage_tax_slots.gui +++ /dev/null @@ -1,786 +0,0 @@ -window = { - name = "window_manage_tax_slots" - widgetid = "window_manage_tax_slots" - - using = Window_Size_MainTab - minimumsize = { 0 100 } - position = { 0 0 } - - parentanchor = top|right - allow_outside = yes - movable = no - layer = windows_layer - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - state = { - name = dismiss - next = _hide - - trigger_when = "[GetVariableSystem.Exists( 'hide_right_windows' )]" - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 26 } - margin_right = 13 - - - - widget = { - size = { 100% 100% } - - vbox = { - margin_bottom = 40 - restrictparent_min = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - spacing = 20 - - datacontext = "[ManageTaxSlotsWindow.GetLiege]" - - ###HEADERBOX WITH INFORMATION - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - size = { 100 150 } - - blockoverride "header_text" - { - text = "TAX_SLOT_OVERVIEW_WINDOW_HEADER" - } - - blockoverride "size" { - size = { 575 180 } - } - - blockoverride "button_close" - { - onclick = "[ManageTaxSlotsWindow.Close]" - } - - blockoverride "illustration_texture" { - texture = "gfx/interface/window_tax_collector/tax_collector_illustration.dds" - alpha = 0.4 - } - - vbox = { - name = tax_collection_top_view # Used for reactive advice - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 50 - margin_left = 20 - spacing = 10 - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - datacontext = "[ManageTaxSlotsWindow.GetTotalTaxSlotsBreakdown]" - text = "TAX_SLOT_OVERVIEW_WINDOW_ASSIGNED_TAX_SLOTS" - tooltipwidget = { widget_value_breakdown_tooltip = {} } - } - - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 7 - max_width = 160 - margin = { 5 5 } - - text_single = { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_CONTRIBUTION" - default_format = "#high" - margin_left = -5 - margin_bottom = 3 - } - - background = { - texture = "gfx/interface/window_tax_collector/button_arrow.dds" - alpha = 0.6 - using = Mask_Rough_Edges - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - expand = {} - - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - max_width = 250 - - background = { - using = Background_Area - using = Color_White - tintcolor = { 0.6 0.7 0.2 0.3 } - margin = { 50 3 } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - } - - expand = {} - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[ManageTaxSlotsWindow.GetTotalTaxBreakdown]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TOTAL_TAX_DESC" - } - - blockoverride "sub_header" - { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_SUB_HEADER" - } - - blockoverride "no_sub_values" - { - text = "TAX_SLOT_VASSAL_WINDOW_NO_TAX_SLOTS" - } - } - } - using = tooltip_ws - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[ManageTaxSlotsWindow.GetTotalLevyBreakdown]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TOTAL_LEVIES_DESC" - } - - blockoverride "sub_header" - { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_SUB_HEADER" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - - blockoverride "no_sub_values" - { - text = "TAX_SLOT_VASSAL_WINDOW_NO_TAX_SLOTS" - } - } - } - using = tooltip_ws - } - expand = {} - } - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Or( GreaterThan_int32( Character.GetUntaxedJurisdictionCount, '(int32)0' ), GreaterThan_int32( Character.GetUnassignedVassalsCount, '(int32)0' ))]" - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin = { 20 10 } - margin_right = 0 - } - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[GreaterThan_int32( Character.GetUntaxedJurisdictionCount, '(int32)0' )]" - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_OVERVIEW_WINDOW_TAX_SLOTS_WARNING" - default_format = "#N" - align = nobaseline - max_width = 480 - } - - text_single = { - visible = "[GreaterThan_int32( Character.GetUnassignedVassalsCount, '(int32)0' )]" - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_OVERVIEW_WINDOW_UNASSIGNED_VASSALS_WARNING" - default_format = "#N" - align = nobaseline - max_width = 480 - } - } - - - } - #expand = {layoutpolicy_vertical = expanding} - - } - } - - ### TAX JURISDICTION LIST - scrollbox = { - name = "tax_jurisdiction_list" # Used for reactive advice - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" { - margin_right = 20 - } - - blockoverride "scrollbox_content" - { - tax_slot_list = {} - } - } - - vbox = { - margin = { 40 0 } - spacing = 10 - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_checkbox_label = { - onclick = "[ManageTaxSlotsWindow.ToggleAutoAssign]" - - blockoverride "checkbox" - { - checked = "[ManageTaxSlotsWindow.ShouldAutoAssign]" - } - - blockoverride "text" - { - max_width = 460 - text = "TAX_SLOT_OVERVIEW_AUTO_ASSIGN_BUTTON" - } - } - } - - button_decision_entry = { - name = "search_for_tax_collector_decision" - layoutpolicy_horizontal = expanding - datacontext = "[GetDecisionWithKey('unity_search_for_administrators_decision')]" - visible = "[Decision.IsShownForPlayer]" - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]" - margin_top = 30 - - blockoverride "decision_vignette" {} - } - } - } - } - } -} - -types ManageTaxSlotsWindow -{ - ### Tax Collector Portrait and Banner - type tax_collector_slot_item = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - spacing = 10 - size = { 300 300 } - - datacontext = "[TaxSlotItem.GetTaxSlot]" - datacontext = "[TaxSlotItem.GetTaxCollector]" - - ### Empty Tax Collector Slot Item BG - background = { - visible = "[And(Not(TaxSlotItem.HasTaxCollector), Not(DataModelHasItems(TaxSlotItem.GetVassals)))]" - texture = "gfx/interface/window_tax_collector/collection_slot_banner_gray.dds" - margin_right = 5 - margin_bottom = -12 - size = { 100 150 } - } - - ### Untaxed Tax Collector Slot Item BG - background = { - visible = "[And(Not(TaxSlotItem.HasTaxCollector), DataModelHasItems(TaxSlotItem.GetVassals))]" - texture = "gfx/interface/window_tax_collector/collection_slot_banner_red.dds" - margin_right = 5 - margin_bottom = -12 - size = { 100 150 } - } - - ### With Tax Collector Slot Item BG - background = { - visible = "[TaxSlotItem.HasTaxCollector]" - texture = "gfx/interface/window_tax_collector/collection_slot_banner.dds" - margin_right = 5 - margin_bottom = -12 - size = { 100 150 } - } - - vbox = { - margin_right = -4 - - portrait_head_small = { - visible = "[Not(TaxSlotItem.HasTaxCollector)]" - - blockoverride "portrait_button_template_onclick" - { - onclick = "[ToggleGameViewData( 'tax_slot_appoint_tax_collector', TaxSlotItem.GetTaxSlot.GetID )]" - } - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "TAX_SLOT_ADD_NEW_TAX_COLLECTOR_BUTTON" - } - - blockoverride "onclick" - { - onclick = "[ToggleGameViewData( 'tax_slot_appoint_tax_collector', TaxSlotItem.GetTaxSlot.GetID )]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - size = { 35 35 } - position = {-5 0 } - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - } - } - - portrait_head_small = { - visible = "[TaxSlotItem.HasTaxCollector]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - button_round = { - size = { 35 35 } - - icon = { - position = { -0.5 0 } - parentanchor = center - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/replace.dds" - using = Master_Button_Modify_Texture - } - - tooltip = "[SelectLocalization( TaxSlotItem.HasTaxCollector, 'TAX_SLOT_REPLACE_TAX_COLLECTOR_BUTTON', 'TAX_SLOT_REPLACE_TAX_COLLECTOR_BUTTON_NO_TAX_COLLECTOR')]" - - visible = "[TaxSlotItem.HasTaxCollector]" - onclick = "[ToggleGameViewData( 'tax_slot_appoint_tax_collector', TaxSlotItem.GetTaxSlot.GetID )]" - } - - button_round = { - size = { 35 35 } - - icon = { - position = { -0.5 0 } - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - using = Master_Button_Modify_Texture - } - - tooltip = "[SelectLocalization( TaxSlotItem.HasTaxCollector, 'TAX_SLOT_FIRE_TAX_COLLECTOR_BUTTON', 'TAX_SLOT_FIRE_TAX_COLLECTOR_BUTTON_NO_TAX_COLLECTOR')]" - - visible = "[TaxSlotItem.HasTaxCollector]" - onclick = "[ManageTaxSlotsWindow.RemoveTaxCollector( TaxSlotItem.AccessSelf )]" - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - expand = {} - } - - type tax_slot_list = vbox { - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - name = "tax_slot_list" - datamodel = "[ManageTaxSlotsWindow.GetTaxSlotItems]" - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 10 - - ### SWITCHING TYPES - item = { - tax_slot_item = {} - } - } - } - - type tax_slot_item = hbox { - layoutpolicy_horizontal = expanding - - datacontext = "[TaxSlotItem.GetTaxSlot]" - datacontext = "[TaxSlotItem.GetTaxCollector]" - - ### Tax Slot Item Background for Empty Slot - background = { - using = Background_Area - margin = { 5 5 } - } - - ### Tax Slot Item Background for Assigned Vassals - background = { - visible = "[TaxSlotItem.HasTaxCollector]" - texture = "gfx/interface/colors/green.dds" - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_dlc.dds" - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphaMultiply - } - } - - ### Tax Slot Item Background for Unassigned Vassals - background = { - visible = "[And(Not(TaxSlotItem.HasTaxCollector), DataModelHasItems(TaxSlotItem.GetVassals))]" - texture = "gfx/interface/colors/red.dds" - alpha = 0.2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_dlc.dds" - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphaMultiply - } - } - - ###Tax Collector Portrait - tax_collector_slot_item = {} - - ###Tax Slot Information - tax_slot_info = {} - } - - type tax_slot_info = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - ##TAX COLLECTOR SLOT INFO, SKILLS, APTITUDE - hbox = { - min_width = 450 - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - background = { - using = Background_Area - margin_bottom = 30 - margin_left = 10 - } - - text_single = { - max_width = 300 - layoutpolicy_horizontal = expanding - text = "[TaxSlot.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - - expand = { - layoutpolicy_horizontal = expanding - } - - # Its own vbox so the datacontext of the aptitude isn't evaluated with an empty character - hbox = { - visible = "[TaxSlotItem.HasTaxCollector]" - - layoutpolicy_horizontal = expanding - - tax_collector_aptitude_text = { - max_width = 140 - } - } - } - - ##VASSALS GOVERNED AND INCOME - hbox = { - name = "taxpayer_box" - layoutpolicy_horizontal = expanding - - background = { - name = "taxpayer_box_bg" - using = Background_Area_Characterlist - margin = { 0 5 } - margin_left = 10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_dlc.dds" - blend_mode = alphaMultiply - } - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - mirror = horizontal - alpha = 0.6 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - margin = { 0 -7 } - margin_left = -150 - margin_right = 20 - using = Background_Area - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - mirror = horizontal - } - } - - ##VASSALS GOVERNED BUTTON - - hbox = { - background = { - texture = "gfx/interface/window_tax_collector/button_arrow.dds" - margin { 0 -5 } - margin_right = 15 - margin_left = 8 - using = Mask_Rough_Edges - alpha = 0.8 - } - - alert_icon = { - visible = "[Not(TaxSlotItem.GetTaxSlot.CheckObligationCooldown)]" - size = { 30 30 } - tooltip = "[TaxSlotItem.GetTaxSlot.GetObligationCooldownDesc]" - } - - button_round = { - size = { 40 40 } - tooltip = "TAX_SLOT_CHANGE_COLLECTION_OPTION_BUTTON" - - icon = { - parentanchor = center - - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/clan_contract.dds" - - using = Master_Button_Modify_Texture - } - - onclick = "[ToggleGameViewData( 'tax_slot_obligations', TaxSlotItem.GetTaxSlot.GetID )]" - } - - tax_slot_interaction_button = { - tooltip = "TAX_SLOT_MANAGE_TAX_PAYERS_BUTTON" - - blockoverride "tax_slot_button_texture" { - texture = "gfx/interface/icons/flat_icons/multiple_people.dds" - } - - blockoverride "tax_slot_button_text" { - max_width = 180 - text = "TAX_COLLECTOR_TAXED_VASSALS_COUNT" - } - - blockoverride "tax_slot_button_click" { - onclick = "[ToggleGameViewData( 'tax_slot_vassals', TaxSlotItem.GetTaxSlot.GetID )]" - } - } - } - - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - text_single = { - datacontext = "[TaxSlotItem.GetTaxBreakdown]" - text = "TAX_SLOT_TAX_CONTRIBUTION" - align = nobaseline - default_format = "#high" - - tooltipwidget = { - tax_contribution_tooltip = {} - } - using = tooltip_ws - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - text_single = { - datacontext = "[TaxSlotItem.GetLevyBreakdown]" - text = "TAX_SLOT_LEVY_CONTRIBUTION" - align = nobaseline - default_format = "#high" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - - expand = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 85 85 } - texture = "[TaxSlotItem.GetTaxSlot.GetObligation.GetIcon]" - tooltip = "[TaxSlot.GetObligation.GetEffectText]" - text_label_center = { - parentanchor = bottom|hcenter - text = "TAX_COLLECTOR_SLOT_OBLIGATION_TEXT" - } - } - - text_multi = { - text = "[TaxSlotItem.GetTaxSlot.GetObligation.GetFlavorDesc]" - default_format = "#weak" - minimumsize = { 340 -1 } - maximumsize = { 340 85 } - autoresize = yes - fontsize = 16 - fontsize_min = 12 - margin_left = 25 - } - - expand = {} - } - } - expand = {} - } - - type tax_slot_interaction_button = hbox { - margin = { 5 3 } - spacing = 5 - - button_round = { - size = { 40 40 } - - icon = { - parentanchor = center - size = { 30 30 } - - block "tax_slot_button_texture" {} - - using = Master_Button_Modify_Texture - } - - block "tax_slot_button_click" - { - onclick = "[ToggleGameViewData( 'tax_slot_obligations', TaxSlotItem.GetTaxSlot.GetID )]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - block "tax_slot_button_text" - { - raw_text = "" - } - - align = nobaseline - } - } -} diff --git a/N3OW/gui/window_memories.gui b/N3OW/gui/window_memories.gui deleted file mode 100644 index 2701756e..00000000 --- a/N3OW/gui/window_memories.gui +++ /dev/null @@ -1,314 +0,0 @@ -###################################################### -################# MEMORIES VIEW ###################### -###################################################### - -window = { - name = "memories_window" - size = { 750 1000 } - parentanchor = center - datacontext = "[MemoriesWindow.GetCharacter]" - - layer = top - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - using = Animation_ShowHide_Standard - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "MEMORIES_WINDOW_HEADING" - } - - blockoverride "button_close" - { - onclick = "[MemoriesWindow.Close]" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 40 - margin_bottom = 10 - - expand = {} - - button_copy = { - onclick = "[MemoriesWindow.CopyMemoriesToClipboard]" - - tooltip = "MEMORIES_WINDOW_COPY_TO_CLIPBOARD" - } - - button_pin = { - name = "button_pin" - visible = "[Not( MemoriesWindow.IsPinned )]" - - onclick = "[MemoriesWindow.TogglePinned]" - - tooltip = "MEMORIES_WINDOW_PIN_IT" - using = tooltip_se - } - - button_unpin = { - name = "button_unpin" - visible = "[MemoriesWindow.IsPinned]" - - onclick = "[MemoriesWindow.TogglePinned]" - - tooltip = "MEMORIES_WINDOW_PIN_IT" - using = tooltip_se - } - } - } - - widget = { - datacontext = "[GetIllustration( 'character_private' )]" - layoutpolicy_horizontal = expanding - scissor = yes - size = { 0 260 } - - background = { - texture = "[Illustration.GetTexture( Character.MakeScope )]" - fittype = centercrop - alpha = 1 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - widget = { - allow_outside = no - size = { 220 260 } - - portrait_button = { - parentanchor = center - position = { 0 -5 } - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_council', 'camera_torso', 'chancellor', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - - using = portrait_base - - block "portrait_size" - { - size = { 400 285 } - } - - block "mask" { - mask = "gfx/portraits/portrait_mask_council.dds" - } - } - } - - vbox = { - margin_right = 20 - margin_bottom = 5 - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - text_multi = { - name = "memory_info_text" - text = "MEMORY_INFO" - elide = right - autoresize = yes - max_width = 380 - - margin_top = 20 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - visible = "[Character.IsDeadAndValid]" - margin = { 10 10 } - - expand = {} - - background = { - using = Background_Area_Dark - } - - vbox = { - layoutpolicy_vertical = expanding - - icon = { - name = "is_dead" - size = { 20 20 } - texture = "[Character.GetDeathReasonIcon]" - } - - expand = {} - } - - text_multi = { - text = "CHARACTER_DEAD_TOOLTIP" - align = left|nobaseline - autoresize = yes - max_width = 380 - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_standard = { - name = "sort_order" - size = { 25 25 } - - onclick = "[MemoriesWindow.ToggleListOrder]" - - tooltip = "MEMORY_SORT_ORDER_TOOLTIP" - using = tooltip_ne - - button_icon = { - alwaystransparent = yes - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - framesize = { 66 66 } - frame = "[BoolTo2And1( MemoriesWindow.IsListOrderDescending )]" - - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "paper_contract" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 5 - - using = Background_Letter_Default - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_bottom = 15 - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[MemoriesWindow.GetFilteredMemories]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 10 - - background = { - using = Background_Area - alpha = 0.4 - } - - watch_window_button = { - size = { 60 20 } - onclick = "[AddWatchWindow( CharacterMemory.MakeScope )]" - } - - vbox = { - layoutpolicy_vertical = expanding - - background = { - using = Background_Area - margin = { 5 5 } - } - - expand = {} - - icon = { - size = { 30 30 } - texture = "[CharacterMemory.GetType.GetIcon]" - alwaystransparent = yes - alpha = 0.7 - - tooltip = "[CharacterMemory.GetName|U]" - using = tooltip_ws - } - - expand = {} - } - - text_multi = { - text = "MEMORIES_WINDOW_ENTRY" - align = left|nobaseline - autoresize = yes - default_format = "#light_background" - elide = right - max_width = 440 - - using = Text_Light_Background_Overrides - } - - expand = {} - - text_single = { - alpha = 0.5 - text = "[CharacterMemory.GetCreationDate.GetString]" - size = { 200 0 } - align = right - elide = right - default_format = "#light_background" - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( MemoriesWindow.GetFilteredMemories )]" - text = "CHARACTER_HAS_NO_MEMORIES" - } - } - - icon = { - size = { 512 40 } - texture = "gfx/interface/skinned/window_letter/marginalia_divider.dds" - } - } - } - } - } -} diff --git a/N3OW/gui/window_menatarms.gui b/N3OW/gui/window_menatarms.gui deleted file mode 100644 index 64046ae6..00000000 --- a/N3OW/gui/window_menatarms.gui +++ /dev/null @@ -1,674 +0,0 @@ -###################################################### -################# MEN-AT-ARMS VIEW ################### -###################################################### - -window = { - name = "menatarms_view" - widgetid = "menatarms_view" - datacontext = "[MenAtArmsView.GetRegiment]" - datacontext = "[Regiment.GetMAAType]" - - size = { 400 200 } - parentanchor = top|right - position = { -630 120 } - movable = no - layer = middle - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = -630 - on_start = "[GetVariableSystem.Set( 'menatarms_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -580 - on_start = "[GetVariableSystem.Clear( 'menatarms_open' )]" - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 4 4 } - - state = { - name = "menatarms_refresh" - alpha = 0.5 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Regiment.GetNameNoTooltip]" - } - - blockoverride "button_close" - { - onclick = "[MenAtArmsView.Close]" - - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 0 } - min_width = 380 - - widget = { - layoutpolicy_horizontal = expanding - size = { 340 200 } - - vbox = { - background = { - name = "image" - datacontext = "[Regiment.GetMAAType]" - texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]" - fittype = centercrop - using = Mask_Rough_Edges - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - margin_left = 15 - spacing = 6 - - icon = { - size = { 40 40 } - texture = "[MenAtArmsType.GetIcon]" - } - - text_label_left = { - text = "[Regiment.BuildCurrentRegimentCountString]" - default_format = "#high" - using = Font_Size_Big - align = nobaseline - } - - expand = {} - - text_label_right = { - text = "MAA_CURRENT_SIZE" - default_format = "#high" - using = Font_Size_Big - align = nobaseline - } - - spacer = { - size = {8 0} - } - } - } - } - - ### Soldiers - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 10 } - spacing = 3 - - background = { - using = Background_Area - margin = { 5 5 } - } - - vbox = { - name = "soldiers" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - spacing = 3 - - button_primary = { - layoutpolicy_horizontal = expanding - - onclick = "[MenAtArmsView.BuyMaa]" - enabled = "[MenAtArmsView.CanBuyMaa]" - - visible = "[NotEqualTo_int32( Regiment.GetMAAChunkCount, Regiment.CalcMaxMAAChunkCount )]" - - tooltipwidget = { - change_maa_tooltip = { - - blockoverride "enable_tooltip" { - visible = "[MenAtArmsView.CanBuyMaa]" - } - - blockoverride "enable_tooltip_text" { - text = "[MenAtArmsView.GetIncreaseSizeTooltip]" - } - - blockoverride "disable_tooltip" { - visible = "[Not(MenAtArmsView.CanBuyMaa)]" - } - - blockoverride "disable_tooltip_text" { - text = "[MenAtArmsView.GetIncreaseSizeBlockers]" - } - } - } - - hbox = { - margin = { 10 0 } - spacing = 5 - - icon = { - texture = "gfx/interface/icons/icon_trend_arrow.dds" - framesize = { 22 22 } - } - - text_single = { - text = "MAA_INCREASE_SIZE" - align = nobaseline - default_format = "#high" - } - - expand = {} - - text_single = { - text = "MAA_SIZE_CHANGE" - align = nobaseline - default_format = "#high" - } - } - } - - text_single = { - name = "max_size_text" - layoutpolicy_horizontal = expanding - visible = "[EqualTo_int32( Regiment.GetMAAChunkCount, Regiment.CalcMaxMAAChunkCount )]" - margin = { 10 6 } - - using = Background_Area - - text = "MAA_AT_MAX_SIZE" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - button_standard = { - visible = "[GreaterThan_int32(Regiment.GetMAAChunkCount, '(int32)1')]" - layoutpolicy_horizontal = expanding - enabled = "[MenAtArmsView.CanSellMaa]" - onclick = "[MenAtArmsView.SellMaa]" - - tooltipwidget = { - change_maa_tooltip = { - - blockoverride "enable_tooltip" { - visible = "[MenAtArmsView.CanSellMaa]" - } - - blockoverride "enable_tooltip_text" { - text = "[MenAtArmsView.GetDecreaseSizeTooltip]" - } - - blockoverride "disable_tooltip" { - visible = "[Not(MenAtArmsView.CanSellMaa)]" - } - - blockoverride "disable_tooltip_text" { - text = "[MenAtArmsView.GetReduceSizeBlockers]" - } - } - } - - hbox = { - margin = { 10 0 } - spacing = 5 - - icon = { - texture = "gfx/interface/icons/icon_trend_arrow.dds" - framesize = { 22 22 } - frame = 2 - } - - text_single = { - text = "MAA_DECREASE_SIZE" - align = nobaseline - } - - expand = {} - } - } - } - } - - button_round = { - enabled = "[MenAtArmsView.CanDestroyMaa]" - onclick = "[MenAtArmsView.DestroyMaaRegiment]" - - tooltipwidget = { - change_maa_tooltip = { - blockoverride "enable_tooltip" { - visible = "[MenAtArmsView.CanSellMaa]" - } - - blockoverride "enable_tooltip_text" { - text = "MAA_DESTROY_TOOLTIP" - } - - blockoverride "disable_tooltip" { - visible = "[Not(MenAtArmsView.CanSellMaa)]" - } - - blockoverride "disable_tooltip_text" { - text = "[MenAtArmsView.GetReduceSizeBlockers]" - } - } - } - - tooltip = "MAA_DESTROY_TOOLTIP" - - button_cancel = { - parentanchor = center - alwaystransparent = yes - } - } - - } - - hbox_maa_location = { - name = "maa_location" - layoutpolicy_horizontal = expanding - - margin = { 15 0 } - margin_top = 10 - - blockoverride "no_location" - { - change_men_at_arms_origin_button = {} - } - - blockoverride "current_location" - { - change_men_at_arms_origin_button = { - button_ignore = none - onrightclick = "[MenAtArmsView.RemoveOriginProvince]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 15 - spacing = 5 - - ### INFO TEXT - hbox = { - visible = "[Not( Regiment.IsAtFullStength )]" - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_multi = { - visible = "[And( Not(Regiment.IsAtFullStength), Not( GetPlayer.GetGovernment.HasRule( 'conditional_maa_refill' )))]" - text = "MAA_REINFORCING" - align = left - max_width = 380 - autoresize = yes - } - - text_multi = { - visible = "[GetPlayer.GetGovernment.HasRule( 'conditional_maa_refill' )]" - text = "CONDITIONAL_MAINTENANCE_INFO" - align = left - max_width = 380 - autoresize = yes - } - - expand = {} - } - - hbox = { - visible = "[Regiment.IsAtFullStength]" - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_single = { - visible = "[And(Regiment.IsAtFullStength, Regiment.IsRaised)]" - text = "MAA_RAISED" - align = right - max_width = 200 - } - - text_single = { - visible = "[And(Regiment.IsAtFullStength, Not( Regiment.IsRaised ) )]" - text = "MAA_UNRAISED" - align = right - max_width = 200 - } - - expand = {} - } - - hbox = { - visible = "[Not( GetPlayer.GetGovernment.HasRule( 'conditional_maa_refill' ))]" - layoutpolicy_horizontal = expanding - spacing = 10 - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Not(Regiment.IsAtFullStength)]" - text = "MAA_REINFORCEMENT" - align = left|nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[And(Regiment.IsAtFullStength, Regiment.IsRaised)]" - text = "MAA_RAISED_MAINTENTANCE" - align = left|nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[And(Regiment.IsAtFullStength, Not( Regiment.IsRaised ) )]" - text = "MAA_UNRAISED_MAINTENANCE" - align = left|nobaseline - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_REINFORCEMENT_COST_ENTRY" - max_width = 390 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "MAA_MAINTENANCE" - max_width = 390 - } - - text_single = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - layoutpolicy_horizontal = expanding - - text = "[Regiment.GetProvisionsCostString]" - max_width = 390 - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox_maa_active_regiment_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - margin = { 15 5 } - margin_bottom = 10 - max_width = 380 - text = "[MenAtArmsType.GetFlavorString]" - autoresize = yes - } - - expand = {} - } - } - - expand = {} - } - } -} - -types MenAtArmsTypes -{ - type change_action_maa_text = hbox { - layoutpolicy_horizontal = expanding - text_multi = { - block "text_visibility" { - visible = no - } - max_width = 390 - block "text_content" {} - autoresize = yes - } - } - - type change_maa_tooltip = widget { - alwaystransparent = no - - widget = { - name = "background" - size = { 100% 100% } - using = DefaultTooltipBackground - alwaystransparent = no - } - - hbox = { - set_parent_size_to_minimum = yes - layoutpolicy_horizontal = expanding - - change_action_maa_text = { - blockoverride "text_visibility" { - margin = { 15 5 } - margin_bottom = 10 - - block "enable_tooltip" {} - } - - blockoverride "text_content" { - block "enable_tooltip_text" { } - } - } - - change_action_maa_text = { - blockoverride "text_visibility" { - block "disable_tooltip" {} - } - - blockoverride "text_content" { - margin = { 15 15 } - margin_bottom = 20 - margin_left = 10 - - block "disable_tooltip_text" {} - } - } - } - } - - type change_men_at_arms_origin_button = button_round - { - onclick = "[MenAtArmsView.OpenOriginProvinceSelect]" - enabled = "[MenAtArmsView.CanChangeOriginProvince]" - tooltip = "[MenAtArmsView.GetCanChangeOriginProvinceTooltip]" - - button_change = { - parentanchor = center - alwaystransparent = yes - } - } - - # Requires Regiment and Men at Arms data contexts - type vbox_maa_active_regiment_stats_numbers = vbox_maa_stats_numbers_base - { - datacontext = "[Regiment.GetOriginProvince]" - datacontext = "[Regiment.GetOwningTitle]" - } - - ### Brief: vbox_maa_province_stats_numbers - # Widget for showing the men at arms stationed in a province. - # - # Requires datacontexts: - # MenAtArmsType: - # The type of men at arms we are looking at - # - # Province: - # The province the men at arms are stationed in. If not - # stationed use null object - # - # Title: - # The Landed Title these men at arms are owned by, if any. - # If Personal MAAs, this should be the null object. - # - type vbox_maa_province_stats_numbers = vbox_maa_stats_numbers_base - { - blockoverride "stat_spacing" - { - spacing = 5 - } - blockoverride "siege_stat" - { - text = "REGIMENT_PROVINCE_SIEGE" - } - blockoverride "siege_tt" - { - tooltip = "REGIMENT_PROVINCE_SIEGE_TT" - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetProvinceStat( GetPlayer, Province.Self, Title.Self, 'siege_value' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "siege_effective_level" - { - # Hide effective level it is shown later anyway - } - blockoverride "damage_stat" - { - text = "REGIMENT_PROVINCE_DAMAGE" - } - blockoverride "damage_tt" - { - tooltip = "REGIMENT_PROVINCE_DAMAGE_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetProvinceStat( GetPlayer, Province.Self, Title.Self, 'damage' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "toughness_stat" - { - text = "REGIMENT_PROVINCE_TOUGHNESS" - } - blockoverride "toughness_tt" - { - tooltip = "REGIMENT_PROVINCE_TOUGHNESS_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetProvinceStat( GetPlayer, Province.Self, Title.Self, 'toughness' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "pursuit_stat" - { - text = "REGIMENT_PROVINCE_PURSUIT" - } - blockoverride "pursuit_tt" - { - tooltip = "REGIMENT_PROVINCE_PURSUIT_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetProvinceStat( GetPlayer, Province.Self, Title.Self, 'pursuit' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "screen_stat" - { - text = "REGIMENT_PROVINCE_SCREEN" - } - blockoverride "screen_tt" - { - tooltip = "REGIMENT_PROVINCE_SCREEN_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetProvinceStat( GetPlayer, Province.Self, Title.Self, 'screen' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - blockoverride "stat_icon_size" - { - size = { 25 25 } - } - } - - type hbox_maa_location = hbox - { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - datacontext = "[Regiment.GetOriginProvince]" - datacontext = "[Regiment.GetOwningTitle]" - - hbox = { - layoutpolicy_horizontal = expanding - name = "maa_no_location" - spacing = 8 - visible = "[And( Not( Province.IsValid ), Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )) )]" - - - text_multi = { - text = "REGIMENT_NO_ORIGIN_LOCATION" - default_format = "#weak" - autoresize = yes - } - expand = {} - - block "no_location" - { - } - } - - hbox = { - name = "maa_current_location" - spacing = 10 - - visible = "[Province.IsValid]" - - coa_title_small = { - datacontext = "[Province.GetTitle]" - } - - vbox = { - name = "location_data" - spacing = 3 - - text_single = { - layoutpolicy_horizontal = expanding - text = "REGIMENT_ORIGIN_LOCATION" - } - - vbox_maa_province_stats_numbers = { - name = "location_stat_impact" - layoutpolicy_horizontal = expanding - } - } - - block "current_location" - { - } - } - - expand = {} - } -} diff --git a/N3OW/gui/window_menatarms_type_view.gui b/N3OW/gui/window_menatarms_type_view.gui deleted file mode 100644 index 92c5e162..00000000 --- a/N3OW/gui/window_menatarms_type_view.gui +++ /dev/null @@ -1,884 +0,0 @@ - -###################################################### -################# ADD MEN-AT-ARMS #################### -###################################################### - -window = { - name = "menatarmstype_view" - parentanchor = top|right - position = { -610 70 } - size = { 470 880 } - movable = no - layer = middle - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = -610 - on_start = "[GetVariableSystem.Set( 'menatarms_details_open', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_x = -580 - on_start = "[GetVariableSystem.Clear( 'menatarms_details_open' )]" - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - state = { - name = "menatarms_details_refresh" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - header_pattern = { - layoutpolicy_horizontal = expanding - blockoverride "header_text" - { - text = "[MenAtArmsTypeView.GetTitle]" - - } - - blockoverride "button_close" - { - onclick = "[MenAtArmsTypeView.Close]" - - } - } - - scrollbox = { - name = "attending_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 430 0 } - maximumsize = { -1 340 } - autoresizescrollarea = yes - - blockoverride "scrollbox_content" - { - vbox = { - name = "types_grid" - datamodel = "[MenAtArmsTypeView.GetMenAtArmsTypes]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard = { - name = "select" - datacontext = "[MenAtArmsTypeViewTypeItem.GetMenAtArmsType]" - layoutpolicy_horizontal = expanding - size = { 0 42 } - - down = "[MenAtArmsTypeViewTypeItem.IsSelected]" - - hbox = { - margin = { 10 0 } - spacing = 10 - - highlight_icon = { - name = "men_at_arms_icon" - size = { 35 35 } - texture = "[MenAtArmsType.GetIcon]" - } - - text_single = { - name = "men_at_arms_name" - layoutpolicy_horizontal = expanding - text = "[MenAtArmsType.GetNameNoTooltip]" - default_format = "#high" - } - - text_single = { - name = "men_at_arms_cost" - text = "[Select_CString( MenAtArmsTypeView.GetSelectedTitle.IsValid, MenAtArmsType.GetTitleRegimentCostString( GetPlayer ), MenAtArmsType.GetCostString( GetPlayer ) )]" - default_format = "#high" - - tooltip = "[MenAtArmsTypeViewTypeItem.GetCreateWarning]" - tooltip_visible = "[Not(MenAtArmsTypeViewTypeItem.CanCreate)]" - - background = { - visible = "[Not(MenAtArmsTypeViewTypeItem.CanCreate)]" - - using = Status_Bad - } - } - } - - button_normal = { - visible = "[Not(MenAtArmsTypeView.IsAnyMenAtArmsTypeSelected)]" - size = { 100% 100% } - onclick = "[MenAtArmsTypeViewTypeItem.OnClick]" - } - - button_normal = { - visible = "[MenAtArmsTypeView.IsAnyMenAtArmsTypeSelected]" - size = { 100% 100% } - onclick = "[PdxGuiTriggerAllAnimations('add_maa_change')]" - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[MenAtArmsTypeViewTypeItem.OnClick]" - } - } - } - } - } - } - } - - widget = { - name = "selected_maa" - datacontext = "[MenAtArmsTypeView.GetSelectedMenAtArmsType]" - visible = "[MenAtArmsTypeView.IsAnyMenAtArmsTypeSelected]" - layoutpolicy_horizontal = expanding - size = { 0 0 } - scissor = yes - - widget = { - visible = "[MenAtArmsTypeView.IsAnyMenAtArmsTypeSelected]" - parentanchor = bottom - size = { 100% 250 } - - background = { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - alpha = 0.8 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - } - - state = { - name = _show - duration = 0.2 - - animation = { - size = { 0 540 } - bezier = { 0 0.5 0.5 1 } - } - - animation = { - alpha = 1 - bezier = { 0.5 0 1 0.5 } - } - } - - state = { - name = _hide - size = { 0 0 } - alpha = 0 - } - - state = { - name = "add_maa_change" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - widget = { - size = { 100% 100% } - - state = { - name = "add_maa_change" - next = "b" - position_x = 200 - duration = 0.2 - using = Animation_Transition_Start - } - - state = { - name = "b" - next = "c" - position_x = -200 - duration = 0 - } - - state = { - name = "c" - position_x = -0 - duration = 0.2 - using = Animation_Transition_End - } - - vbox = { - maa_regiment_info = { - layoutpolicy_horizontal = expanding - } - - spacer = { - size = { 10 46 } - } - - text_label_center = { - visible = "[And( Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )), Not( MenAtArmsTypeView.IsUsingHorde ))]" - text = "MV_REGIMENT_START_SIZE" - max_width = 400 - } - - text_label_center = { - visible = "[GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )]" - text = "MV_REGIMENT_START_SIZE_ADVENTURER" - max_width = 400 - } - - text_label_center = { - visible = "[MenAtArmsTypeView.IsUsingHorde]" - text = "MV_REGIMENT_START_SIZE_NOMAD" - max_width = 400 - } - - spacer = { - size = { 10 10 } - } - - button_primary = { - size = { 200 40 } - text = "[MenAtArmsTypeView.GetCostString( GetPlayer )]" - onclick = "[MenAtArmsTypeView.Create]" - enabled = "[MenAtArmsTypeView.CanCreate]" - tooltip = "MEN_AT_ARMS_CAN_CREATE_TOOLTIP" - - background = { - using = Background_Area - } - } - - spacer = { - size = { 10 10 } - } - } - } - } - } - - coa_title_small = { - datacontext = "[MenAtArmsTypeView.GetSelectedTitle]" - visible = "[Title.IsValid]" - - position = { 0 -20 } - parentanchor = hcenter - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types MenAtArms -{ - ### Brief: vbox_maa_stats_numbers_base - # Base widget for men at arms. - # - # Requires datacontexts: - # MenAtArmsType: - # The type of men at arms we are looking at - # - # Province: - # The province the men at arms are stationed in. If not - # stationed use null object - # - # Title: - # The Landed Title these men at arms are owned by, if any. - # If Personal MAAs, this should be the null object. - # - type vbox_maa_stats_numbers_base = vbox { - vbox = { - visible = "[Not( MenAtArmsType.FightsInMainPhase )]" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 5 - - background = { - using = Background_Area - margin = { 3 3 } - margin_right = 7 - } - - hbox = { - layoutpolicy_horizontal = expanding - block "siege_tt" - { - tooltip = "REGIMENT_SIEGE_TT" - } - using = tooltip_se - spacing = 3 - margin_left = -5 - - icon = { - block "siege_icon_size" - { - size = { 55 55 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_siege_progress.dds" - } - - text_single = { - block "siege_stat" - { - text = "REGIMENT_SIEGE" - } - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - - expand = {} - } - - block "siege_effective_level" - { - text_single = { - layoutpolicy_horizontal = expanding - name = "siege_tier" - text = "REGIMENT_SIEGE_MAX_FORT_LEVEL" - align = left - } - } - } - - hbox = { - name = "stats" - visible = "[MenAtArmsType.FightsInMainPhase]" - layoutpolicy_horizontal = expanding - margin = { 5 0 } - margin_top = 5 - - block "stat_spacing" - { - } - - hbox = { - block "damage_tt" - { - tooltip = "REGIMENT_DAMAGE_TT" - } - using = tooltip_se - spacing = 3 - - icon = { - name = "icon" - block "stat_icon_size" - { - size = { 40 40 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_damage.dds" - } - - text_single = { - name = "label" - block "damage_stat" - { - text = "[MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'damage' )|0]" - } - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - } - - hbox = { - block "toughness_tt" - { - tooltip = "REGIMENT_TOUGHNESS_TT" - } - using = tooltip_se - spacing = 3 - - icon = { - name = "icon" - block "stat_icon_size" - { - size = { 40 40 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_toughness.dds" - } - - text_single = { - name = "label" - block "toughness_stat" - { - text = "[MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'toughness' )|0]" - } - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - } - - hbox = { - block "pursuit_tt" - { - tooltip = "REGIMENT_PURSUIT_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'pursuit' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - using = tooltip_se - spacing = 3 - - - icon = { - name = "icon" - block "stat_icon_size" - { - size = { 40 40 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_pursuit.dds" - } - - text_single = { - name = "label" - block "pursuit_stat" - { - text = "[MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'pursuit' )|0]" - } - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - } - - hbox = { - block "screen_tt" - { - tooltip = "REGIMENT_SCREEN_TT" - # fade out if 0 - alpha = "[Select_float(GreaterThan_CFixedPoint(MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'screen' ),'(CFixedPoint)0'), '(float)1.0','(float)0.4')]" - } - using = tooltip_se - spacing = 3 - - icon = { - name = "icon" - block "stat_icon_size" - { - size = { 40 40 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_screen.dds" - } - - text_single = { - name = "label" - block "screen_stat" - { - text = "[MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'screen' )|0]" - } - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - } - - hbox = { - visible = "[GreaterThan_CFixedPoint(MenAtArmsType.GetStat(GetPlayer, Province.Self, Title.Self, 'siege_value'), '(CFixedPoint)0')]" - block "siege_tt" - { - tooltip = "REGIMENT_SIEGE_TT" - } - using = tooltip_se - spacing = 3 - margin_right = 5 - - icon = { - block "siege_icon_size" - { - size = { 40 40 } - } - texture = "gfx/interface/icons/regimenttypes/unit_stat_siege_progress.dds" - } - - text_single = { - block "siege_stat" - { - text = "[MenAtArmsType.GetStat( GetPlayer, Province.Self, Title.Self, 'siege_value' )|1]" - } - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - min_width = 25 - } - } - } - } - - # Requires MenAtArmsType data context - type vbox_maa_stats_numbers = vbox_maa_stats_numbers_base - { - datacontext = "[GetNullProvince]" - datacontext = "[GetNullLandedTitle]" - } - - type hbox_maa_type_text = hbox { - margin = { 15 0 } - margin_top = 10 - spacing = 5 - - text_single = { - name = "type" - text = "MEN_AT_ARMS_TYPE_NAME" - align = nobaseline - } - - expand = {} - - } - - type vbox_maa_stats = vbox { - margin_bottom = 10 - - background = { - using = Background_Area_With_Header - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - text_single = { - name = "title" - text = "[MenAtArmsType.GetNameNoTooltip]" - using = Font_Size_Medium - max_width = 250 - } - - expand = {} - - hbox = { - tooltip = "MV_CREATE_REGIMENT_MAX_SIZE_TT" - using = tooltip_ne - - icon = { - name = "icon_maa" - texture = [MenAtArmsType.GetIcon] - size = { 30 30 } - } - - text_single = { - name = "soldier count" - text = "MV_CREATE_REGIMENT_SIZE" - max_width = 150 - } - } - } - - vbox_maa_stats_numbers = { - layoutpolicy_horizontal = expanding - } - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - block "type_text" - { - hbox_maa_type_text = { - layoutpolicy_horizontal = expanding - } - } - } - - type vbox_maa_info = vbox { - margin = { 15 0 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = growing - - text_multi = { - name = "counters" - visible = "[MenAtArmsType.FightsInMainPhase]" - layoutpolicy_horizontal = growing - autoresize = yes - max_width = 320 - text = "MAA_COUNTERS_LABEL" - } - expand = {} - } - - - - hbox = { - name = "terrain_grid" - visible = "[Not(IsDataModelEmpty(MenAtArmsType.GetTerrainModifiers))]" - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 5 - - text_single = { - name = "terrain_label" - visible = "[Not(IsDataModelEmpty(MenAtArmsType.GetTerrainModifiers))]" - layoutpolicy_horizontal = expanding - text = "REGIMENT_TERRAIN_BONUS_HEADER" - max_width = 250 - } - - fixedgridbox = { - datamodel = "[MenAtArmsType.GetTerrainModifiers]" - addrow = 45 - addcolumn = 40 - datamodel_wrap = 8 - maxhorizontalslots = 8 - maxverticalslots = 2 - flipdirection = yes - - item = { - icon = { - name = "icon" - size = { 40 40 } - texture = "[RegimentTerrainModifier.GetTerrain.GetIcon]" - - tooltip = "REGIMENT_TERRAIN_MODIFIER_TOOLTIP" - using = tooltip_below - - icon = { - visible = "[Not( RegimentTerrainModifier.IsPositive )]" - parentanchor = bottom|right - position = { 0 5 } - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - } - - icon = { - visible = "[RegimentTerrainModifier.IsPositive]" - parentanchor = bottom|right - position = { 0 5 } - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - } - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - - text_single = { - name = "winter_label" - layoutpolicy_horizontal = expanding - text = "REGIMENT_WINTER_EFFECT_HEADER" - visible = "[MenAtArmsType.HasWinterHarshModifier]" - max_width = 150 - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[MenAtArmsType.HasWinterHarshModifier]" - - maa_winter_effects_positive_icon = { # Positive Harsh Winter Effects - blockoverride "maa_has_winter_modifier" { - visible = "[MenAtArmsType.HasWinterHarshModifier]" - } - blockoverride "maa_has_winter_effect" { - visible = "[MenAtArmsType.GetWinterHarshModifier.IsPositive]" - texture = "gfx/interface/icons/terrain_types/winter_harsh.dds" - tooltip = "REGIMENT_WINTER_HARSH_MODIFIER_TOOLTIP" - } - } - - maa_winter_effects_positive_icon = { # Positive Normal Winter Effects - blockoverride "maa_has_winter_modifier" { - visible = "[MenAtArmsType.HasWinterNormalModifier]" - } - blockoverride "maa_has_winter_effect" { - visible = "[MenAtArmsType.GetWinterNormalModifier.IsPositive]" - texture = "gfx/interface/icons/terrain_types/winter_normal.dds" - tooltip = "REGIMENT_WINTER_NORMAL_MODIFIER_TOOLTIP" - } - } - - maa_winter_effects_negative_icon = { # Negative Harsh Winter Effects - blockoverride "maa_has_winter_modifier" { - visible = "[MenAtArmsType.HasWinterHarshModifier]" - } - blockoverride "maa_has_winter_effect" { - visible = "[Not( MenAtArmsType.GetWinterHarshModifier.IsPositive )]" - texture = "gfx/interface/icons/terrain_types/winter_harsh.dds" - tooltip = "REGIMENT_WINTER_HARSH_MODIFIER_TOOLTIP" - } - } - - maa_winter_effects_negative_icon = { # Negative Normal Winter Effects - blockoverride "maa_has_winter_modifier" { - visible = "[MenAtArmsType.HasWinterNormalModifier]" - } - blockoverride "maa_has_winter_effect" { - visible = "[Not( MenAtArmsType.GetWinterNormalModifier.IsPositive )]" - texture = "gfx/interface/icons/terrain_types/winter_normal.dds" - tooltip = "REGIMENT_WINTER_NORMAL_MODIFIER_TOOLTIP" - } - } - expand = {} - } - - expand = {} - } - } - - text_single = { - name = "holding_label" - visible = "[Not(IsDataModelEmpty(MenAtArmsType.GetHoldingModifiers))]" - layoutpolicy_horizontal = expanding - text = "REGIMENT_HOLDING_BONUS_HEADER" - } - - hbox = { - visible = "[Not(IsDataModelEmpty(MenAtArmsType.GetHoldingModifiers))]" - layoutpolicy_horizontal = expanding - - hbox = { - name = "holding_grid" - datamodel = "[MenAtArmsType.GetHoldingModifiers]" - spacing = 5 - - item = { - icon_flat_standard = { - name = "icon" - size = { 40 40 } - texture = "[RegimentHoldingModifier.GetHolding.GetPrimaryBuildingType.GetTypeIcon]" - tooltip = "REGIMENT_HOLDING_MODIFIER_TOOLTIP" - using = tooltip_below - - icon = { - visible = "[Not( RegimentHoldingModifier.IsPositive )]" - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - parentanchor = bottom|right - position = { 0 5 } - size = { 25 25 } - } - - icon = { - visible = "[RegimentHoldingModifier.IsPositive]" - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - parentanchor = bottom|right - position = { 0 5 } - size = { 25 25 } - } - } - } - } - expand = {} - } - } - - type maa_regiment_info = widget { - # Needs a MenAtArmsType Datacontext - size = { 380 410 } - allow_outside = yes - - vbox = { - spacing = 5 - - vbox_maa_stats = { - layoutpolicy_horizontal = expanding - } - - vbox_maa_info = { - layoutpolicy_horizontal = expanding - } - - text_multi = { - layoutpolicy_horizontal = expanding - size = { 0 75 } - text = "[MenAtArmsType.GetFlavorString]" - margin = { 15 5 } - max_width = 430 - } - - expand = {} - - vbox = { - margin_bottom = 15 - - text_label_center = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - text = "[MenAtArmsType.GetProvisionsCostString]" - max_width = 400 - } - - text_label_center = { - visible = "[Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ))]" - text = "[Select_CString( MenAtArmsTypeView.GetSelectedTitle.IsValid, MenAtArmsType.GetTitleRegimentReinforcementCostString( GetPlayer ), MenAtArmsType.GetReinforcementCostString( GetPlayer ) )]" - max_width = 400 - } - - text_label_center = { - visible = "[Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ))]" - text = "[Select_CString( MenAtArmsTypeView.GetSelectedTitle.IsValid, MenAtArmsType.GetTitleRegimentFullStrengthMaintenanceCostForPlayerString, MenAtArmsType.GetFullStrengthMaintenanceCostForPlayerString )]" - max_width = 400 - } - } - } - } - - type maa_winter_effects_icon = hbox { - block "maa_has_winter_modifier" {} - icon = { - block "maa_has_winter_effect" {} - size = { 40 40 } - using = tooltip_below - - icon = { - block "maa_winter_modifier_icon" {} - parentanchor = bottom|right - position = { 0 5 } - size = { 25 25 } - } - } - } - - type maa_winter_effects_positive_icon = maa_winter_effects_icon { - blockoverride "maa_winter_modifier_icon" { - texture = "gfx/interface/icons/symbols/icon_plus_small.dds" - } - } - - type maa_winter_effects_negative_icon = maa_winter_effects_icon { - blockoverride "maa_winter_modifier_icon" { - texture = "gfx/interface/icons/symbols/icon_minus_small.dds" - } - } - -} diff --git a/N3OW/gui/window_message_popup.gui b/N3OW/gui/window_message_popup.gui deleted file mode 100644 index ba202752..00000000 --- a/N3OW/gui/window_message_popup.gui +++ /dev/null @@ -1,192 +0,0 @@ -window = { - name = "window_message_popup" - parentanchor = hcenter|top - position = { 0 200 } - minimumsize = { 508 420 } - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - datacontext = "[MessagePopup.GetMessage]" - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - hbox = { - icon = { - name = "message_type" - size = { 48 48 } - texture = "[PlayerMessageItem.GetType.GetIcon]" - tooltip = "[PlayerMessageItem.GetTooltip]" - using = tooltip_ws - } - expand = {} - } - - blockoverride "header_text" - { - text = "[PlayerMessageItem.GetTitle]" - } - - blockoverride "extra_buttons" - { - button_menu = { - onclick = "[ToggleGameViewData('message_settings', PlayerMessageItem.GetType)]" - tooltip = "MESSAGE_SETTINGS_WINDOW_SHORTCUT_TT" - using = tooltip_se - } - } - - blockoverride "button_close" - { - onclick = "[MessagePopup.Close]" - } - } - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - visible = no - name = "date" - text = "[PlayerMessageItem.GetDate.GetStringShortNoYear]" - align = nobaseline - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - vbox = { - hbox = { - portrait_head_small = { - name = "portrait_left" - datacontext = "[PlayerMessageItem.GetLeftCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_left" - datacontext = "[PlayerMessageItem.GetLeftDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_left" - datacontext = "[PlayerMessageItem.GetLeftHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_left" - datacontext = "[PlayerMessageItem.GetLeftTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_left" - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - } - - portrait_head_small = { - name = "portrait_right" - datacontext = "[PlayerMessageItem.GetRightCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_right" - datacontext = "[PlayerMessageItem.GetRightDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_right" - datacontext = "[PlayerMessageItem.GetRightHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_right" - datacontext = "[PlayerMessageItem.GetRightTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - } - } - } - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - text_single = { - name = "date" - text = "[PlayerMessageItem.GetArrivalDate.GetStringLong]" - default_format = "#weak" - align = nobaseline - - margin = { 20 0 } - layoutpolicy_horizontal = expanding - expand = {} - } - - text_multi = { - name = "text" - size = { 0 164 } - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 20 10 } - text = "[PlayerMessageItem.GetDescription]" - elide = right - - background = { - margin = { -5 0 } - using = Background_Area - } - } - } - expand = {} - } - } - - vbox = { - margin = { 0 10 } - button_primary = { - name = "apply_button" - size = { 155 33 } - - text = "CONFIRM" - onclick = "[MessagePopup.Close]" - tooltip = "MESSAGE_SETTINGS_WINDOW_CLOSE_POPUP" - using = tooltip_ne - } - } - } - } -} diff --git a/N3OW/gui/window_message_settings.gui b/N3OW/gui/window_message_settings.gui deleted file mode 100644 index e28dc045..00000000 --- a/N3OW/gui/window_message_settings.gui +++ /dev/null @@ -1,832 +0,0 @@ -window = { - datacontext = "[MessageSettingsWindow.GetCustomMessageWindow]" - name = "window_message_settings" - parentanchor = center - size = { 690 800 } - - allow_outside = yes - layer = middle - - using = Window_Size_MainTab - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.AddTab( 'settings' )]" - oncreate = "[PdxGuiTabs.AddTab( 'log' )]" - - vbox = { - using = Window_Margins - - ### Header ### - header_pattern = { - name = "header" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "MESSAGE_SETTINGS_WINDOW_NAME" - } - - blockoverride "extra_buttons" - { - button_outliner = { - size = { 30 30 } - - onclick = "[CustomMessageWindow.Toggle]" - tooltip = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_TT" - } - } - - blockoverride "button_close" - { - onclick = "[MessageSettingsWindow.CloseWithConfirmation]" - } - } - - hbox_tab_buttons = { - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'message_settings_tab' )]" - } - } - - ### SETTINGS TAB ### - vbox = { - visible = "[PdxGuiTabs.IsTabSet( 'settings' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### Column Heders ### - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 6 - margin_bottom = 3 - - hbox = { - min_width = 208 - max_width = 208 - margin_left = 20 - - layoutpolicy_horizontal = expanding - text_label_left = { - - text = "MESSAGE_SETTINGS_WINDOW_COLUMN_FILTER_TYPE" - tooltip = "MESSAGE_SETTINGS_WINDOW_COLUMN_FILTER_TYPE_TT" - using = tooltip_ne - } - expand = {} - } - - editbox_search_field = { - min_width = 190 - max_width = 190 - - blockoverride "editbox_properties" - { - text = "[MessageSettingsWindow.GetTextFilter]" - ontextedited = "[MessageSettingsWindow.OnEditTextFilter]" - } - } - - hbox = { - min_width = 130 - max_width = 130 - - layoutpolicy_horizontal = expanding - text_message_settings_column_header = { - - text = "MESSAGE_SETTINGS_WINDOW_COLUMN_APPEARANCE" - tooltip = "MESSAGE_SETTINGS_WINDOW_COLUMN_APPEARANCE_TT" - using = tooltip_ne - } - } - hbox = { - min_width = 30 - max_width = 30 - margin_right = 15 - - layoutpolicy_horizontal = expanding - text_message_settings_column_header = { - - text = "MESSAGE_SETTINGS_WINDOW_COLUMN_AUTO_PAUSE" - tooltip = "MESSAGE_SETTINGS_WINDOW_COLUMN_AUTO_PAUSE_TT" - using = tooltip_ne - } - } - } - - ### Message Groups and Filters List ### - scrollbox = { - name = "message_group_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "message_groups_container" - visible = "[MessageSettingsWindow.IsTextFilterEmpty]" - spacing = 2 - - layoutpolicy_horizontal = expanding - - datamodel = "[MessageSettingsWindow.GetMessageGroupItems]" - item = { - vbox_message_group_foldout = {} - } - } - vbox = { - name = "serach_text_filter_container" - visible = "[Not( MessageSettingsWindow.IsTextFilterEmpty )]" - spacing = 2 - - layoutpolicy_horizontal = expanding - - datamodel = "[MessageSettingsWindow.GetFilteredFilterItems]" - item = { - vbox_message_settings_filter_item = {} - } - } - } - blockoverride "scrollbox_expand" { - expand = {} - } - } - - expand = {} - - ### Footer ### - vbox = { - name = "footer" - margin = { 0 12 } - - hbox = { - spacing = 22 - - button_standard = { - name = "reset_settings_button" - - text = "MESSAGE_SETTINGS_WINDOW_RESET" - size = { 155 33 } - onclick = "[MessageSettingsWindow.ResetToDefault]" - tooltip = "MESSAGE_SETTINGS_WINDOW_RESET_TT" - using = tooltip_ne - } - - button_primary = { - name = "apply_settings_button" - - text = "MESSAGE_SETTINGS_WINDOW_APPLY" - size = { 155 33 } - onclick = "[MessageSettingsWindow.SaveAndClose]" - tooltip = "MESSAGE_SETTINGS_WINDOW_APPLY_TT" - using = tooltip_ne - } - } - } - } - - ### LOG TAB ### - scrollbox = { - visible = "[PdxGuiTabs.IsTabSet( 'log' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background_fade" {} - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - fixedgridbox = { - addcolumn = 570 - addrow = 224 - setitemsizefromcell = yes - datamodel_wrap = 1 - flipdirection = yes - - datamodel = "[MessageSettingsWindow.GetMessageLogHistoryItems]" - item = { - widget_message_settings_log_history_item = {} - } - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - } - - expand = {} - } - - window_message_settings_custom = { - datacontext = "[MessageSettingsWindow.GetCustomMessageWindow]" - visible = "[CustomMessageWindow.IsVisible]" - } -} - -types MessageSettingsTypes { - type widget_message_settings_log_history_item = widget { - datacontext = "[MessageLogHistoryItem.GetMessage]" - max_height = 214 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Frame - } - - vbox = { - margin = { 2 0 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### PlayerMessageItem ### - hbox = { - margin = { 4 4 } - layoutpolicy_horizontal = expanding - - ### MESSAGE COLOR ### - background = { - name = "neutral" - visible = "[Or( PlayerMessageItem.GetType.IsNeutral, PlayerMessageItem.GetType.IsNone )]" - using = Feed_Message_Header - } - - background = { - name = "good" - visible = "[PlayerMessageItem.GetType.IsGood]" - using = Feed_Message_Header - tintcolor = { 0.767708 0.78125 0.3479 0.847656 } - } - - background = { - name = "bad" - visible = "[PlayerMessageItem.GetType.IsBad]" - using = Feed_Message_Header - tintcolor = { 0.949219 0.446105 0.330002 0.847656 } - } - - ### MESSAGE ICON ### - icon = { - size = { 32 32 } - - texture = "[PlayerMessageItem.GetType.GetIcon]" - tooltip = "[PlayerMessageItem.GetTooltip]" - using = tooltip_ws - } - - ### MESSAGE TITLE ### - text_single = { - margin_left = 6 - max_width = 360 - - using = Font_Size_Medium - - text = "[PlayerMessageItem.GetTitle]" - align = nobaseline - fontsize_min = 14 - } - - expand = {} - - text_single = { - margin_right = 10 - text = "[PlayerMessageItem.GetArrivalDate.GetStringShort]" - align = nobaseline - } - - ### MESSAGE SETTINGS SHORTCUT - widget = { - size = { 26 26 } - - allow_outside = yes - - button_menu = { - size = { 26 26 } - - onclick = "[ToggleGameViewData('message_settings', PlayerMessageItem.GetType.Self)]" - onclick = "[PdxGuiTabs.SetTabByKey( 'settings' )]" - tooltip = "MESSAGE_SETTINGS_WINDOW_SHORTCUT_TT" - using = tooltip_se - } - } - - ### MARK MESSAGE FOR DELETE - widget = { - size = { 26 26 } - - allow_outside = yes - - button_clear = { - size = { 26 26 } - - onclick = "[MessageLogHistoryItem.MarkToDelete]" - tooltip = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_DISCARD_TT" - using = tooltip_se - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area - } - - text_multi = { - margin = { 20 10 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[PlayerMessageItem.GetDescription]" - elide = right - } - - ### MESSAGE PORTRAITS ### - vbox = { - margin_right = 8 - margin_top = 5 - layoutpolicy_vertical = expanding - - hbox = { - portrait_head_small = { - name = "portrait_left" - datacontext = "[PlayerMessageItem.GetLeftCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_left" - datacontext = "[PlayerMessageItem.GetLeftDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_left" - datacontext = "[PlayerMessageItem.GetLeftHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_left" - datacontext = "[PlayerMessageItem.GetLeftTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_left" - datacontext = "[PlayerMessageItem.GetLeftArtifact]" - visible = "[Artifact.IsValid]" - } - - portrait_head_small = { - name = "portrait_right" - datacontext = "[PlayerMessageItem.GetRightCharacter]" - visible = "[Character.IsValid]" - } - - coa_dynasty_medium = { - name = "dynasty_right" - datacontext = "[PlayerMessageItem.GetRightDynasty]" - visible = "[Dynasty.IsValid]" - } - - coa_house_medium = { - name = "house_right" - datacontext = "[PlayerMessageItem.GetRightHouse]" - visible = "[DynastyHouse.IsValid]" - } - - coa_title_medium = { - name = "title_right" - datacontext = "[PlayerMessageItem.GetRightTitle]" - visible = "[Title.IsValid]" - } - - icon_artifact = { - name = "artifact_right" - datacontext = "[PlayerMessageItem.GetRightArtifact]" - visible = "[Artifact.IsValid]" - } - } - expand = {} - } - } - } - } - - type text_message_settings_column_header = text_single { - align = center|nobaseline - - background = { - margin_left = 40 - margin_right = 40 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - - type vbox_message_settings_filter_item = vbox { - layoutpolicy_horizontal = expanding - hbox = { - margin_left = 4 - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Characterlist - } - - text_single = { - default_format = "#medium" - align = left - margin_left = 0 - margin_right = 40 - margin_bottom = 5 - fontsize_min = 12 - max_width = 395 - - layoutpolicy_horizontal = expanding - - text = "[MessageFilterItem.GetName]" - - tooltip = "[MessageFilterItem.GetTooltip]" - using = tooltip_ne - } - - expand = {} - - dropdown_menu_standard = - { - blockoverride "dropdown_properties" - { - datamodel = "[MessageFilterItem.GetValidOptions]" - onselectionchanged = "[MessageFilterItem.OnSelectOption]" - selectedindex = "[MessageFilterItem.GetHoveredIndex]" - } - - blockoverride "dropdown_size" - { - size = { 150 32 } - } - - blockoverride "dropdown_list_maxsize" - { - maximumsize = { 141 200 } - } - - blockoverride "dropdown_active_item_properties" - { - text = "[NotificationOption.GetName|U]" - } - - blockoverride "dropdown_item_properties" - { - text = "[NotificationOption.GetName|U]" - } - } - - button_checkbox = { - name = "toggle_auto_pause" - - checked = "[MessageFilterItem.HasAutoPause]" - onclick = "[MessageFilterItem.ToggleAutoPause]" - tooltip = "MESSAGE_SETTINGS_WINDOW_TOGGLE_AUTO_PAUSE_TT" - } - } - expand = {} - } - - type vbox_message_group_foldout = vbox { - datacontext = "[MessageGroupItem.GetType]" - spacing = 4 - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[MessageGroupItem.GetGroupTitle]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "filters_in_group" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 575 - addrow = 34 - - datamodel = "[MessageGroupItem.GetFilterItems]" - item = { - vbox_message_settings_filter_item = {} - } - } - } - } - - type window_message_settings_custom = window { - name = "custom_message_window" - parentanchor = center - position = { 0 -80 } - size = { 400 510 } - - layer = confirmation - movable = yes - - using = Window_Background_Subwindow - - vbox = { - spacing = 15 - - layoutpolicy_vertical = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_TITLE" - } - - blockoverride "button_close" - { - onclick = "[CustomMessageWindow.Close]" - } - } - - editbox_standard_with_label = { - margin = { 30 0 } - - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_EDIT_TITLE" - } - - blockoverride "editbox_properties" - { - name = "custom_message" - - multiline = no - maxcharacters = 40 - focus_on_visible = yes - - text = "[CustomMessageWindow.GetTitle]" - ontextedited = "[CustomMessageWindow.OnEditTitle]" - } - } - - editbox_standard_with_label = { - margin = { 30 0 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "editbox_label" - { - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_EDIT_DESC" - } - - blockoverride "editbox_properties" - { - name = "custom_message" - - multiline = yes - - text = "[CustomMessageWindow.GetDescription]" - ontextedited = "[CustomMessageWindow.OnEditDescription]" - } - } - - hbox = { - name = "custom_message_date" - margin = { 30 0 } - - layoutpolicy_horizontal = expanding - - vbox = { - text_label_left = { - text = "[CustomMessageWindow.GetArrivalDate]" - } - } - - expand = {} - } - - hbox = { - spacing = 6 - - ### SET ARRIVAL DAYS - hbox = { - margin = { 2 0 } - spacing = 6 - layoutpolicy_horizontal = expanding - - button_round = { - size = { 24 24 } - - enabled = "[Not( CustomMessageWindow.MessageArrivesToday )]" - onclick = "[CustomMessageWindow.AddDays( '(int32)-1' )]" - - button_minus_small = { - name = "decrease_day" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "select_day" - - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_DAY" - - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 24 24 } - - onclick = "[CustomMessageWindow.AddDays( '(int32)1' )]" - - button_plus_small = { - name = "increase_day" - parentanchor = center - alwaystransparent = yes - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - ### SET ARRIVAL MONTHS - hbox = { - margin = { 2 0 } - spacing = 6 - layoutpolicy_horizontal = expanding - - button_round = { - size = { 24 24 } - - enabled = "[Not( CustomMessageWindow.MessageArrivesToday )]" - onclick = "[CustomMessageWindow.AddMonths( '(int32)-1' )]" - - button_minus_small = { - name = "decrease_month" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "select_month" - - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_MONTH" - - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 24 24 } - - onclick = "[CustomMessageWindow.AddMonths( '(int32)1' )]" - - button_plus_small = { - name = "increase_month" - parentanchor = center - alwaystransparent = yes - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - ### SET ARRIVAL YEARS - hbox = { - margin = { 2 0 } - spacing = 6 - layoutpolicy_horizontal = expanding - - button_round = { - size = { 24 24 } - - enabled = "[Not( CustomMessageWindow.MessageArrivesToday )]" - onclick = "[CustomMessageWindow.AddYears( '(int32)-1' )]" - - button_minus_small = { - name = "decrease_year" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "select_year" - - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_YEAR" - - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 24 24 } - - onclick = "[CustomMessageWindow.AddYears( '(int32)1' )]" - - button_plus_small = { - name = "increase_year" - parentanchor = center - alwaystransparent = yes - } - } - } - } - - hbox = { - name = "custom_message_buttons" - margin_top = 8 - spacing = 22 - - button_standard = { - name = "discard_custom_message" - size = { 155 33 } - - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_DISCARD" - - onclick = "[CustomMessageWindow.Reset]" - tooltip = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_DISCARD_TT" - using = tooltip_ne - } - - button_primary = { - name = "send_custom_message" - size = { 155 33 } - - text = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_SEND" - - onclick = "[CustomMessageWindow.SendMessage( GetPlayer, GetPlayer )]" - onclick = "[CustomMessageWindow.Toggle]" - tooltip = "MESSAGE_SETTINGS_WINDOW_CUSTOM_MESSAGE_SEND_TT" - using = tooltip_ne - } - } - - expand = {} - } - } -} diff --git a/N3OW/gui/window_migration.gui b/N3OW/gui/window_migration.gui deleted file mode 100644 index 86a20393..00000000 --- a/N3OW/gui/window_migration.gui +++ /dev/null @@ -1,1793 +0,0 @@ -###################################################### -#################### MIGRATION ####################### -###################################################### - -window = { - name = "window_migration" - widgetid = "window_migration" - datacontext = "[MigrationWindow.GetCharacterInteractionConfirmationWindow]" - size = { 100% 100% } - movable = no - alwaystransparent = yes - visible_at_creation = no - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - widget = { - size = { 600 140 } - - name = "location_selection_guide" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 16 16 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin = { 15 0 } - margin_top = 5 - margin_bottom = 10 - - background = { - texture = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds" - alpha = 0.2 - fittype = centercrop - mirror = horizontal - - margin_top = -40 - margin_right = -100 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 20 0 } - margin_top = 10 - margin_bottom = 15 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "MIGRATION_WINDOW_DESTINATION_SELECTION_HEADER" - default_format = "#T" - using = Font_Size_Big - max_width = 420 - align = left - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - name = "quit" - text = "QUIT" - min_width = 300 - - onclick = "[MigrationWindow.Close]" - tooltip = "CLOSE_LABEL" - shortcut = "close_window" - } - - expand = {} - } - } - } - - widget = { - parentanchor = bottom|right - position = { 0 -30 } - size = { 580 1000 } - layer = middle - alwaystransparent = no - visible_at_creation = no - visible = "[MigrationWindow.HasTarget]" - name = "window_migration_target" - widgetid = "window_migration_target" - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - datacontext = "[MigrationWindow.GetTargetTitle]" - - header_migration = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "MIGRATION_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[MigrationWindow.ClearTarget]" - } - - blockoverride "button_close_tooltip" - { - tooltip = "MIGRATION_WINDOW_UNSELECT_TOOLTIP" - } - - - } - - hbox = { - name = "involved_characters" - visible = "[MigrationWindow.HasValidSelection]" - - layoutpolicy_horizontal = expanding - margin_bottom = 8 - - text_label_center = { - text = "MIGRATION_WINDOW_INVOLVED_CHARACTERS" - } - - } - - hbox = { - visible = "[And(MigrationWindow.HasValidSelection, Character.IsValid)]" - datacontext = "[MigrationWindow.GetTopCharacter]" - - layoutpolicy_horizontal = expanding - - icon = { - name = "portrait section" - size = { 200 200 } - - using = Character_Background - - portrait_button = { - position = { 0 -30 } - size = { 200 240 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_hud', 'camera_torso', 'idle', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_body.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 200 200 } - - button = { - name = "name_plate" - - parentanchor = bottom - - position = { 10 -10 } - size = { 200 36 } - - using = Background_Letter_No_Frame - - alpha = 0.9 - - onclick = "[DefaultOnCharacterClick( Character.GetID )]" - - tooltipwidget = { - container_character_tooltip = {} - } - - text_multi = { - min_width = 144 - max_width = 144 - min_height = 34 - max_height = 34 - - position = { 30 1 } - - text = "[Character.GetShortUINameNoTooltip]" - default_format = "#light_background" - align = vcenter|nobaseline|center - using = Font_Size_Medium - using = Font_Type_Flavor - using = Text_Light_Background_Overrides - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 8 - - text_multi = { - text = "MIGRATION_WINDOW_NOMAD_INFO" - default_format = "#low;italic" - autoresize = yes - max_width = 254 - align = nobaseline - margin = { 2 0 } - } - - text_single = { - - text = "MIGRATION_WINDOW_CHARACTER_MILITARY_STRENGTH" - default_format = "#Weak" - align = nobaseline - } - - text_single = { - text = "MIGRATION_WINDOW_CHARACTER_COMBINED_MILITARY_STRENGTH" - default_format = "#Weak" - align = nobaseline - } - - button_standard = { - name = "see_all_nomads" - onclick = "[MigrationWindow.ToggleInvolvedCharacterListWindow]" - size = { 200 36 } - text = "MIGRATION_WINDOW_ALL_NOMADS_BUTTON" - } - - expand = {} - } - } - - vbox = { # Fertility info about the target title - name = "target_title" - layoutpolicy_horizontal = expanding - datacontext = "[MigrationWindow.GetTargetTitle]" - datacontext = "[MigrationWindow.GetSituation]" - datacontext = "[Title.GetPreferredCapital.GetCountyData]" - visible = "[Title.IsValid]" - - margin = { 10 15 } - - background = { - texture = "[County.GetCurrentPhaseType( Situation.Self ).GetIllustration]" - fittype = centercrop - alpha = 0.7 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/component_tiles/tile_dark_area_02.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - # County Fertility in potential migration domain - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - background = { - margin = { 10 15 } - using = Background_Area_Dark - using = Mask_Rough_Edges - alpha = 0.8 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - background = { - margin = { 10 15 } - using = Background_Area_Dark - using = Mask_Rough_Edges - alpha = 0.6 - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - coa_title_small_crown = { - visible = "[Title.IsValid]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { # Steppe Season - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_single = { - datacontext = "[MigrationWindow.GetDomainTitle]" - text = "MIGRATION_WINDOW_DOMAIN_FERTILITY" - autoresize = yes - align = left|nobaseline - max_width = 368 - } - - expand = {} - } - - hbox = { # Steppe Season - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - text_single = { - text = "MIGRATION_WINDOW_CAPITAL_SUBREGION_LOCATION" - align = left|nobaseline - max_width = 368 - } - - expand = {} - } - - hbox = { # Steppe Season - layoutpolicy_horizontal = expanding - margin = { 10 0 } - visible = "[County.GetCurrentPhaseType( Situation.Self ).IsValid]" - - text_single = { - text = "MIGRATION_WINDOW_STEPPE_SEASON_LABEL" - align = left|nobaseline - max_width = 184 - } - - text_single = { - margin = { 5 0 } - - text = "[County.GetCurrentPhaseType( Situation.Self ).GetName]" - default_format = "#high" - align = left|nobaseline - max_width = 184 - } - - expand = {} - } - - } - - expand = {} - } - - expand = {} - } - - expand = {} - } - - expand = {} - } - - spacer = { size = { 0 30 } } - - # Target Domain Fertility Progress Bar - hbox = { - datacontext = "[MigrationWindow.GetTargetDomainFertilityBar]" - layoutpolicy_horizontal = expanding - margin = { 55 5 } - margin_bottom = 15 - visible = "[County.GetCurrentPhaseType( Situation.Self ).IsValid]" - - fertility_bar = { - blockoverride "button_enabled" { - enabled = no - } - blockoverride "bar_tooltip" { - tooltip = "[MigrationWindow.GetTargetDomainFertilityTooltip]" - } - blockoverride "button_tooltip" { - tooltip = "[MigrationWindow.GetTargetDomainFertilityTooltip]" - } - blockoverride "grey_fertility_icon_visibility" { - visible = "[MigrationWindow.IsAverageTargetDomainFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.001' )]" - } - blockoverride "green_fertility_icon_visibility" { - visible = "[MigrationWindow.IsAverageTargetDomainFertilityBetween( '(CFixedPoint)0.6', '(CFixedPoint)1.1' )]" - } - blockoverride "yellow_fertility_icon_visibility" { - visible = "[MigrationWindow.IsAverageTargetDomainFertilityBetween( '(CFixedPoint)0.3', '(CFixedPoint)0.6' )]" - } - blockoverride "red_fertility_icon_visiblity" { - visible = "[MigrationWindow.IsAverageTargetDomainFertilityBetween( '(CFixedPoint)0.001', '(CFixedPoint)0.3' )]" - } - } - - expand = {} - } - } - - ### Other Effects - vbox = { - name = "other_effects_list" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - margin_top = 5 - spacing = 5 - - ### label - text_label_center = { - text = "MIGRATION_WINDOW_OTHER_EFFECTS_LABEL" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - ### List - vbox_character_interaction_effects_simple = { - datacontext = "[MigrationWindow.GetCustomMigrationEffects]" - layoutpolicy_horizontal = expanding - minimumsize = { -1 220 } - - blockoverride "visibility" - { - visible = "[InteractionEffectsDescription.HasRejectionEffect]" - } - } - - vbox_interaction_options = { - layoutpolicy_horizontal = expanding - blockoverride "checkbox_on_click" - { - onclick = "[MigrationWindow.RefreshEffects]" - } - } - - hbox_character_interaction_acceptance = { - layoutpolicy_horizontal = expanding - - } - } - - expand = { - visible = "[Not(CharacterInteractionConfirmationWindow.ShouldShowAnswer)]" - size = { 0 40 } - } - - text_multi_on_decline_summary = { - margin = { 10 5 } - max_width = 450 - } - - ### SEND BUTTON - button_primary = { - name = "send_button" - enabled = "[MigrationWindow.GetTargetTitle.IsValid]" - size = { 400 42 } - text = "[CharacterInteractionConfirmationWindow.GetSendName]" - onclick = "[MigrationWindow.OnSend]" - } - } - - expand = {} - } - } - - migration_involved_character_list_window = { - visible_at_creation = no - visible = "[MigrationWindow.IsInvolvedCharacterListWindowOpen]" - } - - migration_color_selector = { - parentanchor = bottom|hcenter - position = { 0 -70 } - } - - migration_tier_selector = { - parentanchor = bottom|hcenter - position = { 0 -10 } - } - - error_horse = { - parentanchor = bottom|hcenter - position = { -300 0 } - visible = "[And( Not( IsPauseMenuShown ), Not(ReleaseMode) )]" - } - - widget = { - name = "player_character_migration_view" - size = { 100% 100% } - parentanchor = bottom|left - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - datacontext = "[GetPlayer]" - - # Player Character Portrait - container = { - parentanchor = bottom|left - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.15 - - position = { 0 0 } - alpha = 1 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.15 - - position = { 0 50 } - alpha = 0 - } - - portrait_hud = { - scale = 1.3 - parentanchor = center - position = { -20 -40 } - } - - icon = { - texture = "gfx/interface/hud/bottom_left_portrait_fade.dds" - parentanchor = bottom|left - color = { 0.12 0.12 0.12 1 } - } - - icon = { - texture = "gfx/interface/hud/bottom_left_portrait_fade.dds" - parentanchor = bottom|left - color = { 0.15 0.15 0.15 0.3 } - } - } - - container = { - name = "bottom_left_bar_temporary_statuses" - - datacontext = "[GetPlayer]" - - parentanchor = bottom|left - position = { 250 -70 } - ignoreinvisible = yes - alwaystransparent = no - } - } -} - -types Migration -{ - type migration_color_selector = widget { - allow_outside = yes - filter_mouse = all - alwaystransparent = yes - - size = { 320 60 } - - background = { - using = Background_Area_Dark - margin = { 10 0 } - color = { 0.15 0.15 0.15 0.75 } - } - - hbox = { - text_single = { - visible = "[MigrationWindow.IsShowRealm]" - text = "MIGRATION_COLOR_SELECTOR_REALMS" - } - - text_single = { - visible = "[Not( MigrationWindow.IsShowRealm )]" - text = "MIGRATION_COLOR_SELECTOR_FERTILITY" - } - - hbox = { - button_round = { - size = { 40 40 } - - down = "[MigrationWindow.IsShowRealm]" - onclick = "[MigrationWindow.ToggleRealmColor]" - - tooltip = "MIGRATION_COLOR_SELECTOR_REALMS" - - button_icon = { - size = { 40 40 } - parentanchor = center - alwaystransparent = yes - texture = "[GetMapMode( 'realms' ).GetIcon]" - - down = "[MigrationWindow.IsShowRealm]" - } - } - - button_round = { - size = { 40 40 } - - down = "[Not(MigrationWindow.IsShowRealm)]" - onclick = "[MigrationWindow.ToggleRealmColor]" - - tooltip = "MIGRATION_COLOR_SELECTOR_FERTILITY" - - button_icon = { - name = migration_mapmode_ra_uses_this - widgetid = migration_mapmode_ra_uses_this - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - texture = "[GetMapMode( 'migration_counties' ).GetIcon]" - - down = "[Not(MigrationWindow.IsShowRealm)]" - } - } - } - } - } - - type migration_tier_selector = widget { - allow_outside = yes - filter_mouse = all - alwaystransparent = yes - - size = { 320 60 } - - background = { - using = Background_Area_Dark - margin = { 10 0 } - color = { 0.15 0.15 0.15 0.75 } - } - - hbox = { - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "MIGRATION_WINDOW_TIER_SELECTOR" - } - - text_single = { - text = "MIGRATION_WINDOW_CURRENT_TIER" - default_format = "#high" - } - } - - expand = {} - - button_round = { - size = { 40 40 } - - onclick = "[MigrationWindow.SetTitleTier('county')]" - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'county')]" - - tooltip = "county_plural" - - button_icon = { - size = { 20 20 } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/dejure_counties.dds" - - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'county')]" - } - } - - button_round = { - size = { 40 40 } - - onclick = "[MigrationWindow.SetTitleTier('duchy')]" - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'duchy')]" - enabled = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' ).HasFlag( 'migration_to_duchies', GetPlayer.Self)]" - - tooltip = "duchy_plural" - tooltip_when_disabled = "MIGRATION_WINDOW_DEJURE_DUCHY_BLOCKED" - - button_icon = { - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/dejure_duchies.dds" - - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'duchy')]" - } - } - - button_round = { - size = { 40 40 } - - onclick = "[MigrationWindow.SetTitleTier('kingdom')]" - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'kingdom')]" - enabled = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' ).HasFlag( 'migration_to_kingdoms', GetPlayer.Self)]" - - tooltip = "kingdom_plural" - tooltip_when_disabled = "MIGRATION_WINDOW_DEJURE_KINGDOM_BLOCKED" - - button_icon = { - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/dejure_kingdoms.dds" - - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'kingdom')]" - } - } - - button_round = { - size = { 40 40 } - - onclick = "[MigrationWindow.SetTitleTier('empire')]" - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'empire')]" - enabled = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' ).HasFlag( 'migration_to_empires', GetPlayer.Self)]" - - tooltip = "empire_plural" - tooltip_when_disabled = "MIGRATION_WINDOW_DEJURE_EMPIRE_BLOCKED" - - button_icon = { - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/dejure_empires.dds" - - down = "[EqualTo_string(MigrationWindow.GetTitleTier, 'empire')]" - } - } - } - } - - type migration_involved_character_list_window = window - { - # Name used too find the window, don't change - name = "migration_involved_character_list_window" - - size = { 700 800 } - parentanchor = center - - minimumsize = { 680 550 } - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration - - datacontext = "[MigrationWindow.GetInvolvedCharacterList]" - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "MIGRATION_INVOLVED_CHARACTERS_HEADER" - } - - blockoverride "button_close" - { - onclick = "[MigrationWindow.CloseInvolvedCharacterListWindow]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 590 - addrow = 126 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_involved_character_list_item = { - size = { 590 122 } - } - } - } - - text_single = { - visible = "[Not(CharacterSelectionList.HasItems)]" - layoutpolicy_vertical = expanding - name = "no_match" - text = "CHARACTER_FINDER_NO_MATCH" - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - margin_bottom = 15 - - button_primary = { - text = "CLOSE_LABEL" - onclick = "[MigrationWindow.CloseInvolvedCharacterListWindow]" - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('alive_filter')]" - } - } - } - } - - type widget_involved_character_list_item = widget - { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 590 122 } - - background = { - using = Background_Area_With_Header - } - - widget = { - parentanchor = top|right - position = { -8 2 } - size = { 160 30 } - - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - - item = { - widget_skill_item_no_icon = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - - margin_top = 2 - - portrait_head = {} - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin_left = 4 - - ## Name - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 4 - margin_right = 8 - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip]" - align = nobaseline - alwaystransparent = yes - autoresize = no - max_width = 300 - - using = Font_Size_Medium - } - - expand = {} - } - - ## Age - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 4 - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - - ## Extra description - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_companion_description" - layoutpolicy_horizontal = expanding - raw_text = "[herd_i] [Character.GetDomicile.GetHerd]" - autoresize = no - align = nobaseline - alwaystransparent = yes - } - } - - ## Dynasty, Traits, Culture and Religion - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin_left = 8 - } - - hbox = { - ## Dynasty - widget = { - size = { 40 40 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - scale = 0.6 - } - } - - ## Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - size = { 150 60 } - addcolumn = 30 - addrow = 30 - maxhorizontalslots = 8 - maxverticalslots = 1 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - - ## Realm - widget = { - size = {45 40 } - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - - block "claims_visibility" {} - - datacontext = "[CharacterListItem.GetFirstClaim]" - - coa_title_tiny_crown = { - datacontext = "[Claim.GetTitle]" - parentanchor = vcenter - position = { 0 -3 } - scale = 0.8 - - using = tooltip_ne - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - blockoverride "coa_tooltip" - { - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - text_single = { - align = right - minimumsize = { 15 0 } - parentanchor = vcenter|right - text = "[CharacterListItem.GetTitleItemCount]" - - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 2 } - margin_right = 4 - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ## Religion - hbox = { - margin_right = 16 - - icon = { - name = "faith_button" - size = { 30 30 } - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - - tooltipwidget = { - faith_tooltip = {} - } - } - - hbox = { - datacontext = "[Character.GetCulture]" - - tooltipwidget = { - culture_tooltip = {} - } - - using = tooltip_se - - hbox = { - spacing = 4 - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 110 - align = nobaseline - text = "CULTURE_LISTS_WINDOW" - } - } - } - } - } - } - } - } - - type nomad_widget = widget { - - name = "nomad_widget" - - block "visibility" {} - - size = { 180 50 } - allow_outside = yes - - widget = { - parentanchor = top - position = { 0 -40 } - size = { 180 100 } - allow_outside = yes - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = 13 - spacing = -12 - allow_outside = yes - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = -10 - margin_top = 4 - allow_outside = yes - - # Fertility Bar - fertility_bar = { - blockoverride "bar_tooltip" { - tooltipwidget = { - domain_fertility_tooltip = {} - } - using = tooltip_ne - } - blockoverride "button_tooltip" { - tooltip = "migration_counties_desc" - } - blockoverride "grey_fertility_icon_visibility" { - visible = "[Character.IsLandlessRuler]" - } - blockoverride "green_fertility_icon_visibility" { - visible = "[Character.IsAverageFertilityBetween( '(CFixedPoint)0.6', '(CFixedPoint)1.1' )]" - } - blockoverride "yellow_fertility_icon_visibility" { - visible = "[Character.IsAverageFertilityBetween( '(CFixedPoint)0.3', '(CFixedPoint)0.6' )]" - } - blockoverride "red_fertility_icon_visiblity" { - visible = "[Character.IsAverageFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.3' )]" - } - blockoverride "fertility_fire_visibility" { - visible = "[Character.IsAverageFertilityBetween( '(CFixedPoint)0.0', '(CFixedPoint)0.01' )]" - } - } - - hbox = { - spacing = 2 - datacontext = "[Character.GetInvolvedMigrationSituation]" - datacontext = "[Situation.GetCharacterCurrentPhase( Character.Self ).GetType]" - - button_round = { - size = { 55 55 } - tooltipwidget = { - current_situation_phase = { - blockoverride "call_to_action" { - text_single = { - layoutpolicy_horizontal = expanding - margin_bottom = 16 - text = "SITUATION_CALL_TO_ACTION" - } - } - } - } - using = tooltip_ne - enabled = "[Character.HasInvolvedMigrationSituation]" - onclick = "[ToggleGameViewData(Situation.GetWindowName, Situation.GetID)]" - - icon_round_button_base = { - alwaystransparent = yes - } - - button_situation = { - name = "button_situation_steppe" - size = { 40 40 } - position = { 0 -1 } - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - size = { 55 55 } - onclick = "[Character.OpenPlayerInteraction( 'migration_interaction' )]" - enabled = "[Character.IsPlayerInteractionValid( 'migration_interaction' )]" - tooltip = "[Character.GetPlayerInteractionTooltip( 'migration_interaction' )]" - - icon_round_button_base = { - alwaystransparent = yes - } - - button_migrate = { - name = "button_migrate" - size = { 40 40 } - position = { 0 -1 } - parentanchor = center - alwaystransparent = yes - } - using = tooltip_ne - } - } - } - - spacer = { - size = { 9 0 } - } - - button = { - datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag('dominance_law')]" - size = { 100 100 } - allow_outside = yes - - onclick = "[ToggleGameViewData( 'my_realm', 'bookmark_laws' )]" - - tooltipwidget = { - general_law_tooltip = { - blockoverride "call_to_action" { - text_single = { - layoutpolicy_horizontal = expanding - text = "DOMINANCE_WIDGET_CALL_TO_ACTION" - margin_bottom = 16 - } - } - } - } - - icon_round_button_base = { - parentanchor = center - size = { 72 72 } - } - - highlight_icon = { - name = "dominance icon" - size = { 72 72 } - texture = "[Law.GetIcon]" - parentanchor = center - } - - widget = { - parentanchor = hcenter|bottom - size = { 68 16 } - position = { 0 -7 } - - flowcontainer = { - parentanchor = vcenter - position = { 7 0 } - spacing = 1 - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4')]" - parentanchor = center - } - } - } - - icon = { - size = { 68 16 } - texture = "gfx/interface/window_realm/dominance_bar_frame.dds" - } - } - } - } - } - } - - type fertility_bar = widget { - name = "fertility_progressbar" - size = { 92 20 } - allow_outside = yes - - icon = { - block "fertility_fire_visibility" { visible = no } - allow_outside = no - parentanchor = center - size = { 150% 220% } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_glow.dds" - mirror = vertical - blend_mode = alphamultiply - } - - state = { - name = mask_a - next = mask_b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { 0 -1 } - } - } - - state = { - name = mask_b - next = mask_a - duration = 8 - - modify_texture = { - name = "clouds" - translate_uv = { 0 1 } - } - } - } - - icon = { - parentanchor = center - size = { 92 26 } - texture = "gfx/interface/window_scheme/scheme_success_progressbar_bg.dds" - } - - hbox_complex_bar_progress = { - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - } - - icon = { - parentanchor = center - size = { 124 82 } - position = { -64 -14 } - alwaystransparent = yes - spriteType = CorneredTiled - texture_density = 2 - texture = "gfx/interface/skinned/hud_stress_bg.dds" - } - - icon = { - parentanchor = center - size = { 124 82 } - position = { 28 -14 } - alwaystransparent = yes - spriteborder_right = 94 - spriteType = CorneredTiled - texture_density = 2 - texture = "gfx/interface/skinned/hud_stress_bg.dds" - } - - - button_round = { - parentanchor = left|vcenter - position = { -40 -1 } - onclick = "[SetMapMode(Select_CString(IsMapMode('migration_counties'), 'realms', 'migration_counties'))]" - - block "button_tooltip" {} - using = tooltip_ne - - icon_round_button_base = { - block "button_enabled" {} - } - - ### Grey Fertility - icon = { - parentanchor = center - position = { 0 -1 } - size = { 40 40 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - block "grey_fertility_icon_visibility" {} - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 4 - } - } - - ### Green Fertility - icon = { - parentanchor = center - position = { 0 -1 } - size = { 40 40 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - block "green_fertility_icon_visibility" {} - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 8 - alpha = 0.8 - } - } - - ### Yellow Fertility - icon = { - parentanchor = center - position = { 0 -1 } - size = { 40 40 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - block "yellow_fertility_icon_visibility" {} - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 1 - } - } - - ### Red Fertility - icon = { - parentanchor = center - position = { 0 -1 } - size = { 40 40 } - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/map_modes/fertility.dds" - block "red_fertility_icon_visiblity" {} - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 9 - } - } - } - - hbox_complex_bar_next_marker = { - - block "bar_tooltip" {} - - blockoverride "marker" { - widget = { - parentanchor = center - position = { 0 -16 } - size = { 10 10 } - - divider = { - parentanchor = center - position = { 0 15 } - size = { 4 20 } - } - - icon = { - parentanchor = center - position = { 0 6 } - size = { 96 23 } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_arrow.dds" - } - } - } - } - - hbox_complex_bar_equlibrium_marker = { - block "bar_tooltip" {} - - blockoverride "equilibrium_marker" { - widget = { - parentanchor = center - position = { 0 -16 } - size = { 10 10 } - - divider = { - parentanchor = center - position = { 0 15 } - size = { 4 20 } - } - - icon = { - parentanchor = center - position = { 0 6 } - size = { 96 23 } - - texture = "gfx/interface/window_domiciles/domicile_location_map_pin_arrow.dds" - } - } - } - } - } - - type dominance_pip = icon_flat_standard_black { - size = { 10 10 } - texture = "gfx/interface/window_realm/dominance_bar_fill.dds" - } - - type dominance_pip_on = icon_flat_standard { - size = { 10 10 } - texture = "gfx/interface/window_realm/dominance_bar_fill.dds" - } - - type current_situation_phase = container { - container = { - visible = "[Character.HasInvolvedMigrationSituation]" - using = situation_phase_type_tooltip - } - container = { - visible = "[Not( Character.HasInvolvedMigrationSituation )]" - using = DefaultTooltipBackground - - cooltip_paragraph = { - margin = { 15 10 } - margin_bottom = 15 - text = "NO_MIGRATION_SITUATION" - } - } - } - - type domain_fertility_tooltip = container { - alwaystransparent = no - - object_tooltip_pop_out = { - visible = "[DataModelHasItems( InGameBottomBar.GetDomainFertilityCounties )]" - blockoverride "title_text" - { - margin = { 0 5 } - text = "DOMAIN_FERTILITY_TOOLTIP_HEADER" - default_format = "#T" - } - - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[InGameBottomBar.GetDomainFertilityCounties]" - - item = { - county_fertility_breakdown = {} - } - } - } - } - - container = { - visible = "[Not( DataModelHasItems( InGameBottomBar.GetDomainFertilityCounties ) )]" - using = GeneralTooltipSetup - using = DefaultTooltipBackground - alwaystransparent = no - - text_multi = { - text = "DOMAIN_FERTILITY_TOOLTIP_UNLANDED" - margin = { 15 10 } - align = nobaseline - autoresize = yes - max_width = 450 - } - } - } - - - type county_fertility_breakdown = vbox { - datacontext = "[Title.GetCountyData]" - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - hbox = { - layoutpolicy_horizontal = expanding - - margin_left = 60 - margin_bottom = -15 - - # Name - cooltip_paragraph = { - text = "[Title.GetName|U]" - default_format = "#high" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - # COA - coa_title_small = {} - - spacer = { - size = { 5 0 } - } - - # Current Fertility - cooltip_paragraph = { - text = "CURRENT_COUNTY_FERTILITY" - max_width = 95 - } - - spacer = { - size = { 10 0 } - } - - # Monthly Change - cooltip_paragraph = { - datacontext = "[County.GetCountyFertilityChangeBreakdown]" - - text = "CURRENT_COUNTY_FERTILITY_CHANGE" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - using = tooltip_se - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - } - - } - - cooltip_paragraph = { - margin_left = 60 - margin_bottom = 10 - margin_top = -15 - text = "PROJECTED_COUNTY_FERTILITY_EQUILIBRIUM" - } - - divider_light = { - layoutpolicy_horizontal = growing - } - } -} - diff --git a/N3OW/gui/window_military.gui b/N3OW/gui/window_military.gui deleted file mode 100644 index 14bff60d..00000000 --- a/N3OW/gui/window_military.gui +++ /dev/null @@ -1,4031 +0,0 @@ -################################################### -################### MILTARY VIEW ##################### -###################################################### - -window = { - name = "military_view" - widgetid = "military_view" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - - layer = windows_layer - movable = no - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[GetVariableSystem.Set( 'military_view_mercenaries', 'mercenaries' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - ### WINDOW CONTENT - vbox = { - using = Window_Margins - - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "MILITARY_VIEW" - } - - blockoverride "illustration_texture" { - texture = "gfx/interface/skinned/illustrations/header_illustrations/header_military.dds" - } - - blockoverride "button_close" { - onclick = "[MilitaryView.Close]" - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = {} - - hbox_military_automation_controls = { - layoutpolicy_horizontal = expanding - } - - hbox_military_troup_controls = { - layoutpolicy_horizontal = expanding - } - - } - } - - hbox_military_tabs = { - layoutpolicy_horizontal = expanding - } - - # Your Armies - vbox_military_owned_armies_tab = { - visible = "[MilitaryView.IsTabActive( 'owned_armies' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - # Provincial Armies tab - vbox_military_provincial_armies_tab = { - visible = "[MilitaryView.IsTabActive( 'title_troops' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - # Mercenaries tab - vbox_military_mercenaries_tab = { - visible = "[MilitaryView.IsTabActive( 'mercenary' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - } - } -} - - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types ArmiesView -{ - type hbox_military_automation_controls = hbox { - name = "army_automation_controls_tutorial_uses_this" - margin = { 10 0 } - spacing = 5 - - expand = {} - button_toggle_companion_ai = {} - - button_standard = { - size = { 36 36 } - onclick = "[MilitaryView.ShowArmyAutomationOptions]" - - tooltip = "MV_AUTOMATION_SETTINGS_TT" - using = tooltip_sw - - button_edit_automation = { - parentanchor = center - alwaystransparent = yes - size = { 28 28 } - } - } - } - - - type hbox_military_troup_controls = hbox { - spacing = 5 - margin_right = 10 - margin_left = 4 - - ignoreinvisible = yes - - - button_primary = { - name = "tutorial_highlight_raise_troops_button" - - datacontext = "[GetPlayer]" - onclick = "[PlayerRaiseAllRegiments]" - enabled = "[PlayerCanRaiseAnyRallyPoint]" - onrightclick = "[PlayerRaiseAllRegimentsAtLocation]" - button_ignore = none - layoutpolicy_horizontal = expanding - text = "RAISE_ALL" - size = { 1 32} - - tooltip = "[GetPlayerRaiseAllTooltip]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - # animation_attention_text = { - # visible = "[And( And( GetPlayer.IsAtWar, PlayerCanRaiseAnyRallyPoint ),Not(GetPlayer.HasRaisedRegiments) )]" - # } - } - - button_round = { - datacontext = "[GetPlayer]" - onclick = "[PlayerRaiseAllBarterRegiments]" - visible = "[Character.HasBarterGoods]" - enabled = "[PlayerCanRaiseAnyBarterRallyPoint]" - onrightclick = "[PlayerRaiseAllBarterRegimentsAtLocation]" - button_ignore = none - size = { 40 40 } - - tooltip = "[GetPlayerRaiseAllBarterersTooltip]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - button_icon = { - texture = "gfx/interface/icons/flat_icons/barter.dds" - size = { 26 26 } - parentanchor = center - alwaystransparent = yes - } - } - - - widget = { - size = { 84 40} - - button_standard = { - size = { 70 32 } - datacontext = "[MilitaryView.GetDefaultRaidIntent]" - visible = "[Character.CanRaid]" - parentanchor = center - onclick = "[ToggleGameViewData( 'raid_intent_selection_window', GetPlayer )]" - - tooltip = "RAID_OPEN_INTENT_WINDOW" - - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - - icon = { - size = { 24 24 } - texture = "[RaidIntent.GetIcon]" - parentanchor = right - position = { -8 4} - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - } - - button_round = { - datacontext = "[GetPlayer]" - onclick = "[PlayerRaiseAllRaidRegiments]" - visible = "[Character.CanRaid]" - enabled = "[PlayerCanRaiseAnyRaiderRallyPoint]" - onrightclick = "[PlayerRaiseAllRaidRegimentsAtLocation]" - button_ignore = none - - size = { 40 40 } - position = { -4 0 } - - tooltip = "[GetPlayerRaiseAllRaidersTooltip]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - button_icon = { - texture = "gfx/interface/icons/flat_icons/army_raid.dds" - size = { 30 30 } - parentanchor = center - alwaystransparent = yes - } - } - } - - - button_standard = { - datacontext = "[GetPlayer]" - - onclick = "[PlayerDisbandAll]" - enabled = "[PlayerCanDisbandAll]" - - text = "DISBAND_ALL" - size = { 160 32 } - - tooltip = "[GetDisbandAllTooltip]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_disband" - } - } - - - type hbox_military_tabs = hbox { - margin_bottom = 5 - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[MilitaryView.SetActiveTab( 'owned_armies' )]" - down = "[MilitaryView.IsTabActive( 'owned_armies' )]" - - text_single = { - text = "BANNER_TROOPS_TAB" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - name = ra_highlight_imperial_armies - widgetid = ra_highlight_imperial_armies - - visible = "[MilitaryView.GetCharacter.GetGovernment.HasRule( 'administrative' )]" - layoutpolicy_horizontal = expanding - - onclick = "[MilitaryView.SetActiveTab( 'title_troops' )]" - down = "[MilitaryView.IsTabActive( 'title_troops' )]" - - text_single = { - parentanchor = center - text = "MV_ARMIES_SELECTION_IMPERIAL" - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - onclick = "[MilitaryView.SetActiveTab( 'mercenary' )]" - down = "[MilitaryView.IsTabActive( 'mercenary' )]" - - text_single = { - text = "MV_MERCENARIES" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - } - } - } - - - type vbox_military_owned_armies_tab = vbox { - name = "tab_your_armies" - - using = Animation_Tab_Switch - - scrollbox = { - name = "scrollbox_troops" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/skinned/illustrations/moving.dds" - fittype = end - alpha = 0.3 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" { - vbox_your_armies = { - visible = "[Or(GetVariableSystem.HasValue( 'military_view_armies', 'personal' ), Or(Not(GetVariableSystem.Exists('military_view_armies')), Not(MilitaryView.GetCharacter.GetGovernment.HasRule( 'administrative' ))))]" - - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 10 - } - - vbox_military_provincial_armies = { - visible = "[GetVariableSystem.HasValue( 'military_view_armies', 'imperial' )]" - layoutpolicy_horizontal = expanding - } - } - } - - hbox = { - visible = "[GetVariableSystem.HasValue( 'military_view_armies', 'imperial' )]" - margin_top = 5 - margin_bottom = -10 - spacing = 5 - - button_standard = { - datacontext = "[GetPlayer]" - visible = "[Character.GetGovernment.HasRule( 'administrative' )]" - enabled = "[MilitaryView.CanReturnControlledMaA]" - onclick = "[MilitaryView.ReturnControlledMaA]" - - text = "MV_RETURN_CONTROLLED" - } - - button_standard = { - datacontext = "[GetPlayer]" - visible = "[And(Character.GetGovernment.HasRule( 'administrative' ), Character.IsIndependentRuler)]" - enabled = "[MilitaryView.CanReturnReassignedMaA]" - onclick = "[MilitaryView.ReturnReassignedMaA]" - - text = "MV_RETURN_REASSIGNED" - } - } - - vbox = { - name = "rally_points" - layoutpolicy_horizontal = expanding - margin = { 25 10 } - spacing = 5 - visible = "[Not(GetPlayer.HasActiveCompanionAISetting('raise_armies'))]" - - text_single = { - layoutpolicy_horizontal = expanding - text = "MV_RALLY_POINTS" - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "rally_point_list" - datamodel = "[MilitaryView.GetRallyPoints]" - - item = { - button = { - name = "rally_point_button" - datacontext = "[RallyPointItem.GetRallyPoint]" - size = { 50 50 } - onclick = "[RallyPointItem.OnClick]" - tooltip = "MV_RALLY_POINT_TT" - using = tooltip_ne - texture = "gfx/interface/window_military/banner_icon.dds" - tintcolor = "[RallyPoint.GetColor]" - } - } - } - - button_plus_small = { - name = "add_rally_point" - enabled = "[MilitaryView.CanAddRallyPoint]" - onclick = "[MilitaryView.OnAddRallyPoint]" - tooltip = "[MilitaryView.GetAddRallyPointTooltip]" - } - - expand = {} - } - } - - vbox = { - name = "footer" - layoutpolicy_horizontal = expanding - margin = { 90 0 } - margin_bottom = 10 - - background = { - using = Background_Bottom_Fade - margin_bottom = 20 - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 2 - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( GetPlayer.GetGovernment.HasRule( 'conditional_maa_refill' ))]" - - button_checkbox_label = { - onclick = "[MilitaryView.OnMilitaryReinforcementClick]" - tooltip = "[MilitaryView.GetMilitaryReinforcementCostTooltip]" - - blockoverride "checkbox" - { - checked = "[MilitaryView.IsMilitaryReinforcementsEnabled]" - } - - blockoverride "text" - { - text = "MONTHLY_REINFORCEMENT_COST_LABEL" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.GetGovernment.HasRule( 'conditional_maa_refill' )]" - - text_multi = { - text = "ADVENTURER_MAINTENANCE_INFO" - align = nobaseline - autoresize = yes - max_width = 350 - default_format = "#weak" - } - - expand = {} - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "MONTHLY_MAINTENANCE_LABEL" - maximumsize = { 400 -1 } - } - - expand = { - size = { 28 28 } - } - - icon = { - size = { 28 28 } - visible = "[MilitaryView.HasEmbarkedArmies]" - texture = "gfx/interface/icons/map_icons/naval_transportation.dds" - tooltip = "MV_EMBARKED_TT" - } - - text_single = { - datacontext = "[MilitaryView.GetGoldMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetTreasuryMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetPrestigeMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetPietyMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetBarterGoodsMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - text = "COST_RESULT_NOTHING" - visible = "[And( EqualTo_CFixedPoint(MilitaryView.GetGoldMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint(MilitaryView.GetTreasuryMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint( MilitaryView.GetPrestigeMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint(MilitaryView.GetPietyMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), EqualTo_CFixedPoint(MilitaryView.GetBarterGoodsMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0') ) ) ) )]" - maximumsize = { 400 -1 } - default_format = "#high" - } - } - - hbox = { - visible = "[MilitaryView.HasAnyRaisedMilitaryExpenses]" - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - text_single = { - text = "MONTHLY_MAX_MAINTENANCE_LABEL" - maximumsize = { 400 -1 } - tooltip = "MONTHLY_MAX_MAINTENANCE_TT" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedGoldMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedGoldMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[MilitaryView.HasAllRaisedGoldMilitaryExpenses]" - text = "MONTHLY_MAX_MAINTENANCE_VIEW" - maximumsize = { 400 -1 } - default_format = "#weak" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedTreasuryMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedTreasuryMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[MilitaryView.HasAllRaisedTreasuryMilitaryExpenses]" - text = "MONTHLY_MAX_MAINTENANCE_TREASURY_VIEW" - maximumsize = { 400 -1 } - default_format = "#weak" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedPrestigeMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedPrestigeMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedPietyMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedPietyMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - } - } - } - } - - expand = {} - } - - - type vbox_military_provincial_armies_tab = vbox { - name = imperial_armies_ra_uses_this - widgetid = imperial_armies_ra_uses_this - visible = "[MilitaryView.IsTabActive( 'title_troops' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - visible = "[Character.GetTopLiege.IsPlayerInteractionShown('celestial_request_military_aid_interaction')]" - datacontext = "[GetPlayer]" - margin = { 27 8 } - layoutpolicy_horizontal = expanding - - button_standard = { - name = "celestial_request_military_aid" - enabled = "[Character.GetTopLiege.IsPlayerInteractionValid('celestial_request_military_aid_interaction')]" - onclick = "[Character.GetTopLiege.OpenPlayerInteraction('celestial_request_military_aid_interaction')]" - tooltip = "[Character.GetTopLiege.GetPlayerInteractionTooltip('celestial_request_military_aid_interaction')]" - layoutpolicy_horizontal = expanding - - text = "CELESTIAL_REQUEST_MILITARY_AID_NAME" - using = tooltip_ws - } - } - vbox = { - visible = "[Character.IsPlayerInteractionShown('celestial_send_military_aid_interaction')]" - datacontext = "[GetPlayer]" - margin = { 27 8 } - layoutpolicy_horizontal = expanding - - button_standard = { - name = "celestial_request_military_aid" - enabled = "[Character.IsPlayerInteractionValid('celestial_send_military_aid_interaction')]" - onclick = "[Character.OpenPlayerInteraction('celestial_send_military_aid_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('celestial_send_military_aid_interaction')]" - layoutpolicy_horizontal = expanding - - text = "celestial_send_military_aid_interaction" - using = tooltip_ws - } - } - - scrollbox = { - name = "scrollbox_troops" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/skinned/illustrations/moving.dds" - fittype = end - alpha = 0.3 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" { - vbox_military_provincial_armies = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - spacing = 5 - - expand = {} - - button_standard = { - datacontext = "[GetPlayer]" - visible = "[Character.GetGovernment.HasRule( 'administrative' )]" - layoutpolicy_horizontal = expanding - enabled = "[MilitaryView.CanReturnControlledMaA]" - onclick = "[MilitaryView.ReturnControlledMaA]" - - text = "MV_RETURN_CONTROLLED" - tooltip = "MV_RETURN_CONTROLLED_TT" - using = tooltip_sw - } - - button_standard = { - datacontext = "[GetPlayer]" - visible = "[And(Character.GetGovernment.HasRule( 'administrative' ), Character.IsIndependentRuler)]" - layoutpolicy_horizontal = expanding - enabled = "[MilitaryView.CanReturnReassignedMaA]" - onclick = "[MilitaryView.ReturnReassignedMaA]" - - text = "MV_RETURN_REASSIGNED" - tooltip = "MV_RETURN_REASSIGNED_TT" - using = tooltip_sw - } - - expand = {} - } - - vbox = { - name = "rally_points" - layoutpolicy_horizontal = expanding - margin = { 25 0 } - margin_bottom = 10 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "MV_RALLY_POINTS" - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - name = "rally_point_list" - datamodel = "[MilitaryView.GetRallyPoints]" - - item = { - button = { - name = "rally_point_button" - datacontext = "[RallyPointItem.GetRallyPoint]" - size = { 50 50 } - onclick = "[RallyPointItem.OnClick]" - tooltip = "MV_RALLY_POINT_TT" - using = tooltip_ne - texture = "gfx/interface/window_military/banner_icon.dds" - tintcolor = "[RallyPoint.GetColor]" - } - } - } - - button_plus_small = { - name = "add_rally_point" - enabled = "[MilitaryView.CanAddRallyPoint]" - onclick = "[MilitaryView.OnAddRallyPoint]" - tooltip = "[MilitaryView.GetAddRallyPointTooltip]" - } - - expand = {} - } - } - - vbox = { - name = "footer" - layoutpolicy_horizontal = expanding - margin = { 90 0 } - margin_bottom = 10 - - background = { - using = Background_Bottom_Fade - margin_bottom = 20 - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 2 - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not(GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ))]" - - button_checkbox_label = { - onclick = "[MilitaryView.OnMilitaryReinforcementClick]" - tooltip = "[MilitaryView.GetMilitaryReinforcementCostTooltip]" - - blockoverride "checkbox" - { - checked = "[MilitaryView.IsMilitaryReinforcementsEnabled]" - } - - blockoverride "text" - { - text = "MONTHLY_REINFORCEMENT_COST_LABEL" - } - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )]" - - text_multi = { - text = "ADVENTURER_MAINTENANCE_INFO" - align = nobaseline - autoresize = yes - max_width = 350 - default_format = "#weak" - } - - expand = {} - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "MONTHLY_MAINTENANCE_LABEL" - maximumsize = { 400 -1 } - } - - expand = { - size = { 28 28 } - } - - icon = { - size = { 28 28 } - visible = "[MilitaryView.HasEmbarkedArmies]" - texture = "gfx/interface/icons/map_icons/naval_transportation.dds" - tooltip = "MV_EMBARKED_TT" - } - - text_single = { - datacontext = "[MilitaryView.GetGoldMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetTreasuryMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetPrestigeMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetPietyMilitaryExpenses]" - visible = "[NotEqualTo_CFixedPoint(ValueBreakdown.GetFixedPointValue, '(CFixedPoint)0')]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - text = "COST_RESULT_NOTHING" - visible = "[And( EqualTo_CFixedPoint(MilitaryView.GetGoldMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint(MilitaryView.GetTreasuryMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint( MilitaryView.GetPrestigeMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), And( EqualTo_CFixedPoint(MilitaryView.GetPietyMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0'), EqualTo_CFixedPoint(MilitaryView.GetBarterGoodsMilitaryExpenses.GetFixedPointValue, '(CFixedPoint)0') ) ) ) )]" - default_format = "#high" - } - } - - hbox = { - visible = "[MilitaryView.HasAnyRaisedMilitaryExpenses]" - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - - text_single = { - text = "MONTHLY_MAX_MAINTENANCE_LABEL" - maximumsize = { 400 -1 } - tooltip = "MONTHLY_MAX_MAINTENANCE_TT" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedGoldMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedGoldMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[MilitaryView.HasAllRaisedGoldMilitaryExpenses]" - text = "MONTHLY_MAX_MAINTENANCE_VIEW" - maximumsize = { 400 -1 } - default_format = "#weak" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedTreasuryMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedTreasuryMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[MilitaryView.HasAllRaisedTreasuryMilitaryExpenses]" - text = "MONTHLY_MAX_MAINTENANCE_TREASURY_VIEW" - maximumsize = { 400 -1 } - default_format = "#weak" - align = nobaseline - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedPrestigeMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedPrestigeMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedPietyMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedPietyMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - datacontext = "[MilitaryView.GetAllRaisedBarterGoodsMilitaryExpenses]" - visible = "[MilitaryView.HasAllRaisedBarterGoodsMilitaryExpenses]" - text = "[ValueBreakdown.GetValue]" - maximumsize = { 400 -1 } - default_format = "#high" - align = nobaseline - - tooltipwidget = { - recursive = yes - widget_value_breakdown_tooltip = {} - } - } - } - } - } - } - - expand = {} - } - - - type vbox_military_mercenaries_tab = vbox { - using = Animation_Tab_Switch - - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - - text = "MV_MERCENARIES_SELECTION_MERCENARIES" - - onclick = "[GetVariableSystem.Set( 'military_view_mercenaries', 'mercenaries' )]" - down = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'mercenaries' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - - text = "MV_MERCENARIES_SELECTION_HIREABLE_RULERS" - - onclick = "[GetVariableSystem.Set( 'military_view_mercenaries', 'hireable_rulers' )]" - down = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'hireable_rulers' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - - onclick = "[GetVariableSystem.Set( 'military_view_mercenaries', 'holy_orders' )]" - down = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'holy_orders' )]" - - text_single = { - text = "MV_HOLY_ORDERS" - parentanchor = center - - maximumsize = { 400 -1 } - default_format = "#low" - - alpha = "[Select_float( DataModelHasItems( MilitaryView.GetAllHolyOrders ), '(float)1.0', '(float)0.5' )]" - } - - text_single = { - parentanchor = vcenter|right - position = {-20 0} - text = "[GetDataModelSize(MilitaryView.GetAllHolyOrders)]" - - default_format = "#low" - - alpha = "[Select_float( DataModelHasItems( MilitaryView.GetAllHolyOrders ), '(float)1.0', '(float)0.5' )]" - } - } - } - - scrollbox = { - name = "tab_mercenaries" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[Not( GetVariableSystem.HasValue( 'military_view_mercenaries', 'holy_orders' ) )]" - - texture = "gfx/interface/illustrations/event_scenes/genericcamp.dds" - alpha = 0.3 - fittype = end - framesize = { 1200 848 } - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - visible = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'holy_orders' )]" - - texture = "gfx/interface/skinned/illustrations/holy_order_bg.dds" - alpha = 0.3 - fittype = centercrop - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "tutorial_highlight_mercenary_list_item" - datamodel = "[MilitaryView.GetAllMercenaries]" - visible = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'mercenaries' )]" - layoutpolicy_horizontal = expanding - - spacing = 5 - - using = Animation_Tab_Switch - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - button_mercenary_list_item = { - datacontext = "[HiredTroopItem.GetMercenaryCompany]" - size = { 504 92 } - - blockoverride "HiredTroopMenAtArmsTypesDataModel" - { - datamodel = "[HiredTroopItem.GetRegiments]" - } - } - } - } - } - - vbox = { - name = "hireable_rulers" - visible = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'hireable_rulers' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - name = "populated_list" - visible = "[Not( IsDataModelEmpty( MilitaryView.GetAllHireableRulers ) )]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - fixedgridbox = { - datamodel = "[MilitaryView.GetAllHireableRulers]" - allow_outside = yes - - addcolumn = 504 - addrow = 110 # bit larger to account for spacing - - item = { - button_hireable_ruler_item = { - visible = "[Not( ObjectsEqual( HiredTroopItem.GetHireableRuler, GetPlayer ) )]" - size = { 504 92 } - } - } - } - - expand = { } - } - - vbox = { - name = "unpopulated_list" - visible = "[IsDataModelEmpty( MilitaryView.GetAllHireableRulers )]" - layoutpolicy_vertical = expanding - - text_single = { - - text = "MV_MERCENARIES_NO_HIREABLE_RULERS_IN_RANGE" - default_format = "#weak" - } - } - } - - vbox = { - name = "tab_holy_orders" - visible = "[GetVariableSystem.HasValue( 'military_view_mercenaries', 'holy_orders' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - text_label_center = { - name = "hired_troops_view_holy_orders_header_item" - text = "HIRED_TROOPS_VIEW_LIST_HO_HEADER" - } - - text_single = { - visible = "[And( Not(MilitaryView.CanUseAnyHolyOrder), DataModelHasItems(MilitaryView.GetAllHolyOrders))]" - text = "HOLY_ORDER_MUST_BE_AT_WAR_WITH_BAD_FAITH" - } - - hbox = { - visible = "[Not(DataModelHasItems(MilitaryView.GetAllHolyOrders ))]" - - text_single = { - text = "HIRED_TROOPS_VIEW_LIST_HO_NO_HOS" - default_format = "#weak" - } - } - - spacer = { - size = { 5 10 } - } - - button_standard = { - name = "hired_troops_view_create_holy_order_item" - datacontext = "[GetDecisionWithKey('create_holy_order_decision')]" - visible = "[Decision.IsShownForPlayer]" - layoutpolicy_horizontal = expanding - - size = { 504 55 } - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - - widget = { - parentanchor = center - size = { 523 51 } - scissor = yes - - icon = { - name = "illustration" - visible = "[Decision.IsPossibleForPlayer]" - parentanchor = right|vcenter - - alpha = 0.7 - position = { -2 0 } - size = { 250 100 } - mirror = horizontal - - block "decision_texture_icon" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - highlight_icon = { - visible = "[Not(Decision.IsPossibleForPlayer)]" - parentanchor = right|vcenter - - alpha = 0.7 - position = { -2 0 } - size = { 250 100 } - mirror = horizontal - effectname = "GreyedOut" - tintcolor = { 0.6 0.6 0.6 0.7 } - - block "decision_texture_highlight" { - texture = "[Decision.GetPicture( GetPlayer.Self )]" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - icon = { - parentanchor = center - size = { 523 51 } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - hbox = { - margin = { 20 0 } - margin_right = 10 - - text_single = { - name = "title" - visible = "[Decision.IsPossibleForPlayer]" - text = "[Decision.GetTitleForPlayer]" - layoutpolicy_horizontal = growing - - align = nobaseline - default_format = "#clickable" - } - - text_single = { - name = "title2" - visible = "[Not(Decision.IsPossibleForPlayer)]" - layoutpolicy_horizontal = growing - text = "[Decision.GetTitleForPlayer]" - - align = nobaseline - block "default_format" { - default_format = "#low" - } - } - - highlight_icon = { - name = "not_possible" - visible = "[Not(Decision.IsPossibleForPlayer)]" - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - } - } - } - - spacer = { - size = { 5 20 } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - fixedgridbox = { - datamodel = "[MilitaryView.GetAllHolyOrders]" - allow_outside = yes - - addcolumn = 504 - addrow = 110 # bit larger to account for spacing - - item = { - button_holyorder_list_item = { - datacontext = "[HiredTroopItem.GetHolyOrder]" - size = { 504 92 } - - blockoverride "HiredTroopMenAtArmsTypesDataModel" - { - datamodel = "[HiredTroopItem.GetRegiments]" - } - - } - } - } - - expand = {} - } - expand = {} - - } - expand = {} - } - } - - blockoverride "scrollbox_expand" - { - expand = {} - } - } - expand = {} - } - - - type overlappingitembox_regiment_types = overlappingitembox - { - item = { - icon = { - name = "men_at_arms_icon" - datacontext = "[HiredTroopRegiment.GetRegiment]" - size = { 30 30 } - texture = "[Regiment.GetMAAType.GetIcon]" - tooltipwidget = regiment_container_tooltip - using = tooltip_ws - } - } - } - - type hbox_your_raised_and_unraised_soldiers = hbox - { - vbox = { - datacontext = "[MilitaryView.GetComposition]" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - ignoreinvisible = no - - hbox = { - name = tutorial_highlight_soldiers_total - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "MV_TOTAL_SOLDIERS" - layoutpolicy_horizontal = expanding - align = nobaseline - } - - hbox = { - spacing = 7 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 30 30 } - } - - text_single = { - text = "[ArmyComposition.GetSoldierCountString]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline - } - - army_quality_icon = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[And( ArmyComposition.HasRaisedSoldiers, GreaterThan_int32( ArmyComposition.GetUnraisedNumberOfSoldiers, '(int32)0' ) )]" - tooltip = "[ArmyComposition.GetUnraisedArmyCompositionTooltip]" - - text_single = { - text = "MV_UNRAISED_SOLDIERS" - layoutpolicy_horizontal = expanding - align = nobaseline - margin_bottom = 3 - margin_left = 3 - using = Font_Size_Small - } - - hbox = { - spacing = 7 - - text_single = { - text = "[ArmyComposition.GetUnraisedNumberOfSoldiers]" - layoutpolicy_horizontal = expanding - using = Font_Size_Small - default_format = "#high" - align = nobaseline - } - - unraised_army_quality_icon = {} - } - } - - progressbar_standard = { - name = "soldiers_max" - size = { 140 10 } - visible = "[NotEqualTo_int32(ArmyComposition.GetCurrentNumberOfSoldiers, ArmyComposition.GetMaxNumberOfSoldiers)]" - layoutpolicy_horizontal = expanding - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfSoldiers)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfSoldiers)]" - using = Animation_ShowHide_Standard - } - } - } - - type hbox_your_levies_and_knights = hbox - { - button_standard_clean = { - name = "levies_button" - datacontext = "[MilitaryView.GetComposition]" - datacontext = "[MilitaryView.GetCharacter]" - visible = "[Not( Or( Or( IsLandlessAdventurer( GetPlayer ), GetPlayer.IsLandlessRuler ), IsNomad( GetPlayer ) ) )]" - - size = { 249 140 } - - onclick = "[MilitaryView.ShowLevies]" - - - tooltip = "MV_LEVY_TT" - - background = { - using = Background_Button_Illustration - visible = "[MilitaryView.AreLeviesShown]" - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - name = "icon_levies" - texture = "[Character.GetCulture.GetGraphicalUnitType.GetLeviesBigIllustration]" - size = { 246 136 } - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - visible = "[MilitaryView.AreLeviesShown]" - alpha = 0.1 - blend_mode = colordodge - } - } - } - - using = Background_Vignette_Button - - vbox = { - expand = {} - margin = { 8 10 } - - text_single = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - text = "LEVIES_LABEL" - } - - hbox = { - spacing = 3 - layoutpolicy_horizontal = expanding - margin_right = 5 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_levies.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ArmyComposition.GetLeviesCountString]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline - } - - expand = {} - - text_single = { - visible = "[And( Not( MilitaryView.UsesTreasuryForLevies ), Not( MilitaryView.UsesBarterGoodsForLevies ) )]" - text = MV_LEVY_MAINTENANCE - tooltip = MV_LEVY_MAINTENANCE_TOOLTIP - alwaystransparent = yes - default_format = "#high" - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 10 5 } - } - } - - text_single = { - visible = "[MilitaryView.UsesTreasuryForLevies]" - text = MV_LEVY_MAINTENANCE_TREASURY - tooltip = MV_LEVY_MAINTENANCE_TREASURY_TOOLTIP - alwaystransparent = yes - default_format = "#high" - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 10 5 } - } - } - - text_single = { - visible = "[MilitaryView.UsesBarterGoodsForLevies]" - text = MV_LEVY_MAINTENANCE_BARTER_GOODS - tooltip = MV_LEVY_MAINTENANCE_BARTER_GOODS_TOOLTIP - alwaystransparent = yes - default_format = "#high" - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 10 5 } - } - } - } - } - - progressbar_standard = { - name = "levies_max" - parentanchor = bottom|left - position = { 5 -3 } - size = { 96% 10 } - visible = "[NotEqualTo_int32(ArmyComposition.GetCurrentNumberOfLevies, ArmyComposition.GetMaxNumberOfLevies)]" - max = "[IntToFloat(ArmyComposition.GetMaxNumberOfLevies)]" - value = "[IntToFloat(ArmyComposition.GetCurrentNumberOfLevies)]" - } - } - - vbox = { - name = "nomad_riders_button" - datacontext = "[MilitaryView.GetComposition]" - datacontext = "[GetMaA( 'nomadic_riders' )]" - visible = "[IsNomad( GetPlayer )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 249 140 } - margin = { 10 5 } - - tooltipwidget = { - widget_maa_type_container_tooltip = { - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - } - } - using = tooltip_ws - - background = { - texture = "gfx/interface/illustrations/men_at_arms_big/nomadic_riders.dds" - alpha = 0.7 - fittype = centercrop - - margin_top = -1 - margin_bottom = -2 - margin_left = -3 - margin_right = -1 - - using = Mask_Rough_Edges - } - - background = { - using = Background_Frame - margin = { 2 2 } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - text = "[MenAtArmsType.GetNameNoTooltip]" - } - - hbox = { - spacing = 3 - layoutpolicy_horizontal = expanding - margin_right = 5 - - icon = { - name = "nomadic_riders_icon" - texture = "[MenAtArmsType.GetIcon]" - size = { 25 25 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GetPlayer.GetDomicile.GetHorde|0]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline - - } - } - } - - button_standard_clean = { - name = "knights_button" - size = { 249 140 } - - onclick = "[MilitaryView.ShowKnights]" - - tooltip = "MV_KNIGHTS_TT" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - name = "icon_knights" - texture = "[Character.GetCulture.GetGraphicalUnitType.GetKnightsBigIllustration]" - size = { 246 136 } - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - visible = "[MilitaryView.AreKnightsShown]" - alpha = 0.1 - blend_mode = colordodge - } - } - } - - using = Background_Vignette_Button - - vbox = { - tooltip = "MV_KNIGHTS_TOOLTIP" - using = tooltip_se - expand = {} - margin = { 10 5 } - - text_single = { - visible = "[Not( GreaterThan_int32( Character.GetNumAccoladeSlots, '(int32)0' ) )]" - layoutpolicy_horizontal = expanding - text = "MV_KNIGHTS" - alwaystransparent = yes - } - text_single = { - visible = "[GreaterThan_int32( Character.GetNumAccoladeSlots, '(int32)0' )]" - layoutpolicy_horizontal = expanding - text = "MV_KNIGHTS_AND_ACCOLADES" - alwaystransparent = yes - } - - hbox = { - spacing = 3 - layoutpolicy_horizontal = expanding - icon = { - name = "icon_knight" - texture = "gfx/interface/icons/icon_knight_small.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "KNIGHTS_CURRENT_MAX" - using = Font_Size_Big - default_format = "#high" - align = nobaseline - } - - expand = {} - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "MV_MANAGE_KNIGHTS" - } - } - } - } - } - - type vbox_your_armies = vbox - { - hbox_your_raised_and_unraised_soldiers = { - layoutpolicy_horizontal = expanding - } - - hbox_your_levies_and_knights = { - layoutpolicy_horizontal = expanding - spacing = 10 - } - - vbox = { - name = "maa_area" - datacontext = "[MilitaryView.GetMilitaryItem]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 0 } - spacing = 4 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 5 - name = "heading" - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = no - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - expand = {} - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "BANNER_MEN_AT_ARMS_LABEL" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[MilitaryView.GetMAACountAndCapString]" - default_format = "#high" - tooltip = "[MilitaryView.GetMAACountAndCapTooltip]" - using = tooltip_ne - } - } - - text_single = { - max_width = 300 - visible = "[GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )]" - layoutpolicy_horizontal = expanding - text = "ADVENTURER_CAP_HINT" - default_format = "#weak" - } - } - - button_tertiary = { - datacontext = "[MilitaryView.GetMilitaryItem]" - visible = "[Not(IsDataModelEmpty( MilitaryItem.GetOwnedMaa ))]" - using = Animation_ShowHide_Standard - - name = "raise_all_men_at_arms" - datacontext = "[GetPlayer]" - onclick = "[PlayerRaiseAllMenAtArmsRegiments]" - enabled = "[PlayerCanRaiseAnyMenAtArmsRallyPoint]" - onrightclick = "[PlayerRaiseAllMenAtArmsRegimentsAtLocation]" - button_ignore = none - - text = "RAISE_ALL_MEN_AT_ARMS" - size = {200 36} - - tooltip = "[GetPlayerRaiseAllMenAtArmsTooltip]" - using = tooltip_sw - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - hbox = { - layoutpolicy_horizontal = expanding - name = "tutorial_maa_tiles" - - fixedgridbox = { - datacontext = "[MilitaryView.GetMilitaryItem]" - datamodel = "[MilitaryItem.GetOwnedMaa]" - layoutpolicy_horizontal = expanding - flipdirection = yes - datamodel_wrap = 3 - addcolumn = 169 - addrow = 93 - - item = { - container_maa_item = {} - } - } - - expand = {} - } - - button_standard = { - datacontext = "[MilitaryView.GetMilitaryItem]" - visible = "[And( GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ), Character.IsPlayerInteractionShown('refill_maa_interaction') )]" - layoutpolicy_horizontal = expanding - - name = "adventurer_refill_shortcut" - datacontext = "[GetPlayer]" - enabled = "[Character.IsPlayerInteractionValid('refill_maa_interaction')]" - onclick = "[Character.OpenPlayerInteraction('refill_maa_interaction')]" - text = "[Character.GetPlayerInteractionName('refill_maa_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('refill_maa_interaction')]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - icon = { - name = "adventurer_gold_icon" - parentanchor = left|vcenter - position = { 10 0 } - size = { 29 29 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - icon = { - name = "adventurer_provision_icon" - parentanchor = left|vcenter - position = { 40 0 } - size = { 29 29 } - framesize = { 60 60 } - frame = 0 - texture = "gfx/interface/icons/icon_camp_supply.dds" - } - } - - button_standard = { - datacontext = "[MilitaryView.GetMilitaryItem]" - visible = "[And( IsNomad(GetPlayer), Character.IsPlayerInteractionShown('refill_maa_nomad_interaction') )]" - layoutpolicy_horizontal = expanding - - name = "nomad_refill_shortcut" - datacontext = "[GetPlayer]" - enabled = "[Character.IsPlayerInteractionValid('refill_maa_nomad_interaction')]" - onclick = "[Character.OpenPlayerInteraction('refill_maa_nomad_interaction')]" - text = "[Character.GetPlayerInteractionName('refill_maa_nomad_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('refill_maa_nomad_interaction')]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - icon = { - name = "adventurer_gold_icon" - parentanchor = left|vcenter - position = { 10 0 } - size = { 29 29 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - icon = { - name = "nomad_herd_icon" - parentanchor = left|vcenter - position = { 40 0 } - size = { 29 29 } - texture = "gfx/interface/icons/icon_herd.dds" - } - } - - button_standard = { - datacontext = "[MilitaryView.GetMilitaryItem]" - visible = "[And( GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ), Character.IsPlayerInteractionShown('reinforce_soldiers_interaction') )]" - layoutpolicy_horizontal = expanding - - name = "adventurer_reinforce_shortcut" - datacontext = "[GetPlayer]" - enabled = "[Character.IsPlayerInteractionValid('reinforce_soldiers_interaction')]" - onclick = "[Character.OpenPlayerInteraction('reinforce_soldiers_interaction')]" - text = "[Character.GetPlayerInteractionName('reinforce_soldiers_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('reinforce_soldiers_interaction')]" - using = tooltip_se - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army" - - icon = { - name = "adventurer_icon" - parentanchor = left|vcenter - position = { 5 -1 } - size = { 28 28 } - texture = "gfx/interface/icons/combat_effects/owner_in_debt.dds" - } - } - - button_standard = { - name = "add_maa" - visible = "[Not( IsNomad( GetPlayer ) )]" - layoutpolicy_horizontal = expanding - - text = "ADD_MEN_AT_ARMS_LABEL" - - onclick = "[MilitaryItem.OnClick]" - tooltip = "CREATE_MAA_TOOLTIP" - down = "[MilitaryItem.IsOpen]" - - button_plus = { - name = "can_be_created" - visible = "[MilitaryItem.CanCreateAnyMAAType]" - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - } - - warning_icon = { - name = "at_cap" - visible = "[Not(MilitaryItem.MaACanBeCreated)]" - parentanchor = left|vcenter - position = { 5 0 } - size = { 28 28 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 0 } - - button_standard = { - name = "upgrade_horde_regiment" - visible = "[IsNomad( GetPlayer )]" - layoutpolicy_horizontal = expanding - - text = "UPGRADE_HORDE_REGIMENT_LABEL" - - onclick = "[MilitaryItem.OnClickNomad]" - tooltip = "[MilitaryItem.GetUpgradeHordeTooltip]" - down = "[MilitaryItem.IsNomadViewOpen]" - - button_plus = { - name = "can_upgrade_horde" - visible = "[MilitaryItem.CanCreateAnyMAAType]" - parentanchor = left|vcenter - position = { 5 0 } - alwaystransparent = yes - } - - warning_icon = { - name = "unraised_horde" - visible = "[Not( MilitaryItem.MaACanBeCreated )]" - parentanchor = left|vcenter - position = { 5 0 } - size = { 28 28 } - } - } - - button_standard = { - name = "recruit_from_subjects" - visible = "[MilitaryItem.ShouldShowRecruitFromSubjectsButton]" - layoutpolicy_horizontal = expanding - - text = "RECRUIT_FROM_SUBJECTS_LABEL" - - onclick = "[MilitaryItem.OnClickSubjects]" - tooltip = "[MilitaryItem.GetRecruitFromSubjectsTooltip]" - down = "[MilitaryItem.IsRecruitFromSubjectsViewOpen]" - } - } - } - - vbox = { - visible = "[Not(IsDataModelEmpty(MilitaryView.GetEventTroops))]" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "MILITARY_VIEW_EVENT_TROOPS" - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - fixedgridbox = { - datamodel = "[MilitaryView.GetEventTroops]" - addcolumn = 505 - addrow = 132 - - item = { - widget_event_troop_item = { - } - } - } - } - - vbox = { - visible = "[Or( Not(IsDataModelEmpty(MilitaryView.GetHiredMercenaries)), Not(IsDataModelEmpty(MilitaryView.GetHiredHolyOrders)) )]" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "MILITARY_VIEW_HIRED_TROOPS" - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - datamodel = "[MilitaryView.GetHiredMercenaries]" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 5 - - item = { - button_mercenary_list_item = { - datacontext = "[HiredTroopItem.GetMercenaryCompany]" - layoutpolicy_horizontal = expanding - size = { 504 92 } - - blockoverride "HiredTroopMenAtArmsTypesDataModel" - { - datamodel = "[HiredTroopItem.GetRegiments]" - } - } - } - } - - vbox = { - datamodel = "[MilitaryView.GetHiredHolyOrders]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - button_holyorder_list_item = { - datacontext = "[HiredTroopItem.GetHolyOrder]" - layoutpolicy_horizontal = expanding - size = { 504 92 } - - blockoverride "HiredTroopMenAtArmsTypesDataModel" - { - datamodel = "[HiredTroopItem.GetRegiments]" - } - } - } - } - } - } - - type widget_province_army_item = widget - { - # Note: Only compatible with AdministrativeArmy - visible = "[HiredTroopItem.IsAdministrativeArmy]" - layoutpolicy_horizontal = expanding - allow_outside = yes - - block "item_size" - { - size = { 504 98 } - } - - widget = { - allow_outside = yes - parentanchor = bottom|right - size = { 100% 82% } - - background = { - using = Background_Area - } - - vbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - block "theme_item_margin" - { - margin_left = 65 - } - - widget = { - allow_outside = yes - layoutpolicy_horizontal = expanding - size = { 0 34 } - - # Banner Status available - highlight_icon = { - visible = "[And( Not( Title.IsAdministrativeArmyHiredByLocalPlayer ), Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) )]" - position = { -4 4 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_green.dds" - } - - # Banner Status commanded by you - highlight_icon = { - visible = "[And( Title.IsAdministrativeArmyHiredByLocalPlayer, Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) )]" - position = { -4 4 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - - # Banner Status unavailable - highlight_icon = { - visible = "[And( Or( And( HiredTroopItem.IsHired, HiredTroopItem.GetHiredBy.IsAtWar ), And( Not( HiredTroopItem.IsHired ), HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ), Not( And( Title.IsAdministrativeArmyHiredByLocalPlayer, Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ) ) ) ]" - position = { -4 4 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - # Name of provincial army - text_single = { - parentanchor = left|vcenter - position = { 2 2 } - margin_left = 4 - - block "theme_name" - { - text = "[HiredTroopItem.GetNameNoTooltip]" - } - align = nobaseline - max_width = 350 - using = Font_Size_Medium - } - - # Status icon & background - widget = { - parentanchor = top|right - position = { -10 -8 } - size = { 42 52 } - - tooltip = "[Title.GetAdministrativeArmyStatus]" - - # Status available - highlight_icon = { - visible = "[And(And( Not( Title.IsAdministrativeArmyHiredByLocalPlayer ), Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ), Not(And(HiredTroopItem.IsHired, HiredTroopItem.GetHiredBy.IsAtWar)))]" - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_green_icon_bg.dds" - } - - icon_flat_standard_gold = { - visible = "[And(And( Not( Title.IsAdministrativeArmyHiredByLocalPlayer ), Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ), Not(And(HiredTroopItem.IsHired, HiredTroopItem.GetHiredBy.IsAtWar)))]" - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/army_select.dds" - } - - # Status Commanded by you - highlight_icon = { - visible = "[Title.IsAdministrativeArmyHiredByLocalPlayer]" - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_blue_icon_bg.dds" - } - - icon_flat_standard_gold = { - visible = "[Title.IsAdministrativeArmyHiredByLocalPlayer]" - parentanchor = top|hcenter - position = { 0 8 } - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/army_details.dds" - } - - # Status unavailable - highlight_icon = { - visible = "[And( Or( And( HiredTroopItem.IsHired, HiredTroopItem.GetHiredBy.IsAtWar ), And( Not( HiredTroopItem.IsHired ), HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ), Not( And( Title.IsAdministrativeArmyHiredByLocalPlayer, Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ) ) ) ]" - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_red_icon_bg.dds" - } - - icon_flat_standard_gold = { - visible = "[And( Or( And( HiredTroopItem.IsHired, HiredTroopItem.GetHiredBy.IsAtWar ), And( Not( HiredTroopItem.IsHired ), HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ), Not( And( Title.IsAdministrativeArmyHiredByLocalPlayer, Not( HiredTroopItem.GetAdministrativeTitle.GetHolder.IsAtWar ) ) ) ) ]" - parentanchor = top|hcenter - position = { 0 9 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - } - } - - hbox = { - visible = "[HiredTroopItem.IsEmpty]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - text = "MV_NO_MAA_FOR_TITLE_YET" - align = nobaseline - default_format = "#weak" - } - } - - hbox = { - visible = "[Not( HiredTroopItem.IsEmpty )]" - layoutpolicy_horizontal = expanding - - block "margins" - { - margin_right = 10 - } - - ## Military Items - hbox = { - layoutpolicy_horizontal = expanding - - ## MAA Icons - overlappingitembox_regiment_types = { - datamodel = "[HiredTroopItem.GetRegiments]" - - layoutpolicy_horizontal = expanding - size = { -1 30 } - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - ## Levies - hbox_soldiers_and_quality_small = { - datacontext = "[HiredTroopItem.GetComposition]" - } - } - - ## Influence Cost - text_single = { - visible = "[And( HiredTroopItem.IsAdministrativeArmy, And( GetPlayer.IsIndependentRuler, Not( HiredTroopItem.IsHiredByPlayer ) ) )]" - - text = "[HiredTroopItem.GetAdminReassignCost]" - using = Font_Size_Medium - align = nobaseline - - tooltip = "[HiredTroopItem.GetAdminReassignCostTooltip]" - } - - ## Action Buttons - flowcontainer = { - datacontext = "[HiredTroopItem.GetTitle.GetHolder]" - - margin_left = 5 - margin_right = 3 - spacing = 5 - - ignoreinvisible = yes - - ## Action: "Call On Troops" - button_round = { - name = "hire_button_non_interaction_admin" #tutorial uses this - visible = "[GetPlayer.IsIndependentRuler]" - enabled = "[HiredTroopItem.CanBeHired]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - - texture = "gfx/interface/icons/title_troops/call_on_troops.dds" - - onclick = "[HiredTroopItem.Hire]" - - tooltip = "TITLE_TROOPS_CALL_ON_TROOPS" - tooltip_when_disabled = "[HiredTroopItem.GetHireTooltip]" - using = tooltip_ne - } - } - - ## Action: "Reassign" - button_round = { - name = "reassign_button" - visible = "[HiredTroopItem.CanBeReassigned]" - enabled = "[HiredTroopItem.CanBeHired]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - texture = "gfx/interface/icons/title_troops/reassign_troops.dds" - - block "reassign_troops_on_click" - { - onclick = "[MilitaryView.Close]" - } - onclick = "[OpenGameViewData( 'select_title_troop_assignment', HiredTroopItem.GetAdministrativeTitle.GetID )]" - - tooltip = "TITLE_TROOPS_REASSIGN" - tooltip_when_disabled = "[HiredTroopItem.GetHireTooltip]" - using = tooltip_ne - } - } - - ## Action: "Ask Liege for Troops" - button_round = { - name = "request_admin_troops_from_emperor" - visible = "[And( Not( Title.IsAdministrativeArmyHiredByLocalPlayer ), And( Not( Character.IsPlayer ), Character.IsPlayerInteractionShown( 'request_emperor_title_troops_interaction' ) ) )]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - texture = "gfx/interface/icons/title_troops/ask_liege_for_troops.dds" - - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_emperor_title_troops_interaction', HiredTroopItem.GetTitle)]" - enabled = "[Character.IsPlayerInteractionValid('request_emperor_title_troops_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('request_emperor_title_troops_interaction')]" - using = tooltip_se - } - } - - ## Action: "Request Troops" - button_round = { - name = "hire_peer_admin_vassal" #tutorial uses this - visible = "[And( Not( Title.IsAdministrativeArmyHiredByLocalPlayer ), Character.IsPlayerInteractionShown( 'request_ally_title_troops_interaction' ) )]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - texture = "gfx/interface/icons/title_troops/request_troops.dds" - - enabled = "[Character.IsPlayerInteractionValid('request_ally_title_troops_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_ally_title_troops_interaction', HiredTroopItem.GetTitle)]" - - tooltip = "[Character.GetPlayerInteractionTooltip('request_ally_title_troops_interaction')]" - using = tooltip_se - } - } - - ## Action: "Return Troops" - button_round = { - name = "return_button" - visible = "[HiredTroopItem.IsHiredByPlayer]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - texture = "gfx/interface/icons/title_troops/return_troops.dds" - - onclick = "[HiredTroopItem.GetTitle.ReturnTitleMaaToOwner]" - - tooltip = "TITLE_TROOPS_RETURN" - using = tooltip_se - } - } - - ## Action: "Reclaim Troops" - button_round = { - name = "take_back_button" - visible = "[Character.IsPlayerInteractionShown('request_title_troops_back_interaction')]" - size = { 35 35 } - - button_icon = { - parentanchor = center - size = { 22 22 } - - texture = "gfx/interface/icons/title_troops/reclaim_troops.dds" - - enabled = "[Character.IsPlayerInteractionValid('request_title_troops_back_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_title_troops_back_interaction', HiredTroopItem.GetTitle)]" - - tooltip = "[Character.GetPlayerInteractionTooltip('request_title_troops_back_interaction')]" - using = tooltip_se - } - } - } - } - } - - block "theme_item" - { - widget_theme_item_small = { - position = { -8 6 } - blockoverride "inner_size" - { - size = { 60 60 } - } - } - } - } - } - - type vbox_military_provincial_armies = vbox - { - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - visible = "[DataModelHasItems( MilitaryView.GetHeldTitleItems )]" - - text = MY_PROVINCIAL_ARMIES_TITLE - autoresize = yes - multiline = yes - using = Font_Size_Medium - margin_bottom = 6 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[MilitaryView.GetHeldTitleItems]" - spacing = 20 - ignoreinvisible = yes - - item = { - vbox = { - datacontext = "[MilitaryItem.GetTitle]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 4 } - - widget = { - name = "coat_of_arms" - - size = { 40 40 } - - widget_theme_item_small = { - visible = "[Title.IsAdministrativeProvince]" - - parentanchor = center - position = { 0 -0} - - using = tooltip_ws - - blockoverride "outer_size" - { - position = { 2 7 } - size = { 36 36 } - } - blockoverride "inner_size" - { - size = { 36 36 } - } - } - - coa_title_tiny_crown = { - visible = "[Not(Title.IsAdministrativeProvince)]" - - parentanchor = center - position = { 0 -6} - - using = tooltip_ws - - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_bottom = 5 - spacing = 5 - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = MV_ADMIN_ARMY_ARMIES_NAME - max_width = 280 - } - - expand = { } - - text_single = { - text = "BANNER_MEN_AT_ARMS_LABEL" - max_width = 130 - } - - text_single = { - text = "[MilitaryItem.GetMAACountAndCapString]" - default_format = "#high" - tooltip = "[MilitaryItem.GetMAACountAndCapTooltip]" - using = tooltip_ne - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - } - - text_single = { - visible = "[IsDataModelEmpty( MilitaryItem.GetOwnedMaa )]" - margin = { 0 10 } - - text = "MV_NO_MAA_FOR_TITLE" - default_format = "#weak" - align = center - } - - fixedgridbox = { - layoutpolicy_horizontal = expanding - datamodel = "[MilitaryItem.GetOwnedMaa]" - flipdirection = yes - datamodel_wrap = 3 - addcolumn = 169 - addrow = 93 - - item = { - container_maa_item = { - - blockoverride "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwningTitle.GetHolder.GetCulture )]" - } - - widget = { - ###Add Tooltip to show how long this maa will be loaned out. - size = { 68 64 } - visible = "[Not( ObjectsEqual( Regiment.GetOwningTitle, Regiment.GetControllingTitle ) )]" - - background = { - using = Background_Area_Dark - } - - text_single = { - visible = "[Not( ObjectsEqual( Regiment.GetOwningTitle, Regiment.GetControllingTitle ) )]" - parentanchor = top|hcenter - text = MV_ADMIN_ARMY_ARMIES_LOANED_LABEL - align = center - } - - coa_title_tiny = { - datacontext = "[Regiment.GetControllingTitle]" - parentanchor = bottom|hcenter - position = { 0 2 } - } - } - } - } - } - - spacer = { - size = { 0 5 } - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[MilitaryItem.ShouldShowItem]" - - button_standard = { - name = "add_maa" - layoutpolicy_horizontal = expanding - - text = "ADD_MEN_AT_ARMS_LABEL" - - onclick = "[MilitaryItem.OnClickTitle( Title.Self )]" - down = "[MilitaryItem.IsOpen]" - - tooltip = "CREATE_MAA_TOOLTIP" - - button_plus = { - name = "can_be_created" - visible = "[MilitaryItem.MaACanBeCreated]" - parentanchor = vcenter - alwaystransparent = yes - position = { 5 0 } - } - - warning_icon = { - name = "at_cap" - visible = "[Not(MilitaryItem.MaACanBeCreated)]" - parentanchor = left|vcenter - position = { 5 0 } - size = { 29 29 } - } - } - - spacer = { - size = { 5 0 } - } - - button_standard = { - name = "take_back_button" - visible = "[Character.IsPlayerInteractionShown('request_title_troops_back_interaction')]" - datacontext = "[Title.GetHolder]" - layoutpolicy_horizontal = expanding - max_width = 175 - - enabled = "[Character.IsPlayerInteractionValid('request_title_troops_back_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('request_title_troops_back_interaction', Title.Self)]" - tooltip = "[Character.GetPlayerInteractionTooltip('request_title_troops_back_interaction')]" - using = tooltip_sw - - text = "HIRED_TROOPS_VIEW_RECLAIM" - } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_top = 15 - margin_bottom = 5 - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - margin_left = 15 - margin_right = 5 - margin_top = -15 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - text = REALM_PROVINCIAL_ARMIES_TITLE - autoresize = yes - max_width = 270 - multiline = yes - using = Font_Size_Medium - } - - expand = { } - - text_single = { - text = MV_ADMIN_ARMY_ARMIES_REALM_STRENGTH - max_width = 200 - } - - text_single = { - text = "[MilitaryView.GetTotalAdminRealmStrengthString]" - default_format = "#high" - using = tooltip_ne - } - } - - hbox = { - visible = "[InDebugMode]" - - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 0 8 } - - expand = { } - - text_single = { - raw_text = "#D Military Power" - align = bottom - } - - text_single = { - align = bottom - text = "[MilitaryView.GetTotalAdminRealmPowerString]" - default_format = "#D;high" - using = tooltip_ne - } - } - - text_label_center = { - visible = "[And(MilitaryView.CanRequestAnyTitleArmyPersonally, Not(GetPlayer.IsIndependentRuler))]" - text = "MV_ADMIN_ARMY_HIRE_DIRECTLY" - } - - vbox = { - datamodel = "[MilitaryView.AccessAllAdministrativeArmies]" - layoutpolicy_horizontal = expanding - - item = { - widget_province_army_item = { - name = imperial_army_item - datacontext = "[HiredTroopItem.GetAdministrativeTitle]" - visible = "[And( Or( MilitaryView.CanRequestTitleArmyPersonally( Title.Self ), HiredTroopItem.IsHiredByPlayer ), MilitaryView.IsAdminTitleWithTroops( Title.Self ) )]" - } - } - } - - vbox = { - visible = "[Not(MilitaryView.DoesOtherUncontrolledTitlesExist)]" - margin = { 0 10 } - - text_single = { - text = "MV_ADMIN_ARMY_NO_UNCONTROLLED_TITLES" - default_format = "#weak" - align = center - } - - text_single = { - visible = "[Not(GetPlayer.IsIndependentRuler)]" - - text = "MV_ADMIN_ARMY_ASK_EMPEROR" - default_format = "#weak" - align = center - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[MilitaryView.AccessAllAdministrativeArmies]" - - item = { - widget_province_army_item = { - name = imperial_army_item_2 - datacontext = "[HiredTroopItem.GetAdministrativeTitle]" - visible = "[And( IsNotHiredByPlayer( Title ), And( Not( MilitaryView.CanRequestTitleArmyPersonally( Title.Self ) ), MilitaryView.IsAdminTitleWithTroops( Title.Self ) ) )]" - } - } - } - } - - type button_hireable_ruler_item = widget - { - datacontext = "[HiredTroopItem.GetHireableRuler]" - allow_outside = yes - - button_standard = { - allow_outside = yes - parentanchor = bottom|right - size = { 100% 85% } - - onclick = "[OpenHireableRulerDetailView( Character.Self )]" - down = "[IsHireableRulerDetailViewShown( Character.Self )]" - - tooltip = TT_MERCENARIES_HIREABLE_RULER - - vbox = { - allow_outside = yes - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 40 - - # Banner - widget = { - allow_outside = yes - layoutpolicy_horizontal = expanding - size = { 0 34 } - - # Status available - highlight_icon = { - visible = "[And( Character.IsHireableRuler, Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) )]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_green.dds" - } - - # Status commanded by you - highlight_icon = { - visible = "[Character.IsHireableRulerEmployedByLocalPlayer]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - - # Status unavailable - highlight_icon = { - visible = "[And( Or( Not( Character.IsHireableRuler ), And( Character.IsHireableRuler, Not(Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) ) ) ), Not(Character.IsHireableRulerEmployedByLocalPlayer) )]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - text_single = { - parentanchor = vcenter|left - position = { 0 -1 } - text = "[Character.GetPrimaryTitle.GetNameNoTooltip]" - align = nobaseline - max_width = 350 - using = Font_Size_Medium - } - - widget = { - parentanchor = vcenter|right - position = { -54 -1 } - size = { -1 24 } - - hbox = { - resizeparent = yes - - tooltip = "[SelectLocalization( HiredTroopItem.WillHireableRulerCauseBankrupcy, 'MERCENARY_COMPANY_COST_BANKRUPTCY', 'MERCENARY_COMPANY_COST_DEBT')]" - tooltip_visible = "[HiredTroopItem.WillHireableRulerCauseDebt]" - using = tooltip_ne - - highlight_icon = { - name = "debt" - #visible = no - visible = "[HiredTroopItem.WillHireableRulerCauseDebt]" - size = { 24 24 } - - texture = "gfx/interface/icons/symbols/icon_alert.dds" - } - - text_single = { - text = "[HiredTroopItem.GetHireableRulerCost]" - align = nobaseline|left - max_width = 350 - #using = Font_Size_Medium - - background = { - visible = "[HiredTroopItem.WillHireableRulerCauseDebt]" - margin_bottom = -2 - using = Status_Bad - } - } - } - } - - # Status icon & background - widget = { - parentanchor = top|right - position = { -10 -8 } - size = { 42 52 } - - - # Status available - highlight_icon = { - visible = "[And( Character.IsHireableRuler, Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) )]" - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_green_icon_bg.dds" - tooltip = MV_MERCENARIES_HIREABLE_RULER_STATUS - } - - icon_flat_standard_gold = { - visible = "[And( Character.IsHireableRuler, Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) )]" - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/army_select.dds" - tooltip = MV_MERCENARIES_HIREABLE_RULER_STATUS - } - - # Status Commanded by you - highlight_icon = { - visible = "[Character.IsHireableRulerEmployedByLocalPlayer]" - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_blue_icon_bg.dds" - tooltip = "MV_MERCENARIES_STATUS_COMMANDED" - } - - icon_flat_standard_gold = { - visible = "[Character.IsHireableRulerEmployedByLocalPlayer]" - parentanchor = top|hcenter - position = { 0 8 } - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/army_details.dds" - tooltip = "MV_MERCENARIES_STATUS_COMMANDED" - } - - # Status unavailable - highlight_icon = { - visible = "[And( Or( Not( Character.IsHireableRuler ), And( Character.IsHireableRuler, Not(Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) ) ) ), Not(Character.IsHireableRulerEmployedByLocalPlayer) )]" - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_red_icon_bg.dds" - tooltip = "[Character.GetPlayerInteractionTooltip( 'hire_laamp_mercenaries_interaction' )]" - } - - icon_flat_standard_gold = { - visible = "[And( Or( Not( Character.IsHireableRuler ), And( Character.IsHireableRuler, Not(Character.IsPlayerInteractionValid( 'hire_laamp_mercenaries_interaction' ) ) ) ), Not(Character.IsHireableRulerEmployedByLocalPlayer) )]" - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - tooltip = "[Character.GetPlayerInteractionTooltip( 'hire_laamp_mercenaries_interaction' )]" - } - } - } - - # Regiments type & size - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - margin_bottom = 3 - - overlappingitembox_regiment_types = { - datamodel = "[HiredTroopItem.GetRegiments]" - - layoutpolicy_horizontal = expanding - size = { -1 30 } - } - - hbox_soldiers_and_quality_small = { - datacontext = "[HiredTroopItem.GetComposition]" - } - } - } - - widget = { - allow_outside = yes - parentanchor = top|left - position = { -16 -24 } - size = { 62 74 } - - coa_realm_medium_crown = { - datacontext = "[Character.GetPrimaryTitle]" - parentanchor = center - scale = 0.7 - } - } - } - } -} - -types MilitaryView -{ - type army_automation_on_flat = widget - { - size = { 36 36 } - - icon_flat_standard_gold = { - size = { 100% 100% } - texture = "gfx/interface/colors/black.dds" - parentanchor = center - - modify_texture = { - name = "spin" - blend_mode = alphaMultiply - texture = "gfx/interface/icons/flat_icons/army_automation.dds" - rotate_uv = 0 - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - trigger_on_create = yes - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - } - } - - type army_automation_on = icon { - size = { 30 30 } - texture = "gfx/interface/colors/black.dds" - visible = "[Army.IsControlledByCompanionAI]" - - modify_texture = { - name = "spin" - texture = "gfx/interface/icons/army_status/army_status_automation.dds" - blend_mode = Normal - rotate_uv = 0 - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - - modify_texture = { - name = "spin_alpha" - blend_mode = alphaMultiply - texture = "gfx/interface/icons/army_status/army_status_automation.dds" - rotate_uv = 0 - } - - state = { - name = c - next = d - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin_alpha" - rotate_uv = -360 - } - } - - state = { - name = d - next = c - duration = 0 - - modify_texture = { - name = "spin_alpha" - rotate_uv = 0 - } - } - } - - type army_automation_on_big = icon { - size = { 30 30 } - texture = "gfx/interface/colors/black.dds" - visible = "[Army.IsControlledByCompanionAI]" - - modify_texture = { - name = "spin" - texture = "gfx/interface/icons/army_status/army_status_automation_big.dds" - blend_mode = Normal - rotate_uv = 0 - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - - modify_texture = { - name = "spin_alpha" - blend_mode = alphaMultiply - texture = "gfx/interface/icons/army_status/army_status_automation_big.dds" - rotate_uv = 0 - } - - state = { - name = c - next = d - trigger_on_create = yes - duration = 10 - - modify_texture = { - name = "spin_alpha" - rotate_uv = -360 - } - } - - state = { - name = d - next = c - duration = 0 - - modify_texture = { - name = "spin_alpha" - rotate_uv = 0 - } - } - } - - type button_toggle_companion_ai = button_standard { - size = { 36 36 } - - onclick = "[PostCommand( GetToggleCompanionAICommand )]" - down = "[GetPlayer.HasCompanionAI]" - - tooltip = "MV_AUTOMATION_TOGGLE_TT" - using = tooltip_sw - - button_army_automation = { - parentanchor = center - alwaystransparent = yes - size = { 32 32 } - - visible = "[Not(GetPlayer.HasCompanionAI)]" - } - - army_automation_on_flat = { - parentanchor = center - alwaystransparent = yes - - visible = "[GetPlayer.HasCompanionAI]" - } - } - - - type widget_event_troop_item = widget { - size = { 505 130 } - - background = { - using = Background_Area - } - - vbox = { - hbox = { - name = "header" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - margin_left = 7 - - background = { - using = Background_Area - } - - icon = { - name = "event_troops" - texture = "gfx/interface/icons/icon_special_troops.dds" - size = { 36 36 } - } - - spacer = { - size = { 5 0 } - } - - text_single = { - text = "[MilitaryViewEventTroop.GetName]" - align = nobaseline - default_format = "#high" - } - - expand = {} - - hbox_soldiers_and_quality_small = { - datacontext = "[MilitaryViewEventTroop.GetComposition]" - - blockoverride "background" { - background = { - using = Background_Area - margin = { 3 0 } - } - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_right = 10 - margin_bottom = 13 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - hbox = { - name = "menatarms" - layoutpolicy_horizontal = expanding - - text_single = { - text = MV_MEN_AT_ARMS_LABEL - align = nobaseline - } - - text_single = { - visible = "[IsDataModelEmpty(MilitaryViewEventTroop.GetRegiments)]" - text = MV_MEN_AT_ARMS_NONE - align = nobaseline - default_format = "#weak" - } - - spacer = { - size = { 5 0 } - } - - hbox = { - name = "regiment_types" - datamodel = "[MilitaryViewEventTroop.GetRegiments]" - layoutpolicy_vertical = expanding - - item = { - icon = { - size = { 30 30 } - texture = "[Regiment.GetMAAType.GetIcon]" - tooltipwidget = regiment_container_tooltip - using = tooltip_se - } - } - } - - expand = {} - } - - text_single = { - visible = "[Not(MilitaryViewEventTroop.IsInheritable)]" - - layoutpolicy_horizontal = expanding - text = "MILITARY_VIEW_EVENT_TROOPS_NOT_INHERITABLE" - } - - text_single = { - visible = "[MilitaryViewEventTroop.IsInheritable]" - - layoutpolicy_horizontal = expanding - text = "MILITARY_VIEW_EVENT_TROOPS_INHERITABLE" - } - - hbox = { - datacontext = "[MilitaryViewEventTroop.GetAssociatedWar]" - visible = "[War.IsValid]" - - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[MilitaryViewEventTroop.IsInheritable]" - text = "MILITARY_VIEW_EVENT_TROOPS_ASSOCIATED_WAR" - max_width = 450 - multiline = yes - } - - expand = {} - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin_right = 5 - - expand = {} - - button_standard = { - name = "raise" - size = { 100 32 } - onclick = "[OnRaiseEventTroops(MilitaryViewEventTroop.Self)]" - visible = "[MilitaryViewEventTroop.CanBeRaised]" - enabled = "[Not(MilitaryView.IsAutomatingArmies)]" - tooltip = "[MilitaryView.GetCanRaiseEventTroopTooltip]" - - hbox = { - margin = { 5 0 } - - button_army_details = { - size = { 28 28 } - alwaystransparent = yes - } - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "MILITARY_VIEW_EVENT_TROOPS_RAISE" - default_format = "#clickable" - } - } - } - } - } - } - } - - type container_maa_item = container { - datacontext = "[Regiment.GetMAAType]" - using = tooltip_es - - background = { - block "maa_texture" - { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( GetPlayer.GetCulture )]" - } - alpha = 0.7 - fittype = centercrop - margin = { -2 -2 } - } - - background = { - using = Background_Button_Illustration - visible = "[Regiment.IsShownInMaaView]" - } - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - tooltipwidget = { - using = regiment_container_text_tooltip - - blockoverride "extra_info" { - divider_light = { - layoutpolicy_horizontal = expanding - } - text_multi = { - layoutpolicy_horizontal = expanding - visible = "[MenAtArmsType.GetSubjectProvider( GetPlayer ).IsValid]" - text = "MEN_AT_ARMS_PROVIDED_BY_SUBJECT" - margin = { 10 0 } - } - text_single = { - layoutpolicy_horizontal = expanding - text = "CLICK_TO_SELECT" - margin = { 10 0 } - } - } - } - - button_standard_clean = { - name = "maa_entry" - size = { 166 90 } - - vbox = { - expand = {} - - hbox = { - margin = { 8 4 } - spacing = 2 - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - icon = { - name = "icon_maa" - texture = [MenAtArmsType.GetIcon] - size = { 20 20 } - } - - text_single = { - text = "[Regiment.BuildCurrentRegimentCountString|V]" - default_format = "#high" - } - - expand = {} - - text_single = { - text = "TOTAL_MAA_COST" - tooltip = "TOTAL_MAA_COST_TOOLTIP" - - default_format = "#high" - } - } - } - - button_normal = { - visible = "[Not(Regiment.IsShownInMaaView)]" - size = { 100% 100% } - onclick = "[Regiment.ToggleMaaView]" - } - - text_label_right = { - visible = "[And( Not(Regiment.IsRaised), GetPlayer.IsAtWar)]" - text = "MAA_UNRAISED" - using = Font_Size_Small - default_format = "#X" - parentanchor = top|right - position = {-10 1} - } - - text_label_right = { - visible = "[Not(And( Not(Regiment.IsRaised), GetPlayer.IsAtWar))]" - text = "MAA_CURRENT_SIZE" - using = Font_Size_Small - parentanchor = top|right - position = {-10 1} - } - - text_label_right = { - visible = "[And( Not( Regiment.GetOriginProvince.IsValid ), GetPlayer.HasDomainProvincesForMAAOrigin )]" - text = "MAA_UNSTATIONED" - default_format = "#X" - using = Font_Size_Small - parentanchor = top|right - position = { -10 22 } - } - - button_normal = { - visible = "[GetVariableSystem.Exists( 'menatarms_open' )]" - size = { 100% 100% } - onclick = "[PdxGuiTriggerAllAnimations('menatarms_refresh')]" - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[Regiment.ToggleMaaView]" - } - } - } - } -} - -types HiredTroops -{ - type button_mercenary_list_item = widget - { - allow_outside = yes - - button_standard = { - allow_outside = yes - parentanchor = bottom|right - size = { 100% 85% } - - tooltip = "HIRED_TROOPS_VIEW_LIST_MC_BUTTON_TOOLTIP" - tooltip_visible = "[Or(Not(MercenaryCompany.IsHired), MercenaryCompany.IsHiredByLocalPlayer)]" - - down = "[IsMercenaryCompanyDetailViewShown(MercenaryCompany.Self)]" - - button = { - visible = "[Or( IsMercenaryCompanyDetailViewShown(MercenaryCompany.Self), Not(GetVariableSystem.Exists( 'hired_troop_detail_view_open' )))]" - size = { 100% 100% } - onclick = "[ToggleMercenaryCompanyDetailView(MercenaryCompany.Self)]" - } - - button = { - visible = "[And( GetVariableSystem.Exists( 'hired_troop_detail_view_open' ), Not( IsMercenaryCompanyDetailViewShown(MercenaryCompany.Self) ) )]" - size = { 100% 100% } - onclick = "[PdxGuiTriggerAllAnimations('mercenary_details_refresh')]" - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[ToggleMercenaryCompanyDetailView(MercenaryCompany.Self)]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 40 - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 34 } - - # Status available - highlight_icon = { - visible = "[And( Not( MercenaryCompany.IsHired ), Not( MercenaryCompany.WillGoInBankruptcy( GetPlayer.Self ) ) )]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_green.dds" - } - - highlight_icon = { - visible = "[Or( And( Not( MercenaryCompany.IsHired ), MercenaryCompany.WillGoInBankruptcy(GetPlayer.Self) ), And( Not( MercenaryCompany.IsHiredByLocalPlayer ), MercenaryCompany.IsHired ) )]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - highlight_icon = { - visible = "[MercenaryCompany.IsHiredByLocalPlayer]" - position = { -2 2 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - - text_single = { - parentanchor = left|vcenter - position = { 0 -1 } - text = "[MercenaryCompany.GetName]" - align = nobaseline - default_format = "#high" - max_width = 300 - using = Font_Size_Medium - } - - # Status icon & background - widget = { - parentanchor = top|right - position = { -10 -8 } - size = { 42 52 } - - # Status available - widget = { - visible = "[And( And( Not( MercenaryCompany.IsHired ), Not( MercenaryCompany.WillGoInBankruptcy( GetPlayer.Self ) ) ), Not( MercenaryCompany.WillGoInDebt( GetPlayer.Self ) ) )]" - parentanchor = center - size = { 100% 100% } - - tooltip = "MV_MERCENARIES_STATUS_AVAILABLE" - - highlight_icon = { - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_green_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/army_select.dds" - } - } - - # Status commanded by you - widget = { - visible = "[MercenaryCompany.IsHiredByLocalPlayer]" - parentanchor = center - size = { 100% 100% } - - tooltip = "MV_MERCENARIES_STATUS_COMMANDED" - - highlight_icon = { - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_blue_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 8 } - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/army_details.dds" - } - } - - # Status debt - widget = { - visible = "[And( Not( MercenaryCompany.IsHired ), MercenaryCompany.WillGoInDebt( GetPlayer.Self ) )]" - parentanchor = center - size = { 100% 100% } - - tooltip = "[SelectLocalization(MercenaryCompany.IsHiredByLocalPlayer, 'MERCENARY_COMPANY_COST_DEBT_HIRED', 'MERCENARY_COMPANY_COST_DEBT')]" - - highlight_icon = { - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_green_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/army_select.dds" - } - } - - # Status unavailable - widget = { - visible = "[And( Not( MercenaryCompany.IsHired ), MercenaryCompany.WillGoInBankruptcy(GetPlayer.Self) )]" - parentanchor = center - size = { 100% 100% } - - tooltip = "[SelectLocalization(MercenaryCompany.IsHiredByLocalPlayer, 'MERCENARY_COMPANY_COST_BANKRUPTCY_HIRED', 'MERCENARY_COMPANY_COST_BANKRUPTCY')]" - - highlight_icon = { - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_red_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 9 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - } - - # Status unavailable, hired by other - widget = { - visible = "[And( Not( MercenaryCompany.IsHiredByLocalPlayer ), MercenaryCompany.IsHired )]" - parentanchor = center - size = { 100% 100% } - - tooltip = "HIRED_TROOPS_VIEW_NOT_AVAILABLE" - - highlight_icon = { - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_red_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 9 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - } - } - - widget = { - parentanchor = right|vcenter - position = { -58 -1 } - size = { 192 34 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - expand = {} - - highlight_icon = { - name = "debt" - visible = "[MercenaryCompany.WillGoInDebt(GetPlayer.Self)]" - size = { 24 24 } - texture = "gfx/interface/icons/symbols/icon_alert.dds" - - tooltip = "[SelectLocalization(MercenaryCompany.IsHiredByLocalPlayer, 'MERCENARY_COMPANY_COST_DEBT_HIRED', 'MERCENARY_COMPANY_COST_DEBT')]" - using = tooltip_se - } - - text_single = { - name = "cost_label" - text = "[MercenaryCompany.GetCostDesc]" - alwaystransparent = yes - align = nobaseline - - background = { - visible = "[Or(MercenaryCompany.WillGoInDebt(GetPlayer.Self), MercenaryCompany.WillGoInBankruptcy(GetPlayer.Self))]" - margin_bottom = -2 - using = Status_Bad - } - } - } - } - } - - # Regiments type & size - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - margin_bottom = 3 - - overlappingitembox = { - name = "regiment_types" - layoutpolicy_horizontal = expanding - size = { -1 30 } - - block "HiredTroopMenAtArmsTypesDataModel" { } - - item = { - icon = { - name = "men_at_arms_icon" - datacontext = "[HiredTroopRegiment.GetRegiment]" - size = { 30 30 } - texture = "[Regiment.GetMAAType.GetIcon]" - tooltipwidget = regiment_container_tooltip - using = tooltip_se - - } - } - } - - text_single = { - name = "hired_by_label" - visible = "[MercenaryCompany.IsHired]" - align = left|nobaseline - text = "[SelectLocalization( MercenaryCompany.IsHiredByLocalPlayer, 'HIRED_TROOPS_VIEW_MC_HIRED_TIME_LEFT', 'HIRED_TROOPS_VIEW_NOT_AVAILABLE' )]" - } - - hbox_soldiers_and_quality_small = { - datacontext = "[HiredTroopItem.GetComposition]" - } - } - } - - widget = { - allow_outside = yes - parentanchor = top|left - position = { -16 -21 } - size = { 62 74 } - - coa_realm_medium = { - datacontext = "[MercenaryCompany.GetTitle.GetHolder]" - parentanchor = center - scale = 0.7 - } - } - } - } - - type button_holyorder_list_item = widget - { - allow_outside = yes - - button_standard = { - allow_outside = yes - parentanchor = bottom|right - size = { 100% 85% } - - tooltip = "HIRED_TROOPS_VIEW_LIST_HO_BUTTON_TOOLTIP" - - down = "[IsHolyOrderDetailViewShown(HolyOrder.Self)]" - - button = { - visible = "[Not(GetVariableSystem.Exists( 'hired_troop_detail_view_open' ))]" - size = { 100% 100% } - enabled = "[Or(Not(HolyOrder.IsHired), Or(HolyOrder.IsHiredByLocalPlayer, HolyOrder.IsPlayerPatron))]" - onclick = "[OpenHolyOrderDetailView(HolyOrder.Self)]" - } - - button = { - visible = "[GetVariableSystem.Exists( 'hired_troop_detail_view_open' )]" - size = { 100% 100% } - onclick = "[PdxGuiTriggerAllAnimations('mercenary_details_refresh')]" - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[OpenHolyOrderDetailView(HolyOrder.Self)]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 40 - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 34 } - - # Status available - highlight_icon = { - visible = "[Not( HolyOrder.IsHired )]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_green.dds" - } - - # Status commanded by you - highlight_icon = { - visible = "[HolyOrder.IsHired]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_blue.dds" - } - - highlight_icon = { - visible = "[And(HolyOrder.IsHired, HolyOrder.IsPledgedToGreatHolyWar)]" - position = { -2 1 } - size = { 100% 100% } - texture = "gfx/interface/window_military/military_banner_red.dds" - } - - text_single = { - parentanchor = vcenter|left - position = { 0 -1 } - text = "[HolyOrder.GetName]" - default_format = "#high" - align = nobaseline - max_width = 300 - using = Font_Size_Medium - } - - text_single = { - name = "cost_label" - parentanchor = right|vcenter - position = { -58 -1 } - text = "[HolyOrder.GetCostDescForPlayer]" - align = nobaseline - } - - # Status icon & background - widget = { - parentanchor = top|right - position = { -10 -8 } - size = { 42 52 } - - # Status available - widget = { - visible = "[Not( HolyOrder.IsHired )]" - parentanchor = center - size = { 100% 100% } - - tooltip = "MV_MERCENARIES_STATUS_AVAILABLE" - - highlight_icon = { - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_green_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 12 } - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/army_select.dds" - } - } - - # Status commanded by you - widget = { - visible = "[HolyOrder.IsHired]" - parentanchor = center - size = { 100% 100% } - - tooltip = "MV_MERCENARIES_STATUS_COMMANDED" - - highlight_icon = { - parentanchor = center - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_blue_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 8 } - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/army_details.dds" - } - } - - # Status unavailable - widget = { - visible = "[And(HolyOrder.IsHired, HolyOrder.IsPledgedToGreatHolyWar)]" - parentanchor = center - size = { 100% 100% } - - tooltip = "HIRED_TROOPS_VIEW_PLEDGED_TO_GREAT_HOLY_WAR" - - highlight_icon = { - parentanchor = center - position = { 0 2} - size = { 42 52 } - texture = "gfx/interface/window_military/military_banner_red_icon_bg.dds" - } - - icon_flat_standard_gold = { - parentanchor = top|hcenter - position = { 0 9 } - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/cancel.dds" - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - margin_bottom = 3 - - overlappingitembox = { - name = "regiment_types" - layoutpolicy_horizontal = expanding - size = { -1 30 } - - block "HiredTroopMenAtArmsTypesDataModel" { } - - item = { - icon = { - datacontext = "[HiredTroopRegiment.GetRegiment]" - datacontext = "[Regiment.GetMAAType]" - name = "men_at_arms_icon" - size = { 30 30 } - texture = "[MenAtArmsType.GetIcon]" - - tooltipwidget = regiment_container_tooltip - } - } - } - - hbox_soldiers_and_quality_small = { - datacontext = "[HiredTroopItem.GetComposition]" - } - } - } - - widget = { - allow_outside = yes - parentanchor = top|left - position = { -16 -21 } - size = { 62 74 } - - coa_realm_medium = { - name = "realm_flag" - datacontext = "[HolyOrder.GetTitle.GetHolder]" - parentanchor = center - scale = 0.7 - } - } - } - } -} diff --git a/N3OW/gui/window_move_domicile.gui b/N3OW/gui/window_move_domicile.gui deleted file mode 100644 index 2ce97981..00000000 --- a/N3OW/gui/window_move_domicile.gui +++ /dev/null @@ -1,125 +0,0 @@ -window = { - name = "window_move_domicile" - widgetid = "window_move_domicile" - size = { 100% 100% } - movable = no - layer = middle - alwaystransparent = yes - - datacontext = "[GetVariableSystem]" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - location_picking_text_widget = { - position = { 0 0 } - } -} - -types task_contract_travel_windows { - type location_picking_text_widget = widget - { - size = { 600 140 } - - name = "location_selection_guide" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - margin = { 16 16 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_vertical = expanding - - margin = { 15 0 } - margin_top = 5 - margin_bottom = 10 - - background = { - texture = "gfx/interface/illustrations/event_scenes/ep2_travel_bridge.dds" - alpha = 0.2 - fittype = centercrop - mirror = horizontal - - margin_top = -40 - margin_right = -100 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - margin = { 20 0 } - margin_top = 10 - margin_bottom = 15 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "MOVE_DOMICILE_DESTINATION_SELECTION_HEADER" - default_format = "#T" - using = Font_Size_Big - max_width = 420 - align = left - } - - expand = {} - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - button_tertiary = { - name = "quit" - text = "QUIT" - min_width = 300 - - onclick = "[MoveDomicileWindow.Close]" - shortcut = "close_window" - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_my_realm.gui b/N3OW/gui/window_my_realm.gui deleted file mode 100644 index 9f15d5be..00000000 --- a/N3OW/gui/window_my_realm.gui +++ /dev/null @@ -1,4310 +0,0 @@ -###################################################### -##################### MY REALM ####################### -###################################################### - -window = { - name = "my_realm_window" - widgetid = "my_realm_window" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - allow_outside = yes - movable = no - layer = windows_layer - - using = Window_Size_MainTab - - state = { - name = on_create - trigger_on_create = yes - - on_start = "[GetVariableSystem.Set( 'bookmark_domain', 'true' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_laws' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_subjects' )]" - on_start = "[GetVariableSystem.Clear( 'bookmark_succession' )]" - } - - state = { - name = _show - next = refresh_bookmark_tabs - - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - state = { - name = refresh_bookmark_tabs - on_start = "[GetVariableSystem.Set( 'bookmark_domain', 'true' )]" - on_start = "[GetVariableSystem.Set( 'bookmark_subjects', 'true' )]" - on_start = "[GetVariableSystem.Set( 'bookmark_succession', 'true' )]" - on_start = "[GetVariableSystem.Set( 'bookmark_laws', 'true' )]" - on_start = "[GetVariableSystem.ClearIf( 'bookmark_domain', Not( MyRealmWindow.IsActiveTab( 'bookmark_domain' ) ) )]" - on_start = "[GetVariableSystem.ClearIf( 'bookmark_subjects', Not( MyRealmWindow.IsActiveTab( 'bookmark_subjects' ) ) )]" - on_start = "[GetVariableSystem.ClearIf( 'bookmark_succession', Not( MyRealmWindow.IsActiveTab( 'bookmark_succession' ) ) )]" - on_start = "[GetVariableSystem.ClearIf( 'bookmark_laws', Not( MyRealmWindow.IsActiveTab( 'bookmark_laws' ) ) )]" - } - - ### BOOKMARK SIDE TABS - widget = { - position = { -64 220 } - size = { 100 208 } - scissor = yes - - allow_outside = yes - - flowcontainer = { - parentanchor = right|vcenter - position = { 7 0 } - direction = vertical - ignoreinvisible = yes - allow_outside = yes - - ### BOOKMARK TAB DOMAIN - button_tab_vertical_bookmark = { - name = "tab_domain" #tutorial uses this - down = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Set( 'bookmark_domain', 'true' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_subjects' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_succession' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_laws' )]" - onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_domain' )]" - onclick = "[MyRealmWindow.ResetMapMode]" - - tooltip = "MY_REALM_WINDOW_BOOKMARK_DOMAIN_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_domain' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/legend_province_modifier.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - } - } - - ### BOOKMARK TAB SUBJECTS (OR VASSALS) - button_tab_vertical_bookmark = { - name = "tutorial_highlight_vassals_tab" - visible = "[GetPlayer.IsLandedRuler]" - down = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Clear( 'bookmark_domain' )]" - onclick = "[GetVariableSystem.Set( 'bookmark_subjects', 'true' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_succession' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_laws' )]" - onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_subjects' )]" - - tooltip = "MY_REALM_WINDOW_BOOKMARK_SUBJECTS_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_subjects' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/clan_contract.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - } - - ### BOOKMARK TAB LAWS - button_tab_vertical_bookmark = { - name = "tutorial_highlight_laws_tab" - down = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Clear( 'bookmark_domain' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_subjects' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_succession' )]" - onclick = "[GetVariableSystem.Set( 'bookmark_laws', 'true' )]" - onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_laws' )]" - onclick = "[MyRealmWindow.ResetMapMode]" - - tooltip = "MY_REALM_WINDOW_BOOKMARK_LAWS_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_laws' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/title_actions/add_laws.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - } - } - - ### BOOKMARK TAB SUCCESSION - button_tab_vertical_bookmark = { - name = "tutorial_highlight_succession_tab" - down = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - - blockoverride "tab_button" - { - onclick = "[GetVariableSystem.Clear( 'bookmark_domain' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_subjects' )]" - onclick = "[GetVariableSystem.Set( 'bookmark_succession', 'true' )]" - onclick = "[GetVariableSystem.Clear( 'bookmark_laws' )]" - onclick = "[MyRealmWindow.SetActiveTab( 'bookmark_succession' )]" - onclick = "[MyRealmWindow.ResetMapMode]" - - tooltip = "MY_REALM_WINDOW_BOOKMARK_SUCCESSION_TT" - } - - blockoverride = "tab_glow" - { - visible = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - } - - blockoverride "tab_active" - { - trigger_when = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( GetVariableSystem.Exists( 'bookmark_succession' ) )]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/flat_icons/heir.dds" - - down = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - } - - blockoverride "tab_frame_texture" - { - down = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - } - } - } - } - - ### Solution to make tabs look like they are layered under main tab window without code support since Maintab background seems to be set in by code somehow - icon = { - position = { 22 195 } - size = { 14 260 } - texture = "gfx/interface/component_tiles/tab_group_edge.dds" - alpha = 0.95 - texture_density = 2 - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 30 } - margin_right = 13 - - widget = { - size = { 100% 100% } - - ### WINDOW CONTENT - vbox = { - widgetid = "realm_panel_contents" #tutorial uses this - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - header_text = { - visible = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - parentanchor = top|hcenter - position = { 0 8 } - - text = "MY_REALM_WINDOW_HEADER" - align = nobaseline - } - - header_text = { - visible = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - parentanchor = top|hcenter - position = { 0 8 } - - text = "MY_REALM_WINDOW_BODY_TITLE_SUBJECTS" - align = nobaseline - } - - header_text = { - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - visible = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - parentanchor = top|hcenter - position = { 0 8 } - - text = "MY_REALM_WINDOW_BODY_TITLE_SUCCESSION" - align = nobaseline - } - - header_text = { - visible = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - parentanchor = top|hcenter - position = { 0 8 } - - text = "MY_REALM_WINDOW_BODY_TITLE_LAWS" - align = nobaseline - } - - blockoverride "header_text" {} - - blockoverride "button_close" - { - onclick = "[MyRealmWindow.Close]" - } - } - - ### Default Header - widget_my_realm_header = { - datacontext = "[GetPlayer]" - visible = "[Not( IsLandlessAdventurer( Character ) )]" - - blockoverride "show_overlord" - { - visible = "[Character.HasOverlord]" - } - - blockoverride "show_diarchy" {} - } - - ### Adventurer Header - widget_my_realm_header = { - datacontext = "[GetPlayer]" - visible = "[IsLandlessAdventurer( Character )]" - - blockoverride "header_subtitle" - { - vbox = { - spacing = 2 - - text_single = { - name = "realm_type_adv" - text = "you_are_an_adventurer_tt" - align = nobaseline - } - - text_single = { - text = "MY_REALM_WINDOW_DOMICILE_LOCATION" - align = nobaseline - } - } - } - } - - ## MY_REALM BODY HEADERS - vbox = { - layoutpolicy_horizontal = expanding - - vbox_my_realm_subjects_top = { - visible = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - - mandala_laws = { - visible = "[And(GetPlayer.GetGovernment.IsType( 'mandala_government' ), GetVariableSystem.Exists( 'bookmark_laws' ))]" - } - - vbox_my_realm_laws_top = { - visible = "[GetVariableSystem.Exists( 'bookmark_laws' ) ]" - } - - vbox_my_realm_succession_body_top = { - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - visible = "[And( GetVariableSystem.Exists( 'bookmark_succession' ), Not( KurultaiSuccession.IsValid ) )]" - } - } - - ### MY_REALM MAIN CONTENTS / BODY - scrollbox = { - name = "my_realm_body" - datacontext = "[MyRealmWindow.GetCharacter]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[IsLandlessAdventurer( GetPlayer )]" - texture = "gfx/interface/skinned/illustrations/camp_bg.dds" - fittype = end - alpha = 0.5 - framesize = { 1500 848 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[IsNomad( GetPlayer )]" - texture = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds" - fittype = end - alpha = 0.5 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - blockoverride "scrollbox_margins" { - margin = { 0 5 } - margin_left = 10 - margin_right = 10 - } - - blockoverride "scrollbox_content" - { - vbox_my_realm_domain_body = { - widgetid = "my_realm_domain_body" #ra_merit_governor_holdings_open uses this - visible = "[GetVariableSystem.Exists( 'bookmark_domain' )]" - } - - vbox_my_realm_subjects_body = { - visible = "[GetVariableSystem.Exists( 'bookmark_subjects' )]" - } - - vbox_my_realm_succession_body = { - visible = "[GetVariableSystem.Exists( 'bookmark_succession' )]" - } - - vbox_my_realm_laws_body = { - visible = "[GetVariableSystem.Exists( 'bookmark_laws' )]" - } - } - } - - ### MY_REALM FOOTER STATS - hbox_my_realm_footer_stats = { - visible = "[And( Not( MyRealmWindow.IsPrimaryTitleTitular ), Or( GetVariableSystem.Exists( 'bookmark_domain' ), GetVariableSystem.Exists( 'bookmark_subjects' ) ) )]" - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -template My_Realm_Cell_Size -{ - min_width = 95 - max_width = 95 -} - -types MyRealmWindow -{ - type my_realm_coa_tiny_item = coa_title_tiny_crown - { - datacontext = "[TitleItem.GetTitle]" - parentanchor = left|vcenter - using = tooltip_ne - - icon = { - name = "has_laws" - visible = "[TitleItem.GetTitle.HasLaws]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - - icon = { - name = "is_nomad" - visible = "[TitleItem.GetTitle.IsNomad]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_nomad.dds" - } - } - - type widget_my_realm_header = widget_header_with_picture { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "[GetPlayer.GetPrimaryTitle.GetNameNoTooltip|U]" - } - - blockoverride "size" { - size = { 100% 130 } - } - - blockoverride "header_size" - { - size = { 100% 40 } - } - - blockoverride "header_position" { - position = { 0 -12 } - } - - blockoverride "header_background_visibility" { - visible = no - } - - blockoverride header_pattern_visibility { - visible = no - } - - blockoverride header_label_visibility { - visible = yes - } - - blockoverride "illustration_texture" { - texture = "gfx/interface/skinned/illustrations/header_illustrations/header_my_realm.dds" - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - blockoverride "button_close" - { - visible = no - } - - vbox = { - parentanchor = center - margin_top = 36 - max_width = 350 - - ### MY_REALM HEADER CENTER - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### SUBTITLE - vbox = { - block "header_subtitle" - { - hbox = { - datacontext = "[GetPlayer.GetActiveLawInGroupWithFlag( 'realm_law' )]" - - ### AUTHORITY ICON - authority_icon = {} - - hbox = { - margin_left = 5 - spacing = 15 - - text_single = { - name = "realm_type" - text = "MY_REALM_WINDOW_TYPE" - max_width = 160 - align = nobaseline - } - - text_single = { - text = "REALM_WINDOW_SIZE" - align = nobaseline - max_width = 140 - tooltip = "REALM_WINDOW_SIZE_TT" - } - } - } - - vbox = { - spacing = -8 - margin_bottom = 12 - - ## OVERLORD INFO - vbox = { - name = "overlord" - margin_top = -8 - - block "show_overlord" - { - visible = no - } - - hbox = { - datacontext = "[MyRealmWindow.GetCharacter.GetOverlord]" - spacing = 4 - - button_icon_highlight = { - visible = "[Not(IsNomad( Character ))]" - datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" - size = { 32 32 } - texture = "[Law.GetIcon]" - tooltipwidget = { general_law_tooltip = {} } - using = tooltip_ws - } - - icon = { - visible = "[IsNomad( Character )]" - datacontext = "[Character.GetActiveLawInGroupWithFlag( 'realm_law' )]" - size = { 32 32 } - texture = "[Law.GetIcon]" - tooltipwidget = { general_law_tooltip = {} } - using = tooltip_ws - } - - text_single = { - visible = "[GetPlayer.HasSuzerain]" - text = "MY_REALM_WINDOW_SUZERAIN_NAME" - align = nobaseline - max_width = 280 - } - - text_single = { - visible = "[GetPlayer.HasLiege]" - text = "MY_REALM_WINDOW_LIEGE_NAME" - align = nobaseline - max_width = 280 - } - - coa_realm_tiny_crown = {} - } - } - - ## REGENCY / DIARCHY - hbox = { - datacontext = "[MyRealmWindow.GetCharacter]" - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - margin = { 40 -3 } - margin_left = 10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - } - - block "show_diarchy" - { - visible = no - } - - spacing = 10 - - expand = {} - - button_round = { - name = "open_future_diarchy_tutorial_uses_this" - widgetid = "open_future_diarchy_tutorial_uses_this" - size = { 32 32 } - - onclick = "[ToggleGameViewData( 'diarchy', Character.GetID )]" - tooltip = "DIARCHY_WINDOW_OPEN_TOOLTIP" - - button_icon = { - parentanchor = center - position = { 0 -1 } - size = { 24 24 } - alwaystransparent = yes - texture = "gfx/interface/window_regency/scale_of_power.dds" - } - } - - hbox = { - datacontext = "[Character.GetDiarchy]" - - text_single = { - visible = "[Diarchy.IsValid]" - - text = "DIARCHY_WINDOW_STATUS_ACTIVE_DIARCHY" - align = nobaseline - } - - text_single = { - visible = "[Not( Diarchy.IsValid )]" - - text = "DIARCHY_WINDOW_STATUS_INACTIVE_DIARCHY" - align = nobaseline - margin_right = 10 - } - } - - expand = {} - - } - } - } - } - - ### BELOW SUBTITLE - - expand = {} - } - } - - ### HEADER LEFT WIDGET - widget = { - size = { 64 99 } - allow_outside = yes - - ### COAT OF ARMS - coa_realm_medium_crown = { - position = { 30 0 } - } - } - - ### HEADER RIGHT WIDGET - widget = { - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - visible = "[KurultaiSuccession.IsValid]" - parentanchor = right|vcenter - position = { -25 0 } - size = { 84 84 } - allow_outside = yes - name = "kurultai_succession_stability" - - tooltipwidget = { - widget_kurultai_succession_tooltip = {} - } - - ### KURULTAI SUCCESSION ICON PEACEFUL - widget = { - visible = "[KurultaiSuccession.IsStable]" - parentanchor = center - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_peaceful.dds" - } - - icon_flat_standard = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_peaceful.dds" - } - } - - ### KURULTAI SUCCESSION ICON CHAOTIC - widget = { - visible = "[Not( KurultaiSuccession.IsStable )]" - parentanchor = center - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_chaotic.dds" - } - - icon_flat_standard_red = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_chaotic.dds" - } - } - } - } - - type hbox_my_realm_footer_stats = hbox { - datacontext = "[MyRealmWindow.GetCharacter]" - layoutpolicy_horizontal = expanding - - margin = { 10 0 } - margin_top = 15 - margin_bottom = 5 - - expand = { - visible = "[Not( Character.HasOverlord )]" - } - - ### YOUR INCOME - vbox = { - layoutpolicy_vertical = expanding - margin_left = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_YOUR_INCOME" - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 15 - min_height = 25 - - expand = {} - - ### SUBJECT / VASSAL LABEL - hbox = { - layoutpolicy_horizontal = expanding - - using = My_Realm_Cell_Size - - expand = {} - - text_single = { - text = "MY_REALM_WINDOW_FROM_VASSALS" - align = nobaseline|right - max_width = 70 - } - } - - ### TRIBUTARY LABEL - hbox = { - layoutpolicy_horizontal = expanding - - using = My_Realm_Cell_Size - - expand = {} - - text_single = { - text = "MY_REALM_WINDOW_FROM_TRIBUTARIES" - align = nobaseline|right - max_width = 90 - } - } - - ### DOMAIN LABEL - hbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - using = My_Realm_Cell_Size - - expand = {} - - warning_icon = { - visible = "[MyRealmWindow.IsOverDomainLimit]" - size = { 25 25 } - - tooltip = "[Character.GetDomainLimitTooltip]" - } - - text_single = { - text = "MY_REALM_WINDOW_FROM_HOLDINGS" - align = nobaseline|right - max_width = 70 - } - } - } - - ### TAXES - hbox_realm_stats_row = { - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_TAXES" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_gold.dds" - } - - blockoverride "cell_subjects" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetVassalsIncome]" - } - } - } - - blockoverride "cell_tributaries" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetTributariesIncome]" - } - } - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetDomainIncome]" - } - } - } - } - - ### LEVIES - hbox_realm_stats_row = { - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_LEVIES" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_levies.dds" - } - - blockoverride "cell_subjects" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetVassalsLevy]" - } - } - } - - blockoverride "cell_tributaries" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetTributariesLevy]" - } - } - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetDomainLevy]" - } - } - } - } - - ### HERD - hbox_realm_stats_row = { - visible = "[IsNomad( Character )]" - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_HERD" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_herd.dds" - } - - blockoverride "cell_subjects" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetVassalsHerd]" - } - } - } - - blockoverride "cell_tributaries" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetTributariesHerd]" - } - } - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetDomainHerd]" - } - } - } - } - - ### BARTER GOODS - hbox_realm_stats_row = { - visible = "[Character.HasBarterGoods]" - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_BARTER_GOODS" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_barter.dds" - } - - blockoverride "cell_subjects" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetVassalsBarterGoods]" - } - } - } - - blockoverride "cell_tributaries" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetTributariesBarterGoods]" - } - } - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetDomainBarterGoods]" - } - } - } - } - - expand = {} - } - - ### TO LIEGE - vbox = { - visible = "[Character.HasOverlord]" - layoutpolicy_vertical = expanding - margin_left = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "[SelectLocalization(Character.HasSuzerain, 'MY_REALM_WINDOW_FROM_TO_SUZERAIN', 'MY_REALM_WINDOW_FROM_TO_LIEGE')]" - } - - hbox = { - layoutpolicy_horizontal = expanding - min_height = 25 - - ### LIEGE NAME - text_single = { - layoutpolicy_horizontal = expanding - max_width = 170 - - text = "[Character.GetOverlord.GetShortUIName]" - align = nobaseline - } - - expand = {} - } - - ### TAXES TO LIEGE - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - hbox_realm_stats_row = { - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_TAXES" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_gold.dds" - } - - blockoverride "cell_subjects" - { - visible = no - } - - blockoverride "cell_tributaries" { - visible = no - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetIncomeTax]" - } - - blockoverride "cell_value_tooltip" - { - tooltipwidget = { - tooltip_my_realm_to_liege = {} - } - } - } - } - } - - ### LEVIES TO LIEGE - hbox_realm_stats_row = { - visible = "[Not( IsNomad( Character ) )]" - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_LEVIES" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_levies.dds" - } - - blockoverride "cell_subjects" - { - visible = no - } - - blockoverride "cell_tributaries" { - visible = no - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetLevyTax]" - } - - blockoverride "cell_value_tooltip" - { - tooltipwidget = { - tooltip_my_realm_to_liege = {} - } - } - } - } - } - - ### HERD TO LIEGE - hbox_realm_stats_row = { - visible = "[IsNomad( Character )]" - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_HERD" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/icons/icon_herd.dds" - } - - blockoverride "cell_subjects" - { - visible = no - } - - blockoverride "cell_tributaries" { - visible = no - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetHerdTax]" - } - - blockoverride "cell_value_tooltip" - { - tooltipwidget = { - tooltip_my_realm_to_liege = {} - } - } - } - } - } - - ### BARTER GOODS TO LIEGE - hbox_realm_stats_row = { - visible = "[Character.HasBarterGoods]" - margin_right = 15 - - blockoverride "icon_tooltip" - { - tooltip = "MY_REALM_WINDOW_BARTER_GOODS" - } - - blockoverride "icon_texture" - { - texture = "gfx/interface/_debug/placeholder.dds" - } - - blockoverride "cell_subjects" - { - visible = no - } - - blockoverride "cell_tributaries" { - visible = no - } - - blockoverride "cell_domain" - { - cell_value_text = { - blockoverride "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetBarterGoodsTax]" - } - - blockoverride "cell_value_tooltip" - { - tooltipwidget = { - tooltip_my_realm_to_liege = {} - } - } - } - } - } - - expand = {} - } - - ### BUTTONS ( TO LIEGE ) - vbox = { - ### MODIFY YOUR VASSAL CONTRACT - button_round = { - datacontext = "[MyRealmWindow.GetCharacter.GetLiege]" - datacontext = "[MyRealmWindow.GetCharacter.GetVassalContract]" - visible = "[Character.IsPlayerInteractionShown( 'vassal_modify_vassal_contract_interaction' )]" - - onclick = "[Character.OpenPlayerInteraction('vassal_modify_vassal_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('vassal_modify_vassal_contract_interaction')]" - using = tooltip_se - - button_feudal_contract = { - parentanchor = center - alwaystransparent = yes - size = { 30 30 } - } - } - - ### MODIFY YOUR ADMIN VASSAL CONTRACT - button_round = { - datacontext = "[MyRealmWindow.GetCharacter.GetLiege]" - datacontext = "[MyRealmWindow.GetCharacter.GetVassalContract]" - visible = "[Character.IsPlayerInteractionShown( 'admin_vassal_modify_vassal_contract_interaction' )]" - - onclick = "[Character.OpenPlayerInteraction('admin_vassal_modify_vassal_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('admin_vassal_modify_vassal_contract_interaction')]" - using = tooltip_se - - button_add_laws = { - parentanchor = center - alwaystransparent = yes - } - } - - ### MODIFY TRIBUTARY CONTRACT - button_round = { - datacontext = "[MyRealmWindow.GetCharacter.GetSuzerain]" - visible = "[GetPlayer.HasSuzerain]" - - onclick = "[Character.OpenPlayerInteraction('subject_modify_tributary_contract_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('subject_modify_tributary_contract_interaction')]" - using = tooltip_se - - button_feudal_contract = { - parentanchor = center - alwaystransparent = yes - } - } - - ### BREAK FREE OF SUZERAIN - button_round = { - datacontext = "[MyRealmWindow.GetCharacter.GetSuzerain]" - visible = no - - onclick = "[Character.OpenPlayerInteraction('cease_paying_tribute_interaction')]" - enabled = "[Character.IsPlayerInteractionValid('cease_paying_tribute_interaction')]" - - tooltip = "[Character.GetPlayerInteractionTooltip('cease_paying_tribute_interaction')]" - - button_icon = { - parentanchor = center - alwaystransparent = yes - position = { 1 -1 } - size = { 40 40 } - - texture = "gfx/interface/icons/faction_type/liberty_faction.dds" - } - } - } - expand = {} - } - } - - expand = { - visible = "[Not( Character.HasOverlord )]" - } - } - - type hbox_realm_stats_row = hbox { - layoutpolicy_horizontal = expanding - - background = { - margin = { -5 -5 } - using = Background_Area - } - - icon = { - size = { 30 30 } - - block "icon_texture" {} - } - - expand = {} - - ### SUBJECT / VASSAL STATS - hbox = { - using = My_Realm_Cell_Size - - block "cell_subjects" {} - } - - ### TRIBUTARY STATS - hbox = { - using = My_Realm_Cell_Size - - block "cell_tributaries" {} - } - - ### DOMAIN STATS - hbox = { - using = My_Realm_Cell_Size - - block "cell_domain" {} - } - } - - type cell_value_text = text_single { - using = My_Realm_Cell_Size - align = right|nobaseline - - block "cell_value_datacontext" - { - datacontext = "[MyRealmWindow.GetDomainIncome]" - } - - text = "[ValueBreakdown.GetValue]" - - block "cell_value_tooltip" - { - tooltipwidget = { - widget_gold_breakdown_tooltip = { - blockoverride "income" - { - visible = no - } - } - } - } - } - - type vbox_my_realm_laws_top = vbox { - name = "realm_laws" - widgetid = "realm_panel_top_laws" - datacontext = "[GetPlayer]" - datamodel = "[MyRealmWindow.GetRealmLaws]" - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - } - - item = { - vbox = { - name = "realm_law_group" #tutorial uses this - datacontext = "[GuiLawGroup.GetLawGroup]" - visible = "[And( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law' ), GuiLawGroup.IsAvailable )]" - margin_top = 10 - spacing = 10 - - text_label_center = { - visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' )]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME" - } - - text_label_center = { - visible = "[Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ))]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME_AND_LEVEL" - } - - ### REGULAR LAW ITEMS - fixedgridbox = { - name = "regular_law_items" - visible = "[And( Not( IsLandlessAdventurer( Character ) ), Or(Not( IsNomad( Character ) ), Not( GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) ) ) )]" - - addcolumn = 55 - addrow = 55 - flipdirection = yes - layoutanchor = bottomleft - - datamodel = "[GuiLawGroup.GetLaws]" - - item = { - button_realm_law = {} - } - } - - ### ADVENTURER LAW ITEMS - fixedgridbox = { - name = "camp_purpose_items" - visible = "[IsLandlessAdventurer( Character )]" - - addcolumn = 170 - addrow = 170 - datamodel_wrap = 3 - flipdirection = yes - - datamodel = "[GuiLawGroup.GetLaws]" - - item = { - widget_realm_law_camp_purpose = {} - } - } - - ### NOMAD LAW ITEMS - fixedgridbox = { - name = "nomad_dominance_items" - visible = "[And( IsNomad( Character ), GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' ) )]" - - addcolumn = 78 - addrow = 80 - setitemsizefromcell = yes - datamodel_wrap = 5 - flipdirection = yes - layoutanchor = bottomleft - - datamodel = "[GuiLawGroup.GetLaws]" - - item = { - button_realm_law_nomad_dominance = { - datacontext = "[GuiLawGroup.GetLevelByIndex( PdxGuiWidget.GetIndexInDataModel ).GetLaw]" - } - } - } - - spacer = { - visible = "[IsNomad( Character )]" - size = { 0 5 } - } - - spacer = { - visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" - size = { 0 3 } - } - } - } - } - - type icon_my_realm_law = icon { - size = { 42 42 } - alwaystransparent = yes - - texture = "[Law.GetIcon]" - - modify_texture = { - visible = "[And( Not( IsNomad( Character ) ), Not( IsLandlessAdventurer( Character ) ) )]" - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = add - framesize = { 96 96 } - spritetype = corneredtiled - } - } - - type button_realm_law = icon_button_decorative { - datacontext = "[GuiLaw.GetLaw]" - size = { 55 55 } - - alwaystransparent = "[GuiLaw.IsEnacted]" - - down = "[GuiLaw.IsEnacted]" - onclick = "[GuiLaw.Enact]" - enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" - - tooltipwidget = { - pass_law_tooltip = {} - } - using = tooltip_sw - - icon_button_decorative = { - size = { 54 54 } - parentanchor = center - alwaystransparent = yes - } - - button_icon = { - visible = "[Not( GuiLaw.IsEnacted )]" - size = { 42 42 } - parentanchor = center - alwaystransparent = yes - - texture = "[Law.GetIcon]" - } - - icon = { - visible = "[And( GuiLaw.IsEnacted , Not( GuiLaw.CanEnact ) )]" - parentanchor = center - size = { 42 42 } - texture = "[Law.GetIcon]" - alwaystransparent = yes - - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - - type mandala_laws = vbox { - name = "mandala emperor laws" - layoutpolicy_vertical = expanding - - block "crown_laws" {} - - widget = { - size = { 450 150 } - scissor = yes - - widget = { - size = { 450 150 } - block "mandala_laws_position" {} - - vbox = { - datacontext = "[GetPlayer]" - datamodel = "[MyRealmWindow.GetRealmLaws]" - - item = { - vbox = { - datacontext = "[GuiLawGroup.GetLawGroup]" - visible = "[And( GuiLawGroup.GetLawGroup.HasFlag( 'mandala_law' ), GuiLawGroup.IsAvailable )]" - margin_top = 10 - spacing = 7 - - text_label_center = { - visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' )]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME" - } - - text_label_center = { - visible = "[Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law_no_number' ) )]" - datacontext = "[GuiLawGroup.GetCurrentLevel.GetLaw]" - text = "MY_REALM_WINDOW_LAW_NAME_AND_LEVEL" - } - - ### MANDALA LAW ITEMS - fixedgridbox = { - name = "mandala_dominance_items" - visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" - - addcolumn = 100 - addrow = 100 - setitemsizefromcell = yes - datamodel_wrap = 4 - flipdirection = yes - layoutanchor = bottomleft - - datamodel = "[GuiLawGroup.GetLaws]" - - item = { - button_mandala_realm_law = {} - } - } - - spacer = { - visible = "[GetPlayer.GetGovernment.IsType( 'mandala_government' )]" - size = { 0 3 } - } - } - } - } - } - } - } - - type button_mandala_realm_law = button_round { - datacontext = "[GuiLaw.GetLaw]" - size = { 100 100 } - - alwaystransparent = "[GuiLaw.IsEnacted]" - - down = "[GuiLaw.IsEnacted]" - onclick = "[GuiLaw.Enact]" - enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" - - tooltipwidget = { - pass_law_tooltip = {} - } - using = tooltip_sw - - - icon = { - size = { 90 90 } - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - parentanchor = center - alwaystransparent = yes - } - - highlight_icon = { - visible = "[GuiLaw.IsEnacted]" - parentanchor = center - size = { 100 100 } - - texture = "gfx/interface/buttons/button_round_frame.dds" - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - } - } - - button_icon = { - visible = "[Not( GuiLaw.IsEnacted )]" - size = { 90 90 } - parentanchor = center - alwaystransparent = yes - texture = "[Law.GetIcon]" - } - - icon = { - visible = "[And( GuiLaw.IsEnacted , Not( GuiLaw.CanEnact ) )]" - parentanchor = center - size = { 100 100 } - texture = "[Law.GetIcon]" - alwaystransparent = yes - - using = Master_Button_Modify_Texture - - blockoverride "master_color_frame" { - frame = 2 - } - } - } - - type widget_realm_law_camp_purpose = widget { - datacontext = "[GuiLaw.GetLaw]" - size = { 160 160 } - - tooltipwidget = { - pass_law_tooltip = { - blockoverride "concept_link" { - text = "[camp_purpose|E]" - } - } - } - - using = tooltip_ws - - button_standard_clean = { - name = "camp_purpose_button" - size = { 160 160 } - alwaystransparent = "[GuiLaw.IsEnacted]" - - enabled = "[Or(GuiLaw.CanEnact, GuiLaw.IsEnacted)]" - down = "[GuiLaw.IsEnacted]" - onclick = "[GuiLaw.Enact]" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - icon = { - size = { 160 160 } - texture = "[Law.GetIcon]" - } - - widget = { - parentanchor = bottom - size = { 100% 30 } - - background = { - using = Background_Area_Dark - } - - text_single = { - visible = "[Not(GuiLaw.IsEnacted)]" - parentanchor = center - position = { 3 -2 } - - text = "PASS_LAW_TOOLTIP_TITLE" - default_format = "#weak" - max_width = 150 - - margin = { 5 0 } - } - - text_single = { - visible = "[GuiLaw.IsEnacted]" - parentanchor = center - position = { 3 -2 } - - text = "ADVENTURER_LAW_SELECTED" - default_format = "#high;EMP" - max_width = 150 - - margin = { 5 0 } - } - } - - selection_glow = { - visible = "[GuiLaw.IsEnacted]" - } - } - } - - type button_realm_law_nomad_dominance = button { - size = { 100 100 } - allow_outside = yes - - down = "[GuiLaw.IsEnacted]" - onclick = "[GuiLaw.Enact]" - enabled = "[Or( GuiLaw.CanEnact, GuiLaw.IsEnacted )]" - - tooltipwidget = { - pass_law_tooltip = {} - } - - using = tooltip_ws - - icon = { - visible = "[GuiLaw.IsEnacted]" - parentanchor = center - size = { 72 72 } - - texture = "gfx/interface/icons/flat_icons/circle.dds" - - using = Animation_Glow_Pulse - - glow = { - glow_radius = 13 - using = Glow_Standard - using = Color_Bright_Yellow - } - } - - icon_round_button_base = { - parentanchor = center - size = { 72 72 } - } - - highlight_icon = { - visible = "[GuiLaw.IsEnacted]" - parentanchor = center - size = { 84 84 } - - texture = "gfx/interface/window_realm/dominance_frame_active.dds" - } - - highlight_icon = { - visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), Not( GuiLaw.IsEnacted ) )]" - parentanchor = center - position = { 1 1 } - size = { 77 77 } - - texture = "gfx/interface/window_realm/dominance_frame_gurkhan_inactive.dds" - } - - highlight_icon = { - visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), GuiLaw.IsEnacted )]" - parentanchor = center - position = { 1 1 } - size = { 77 77 } - - texture = "gfx/interface/window_realm/dominance_frame_gurkhan_active.dds" - } - - highlight_icon = { - parentanchor = center - size = { 72 72 } - texture = "[Law.GetIcon]" - } - - icon_flat_standard_ash = { - visible = "[And( GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4'), Not( MyRealmWindow.IsGurkhan ) )]" - parentanchor = top|right - position = { 3 -3 } - size = { 30 30 } - - texture = "gfx/interface/window_activities/tournament/contest_selection_locked_icon.dds" - - glow = { - glow_radius = 2 - using = Color_Black - - glow_generation_rules = { - glow_alpha_mask = 0 - glow_blur_passes = 10 - glow_texture_downscale = 2.5f - glow_ignore_inside_pixels = yes - } - } - } - - widget = { - parentanchor = hcenter|bottom - position = { 0 3 } - size = { 68 16 } - allow_outside = yes - - flowcontainer = { - parentanchor = vcenter - position = { 5 0 } - spacing = 2 - allow_outside = yes - visible = "[GuiLawGroup.GetLawGroup.HasFlag( 'dominance_law' )]" - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" - parentanchor = center - } - } - - widget = { - size = { 10 10 } - - dominance_pip = { - parentanchor = center - } - - dominance_pip_on = { - visible = "[GreaterThanOrEqualTo_int32( Law.GetIndexInLawGroup, '(int32)4')]" - parentanchor = center - } - } - } - - icon = { - size = { 68 16 } - texture = "gfx/interface/window_realm/dominance_bar_frame.dds" - } - } - } - - type vbox_kurultai_inherited_titles_group_foldout = vbox { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "MY_REALM_WINDOW_PARTITION_SHARE" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - margin_top = 5 - - overlappingitembox = { - name = "partition_share_box" - datamodel = "[MyRealmWindow.GetMyPartitionShare]" - layoutpolicy_horizontal = expanding - size = { 460 44 } - spacing = 5 - - item = { - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - - using = tooltip_ne - } - } - } - } - } - - type vbox_kurultai_group_foldout = vbox { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "MY_REALM_WINDOW_KURULTAI_ELECTORS" - max_width = 510 - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - fixedgridbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 85 - addrow = 90 - setitemsizefromcell = yes - datamodel_wrap = 6 - flipdirection = yes - - datamodel = "[KurultaiSuccession.GetElectors]" - - item = { - portrait_head_small = { - blockoverride "glow_visible" - { - visible = no - } - } - } - } - } - } - - type vbox_succession_content_kurultai = vbox { - layoutpolicy_horizontal = expanding - - background = { - visible = "[KurultaiSuccession.IsStable]" - - texture = "gfx/interface/window_realm/succession_pattern_peaceful.dds" - alpha = 0.1 - spritetype = corneredtiled - texture_density = 2 - using = Color_Blue - using = Mask_Rough_Edges - - - margin = { -5 0 } - margin_top = -68 - - modify_texture = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - alpha = 0.1 - blend_mode = overlay - spritetype = corneredtiled - texture_density = 2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - alpha = 0.9 - blend_mode = alphamultiply - spritetype = corneredtiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - alpha = 0.9 - blend_mode = alphamultiply - spritetype = corneredtiled - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - - background = { - visible = "[Not( KurultaiSuccession.IsStable )]" - - texture = "gfx/interface/window_realm/succession_pattern_chaotic.dds" - alpha = 0.1 - mirror = horizontal - spritetype = corneredtiled - texture_density = 2 - using = Color_Red - using = Mask_Rough_Edges - - margin = { -5 0 } - margin_top = -68 - - modify_texture = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - blend_mode = overlay - spritetype = corneredtiled - texture_density = 2 - alpha = 0.1 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - alpha = 0.9 - blend_mode = alphamultiply - spritetype = corneredtiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - alpha = 0.9 - blend_mode = alphamultiply - spritetype = corneredtiled - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - - ### STATUS BANNER - hbox = { - layoutpolicy_horizontal = expanding - - tooltipwidget = { - widget_kurultai_succession_tooltip = {} - } - - ### STABLE SUCCESSION - widget = { - visible = "[KurultaiSuccession.IsStable]" - size = { 550 84 } - - icon = { - parentanchor = vcenter - size = { 550 64 } - texture = "gfx/interface/window_realm/succession_banner_peaceful.dds" - } - - widget = { - parentanchor = left|vcenter - position = { 12 0 } - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_peaceful.dds" - } - - icon_flat_standard = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_peaceful.dds" - } - } - - text_single = { - layoutpolicy_vertical = expanding - parentanchor = left|vcenter - position = { 100 -2 } - - text = "MY_REALM_WINDOW_KURULTAI_STABLE" - max_width = 400 - using = Font_Size_Medium - } - } - - ### CHAOTIC SUCCESSION - widget = { - visible = "[Not( KurultaiSuccession.IsStable )]" - size = { 550 84 } - - icon = { - parentanchor = vcenter - size = { 550 64 } - texture = "gfx/interface/window_realm/succession_banner_chaotic.dds" - } - - widget = { - parentanchor = left|vcenter - position = { 12 0 } - size = { 84 84 } - - icon = { - parentanchor = center - size = { 84 84 } - texture = "gfx/interface/window_realm/succession_icon_background_chaotic.dds" - } - - icon_flat_standard_red = { - parentanchor = center - size = { 60 60 } - texture = "gfx/interface/icons/flat_icons/succession_chaotic.dds" - } - } - - text_single = { - layoutpolicy_vertical = expanding - parentanchor = left|vcenter - position = { 100 -2 } - - text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" - max_width = 400 - using = Font_Size_Medium - } - } - } - - ### HEIR INFO - hbox = { - datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 15 0 } - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_PREFERRED" - using = Font_Size_Medium - max_width = 360 - } - - text_single = { - margin_top = 10 - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip]" - align = nobaseline - default_format = "#high" - max_width = 360 - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "MRW_YOUR_PLAYER_HEIR" - default_format = "#weak" - max_width = 360 - } - - text_single = { - visible = "[Not( KurultaiSuccession.IsStable )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_CHAOS_WARNING" - max_width = 360 - } - - ### CHANGE HEIR BUTTON - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 20 - - button_standard = { - size = { 150 32 } - text = "MY_REALM_WINDOW_DESIGNATE_HEIR" - - enabled = "[MyRealmWindow.CanDesignateHeir]" - onclick = "[OpenDesignateHeirWindow]" - - tooltip = "MRW_DESIGNATE_HEIR_TT" - } - - expand = {} - } - - expand = {} - } - - expand = {} - - portrait_torso = { - blockoverride "portrait_status_icons" {} - blockoverride "opinion_box" {} - } - } - - ### KURULTAI PROGRESS BAR - vbox = { - visible = "[GreaterThan_int32( KurultaiSuccession.GetVoteCount, '(int32)0' )]" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "MY_REALM_WINDOW_KURULTAI_APPROVES" - align = nobaseline - max_width = 150 - } - - progressbar_standard = { - name = "kurultai_votes" - layoutpolicy_horizontal = expanding - size = { 200 20 } - - using = Animation_ShowHide_Standard - - max = "[IntToFloat( KurultaiSuccession.GetVoteCount )]" - value = "[IntToFloat( KurultaiSuccession.GetObedientCount )]" - } - - text_single = { - text = "MY_REALM_WINDOW_KURULTAI_OPPOSES" - align = nobaseline - max_width = 150 - } - } - - text_multi = { - text = "MY_REALM_WINDOW_KURULTAI_OBEDIENT" - autoresize = yes - align = center - default_format = "#italic" - max_width = 500 - margin = { 0 5 } - } - } - } - - type widget_kurultai_succession_tooltip = widget - { - alwaystransparent = no - using = GeneralTooltipSetup - - widget = { - name = "background" - alwaystransparent = no - size = { 100% 100% } - using = DefaultTooltipBackground - } - - vbox = { - set_parent_size_to_minimum = yes - margin = { 20 0 } - margin_top = 5 - margin_bottom = 20 - spacing = 20 - - ### HEADER - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - icon = { - visible = "[KurultaiSuccession.IsStable]" - size = { 60 60 } - texture = "gfx/interface/icons/succession_peaceful.dds" - } - - icon = { - visible = "[Not( KurultaiSuccession.IsStable )]" - size = { 60 60 } - texture = "gfx/interface/icons/succession_chaotic.dds" - } - - text_single = { - visible = "[KurultaiSuccession.IsStable]" - - text = "MY_REALM_WINDOW_KURULTAI_STABLE" - align = nobaseline - default_format = "#bold" - using = Font_Size_Medium - } - - text_single = { - visible = "[Not( KurultaiSuccession.IsStable )]" - - text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC" - align = nobaseline - default_format = "#bold" - using = Font_Size_Medium - } - - expand = {} - - text_single = { - text = "[succession|E]" - } - } - - ### SUB HEADER - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[KurultaiSuccession.IsStable]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_STABLE_TOOLTIP_HEADER" - autoresize = yes - minimumsize = { 100 -1 } - maximumsize = { 500 300 } - } - - text_multi = { - visible = "[Not( KurultaiSuccession.IsStable )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC_TOOLTIP_HEADER" - autoresize = yes - minimumsize = { 100 -1 } - maximumsize = { 500 300 } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "[KurultaiSuccession.GetStatusTooltip]" - autoresize = yes - fontsize = 16 - fontsize_min = 12 - minimumsize = { 100 -1 } - maximumsize = { 500 300 } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[KurultaiSuccession.IsStable]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_STABLE_TOOLTIP_FOOTER" - autoresize = yes - minimumsize = { 100 -1 } - maximumsize = { 500 300 } - } - - text_multi = { - visible = "[Not( KurultaiSuccession.IsStable )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_KURULTAI_CHAOTIC_TOOLTIP_FOOTER" - autoresize = yes - minimumsize = { 100 -1 } - maximumsize = { 500 300 } - } - } - } - } - - type vbox_my_realm_succession_title_lost_item = vbox { - datacontext = "[TitleSuccessionItem.GetHeir]" - layoutpolicy_horizontal = expanding - - margin = { 16 8 } - margin_bottom = 15 - - background = { - using = Background_Frame - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "heir_name" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_TITLES_LOST_LABEL" - } - - text_single = { - name = "heir_not_your_dynasty" - visible = "[And( Character.IsValid, Not( ObjectsEqual( Character.GetHouse.GetDynasty.Self, GetPlayer.GetHouse.GetDynasty.Self ) ) )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_HEIR_NOT_MY_DYNASTY" - using = Font_Size_Small - } - - text_single = { - name = "heir_share" - datacontext = "[GetPlayer]" - visible = "[DataModelHasItems( TitleSuccessionItem.GetPartitionTitles )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_SUCCESSION_LAW_AND_DESC" - default_format = "#weak" - } - } - - expand = {} - - fixedgridbox = { - name = "titles_box" - datamodel = "[TitleSuccessionItem.GetPartitionTitles]" - visible = "[DataModelHasItems( TitleSuccessionItem.GetPartitionTitles )]" - - addcolumn = 36 - addrow = 60 - maxhorizontalslots = 7 - flipdirection = yes - - item = { - widget = { - size = { 36 60 } - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - using = tooltip_ne - parentanchor = center - } - - icon = { - name = "has_laws" - visible = "[TitleItem.GetTitle.HasLaws]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - } - } - } - - fixedgridbox = { - name = "exception_box" - datamodel = "[TitleSuccessionItem.GetExceptionTitles]" - visible = "[DataModelHasItems( TitleSuccessionItem.GetExceptionTitles )]" - - addcolumn = 36 - addrow = 45 - maxhorizontalslots = 7 - flipdirection = yes - - item = { - container = { - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - using = tooltip_ne - } - - icon = { - name = "has_laws" - visible = "[TitleItem.GetTitle.HasLaws]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - } - } - } - - text_single = { - name = "required_government_label" - visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_REQUIRED_GOVERNMENT_TITLES" - } - - text_single = { - name = "required_government_warning" - visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_REQUIRED_GOVERNMENT_TITLES_WARNING" - using = Font_Size_Small - } - - fixedgridbox = { - name = "required_government_box" - datamodel = "[TitleSuccessionItem.GetRequiredGovernmentTitles]" - visible = "[DataModelHasItems( TitleSuccessionItem.GetRequiredGovernmentTitles )]" - - addcolumn = 36 - addrow = 45 - maxhorizontalslots = 7 - flipdirection = yes - - - item = { - container = { - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - using = tooltip_ne - } - - icon = { - name = "has_laws" - visible = "[TitleItem.GetTitle.HasLaws]" - parentanchor = bottom|right - position = { 5 0 } - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - } - } - } - } - } - - type vbox_succession_content_default = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - hbox = { - name = "current_heir" - - # vassals in merit governments don't really care that your heir inherits your province, it is all transient anyway, so no need to show the warning - - visible = "[And( And( Not(GetPlayer.GetGovernment.HasRule( 'merit' )), Not(GetPlayer.IsIndependentRuler)), And( MyRealmWindow.HasHeir, Not( ObjectsEqual( MyRealmWindow.GetCharacter.GetPlayerHeir, MyRealmWindow.GetCharacter.GetPrimaryTitle.GetHeir.Self ) ) ) )]" - - - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - background = { - using = Background_Area_Dark - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 5 0 } - margin_top = 5 - - text_single = { - name = "not_primary_heir" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_NOT_PRIMARY_HEIR" - align = nobaseline - } - - expand = {} - } - } - - ##### FROM REALM'S PARTITION ##### - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "their_partition_share" - visible = "[And( MyRealmWindow.HasPartition, DataModelHasItems( MyRealmWindow.GetMyPartitionShare ) )]" - layoutpolicy_horizontal = expanding - - margin_left = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_SUCCESSION_TITLES_INHERITED" - max_width = 580 - } - - expand = {} - } - - overlappingitembox = { - name = "partition_share_box" - datamodel = "[MyRealmWindow.GetMyPartitionShare]" - layoutpolicy_horizontal = expanding - size = { 460 65 } - spacing = 5 - - item = { - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - using = tooltip_ne - } - } - } - } - - vbox = { - name = "title_succession" - visible = "[DataModelHasItems(MyRealmWindow.GetTitleSuccession)]" - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "MY_REALM_WINDOW_TITLES_LOST_ON_SUCCESSION" - default_format = "#X" - } - } - - vbox = { - datamodel = "[MyRealmWindow.GetTitleSuccession]" - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - - item = { - vbox_my_realm_succession_title_lost_item = {} - } - } - } - - vbox = { - name = "exceptions" - visible = "[DataModelHasItems( MyRealmWindow.GetSuccessionExceptions )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - margin_left = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_EXCEPTIONS" - max_width = 580 - } - - expand = {} - } - - overlappingitembox = { - name = "exceptions_box" - datamodel = "[MyRealmWindow.GetSuccessionExceptions]" - layoutpolicy_horizontal = expanding - size = { 460 55 } - spacing = 10 - - item = { - container = { - my_realm_coa_tiny_item = { - datacontext = "[TitleItem.GetTitle]" - } - } - } - } - } - } - - vbox = { - name = "line_of_succession" - visible = "[MyRealmWindow.HasSingleHeir]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - margin = { 5 0 } - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - name = "line_of_succession_label" - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_LINE_OF_SUCCESSION" - } - - expand = {} - } - - dynamicgridbox = { - name = "line_of_succession_box" - datamodel = "[MyRealmWindow.GetLineOfSuccession]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - datacontext = "[LineOfSuccessionItem.GetCharacter]" - maximumsize = { -1 100 } - margin_left = 10 - margin_bottom = 5 - - background = { - using = Background_Area_With_Header - } - - vbox = { - layoutpolicy_vertical = growing - margin_bottom = 5 - spacing = 2 - - hbox_character_view_name_age_health = { - blockoverride "name_text" - { - text = "MY_REALM_WINDOW_LINE_OF_SUCCESSION_ORDERED_NAME" - } - - blockoverride "health_margin" { - margin_left = 4 - } - } - - spacer = { - size = { 10 3 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_relation_to_you" - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - fontsize_min = 13 - max_width = 300 - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - expand = {} - } - - hbox_traits_list_small = { - name = "traits_list" - datacontext = "[LineOfSuccessionItem.GetTraitArrays]" - } - - text_single = { - name = "vassal_stances_that_prefer" - visible = "[And( Not( IsLandlessAdventurer( GetPlayer ) ), Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) )]" - layoutpolicy_horizontal = expanding - - text = "MRW_HEIR_PREFERRED" - autoresize = no - using = Font_Size_Medium - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - portrait_shoulders = { - name = "heir_portrait" - - blockoverride "portrait_button" { - using = tooltip_ws - } - } - - expand = {} - } - } - } - } - } - - expand = {} - } - - type tooltip_my_realm_to_liege = container_my_realm_window_contribution_tooltip { - datacontext = "[MyRealmWindow.GetCharacter]" - - blockoverride "contribution_tooltip_header" - { - text = "[SelectLocalization(Character.HasSuzerain, 'MRW_TT_TAXES_TO_MY_SUZERAIN', 'MRW_TT_TAXES_TO_MY_LIEGE')]" - } - - blockoverride "contribution_tooltip_content_suffix" {} - } - - type container_my_realm_window_contribution_tooltip = container { - alwaystransparent = no - - using = GeneralTooltipSetup - using = DefaultTooltipBackground - - widget_gold_breakdown_tooltip = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" - { - margin = { 15 10 } - margin_bottom = 5 - spacing = 15 - } - - blockoverride "income" - { - visible = no - } - - blockoverride "background" {} - - blockoverride "extra_info" - { - block "contribution_tooltip_content_suffix" { - text_single = { - visible = "[Character.IsTheocraticLessee]" - - text = "MY_REALM_WINDOW_CONTRIBUTION_TO_THEOCRATIC_LIEGE" - default_format = "#weak" - multiline = yes - maximumsize = { 300 -1 } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - block "contribution_tooltip_header" - { - align = left - } - } - } - } - } - - type vbox_my_realm_domain_body = vbox { - layoutpolicy_horizontal = expanding - margin_top = 5 - spacing = 20 - - using = Animation_Tab_Switch - - vbox = { - visible = "[Character.HasDomicile]" - - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 10 - - text_label_center = { - text = "[Character.GetDomicile.GetYourDomicileText]" - default_format = "#low" - using = Font_Size_Medium - } - - vbox_domicile_button = {} - } - - datamodel = "[MyRealmWindow.GetDomainItems]" - - item = { - vbox = { - name = "duchy_group" - layoutpolicy_horizontal = expanding - - hbox = { - spacing = 5 - - background = { - margin_top = -10 - margin_bottom = -5 - margin_left = 20 - margin_right = 40 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - - coa_title_tiny_crown = { - datacontext = "[DuchyGroup.GetDuchy]" - - using = tooltip_ws - } - - text_single = { - text = "[DuchyGroup.GetDuchy.GetNameNoTooltip|U]" - default_format = "#low" - max_width = 520 - using = Font_Size_Medium - } - } - - vbox = { - name = "county_group" - datamodel = "[DuchyGroup.GetCounties]" - layoutpolicy_horizontal = expanding - - spacing = 20 - - item = { - - vbox = { - datacontext = "[CountyGroup.GetCounty]" - datacontext = "[CountyGroup.GetCapitalProvince.GetCounty]" - - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[CountyGroup.AccessBreakdowns]" - layoutpolicy_horizontal = expanding - - margin_left = 5 - margin_right = 10 - spacing = 7 - - coa_title_tiny = {} - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Title.GetNameNoTooltip]" - max_width = 180 - } - - expand = {} - - text_single = { - text = "[development|E]: [County.GetDevelopmentLevel]" - max_width = 140 - - tooltipwidget = { - county_development_tooltip_container = {} - } - } - - text_single = { - name = "tutorial_highlight_control" - text = "[CountyGroup.GetCountyControlColored]" - max_width = 130 - - tooltipwidget = { - county_control_tooltip_container = {} - } - } - } - - vbox = { - datamodel = "[CountyGroup.GetHoldings]" - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 10 - margin_bottom = 5 - spacing = 3 - - item = { - vbox = { - name = "holding_realm_list_item" #ra_merit_governor_holdings_list uses this - - datacontext = "[HoldingItem.GetHolding]" - layoutpolicy_horizontal = expanding - - background = { - texture = "[HoldingItem.GetHolding.GetIllustration]" - alpha = 0.7 - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - button_standard_clean = { - layoutpolicy_horizontal = expanding - size = { 0 80 } - - onclick = "[HoldingItem.OnClick]" - - tooltipwidget = { holding_tooltip_click = {} } - - background = { - visible = "[Holding.IsSelected]" - using = Background_Button_Illustration - } - - using = Background_Vignette_Button - using = Holding_Mouse_Entry - - vbox = { - margin = { 10 2 } - - hbox = { - name = "holding_header" - layoutpolicy_horizontal = expanding - spacing = 6 - - hbox = { - spacing = 6 - - background = { - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - margin_left = 15 - margin_right = 25 - margin_top = 0 - margin_bottom = 5 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - icon = { - name = "realm_capital_icon" - visible = "[HoldingItem.IsRealmCapital]" - size = { 25 25 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 2 - - tooltip = "REALM_CAPITAL_TOOLTIP" - } - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_NAME" - } - } - - expand = {} - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_TAX" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetTaxTooltip]" - } - - text_single = { - visible = "[Holding.GetHolder.HasBarterGoods]" - text = "MY_REALM_WINDOW_HOLDING_BARTER_GOODS" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetBarterGoodsIncomeTooltip]" - } - - text_single = { - text = "MY_REALM_WINDOW_HOLDING_LEVY" - alwaystransparent = yes - default_format = "#high" - - tooltip = "[Holding.GetLeviesTooltip]" - } - } - - hbox = { - name = "holding_buildings" - layoutpolicy_horizontal = expanding - minimumsize = { 0 40 } - - vbox = { - tooltip = "MY_REALM_WINDOW_BUILDING_CONSTRUCTION_TT" - using = tooltip_ne - - text_single = { - text = "[HoldingItem.GetStatusText]" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard = { - name = "building_progressbar" - visible = "[HoldingItem.GetHolding.IsConstructionInProgress]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - maximumsize = { -1 15 } - value = "[HoldingItem.GetHolding.GetConstructionProgress]" - direction = horizontal - } - - expand = {} - } - } - - text_single = { - visible = "[HoldingItem.GetHolding.CanConstructAnyBuilding(GetPlayer)]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_CONSTRUCT_BUILDING" - default_format = "#P" - } - - expand = {} - } - } - } - } - } - } - - vbox = { - visible = "[DataModelHasItems(CountyGroup.GetEmptyHoldings)]" - layoutpolicy_horizontal = expanding - - spacing = 5 - margin_left = 10 - margin_right = 10 - - button_group = { - layoutpolicy_horizontal = expanding - - onclick = "[CountyGroup.ToggleExpanded]" - - flowcontainer = { - spacing = 5 - - widget = { - size = { 18 22 } - - button_expand = { - parentanchor = center - frame = "[Select_int32( CountyGroup.IsExpanded, '(int32)2', '(int32)1' )]" - } - } - - text_single = { - text = "ME_REALM_WINDOW_EMPTY_HOLDINGS" - default_format = "#low" - align = nobaseline - } - } - } - - expand = {} - - vbox = { - datamodel = "[CountyGroup.GetEmptyHoldings]" - visible = "[CountyGroup.IsExpanded]" - layoutpolicy_horizontal = expanding - - margin_left = 23 - margin_bottom = 5 - spacing = 4 - - item = { - vbox = { - datacontext = "[HoldingItem.GetHolding]" - layoutpolicy_horizontal = expanding - - button_standard = { - datacontext = "[HoldingItem.GetHolding]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 45 } - - onclick = "[HoldingItem.OnClick]" - down = "[Holding.IsSelected]" - - using = Holding_Mouse_Entry - - tooltipwidget = { - holding_tooltip_click = {} - } - - using = tooltip_ne - - widget = { - parentanchor = right|top - position = { -2 2 } - size = { 350 41 } - scissor = yes - - icon = { - name = "illustration" - parentanchor = right|top - size = { 180 90 } - texture = "[HoldingItem.GetHolding.GetProvince.GetTerrain.GetIllustration]" - alpha = 0.4 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - icon = { - parentanchor = center - size = { 99% 92% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - - hbox = { - margin = { 10 0 } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 - - text_single = { - text = "[HoldingItem.GetBarony.GetNameNoTierNoTooltip]" - } - - expand = {} - } - - expand = {} - - vbox = { - visible = "[HoldingItem.GetHolding.IsConstructionInProgress]" - layoutpolicy_vertical = expanding - - margin = { 0 4 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[HoldingItem.GetStatusText]" - - align = nobaseline - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 3 - - progressbar_standard = { - name = "building_progressbar" - alwaystransparent = yes - direction = horizontal - size = { 180 12 } - value = "[HoldingItem.GetHolding.GetConstructionProgress]" - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin_top = 2 - - text_label_right = { - visible = "[HoldingItem.GetHolding.CanConstructAnyBuilding(GetPlayer)]" - layoutpolicy_vertical = fixed - text = "MY_REALM_WINDOW_CONSTRUCT_HOLDING" - default_format = "#P" - } - - expand = {} - } - } - } - } - } - } - } - - expand = {} - } - } - } - } - } - } - - type vbox_my_realm_subjects_top = vbox { - widgetid = "tab_vassals" - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 5 } - margin_bottom = 10 - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "MY_REALM_WINDOW_VASSAL_OPINION" - max_width = 180 - - tooltip = "MY_REALM_WINDOW_VASSAL_OPINION_TT" - } - - expand = {} - - hbox = { - tooltip = "[GetPlayer.GetDreadBreakdown]" - - icon = { - name = "dread_icon" - size = { 30 30 } - texture = "gfx/interface/icons/icon_dread.dds" - } - - text_single = { - name = "dread_name" - text = "[dread|E]: [GetPlayer.GetDread|0]" - default_format = "#high" - max_width = 90 - } - } - - expand = {} - - hbox = { - name = "tutorial_highlight_vassal_limit" - spacing = 4 - - tooltip = "[Character.GetVassalLimitTooltip]" - - background = { - visible = "[GreaterThan_int32( Character.GetNumVassalsTowardsLimit, Character.GetVassalLimit )]" - using = Status_Bad - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_vassal.dds" - } - - text_single = { - text = "MY_REALM_WINDOW_VASSAL_LIMIT" - max_width = 130 - } - - text_single = { - text = "MY_REALM_WINDOW_VASSAL_LIMIT_VALUE" - max_width = 50 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = MY_REALM_WINDOW_VASSAL_STANCES - align = nobaseline - } - - hbox = { - datamodel = "[GetAllVassalStances]" - spacing = 5 - - item = { - text_single = { - visible = "[NotEqualTo_int32( MyRealmWindow.GetNumVassalsWithStance( VassalStance.Self ), '(int32)0' )]" - text = "MY_REALM_WINDOW_VASSAL_STANCE_COUNT" - align = nobaseline - fonttintcolor = "[GetOpinionTint(FixedPointToInt(VassalStance.GetModifierValueFor( MyRealmWindow.GetCharacter )))]" - margin = { 0 2 } - margin_left = 5 - margin_right = 10 - - using = Background_Area_Border - - tooltip = "MY_REALM_WINDOW_VASSAL_STANCE_COUNT_TT" - } - } - } - - expand = {} - } - } - - hbox = { - name = "vassal_filters_container" - layoutpolicy_horizontal = expanding - spacing = 30 - - dropdown_menu_standard = { - name = "government_filters_dropdown" - - blockoverride "dropdown_properties" - { - datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" - - onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" - selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "MRW_GOVERNMENT_FILTER" - - tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" - } - - blockoverride "dropdown_item_properties" - { - text = "MRW_GOVERNMENT_FILTER" - - tooltip = "MRW_GOVERNMENT_FILTER_TT" - } - } - - dropdown_menu_standard = { - name = "vassal_stance_filters_dropdown" - - blockoverride "dropdown_properties" - { - datamodel = "[MyRealmWindow.GetVassalStanceFilters]" - - onselectionchanged = "[MyRealmWindow.SelectActiveVassalStanceFilter]" - selectedindex = "[MyRealmWindow.GetActiveVassalStanceFilterIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "MRW_VASSAL_STANCE_FILTER" - - tooltip = "MRW_VASSAL_STANCE_FILTER_DROPDOWN_TT" - } - - blockoverride "dropdown_item_properties" - { - text = "MRW_VASSAL_STANCE_FILTER" - - tooltip = "MRW_VASSAL_STANCE_FILTER_TT" - } - } - } - - text_single = { - name = "government_filter_label" - visible = "[MyRealmWindow.HasActiveGovernmentTypeFilter]" - text = "[MyRealmWindow.GetActiveGovernmentTypeFilter.GetVassalsLabel]" - margin_bottom = 10 - } - } - - type vbox_my_realm_subjects_body = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 10 } - - using = Animation_Tab_Switch - - fixedgridbox = { - datacontext = "[MyRealmWindow.GetPowerfulVassals]" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - addcolumn = 538 - addrow = 176 - setitemsizefromcell = yes - - item = { - widget_vassal_list_item = { - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" - datacontext = "[MyRealmWindowVassalItem.GetContract]" - - background = { - using = Background_Frame - } - } - } - } - - fixedgridbox = { - datacontext = "[MyRealmWindow.GetTributaries]" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" - layoutpolicy_horizontal = expanding - - addcolumn = 538 - addrow = 176 - setitemsizefromcell = yes - - item = { - widget_vassal_list_item = { - name = tutorial_highlight_vassal - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" - datacontext = "[MyRealmWindowVassalItem.GetContract]" - } - } - } - - fixedgridbox = { - datacontext = "[MyRealmWindow.GetRegularVassals]" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" - layoutpolicy_horizontal = expanding - - addcolumn = 538 - addrow = 185 - setitemsizefromcell = yes - - item = { - widget_vassal_list_item = { - name = tutorial_highlight_vassal - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" - datacontext = "[MyRealmWindowVassalItem.GetContract]" - } - } - } - - text_single = { - visible = "[EqualTo_int32( MyRealmWindow.GetVassalCount, '(int32)0' )]" - layoutpolicy_vertical = expanding - - text = "MY_REALM_WINDOW_SUBJECTS_NO_SUBJECTS" - default_format = "#weak" - } - - expand = {} - } - - type vbox_my_realm_succession_body_top = vbox { - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - text_single = { - visible = "[MyRealmWindow.HasHeir]" - margin = { 0 4 } - - text = "MRW_YOUR_PLAYER_HEIR" - align = nobaseline - default_format = "#I" - } - - text_single = { - name = "no_heir_warning" - visible = "[Not( MyRealmWindow.HasHeir )]" - margin = { 0 4 } - - text = "MY_REALM_WINDOW_NO_HEIR_FLAVOR" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - margin = { 10 0 } - - ### HEIR INFO - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - spacing = 2 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "game_concept_player_heir" - align = nobaseline - using = Font_Size_Medium - - margin = { 0 2 } - } - - text_single = { - visible = "[MyRealmWindow.HasHeir]" - layoutpolicy_horizontal = expanding - - text = "[MyRealmWindow.GetCharacter.GetPlayerHeir.GetUINameNoTooltip]" - default_format = "#low" - max_width = 415 - using = Font_Size_Medium - } - - text_single = { - name = "vassal_stances_that_prefer" - datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" - visible = "[And( Not( IsLandlessAdventurer( GetPlayer ) ), And( MyRealmWindow.HasHeir, Not( StringIsEmpty( MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self ) ) ) ) )]" - layoutpolicy_horizontal = expanding - - text = "MY_REALM_WINDOW_SUCCESSION_PREFERRED_BY" - default_format = "#weak" - max_width = 415 - } - - hbox = { - visible = [MyRealmWindow.HasHeir] - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - text_single = { - datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" - - text = "[MyRealmWindow.GetCharacter.GetVassalStancesThatPrefer( Character.Self )]" - align = nobaseline - using = Font_Size_Medium - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 2 - - button_standard = { - size = { 150 32 } - - text = "MY_REALM_WINDOW_SUCCESSION_DESIGNATE_HEIR" - - enabled = "[MyRealmWindow.CanDesignateHeir]" - onclick = "[OpenDesignateHeirWindow]" - - tooltip = "MRW_DESIGNATE_HEIR_TT" - } - - expand = {} - } - - expand = {} - } - - portrait_shoulders = { - datacontext = "[MyRealmWindow.GetCharacter.GetPlayerHeir]" - visible = "[Character.IsValid]" - allow_outside = yes - - blockoverride "glow_visible" - { - visible = no - } - } - } - } - - type vbox_my_realm_succession_body = vbox { - name = "tab_succession" - widgetid = "tab_succession" - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - vbox = { - layoutpolicy_horizontal = expanding - - vbox_succession_content_kurultai = { - visible = "[KurultaiSuccession.IsValid]" - } - - vbox_succession_content_default = { - visible = "[Not( KurultaiSuccession.IsValid )]" - } - } - - vbox_kurultai_group_foldout = { - visible = "[And( KurultaiSuccession.IsValid, Not( IsDataModelEmpty( KurultaiSuccession.GetElectors ) ) )]" - } - - vbox_kurultai_inherited_titles_group_foldout = { - visible = "[KurultaiSuccession.IsValid]" - } - - expand = {} - } - - type widget_my_realm_law_item = widget { - datacontext = "[GuiLawGroup]" - size = { 246 62 } - - background = { - using = Background_Area - } - - hbox = { - margin = { 10 0 } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "[GuiLawGroup.GetLawGroup.GetNameSingular]:" - align = nobaseline - max_width = 170 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[GuiLawGroup.GetCurrentLevel.GetLaw.GetName]" - align = nobaseline - default_format = "#high" - max_width = 170 - } - } - - expand = {} - - button_round = { - datacontext = "[GuiLawGroup.GetLawGroup]" - visible = "[Not( LawGroup.HasFlag( 'treasury_budget_law' ) )]" - enabled = "[LawGroup.CanRulerChange(GetPlayer)]" - tooltip_when_disabled = "[GuiLawGroup.GetCanChangeTooltip]" - size = { 30 30 } - - button_change = { - size = { 24 24 } - parentanchor = center - onclick = "[OpenSuccessionLawChangeWindow( GuiLawGroup.Self )]" - } - } - } - } - - type vbox_law_item = vbox { - layoutpolicy_horizontal = expanding - spacing = 8 - - text_label_center = { - block "item_title" - { - text = "MY_REALM_WINDOW_LAWS_REALM_LAWS" - } - } - - text_multi = { - block "item_desc" - { - visible = no - } - align = nobaseline - default_format = "#weak" - autoresize = yes - max_width = 500 - } - - flowcontainer = { - datamodel = "[MyRealmWindow.GetRealmLaws]" - ignoreinvisible = yes - wrap_count = 2 - - item = { - widget_my_realm_law_item = { - block "show_law" - { - visible = "[And( GuiLawGroup.IsAvailable, Not( GuiLawGroup.GetLawGroup.HasFlag( 'realm_law' ) ))]" - } - } - } - } - } - - type vbox_election_title_law_item = vbox { - datacontext = "[TitleItem.GetTitle]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Frame - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 10 0 } - margin_top = 2 - margin_bottom = 4 - spacing = 10 - - container = { - my_realm_coa_tiny_item = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Title.GetTitleLawsTooltip]" - align = nobaseline - } - - expand = {} - - button_round = { - visible = "[Not( ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self ) )]" - - button_election_vote = { - parentanchor = center - - onclick = "[OpenSuccessionElectionWindowForTitle(Title.Self)]" - tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" - } - } - } - } - - type vbox_my_realm_laws_body = vbox { - using = Animation_Tab_Switch - - ### LAWS TOP AND PROGRESS BAR - vbox = { - visible = "[And( And( GreaterThan_int32( MyRealmWindow.GetPowerfulVassalLawVoteCount, '(int32)0' ), Not( IsNomad( GetPlayer ) ) ), Not( GetPlayer.GetGovernment.HasRule( 'deny_powerful_vassal' )))]" - margin_top = 15 - spacing = 5 - - text_multi = { - text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_DESC" - align = center|nobaseline - autoresize = yes - default_format = "#I" - max_width = 500 - } - - text_single = { - text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_TITLE" - align = nobaseline - } - - ### POWERFUL VASSALS PROGRESS BAR - vbox = { - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_APPROVES" - align = nobaseline - } - - progressbar_standard = { - layoutpolicy_horizontal = expanding - size = { 140 20 } - - using = Animation_ShowHide_Standard - - max = "[IntToFloat( MyRealmWindow.GetPowerfulVassalLawVoteCount )]" - value = "[IntToFloat( MyRealmWindow.GetPowerfulVassalLawApproves )]" - } - - text_single = { - text = "MY_REALM_WINDOW_LAWS_PROGRESS_BAR_OPPOSES" - align = nobaseline - } - } - } - } - - ### KURULTAI PROGRESS BAR - vbox = { - datacontext = "[MyRealmWindow.GetKurultaiSuccession]" - visible = "[And( GreaterThan_int32( KurultaiSuccession.GetVoteCount, '(int32)0' ), IsNomad( GetPlayer ) )]" - layoutpolicy_horizontal = expanding - - margin_top = 15 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "MY_REALM_WINDOW_KURULTAI_APPROVES" - align = nobaseline - max_width = 150 - } - - progressbar_standard = { - name = "kurultai_votes" - layoutpolicy_horizontal = expanding - size = { 200 20 } - - using = Animation_ShowHide_Standard - - max = "[IntToFloat( KurultaiSuccession.GetVoteCount )]" - value = "[IntToFloat( KurultaiSuccession.GetObedientCount )]" - } - - text_single = { - text = "MY_REALM_WINDOW_KURULTAI_OPPOSES" - align = nobaseline - max_width = 150 - } - } - - text_multi = { - text = "MY_REALM_WINDOW_KURULTAI_OBEDIENT" - autoresize = yes - default_format = "#italic" - align = center - max_width = 500 - margin = { 0 5 } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 18 - - ### REALM LAWS (except the flag 'realm_law' as those are reserved for Crown Authority) - vbox_law_item = { - blockoverride "item_title" - { - visible = no - } - - blockoverride "show_law" - { - visible = "[And( GuiLawGroup.IsAvailable, Or( GuiLawGroup.GetLawGroup.HasFlag( 'succession_order_laws' ), Or( GuiLawGroup.GetLawGroup.HasFlag( 'succession_gender_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'imperial_policy' ) ) ) )]" - } - } - - ### PRIMARY TITLE ELECTION (if exists) - flowcontainer = { - name = "primary_title_election" - datacontext = "[GetPlayer]" - datamodel = "[MyRealmWindow.GetTitlesCanVote]" - visible = "[MyRealmWindow.CanVote]" - - ignoreinvisible = yes - - item = { - button_standard = { - datacontext = "[TitleItem.GetTitle]" - visible = "[ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self )]" - text = "MY_REALM_WINDOW_VOTE" - - onclick = "[OpenSuccessionElectionWindowForTitle(Title.Self)]" - - tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" - } - } - } - - #### ELECTIONS BUTTON - vbox = { - visible = "[MyRealmWindow.CanVote]" - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "MY_REALM_WINDOW_LAWS_SPECIFIC_SUCCESSION_LAWS" - } - - vbox = { - name = "elections" - datacontext = "[GetPlayer]" - datamodel = "[MyRealmWindow.GetTitlesCanVote]" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - margin_top = 5 - - item = { - vbox_election_title_law_item = { - visible = "[Not( ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self ) )]" - } - } - } - } - - ### PROVINCIAL LAWS - vbox_law_item = { - datacontext = "[GetPlayer]" - visible = "[ProvincialLawCharacter( Character )]" - - blockoverride "item_title" - { - text = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS" - } - - blockoverride "item_desc" - { - text = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS_DESC" - } - - blockoverride "show_law" - { - visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'admin_law' ) )]" - - enabled = "[Not( Character.HasOverlord )]" - - tooltip_when_disabled = "MY_REALM_WINDOW_LAWS_PROVINCIAL_LAWS_DESC_DISABLED" - } - } - - ### TREASURY BUDGET LAWS - vbox_law_item = { - datacontext = "[GetPlayer]" - visible = "[And( Character.IsIndependentRuler, Character.HasTreasury )]" - - blockoverride "item_title" - { - text = "MY_REALM_WINDOW_LAWS_TREASURY_BUDGET_LAWS" - } - - blockoverride "show_law" - { - visible = "[And( GuiLawGroup.IsAvailable, GuiLawGroup.GetLawGroup.HasFlag( 'treasury_budget_law' ) )]" - - enabled = "[Not( Character.HasOverlord )]" - - tooltip_when_disabled = "MY_REALM_WINDOW_LAWS_TREASURY_BUDGET_LAWS_DESC_DISABLED" - } - } - - button_standard = { - visible = "[And( Character.IsIndependentRuler, Character.HasTreasury )]" - size = { 320 44 } - - onclick = "[OpenGameViewData( 'treasury_budget_change', GetPlayer.Self )]" - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - - expand = {} - - icon = { - size = { 32 32 } - texture = "gfx/interface/icons/icon_imperial_treasury.dds" - } - - text_single = { - text = "MY_REALM_WINDOW_MANAGE_TREASURY_BUDGET" - align = nobaseline - default_format = "#clickable" - } - expand = {} - } - } - } - } - - type authority_icon = vbox { - hbox = { - visible = "[IsNomad( Character )]" - - icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" - size = { 30 30 } - texture = "gfx/interface/icons/dominance_01.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" - size = { 30 30 } - texture = "gfx/interface/icons/dominance_02.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" - size = { 30 30 } - texture = "gfx/interface/icons/dominance_03.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" - size = { 30 30 } - texture = "gfx/interface/icons/dominance_04.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)4')]" - size = { 30 30 } - texture = "gfx/interface/icons/dominance_05.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - } - - hbox = { - visible = "[And(Not(IsNomad( Character )),Not(Character.GetGovernment.HasGovernmentFlag( 'government_is_tribal' )))]" - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/crown_authority_0.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/crown_authority_1.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/crown_authority_2.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/crown_authority_3.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - } - - hbox = { - visible = "[Character.GetGovernment.HasGovernmentFlag( 'government_is_tribal' )]" - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)0')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/tribal_authority_0.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)1')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/tribal_authority_1.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)2')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/tribal_authority_2.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - - button_icon = { - visible = "[EqualTo_int32( Law.GetIndexInLawGroup, '(int32)3')]" - size = { 30 30 } - texture = "gfx/interface/icons/laws/tribal_authority_3.dds" - - tooltipwidget = { - general_law_tooltip = {} - } - } - } - } -} diff --git a/N3OW/gui/window_plan_great_project.gui b/N3OW/gui/window_plan_great_project.gui deleted file mode 100644 index 29f303f6..00000000 --- a/N3OW/gui/window_plan_great_project.gui +++ /dev/null @@ -1,495 +0,0 @@ -window = { - name = "plan_great_project" - widgetid = "plan_great_project" - size = { 630 900 } - position = { 660 90 } - datacontext = "[PlanGreatProjectWindow.GetProjectType]" - - layer = middle - layoutpolicy_vertical = expanding - using = Window_Background - using = Window_Decoration - using = Window_Movable - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - # ICON, TITLE AND DESCRIPTION - vbox = { - using = Window_Margins - layoutpolicy_horizontal = expanding - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.AddTab( 'overview' )]" - oncreate = "[PdxGuiTabs.AddTab( 'contributions' )]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[GreatProjectType.GetName]" - - } - - blockoverride "button_close" - { - onclick = "[PlanGreatProjectWindow.Close]" - shortcut = "close_window" - - } - } - - widget = { - size = { 550 220 } - - background = { - name = "illustration" - texture = "[GreatProjectType.GetIllustration]" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.9 - } - - text_single = { - visible = "[And( GreatProjectType.SatisfiesRequirements( PlanGreatProjectWindow.GetSelectedProvince.Self ), Not( GreatProjectType.NeedLocationSelection ) )]" - parentanchor = top|left - position = { 10 5 } - - text = "GREAT_PROJECT_LOCATION_PLAN" - align = nobaseline - - background = { - using = Background_Area_Dark - margin = { 10 5 } - margin_right = 70 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - } - - text_multi = { - name = "great_project_description" - layoutpolicy_horizontal = expanding - - minimumsize = { 550 -1 } - maximumsize = { 550 -1 } - margin = { 15 15 } - - text = "[GreatProjectType.GetDescription]" - autoresize = yes - } - - hbox_tab_buttons = { - name = "great_project_view_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'great_project_view_tab' )]" - } - } - - # EFFECTS - vbox = { - name = "great_project_overview" - visible = "[PdxGuiTabs.IsTabSet( 'overview' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - datacontext = "[PlanGreatProjectWindow.GetSelectedProvince]" - layoutpolicy_horizontal = expanding - - margin_top = 5 - margin_bottom = 15 - spacing = 5 - - text_label_center = { - text = "GREAT_PROJECT_PLAN_REQUIREMENT_HEADER" - visible = "[And( Not( GreatProjectType.SatisfiesRequirements( Province.Self ) ), Not( PlanGreatProjectWindow.CanOpenPlanMapMode ) )]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 540 - margin = { 5 5 } - text = "[GreatProjectType.GetPlanRequirementsInProvinceDesc( Province.Self )]" - } - - text_label_center = { - text = "GREAT_PROJECT_EFFECTS_HEADER" - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 540 - margin = { 5 5 } - text = "[GreatProjectType.GetProjectCompletedEffectsDescription( Province.Self )]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - autoresize = yes - max_width = 540 - margin = { 5 5 } - text = "[GreatProjectType.GetProjectFailedEffectsDescription( Province.Self )]" - } - } - } - } - } - - # CONTRIBUTIONS TAB - vbox = { - name = "contribution_tab" - visible = "[PdxGuiTabs.IsTabSet( 'contributions' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - name = "contributions_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - - layoutpolicy_horizontal = expanding - - margin_top = 5 - margin_bottom = 15 - spacing = 5 - - text_label_center = { - text = "great_project_list_mandatory_contributions" - default_format = "#bold" - } - - text_single = { - visible = "[IsDataModelEmpty( PlanGreatProjectWindow.GetMandatoryContributions )]" - text = "GREAT_PROJECT_NO_CONTRIBUTION_MANDATORY" - default_format = "#weak" - } - - vbox = { - datamodel = "[PlanGreatProjectWindow.GetMandatoryContributions]" - layoutpolicy_horizontal = expanding - spacing = 5 - - item = { - widget_project_plan_contribution_item = { - layoutpolicy_horizontal = expanding - } - } - } - - text_multi = { - text = "GREAT_PROJECT_CONTRIBUTION_MANDATORY_EXPLANATION" - default_format = "#weak" - align = center - max_width = 500 - autoresize = yes - - margin_top = 10 - } - } - - vbox = { - datamodel = "[PlanGreatProjectWindow.GetOptionalContributions]" - layoutpolicy_horizontal = expanding - - margin_bottom = 15 - spacing = 5 - - text_label_center = { - text = "great_project_list_optional_contributions" - default_format = "#bold" - } - - text_single = { - visible = "[IsDataModelEmpty( PlanGreatProjectWindow.GetOptionalContributions )]" - text = "GREAT_PROJECT_NO_CONTRIBUTION_OPTIONAL" - default_format = "#weak" - } - - item = { - widget_project_plan_contribution_item = { - visible = "[ContributionItem.IsShown]" - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - # COSTS AND PLAN BUTTON - vbox = { - datacontext = "[PlanGreatProjectWindow.GetSelectedProvince]" - - margin = { 0 10 } - spacing = 10 - - hbox = { - name = "costs" - spacing = 60 - - vbox_great_project_cost = { - blockoverride "title" { - text = "GP_TITLE_COST_FOUND" - } - - blockoverride "background" {} - - blockoverride "cost" { - text = "[GreatProjectType.GetPlanCost( Province.Self )]" - } - } - - vbox_great_project_cost = { - blockoverride "title" { - text = "GP_TITLE_COST_COMPLETE" - } - - blockoverride "background" {} - - blockoverride "cost" { - text = "[GreatProjectType.GetMandatoryContributionsCost( Province.Self )]" - } - } - } - - button_primary = { - text = "START_GREAT_PROJECT" - size = { 260 40 } - - tooltip_visible = "[Not( IsValidCommand( GetPlayer.StartPlanningGreatProject( GreatProjectType.Self, Province.Self ) ) )]" - tooltip = "[GreatProjectType.GetCannotPlanReason( Province.Self )]" - - visible = "[Not( GreatProjectType.NeedLocationSelection )]" - enabled = "[IsValidCommand( GetPlayer.StartPlanningGreatProject( GreatProjectType.Self, Province.Self ))]" - onclick = "[PostCommand( GetPlayer.StartPlanningGreatProject( GreatProjectType.Self, Province.Self )) ]" - onclick = "[PlanGreatProjectWindow.Close]" - } - - button_primary = { - text = "CHOOSE_GREAT_PROJECT_LOCATION" - size = { 260 40 } - - visible = "[GreatProjectType.NeedLocationSelection]" - enabled = "[PlanGreatProjectWindow.CanOpenPlanMapMode]" - tooltip_visible = "[Not( PlanGreatProjectWindow.CanOpenPlanMapMode )]" - tooltip = "[PlanGreatProjectWindow.GetCannotOpenPlanMapModeReason]" - - onclick = "[PlanGreatProjectWindow.ShowPlanGreatProjectMapMode]" - } - } - } -} - -widget = { - name = "potential_plan_location_window" - size = { 100% 100% } - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - scale = 1.2 - - position = { 0 100 } - - text_label_center = { - text = "[SelectPlanProjectLocationView.GetProjectType.GetName]" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "PLAN_LOCATION_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - icon = { - using = Background_Label_Center - parentanchor = bottom|hcenter - size = { 400 85 } - position = { 0 10 } - - button_primary_big = { - name = "close_plan_window" - text = BACK_LABEL - parentanchor = center - - onclick = "[SelectPlanProjectLocationView.Close]" - tooltip = "COUNCIL_TASK_CANCEL_ASSIGNMENT" - shortcut = "close_window" - } - } -} - -types GreatProjectPlanWindow -{ - type vbox_great_project_cost = vbox - { - spacing = 5 - - block "background" - { - background = { - } - } - - text_label_center = { - block "title_visible" { } - - block "title" - { - text = "GP_TITLE_COST_FOUND" - } - } - - text_single = { - align = nobaseline - - block "cost" { } - } - } - - type widget_project_plan_contribution_item = widget { - size = { 300 45 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 8 } - - tooltip = "[ContributionItem.GetPreviewTooltip]" - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - text_single = { - layoutpolicy_horizontal = growing - - text = "[ContributionItem.GetName]" - align = nobaseline - - default_format = "#low" - - visible = "[ContributionItem.GetContributor.IsValid]" - } - - text_single = { - layoutpolicy_horizontal = growing - - text = "[ContributionItem.GetName]" - align = nobaseline - - visible = "[Not(ContributionItem.GetContributor.IsValid)]" - } - - - expand = {} - - block "contributor_slot" {} - - text_single = { - name = "contribution_cost" - visible = "[Not( ContributionItem.GetContributor.IsValid )]" - - margin = { 10 0 } - - text = "[ContributionItem.GetContributionCost( GetPlayer )]" - tooltip = "[ContributionItem.GetContributionCostTooltip( GetPlayer )]" - align = nobaseline - using = Font_Size_Medium - } - - block "contribution_status" {} - - } - - # Only show this button when the project has been created and is not yet funded - button_standard = { - name = "show_contributors_button" - - # Fix the visible block below with TIT-65568 - visible = "[And( Not( ContributionItem.HasKey('master_builder') ), And( Not( ContributionItem.HasKey('dynastic_temple_complex') ),And( Not( ContributionItem.HasKey('family_temple_complex') ),And( Not( ContributionItem.HasKey('family_temple_compound') ),And( Not( ContributionItem.HasKey('family_statues') ),And( Not( ContributionItem.HasKey('family_shrine') ),And( Not( ContributionItem.HasKey('trickery_aspect') ),And( Not( ContributionItem.HasKey('destruction_aspect') ),And( Not( ContributionItem.HasKey('serenity_aspect') ),And( Not( ContributionItem.HasKey('creation_aspect') ),And( Not( ContributionItem.HasKey('rite_of_worthiness') ), And( ObjectsEqual( ContributionItem.GetProject.GetOwner, GetPlayer ), And( ContributionItem.GetProject.IsValid, Not( ContributionItem.IsFunded ) ) ) ) ) ) ) ) ) ) ) ) ) )]" - - size = { 60 40 } - - onclick = "[GreatProjectWindow.ShowPotentialContributors( ContributionItem.Self )]" - enabled = "[NotEqualTo_int32(ContributionItem.GetNumberOfValidContributors, '(int32)0')]" - - tooltip = "[ContributionItem.GetPotentialContributorsTooltip]" - - hbox = { - expand = {} - - icon = { - using = Master_Button_Modify_Texture - texture = "gfx/interface/icons/flat_icons/window_me.dds" - size = { 25 25 } - alwaystransparent = yes - } - - expand = {} - - text_single = { - text = "[ContributionItem.GetNumberOfValidContributors]" - align = right|nobaseline - margin_right = 3 - default_format = "#clickable" - } - - expand = {} - } - } - } - } -} diff --git a/N3OW/gui/window_potential_great_project_contributors.gui b/N3OW/gui/window_potential_great_project_contributors.gui deleted file mode 100644 index dfadf461..00000000 --- a/N3OW/gui/window_potential_great_project_contributors.gui +++ /dev/null @@ -1,171 +0,0 @@ -window = { - name = "potential_great_project_contributors_window" - position = { -1240 110 } - parentanchor = right - allow_outside = yes - layer = middle - - using = Window_Movable - using = Window_Background_Subwindow - using = Window_Size_CharacterList_Small - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - margin = { 5 5 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - text = "POTENTIAL_CONTRIBUTOR_HEADER" - } - - blockoverride "button_close" { - onclick = "[PotentialContributorWindow.Close]" - } - } - - vbox_character_list = { - datacontext = "[PotentialContributorWindow.GetListItems]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - - blockoverride "item_size" { - size = { 480 110 } - layoutpolicy_horizontal = expanding - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - addcolumn = 535 - addrow = 110 - - item = { - widget_character_list_item = { - size = { 515 110 } - - datacontext = "[CharacterListItem.GetCharacter]" - - blockoverride "portrait_button" - { - grayscale = "[Not(CharacterListItem.IsSelectable)]" - } - - blockoverride "widget" - { - background = { - visible = "[Not(CharacterListItem.IsSelectable)]" - using = Background_Area - margin_bottom = -4 - } - } - - blockoverride "button_content" - { - enabled = "[CharacterListItem.IsSelectable]" - tooltip = "REQUEST_CONTRIBUTION_TOOLTIP" - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 5 } - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNoTooltip]" - max_width = 220 - using = Font_Size_Medium - alwaystransparent = yes - } - - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - align = left - max_width = 220 - alwaystransparent = yes - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - - expand = {} - } - - vbox = { - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_top = 10 - margin_bottom = 8 - margin_right = 10 - - # Skills - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - - item = { - widget_skill_item_no_icon = {} - } - } - - expand = {} - - ### Acceptance - text_single = { - name = "acceptance" - layoutpolicy_horizontal = expanding - - text = "[CharacterListItem.GetText( 'acceptance' )]" - align = nobaseline|right - - tooltip = "[CharacterListItem.GetText( 'acceptance_desc' )]" - # not sure why it is needed, but without alwaystransparent, the button the text is on will not highlight - alwaystransparent = yes - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[PotentialContributorWindow.GetListItems]" - - blockoverride "addition_filter" { - filter_item = { - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - layoutpolicy_horizontal = expanding - } - } - } -} diff --git a/N3OW/gui/window_raid.gui b/N3OW/gui/window_raid.gui deleted file mode 100644 index daf39fe9..00000000 --- a/N3OW/gui/window_raid.gui +++ /dev/null @@ -1,559 +0,0 @@ -### RAID WINDOW -window = { - name = "raid_window" - size = { 625 480 } - parentanchor = bottom|left - movable = no - layer = middle - datacontext = "[RaidWindow.GetRaid]" - datacontext = "[Raid.GetArmy]" - datacontext = "[Raid.GetProvince]" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -17 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - vbox = { - name = "window_content" - margin_right = 35 - margin_top = 30 - - ##Header### - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 15 - margin_left = 5 - margin_top = 5 - margin_bottom = 5 - - background = { - using = Background_Area_Dark - margin_left = 5 - } - - ### RAIDING ARMY SELECT - highlight_icon = { - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/icon_raid.dds" - } - - text_single = { - name = "title" - text = "[Raid.GetName]" - margin_left = 5 - margin_bottom = 4 - using = Font_Size_Big - font = TitleFont - } - - expand = {} - - ### RAIDING ARMIES SELECT - button_group = { - onclick = "[RaidWindow.OpenArmyWindow]" - visible = "[Army.GetOwner.IsLocalPlayer]" - tooltip = "SW_TT_OPEN_ARMY_WINDOW" - using = tooltip_ws - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_army_icon.dds" - } - } - - button_group = { - onclick = "[RaidWindow.OpenHoldingView]" - tooltip = "SW_TT_SHOW_HOLDING" - using = tooltip_ne - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_holding_icon.dds" - } - } - - buttons_window_control = { - - blockoverride "button_go_to" - { - onclick = "[DefaultOnCoatOfArmsRightClick(Province.GetCounty.GetTitle.GetID)]" - tooltip = "GOTO_PROVINCE_TT" - using = tooltip_ne - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - - blockoverride "button_close" - { - onclick = "[RaidWindow.Close]" - } - } - } - - #################################### - ########### RAID INFO ############ - #################################### - - vbox = { - layoutpolicy_horizontal = expanding - - #### DARK AREA ### - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - background = { - using = Background_Area - } - - text_label_center = { - name = "time_left" - visible = "[Not(Raid.IsBlocked)]" - text = "RW_TIME_LEFT" - tooltip = "RW_TIME_LEFT_TT" - } - - #### PROGRESSBAR ### - hbox = { - name = "progressbar_area" - margin = { 10 0 } - allow_outside = yes - - datacontext = "[Army.GetOwner]" - - widget = { - size = { 64 50 } - allow_outside = yes - - coa_realm_medium = { - name = "raider_realm" - tooltip = "RW_TT_RAIDING_REALM_TOOLTIP" - using = tooltip_ws - parentanchor = top - } - } - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - tooltip = "RAID_PROGRESS_TOOLTIP" - using = tooltip_above - - widget = { - size = { 370 45 } - - progressbar = { - name = "progress_bar_attacker" - visible = "[And(Character.IsLocalPlayer, Not(Raid.IsBlocked))]" - - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_blue.dds" - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[Raid.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - progressbar = { - name = "progress_bar_defender" - visible = "[And(Not(Character.IsLocalPlayer), Not(Raid.IsBlocked))]" - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_red.dds" - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[Raid.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - progressbar = { - name = "progress_bar_blocked" - visible = "[Raid.IsBlocked]" - parentanchor = top - size = { 370 35 } - position = { 0 8 } - - progresstexture = "gfx/interface/progressbars/war_progress_blue.dds" - - noprogresstexture = "gfx/interface/progressbars/war_progress_noprogress.dds" - - value = "[Raid.GetProgressPercent]" - - direction = horizontal - alwaystransparent = yes - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/siege_frame.dds" - spriteType = Corneredstretched - spriteborder = { 30 40 } - margin = { 5 0 } - margin_bottom = 10 - texture_density = 2 - } - } - } - } - - expand = {} - } - - widget = { - size = { 58 50 } - allow_outside = yes - - coa_realm_medium = { - name = "defending_realm" - datacontext = "[Raid.GetProvince.GetTitle.GetHolder]" - tooltip = "RW_TT_DEFENDING_REALM_TOOLTIP" - parentanchor = top - position = { -5 0} - } - } - } - - #### Textstring info #### - vbox = { - name = "time" - ignoreinvisible = yes - margin = { 0 3 } - - expand = { - minimumsize = { 0 26 } - visible = "[Not(Raid.IsBlocked)]" - } - - text_single = { - name = "desc" - text = "RAID_BLOCKED_BY_COMBAT" - visible = "[Raid.IsBlocked]" - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - ### GARRISON - hbox = { - spacing = 10 - margin = { 0 5 } - minimumsize = { 0 50 } - - tooltip = "RAID_TROOPS_TOOLTIP" - using = tooltip_above - - hbox = { - spacing = 5 - - icon = { - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 35 35 } - } - - text_single = { - name = "attacker_side" - text = "[Raid.GetAttackerMen]" - } - } - - container = { - name = "men_balance" - - progressbar_standard_transparent = { - size = { 200 20 } - value = "[Raid.GetRaidMenBalance]" - parentanchor = center - } - - progress_threshold = { - parentanchor = top|hcenter - size = { 5 20 } - } - } - - hbox = { - spacing = 5 - - text_single = { - name = "defender_side" - text = "[Raid.GetDefenderMen]" - } - - icon = { - texture = "gfx/interface/icons/icon_garrison.dds" - size = { 45 45 } - } - } - } - } - - #################################### - ########### HOLDING INFO ########### - #################################### - - margin_widget = { - name = "holding_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 200 } - scissor = yes - - background = { - using = Background_Area_Dark - margin_left = 5 - margin_top = 3 - } - - background = { - texture = "[Province.GetIllustration]" - - modify_texture = { - texture = "gfx/interface/window_county/mask_holding_illustration.dds" - blend_mode = alphamultiply - alpha = 0.95 - } - } - - ### TOP LEFT - flowcontainer = { - ignoreinvisible = yes - spacing = 5 - margin = { 5 5 } - - coa_title_medium = { - datacontext = "[Province.GetTitle]" - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - margin_top = 5 - - flowcontainer = { - ignoreinvisible = yes - - text_single = { - text = "[Province.GetHolding.GetName]" - tooltip = "[Province.GetTitle.GetNameNoTierNoTooltip]" - default_format = "#high" - align = nobaseline - using = Font_Size_Big - max_width = 190 - fontsize_min = 16 - } - - spacer = { - size = { 3 3 } - } - - widget = { - size = { 30 30 } - - icon = { - name = "county_capital_icon" - visible = "[Province.GetTitle.IsCountyCapital]" - - size = { 30 30 } - texture = "gfx/interface/icons/icon_capital.dds" - framesize = { 60 60 } - frame = 1 - } - } - } - - text_label_left = { - text = "[Province.GetHolding.GetType.GetName]" - } - } - } - - - - hbox = { - margin_left = 10 - margin_top = 10 - - vbox = { - margin_top = 5 - margin_right = 5 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - expand = {} - - icon = { - datacontext = "[Province.GetTerrain]" - texture = "[Terrain.GetIcon]" - tooltip = "HOLDING_TERRAIN_TOOLTIP" - size = { 35 35 } - } - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 10 - spacing = 5 - min_width = 150 - margin_right = 15 - - background = { - using = Background_Area_Dark - alpha = 0.7 - margin_right = -5 - } - - vbox = { - margin_left = 10 - layoutpolicy_horizontal = expanding - margin = { 2 0 } - spacing = 3 - - ### Raid loot - hbox = { - name = "tutorial_highlight_holding_view_loot_box" - layoutpolicy_horizontal = expanding - tooltip = "[Province.GetLootTooltip]" - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_LOOT" - default_format = "#high" - } - - text_single = { - text = "PROVINCE_LOOT_VALUE" - default_format = "#high" - } - } - - ### Garrison - vbox = { - layoutpolicy_horizontal = expanding - spacing = 2 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_GARRISON" - default_format = "#high" - } - - icon = { - name = "icon_garrison" - texture = "gfx/interface/icons/icon_garrison.dds" - size = { 30 30 } - } - - text_single = { - default_format = "#high" - name = "defender_side" - text = "[Raid.GetDefenderMen]" - } - } - } - - ### Fort Info - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "HOLDING_FORT_LEVEL" - default_format = "#high" - } - - hbox = { - spacing = 7 - tooltip = "[Province.GetFortLevelTooltip]" - - icon = { - name = "icon_fort" - texture = "gfx/interface/window_siege/fort_icon.dds" - size = { 30 25 } - } - - text_single = { - text = "[Province.GetFortLevel]" - default_format = "#high" - align = nobaseline - } - } - } - } - - expand = {} - } - } - } - } -} diff --git a/N3OW/gui/window_raid_intent_selection.gui b/N3OW/gui/window_raid_intent_selection.gui deleted file mode 100644 index 76cc09d9..00000000 --- a/N3OW/gui/window_raid_intent_selection.gui +++ /dev/null @@ -1,229 +0,0 @@ -window = { - name = "raid_intent_selection_window" - datacontext = "[GetVariableSystem]" - datacontext = "[RaidIntentSelectionWindow.GetSelectedIntent]" - layer = middle - allow_outside = yes - size = { 500 520 } - position = { 26% 120 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - position_y = 80 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = 200 - } - - vbox = { - - size = { 100% 100% } - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "RAID_INTENT_SELECTION_HEADER" - } - blockoverride "button_close" - { - onclick = "[RaidIntentSelectionWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - alpha = 0.3 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - - vbox = { - name = "intent_selection" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 8 - - background = { - using = Background_Area_Dark - alpha = 0.8 - - margin_left = 100 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "RAID_INTENT_SELECTION_TEXT" - default_format = "#I" - align = center|nobaseline - - margin = { 16 8 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - - scrollbox = { - name = "raid_intents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - minimumsize = { 0 100 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[RaidIntentSelectionWindow.GetPotentialIntents]" - layoutpolicy_horizontal = expanding - spacing = 4 - - item = { - button_standard = { - layoutpolicy_horizontal = expanding - size = { 0 50 } - - onclick = "[RaidIntentSelectionWindow.SelectIntent( RaidIntent.Self )]" - down = "[ObjectsEqual( RaidIntentData.GetType, RaidIntent.Self )]" - enabled = "[RaidIntentSelectionWindow.CanPickIntent( RaidIntent.Self )]" - - tooltip = "RAID_CHANGE_INTENT_TOOLTIP" - - hbox = { - size = { 100% 100% } - margin = { 8 0 } - spacing = 8 - - highlight_icon = { - size = { 40 40 } - texture = "[RaidIntent.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - blend_mode = normal - framesize = { 96 96 } - - block "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - text = "[RaidIntent.GetName]" - align = nobaseline - default_format = "#clickable" - using = Font_Size_Medium - } - - expand = {} - } - } - } - } - } - - blockoverride "scrollbox_background" {} - - blockoverride "scrollbox_background_fade" {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - } - } - } - - hbox = { - name = "cancel_or_confirm" - layoutpolicy_horizontal = expanding - datacontext = "[RaidIntentSelectionWindow.GetArmy]" - datacontext = "[RaidIntentSelectionWindow.GetCharacter]" - - margin = {16 16} - spacing = 16 - - background = { - using = Background_Area - } - - expand = {} - - button_standard = { - text = "CANCEL" - - onclick = "[RaidIntentSelectionWindow.Close]" - shortcut = "close_window" - } - - button_primary = { - text = "CONFIRM" - visible = "[Not(RaidIntentSelectionWindow.IsArmyWindow)]" - - onclick = "[PostCommand( Character.SetDefaultRaidIntent( RaidIntentData.GetType.Self ) )]" - enabled = "[IsValidCommand( Character.SetDefaultRaidIntent( RaidIntentData.GetType.Self ) )]" - - onclick = "[RaidIntentSelectionWindow.Close]" - } - button_primary = { - text = "CONFIRM" - visible = "[RaidIntentSelectionWindow.IsArmyWindow]" - - onclick = "[PostCommand( Character.SetDefaultRaidIntent( RaidIntentData.GetType.Self ) )]" - onclick = "[PostCommand( Character.SetRaidIntent( Army.Self, RaidIntentData.GetType.Self ) )]" - - enabled = "[And(IsValidCommand(Character.SetDefaultRaidIntent(RaidIntentData.GetType.Self)), IsValidCommand(Character.SetRaidIntent(Army.Self, RaidIntentData.GetType.Self)))]" - - onclick = "[RaidIntentSelectionWindow.Close]" - } - - expand = {} - } - } -} diff --git a/N3OW/gui/window_rally_points.gui b/N3OW/gui/window_rally_points.gui deleted file mode 100644 index 21160c13..00000000 --- a/N3OW/gui/window_rally_points.gui +++ /dev/null @@ -1,486 +0,0 @@ -window = { - name = "rally_point_window" - parentanchor = bottom|left - size = { 680 440 } - movable = no - layer = middle - - datacontext = "[RallyPointWindow.GetSelectedRallyPoint]" - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -13 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'county_view_open', 'true' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'county_view_open' )]" - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - vbox = { - margin_right = 35 - margin_top = 30 - spacing = 5 - - - hbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - icon = { - name = "rally_point_button" - size = { 40 40 } - texture = "gfx/interface/window_military/banner_icon.dds" - tintcolor = "[RallyPoint.GetColor]" - position = { 10 3 } - } - - blockoverride "header_text" - { - name = "title" - layoutpolicy_horizontal = expanding - text = "[RallyPointWindow.GetSelectedRallyPoint.GetName]" - parentanchor = left - position = { 55 3 } - } - - blockoverride "button_close" - { - onclick = "[RallyPointWindow.CloseAndDeselect]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 0 } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "local_levies_label" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_left = { - name = "local_levies_label_text" - text = "RP_LOCAL_LEVIES_LABEL" - layoutpolicy_horizontal = expanding - - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - vbox = { - margin_top = 5 - - hbox = { - name = "local_levies" - spacing = 5 - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 40 40 } - } - - text_single = { - name = "strength" - text = "[RallyPointWindow.GetUnraisedLocalLevies|V]" - } - - expand = { - layoutpolicy_horizontal = expanding - } - - tooltip = "RP_LOCAL_LEVIES_TOOLTIP" - } - - widget = { - name = "local_levies_ratio" - size = { 120 10 } - - background = { - using = Background_Area - margin = { 3 2 } - } - - progressbar_standard_transparent = { - size = "[RallyPointWindow.GetRelativeSizeLocalLevies]" - minimumsize = { 10 0 } - min = 0 - max = "[IntToFloat(RallyPointWindow.GetTotalLocalLevies)]" - value = "[IntToFloat(RallyPointWindow.GetUnraisedLocalLevies)]" - } - - tooltip = "RP_LOCAL_LEVIES_TOOLTIP" - } - - text_single = { - name = "quality_label" - align = left - text = "ARMY_QUALITY_LEVEL_1" - } - } - - expand = {} - - vbox = { - margin_right = 20 - spacing = 5 - - expand = {} - - button_standard = { - name = "raise_button" - onclick = "[RallyPointWindow.OnRaise]" - enabled = "[RallyPointWindow.CanRaise]" - tooltip = "[RallyPointWindow.GetRaiseTooltip]" - - minimumsize = { 210 40 } - - hbox = { - margin = { 5 0 } - - button_army_raise_assigned = {} - - text_single = { - layoutpolicy_horizontal = expanding - align = nobaseline|center - text = "RP_RAISE" - default_format = "#clickable" - autoresize = no - } - } - } - - hbox = { - spacing = 5 - margin_top = -5 - button_standard = { - name = "raise_raid_button" - onclick = "[RallyPointWindow.OnRaiseRaid]" - visible = "[GetPlayer.CanRaid]" - enabled = "[RallyPointWindow.CanRaiseRaid]" - tooltip = "[RallyPointWindow.GetRaiseRaidTooltip]" - minimumsize = { 210 40 } - - hbox = { - margin = { 5 0 } - - button_army_toggle_raiding = {} - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "RP_RAISE_RAID" - default_format = "#clickable" - max_width = 160 - } - } - } - - button_standard = { - name = "raise_barter_button" - onclick = "[RallyPointWindow.OnRaiseBarter]" - visible = "[GetPlayer.HasBarterGoods]" - enabled = "[RallyPointWindow.CanRaiseBarter]" - tooltip = "[RallyPointWindow.GetRaiseBarterTooltip]" - minimumsize = { 210 40 } - - hbox = { - margin = { 5 0 } - - button_army_toggle_bartering = {} - - text_single = { - layoutpolicy_horizontal = expanding - align = center - text = "RP_RAISE_BARTER" - default_format = "#clickable" - max_width = 160 - } - } - } - } - - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - name = "all_troops_label" - - text_label_left = { - name = "all_troops_label_text" - layoutpolicy_horizontal = expanding - text = "RP_ALL_SOLDIERS_LABEL" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - datacontext = "[RallyPointWindow.GetAllTroopsComposition]" - layoutpolicy_vertical = expanding - - text_single = { - name = "all_levies" - layoutpolicy_horizontal = expanding - text = "RP_LEVIES_ENTRY" - } - - text_single = { - name = "all_maa" - layoutpolicy_horizontal = expanding - text = "RP_MAA_ENTRY" - } - - text_single = { - name = "all_knights" - datacontext = "[RallyPointWindow.GetSelectedRallyPoint]" - layoutpolicy_horizontal = expanding - text = "RP_KNIGHTS_ENTRY" - tooltip = "RP_KNIGHTS_TOOLTIP" - } - - text_single = { - name = "all_troops_quality" - text = "[ArmyComposition.GetArmyQualityName]" - } - - expand = {} - } - - expand = {} - - vbox = { - layoutpolicy_vertical = growing - margin_top = 15 - margin_right = 20 - spacing = 10 - - button_primary = { - name = "raise_all_button" - minimumsize = { 210 55 } - - onclick = "[RallyPointWindow.OnRaiseAll]" - enabled = "[RallyPointWindow.CanRaiseAll]" - tooltip = "[RallyPointWindow.GetRaiseAllTooltip]" - - text = "RP_RAISE_ALL" - } - - button_standard = { - name = "raise_maa_button" - - onclick = "[RallyPointWindow.OnRaiseMenAtArms]" - enabled = "[RallyPointWindow.CanRaiseMenAtArms]" - tooltip = "[RallyPointWindow.GetRaiseMenAtArmsTooltip]" - minimumsize = { 210 55 } - - hbox = { - margin = { 5 0 } - - text_single = { - layoutpolicy_horizontal = expanding - multiline = yes - max_width = 190 - align = nobaseline|hcenter - text = "RP_RAISE_MEN_AT_ARMS" - default_format = "#clickable" - } - } - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - expand = {} - - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - expand = {} - - ## Multi-selected - hbox = { - name = "rally_point_items_grid" - datamodel = "[RallyPointWindow.GetSelectedRallyPointItems]" - visible = "[GreaterThan_int32(GetDataModelSize(RallyPointWindow.GetSelectedRallyPointItems), '(int32)1')]" - - item = { - container = { - name = "rally_point_item" - tooltip = "[SelectedRallyPointItem.GetTooltip]" - using = tooltip_ne - - icon = { - name = "rally_point_selected_background" - visible = "[SelectedRallyPointItem.IsShown]" - size = { 45 45 } - texture = "gfx/interface/window_military/banner_icon_glow.dds" - position = { 0 -3 } - alwaystransparent = yes - } - - button_normal = { - name = "rally_point_icon" - size = { 45 45 } - texture = "gfx/interface/window_military/banner_icon.dds" - tintcolor = "[SelectedRallyPointItem.GetRallyPoint.GetColor]" - onclick = "[SelectedRallyPointItem.OnClick]" - down = "[SelectedRallyPointItem.IsShown]" - } - } - } - } - - button_round = { - name = "move_rally_point" - onclick = "[RallyPointWindow.OnMove]" - enabled = "[RallyPointWindow.CanMoveRallyPoint]" - tooltip = "[RallyPointWindow.GetMoveRallyPointTooltip]" - - button_army_move_rally_point = { - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - } - - } - - button_round = { - name = "remove_rally_point" - clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_unit_army_disband" - enabled = "[RallyPointWindow.CanRemove]" - tooltip = "[RallyPointWindow.GetRemoveTooltip]" - onclick = "[RallyPointWindow.OnRemove]" - - button_army_delete_rally_point = { - size = { 32 32 } - parentanchor = center - alwaystransparent = yes - } - } - } - } -} - -widget = { - name = "place_rally_point_window" - size = { 100% 100% } - - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - - position = {0 100} - - text_label_center = { - visible = "[PlaceRallyPoint.IsPlacingRallyPoint]" - text = "CREATE_RALLY_POINT" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - visible = "[PlaceRallyPoint.IsMovingRallyPoint]" - text = "MOVE_RALLY_POINT" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_CHOOSE_LOCATION" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_MAP_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - - button_primary_big = { - name = "close_assignment_window" - text = "BACK_LABEL" - - parentanchor = bottom|hcenter - position = { 0 -50} - - onclick = "[PlaceRallyPoint.Close]" - shortcut = "close_window" - } - - - #using = Background_Tooltip - - vbox = {} -} diff --git a/N3OW/gui/window_replace_pillar.gui b/N3OW/gui/window_replace_pillar.gui deleted file mode 100644 index 443efd0f..00000000 --- a/N3OW/gui/window_replace_pillar.gui +++ /dev/null @@ -1,257 +0,0 @@ -###################################################### -################## CULTURE REPLACE PILLAR ############# -###################################################### - -window = { - name = "replace_pillar_window" - parentanchor = center - layer = windows_layer - layoutpolicy_vertical = expanding - - datacontext = "[GetPlayer.GetCulture]" - - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - set_parent_size_to_minimum = yes - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "REPLACE_PILLAR_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[ReplacePillarWindow.Close]" - } - } - - vbox = { - name = "pillar_selection" - margin = { 0 8 } - spacing = 6 - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - size = { 0 500 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - flowcontainer = { - datamodel = "[ReplacePillarWindow.GetPossiblePillars]" - direction = vertical - spacing = 15 - - layoutpolicy_vertical = growing - - item = { - widget_pillar_item = { - } - } - } - } - } - - vbox = { - name = "cost" - datacontext = "[ReplacePillarWindow.GetSelectedPillar]" - visible = "[CulturePillar.IsValid]" - minimumsize = { 0 28 } - spacing = 10 - tooltip = "REPLACE_PILLAR_COST_TOOLTIP" - - text_single = { - layoutpolicy_horizontal = expanding - align = center|nobaseline - text = "REPLACE_PILLAR_TOTAL_COST" - default_format = "#high" - using = Font_Size_Medium - - background = { - visible = "[Not( ReplacePillarWindow.CanPayCost )]" - margin = { 5 0 } - using = Status_Bad - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 44 8 } - spacing = 20 - - button_standard= { - name = "decline_button" - text = "CANCEL_BUTTON" - onclick = [ReplacePillarWindow.Close] - shortcut = "close_window" - } - - button_primary = { - name = "done" - layoutpolicy_horizontal = expanding - onclick = "[ReplacePillarWindow.ReplacePillar]" - onclick = "[ReplacePillarWindow.Close]" - enabled = "[ReplacePillarWindow.CanReplacePillar]" - text = "REPLACE_PILLAR_EXECUTE_LABEL" - - tooltip = "REPLACE_PILLAR_EXECUTE_TOOLTIP" - - warning_icon = { - visible = "[Culture.IsReforming]" - parentanchor = vcenter|right - size = { 25 25 } - position = { -3 0 } - alwaystransparent = yes - } - } - } - } - } -} - -types CultureReplacePillarTypes -{ - type widget_pillar_item = widget { - size = { 300 90 } - - tooltipwidget = { - using = culture_pillar_tooltip - - blockoverride "above_description_text" { - text = "[ReplacePillarWindow.GetPickPillarBlockers( CulturePillar.Self )]" - } - } - - vbox = { - button_standard = { - size = { 300 60 } - onclick = "[ReplacePillarWindow.SelectPillar( CulturePillar.Self )]" - enabled = "[ReplacePillarWindow.CanPickPillar( CulturePillar.Self )]" - - highlight_icon = { - name = "ethos_icon" - visible = "[ReplacePillarWindow.IsEthos]" - block "icon_size" { - size = { 300 60 } - } - texture = "[CulturePillar.GetIcon]" - using = Mask_Rough_Edges - } - - selection_glow = { - visible = "[ObjectsEqual( ReplacePillarWindow.GetSelectedPillar, CulturePillar.Self )]" - } - - hbox = { - margin_top = 10 - margin_right = 10 - margin_bottom = 10 - margin_left = 10 - - expand = {} - - icon_doctrine = { - name = "doctrine_icon" - visible = "[ReplacePillarWindow.IsMartial]" - size = { 44 44 } - texture = "[CulturePillar.GetIcon]" - } - - spacer = { - size = { 15 44 } - } - - text_label_center = { - name = "name" - visible = "[Not( ReplacePillarWindow.IsMartial ) ]" - text = "[CulturePillar.GetNameNoTooltip]" - maximumsize = { 180 44 } - fontsize_min = 12 - multiline = yes - elide = right - - using = Font_Size_Medium - - block "default_format" { - default_format = "#high" - } - } - - text_label_center = { - name = "name2" - visible = "[ReplacePillarWindow.IsMartial]" - text = "[CulturePillar.GetNameNoTooltip]" - maximumsize = { 180 44 } - fontsize_min = 12 - multiline = yes - elide = right - - using = Font_Size_Medium - } - - expand = {} - - } - } - hbox = { - spacing = 20 - text_label_center = { - name = "cost" - text = "[ReplacePillarWindow.GetPillarCostString( CulturePillar.Self )]" - maximumsize = { 130 44 } - fontsize_min = 12 - multiline = yes - align = center - elide = right - - using = Font_Size_Small - tooltip = "[ReplacePillarWindow.GetPillarCostBreakdown( CulturePillar.Self )]" - using = tooltip_se - - background = { - visible = "[Not( ReplacePillarWindow.CanAffordPillar( CulturePillar.Self ) )]" - margin_bottom = -1 - margin_top = -3 - margin_right = 15 - using = Status_Bad - } - } - - text_label_center = { - name = "time" - text = "[Culture.GetTotalReformTimeForPillar]" - maximumsize = { 130 44 } - fontsize_min = 12 - multiline = yes - align = center - elide = right - - using = Font_Size_Small - tooltip = "ESTABLISHMENT_TIME_TOOLTIP_PILLAR" - using = tooltip_se - } - } - } - } -} diff --git a/N3OW/gui/window_resign_confirmation.gui b/N3OW/gui/window_resign_confirmation.gui deleted file mode 100644 index d344ed7f..00000000 --- a/N3OW/gui/window_resign_confirmation.gui +++ /dev/null @@ -1,144 +0,0 @@ -window = { - name = "ingame_resign_confirmation" - layer = confirmation - size = { 100% 100% } - movable = no - - using = Animation_ShowHide_Quick - using = Background_Full_Dim - - button = { - size = { 100% 100% } - onclick = [ResignConfirmationWindow.Cancel] - } - - widget = { - parentanchor = center - using = Window_Background_Popup - alwaystransparent = no - - vbox = { - set_parent_size_to_minimum = yes - - margin = { 20 20 } - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_background" { - margin = { 10 10 } - } - - blockoverride "header_pattern" { - margin = { 10 10 } - } - - blockoverride "header_text" - { - text = "EXIT" - } - - blockoverride "button_close" - { - visible = no - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Or( ResignConfirmationWindow.IsShowSave, Not( StringIsEmpty( ResignConfirmationWindow.GetText ) ) )]" - margin = { 0 20 } - spacing = 20 - - background = { - using = Background_Area - } - - text_multi = { - name = "description" - autoresize = yes - max_width = 430 - min_width = 430 - margin = { 20 0 } - text = "[ResignConfirmationWindow.GetText]" - visible = "[Not( StringIsEmpty( ResignConfirmationWindow.GetText ) )]" - using = "Font_Size_Small" - } - - hbox = { - name = "save_checkbox" - spacing = 10 - margin = { 20 0 } - visible = "[And( ResignConfirmationWindow.IsShowSave, Not( IsIronmanEnabled ) )]" - - button_checkbox_label = { - onclick = "[ResignConfirmationWindow.ToggleShouldSave]" - enabled = "[Not( IsIronmanEnabled )]" - - blockoverride "checkbox" - { - checked = "[Or( ResignConfirmationWindow.ShouldSave, IsIronmanEnabled )]" - } - - blockoverride "text" - { - text = "FRONTEND_AUTO_SAVE" - - } - } - - expand = {} - } - - hbox = { - name = "ironman_save_info" - spacing = 10 - margin = { 20 0 } - - visible = "[IsIronmanEnabled]" - - text_single = { - text = "FRONTEND_AUTO_SAVE_IRONMAN" - } - - expand = {} - } - } - - button_standard = { - name = "menu_button" - size = { 230 42 } - text = "RESIGN" - onclick = "[ResignConfirmationWindow.OnMenu]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_quit_game" - } - - button_standard = { - name = "descktop_button" - size = { 230 42 } - text = "EXIT_TO_DESKTOP" - onclick = "[ResignConfirmationWindow.OnDesktop]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_quit_game" - } - - button_tertiary = { - name = "cancel_button" - size = { 230 42 } - text = "CANCEL" - shortcut = "close_window" - onclick = [ResignConfirmationWindow.Cancel] - } - } - } - - container_saving_indicator = { - parentanchor = center - visible = "[ResignConfirmationWindow.IsProgress]" - - blockoverride "csi_text" - { - text = "SAVE_IN_PROGRESS" - } - } -} diff --git a/N3OW/gui/window_royal_court.gui b/N3OW/gui/window_royal_court.gui deleted file mode 100644 index 02061eda..00000000 --- a/N3OW/gui/window_royal_court.gui +++ /dev/null @@ -1,2093 +0,0 @@ -window = { - name = "royal_court_window" - size = { 100% 100% } - parentanchor = center|hcenter - layer = royal_court - movable = no - - using = Window_Size_MainTab - filter_mouse = all - - datacontext = "[RoyalCourtWindow.AccessCourtEventWindow]" - datacontext = "[GetVariableSystem]" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[Character.GetCourtGrandeurData]" - - container = { - name = "royal_court_window_tutorial_uses_this" - widgetid = "royal_court_window_tutorial_uses_this" - } - - state = { - name = _show - # Don't clear tabs etc. here, we need to be able to open the Royal Court in the Artifact tab from Character Inventory. - - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - on_start = "[GetVariableSystem.Set( 'court_scene', 'yes' )]" - on_start = "[GetVariableSystem.Clear( 'court_type' )]" - on_start = "[RoyalCourtWindow.ClearSelectedArtifact]" - - using = Sound_EP1_Courtroom_MapMute_Snapshot - using = Animation_FadeIn_Standard - } - state = { - name = _hide - using = Animation_FadeOut_Standard - on_finish = "[RoyalCourtWindow.AccessInspirationsWindow.ClearSelectedInspiration]" - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - background = { - texture = "gfx/interface/colors/black.dds" - } - - widget = { - parentanchor = center - size = "[CalcResolutionLimitAspectRatio]" - - button = { - name = "court_scene_image" #Name is referenced by the source, please do not rename. FPS Camera control is hooking into this button custom event filters. - - state = { - name = "_mouse_enter" - on_start = "[RoyalCourtWindow.SetHoverWidgetActive( '(bool)yes' )]" - } - - state = { - on_start = "[RoyalCourtWindow.SetHoverWidgetActive( '(bool)no' )]" - name = "_mouse_leave" - } - - # Avoid having the click sound on everywhere in the court room - # and the hover sound when leaving hovered objects - oversound = "" - clicksound = "" - - size = { 100% 100% } - effectname = "NoAlphaNoHighlight" - - # We use the HoverRoyalCourt as a visible check so its run every frame to grab the update mouse position to find the new hover item, yes its a bit of a hack - visible = "[And( VariableSystem.Exists( 'court_scene' ), RoyalCourtWindow.HoverRoyalCourt( PdxGuiWidget.GetUnscaledMousePositionInteger ) )]" - - button_ignore = none - onclick = "[RoyalCourtWindow.ClickRoyalCourt( PdxGuiWidget.GetUnscaledMousePositionInteger )]" - onrightclick = "[RoyalCourtWindow.RightClickRoyalCourt( PdxGuiWidget.GetUnscaledMousePositionInteger )]" - - texture = "[RoyalCourtWindow.GetCourtRoomTexture( PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - widget = { - name = "hover_tooltip_anchor" - size = { 55 2 } - widgetanchor = center - - position = "[PdxGuiWidget.AccessParent.GetScaledMousePosition]" - - tooltipwidget = { - container = { - using = GeneralTooltipSetup - blockoverride "progress" {} - - royal_court_character_tooltip = { - datacontext = "[GetRoyalCourtHoveredCharacter]" - visible = "[Character.IsValid]" - - blockoverride "interaction_info" - { - text = "CHARACTER_TOOLTIP_INSTRUCTION_COURT_SCENE" - } - } - - artifact_tooltip = { - datacontext = "[GetRoyalCourtHoveredArtifact]" - visible = "[Artifact.IsValid]" - - blockoverride "extra_information" - { - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { # Displayed In Selected Slot - visible = "[RoyalCourtWindow.IsActiveArtifactsTab]" - text = "ROYAL_COURT_ARTIFACT_TOOLTIP_INTERACTION_INFO" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - expand = {} - } - } - } - } - } - } - } - - widget = { - name = "character_positioned_buttons" - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), And( Or( RoyalCourtWindow.GetCharacter.IsLocalPlayer, And(RoyalCourtWindow.IsInPetitionMode, RoyalCourtWindow.GetPetitionCharacter.IsLocalPlayer ) ) , Not( RoyalCourtWindow.ShouldShowFadeToBlack ) ) )]" - size = { 100% 100% } - - using = Animation_ShowHide_Quick - - widget = { - name = "court_events_popups" - datamodel = "[CourtEventWindow.GetCourtEventItems]" - visible = "[RoyalCourtWindow.IsActiveThroneTab]" - parentanchor = center - size = { 100% 100% } - - using = Animation_ShowHide_Quick - - item = { - flowcontainer = { - widgetanchor = bottom|hcenter - position = "[CourtEventItem.GetPositionCharacter.GetCourtScenePosition( PdxGuiWidget.AccessParent.Self )]" - direction = vertical - ignoreinvisible = yes - margin_bottom = 150 - - text_label_center = { - name = "court_event_timeout" - visible = "[LessThanOrEqualTo_int32( CourtEventItem.GetDaysRemaining, '(int32)30' )]" - parentanchor = hcenter - text = "COURT_EVENT_DAYS_REMAINING" - } - - button = { - name = "court_event_icon" - parentanchor = hcenter - - texture = "gfx/interface/icons/alerts/action_has_open_court_event.dds" - size = { 70 70 } - framesize = { 144 144 } - frame = 1 - - onclick = "[CourtEventWindow.OpenEvent( CourtEventItem.Self )]" - tooltip = "[CourtEventItem.GetTooltip]" - enabled = "[Not( CourtEventWindow.GetEventWindowInsert.HasOpenEvent )]" - } - } - } - } - } - - container = { - name = "static_hovered_icons" - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), RoyalCourtWindow.HasStaticHoveredObject )]" - - using = Animation_ShowHide_Quick - widget = { - name = "static_hovered_icon" - position = "[RoyalCourtWindow.GetStaticHoveredObjectPosition( PdxGuiWidget.AccessParent.Self )]" - icon = { - size = { 40 40 } - position = { -20 -20 } - texture = "gfx/interface/icons/symbols/icon_arrow_up.dds" - mirror = vertical - } - } - } - - button_close = { - name = "close_court_view" - visible = "[And( Not( VariableSystem.Exists('royal_court_screenshot_window' ) ), Not( RoyalCourtWindow.IsPlacingArtifact ) )]" - parentanchor = top|right - position = { -12 58 } - - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - onclick = "[RoyalCourtWindow.Close]" - - using = Animation_ShowHide_Quick - - background = { - using = Background_Area_Dark - margin = { 6 6 } - alpha = 0.8 - } - } - - widget = { # court artifacts window tab - name = "court_artifacts" - size = { 100% 100% } - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), RoyalCourtWindow.IsActiveArtifactsTab )]" - - using = Animation_ShowHide_Quick - - widget = { - name = "court_artifact_slots" - visible = "[RoyalCourtWindow.GetCharacter.IsLocalPlayer]" - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - datamodel = "[Inventory.GetSlots]" - parentanchor = center - size = { 100% 100% } - - item = { - flowcontainer = { - datacontext = "[InventorySlot.GetArtifact]" - position = "[GetCourtScenePositionForSlot( PdxGuiWidget.AccessParent.Self, InventorySlot.Self )]" - direction = vertical - widgetanchor = center - - container = { #Slot and Glow effect - parentanchor = center - icon = { # Glow Effect - visible = "[And(RoyalCourtWindow.IsSelectedSlot( InventorySlot.Self ), InventorySlot.IsEmpty)]" - size = { 180% 180% } - texture = "gfx/interface/colors/white.dds" - using = Color_Bright_Yellow - alpha = 0.7 - parentanchor=center - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.15 - alpha = 0.7 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.25 - alpha = 0 - } - - state = { - name = "a" - next = "b" - trigger_on_create = yes - alpha = 0.7 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 0 - } - } - - state = { - name = "b" - next = "a" - duration = 7 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - } - - modify_texture = { - name = "glow_2" - rotate_uv = 360 - } - } - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "glow_2" - texture = "gfx/interface/component_masks/mask_glow.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - button_tertiary = { # Button when we have an artifact selected - size = { 50 50 } - visible = "[And( Not( RoyalCourtWindow.HasSelectedSlot ), RoyalCourtWindow.CanSlotHoldSelectedArtifact( InventorySlot.Self ) )]" - - alpha = "[Select_float(Or( Not( RoyalCourtWindow.HasSelectedSlot ), RoyalCourtWindow.IsSelectedSlot( InventorySlot.Self ) ), '(float)1.0', '(float)0.5')]" - - onclick = "[RoyalCourtWindow.OnClickArtifactSlot( InventorySlot.Self )]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - - tooltip = "ROYAL_COURT_ARTIFACT_PLACE_ARTIFACT_IN_SLOT_TOOLTIP" - - using = Animation_ShowHide_Quick - - button_plus = { - visible = "[Inventory.HasUnequippedArtifactsInSlotType( InventorySlot.GetType )]" - parentanchor = center - alwaystransparent = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - } - - button_tertiary = { # Button when we don't have an artifact selected - size = { 50 50 } - visible = "[And( InventorySlot.IsEmpty, Not( RoyalCourtWindow.HasSelectedArtifact ) )]" - - alpha = "[Select_float( Inventory.HasArtifactsOfSlotType( InventorySlot.GetType ), '(float)1.0', '(float)0.75' )]" - - onclick = "[RoyalCourtWindow.OnClickArtifactSlot( InventorySlot.Self )]" - - enabled = "[Inventory.HasArtifactsOfSlotType( InventorySlot.GetType )]" - - tooltip = ROYAT_COURT_SLOT_TOOLTIP - - button_plus = { - visible = "[Inventory.HasUnequippedArtifactsInSlotType( InventorySlot.GetType )]" - parentanchor = center - alwaystransparent = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - } - } - } - - flowcontainer = { #Durability low warning for displayed artifacts - visible = "[And( Not(InventorySlot.IsEmpty), Artifact.IsDurabilityLow )]" - spacing = 3 - margin = { 8 0 } - - tooltip = "[Artifact.GetDurabilityTooltip]" - - icon_flat_standard = { - size = { 20 20 } - texture = "gfx/interface/icons/flat_icons/quality.dds" - } - - progressbar_standard = { - name = "durability_low" - size = { 50 10 } - parentanchor = vcenter - min = 0 - max = "[FixedPointToFloat( Artifact.GetMaxDurability )]" - value = "[FixedPointToFloat( Artifact.GetDurability )]" - } - - icon = { - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - - background = { - margin = { 20 2 } - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - } - } - } - } - } - - margin_widget = { # artifact storage - name = "artifacts" - visible = "[And( Or( VariableSystem.HasValue( 'artifacts_tab', 'artifacts' ), RoyalCourtWindow.HasSelectedSlot ), Not( RoyalCourtWindow.IsPlacingArtifact ) ) ]" - parentanchor = right - size = { 670 100% } - margin_top = 26 - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position_x = 25 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position_x = 75 - on_start = "[AccessLocalPlayerCachedData.AccessNewArtifacts.ClearNewArtifactsOfCategory( 'court' )]" - } - - using = Window_Background - - vbox = { - using = Window_Margins - margin_bottom = 70 - - header_pattern = { - visible = "[Not( RoyalCourtWindow.HasSelectedSlot )]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ARTIFACT_STORAGE" - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Clear( 'artifacts_tab' )]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - } - } - - header_pattern = { - name = "header_selected_slot" - visible = "[RoyalCourtWindow.HasSelectedSlot]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ROYAL_COURT_ARTIFACT_STORAGE_EQUIPABLE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[RoyalCourtWindow.ClearSelectedSlot]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - onclick = "[RoyalCourtWindow.SetCameraActiveByKey( GetDefine( 'NRoyalCourt', 'DEFAULT_ARTIFACTS_CAMERA' ) )]" - } - } - - hbox = { - name = "court_artifact_sorting" - layoutpolicy_horizontal = expanding - margin = { 12 6 } - spacing = 5 - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "ARTIFACT_SORT_ORDER_TOOLTIP" - using = tooltip_ne - onclick = "[RoyalCourtWindow.ToggleArtifactSortOrder]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - - framesize = { 66 66 } - frame = "[BoolTo2And1(RoyalCourtWindow.IsArtifactSortOrderDescending)]" - - alwaystransparent = yes - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - - dropdown_menu_standard = { - name = "sort_artifacts" - - blockoverride "dropdown_properties" - { - datamodel = "[RoyalCourtWindow.GetArtifactSortOptions]" - - onselectionchanged = "[RoyalCourtWindow.SortArtifacts]" - selectedindex = "[RoyalCourtWindow.GetArtifactSortOptionsIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( CString.GetString )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( CString.GetString )]" - } - } - - expand = {} - } - - widget_court_artifact_list = { - visible = "[Not( RoyalCourtWindow.HasSelectedSlot )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - - widget_equippable_court_artifact_list = { - visible = "[RoyalCourtWindow.HasSelectedSlot]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - } - } - } - - vbox = { # Display artifact from storage overlay - name = "display_artifact_from_storage_overlay" - margin_top = 100 - margin_bottom = 10 - spacing = 5 - - visible = "[RoyalCourtWindow.IsPlacingArtifact]" - - text_label_center = { - text = "[RoyalCourtWindow.GetSelectedArtifact.GetName]" - align = center - using = Font_Size_Big - } - - text_label_center = { - text = "ROYAL_COURT_ARTIFACT_PLACE_ARTIFACT_FROM_STORAGE_DESC" - align = center - using = Font_Size_Small - } - - expand = {} - } - - margin_widget = { # artifact claims - name = "claims" - visible = "[And( VariableSystem.HasValue( 'artifacts_tab', 'artifact_claims'), Not( RoyalCourtWindow.HasSelectedSlot ) )]" - parentanchor = right - size = { 670 100% } - margin_top = 26 - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position_x = 25 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position_x = 75 - } - - using = Window_Background - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - using = Window_Margins - margin_bottom = 132 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "ARTIFACT_CLAIMS" - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Clear( 'artifacts_tab' )]" - } - } - - hbox = { - name = "court_claims_sorting" - layoutpolicy_horizontal = expanding - margin = { 12 6 } - spacing = 6 - - datacontext = "[RoyalCourtWindow.GetArtifactClaimsList]" - - button_standard = { - name = "sort_order" - size = { 25 25 } - tooltip = "ARTIFACT_CLAIM_SORT_ORDER_TOOLTIP" - using = tooltip_ne - onclick = "[ArtifactClaimsList.ToggleSortOrder]" - - button_icon = { - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/sort_icon.dds" - - framesize = { 66 66 } - frame = "[BoolTo2And1(ArtifactClaimsList.IsSortOrderDescending)]" - - alwaystransparent = yes - blockoverride "button_frames" - { - effectname = "NoHighlight" - } - } - } - - dropdown_menu_standard = { - name = "sort_claims" - - blockoverride "dropdown_properties" - { - datamodel = "[ArtifactClaimsList.GetSortOptions]" - - onselectionchanged = "[ArtifactClaimsList.SortClaims]" - selectedindex = "[ArtifactClaimsList.GetSortOptionsIndex]" - } - - blockoverride "dropdown_active_item_properties" - { - text = "[Localize( CString.GetString )]" - } - - blockoverride "dropdown_item_properties" - { - text = "[Localize( CString.GetString )]" - } - } - - expand = {} - } - - scrollbox = { - name = "artifact_claims" - datacontext = "[RoyalCourtWindow.GetArtifactClaimsList]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "artifact_claims_list" - datamodel = "[ArtifactClaimsList.GetClaims]" - addcolumn = 570 - addrow = 122 - - item = { - artifact_claim = { - datacontext = "[ArtifactClaim.GetArtifact]" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[Character.GetInventory]" - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( ArtifactClaimsList.GetClaims )]" - datacontext = "[RoyalCourtWindow.GetCharacter]" - text = "CHARACTER_HAS_NO_CLAIMED_ARTIFACTS" - max_width = 400 - } - } - } - } - } - - widget = { - name = "top_left_info" - size = { 660 212 } - visible = "[And( Not( VariableSystem.Exists('royal_court_screenshot_window' ) ), Not( RoyalCourtWindow.IsPlacingArtifact ) )]" - - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[Character.GetCourtGrandeurData]" - - using = Animation_ShowHide_Standard - - flowcontainer = { - name = "tab_buttons" - position = { 15 55 } - spacing = -4 - - button_royal_court_tab = { - name = "tab_throne_tutorial_uses_this" - onclick = "[RoyalCourtWindow.SetActiveTab( 'throne' )]" - alwaystransparent = "[RoyalCourtWindow.IsActiveThroneTab]" - - using = tooltip_se - tooltipwidget = { - container_royal_court_tab_tooltip = { - datacontext = "[AccessLocalPlayerCachedData.AccessCourtEvents]" - - blockoverride "title_text" { - margin_top = 4 - text = ROYAL_COURT_TAB_THRONE - } - - blockoverride "action_description" { - cooltip_paragraph = { - visible = "[GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' )]" - text = "ROYAL_COURT_STATUS_PENDING_EVENTS" - } - cooltip_paragraph = { - visible = "[GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' )]" - text = "ROYAL_COURT_STATUS_CURRENT_EVENTS" - } - } - - blockoverride "spacer_visibility" { - visible = "[Or(GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' ), GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' ))]" - } - } - } - - blockoverride "background_tab_active" - { - down = "[RoyalCourtWindow.IsActiveThroneTab]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/roco_tabs/roco_trone.dds" - down = "[RoyalCourtWindow.IsActiveThroneTab]" - } - - blockoverride "tab_active" - { - trigger_when = "[RoyalCourtWindow.IsActiveThroneTab]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( RoyalCourtWindow.IsActiveThroneTab )]" - } - - blockoverride "notification_highlight" - { - using = Current_Court_Events_Data - } - - blockoverride "notification_number_text" { - text = "[Add_int32(LocalPlayerCourtEvents.GetNumberCourtEvents, Character.GetNumPendingCourtEvents)|V]" - } - } - - button_royal_court_tab = { - name = "tab_artifact_tutorial_uses_this" - onclick = "[RoyalCourtWindow.SetActiveTab( 'artifacts' )]" - onclick = "[VariableSystem.Clear( 'artifacts_tab' )]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - onclick = "[RoyalCourtWindow.ClearSelectedSlot]" - alwaystransparent = "[RoyalCourtWindow.IsActiveArtifactsTab]" - - using = tooltip_se - tooltipwidget = { - container_royal_court_tab_tooltip = { - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - - blockoverride "title_text" { - margin_top = 4 - text = ROYAL_COURT_TAB_COURT_ARTIFACTS - } - - blockoverride "action_description" { - cooltip_paragraph = { - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - text = "ROYAL_COURT_STATUS_NEW_COURT_ARTIFACTS" - } - } - - blockoverride "spacer_visibility" { - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - } - } - } - - blockoverride "background_tab_active" - { - down = "[RoyalCourtWindow.IsActiveArtifactsTab]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/roco_tabs/roco_artifact.dds" - down = "[RoyalCourtWindow.IsActiveArtifactsTab]" - } - - blockoverride "tab_active" - { - trigger_when = "[RoyalCourtWindow.IsActiveArtifactsTab]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( RoyalCourtWindow.IsActiveArtifactsTab )]" - } - - blockoverride "notification_highlight" - { - using = New_Court_Artifacts_Data - } - - blockoverride "notification_number_text" { - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' )|V]" - } - } - - button_royal_court_tab = { - name = "tab_grandeur_tutorial_uses_this" - onclick = "[RoyalCourtWindow.SetActiveTab( 'grandeur' )]" - alwaystransparent = "[RoyalCourtWindow.IsActiveGrandeurTab]" - - visible = "[HasDlcFeature( 'royal_court' )]" - - using = tooltip_se - tooltipwidget = { - container_royal_court_tab_tooltip = { - blockoverride "title_text" { - margin_top = 4 - text = ROYAL_COURT_TAB_COURT_GRANDEUR - } - - blockoverride "action_description" { - cooltip_paragraph = { - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - text = "ROYAL_COURT_STATUS_CGV_EXPECTATIONS" - } - } - - blockoverride "spacer_visibility" { - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - } - } - } - - blockoverride "background_tab_active" - { - down = "[RoyalCourtWindow.IsActiveGrandeurTab]" - } - - blockoverride "tab_texture" - { - texture = "gfx/interface/icons/roco_tabs/roco_grandeur.dds" - down = "[RoyalCourtWindow.IsActiveGrandeurTab]" - } - - blockoverride "tab_active" - { - trigger_when = "[RoyalCourtWindow.IsActiveGrandeurTab]" - } - - blockoverride "tab_inactive" - { - trigger_when = "[Not( RoyalCourtWindow.IsActiveGrandeurTab )]" - } - - blockoverride "notification_highlight" - { - using = Below_CGV_Expectations_Data - } - - blockoverride "notification_number_text" { - # No number, only court grandeur triggers this. - } - } - } - - widget = { - name = "top_section" - size = { 660 212 } - - widget = { - name = "background" - size = { 574 92 } - - background = { - name = "banner" - texture = "gfx/interface/icons/roco_tabs/banner_header_rank_01.dds" - frame = 2 - - visible = "[And(HasDlcFeature('royal_court'),LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4'))]" - } - - background = { - name = "banner" - texture = "gfx/interface/icons/roco_tabs/banner_header_rank_02.dds" - frame = 2 - - visible = "[Or(Not(HasDlcFeature('royal_court')),And(GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4'),LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7')))]" - } - - background = { - name = "banner" - texture = "gfx/interface/icons/roco_tabs/banner_header_rank_04.dds" - frame = 2 - - visible = "[And(HasDlcFeature('royal_court'),GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7'))]" - } - } - - # flowcontainer = { - # name = "banner_transition_video" - # parentanchor = top|left - # direction = vertical - - # video_icon = { - # name = "animation" - # visible = no - # size = { 660 212 } - # gfxtype = videogfx - # shaderfile = "" - # video = "gfx/interface/video/royal_sparkle_v3_transparent.bk2" - # alwaystransparent = yes - # loop = no - # } - # } - - vbox = { - visible = "[HasDlcFeature('royal_court')]" - margin = { 27 16 } - - hbox = { - datacontext = "[RoyalCourtWindow.GetCourtGrandeurWindow]" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[Character.GetCourtGrandeurData]" - layoutpolicy_horizontal = expanding - - tooltipwidget = { - court_grandeur_level_header_tooltip = {} - } - - text_single = { - visible = "[HasDlcFeature('royal_court')]" - layoutpolicy_vertical = expanding - text = "[CourtGrandeurData.GetCurrentLevel]" - fontsize = 36 - default_format = "#high" - align = center|nobaseline - - minimumsize = { 50 50 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 25 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "ROYAL_COURT_WINDOW_HEADER" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - text_single = { - visible = "[HasDlcFeature('royal_court')]" - layoutpolicy_horizontal = expanding - text = "ROYAL_COURT_WINDOW_GRANDEUR_SUMMERY" - align = nobaseline - } - } - - expand = {} - } - - expand = {} - } - - vbox = { - visible = "[Not(HasDlcFeature('royal_court'))]" - margin = { 18 12 } - - hbox = { - datacontext = "[RoyalCourtWindow.GetCourtGrandeurWindow]" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[Character.GetCourtGrandeurData]" - layoutpolicy_horizontal = expanding - - coa_realm_medium = { - datacontext = "[RoyalCourtWindow.GetCharacter]" - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 16 - margin_top = -43 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "ROYAL_COURT_WINDOW_HEADER" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - - } - } - - expand = {} - } - } - } - - widget = { - name = "artifact_buttons" - size = { 460 150 } - position = { -68 -56 } - parentanchor = bottom|right - - vbox = { - layoutpolicy_vertical = expanding - visible = "[RoyalCourtWindow.IsActiveArtifactsTab]" - spacing = 8 - - expand = {} - - button_tertiary = { - name = "deselect_slot" - visible = "[RoyalCourtWindow.HasSelectedSlot]" - size = { 300 50 } - text = "CLOSE_LABEL" - - onclick = "[RoyalCourtWindow.ClearSelectedSlot]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - onclick = "[RoyalCourtWindow.SetCameraActiveByKey( GetDefine( 'NRoyalCourt', 'DEFAULT_ARTIFACTS_CAMERA' ) )]" - shortcut = "close_window" - } - - button_tertiary = { - name = "close" - visible = "[RoyalCourtWindow.IsPlacingArtifact]" - - size = { 300 50 } - text = "CANCEL" - - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - shortcut = "close_window" - } - - hbox = { - name = "artifact_buttons_holder" - visible = "[And( Not( RoyalCourtWindow.IsPlacingArtifact ), Not( RoyalCourtWindow.HasSelectedSlot ) )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - container = { - name = "court_artifact_tab_open_tutorial_uses_this" - widgetid = "court_artifact_tab_open_tutorial_uses_this" - } - - button_standard = { - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - size = { 200 33 } - - onclick = "[VariableSystem.SetOrToggle( 'artifacts_tab', 'artifacts' )]" - down = "[VariableSystem.HasValue( 'artifacts_tab', 'artifacts' )]" - - hbox = { - margin = { 10 0 } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - align = center|nobaseline - text = "ARTIFACT_STORAGE" - default_format = "#clickable" - } - - text_single = { - min_width = 30 - autoresize = no - align = center|nobaseline - text = "[Inventory.GetNumOfArtifactInCategory( 'court' )]" - default_format = "#clickable" - } - } - - } - - button_standard = { - size = { 200 33 } - text = "INVENTORY_TAB_CLAIMS" - onclick = "[VariableSystem.SetOrToggle( 'artifacts_tab', 'artifact_claims' )]" - down = "[VariableSystem.HasValue( 'artifacts_tab', 'artifact_claims' )]" - - text_single = { - min_width = 30 - margin_right = 10 - parentanchor = vcenter|right - - autoresize = no - align = center|nobaseline - text = "[GetDataModelSize(RoyalCourtWindow.GetArtifactClaimsList.GetClaims)]" - default_format = "#clickable" - } - } - } - } - } - - widget = { - layer = hud_layer - size = { 100% 88 } - position = { 0 -10 } - - hbox = { - expand = {} - resources_top_right_bar = { - name = "top_bar_hud" - visible = "[Not(VariableSystem.Exists('royal_court_screenshot_window'))]" - datacontext = "[AccessTopBar]" - - using = Animation_ShowHide_Quick - } - } - } - - flowcontainer = { - direction = vertical - - parentanchor = bottom|right - position = {-15 -50} - spacing = 1 - - button_round = { - visible = "[And( Not( VariableSystem.Exists('royal_court_screenshot_window' ) ), RoyalCourtWindow.IsActiveThroneTab )]" - size = { 50 50 } - onclick = "[VariableSystem.Set('royal_court_screenshot_window', 'yes')]" - onclick = "[RoyalCourtWindow.OpenScreenshotWindow]" - alpha = 0.4 - tooltip = "ROYAL_COURT_SCREENSHOT_BUTTON_TT" - using = tooltip_nw - parentanchor = right - - state = { - name = _show - using = Animation_Curve_Default - duration = 0.15 - - alpha = 0.7 - } - - state = { - name = _hide - using = Animation_Curve_Default - duration = 0.25 - - alpha = 0 - } - - state = { - name = _mouse_hierarchy_enter - using = Animation_Curve_Default - duration = 0.15 - - alpha = 1 - } - - state = { - name = _mouse_hierarchy_leave - using = Animation_Curve_Default - duration = 0.25 - - alpha = 0.7 - } - - button_capture = { - parentanchor = center - size = { 30 30 } - alwaystransparent = yes - } - } - - button_hold_court = { - name = "button_hold_court_tutorial_uses_this" - visible = "[And( And( And( And( HasDlcFeature( 'royal_court' ), Not(VariableSystem.Exists('royal_court_screenshot_window')) ), RoyalCourtWindow.IsActiveThroneTab ) , RoyalCourtWindow.GetCharacter.IsLocalPlayer), Decision.IsShownForPlayer ) ]" - datacontext = "[GetDecisionWithKey( 'hold_court_decision' )]" - parentanchor = bottom|right - size = { 345 80 } - - container = { - name = "throne_room_tab_tutorial_uses_this" - widgetid = "throne_room_tab_tutorial_uses_this_1" - } - } - } - - button_petition_liege = { - name = "button_petition_liege" - visible = "[And( And( And( Not(VariableSystem.Exists('royal_court_screenshot_window')) , RoyalCourtWindow.IsActiveThroneTab ) , RoyalCourtWindow.IsLiegesCourt ), Decision.IsShownForPlayer ) ]" - datacontext = "[GetDecisionWithKey( 'petition_liege_decision' )]" - parentanchor = bottom|right - position = { -50 -50 } - size = { 345 80 } - - container = { - name = "throne_room_tab_tutorial_uses_this" - widgetid = "throne_room_tab_tutorial_uses_this_2" - } - } - - widget_court_grandeur_view = { - name = "court_grandeur" - visible = "[And( Not( VariableSystem.Exists( 'royal_court_screenshot_window') ), RoyalCourtWindow.IsActiveGrandeurTab )]" - datacontext = "[RoyalCourtWindow.GetCourtGrandeurWindow]" - datacontext = "[RoyalCourtWindow.AccessCourtAmenitiesWindow]" - datacontext = "[CourtGrandeurWindow.GetRoyalCourtWindow.GetCharacter]" - parentanchor = bottom|hcenter - size = { 100% 332 } - alwaystransparent = no - } - - widget = { - size = { 100% 100% } - visible = "[Not(VariableSystem.Exists('royal_court_screenshot_window'))]" - - using = Animation_ShowHide_Quick - - flowcontainer_inspirations_list = { - name = "inspirations_tutorial_uses_this" - datacontext = "[RoyalCourtWindow.AccessInspirationsWindow]" - - visible = "[And( And( Not( RoyalCourtWindow.IsActiveArtifactsTab ), Not( CourtEventWindow.GetEventWindowInsert.HasOpenEvent ) ), InspirationsWindow.HasPotentialOrSponsoredInspirations )]" - - parentanchor = left|vcenter - widgetanchor = top|left - position = { 15 -250 } - } - } - - widget = { - name = "events" - size = { 100% 100% } - datacontext = "[CourtEventWindow.GetEventWindowInsert]" - - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), And(EventWindowViewInsert.HasOpenEvent, RoyalCourtWindow.IsActiveThroneTab ) )]" - - using = Animation_ShowHide_Quick - - - widget_court_event = { - datacontext = "[EventWindowViewInsert.GetOpenEvent]" - visible = "[CourtEventWindow.IsVisible]" - name = "court_event_window" - parentanchor = bottom|right - position = { 30 0 } - size = { 600 800 } - - widget = { - visible = "[EventWindowData.ShowDebugOptionTooltips]" - position = { -160 -40 } - parentanchor = bottom|left - using = Event_Window_Debug_OptionTooltips - } - widget = { - visible = "[EventWindowData.ShowEventTools]" - position = { -160 0 } - parentanchor = top|left - using = Event_Window_Debug_EventTools - } - } - } - - widget_royal_court_screenshot_window = { - visible = "[VariableSystem.Exists('royal_court_screenshot_window')]" - datacontext = "[RoyalCourtWindow.AccessScreenshotWindow]" - - using = Animation_ShowHide_Quick - } - } - - court_scene_editor_window = { - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), And( InDebugMode, VariableSystem.Exists('scene_editor') ) )]" - datacontext = "[RoyalCourtWindow.AccessCourtSceneEditorWindow]" - - using = Animation_ShowHide_Quick - - } - - artifact_test_helper_window = { - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), And( InDebugMode, VariableSystem.Exists( 'artifact_test' ) ) )]" - datacontext = "[RoyalCourtWindow.AccessArtifactHelperWindow]" - - using = Animation_ShowHide_Quick - - } - - flowcontainer = { - name = "debug_buttons" - datacontext = "[RoyalCourtWindow.GetCourtSceneEditorWindow]" - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), InDebugMode )]" - parentanchor = top|hcenter - ignoreinvisible = yes - margin_top = 10 - - background = { - using = Background_Area_Dark - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - - flowcontainer = { - spacing = 5 - ignoreinvisible = yes - - button_tertiary = { - raw_text = "#D Toggle scene#!" - onclick = "[VariableSystem.Toggle( 'court_scene' )]" - } - - button_tertiary = { - raw_text = "#D Open editor settings#!" - visible = "[Not(VariableSystem.Exists('scene_editor'))]" - onclick = "[VariableSystem.Toggle('scene_editor')]" - onclick = "[RoyalCourtWindow.ShowEditor]" - } - - button_tertiary = { - raw_text = "#D Hide editor settings#!" - visible = "[VariableSystem.Exists('scene_editor')]" - onclick = "[VariableSystem.Toggle('scene_editor')]" - onclick = "[RoyalCourtWindow.HideEditor]" - } - - button_tertiary = { - raw_text = "#D Artifact test#!" - onclick = "[RoyalCourtWindow.AccessArtifactHelperWindow.UpdateEntities]" - onclick = "[VariableSystem.Toggle( 'artifact_test' )]" - } - } - - text_multi = { - visible = "[VariableSystem.Exists('scene_editor')]" - name = "court_hint_cam_control" - max_width = 500 - autoresize = yes - raw_text = "#D Hold RMB and use WASD/Q/E/Shift to move the current camera. Press C to toggle between developer camera and an in-game camera.#!" - } - - text_single = { - visible = "[VariableSystem.Exists('scene_editor')]" - name = "court_hint_current_cam" - raw_text = "#D Current Camera: [Select_CString( StringIsEmpty( CourtSceneEditorWindow.GetCameraDescription( CourtSceneEditorWindow.GetCurrentCamera ) ), 'Camera', CourtSceneEditorWindow.GetCameraDescription( CourtSceneEditorWindow.GetCurrentCamera ) )] #!" - } - } - } - - icon = { - name = "fade_to_black_overlay" - visible = "[And(Not(VariableSystem.Exists('royal_court_screenshot_window')), Not(VariableSystem.Exists('scene_editor')))]" - size = { 100% 100% } - texture = "gfx/interface/colors/black.dds" - alpha = 0 - - state = { - name = "show" - next = "hide" - alpha = 1 - duration = 0.0 - - trigger_when = "[RoyalCourtWindow.ShouldShowFadeToBlack]" - } - - state = { - name = "hide" - alpha = 0 - duration = 0.3 - } - } - - error_horse = { - parentanchor = bottom|left - position = { 610 -10 } - visible = "[And( Not(VariableSystem.Exists('royal_court_screenshot_window')), And( Not( IsPauseMenuShown ), Not(ReleaseMode) ) )]" - } -} - -types RoyalCourtTypes -{ - type button_hold_court = button_normal - { - enabled = "[And( Decision.IsPossibleForPlayer, Not(CourtEventWindow.GetEventWindowInsert.HasOpenEvent) )]" - onclick = "[RoyalCourtWindow.OpenDecisionDetailView( GetDecisionWithKey( 'hold_court_decision' ) )]" - - tooltipwidget = { - decision_tooltip = {} - } - - clicksound = "event:/DLC/EP1/SFX/UI/hold_court" - - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('glow_hold_court_leave','glow_hold_court_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('glow_hold_court_enter','glow_hold_court_leave')]" - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_hold_court_bg.dds" - - @duration_button_holdcourt_enter = 0.03 - @duration_button_holdcourt_leave = 0.1 - - modify_texture = { - name = "glow_hold_court" - texture= "gfx/interface/buttons/button_hold_court_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "glow_hold_court_enter" - duration = @duration_button_holdcourt_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_hold_court" - alpha = 1 - } - } - - state = { - name = "glow_hold_court_leave" - duration = @duration_button_holdcourt_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_hold_court" - alpha = 0 - } - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_hold_court_frame.dds" - - - } - - text_single = { - parentanchor = center - default_format = "#high" - using = Font_Size_Medium - text = "[Decision.GetTitleForPlayer]" - margin_bottom = 5 - - } - - - } - - type button_petition_liege = button_normal - { - enabled = "[Decision.IsPossibleForPlayer]" - onclick = "[RoyalCourtWindow.SetPetitionerCharacter( GetPlayer )]" - onclick = "[RoyalCourtWindow.OpenDecisionDetailView( GetDecisionWithKey( 'petition_liege_decision' ) )]" - onclick = "[GetVariableSystem.Set('show_decision_step_two', 'true')]" - - tooltipwidget = { - decision_tooltip = {} - } - - clicksound = "event:/DLC/EP1/SFX/UI/hold_court" - - - state = { - name = _mouse_hierarchy_enter - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('glow_hold_court_leave','glow_hold_court_enter')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[PdxGuiInterruptThenTriggerAllAnimations('glow_hold_court_enter','glow_hold_court_leave')]" - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_hold_court_bg.dds" - - @duration_button_petition_liege_enter = 0.03 - @duration_button_petition_liege_leave = 0.1 - - modify_texture = { - name = "glow_hold_court" - texture= "gfx/interface/buttons/button_hold_court_glow.dds" - blend_mode = colordodge - alpha = 0 - } - - state = { - name = "glow_hold_court_enter" - duration = @duration_button_petition_liege_enter - using = Animation_Curve_Default - - modify_texture = { - name = "glow_hold_court" - alpha = 1 - } - } - - state = { - name = "glow_hold_court_leave" - duration = @duration_button_petition_liege_leave - using = Animation_Curve_Default - - modify_texture = { - name = "glow_hold_court" - alpha = 0 - } - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/buttons/button_hold_court_frame.dds" - - - } - - text_single = { - parentanchor = center - default_format = "#high" - using = Font_Size_Medium - text = "[Decision.GetTitleForPlayer]" - margin_bottom = 5 - - } - } - - type widget_court_artifact_list = widget - { - scrollbox = { - name = "court_artifacts" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - - size = { 100% 93% } - - blockoverride "scrollbox_content" { - fixedgridbox = { - name = "artifacts_list" - datamodel = "[RoyalCourtWindow.GetSortedArtifacts]" - addcolumn = 560 - addrow = 118 - - item = { - widget_artifact_entry = { - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - datacontext = "[Inventory.GetSlotFromType( RoyalCourtWindow.GetSelectedSlot )]" - - using = tooltip_es - tooltipwidget = { - artifact_tooltip = { - blockoverride "extra_information" - { - hbox = { - visible = "[RoyalCourtWindow.GetCharacter.IsLocalPlayer]" - layoutpolicy_horizontal = expanding - - text_multi = { - visible = "[Inventory.IsEquipped( Artifact.Self)]" - - text = "REMOVE_COURT_ARTIFACT_FROM_DISPLAY" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - - text_multi = { - visible = "[Not( Inventory.IsEquipped( Artifact.Self ) )]" - - text = "DISPLAY_ARTIFACT" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - - expand = {} - } - } - } - } - - - state = { - name = _mouse_hierarchy_enter - on_start = "[AccessLocalPlayerCachedData.AccessNewArtifacts.RemoveNewArtifact( Artifact.Self )]" - } - - blockoverride "background_button_overrides" - { - onclick = "[RoyalCourtWindow.OnClickArtifact( Artifact.Self )]" - enabled = "[And( RoyalCourtWindow.GetCharacter.IsLocalPlayer, Inventory.CanEquipReplace( Artifact.Self ) )]" - } - - blockoverride "button" - { - down = "[RoyalCourtWindow.IsArtifactSelected( Artifact.Self )]" - enabled = "[And( RoyalCourtWindow.GetCharacter.IsLocalPlayer, Inventory.CanEquipReplace( Artifact.Self ) )]" - } - - blockoverride "on_click" - { - onclick = "[RoyalCourtWindow.OnClickArtifact( Artifact.Self )]" - } - - blockoverride "portrait" { - expand = {} - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( Inventory.GetArtifacts )]" - max_width = 400 - text = "CHARACTER_HAS_NO_ARTIFACTS" - } - } - } - - type widget_equippable_court_artifact_list = widget { - - scrollbox = { - name = "equippable_court_artifacts" - datacontext = "[RoyalCourtWindow.GetCharacter]" - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - - size = { 100% 93% } - - blockoverride "scrollbox_content" - { - fixedgridbox = { - name = "artifacts_list" - datamodel = "[RoyalCourtWindow.GetSortedArtifactForSelectedSlot]" - layoutpolicy_horizontal = expanding - addcolumn = 550 - addrow = 118 - - item = { - widget_artifact_entry = { - datacontext = "[RoyalCourtWindow.GetCharacter.GetInventory]" - datacontext = "[Inventory.GetSlotFromType( RoyalCourtWindow.GetSelectedSlot )]" - - tooltipwidget = { - artifact_tooltip = { - blockoverride "extra_information" - { - hbox = { - visible = "[RoyalCourtWindow.GetCharacter.IsLocalPlayer]" - layoutpolicy_horizontal = expanding - - text_multi = { # Displayed In Selected Slot - visible = "[And( Inventory.IsEquipped( Artifact.Self), ObjectsEqual( Inventory.GetSlotFromType( RoyalCourtWindow.GetSelectedSlot ).GetArtifact, Artifact.Self ) )]" - - text = "REMOVE_COURT_ARTIFACT_FROM_DISPLAY" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - - text_multi = { # Displayed somewhere else - visible = "[And( Inventory.IsEquipped( Artifact.Self), Not( ObjectsEqual( Inventory.GetSlotFromType( RoyalCourtWindow.GetSelectedSlot ).GetArtifact, Artifact.Self ) ) )]" - - text = "MOVE_COURT_ARTIFACT_TO_DISPLAY" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - - text_multi = { # In Storage - visible = "[Not( Inventory.IsEquipped( Artifact.Self ) )]" - - text = "[RoyalCourtWindow.CanPutInSelectedSlotTooltip( Artifact.Self )]" - - max_width = 300 - autoresize = yes - using = Font_Size_Small - } - - expand = {} - } - } - } - } - using = tooltip_es - - blockoverride "background_button_overrides" - { - onclick = "[RoyalCourtWindow.OnClickArtifact( Artifact.Self )]" - onclick = "[RoyalCourtWindow.ClearSelectedSlot]" - onclick = "[RoyalCourtWindow.SetCameraActiveByKey( GetDefine( 'NRoyalCourt', 'DEFAULT_ARTIFACTS_CAMERA' ) )]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - - enabled = "[And( RoyalCourtWindow.GetCharacter.IsLocalPlayer, RoyalCourtWindow.CanPutInSelectedSlot( Artifact.Self ) )]" - } - - blockoverride "button" - { - down = "[RoyalCourtWindow.IsArtifactSelected( Artifact.Self )]" - enabled = "[And( RoyalCourtWindow.GetCharacter.IsLocalPlayer, RoyalCourtWindow.CanPutInSelectedSlot( Artifact.Self ) )]" - clicksound = "event:/DLC/EP1/SFX/UI/inventory_artifact_place" - } - - blockoverride "on_click" - { - onclick = "[RoyalCourtWindow.OnClickArtifact( Artifact.Self )]" - onclick = "[RoyalCourtWindow.ClearSelectedSlot]" - onclick = "[SetActiveRoyalCourtCameraFromKey( GetDefine( 'NRoyalCourt', 'DEFAULT_ARTIFACTS_CAMERA' ) )]" - onclick = "[RoyalCourtWindow.ClearSelectedArtifact]" - - } - - blockoverride "round_buttons" - { - button_round = { - name = "reforge" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/reforge.dds" - } - visible = "[Artifact.GetOwner.IsLocalPlayer]" - - onclick = "[ToggleGameViewData( 'reforge_artifact', Artifact.GetID )]" - enabled = "[Artifact.CanReforgeOrRepair( Artifact.GetOwner.Self )]" - tooltip = "[Artifact.GetReforgeOrRepairTooltip( Artifact.GetOwner.Self )]" - } - - button_round = { - name = "details" - size = { 35 35 } - - button_icon_highlight = { - size = { 25 25 } - position = { 0 -6 } - parentanchor = center - texture = "gfx/interface/icons/flat_icons/dots.dds" - } - - onclick = "[ToggleGameViewData( 'artifact_details', Artifact.GetID )]" - tooltip = "ARTIFACT_DETAILS" - } - } - - blockoverride "portrait" { - expand = { minimumsize = { 85 0 } } - } - - blockoverride "bottom_hbox_contents" - { - debug_square = { - visible = "[Inventory.IsEquipped( Artifact.Self )]" - size = { 40 20 } - tooltip = "COURT_ARTIFACT_ON_DISPLAY" - } - - expand = {} - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - visible = "[IsDataModelEmpty( Inventory.GetArtifacts )]" - max_width = 400 - text = "CHARACTER_HAS_NO_ARTIFACTS" - } - } - } - - type button_royal_court_tab = button_normal - { - size = { 74 126 } - - state = { - name = "court_tab_reset" - duration = 0.2 - using = Animation_Curve_Default - position_y = 0 - - block "tab_inactive" {} - } - - state = { - name = "button_selection" - delay = 0.05 - duration = 0.2 - using = Animation_Curve_Default - position_y = 20 - - block "tab_active" {} - } - - state = { - name = _mouse_hierarchy_enter - position_y = 2 - - using = Animation_Curve_Default - duration = 0.2 - } - - state = { - name = _mouse_hierarchy_leave - position_y = 0 - - using = Animation_Curve_Default - duration = 0.05 - } - - icon = { - name = "notification_banner" - position = { 0 7 } - size = { 29 38 } - texture = "gfx/interface/icons/roco_tabs/banner_notification.dds" - parentanchor = bottom|hcenter - - block "notification_highlight" - { - visible = no - } - - text_single = { - name = "notification_number" - using = Font_Size_Small - default_format = "#high" - align = nobaseline - parentanchor = center - - block "notification_number_text" { - } - } - } - - highlight_icon = { - size = { 74 110 } - framesize = { 148 220 } - alwaystransparent = yes - texture = "gfx/interface/icons/roco_tabs/banner_tab_rank_01.dds" - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - - block "background_tab_active" {} - - highlight_icon = { - name = "rank_2" - size = { 74 110 } - framesize = { 148 220 } - frame = 1 - texture = "gfx/interface/icons/roco_tabs/banner_tab_rank_02.dds" - visible = "[And(GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)4'),LessThanOrEqualTo_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7'))]" - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - - block "background_tab_active" {} - } - - highlight_icon = { - name = "rank_4" - size = { 74 110 } - framesize = { 148 220 } - frame = 1 - texture = "gfx/interface/icons/roco_tabs/banner_tab_rank_04.dds" - visible = "[GreaterThan_int32(CourtGrandeurData.GetCurrentLevel, '(int32)7')]" - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 4 - - block "background_tab_active" {} - } - - highlight_icon = { - name = "icon_banner" - framesize = { 140 140 } - size = { 56 56 } - position = { 0 10 } - alwaystransparent = yes - parentanchor = center - - gfxtype = togglepushbuttongfx - effectname = "NoHighlight" - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 2 - - block "tab_texture" - { - using = Texture_Placeholder - } - } - } - } - - type widget_royal_court_notification = button_round - { - tooltip = ROYAL_COURT_STATUS_PENDING_EVENTS - tooltip_visible = no - size = { 25 25 } - frame = 1 - upframe = 1 - alwaystransparent = yes - - text_single = { - parentanchor = center - position = { -1 -1 } - text = "[Add_int32( Character.GetNumPendingCourtEvents, Add_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ) ) )|V]" - default_format = "#high" - align = nobaseline - } - } - - type widget_new_court_artifacts = widget - { - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - size = { 25 25 } - tooltip = "ROYAL_COURT_STATUS_NEW_COURT_ARTIFACTS" - tooltip_visible = no - - button_round = { - parentanchor = center - position = { 7 3 } - size = { 25 25 } - frame = 1 - upframe = 1 - alwaystransparent = yes - - text_single = { - parentanchor = center - text = "[LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' )|V]" - default_format = "#high" - align = nobaseline - } - } - } - - type widget_new_artifacts = widget - { - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - size = { 25 25 } - tooltip = "ROYAL_COURT_STATUS_NEW_COURT_ARTIFACTS" - tooltip_visible = no - - button_round = { - parentanchor = center - size = { 28 28 } - frame = 1 - upframe = 1 - alwaystransparent = yes - - text_single = { - parentanchor = center - text = "[LocalPlayerNewArtifacts.GetNumNewArtifacts|V]" - default_format = "#high" - align = nobaseline - } - } - } - - type widget_below_cgv_expectations = widget - { - size = { 25 25 } - tooltip = "ROYAL_COURT_STATUS_CGV_EXPECTATIONS" - tooltip_visible = no - - icon = { - size = { 25 25 } - visible = "[And(LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel ),HasDlcFeature( 'royal_court' ))]" - texture = "gfx/interface/icons/symbols/icon_warning.dds" - } - } - - type container_royal_court_tab_tooltip = container - { - using = GeneralTooltipSetup - alwaystransparent = no - - object_tooltip_pop_out = { - blockoverride "concept_link" - { - visible = no - } - - blockoverride "main_description" - { - vbox = { - layoutpolicy_horizontal = expanding - block "action_description" {} - - spacer = { - size = { 0 10 } - - block "spacer_visibility" {} - } - } - } - } - } -} - -template Pending_Court_Events_Data -{ - visible = "[GreaterThan_int32( Character.GetNumPendingCourtEvents, '(int32)0' )]" - tooltip = ROYAL_COURT_STATUS_PENDING_EVENTS -} - -template New_Court_Artifacts_Data -{ - datacontext = "[AccessLocalPlayerCachedData.AccessNewArtifacts]" - visible = "[GreaterThan_int32( LocalPlayerNewArtifacts.GetNumNewArtifactsOfCategory( 'court' ), '(int32)0' )]" - tooltip = "ROYAL_COURT_STATUS_NEW_COURT_ARTIFACTS" -} - -template Below_CGV_Expectations_Data -{ - visible = "[LessThan_int32( CourtGrandeurData.GetCurrentLevel, CourtGrandeurData.GetMinimumExpectedLevel )]" - tooltip = "ROYAL_COURT_STATUS_CGV_EXPECTATIONS" -} - -template Current_Court_Events_Data -{ - datacontext = "[AccessLocalPlayerCachedData.AccessCourtEvents]" - visible = "[GreaterThan_int32( LocalPlayerCourtEvents.GetNumberCourtEvents, '(int32)0' )]" - tooltip = "ROYAL_COURT_STATUS_CURRENT_EVENTS" -} diff --git a/N3OW/gui/window_royal_court_screenshot.gui b/N3OW/gui/window_royal_court_screenshot.gui deleted file mode 100644 index 9f29177d..00000000 --- a/N3OW/gui/window_royal_court_screenshot.gui +++ /dev/null @@ -1,321 +0,0 @@ -types RoyalCourtWindowTypes -{ - type dropdown_court_camera = dropDown { - size = { 250 33 } - - datamodel = "[RoyalCourtScreenshotWindow.GetCameras]" - - active_item = { - widget = { - alwaystransparent = no - size = { 100% 100% } - - button_drop = { - block "text_button_drop" { - text = "[CameraItem.GetCameraName]" - } - } - } - } - - item = { - widget = { - alwaystransparent = no - block "size_dropdown" { - size = { 250 33 } - } - - button_normal = { - size = { 100% 30 } - button_trigger = none - gfxtype = framedbuttongfx - effectname = "NoHighlight" - shaderfile = "gfx/FX/pdxgui_pushbutton.shader" - upframe = 1 - overframe = 2 - downframe = 3 - disableframe = 1 - texture = "gfx/interface/buttons/button_interaction_menu.dds" - framesize = { 317 30 } - } - - button_dropdown = { - block "size_dropdown" { - size = { 215 33 } - } - block "text_button_drop" { - text = "[CameraItem.GetCameraName]" - } - - default_format = "#clickable" - } - } - } - - list = { - scrollarea = { - position = { 5 33 } - maximumsize = { 250 170 } - autoresizescrollarea = yes - scrollbarpolicy_horizontal = always_off - - using = Background_DropDown - - scrollwidget = { - dynamicgridbox = { - alwaystransparent = no - } - } - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - } - } - } - - type widget_royal_court_screenshot_window = widget - { - name = "royal_court_screenshot_window" - size = { 100% 100% } - filter_mouse = all - - flowcontainer = { - name = "screenshot_buttons" - visible = "[RoyalCourtScreenshotWindow.IsUiShown]" - parentanchor = bottom|hcenter - position = { 0 -20 } - direction = vertical - - using = Animation_ShowHide_Quick - - flowcontainer = { - visible = "[RoyalCourtScreenshotWindow.HasCameras]" - parentanchor = hcenter - margin_bottom = 10 - - background = { - using = Background_Area_Dark - margin_top = 7 - margin_bottom = -5 - alpha = 0.7 - } - - button_play = { - parentanchor = vcenter - size = { 50 50 } - mirror = horizontal - shortcut = "royal_court_prev_screenshot_camera" - onclick = "[RoyalCourtScreenshotWindow.UsePreviousCamera]" - tooltip = ROYAL_COURT_SCREENSHOT_PREV_CAM_TT - using = tooltip_ws - } - - flowcontainer = { - direction = vertical - spacing = 2 - margin_bottom = 5 - - - flowcontainer = { - datamodel = "[RoyalCourtScreenshotWindow.GetCameras]" - parentanchor = hcenter - - item = { - button_radio = { - size = { 15 15 } - onclick = "[CameraItem.Activate]" - frame = "[BoolTo1And2( CameraItem.IsSelected )]" - } - } - } - - dropdown_court_camera = { - parentanchor = hcenter - onselectionchanged = "[RoyalCourtScreenshotWindow.SetActiveCameraByIndex]" - selectedindex = "[RoyalCourtScreenshotWindow.GetCameraActiveIndex]" - } - } - - button_play = { - parentanchor = vcenter - size = { 50 50 } - shortcut = "royal_court_next_screenshot_camera" - onclick = "[RoyalCourtScreenshotWindow.UseNextCamera]" - tooltip = ROYAL_COURT_SCREENSHOT_NEXT_CAM_TT - } - } - - flowcontainer = { - visible = "[RoyalCourtScreenshotWindow.HasCameras]" - parentanchor = hcenter - spacing = 20 - - button_tertiary = { - parentanchor = vcenter - text = "ROYAL_COURT_SCREENSHOT_HIDE_CHARACTERS" - tooltip = "ROYAL_COURT_SCREENSHOT_HIDE_CHARACTERS_TOOLTIP" - shortcut = "royal_court_hide_characters" - onclick = "[RoyalCourtScreenshotWindow.ToggleCharacters]" - using = tooltip_ws - } - - button_round = { - size = { 80 80 } - shortcut = "royal_court_take_screenshot" - onclick = "[VariableSystem.Set( 'royal_court_notification_take_screenshot', 'yes' )]" - onclick = "[RoyalCourtScreenshotWindow.TakeScreenshot]" - tooltip = "ROYAL_COURT_SCREENSHOT_TAKE_SCREENSHOT_TOOLTIP" - - button_capture = { - parentanchor = center - alwaystransparent = yes - } - } - - button_tertiary = { - parentanchor = vcenter - text = "ROYAL_COURT_SCREENSHOT_HIDE_UI" - shortcut = "royal_court_hide_ui" - tooltip = "ROYAL_COURT_SCREENSHOT_HIDE_UI_TOOLTIP" - onclick = "[VariableSystem.Set( 'royal_court_notification_hide_ui', 'yes' )]" - onclick = "[RoyalCourtScreenshotWindow.ToggleUi]" - } - } - - flowcontainer = { - visible = "[And(Not(RoyalCourtScreenshotWindow.HasCameras), InDebugMode)]" - - text_label_center = { - raw_text = "#D There is no configured screenshot camera. Set them in editor#!" - } - } - - spacer = { - size = { 0 30 } - } - - button_tertiary = { - name = "back_button" - parentanchor = hcenter - shortcut = "close_window" - text = "ROYAL_COURT_SCREENSHOT_EXIT" - tooltip = "ROYAL_COURT_SCREENSHOT_EXIT_TOOLTIP" - - onclick = "[VariableSystem.Clear('royal_court_screenshot_window')]" - onclick = "[VariableSystem.Clear('royal_court_hide_all_ui')]" - onclick = "[RoyalCourtScreenshotWindow.Close]" - } - } - - - - - widget = { - size = { -10 -10 } - visible = "[Not(RoyalCourtScreenshotWindow.IsUiShown)]" - - button_normal = { - size = { -10 -10 } - shortcut = "royal_court_take_screenshot" - - onclick = "[VariableSystem.Set( 'royal_court_notification_take_screenshot', 'yes' )]" - onclick = "[RoyalCourtScreenshotWindow.TakeScreenshot]" - } - button_play = { - parentanchor = vcenter - size = { -10 -10 } - shortcut = "royal_court_next_screenshot_camera" - onclick = "[RoyalCourtScreenshotWindow.UseNextCamera]" - tooltip = ROYAL_COURT_SCREENSHOT_NEXT_CAM_TT - } - - button_play = { - parentanchor = vcenter - size = { -10 -10 } - mirror = horizontal - shortcut = "royal_court_prev_screenshot_camera" - onclick = "[RoyalCourtScreenshotWindow.UsePreviousCamera]" - tooltip = ROYAL_COURT_SCREENSHOT_PREV_CAM_TT - using = tooltip_ws - } - } - - button_normal = { - visible = "[Not(RoyalCourtScreenshotWindow.IsUiShown)]" - size = { 100% 100% } - shortcut = "close_window" - shortcut = "royal_court_hide_ui" - onclick = "[VariableSystem.Clear( 'royal_court_notification_hide_ui' )]" - onclick = "[RoyalCourtScreenshotWindow.ToggleUi]" - } - - widget_royal_court_screenshot_window_notification = { - size = { 100% 100% } - - blockoverride "visibility" { - visible = "[And(VariableSystem.Exists( 'royal_court_notification_take_screenshot' ), RoyalCourtScreenshotWindow.IsNotificationShown)]" - } - - blockoverride "pending_animation_clear" { - on_finish = "[RoyalCourtScreenshotWindow.HideNotification]" - on_finish = "[VariableSystem.Clear( 'royal_court_notification_take_screenshot' )]" - } - - blockoverride "text_widget" { - text = "SCREENSHOT_TAKEN" - position = { 0 -20 } - } - } - - widget_royal_court_screenshot_window_notification = { - size = { 100% 100% } - - blockoverride "visibility" { - visible = "[VariableSystem.Exists( 'royal_court_notification_hide_ui' )]" - } - - blockoverride "pending_animation_clear" { - on_finish = "[VariableSystem.Clear( 'royal_court_notification_hide_ui' )]" - } - - blockoverride "text_widget" { - text = "ROYAL_COURT_SCREENSHOT_HIDE_UI_NOTIFICATION" - position = { 0 -320 } - } - } - } - - type widget_royal_court_screenshot_window_notification = widget - { - layer = confirmation - block "visibility" {} - - state = { - name = _show - next = pending - using = Animation_FadeIn_Standard - } - - state = { - name = pending - next = hide - block "pending_animation_duration" { - duration = 2 - } - - block "pending_animation_clear" { } - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - text_label_center = { - name = "screenshot_text" - parentanchor = center - block "text_widget" {} - } - } -} diff --git a/N3OW/gui/window_ruler_designer.gui b/N3OW/gui/window_ruler_designer.gui deleted file mode 100644 index 0b5714f7..00000000 --- a/N3OW/gui/window_ruler_designer.gui +++ /dev/null @@ -1,2869 +0,0 @@ -window = { - name = "ruler_designer" - size = { 100% 100% } - movable = no - layer = windows_layer - filter_mouse = all - datacontext = "[GetVariableSystem]" - - using = Window_Background_No_Edge - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { 20 0 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - state = { - name = _show - using = Animation_FadeIn_Standard - on_start = "[GetVariableSystem.Clear( 'faith_select_window_open' )]" - on_start = "[GetVariableSystem.Clear( 'culture_select_window_open' )]" - on_start = "[GetVariableSystem.Clear( 'trait_select_window_open' )]" - on_start = "[GetVariableSystem.Clear( 'trait_select_window_replace' )]" - on_start = "[GetVariableSystem.Clear( 'appearance_customization_window_open' )]" - on_start = "[GetVariableSystem.Clear( 'appearance_customization_side_tab_open' )]" - on_start = "[GetVariableSystem.Clear( 'appearance_customization_portrait_view' )]" - on_start = "[GetVariableSystem.Clear( 'coat_of_arms_customization_open' )]" - using = CoatOfArmsDesignerAnimationResetState - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - vbox = { - margin_top = 10 - - background = { - texture = "gfx/interface/illustrations/event_scenes_frontend/temple.dds" - alpha = 0.5 - mirror = horizontal - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/window_ruler_designer/rd_bg_mask.dds" - blend_mode = alphamultiply - spritetype = corneredstretched - spriteborder = { 590 0 } - } - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - color = { 0.12 0.12 0.12 1 } - mirror = horizontal - margin_right = -1200 - alpha = 0.6 - } - - header_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "RULER_DESIGNER" - } - - - blockoverride "button_close" - { - visible = no - } - } - - hbox = { - name = "main_designer" - visible = "[Not( Or( VariableSystem.Exists( 'appearance_customization_window_open' ), VariableSystem.Exists( 'coat_of_arms_customization_open' ) ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 20 } - - using = Animation_Tab_Switch - - widget = { - visible = "[Not( VariableSystem.Exists( 'trait_select_window_open' ) )]" - layoutpolicy_vertical = expanding - size = { 520 0 } - - vbox = { - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "left_panel" - layoutpolicy_vertical = expanding - margin_right = 8 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 16 - - hbox = { - name = "sex_customization" - layoutpolicy_horizontal = expanding - spacing = 40 - - vbox = { - name = "sex" - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "RULER_DESIGNER_SEX" - max_width = 120 - autoresize = yes - using = Font_Size_Medium - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 3 - spacing = 5 - - button_male = { - name = "male" - alwaystransparent = "[Not( RulerDesignerWindow.IsFemale )]" - onclick = "[RulerDesignerWindow.SetIsFemale( '(bool)no' )]" - down = "[Not( RulerDesignerWindow.IsFemale )]" - tooltip = RULER_DESIGNER_SET_IS_MALE - using = tooltip_se - - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - } - - button_female = { - name = "female" - alwaystransparent = "[RulerDesignerWindow.IsFemale]" - onclick = "[RulerDesignerWindow.SetIsFemale( '(bool)yes' )]" - down = "[RulerDesignerWindow.IsFemale]" - tooltip = RULER_DESIGNER_SET_IS_FEMALE - using = tooltip_se - - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - } - - expand = {} - } - - expand = {} - } - - - vbox = { - name = "sexuality" - layoutpolicy_vertical = expanding - - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - text = "RULER_DESIGNER_SEXUALITY" - max_width = 250 - autoresize = yes - using = Font_Size_Medium - } - } - } - - - text_single = { - margin_top = 3 - text = "RULER_DESIGNER_SEXUALITY_NOT_AVAILABLE_INFO" - visible = "[Not(RulerDesignerWindow.CanChangeSexuality)]" - } - - - - hbox = { - visible = "[RulerDesignerWindow.CanChangeSexuality]" - layoutpolicy_horizontal = expanding - - margin_top = 3 - spacing = 5 - - button_randomize = { - name = "random" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'none' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'none' )]" - down = "[RulerDesignerWindow.HasSexuality( 'none' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_RANDOM - using = tooltip_se - } - - button_heterosexual = { - name = "heterosexual" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'heterosexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'heterosexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'heterosexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HETEROSEXUAL - using = tooltip_se - } - - button_homosexual_female = { - name = "homosexual_female" - visible = "[RulerDesignerWindow.IsFemale]" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'homosexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'homosexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'homosexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HOMOSEXUAL - using = tooltip_se - } - - button_homosexual_male = { - name = "homosexual_male" - visible = "[Not( RulerDesignerWindow.IsFemale )]" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'homosexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'homosexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'homosexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HOMOSEXUAL - using = tooltip_se - } - - button_bisexual_female = { - name = "bisexual_female" - visible = "[RulerDesignerWindow.IsFemale]" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'bisexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'bisexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'bisexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_BISEXUAL - using = tooltip_se - } - - button_bisexual_male = { - name = "bisexual_male" - visible = "[Not( RulerDesignerWindow.IsFemale )]" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'bisexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'bisexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'bisexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_BISEXUAL - using = tooltip_se - } - - button_asexual = { - name = "asexual" - alwaystransparent = "[RulerDesignerWindow.HasSexuality( 'asexual' )]" - onclick = "[RulerDesignerWindow.SetSexuality( 'asexual' )]" - down = "[RulerDesignerWindow.HasSexuality( 'asexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_ASEXUAL - using = tooltip_se - } - - expand = {} - } - - expand = {} - } - - expand = {} - } - - vbox = { - name = "culture_and_faith" - layoutpolicy_horizontal = expanding - spacing = 20 - - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[RulerDesignerWindow.GetFaith]" - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_FAITH_LABEL" - using = Font_Size_Medium - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - - icon = { - name = "item_icon" - size = { 60 60 } - texture = "[Faith.GetIcon]" - using = tooltip_se - } - - vbox = { - margin_left = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_FAITH_RELIGION_NAME" - default_format = "#bold" - margin_right = 5 - margin_bottom = 5 - } - - button_replace = { - name = "reset" - onclick = "[VariableSystem.Toggle( 'faith_select_window_open' )]" - onclick = "[VariableSystem.Clear( 'culture_select_window_open' )]" - tooltip = RULER_DESIGNER_CHOOSE_FAITH - using = tooltip_se - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_GETFAITH" - - margin_bottom = 5 - } - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[RulerDesignerWindow.GetCulture]" - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_CULTURE_LABEL" - using = Font_Size_Medium - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - - tooltipwidget = { - ruler_designer_culture_tooltip = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = CULTURE_HERITAGE_NAME_RULER_DESIGNER - default_format = "#bold" - - margin_right = 5 - margin_bottom = 5 - } - - button_replace = { - onclick = "[VariableSystem.Toggle( 'culture_select_window_open' )]" - using = Button_Close_Select_Faith - tooltip = RULER_DESIGNER_CHOOSE_CULTURE - using = tooltip_se - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_GETCULTURE" - - margin_bottom = 5 - } - } - } - - expand = { } - - button_standard = { - size = { 250 32 } - - onclick = "[RulerDesignerWindow.RandomizeEthnicityDnaFromCulture]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - visible = "[Not(VariableSystem.HasValue( 'culture_select_window_open', 'true' ))]" - text = "RULER_DESIGNER_REGENERATE_PORTRAIT" - - button_randomize = { - parentanchor = vcenter - position = { 7 0 } - } - } - - } - } - } - - vbox = { - name = "name" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_CHARACTER_NAME" - using = Font_Size_Medium - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "RULER_DESIGNER_FIRST_NAME_LABEL" - align = nobaseline - } - - editbox_standard = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_properties" - { - text = "[RulerDesignerWindow.GetFirstName]" - ontextedited = "[RulerDesignerWindow.OnEditFirstName]" - maxcharacters = 40 - } - } - - expand = {} - } - - hbox = { - name = "random_name" - layoutpolicy_horizontal = expanding - spacing = 5 - - button_randomize = { - name = "dice_icon" - size = { 30 30 } - enabled = no - } - - text_single = { - text = "RULER_DESIGNER_RANDOM_NAME_LABEL" - align = nobaseline - max_width = 150 - } - - hbox = { - spacing = 5 - - button_standard = { - name = "random_faith_name" - datacontext = "[RulerDesignerWindow.GetFaith]" - visible = "[Faith.HasReservedNames( RulerDesignerWindow.IsFemale )]" - size = { 140 25 } - text = "[Faith.GetAdjectiveNoTooltip]" - tooltip = RULER_DESIGNER_RANDOM_NAME_FAITH_TOOLTIP - using = tooltip_se - onclick = "[RulerDesignerWindow.RandomizeFirstNameFaith]" - } - - button_standard = { - name = "random_culture_name" - datacontext = "[RulerDesignerWindow.GetCulture]" - size = { 140 25 } - text = "RULER_DESIGNER_GETCULTURE" - tooltip = RULER_DESIGNER_RANDOM_NAME_CULTURE_TOOLTIP - using = tooltip_se - onclick = "[RulerDesignerWindow.RandomizeFirstNameCulture]" - } - } - - expand = {} - } - } - } - - vbox = { - name = "dynasty_house" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_DYNASTY_LABEL" - using = Font_Size_Medium - } - } - - vbox = { - datacontext = "[RulerDesignerWindow.GetDynastyCoatOfArms]" - layoutpolicy_horizontal = expanding - - margin_top = 25 - margin_bottom = -10 - - hbox = { - spacing = 5 - - coa_preview_dynasty_huge = { - datacontext = "[DesignerCoA.GetCoA]" - datacontext = "[RulerDesignerWindow.GetCulture]" - } - - button_edit_text = { - onclick = "[RulerDesignerWindow.OpenDynastyCoatOfArmsDesigner]" - onclick = "[VariableSystem.Set( 'coat_of_arms_customization_open', 'dynasty' )]" - tooltip = RULER_DESIGNER_CUSTOMIZE_DYNASTY - using = tooltip_se - } - } - } - } - - vbox = { - name = "realm" - layoutpolicy_horizontal = expanding - datacontext = "[RulerDesignerWindow.GetCharacterToOverwrite]" - datacontext = "[Character.GetPrimaryTitle]" - datacontext = "[RulerDesignerWindow.GetTitleCoatOfArms]" - visible = "[Not( RulerDesignerWindow.IsDesigningLandless )]" - - vbox = { - name = "realm_header" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_REALM_LABEL" - using = Font_Size_Medium - } - } - } - - hbox = { - name = "title_and_government" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "title" - layoutpolicy_horizontal = expanding - margin_top = 5 - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 30 - - text_multi = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_TITLE_NAME" - default_format = "#high" - using = Font_Size_Big - max_width = 470 - autoresize = yes - align = center - } - } - - hbox = { - margin_left = 30 - - coa_realm_huge_crown = { - name = "default_coa" - visible = "[Not( DesignerCoA.IsSet )]" - blockoverride "coa_button" {} - } - - container = { - visible = "[DesignerCoA.IsSet]" - - coa_preview_realm_huge_crown = { - name = "custom_coa" - datacontext = "[DesignerCoA.GetCoA]" - - blockoverride "frame_override" - { - frame = "[Title.GetTierFrame]" - } - blockoverride "coat_of_arms_mask" - { - coat_of_arms_mask = "[Character.GetGovernment.GetRealmMask]" - coat_of_arms_offset = "[Character.GetGovernment.GetRealmMaskOffset]" - coat_of_arms_scale = "[Character.GetGovernment.GetRealmMaskScale]" - } - blockoverride "realm_mask_texture" - { - texture = "[Character.GetGovernment.GetRealmMask]" - } - blockoverride "realm_frame_texture" - { - texture = "[Character.GetGovernment.GetRealmFrame('(int32)115')]" - } - } - } - - button_edit_text = { - onclick = "[RulerDesignerWindow.OpenTitleCoatOfArmsDesigner]" - onclick = "[VariableSystem.Set( 'coat_of_arms_customization_open', 'title' )]" - tooltip = RULER_DESIGNER_CUSTOMIZE_TITLE - using = tooltip_se - } - - button_revert = { - visible = "[Not( RulerDesignerWindow.IsDesigningLandless )]" - onclick = "[RulerDesignerWindow.ResetTitleToHistorical]" - tooltip = RULER_DESIGNER_RESET_TITLE - using = tooltip_se - } - } - } - } - - widget = { - size = {520 1} - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_standard_back = { - onclick = "[RulerDesignerWindow.Close]" - shortcut = "close_window" - - blockoverride "text" - { - text = "BACK_LABEL" - } - } - - button_standard = { - text = "RULER_DESIGNER_SAVE_RULER" - - enabled = "[RulerDesignerWindow.CanOpenSaveRulerWindow]" - tooltip = "[RulerDesignerWindow.CanOpenSaveRulerWindowTooltip]" - - onclick = "[RulerDesignerWindow.OpenSaveRulerWindow]" - } - - button_standard = { - text = "RULER_DESIGNER_LOAD_RULER" - - enabled = "[RulerDesignerWindow.CanOpenLoadRulerWindow]" - tooltip = "[RulerDesignerWindow.CanOpenLoadRulerWindowTooltip]" - - onclick = "[RulerDesignerWindow.OpenLoadRulerWindow]" - } - - expand = {} - } - } - } - - divider_light = { - visible = "[Not( VariableSystem.Exists( 'trait_select_window_open' ) )]" - layoutpolicy_vertical = expanding - } - } - } - } - - vbox = { - name = "faith_selection" - layoutpolicy_vertical = expanding - visible = "[VariableSystem.Exists( 'faith_select_window_open' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - on_start = "[RulerDesignerWindow.AccessReligionList.HideAllChildren]" - } - - text_label_center = { - text = RULER_DESIGNER_FAITH_LIST_LABEL - using = Font_Size_Big - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - expand = {} - - button_close = { - name = "button_close" - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - onclick = "[VariableSystem.Clear( 'faith_select_window_open' )]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 350 0 } - - datacontext = "[RulerDesignerWindow.AccessReligionList]" - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[CollapsibleReligionList.AccessItems]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - name = "religion" - datacontext = "[CollapsibleReligionListGroup.GetItem]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - tooltip = "RULER_DESIGNER_LIST_FAITH_ENTRY_TOOLTIP" - - button_standard_hover = { - layoutpolicy_horizontal = expanding - onclick = "[CollapsibleReligionListGroup.ToggleChildrenVisible]" - - hbox = { - margin = { 5 0 } - spacing = 10 - - button_list_expand = { - checked = "[CollapsibleReligionListGroup.AreChildrenVisible]" - onclick = "[CollapsibleReligionListGroup.ToggleChildrenVisible]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_RELIGION" - size = { 0 40 } - align = nobaseline - default_format = "#clickable" - autoresize = no - } - } - } - } - - vbox = { - name = "faiths" - datamodel = "[Religion.GetFaiths]" - visible = "[CollapsibleReligionListGroup.AreChildrenVisible]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - button_standard_hover = { - name = "faith_item" - layoutpolicy_horizontal = expanding - size = { 0 55 } - using = Button_Select_Faith - tooltipwidget = { faith_tooltip_ruler_designer = {} } - enabled = "[Not( ObjectsEqual( Faith.Self, RulerDesignerWindow.GetFaith ) )]" - - hbox = { - margin = { 5 0 } - margin_left = 30 - spacing = 10 - - button_religion_icon_ruler_designer = { - name = "faith_icon" - size = { 50 50 } - using = Button_Select_Faith - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_GETFAITH" - default_format = "#clickable" - autoresize = no - } - } - } - } - } - } - } - } - } - } - } - } - - vbox = { - name = "culture_selection" - layoutpolicy_vertical = expanding - size = { 520 0 } - - visible = "[VariableSystem.Exists( 'culture_select_window_open' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - alpha = 0 - on_start = "[RulerDesignerWindow.AccessCultureList.HideAllChildren]" - } - - text_label_center = { - text = RULER_DESIGNER_CULTURE_LIST_LABEL - using = Font_Size_Big - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_bottom = 15 - - button_checkbox_label = { - name = "update_appearance_checkbox" - onclick = "[RulerDesignerWindow.ToggleAppearanceOverride]" - - blockoverride "checkbox" - { - checked = "[RulerDesignerWindow.IsAppearanceOverrideEnabled]" - } - - blockoverride "text" - { - text = "RULER_DESIGNER_UPDATE_APPEARANCE" - } - } - - expand = {} - - button_close = { - name = "button_close" - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - using = Button_Close_Select_Culture - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 100% } - - datacontext = "[RulerDesignerWindow.AccessCultureList]" - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[CollapsibleCultureList.AccessItems]" - layoutpolicy_horizontal = expanding - - item = { - vbox = { - name = "culture_group" - layoutpolicy_horizontal = expanding - - datacontext = "[CollapsibleCultureListGroup.GetItem]" - - button_standard_hover = { - layoutpolicy_horizontal = expanding - - size = { 0 40 } - onclick = "[CollapsibleCultureListGroup.ToggleChildrenVisible]" - tooltip = RULER_DESIGNER_LIST_CULTURE_ENTRY_TOOLTIP - - hbox = { - margin = { 5 0 } - spacing = 10 - - button_list_expand = { - checked = "[CollapsibleCultureListGroup.AreChildrenVisible]" - onclick = "[CollapsibleCultureListGroup.ToggleChildrenVisible]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_CULTURE_PILLAR_NAME" - default_format = "#clickable" - autoresize = no - } - } - } - - - vbox = { - name = "cultures" - layoutpolicy_horizontal = expanding - datamodel = "[CulturePillar.GetCulturesWithPillar]" - visible = "[CollapsibleCultureListGroup.AreChildrenVisible]" - - item = { - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[Culture.GetTemplate]" - - button_standard_hover = { - name = "culture_item" - layoutpolicy_horizontal = expanding - size = { 0 35 } - tooltipwidget = { - ruler_designer_culture_tooltip = {} - } - using = Button_Select_Culture - enabled = "[Not( ObjectsEqual( CultureTemplate.Self, RulerDesignerWindow.GetCulture.GetTemplate ) )]" - - hbox = { - margin_left = 50 - - text_single = { - margin = { 5 0 } - text = "RULER_DESIGNER_CULTURE_TEMPLATE_NAME" - default_format = "#clickable" - align = nobaseline - } - - expand = {} - } - } - } - } - } - } - } - } - } - } - } - - widget = { - name = "middle_portrait" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # error_horse = {} - - icon = { - parentanchor = bottom|hcenter - position = { 0 20 } - size = { 650 1100 } - scale = "[ScaleToFitElementInside('(int32)650', '(int32)1100')]" - texture = "[RulerDesignerWindow.GetPortrait( 'environment_body', 'camera_ruler_designer', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - state = { - name = "ruler_designer_portrait_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - button_standard = { - parentanchor = bottom|hcenter - size = { 250 45 } - position = { 0 -5 } - text = "RULER_DESIGNER_CHANGE_PORTRAIT" - onclick = "[VariableSystem.Set( 'appearance_customization_window_open', 'ethnicity_selection' )]" - onclick = "[VariableSystem.Set( 'appearance_customization_portrait_view', 'full_body' )]" - } - - text_label_center = { - parentanchor = bottom|hcenter - position = { 0 -80 } - text = "RULER_DESIGNER_FULL_NAME" - using = Font_Size_Big - autoresize = yes - max_width = 550 - multiline = yes - visible = "[Not( StringIsEmpty( RulerDesignerWindow.GetFirstName ) )]" - using = Animation_ShowHide_Standard - } - } - - vbox = { - name = "trait_selection_panel" - layoutpolicy_vertical = expanding - visible = "[VariableSystem.Exists( 'trait_select_window_open' )]" - - using = Animation_Tab_Switch - - text_label_center = { - text = RULER_DESIGNER_TRAITS_LABEL - layoutpolicy_horizontal = expanding - } - - scrollbox = { - name = "education_trait_selection_list" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 100% } - - visible = "[VariableSystem.HasValue( 'trait_select_window_open', 'education' )]" - - blockoverride "scrollbox_content" - { - vbox_trait_selection_content = { - layoutpolicy_horizontal = expanding - datamodel = "[GetEducationTraits]" - } - } - } - - scrollbox = { - name = "personality_trait_selection_list" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 100% } - - visible = "[VariableSystem.HasValue( 'trait_select_window_open', 'personality' )]" - - blockoverride "scrollbox_content" - { - vbox_trait_selection_content = { - layoutpolicy_horizontal = expanding - datamodel = "[GetPersonalityTraits]" - } - } - } - - scrollbox = { - name = "other_trait_selection_list" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 400 100% } - - visible = "[VariableSystem.HasValue( 'trait_select_window_open', 'other' )]" - - blockoverride "scrollbox_content" - { - vbox_trait_selection_content = { - layoutpolicy_horizontal = expanding - datamodel = "[GetOtherRulerDesignerTraits]" - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_bottom = 15 - - button_standard = { - text = "DONE" - onclick = "[RulerDesignerWindow.CancelTraitEditing]" - onclick = "[RulerDesignerWindow.CancelTraitEditing]" - onclick = "[VariableSystem.Clear( 'trait_select_window_open' )]" - shortcut = "close_window" - } - } - } - - divider_light = { - visible = "[Not( Or( VariableSystem.Exists( 'culture_select_window_open' ), VariableSystem.Exists( 'faith_select_window_open' ) ) )]" - layoutpolicy_vertical = expanding - } - - widget = { - visible = "[Not( Or( VariableSystem.Exists( 'culture_select_window_open' ), VariableSystem.Exists( 'faith_select_window_open' ) ) )]" - layoutpolicy_vertical = expanding - size = { 520 0 } - - vbox = { - name = "right_panel" - margin_left = 15 - margin_bottom = 5 - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - name = "points" - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_POINTS_LABEL" - using = Font_Size_Medium - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - datacontext = "[RulerDesignerWindow.GetPointsUsedBreakdown]" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - text_single = { - name = "current" - text = "[ValueBreakdown.GetValue]" - using = Font_Size_Big - align = nobaseline - default_format = "#high" - min_width = 50 - } - - progressbar_standard = { - name = "points_bar" - layoutpolicy_horizontal = expanding - using = ProgressBar_Achievements - visible = "[LessThanOrEqualTo_int32( RulerDesignerWindow.GetPointsUsed, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - - progressbar_red = { - name = "points_bar_over_limit" - layoutpolicy_horizontal = expanding - using = ProgressBar_Achievements - visible = "[GreaterThan_int32( RulerDesignerWindow.GetPointsUsed, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - } - - text_single = { - text = RULER_DESIGNER_POINTS_LIMIT_LABEL - layoutpolicy_horizontal = expanding - align = right - margin_right = 15 - } - } - - vbox = { - name = "physical" - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - name = "age" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_AGE_LABEL" - using = Font_Size_Medium - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_top = 10 - - text_single = { - text = RULER_DESIGNER_AGE - using = Font_Size_Big - align = nobaseline - } - - expand = {} - - text_single = { - text = RULER_DESIGNER_BIRTH_YEAR - } - - } - - scrollbar_age = { - name = "scrollbar_age" - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - } - - expand = {} - - vbox = { - name = "weight" - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_WEIGHT_LABEL" - using = Font_Size_Medium - } - } - } - - scrollbar_weight = { - name = "scrollbar_weight" - layoutpolicy_horizontal = expanding - } - } - - expand = {} - } - - vbox = { - name = "traits" - layoutpolicy_horizontal = expanding - datacontext = "[GetNullCharacter]" - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_TRAITS_LABEL" - using = Font_Size_Medium - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 5 - spacing = 3 - - hbox_trait_slot = { - name = "education_trait" - datacontext = "[RulerDesignerWindow.AccessEducationTraitSlot]" - layoutpolicy_horizontal = expanding - - blockoverride "plus_button" - { - button_trait = { - visible = "[RulerDesignerWindow.IsAdult]" - datacontext = "[TraitSlot.GetTrait]" - onclick = "[TraitSlot.StartEditing]" - onclick = "[VariableSystem.Toggle( 'trait_select_window_replace' )]" - onclick = "[VariableSystem.Set( 'trait_select_window_open', 'education' )]" - - state = { - name = "_mouse_enter" - on_start = "[PdxGuiWidget.FindChild('swap_icon').TriggerAnimation('show')]" - } - - state = { - name = "_mouse_leave" - on_start = "[PdxGuiWidget.FindChild('swap_icon').TriggerAnimation('hide')]" - } - - button_replace = { - name = "swap_icon" - parentanchor = center - alwaystransparent = yes - alpha = 0 - - state = { - name = "show" - using = Animation_FadeIn_Quick - duration = 0.05 - } - - state = { - name = "hide" - alpha = 0 - using = Animation_FadeOut_Quick - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.18 0.18 0.18 0.8 } - margin = {20 20} - } - } - } - - icon = { - visible = "[Not(RulerDesignerWindow.IsAdult)]" - texture = "gfx/interface/icons/symbols/icon_cross.dds" - enabled = no - size = { 50 50 } - tooltip = RULER_DESIGNER_NO_EDUCATION_TOOLTIP - } - } - - blockoverride "trait_list" {} - - blockoverride "trait_slots_header_text" - { - text = RULER_DESIGNER_EDUCATION_TRAIT_LABEL - } - blockoverride "button_trait_onclick" - { - onclick = "[VariableSystem.Set( 'trait_select_window_open', 'education' )]" - } - } - - hbox_trait_slot = { - name = "personality_traits" - datacontext = "[RulerDesignerWindow.AccessPersonalityTraitSlots]" - layoutpolicy_horizontal = expanding - - blockoverride "trait_slots_header_text" - { - text = RULER_DESIGNER_PERSONALITY_TRAIT_LABEL - } - blockoverride "plus_onclick" - { - onclick = "[VariableSystem.Set( 'trait_select_window_open', 'personality' )]" - } - } - - hbox_trait_slot = { - name = "other_traits" - datacontext = "[RulerDesignerWindow.AccessOtherTraitSlots]" - layoutpolicy_horizontal = expanding - - blockoverride "trait_slots_header_text" - { - text = RULER_DESIGNER_OTHER_TRAIT_LABEL - } - blockoverride "plus_onclick" - { - onclick = "[VariableSystem.Set( 'trait_select_window_open', 'other' )]" - } - } - } - } - - vbox = { - name = "skills" - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_SKILLS_LABEL" - using = Font_Size_Medium - } - } - } - - fixedgridbox = { - name = "skill_buttons" - datamodel = "[RulerDesignerWindow.AccessSkills]" - datamodel_wrap = 3 - addrow = 60 - addcolumn = 245 - - item = { - widget = { - name = "skill_item" - size = { 240 60 } - - background = { - using = Background_Area - } - - hbox = { - margin = { 7 0 } - spacing = 5 - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = "[RulerDesignerSkill.GetFrame]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "skill_name" - layoutpolicy_horizontal = expanding - text = "[RulerDesignerSkill.GetName]" - autoresize = no - } - - text_single = { - name = "skill_level" - layoutpolicy_horizontal = expanding - text = "[RulerDesignerSkill.GetLevelDesc]" - default_format = "#weak" - autoresize = no - } - } - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerSkill.ChangeValue( '(int32)-1' )]" - enabled = "[GreaterThan_int32( RulerDesignerSkill.GetBaseValue, '(int32)0' )]" - - button_minus_small = { - name = "decrease_skill" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "skill_value" - - datacontext = "[RulerDesignerSkill.GetModifiedValueBreakdown]" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - text = "[ValueBreakdown.GetValue]" - - using = Font_Size_Big - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerSkill.ChangeValue( '(int32)1' )]" - enabled = "[LessThan_int32( RulerDesignerSkill.GetBaseValue, RulerDesignerSkill.GetMaxValue )]" - - button_plus_small = { - name = "increase_skill" - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - } - - text_single = { - name = "prowess_muscle_info" - text = PROWESS_MUSCLE_INFO_PERSONAL - default_format = "#weak" - } - } - - vbox = { - name = "family" - layoutpolicy_horizontal = expanding - spacing = 10 - visible = "[Not( RulerDesignerWindow.IsDesigningLandless )]" - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_FAMILY_LABEL" - using = Font_Size_Medium - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 30 - - vbox = { - layoutpolicy_vertical = expanding - - button_checkbox_label = { - name = "generate_spouse_button" - layoutpolicy_horizontal = expanding - - onclick = "[RulerDesignerWindow.ToggleGenerateSpouse]" - enabled = "[RulerDesignerWindow.IsAdult]" - tooltip = "RULER_DESIGNER_GENERATE_SPOUSE_TOOLTIP" - - blockoverride "checkbox" - { - checked = "[RulerDesignerWindow.ShouldGenerateSpouse]" - } - - blockoverride "text" - { - text = "RULER_DESIGNER_GENERATE_SPOUSE_LABEL" - } - } - - expand = {} - } - - vbox = { - hbox = { - name = "generate_sons_amount" - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_GENERATED_SONS_LABEL" - align = nobaseline - } - - tooltip = RULER_DESIGNER_GENERATED_SONS_TOOLTIP - - hbox = { - spacing = 10 - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerWindow.ChangeNumberOfGeneratedSons( '(int32)-1' )]" - enabled = "[GreaterThan_int32( RulerDesignerWindow.GetNumberOfGeneratedSons, '(int32)0' )]" - - button_minus_small = { - name = "decrease_amount" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "sons_value" - text = "[RulerDesignerWindow.GetNumberOfGeneratedSons]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerWindow.ChangeNumberOfGeneratedSons( '(int32)1' )]" - enabled = "[LessThan_int32( RulerDesignerWindow.GetNumberOfGeneratedChildren, RulerDesignerWindow.CalcMaxNumberOfGeneratedChildren )]" - - button_plus_small = { - name = "increase_amount" - parentanchor = center - alwaystransparent = yes - } - } - } - } - - hbox = { - name = "generate_daughters_amount" - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_GENERATED_DAUGHTERS_LABEL" - align = nobaseline - } - - tooltip = RULER_DESIGNER_GENERATED_DAUGHTERS_TOOLTIP - - hbox = { - spacing = 10 - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerWindow.ChangeNumberOfGeneratedDaughters( '(int32)-1' )]" - enabled = "[GreaterThan_int32( RulerDesignerWindow.GetNumberOfGeneratedDaughters, '(int32)0' )]" - - button_minus_small = { - name = "decrease_amount" - parentanchor = center - alwaystransparent = yes - } - } - - text_single = { - name = "daughters_value" - text = "[RulerDesignerWindow.GetNumberOfGeneratedDaughters]" - using = Font_Size_Big - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - - button_round = { - size = { 28 28 } - onclick = "[RulerDesignerWindow.ChangeNumberOfGeneratedDaughters( '(int32)1' )]" - enabled = "[LessThan_int32( RulerDesignerWindow.GetNumberOfGeneratedChildren, RulerDesignerWindow.CalcMaxNumberOfGeneratedChildren )]" - - button_plus_small = { - name = "increase_amount" - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - - text_multi = { - visible = "[Not( RulerDesignerWindow.IsAdult )]" - text = RULER_DESIGNER_ADULT_ONLY_WARNING - autoresize = yes - max_width = 130 - align = center - } - - expand = {} - } - } - - achievements_availability_box = { - blockoverride "achievements_enabled_visible" { - visible = "[LessThanOrEqualTo_int32( RulerDesignerWindow.GetPointsUsed, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - blockoverride "achievements_disabled_visible" { - visible = "[GreaterThan_int32( RulerDesignerWindow.GetPointsUsed, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - } - } - - expand = {} - vbox = { - datacontext = "[RulerDesignerWindow.GetCharacterToOverwrite]" - datacontext = "[AccessGameRules]" - datacontext = "[JominiGameRules.AccessNamedGameRule( 'gender_equality' )]" - - vbox = { - name = "wrong_gender_for_governor_warning" - - # if you are already huangdi or governor, no need to warn - visible = "[RulerDesignerWindow.IsDesigningLandless]" - - text_label_center = { - visible = "[And(And(Not(RulerDesignerWindow.IsFemale), Character.GetGovernment.IsType('celestial_government')), EqualTo_string( GuiGameRule.GetSetting.GetName, Localize('setting_inversed_gender_equality')))]" - text = "RULER_DESIGNER_CHARACTER_WARNING_CHINA_INVERSED" - } - - text_label_center = { - visible = "[And(And(Not(RulerDesignerWindow.IsFemale), Character.GetGovernment.IsType('celestial_government')), EqualTo_string( GuiGameRule.GetSetting.GetName, Localize('setting_inversed_gender_equality')))]" - text = "RULER_DESIGNER_CHARACTER_WARNING_CHINA_INVERSED_EXPLAINER" - } - - text_label_center = { - visible = "[And(And(RulerDesignerWindow.IsFemale, Character.GetGovernment.IsType('celestial_government')), EqualTo_string( GuiGameRule.GetSetting.GetName, Localize('setting_default_gender_equality')))]" - text = "RULER_DESIGNER_CHARACTER_WARNING_CHINA" - } - } - - - spacer = { - size = { 0 15 } - } - - button_primary_big = { - text = "RULER_DESIGNER_FINALIZE" - - enabled = "[RulerDesignerWindow.CanFinalize]" - tooltip = "[RulerDesignerWindow.GetFinalizeTooltip]" - - onclick = "[RulerDesignerWindow.FinalizeOverwrite]" - } - } - } - } - } - - hbox = { - name = "appearance_customizer_view" - visible = "[VariableSystem.Exists( 'appearance_customization_window_open' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 20 } - - using = Animation_Tab_Switch - - widget = { - layoutpolicy_vertical = expanding - size = { 480 0 } - - vbox = { - name = "ethnicity_panel" - visible = "[VariableSystem.HasValue( 'appearance_customization_window_open', 'ethnicity_selection' )]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_right = 16 - - using = Animation_ShowHide_Quick - - text_label_left = { - layoutpolicy_horizontal = expanding - text = RULDER_DESIGNER_ETHNICITY_LABEL - using = Font_Size_Medium - } - - vbox = { - name = "new_appearance" - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - name = "override_portrait_warning" - layoutpolicy_horizontal = expanding - text = RULER_DESIGNER_OVERRIDE_PORTRAIT - autoresize = no - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = RULER_DESIGNER_ETHNICITY_INFO - autoresize = yes - max_width = 470 - } - - expand = {} - } - - scrollbox = { - name = "ethinicity_list" - layoutpolicy_horizontal = expanding - minimumsize = { 0 470 } - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[GetEthnicities]" - layoutpolicy_horizontal = expanding - - item = { - button_standard_hover = { - visible = "[And( Ethnicity.IsVisible, ObjectsEqual( Ethnicity.GetPortraitGroup, RulerDesignerWindow.GetEthnicity.GetPortraitGroup ) )]" - layoutpolicy_horizontal = expanding - - text = "[Ethnicity.GetName]" - size = { 0 40 } - onclick = "[RulerDesignerWindow.SetEthnicity( Ethnicity.Self )]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - } - } - } - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_standard_back = { - text = "BACK_LABEL" - onclick = "[VariableSystem.Clear( 'appearance_customization_window_open' )]" - onclick = "[VariableSystem.Clear( 'appearance_customization_portrait_view' )]" - } - - button_primary = { - visible = "[Not(VariableSystem.HasValue( 'appearance_customization_window_open', 'main_customizer' ))]" - text = "RULER_DESIGNER_CUSTOMIZE_APPEARANCE_FURTHER" - onclick = "[VariableSystem.Set( 'appearance_customization_window_open', 'main_customizer' )]" - onclick = "[VariableSystem.Set( 'appearance_customization_side_tab_open', 'body' )]" - min_width = 290 - max_width = 290 - } - } - } - - vbox = { - name = "main_customizer" - visible = "[VariableSystem.HasValue( 'appearance_customization_window_open', 'main_customizer' )]" - spacing = 10 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_right = 16 - - using = Animation_ShowHide_Quick - - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[RulerDesignerWindow.GetGeneGroupCategories]" - item = { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Localize( Concatenate( 'RULER_DESIGNER_CATEGORY_' , RulerDesignerGeneGroupCategory.GetCategory ) )]" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - datamodel = "[RulerDesignerGeneGroupCategory.GetGroups]" - spacing = 10 - - item = { - button_standard = { - text = "[Localize( Concatenate( 'RULER_DESIGNER_GROUP_' , RulerDesignerGeneGroup.GetGroup ) )]" - onclick = "[VariableSystem.Set( 'appearance_customization_side_tab_open', RulerDesignerGeneGroup.GetGroup )]" - onclick = "[VariableSystem.Set( 'appearance_customization_portrait_view', RulerDesignerGeneGroup.GetCamera )]" - down = "[VariableSystem.HasValue( 'appearance_customization_side_tab_open', RulerDesignerGeneGroup.GetGroup )]" - } - } - } - } - } - } - } - button_checkbox_label = { - name = "toggle_show_accessories" - - visible = "[RulerDesignerWindow.HasAccessoryGenes]" - onclick = "[RulerDesignerWindow.ToggleShowAccessories]" - tooltip = "RULER_DESIGNER_TOGGLE_SHOW_ACCESSORIES_TOOLTIP" - - blockoverride "checkbox" - { - checked = "[RulerDesignerWindow.ShouldShowAcesssories]" - } - - blockoverride "text" - { - text = "RULER_DESIGNER_TOGGLE_SHOW_ACCESSORIES_LABEL" - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_standard_back = { - text = "BACK_LABEL" - onclick = "[VariableSystem.Set( 'appearance_customization_window_open', 'ethnicity_selection' )]" - onclick = "[VariableSystem.Set( 'appearance_customization_portrait_view', 'full_body' )]" - onclick = "[VariableSystem.Clear( 'appearance_customization_side_tab_open' )]" - onclick = "[RulerDesignerWindow.SetShowAccessories]" - } - - button_primary = { - visible = "[VariableSystem.HasValue( 'appearance_customization_window_open', 'main_customizer' )]" - text = RULER_DESIGNER_CUSTOMIZE_APPEARANCE_FINISH - onclick = "[VariableSystem.Clear( 'appearance_customization_side_tab_open' )]" - onclick = "[VariableSystem.Clear( 'appearance_customization_window_open' )]" - onclick = "[VariableSystem.Clear( 'appearance_customization_portrait_view' )]" - onclick = "[RulerDesignerWindow.SetShowAccessories]" - min_width = 290 - max_width = 290 - } - } - } - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - widget = { - name = "portrait_view" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - visible = "[VariableSystem.HasValue( 'appearance_customization_portrait_view', 'face' )]" - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - icon = { - parentanchor = center - position = { 130 -80 } - size = { 500 700 } - texture = "[RulerDesignerWindow.GetPortrait( 'environment_head', 'camera_ruler_designer_head_profile', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - using = Animation_ShowHide_Quick - - state = { - name = "ruler_designer_portrait_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - - modify_texture = { - texture = "gfx/portraits/portrait_mask_event_letter.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - } - } - - icon = { - parentanchor = center - position = { -130 -80 } - size = { 500 700 } - texture = "[RulerDesignerWindow.GetPortrait( 'environment_head', 'camera_head', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - using = Animation_ShowHide_Quick - - state = { - name = "ruler_designer_portrait_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - modify_texture = { - texture = "gfx/portraits/portrait_mask_event_letter.dds" - blend_mode = alphamultiply - } - } - } - - icon = { - visible = "[VariableSystem.HasValue( 'appearance_customization_portrait_view', 'full_body' )]" - parentanchor = bottom|hcenter - position = { 0 20 } - size = { 650 1100 } - scale = "[ScaleToFitElementInside('(int32)650', '(int32)1100')]" - texture = "[RulerDesignerWindow.GetPortrait( 'environment_body', 'camera_ruler_designer', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - - using = Animation_ShowHide_Standard - - state = { - name = "ruler_designer_portrait_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - } - - widget = { - parentanchor = bottom|hcenter - position = { 0 -20 } - - vbox = { - set_parent_size_to_minimum = yes - - button_standard = { - size = { 250 32 } - onclick = "[RulerDesignerWindow.RandomizeEthnicityDnaFromCurrent]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - visible = "[Not(VariableSystem.HasValue( 'appearance_customization_window_open', 'ethnicity_selection' ))]" - text = "RULER_DESIGNER_REGENERATE_PORTRAIT" - - button_randomize = { - parentanchor = vcenter - position = { 7 0 } - } - } - - vbox = { - name = "copy_paste_dna" - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - layoutpolicy_horizontal = expanding - - text = "RULER_DESIGNER_SAVE_DNA_TO_CLIPBOARD" - } - - button_copy = { - onclick = "[RulerDesignerWindow.SaveDnaToClipboard]" - } - - tooltip = RULER_DESIGNER_SAVE_DNA_TO_CLIPBOARD_TOOLTIP - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_LOAD_DNA_FROM_CLIPBOARD" - } - - button_paste = { - onclick = "[RulerDesignerWindow.LoadDnaFromClipboard]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_designer_portrait_refresh')]" - } - - tooltip = RULER_DESIGNER_LOAD_DNA_FROM_CLIPBOARD_TOOLTIP - } - } - } - } - } - - widget = { - layoutpolicy_vertical = expanding - size = { 520 0 } - - hbox = { - layoutpolicy_vertical = expanding - visible = "[VariableSystem.HasValue( 'appearance_customization_window_open', 'main_customizer' )]" - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox = { - name = "gene_editor" - spacing = 10 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = 15 - - using = Animation_ShowHide_Quick - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Localize( Concatenate( 'RULER_DESIGNER_GROUP_' , VariableSystem.Get( 'appearance_customization_side_tab_open' ) ) )]" - using = Font_Size_Medium - } - } - - scrollbox = { - name = "gene_sliders" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - minimumsize = { 200 0 } - - blockoverride "scrollbox_background" - { - } - - blockoverride "scrollbox_background_fade" - { - } - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - text = "RULER_DESIGNER_CLIPPING_NOTE" - default_format = "#weak" - margin_bottom = 20 - autoresize = yes - max_width = 480 - } - - vbox = { - datamodel = "[RulerDesignerWindow.GetGenesByGroup( VariableSystem.Get( 'appearance_customization_side_tab_open' ) )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - hbox = { - name = "gene_entry" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - min_width = 190 - max_width = 190 - multiline = yes - text = "[GeneCategory.GetName]" - } - - expand = {} - } - - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 0 5 } - spacing = 5 - - visible = "[GeneCategory.IsType( 'morph' )]" - - scrollbar_morph_gene = { - name = "scrollbar_morph_gene" - visible = "[RulerDesignerWindow.ShowMorphGeneSlider( GeneCategory.Self )]" - } - - text_single = { - name = "morph_gene_female_only" - text = RULER_DESIGNER_GENE_ONLY_WOMEN - visible = "[RulerDesignerWindow.IsOnlyVisibleFemale( GeneCategory.Self )]" - align = left - layoutpolicy_horizontal = expanding - default_format = "#weak" - } - - expand = {} - - vbox_morph_gene_template_buttons = { - name = "gene_templates" - visible = "[GreaterThan_int32( GetDataModelSize( RulerDesignerWindow.GetMorphTemplatesByGene( GeneCategory.Self ) ), '(int32)1' )]" - datamodel = "[RulerDesignerWindow.GetMorphTemplatesByGene( GeneCategory.Self )]" - spacing = 10 - } - } - - vbox_accessory_gene_buttons = { - name = "vbox_accessory_gene_buttons" - visible = "[GeneCategory.IsType( 'accessory' )]" - datamodel = "[RulerDesignerWindow.GetAccessoryModifiers( GeneCategory.Self )]" - layoutpolicy_horizontal = expanding - } - - vbox_color_picker = { - name = "vbox_color_picker" - datacontext = "[RulerDesignerWindow.AccessColorPicker( GeneCategory.Self )]" - visible = "[GeneCategory.IsType( 'color' )]" - } - - expand = {} - } - } - } - } - } - } - - expand = {} - } - } - } - } - - vbox = { - name = "coat_of_arms_page" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - margin_top = 15 - spacing = 10 - - visible = "[VariableSystem.Exists( 'coat_of_arms_customization_open' )]" - - using = Animation_ShowHide_Quick - - state = { - name = _show - using = CoatOfArmsDesignerAnimationResetState - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_dynasty_edit_fields = { - name = "dynasty_detail_input" - visible = "[VariableSystem.HasValue( 'coat_of_arms_customization_open', 'dynasty' )]" - layoutpolicy_vertical = expanding - margin_right = 10 - margin_left = 10 - } - - vbox_title_edit_fields = { - name = "title_detail_input" - visible = "[VariableSystem.HasValue( 'coat_of_arms_customization_open', 'title' )]" - layoutpolicy_vertical = expanding - - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox_coa_designer = { - datacontext = "[RulerDesignerWindow.GetCoatOfArmsDesigner]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - hbox = { - name = "finish_buttons" - layoutpolicy_horizontal = expanding - margin_top = 20 - margin_bottom = 15 - - background = { - using = Background_Area - margin = { 15 0 } - } - - button_primary = { - name = "title_finish_button" - visible = "[VariableSystem.HasValue( 'coat_of_arms_customization_open', 'title' )]" - - text = "FINISH" - tooltip = "RULER_DESIGNER_FINISH_CUSTOMIZE_TITLE" - onclick = "[RulerDesignerWindow.FinishTitleCoatOfArmsDesigner]" - onclick = "[VariableSystem.Clear( 'coat_of_arms_customization_open' )]" - - size = { 210 40 } - } - - button_primary = { - name = "dynasty_finish_button" - visible = "[VariableSystem.HasValue( 'coat_of_arms_customization_open', 'dynasty' )]" - - text = "FINISH" - tooltip = "RULER_DESIGNER_FINISH_CUSTOMIZE_DYNASTY" - onclick = "[RulerDesignerWindow.FinishDynastyCoatOfArmsDesigner]" - onclick = "[VariableSystem.Clear( 'coat_of_arms_customization_open' )]" - - size = { 210 40 } - } - } - } - } -} - -types ruler_designer_types -{ - type achievements_availability_box = hbox { - name = "achievements_availability_box" - layoutpolicy_horizontal = expanding - spacing = 10 - - achievements_enabled_icon = { - block "achievements_enabled_visible" {} - } - achievements_disabled_icon = { - block "achievements_disabled_visible" {} - } - - vbox = { - block "achievements_title_visible" {} - - text_single = { - text = RULER_DESIGNER_ACHIEVEMENTS_LABEL - } - text_single = { - text = RULER_DESIGNER_ACHIEVEMENTS_AVAILABLE - block "achievements_enabled_visible" {} - default_format = "#P" - } - text_single = { - text = RULER_DESIGNER_ACHIEVEMENTS_NOT_AVAILABLE - block "achievements_disabled_visible" {} - default_format = "#N" - } - } - - expand = {} - - text_multi = { - name = "achievements_info" - text = RULER_DESIGNER_ACHIEVEMENTS_INFO - block "achievements_info_visible" {} - default_format = "#weak" - autoresize = yes - max_width = 300 - } - } - - type scrollbar_value_slider = scrollbar - { - direction = horizontal - size = { 270 20 } - wheelstep = 0 - - track = { - using = SettingsValueTrack - } - - slider = { - using = SettingsValueSlider - } - - dec_button = { - using = SettingsValueDecButton - } - - inc_button = { - using = SettingsValueIncButton - } - } - - type scrollbar_age = scrollbar_value_slider - { - min = 0 - max = 120 - - onvaluechanged = "[RulerDesignerWindow.OnAgeChange( PdxGuiWidget.Self )]" - value = "[IntToFloat( RulerDesignerWindow.GetAge )]" - } - - type scrollbar_weight = scrollbar_value_slider - { - min = -100 - max = 100 - - onvaluechanged = "[RulerDesignerWindow.OnWeightChange( PdxGuiWidget.Self )]" - value = "[IntToFloat( RulerDesignerWindow.GetWeight )]" - } - - type scrollbar_morph_gene = scrollbar_value_slider - { - min = 0 # You should probably not change these min and max values, the code relies on them being uint8s - max = 255 - - onvaluechanged = "[RulerDesignerWindow.OnMorphGeneChange( GeneCategory.Self, PdxGuiWidget.Self )]" - value = "[RulerDesignerWindow.GetMorphGeneValue( GeneCategory.Self )]" - - - } - - type vbox_morph_gene_template_buttons = vbox - { - spacing = 3 - - item = { - button_standard = { - name = "template_button" - text = "[GeneTemplate.GetName]" - onclick = "[RulerDesignerWindow.OnMorphTemplateSelected( GeneTemplate.Self ) ]" - down = "[RulerDesignerWindow.HasMorphTemplateSelected( GeneTemplate.Self ) ]" - } - } - } - - type vbox_accessory_gene_buttons = vbox - { - spacing = 3 - - item = { - button_tertiary_push = { - name = "accessory_button" - visible = "[RulerDesignerWindow.IsModifierValid( RulerDesignerPortraitModifier.Self )]" - layoutpolicy_horizontal = expanding - - text = "[RulerDesignerPortraitModifier.GetName]" - onclick = "[RulerDesignerWindow.OnPortraitModifierSelected( GeneCategory.Self, RulerDesignerPortraitModifier.Self )]" - down = "[RulerDesignerWindow.IsPortraitModifierSelected( GeneCategory.Self, RulerDesignerPortraitModifier.Self )]" - } - } - } - - type vbox_color_picker = vbox - { - margin = { 10 10 } - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - background = { - using = Background_Frame - alpha = 0.7 - margin = { -5 -5 } - } - - button_normal = { - size = { 256 256 } - onclick = "[ColorGenePicker.OnClick( PdxGuiWidget.Self )]" - texture = "[ColorGenePicker.GetTexture]" - effectname = "NoHighlight" - - icon = { - name = "current" - size = { 15 15 } - texture = "gfx/interface/icons/color_picker.dds" - position = "[Subtract_CVector2f( ColorGenePicker.GetPosition, '(CVector2f)8,8' )]" - } - } - - text_multi = { - text = "[ColorGenePicker.GetPositionInfo]" - default_format = "#D" - autoresize = yes - max_width = 250 - visible = "[InDebugMode]" - } - } - - type vbox_trait_selection_content = vbox - { - datacontext = "[GetNullCharacter]" - spacing = 3 - - item = { - button_standard_hover = { - name = "trait_item" - visible = "[And( Trait.ShowInRulerDesigner, Not( RulerDesignerWindow.HasTrait( Trait.Self ) ) )]" - enabled = "[RulerDesignerWindow.CanPickTrait( Trait.Self )]" - layoutpolicy_horizontal = expanding - size = { 0 50 } - onclick = "[RulerDesignerWindow.FinishTraitEditing( Trait.Self )]" - onclick = "[VariableSystem.ClearIf( 'trait_select_window_open', VariableSystem.Exists( 'trait_select_window_replace' ) )]" - onclick = "[VariableSystem.Clear( 'trait_select_window_replace' )]" - tooltip = "[RulerDesignerWindow.CanPickTraitDesc( Trait.Self )]" - - hbox = { - margin = { 5 0 } - margin_right = 10 - spacing = 10 - - icon_trait = { - blockoverride "faith_context" - { - datacontext = "[RulerDesignerWindow.GetFaith]" - } - blockoverride "tooltip_placement" - { - using = tooltip_ws - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Trait.GetNameNoTooltip( Character.Self )]" - default_format = "#clickable" - } - - text_single = { - name = "point_cost" - text = "[Trait.GetRulerDesignerCost|=]" - align = nobaseline - } - } - } - } - } - - type button_trait_slot_entry = button_trait - { - datacontext = "[TraitSlot.GetTrait]" - - blockoverride "faith_context" - { - datacontext = "[RulerDesignerWindow.GetFaith]" - } - - block "button_trait_onclick" - { - } - - state = { - name = "_mouse_enter" - on_start = "[PdxGuiWidget.FindChild('remove_icon').TriggerAnimation('show')]" - } - - state = { - name = "_mouse_leave" - on_start = "[PdxGuiWidget.FindChild('remove_icon').TriggerAnimation('hide')]" - } - - button_close = { - name = "remove_icon" - parentanchor = center - alwaystransparent = yes - alpha = 0 - - state = { - name = "show" - using = Animation_FadeIn_Quick - duration = 0.05 - } - - state = { - name = "hide" - alpha = 0 - using = Animation_FadeOut_Quick - } - - background = { - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.18 0.18 0.18 0.8 } - margin = {20 20} - } - } - - onclick = "[TraitSlotArray.RemoveTrait( TraitSlot.Self )]" - button_ignore = none - } - - type hbox_trait_slot = hbox - { - hbox = { - margin_bottom = 4 - - text_label_left = { - min_width = 125 - block "trait_slots_header_text" - { - raw_text = "FILL ME IN" - default_format = "#D" - } - } - } - - hbox = { - block "trait_list" - { - hbox = { - name = "current_traits_less_than_equal_6" - layoutpolicy_horizontal = expanding - - size = { 300 50 } - - datamodel = "[TraitSlotArray.AccessSlots]" - visible = "[And( DataModelHasItems( TraitSlotArray.AccessSlots ), LessThanOrEqualTo_int32( GetDataModelSize( TraitSlotArray.AccessSlots ), '(int32)6' ) )]" - - item = { - container = { - button_trait_slot_entry = {} - } - } - } - overlappingitembox = { - name = "current_traits_more_than_6" - layoutpolicy_horizontal = expanding - - size = { 300 50 } - - datamodel = "[TraitSlotArray.AccessSlots]" - visible = "[And( DataModelHasItems( TraitSlotArray.AccessSlots ), GreaterThan_int32( GetDataModelSize( TraitSlotArray.AccessSlots ), '(int32)6' ) )]" - - item = { - container = { - button_trait_slot_entry = {} - } - } - } - } - - block "plus_button" - { - widget = { - size = { 50 50 } - name = "add_trait_slot" - - button_plus = { - name = "add_trait_button" - parentanchor = center - - tooltip = "RULER_DESIGNER_ADD_TRAIT_SLOT_TOOLTIP" - - onclick = "[TraitSlotArray.StartEditing]" - - block "plus_onclick" - { - onclick = "[VariableSystem.Set( 'trait_select_window_open', 'true' )]" - } - } - } - } - } - - expand = {} - } - - type vbox_dynasty_edit_fields = vbox - { - minimumsize = { 350 -1 } - spacing = 8 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CUSTOMIZATION_NAMING_HEADER" - using = Font_Size_Medium - } - } - - blockoverride "header_label" - { - text = "CUSTOMIZATION_NAMING_HEADER" - } - - editbox_standard_with_label = { - name = "name_field" - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "HOUSE_NAME_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[RulerDesignerWindow.GetDynastyName]" - ontextedited = "[RulerDesignerWindow.OnEditDynastyName]" - maxcharacters = 40 - } - - blockoverride "editbox_right_side" - { - spacing = 5 - - button_randomize = { - onclick = "[RulerDesignerWindow.RandomizeDynastyName]" - tooltip = RULER_DESIGNER_RANDOMIZE_DYNASTY_NAME - using = tooltip_se - } - } - } - - editbox_standard_with_label = { - name = "motto_field" - layoutpolicy_horizontal = expanding - minimumsize = { -1 140 } - - blockoverride "editbox_label" - { - text = "HOUSE_MOTTO_FIELD" - } - - blockoverride "editbox_properties" - { - ontextedited = "[RulerDesignerWindow.OnEditHouseMotto]" - using = house_motto_editbox_length - } - - tooltip = RULER_DESIGNER_HOUSE_MOTTO_TT - tooltip_visible = "[Not( RulerDesignerWindow.HasHouseMotto )]" - } - } - - expand = {} - } - - type vbox_title_edit_fields = vbox - { - minimumsize = { 300 -1 } - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 8 - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CUSTOMIZATION_NAMING_HEADER" - using = Font_Size_Medium - } - } - - blockoverride "header_label" - { - text = "CUSTOMIZATION_NAMING_HEADER" - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "TITLE_NAME_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[RulerDesignerWindow.GetTitleName]" - ontextedited = "[RulerDesignerWindow.OnEditTitleName]" - } - } - - button_checkbox_label = { - name = "definite_form" - layoutpolicy_horizontal = expanding - - tooltip = "TITLE_CUSTOMIZATION_DEFINITE_FORM_TOOLTIP" - onclick = "[RulerDesignerWindow.ToggleTitleUsesDefiniteForm]" - - blockoverride "text" - { - text = "TITLE_CUSTOMIZATION_DEFINITE_FORM" - } - blockoverride "checkbox" - { - checked = "[RulerDesignerWindow.TitleUsesDefiniteForm]" - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "TITLE_ADJECTIVE_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[RulerDesignerWindow.GetTitleAdjective]" - ontextedited = "[RulerDesignerWindow.OnEditTitleAdjective]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - spacing = 10 - margin = { 10 5 } - margin_bottom = 8 - - text_single = { - layoutpolicy_horizontal = expanding - text = "MAP_COLOR_HEADER" - } - - colorpicker_simple = { - layoutpolicy_horizontal = expanding - color = "[RulerDesignerWindow.GetTitleMapColor]" - oncoloredited = "[RulerDesignerWindow.SetTitleMapColor]" - } - } - - expand = {} - } -} - -template Button_Close_Select_Faith -{ - onclick = "[VariableSystem.Clear( 'faith_select_window_open' )]" -} - -template Button_Select_Faith -{ - onclick = "[RulerDesignerWindow.SetFaith( Faith.Self )]" - using = Button_Close_Select_Faith -} - -template Button_Close_Select_Culture -{ - onclick = "[VariableSystem.Clear( 'culture_select_window_open' )]" -} - -template Button_Select_Culture -{ - onclick = "[RulerDesignerWindow.SetCulture( CultureTemplate.Self )]" - using = Button_Close_Select_Culture -} - -template ProgressBar_Achievements -{ - size = { 200 20 } - value = "[CurrentAndMaxToProgressbarValueInt32( RulerDesignerWindow.GetPointsUsed, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" -} diff --git a/N3OW/gui/window_ruler_designer_load.gui b/N3OW/gui/window_ruler_designer_load.gui deleted file mode 100644 index 57609dd8..00000000 --- a/N3OW/gui/window_ruler_designer_load.gui +++ /dev/null @@ -1,755 +0,0 @@ -window = { - name = "load_ruler_window" - size = { 100% 100% } - movable = no - layer = confirmation - filter_mouse = all - - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.6 - } - - button_normal = { - size = { 100% 100% } - onclick = "[RulerDesignerLoadWindow.Cancel]" - } - - widget = { - size = { 520 880 } - position = { -300 0 } - parentanchor = center - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacer = { - size = { 38 860 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacer = { - size = { 444 20 } - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "RULER_DESIGNER_LOAD_WINDOW_TITLE" - } - - blockoverride "button_close" { - visible = no - } - } - - scrollbox = { - layoutpolicy_horizontal = growing - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[RulerDesignerLoadWindow.GetSavedRulers]" - spacing = 3 - - item = { - button_saved_rulers = { - blockoverride "down_state" { - down = "[RulerDesignerLoadWindow.IsSelectedItem(SaveRulerItem.Self)]" - } - size = { 410 120 } - } - } - } - } - } - - spacer = { - size = { 444 15 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard_back = { - shortcut = "close_window" - - onclick = "[RulerDesignerLoadWindow.Cancel]" - } - } - - spacer = { - size = { 414 30 } - } - } - - spacer = { - size = { 38 760 } - } - } - } - - widget ={ - name = "character_info" - size = { 620 820} - position = { 250 0 } - parentanchor = center - alwaystransparent = no - - datacontext = "[RulerDesignerLoadWindow.GetSelectedRuler]" - visible = "[RulerDesignerLoadWindow.IsRulerSelected]" - - background = { - using = Background_Area_Light - using = Mask_Rough_Edges - } - - background = { - name = "background_loadgame" - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - alpha = 0.7 - mirror = horizontal - } - } - - vbox = { - hbox = { - name = "header" - margin = { 20 6 } - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/colors/black.dds" - using = Mask_Rough_Edges - margin_bottom = 40 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - mirror = vertical - blend_mode = alphamultiply - } - } - - background = { - margin = {5 5} - using = Background_Area_Light - using = Mask_Rough_Edges - } - - background = { - using = Background_Area_Dark - using = Mask_Rough_Edges - alpha = 0.20 - margin = {5 5} - - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 1 - } - } - - text_single = { - name = "filename" - text = "[SaveRulerItem.GetFilename]" - elide = right - max_width = 320 - using = Font_Type_Flavor - using = Font_Size_Big - fontsize_min = 20 - align = nobaseline - } - - expand = {} - - hbox = { - spacing = 5 - - text_single = { - text = "[SaveRulerItem.GetUsedPoints]" - visible = "[LessThanOrEqualTo_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - default_format = "#P;bold" - align = nobaseline - } - - text_single = { - text = "[SaveRulerItem.GetUsedPoints]" - visible = "[GreaterThan_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - default_format = "#N;bold" - align = nobaseline - } - - text_single = { - name = "customization_points" - text = "RULER_DESIGNER_SAVE_LOAD_USED_POINTS_LABEL" - align = nobaseline - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - hbox = { - layoutpolicy_horizontal = expanding - margin = {20 10} - background = { - texture = "gfx/interface/illustrations/event_scenes_frontend/temple.dds" - fittype = centercrop - using = Mask_Rough_Edges - margin_right = -10 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.8 - margin_right = -10 - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - widget = { - size = { 250 470} - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - margin_top = 5 - name = "age" - spacing = 5 - layoutpolicy_horizontal = expanding - text_single = { - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_AGE" - align = nobaseline - } - text_single = { - layoutpolicy_horizontal = expanding - text = "[SaveRulerItem.GetAge]" - align = nobaseline - default_format = "#high" - } - - expand = {} - } - - hbox = { - name = "sex" - spacing = 5 - layoutpolicy_horizontal = expanding - - text_single = { - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_SEX" - align = nobaseline - } - - icon = { - size = { 30 30 } - visible = "[Not( SaveRulerItem.IsFemale )]" - texture = "gfx/interface/icons/flat_icons/male.dds" - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - visible = "[SaveRulerItem.IsFemale]" - texture = "gfx/interface/icons/flat_icons/female.dds" - using = Master_Button_Modify_Texture - } - - expand = {} - } - - hbox = { - name = "sexuality" - layoutpolicy_horizontal = expanding - spacing = 5 - margin_bottom= 5 - text_single = { - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_SEXUALITY" - align = nobaseline - } - widget = { - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/randomize.dds" - visible = "[SaveRulerItem.HasSexuality( 'none' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_RANDOM - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/heterosexual.dds" - visible = "[SaveRulerItem.HasSexuality( 'heterosexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HETEROSEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/homosexual_female.dds" - visible = "[And( SaveRulerItem.IsFemale, SaveRulerItem.HasSexuality( 'homosexual' ) )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HOMOSEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/homosexual_female.dds" - visible = "[And( Not( SaveRulerItem.IsFemale ), SaveRulerItem.HasSexuality( 'homosexual' ) )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_HOMOSEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/bisexual_female.dds" - visible = "[And( SaveRulerItem.IsFemale, SaveRulerItem.HasSexuality( 'bisexual' ) )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_BISEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/bisexual_male.dds" - visible = "[And( Not( SaveRulerItem.IsFemale ), SaveRulerItem.HasSexuality( 'bisexual' ) )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_BISEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/asexual.dds" - visible = "[SaveRulerItem.HasSexuality( 'asexual' )]" - tooltip = RULER_DESIGNER_SET_SEXUALITY_ASEXUAL - using = tooltip_se - using = Master_Button_Modify_Texture - } - } - expand = {} - } - - vbox = { - name = "faith" - datacontext = "[SaveRulerItem.GetFaith]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_label_left = { - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_FAITH" - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - - icon = { - name = "item_icon" - size = { 50 50 } - texture = "[Faith.GetIcon]" - using = tooltip_se - } - - vbox = { - margin_left = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_LOAD_FAITH_RELIGION_NAME" - default_format = "#high;bold" - margin_right = 5 - margin_bottom = 5 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_LOAD_GETFAITH" - default_format = "#high" - margin_bottom = 5 - } - } - } - - expand = {} - } - - expand = {} - } - - vbox = { - name = "culture" - datacontext = "[SaveRulerItem.GetCulture]" - layoutpolicy_horizontal = expanding - - text_label_left ={ - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_CULTURE" - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - text_single ={ - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_CULTURE_DESC" - default_format = "#high" - } - - expand = {} - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - spacing = 5 - - text_label_left ={ - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_FAMILY" - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - } - - text_single ={ - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_FAMILY_DESC" - layoutpolicy_horizontal = expanding - default_format = "#high" - } - } - - vbox = { - name = "skills" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 5 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_SKILLS" - using = Font_Size_Medium - } - - fixedgridbox = { - datamodel = "[SaveRulerItem.GetGuiSkills]" - datamodel_wrap = 2 - addrow = 35 - addcolumn = 70 - layoutpolicy_horizontal = expanding - item = { - widget = { - name = "skill_item" - size = { 70 35 } - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - name = "skill_icon" - texture = "gfx/interface/icons/icon_skills.dds" - size = { 32 32 } - framesize = { 60 60 } - frame = "[SaveRulerSkillGui.GetFrame]" - } - - text_single = { - name = "skill_value" - text = "[SaveRulerSkillGui.GetValue]" - - datacontext = "[SaveRulerSkillGui.GetModifiedValueBreakdown]" - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - widget_value_breakdown_tooltip = {} - } - - using = Font_Size_Big - default_format = "#high" - align = nobaseline|center - min_width = 25 - } - } - } - } - } - } - - expand = {} - } - } - - vbox = { - name = "character portrait" - layoutpolicy_vertical = expanding - - portrait_button = { - name = "character" - using = portrait_base - size = { 300 470 } - - portrait_texture = "[SaveRulerItem.GetTexture('environment_body', 'camera_body', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - mask = "gfx/portraits/portrait_mask_body.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - alwaystransparent = yes - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 20 5} - margin_bottom = 20 - name = "traits" - spacing = 5 - - text_label_left= { - text = "RULER_DESIGNER_LOAD_WINDOW_DETAILS_TRAITS" - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[LessThan_int32(GetDataModelSize(SaveRulerItem.GetGuiTraits), '(int32)8')]" - - dynamicgridbox = { - datamodel = "[SaveRulerItem.GetGuiTraits]" - datamodel_wrap = 10 - flipdirection = yes - layoutpolicy_horizontal = expanding - item = { - icon_trait = { - blockoverride "icon_size" - { - size = { 70 70 } - } - datacontext = "[SaveRulerTraitGui.GetTrait]" - datacontext = "[GetNullCharacter]" - blockoverride "faith_context" - { - datacontext = "[SaveRulerItem.GetFaith]" - } - } - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datamodel = "[SaveRulerItem.GetGuiTraits]" - visible = "[GreaterThan_int32(GetDataModelSize(SaveRulerItem.GetGuiTraits), '(int32)7')]" - blockoverride "scrollbox_content" - { - dynamicgridbox = { - datamodel = "[SaveRulerItem.GetGuiTraits]" - datamodel_wrap = 10 - flipdirection = yes - layoutpolicy_horizontal = expanding - item = { - icon_trait = { - - datacontext = "[SaveRulerTraitGui.GetTrait]" - datacontext = "[GetNullCharacter]" - blockoverride "faith_context" - { - datacontext = "[SaveRulerItem.GetFaith]" - } - } - } - } - } - } - - expand = {} - } - } - - expand = {} - - hbox = { - name = "footer" - - layoutpolicy_horizontal = expanding - margin = { 20 12} - spacing = 12 - - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.7 - margin_top = 80 - - modify_texture ={ - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - background = { - margin = {5 5} - using = Background_Area_Light - using = Mask_Rough_Edges - } - - background = { - using = Background_Area_Dark - using = Mask_Rough_Edges - alpha = 0.15 - margin = {5 5} - modify_texture = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - blend_mode = alphamultiply - alpha = 1 - } - } - - button_standard = { - name = "delete_button" - text = "RULER_DESIGNER_LOAD_WINDOW_DELETE_FILE" - - onclick = "[RulerDesignerLoadWindow.Delete]" - - button_icon = { - name = "button_close" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - parentanchor = left|vcenter - position = { 5 0 } - size = { 25 25 } - alwaystransparent = yes - } - } - - dropdown_menu_standard = { - name = "load_options_dropdown" - - blockoverride "dropdown_properties" - { - datamodel = "[RulerDesignerLoadWindow.GetRulerLoadOptions]" - onselectionchanged = "[RulerDesignerLoadWindow.SetRulerLoadOption]" - selectedindex = "[RulerDesignerLoadWindow.CurrentRulerLoadOption]" - } - - blockoverride "dropdown_active_item_properties" - { - text_single = { - align = nobaseline|left - margin_left = 15 - parentanchor = vcenter - - text = "[CString.GetString]" - default_format = "#clickable" - } - } - - blockoverride "dropdown_item_properties" - { - text_single = { - align = nobaseline|left - margin_left = 15 - parentanchor = vcenter - - text = "[CString.GetString]" - default_format = "#clickable" - } - } - } - - button_primary = { - name = "load_button" - - layoutpolicy_horizontal = expanding - - text = "LOAD" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_start_game" - - onclick = "[RulerDesignerLoadWindow.Load]" - } - } - } - } -} diff --git a/N3OW/gui/window_ruler_designer_save.gui b/N3OW/gui/window_ruler_designer_save.gui deleted file mode 100644 index 1b2d325e..00000000 --- a/N3OW/gui/window_ruler_designer_save.gui +++ /dev/null @@ -1,295 +0,0 @@ -window = { - name = "save_ruler_window" - size = { 100% 100% } - movable = no - layer = confirmation - filter_mouse = all - - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.6 - } - - button_normal = { - size = { 100% 100% } - onclick = "[RulerDesignerSaveWindow.Cancel]" - } - - widget = { - size = { 520 880 } - parentanchor = center - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacer = { - size = { 38 860 } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacer = { - size = { 444 20 } - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "RULER_DESIGNER_SAVE_WINDOW_TITLE" - } - - blockoverride "button_close" { - visible = no - } - } - - vbox = { - layoutpolicy_horizontal = expanding - hbox = { - layoutpolicy_horizontal = expanding - - spacer = { - size = { 10 10 } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_label" - { - text = "SAVE_NAME_LABEL" - } - - blockoverride "editbox_properties" { - name = "save_name" - text = "[RulerDesignerSaveWindow.GetDefaultSaveName]" - ontextedited = "[RulerDesignerSaveWindow.UpdateSaveName]" - onreturnpressed = "[RulerDesignerSaveWindow.Save]" - } - } - - spacer = { - size = { 10 10 } - } - } - spacer = { - size = { 10 10 } - } - } - - scrollbox = { - layoutpolicy_horizontal = growing - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[RulerDesignerSaveWindow.GetSavedRulers]" - spacing = 3 - - item = { - - button_saved_rulers = { - size = { 410 120 } - blockoverride "down_state" { - down = "[RulerDesignerSaveWindow.IsSelectedItem(SaveRulerItem.Self)]" - } - } - } - } - } - } - - spacer = { - size = { 414 15 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - name = "cancel_button" - text = "CANCEL" - onclick = "[RulerDesignerSaveWindow.Cancel]" - shortcut = "close_window" - } - - button_primary = { - name = "save_button" - text = "RULER_DESIGNER_SAVE_WINDOW_SAVE" - enabled = "[RulerDesignerSaveWindow.CanSaveInFile]" - onclick = "[RulerDesignerSaveWindow.Save]" - tooltip = "[RulerDesignerSaveWindow.CanSaveInFileTooltip]" - } - } - - spacer = { - size = { 414 30 } - } - } - spacer = { - size = { 38 760 } - } - } - } -} - - -types SaveLoadRulers -{ - type button_saved_rulers = button_standard_hover { - size = { 390 110 } - layoutpolicy_horizontal = expanding - onclick = "[SaveRulerItem.Select]" - down = "[RulerDesignerSaveWindow.IsSelectedItem(SaveRulerItem.Self)]" - block "down_state" {} - - vbox = { - - hbox = { - spacing = 10 - margin = {10 5} - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - portrait_button = { - name = "character" - using = portrait_base - size = { 100 100 } - #position = { 0 50 } - - background = { - texture = "gfx/interface/colors/grey.dds" - margin = { 1 1} - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphaMultiply - } - - } - background = { - texture = "gfx/interface/colors/black.dds" - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = alphaMultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - alpha = 0.1 - blend_mode = alphaMultiply - } - } - - portrait_texture = "[SaveRulerItem.GetTexture('environment_head', 'camera_head', PdxGetWidgetScreenSize(PdxGuiWidget.Self) )]" - mask = "gfx/portraits/portrait_mask_body.dds" - - blockoverride "grayscale" {} - blockoverride "portrait_button_template_onmouseenter" {} - blockoverride "portrait_button_template_onmouseleave" {} - blockoverride "portrait_button_template_onclick" {} - blockoverride "portrait_button_template_onrightclick" {} - blockoverride "portrait_button_template_tooltip" {} - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - alwaystransparent = yes - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - spacing = 5 - layoutpolicy_vertical = expanding - - text_single = { - name = "filename" - text = "[SaveRulerItem.GetFilename]" - elide = right - max_width = 250 - layoutpolicy_horizontal = growing - default_format = "#high;bold" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - text = "[SaveRulerItem.GetUsedPoints]" - visible = "[LessThanOrEqualTo_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - default_format = "#P" - } - - text_single = { - text = "[SaveRulerItem.GetUsedPoints]" - visible = "[GreaterThan_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - default_format = "#N" - } - - text_single = { - text = "SLASH" - } - - text_single = { - text = "[GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) ]" - } - - text_single = { - name = "customisation_points" - text = "RULER_DESIGNER_SAVE_LOAD_USED_POINTS_LABEL" - elide = right - layoutpolicy_horizontal = expanding - } - - expand = {} - } - - progressbar_standard = { - name = "points_bar" - layoutpolicy_horizontal = expanding - using = ProgressBar_Achievements_Save - visible = "[LessThanOrEqualTo_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - - progressbar_red = { - name = "points_bar_over_limit" - layoutpolicy_horizontal = expanding - using = ProgressBar_Achievements_Save - visible = "[GreaterThan_int32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" - } - - expand = {} - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - } -} - -template ProgressBar_Achievements_Save -{ - size = { 250 20 } - value = "[CurrentAndMaxToProgressbarValueInt32( SaveRulerItem.GetUsedPoints, GetDefine( 'NRulerDesigner', 'IRONMAN_POINT_MAX' ) )]" -} \ No newline at end of file diff --git a/N3OW/gui/window_save_game.gui b/N3OW/gui/window_save_game.gui deleted file mode 100644 index 1cdf81c5..00000000 --- a/N3OW/gui/window_save_game.gui +++ /dev/null @@ -1,167 +0,0 @@ -window = { - name = "save_game_window" - size = { 100% 100% } - movable = no - layer = confirmation - - using = Animation_ShowHide_Quick - using = Background_Full_Dim - - button_normal = { - size = { 100% 100% } - onclick = "[SaveGameWindow.Cancel]" - } - - widget = { - size = { 490 760 } - parentanchor = center - alwaystransparent = no - - using = Window_Background - using = Window_Decoration_Frontend_Spike - - vbox = { - using = Window_Margins - spacing = 5 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SAVE_GAME" - } - - blockoverride "button_close" { - onclick = "[SaveGameWindow.Cancel]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - spacing = 2 - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - blockoverride "editbox_label" - { - text = "SAVE_NAME_LABEL" - } - blockoverride "editbox_properties" { - name = "save_name" - text = "[SaveGameWindow.GetDefaultSaveName]" - focus_on_visible = yes - ontextedited = "[SaveGameWindow.UpdateSaveName]" - onreturnpressed = "[SaveGameWindow.Save]" - } - } - - text_single = { - text = "FILE_NAME_INVALID" - alwaystransparent = yes - visible = "[Not(SaveGameWindow.IsSaveNameOk)]" - } - - - hbox = { - name = "cloud_save_area" - layoutpolicy_horizontal = expanding - - spacing = 4 - - cloud_save_checkbutton = { - datacontext = "[SaveGameWindow.AccessCloudData]" - } - - text_single = { - text = "SAVE_TO_CLOUD_LABEL" - } - - icon_cloud_save = { - name = "cloud_save_icon" - size = { 40 40 } - } - - expand = {} - } - } - - scrollbox = { - layoutpolicy_horizontal = growing - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[SaveGameWindow.GetSaveGames]" - spacing = 3 - - item = { - button_saved_games = { - size = { 390 90 } - visible = "[Or( SaveGameItem.IsValid, SaveGameWindow.IsShowInvalid )]" - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 5 } - spacing = 10 - - hbox = { - spacing = 2 - - button_checkbox_label = { - onclick = "[SaveGameWindow.ToggleShowInvalid]" - - blockoverride "checkbox" - { - checked = "[SaveGameWindow.IsShowInvalid]" - } - - blockoverride "text" - { - text = "SAVE_WINDOW_SHOW_INVALID" - } - } - } - - hbox = { - spacing = 5 - margin = { 0 5 } - - button_standard = { - name = "cancel_button" - text = "CANCEL" - onclick = "[SaveGameWindow.Cancel]" - onclick = "[PdxGuiTriggerAllAnimations('bookmarks_reset')]" - enabled = "[Not(SaveGameWindow.IsSaving)]" - shortcut = "close_window" - } - - button_primary = { - name = "save_button" - text = "SAVE_WINDOW_SAVE" - onclick = "[SaveGameWindow.Save]" - enabled = "[And(SaveGameWindow.IsSaveNameOk, Not(SaveGameWindow.IsSaving))]" - } - } - } - } - } - - container_saving_indicator = { - parentanchor = center - visible = "[SaveGameWindow.IsSaving]" - - blockoverride "csi_text" - { - text = "SAVE_IN_PROGRESS" - } - } -} diff --git a/N3OW/gui/window_select_men_at_arms_origin.gui b/N3OW/gui/window_select_men_at_arms_origin.gui deleted file mode 100644 index 4277cee6..00000000 --- a/N3OW/gui/window_select_men_at_arms_origin.gui +++ /dev/null @@ -1,47 +0,0 @@ -widget = { - name = "select_men_at_arms_origin_window" - widgetid = "select_men_at_arms_origin_window" - size = { 100% 100% } - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - - position = { 0 100 } - - text_label_center = { - text = "SELECT_MEN_AT_ARMS_LOCATION" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_CHOOSE_LOCATION" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_MAP_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - - button_primary_big = { - name = "close_assignment_window" - text = "BACK_LABEL" - - parentanchor = bottom|hcenter - position = { 0 -50} - - onclick = "[SelectMenAtArmsOriginView.Close]" - shortcut = "close_window" - } -} diff --git a/N3OW/gui/window_select_raise_troops_at_location.gui b/N3OW/gui/window_select_raise_troops_at_location.gui deleted file mode 100644 index 8688fb2d..00000000 --- a/N3OW/gui/window_select_raise_troops_at_location.gui +++ /dev/null @@ -1,47 +0,0 @@ -widget = { - name = "window_select_raise_troops_at_location" - widgetid = "window_select_raise_troops_at_location" - size = { 100% 100% } - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - - position = { 0 100 } - - text_label_center = { - text = "SELECT_RAISE_TROOPS_AT_LOCATION" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "SELECT_RAISE_TROOPS_CHOOSE_LOCATION" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "SELECT_RAISE_TROOPS_MAP_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - - button_primary_big = { - name = "close_assignment_window" - text = "BACK_LABEL" - - parentanchor = bottom|hcenter - position = { 0 -50} - - onclick = "[SelectRaiseTroopsAtLocationView.Close]" - shortcut = "close_window" - } -} diff --git a/N3OW/gui/window_select_title_troop_assignment.gui b/N3OW/gui/window_select_title_troop_assignment.gui deleted file mode 100644 index 11cfd64b..00000000 --- a/N3OW/gui/window_select_title_troop_assignment.gui +++ /dev/null @@ -1,47 +0,0 @@ -widget = { - name = "select_title_troop_assignment_window" - widgetid = "select_title_troop_assignment_window" - size = { 100% 100% } - - flowcontainer = { - parentanchor = top|hcenter - direction = vertical - - position = { 0 100 } - - text_label_center = { - text = "HIRED_TROOPS_VIEW_ASSIGN_HEADER" - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_CHOOSE_LOCATION" - default_format = "#high" - using = Font_Size_Medium - parentanchor = hcenter - align = nobaseline - margin = { 10 4 } - } - - text_label_center = { - text = "RALLY_POINT_MAP_INSTRUCTION" - parentanchor = hcenter - align = nobaseline|hcenter - margin = { 50 4 } - } - } - - - button_primary_big = { - name = "close_assignment_window" - text = "BACK_LABEL" - - parentanchor = bottom|hcenter - position = { 0 -50} - - onclick = "[SelectTitleTroopAssignmentView.Close]" - shortcut = "close_window" - } -} diff --git a/N3OW/gui/window_siege.gui b/N3OW/gui/window_siege.gui deleted file mode 100644 index 5126ee0a..00000000 --- a/N3OW/gui/window_siege.gui +++ /dev/null @@ -1,3768 +0,0 @@ -### SIEGE WINDOW -window = { - name = "siege_window" - size = { 625 610 } - parentanchor = bottom|left - movable = no - layer = middle - datacontext = "[SiegeWindow.GetSiege]" - datacontext = "[Siege.GetProvince]" - - state = { - name = "monthly_tick" # to prevent an error about there being no such animation - alpha = 1 # to prevent an error about there being no properties in the animation - } - - state = { - name = _show - on_start = "[PdxGuiTriggerAllAnimations('siege_window_refresh')]" - } - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'siege_view_open', 'true' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - on_start = "[GetVariableSystem.Clear( 'siege_view_open' )]" - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Sound_Kill_Siege_SFX - using = Animation_FadeOut_BottomLeft - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { -23 -17 } - margin_left = 20 - margin_bottom = 20 - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - vbox = { - name = "window_content" - margin_right = 35 - margin_top = 30 - set_parent_size_to_minimum = yes - - ### Header ### - hbox = { - min_width = 550 - layoutpolicy_horizontal = expanding - margin_right = 15 - margin_left = 5 - margin_top = 5 - margin_bottom = 5 - - background = { - using = Background_Area_Dark - margin_left = 5 - } - - background = { - visible = "[Not(SiegeWindow.GetSiege.IsPlayerInAttackerSide)]" - texture = "gfx/interface/component_masks/mask_header_lines.dds" - using = Color_Red - alpha = 0.25 - spriteType = corneredtiled - spriteborder_left = 340 - texture_density = 2 - margin = { 0 -3 } - using = Mask_Rough_Edges - } - - background = { - visible = "[SiegeWindow.GetSiege.IsPlayerInAttackerSide]" - texture = "gfx/interface/component_masks/mask_header_lines.dds" - using = Color_Green - alpha = 0.25 - spriteType = corneredtiled - spriteborder_left = 340 - texture_density = 2 - margin = { 0 -3 } - using = Mask_Rough_Edges - } - - highlight_icon = { - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/icon_siege.dds" - tooltip = "[Siege.GetSiegeDescription]" - } - - text_single = { - name = "title" - text = "[SiegeWindow.GetSiege.GetName]" - margin_left = 5 - margin_bottom = 4 - using = Font_Size_Big - font = TitleFont - default_format = "#high;glow_color:{0,0,0,1}" - } - - expand = {} - - hbox = { - icon = { # Mild Winter - name = "winter_level_icon_mild" - datacontext = "[SiegeWindow.GetSiege.GetProvince]" - visible = "[Province.HasWinterLevel( '(int32)1' )]" - texture = "gfx/interface/icons/terrain_types/winter_mild.dds" - size = { 35 35 } - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - - icon = { # Normal Winter - name = "winter_level_icon_normal" - datacontext = "[SiegeWindow.GetSiege.GetProvince]" - visible = "[Province.HasWinterLevel( '(int32)2' )]" - texture = "gfx/interface/icons/terrain_types/winter_normal.dds" - size = { 35 35 } - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - - icon = { # Harsh Winter - name = "winter_level_icon_harsh" - datacontext = "[SiegeWindow.GetSiege.GetProvince]" - visible = "[Province.HasWinterLevel( '(int32)3' )]" - texture = "gfx/interface/icons/terrain_types/winter_harsh.dds" - size = { 35 35 } - tooltip = "PROVINCE_VIEW_TOOLTIP_WINTER" - } - - spacing = 3 - - icon = { - datacontext = "[SiegeWindow.GetSiege.GetProvince.GetTerrain]" - texture = "[Terrain.GetIcon]" - tooltip = "HOLDING_TERRAIN_TOOLTIP" - size = { 35 35 } - } - } - - button_group = { - onclick = "[SiegeWindow.OpenArmyWindow]" - visible = "[SiegeWindow.HasPlayerOwnedArmies]" - tooltip = "SW_TT_OPEN_ARMY_WINDOW" - using = tooltip_ne - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_army_icon.dds" - } - } - - button_group = { - onclick = "[SiegeWindow.OpenHoldingView]" - tooltip = "SW_TT_SHOW_HOLDING" - shortcut = county_go_to_siege - using = tooltip_ne - - highlight_icon = { - parentanchor = vcenter - widgetanchor = vcenter - size = { 40 40 } - name = "blocked_icon" - texture = "gfx/interface/icons/map_icons/onmap_holding_icon.dds" - } - } - - spacer = { - size = { 10 10 } - } - - buttons_window_control = { - blockoverride "button_go_to" - { - onclick = "[DefaultOnCoatOfArmsRightClick( SiegeWindow.GetSiege.GetProvince.GetCounty.GetTitle.GetID)]" - tooltip = "GOTO_PROVINCE_TT" - using = tooltip_ne - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select" - } - - blockoverride "button_close" - { - onclick = "[SiegeWindow.Close]" - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 270 } - - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - proportional_icon = { - size = { 100% 100% } - texture = "[SiegeWindow.GetSiege.GetProvince.GetIllustration]" - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_holding_illustration.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "orange" - texture = "gfx/interface/colors/orange.dds" - blend_mode = colordodge - alpha = "[Multiply_float(Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.01'), Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.005'))]" - } - } - - proportional_icon = { - visible = "[Not(SiegeWindow.GetSiege.IsBlocked)]" - size = { 100% 100% } - texture = "gfx/interface/window_siege/base_holding_fire.dds" - - using = Mask_Rough_Edges - - modify_texture = { - name = "orange" - texture = "gfx/interface/colors/orange.dds" - blend_mode = colordodge - alpha = "[Multiply_float(Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.005'), Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.005'))]" - } - - modify_texture = { - name = "fire" - framesize = { 200 120 } - texture = "gfx/interface/component_effects/fire_03.dds" - blend_mode = colordodge - } - - using = Animation_ShowHide_Standard - using = Animation_Frames_100_Modify - - state = { - name = "siege_progress_0" - duration = 0.3 - alpha = 0 - } - - state = { - name = "siege_progress_50" - duration = 1 - alpha = 0.2 - start_sound = { - soundeffect = "event:/SFX/UI/Siege/sfx_ui_siege_vfx_fire_01" - } - } - - state = { - name = "siege_progress_70" - duration = 1 - alpha = 0.35 - start_sound = { - soundeffect = "event:/SFX/UI/Siege/sfx_ui_siege_vfx_fire_02" - } - } - - state = { - name = "siege_progress_85" - duration = 1 - alpha = 0.6 - start_sound = { - soundeffect = "event:/SFX/UI/Siege/sfx_ui_siege_vfx_fire_03" - } - } - } - - widget = { - size = { 100% 100% } - datacontext = "[SiegeWindow.GetSiege]" - visible = "[SiegeWindow.GetSiege.IsBlocked]" - using = Animation_ShowHide_Standard - - icon = { - name = "pause" - alpha = 0.2 - size = { 100% 100% } - texture = "gfx/interface/hud/speed_indicator_auto_pause.dds" - - using = Mask_Rough_Edges - } - - text_label_center = { - parentanchor = center - tooltip = "[Siege.GetBlockedReason]" - text = "[Siege.GetBlockedReasonShort]" - } - } - - vbox = { - margin_top = 5 - - hbox = { - name = "progressbar_area" - datacontext = "[SiegeWindow.GetSiege.GetSiegingRealmCharacter]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - margin_bottom = 5 - - coa_realm_medium = { - name = "occupant_realm" - visible = "[SiegeWindow.GetSiege.HasSiegingRealm]" - tooltip = "SW_TT_SIEGING_REALM_TOOLTIP" - using = tooltip_ws - - using = Animation_ShowHide_Standard - } - } - - vbox = { - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - - tooltip = "[SiegeWindow.GetSiegeProgressTooltip]" - using = tooltip_above - - widget = { - size = { 370 45 } - - widget = { - size = { 100% 100% } - scissor = yes - - margin_widget = { - size = { 100% 100% } - margin = { 0 5 } - - background = { - texture = "gfx/interface/progressbars/war_progress_noprogress.dds" - margin = { 0 -3 } - } - - widget = { - visible = "[GreaterThan_float(SiegeWindow.GetSiege.GetProgress, '(float)60')]" - size = { 100% 100% } - using = Animation_ShowHide_Standard - - widget = { - size = { 100% 100% } - alpha = 0.5 - - state = { - name = a - next = b - trigger_on_create = yes - duration = 1 - alpha = 0.3 - } - - state = { - name = b - next = a - duration = 1 - alpha = 0.1 - } - - icon = { - visible = "[Not(SiegeWindow.GetSiege.IsPlayerInAttackerSide)]" - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - using = Color_Red - alpha = "[Multiply_float(Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.01'), Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.01'))]" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 2 - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = a - duration = 2 - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - } - - icon = { - visible = "[SiegeWindow.GetSiege.IsPlayerInAttackerSide]" - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - using = Color_Green - alpha = "[Multiply_float(Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.01'), Multiply_float( IntToFloat(GetProgressBarValueMax( SiegeWindow.GetSiege.GetProgress, '(float)100' )), '(float)0.01'))]" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 2 - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = a - duration = 2 - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - } - } - } - } - - hbox = { - margin = { 0 3 } - - widget_progressbar_siege = { - visible = "[Not(SiegeWindow.GetSiege.IsPlayerInAttackerSide)]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( SiegeWindow.GetSiege.GetProgress, '(float)100', '(int32)370' )]" - - blockoverride "progressbar_texture" - { - texture = "gfx/interface/progressbars/war_progress_red.dds" - } - - blockoverride "arrows_color" - { - texture = "gfx/interface/hud/speed_indicator_pause.dds" - } - } - - widget_progressbar_siege = { - visible = "[SiegeWindow.GetSiege.IsPlayerInAttackerSide]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( SiegeWindow.GetSiege.GetProgress, '(float)100', '(int32)370' )]" - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( SiegeWindow.GetSiege.GetProgress, '(float)100', '(int32)370' )]" - } - } - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/siege_frame.dds" - spriteType = Corneredstretched - spriteborder = { 30 40 } - margin = { 5 0 } - margin_bottom = 10 - texture_density = 2 - } - } - } - } - - spacer = { - size = { 10 10 } - } - - text_label_center = { - name = "time_left" - visible = "[Not(SiegeWindow.GetSiege.IsBlocked)]" - text = "[SiegeWindow.GetTimeLeftShort]" - tooltip = "SW_TIME_LEFT_TT" - - using = Animation_ShowHide_Standard - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - margin_bottom = 5 - - coa_realm_medium = { - name = "defending_realm" - datacontext = "[SiegeWindow.GetSiege.GetProvince.GetController]" - tooltip = "SW_TT_DEFENDING_REALM_TOOLTIP" - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 7 0 } - spacing = 10 - using = Animation_ShowHide_Standard - - expand = {} - - icon = { - name = "holding_level_high" - visible = "[SiegeWindow.GetSiege.FortLevelHasImpact]" - texture = "gfx/interface/window_siege/fort_icon.dds" - size = { 30 25 } - tooltip = "[SiegeWindow.GetFortLevelImpactTooltip]" - - container = { - parentanchor = bottom|right - position = { 8 2 } - - icon = { - name = "fort_level_bad" - visible = "[SiegeWindow.GetSiege.IsPlayerInAttackerSide]" - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - icon = { - name = "fort_level_good" - visible = "[Not(SiegeWindow.GetSiege.IsPlayerInAttackerSide)]" - size = { 20 20 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - } - } - - hbox = { - name = "tutorial_highlight_holding_view_loot_box" - datacontext = "[SiegeWindow.GetSiege]" - tooltip = "[Province.GetLootTooltip]" - margin = { 15 5 } - spacing = 3 - - background = { - using = Background_Area_Dark - } - - text_single = { - text = "HOLDING_LOOT" - default_format = "#high" - align = nobaseline - } - - text_single = { - text = "PROVINCE_LOOT_VALUE" - default_format = "#high" - align = nobaseline - } - } - } - - hbox = { - datacontext = "[SiegeWindow.GetSiege]" - datacontext = "[SiegeWindow.GetAttackerUnitItem]" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - tooltip = "[SiegeWindow.GetNumberOfTroopsTooltip]" - using = tooltip_above - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - margin_bottom = 8 - margin_right = 25 - spacing = 5 - - expand = {} - - hbox = { - visible = "[Not(SiegeWindow.GetSiege.IsBlocked)]" - - using = Animation_ShowHide_Standard - - container_allied_unit_icon_item = { - blockoverride "unit_items" {} - blockoverride "multi_select" {} - blockoverride "onclick" {} - blockoverride "siege_window" {} - } - - container_hostile_unit_icon_item = { - blockoverride "unit_items" {} - blockoverride "multi_select" {} - blockoverride "siege_window" {} - } - } - } - - icon = { - size = { 220 20 } - - - hbox = { - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMax( Siege.GetSiegeMenBalance, '(float)100' )]" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/progress_standard.dds" - spriteType = Corneredtiled - spriteborder = { 6 6 } - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "colordodge" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0.1 - } - - state = { - name = "monthly_tick_attacker_most_casualties" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = b - duration = 0.3 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOther( Siege.GetSiegeMenBalance, '(float)100' )]" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/progress_red.dds" - spriteType = Corneredtiled - spriteborder = { 6 6 } - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "colordodge" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0.1 - } - - state = { - name = "monthly_tick_defender_most_casualties" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = b - duration = 0.3 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - } - } - } - - progress_threshold = { - parentanchor = center - size = { 5 20 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - margin = { 10 0 } - - hbox = { - - hbox = { - spacing = 5 - tooltip = "[Province.GetFortLevelTooltip]" - - icon = { - name = "icon_fort" - texture = "gfx/interface/window_siege/fort_icon.dds" - size = { 30 25 } - } - - text_single = { - text = "[SiegeWindow.GetSiege.GetProvince.GetFortLevel]" - default_format = "#high" - align = nobaseline - min_width = 20 - } - } - - hbox = { - spacing = 3 - - icon = { - texture = "gfx/interface/icons/icon_garrison.dds" - size = { 40 40 } - } - - text_single = { - name = "defender_side" - text = "[Siege.GetDefenderMen]" - default_format = "#high" - align = nobaseline - min_width = 35 - } - } - } - - expand = {} - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - #################################### - ########### HOLDING INFO ########### - #################################### - - widget = { - name = "holding_info" - layoutpolicy_horizontal = expanding - size = { 0 240 } - - vbox = { - margin = { 10 10 } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - # Daily Progress - widget = { - layoutpolicy_horizontal = expanding - size = { 0 110 } - tooltip = "[SiegeWindow.GetDailyProgressTooltip]" - - background = { - using = Background_Area - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - using = Color_Blue_Transparent - using = Mask_Rough_Edges - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - - state = { - name = "siege_daily_progress_flash" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - duration = 0.8 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - } - - vbox = { - margin = { 10 10 } - - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 3 - - icon = { - size = { 52 52 } - texture = "gfx/interface/icons/regimenttypes/unit_stat_siege_progress.dds" - } - - text_multi = { - align = nobaseline - autoresize = yes - max_width = 110 - text = SW_DAILY_SIEGE_PROGRESS - } - - expand = {} - } - - text_single = { - text = "SW_DAILY_PROGRESS" - using = Font_Size_Big - } - - expand = {} - } - } - - # Siege Machines - widget = { - layoutpolicy_horizontal = expanding - size = { 0 110 } - - background = { - using = Background_Area - } - - widget = { - name = "siege_machine_box" - datacontext = "[SiegeWindow.GetStrongestSiegeRegiment]" - datacontext = "[Regiment.GetMAAType]" - datacontext = "[GetPlayer]" - visible = "[DataModelHasItems(SiegeWindow.GetSiegeMachinesRegiments)]" - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - tooltipwidget = { - overlappingitembox = { - name = "siege_machines_box" - alwaystransparent = no - size = { 180 40 } - using = DefaultTooltipBackground - - vbox = { - layoutpolicy_horizontal = expanding - set_parent_size_to_minimum = yes - margin = { 10 5 } - spacing = 10 - - text_label_left = { - layoutpolicy_horizontal = expanding - name = "header" - raw_text = "[siege_weapons|E]:" - maximumsize = { 400 -1 } - } - - dynamicgridbox = { - datamodel = "[SiegeWindow.GetSiegeMachinesRegiments]" - layoutpolicy_horizontal = expanding - flipdirection = yes - - item = { - widget = { - datacontext = "[Regiment.GetMAAType]" - datacontext = "[GetPlayer]" - size = { 40 40 } - - icon = { - name = "machine_icon" - - block "overlay_size" - { - size = { 40 40 } - } - - alwaystransparent = yes - texture = "[MenAtArmsType.GetIcon]" - } - - tooltipwidget = { - widget_maa_type_container_tooltip = {} - } - - using = tooltip_nw - } - } - - expand = {} - } - } - } - } - - background = { - texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]" - using = Mask_Rough_Edges - } - - vbox = { - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SW_SIEGE_WEAPON" - align = nobaseline - } - - text_single = { - margin = { 5 0 } - text = "[SiegeWindow.GetSiegeMachinesCount]" - default_format = "#high" - using = Font_Size_Medium - align = nobaseline - } - } - } - - using = tooltip_nw - } - - widget = { - visible = "[Not(DataModelHasItems(SiegeWindow.GetSiegeMachinesRegiments))]" - size = { 100% 100% } - - using = Animation_ShowHide_Standard - - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - text_single = { - text = "SW_SIEGE_WEAPON_NON" - parentanchor = center - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - size = { 0 160 } - tooltip = "[SiegeWindow.GetSiegePhaseTooltip]" - - background = { - using = Background_Area - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/colors/white.dds" - using = Color_Blue_Transparent - alpha = 0 - - using = Mask_Rough_Edges - - modify_texture = { - name = "flash" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - - state = { - name = "siege_event_flash" - next = b - trigger_on_create = yes - using = Animation_Curve_Default - duration = 0.3 - alpha = 1 - - modify_texture = { - name = "flash" - alpha = 0 - } - } - - state = { - name = b - duration = 1 - using = Animation_Curve_Default - alpha = 0 - - - modify_texture = { - name = "flash" - alpha = 1 - } - } - } - - hbox = { - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - margin_bottom = 5 - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin = { 10 0 } - - widget = { - size = { 40 40 } - - icon = { - name = "progress_frame" - size = { 100% 100% } - texture = "gfx/interface/progressbars/progress_circle_frame.dds" - alpha = 0.5 - } - - progresspie = { - name = "progress" - size = { 100% 100% } - texture = "gfx/interface/progressbars/progress_circle.dds" - framesize = { 248 248 } - frame = "[SiegeWindow.GetPhaseTimerFrame]" - value = "[Siege.GetPhaseProgress]" - min = 0 - max = 1 - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "SIEGE_EVENT" - max_width = 105 - multiline = yes - align = left|vcenter - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SiegeWindow.GetSiegePhaseLength]" - default_format = "#high;glow_color:{0,0,0,1}" - using = Font_Size_Big - align = left|nobaseline - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 10 0 } - - divider_light = { - layoutpolicy_horizontal = expanding - alpha = 0.5 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - - text_multi = { - datacontext = "[SiegeWindow.GetSiege]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - autoresize = yes - max_width = 165 - text = "[SiegeWindow.GetActionHistoryTooltip('0')]" - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = "siege_event_flash" - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - duration = 1 - using = Animation_Curve_Default - - alpha = 1 - } - - background = { - name = "latest_action" - visible = "[SiegeWindow.HasActionHistory('0')]" - frame = "[SiegeWindow.GetActionHistoryFrame('0')]" - texture = "gfx/interface/illustrations/siege/siege_actions.dds" - framesize = { 360 200 } - fittype = centercrop - margin = { -5 0 } - using = Mask_Rough_Edges - } - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 1 - - state = { - name = "siege_window_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 110 } - tooltip = "[SiegeWindow.GetStarvationStateTooltip]" - using = tooltip_ne - - state = { - name = "siege_starvation_flash" - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - duration = 1 - using = Animation_Curve_Default - - alpha = 1 - } - - proportional_icon = { - size = { 100% 100% } - frame = "[SiegeWindow.GetStarvationStateFrame]" - texture = "gfx/interface/illustrations/siege/starvation_state.dds" - framesize = { 340 420 } - using = Mask_Rough_Edges - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "colordodge" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0.2 - } - - state = { - name = "siege_starvation_flash" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = b - duration = 0.8 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 110 } - tooltip = "[SiegeWindow.GetDiseaseStateTooltip]" - using = tooltip_ne - - state = { - name = "siege_disease_flash" - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - duration = 1 - using = Animation_Curve_Default - - alpha = 1 - } - - proportional_icon = { - size = { 100% 100% } - frame = "[SiegeWindow.GetDiseaseStateFrame]" - texture = "gfx/interface/illustrations/siege/disease_state.dds" - framesize = { 340 420 } - using = Mask_Rough_Edges - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "colordodge" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0.2 - } - - state = { - name = "siege_disease_flash" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = b - duration = 0.8 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - size = { 0 110 } - - widget = { - #Only show tooltip on the top part, so it does not interfere with Assault Button tooltip - size = { 100% 60 } - tooltip = "[SiegeWindow.GetBreachStateTooltip]" - } - - - state = { - name = "siege_breach_flash" - next = b - trigger_on_create = yes - - alpha = 0 - } - - state = { - name = b - duration = 1 - using = Animation_Curve_Default - - alpha = 1 - } - - proportional_icon = { - size = { 100% 100% } - frame = "[SiegeWindow.GetBreachStateFrame]" - texture = "gfx/interface/illustrations/siege/breach_state.dds" - framesize = { 700 440 } - using = Mask_Rough_Edges - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0 - } - - modify_texture = { - name = "horizontal_wipe" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "colordodge" - texture = "gfx/interface/colors/white.dds" - blend_mode = colordodge - alpha = 0.2 - } - - state = { - name = "siege_breach_flash" - next = b - trigger_on_create = yes - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { 1 0 } - } - } - - state = { - name = b - next = b - duration = 0.8 - using = Animation_Curve_Default - - - modify_texture = { - name = "horizontal_wipe" - translate_uv = { -1 0 } - } - } - } - - button_tertiary = { - datacontext = "[SiegeWindow.GetSiege]" - visible = "[And(SiegeWindow.GetSiege.IsPlayerInAttackerSide,Siege.ShowAssaultButton)]" - parentanchor = bottom|hcenter - position = { 0 -5 } - size = { 150 40 } - - enabled = "[Siege.EnableAssaultButton]" - tooltip = "[Siege.GetAssaultButtonTooltip]" - onclick = "[SiegeWindow.StartStopAssault]" - shortcut = siege_assault - - using = Animation_ShowHide_Standard - - state = { - name = _mouse_enter - on_start = "[PdxGuiTriggerAllAnimations('siege_assault_button_enter')]" - } - - state = { - name = _mouse_leave - on_start = "[PdxGuiTriggerAllAnimations('siege_assault_button_leave')]" - } - - state = { - name = _mouse_press - on_start = "[PdxGuiTriggerAllAnimations('siege_assault_button_press')]" - } - # state = { - # name = _mouse_release - # on_start = "[PdxGuiTriggerAllAnimations('siege_assault_button_release')]" - # } - - widget = { - size = { 100% 100% } - scissor = yes - alwaystransparent = yes - - button_normal = { - parentanchor = bottom|hcenter - alwaystransparent = yes - size = { 150% 150% } - position = { -20 0 } - framesize = { 200 110 } - texture = "gfx/interface/component_effects/fire_02.dds" - alpha = 0 - - effectname = "NoHighlight" - - using = Animation_Frames_100 - - state = { - name = "siege_assault_button_enter" - duration = 0.1 - using = Animation_Curve_Default - - alpha = 0.2 - } - - state = { - name = "siege_assault_button_leave" - duration = 0.3 - using = Animation_Curve_Default - - alpha = 0 - } - } - } - - margin_widget = { - size = { 100% 100% } - scissor = yes - - icon = { - parentanchor = center - size = { 150 50 } - texture = "gfx/interface/buttons/button_standard_aggressive.dds" - spriteType = corneredstretched - spriteborder = { 35 0 } - texture_density = 2 - alpha = 0.3 - - state = { - name = "siege_assault_button_enter" - duration = 0.1 - using = Animation_Curve_Default - size = { 170 50 } - - alpha = 0.5 - } - - state = { - name = "siege_assault_button_leave" - duration = 0.2 - using = Animation_Curve_Default - size = { 150 50 } - - alpha = 0.3 - } - - state = { - name = "siege_assault_button_press" - duration = 0.05 - using = Animation_Curve_Default - size = { 150 50 } - - alpha = 0.3 - } - } - } - - widget = { - visible = "[Siege.EnableAssaultButton]" - size = { 100% 100% } - - state = { - name = "siege_assault_button_enter" - duration = 0.2 - using = Animation_Curve_Default - alpha = 0 - } - - state = { - name = "siege_assault_button_leave" - duration = 0.3 - using = Animation_Curve_Default - alpha = 1 - } - - icon = { - position = { 0 5 } - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Red - alpha = 0 - - state = { - name = a - next = b - trigger_on_create = yes - duration = 1.4 - using = Animation_Curve_Default - alpha = 0.8 - } - - state = { - name = b - duration = 0.6 - using = Animation_Curve_Default - alpha = 0 - } - } - } - - icon = { - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/icon_skill_martial.dds" - scale = 0.8 - alpha = 0.5 - - state = { - name = "siege_assault_button_enter" - duration = 0.05 - using = Animation_Curve_Default - - scale = 1.2 - alpha = 1 - } - - state = { - name = "siege_assault_button_leave" - duration = 0.15 - using = Animation_Curve_Default - - scale = 0.8 - alpha = 0.5 - } - - state = { - name = "siege_assault_button_press" - duration = 0 - using = Animation_Curve_Default - - scale = 0.8 - alpha = 0.5 - } - } - - icon = { - position = { 0 5 } - size = { 100% 100% } - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0.2 - - state = { - name = "siege_assault_button_enter" - duration = 0.05 - using = Animation_Curve_Default - alpha = 0.8 - } - - state = { - name = "siege_assault_button_leave" - duration = 0.15 - using = Animation_Curve_Default - alpha = 0.2 - } - } - - text_single = { - parentanchor = center - text = "[SelectLocalization( Siege.IsAssaultInProgress, 'SW_STOP_ASSAULT', 'SW_START_ASSAULT' )]" - using = Font_Size_Medium - default_format = "#high;glow_color:{0,0,0,1}" - } - } - - vbox = { - name = "time_and_assault" - datacontext = "[SiegeWindow.GetSiege]" - margin = { 10 10 } - visible = "[SiegeWindow.GetSiege.IsAssaultInProgress]" - - text_label_center = { - name = "assault_attacker" - visible = "[SiegeWindow.GetSiege.IsPlayerInAttackerSide]" - text = "SW_ASSAULTING_TEXT_ATTACKER" - default_format = "#high" - - tooltip = "SIEGE_ASSAULT_TT_INFO_ACTIVE" - align = center - - using = Animation_ShowHide_Standard - } - - text_label_center = { - name = "assault_not_attacker" - visible = "[Not(SiegeWindow.GetSiege.IsPlayerInAttackerSide)]" - text = "SW_ASSAULTING_TEXT_DEFENDER" - default_format = "#N" - - tooltip = "SIEGE_ASSAULT_TT_INFO_ACTIVE" - align = center - - using = Animation_ShowHide_Standard - } - expand = {} - } - } - } - } - - expand = {} - } - - sounds_siege_window = {} - } - } -} - -types SiegeWindow -{ - - type widget_progressbar_siege = widget { - widget = { - size = { 100% 100% } - scissor = yes - - icon = { - size = { 365 40 } - - block "progressbar_texture" - { - texture = "gfx/interface/progressbars/war_progress_blue.dds" - } - - modify_texture = { - name = "pause" - visible = "[SiegeWindow.GetSiege.IsBlocked]" - texture = "gfx/interface/hud/speed_indicator_auto_pause.dds" - blend_mode = darken - } - - # modify_texture = { - # name = "horizontal_wipe" - # texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - # blend_mode = mask - # } - - # modify_texture = { - # name = "gold" - # texture = "gfx/interface/colors/gold.dds" - # blend_mode = colordodge - # alpha = 0.1 - # } - - # state = { - # name = "siege_daily_progress_flash" - # next = b - # trigger_on_create = yes - - # modify_texture = { - # name = "horizontal_wipe" - # translate_uv = { 1 0 } - # } - # } - - # state = { - # name = b - # duration = 0.8 - # using = Animation_Curve_Default - - # modify_texture = { - # name = "horizontal_wipe" - # translate_uv = { -1 0 } - # } - # } - - state = { - name = "pause_1" - next = "pause_2" - trigger_on_create = yes - - modify_texture = { - name = "pause" - translate_uv = { -0.02 0 } - } - } - - state = { - name = "pause_2" - next = "pause_3" - duration = 2 - - modify_texture = { - name = "pause" - translate_uv = { 0.02 0 } - } - } - - state = { - name = "pause_3" - next = "pause_1" - duration = 2 - - modify_texture = { - name = "pause" - translate_uv = { -0.02 0 } - } - } - - state = { - name = "siege_window_refresh" - duration = 0.5 - trigger_on_create = yes - trigger_when = "[LessThan_float(SiegeWindow.GetSiege.GetProgress, '(float)0')]" - on_start = "[PdxGuiTriggerAllAnimations('siege_progress_0')]" - } - - state = { - name = "60" - #duration = 0.5 - trigger_when = "[GreaterThan_float(SiegeWindow.GetSiege.GetProgress, '(float)50')]" - on_start = "[PdxGuiTriggerAllAnimations('siege_progress_50')]" - } - - state = { - name = "80" - #duration = 0.5 - trigger_when = "[GreaterThan_float(SiegeWindow.GetSiege.GetProgress, '(float)70')]" - on_start = "[PdxGuiTriggerAllAnimations('siege_progress_70')]" - } - - state = { - name = "90" - #duration = 0.5 - trigger_when = "[GreaterThan_float(SiegeWindow.GetSiege.GetProgress, '(float)85')]" - on_start = "[PdxGuiTriggerAllAnimations('siege_progress_85')]" - } - } - } - - animation_progessbar_center_glow = { - visible = "[Not(SiegeWindow.GetSiege.IsBlocked)]" - size = { 100% 100% } - } - - flowcontainer = { - visible = "[Not(SiegeWindow.GetSiege.IsBlocked)]" - parentanchor = right|vcenter - widgetanchor = left|vcenter - margin_left = 5 - spacing = -15 - alpha = 0.7 - - using = Animation_ShowHide_Standard - - state = { - name = a - next = b - trigger_on_create = yes - using = Animation_Curve_Default - duration = 1.2 - alpha = 0.8 - } - - state = { - name = b - next = a - using = Animation_Curve_Default - duration = 0.8 - alpha = 0.3 - } - - icon = { - visible = "[GreaterThan_CFixedPoint(SiegeWindow.GetDailyProgress, '(CFixedPoint)0')]" - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/play.dds" - using = Animation_ShowHide_Standard - - modify_texture = { - blend_mode = add - alpha = 0.7 - - block "arrows_color" - { - texture = "gfx/interface/hud/speed_indicator_play.dds" - } - } - } - - icon = { - visible = "[GreaterThan_CFixedPoint(SiegeWindow.GetDailyProgress, '(CFixedPoint)1.5')]" - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/play.dds" - - using = Animation_ShowHide_Standard - - modify_texture = { - blend_mode = add - alpha = 0.7 - - block "arrows_color" - { - texture = "gfx/interface/hud/speed_indicator_play.dds" - } - } - } - - icon = { - visible = "[GreaterThan_CFixedPoint(SiegeWindow.GetDailyProgress, '(CFixedPoint)3')]" - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/play.dds" - - using = Animation_ShowHide_Standard - - modify_texture = { - blend_mode = add - alpha = 0.7 - - block "arrows_color" - { - texture = "gfx/interface/hud/speed_indicator_play.dds" - } - } - } - - icon = { - visible = "[GreaterThan_CFixedPoint(SiegeWindow.GetDailyProgress, '(CFixedPoint)5')]" - size = { 25 25 } - texture = "gfx/interface/icons/flat_icons/play.dds" - - using = Animation_ShowHide_Standard - - modify_texture = { - blend_mode = add - alpha = 0.7 - - block "arrows_color" - { - texture = "gfx/interface/hud/speed_indicator_play.dds" - } - } - } - } - } - - - type sounds_siege_window = widget { - - ### Disease State 1 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetDiseaseStateFrame, '(int32)1')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_disease" - soundparam = { - name = StateChange - value = 1 - } - } - } - } - - ### Disease State 2 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetDiseaseStateFrame, '(int32)2')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_disease" - soundparam = { - name = StateChange - value = 1.5 - } - } - } - } - - ### Disease State 3 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetDiseaseStateFrame, '(int32)3')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_disease" - soundparam = { - name = StateChange - value = 2 - } - } - } - } - - ### Breach State 1 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetBreachStateFrame, '(int32)1')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_breach" - soundparam = { - name = StateChange - value = 1 - } - } - } - } - - ### Breach State 2 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetBreachStateFrame, '(int32)2')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_breach" - soundparam = { - name = StateChange - value = 1.5 - } - } - } - } - - ### Breach State 3 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetBreachStateFrame, '(int32)3')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_breach" - soundparam = { - name = StateChange - value = 2 - } - } - } - } - - ### Starvation State 1 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetStarvationStateFrame, '(int32)1')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_starvation" - soundparam = { - name = StateChange - value = 1 - } - } - } - } - - ### Starvation State 2 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetStarvationStateFrame, '(int32)2')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_starvation" - soundparam = { - name = StateChange - value = 1.5 - } - } - } - } - - ### Sarvation State 3 - widget = { - visible = "[EqualTo_int32( SiegeWindow.GetStarvationStateFrame, '(int32)3')]" - state = { - name = _show - start_sound = { - soundeffect = "event:/SFX/UI/War/Siege/Fortstate/sfx_ui_war_siege_fortstate_starvation" - soundparam = { - name = StateChange - value = 2 - } - } - } - } - } -} - -@flame_state_duration = 0.25 - -template Animation_Frames_100_Modify -{ - state = { - name = 1 - next = 2 - duration = @flame_state_duration - trigger_on_create = yes - - modify_texture = { - name = "fire" - frame = 1 - } - } - - state = { - name = 2 - next = 3 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 2 - } - } - - state = { - name = 3 - next = 4 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 3 - } - } - - state = { - name = 4 - next = 5 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 4 - } - } - - state = { - name = 5 - next = 6 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 5 - } - } - - state = { - name = 6 - next = 7 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 6 - } - } - - state = { - name = 7 - next = 8 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 7 - } - } - - state = { - name = 8 - next = 9 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 8 - } - } - - state = { - name = 9 - next = 10 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 9 - } - } - - state = { - name = 10 - next = 11 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 10 - } - } - - state = { - name = 11 - next = 12 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 11 - } - } - - state = { - name = 12 - next = 13 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 12 - } - } - - state = { - name = 13 - next = 14 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 13 - } - } - - state = { - name = 14 - next = 15 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 14 - } - } - - state = { - name = 15 - next = 16 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 15 - } - } - - state = { - name = 16 - next = 17 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 16 - } - } - - state = { - name = 17 - next = 18 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 17 - } - } - - state = { - name = 18 - next = 19 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 18 - } - } - - state = { - name = 19 - next = 20 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 19 - } - } - - state = { - name = 20 - next = 21 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 20 - } - } - - - state = { - name = 21 - next = 22 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 21 - } - } - - state = { - name = 22 - next = 23 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 22 - } - } - - state = { - name = 23 - next = 24 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 23 - } - } - - state = { - name = 24 - next = 25 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 24 - } - } - - state = { - name = 25 - next = 26 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 25 - } - } - - state = { - name = 26 - next = 27 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 26 - } - } - - state = { - name = 27 - next = 28 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 27 - } - } - - state = { - name = 28 - next = 29 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 28 - } - } - - state = { - name = 29 - next = 30 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 29 - } - } - - state = { - name = 30 - next = 31 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 30 - } - } - - state = { - name = 31 - next = 32 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 31 - } - } - - state = { - name = 32 - next = 33 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 32 - } - } - - state = { - name = 33 - next = 34 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 33 - } - } - - state = { - name = 34 - next = 35 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 34 - } - } - - state = { - name = 35 - next = 36 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 35 - } - } - - state = { - name = 36 - next = 37 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 36 - } - } - - state = { - name = 37 - next = 38 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 37 - } - } - - state = { - name = 38 - next = 39 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 38 - } - } - - state = { - name = 39 - next = 40 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 39 - } - } - - state = { - name = 40 - next = 41 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 40 - } - } - - state = { - name = 41 - next = 42 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 41 - } - } - - state = { - name = 42 - next = 43 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 42 - } - } - - state = { - name = 43 - next = 44 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 43 - } - } - - state = { - name = 44 - next = 45 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 44 - } - } - - state = { - name = 45 - next = 46 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 45 - } - } - - state = { - name = 46 - next = 47 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 46 - } - } - - state = { - name = 47 - next = 48 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 47 - } - } - - state = { - name = 48 - next = 49 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 48 - } - } - - state = { - name = 49 - next = 50 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 49 - } - } - - state = { - name = 50 - next = 51 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 50 - } - } - - state = { - name = 51 - next = 52 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 51 - } - } - - state = { - name = 52 - next = 53 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 52 - } - } - - state = { - name = 53 - next = 54 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 53 - } - } - - state = { - name = 54 - next = 55 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 54 - } - } - - state = { - name = 55 - next = 56 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 55 - } - } - - state = { - name = 56 - next = 57 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 56 - } - } - - state = { - name = 57 - next = 58 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 57 - } - } - - state = { - name = 58 - next = 59 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 58 - } - } - - state = { - name = 59 - next = 60 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 59 - } - } - - state = { - name = 60 - next = 61 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 60 - } - } - - state = { - name = 61 - next = 62 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 61 - } - } - - state = { - name = 62 - next = 63 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 62 - } - } - - state = { - name = 63 - next = 64 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 63 - } - } - - state = { - name = 64 - next = 65 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 64 - } - } - - state = { - name = 65 - next = 66 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 65 - } - } - - state = { - name = 66 - next = 67 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 66 - } - } - - state = { - name = 67 - next = 68 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 67 - } - } - - state = { - name = 68 - next = 69 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 68 - } - } - - state = { - name = 69 - next = 70 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 69 - } - } - - state = { - name = 70 - next = 71 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 70 - } - } - - state = { - name = 71 - next = 72 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 71 - } - } - - state = { - name = 72 - next = 73 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 72 - } - } - - state = { - name = 73 - next = 74 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 73 - } - } - - state = { - name = 74 - next = 75 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 74 - } - } - - state = { - name = 75 - next = 76 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 75 - } - } - - state = { - name = 76 - next = 77 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 76 - } - } - - state = { - name = 77 - next = 78 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 77 - } - } - - state = { - name = 78 - next = 79 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 78 - } - } - - state = { - name = 79 - next = 80 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 79 - } - } - - state = { - name = 80 - next = 81 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 80 - } - } - - state = { - name = 81 - next = 82 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 81 - } - } - - state = { - name = 82 - next = 83 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 82 - } - } - - state = { - name = 83 - next = 84 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 83 - } - } - - state = { - name = 84 - next = 85 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 84 - } - } - - state = { - name = 85 - next = 86 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 85 - } - } - - state = { - name = 86 - next = 87 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 86 - } - } - - state = { - name = 87 - next = 88 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 87 - } - } - - state = { - name = 88 - next = 89 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 88 - } - } - - state = { - name = 89 - next = 90 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 89 - } - } - - state = { - name = 90 - next = 1 - duration = @flame_state_duration - - modify_texture = { - name = "fire" - frame = 90 - } - } -} - -template Animation_Frames_100 -{ - state = { - name = 1 - next = 2 - duration = @flame_state_duration - trigger_on_create = yes - frame = 1 - - } - - state = { - name = 2 - next = 3 - duration = @flame_state_duration - frame = 2 - } - - state = { - name = 3 - next = 4 - duration = @flame_state_duration - frame = 3 - } - - state = { - name = 4 - next = 5 - duration = @flame_state_duration - frame = 4 - } - - state = { - name = 5 - next = 6 - duration = @flame_state_duration - frame = 5 - } - - state = { - name = 6 - next = 7 - duration = @flame_state_duration - frame = 6 - } - - state = { - name = 7 - next = 8 - duration = @flame_state_duration - frame = 7 - } - - state = { - name = 8 - next = 9 - duration = @flame_state_duration - frame = 8 - } - - state = { - name = 9 - next = 10 - duration = @flame_state_duration - frame = 9 - } - - state = { - name = 10 - next = 11 - duration = @flame_state_duration - frame = 10 - } - - state = { - name = 11 - next = 12 - duration = @flame_state_duration - frame = 11 - } - - state = { - name = 12 - next = 13 - duration = @flame_state_duration - frame = 12 - } - - state = { - name = 13 - next = 14 - duration = @flame_state_duration - frame = 13 - } - - state = { - name = 14 - next = 15 - duration = @flame_state_duration - frame = 14 - } - - state = { - name = 15 - next = 16 - duration = @flame_state_duration - frame = 15 - } - - state = { - name = 16 - next = 17 - duration = @flame_state_duration - frame = 16 - } - - state = { - name = 17 - next = 18 - duration = @flame_state_duration - frame = 17 - } - - state = { - name = 18 - next = 19 - duration = @flame_state_duration - frame = 18 - } - - state = { - name = 19 - next = 20 - duration = @flame_state_duration - frame = 19 - } - - state = { - name = 20 - next = 21 - duration = @flame_state_duration - frame = 20 - } - - - state = { - name = 21 - next = 22 - duration = @flame_state_duration - frame = 21 - } - - state = { - name = 22 - next = 23 - duration = @flame_state_duration - frame = 22 - - } - - state = { - name = 23 - next = 24 - duration = @flame_state_duration - frame = 23 - } - - state = { - name = 24 - next = 25 - duration = @flame_state_duration - frame = 24 - } - - state = { - name = 25 - next = 26 - duration = @flame_state_duration - frame = 25 - } - - state = { - name = 26 - next = 27 - duration = @flame_state_duration - frame = 26 - } - - state = { - name = 27 - next = 28 - duration = @flame_state_duration - frame = 27 - } - - state = { - name = 28 - next = 29 - duration = @flame_state_duration - frame = 28 - } - - state = { - name = 29 - next = 30 - duration = @flame_state_duration - frame = 29 - } - - state = { - name = 30 - next = 31 - duration = @flame_state_duration - frame = 30 - } - - state = { - name = 31 - next = 32 - duration = @flame_state_duration - frame = 31 - } - - state = { - name = 32 - next = 33 - duration = @flame_state_duration - frame = 32 - } - - state = { - name = 33 - next = 34 - duration = @flame_state_duration - frame = 33 - } - - state = { - name = 34 - next = 35 - duration = @flame_state_duration - frame = 34 - } - - state = { - name = 35 - next = 36 - duration = @flame_state_duration - frame = 35 - } - - state = { - name = 36 - next = 37 - duration = @flame_state_duration - frame = 36 - } - - state = { - name = 37 - next = 38 - duration = @flame_state_duration - frame = 37 - } - - state = { - name = 38 - next = 39 - duration = @flame_state_duration - frame = 38 - } - - state = { - name = 39 - next = 40 - duration = @flame_state_duration - frame = 39 - } - - state = { - name = 40 - next = 41 - duration = @flame_state_duration - frame = 40 - } - - state = { - name = 41 - next = 42 - duration = @flame_state_duration - frame = 41 - } - - state = { - name = 42 - next = 43 - duration = @flame_state_duration - frame = 42 - } - - state = { - name = 43 - next = 44 - duration = @flame_state_duration - frame = 43 - } - - state = { - name = 44 - next = 45 - duration = @flame_state_duration - frame = 44 - } - - state = { - name = 45 - next = 46 - duration = @flame_state_duration - frame = 45 - } - - state = { - name = 46 - next = 47 - duration = @flame_state_duration - frame = 46 - } - - state = { - name = 47 - next = 48 - duration = @flame_state_duration - frame = 47 - } - - state = { - name = 48 - next = 49 - duration = @flame_state_duration - frame = 48 - } - - state = { - name = 49 - next = 50 - duration = @flame_state_duration - frame = 49 - } - - state = { - name = 50 - next = 51 - duration = @flame_state_duration - frame = 50 - } - - state = { - name = 51 - next = 52 - duration = @flame_state_duration - frame = 51 - } - - state = { - name = 52 - next = 53 - duration = @flame_state_duration - frame = 52 - } - - state = { - name = 53 - next = 54 - duration = @flame_state_duration - frame = 53 - } - - state = { - name = 54 - next = 55 - duration = @flame_state_duration - frame = 54 - } - - state = { - name = 55 - next = 56 - duration = @flame_state_duration - frame = 55 - } - - state = { - name = 56 - next = 57 - duration = @flame_state_duration - frame = 56 - } - - state = { - name = 57 - next = 58 - duration = @flame_state_duration - frame = 57 - } - - state = { - name = 58 - next = 59 - duration = @flame_state_duration - frame = 58 - } - - state = { - name = 59 - next = 60 - duration = @flame_state_duration - frame = 59 - } - - state = { - name = 60 - next = 61 - duration = @flame_state_duration - frame = 60 - } - - state = { - name = 61 - next = 62 - duration = @flame_state_duration - frame = 61 - } - - state = { - name = 62 - next = 63 - duration = @flame_state_duration - frame = 62 - } - - state = { - name = 63 - next = 64 - duration = @flame_state_duration - frame = 63 - } - - state = { - name = 64 - next = 65 - duration = @flame_state_duration - frame = 64 - } - - state = { - name = 65 - next = 66 - duration = @flame_state_duration - frame = 65 - } - - state = { - name = 66 - next = 67 - duration = @flame_state_duration - frame = 66 - } - - state = { - name = 67 - next = 68 - duration = @flame_state_duration - frame = 67 - } - - state = { - name = 68 - next = 69 - duration = @flame_state_duration - frame = 68 - } - - state = { - name = 69 - next = 70 - duration = @flame_state_duration - frame = 69 - } - - state = { - name = 70 - next = 71 - duration = @flame_state_duration - frame = 70 - } - - state = { - name = 71 - next = 72 - duration = @flame_state_duration - frame = 71 - } - - state = { - name = 72 - next = 73 - duration = @flame_state_duration - frame = 72 - } - - state = { - name = 73 - next = 74 - duration = @flame_state_duration - frame = 73 - } - - state = { - name = 74 - next = 75 - duration = @flame_state_duration - frame = 74 - } - - state = { - name = 75 - next = 76 - duration = @flame_state_duration - frame = 75 - } - - state = { - name = 76 - next = 77 - duration = @flame_state_duration - frame = 76 - } - - state = { - name = 77 - next = 78 - duration = @flame_state_duration - frame = 77 - } - - state = { - name = 78 - next = 79 - duration = @flame_state_duration - frame = 78 - } - - state = { - name = 79 - next = 80 - duration = @flame_state_duration - frame = 79 - } - - state = { - name = 80 - next = 81 - duration = @flame_state_duration - frame = 80 - } - - state = { - name = 81 - next = 82 - duration = @flame_state_duration - frame = 81 - } - - state = { - name = 82 - next = 83 - duration = @flame_state_duration - frame = 82 - } - - state = { - name = 83 - next = 84 - duration = @flame_state_duration - frame = 83 - } - - state = { - name = 84 - next = 85 - duration = @flame_state_duration - frame = 84 - } - - state = { - name = 85 - next = 86 - duration = @flame_state_duration - frame = 85 - } - - state = { - name = 86 - next = 87 - duration = @flame_state_duration - frame = 86 - } - - state = { - name = 87 - next = 88 - duration = @flame_state_duration - frame = 87 - } - - state = { - name = 88 - next = 89 - duration = @flame_state_duration - frame = 88 - } - - state = { - name = 89 - next = 90 - duration = @flame_state_duration - frame = 89 - } - - state = { - name = 90 - next = 1 - duration = @flame_state_duration - frame = 90 - } -} diff --git a/N3OW/gui/window_silk_road.gui b/N3OW/gui/window_silk_road.gui deleted file mode 100644 index ee19c5f1..00000000 --- a/N3OW/gui/window_silk_road.gui +++ /dev/null @@ -1,1098 +0,0 @@ -window = { - name = "window_silk_road" - datacontext = "[SilkRoadWindow.GetSituation]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - on_start = "[SetMapMode( 'silk_road' )]" - start_sound = { - soundeffect = "event:/DLC/EP4/SFX/Ambience/tgp_silkroad_show" - } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - on_start = "[SetMapMode( 'realms' )]" - start_sound = { - soundeffect = "event:/DLC/EP4/SFX/Ambience/tgp_silkroad_hide" - } - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 28 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Situation.GetNameNoTooltip]" - } - - blockoverride "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - blockoverride "button_close" - { - onclick = "[SilkRoadWindow.Close]" - onclick = "[GetVariableSystem.Clear( 'silk_road_catalysts_window' )]" - } - } - } - - # Illustration - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 16 - spacing = 8 - - text_multi = { - text = "SILK_ROAD_HEADER_DESC" - align = center - max_width = 480 - autoresize = yes - default_format = "#weak" - } - - background = { - texture = "gfx/interface/window_situations/silk_road_situation.dds" - fittype = centercrop - alpha = 0.25 - using = Mask_Rough_Edges - framesize = { 1100 220 } - frame = 2 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - } - - scrollbox = { - name = "sub_region_scrollarea" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { -1 660 } - autoresizescrollarea = yes - - blockoverride "scrollbox_content" - { - vbox = { - datamodel = "[Situation.GetSubRegions]" - layoutpolicy_horizontal = expanding - spacing = 10 - - item = { - sub_region_item = { - layoutpolicy_horizontal = expanding - } - } - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - } - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[GetSituation('dynastic_cycle')]" - - margin = { 15 0 } - margin_top = 12 - - button_open_situation = { - datacontext = "[GetPlayer]" - - onclick = "[ToggleGameViewData( Situation.GetWindowName, Situation.GetID )]" - - tooltipwidget = { - using = situation_tooltip - } - - blockoverride "button_illustration" - { - texture = "[Situation.GetType.GetIllustration]" - } - - blockoverride "button_icon" - { - texture = "[Situation.GetIcon]" - } - - blockoverride "button_text" - { - text_single = { - text = "[Situation.GetNameNoTooltip]" - align = nobaseline - } - } - - blockoverride "right_icon" {} - } - - hbox = { - datacontext = "[Situation.GetTopCurrentPhase]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - - hbox = { - margin = { 10 0 } - - spacing = 8 - - background = { - using = Background_Area - margin_bottom = 8 - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - vbox = { - text_label_left = { - layoutpolicy_horizontal = expanding - max_width = 220 - fontsize_min = 10 - text = "DYNASTIC_CYCLE_EVENT_CURRENT_ERA" - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 220 - fontsize_min = 10 - text = "SITUATION_PHASE_START_DATE" - } - } - - vbox = { - layoutpolicy_vertical = expanding - margin = { 4 4 } - expand = {} - icon = { - size = { 42 42 } - texture = "[SituationPhase.GetType.GetIcon]" - } - } - } - - expand = {} - - hbox = { - datacontext = "[SituationPhase.GetLeadingPhaseType]" - margin_right = 12 - spacing = 12 - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 1750 - autoresize = yes - text = "FUTURE_PHASE_HEADER" - align = nobaseline - } - - icon = { - size = { 42 42 } - texture = "[SituationPhaseType.GetIcon]" - } - } - } - } - } - } - } - - window_situation_participant_groups = { - datacontext = "[SilkRoadWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.AccessCharacterList]" - datacontext = "[SilkRoadWindow.GetSelectedSubRegion]" - visible = "[SituationParticipantCharacterList.IsVisible]" - - blockoverride "header_text" - { - text = "SITUATION_PARTICIPANT_WINDOW_HEADER_MULTI_SUBREGION" - } - } - - silk_road_catalysts_window = { - visible = "[VariableSystem.Exists( 'silk_road_catalysts_window' )]" - - blockoverride "header_text" - { - text = "SILK_ROAD_WINDOW_CATALYSTS_LIST" - } - } -} - -types SilkRoad -{ - type innovation_item = vbox { - datacontext = "[SituationSubRegion.GetSubRegionInnovation]" - datacontext = "[CultureInnovation.GetType]" - visible = "[CultureInnovationType.IsValid]" - - layoutpolicy_horizontal = expanding - margin = { 15 5 } - margin_right = 20 - spacing = 10 - - text_single = { - layoutpolicy_horizontal = expanding - text = "CURRENT_INNOVATION_HEADER" - } - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 10 - - icon_innovation = { - blockoverride "mask_rough_edges" - { - using = Mask_Rough_Edges - } - } - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 300 - - text = "[CultureInnovation.GetName|V]" - align = nobaseline - } - - expand = {} - - block "innovation_status" - { - text_single = { - text = "[CultureInnovation.GetInnovationState]" - align = nobaseline - max_width = 300 - layoutpolicy_horizontal = growing - } - - progressbar_standard = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - size = { 300 25 } - - min = 0 - max = 100 - value = "[FixedPointToFloat(CultureInnovation.GetProgress)]" - - text_single = { - parentanchor = hcenter|vcenter - widgetanchor = hcenter|vcenter - position = { 0 -2 } - text = "[CultureInnovation.GetProgress|%/0]" - - background = { - using = Background_Area - margin = { 10 0 } - } - } - } - - text_single = { - visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]" - text = "INNOVATION_TOOLTIP_PROGRESS" - autoresize = yes - max_width = 300 - align = nobaseline - layoutpolicy_horizontal = growing - } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 240 - text = "MOVING_TOWARDS_TO" - align = nobaseline - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 140 - align = right|nobaseline - text = "INNOVATION_TOOLTIP_TYPE" - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 140 - fontsize_min = 10 - align = right|nobaseline - text = "INNOVATION_ERA_WITH_ERA_CONCEPT" - } - - expand = {} - } - } - } - - type phase_progress_bar = widget { - name = "phase_progressbars" - datacontext = "[SilkRoadWindow.GetPhaseProgressComplexBar( SituationSubRegion.Self )]" - layoutpolicy_horizontal = expanding - allow_outside = yes - size = { 0 50 } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/window_situations/silk_road_phases_bg.dds" - margin = { 0 -5 } - } - - background = { - margin = { -82 -18} - texture = "gfx/interface/window_situations/silk_road_phases_progressbar_bg.dds" - } - - hbox = { - margin = { 22 0 } - layoutpolicy_horizontal = expanding - - phase_timeline_icon = { - name = "bad_phase" - - modify_texture = { - texture = "gfx/interface/colors/white.dds" - blend_mode = overlay - alpha = 0.3 - } - - modify_texture = { - texture = "gfx/interface/colors/red.dds" - blend_mode = overlay - alpha = 0.4 - } - - blockoverride "texture" - { - texture = "gfx/interface/icons/flat_icons/goods.dds" - size = { 30 30 } - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 9 - blend_mode = normal - } - } - - widget = { - name = "bad_phase_progress" - parentanchor = center - size = { 50 50 } - - progresspie = { - name = "progress" - visible = "[SilkRoadWindow.IsBadPhase( SituationSubRegion.Self )]" - size = { 44 44 } - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - parentanchor = center - frame = 2 - - value = "[SituationSubRegion.GetCurrentPhase.GetPhaseRelativeProgressPercent]" - min = 0 - max = 100 - } - } - - datacontext_from_model = { - datamodel = "[SilkRoadWindow.GetSituation.GetType.GetPhases]" - index = 2 - } - - datacontext_from_model = { - datamodel = "[SituationPhase.GetFuturePhases]" - index = 1 - } - - tooltipwidget = { - not_neutral_phase_catalysts_tooltip = { - blockoverride "good_phase_active_progressing" {} - } - } - } - - - widget = { - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxScaled( FixedPointToFloat( ComplexBar.GetCurrentValue ), '(float)100', '(int32)100' )]" - layoutpolicy_horizontal = expanding - - datacontext_from_model = { - datamodel = "[SilkRoadWindow.GetSituation.GetType.GetPhases]" - index = 1 - } - - tooltipwidget = situation_phase_tooltip - expand = {} - } - - hbox = { - name = "neutral_phase" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOtherScaled( FixedPointToFloat( ComplexBar.GetCurrentValue ), '(float)100', '(int32)100')]" - - widget = { - size = { 26 26 } - - icon = { - size = { 26 26 } - texture = "gfx/interface/window_situations/silk_road_phases_progressbar_node.dds" - } - } - - datacontext_from_model = { - datamodel = "[SilkRoadWindow.GetSituation.GetType.GetPhases]" - index = 1 - } - - tooltipwidget = situation_phase_tooltip - expand = {} - } - - phase_timeline_icon = { - name = "good_phase" - - modify_texture = { - texture = "gfx/interface/colors/white.dds" - blend_mode = overlay - alpha = 0.3 - } - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = overlay - alpha = 0.6 - } - - blockoverride "texture" - { - texture = "gfx/interface/icons/flat_icons/goods.dds" - size = { 30 30 } - } - - widget = { - name = "good_phase_progress" - parentanchor = center - size = { 50 50 } - - progresspie = { - allow_outside = yes - name = "progress" - visible = "[SilkRoadWindow.IsGoodPhase(SituationSubRegion.Self )]" - - size = { 44 44 } - - texture = "gfx/interface/progressbars/action_progress_thin.dds" - framesize = { 128 128 } - parentanchor = center - frame = 2 - value = "[SituationSubRegion.GetCurrentPhase.GetPhaseRelativeProgressPercent]" - min = 0 - max = 100 - } - } - - datacontext_from_model = { - datamodel = "[SilkRoadWindow.GetSituation.GetType.GetPhases]" - index = 0 - } - - datacontext_from_model = { - datamodel = "[SituationPhase.GetFuturePhases]" - index = 0 - } - tooltipwidget = { - not_neutral_phase_catalysts_tooltip = { - blockoverride "bad_phase_active_progressing" {} - } - } - } - } - } - } - - type sub_region_item = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - oncreate = "[BindFoldOutContext]" - #oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field_silk_road = { - datacontext = "[SituationSubRegion.GetBazaarBuilding]" - layoutpolicy_horizontal = expanding - size = { 0 70 } - - blockoverride "onclick" - { - onclick = "[PdxGuiFoldOut.Toggle]" - onclick = "[SilkRoadWindow.ToggleSubRegion( SituationSubRegion.Self )]" - } - - blockoverride "text" - { - text = "[SituationSubRegion.GetNameNoTooltip]" - } - } - - vbox = { - name = "current_sub_region" - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - - vbox = { - name = "current_phase_widget" - datacontext = "[SituationSubRegion.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area - } - - background = { - using = Background_Frame - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - innovation_item = { - blockoverride "innovation_status" {} - } - - vbox = { - layoutpolicy_horizontal = expanding - background = { - using = Background_Area - margin = { -2 0 } - margin_top = -5 - margin_bottom = -2 - } - - ### CURRENT PHASE PROGRESS BAR ### - vbox = { - layoutpolicy_horizontal = expanding - allow_outside = yes - margin = { 0 0 } - - phase_progress_bar = {} - } - - ### PHASE EFFECTS - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - button_sidepanel_left = { - datacontext = "[SituationSubRegion.GetCurrentPhase]" - - onclick = "[SilkRoadWindow.ToggleSubRegionCatalyst(SituationSubRegion.Self)]" - onclick = "[GetVariableSystem.Toggle( 'silk_road_catalysts_window' )]" - onclick = "[SilkRoadWindow.AccessParticipantCharacterList.Close]" - - down = "[And( ObjectsEqual(SilkRoadWindow.GetSelectedSubRegion.Self, SituationSubRegion.Self), GetVariableSystem.Exists( 'silk_road_catalysts_window' ))]" - - blockoverride "button_text" - { - text = "DYNASTIC_CYCLE_WINDOW_TOGGLE_CATALYSTS" - } - - tooltip = "SITUATION_SUBREGION_CATALYSTS_BUTTON_TOOLIP" - } - - expand = {} - - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - - margin_left = 5 - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 4 2 } - - expand = {} - - fixedgridbox = { - name = "effects" - datacontext = "[SituationSubRegion.GetCurrentPhase.GetType]" - datamodel = "[SituationSubRegion.GetSituation.GetType.GetParticipantGroupTypes]" - - addcolumn = 54 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 10 - maxhorizontalslots = 10 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - item = { - icon_situation_phase_effect_participant_group_item = {} - } - } - - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - hbox = { - datacontext = "[SituationSubRegion.GetCenterProvince]" - datacontext = "[Province.GetCounty.GetTitle]" - - layoutpolicy_horizontal = expanding - - margin_top = 15 - margin_bottom = 20 - spacing = 10 - - expand = {} - - button_standard = { - size = { 245 33 } - - text = "SITUATION_WINDOW_VIEW_PARTICIPANT_GROUPS" - max_width = 240 - - onclick = "[GetVariableSystem.Clear( 'silk_road_catalysts_window' )]" - onclick = "[SilkRoadWindow.SetSelectedSubRegion(SituationSubRegion.Self)]" - onclick = "[SilkRoadWindow.AccessParticipantCharacterList.Toggle]" - } - - button_standard = { - name = "visit_bazaar" - datacontext = "[GetDecisionWithKey('visit_silk_road_market_decision')]" - datacontext = "[Province.GetHolding.GetSpecialBuildingType]" - - visible = "[Decision.IsShownForPlayer]" - size = { 245 33 } - - text = "VISIT_SUB_REGION_BAZAAR" - max_width = 240 - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - onclick = "[PreSelectDecisionOption( Title.GetKey )]" - } - - expand = {} - } - } - } - } - } - } - - type silk_road_catalysts_window = window { - name = "silk_road_catalysts_window" - widgetanchor = right - position = { 30 100 } - size = { 740 90% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - datacontext = "[SilkRoadWindow.GetSelectedSubRegion]" - - datamodel = "[SilkRoadWindow.GetSelectedSubRegion.GetCurrentPhase.GetFuturePhases]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[VariableSystem.Toggle( 'silk_road_catalysts_window' )]" - } - - blockoverride "header_text" { - text = "SILK_ROAD_CATALYSTS_WINDOW_HEADER" - } - } - - item = { - vbox = { - name = "catalyst_information_area" - - visible = "[SituationPhaseType.IsValid]" - datacontext = "[FutureSituationPhase.GetType]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - visible = "[EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)0' )]" - - layoutpolicy_horizontal = expanding - margin = { 0 4 } - spacing = 8 - - background = { - using = Background_Area - } - - expand = {} - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/goods.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 7 - } - } - - text_single = { - text = "SILK_ROAD_CATALYST_PER_PHASE" - } - expand = {} - } - - hbox = { - visible = "[EqualTo_int32( PdxGuiWidget.GetIndexInDataModel, '(int32)1' )]" - layoutpolicy_horizontal = expanding - margin = { 0 4 } - spacing = 8 - - background = { - using = Background_Area - } - - expand = {} - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/goods.dds" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 9 - } - } - - text_single = { - text = "SILK_ROAD_CATALYST_PER_PHASE" - } - expand = {} - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "catalyst_entries" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - maximumsize = { 1000 50 } - - datamodel = "[SilkRoadWindow.GetCatalystsForSelectedPhase( FutureSituationPhase.Self )]" - item = { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datacontext = "[SilkRoadWindow.GetSelectedSubRegion.GetCurrentPhase]" - - hbox = { - layoutpolicy_vertical = expanding - min_width = 60 - - background = { - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 6 - } - - background = { - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 6 - } - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "[SituationCatalystEntry.GetPoints|+=]" - align = nobaseline - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationCatalystEntry.GetCatalystDescription]" - autoresize = no - align = left|nobaseline - max_width = 400 - margin = { 10 5 } - } - - background = { - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_vertical = expanding - min_width = 70 - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - color = { 0.4 0.603 0.298 1 } - alpha = 0.6 - } - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - color = { 0.4 0.603 0.298 1 } - alpha = 0.1 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.4 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - using = Color_Grey - alpha = 0.1 - } - - text_single = { - layoutpolicy_vertical = expanding - align = nobaseline|center - min_width = 70 - raw_text = "[Select_CString( GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' ), '#COLOR_GREEN ', '#COLOR_GRAY ')]x[SituationPhase.GetNumCompletionsOfCatalystForPhase(SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst)]#!" - } - } - } - } - } - } - } - } - } - } - } - - type not_neutral_phase_catalysts_tooltip = container { - alwaystransparent = no - - object_tooltip_pop_out = { - - blockoverride "concept_link" { - text = "[situation_phase|E]" - } - - blockoverride "title_text" { - margin = { 0 8 } - text = "CURRENT_PHASE_PROGRESS_HEADER" - } - - blockoverride "main_description" { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - block "good_phase_active_progressing" - { - visible = "[SilkRoadWindow.IsGoodPhase( SituationSubRegion.Self )]" - - hbox = { - text_single = { - text = "[SituationSubRegion.GetFuturePhaseProgressDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - block "bad_phase_active_progressing" - { - visible = "[SilkRoadWindow.IsBadPhase( SituationSubRegion.Self )]" - - hbox = { - text_single = { - text = "[SituationSubRegion.GetFuturePhaseProgressDesc]" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[SituationPhase.GetLatestCatalystHistoryFor(FutureSituationPhase.Self)]" - text_label_center = { - layoutpolicy_horizontal = expanding - text = "RecentCatalystsHeader" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 4 } - spacing = 4 - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - text_single = { - text = "[SituationCatalystHistory.GetCatalystType.GetName]" - align = nobaseline - max_width = 300 - fonttintcolor = "[TooltipInfo.GetTintColor]" - - } - - expand = {} - - text_single = { - text = "[SituationCatalystHistory.GetValue|+=]" - align = nobaseline - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_situation.gui b/N3OW/gui/window_situation.gui deleted file mode 100644 index ceab79a2..00000000 --- a/N3OW/gui/window_situation.gui +++ /dev/null @@ -1,1015 +0,0 @@ -###################################################### -##################### SITUATION ###################### -###################################################### -window = { - name = "window_situation" - widgetid = "window_situation" - datacontext = "[SituationWindow.GetSituation]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 26 } - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Situation.GetNameNoTooltip]" - } - - blockoverride "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - blockoverride "button_close" - { - onclick = "[SituationWindow.Close]" - } - } - } - - scrollbox = { - name = "sub_region_scrollbox" - - visible = "[Situation.HasMultipleSubRegions]" - - using = Animation_Tab_Switch - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - min_height = 185 - max_height = 185 - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "sub_regions" - layoutpolicy_horizontal = expanding - spacing = 2 - - datamodel = "[Situation.GetSubRegions]" - - item = { - button_situation_subregion = { } - } - } - - blockoverride "scrollbox_expand" { - expand = {} - } - } - } - - - vbox = { - name = "current_sub_region" - margin_top = 2 - layoutpolicy_horizontal = expanding - - datacontext = "[SituationWindow.GetSelectedSubRegion]" - datacontext = "[SituationSubRegion.GetCurrentPhase]" - - visible = "[SituationSubRegion.IsValid]" - - text_label_center = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - using = Background_Area_Dark - visible = "[Situation.HasMultipleSubRegions]" - - text = "[SituationSubRegion.GetNameNoTooltip]" - using = Font_Size_Medium - align = nobaseline - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - min_height = 75 - - margin = { 15 15 } - - datacontext = "[SituationSubRegion.GetCharacterParticipantGroup( GetPlayer )]" - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - visible = "[Not( SituationParticipantGroup.IsValid )]" - layoutpolicy_horizontal = expanding - - text = "SITUATION_WINDOW_NO_REGION_PARTICIPANT_GROUP" - default_format = "#low" - align = nobaseline - } - - icon = { - visible = "[SituationParticipantGroup.IsValid]" - - size = { 40 40 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - - background = { - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - margin = { 5 5 } - } - } - - vbox = { - visible = "[SituationParticipantGroup.IsValid]" - - margin_left = 10 - text_single = { - layoutpolicy_horizontal = expanding - text = "[SituationParticipantGroup.GetName]" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[SelectLocalization( Situation.HasMultipleSubRegions, 'SITUATION_WINDOW_YOUR_PARTICIPANT_GROUP_MULTI_SUBREGION', 'SITUATION_WINDOW_YOUR_PARTICIPANT_GROUP' ) ]" - - align = nobaseline - default_format = "#Weak" - } - } - - expand = {} - - button_standard_small = { - onclick = "[SituationWindow.AccessParticipantCharacterList.Toggle]" - text = "SITUATION_WINDOW_VIEW_PARTICIPANT_GROUPS" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 15 15 } - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - spacing = 40 - - text_label_center = { - min_width = 240 - layoutpolicy_horizontal = expanding - text = "SITUATION_WINDOW_CURRENT_HEADER" - } - - text_label_center = { - min_width = 240 - layoutpolicy_horizontal = expanding - visible = "[Not( SituationWindow.GetSelectedFuturePhaseType.IsValid )]" - - text = "SITUATION_WINDOW_FUTURE_HEADER" - } - - text_label_center = { - min_width = 240 - layoutpolicy_horizontal = expanding - visible = "[SituationWindow.GetSelectedFuturePhaseType.IsValid]" - - text = "SITUATION_WINDOW_SELECTED_HEADER" - } - } - - ### LOCATION CURRENT PHASE & END ### - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "SITUATION_CURRENT_PHASE_NAME" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "SITUATION_CURRENT_PHASE_ENDS" - default_format = "#Weak" - align = nobaseline - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[SituationPhaseType.GetName]" - align = nobaseline|right - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[ObjectsEqual( SituationPhaseType.Self, SituationPhase.GetLeadingPhaseType.Self )]" - - text = "SITUATION_WINDOW_LEADING_PHASE" - default_format = "#Weak" - align = nobaseline|right - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Not( ObjectsEqual( SituationPhaseType.Self, SituationPhase.GetLeadingPhaseType.Self ) )]" - - text = "SITUATION_WINDOW_NOT_LEADING_PHASE" - default_format = "#Weak" - align = nobaseline|right - } - - expand = {} - } - } - - ### CURRENT PHASE PROGRESS BAR ### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - - widget = { - allow_outside = yes - layoutpolicy_horizontal = expanding - size = { 515 40 } - - - widget = { - datacontext = "[SituationWindow.GetPhaseProgressComplexBar( SituationSubRegion.Self )]" - parentanchor = left|vcenter - position = { 23 0 } - size = { 485 16 } - allow_outside = yes - - icon = { - parentanchor = center - size = { 507 26 } - texture = "gfx/interface/window_scheme/scheme_success_progressbar_bg.dds" - } - - hbox_complex_bar_progress_next = { - blockoverride "texture_decrease" { - texture = "gfx/interface/progressbars/progress_standard.dds" - } - - blockoverride "texture_filled" { - texture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - } - - hbox_complex_bar_levels = { - layoutpolicy_horizontal = expanding - - blockoverride "marker" { - widget_level_marker = { - allow_outside = yes - - visible = "[Or( NotEqualTo_int32( ComplexBarItem.GetIndex, '(int32)1' ), NotEqualTo_CFixedPoint( ComplexBarItem.GetValue, '(CFixedPoint)0' ) )]" - - icon = { - name = "current_phase_icon" - visible = "[EqualTo_int32( ComplexBarItem.GetIndex, '(int32)0' )]" - size = { 40 40 } - texture = "[SituationSubRegion.GetCurrentPhase.GetType.GetIcon]" - parentanchor = center - } - - blockoverride "visible_active" { - visible = "[NotEqualTo_int32( ComplexBarItem.GetIndex, '(int32)1' )]" - } - - blockoverride "highlight_addon" { - visible = "[EqualTo_int32( ComplexBarItem.GetIndex, '(int32)0' )]" - } - - icon = { - name = "selected_or_leading_phase_icon" - visible = "[EqualTo_int32( ComplexBarItem.GetIndex, '(int32)2' )]" - size = { 40 40 } - texture = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType.GetIcon]" - parentanchor = center - } - - - text_single = { - parentanchor = center - visible = "[EqualTo_int32( ComplexBarItem.GetIndex, '(int32)1' )]" - - text = "[ComplexBarItem.GetValue|0%/]" - tooltip = "[SchemeItem.GetProgressLevelTooltips( PdxGuiWidget.GetIndexInDataModel )]" - align = nobaseline - } - } - } - } - } - } - - expand = {} - } - - - - expand = {} - - ### LOCATION EFFECTS & PREDICITON ### - text_single = { - margin_top = 10 - layoutpolicy_horizontal = expanding - - text = "SITUATION_WINDOW_PHASE_EFFECTS" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "named_effect_sets" - layoutpolicy_horizontal = expanding - - addcolumn = 48 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 6 - maxhorizontalslots = 6 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationSubRegion.GetCurrentPhase.GetType.GetModifierNamedSets]" - item = { - button_phase_named_set_item = {} - } - } - - expand = {} - - fixedgridbox = { - name = "leading_named_effect_sets" - - addcolumn = 48 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 6 - maxhorizontalslots = 6 - maxverticalslots = 1 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType.GetModifierNamedSets]" - item = { - button_phase_named_set_item = { - enabled = yes - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 15 15 } - margin_top = 10 - - background = { - using = Background_Area - } - - vbox = { - name = "current_phase_widget" - datacontext = "[SituationSubRegion.GetCurrentPhase]" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "SITUATION_WINDOW_FUTURE_PHASES_HEADER" - } - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[SituationPhase.GetFuturePhases]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - min_height = 40 - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - size = { 30 30 } - texture = "[FutureSituationPhase.GetType.GetIcon]" - - background = { - texture = "gfx/interface/window_regency/regency_level_bg.dds" - margin = { 5 5 } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 10 - - text = "[FutureSituationPhase.GetType.GetName]" - max_width = 230 - align = nobaseline - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = preferred - layoutpolicy_vertical = expanding - margin_right = 10 - - expand = {} - - text_single = { - layoutpolicy_horizontal = preferred - layoutpolicy_vertical = expanding - - visible = "[FutureSituationPhase.HasPointsTakeoverType]" - - text = "SITUATION_WINDOW_PHASE_TAKEOVER_POINTS" - align = nobaseline - } - - widget = { - size = { 80 25 } - visible = "[FutureSituationPhase.HasPointsTakeoverType]" - - progressbar_standard = { - parentanchor = center - size = { 80 12 } - position = { 0 -7 } - value = "[FutureSituationPhase.GetRelativeProgressPercent]" - progresstexture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - - text_single = { - parentanchor = center - position = { 0 0 } - text = "SITUATION_PHASE_POINT_TAKEOVER_VALUE" - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[FutureSituationPhase.HasDurationTakeoverType]" - - autoresize = no - - text = "SITUATION_WINDOW_PHASE_TAKEOVER_DURATION" - align = nobaseline|right - margin_right = 10 - } - - button_standard_small = { - size = { 60 25 } - - down = "[ObjectsEqual( SituationWindow.GetSelectedFuturePhaseType().Self, FutureSituationPhase.GetType.Self )]" - onclick = "[SituationWindow.ToggleSelectedFuturePhaseType( FutureSituationPhase.GetType.Self )]" - text = "SITUATION_WINDOW_VIEW_PHASE" - } - } - } - } - } - } - } - } - } - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - - visible = "[Not( IsDataModelEmpty( SituationWindow.GetCatalystsForSelectedPhase ) )]" - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 15 15 } - margin_top = 10 - - background = { - using = Background_Area - } - - vbox = { - name = "catalyst_information_area" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "SITUATION_WINDOW_FUTURE_CATALYSTS_HEADER" - } - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "catalyst_entries" - datamodel = "[SituationWindow.GetCatalystsForSelectedPhase]" - - datacontext = "[SituationWindow.GetSelectedSubRegion.GetCurrentPhase]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - maximumsize = { 1000 50 } - - item = { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 6 - - } - - background = { - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 6 - - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - size = { 25 25 } - texture = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType.GetIcon]" - } - text_single = { - text = "[SituationCatalystEntry.GetPoints|+=]" - align = nobaseline - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationCatalystEntry.GetCatalystDescription]" - autoresize = no - align = left|nobaseline - max_width = 400 - margin = { 10 5 } - } - - background = { - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_vertical = expanding - min_width = 70 - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedOrLeadingFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - color = { 0.4 0.603 0.298 1 } - alpha = 0.6 - } - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedOrLeadingFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - color = { 0.4 0.603 0.298 1 } - alpha = 0.1 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedOrLeadingFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.4 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - using = Color_Grey - alpha = 0.1 - } - - text_single = { - min_width = 70 - layoutpolicy_vertical = expanding - - align = nobaseline|center - raw_text = "[Select_CString(GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedOrLeadingFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0'), '#COLOR_GREEN ', '#COLOR_GRAY ')]x[SituationPhase.GetNumCompletionsOfCatalystForPhase(SituationWindow.GetSelectedOrLeadingFuturePhaseType, SituationCatalystEntry.GetCatalyst)]#!" - } - } - } - } - } - } - } - } - } - } - - expand = { - visible = "[IsDataModelEmpty( SituationWindow.GetCatalystsForSelectedPhase )]" - } - } - } - } - - window_situation_participant_groups = { - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.AccessCharacterList]" - visible = "[SituationParticipantCharacterList.IsVisible]" - - datacontext = "[SituationWindow.GetSelectedSubRegion]" - blockoverride "header_text" - { - text = "[SituationWindow.GetParticipationWindowHeader]" - } - } -} - -types Situation -{ - type button_situation_subregion = button_standard { - minimumsize = { 527 50 } - - layoutpolicy_horizontal = expanding - - onclick = "[SituationWindow.SetSelectedSubRegion( SituationSubRegion.Self )]" - down = "[ObjectsEqual( SituationWindow.GetSelectedSubRegion.Self, SituationSubRegion.Self )]" - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 4 0 } - margin_right = 16 - spacing = 5 - - icon = { - size = { 40 40 } - texture = "[SituationSubRegion.GetIcon]" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - spacing = -3 - minimumsize = { 150 -1 } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[SituationSubRegion.GetNameNoTooltip]" - default_format = "#clickable" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "SITUATION_WINDOW_SUB_GROUP_SUBTITLE" - align = nobaseline - } - - expand = {} - } - - - - widget = { - size = { 40 40 } - - widget_level_marker = { - blockoverride "visible_inactive" { - visible = no - } - - icon = { - size = { 40 40 } - texture = "[SituationSubRegion.GetCurrentPhase.GetType.GetIcon]" - parentanchor = center - } - } - } - - text_single = { - size = { 30 20 } - text = "[SituationSubRegion.GetCurrentPhase.GetRelativeProgress|0%]" - autoresize = no - align = center|nobaseline - } - - widget = { - size = { 40 40 } - - widget_level_marker = { - blockoverride "highlight_addon" { - visible = no - } - - icon = { - size = { 40 40 } - texture = "[SituationSubRegion.GetCurrentPhase.GetLeadingPhaseType.GetIcon]" - parentanchor = center - } - } - } - } - } - - type button_phase_named_set_item = button_round { - datacontext = "[GetPlayer]" - - icon = { - size = { 100% 100% } - - texture = "gfx/interface/buttons/button_lifestyles_base.dds" - } - - icon = { - size = { 80% 80% } - position = { 0 0 } - parentanchor = center - alwaystransparent = yes - texture = "[SituationModifierNamedSet.GetIcon]" - } - - tooltipwidget = { - using = situation_modifier_named_set_tooltip - } - } - - type window_situation_participant_groups = window { - name = "window_situation_participant_groups" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[SituationParticipantCharacterList.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 0 } - margin_bottom = 4 - - background = { - using = Background_Area - margin = { 0 4 } - } - - flowcontainer = { - layoutstretchfactor_horizontal = 50 - - datamodel = "[SituationSubRegion.GetParticipantGroups]" - spacing = 10 - margin = { 10 10 } - - item = { - button = { - size = { 46 46 } - visible = "[SituationParticipantGroup.IsValid]" - onclick = "[SituationParticipantCharacterList.SetSelectedParticipantGroup( SituationParticipantGroup.Self )]" - tooltip = "[SituationParticipantGroup.GetName]" - - icon = { - visible = "[SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self )]" - parentanchor = center - - texture = "gfx/interface/buttons/button_round_frame.dds" - size = { 58 58 } - color = { 0.75 0.75 0.65 1 } - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 1 - } - } - - icon_round_button_base = { - parentanchor = center - size = { 100% 100% } - enabled = "[Not( SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ) )]" - } - - icon = { - parentanchor = center - size = { 36 36 } - - visible = "[SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self )]" - texture = "[SituationParticipantGroup.GetType.GetIcon]" - } - - icon = { - parentanchor = center - size = { 36 36 } - - visible = "[Not( SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ) )]" - texture = "[SituationParticipantGroup.GetType.GetIcon]" - alpha = "[Select_float(SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ),'(float)1.0','(float)0.6')]" - } - } - } - } - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - vbox_participant_group_summary = { - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = 50 - } - - expand = {} - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - blockoverride "filters_visible" { - visible = no - } - - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "SITUATION_PARTICIPANT_WINDOW_PARTICIPANT_EMPTY" - } - - blockoverride "container_implementation" - { - fixedgridbox = { - addcolumn = 630 - addrow = 92 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 94 } - blockoverride "character_relation" {} - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_situation_debug.gui b/N3OW/gui/window_situation_debug.gui deleted file mode 100644 index 000f388e..00000000 --- a/N3OW/gui/window_situation_debug.gui +++ /dev/null @@ -1,647 +0,0 @@ -###################################################### -################## SITUATION DEBUG ################### -###################################################### -window = { - name = "window_situation_debug" - widgetid = "window_situation_debug" - datacontext = "[SituationWindow.GetSituation]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 26 } - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { # participants - name = "situation_participants" - layoutpolicy_horizontal = expanding - spacing = 6 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - raw_text = "[Situation.GetNameNoTooltip] Debug" - } - - blockoverride "button_close" - { - onclick = "[SituationWindow.Close]" - } - } - vbox = { - margin_top = -15 - spacing = 5 - - text_single = { -# text = "[Situation.GetPlayerInvolvementDesc]" - max_width = 650 - } - - button_standard = { - size = { 230 32 } - minimumsize = { 200 0 } - onclick = "[ToggleGameViewData('situation_participation', Situation.GetID)]" - raw_text = "#D View Situation Participants" - } - } - } - - vbox = { - name = "current_situation" - layoutpolicy_horizontal = expanding - - datacontext = "[SituationWindow.GetSituation]" - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - raw_text = "#D Situation Start date:" - using = Font_Size_Medium - } - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[Situation.GetStartDate.GetStringLong]" - using = Font_Size_Medium - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - raw_text = "#D Situation End date:" - using = Font_Size_Medium - } - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - visible = "[Situation.HasEndDate]" - text = "[Situation.GetEndDate.GetStringLong]" - using = Font_Size_Medium - default_format = "#high" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[Situation.GetSubRegions]" - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "#D --- Sub Regions ---" - using = Font_Size_Medium - default_format = "#high" - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - raw_text = "#D Sub Region:" - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationSubRegion.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - - button_standard = { - size = { 60 32 } - minimumsize = { 60 0 } - onclick = "[SituationWindow.SetSelectedSubRegion( SituationSubRegion.Self )]" - raw_text = "#D Select" - } - } - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D Current phase:" - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationSubRegion.GetCurrentPhase.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - } - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D Your group:" - using = Font_Size_Medium - } - - text_single = { - visible = "[SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).IsValid]" - layoutpolicy_horizontal = expanding - text = "[SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).GetName]" - using = Font_Size_Medium - default_format = "#high" - } - text_single = { - visible = "[Not( SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).IsValid )]" - layoutpolicy_horizontal = expanding - raw_text = "- none -" - using = Font_Size_Medium - default_format = "#debug" - } - } - } - } - } - - - vbox = { - name = "current_sub_region" - margin_top = 18 - - layoutpolicy_horizontal = expanding - - datacontext = "[SituationWindow.GetSelectedSubRegion]" - - visible = "[SituationSubRegion.IsValid]" - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - raw_text = "#D --- Selected Sub Region ([SituationSubRegion.GetName]) ---" - using = Font_Size_Medium - } - - vbox = { - name = "current_phase_widget" - datacontext = "[SituationSubRegion.GetCurrentPhase]" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - raw_text = "#D ------ Current phase ------" - using = Font_Size_Medium - } - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationPhase.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D Start date:" - using = Font_Size_Medium - } - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationPhase.GetStartDate.GetStringLong]" - using = Font_Size_Medium - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D End date:" - using = Font_Size_Medium - } - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationPhase.GetEndDate.GetStringLong]" - using = Font_Size_Medium - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D Leading Next Phase:" - using = Font_Size_Medium - } - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationPhase.GetLeadingPhaseType.GetName]" - using = Font_Size_Medium - default_format = "#high" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - margin_left = 30 - raw_text = "#D Modifier Sets:" - using = Font_Size_Medium - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[SituationPhase.GetType.GetModifierNamedSets]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "[SituationModifierNamedSet.GetKey]" - using = Font_Size_Medium - default_format = "#high" - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 20 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - raw_text = "#D ----- Future Phases ----- " - using = Font_Size_Medium - } - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[SituationPhase.GetFuturePhases]" - - item = { - vbox = { - margin_top = 20 - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 200 - min_width = 200 - raw_text = "#D Future phase:" - using = Font_Size_Medium - } - -# icon = { -# size = { 54 54 } -# texture = "[FutureSituationPhase.GetType.GetIcon]" -# -# background = { -# using = Background_Area_Solid -# } -# } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[FutureSituationPhase.GetType.GetNameNoTooltip]" - using = Font_Size_Medium - default_format = "#high" - max_width = 230 - } - - text_single = { - layoutpolicy_horizontal = preferred - visible = "[FutureSituationPhase.HasPointsTakeoverType]" - - raw_text = "Points: [FutureSituationPhase.GetProgress] / [FutureSituationPhase.GetTakeoverPoints]" - using = Font_Size_Medium - default_format = "#high" - } - - text_single = { - layoutpolicy_horizontal = preferred - visible = "[FutureSituationPhase.HasDurationTakeoverType]" - - raw_text = "[FutureSituationPhase.GetProgress] / [FutureSituationPhase.GetTakeoverDurationDays] Days" - using = Font_Size_Medium - default_format = "#high" - } - - button_standard = { - size = { 60 32 } - minimumsize = { 60 0 } - onclick = "[SituationWindow.SetSelectedFuturePhaseType( FutureSituationPhase.GetType.Self )]" - raw_text = "#D Select" - } - } - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - - datacontext = "[SituationWindow.GetSelectedFuturePhaseType]" - - vbox = { # catalyst info - name = "catalyst_information_area" - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_left = 5 - - text_label_center = { - raw_text = "#D Catalysts towards [SituationPhaseType.GetNameNoTooltip]#!" - max_width = 560 - fontsize = 18 - } - - - spacer = { - size = { 0 15 } - } - - scrollbox = { - size = { 0 270 } - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "catalyst_entries" - datamodel = "[SituationWindow.GetCatalystsForSelectedPhase]" - - datacontext = "[SituationWindow.GetSelectedSubRegion.GetCurrentPhase]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_left = 10 - margin_right = 15 - maximumsize = { 1000 50 } - - - item = { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - widget = { - size = { 60 55} - - background = { - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 6 - - } - - background = { - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 6 - - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - size = { 25 25 } -# texture = "[SituationWindow.GetSelectedPhase.GetIcon]" - } - text_single = { - text = "[SituationCatalystEntry.GetPoints|+=]" - align = nobaseline - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationCatalystEntry.GetCatalystDescription]" - autoresize = no - align = left|nobaseline - max_width = 520 - margin = { 10 5 } - } - - background = { - using = Background_Area_Dark - } - - widget = { - size = { 50 60 } - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - color = { 0.4 0.603 0.298 1 } - alpha = 0.6 - } - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - color = { 0.4 0.603 0.298 1 } - alpha = 0.1 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.4 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - using = Color_Grey - alpha = 0.1 - } - - text_single = { - parentanchor = center - align = nobaseline - raw_text = "[Select_CString(GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst ), '(int32)0'), '#COLOR_GREEN ', '#COLOR_GRAY ')]x[SituationPhase.GetNumCompletionsOfCatalystForPhase(SituationWindow.GetSelectedFuturePhaseType, SituationCatalystEntry.GetCatalyst)]#!" - } - } - } - } - } - } - } - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - expand = {} - } - } - } -} - -types Situation -{ -# type situation_next_phase_banner = container { -# button = { -# size = { 148 160 } -# position = { 0 26 } -# -# onclick = "[SituationWindow.SetSelectedPhase(SituationPhase.Self)]" -# onclick = "[PdxGuiTriggerAllAnimations('catalyst_refresh')]" -# -# enabled = "[Or( Not( Situation.IsInTransitionPhase ), ObjectsEqual( SituationPhase.Self, Situation.GetNextPhase ) )]" -# -# tooltipwidget = { -# situation_phase_tooltip = {} -# } -# -# widget = { -# visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" -# size = { 46 60 } -# position = { 0 -27 } -# parentanchor = hcenter|top -# -# background = { -# using = Background_Area_Dark -# } -# } -# -# background = { -# visible = "[ObjectsEqual(SituationWindow.GetSelectedPhase, SituationPhase.Self)]" -# using = Background_Area_Dark -# alpha = 0.6 -# -# modify_texture = { -# texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" -# blend_mode = alphamultiply -# alpha = 1 -# } -# } -# } -# } -} diff --git a/N3OW/gui/window_situation_list.gui b/N3OW/gui/window_situation_list.gui deleted file mode 100644 index 512c4922..00000000 --- a/N3OW/gui/window_situation_list.gui +++ /dev/null @@ -1,423 +0,0 @@ -window = { - name = "window_situation_list" - widgetid = "window_situation_list" - layer = windows_layer - parentanchor = top|right - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.AddTab( 'your' )]" - oncreate = "[PdxGuiTabs.AddTab( 'other' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin_top = 30 - margin_bottom = 28 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - widget_header_with_picture = { - layoutpolicy_horizontal = expanding - max_height = 90 - - blockoverride "illustration_texture" { - texture = "gfx/interface/skinned/illustrations/header_illustrations/header_activity.dds" - fittype = centercrop - alpha = 0.4 - } - - blockoverride "header_text" - { - text = "SITUATION_LIST_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[SituationListWindow.Close]" - } - - vbox = { - name = "situation_desc" - margin_top = 20 - layoutpolicy_horizontal = expanding - - text_single = { - autoresize = yes - maximumsize = { 450 -1 } - - text = "SITUATION_LIST_WINDOW_HEADER_DESC" - align = center - } - } - } - - hbox_tab_buttons = { - name = "situation_tabs" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'situation_tab' )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "situations_content" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - using = Animation_Tab_Switch - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - name = "situation_groups_container" - margin_bottom = 8 - spacing = 2 - - layoutpolicy_horizontal = expanding - - datamodel = "[SituationListWindow.GetSituationGroupItems]" - item = { - vbox_situation_group_foldout = {} - } - } - } - } - } - } - - expand = {} - - button_tertiary = { - layoutpolicy_horizontal = expanding - text = "SITUATION_LIST_EPIDEMICS" - onclick = "[ToggleGameView( 'epidemics' )]" - } - } - } - } -} - -types SituationList -{ - type vbox_situation_group_foldout = vbox { - datacontext = "[SituationGroupItem.GetGroupType]" - visible = "[Not( IsDataModelEmpty( SituationGroupItem.GetItems ) )]" - - layoutpolicy_horizontal = expanding - - oncreate = "[BindFoldOutContext]" - oncreate = "[PdxGuiFoldOut.Unfold]" - - button_expandable_toggle_field = { - blockoverride "text" - { - text = "[SituationGroupItem.GetGroupTitle( PdxGuiTabs.IsTabSet( 'your' ) )]" - } - } - - vbox = { - visible = "[PdxGuiFoldOut.IsUnfolded]" - layoutpolicy_horizontal = expanding - - dynamicgridbox = { - name = "situations_in_group" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - datamodel = "[SituationGroupItem.GetItems]" - item = { - widget = { - visible = "[Or( And( SituationItem.IsParticipant, PdxGuiTabs.IsTabSet( 'your' ) ), And( Not( SituationItem.IsParticipant ), PdxGuiTabs.IsTabSet( 'other' ) ) )]" - minimumsize = { 527 100 } - - vbox_situation_entry = { - datacontext = "[SituationItem.GetSituation]" - visible = "[SituationItem.IsSituation]" - } - - vbox_struggle_entry = { - datacontext = "[SituationItem.GetStruggle]" - visible = "[Not( SituationItem.IsSituation )]" - } - } - } - } - } - } - - type button_open_situation = button_standard { - minimumsize = { 527 60 } - - layoutpolicy_horizontal = expanding - - widget = { - minimumsize = { 527 56 } - position = { -2 2 } - - parentanchor = right|top - scissor = yes - - proportional_icon = { - name = "illustration" - parentanchor = right|top - size = { 250 100 } - - block "button_illustration" - { - texture = "gfx/interface/_debug/placeholder.dds" - } - - alpha = 0.7 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - icon = { - size = { 99.2% 100% } - position = { 1 0 } - parentanchor = vcenter|hcenter - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin = { 10 0 } - spacing = 10 - - highlight_icon = { - size = { 40 40 } - - block "button_icon" - { - texture = "gfx/interface/_debug/icon_placeholder_02.dds" - } - } - - block "button_text" - { - text_single = { - raw_text = "button_text" - align = nobaseline - } - } - - expand = {} - - block "right_icon" {} - } - } - - type vbox_situation_entry = vbox { - minimumsize = { 527 100 } - layoutpolicy_horizontal = expanding - - button_open_situation = { - datacontext = "[GetPlayer]" - - onclick = "[ToggleGameViewData( Situation.GetWindowName, Situation.GetID )]" - - tooltipwidget = { - using = situation_tooltip - } - - blockoverride "button_illustration" - { - texture = "[Situation.GetType.GetIllustration]" - } - - blockoverride "button_icon" - { - texture = "[Situation.GetIcon]" - } - - blockoverride "button_text" - { - text_single = { - text = "[Situation.GetNameNoTooltip]" - align = nobaseline - } - } - - blockoverride "right_icon" - { - button_visibility_checkbox = { - blockoverride "hidden_commands" - { - visible = "[IsSituationPriority( Situation.Self, 'hidden' )]" - onclick = "[PostCommand( PinSituation( Situation.Self, 'visible' ) )]" - tooltip = "[GetCommandDesc( PinSituation( Situation.Self, 'visible' ) )]" - } - - blockoverride "shown_commands" - { - visible = "[IsSituationPriority( Situation.Self, 'visible' )]" - onclick = "[PostCommand( PinSituation( Situation.Self, 'hidden') )]" - tooltip = "[GetCommandDesc( PinSituation( Situation.Self, 'hidden') )]" - } - } - } - } - - block "current_phase_block" { - vbox = { - margin_left = 10 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_Characterlist - } - - text_single = { - layoutpolicy_horizontal = expanding - - - text = "SITUATION_LIST_SITUATION_PHASE" - align = nobaseline - } - } - } - } - - type vbox_struggle_entry = vbox { - minimumsize = { 527 100 } - layoutpolicy_horizontal = expanding - - button_open_situation = { - datacontext = "[GetPlayer]" - - onclick = "[ToggleGameViewData( 'struggle', Struggle.GetID )]" - - tooltipwidget = { - using = struggle_tooltip - } - - blockoverride "button_illustration" - { - texture = "[Struggle.GetType.GetIllustration]" - } - - blockoverride "button_icon" - { - texture = "[Struggle.GetCurrentPhase.GetIcon]" - } - - blockoverride "button_text" - { - text_single = { - text = "[Struggle.GetNameNoTooltip]" - align = nobaseline - } - } - - blockoverride "right_icon" - { - button_visibility_checkbox = { - blockoverride "hidden_commands" - { - visible = "[IsStrugglePriority( Struggle.Self, 'hidden' )]" - onclick = "[PostCommand( PinStruggle( Struggle.Self, 'visible' ) )]" - tooltip = "[GetCommandDesc( PinStruggle( Struggle.Self, 'visible' ) )]" - } - - blockoverride "shown_commands" - { - visible = "[IsStrugglePriority( Struggle.Self, 'visible' )]" - onclick = "[PostCommand( PinStruggle( Struggle.Self, 'hidden' ) )]" - tooltip = "[GetCommandDesc( PinStruggle( Struggle.Self, 'hidden' ) )]" - } - } - } - } - - vbox = { - margin_left = 10 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area_Characterlist - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "SITUATION_LIST_STRUGGLE_PHASE" - align = nobaseline - } - } - } - - type button_visibility_checkbox = button_round { - size = { 40 40 } - - # Hidden - checkbutton = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/hide_ui.dds" - using = Master_Button_Modify_Texture - - checked = yes - - block "hidden_commands" {} - } - - # Shown - checkbutton = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/observer.dds" - using = Master_Button_Modify_Texture - - checked = no - - block "shown_commands" {} - } - } -} diff --git a/N3OW/gui/window_situation_participation.gui b/N3OW/gui/window_situation_participation.gui deleted file mode 100644 index 4ccc7c73..00000000 --- a/N3OW/gui/window_situation_participation.gui +++ /dev/null @@ -1,356 +0,0 @@ -###################################################### -############# SITUATION PARTICIPATION ################ -###################################################### - -window = { - name = "window_situation_participation" - widgetid = "window_situation_participation" - datacontext = "[SituationParticipationWindow.GetSituation]" - datacontext = "[SituationParticipationWindow.GetCharacterList]" - parentanchor = top|right - size = { 630 935 } - allow_outside = yes - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - position = { -650 100 } - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - position_x = -570 - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SITUATION_PARTICIPATION_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[SituationParticipationWindow.Close]" - } - } - - vbox = { - name = "player_participation" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - hbox = { - name = "character_involvment" - layoutpolicy_horizontal = expanding - margin_left = 28 - margin_bottom = 6 - - background = { - using = Background_Area - margin_top = 8 - margin_bottom = 6 - } - - portrait_head = { - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ).IsValid]" - - # Current participation - text_label_left = { - layoutpolicy_horizontal = expanding - raw_text = "#D Group: [Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ).GetName]" - margin = { 14 4 } - } - expand = {} - } - - expand = {} - } - } - - hbox = { - name = "categories" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - text = "SITUATION_PARTICIPANTS" -# onclick = "[SituationParticipationWindow.SetShowParticipants]" -# down = "[SituationParticipationWindow.IsShowingParticipants]" - - text_single = { - parentanchor = vcenter|right - position = { -12 -2 } - text = "[GetDataModelSize( Situation.GetParticipatingCharacters )]" - default_format = "#low" - } - } - } - - vbox = { - name = "participant_section" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - onclick = "[SituationParticipationWindow.ClearShownParticipantGroup()]" - down = "[SituationParticipationWindow.IsShownParticipantGroupEmpty()]" - text = "SITUATION_PARTICIPATION_WINDOW_GROUP_ALL" - } - expand = {} - } - - fixedgridbox = { - layoutpolicy_horizontal = expanding - - addcolumn = 270 - addrow = 40 - datamodel_wrap = 2 - flipdirection = yes - - datamodel = "[Situation.GetParticipantGroups]" - - item = { - button_standard = { - size = { 260 42 } - onclick = "[SituationParticipationWindow.SetShownParticipantGroup( SituationParticipantGroup.Self )]" - down = "[SituationParticipationWindow.IsShownParticipantGroup( SituationParticipantGroup.Self )]" - raw_text = "#D [SituationParticipantGroup.GetSubRegion.GetName] - [SituationParticipantGroup.GetName] ([GetDataModelSize( SituationParticipantGroup.GetCharacters )])" - } - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - addcolumn = 600 - addrow = 98 - - item = { - widget = { - size = { 524 90 } - - hbox = { - datacontext = "[CharacterListItem.GetCharacter]" - - Background = { - using = Background_Area - } - - portrait_head_small = { - blockoverride "coa" {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 12 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNotMeNoTooltip]" - margin = { 4 0 } - max_width = 520 - align = nobaseline - autoresize = no - default_format = "#high" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - coa_realm_tiny_crown = { - visible = "[Character.HasLandedTitles]" - } - - widget = { - size = { 34 42 } - - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_detractor' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_detractor' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_supporter' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_supporter' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - expand = {} - - hbox = { - margin = { 5 5 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - icon = { - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - size = { 45 45 } - - tooltipwidget = { - faith_tooltip = {} - } - } - - icon = { - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - min_width = 200 - max_width = 200 - text = "SITUATION_CULTURE_CHARACTER_NAME" - align = nobaseline - fontsize_min = 13 - } - } - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - position = { -525 0 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('relation_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('artifact_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_situation_participation_debug.gui b/N3OW/gui/window_situation_participation_debug.gui deleted file mode 100644 index 07015753..00000000 --- a/N3OW/gui/window_situation_participation_debug.gui +++ /dev/null @@ -1,356 +0,0 @@ -###################################################### -############ SITUATION PARTICIPATION DEBUG ########### -###################################################### - -window = { - name = "window_situation_participation_debug" - widgetid = "window_situation_participation_debug" - datacontext = "[SituationParticipationWindow.GetSituation]" - datacontext = "[SituationParticipationWindow.GetCharacterList]" - parentanchor = top|right - size = { 630 935 } - allow_outside = yes - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - position = { -650 100 } - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - position_x = -570 - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - raw_text = "[Situation.GetNameNoTooltip] Participants Debug" - } - - blockoverride "button_close" - { - onclick = "[SituationParticipationWindow.Close]" - } - } - - vbox = { - name = "player_participation" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - hbox = { - name = "character_involvment" - layoutpolicy_horizontal = expanding - margin_left = 28 - margin_bottom = 6 - - background = { - using = Background_Area - margin_top = 8 - margin_bottom = 6 - } - - portrait_head = { - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - visible = "[Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ).IsValid]" - - # Current participation - text_label_left = { - layoutpolicy_horizontal = expanding - raw_text = "#D Group: [Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ).GetName]" - margin = { 14 4 } - } - expand = {} - } - - expand = {} - } - } - - hbox = { - name = "categories" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - text = "SITUATION_PARTICIPANTS" -# onclick = "[SituationParticipationWindow.SetShowParticipants]" -# down = "[SituationParticipationWindow.IsShowingParticipants]" - - text_single = { - parentanchor = vcenter|right - position = { -12 -2 } - text = "[GetDataModelSize( Situation.GetParticipatingCharacters )]" - default_format = "#low" - } - } - } - - vbox = { - name = "participant_section" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - button_standard = { - onclick = "[SituationParticipationWindow.ClearShownParticipantGroup()]" - down = "[SituationParticipationWindow.IsShownParticipantGroupEmpty()]" - text = "SITUATION_PARTICIPATION_WINDOW_GROUP_ALL" - } - expand = {} - } - - fixedgridbox = { - layoutpolicy_horizontal = expanding - - addcolumn = 270 - addrow = 40 - datamodel_wrap = 2 - flipdirection = yes - - datamodel = "[Situation.GetParticipantGroups]" - - item = { - button_standard = { - size = { 260 42 } - onclick = "[SituationParticipationWindow.SetShownParticipantGroup( SituationParticipantGroup.Self )]" - down = "[SituationParticipationWindow.IsShownParticipantGroup( SituationParticipantGroup.Self )]" - raw_text = "#D [SituationParticipantGroup.GetSubRegion.GetName] - [SituationParticipantGroup.GetName] ([GetDataModelSize( SituationParticipantGroup.GetCharacters )])" - } - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - addcolumn = 600 - addrow = 98 - - item = { - widget = { - size = { 524 90 } - - hbox = { - datacontext = "[CharacterListItem.GetCharacter]" - - Background = { - using = Background_Area - } - - portrait_head_small = { - blockoverride "coa" {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 12 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNotMeNoTooltip]" - margin = { 4 0 } - max_width = 520 - align = nobaseline - autoresize = no - default_format = "#high" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - coa_realm_tiny_crown = { - visible = "[Character.HasLandedTitles]" - } - - widget = { - size = { 34 42 } - - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_detractor' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_detractor' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_supporter' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_supporter' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - expand = {} - - hbox = { - margin = { 5 5 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - icon = { - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - size = { 45 45 } - - tooltipwidget = { - faith_tooltip = {} - } - } - - icon = { - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - min_width = 200 - max_width = 200 - text = "SITUATION_CULTURE_CHARACTER_NAME" - align = nobaseline - fontsize_min = 13 - } - } - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - position = { -525 0 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('relation_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('artifact_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_situation_sub_region.gui b/N3OW/gui/window_situation_sub_region.gui deleted file mode 100644 index 79efecae..00000000 --- a/N3OW/gui/window_situation_sub_region.gui +++ /dev/null @@ -1,162 +0,0 @@ -window = { - name = "situation_sub_region_window" - layer = middle - parentanchor = center - size = { 700 500 } - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - vbox = { - datacontext = "[SituationSubRegionWindow.GetSubRegion]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - datacontext = "[SituationSubRegion.GetBazaarBuilding]" - - blockoverride "header_text" - { - text = "VISIT_SUB_REGION_BAZAAR" - } - - blockoverride "button_close" - { - onclick = "[SituationSubRegionWindow.Close]" - } - } - - hbox = { - datacontext = "[SituationSubRegion.GetBazaarBuilding]" - layoutpolicy_horizontal = expanding - margin = { 15 0 } - - icon = { - texture = "[Building.GetTypeIcon]" - size = { 75 65 } - - using = Master_Button_Modify_Texture - } - - vbox = { - text_single = { - layoutpolicy_horizontal = growing - - text = "[Building.GetName]" - align = nobaseline - max_width = 200 - } - - text_single = { - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "[SituationSubRegion.GetNameNoTooltip]" - align = nobaseline - max_width = 200 - } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = growing - datacontext = "[SituationSubRegion.GetCurrentPhase]" - text = "CURRENT_PHASE_IN_SUBREGION_HEADER" - align = right|nobaseline - multiline = yes - max_width = 200 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - margin_left = 5 - } - - fixedgridbox = { - name = "effects" - datacontext = "[SituationSubRegion.GetCurrentPhase.GetType]" - datamodel = "[SituationSubRegion.GetSituation.GetType.GetParticipantGroupTypes]" - layoutpolicy_horizontal = expanding - - addcolumn = 54 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 10 - maxhorizontalslots = 10 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - item = { - icon_situation_phase_effect_participant_group_item = { - datacontext = "[SituationSubRegion.GetSituation]" - } - } - } - } - - expand = {} - - vbox = { - datacontext = "[SituationSubRegion.GetSubRegionInnovation]" - layoutpolicy_horizontal = expanding - - margin = { 0 10 } - margin_bottom = 15 - spacing = 5 - - background = { - using = Background_Area - } - - innovation_item = {} - - expand = {} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 15 - - divider_light = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - } - - button_standard = { - datacontext = "[GetDecisionWithKey('visit_silk_road_market_decision')]" - datacontext = "[SituationSubRegion.GetCenterProvince]" - datacontext = "[Province.GetCounty.GetTitle]" - visible = "[Decision.IsShownForPlayer]" - - size = { 200 33 } - text = "ACTIVITY_SUMMARY_PLAN_TRAVEL" - - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - onclick = "[PreSelectDecisionOption( Title.GetKey )]" - onclick = "[SituationSubRegionWindow.Close]" - tooltip = "TRAVEL_TO_INNOVATION" - } - } - } - } -} - diff --git a/N3OW/gui/window_struggle.gui b/N3OW/gui/window_struggle.gui deleted file mode 100644 index 75f94576..00000000 --- a/N3OW/gui/window_struggle.gui +++ /dev/null @@ -1,1807 +0,0 @@ -###################################################### -##################### STRUGGLE ####################### -###################################################### -window = { - name = "struggle_window" - widgetid = "struggle_window" - datacontext = "[StruggleWindow.GetStruggle]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Background - using = sound_struggle_panel - size = { 687 100% } - - state = { - name = _show - on_start = "[PdxGuiTriggerAllAnimations('struggle_appear')]" - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - position = { 42 0 } - on_start = "[GetVariableSystem.Clear( 'showing_ending_decisions' )]" - on_start = "[GetVariableSystem.Clear( 'struggle_ending_phase_details' )]" - } - - state = { - name = _hide - on_finish = "[PdxGuiTriggerAllAnimations('struggle_hide')]" - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - position = { 75 0 } - } - - margin_widget = { - size = { 100% 100% } - margin = { -10 26 } - - widget = { - size = { 100% 100% } - state = { - name = struggle_appear - delay = 0.1 - using = Animation_Curve_Default - alpha = 1 - duration = 0.8 - } - - state = { - name = struggle_hide - using = Animation_Curve_Default - alpha = 0 - } - background = { - name = "decorative_background" - margin_left = -40 - margin_bottom = -410 - - texture = "[Struggle.GetCurrentPhase.GetBackground]" - using = Mask_Rough_Edges - fittype = centercrop - alpha = 0.9 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up_dark.dds" - blend_mode = normal - mirror = vertical - alpha = 0.6 - } - } - - ###Animated Shine for when the Decision is Possible - icon = { - visible = "[StruggleWindow.HasPossibleEndingDecision]" - texture = "gfx/interface/component_masks/mask_glow.dds" - size = { 400 200 } - alpha = 0 - color = { 0.917 0.8 0.505 1 } - parentanchor = top|hcenter - position = {0 170} - - modify_texture = { - name = "glow_1" - texture = "gfx/interface/component_masks/mask_glow.dds" - alpha = 0 - blend_mode = alphamultiply - } - - state = { - name = active_ending_decision - trigger_when = "[StruggleWindow.HasPossibleEndingDecision]" - next = active_ending_decision_rotate1 - using = Animation_FadeIn_Standard - bezier = { 0.5 0 0.5 1 } - alpha = 0.4 - - modify_texture = { - name = "glow_1" - rotate_uv = 0 - alpha = 0.3 - } - } - - state = { - name = active_ending_decision_rotate1 - next = active_ending_decision_rotate2 - using = Animation_Curve_Default - alpha = 0.3 - duration = 13 - - modify_texture = { - name = "glow_1" - rotate_uv = 360 - alpha = 0.4 - } - } - - state = { - name = active_ending_decision_rotate2 - next = active_ending_decision_rotate1 - using = Animation_Curve_Default - alpha = 0.4 - duration = 13 - - modify_texture = { - name = "glow_1" - rotate_uv = -1 - alpha = 0.3 - } - } - - state = { - name = inactive_ending_decision - using = Animation_FadeIn_Standard - bezier = { 0.5 0 0.5 1 } - alpha = 0 - - modify_texture = { - name = "glow_1" - alpha = 0 - } - } - } - - ### Banner for the current phase - widget = { - size = { 91% 110 } - parentanchor = top|hcenter - position = { 4 125 } - datacontext = "[Struggle.GetCurrentPhase]" - - struggle_phase_based_widget = { - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/point_based_phase_panel_interloper.dds" - } - } - blockoverride "time_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/time_based_phase_panel_interloper.dds" - } - } - } - - struggle_phase_based_widget = { - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/point_based_phase_panel_involved.dds" - } - } - blockoverride "time_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/time_based_phase_panel_involved.dds" - } - } - } - - struggle_phase_based_widget = { - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/point_based_phase_panel_interloper.dds" - } - } - blockoverride "time_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/time_based_phase_panel_interloper.dds" - } - } - } - } - - default_struggle_phase_banner = { - blockoverride "title_visibiliy" { - visible = no - } - - blockoverride "icon_visibiliy" { - visible = no - } - - datacontext = [StruggleWindow.GetStruggle.GetCurrentPhase] - datacontext = [GetPlayer] - position = { 60 100} - size = { 125 145 } - } - - vbox = { - margin_left = 38 - margin_right = 35 - margin_top = 18 - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { # participants - name = "struggle_participants" - layoutpolicy_horizontal = expanding - spacing = 6 - margin_right = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[StruggleWindow.GetStruggle.GetNameNoTooltip]" - } - - blockoverride "button_close" - { - onclick = "[StruggleWindow.Close]" - } - - blockoverride "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - } - vbox = { - margin_top = -15 - spacing = 5 - text_single = { - text = "[Struggle.GetPlayerInvolvementDesc]" - max_width = 650 - } - - button_standard = { - name = "struggle_involvement_button_tutorial_uses_this" - widgetid = "struggle_involvement_button_tutorial_uses_this" - size = { 230 32 } - minimumsize = { 200 0 } - onclick = "[ToggleGameViewData('struggle_involvement', Struggle.GetID)]" - text = "STRUGGLE_INVOLVEMENT_BUTTON" - } - } - } - - vbox = { # Current Phase area - name = "current_phase_area" - margin_top= 18 - layoutpolicy_horizontal = expanding - - state = { - name = struggle_appear - delay = 0.1 - using = Animation_Curve_Default - alpha = 1 - duration = 0.8 - } - - state = { - name = struggle_hide - using = Animation_Curve_Default - alpha = 0 - } - - vbox = { - name = "current_phase_widget" - datacontext = [StruggleWindow.GetStruggle.GetCurrentPhase] - datacontext = [GetPlayer] - allow_outside = yes - layoutpolicy_horizontal = expanding - - state = { - name = active_ending_decision - trigger_when = "[StruggleWindow.HasPossibleEndingDecision]" - using = Animation_FadeIn_Standard - bezier = { 0.5 0 0.5 1 } - } - - state = { - name = inactive_ending_decision - using = Animation_FadeIn_Standard - bezier = { 0.5 0 0.5 1 } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - expand = { - layoutpolicy_horizontal = expanding - } - - hbox = { - name = "current_phase_header" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 250 114 } - - tooltipwidget = { - using = struggle_tooltip_light - } - - container = { - name = "icon" - - icon = { - size = { 74 74 } - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - size = { 74 74 } - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - size = { 72 72 } - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - size = { 54 54 } - position = { 0 -2 } - texture = "[StrugglePhase.GetIcon]" - } - - widget = { - position = { 64 14 } - visible = "[Struggle.IsInTransitionPhase]" - - icon = { - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - parentanchor = center - size = { 40 40 } - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - size = { 35 35 } - texture = "gfx/interface/icons/icon_time.dds" - } - } - } - - spacer = { - size = { 5 10 } - } - - vbox = { - name = "text" - margin_bottom = 8 - margin_left = 30 - layoutpolicy_horizontal = expanding - minimumsize = { 170 1 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "CURRENT_PHASE" - max_width = 170 - using = Font_Size_Medium - margin_bottom = -6 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[StruggleWindow.GetStruggle.GetCurrentPhase.GetNameNoTooltip]" - max_width = 170 - using = Font_Size_Big - default_format = "#high" - } - } - } - - spacer = { - size = { 45 10 } - } - - vbox = { - name = "current_phase_effects" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - maximumsize = { 125 1 } - - text_label_center = { - text = "PHASE_EFFECTS_HEADER" - default_format = "#high" - } - - hbox = { - name = "phase icons" - layoutpolicy_vertical = expanding - spacing = 6 - - container = { - name = "war_effect" - tooltipwidget = phase_effect_tooltip_war - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - size = { 52 52 } - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - position = { 0 -2 } - size = { 36 36 } - texture = "gfx/interface/icons/struggle_effects/war.dds" - } - } - - container = { - name = "culture_effect" - tooltipwidget = phase_effect_tooltip_culture - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - size = { 52 52 } - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - position = { 0 -2 } - size = { 36 36 } - texture = "gfx/interface/icons/struggle_effects/culture.dds" - } - } - - container = { - name = "faith_effect" - tooltipwidget = phase_effect_tooltip_faith - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - size = { 52 52 } - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - position = { 0 -2 } - size = { 36 36 } - texture = "gfx/interface/icons/struggle_effects/faith.dds" - } - } - - container = { - name = "other_effect" - tooltipwidget = phase_effect_tooltip_other - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInterloperCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds" - } - - icon = { - size = { 52 52 } - visible = "[Struggle.IsInvolvedCharacter(GetPlayer)]" - texture = "gfx/interface/icons/struggle_banners/icon_background_02.dds" - } - - icon = { - size = { 52 52 } - visible = "[Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - size = { 36 36 } - texture = "gfx/interface/icons/struggle_effects/other.dds" - } - } - } - } - expand = { - layoutpolicy_horizontal = expanding - } - } - - hbox = { - margin_top = 15 - layoutpolicy_horizontal = expanding - - expand = { - layoutpolicy_horizontal = expanding - } - - ending_decision_button = { - layoutpolicy_horizontal = expanding - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(StruggleWindow.GetEndingDecisions), '(int32)2')]" - tooltip = "ENDING_DECISION_MULTIPLE" - - blockoverride onclick { - onclick = "[VariableSystem.Toggle('showing_ending_decisions')]" - } - } - - ending_decision_button = { - layoutpolicy_horizontal = expanding - visible = "[LessThanOrEqualTo_int32(GetDataModelSize(StruggleWindow.GetEndingDecisions), '(int32)1')]" - tooltipwidget = { - decision_tooltip = { - datacontext = "[StruggleWindow.GetTopDecision]" - } - } - } - - expand = { - layoutpolicy_horizontal = expanding - } - } - - hbox = { # next phase info - name = "next_phase_info" - visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" - layoutpolicy_horizontal = expanding - maximumsize = {550 1} - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = struggle_appear - delay = 0.3 - using = Animation_Curve_Default - alpha = 1 - duration = 0.5 - } - - state = { - name = struggle_hide - using = Animation_Curve_Default - alpha = 0 - } - - vbox = { # Phase progressing - visible = "[Not( Struggle.IsInTransitionPhase )]" - margin= {20 10} - spacing = 5 - - text_single = { - text = STRUGGLE_NEXT_PHASE_PROGRESS_LABEL - max_width = 650 - using = Font_Size_Medium - autoresize = yes - } - text_single = { - text = STRUGGLE_NEXT_PHASE_PROGRESS_DESC - max_width = 500 - default_format = "#low;italic" - using = Font_Size_Small - } - expand = {} - } - - vbox = { # In phase transition - visible = "[Struggle.IsInTransitionPhase]" - - margin_top = 10 - spacing = 5 - - text_single = { - text = STRUGGLE_NEXT_PHASE_TRANSITION_LABEL - max_width = 650 - using = Font_Size_Medium - } - text_single = { - text = STRUGGLE_NEXT_PHASE_TRANSITION_DESC - max_width = 500 - default_format = "#low;italic" - using = Font_Size_Small - } - expand = {} - } - - background = { - using = Background_Area_Dark - } - } - } - } - } - - vbox = { - name = "next_phase_area_tutorial_uses_this" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" - margin_top = -5 - - widget = { # Phases - layoutpolicy_horizontal = expanding - size = { 200 186 } - scissor = yes - - state = { - name = struggle_appear - delay = 0.1 - using = Animation_Curve_Default - alpha = 1 - duration = 0.8 - } - - state = { - name = struggle_hide - using = Animation_Curve_Default - alpha = 0 - } - - vbox = { - name = "next_phase_area" - - flowcontainer = { - name = "next_phase_widgets" - datamodel = "[StruggleWindow.GetNextPhases]" - - item = { - next_phase_banner = {} - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - - visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" - - datacontext = "[StruggleWindow.GetSelectedPhase]" - - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - visible = "[StrugglePhase.IsContentVisible( GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ) )]" - spacing = 3 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'struggle_ending_phase_details' )]" - } - - layoutpolicy_horizontal = expanding - max_width = 580 - margin = {15 10} - - background = { - using = Background_Area_Light - tintcolor = {0.8 0.5 0.5 2.0} - margin = { -1 -1 } - } - - background = { - using = Background_Frame - tintcolor = {0.8 0.5 0.5 2.0} - } - icon = { - size = {30 30 } - texture = "gfx/interface/icons/struggle_types/ending_phase_icon.dds" - } - text_single = { - text = "STRUGGLE_ENDING_LABEL" - align = nobaseline - - } - expand = { - layoutpolicy_horizontal = expanding - } - - button_standard = { - layoutpolicy_horizontal = expanding - text = "STRUGGLE_ENDING_EFFECTS_BUTTON" - onclick = "[VariableSystem.Toggle('struggle_ending_phase_details')]" - } - } - - vbox = { # catalyst info - name = "catalyst_information_area" - visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = "catalyst_refresh" - using = Animation_Refresh_FadeOut - } - - state = { - using = Animation_Refresh_FadeIn - } - - state = { - name = struggle_appear - delay = 0.5 - using = Animation_Curve_Default - alpha = 1 - duration = 0.4 - } - - state = { - name = struggle_hide - using = Animation_Curve_Default - alpha = 0 - } - - spacer = { - size = { 0 5 } - } - - text_label_center = { - text = "PHASE_CATALYST_DESCRIPTION_HEADER" - max_width = 560 - fontsize = 18 - } - - text_single = { - text = "PHASE_CATALYST_DESCRIPTION_HEADER_INFO" - max_width = 560 - } - - spacer = { - size = { 0 15 } - } - - scrollbox = { - size = { 610 270 } - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "catalyst_entries" - datamodel = "[StruggleWindow.GetCatalystsForSelectedPhase]" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - margin_left = 10 - margin_right = 15 - maximumsize = { 1000 50 } - - - item = { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - widget = { - size = { 60 55} - - background = { - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 6 - - } - - background = { - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 6 - - } - - hbox = { - layoutpolicy_horizontal = expanding - icon = { - size = { 25 25 } - texture = "[StruggleWindow.GetSelectedPhase.GetIcon]" - } - text_single = { - text = "[CatalystEntry.GetWorth|+=]" - align = nobaseline - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "PHASE_CATALYST_DESCRIPTION_ENTRY" - autoresize = no - align = left|nobaseline - max_width = 520 - margin = { 10 5 } - } - - background = { - using = Background_Area_Dark - } - - widget = { - size = { 50 60 } - - background = { - visible = "[GreaterThan_int32( Struggle.GetNumCompletionsOfCatalystForPhase( StruggleWindow.GetSelectedPhase, CatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - color = { 0.4 0.603 0.298 1 } - alpha = 0.6 - } - - background = { - visible = "[GreaterThan_int32( Struggle.GetNumCompletionsOfCatalystForPhase( StruggleWindow.GetSelectedPhase, CatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - color = { 0.4 0.603 0.298 1 } - alpha = 0.1 - } - - background = { - visible = "[EqualTo_int32( Struggle.GetNumCompletionsOfCatalystForPhase( StruggleWindow.GetSelectedPhase, CatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.4 - } - - background = { - visible = "[EqualTo_int32( Struggle.GetNumCompletionsOfCatalystForPhase( StruggleWindow.GetSelectedPhase, CatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - using = Color_Grey - alpha = 0.1 - } - - text_single = { - parentanchor = center - align = nobaseline - text = "PHASE_CATALYST_COMPLETIONS" - } - } - } - } - } - } - } - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - - scrollbox = { - size = { -1 320 } - visible = "[VariableSystem.Exists('showing_ending_decisions')]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { # Ending Decisions - name = "ending_decision_area_tutorial_uses_this" - widgetid = "ending_decision_area_tutorial_uses_this" - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - name = "next_phase_area" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - margin_bottom = 15 - spacing = 20 - - background = { - using = Background_Area - } - - background = { - using = Background_Area - - margin_bottom = -435 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 20 - - text_label_center = { - datacontext = "[Struggle.GetCurrentPhase]" - layoutpolicy_horizontal = expanding - text = "ENDING_DECISION_AREA_HEADER" - align = center - autoresize = yes - using = Font_Size_Medium - max_width = 580 - } - button_close = { - onclick = "[VariableSystem.Toggle('showing_ending_decisions')]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(StruggleWindow.GetEndingPhases), '(int32)1')]" - spacing = 10 - - text_label_center= { - text = "ENDING_PHASE_AREA_LABEL" - layoutpolicy_horizontal = expanding - align = center - autoresize = yes - max_width = 580 - } - - hbox = { - spacing = 20 - - datamodel = "[StruggleWindow.GetEndingPhases]" - - background = { - using = Background_Area_Dark - alpha = 0.7 - margin = { 50 -30 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphaMultiply - } - } - item = { - struggle_ending_phase_banner = { - - blockoverride "banner_position" { - position = { 0 0 } - } - - blockoverride "icon_position" { - position = { 0 10 } - } - } - } - } - } - - vbox = { - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(StruggleWindow.GetEndingDecisions), '(int32)1')]" - spacing = 10 - - text_label_center= { - text = "ENDING_DECISION_AREA_LABEL" - layoutpolicy_horizontal = expanding - align = center - autoresize = yes - max_width = 580 - } - - text_single = { - text = "ENDING_DECISION_AREA_DESCRIPTION" - multiline = yes - align = center - autoresize = yes - max_width = 580 - margin_bottom = 15 - } - - fixedgridbox = { - name = "ending_decisions" - datamodel = "[StruggleWindow.GetEndingDecisions]" - addcolumn = 190 - addrow = 300 - maxhorizontalslots = 3 - flipdirection = yes - - item = { - button_standard_clean = { - visible = "[Decision.IsShownForPlayer]" - size = { 180 300 } - onclick = "[StruggleWindow.OnEndingDecisionClick(Decision.Self)]" - - tooltipwidget = { - decision_tooltip = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - name = "decision_background" - texture = "[Decision.GetExtraPicture]" - using = Mask_Rough_Edges - fittype = centercrop - alpha = "[Select_float(Decision.IsPossibleForPlayer, '(float)1', '(float)0.4')]" - - margin = { -1 -1 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - translate_uv = { 0 -0.1 } - } - } - - hbox = { - visible = "[Not(Decision.IsPossibleForPlayer)]" - layoutpolicy_horizontal = expanding - - margin = { 0 5 } - - warning_icon = { - size = { 30 30 } - name = "not_possible" - } - - background = { - using = Background_Area_Dark - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = growing - - background = { - using = Background_Area_Dark - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - background = { - texture ="gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = Corneredtiled - color = { 0.6 0.7 0.65 0.2 } - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - text_single = { - visible = "[Decision.IsPossibleForPlayer]" - max_width = 170 - margin = { 0 15 } - - text = "[Decision.GetTitleForPlayer]" - default_format = "#clickable" - align = center - } - - text_single = { - visible = "[Not(Decision.IsPossibleForPlayer)]" - max_width = 170 - margin = { 0 15 } - - text = "[Decision.GetTitleForPlayer]" - default_format = "#low" - align = center - } - } - } - } - } - } - } - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - } - } - } - } - - struggle_mini_map_mode = {} - - window_ending_phase_effects = {} -} - -types Struggle -{ - type next_phase_banner = container { - button = { - size = { 148 160 } - position = { 0 26 } - - onclick = "[StruggleWindow.SetSelectedPhase(StrugglePhase.Self)]" - onclick = "[DefaultOnStrugglePhaseClick(Struggle.GetID, StrugglePhase.Self)]" - onclick = "[PdxGuiTriggerAllAnimations('catalyst_refresh')]" - - enabled = "[Or( Not( Struggle.IsInTransitionPhase ), ObjectsEqual( StrugglePhase.Self, Struggle.GetNextPhase ) )]" - - tooltipwidget = { - struggle_phase_tooltip = {} - } - - widget = { - visible = "[Not( VariableSystem.Exists('showing_ending_decisions') )]" - size = { 46 60 } - position = { 0 -27 } - parentanchor = hcenter|top - - background = { - using = Background_Area_Dark - } - } - - background = { - visible = "[ObjectsEqual(StruggleWindow.GetSelectedPhase, StrugglePhase.Self)]" - using = Background_Area_Dark - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - alpha = 1 - } - } - - default_struggle_phase_banner = { - - blockoverride "default_point_content" { - container = { - parentanchor = center - position = { 0 30 } - current_struggle_phase_progress = { } - } - } - - blockoverride "default_time_content" { - container = { - parentanchor = center - position = { 0 30 } - current_struggle_phase_progress = { } - } - } - - blockoverride "default_ending_content" { - container = { - parentanchor = center - position = { 0 30 } - current_struggle_phase_progress = { } - } - } - - icon = { - name = "arrow" - visible = "[ObjectsEqual(Struggle.GetCurrentLeadingPhase, StrugglePhase.Self)]" - parentanchor = center - texture = "gfx/interface/window_struggle/arrow.dds" - size = { 30 18 } - position = { -1 -90 } - allow_outside = yes - } - - icon = { - name = "funnel_right" - visible = "[ObjectsEqual(StruggleWindow.GetSelectedPhase, StrugglePhase.Self)]" - parentanchor = center - texture = "gfx/interface/window_struggle/funnel_divider.dds" - size = { 322 100 } - position = { 225 33 } - using = Color_Blue - alpha = 0.4 - - } - - icon = { - name = "funnel_left" - visible = "[ObjectsEqual(StruggleWindow.GetSelectedPhase, StrugglePhase.Self)]" - parentanchor = center - mirror = horizontal - texture = "gfx/interface/window_struggle/funnel_divider.dds" - size = { 322 100 } - position = { -225 33 } - using = Color_Grey - alpha = 0.4 - } - } - } - } - - type struggle_phase_based_widget = widget { - block "size" { - size = { 100% 100% } - } - - widget = { - size = { 100% 100% } - visible = "[StrugglePhase.IsContentVisible(GetDefine( 'NStruggle', 'POINT_BASED_PHASE_WIDGET_CONTENT' ))]" - block "point_based_widget_content" {} - } - - widget = { - size = { 100% 100% } - visible = "[StrugglePhase.IsContentVisible(GetDefine( 'NStruggle', 'TIME_BASED_PHASE_WIDGET_CONTENT' ))]" - block "time_based_widget_content" {} - } - - widget = { - size = { 100% 100% } - visible = "[StrugglePhase.IsContentVisible(GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ))]" - block "ending_widget_content" {} - } - } - - type current_struggle_phase_based_widget = widget { - block "size" { - size = { 100% 100% } - } - - widget = { - size = { 100% 100% } - visible = "[Struggle.GetCurrentPhase.IsContentVisible(GetDefine( 'NStruggle', 'POINT_BASED_PHASE_WIDGET_CONTENT' ))]" - block "point_based_widget_content" {} - } - - widget = { - size = { 100% 100% } - visible = "[Struggle.GetCurrentPhase.IsContentVisible(GetDefine( 'NStruggle', 'TIME_BASED_PHASE_WIDGET_CONTENT' ))]" - block "time_based_widget_content" {} - } - - widget = { - size = { 100% 100% } - visible = "[Struggle.GetCurrentPhase.IsContentVisible(GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ))]" - block "ending_widget_content" {} - } - } - - type struggle_phase_based_banner = widget { - size = { 100% 100% } - - struggle_phase_based_widget = { - blockoverride "point_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/current_phase_point_based_phase.dds" - - block "current_state_background_texture" { } - } - - block "point_based_banner_content" {} - } - - blockoverride "time_based_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/current_phase_time_based_phase.dds" - - block "current_state_background_texture" { } - } - - block "timed_based_banner_content" {} - } - - blockoverride "ending_widget_content" { - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/current_phase_ending_phase.dds" - block "current_state_background_texture" {} - } - - widget = { - size = { 100% 100% } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/next_phase_ending_fire_01.dds" - alpha = 0.2 - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0.2 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1 - alpha = 0 - } - } - - icon = { - size = { 100% 100% } - texture = "gfx/interface/window_struggle/next_phase_ending_fire_02.dds" - alpha = 0 - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 1 - alpha = 0.2 - } - } - } - - block "ending_banner_content" {} - } - } - - widget = { - parentanchor = center - size = { 100% 100% } - - text_single = { - block "title_visibiliy" {} - parentanchor = center - position = { 0 -46 } - text = "[StrugglePhase.GetNameNoTooltip]" - default_format = "#high" - } - - container = { - parentanchor = center - block "icon_position" {} - block "icon_visibiliy" {} - icon = { - size = { 65 65 } - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - icon = { - parentanchor = center - position = { 0 -1 } - size = { 45 45 } - texture = "[StrugglePhase.GetIcon]" - } - } - } - } - - type default_struggle_phase_banner = struggle_phase_based_banner { - blockoverride "current_state_background_texture" { - modify_texture = { - visible = "[And(ObjectsEqual(StruggleWindow.GetSelectedPhase, StrugglePhase.Self), Not(VariableSystem.Exists('showing_ending_decisions')))]" - texture = "gfx/interface/colors/white.dds" - alpha = 0.4 - blend_mode = overlay - } - } - - blockoverride "point_based_banner_content" { - block "default_point_content" {} - - icon = { - size = { 21 21 } - parentanchor = top|hcenter - position = { 0 7} - texture = "gfx/interface/icons/struggle_types/point_based_phase_icon.dds" - } - } - - blockoverride "timed_based_banner_content" { - block "default_time_content" {} - icon = { - size = { 24 24 } - parentanchor = top|hcenter - position = { 0 } - texture = "gfx/interface/icons/struggle_types/time_based_phase_icon.dds" - } - } - - blockoverride "ending_banner_content" { - block "default_ending_content" {} - icon = { - size = { 23 23 } - parentanchor = top|hcenter - position = { 0 4} - texture = "gfx/interface/icons/struggle_types/ending_phase_icon.dds" - } - } - - } - - type current_struggle_phase_progress = current_struggle_phase_based_widget { - blockoverride "point_based_widget_content" { - progressbar_standard = { - visible = "[ObjectsEqual(Struggle.GetCurrentLeadingPhase, StrugglePhase.Self)]" - parentanchor = center - size = { 80 12 } - value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]" - progresstexture = "gfx/interface/progressbars/progress_orange.dds" - } - - progressbar_standard = { - visible = "[Not(ObjectsEqual(Struggle.GetCurrentLeadingPhase, StrugglePhase.Self))]" - parentanchor = center - size = { 80 12 } - value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]" - progresstexture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - - text_single = { - parentanchor = center - position = { 0 10 } - text = "POINT_BASED_PHASE_VALUE" - default_format = "#high" - } - } - - blockoverride "time_based_widget_content" { - text_single = { - parentanchor = center - position = { 0 10 } - text = "TIME_BASED_PHASE_VALUE" - default_format = "#high" - } - } - } - - ### Ending Phase Banner - type struggle_ending_phase_banner = container { - button = { - size = { 148 160 } - block "banner_position" { - position = { 0 26 } - } - tooltipwidget = { - struggle_phase_tooltip = {} - } - - default_struggle_phase_banner = { } - } - } - - type ending_decision_button = button_primary { - name = "end_struggle_button" - enabled = "[GreaterThan_int32(GetDataModelSize(StruggleWindow.GetEndingDecisions), '(int32)0')]" - - size = {100 60 } - - block onclick {} - clicksound = "event:/DLC/FP2/SFX/UI/fp2_struggle_ending_decision_view" - - text_single = { - parentanchor = center - position = { 0 -15 } - text = "[SelectLocalization(Or(GreaterThan_int32(GetDataModelSize(StruggleWindow.GetEndingDecisions), '(int32)1'),GreaterThan_int32(GetDataModelSize(StruggleWindow.GetEndingPhases), '(int32)1')), 'ENDING_DECISION_BUTTON_LABEL_MULTIPLE', 'ENDING_DECISION_BUTTON_LABEL_SINGLE')]" - max_width = 230 - using = Font_Size_Medium - default_format = "#clickable" - alwaystransparent = yes - } - - text_single = { - visible = "[And( StruggleWindow.HasPossibleEndingDecision, Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) )]" - parentanchor = center - position = { 0 8 } - max_width = 180 - text = "ENDING_DECISION_AVAILABLE" - default_format = "#clickable" - alwaystransparent = yes - } - - text_single = { - visible = "[Or( Not( StruggleWindow.HasPossibleEndingDecision ), Not( Struggle.IsCharacterInvolvedOrInterloper( GetPlayer ) ) )]" - parentanchor = center - position = { 0 8 } - max_width = 180 - text = "ENDING_DECISION_UNAVAILABLE" - default_format = "#clickable" - alwaystransparent = yes - } - } - - type struggle_mini_map_mode = mini_map_mode { - parentanchor = bottom|left - widgetanchor = bottom|right - position = { -350 -25 } - - blockoverride "map_mode_buttons" - { - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'struggle' )]" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'realms' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_1" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'religions' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_3" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'cultures' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_2" - } - } - } - } - - type window_ending_phase_effects = window { - parentanchor = center - widgetanchor = center - - using = Window_Movable - using = Window_Background - using = Window_Decoration_Spike - - visible = "[VariableSystem.Exists('struggle_ending_phase_details')]" - - datacontext = "[StruggleWindow.GetSelectedPhase]" - - size = { 630 935 } - layer = middle - position = { -700 0 } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - layoutpolicy_horizontal = expanding - text = "STRUGGLE_ENDING_PHASE_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[VariableSystem.Toggle( 'struggle_ending_phase_details' )]" - shortcut = "close_window" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 550 220 } - - background = { - texture = "[StrugglePhase.GetDetailBackground]" - margin_top = 10 - alpha = 0.7 - using = Mask_Rough_Edges - } - } - - text_multi = { - name = "description" - minimumsize = { 550 -1 } - maximumsize = { 550 -1 } - margin = { 15 15 } - autoresize = yes - text = "STRUGGLE_PHASE_DESCRIPTION" - using = Font_Size_Small - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/icons/lifestyle_tree_backgrounds/skulduggery.dds" - tintcolor = { 0.6 0.8 0.8 0.8 } - - margin = { 0 5 } - using = Mask_Rough_Edges - alpha = 0.8 - fittype = centercrop - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corners_bottom.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_rough_edges.dds" - blend_mode = overlay - alpha = 0.4 - } - } - - text_label_center = { - margin = { 40 10 } - max_width = 450 - text = "STRUGGLE_ENDING_PHASE_EFFECTS_TITLE" - } - - text_multi = { - visible = "[Not( StringIsEmpty( Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self ) ) )]" - layoutpolicy_horizontal = expanding - margin = { 15 15 } - max_width = 550 - autoresize = yes - text = "[Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self )]" - } - - text_single = { - visible = "[StringIsEmpty( Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self ) )]" - margin = { 15 15 } - max_width = 550 - text = "STRUGGLE_ENDING_PHASE_NO_EFFECT_DESC" - alwaystransparent = yes - } - } - - expand = {} - } - } - } - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - background = { - using = Background_Area_Light - tintcolor = {0.8 0.5 0.5 2.0} - margin = { -1 -1 } - } - - background = { - using = Background_Frame - tintcolor = {0.8 0.5 0.5 2.0} - } - - icon = { - size = {30 30 } - texture = "gfx/interface/icons/struggle_types/ending_phase_icon.dds" - } - - text_multi = { - align = nobaseline - max_width = 500 - layoutpolicy_horizontal = expanding - margin_left = 10 - text = STRUGGLE_ENDING_PHASE_WARNING_MESSAGE - alwaystransparent = no - } - } - } - } - } -} diff --git a/N3OW/gui/window_struggle_involvement.gui b/N3OW/gui/window_struggle_involvement.gui deleted file mode 100644 index f79661cd..00000000 --- a/N3OW/gui/window_struggle_involvement.gui +++ /dev/null @@ -1,634 +0,0 @@ -###################################################### -############# STRUGGLE INVOLVEMENT ################### -###################################################### - -window = { - name = "struggle_involvement_window" - widgetid = "struggle_involvement_window" - datacontext = "[StruggleInvolvementWindow.GetStruggle]" - datacontext = "[StruggleInvolvementWindow.GetCharacterList]" - parentanchor = top|right - size = { 630 935 } - allow_outside = yes - layer = middle - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _show - position = { -650 100 } - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - position_x = -570 - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "STRUGGLE_INVOLVEMENT_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[StruggleInvolvementWindow.Close]" - } - } - - vbox = { - name = "player_involvement" - datacontext = "[GetPlayer]" - layoutpolicy_horizontal = expanding - - hbox = { - name = "character_involvment" - layoutpolicy_horizontal = expanding - margin_left = 28 - margin_bottom = 6 - - background = { - using = Background_Area - margin_top = 8 - margin_bottom = 6 - } - - portrait_head = { - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Current involvement - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Struggle.GetPlayerInvolvementDesc]" - margin = { 14 4 } - } - - # Involvement requirements met - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 60 } - margin_top = 8 - margin_left = 24 - text = "[Struggle.GetPlayerInvolvementDetails]" - align = left|top - } - } - - expand = {} - } - } - - hbox = { - name = "categories" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - text = "STRUGGLE_PARTICIPANTS" - onclick = "[StruggleInvolvementWindow.SetShowParticipants]" - down = "[StruggleInvolvementWindow.IsShowingParticipants]" - - text_single = { - parentanchor = vcenter|right - position = { -12 -2 } - text = "[StruggleInvolvementWindow.GetParticipantsAmount]" - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - text = "game_concept_faiths" - onclick = "[StruggleInvolvementWindow.SetShowFaiths]" - down = "[StruggleInvolvementWindow.IsShowingFaiths]" - - text_single = { - parentanchor = vcenter|right - position = { -12 -2 } - text = "[GetDataModelSize(StruggleInvolvementWindow.GetInvolvedFaiths)]" - default_format = "#low" - } - } - - button_tab = { - layoutpolicy_horizontal = expanding - text = "game_concept_cultures" - onclick = "[StruggleInvolvementWindow.SetShowCultures]" - down = "[StruggleInvolvementWindow.IsShowingCultures]" - - text_single = { - parentanchor = vcenter|right - position = { -12 -2 } - text = "[GetDataModelSize(StruggleInvolvementWindow.GetInvolvedCultures)]" - default_format = "#low" - } - } - } - - vbox = { - name = "participant_section" - visible = [StruggleInvolvementWindow.IsShowingParticipants] - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - margin = { 34 0 } - minimumsize = { 0 80 } - text = "STRUGGLE_INVOLVEMENT_WINDOW_PARTICIPANT_DESC" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 20 - margin_bottom = -2 - spacing = 5 - - button_standard = { - size = { 80 30 } - onclick = "[StruggleInvolvementWindow.SetShowAllParticipants]" - down = "[StruggleInvolvementWindow.IsShowingAllParticipants]" - text = "STRUGGLE_FILTER_PARTICIPANTS_ALL" - } - - button_standard = { - size = { 170 30 } - onclick = "[StruggleInvolvementWindow.SetShowInvolvedParticipants]" - down = "[StruggleInvolvementWindow.IsShowingInvolvedParticipants]" - text = "STRUGGLE_FILTER_PARTICIPANTS_INVOLVED" - } - - button_standard = { - size = { 170 30 } - onclick = "[StruggleInvolvementWindow.SetShowInterloperParticipants]" - down = "[StruggleInvolvementWindow.IsShowingInterloperParticipants]" - text = "STRUGGLE_FILTER_PARTICIPANTS_INTERLOPER" - } - - expand = {} - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - addcolumn = 600 - addrow = 98 - - item = { - widget = { - size = { 524 90 } - - hbox = { - datacontext = "[CharacterListItem.GetCharacter]" - - Background = { - using = Background_Area - } - - portrait_head_small = { - blockoverride "coa" {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 12 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "[Character.GetUINameNotMeNoTooltip]" - margin = { 4 0 } - max_width = 520 - align = nobaseline - autoresize = no - default_format = "#high" - using = Font_Size_Medium - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 6 - - coa_realm_tiny_crown = { - visible = "[Character.HasLandedTitles]" - } - - widget = { - size = { 34 42 } - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - visible = "[Struggle.IsInvolvedCharacter(Character.Self)]" - - blockoverride "point_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/point_involved_banner_small.dds" - } - } - - blockoverride "time_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/time_involved_banner_small.dds" - } - } - } - - struggle_phase_based_widget = { - datacontext = "[Struggle.GetCurrentPhase]" - visible = "[Struggle.IsInterloperCharacter(Character.Self)]" - - blockoverride "point_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/point_interloper_banner_small.dds" - } - } - - blockoverride "time_based_widget_content" { - highlight_icon = { - size = { 100% 100% } - texture = "gfx/interface/icons/struggle_banners/time_interloper_banner_small.dds" - } - } - } - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_detractor' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_detractor' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - icon_trait = { - datacontext = "[GetTrait( 'fp3_struggle_supporter' )]" - visible = "[Character.HasTrait( GetTrait( 'fp3_struggle_supporter' ) )]" - blockoverride "icon_size" - { - size = { 40 40 } - } - } - expand = {} - - hbox = { - margin = { 5 5 } - - background = { - using = Background_Area_Dark - alpha = 0.8 - } - - icon = { - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - size = { 45 45 } - - tooltipwidget = { - faith_tooltip = {} - } - } - - icon = { - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - min_width = 200 - max_width = 200 - text = "STRUGGLE_CULTURE_CHARACTER_NAME" - align = nobaseline - fontsize_min = 13 - } - } - } - } - } - } - } - } - } - } - } - - vbox = { - name = "culture_section" - visible = [StruggleInvolvementWindow.IsShowingCultures] - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_left = 20 - - icon = { - texture = "gfx/interface/icons/icon_culture.dds" - size = { 44 44 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 80 } - margin = { 15 0 } - text = "STRUGGLE_INVOLVEMENT_WINDOW_CULTURE_DESC" - align = nobaseline - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = [StruggleInvolvementWindow.GetInvolvedCultures] - spacing = 3 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 40 } - - background = { - using = Background_Area - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - max_width = 200 - min_width = 200 - - background = { - using = Background_Area_Dark - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Culture.GetName]" - autoresize = no - default_format = "#high" - using = Font_Size_Medium - align = left|nobaseline - margin_left = 20 - } - } - - expand = {} - - text_single = { - text = "STRUGGLE_INVOLVEMENT_WINDOW_CULTURE_COUNT" - layoutpolicy_horizontal = expanding - align = right|nobaseline - margin_right = 18 - fontsize_min = 10 - max_width = 330 - } - } - } - } - } - } - } - - vbox = { - name = "faith_section" - visible = [StruggleInvolvementWindow.IsShowingFaiths] - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - datacontext = "[GetPlayer.GetFaith]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - margin_left = 20 - - icon = { - texture = "[Faith.GetIcon]" - size = { 44 44 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 80 } - margin = { 15 0 } - text = "STRUGGLE_INVOLVEMENT_WINDOW_FAITH_DESC" - align = nobaseline - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = [StruggleInvolvementWindow.GetInvolvedFaiths] - spacing = 12 - margin_left = 0 - - item = { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 12 - margin_left = 14 - - background = { - using = Background_Area - } - - vbox = { - spacer = { - size = { 0 13 } - } - - icon = { - texture = [Faith.GetIcon] - size = { 50 50 } - - tooltipwidget = { - faith_tooltip = {} - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "faith_title" - layoutpolicy_horizontal = expanding - margin = { 10 8 } - - background = { - using = Background_Area_Dark - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Faith.GetName]" - max_width = 200 - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - } - - expand = {} - - text_single = { - text = "[Faith.GetReligion.GetName]" - align = nobaseline - max_width = 200 - default_format = "#weak" - } - } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 440 - text = "STRUGGLE_INVOLVEMENT_WINDOW_FAITH_COUNT" - align = nobaseline - } - } - } - } - } - } - } - } - } - - window_character_filter = { - position = { -525 0 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('relation_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('inspiration_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('sexuality_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('artifact_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_succession_change_law.gui b/N3OW/gui/window_succession_change_law.gui deleted file mode 100644 index c493c1b0..00000000 --- a/N3OW/gui/window_succession_change_law.gui +++ /dev/null @@ -1,463 +0,0 @@ -###################################################### -############### CHANGE SUCCESSION LAW ################ -###################################################### - -window = { - name = "succession_law_change_window" - size = { 1200 875 } - position = { 610 100 } - layer = middle - - using = Window_Background - using = Window_Decoration - using = Animation_ShowHide_Standard - - vbox = { - using = Window_Margins - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - #restrictparent_min = yes - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "SUCCESSION_LAW_CHANGE_WINDOW_TITLE" - } - - blockoverride "button_close" - { - onclick = "[SuccessionLawChangeWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ## Left Side - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 312 } - margin = { 14 14 } - spacing = 10 - - background = { - using = Background_Area - } - - text_label_center = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_CHOOSE_NEW" - } - - vbox = { - visible = "[DataModelHasItems(SuccessionLawChangeWindow.GetPartitionLaws)]" - spacing = 10 - - text_single = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_PARTITION_LAWS" - } - - hbox = { - datamodel = "[SuccessionLawChangeWindow.GetPartitionLaws]" - spacing = 10 - - item = { - vbox = { - button_default_law_choice = {} - button_clan_law_choice = {} - } - } - } - } - - vbox = { - visible = "[DataModelHasItems(SuccessionLawChangeWindow.GetAppointmentLaws)]" - spacing = 10 - - text_single = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_APPOINTMENT_LAWS" - } - - hbox = { - datamodel = "[SuccessionLawChangeWindow.GetAppointmentLaws]" - spacing = 10 - - item = { - vbox = { - button_default_law_choice = {} - button_clan_law_choice = {} - } - } - } - } - - vbox = { - visible = "[DataModelHasItems(SuccessionLawChangeWindow.GetSingleHeirLaws)]" - spacing = 5 - - text_single = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_SINGLE_HEIR_LAWS" - } - - hbox = { - datamodel = "[SuccessionLawChangeWindow.GetSingleHeirLaws]" - spacing = 10 - - item = { - vbox = { - button_default_law_choice = {} - button_clan_law_choice = {} - } - } - } - } - - vbox = { - visible = "[DataModelHasItems(SuccessionLawChangeWindow.GetOtherLaws)]" - margin_left = 12 - - fixedgridbox = { - datamodel = "[SuccessionLawChangeWindow.GetOtherLaws]" - addcolumn = 130 - addrow = 90 - datamodel_wrap = 5 - flipdirection = yes - - item = { - container = { - button_default_law_choice = {} - button_clan_law_choice = {} - } - } - } - } - - hbox = { - datacontext = "[SuccessionLawChangeWindow.GetDynastyHouse]" - datacontext = "[DynastyHouse.GetCurrentHouseUnityStage]" - visible = "[And( DynastyHouse.IsValid, DynastyHouse.HasHouseUnity)]" - - margin = { 20 10 } - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.6 - } - - text_single = { - text = "HOUSE_UNITY_VALUE_TT_TITLE" - align = nobaseline - } - - text_single = { - text = "[DynastyHouse.GetHouseUnityValue|0]" - align = nobaseline - } - - spacer = { - size = { 40 1 } - } - - text_single = { - text = "[HouseUnityStage.GetName]" - align = nobaseline - } - - icon = { - size = { 40 40 } - texture = "[HouseUnityStage.GetIcon]" - } - } - expand = {} - } - - vbox = { - visible = "[And(SuccessionLawChangeWindow.GetSelectedLaw.ShouldBeApproved, Not( GetPlayer.GetGovernment.HasRule( 'deny_powerful_vassal' )))]" - layoutpolicy_horizontal = expanding - margin = { 0 20 } - - background = { - using = Background_Area - } - - expand = {} - - vbox = { - spacing = 6 - - text_label_center = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_VASSALS" - } - - text_multi = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_VASSALS_DESC" - default_format = "#weak" - autoresize = yes - max_width = 500 - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 28 - - fixedgridbox = { - datamodel = "[SuccessionLawChangeWindow.GetPowerfulVassals]" - layoutpolicy_horizontal = expanding - - addcolumn = 120 - addrow = 155 - datamodel_wrap = 5 - flipdirection = yes - - item = { - flowcontainer = { - direction = vertical - - portrait_head = {} - - flowcontainer = { - visible = "[Character.IsOpposing]" - parentanchor = hcenter - ignoreinvisible = yes - tooltip = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_OPPOSE_TT" - using = tooltip_se - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - text_single = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_OPPOSE" - } - } - - text_single = { - visible = "[Not( Character.IsOpposing)]" - parentanchor = hcenter - text = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_APPROVE" - - tooltip = "SUCCESSION_LAW_CHANGE_WINDOW_POWERFUL_APPROVE_TT" - using = tooltip_se - } - } - } - } - } - - expand = {} - } - - vbox = { - visible = "[Not(SuccessionLawChangeWindow.GetSelectedLaw.ShouldBeApproved)]" - layoutpolicy_horizontal = expanding - #layoutpolicy_vertical = expanding - margin = { 0 20 } - - background = { - using = Background_Area_Dark - alpha = 0.6 - } - - vbox = { - spacing = 6 - - text_label_center = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_CLAN_TITLE" - } - - text_multi = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_CLAN_DESC" - default_format = "#weak" - autoresize = yes - max_width = 500 - } - } - } - } - - ## Right Side - vbox_law_desc = { - max_width = 300 - min_width = 300 - margin = { 15 15 } - spacing = 10 - - background = { - using = Background_Area - } - - blockoverride "law_datacontext" { - datacontext = "[SuccessionLawChangeWindow.GetSelectedLaw.GetLaw]" - } - } - } - - # Buttons when character can change laws manually - vbox = { - #visible = "[SuccessionLawChangeWindow.GetSelectedLaw.ShouldBeApproved]" - - layoutpolicy_horizontal = expanding - spacing = 10 - margin_bottom = 12 - - text_single = { - text = "SUCCESSION_LAW_CHANGE_WINDOW_ENACT_COST" - tooltip = "SUCCESSION_LAW_CHANGE_WINDOW_ENACT_COST_TOOLTIP" - using = Font_Size_Medium - } - - hbox = { - spacing = 20 - - button_standard = { - onclick = "[SuccessionLawChangeWindow.Close]" - text = "CANCEL" - using = tooltip_above - } - - button_primary = { - enabled = "[SuccessionLawChangeWindow.GetSelectedLaw.CanEnact]" - onclick = "[SuccessionLawChangeWindow.GetSelectedLaw.Enact]" - - text = "SUCCESSION_LAW_CHANGE_WINDOW_CHANGE" - - using = tooltip_above - tooltip = "[SuccessionLawChangeWindow.GetSelectedLaw.GetCanEnactDescription]" - } - } - } - } - } -} - - -types SuccessionLawTypes -{ - type button_law_choice_base = button_standard { - visible = "[GuiLaw.IsWidgetVisible(PdxGuiWidget.Self)]" - - datacontext = "[GuiLaw.GetLaw]" - - onclick = "[GuiLaw.SetSelected]" - down = "[GuiLaw.IsSelected]" - alwaystransparent = "[GuiLaw.IsSelected]" - - selection_glow = { - visible = "[GuiLaw.IsSelected]" - } - - block "content" {} - - tooltip = "LAW_CHOICE_TOOLTIP" - - text_multi = { - visible = "[Or(GuiLaw.CanEnact, GuiLaw.IsEnacted)]" - text = "[Law.GetNameNoTooltip]" - size = { 100% 100% } - align = hcenter|nobaseline - margin = { 8 5 } - default_format = "#clickable" - } - - text_multi = { - visible = "[And( Not( GuiLaw.IsEnacted ), Not( GuiLaw.CanEnact ) )]" - text = "[Law.GetNameNoTooltip]" - size = { 100% 100% } - align = hcenter|nobaseline - margin = { 8 5 } - default_format = "#low" - } - - - blockoverride "button_standard_current" - { - visible = "[GuiLaw.IsEnacted]" - } - - - - icon = { - visible = "[And( Not( GuiLaw.IsEnacted ), Not( GuiLaw.CanEnact ) )]" - size = { 30 30 } - parentanchor = bottom|right - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - - type button_default_law_choice = button_law_choice_base { - size = { 120 80 } - } - - type button_clan_law_choice = button_law_choice_base { - name = "widget_clan_law" - - size = { 120 160 } - - blockoverride "content" { - icon = { - size = { 55 55 } - position = { 32 12 } - texture = "[GuiLaw.GetHouseUnityStage.GetIcon]" - } - } - } - - type vbox_law_desc = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - block "law_datacontext" {} - vbox = { - text_single = { - text = "[Law.GetNameNoTooltip]" - margin = { 10 10 } - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "[Law.GetSubName]" - visible = "[Law.HasSubName]" - default_format = "#low" - } - } - - scrollbox = { - min_width = 350 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 350 - margin_right = 40 - text = "[Law.GetEffectDescription]" - } - } - } - } - - #expand = {} - - } -} diff --git a/N3OW/gui/window_succession_designate_heir.gui b/N3OW/gui/window_succession_designate_heir.gui deleted file mode 100644 index ba2999a6..00000000 --- a/N3OW/gui/window_succession_designate_heir.gui +++ /dev/null @@ -1,181 +0,0 @@ -###################################################### -################## DESIGNATE HEIR #################### -###################################################### - -window = { - name = "designate_heir" - layer = middle - movable = no - allow_outside = yes - - using = Window_Position_CharacterList - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - datacontext = "[DesignateHeirWindow.GetHeirs]" - - vbox = { - margin = { 40 20 } - spacing = 10 - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "DESIGNATE_HEIR_ENACT" - } - - blockoverride "button_close" - { - onclick = "[DesignateHeirWindow.Close]" - } - } - - text_single = { - name = "choose_advice_label" - text = "DESIGNATE_HEIR_CHOOSE" - } - - vbox_character_list = { - name = "designate_heir_list" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "button_texture" - { - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - } - - blockoverride "container_implementation" - { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - block "character_gridbox" - { - addcolumn = 667 - addrow = 105 - datamodel_reuse_widgets = yes - } - - item = { - widget_character_list_item = { - size = { 630 110 } - - blockoverride "button" - { - # Arrow pointing to portrait if item is current designated heir or selected - icon = { - visible = "[Or( IsDesignatedHeir( Character.Self ), CharacterListItem.GetBool( 'is_selected' ) )]" - parentanchor = left|vcenter - position = { -20 0 } - size = { 20 20 } - texture = "gfx/interface/buttons/button_entry_characterlist_arrow.dds" - } - - # Button texture color states - down = "[CharacterListItem.GetBool( 'is_selected' )]" - enabled = "[Not(IsDesignatedHeir(Character.Self))]" - } - - blockoverride "bottom_right_box" - { - hbox = { - margin_bottom = 25 - - text_single = { - name = "designated_heir" - visible = "[IsDesignatedHeir(Character.Self)]" - text = "DESIGNATE_HEIR_WINDOW_DESIGNATED_HEIR" - } - } - } - } - } - } - } - } - - text_single = { - name = "designation_cost" - text = "[DesignateHeirWindow.GetCostDescription]" - using = Font_Size_Medium - } - - hbox = { - name = "close_designate" - spacing = 30 - margin_bottom = 20 - - button_standard = { - name = "close_window_button" - onclick = "[DesignateHeirWindow.Close]" - text = "CLOSE_LABEL" - } - - button_primary = { - name = "enact_designate" - - text = "DESIGNATE_HEIR_ENACT" - - enabled = "[DesignateHeirWindow.CanDesignate]" - onclick = "[DesignateHeirWindow.Designate]" - tooltip = "[DesignateHeirWindow.GetDesignateTooltip]" - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('health_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('fertility_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - } - } -} diff --git a/N3OW/gui/window_succession_event.gui b/N3OW/gui/window_succession_event.gui deleted file mode 100644 index 31402e64..00000000 --- a/N3OW/gui/window_succession_event.gui +++ /dev/null @@ -1,1702 +0,0 @@ -###################################################### -################# SUCCESSION EVENT ################### -###################################################### - -window = { - name = "succession_event_window" - parentanchor = center - size = { 1000 760} - layer = confirmation - alwaystransparent = no - - state = { - name = _show - on_finish = "[PdxGuiTriggerAllAnimations('ruler_transition_appear')]" - on_start = "[GetVariableSystem.Clear( 'ruler_transition_remove_fade')]" - } - - state = { - name = ruler_transition_reset - delay = 0.25 - on_finish = "[SuccessionEventWindow.Close]" - } - - button = { - size = { 100% 100% } - alpha = 0 - visible = "[Not(GetVariableSystem.Exists( 'ruler_transition_remove_fade'))]" - - state = { - name = _show - trigger_on_create = yes - duration = 1 - alpha = 0.7 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - state = { - name = _mouse_click - on_start = "[GetVariableSystem.Set( 'ruler_transition_remove_fade', 'true')]" - } - } - - widget = { - parentanchor = center - position = { 0 -500 } - alpha = 0 - size = { 1000 760 } - filter_mouse = all - alwaystransparent = "[Not( SuccessionEventWindow.IsSelectDestinyOpen )]" - - using = Window_Background - using = Window_Decoration_Spike - - state = { - name = _hide - position = { 0 -500 } - alpha = 0 - } - - state = { - name = ruler_transition_reset - next = reset_position - using = Animation_FadeOut_Standard - } - - state = { - name = reset_position - position = { 0 -500 } - } - - state = { - name = ruler_transition_appear - next = b - duration = 1.4 - trigger_on_create = yes - - start_sound = { - soundeffect = "event:/SFX/UI/Character/sfx_ui_character_death" - } - } - - state = { - name = b - next = c - duration = 0.16 - - animation = { - bezier = { 0.5 0 1 0.5 } - position = { 0 0 } - } - - animation = { - bezier = { 0 0.5 0.5 1 } - alpha = 1 - } - } - - state = { - name = c - next = d - duration = 0.075 - bezier = { 0 0.5 0.5 1 } - - position = { 0 -20 } - } - - state = { - name = d - next = e - duration = 0.075 - bezier = { 0 0.5 0.5 1 } - - position = { 0 0 } - } - - state = { - name = e - next = f - duration = 0.025 - bezier = { 0 0.5 0.5 1 } - - position = { 0 -5 } - } - - state = { - name = f - duration = 0.025 - bezier = { 0.5 0 1 0.5 } - - position = { 0 -0 } - } - - vbox = { - using = Window_Margins - margin_bottom = 15 - - background = { - texture = "gfx/interface/illustrations/background_ruler_transition.dds" - margin = { -35 -18 } - fittype = centercrop - margin_top = -70 - } - - widget = { - name = "top" - visible = "[SuccessionEventWindow.IsSuccession]" - layoutpolicy_horizontal = expanding - size = { 0 106 } - allow_outside = yes - - icon = { - name = "death_header" - size = { 929 58 } - position = { 0 0 } - parentanchor = top|hcenter - texture = "gfx/interface/window_death/death_header.dds" - } - - text_label_center = { - name = "header" - parentanchor = center - position = { 0 -28 } - text = "[SuccessionEventWindow.GetHeader]" - default_format = "#N" - using = Font_Type_Flavor - align = center - fontsize = 30 - } - - flowcontainer = { - parentanchor = bottom|hcenter - position = { 0 20 } - spacing = 18 - ignoreinvisible = yes - - button_round = { - size = { 50 50 } - down = "[SuccessionEventWindow.IsSuccessorTabOpen]" - alwaystransparent = "[SuccessionEventWindow.IsSuccessorTabOpen]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_transition_tab_switch')]" - - using = tooltip_ne - tooltip = "SUCCESSION_SUCCESSOR_TAB_TT" - - button_heir = { - alwaystransparent = yes - parentanchor = center - down = "[SuccessionEventWindow.IsSuccessorTabOpen]" - } - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[SuccessionEventWindow.OpenSuccessorTab]" - } - } - - button_round = { - size = { 50 50 } - down = "[SuccessionEventWindow.IsTitlesTabOpen]" - alwaystransparent = "[SuccessionEventWindow.IsTitlesTabOpen]" - visible = "[DataModelHasItems( SuccessionEventWindow.GetInheritedTitles )]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_transition_tab_switch')]" - - using = tooltip_ne - tooltip = "SUCCESSION_TITLES_TAB_TT" - - button_title = { - alwaystransparent = yes - parentanchor = center - down = "[SuccessionEventWindow.IsTitlesTabOpen]" - } - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[SuccessionEventWindow.OpenTitlesTab]" - } - } - - button_round = { - size = { 50 50 } - down = "[SuccessionEventWindow.IsLineageTabOpen]" - alwaystransparent = "[SuccessionEventWindow.IsLineageTabOpen]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_transition_tab_switch')]" - - using = tooltip_ne - tooltip = "SUCCESSION_LINEAGE_TAB_TT" - - button_dynasty_tree = { - alwaystransparent = yes - parentanchor = center - down = "[SuccessionEventWindow.IsLineageTabOpen]" - } - - state = { - name = _mouse_click - delay = 0.2 - on_finish = "[SuccessionEventWindow.OpenLineageTab]" - } - } - } - } - - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scissor = yes - - state = { - name = "ruler_transition_tab_switch" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - vbox = { - name = "top_lineage" - visible = "[SuccessionEventWindow.IsLineage]" - - text_single = { - text = "SUCCESSION_INHERITED_TITLES" - default_format = "#light_background" - align = left - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - name = "inherited" - datamodel = "[SuccessionEventWindow.GetInheritedTitles]" - datamodel_wrap = 11 - addcolumn = 56 - addrow = 56 - flipdirection = yes - - item = { - coa_title_small_crown = { - } - } - } - - expand = {} - } - - spacer = { - size = { 5 5 } - } - - hbox = { - text_single = { - name = "dynasty_name" - text = "SUCCESSION_EVENT_WINDOW_HEADING_LINEAGE" - default_format = "#high" - using = Font_Type_Flavor - align = center - fontsize = 30 - } - - button_icon = { - name = "close_button" - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - texture = "gfx/interface/icons/flat_icons/window_close.dds" - onclick = "[SuccessionEventWindow.Close]" - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - } - - widget = { - size = { 100% 100% } - - state = { - name = "ruler_transition_tab_switch" - next = "left" - position_x = -200 - duration = 0.2 - using = Animation_Transition_Start - } - - state = { - name = "left" - next = "center" - position_x = 200 - duration = 0 - } - - state = { - name = "center" - position_x = 0 - duration = 0.2 - using = Animation_Transition_End - } - - ### SUCCESSION - widget = { - size = { 100% 100% } - - vbox = { - visible = "[SuccessionEventWindow.IsSuccessorTabOpen]" - - hbox = { - layoutpolicy_vertical = expanding - - # Left Character - vbox = { - name = "left" - datacontext = "[SuccessionEventWindow.GetDeadCharacterLegacy]" - layoutpolicy_vertical = expanding - margin_top = 62 - - widget = { - size = { 250 340 } - datacontext = "[SuccessionEventWindow.GetDeadCharacter]" - visible = "[Character.IsAlive]" - - portrait_body = { - parentanchor = bottom|hcenter - position = { 0 40 } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 440 } - } - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'war_over_loss', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - } - widget = { - size = { 250 340 } - visible = "[Not(Character.IsAlive)]" - datacontext = "[SuccessionEventWindow.GetDeadCharacter]" - - portrait_body = { - parentanchor = bottom|hcenter - position = { 0 40 } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 440 } - } - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'dead', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - } - - spacer = { - size = { 20 10 } - } - - hbox_legacy_status = {} - - text_single = { - layoutpolicy_horizontal = expanding - text = "LEGACY_NAME" - default_format = "#high" - align = center - autoresize = no - } - - text_single = { - text = "LEGACY_REIGN" - align = center - tooltip = "LEGACY_REIGN_TT" - } - - spacer = { - size = { 20 10 } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - - ### Center box - vbox = { - name = "center" - datacontext = "[SuccessionEventWindow.GetDeadCharacter]" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 50 - - hbox = { - layoutpolicy_horizontal = expanding - - widget = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - coa_title_small_crown = { - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetPrimaryTitle]" - visible = "[Title.IsValid]" - parentanchor = bottom|hcenter - } - } - - coa_house_big = { - name = "dynasty_coa" - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetHouse]" - } - - widget = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - coa_title_small_crown = { - datacontext = "[SuccessionEventWindow.GetPlayerHeir.GetPrimaryTitle]" - visible = "[Title.IsValid]" - parentanchor = bottom|hcenter - } - } - } - - vbox = { - margin = { 10 10 } - - text_multi = { - name = "dead_description" - size = { 384 150 } - text = "[SuccessionEventWindow.GetDeadDesc]" - visible = "[And(Not(SuccessionEventWindow.IsEndDateReached), Not(SuccessionEventWindow.GetDeadCharacter.IsAlive))]" - using = Font_Size_Medium - } - - text_multi = { - name = "heir_description" - size = { 384 120 } - text = "[SuccessionEventWindow.GetHeirDesc]" - using = Font_Size_Medium - visible = "[Not(SuccessionEventWindow.IsEndDateReached)]" - } - - text_multi = { - name = "end_date_description" - size = { 384 120 } - text = "SUCCESSION_EVENT_WINDOW_END_DATE_DESC" - using = Font_Size_Medium - visible = "[SuccessionEventWindow.IsEndDateReached]" - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - - ### Right Character - vbox = { - layoutpolicy_vertical = expanding - spacing = 5 - margin_top = 32 - - #background = { - #using = Background_Area - - #modify_texture = { - #texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - #blend_mode = alphamultiply - #} - #} - - text_label_center = { - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - text = "LEGACY_CONTINUE_PLAYING" - } - - vbox_heir = { - name = "right" - datacontext = "[SuccessionEventWindow.GetPlayerHeirLegacy]" - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - layoutpolicy_vertical = expanding - - blockoverride "portrait_glow" {} - } - - vbox_dynasty = { - name = "dynasty_right" - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetDynasty]" - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.IsValid)]" - layoutpolicy_vertical = expanding - } - } - } - } - } - - ### TITLES - widget = { - visible = "[SuccessionEventWindow.IsTitlesTabOpen]" - size = { 100% 100% } - - hbox = { - margin = { 16 40 } - - vbox_heir = { - name = "right" - datacontext = "[SuccessionEventWindow.GetPlayerHeirLegacy]" - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - layoutpolicy_vertical = expanding - } - - vbox_dynasty = { - name = "dynasty_right" - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetDynasty]" - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.IsValid)]" - layoutpolicy_vertical = expanding - } - - scrollbox = { - name = "scrollbox_titles" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_content" { - - vbox = { - name = "titles" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 16 4 } - spacing = 6 - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_INHERITED_TITLES" - } - - background = { - using = Background_Area_With_Header_Dark - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 15 - - fixedgridbox = { # hbox doesn't work with datamodel_wrap - name = "inherited" - datamodel = "[SuccessionEventWindow.GetInheritedTitles]" - datamodel_wrap = 11 - addcolumn = 56 - addrow = 56 - flipdirection = yes - - item = { - coa_title_small_crown = { - } - } - } - - expand = {} - } - - hbox = { - visible = "[SuccessionEventWindow.HasLostTitles]" - layoutpolicy_horizontal = expanding - - text_single = { - text = "SUCCESSION_LOST_TITLES" - margin_bottom = 10 - margin_right = 5 - } - - button_expand = { - name = "show_lost_titles" - frame = "[Select_int32( SuccessionEventWindow.ShowLostTitles, '(int32)2', '(int32)1' )]" - onclick = "[SuccessionEventWindow.ToggleLostTitles]" - using = tooltip_ws - } - - expand = {} - } - - vbox = { - name = "lost_titles" - visible = "[And( SuccessionEventWindow.ShowLostTitles, SuccessionEventWindow.HasLostTitles )]" - layoutpolicy_horizontal = expanding - margin_top = 5 - - vbox = { - datamodel = "[SuccessionEventWindow.GetLostTitles]" - layoutpolicy_horizontal = expanding - spacing = 8 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_LOST_TITLE_SHARE" - margin_left = 5 - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - portrait_head_small = { - name = "portrait" - datacontext = "[SuccessionEventWindowLostTitlesItem.GetHeir]" - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - } - - hbox = { - name = "title_member_grid" - datamodel = "[SuccessionEventWindowLostTitlesItem.GetTitles]" - datamodel_wrap = 10 - - item = { - coa_title_tiny_crown = { - } - } - } - - expand = {} - } - } - } - } - } - - expand = { - layoutpolicy_vertical = expanding - } - } - } - } - } - } - - ### LINEAGE - margin_widget = { - size = { 100% 100% } - visible = "[SuccessionEventWindow.IsLineageTabOpen]" - margin = { 5 0 } - margin_top = 20 - - widget = { - size = { 20% 100% } - - background = { - using = Background_Area_Dark - alpha = 0.6 - margin_left = 35 - margin_right = 90 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - mirror = horizontal - } - } - } - - scrollarea = { - size = { 100% 100% } - - scrollbarpolicy_vertical = always_off - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - blockoverride "name" - { - name = legacy_scroll - } - } - - scrollwidget = { - hbox = { - name = "info" - parentanchor = vcenter|right - margin = { 30 30 } - margin_top = 120 - - expand = {} - - hbox = { - datamodel = "[SuccessionEventWindow.GetLegacy]" - margin_left = 50 - spacing = 100 - - ### LINEAGE ### - background = { - visible = "[And(SuccessionEventWindow.GetPlayerHeir.IsValid, GreaterThanOrEqualTo_int32(GetDataModelSize(SuccessionEventWindow.GetLegacy), '(int32)1'))]" - margin = { 0 -180 } - margin_right = 170 - margin_left = 200 - - texture = "gfx/interface/colors/white.dds" - color = { 0.3 0.3 0.35 0.8 } - spriteType = Corneredtiled - size = { 3 3 } - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - ### NO LINEAGE ### - background = { - visible = "[And(Not(SuccessionEventWindow.GetPlayerHeir.IsValid), GreaterThanOrEqualTo_int32(GetDataModelSize(SuccessionEventWindow.GetLegacy), '(int32)1'))]" - margin = { 0 -180 } - margin_right = -130 - margin_left = 200 - - texture = "gfx/interface/colors/white.dds" - color = { 0.3 0.3 0.35 0.8 } - spriteType = Corneredtiled - size = { 3 3 } - - ## EDGE FADE - modify_texture = { - texture = "gfx/interface/component_masks/mask_edge_3px.dds" - spriteType = Corneredtiled - spriteborder = { 4 4 } - blend_mode = alphamultiply - } - - ### SCRATCHES - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - spriteType = Corneredtiled - spriteborder = { 0 0 } - blend_mode = alphamultiply - } - - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - spriteType = Corneredstretched - blend_mode = alphamultiply - } - } - - item = { - vbox_legacy_item = {} - } - } - - spacer = { - visible = "[GreaterThanOrEqualTo_int32(GetDataModelSize(SuccessionEventWindow.GetLegacy), '(int32)1')]" - size = { 100 0 } - } - - vbox_current_lineage = { - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - datacontext = "[SuccessionEventWindow.GetPlayerHeirLegacy]" - } - - vbox_dynasty = { - name = "dynasty_right" - datacontext = "[SuccessionEventWindow.GetDeadCharacter.GetDynasty]" - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.IsValid)]" - } - - expand = {} - } - } - } - } - } - } - - hbox = { - name = "bottom" - margin = { 0 30 } - visible = "[SuccessionEventWindow.IsSuccession]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - alpha = 0.2 - margin_bottom = -8 - } - - hbox = { - spacing = 15 - - button_standard_big = { - name = "select_destiny_button" - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - onclick = "[SuccessionEventWindow.ToggleSelectDestinyOpen]" - enabled = "[SuccessionEventWindow.HasSelectDestinyCharacters]" - - text = "SUCCESSION_EVENT_WINDOW_SELECT_DESTINY" - tooltip = "[SelectLocalization( SuccessionEventWindow.HasSelectDestinyCharacters, 'SUCCESSION_EVENT_WINDOW_SELECT_DESTINY_TT', 'SUCCESSION_EVENT_WINDOW_SELECT_DESTINY_NO_OPTIONS_TT')]" - default_format = "#high" - } - - button_primary_big = { - name = "close_button" - visible = "[SuccessionEventWindow.GetPlayerHeir.IsValid]" - onclick = "[PdxGuiTriggerAllAnimations('ruler_transition_reset')]" - text = "SUCCESSION_EVENT_WINDOW_CLOSE" - min_width = 330 - } - - button_standard_big = { - name = "observer_button" - visible = "[And( Not(SuccessionEventWindow.GetPlayerHeir.IsValid), SuccessionEventWindow.CanChangeCharacter)]" - text = "SUCCESSION_EVENT_WINDOW_OBSERVER" - onclick = "[SuccessionEventWindow.GoToObserver]" - default_format = "#high" - } - - button_standard = { - name = "change_button" - visible = "[And( Not(SuccessionEventWindow.GetPlayerHeir.IsValid), SuccessionEventWindow.CanChangeCharacter)]" - text = "SUCCESSION_EVENT_WINDOW_CHANGE_CHARACTER" - onclick = "[SuccessionEventWindow.ChooseNewCharacter]" - default_format = "#high" - } - - button_standard = { - name = "menu_button" - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.IsValid)]" - text = "[SuccessionEventWindow.GetExitName]" - tooltip = "[SuccessionEventWindow.GetExitTooltip]" - onclick = "[SuccessionEventWindow.GoToMenu]" - default_format = "#high" - } - } - } - } - } -} - - -window = { - name = "succession_select_destiny_window" - parentanchor = center - size = { 1000 760} - layer = windows_layer - datacontext = "[GetVariableSystem]" - - widget = { - parentanchor = center - size = { 1000 760 } - - using = Window_Background - using = Window_Decoration_Spike - - icon = { - name = "death_header" - size = { 929 58 } - position = { 0 18 } - parentanchor = top|hcenter - texture = "gfx/interface/window_death/death_header.dds" - } - - background = { - texture = "gfx/interface/illustrations/background_ruler_transition.dds" - margin = { -35 -18 } - fittype = centercrop - margin_top = -70 - - } - - ### DESTINY - vbox = { - using = Window_Margins - margin_bottom = 15 - layoutpolicy_vertical = expanding - - widget = { - name = "header" - size = { 500 56 } - - text_label_center = { - name = "choose_destiny_header" - text = choose_destiny_header_text - using = Font_Type_Flavor - parentanchor = top|hcenter - fontsize = 30 - default_format = "#V" - } - } - - scrollarea = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - min_height = 560 - - scrollbarpolicy_vertical = always_off - - scrollbar_horizontal = { - using = Scrollbar_Horizontal - } - - scrollwidget = { - hbox = { - layoutpolicy_horizontal = expanding - hbox = { - datamodel = "[SuccessionEventWindow.GetMainDestinyCharacters]" - layoutpolicy_vertical = expanding - spacing = 10 - - item = { - widget_destiny_character = {} - } - } - } - } - } - - hbox = { - spacing = 12 - margin_bottom = 4 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - allow_outside = yes - - expand = {} - - button_standard_back = { - name = "cancel_button" - size = { 220 42 } - onclick = "[SuccessionEventWindow.ToggleSelectDestinyOpen]" - onclick = "[GetVariableSystem.Clear( 'random_destiny_expanded' )]" - - text = "SUCCESSION_EVENT_WINDOW_CANCEL_SELECT_DESTINY" - tooltip = "SUCCESSION_EVENT_WINDOW_CANCEL_SELECT_DESTINY_TT" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_close" - } - - hbox = { - allow_outside = yes - - widget = { - allow_outside = yes - visible = "[GetVariableSystem.Exists( 'random_destiny_expanded' )]" - - vbox = { - parentanchor = top|left - widgetanchor = bottom|left - position = { 0 -10 } - alwaystransparent = no - spacing = 3 - allow_outside = yes - min_width = 220 - - background = { - texture = "gfx/interface/skinned/interaction_menu_bg.dds" - spriteType = Corneredtiled - spriteborder = { 11 11 } - spriteborder_top = 49 - margin = { 8 14 } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position_y = -20 - } - - state = { - name = _hide - - using = Animation_FadeOut_Quick - position_y = 60 - } - - widget = { - size = { 260 28 } - hbox = { - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_EVENT_WINDOW_RANDOM_DESTINY_HEADER" - align = nobaseline - autoresize = no - } - button_close = { - size = { 25 25 } - onclick = "[GetVariableSystem.Toggle( 'random_destiny_expanded' )]" - tooltip = "CLOSE_TOOLTIP" - shortcut = "close_window" - } - } - } - - vbox = { - margin = { 10 3 } - margin_top = 10 - - datamodel = "[SuccessionEventWindow.GetRandomDestinyCharacters]" - - item = { - button_standard_hover = { - enabled = "[DestinyCharacter.GetCharacter.IsValid]" - onclick = "[SuccessionEventWindow.SelectDestinyCharacter( DestinyCharacter.Self )]" - onclick = "[GetVariableSystem.Toggle( 'random_destiny_expanded' )]" - - disableframe = 8 - blockoverride "disabled" {} - size = { 265 30 } - - tooltip = "[DestinyCharacter.GetTypeTooltip]" - using = tooltip_es - - hbox = { - margin = { 5 0 } - spacing = 5 - - icon = { - name = "interaction_icon" - size = { 30 30 } - texture = "gfx/interface/icons/character_interactions/icon_dynasty.dds" - } - - text_single = { - alwaystransparent = yes - raw_text = "[Select_CString( DestinyCharacter.GetCharacter.IsValid, '#clickable', '#weak' )] [DestinyCharacter.GetTypeName|U]#!" - align = nobaseline - max_width = 215 - } - - expand = {} - } - } - } - } - } - } - - button_standard = { - name = "random_button" - size = { 220 42 } - onclick = "[GetVariableSystem.Toggle( 'random_destiny_expanded' )]" - enabled = "[SuccessionEventWindow.HasRandomDestinyCharacters]" - - text = "blank_line" - tooltip = "SUCCESSION_EVENT_WINDOW_RANDOM_DESTINY_TT" - - text_single = { - position = { 46 8 } - layoutpolicy_horizontal = expanding - text = "SUCCESSION_EVENT_WINDOW_RANDOM_DESTINY" - default_format = "#clickable" - align = center - } - - button_icon = { - position = { 10 0 } - parentanchor = left|vcenter - alwaystransparent = yes - size = { 28 28 } - texture = "gfx/interface/icons/flat_icons/randomize.dds" - } - } - } - - - button_primary_big = { - name = "continue_button" - onclick = "[SuccessionEventWindow.ConfirmSelectDestinyCharacter]" - enabled = "[SuccessionEventWindow.GetSelectedDestinyCharacter.GetCharacter.IsValid]" - visible = "[Not( SuccessionEventWindow.IsSelectedDestinyCharacterRandom )]" - - text = "SUCCESSION_EVENT_WINDOW_CLOSE" - min_width = 330 - } - - button_primary_big = { - name = "continue_button_random" - onclick = "[SuccessionEventWindow.ConfirmSelectDestinyCharacter]" - enabled = "[SuccessionEventWindow.GetSelectedDestinyCharacter.GetCharacter.IsValid]" - visible = "[SuccessionEventWindow.IsSelectedDestinyCharacterRandom]" - - text = "SUCCESSION_EVENT_WINDOW_RANDOM_CLOSE" - min_width = 330 - } - - expand = {} - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types Legacy -{ - type tree_background = background { - texture = "gfx/interface/window_ruler_transition/illustration_tree.dds" - margin = { -35 -50 } - fittype = centercrop - spriteType = corneredTiled - spriteborder = { 30 0 } - alpha = 0.8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_brushed.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_halfcircle_inverted.dds" - blend_mode = alphamultiply - alpha = 0.6 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - alpha = 0.3 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.4 - } - } - - type vbox_dynasty = vbox { - spacing = 20 - spacer = { - size = { 240 0 } - } - - coa_dynasty_huge = {} - - text_label_center = { - text = "SUCCESSION_DYNASTY_INFO" - autoresize = yes - max_width = 200 - min_width = 200 - } - text_multi = { - text = "SUCCESSION_NO_HEIR" - visible = "[Not( SuccessionEventWindow.GetDeadCharacter.IsAlive )]" - autoresize = yes - max_width = 220 - align = center - } - - expand = { - layoutpolicy_vertical = expanding - } - } - - type vbox_heir = vbox { - margin_bottom = 5 - - widget = { - size = { 250 340 } - - portrait_body = { - datacontext = "[SuccessionEventWindow.GetPlayerHeir]" - parentanchor = bottom|hcenter - position = { 0 40 } - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 440 } - } - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - } - - spacer = { - size = { 20 10 } - } - - hbox_legacy_status = {} - - text_single = { - layoutpolicy_horizontal = expanding - autoresize = no - text = "LEGACY_NAME" - default_format = "#high" - align = center - } - - text_single = { - text = "[SuccessionEventWindow.GetPlayerHeir.GetSuccessionRelation( SuccessionEventWindow.GetDeadCharacter)]" - } - - spacer = { - size = { 20 10 } - } - - text_label_center = { - visible = "[SuccessionEventWindow.GetPlayerHeir.IsAtWar]" - text = "LEGACY_IS_AT_WAR" - } - - text_label_center = { - visible = "[Not(SuccessionEventWindow.GetPlayerHeir.GetPlayerHeir.IsValid)]" - text = "LEGACY_NO_HEIR" - } - - expand = {} - } - - type vbox_current_lineage = vbox { - datacontext = "[SuccessionEventWindow.GetPlayerHeir]" - - portrait_body = { - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 444 } - } - - blockoverride "portrait_glow" {} - } - - hbox_legacy_status = {} - - text_single = { - text = "LEGACY_NAME" - default_Format = "#high" - } - - text_single = { - text = "LEGACY_LINEAGE_YOU" - } - } - - type hbox_legacy_status = hbox { - spacing = 2 - - icon = { - datacontext = "[LegacyItem.GetCharacter]" - visible = "[Not(Character.IsAlive)]" - name = "death" - size = { 24 24 } - tooltip = "CHARACTER_DEAD_TOOLTIP" - texture = "[Character.GetDeathReasonIcon]" - using = tooltip_se - } - - widget = { - visible = "[LegacyItem.GetFoundedHouse.IsValid]" - name = "house" - size = { 24 24 } - tooltip = "LEGACY_FOUNDED_HOUSE" - using = tooltip_se - - coa_house_microscopic = { - datacontext = "[LegacyItem.GetFoundedHouse]" - blockoverride "coa_button" {} - } - } - - icon = { - visible = "[LegacyItem.GetFoundedFaith.IsValid]" - name = "faith" - size = { 24 24 } - texture = "[LegacyItem.GetFoundedFaith.GetIcon]" - tooltip = "LEGACY_FOUNDED_FAITH" - using = tooltip_se - } - - icon = { - visible = "[And(LegacyItem.GetCharacter.IsAlive, LegacyItem.WasCulturalHead)]" - name = "cultural_head" - size = { 24 24 } - texture = "gfx/interface/icons/icon_culture.dds" - tooltip = "LEGACY_CULTURAL_HEAD" - using = tooltip_se - } - - icon = { - visible = "[And(Not(LegacyItem.GetCharacter.IsAlive), LegacyItem.WasCulturalHead)]" - name = "cultural_head_dead" - size = { 24 24 } - texture = "gfx/interface/icons/icon_culture.dds" - tooltip = "LEGACY_CULTURAL_HEAD_DEAD" - using = tooltip_se - } - - icon = { - visible = "[GreaterThanOrEqualTo_CFixedPoint(LegacyItem.GetDread, GetDefine('NCharacter', 'BOLD_LEVEL_INTIMIDATED') )]" - name = "dreaded" - size = { 24 24 } - texture = "gfx/interface/icons/icon_dread.dds" - tooltip = "LEGACY_DREADED" - using = tooltip_se - } - - icon = { - name = "renowned" - size = { 24 24 } - texture = "[GetPrestigeLevelIcon(LegacyItem.GetPrestigeLevel)]" - tooltip = "LEGACY_RENOWNED" - using = tooltip_se - } - - - icon = { - name = "pious" - size = { 24 24 } - texture = "[GetPietyLevelIcon(LegacyItem.GetPietyLevel)]" - tooltip = "LEGACY_PIOUS" - using = tooltip_se - } - - icon = { - name = "lifestyle" - visible = "[LegacyItem.GetLifestyle.IsValid]" - size = { 24 24 } - texture = "[LegacyItem.GetLifestyle.GetIcon]" - framesize = { 160 160 } - - tooltip = "LEGACY_LIFESTYLE" - using = tooltip_se - - } - - icon = { - name = "wars" - visible = "[LegacyItem.HasFoughtInWar]" - size = { 24 24 } - texture = "gfx/interface/icons/character_interactions/declare_war_interaction.dds" - tooltip = "LEGACY_WARS" - using = tooltip_se - } - - container = { - name = "activities_hosted" - visible = "[DataModelHasItems( LegacyItem.GetActivitiesHosted )]" - - icon = { - datacontext_from_model = { - datamodel = "[LegacyItem.GetActivitiesHosted]" - index = 0 - } - - texture = "[ActivityType.GetIcon]" - size = { 24 24 } - tooltip = "LEGACY_HOSTED_ACTIVITIES" - using = tooltip_se - } - } - - container = { - name = "activities_attended" - visible = "[DataModelHasItems( LegacyItem.GetActivitiesAttended )]" - - icon = { - datacontext_from_model = { - datamodel = "[LegacyItem.GetActivitiesAttended]" - index = 0 - } - - texture = "[ActivityType.GetIcon]" - size = { 24 24 } - tooltip = "LEGACY_ATTENDED_ACTIVITIES" - using = tooltip_se - } - } - } - - type vbox_legacy_item = vbox { - datacontext = "[LegacyItem.GetCharacter]" - layoutpolicy_vertical = expanding - - portrait_body = { - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 444 } - } - } - - hbox_legacy_status = {} - - text_single = { - text = "LEGACY_NAME" - default_Format = "#high" - } - - text_single = { - text = "LEGACY_REIGN" - tooltip = "LEGACY_REIGN_TT" - } - } - - type widget_destiny_character = widget { - - size = { 290 560 } - - datacontext = "[DestinyCharacter.GetCharacter]" - - visible = "[Character.IsValid]" - - background = { - using = Background_Area_Solid - margin_bottom = 0 - alpha = 0.5 - } - - widget = { - layoutpolicy_horizontal = expanding - parentanchor = top|right - position = { -30 0 } - size = { 50 50 } - allow_outside = yes - - expand = {} - - block "coa" { - coa_realm_medium_crown = { - visible = "[Character.HasLandedTitles]" - scale = 1 - } - } - - block "unlanded" { - icon = { - position = { 0 35 } - visible = "[Not( Character.HasLandedTitles)]" - parentanchor = center - size = { 76 76 } - texture = "gfx/interface/icons/government_types/landless_adventurer_government_large.dds" - tooltip = "will_become_adventurer" - } - } - - icon = { - position = { 28 60 } - visible = "[ObjectsEqual( Character.Self, SuccessionEventWindow.GetFavoriteChildCharacter )]" - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/character_interactions/designate_favorite.dds" - - tooltip = "SUCCESSION_IS_FAVORITE_CHILD_TT" - - glow = { - glow_radius = 8 - using = Glow_Standard - using = Color_Black - } - } - } - - portrait_body = { - parentanchor = bottom|hcenter - position = { 0 -130} - - blockoverride "status_icons" {} - blockoverride "opinion_box" {} - blockoverride "coa" {} - blockoverride "dead_icon" {} - - blockoverride "portrait_button" - { - size = { 300 440 } - } - - blockoverride "portrait_texture" - { - portrait_texture = "[Character.GetAnimatedPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - } - - widget = { - - size = { 290 180 } - parentanchor = bottom|hcenter - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 5 2 } - spacing = 5 - margin_top = 5 - margin_bottom = 10 - - background = { - using = Background_Area_Solid - alpha = 0.8 - } - - vbox = { - spacing = -5 - - hbox_character_view_name_age_health = { - blockoverride "name_width" - { - max_width = 230 - } - } - - text_single = { - text = "[Character.GetSuccessionRelation( SuccessionEventWindow.GetDeadCharacter )]" - default_Format = "#low" - } - } - - vbox = { - datacontext = "[Character.GetDestinyScriptedValueBreakdown( 'destiny_score_interest', SuccessionEventWindow.GetDeadCharacter, SuccessionEventWindow.GetPlayerHeir )]" - spacing = 5 - layoutpolicy_horizontal = expanding - - tooltipwidget = { - recursive = yes - - scripted_score_breakdown_tooltip = { - blockoverride "header_text" { - text = "character_interest_breakdown_header" - default_format = "#T" - } - } - } - vbox = { - min_height = 60 - layoutpolicy_horizontal = expanding - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[DataModelFirst( ValueBreakdown.GetSubValuesDescending, '(int32)3' )]" - - item = { - hbox = { - name = "value_breakdown" - - layoutpolicy_horizontal = expanding - - text_single = { - align = center - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - margin_right = 10 - default_format = "#help" - } - } - } - } - } - - text_single = { - text = "character_difficulty_text" - using = tooltip_es - layoutpolicy_horizontal = expanding - align = center - - tooltipwidget = { - scripted_score_breakdown_tooltip = { - blockoverride "breakdown_datacontext" - { - datacontext = "[Character.GetDestinyScriptedValueBreakdown( 'character_difficulty_value', SuccessionEventWindow.GetDeadCharacter, SuccessionEventWindow.GetPlayerHeir )]" - } - blockoverride "header_text" { - text = "character_difficulty_breakdown_header" - default_format = "#T" - } - } - } - } - } - - button_standard = { - text = "[SelectLocalization( ObjectsEqual( DestinyCharacter.GetTypeName, SuccessionEventWindow.GetSelectedDestinyCharacter.GetTypeName ), 'SUCCESSION_UNSELECT_DESTINY_CHARACTER', 'SUCCESSION_SELECT_DESTINY_CHARACTER' )]" - onclick = "[SuccessionEventWindow.SelectDestinyCharacter( DestinyCharacter.Self )]" - enabled = "[Character.IsAlive]" - } - } - } - } -} diff --git a/N3OW/gui/window_task_contract.gui b/N3OW/gui/window_task_contract.gui deleted file mode 100644 index 2b4de15a..00000000 --- a/N3OW/gui/window_task_contract.gui +++ /dev/null @@ -1,941 +0,0 @@ -window = { - name = "task_contract" - layer = middle - size = { 675 830 } - position = { 450 200 } - using = Window_Movable - - datacontext = "[TaskContractWindow.GetCurrentTaskContract]" - - state = { - name = _show - trigger_on_create = yes - - on_start = "[GetVariableSystem.Clear( 'event_window_mouse_leave')]" - - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('show')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('show')]" - on_start = "[PdxGuiWidget.AccessChild('letter_edges').TriggerAnimation('show')]" - - # Tabs setup - on_start = "[BindTabsContext]" - on_start = "[PdxGuiTabs.RemoveTab( 'success' )]" - on_start = "[PdxGuiTabs.AddTab( 'success' )]" - - on_start = "[PdxGuiTabs.RemoveTab( 'failure' )]" - on_start = "[PdxGuiTabs.AddTabIf( 'failure', TaskContractWindow.GetCurrentTaskContract.HasFailureConditions )]" - - start_sound = { - soundeffect = "event:/SFX/Events/Panels/sfx_event_panel_letter" - } - } - - state = { - name = _hide - duration = 1 - on_start = "[PdxGuiWidget.AccessChild('letter_paper').TriggerAnimation('hide')]" - on_start = "[PdxGuiWidget.AccessChild('letter_content').TriggerAnimation('hide')]" - on_start = "[PdxGuiWidget.AccessChild('letter_edges').TriggerAnimation('hide')]" - } - - state = { - name = _mouse_hierarchy_leave - on_start = "[GetVariableSystem.Set( 'event_window_mouse_leave', 'true' )]" - } - - ### PAPER ### - widget = { - name = "letter_paper" - size = { 675 45 } - widgetanchor = center - parentanchor = center - alpha = 0 - - state = { - name = show - next = a - delay = 0.3 - - using = Animation_FadeIn_Standard - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = a - duration = 0.25 - bezier = { 0.3 0 0.7 1 } - - animation = { - size = { 675 830 } ############ SIZES NEED TO MATCH - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - size = { 585 -1 } - using = Animation_FadeOut_Quick - } - - widget = { - visible = "[TaskContract.IsEasy]" - size = { 100% 100% } - using = Background_Letter - } - - widget = { - visible = "[TaskContract.IsMedium]" - size = { 100% 100% } - using = Contract_2 - } - - widget = { - visible = "[TaskContract.IsHard]" - size = { 100% 100% } - using = Contract_3 - - widget = { - visible = "[Not(TaskContract.IsCriminal)]" - position = { -2 0 } - size = { 22 100% } - - background = { - texture = "gfx/interface/window_contract/tile_contract_gold.dds" - spriteType = corneredTiled - using = Mask_Rough_Edges - } - } - - widget = { - visible = "[Not(TaskContract.IsCriminal)]" - parentanchor = right - size = { 22 100% } - - background = { - texture = "gfx/interface/window_contract/tile_contract_gold.dds" - spriteType = corneredTiled - using = Mask_Rough_Edges - } - } - } - - widget = { - visible = "[TaskContract.IsCriminal]" - size = { 100% 100% } - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - spriteType = corneredTiled - texture_density = 0.8 - tintcolor = { 0.4 0.2 0.2 0.2 } - } - } - - widget = { - position = { -2 0 } - size = { 44 100% } - - background = { - texture = "gfx/interface/window_contract/tile_contract_red.dds" - spriteType = corneredTiled - using = Mask_Rough_Edges - alpha = 0.8 - - modify_texture = { - texture = "gfx/interface/component_masks/rough_edge_mask.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - texture_density = 3.5 - } - } - } - - widget = { - position = { 2 0 } - parentanchor = right - size = { 44 100% } - - background = { - texture = "gfx/interface/window_contract/tile_contract_red.dds" - spriteType = corneredTiled - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/rough_edge_mask.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - mirror = horizontal - texture_density = 3.5 - } - } - } - } - - widget = { - size = { 650 350 } - parentanchor = top|hcenter - visible = "[And(Or(TaskContract.IsHard,TaskContract.IsMedium), Not(TaskContract.IsCriminal))]" - - background = { - using = Background_Area_Dark - texture = "gfx/interface/component_masks/patterns/mask_pattern_floral.dds" - margin_top = 5 - - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphamultiply - alpha = 0.8 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - mirror = vertical - alpha = 0.2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - mirror = vertical - alpha = 0.5 - } - } - } - } - - ### CONTRACT CONTENT ### - widget = { - name = "letter_content" - widgetanchor = center - parentanchor = center - size = { 675 830 } ############ SIZES NEED TO MATCH - alpha = 0 - - state = { - name = show - delay = 0.8 - - using = Animation_FadeIn_Standard - - animation = { - size = { 675 830 } ############ SIZES NEED TO MATCH - - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - duration = 0.08 - } - - ### Contents start here - vbox = { - margin_top = 10 - - ### Header - widget = { - size = { 678 50 } - background = { - visible = "[Not(TaskContract.IsCriminal)]" - texture = "gfx/interface/window_contract/header_letter.dds" - alpha = 0.9 - } - - background = { - visible = "[TaskContract.IsCriminal]" - texture = "gfx/interface/window_contract/header_letter_crime.dds" - alpha = 0.9 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 8 - margin_right = 10 - - ### Contract icon - hbox = { - layoutpolicy_vertical = expanding - - icon = { - name = "contract_icon" - size = { 56 56 } - texture = "[TaskContract.GetType.GetIcon]" - } - - header_text = { - name = "header_text" - text = "[TaskContract.GetType.GetName]" - margin = { 4 0 } - margin_bottom = 15 - } - } - - expand = {} - - ### Contract Tier and Stars - hbox = { - layoutpolicy_vertical = expanding - margin_right = 20 - margin_bottom = 15 - - background = { - using = Background_Area_Dark - alpha = 0.2 - margin_bottom = -15 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_thick.dds" - blend_mode = alphamultiply - } - } - - text_single = { - text = "[SelectLocalization(IsLandlessAdventurer( TaskContract.GetTaker ) , 'TASK_CONTRACT_TIER' , 'OTHER_TASK_CONTRACT_TIERS' )]" - default_format = "#italic" - margin_right = 5 - } - - ### Filled Stars - icon_flat_standard_gold = { - name = "star_fill_easy" - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/star.dds" - } - - icon_flat_standard_gold = { - name = "star_fill_medium" - visible = "[Or( TaskContract.IsMedium, TaskContract.IsHard )]" - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/star.dds" - } - - icon_flat_standard_gold = { - name = "star_fill_hard" - visible = "[TaskContract.IsHard]" - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/star.dds" - } - - ### Empty Stars - icon_flat_standard_black = { - name = "star_empty_medium" - visible = "[TaskContract.IsEasy]" - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/star.dds" - } - - icon_flat_standard_black = { - name = "star_empty_hard" - visible = "[Or( TaskContract.IsEasy, TaskContract.IsMedium )]" - size = { 22 22 } - texture = "gfx/interface/icons/flat_icons/star.dds" - } - } - - blockoverride "header_text" - { - } - - widget = { - size = { 42 42} - - button_close = { - shortcut = "close_window" - tooltip = "CLOSE_TOOLTIP" - onclick = "[TaskContractWindow.Close]" - } - } - } - } - } - - ### Portrait and contract desc - hbox = { - margin = { 10 5 } - margin_bottom = 10 - layoutpolicy_horizontal = expanding - - widget = { - visible = "[Character.IsValid]" - name = "portrait section" - size = { 200 200} - datacontext = "[TaskContract.GetEmployer]" - - icon = { - name = "portrait_background" - size = { 240 250 } - position = { -10 -30 } - texture = "gfx/interface/window_legend_chronicle/marginalia_portrait_gold_bg.dds" - - modify_texture = { - visible = "[TaskContract.IsCriminal]" - texture = "gfx/interface/colors/red.dds" - alpha = 0.4 - blend_mode = multiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.5 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_vertical.dds" - spriteType = corneredtiled - spriteborder_right = 1080 - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_seamless_torn_edge_horizontal.dds" - spriteType = corneredtiled - spriteborder_top = 1080 - blend_mode = alphamultiply - } - } - - portrait_button = { - visible = "[Not(TaskContract.IsCriminal)]" - position = { 0 -30 } - size = { 200 240 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_hud', 'camera_torso', 'idle', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_body.dds" - } - - portrait_button = { - #visible = "[TaskContract.IsCriminal]" - visible = "[And(TaskContract.IsCriminal, Not( GreaterThan_CFixedPoint( TaskContract.MakeScope.Var('animation').GetValue, '(CFixedPoint)0' ) ))]" - - #visible = "[And(Not( IsPauseMenuShown ), )]" - #visible = "[AND(TaskContract.IsCriminal, Not(GetVariableSystem.Exists( 'suppress_fear')))]" - #Not(GetVariableSystem.Exists( 'hide_bottom_left_HUD')) - #visible = "[And(Character.IsAlive, Character.HasLandedTitles)]" - - position = { 0 -30 } - size = { 200 240 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_hud', 'camera_torso', 'fear', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_body.dds" - } - - portrait_button = { - visible = "[And(TaskContract.IsCriminal, GreaterThan_CFixedPoint( TaskContract.MakeScope.Var('animation').GetValue, '(CFixedPoint)0' ) )]" - - position = { 0 -30 } - size = { 200 240 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_hud', 'camera_torso', 'schadenfreude', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_body.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 200 200 } - - button = { - name = "name_plate" - - parentanchor = bottom - - position = { 10 -10 } - size = { 180 36 } - - using = Background_Letter_No_Frame - - alpha = 0.9 - - datacontext = "[TaskContract.GetEmployer]" - onclick = "[DefaultOnCharacterClick( Character.GetID )]" - - tooltipwidget = { - container_character_tooltip = {} - } - - text_multi = { - min_width = 144 - max_width = 144 - min_height = 34 - max_height = 34 - - position = { 30 1 } - - text = "[Character.GetTitledFirstNameNoTooltip]" - default_format = "#light_background" - align = vcenter|nobaseline|center - using = Font_Size_Medium - using = Font_Type_Flavor - using = Text_Light_Background_Overrides - } - } - - coa_realm_small_crown = { - datacontext = "[TaskContract.GetEmployer]" - visible = "[And(Character.IsAlive, Character.HasLandedTitles)]" - parentanchor = bottom|left - position = { 3 -2 } - scale = 0.85 - } - - } - - } - - } - - ### Contract desc - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - vbox = { - icon = { - visible = "[Not(TaskContract.IsCriminal)]" - name = "decal" - size = { 262 20 } - texture = "gfx/interface/skinned/window_letter/marginalia_divider.dds" - alpha = 0.5 - mirror = vertical - } - - icon = { - visible = "[TaskContract.IsCriminal]" - name = "decal_criminal" - size = { 340 24 } - texture = "gfx/interface/window_contract/decoration_criminal.dds" - alpha = 0.8 - mirror = vertical - } - - ### Desc title - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - margin = { 0 8 } - margin_right = 20 - max_width = 440 - - text = "[TaskContract.GetType.GetDescriptionTitle]" - using = Font_Type_Flavor - using = Font_Size_Big - default_format = "#light_background" - } - - expand = {} - } - } - - vbox = { - - ### Desc - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - text_multi = { - margin_right = 20 - max_width = 440 - autoresize = yes - - text = "[TaskContract.GetTaskContractDescription]" - default_format = "#light_background;italic" - using = Font_Size_Medium - } - - expand = {} - } - - icon = { - visible = "[Not(TaskContract.IsCriminal)]" - name = "decal" - size = { 262 20 } - texture = "gfx/interface/skinned/window_letter/marginalia_divider.dds" - alpha = 0.5 - } - - icon = { - visible = "[TaskContract.IsCriminal]" - name = "decal_criminal" - size = { 340 24 } - texture = "gfx/interface/window_contract/decoration_criminal.dds" - alpha = 0.8 - mirror = horizontal - } - } - - expand = {} - } - - expand = {} - } - - ### Contract request - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - - background = { - margin = { -10 0} - texture = "gfx/interface/colors/white.dds" - tintcolor = { 0.1 0.05 0.05 0.6 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/event_effect_mask.dds" - blend_mode = alphaMultiply - } - } - - text_multi = { - max_width = 620 - autoresize = yes - align = center - text = "[TaskContract.GetTaskContractRequest]" - default_format = "#high;italic" - } - - } - - ### Success and Failure breakdowns - vbox = { - margin = { 20 5 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - margin = { -20 -5 } - using = Background_Area_Dark - alpha = 0.8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - spriteType = corneredtiled - texture_density = 2 - alpha = 0.4 - - } - } - - ### Tabs header - - hbox_tab_buttons = { - name = "tab_buttons" - - visible = "[Not( GetPlayer.GetGovernment.IsType( 'mandala_government' ) )]" - - blockoverride "button_tab" - { - texture = "gfx/interface/buttons/button_tab_light_bg.dds" - } - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'task_contract_tab' )]" - default_format = "#high" - } - } - - ### Success Tab - scrollbox = { - name = "tab_success" - visible = "[PdxGuiTabs.IsTabSet( 'success' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_margins" { - margin = { 12 4 } - } - - blockoverride "scrollbox_content" - { - vbox = { - text_multi = { - margin_top = 8 - max_width = 600 - min_width = 600 - autoresize = yes - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[TaskContract.GetRewardEffectDescription( '(bool)yes' )]" - format_override = { weak medium } - } - } - } - } - - ### Failure Tab - scrollbox = { - name = "tab_failure" - visible = "[PdxGuiTabs.IsTabSet( 'failure' )]" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Animation_Tab_Switch - - blockoverride "scrollbox_margins" { - margin = { 12 4 } - } - - blockoverride "scrollbox_content" - { - vbox = { - text_multi = { - margin_top = 8 - max_width = 600 - min_width = 600 - autoresize = yes - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "[TaskContract.GetRewardEffectDescription( '(bool)no' )]" - - format_override = { weak medium } - } - } - } - } - } - - ### Footer buttons - hbox = { - name = "footer_buttons" - margin = { 10 0 } - margin_bottom = 34 - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 0 10 } - spacing = 60 - layoutpolicy_horizontal = expanding - - expand = {} - - ### Accept button - button_primary_big = { - size = { 250 42 } - - text = "[TaskContractWindow.GetAcceptText]" - - visible = "[Not( Or( TaskContractWindow.IsContractStarted, TaskContractWindow.IsTravelingDueToCurrentContract ) )]" - - enabled = "[IsValidCommand( TaskContract.AcceptTaskContract )]" - onclick = "[TaskContractWindow.StartContract]" - onclick = "[TaskContractWindow.Close]" - tooltip = "[TaskContractWindow.GetTooltip]" - tooltip_when_disabled = "[GetCommandDesc( TaskContract.AcceptTaskContract )]" - using = tooltip_se - } - - button_primary_big = { - size = { 250 42 } - - text = "TASK_CONTRACT_ABANDON" - - visible = "[TaskContractWindow.IsContractStarted]" - - enabled = "[IsValidCommand( TaskContract.InvalidateTaskContract )]" - onclick = "[CreateCommandPopup( TaskContract.InvalidateTaskContract )]" - onclick = "[TaskContractWindow.Close]" - - tooltip = "[TaskContractWindow.GetInvalidateTooltip]" - using = tooltip_se - } - - expand = {} - } - - expand = {} - } - } - } - - widget = { - name = "letter_edges" - size = { 675 45 } - widgetanchor = center - parentanchor = center - alpha = 0 - - state = { - name = show - next = a - delay = 0.3 - - using = Animation_FadeIn_Standard - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = a - duration = 0.25 - bezier = { 0.3 0 0.7 1 } - - animation = { - size = { 675 830 } ############ SIZES NEED TO MATCH - bezier = { 0.8 0.3 0 1 } - } - - animation = { - alpha = 1 - bezier = { 0.7 0 0.7 1 } - } - } - - state = { - name = hide - using = Animation_FadeOut_Quick - size = { 585 -1 } - } - - widget = { - widgetanchor = center - parentanchor = top|hcenter - position = { 0 8 } - size = { 700 40 } - - visible = "[Or(TaskContract.IsEasy, TaskContract.IsCriminal)]" - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_top.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - - widget = { - widgetanchor = center - parentanchor = bottom|hcenter - position = { 0 -7 } - size = { 700 40 } - - visible = "[Or(TaskContract.IsEasy, TaskContract.IsCriminal)]" - - background = { - texture = "gfx/interface/skinned/window_letter/letter_event_edge_bottom.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - - widget = { - widgetanchor = center - parentanchor = bottom|hcenter - position = { 0 -7 } - size = { 750 40 } - - visible = "[And(Or(TaskContract.IsHard,TaskContract.IsMedium),Not(TaskContract.IsCriminal))]" - - background = { - texture = "gfx/interface/window_contract/contract_edge_top.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - - widget = { - widgetanchor = center - parentanchor = top|hcenter - position = { 0 8 } - size = { 750 40 } - - visible = "[And(Or(TaskContract.IsHard,TaskContract.IsMedium),Not(TaskContract.IsCriminal))]" - - background = { - texture = "gfx/interface/window_contract/contract_edge_top.dds" - spriteType = Corneredstretched - spriteborder = { 35 5 } - } - } - } -} diff --git a/N3OW/gui/window_tax_slot_assign_vassal.gui b/N3OW/gui/window_tax_slot_assign_vassal.gui deleted file mode 100644 index 8884bcb0..00000000 --- a/N3OW/gui/window_tax_slot_assign_vassal.gui +++ /dev/null @@ -1,628 +0,0 @@ -window = { - name = "window_tax_slot_assign_vassal" - parentanchor = "center" - size = { 700 1000 } - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - vbox = { - datacontext = "[TaxSlotAssignVassalWindow.GetVassal]" - layoutpolicy_vertical = expanding - - margin_bottom = 30 - - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TaxSlotAssignVassalWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - portrait_head_small = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_ASSIGN_VASSAL_ASSIGNING_DESC" - default_format = "#S" - max_width = 500 - } - - expand = {} - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_DESC" - default_format = "#instruction" - max_width = 500 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 10 } - - background = { - using = Background_Area_Dark - alpha = 0.6 - } - - hbox = { - name = "assigned vassal" - datacontext = "[TaxSlotAssignVassalWindow.GetAssignedTaxSlot]" - datacontext = "[TaxSlotItem.GetTaxSlot]" - visible = "[Character.IsAssignedAsTaxpayer]" - layoutpolicy_horizontal = expanding - - vbox = { - datacontext = "[TaxSlot.GetTaxCollector]" - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_CURRENT_TAX_SLOT" - max_width = 480 - } - - expand = {} - } - - hbox = { - visible = "[TaxSlotItem.HasTaxCollector]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_TAX_COLLECTOR" - max_width = 270 - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_TAX_COLLECTOR_APTITUDE" - max_width = 200 - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - text = "TAX_COLLECTOR_TAXED_VASSALS_COUNT" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - datacontext = "[TaxSlotItem.GetTaxBreakdown]" - text = "TAX_SLOT_TAX_CONTRIBUTION" - - tooltipwidget = { - tax_contribution_tooltip = {} - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - datacontext = "[TaxSlotItem.GetLevyBreakdown]" - text = "TAX_SLOT_LEVY_CONTRIBUTION" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - - expand = {} - } - } - } - - button_standard_clean = { - size = { 75 75 } - datacontext = "[TaxSlot.GetObligation]" - - icon = { - size = { 100% 100% } - texture = "[TaxSlotObligation.GetIcon]" - } - - tooltipwidget = { - tax_slot_obligation_tooltip = { - blockoverride "input_info_text" - { - text = "TAX_OPTION_TOOLTIP_CLICK_TO_SELECT" - } - } - } - - onclick = "[ToggleGameViewData( 'tax_slot_obligations', TaxSlot.GetID )]" - } - } - - hbox = { - name = "unasigned_vassal" - layoutpolicy_horizontal = expanding - visible = "[Not( Character.IsAssignedAsTaxpayer )]" - margin = { 10 30 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_CURRENT_TAX_SLOT_UNASSIGNED" - } - } - } - } - - scrollbox = { - name = "tax_jurisdictions" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - datamodel = "[TaxSlotAssignVassalWindow.GetTaxSlots]" - - item = { - tax_slot_assign_vassal_item = {} - } - } - } - - blockoverride "scrollbox_empty" - { - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_NO_AVAILABLE_TAX_SLOT" - visible = "[IsDataModelEmpty( TaxSlotAssignVassalWindow.GetTaxSlots )]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - margin_top = 10 - - hbox = { - visible = "[Not( TaxSlotAssignVassalWindow.HasSelectedTaxSlot )]" - layoutpolicy_horizontal = expanding - margin = { 10 63 } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_NO_SELECTION_DESC" - align = center|nobaseline - autoresize = yes - max_width = 560 - default_format = "#instruction" - } - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - } - - vbox = { - visible = "[TaxSlotAssignVassalWindow.HasSelectedTaxSlot]" - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.7 - } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_HEADER" - } - - text_multi = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_EFFECT_DESC" - align = center - autoresize = yes - max_width = 560 - margin_bottom = 10 - } - - hbox = { - name = "vassal_contributions" - margin = { 10 0 } - spacing = 5 - - text_single = { - text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_EFFECT_VASSAL_NAME" - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[TaxSlotAssignVassalWindow.GetVassalTaxBreakdown]" - datacontext = "[TaxSlotAssignVassalWindow.GetVassal]" - text = "[ValueBreakdown.GetValue]" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "sub_header" {} - - blockoverride "descriptive_text" - { - text = "VASSAL_TAX_CONTRIBUTION_DESC" - } - } - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotAssignVassalWindow.GetVassalLevyBreakdown]" - datacontext = "[TaxSlotAssignVassalWindow.GetVassal]" - text = "[ValueBreakdown.GetValue]" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "sub_header" {} - - blockoverride "descriptive_text" - { - text = "VASSAL_LEVIES_CONTRIBUTION_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - } - - hbox = { - name = "total_contributions" - margin = { 10 5 } - spacing = 5 - - text_single = { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_CONTRIBUTION" - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[TaxSlotAssignVassalWindow.GetTotalTaxBreakdown]" - datacontext = "[TaxSlotAssignVassalWindow.GetLiege]" - - text = "[ValueBreakdown.GetValue]" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TOTAL_TAX_DESC" - } - - blockoverride "sub_header" { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_SUB_HEADER" - } - } - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotAssignVassalWindow.GetTotalLevyBreakdown]" - datacontext = "[TaxSlotAssignVassalWindow.GetLiege]" - - text = "[ValueBreakdown.GetValue]" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TOTAL_LEVIES_DESC" - } - - blockoverride "sub_header" { - text = "TAX_SLOT_OVERVIEW_WINDOW_TOTAL_SUB_HEADER" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - } - - expand = {} - } - } - - hbox = { - margin_top = 10 - - button_standard = { - enabled = "[TaxSlotAssignVassalWindow.HasSelectedTaxSlot]" - onclick = "[TaxSlotAssignVassalWindow.AssignVassal]" - onclick = "[TaxSlotAssignVassalWindow.Close]" - raw_text = "TAX_SLOT_ASSIGN_VASSAL_VIEW_ASSIGN_BUTTON" - } - } - } -} - -types TaxSlotAssignVassalWindowTypes -{ - type current_assigned_tax_slot_vbox = vbox { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - block "tax_slot_gui_item_datacontext" - { - datacontext = "[TaxSlotAssignVassalWindow.GetAssignedTaxSlot]" - } - - datacontext = "[TaxSlotItem.GetTaxSlot]" - datacontext = "[TaxSlotItem.GetTaxCollector]" - datacontext = "[TaxSlot.GetTaxSlotType]" - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - raw_text = "#D Current tax_jurisdiction: [TaxSlot.GetName]#!" - using = Font_Size_Medium - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - text = "[TaxSlot.GetName]" - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - tax_collector_aptitude_text = {} - - expand = {} - } - - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - debug_square = { - size = { 30 30 } - } - - text_single = { - text = "TAX_COLLECTOR_TAXED_VASSALS_COUNT" - } - - expand = {} - - text_single = { - text = "TAX_SLOT_TAX_CONTRIBUTION" - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - text = "TAX_SLOT_LEVY_CONTRIBUTION" - } - - expand = {} - } - - expand = {} - } - - debug_square = { - size = { 75 75 } - } - } - } - - type tax_slot_assign_vassal_item = hbox { - layoutpolicy_horizontal = expanding - spacing = 10 - - datacontext = "[TaxSlotItem.GetTaxSlot]" - datacontext = "[TaxSlotItem.GetTaxCollector]" - datacontext = "[TaxSlot.GetTaxSlotType]" - - portrait_head_small = { - enabled = "[TaxSlotItem.HasTaxCollector]" - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "TAX_SLOT_ADD_NEW_TAX_COLLECTOR_BUTTON" - } - } - - button_standard_clean = { - size = { 490 85 } - - enabled = "[TaxSlotAssignVassalWindow.CanSelectTaxSlot( TaxSlot.Self )]" - onclick = "[TaxSlotAssignVassalWindow.ToggleSelectedTaxSlot( TaxSlotItem.Self )]" - down = "[TaxSlotAssignVassalWindow.IsTaxSlotSelected( TaxSlotItem.Self )]" - - tooltip = "[TaxSlotAssignVassalWindow.GetCanSelectTaxSlotDesc( TaxSlot.Self )]" - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 15 10 } - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[TaxSlot.GetName]" - align = nobaseline - max_width = 300 - } - - expand = {} - - tax_collector_aptitude_text = { - align = nobaseline - max_width = 180 - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 20 - - text_single = { - text = "TAX_COLLECTOR_TAXED_VASSALS_COUNT" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - text_single = { - datacontext = "[TaxSlotItem.GetTaxBreakdown]" - text = "TAX_SLOT_TAX_CONTRIBUTION" - - tooltipwidget = { - tax_contribution_tooltip = {} - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - datacontext = "[TaxSlotItem.GetLevyBreakdown]" - text = "TAX_SLOT_LEVY_CONTRIBUTION" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - - expand = {} - } - } - } - } - } -} diff --git a/N3OW/gui/window_tax_slot_obligations.gui b/N3OW/gui/window_tax_slot_obligations.gui deleted file mode 100644 index 4c7926da..00000000 --- a/N3OW/gui/window_tax_slot_obligations.gui +++ /dev/null @@ -1,610 +0,0 @@ -window = { - name = "window_tax_slot_obligations" - parentanchor = "center" - position = { 0 100 } - size = { 1125 800 } - layer = middle - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - - using = Window_Background - using = Window_Decoration - - vbox = { - using = Window_Margins - spacing = 10 - - datacontext = "[TaxSlotObligationsWindow.GetTaxSlot]" - - background = { - texture = "gfx/interface/window_tax_collector/tax_collector_illustration.dds" - alpha = 0.3 - fittype = end - margin = { -120 -30 } - margin_left = -30 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TAX_COLLECTOR_OBLIGATION_WINDOW_HEADER" - maximumsize = { 600 -1 } - } - - blockoverride "button_close" - { - onclick = "[TaxSlotObligationsWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin = { 15 0 } - - ###SELECTABLE OBLIGATIONS - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 20 - max_width = 460 - - - text_multi ={ - text = "TAX_COLLECTION_OPTION_INSTRUCTIONS" - multiline = yes - autoresize = yes - maximumsize = { 460 60 } - default_format = "#instruction" - } - - fixedgridbox = { - name = "obligations" - layoutpolicy_horizontal = expanding - - flipdirection = yes - datamodel_wrap = 4 - - addcolumn = 130 - addrow = 160 - - datamodel = "[TaxSlotObligationsWindow.GetObligations]" - - item = { - obligation_option_widget = {} - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - using = Background_Area - } - - blockoverride "scrollbox_content" { - - vbox = { - spacing = 5 - - text_single = { - visible = "[TaxSlotObligationsWindow.HasObligationChanges]" - text = "TAX_SLOT_OBLIGATIONS_WINDOW_SELECTED" - } - - text_single = { - visible = "[Not( TaxSlotObligationsWindow.HasObligationChanges )]" - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CURRENT" - } - - text_multi = { - multiline = yes - autoresize = yes - max_width = 480 - default_format = "#weak" - text = "[TaxSlotObligationsWindow.GetSelectedObligation.GetFlavorDesc]" - } - } - } - } - } - - ### CONTRACT - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - using = Background_Letter - maximumsize = { 470 540 } - - widget = { - parentanchor = top|right - size = { 264 264 } - position = { -8 11 } - scale = 0.7 - alpha = 0.4 - - background = { - texture = "gfx/interface/window_tax_collector/letter_pattern.dds" - mirror = horizontal - } - } - - widget = { - parentanchor = top|left - size = { 264 264 } - position = { 8 11 } - scale = 0.7 - alpha = 0.4 - - background = { - texture = "gfx/interface/window_tax_collector/letter_pattern.dds" - } - } - - widget = { - parentanchor = bottom|left - size = { 264 264 } - position = { 10 -13 } - scale = 0.7 - alpha = 0.4 - - background = { - texture = "gfx/interface/window_tax_collector/letter_pattern_bottom.dds" - } - } - - widget = { - parentanchor = bottom|right - size = { 264 264 } - position = { -10 -13 } - scale = 0.7 - alpha = 0.4 - - background = { - texture = "gfx/interface/window_tax_collector/letter_pattern_bottom.dds" - mirror = horizontal - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 0 0 } - - hbox = { - margin_left = -15 - margin_top = -25 - - icon = { - size = { 500 60 } - max_width = 530 - texture = "gfx/interface/skinned/window_letter/letter_event_edge_top.dds" - } - } - - hbox = { - margin_left = -15 - margin_top = 470 - - icon = { - size = { 500 60 } - max_width = 530 - texture = "gfx/interface/skinned/window_letter/letter_event_edge_bottom.dds" - } - } - - expand = {} - } - - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 45 0 } - margin_top = 45 - spacing = 7 - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CONTRACT_HEADER" - using = Font_Size_Big - } - - background = { - using = Background_Area_Dark - alpha = 0.8 - margin_bottom = 10 - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - } - } - } - - text_multi = { - margin_top = 7 - margin_left = 5 - layoutpolicy_horizontal = expanding - - visible = "[TaxSlot.GetTaxCollector.IsValid]" - - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CONTRACT_DESC" - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - - text_multi = { - margin_top = 7 - margin_left = 5 - layoutpolicy_horizontal = expanding - - visible = "[Not(TaxSlot.GetTaxCollector.IsValid)]" - - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CONTRACT_DESC_NO_TAX_COLLECTOR" - default_format = "#light_background" - using = Text_Light_Background_Overrides - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_HEADER" - using = Font_Size_Medium - } - - background = { - using = Background_Area_Dark - alpha = 0.8 - margin_bottom = 6 - - modify_texture = { - blend_mode = alphaMultiply - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - } - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - background = { - #margin = { -20 -5 } - using = Background_Area_Dark - alpha = 0.8 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_overlay/seamless_noise.dds" - spriteType = corneredtiled - texture_density = 2 - alpha = 0.4 - - } - } - - blockoverride "scrollbox_content" - { - text_multi = { - datacontext = "[TaxSlotObligationsWindow.GetSelectedObligation]" - - layoutpolicy_horizontal = expanding - max_width = 350 - autoresize = yes - text = "[TaxSlotObligation.GetEffectText]" - - format_override = { weak medium } - } - } - } - - hbox = { - margin_bottom = 30 - layoutpolicy_horizontal = expanding - spacing = 10 - - datacontext = "[TaxSlot.GetOwner]" - - coa_character_sigil = { - blockoverride "size" - { - size = { 80 80 } - } - blockoverride "sigil_size" - { - size = { 56 56 } - } - } - - text_single = { - name = "liege_signature" - max_width = 430 - align = left - layoutpolicy_horizontal = expanding - default_format = "#light_background" - - text = "TAX_COLLECTOR_SIGNATURE" - using = Font_Type_Flavor - using = Font_Size_Medium - using = Text_Light_Background_Overrides - } - - expand = {} - } - } - } - } - - ### LEVIES AND TAXES COMPARISON - vbox = { - margin_top = 5 - margin_bottom = 10 - layoutpolicy_horizontal = expanding - minimumsize = { 1 88} - background = { - using = Background_Area_Dark - alpha = 0.5 - } - - hbox = { - name = "current_contributions" - - margin = { 10 5 } - margin_top = 3 - spacing = 5 - - text_single = { - margin_right = 20 - align = nobaseline - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CONTRIBUTIONS_CURRENT" - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - margin_right = 10 - datacontext = "[TaxSlotObligationsWindow.GetCurrentTaxBreakdown]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = {} - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotObligationsWindow.GetCurrentLevyBreakdown]" - text = "[ValueBreakdown.GetValue]" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - } - - hbox = { - name = "preview_contributions" - - margin = { 5 0 } - spacing = 5 - - background = { - using = Background_Area_Dark - using = Color_White - tintcolor = { 0.4 0.5 0.7 0.2 } - margin = { 0 3 } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - } - visible = "[TaxSlotObligationsWindow.HasObligationChanges]" - - expand = {} - - text_single = { - margin_right = 20 - align = nobaseline - text = "TAX_SLOT_OBLIGATIONS_WINDOW_CONTRIBUTIONS_PREVIEW" - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - margin_right = 20 - datacontext = "[TaxSlotObligationsWindow.GetPreviewTaxBreakdown]" - text = "[ValueBreakdown.GetValue]" - using = Font_Size_Medium - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = {} - } - using = tooltip_ws - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotObligationsWindow.GetPreviewLevyBreakdown]" - text = "[ValueBreakdown.GetValue]" - using = Font_Size_Medium - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - - expand = {} - } - } - - hbox = { - margin_bottom = 10 - spacing = 20 - - button_primary = { - enabled = "[TaxSlotObligationsWindow.CanApplyObligationChanges]" - onclick = "[TaxSlotObligationsWindow.ApplyChanges]" - onclick = "[TaxSlotObligationsWindow.Close]" - - text = "TAX_SLOT_OBLIGATIONS_WINDOW_ACCEPT" - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types TaxSlotObligationsTypes -{ - type obligation_option_widget = widget { - size = { 120 150 } - - tooltipwidget = { - tax_slot_obligation_tooltip = { - blockoverride "warning_description_text" - { - text = "TAX_SLOT_OBLIGATION_SELECT_WARNING_TOOLTIP" - default_format = "#X" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - - - button_standard_clean = { - name = "collection_option_box" - size = { 120 120 } - - background = { - using = Background_Area - } - - enabled = "[TaxSlotObligationsWindow.CanSelectObligation( TaxSlotObligation.Self )]" - onclick = "[TaxSlotObligationsWindow.SelectObligation( TaxSlotObligation.Self )]" - down = "[IsSelectedTaxObligation( TaxSlotObligation.Self )]" - alwaystransparent = "[IsSelectedTaxObligation( TaxSlotObligation.Self )]" - - background = { - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - margin = { -2 -2 } - } - - blockoverride "button_standard_current" - { - visible = "[And( IsCurrentTaxObligation( TaxSlotObligation.Self ), Not( IsSelectedTaxObligation( TaxSlotObligation.Self ) ) )]" - } - - icon = { - size = {100% 100%} - texture = "[TaxSlotObligation.GetIcon]" - } - - widget = { - size = {116 116} - parentanchor = center - - scissor = yes - - text_label_left = { - max_width = 140 - text = "[TaxSlotObligation.GetNameNoTooltip]" - default_format = "#clickable" - parentanchor = bottom|left - position = { 6 0 } - } - } - - selection_glow = { - visible = "[IsSelectedTaxObligation( TaxSlotObligation.Self )]" - } - } - } - } - } -} diff --git a/N3OW/gui/window_tax_slot_vassals.gui b/N3OW/gui/window_tax_slot_vassals.gui deleted file mode 100644 index cb52c4fb..00000000 --- a/N3OW/gui/window_tax_slot_vassals.gui +++ /dev/null @@ -1,1256 +0,0 @@ -window = { - name = "window_tax_slot_vassals" - parentanchor = "center" - size = { 700 1000 } - layer = middle - allow_outside = yes - - using = Window_Background - using = Window_Decoration - - datacontext = "[TaxSlotVassalWindow.GetTaxSlot]" - - state = { - name = _show - on_start = "[GetVariableSystem.Set( 'tax_slot_vassal_tab', Select_CString( TaxSlot.HasTaxpayers, 'manage_vassals', 'assign_vassals' ) )]" - } - - vbox = { - using = Window_Margins - layoutpolicy_vertical = expanding - - datacontext = "[TaxSlotVassalWindow.GetLiege]" - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TaxSlotVassalWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - margin_bottom = 10 - max_width = 610 - - - hbox = { - layoutpolicy_horizontal = expanding - - spacing = 10 - size = { 575 220 } - - widget = { - block "size_illustration" { - size = { 600 30 } - } - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 10 10 } - } - - text_single = { - layoutpolicy_horizontal = expanding - margin = { 10 1 } - max_width = 580 - - text = "TAX_SLOT_VASSAL_WINDOW_ASSIGNED_VASSALS" - align = left - using = Font_Size_Medium - } - } - } - - hbox = { - name = "vassals_tabs" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[GetVariableSystem.Set( 'tax_slot_vassal_tab', 'manage_vassals' )]" - down = "[GetVariableSystem.HasValue( 'tax_slot_vassal_tab', 'manage_vassals' )]" - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_CURRENT" - } - - button_tab = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[GetVariableSystem.Set( 'tax_slot_vassal_tab', 'assign_vassals' )]" - down = "[GetVariableSystem.HasValue( 'tax_slot_vassal_tab', 'assign_vassals' )]" - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN" - } - } - - vbox = { - name = "manage_vassals_tab" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - datacontext = "[TaxSlotVassalWindow.AccessAssignedVassals]" - visible = "[GetVariableSystem.HasValue( 'tax_slot_vassal_tab', 'manage_vassals' )]" - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_CURRENT_DESC" - default_format = "#instruction" - align = center - - max_width = 580 - autoresize = yes - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[TaxSlotVassalWindow.AccessAssignedVassalsBase]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "assigned_vassals_sort_options" - } - } - - blockoverride "skill_sort_buttons" {} - - expand = {} - - button_standard = { - size = { 170 25 } - onclick = "[AssignedVassalList.SelectAllCharacters]" - - text = "TAX_SLOT_VASSAL_WINDOW_SELECT_ALL" - } - - button_standard = { - size = { 25 25 } - - enabled = "[DataModelHasItems( AssignedVassalList.GetSelectedCharacters )]" - onclick = "[AssignedVassalList.ClearSelectedCharacters]" - - tooltip = "TAX_SLOT_VASSAL_WINDOW_CLEAR_SELECTION" - - button_cancel = { - parentanchor = center - alwaystransparent = yes - size = { 100% 100% } - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - } - - blockoverride "container_implementation" { - fixedgridbox = { - name = "assigned_vassals_grid" - datamodel = "[CharacterSelectionList.GetList]" - - layoutpolicy_horizontal = expanding - - addcolumn = 575 - addrow = 130 - - item = { - tax_slot_vassal_item = { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 575 120 } - - blockoverride "character_selected_icon" - { - visible = "[AssignedVassalList.IsCharacterSelected( CharacterListItem.Self )]" - } - - blockoverride "character_selected_down" {} - - blockoverride "button_content" - { - assigned_vassal_button_content = {} - } - } - } - } - } - } - - vbox = { - name = "manage_vassals_effects_no_changes" - layoutpolicy_horizontal = expanding - - visible = "[IsDataModelEmpty( AssignedVassalList.GetSelectedCharacters )]" - - text_multi = { - max_width = 580 - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_VASSAL_WINDOW_TAB_CURRENT_PREVIEW" - default_format = "#instruction" - } - } - - vbox = { - name = "manage_vassals_effects" - layoutpolicy_horizontal = expanding - spacing = 10 - - visible = "[DataModelHasItems( AssignedVassalList.GetSelectedCharacters )]" - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_HEADER" - } - - text_single = { - text = "TAX_SLOT_VASSAL_WINDOW_TAB_CURRENT_EFFECT_SUB_HEADER" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area - margin = { 0 5 } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 7 - max_width = 260 - - text_single = { - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_THIS_JURISDICTION" - max_width = 280 - margin_left = -5 - margin_bottom = 3 - } - - background = { - texture = "gfx/interface/colors/blue.dds" - alpha = 0.6 - modify_texture = { - name = "mask" - texture = "gfx/interface/window_tax_collector/button_arrow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - using = Mask_Rough_Edges - } - expand = {} - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - max_width = 250 - - datacontext = "[TaxSlotVassalWindow.GetRemoveChanges]" - - background = { - using = Background_Area - using = Color_White - tintcolor = { 0.6 0.7 0.2 0.3 } - margin = { 30 3 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - - expand = {} - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[TaxSlotVassalChange.GetTaxBreakdown]" - - text = "TAX_SLOT_REMOVE_VASSAL_TAX_CHANGE" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_REMOVE_VASSAL_TAX_DESC" - } - } - } - using = tooltip_ws - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotVassalChange.GetLeviesBreakdown]" - - text = "TAX_SLOT_REMOVE_VASSAL_LEVIES_CHANGE" - align = nobaseline - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_REMOVE_VASSAL_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - expand = {} - } - - } - } - } - - button_primary = { - onclick = "[TaxSlotVassalWindow.RemoveVassals]" - enabled = "[DataModelHasItems( AssignedVassalList.GetSelectedCharacters )]" - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_CURRENT_BUTTON" - } - } - - vbox = { - name = "assign_vassals_tab" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 10 - - datacontext = "[TaxSlotVassalWindow.AccessUnassignedVassals]" - - visible = "[GetVariableSystem.HasValue( 'tax_slot_vassal_tab', 'assign_vassals' )]" - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_DESC" - default_format = "#instruction" - align = center - - max_width = 600 - autoresize = yes - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[TaxSlotVassalWindow.AccessUnassignedVassalsBase]" - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "unassigned_vassals_sort_options" - } - } - blockoverride "skill_sort_buttons" {} - - expand = {} - - button_standard = { - size = { 170 25 } - - onclick = "[UnassignedVassalList.SelectAllCharacters]" - #tooltip = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_SELECT_ALL" - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_SELECT_ALL" - } - - button_standard = { - size = { 25 25 } - - enabled = "[DataModelHasItems( UnassignedVassalList.GetSelectedCharacters )]" - onclick = "[UnassignedVassalList.ClearSelectedCharacters]" - - tooltip = "TAX_SLOT_VASSAL_WINDOW_CLEAR_SELECTION" - - button_cancel = { - parentanchor = center - alwaystransparent = yes - size = { 100% 100% } - } - } - } - } - - blockoverride "container_implementation" - { - fixedgridbox = { - name = "unassgiend_vassals_grid" - datamodel = "[CharacterSelectionList.GetList]" - - layoutpolicy_horizontal = expanding - - addcolumn = 575 - addrow = 130 - datamodel_reuse_widgets = yes - - item = { - tax_slot_vassal_item = { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 575 120 } - - blockoverride "selected_icon" - { - visible = "[UnassignedVassalList.IsCharacterSelected( CharacterListItem.Self )]" - texture = "gfx/interface/icons/flat_icons/plus.dds" - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 0.75 - } - } - - blockoverride "character_selected_icon" - { - visible = "[UnassignedVassalList.IsCharacterSelected(CharacterListItem.Self)]" - } - - blockoverride "character_selected_down" - { - down = "[UnassignedVassalList.IsCharacterSelected(CharacterListItem.Self)]" - } - - blockoverride "button_content" - { - unassigned_vassal_button_content = { - tooltip = "[CharacterListItem.GetText('tooltip')]" - } - } - } - } - } - } - } - - vbox = { - name = "assign_vassals_effects_no_changes" - layoutpolicy_horizontal = expanding - - visible = "[IsDataModelEmpty( UnassignedVassalList.GetSelectedCharacters )]" - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 580 - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_PREVIEW" - default_format = "#instruction" - } - } - - vbox = { - name = "assign_vassals_effects" - layoutpolicy_horizontal = expanding - spacing = 10 - - visible = "[DataModelHasItems( UnassignedVassalList.GetSelectedCharacters )]" - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_HEADER" - } - - text_single = { - max_width = 620 - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_EFFECT_SUB_HEADER" - } - - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 5 - - background = { - using = Background_Area - margin = { 0 5 } - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin = { 20 0 } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - spacing = 7 - max_width = 260 - - text_single = { - text = "TAX_SLOT_VASSAL_WINDOW_EFFECT_THIS_JURISDICTION" - margin_left = -5 - margin_bottom = 3 - } - - background = { - texture = "gfx/interface/colors/blue.dds" - alpha = 0.6 - modify_texture = { - name = "mask" - texture = "gfx/interface/window_tax_collector/button_arrow.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - using = Mask_Rough_Edges - } - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - max_width = 250 - - datacontext = "[TaxSlotVassalWindow.GetAssignChanges]" - - background = { - using = Background_Area - using = Color_White - tintcolor = { 0.6 0.7 0.2 0.3 } - margin = { 30 3 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphaMultiply - } - } - - expand = {} - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_gold.dds" - } - - text_single = { - datacontext = "[TaxSlotVassalChange.GetTaxBreakdown]" - - align = nobaseline - text = "TAX_SLOT_ASSIGN_VASSAL_TAX_CHANGE" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_ASSIGN_VASSAL_TAX_DESC" - } - } - } - using = tooltip_ws - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - } - - expand = {} - - icon = { - size = { 25 25 } - texture = "gfx/interface/icons/icon_soldier.dds" - } - - text_single = { - datacontext = "[TaxSlotVassalChange.GetLeviesBreakdown]" - - align = nobaseline - text = "TAX_SLOT_ASSIGN_VASSAL_LEVIES_CHANGE" - - tooltipwidget = { - tax_contribution_tooltip = { - blockoverride "descriptive_text" - { - text = "TAX_SLOT_ASSIGN_VASSAL_LEVIES_DESC" - } - - blockoverride "contribution_icon" - { - texture = "gfx/interface/icons/icon_soldier.dds" - } - } - } - using = tooltip_ws - } - - expand = {} - } - - } - } - } - - button_primary = { - onclick = "[TaxSlotVassalWindow.AssignVassals]" - enabled = "[DataModelHasItems( UnassignedVassalList.GetSelectedCharacters )]" - - text = "TAX_SLOT_VASSAL_WINDOW_TAB_ASSIGN_BUTTON" - } - } - - expand = {} - } - } - - window_character_filter = { - name = "tax_slot_assigned_vassals_filter_window" - datacontext = "[TaxSlotVassalWindow.AccessAssignedVassalsBase]" - - blockoverride "editbox_properties" - { - name = "assigned_vassals_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_house_filter')]" - } - } - } - - window_character_filter = { - name = "tax_slot_unassigned_vassals_filter_window" - datacontext = "[TaxSlotVassalWindow.AccessUnassignedVassalsBase]" - - blockoverride "editbox_properties" - { - name = "unassigned_vassals_text_filter" - ontextedited = "[CharacterSelectionList.SetPattern]" - oneditingfinished = "[CharacterSelectionList.FinishEdit]" - } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_house_filter')]" - } - } - } -} - -types TaxCollectorVassalViewTypes -{ - type tax_slot_vassal_item = widget { - size = { 10 120 } - - block "divider" { - divider = { - parentanchor = bottom|hcenter - size = { 100% 3 } - } - } - - block "widget" {} - hbox = { - icon = { - size = { 25 25 } - block "selected_icon" - { - visible = "[AssignedVassalList.IsCharacterSelected( CharacterListItem.Self )]" - texture = "gfx/interface/icons/flat_icons/cancel.dds" - modify_texture = { - texture = "gfx/interface/colors/red.dds" - alpha = 0.75 - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 10 - - portrait_head_small = { - blockoverride "portrait_button" { - text_single = { - name = "tutorial_highlight_character_view_opinion" - visible = "[InDebugMode]" - max_width = 100 - margin = { 3 0 } - using = tooltip_es - default_format = "#D" - } - } - } - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - - spriteType = Corneredtiled - spriteborder = { 20 20 } - - block "character_selected_down" - { - down = no - } - - background = { - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - spriteType = Corneredtiled - margin = { 10 0 } - using = Color_Orange - alpha = 0 - using = Mask_Rough_Edges - } - - block "button" {} - - character_list_arrow = { - name = "character_list_arrow" - } - - # Selected icon - icon = { - block "character_selected_icon" - { - visible = no - } - - parentanchor = left|vcenter - position = { -20 0 } - size = { 20 20 } - texture = "gfx/interface/buttons/button_entry_characterlist_arrow.dds" - } - - block "overlay" { - using = default_character_list_overlay - } - - block "button_content" {} - } - } - } - } - - type assigned_vassal_button_content = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - background = { - visible = "[AssignedVassalList.IsCharacterSelected( CharacterListItem.Self )]" - texture = "gfx/interface/colors/red.dds" - alpha = 0.1 - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - # Name - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - name = "character_relation" - visible = "[Character.HasRelationTo( GetPlayer )]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - } - - icon = { - datacontext = "[Character.GetFaith]" - size = { 40 40 } - texture = "[Faith.GetIcon]" - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - hbox = { - datacontext = "[Character.GetCulture]" - margin = { 5 0 } - - Background = { - using = Background_Area - } - - tooltipwidget = { - culture_tooltip = {} - } - - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 60 - align = center|nobaseline - autoresize = no - text = "CULTURE_LISTS_WINDOW" - } - } - } - - - ### Vassal Info - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - icon = { - datacontext = "[Character.GetVassalStance]" - visible = "[Not( Character.IsPlayer )]" - - size = { 40 40 } - texture = "[VassalStance.GetIcon]" - - tooltipwidget = { - using = vassal_stance_tooltip - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - vassal_progressbars = { - blockoverride "width" - { - layoutpolicy_horizontal = expanding - } - - blockoverride "background" - { - } - - blockoverride "tax_progressbar_size" - { - size = { 100% 25 } - } - blockoverride "tax_progressbar_value" - { - value = "[FixedPointToProgressbarValue( AssignedVassalList.GetTaxPercentage( CharacterListItem.Self ) )]" - } - blockoverride "tax_value" - { - text = "TAX_SLOT_VASSAL_WINDOW_ASSIGNED_VASSAL_TAX_CONTRIBUTION" - } - blockoverride "tax_breakdown" - { - datacontext = "[AssignedVassalList.GetTaxBreakdown( CharacterListItem.Self )]" - } - - blockoverride "levy_progressbar_size" - { - size = { 100% 25 } - } - blockoverride "levy_progressbar_value" - { - value = "[FixedPointToProgressbarValue( AssignedVassalList.GetLevyPercentage( CharacterListItem.Self ) )]" - } - blockoverride "levy_value" - { - text = "TAX_SLOT_VASSAL_WINDOW_ASSIGNED_VASSAL_LEVY_CONTRIBUTION" - } - blockoverride "levy_breakdown" - { - datacontext = "[AssignedVassalList.GetLevyBreakdown( CharacterListItem.Self )]" - } - } - } - } - } - - - type unassigned_vassal_button_content = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 0 } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_horizontal = expanding - - # Name - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip]" - } - - text_single = { - name = "character_relation" - visible = "[Character.HasRelationTo( GetPlayer )]" - layoutpolicy_horizontal = expanding - alwaystransparent = yes - - text = "[Character.GetRelationToString( GetPlayer )]" - default_format = "#low" - autoresize = no - - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - } - } - - icon = { - datacontext = "[Character.GetFaith]" - size = { 40 40 } - texture = "[Faith.GetIcon]" - - tooltipwidget = { - faith_tooltip_core_tenents = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[TaxSlotVassalWindow.GetTaxSlotStatusForCharacter( CharacterListItem.GetCharacter )]" - } - - hbox = { - datacontext = "[Character.GetCulture]" - margin = { 5 0 } - - Background = { - using = Background_Area - } - - tooltipwidget = { - culture_tooltip = {} - } - - using = tooltip_se - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 24 24 } - } - - text_single = { - layoutpolicy_horizontal = expanding - min_width = 60 - align = center|nobaseline - autoresize = no - text = "CULTURE_LISTS_WINDOW" - } - } - } - - ### Vassal Info - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - icon = { - datacontext = "[Character.GetVassalStance]" - size = { 40 40 } - texture = "[VassalStance.GetIcon]" - tooltipwidget = { - using = vassal_stance_tooltip - } - } - - hbox = { - margin = { 10 5 } - spacing = 10 - layoutpolicy_horizontal = expanding - - Background = { - using = Background_Area - } - - expand = {} - text_single = { - text = "TAX_SLOT_VASSAL_WINDOW_TAXABLE" - } - - text_single = { - alwaystransparent = yes - text = "TAX_SLOT_VASSAL_WINDOW_UNASSIGNED_VASSAL_TAXABLE_INCOME" - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - text_single = { - alwaystransparent = yes - text = "TAX_SLOT_VASSAL_WINDOW_UNASSIGNED_VASSAL_LEVIES" - } - } - } - } - - - type tax_contribution_tooltip = widget { - alwaystransparent = no - - using = GeneralTooltipSetup - - widget = { - name = "background" - using = DefaultTooltipBackground - size = { 100% 100% } - alwaystransparent = no - } - - vbox = { - layoutpolicy_horizontal = expanding - set_parent_size_to_minimum = yes - ignoreinvisible = yes - spacing = 5 - margin = { 10 10 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 5 } - margin_bottom = 8 - spacing = 15 - - background = { - using = Background_Area - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - default_format = "#T" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetValue]" - align = right - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - margin = { 10 0 } - max_width = 300 - autoresize = yes - block "descriptive_text" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_TAX_DESC" - } - default_format = "#instruction" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[ValueBreakdown.GetSubValues]" - alwaystransparent = no - margin = { 10 10 } - spacing = 3 - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 10 5 } - } - - text_single = { - layoutpolicy_horizontal = expanding - block "sub_header" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_SUBHEADER" - } - default_format = "#high" - } - - expand = {} - - icon = { - size = { 25 25 } - block "contribution_icon" - { - texture = "gfx/interface/icons/icon_gold.dds" - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[IsDataModelEmpty( ValueBreakdown.GetSubValues)]" - - block "no_sub_values" - { - text = "TAX_SLOT_VASSAL_WINDOW_TAX_SLOT_NO_VASSALS_ASSIGNED" - } - - default_format = "#weak" - } - - item = { - hbox = { - name = "value_breakdown" - layoutpolicy_horizontal = expanding - - text_single = { - name = "name" - layoutpolicy_horizontal = expanding - text = "[ValueBreakdown.GetName]" - min_width = 180 - max_width = 250 - fonttintcolor = "[TooltipInfo.GetTintColor]" - margin_right = 10 - } - - text_single= { - visible = "[And(ValueBreakdown.HasTooltip, ValueBreakdown.ShouldShowValue)]" - name = "value_with_tooltip" - text = "[ValueBreakdown.GetValue|L]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - - using = tooltip_below - - tooltipwidget = { - recursive = yes - - widget_value_breakdown_tooltip = {} - } - } - - text_single = { - visible = "[And( Not(ValueBreakdown.HasTooltip), ValueBreakdown.ShouldShowValue )]" - name = "value_with_no_tooltip" - text = "[ValueBreakdown.GetValue]" - align = right - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - } - } - } - } -} - diff --git a/N3OW/gui/window_tgp_dynastic_cycle.gui b/N3OW/gui/window_tgp_dynastic_cycle.gui deleted file mode 100644 index c1798f3f..00000000 --- a/N3OW/gui/window_tgp_dynastic_cycle.gui +++ /dev/null @@ -1,3395 +0,0 @@ -###################################################### -################ THE DYNASTIC CYCLE ################## -###################################################### -window = { - name = "window_tgp_dynastic_cycle" - widgetid = "window_tgp_dynastic_cycle" - datacontext = "[SituationWindow.GetSituation]" - datacontext = "[Situation.GetTopSubRegion]" - datacontext = "[Situation.GetTopCurrentPhase]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - oncreate = "[BindTabsContext]" - oncreate = "[PdxGuiTabs.ListenFor( 'dynastic_cycle_tabs' )]" # Used in code, do not change - oncreate = "[PdxGuiTabs.AddTab( 'dynastic_cycle' )]" - oncreate = "[PdxGuiTabs.AddTab( 'movements' )]" - oncreate = "[PdxGuiTabs.SetResetOnShown( '(bool)no' )]" - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - - on_start = "[SetMapMode( 'dynastic_cycle' )]" - on_start = "[SituationWindow.ClearSelectedFuturePhaseType]" - on_start = "[SituationWindow.AccessParticipantCharacterList.SetSelectedParticipantGroup( Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ) )]" - on_start = "[SituationDynasticCycleWindow.UpdateSelectedParticipantGroup( Situation.GetTopCharacterParticipantGroup( GetPlayer.Self ) )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - - on_start = "[SetMapMode( 'realms' )]" - on_start = "[VariableSystem.Clear( 'dynastic_cycle_phases_list_window' )]" - } - - margin_widget = { - size = { 100% 100% } - margin_top = 32 - margin_bottom = 25 - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - using = Window_Margins - - ### HEADER - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Situation.GetNameNoTooltip]" - } - - blockoverride = "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - blockoverride "button_close" - { - onclick = "[SituationWindow.Close]" - } - } - - ### HEGEMONY NAME - text_single = { - layoutpolicy_horizontal = expanding - max_width = 300 - text = "DYNASTIC_CYCLE_WINDOW_CURRENT_DYNASTY" - using = Font_Size_Small - align = center|nobaseline - } - - ### TOP TABS - hbox_tab_buttons = { - name = "dynastic_cycle_tabs" #ra_dynastic_cycle_era_open_groups uses this - visible = "[Not( SituationDynasticCycleWindow.IsInChaosEra )]" - - blockoverride "tab_name" - { - text = "[PdxGuiTabItem.LocalizeTab( 'dynastic_cycle_tab' )]" - } - } - - ### DYNASTIC CYCLE ### - scrollbox = { - name = "dynastic_cycle_scrollarea" - widgetid = "dynastic_cycles_eras_tab_contents" - visible = "[Or( PdxGuiTabs.IsTabSet( 'dynastic_cycle' ), SituationDynasticCycleWindow.IsInChaosEra )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" {} - blockoverride "scrollbox_content" - - { - ### TOP WHEEL AREA - widget = { - name = "top_area" - - layoutpolicy_horizontal = expanding - size = { 0 312 } - - scissor = yes - - background = { - - texture = "[SituationPhase.GetType.GetIllustration]" - fittype = centercrop - alpha = 0.25 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - alpha = 0.5 - } - } - ### THE WHEEL ILLUSTRATION - wheel_illustration_icon = { - } - - ### THE WHEEL BORDER - - icon = { - name = "the_wheel_border" - size = { 512 512 } - widgetanchor = center - parentanchor = bottom|hcenter - alwaystransparent = yes - visible = "[SituationDynasticCycleWindow.IsNextPhaseForward]" - - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_border.dds" - - modify_texture = { - - name = "spin" - blend_mode = Normal - rotate_uv = 0 - - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_border.dds" - - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 180 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - } - - icon = { - name = "the_wheel_border_counterclockwise" - size = { 512 512 } - widgetanchor = center - parentanchor = bottom|hcenter - alwaystransparent = yes - mirror = vertical - visible = "[Not( SituationDynasticCycleWindow.IsNextPhaseForward )]" - - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_border.dds" - - modify_texture = { - - name = "spin" - blend_mode = Normal - rotate_uv = 0 - - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_border.dds" - - } - - state = { - name = a - next = b - trigger_on_create = yes - duration = 180 - - modify_texture = { - name = "spin" - rotate_uv = -360 - } - } - - state = { - name = b - next = a - duration = 0 - - modify_texture = { - name = "spin" - rotate_uv = 0 - } - } - - } - - ### THE WHEEL TOP MIDDLE ICON - - widget = { - parentanchor = hcenter|top - position = { 0 8 } - size = { 88 88 } - - icon = { - size = { 88 88 } - parentanchor = center - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_top_decoration.dds" - } - - icon = { - size = { 64 64 } - parentanchor = center - - dynastic_cycle_phase_icon = { - parentanchor = center - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - visible = "[SituationWindow.GetSelectedFuturePhaseType.IsValid]" - blockoverride "phase_widget_tooltip" - { - datacontext = "[SituationPhase.GetType]" - tooltip = "DYNASTIC_CYCLE_POTENTIAL_PHASE_TT" - using = tooltip_se - } - - } - - dynastic_cycle_phase_icon = { - parentanchor = center - datacontext = "[SituationPhase.GetType]" - visible = "[Not(SituationWindow.GetSelectedFuturePhaseType.IsValid)]" - blockoverride "phase_widget_tooltip" - { - datacontext = "[SituationPhase.GetType]" - tooltip = "DYNASTIC_CYCLE_CURRENT_PHASE_TT" - using = tooltip_se - } - - } - } - - return_current_era_button = { - parentanchor = right - position = { 2 2 } - } - - } - - ### TOP RIGHT BUTTONS - widget = { - size = { 80 64 } - position = { -96 0 } - parentanchor = right|top - widgetanchor = right|top - visible = "[Not( SituationDynasticCycleWindow.IsInChaosEra )]" - - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - - situation_overview_buttons_vbox = { - blockoverride "participants_list_section" - { - visible = no - } - } - } - - ### TOP RIGHT BUTTONS (DURING CHAOS ERA) - widget = { - size = { 64 64 } - position = { -32 8 } - parentanchor = right|top - widgetanchor = right|top - visible = "[SituationDynasticCycleWindow.IsInChaosEra]" - - situation_overview_buttons_vbox = { - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationWindow.GetSituation.GetParticipantGroupByCharacter( GetPlayer )]" - - blockoverride "participants_list_section" - { - visible = "[SituationDynasticCycleWindow.IsInChaosEra]" - } - - blockoverride "participants_number_text" - { - text = "[GetDataModelSize( SituationWindow.GetSituation.GetParticipatingCharacters )]" - tooltip = "DYNASTIC_CYCLE_WINDOW_TOGGLE_MEMBER_LIST_TT_CHAOS" - } - } - } - - ### TOP LEFT PROGRESS BUTTONS (ADVANCEMENT/EXPANSION) - - widget = { - size = { 82 324 } - parentanchor = left|vcenter - position = { 6 0 } - visible = "[Not( SituationDynasticCycleWindow.IsInChaosEra )]" - - flowcontainer = { - position = { 0 16 } - spacing = 2 - parentanchor = top - widgetanchor = top - direction = vertical - - ignoreinvisible = yes - datamodel = "[SituationPhase.GetFuturePhases]" - - item = { - future_era_button = { - datacontext = "[FutureSituationPhase.GetType]" - datacontext = "[SituationDynasticCycleWindow.GetHegemonOrTopCandidate]" - visible = "[SituationDynasticCycleWindow.IsEraTypeBackward( SituationPhase.GetType, FutureSituationPhase.GetType )]" - } - } - } - } - - ### TOP RIGHT BOTTONS (TENSION/CHAOS) - widget = { - - size = { 82 324 } - parentanchor = right|vcenter - position = { 0 0 } - visible = "[Not( SituationDynasticCycleWindow.IsInChaosEra )]" - - flowcontainer = { - position = { 0 16 } - spacing = 2 - parentanchor = top - widgetanchor = top - direction = vertical - - ignoreinvisible = yes - datamodel = "[SituationPhase.GetFuturePhases]" - - item = { - future_era_button = { - datacontext = "[FutureSituationPhase.GetType]" - datacontext = "[SituationDynasticCycleWindow.GetHegemonOrTopCandidate]" - visible = "[SituationDynasticCycleWindow.IsEraTypeForward( SituationPhase.GetType, FutureSituationPhase.GetType )]" - } - } - } - } - - ### CHAOS ERA EFFECTS - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[SituationDynasticCycleWindow.IsInChaosEra]" - margin_bottom = -16 - - icon = { - texture = "gfx/interface/colors/red.dds" - size = { 562 300 } - using = Mask_Rough_Edges - alpha = 0.55 - - tintcolor = { 0.8 0.8 0.1 1 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - - } - - ### CHAOS ERA PARTICIPANTS - vbox = { - layoutpolicy_horizontal = expanding - visible = "[SituationDynasticCycleWindow.IsInChaosEra]" - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - datamodel = "[SituationDynasticCycleWindow.ChaosEraParticipants]" - - item = { - widget = { - - size = { 186 228 } - - icon = { - texture = "gfx/interface/colors/black.dds" - size = { 336 186 } - position = { 0 48 } - alpha = 0.50 - - parentanchor = center - - modify_texture = { - texture = "gfx/interface/component_masks/mask_portrait.dds" - blend_mode = alphamultiply - } - } - - widget = { - size = { 200 312 } - allow_outside = yes - parentanchor = vcenter - widgetanchor = vcenter - - portrait_button = { - size = { 200 312 } - position = { 0 26 } - using = portrait_base - - portrait_texture = "[Character.GetPortrait('environment_body', 'camera_body', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_body.dds" - effectname = "NoHighlight" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - margin_bottom = 2 - - # coat of arms and preferred phase type - hbox = { - layoutpolicy_horizontal = expanding - - margin_left = -18 - margin_right = -26 - - spacing = -4 - - expand = {} - - background = { - - using = Background_Area_Dark - } - - - widget = { - size = { 36 58 } - allow_outside = yes - - coa_realm_small_crown = { - name = "realm_flag" - - position = { -6 -26 } - - blockoverride "coa_hover_glow_visible" - { - visible = no - } - } - } - - land_and_army_participant_hbox = { - datacontext = "[Character]" - datacontext = "[SituationDynasticCycleWindow]" - } - - dynastic_cycle_phase_icon = { - visible = "[Not(Character.IsPlayer)]" - blockoverride "size" - { - size = { 32 32 } - } - datacontext = "[SituationDynasticCycleWindow.GetFavoredPhase( Character.Self )]" - - blockoverride "phase_widget_tooltip" - { - tooltip = "DYNASTIC_CYCLE_WINDOW_FAVORED_PHASE_TOOLTIP" - using = tooltip_se - } - } - - ### BUFFER ICON - - spacer = { - visible = "[Character.IsPlayer]" - size = { 32 32 } - } - - expand = {} - - } - } - } - } - } - } - - ### WINDOW DARK FADE BOTTOM - icon = { - texture = "gfx/interface/colors/black.dds" - size = { 100% 32 } - position = { 0 12 } - using = Mask_Rough_Edges - alpha = 0.75 - - parentanchor = bottom|hcenter - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical_up.dds" - blend_mode = alphamultiply - } - } - } - - ### ERA INFORMATION BOX - vbox = { - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_horizontal = expanding - } - - selected_era_info_vbox = { - visible = "[Not(SituationWindow.GetSelectedFuturePhaseType.IsValid)]" - datacontext = "[SituationPhase.GetType]" - layoutpolicy_vertical = expanding - - blockoverride "selected_era_future_info" { - } - - blockoverride "selected_era_header_extra" { - text_single = { - text = "DYNASTIC_CYCLE_WINDOW_CURRENT_ERA_LABEL" - layoutpolicy_horizontal = expanding - align = nobaseline|right - default_format = "#weak" - } - } - } - - selected_era_info_vbox = { - visible = "[SituationWindow.GetSelectedFuturePhaseType.IsValid]" - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - - blockoverride "selected_era_header_extra" { - - text_single = { - text = "DYNASTIC_CYCLE_WINDOW_FUTURE_ERA_LABEL" - layoutpolicy_horizontal = expanding - align = nobaseline|right - default_format = "#weak" - } - - } - } - - } - - vbox_dynastic_cycle_actions_area = {} - } - } - - ### POLITICS: MOVEMENTS ### - scrollbox = { - name = "movements_scrollarea" - widgetid = "dynastic_cycles_groups_tab_contents" - - visible = "[And( PdxGuiTabs.IsTabSet( 'movements' ), Not( SituationDynasticCycleWindow.IsInChaosEra ) )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_margins" {} - blockoverride "scrollbox_content" - { - widget = { - name = "top_area" - - layoutpolicy_horizontal = expanding - size = { 0 312} - - scissor = yes - - background = { - - texture = "[SituationPhase.GetType.GetIllustration]" - fittype = centercrop - alpha = 0.4 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - #mirror = vertical - translate_uv = { 0 0.02 } - } - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - alpha = 0.5 - } - } - - # PARTICIPANTS - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_bottom = 160 - - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - datacontext = "[SituationDynasticCycleWindow.GetMandateHolder]" - datacontext = "[DynasticCycleMandateCandidate.GetCharacter]" - - ### HEGEMON - political_movement_members_hegemon_icon = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'hegemon_ruler')]" - datacontext = "[SituationDynasticCycleWindow.GetMandateHolder.GetCharacter]" - } - - ### MOVEMENT MEMBERS - flowcontainer = { - ignoreinvisible = yes - - visible = "[SituationParticipantGroup.IsValid]" - datamodel = "[SituationDynasticCycleWindow.GetTopParticipantsForGroup( SituationParticipantGroup.Self )]" - - item = { - political_movement_members_portrait_icons = { - visible = "[Not(EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'hegemon_ruler'))]" - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = { - name = "scene_area_tutorial_uses_this" - } - - hbox = { - name = "groups_tutorial_uses_this" - layoutpolicy_horizontal = expanding - margin = { 0 0 } - - datamodel = "[SituationSubRegion.GetParticipantGroups]" - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - - item = { - dynastic_cycle_movement_button = {} - } - } - } - - # Situation catalysts and phases shortcut - non-chaotic eras - widget = { - position = { -10 5 } - size = { 100 90 } - parentanchor = right|top - widgetanchor = right|top - - visible = "[Not( SituationDynasticCycleWindow.IsInChaosEra )]" - - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - - situation_overview_buttons_vbox = { - blockoverride "catalysts_phases_section" - { - visible = no - } - - blockoverride "participants_list_section" - { - visible = "[Not(ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self))]" - } - } - } - } - - vbox = { - name = "selected_group" - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - datacontext = "[SituationWindow.GetSelectedSubRegion]" - - visible = "[SituationParticipantGroup.IsValid]" - - margin = { 0 0 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 12 8 } - spacing = 8 - - icon_flat_standard = { - size = { 46 46 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[SituationParticipantGroup.GetName]" - layoutpolicy_horizontal = expanding - align = nobaseline - using = Font_Size_Medium - } - - vbox = { - layoutpolicy_horizontal = expanding - text_single = { - raw_text = "[movement|E]" - layoutpolicy_horizontal = expanding - align = nobaseline - visible = "[Not(ObjectsEqual( SituationParticipantGroup.Self, SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).Self ))]" - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - text_single = { - - visible = "[ObjectsEqual( SituationParticipantGroup.Self, SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).Self )]" - text = "DYNASTIC_CYCLE_WINDOW_GROUP_YOUR_GROUP_LABEL" - align = nobaseline - } - - text_single = { - visible = "[And( Not( Or( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self), ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self))),ObjectsEqual( SituationParticipantGroup.Self, SituationSubRegion.GetCharacterParticipantGroup( GetPlayer ).Self ))]" - text = "DYNASTIC_CYCLE_WINDOW_YOUR_GROUP_POWER" - tooltip = "[GetPlayer.MakeScope().GetScriptValueDesc( 'movement_power_character_value' )]" - align = nobaseline - default_format = "#weak" - } - - expand = {} - } - } - } - - hbox = { - visible = "[Not( Or( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self), ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self)))]" - margin = { 8 8 } - margin_right = 16 - - background = { - using = Background_Area_Dark - } - - tooltip = "DYNASTIC_CYCLE_WINDOW_GROUP_POWER_TOOLTIP" - using = tooltip_sw - - icon = { - texture = "gfx/interface/icons/group_power.dds" - size = { 32 32 } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_GROUP_POWER" - align = nobaseline|right - using = Font_Size_Medium - min_width = 50 - } - - } - } - - vbox = { - name = "effects_on_group" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_left = { - margin = { 8 8 } - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_EFFECTS_ON_GROUP" - } - - hbox = { - margin = { 8 8 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - text_multi = { - min_width = 500 - max_width = 500 - margin_right = 20 - autoresize = yes - using = Font_Size_Small - - text = "[SituationWindow.GetSelectedOrCurrentPhaseType.GetParticipantGroupEffectTooltipBreakdown( SituationParticipantGroup.GetType )]" - } - } - } - } - - expand = {} - } - - ### OUTSIDERS INFO - hbox = { - name = "other_independent_rulers_info" - visible = "[ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self)]" - - layoutpolicy_horizontal = expanding - margin = { 16 16 } - spacing = 8 - - - background = { - using = Background_Area_ExtraDark - } - - icon = { - size = { 46 46 } - datacontext = "[GetSituationType('dynastic_cycle').GetPhaseType('situation_dynastic_cycle_phase_instability_conquest')]" - texture = "[SituationPhaseType.GetIcon]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - - text = "DYNASTIC_CYCLE_WINDOW_OTHER_RULERS_ERA_CHANGE" - default_format = "#weak" - } - } - } - - ### DYNASTIC CYCLE ACTIONS - vbox_dynastic_cycle_actions_area = { - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - datacontext = "[Character]" - - blockoverride "actions_area_favor_movement_decision" - { - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GetDecisionWithKey( 'favor_movement_decision' ) ]" - visible = "[Decision.IsShownForPlayer]" - - button_dynastic_cycle_decision = { - visible = "[And( Not( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ) ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ) ]" - onclick = "[PreSelectDecisionOption( SituationParticipantGroup.GetType.GetKey ) ]" - } - button_dynastic_cycle_decision = { - visible = "[And( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) )]" - onclick = "[PreSelectDecisionOption( GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('pro_hegemon_movement').Self ) ]" - } - - # fallback button with no preselect - button_dynastic_cycle_decision = { - visible = "[Not( Or( And( Not( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ) ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ), And( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ) ) )]" - } - } - } - - blockoverride "actions_area_choose_movement_decision" - { - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[GetDecisionWithKey( 'situation_dynastic_cycle_choose_movement_decision' ) ]" - visible = "[Decision.IsShownForPlayer]" - - button_dynastic_cycle_decision = { - visible = "[And( Not( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ) ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ) ]" - onclick = "[PreSelectDecisionOption( SituationParticipantGroup.GetType.GetKey ) ]" - } - - button_dynastic_cycle_decision = { - visible = "[And( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ) ]" - onclick = "[PreSelectDecisionOption( GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('pro_hegemon_movement').Self ) ]" - } - - # fallback button with no preselect - button_dynastic_cycle_decision = { - visible = "[Not( Or( And( Not( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ) ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ), And( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self ), Not( SituationParticipantGroup.IsCharacterParticipant( Character.Self ) ) ) ) )]" - } - } - } - } - } - } - } - } - } - - dynastic_cycle_participant_groups = { - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.AccessCharacterList]" - - visible = "[SituationParticipantCharacterList.IsVisible]" - - blockoverride "header_text" - { - text = "DYNASTIC_CYCLE_WINDOW_PARTICIPANT_GROUP_LIST_HEADER" - } - } - - situation_catalysts_window = { - visible = "[VariableSystem.Exists( 'situation_catalysts_window' )]" - datacontext = "[SituationWindow.GetSelectedSubRegion.GetCurrentPhase.GetFuturePhaseByType( SituationWindow.GetSelectedOrLeadingFuturePhaseType )]" - - blockoverride "header_text" - { - text = "DYNASTIC_CYCLE_WINDOW_CATALYSTS_LIST" - } - - blockoverride "phase_is_positive" - { - visible = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType.HasParameter('era_type_stable')]" - } - - blockoverride "phase_is_negative" - { - visible = "[Not( SituationWindow.GetSelectedOrLeadingFuturePhaseType.HasParameter('era_type_stable') )]" - } - } - - dynastic_cycle_phases_list_window = { - visible = "[VariableSystem.Exists( 'dynastic_cycle_phases_list_window' )]" - - blockoverride "header_text" - { - text = "DYNASTIC_CYCLE_WINDOW_PHASES_LIST" - } - } - - situation_catalysts_history_window = { - visible = "[VariableSystem.Exists( 'situation_catalysts_history_window' )]" - - blockoverride "header_text" - { - text = "DYNASTIC_CYCLE_WINDOW_HISTORY_LIST" - } - } -} - -types DynasticCycleTypes -{ - type vbox_dynastic_cycle_actions_area = vbox { - name = "dynastic_cycle_actions_tutorial_uses_this" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - margin = {8 16} - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - #min_height = 200 - margin_left = 5 - margin_right = 5 - - button_dynastic_cycle_host_activity = { - datacontext = "[GetActivityType( 'activity_debate' )]" - } - - button_dynastic_cycle_join_activity = { - datacontext = "[GetActivityType( 'activity_debate' )]" - datacontext = "[ActivityType.FindJoinableOpenActivityOfType]" - } - - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey( 'favor_dynastic_cycle_era_decision' ) ]" - } - - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey('favored_movement_consults_heaven_decision')]" - } - - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey('movement_petition_decision')]" - } - - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey('situation_dynastic_cycle_claim_mandate_decision')]" - } - - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey( 'situation_dynastic_cycle_favor_own_culture_for_appointments' ) ]" - } - - block "actions_area_favor_movement_decision" - { - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey('favor_movement_decision')]" - } - } - - block "actions_area_choose_movement_decision" - { - button_dynastic_cycle_decision = { - datacontext = "[GetDecisionWithKey('situation_dynastic_cycle_choose_movement_decision')]" - } - } - - } - } - - - type button_dynastic_cycle_decision = button_decision_entry { - visible = "[Decision.IsShownForPlayer]" - layoutpolicy_horizontal = expanding - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self ) ]" - using = tooltip_ws - } - - type button_dynastic_cycle_join_activity = button_standard { - layoutpolicy_horizontal = expanding - - visible = "[Activity.IsValid]" - minimumsize = { 100 45 } - - onclick = "[ToggleGameViewData( 'activity_list_detail_invite_window', Activity.Self )]" - tooltip = JOIN_ACTIVITY_TOOLTIP - - hbox = { - margin = { 15 0 } - margin_right = 10 - - text_single = { - - block "button_text" { - text = "ACTIVITY_LIST_JOIN_GENERIC" - } - - layoutpolicy_horizontal = growing - align = nobaseline - default_format = "#clickable" - } - } - - margin_widget = { - parentanchor = right|vcenter - scissor = yes - - margin = { 2 2 } - size = { 100% 100% } - - proportional_icon = { - name = "illustration" - - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - alpha = 0.6 - - block "button_illustration" { - texture = "gfx/interface/illustrations/event_scenes/tgp_study_asia.dds" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - margin_widget = { - parentanchor = center - size = { 100% 100% } - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - } - - type button_dynastic_cycle_host_activity = button_standard { - layoutpolicy_horizontal = expanding - visible = "[ActivityType.CanPlanActivity( GetPlayer.Self )]" - minimumsize = { 100 45 } - - enabled = "[ActivityType.CanStartActivity( GetPlayer.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_host_window', ActivityType.Self )]" - - tooltip = SHOW_ACTIVITY_TOOLTIP - - hbox = { - margin = { 15 0 } - margin_right = 10 - - text_single = { - - block "button_text" { - text = "ACTIVITY_LIST_HOST_GENERIC" - } - - layoutpolicy_horizontal = growing - align = nobaseline - default_format = "#clickable" - } - } - - margin_widget = { - parentanchor = right|vcenter - scissor = yes - - margin = { 2 2 } - size = { 100% 100% } - - proportional_icon = { - name = "illustration" - - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - alpha = 0.6 - - block "button_illustration" { - texture = "gfx/interface/illustrations/event_scenes/tgp_study_asia.dds" - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - margin_widget = { - parentanchor = center - size = { 100% 100% } - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - } - - type button_dynastic_cycle_host = button_standard { - layoutpolicy_horizontal = expanding - minimumsize = { 100 45 } - - enabled = "[ActivityType.CanStartActivity( GetPlayer.Self )]" - onclick = "[ToggleGameViewData( 'activity_list_detail_host_window', ActivityType.Self )]" - - text = "ACTIVITY_LIST_HOST_GENERIC" - tooltip = SHOW_ACTIVITY_TOOLTIP - } - - type wheel_illustration_icon = icon - { - size = { 478 478 } - texture = "gfx/interface/colors/black.dds" - - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - - widgetanchor = center - parentanchor = bottom|hcenter - - modify_texture = { - name = "mask" - block "wheel_texture" - { - texture = "[SituationDynasticCycleWindow.GetDynasticCycleWheelTexture]" - } - blend_mode = alphamultiply - } - - modify_texture = { - name = "circle" - texture = "[SituationDynasticCycleWindow.GetDynasticCycleWheelTexture]" - - blend_mode = normal - } - - modify_texture = { - name = "circle_expansion" - visible = "[And(SituationDynasticCycleWindow.IsExpansionEraFavoredByHegemon,Not(EqualTo_string( SituationPhaseType.GetKey(), 'situation_dynastic_cycle_phase_stability_advancement')))]" - texture = "gfx/interface/window_tgp_dynastic_cycle/dynastic_cycle_wheel_expansion.dds" - - blend_mode = normal - } - - state = { - # Note: This animation name is triggered/used in code as well - name = "dynastic_cycle_wheel_spin" - using = Wheel_Turn_Duration - trigger_on_create = yes - - animation = { - using = Wheel_Turn_Bezier_Curve - - modify_texture = { - name = "circle" - rotate_uv = "[SituationDynasticCycleWindow.GetWheelRotateUV( IntToFixedPoint( SituationDynasticCycleWindow.GetEraTypeIndex( SituationWindow.GetSelectedOrCurrentPhaseType.Self ) ), '(CFixedPoint)3', '(CFixedPoint)0' )]" - } - } - - animation = { - using = Wheel_Turn_Bezier_Curve - - modify_texture = { - name = "circle_expansion" - rotate_uv = "[SituationDynasticCycleWindow.GetWheelRotateUV( IntToFixedPoint( SituationDynasticCycleWindow.GetEraTypeIndex( SituationWindow.GetSelectedOrCurrentPhaseType.Self ) ), '(CFixedPoint)3', '(CFixedPoint)0' )]" - } - } - } - } - - type selected_era_info_vbox = vbox { - name = "current_era_heading_tutorial_uses_this" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 0 0 } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 12 8 } - spacing = 8 - - icon = { - size = { 46 46 } - texture = "[SituationPhaseType.GetIcon]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[SituationPhaseType.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - align = nobaseline - using = Font_Size_Medium - } - - text_single = { - text = "[SituationDynasticCycleWindow.GetEraTypeName( SituationPhaseType.Self )]" - layoutpolicy_horizontal = expanding - align = nobaseline - } - } - - vbox = { - - layoutpolicy_horizontal = expanding - - block "selected_era_header_extra" {} - } - - } - - vbox = { - layoutpolicy_horizontal = expanding - - visible = "[SituationDynasticCycleWindow.GetSelectedFuturePhaseType.IsValid]" - datacontext = "[SituationDynasticCycleWindow.GetSelectedFuturePhaseType]" - margin_bottom = 11 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 12 0 } - - button_sidepanel_left = { - onclick = "[GetVariableSystem.Toggle( 'situation_catalysts_window' )]" - datacontext = "[SituationDynasticCycleWindow.GetSelectedFuturePhaseType]" - down = "[GetVariableSystem.Exists( 'situation_catalysts_window' )]" - - blockoverride "button_text" - { - text = "DYNASTIC_CYCLE_WINDOW_TOGGLE_CATALYSTS" - } - - tooltip = "DYNASTIC_CYCLE_WINDOW_TOGGLE_CATALYSTS_TT" - } - - progressbar_standard = { - layoutpolicy_horizontal = expanding - datacontext = "[SituationDynasticCycleWindow.GetSelectedFuturePhase]" - - min = 0 - max = 1 - value = "[FutureSituationPhase.GetRelativeProgress]" - size = { -1 26 } - tooltip = "DYNASTIC_CYCLE_WINDOW_CATALYSTS_LIST_PROGRESSBAR_TT" - - blockoverride "progress_textures" - { - progresstexture = "gfx/interface/progressbars/progress_grandeur_decrease.dds" - noprogresstexture = "gfx/interface/progressbars/progress_black.dds" - } - } - } - } - scrollbox = { - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_margins" {} - blockoverride "scrollbox_content" {} - - blockoverride "scrollbox_background_fade" { - - icon = { - name = "scrollbar_fade" - texture = "gfx/interface/scrollbars/scrollbar_fade.dds" - size = { 100% 100% } - alwaystransparent = yes - - spriteType = Corneredtiled - spriteborder = { 6 20 } - } - } - - fixedgridbox = { - - name = "leading_named_effect_sets" - - addcolumn = 48 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 4 - maxhorizontalslots = 6 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - item = { - button_phase_named_set_item = { - enabled = yes - } - } - } - - vbox = { - name = "effects_of_era" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" { - vbox = { - margin = { 16 16 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_multi = { - name = "main_description" - layoutpolicy_horizontal = expanding - autoresize = yes - alwaystransparent = no - min_width = 530 - max_width = 530 - - text = "[SituationPhaseType.GetShortDesc]" - } - - vbox = { - visible = "[And( SituationPhaseType.IsValid, Not( SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused ) )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 8 - maxhorizontalslots = 8 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetModifierNamedSets]" - item = { - icon_situation_phase_effect_item = {} - } - } - } - - expand = {} - - vbox = { - visible = "[And( SituationPhaseType.IsValid, SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 8 - maxhorizontalslots = 8 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetParentSituationType.GetParticipantGroupTypes]" - item = { - icon_situation_phase_effect_participant_group_item = { - using = tooltip_se - } - } - } - } - } - } - } - - expand = {} - } - } - } - - type dynastic_cycle_participant_groups = window { - name = "dynastic_cycle_participant_groups" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[SituationParticipantCharacterList.Close]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - blockoverride "filters_visible" { - visible = no - } - - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "SITUATION_PARTICIPANT_WINDOW_PARTICIPANT_EMPTY" - } - - blockoverride "container_implementation" - { - fixedgridbox = { - addcolumn = 630 - addrow = 92 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 94 } - - blockoverride "character_relation" {} - - blockoverride "left_box" { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 10 - margin_top = 5 - margin_bottom = 5 - min_width = 230 - max_width = 230 - - background = { - using = Background_Area_Dark - alpha = 0.5 - margin = { 0 2 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - name = "character_relation_to_you" - text = "[Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - using = tooltip_se - - default_format = "#weak" - - fontsize_min = 13 - align = nobaseline - } - expand = {} - } - - expand = {} - } - - blockoverride "bottom_right_box" { - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - expand = {} - text_single = { - visible = "[Not( SituationDynasticCycleWindow.IsParticipantListSortedByLand )]" - text = "DYNASTIC_CYCLE_WINDOW_PARTICIPANT_POWER" - align = nobaseline - tooltip = "[Character.MakeScope().GetScriptValueDesc( 'movement_power_character_value' )]" - using = tooltip_se - } - - text_single = { - datacontext = "[CharacterListItem]" - visible = "[SituationDynasticCycleWindow.IsParticipantListSortedByLand]" - text = "SITUATION_PARTICIPANT_LAND" - align = nobaseline - tooltip = "[SituationParticipantCharacterList.GetOwnedCountiesInSituationTooltip( CharacterListItem.Self )]" - using = tooltip_se - } - - text_single = { - datacontext = "[CharacterListItem]" - visible = "[And( SituationDynasticCycleWindow.IsParticipantListSortedByLand, GreaterThan_int32( CharacterListItem.GetMilitaryStrength, '(int32)0' ) )]" - text = "SITUATION_PARTICIPANT_MILITARY" - align = nobaseline - tooltip = "[CharacterListItem.GetMilitaryStrengthTooltip]" - using = tooltip_se - } - - dynastic_cycle_movement_member_interactions_button = {} - } - } - } - } - } - } - } - } - } - - type dynastic_cycle_movement_member_interactions_button = button_round { - tooltip = "DYNASTIC_CYCLE_WINDOW_PARTICIPANT_INTERACTIONS_BUTTON_TOOLTIP" - tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'dynastic_cycle'))]" - - onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'dynastic_cycle')]" - - button_icon = { - alwaystransparent = yes - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/character_interactions.dds" - } - - text_single = { - parentanchor = bottom|hcenter - position = { 0 3 } - text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'dynastic_cycle')]" - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - - background = { - margin = { 5 0 } - margin_top = -5 - using = Background_Area_Dark - } - } - } - - type land_and_army_participant_hbox = vbox { - - margin = { 20 6 } - - text_single = { - name = "external_participant_portrait_land_info" - - text = "DYNASTIC_CYCLE_WINDOW_PORTRAIT_INDEPENDENT_RULER_LAND" - tooltip = "[SituationDynasticCycleWindow.GetLandHeldTooltipForCharacter( Character.Self )]" - using = tooltip_se - using = Font_Size_Medium - } - - text_single = { - name = "external_participant_portrait_military_info" - - text = "DYNASTIC_CYCLE_WINDOW_PORTRAIT_INDEPENDENT_RULER_POWER" - tooltip = "[SituationDynasticCycleWindow.GetMilitaryTooltipForCharacter( Character.Self )]" - using = tooltip_se - using = Font_Size_Small - } - } - - type dynastic_cycle_action_button = button_standard { - block "button_size" { - size = { 300 45 } - } - - block "button_content" { - - } - - margin_widget = { - parentanchor = right|vcenter - scissor = yes - - margin = { 2 2 } - - block "size_illustration" { - size = { 100% 100% } - } - - proportional_icon = { - name = "illustration" - block "possible_for" { - visible = yes - } - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - - block "icon_alpha" { - alpha = 0.6 - } - - block "illustration_texture" { - - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - proportional_icon = { - block "not_possible_for" { - visible = no - } - parentanchor = right|top - size = { 45% 100% } - mirror = horizontal - - enabled = no - - alpha = 0.6 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - # Vignette - margin_widget = { - parentanchor = center - size = { 100% 100% } - - margin = { 2 2 } - - icon = { - parentanchor = center - size = { 100% 100% } - - texture = "gfx/interface/component_tiles/tile_vignette_3px.dds" - spriteType = Corneredtiled - spriteborder = { 5 5 } - } - } - - hbox = { - margin = { 15 0 } - margin_right = 10 - - text_single = { - name = "title" - alwaystransparent = yes - - block "possible_for" { - visible = yes - } - - layoutpolicy_horizontal = growing - - block "action_text" { - text = "" - } - align = nobaseline - block "default_format" { - default_format = "#clickable" - } - } - - highlight_icon = { - name = "not_possible" - block "not_possible_for" { - visible = no - } - size = { 30 30 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - } - } - - type dynastic_cycle_legitimacy_button = button_normal { - - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - - visible = "[And(LegitimacyType.IsValid, Character.GetGovernment.HasRule( 'legitimacy' ))]" - - using = tooltip_ne - - tooltipwidget = { - legitimacy_hud_tooltip = { - datacontext = "[DynasticCycleMandateCandidate.GetLegitimacyBar]" - } - } - - size = { 48 48 } - - icon = { - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - #alpha = 0.5 - } - - icon = { - parentanchor = vcenter - position = { 6 0 } - size = { 36 36 } - - texture = "gfx/interface/icons/legitimacy_level_icon.dds" - framesize = { 70 70 } - frame = "[IntToFrameIndex( LegitimacyLevel.GetIndex )]" - } - - progresspie = { - name = "progress" - size = { 42 42 } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - value = "[DynasticCycleMandateCandidate.GetLegitimacyLevelProgress]" - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - } - - type dynastic_cycle_legitimacy_box = hbox { - spacing = 8 - button_normal = { - name = "legitimacy_button" - - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - - visible = "[And(LegitimacyType.IsValid, Character.GetGovernment.HasRule( 'legitimacy' ))]" - - using = tooltip_ne - - tooltipwidget = { - legitimacy_hud_tooltip = { - datacontext = "[DynasticCycleMandateCandidate.GetLegitimacyBar]" - } - } - - size = { 48 48 } - - icon = { - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - #alpha = 0.5 - } - - icon = { - parentanchor = vcenter - position = { 6 0 } - size = { 36 36 } - - texture = "[Character.GetLegitimacyType.GetLevelsIcon]" - framesize = { 70 70 } - frame = "[IntToFrameIndex( LegitimacyLevel.GetIndex )]" - } - - progresspie = { - name = "progress" - size = { 42 42 } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - value = "[DynasticCycleMandateCandidate.GetLegitimacyLevelProgress]" - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_LEGITIMACY_TITLE" - max_width = 398 - default_format = "#high" - - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_LEGITIMACY_TEXT" - max_width = 398 - align = nobaseline - } - } - - } - } - - type dynastic_cycle_legitimacy_box_top = hbox { - spacing = 8 - button_normal = { - name = "legitimacy_button" - size = { 48 48 } - - datacontext = "[Character.GetLegitimacyType]" - datacontext = "[Character.GetLegitimacyLevel]" - - visible = "[And(LegitimacyType.IsValid, Character.GetGovernment.HasRule( 'legitimacy' ))]" - - using = tooltip_ne - - tooltipwidget = { - legitimacy_hud_tooltip = { - datacontext = "[DynasticCycleMandateCandidate.GetLegitimacyBar]" - } - } - - icon = { - texture = "gfx/interface/icons/activity_phases/button_activity_base.dds" - size = { 100% 100% } - } - - icon = { - name = "progress_frame" - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - } - - icon = { - parentanchor = vcenter - position = { 6 0 } - size = { 36 36 } - - texture = "[Character.GetLegitimacyType.GetLevelsIcon]" - framesize = { 70 70 } - frame = "[IntToFrameIndex( LegitimacyLevel.GetIndex )]" - } - - progresspie = { - name = "progress" - size = { 42 42 } - - texture = "gfx/interface/progressbars/action_progress_thin_blue.dds" - framesize = { 128 128 } - frame = 2 - value = "[DynasticCycleMandateCandidate.GetLegitimacyLevelProgress]" - parentanchor = center - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - } - } - - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_LEGITIMACY_TITLE" - max_width = 164 - default_format = "#high" - - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_LEGITIMACY_TEXT" - max_width = 164 - align = nobaseline - } - } - - } - } - - type return_current_era_button = button_normal - { - size = { 32 32 } - - onclick = "[SituationWindow.ClearSelectedFuturePhaseType]" - visible = "[SituationWindow.GetSelectedFuturePhaseType.IsValid]" - - icon_round_button_base = { } - - button_icon = { - parentanchor = center - size = { 24 24 } - position = { -2 0 } - texture = "gfx/interface/icons/flat_icons/window_back.dds" - - alwaystransparent = yes - } - - tooltip = "DYNASTIC_CYCLE_CLICK_TO_GO_BACK_TT" - } - - type future_era_button = button_normal - { - size = { 76 76 } - - down = "[ObjectsEqual( SituationWindow.GetSelectedFuturePhaseType().Self, FutureSituationPhase.GetType.Self )]" - alwaystransparent = "[ObjectsEqual( SituationWindow.GetSelectedFuturePhaseType().Self, FutureSituationPhase.GetType.Self )]" - onclick = "[SituationWindow.SetSelectedFuturePhaseType( FutureSituationPhase.GetType.Self )]" - - using = tooltip_ne - tooltip = "DYNASTIC_CYCLE_POSSIBLE_FUTURE_PHASE_TOOLTIP" - - icon = { - parentanchor = center - size = { 72 72 } - texture = "[FutureSituationPhase.GetType.GetIcon]" - - using = Animation_Glow_Pulse - - glow = { - visible = "[ObjectsEqual( SituationWindow.GetSelectedFuturePhaseType().Self, FutureSituationPhase.GetType.Self )]" - glow_radius = 8 - using = Glow_Standard - using = Color_Orange - } - } - - icon_round_button_base = { } - - icon = { - parentanchor = center - texture = "gfx/interface/progressbars/action_progress_frame.dds" - size = { 100% 100% } - alpha = 0.5 - } - - - progresspie = { - - visible = "[SituationDynasticCycleWindow.IsEraTypeForward( SituationPhase.GetType, FutureSituationPhase.GetType )]" - size = { 64 64 } - texture = "gfx/interface/progressbars/action_progress_thin_red.dds" - framesize = { 128 128 } - frame = 2 - value = "[FutureSituationPhase.GetRelativeProgressPercent]" - parentanchor = center - min = 0 - max = 100 - } - - progresspie = { - - visible = "[SituationDynasticCycleWindow.IsEraTypeBackward( SituationPhase.GetType, FutureSituationPhase.GetType )]" - size = { 64 64 } - texture = "gfx/interface/progressbars/action_progress_thin_gold.dds" - framesize = { 128 128 } - frame = 2 - value = "[FutureSituationPhase.GetRelativeProgressPercent]" - parentanchor = center - min = 0 - max = 100 - } - - icon = { - parentanchor = center - size = { 56 56 } - texture = "[FutureSituationPhase.GetType.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/black.dds" - blend_mode = normal - alpha = 0.25 - - visible = "[ObjectsEqual( SituationWindow.GetSelectedFuturePhaseType().Self, FutureSituationPhase.GetType.Self )]" - } - } - - icon = { - size = { 28 28 } - position = { -26 -48 } - widgetanchor = bottom|hcenter - parentanchor = bottom|hcenter - texture = "gfx/interface/icons/dynastic_cycle/favored_by_hegemon.dds" - visible = "[SituationDynasticCycleWindow.IsPhaseFavoredByHegemon( SituationPhaseType.Self )]" - - tooltip = "DYNASTIC_CYCLE_WINDOW_FAVORED_PHASE_TOOLTIP" - } - } - - type dynastic_cycle_movement_button = button_tab - { - name = "group_banner" - datacontext = "[SituationParticipantGroup.GetType]" - - layoutpolicy_horizontal = expanding - - visible = "[SituationParticipantGroup.IsValid]" - size = { 60 96 } - - onclick = "[SituationParticipantCharacterList.SetSelectedParticipantGroup( SituationParticipantGroup.Self )]" - onclick = "[SituationDynasticCycleWindow.UpdateSelectedParticipantGroup( SituationParticipantGroup.Self )]" - down = "[ObjectsEqual( SituationParticipantCharacterList.GetSelectedParticipantGroup.Self, SituationParticipantGroup.Self )]" - - tooltip = "DYNASTIC_CYCLE_POLITICAL_MOVEMENT_TAB_TOOLTIP" - using = tooltip_sw - - button_standard_clean = { - parentanchor = center - size = { 60 76 } - position = { 0 2 } - - upframe = 1 - uphoverframe = 2 - uppressedframe = 3 - downframe = 2 - downhoverframe = 2 - downpressedframe = 3 - disableframe = 7 - - using = Background_Area_Participant_Group_Button - - down = "[ObjectsEqual( SituationParticipantCharacterList.GetSelectedParticipantGroup.Self, SituationParticipantGroup.Self )]" - alwaystransparent = yes - - icon = { - size = { 100% 100% } - visible = "[SituationParticipantGroup.IsCharacterParticipant( GetPlayer )]" - texture = "gfx/interface/buttons/button_standard_current.dds" - spriteType = Corneredstretched - spriteborder = { 18 18 } - texture_density = 2 - } - - } - - button_icon = { - parentanchor = center - size = { 48 48 } - position = { 0 -6 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - down = "[ObjectsEqual( SituationParticipantCharacterList.GetSelectedParticipantGroup.Self, SituationParticipantGroup.Self )]" - alwaystransparent = yes - } - - state = { - name = start - alpha = 0 - trigger_on_create = yes - next = appear - - } - - state = { - name = appear - alpha = 1 - duration = 0.3 - delay = "[Multiply_float( IntToFloat( PdxGuiWidget.GetIndexInDataModel ), '(float)0.1' )]" - } - - text_single = { - visible = "[Not( Or( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self), ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self)))]" - - text = "DYNASTIC_CYCLE_WINDOW_MOVEMENT_TAB_POWER" - default_format = "#medium" - - parentanchor = center - widgetanchor = center - position = { 0 27 } - size = { 60 20 } - align = nobaseline|center - } - - icon = { - size = { 28 28 } - position = { -24 20 } - - texture = "gfx/interface/icons/dynastic_cycle/favored_by_hegemon.dds" - visible = "[SituationDynasticCycleWindow.IsMovementFavoredByHegemon( SituationParticipantGroup.Self )]" - widgetanchor = center - parentanchor = top|hcenter - - tooltip = "DYNASTIC_CYCLE_WINDOW_FAVORED_MOVEMENT_TOOLTIP" - } - - } - - type dynastic_cycle_phase_icon = widget { - block "size" - { - size = { 72 72 } - } - - block "phase_widget_tooltip" - { - tooltipwidget = { - using = situation_phase_type_tooltip - } - using = tooltip_ne - } - - icon = { - parentanchor = center - size = { 100% 100% } - texture = "[SituationPhaseType.GetIcon]" - - block "phase_widget_glow" - { - - } - } - } - - type dynastic_cycle_phase_widget = widget { - - icon_round_button_base = {} - - block "size" - { - size = { 72 72 } - } - - block "phase_widget_tooltip" - { - tooltipwidget = { - using = situation_phase_type_tooltip - } - using = tooltip_ne - } - - icon = { - parentanchor = center - size = { 86% 86% } - texture = "[SituationPhaseType.GetIcon]" - - block "phase_widget_glow" - { - - } - } - } - - type dynastic_cycle_phases_list_window = window { - name = "dynastic_cycle_phases_list_window" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[VariableSystem.Toggle( 'dynastic_cycle_phases_list_window' )]" - } - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 15 0 } - - datamodel = "[SituationDynasticCycleWindow.GetSituation.GetType.GetPhases]" - - item = { - dynastic_cycle_phase_description_widget = { - visible = "[Not( SituationPhaseType.HasParameter( 'hide_in_phases_list' ) )]" - } - } - } - } - } - } - } - - type dynastic_cycle_phase_description_widget = vbox { - - layoutpolicy_horizontal = expanding - margin_bottom = 18 - - background = { - texture = "[SituationPhaseType.GetIllustration]" - fittype = centercrop - margin_left = 15 - - tintcolor = { 0.1 0.15 0.22 0.4 } - - using = Mask_Rough_Edges - - } - - # icon and name - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - background = { - using = Background_Area_Dark - alpha = 0.45 - margin_left = 18 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - spriteborder = { 20 0 } - blend_mode = alphamultiply - } - } - - icon = { - size = { 58 58 } - texture = "[SituationPhaseType.GetIcon]" - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[SituationPhaseType.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - align = nobaseline - tooltip = "" - } - - text_single = { - text = "[SituationDynasticCycleWindow.GetEraTypeName( SituationPhaseType.Self )]" - layoutpolicy_horizontal = expanding - align = nobaseline - } - } - - text_single = { - visible = "[ObjectsEqual(Situation.GetTopCurrentPhase.GetType, SituationPhaseType.Self)]" - - text = "DYNASTIC_CYCLE_WINDOW_CURRENT_ERA_LABEL" - default_format = "#weak" - } - - expand = {} - } - - vbox = { - name = "phase_type_desc" - datacontext = "[SituationPhaseType.GetParentSituationType]" - datacontext = "[GetSituationOfType( SituationType.Self )]" - layoutpolicy_horizontal = expanding - - textbox = { - name = "main_description" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - default_format = "#medium" - align = left - autoresize = yes - multiline = yes - alwaystransparent = no - max_width = 640 - - text = "[SituationPhaseType.GetDesc]" - } - - spacer = { - size = { 0 10 } - } - - vbox = { - visible = "[And( SituationPhaseType.IsValid, Not( SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused ) )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 8 - maxhorizontalslots = 8 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetModifierNamedSets]" - item = { - icon_situation_phase_effect_item = {} - } - } - } - - vbox = { - visible = "[And( SituationPhaseType.IsValid, SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused )]" - layoutpolicy_horizontal = expanding - spacing = 8 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL" - default_format = "#bold;italic" - align = nobaseline - } - expand = {} - } - - fixedgridbox = { - name = "task_items" - layoutpolicy_horizontal = expanding - - addcolumn = 56 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 8 - maxhorizontalslots = 8 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationPhaseType.GetParentSituationType.GetParticipantGroupTypes]" - item = { - icon_situation_phase_effect_participant_group_item = { - using = tooltip_se - } - } - } - } - } - } - - type situation_overview_buttons_vbox = vbox { - ignoreinvisible = yes - - hbox = { - block "catalysts_phases_section" {} - - # Show phases list button - button_normal = { - name = "eras_and_movements_toggle" - size = { 40 40 } - - down = "[VariableSystem.HasValue( 'dynastic_cycle_phases_list_window', 'true' )]" - onclick = "[VariableSystem.Toggle( 'dynastic_cycle_phases_list_window' )]" - - using = tooltip_ne - tooltip = DYNASTIC_CYCLE_WINDOW_PHASES_LIST_TT - - icon_round_button_base = {} - - button_icon = { - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/dynastic_cycle.dds" - size = { 30 30 } - } - } - - button_normal = { - name = "catalyst_history_toggle" - size = { 40 40 } - - down = "[GetVariableSystem.Exists( 'situation_catalysts_history_window', )]" - onclick = "[GetVariableSystem.Toggle( 'situation_catalysts_history_window' )]" - - using = tooltip_ne - tooltip = DYNASTIC_CYCLE_WINDOW_TOGGLE_CATALYSTS_HISTORY_TT - - icon_round_button_base = {} - - button_icon = { - parentanchor = center - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/history.dds" - size = { 30 30 } - } - } - } - - button_round = { - name = "chaos_participants" - size = { 48 48 } - - onclick = "[SituationParticipantCharacterList.Toggle]" - - icon_round_button_base = {} - - align = right|nobaseline - - block "participants_list_section" {} - - icon_flat_standard_gold = { - size = { 46 46 } - position = { 1 0 } - parentanchor = center - widgetanchor = center - alwaystransparent = yes - - texture = "gfx/interface/icons/flat_icons/three_people.dds" - } - - text_single = { - position = { 0 2 } - default_format = "#glow_color:{0.1,0.1,0.1,1.0}" - parentanchor = bottom|hcenter - - block "participants_number_text" - { - text = "[GetDataModelSize( SituationParticipantGroup.GetCharacters )|V]" - tooltip = "DYNASTIC_CYCLE_WINDOW_TOGGLE_MEMBER_LIST_TT_MEMBERS" - } - - background = { - margin = { 6 4 } - margin_top = -2 - using = Background_Area_Dark - } - } - using = tooltip_sw - } - } - - type situation_catalysts_history_window = window { - name = "situation_catalysts_history_window" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - datacontext = "[SituationWindow.GetSituation]" - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[VariableSystem.Toggle( 'situation_catalysts_history_window' )]" - } - } - - vbox = { - name = "catalyst_information_area" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "history_entries" - margin_right = 16 - - block "history_data" { - datamodel = "[SituationWindow.GetCurrentHistoryPage]" - } - - layoutpolicy_horizontal = expanding - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - standard_history_entry_hbox = {} - special_history_entry_hbox = {} - } - } - } - } - - blockoverride "scrollbox_expand" - { - expand = { } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 8 - margin_bottom = 10 - - expand = {} - - button_select_arrow = { - enabled = "[GreaterThan_int32( SituationWindow.GetHistoryPageUIIndex, '(int32)1' )]" - size = { 25 25 } - mirror = horizontal - - block "onclick_prev" - { - onclick = "[SituationWindow.PreviousHistoryPage]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_decrement" - } - } - - text_single = { - margin = { 5 5 } - align = nobaseline - raw_text = "[SituationWindow.GetHistoryPageUIIndex] / [SituationWindow.GetHistoryPageCount]" - } - - button_select_arrow = { - enabled = "[SituationWindow.HasNextHistoryPage]" - size = { 25 25 } - - block "onclick_next" - { - onclick = "[SituationWindow.NextHistoryPage]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_increment" - } - } - expand = {} - } - } - } - } - - type standard_history_entry_hbox = hbox - { - layoutpolicy_horizontal = expanding - maximumsize = { 660 50 } - visible = "[Not( SituationHistoryEntry.IsSpecialEntry )]" - - background = { - using = Background_Frame - alpha = 0.8 - } - - # phase and value - hbox = { - datacontext = "[SituationHistoryEntry.GetCatalyst]" - minimumsize = { 100 45 } - margin = { 5 5 } - - background = { - using = Background_Area_Dark - alpha = 0.4 - } - icon = { - size = { 35 35 } - datacontext = "[SituationCatalystHistory.GetPhase]" - texture = "[SituationPhaseType.GetIcon]" - tooltip = "dynastic_cycle_phase_tt" - } - - text_multi = { - text = "[SituationCatalystHistory.GetValue|+=]" - align = nobaseline - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationHistoryEntry.GetDescription( Situation.Self )]" - autoresize = no - align = nobaseline - max_width = 400 - margin = { 10 5 } - } - - expand = {} - - text_single = { - text = "[SituationHistoryEntry.GetCatalyst.GetDate.GetStringShort]" - default_format = "#weak" - align = nobaseline - margin = { 10 5 } - } - } - - type special_history_entry_hbox = hbox - { - layoutpolicy_horizontal = expanding - maximumsize = { 660 80 } - visible = "[SituationHistoryEntry.IsSpecialEntry]" - - datacontext = "[SituationHistoryEntry.GetCatalyst]" - datacontext = "[SituationCatalystHistory.GetPhase]" - - background = { - using = Background_Frame - alpha = 0.8 - } - - background = { - - texture = "[SituationPhaseType.GetIllustration]" - fittype = centercrop - alpha = 0.25 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/colors/blue.dds" - blend_mode = normal - alpha = 0.5 - } - } - - # phase and value - hbox = { - minimumsize = { 100 78 } - margin = { 11 11 } - - icon = { - size = { 56 56 } - - visible = "[SituationPhaseType.IsValid]" - texture = "[SituationPhaseType.GetIcon]" - tooltip = "dynastic_cycle_phase_tt" - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationHistoryEntry.GetDescription( Situation.Self )]" - autoresize = no - align = nobaseline - max_width = 400 - margin = { 10 5 } - } - - expand = {} - - text_single = { - text = "[SituationHistoryEntry.GetCatalyst.GetDate.GetStringShort]" - default_format = "#weak" - align = nobaseline - margin = { 10 5 } - } - } - - type situation_catalysts_window = window { - name = "situation_catalysts_window" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[VariableSystem.Toggle( 'situation_catalysts_window' )]" - } - } - - vbox = { - block "takover_progress" { - progressbar_standard = { - size = { 80 12 } - value = "[FutureSituationPhase.GetRelativeProgressPercent]" - progresstexture = "gfx/interface/progressbars/progress_grandeur_increase.dds" - } - - text_single = { - text = "SITUATION_PHASE_POINT_TAKEOVER_VALUE" - } - } - } - - vbox = { - name = "catalyst_information_area" - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - scrollbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_background" {} - blockoverride "scrollbox_background_fade" {} - blockoverride "scrollbox_margins" {} - - blockoverride "scrollbox_content" - { - vbox = { - name = "catalyst_entries" - block "catalyst_data" { - datamodel = "[SituationWindow.GetCatalystsForSelectedPhase]" - - datacontext = "[SituationWindow.GetSelectedSubRegion.GetCurrentPhase]" - datacontext = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType]" - } - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - maximumsize = { 1000 50 } - - item = { - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_vertical = expanding - min_width = 80 - - background = { - using = Background_Area_Dark - using = Color_Green - alpha = 0.1 - margin_left = 4 - margin_right = 6 - - } - - background = { - using = Background_Frame - using = Color_Green - alpha = 0.3 - margin_left = 4 - margin_right = 6 - - } - - hbox = { - layoutpolicy_horizontal = expanding - block "catalyst_header" { - icon = { - size = { 25 25 } - texture = "[SituationWindow.GetSelectedOrLeadingFuturePhaseType.GetIcon]" - } - } - text_single = { - block "phase_is_positive" { - visible = yes - } - - text = "[SituationCatalystEntry.GetPoints|+=]" - align = nobaseline - } - text_single = { - block "phase_is_negative" { - visible = no - } - - text = "[SituationCatalystEntry.GetPoints|-=]" - align = nobaseline - } - } - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - text = "[SituationCatalystEntry.GetCatalystDescription]" - autoresize = no - align = left|nobaseline - max_width = 500 - margin = { 10 5 } - } - - expand = {} - - background = { - using = Background_Area_Dark - } - - hbox = { - layoutpolicy_vertical = expanding - min_width = 70 - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - color = { 0.4 0.603 0.298 1 } - alpha = 0.6 - } - - background = { - visible = "[GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - color = { 0.4 0.603 0.298 1 } - alpha = 0.1 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Frame - using = Color_Grey - alpha = 0.4 - } - - background = { - visible = "[EqualTo_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' )]" - using = Background_Area - using = Color_Grey - alpha = 0.1 - } - - text_single = { - min_width = 70 - - align = nobaseline|center - raw_text = "[Select_CString( GreaterThan_int32( SituationPhase.GetNumCompletionsOfCatalystForPhase( SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst ), '(int32)0' ), '#COLOR_GREEN ', '#COLOR_GRAY ')]x[SituationPhase.GetNumCompletionsOfCatalystForPhase(SituationPhaseType.Self, SituationCatalystEntry.GetCatalyst)]#!" - } - } - } - } - } - } - } - } - } - } - - type political_movement_members_hegemon_icon = widget { - - size = { 312 234 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - - widget = { - size = { 200 234 } - allow_outside = yes - - portrait_button = { - size = { 222 236 } - using = portrait_base - - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_body.dds" - effectname = "NoHighlight" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 12 - margin_right = 12 - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip|U]" - default_format = "#high" - align = nobaseline|center - autoresize = no - fontsize_min = 16 - fontsize = 20 - max_width = 328 - - background = { - using = Background_Area - margin = { 6 6 } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 12 - - background = { - using = Background_Area - margin = { 6 2 } - } - - vbox = { - spacing = 6 - - dynastic_cycle_legitimacy_box_top = {} - - vbox = { - layoutpolicy_horizontal = expanding - text_multi = { - layoutpolicy_horizontal = expanding - text = "DYNASTIC_CYCLE_WINDOW_HEGEMON_STABILITY_PICK_TEXT" - align = right - max_width = 200 - } - } - } - - coa_house_big = { - datacontext = "[Character.GetHouse]" - allow_outside = yes - } - } - expand = {} - } - } - } - - type political_movement_members_portrait_icons = widget { - - size = { 164 212 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - widget = { - size = { 164 200 } - allow_outside = yes - parentanchor = vcenter - widgetanchor = vcenter - - portrait_button = { - size = { 164 200 } - using = portrait_base - - portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - mask = "gfx/portraits/portrait_mask_torso.dds" - effectname = "NoHighlight" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - expand = {} - - text_single = { - - background = { - using = Background_Area_Dark - margin = { 8 0 } - } - - visible = "[ObjectsEqual( SituationParticipantGroup.MakeScope.Var('movement_leader').Char.Self, Character.Self )]" - text = "DYNASTIC_CYCLE_WINDOW_MOVEMENT_LEADER_LABEL" - - align = nobaseline|center - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( Or( ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self), ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('hegemon_ruler').Self)))]" - - margin = { 2 4 } - - background = { - using = Background_Area_Dark - } - - text_single = { - name = "movement_participant_portrait_info" - - text = "DYNASTIC_CYCLE_WINDOW_PORTRAIT_MOVEMENT_POWER" - tooltip = "[Character.MakeScope().GetScriptValueDesc( 'movement_power_character_value' )]" - using = tooltip_se - using = Font_Size_Small - align = nobaseline|center - } - - dynastic_cycle_movement_member_interactions_button = {} - - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[ObjectsEqual( SituationParticipantGroup.Self, GetSituation('dynastic_cycle').GetTopParticipantGroupByKey('other_rulers').Self )]" - expand = {} - - land_and_army_participant_hbox = { - datacontext = "[Character]" - datacontext = "[SituationDynasticCycleWindow]" - - background = { - using = Background_Area_Dark - } - } - } - } - } -} - -template Background_Area_Participant_Group_Button { - - background = { - using = Background_Area_Dark - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'hegemon_ruler' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Hegemon - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'expansion_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Expansion - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'advancement_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Advancement - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'pro_hegemon_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Pro - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'conservative_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Conservative - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'undecided_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Undecided - } - - background = { - visible = "[EqualTo_string( SituationParticipantGroup.GetType.GetKey, 'independent_movement' )]" - margin = { 2 2 } - using = Background_Area_Participant_Group_Independent - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - spriteborder_bottom = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/window_administrative_government/family_decoration.dds" - spriteType = Corneredtiled - spriteborder_top = 14 - texture_density = 1.5 - alpha = 0.1 - using = Mask_Rough_Edges - } - - background = { - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - margin = { 0 -5 } - alpha = 0.2 - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - alpha = 0.2 - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_scratches.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - } -} - -template Background_Area_Participant_Group_Hegemon { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.75 0.5 0.2 0.75 } -} - -template Background_Area_Participant_Group_Expansion { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.8 0.3 0.2 0.75 } -} - -template Background_Area_Participant_Group_Advancement { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.3 0.5 0.3 0.85 } -} - -template Background_Area_Participant_Group_Pro { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.4 0.1 0.5 0.55 } -} - -template Background_Area_Participant_Group_Conservative { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.1 0.2 0.36 0.9 } -} - -template Background_Area_Participant_Group_Undecided { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.6 0.65 0.6 0.75 } -} - -template Background_Area_Participant_Group_Independent { - texture = "gfx/interface/colors/grey.dds" - - using = Mask_Rough_Edges - color = { 0.6 0.65 0.6 0.75 } -} - -template Wheel_Turn_Duration -{ - duration = 1.5 -} - -template Wheel_Turn_Bezier_Curve -{ - # ease out - #bezier = { 0.5 0 1 0.75 } - - # S curve - bezier = { 0.33 0 0.66 1 } -} diff --git a/N3OW/gui/window_tgp_natural_disaster.gui b/N3OW/gui/window_tgp_natural_disaster.gui deleted file mode 100644 index 5080a78f..00000000 --- a/N3OW/gui/window_tgp_natural_disaster.gui +++ /dev/null @@ -1,882 +0,0 @@ -###################################################### -##################### SITUATION ###################### -###################################################### -window = { - name = "window_tgp_natural_disaster" - widgetid = "window_tgp_natural_disaster" - datacontext = "[SituationWindow.GetSituation]" - datacontext = "[Situation.GetTopSubRegion]" - datacontext = "[GetVariableSystem]" - datacontext = "[GetPlayer]" - parentanchor = top|right - layer = windows_layer - movable = no - allow_outside = yes - - using = Window_Size_MainTab - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 26 } - margin_right = 13 - - widget = { - size = { 100% 100% } - datacontext = "[SituationSubRegion.GetCurrentPhase]" - - vbox = { - using = Window_Margins - - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - # Header and illustration - vbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[Situation.GetNameNoTooltip]" - } - - blockoverride "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - blockoverride "button_close" - { - onclick = "[SituationWindow.Close]" - } - - blockoverride "extra_buttons" - { - button_go_to_my_location = { - visible = "[Situation.GetCenterProvince.IsValid]" - datacontext = "[Situation.GetCenterProvince]" - onclick = "[DefaultOnCoatOfArmsRightClick(Province.GetTitle.GetID)]" - tooltip = "GOTO_PROVINCE_TT" - } - } - } - - # current phase header image - proportional_icon = { - name = "illustration_normal" - size = { 550 180 } - visible = "[Not( EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey ) )]" - - texture = "[Situation.GetTopCurrentPhase.GetType.GetIllustration]" - - using = Mask_Rough_Edges - } - proportional_icon = { - name = "illustration_impact" - size = { 550 180 } - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - - texture = "[Situation.GetTopCurrentPhase.GetType.GetIllustration]" - using = Mask_Rough_Edges - - icon = { - name = "event_window_widget_vfx_earthquake" - size = { 100% 100% } - texture = "gfx/interface/window_vfx/noise_01.dds" - gfxtype = icongfx - effectname = "Earthquake" - shaderfile = "gfx/FX/pdxgui_event_vfx.shader" - mipmaplodbias = -1 - alwaystransparent = yes - activity_locale_vfx = { - size = { 100% 100% } - position = { 0.0% 0.0% } - entity_instance = "ui_earthquake" - } - } - } - } - - # Severity and fatalities - hbox = { - name = "severity_and_fatalities" - margin = { 12 4 } - layoutpolicy_horizontal = expanding - - visible = "[SituationSubRegion.IsValid]" - - background = { - using = Background_Area_Dark - margin = { 4 4 } - alpha = 0.4 - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - text_single = { - text = "[Situation.GetSeverityDesc]" - } - - hbox_severity_display = { } - - expand = {} - } - - # fatalities - text_single = { - - text = "SITUATION_WINDOW_CURRENT_PHASE_FATALITIES" - default_format = "#Weak" - align = nobaseline - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - # Phases progress bars and effects - hbox = { - layoutpolicy_horizontal = expanding - margin_top = 15 - - ########## - # Progressbar (custom built) - ########## - widget = { - allow_outside = yes - size = { 70 180 } - - widget = { - datacontext = "[SituationWindow.GetPhaseProgressComplexBar( SituationSubRegion.Self )]" - parentanchor = left|vcenter - position = { 15 0 } - size = { 30 180 } - allow_outside = yes - - icon = { - parentanchor = center - widgetanchor = center - size = { 20 120 } - texture = "gfx/interface/progressbars/progress_black.dds" - } - - # two adjacent progress bars for the two phases progress - progressbar_standard = { - name = "impact_progress" - visible = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - size = { 20 40 } - position = { 0 34 } - parentanchor = top|hcenter - direction = vertical - - progresstexture = "gfx/interface/progressbars/progress_red_bg.dds" - noprogresstexture = "gfx/interface/progressbars/progress_red.dds" - - min = 0 - max = 1 - value = "[Subtract_CFixedPoint( '(CFixedPoint)1', Situation.GetTopCurrentPhase.GetRelativeProgress )]" - } - - progressbar_standard = { - name = "impact_full" - visible = "[Or(EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey ),EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey ))]" - size = { 20 40 } - position = { 0 34 } - parentanchor = top|hcenter - direction = vertical - - progresstexture = "gfx/interface/progressbars/progress_red_bg.dds" - noprogresstexture = "gfx/interface/progressbars/progress_red.dds" - - min = 0 - max = 1 - value = 0 - } - - progressbar_standard = { - name = "recovery_progress" - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - size = { 20 40 } - position = { 0 -34 } - parentanchor = bottom|hcenter - widgetanchor = bottom|hcenter - direction = vertical - - progresstexture = "gfx/interface/progressbars/progress_blue_bg.dds" - noprogresstexture = "gfx/interface/progressbars/progress_blue.dds" - - min = 0 - max = 1 - value = "[Subtract_CFixedPoint( '(CFixedPoint)1', Situation.GetTopCurrentPhase.GetRelativeProgress )]" - } - - progressbar_standard = { - name = "recovery_full" - visible = "[EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - size = { 20 40 } - position = { 0 -34 } - parentanchor = bottom|hcenter - widgetanchor = bottom|hcenter - direction = vertical - - progresstexture = "gfx/interface/progressbars/progress_blue_bg.dds" - noprogresstexture = "gfx/interface/progressbars/progress_blue.dds" - - min = 0 - max = 1 - value = 0 - } - - # markers - # Warning - widget_level_marker = { - name = "warning_marker" - allow_outside = yes - parentanchor = top|hcenter - widgetanchor = top|hcenter - - icon = { - name = "warning_phase_icon" - datacontext = "[Situation.GetType.GetPhaseType( 'warning' )]" - size = { 40 40 } - texture = "[SituationPhaseType.GetIcon]" - tooltipwidget = { - using = situation_phase_type_tooltip - } - using = tooltip_se - parentanchor = center - enabled = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - - blockoverride "highlight_addon" { - visible = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - } - - # Impact - widget_level_marker = { - name = "impact_marker" - allow_outside = yes - parentanchor = center - widgetanchor = center - - icon = { - name = "impact_phase_icon" - datacontext = "[Situation.GetType.GetPhaseType( 'impact' )]" - size = { 40 40 } - texture = "[SituationPhaseType.GetIcon]" - tooltipwidget = { - using = situation_phase_type_tooltip - } - using = tooltip_se - parentanchor = center - enabled = "[Not( EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey ) )]" - } - - blockoverride "highlight_addon" { - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - } - - # recovery - widget_level_marker = { - name = "recovery_marker" - allow_outside = yes - parentanchor = bottom|hcenter - widgetanchor = bottom|hcenter - - icon = { - name = "recovery_phase_icon" - datacontext = "[Situation.GetType.GetPhaseType( 'recovery' )]" - size = { 40 40 } - texture = "[SituationPhaseType.GetIcon]" - tooltipwidget = { - using = situation_phase_type_tooltip - } - using = tooltip_se - parentanchor = center - } - - blockoverride "highlight_addon" { - visible = "[EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - } - } - } - - # EFFECTS - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # use a different background for each phase - vbox_current_phase_desc = { - visible = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - blockoverride "tint_color" - { - color = { 1 0.8 0 0.4 } - } - } - - vbox_current_phase_desc = { - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - } - - vbox_current_phase_desc = { - visible = "[EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - blockoverride "tint_color" - { - color = { 0 0.4 0.7 0.4 } - } - } - - spacer = { size = { 0 10 } } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - spacer = { size = { 0 10 } } - - # EFFECTS LIST - vbox = { - layoutpolicy_horizontal = expanding - text_single = { - margin_top = 10 - layoutpolicy_horizontal = expanding - - text = "SITUATION_WINDOW_PHASE_EFFECTS" - align = nobaseline - } - - hbox = { - layoutpolicy_horizontal = expanding - - fixedgridbox = { - visible = "[DataModelHasItems(SituationSubRegion.GetCurrentPhase.GetType.GetModifierNamedSets)]" - name = "named_effect_sets" - layoutpolicy_horizontal = expanding - - addcolumn = 48 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 6 - maxhorizontalslots = 6 - maxverticalslots = 2 - flipdirection = yes - layoutanchor = topleft - - datamodel = "[SituationSubRegion.GetCurrentPhase.GetType.GetModifierNamedSets]" - item = { - button_phase_named_set_item = {} - } - } - - text_single = { - visible = "[IsDataModelEmpty(SituationSubRegion.GetCurrentPhase.GetType.GetModifierNamedSets)]" - text = "NONE" - default_format = "#weak" - } - - expand = {} - } - } - - expand = {} - } - - } - - # Participant group - vbox = { - datacontext = "[Situation.GetTopCharacterParticipantGroup( GetPlayer )]" - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "NATURAL_DISASTER_PARTICIPANT_HEADER" - } - - hbox = { - margin_top = 4 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - icon = { - visible = "[SituationParticipantGroup.IsValid]" - - size = { 40 40 } - texture = "[SituationParticipantGroup.GetType.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 7 - alpha = 1 - } - - background = { - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - margin = { 5 5 } - } - } - - vbox_participant_group_summary = { } - - expand = {} - - button_standard = { - size = { 180 32 } - onclick = "[SituationParticipantCharacterList.Toggle]" - down = "[SituationParticipantCharacterList.IsVisible]" - text = "SITUATION_PARTICIPANT_GROUP_VIEW_ALL" - } - } - } - expand = {} - } - vbox_actionable_section = { - margin = { 0 12 } - } - } - } - } - - window_natural_disaster_participant_groups = { - datacontext = "[SituationWindow.AccessParticipantCharacterList]" - datacontext = "[SituationParticipantCharacterList.AccessCharacterList]" - visible = "[SituationParticipantCharacterList.IsVisible]" - - datacontext = "[SituationWindow.GetSelectedSubRegion]" - blockoverride "header_text" - { - text = "[SituationWindow.GetParticipationWindowHeader]" - } - } -} - -types NaturalDisaster -{ - type hbox_severity_display = hbox - { - margin_top = 6 - - # first icon - icon_flat_standard = { - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/natural_disaster.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - - # second icon - icon_flat_standard = { - visible = "[GreaterThan_CFixedPoint(Situation.MakeScope.Var( 'severity' ).GetValue, '(CFixedPoint)1' )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/natural_disaster.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - - icon_flat_standard_black = { - visible = "[Not( GreaterThan_CFixedPoint(Situation.MakeScope.Var( 'severity' ).GetValue, '(CFixedPoint)1' ) )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/natural_disaster.dds" - - glow = { - glow_radius = 4 - using = Glow_Standard - using = Color_Grey - alpha = 0.4 - } - } - - # third icon - icon_flat_standard = { - visible = "[GreaterThan_CFixedPoint(Situation.MakeScope.Var( 'severity' ).GetValue, '(CFixedPoint)2' )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/natural_disaster.dds" - - glow = { - glow_radius = 3 - using = Glow_Standard - using = Color_Black - alpha = 1 - } - } - - icon_flat_standard_black = { - visible = "[Not( GreaterThan_CFixedPoint(Situation.MakeScope.Var( 'severity' ).GetValue, '(CFixedPoint)2' ) )]" - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/natural_disaster.dds" - - glow = { - glow_radius = 4 - using = Glow_Standard - using = Color_Grey - alpha = 0.4 - } - } - } - - type vbox_actionable_section = vbox - { - layoutpolicy_horizontal = expanding - - vbox = { - visible = "[Situation.GetGreatProject( GetPlayer ).IsValid]" - button_project_item = { - datacontext = "[Situation.GetGreatProject( GetPlayer )]" - layoutpolicy_horizontal = expanding - - blockoverride "size_illustration" - { - position = { -2 0 } - size = { 500 100 } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 5 } - - background = { - using = Background_Area - } - - text_label_center = { - visible = "[Or(EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey ), EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey ))]" - layoutpolicy_horizontal = expanding - text = "SITUATION_RECOMMENDATIONS_HEADER" - } - - vbox = { - margin_top = 4 - spacing = 8 - text_multi = { - visible = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - autoresize = yes - max_width = 500 - text = "situation_disaster_warning_description" - } - - text_multi = { - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - autoresize = yes - max_width = 500 - text = "situation_disaster_impact_description" - } - - text_multi = { - visible = "[EqualTo_string( 'recovery' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - autoresize = yes - max_width = 500 - text = "situation_disaster_recovery_description" - } - - text_multi = { - visible = "[EqualTo_string( 'warning' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - autoresize = yes - max_width = 500 - text = "situation_disaster_warning_recommendations" - default_format = "#help" - } - - text_multi = { - visible = "[EqualTo_string( 'impact' , Situation.GetTopCurrentPhase.GetType.GetKey )]" - autoresize = yes - max_width = 500 - text = "situation_disaster_impact_recommendations" - default_format = "#help" - } - } - } - - } - - type window_natural_disaster_participant_groups = window { - name = "window_natural_disaster_participant_groups" - widgetanchor = right - position = { 30 100 } - size = { 740 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "button_close" - { - onclick = "[SituationParticipantCharacterList.Close]" - } - } - - text_label_left = { - layoutpolicy_horizontal = expanding - margin_left = 8 - text = "SITUATION_PARTICIPANT_GROUPS_TITLE" - } - - hbox = { - name = "participant_groups_overview" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - margin = { 0 4 } - } - - flowcontainer = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 50 - - datamodel = "[SituationSubRegion.GetParticipantGroups]" - spacing = 10 - margin = { 10 10 } - - item = { - button = { - size = { 46 46 } - visible = "[SituationParticipantGroup.IsValid]" - onclick = "[SituationParticipantCharacterList.SetSelectedParticipantGroup( SituationParticipantGroup.Self )]" - tooltip = "[SituationParticipantGroup.GetName]" - - icon_round_button_base = { - size = { 100% 100% } - parentanchor = center - enabled = "[Not( SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ) )]" - } - - icon = { - size = { 36 36 } - parentanchor = center - - visible = "[SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self )]" - texture = "[SituationParticipantGroup.GetType.GetIcon]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 4 - } - } - - highlight_icon = { - size = { 36 36 } - parentanchor = center - - visible = "[Not( SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ) )]" - texture = "[SituationParticipantGroup.GetType.GetIcon]" - #alpha = "[Select_float(SituationParticipantCharacterList.IsParticipantGroupSelected( SituationParticipantGroup.Self ),'(float)1.0','(float)0.6')]" - - modify_texture = { - texture = "gfx/interface/colors/colors_textured.dds" - framesize = { 96 96 } - frame = 1 - } - - } - } - } - } - - vbox_participant_group_summary = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 50 - - datacontext = "[SituationParticipantCharacterList.GetSelectedParticipantGroup]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - blockoverride "filters_visible" { - visible = no - } - - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "skill_sort_buttons" {} - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "SITUATION_PARTICIPANT_WINDOW_PARTICIPANT_EMPTY" - } - - blockoverride "container_implementation" - { - fixedgridbox = { - addcolumn = 630 - addrow = 92 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 94 } - blockoverride "character_relation" {} - } - } - } - } - } - } - } - - type vbox_participant_group_summary = vbox - { - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SituationParticipantGroup.GetName]" - align = nobaseline - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SITUATION_PARTICIPANT_GROUP_SUBTITLE" - align = nobaseline - default_format = "#Weak" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SITUATION_PARTICIPANT_YOUR_GROUP_SUBTITLE" - align = nobaseline - default_format = "#Weak" - } - } - - type vbox_current_phase_desc = vbox - { - name = "phase_desc" - layoutpolicy_horizontal = expanding - spacing = 2 - margin_left = 4 - - using = Severity_Background_Left - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_WINDOW_CURRENT_PHASE" - } - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_CURRENT_PHASE_NAME" - default_format = "#T" - } - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "SITUATION_CURRENT_PHASE_ENDS" - align = nobaseline - } - expand = {} - } - } - -} - -template Severity_Background_Left -{ - background = { - margin_left = 12 - margin_right = 4 - margin_bottom = 4 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = alphamultiply - mirror = horizontal - } - - modify_texture = { - block "tint_color" - { - color = { 0.8 0 0 0.4 } - } - blend_mode = normal - } - } -} diff --git a/N3OW/gui/window_the_great_steppe.gui b/N3OW/gui/window_the_great_steppe.gui deleted file mode 100644 index c92026c6..00000000 --- a/N3OW/gui/window_the_great_steppe.gui +++ /dev/null @@ -1,1184 +0,0 @@ -window = { - name = "window_the_great_steppe" - widgetid = "window_the_great_steppe" - datacontext = "[SteppeWindow.GetSituation]" - datacontext = "[SteppeWindow.GetHerdLeaderboardWindow]" - parentanchor = top|right - layer = windows_layer - allow_outside = yes - movable = no - - using = Window_Size_MainTab - using = sound_situation_panel - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Window_Position_MainTab - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - using = Window_Position_MainTab_Hide - } - - margin_widget = { - size = { 100% 100% } - margin = { 0 30 } - margin_right = 13 - - widget = { - size = { 100% 100% } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = Window_Margins - - using = Animation_Tab_Switch - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "THE_GREAT_STEPPE_WINDOW_HEADER" - datacontext = "[SteppeWindow.GetSituation]" - } - - blockoverride "button_back" - { - onclick = "[OpenGameView( 'situations' )]" - } - - blockoverride "button_close" - { - onclick = "[SteppeWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 5 5 } - - background = { - using = Background_Area_Dark - } - - ### SUB_REGION CARDS ### - datamodel = [Situation.GetSubRegions] - - item = { - vbox_season_tab = {} - } - } - - vbox_season_contents = { - datacontext = "[SteppeWindow.GetSelectedSubRegion]" - } - - vbox_nomads_of_situation = {} - - expand = {} - } - } - } - - situation_mini_map_mode = {} - - window_herd_leaderboard = { - datacontext = "[SteppeWindow.GetCharacterList]" - visible = "[HerdLeaderboard.IsVisible]" - } -} - -types SituationTypes -{ - type vbox_season_tab = vbox { - layoutpolicy_horizontal = expanding - - spacer = { - visible = "[SteppeWindow.IsSubRegionSelected( SituationSubRegion.Self )]" - size = { 90 0 } - - state = { - name = _show - size = { 90 0 } - duration = 0.3 - } - - state = { - name = _hide - size = { 0 0 } - duration = 0.3 - } - } - - ### Note: To change height just replace all 228 below - button = { - layoutpolicy_horizontal = expanding - size = { 0 228 } - onclick = "[PdxGuiTriggerAllAnimations( 'subregion_refresh' )]" - scissor = yes - - state = { - name = _mouse_click - on_finish = "[SteppeWindow.SelectSubRegion( SituationSubRegion.Self )]" - } - - highlight_icon = { - parentanchor = center - size = { 248 228 } - texture = "[SituationSubRegion.GetCurrentPhase.GetType.GetIllustration]" - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_culture_era_tab.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - } - - highlight_icon = { - visible = "[Not( SteppeWindow.IsSubRegionSelected( SituationSubRegion.Self ) )]" - parentanchor = center - size = { 248 228 } - texture = "[SituationSubRegion.GetCurrentPhase.GetType.GetIllustration]" - tintcolor = { 0 0 0 0.5 } - } - - ### FRAYED EDGES ### - widget = { - parentanchor = left - size = { 6 228 } - - background = { - using = Background_Area_Solid - spriteType = Corneredtiled - spriteborder = { 20 20 } - spriteborder_right = 11 - margin = { 0 20 } - margin_left = 10 - } - } - - widget = { - parentanchor = right - size = { 6 228 } - - background = { - using = Background_Area_Solid - mirror = horizontal - spriteType = Corneredtiled - spriteborder = { 20 20 } - spriteborder_right = 11 - margin = { 0 20 } - margin_right = 10 - } - } - - ### Name of SubRegion ### - text_single = { - parentanchor = top|hcenter - visible = "[SteppeWindow.IsSubRegionSelected( SituationSubRegion.Self )]" - - state = { - name = _show - using = Animation_FadeIn_Standard - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - } - - text = "THE_GREAT_STEPPE_WINDOW_SUB_REGION_NAME" - } - - text_label_center = { - visible = "[And( SteppeWindow.IsParticipant, And( ObjectsEqual( SituationSubRegion.Self, SteppeWindow.GetPlayerSubRegion.Self ), Not( SteppeWindow.IsSubRegionSelected( SituationSubRegion.Self ) ) ) )]" - parentanchor = bottom|hcenter - position = { 0 -8 } - - text = "THE_GREAT_STEPPE_WINDOW_SEASON_REGION_HOME" - default_format = "#low" - } - - text_label_center = { - visible = "[And( SteppeWindow.IsParticipant, And( ObjectsEqual( SituationSubRegion.Self, SteppeWindow.GetPlayerSubRegion.Self ), SteppeWindow.IsSubRegionSelected( SituationSubRegion.Self ) ) )]" - parentanchor = bottom|hcenter - position = { 0 -8 } - - text = "THE_GREAT_STEPPE_WINDOW_SEASON_REGION_HOME" - default_format = "#high" - } - } - } - - type vbox_season_contents = vbox { - layoutpolicy_horizontal = expanding - - state = { - name = "subregion_refresh" - using = Animation_Refresh_FadeOut - } - state = { - using = Animation_Refresh_FadeIn - } - - ### LOCATION INFO ### - hbox = { - margin = { 15 10 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_vertical = expanding - - text_single = { - margin_bottom = 4 - layoutpolicy_horizontal = expanding - max_width = 280 - min_width = 280 - - text = "[SteppeWindow.GetSubRegionTitle]" - using = Font_Size_Medium - align = nobaseline - } - - ### LOCATION CURRENT PHASE & END ### - text_single = { - layoutpolicy_horizontal = expanding - max_width = 280 - min_width = 280 - - text = "[SteppeWindow.GetSelectedRegionSeasonName]" - align = nobaseline - } - - text_multi = { - layoutpolicy_horizontal = expanding - max_width = 280 - min_width = 280 - - text = "[SteppeWindow.GetSelectedRegionSeasonEndDate]" - default_format = "#Weak" - align = nobaseline - } - - } - - expand = {} - - ### LOCATION EFFECTS & PREDICITON ### - vbox = { - name = "situations_header" - layoutpolicy_vertical = expanding - - expand = {} - - text_single = { - margin_bottom = 5 - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_SEASON_EFFECTS" - align = nobaseline - } - - fixedgridbox = { - name = "task_items" - datamodel = "[SteppeWindow.GetSeasonEffects( SteppeWindow.GetSelectedSubRegion.Self )]" - - addcolumn = 50 - addrow = 48 - setitemsizefromcell = yes - datamodel_wrap = 6 - maxhorizontalslots = 6 - maxverticalslots = 2 - flipdirection = yes - - item = { - icon_situation_phase_effect_item = {} - } - } - } - } - - ### ASTROLOGER CARD ### - vbox_court_astrologer_card = {} - } - - type icon_situation_phase_effect_item = icon { - datacontext = "[GetPlayer]" - - icon = { - parentanchor = center - size = { 50 50 } - texture = "gfx/interface/icons/struggle_banners/icon_background_dark.dds" - } - - proportional_icon = { - size = { 75% 75% } - position = { 0 0 } - parentanchor = center - alwaystransparent = yes - texture = "[SituationModifierNamedSet.GetIcon]" - } - - tooltipwidget = { - using = situation_modifier_named_set_tooltip - } - } - - type icon_situation_phase_effect_participant_group_item = icon { - datacontext = "[GetPlayer]" - - ### Selected with double outer blue ring - highlight_icon = { - visible = "[ObjectsEqual( SituationSubRegion.GetCharacterParticipantGroup( Character.Self ).GetName, SituationParticipantGroupType.GetName)]" - size = { 58 58 } - parentanchor = center - - texture = "gfx/interface/icons/struggle_banners/icon_background_blue_frame.dds" - } - - ### Blue ring outline - icon = { - size = { 52 52 } - parentanchor = center - - texture = "gfx/interface/icons/struggle_banners/icon_background_blue_frame.dds" - } - - icon_flat_standard = { - visible = "[Situation.GetType.UseSituationPhaseFlatIcons]" - size = { 35 35 } - parentanchor = center - - texture = "[SituationParticipantGroupType.GetIcon]" - } - - icon = { - visible = "[Not( Situation.GetType.UseSituationPhaseFlatIcons )]" - size = { 40 40 } - parentanchor = center - - texture = "[SituationParticipantGroupType.GetIcon]" - } - - tooltipwidget = { - using = situation_participant_group_type_phase_effects_tooltip - } - } - - type vbox_nomads_of_situation = vbox { - name = "gurkhan_steppe_window" - datacontext = "[SteppeWindow.GetGurkhan]" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - allow_outside = yes - - ### NOMADS TOP HEADER ### - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 15 } - - background = { - using = Background_Area_Dark - } - - background = { - using = GenericObjectCardHeaderBackground - using = Color_Blue - } - - text_single = { - text = "THE_GREAT_STEPPE_WINDOW_NOMADS_HEADER" - align = nobaseline - default_format = "#high" - using = Font_Size_Medium - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 25 0 } - - background = { - texture = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.15 - margin_bottom = 40 - } - - ### GURKHAN PORTRAIT ### - widget = { - size = { 220 250 } - - tooltipwidget = { - container_character_tooltip = {} - } - - blockoverride "portrait_button" - { - using = tooltip_ne - } - - blockoverride "glow_visible" - { - visible = no - } - - using = Character_Background - - portrait_button = { - parentanchor = hcenter - position = { 0 -30 } - size = { 220 260 } - - using = portrait_base - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_hud', 'camera_torso', 'war_over_win', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - background_texture = "gfx/portraits/portrait_transparent.dds" - effectname = "NoHighlight" - texture = "gfx/portraits/portrait_transparent.dds" - mask = "gfx/portraits/portrait_mask_body.dds" - } - - portrait_status_icons = { - parentanchor = bottom|right - position = { -15 -105 } - } - - coa_realm_small_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|left - position = { 10 -105 } - } - - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 10 -105 } - } - - widget = { - parentanchor = bottom|hcenter - size = { 220 100 } - - vbox = { - layoutpolicy_horizontal = expanding - parentanchor = center - - background = { - using = Background_Area_Solid - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 15 5 } - - background = { - using = Background_Area_Solid - margin = { 10 0 } - } - - background = { - using = GenericObjectCardHeaderBackground - using = Color_Blue - margin = { 10 0 } - } - - icon = { - size = { 40 50 } - texture = "gfx/interface/icons/icon_gurkhan.dds" - } - - ### GURKHAN TITLE & NAME ### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 10 0 } - - expand = {} - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetShortUINameNotMeNoTooltip|U]" - align = nobaseline - max_width = 150 - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_GURKHAN_SUBTITLE" - align = nobaseline - max_width = 150 - } - - expand = {} - } - } - - vbox = { - margin_bottom = 5 - - ### GURKHAN LOCATION ### - text_single = { - layoutpolicy_horizontal = expanding - - text = "[SteppeWindow.GetGurkhanLocationDesc]" - align = nobaseline - default_format = "#Weak" - max_width = 210 - } - - ### GURKHAN HERD ### - text_single = { - datacontext = "[SteppeWindow.GetGurkhan]" - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_CHARACTER_HERD" - align = nobaseline - default_format = "#Weak" - max_width = 210 - - tooltipwidget = { - herd_breakdown_hud_toolip = { - datacontext = "[Character.GetDomicile]" - - blockoverride "herd_limit_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdLimitBreakdown( Domicile.Self )]" - } - blockoverride "herd_change_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdChangeBreakdown( Character.Self )]" - } - blockoverride "herd_conversion_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdConversionBreakdown( Domicile.Self )]" - } - } - } - } - } - } - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - spacing = 10 - - expand = {} - - hbox = { - datacontext = "[SteppeWindow.GetCharacterList]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - fixedgridbox = { - datamodel = "[DataModelSkipFirst( DataModelFirst( CharacterSelectionList.GetList, '(int32)4' ), '(int32)1' )]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - addcolumn = 90 - addrow = 115 - datamodel_reuse_widgets = yes - flipdirection = yes - - item = { - widget_nomad_character = {} - } - } - } - - button_standard = { - size = { 200 40} - text = "THE_GREAT_STEPPE_WINDOW_HERD_LEADERBOARD_BUTTON" - - onclick = "[HerdLeaderboard.Toggle]" - - using = tooltip_ne - } - - expand = {} - } - } - } - - type vbox_court_astrologer_card = vbox { - datacontext = "[SteppeWindow.GetAstrologer]" - datacontext = "[CourtPosition.GetPositionType]" - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[CourtPosition.GetEmployee]" - layoutpolicy_horizontal = expanding - - ### ASTROLOGER INFO ### - vbox = { - name = "astrologer_header_steppe_region" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 15 10 } - spacing = 10 - - background = { - using = Background_Area_Dark - } - - background = { - using = GenericObjectCardHeaderBackground - using = Color_Blue - } - - icon = { - size = { 35 35 } - texture = "gfx/interface/icons/court_position_types/court_astrologer_court_position.dds" - } - - ### ASTROLOGER NAME ### - vbox = { - text_single = { - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltipNoFormat]" - align = nobaseline - max_width = 300 - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_ASTROLOGER" - align = nobaseline - default_format = "#high" - max_width = 300 - using = Font_Size_Medium - } - } - - expand = {} - - ### ASTROLOGER COURT POSITION TYPE ### - vbox = { - visible = "[Character.IsValid]" - - ### Aptitude - text_single = { - layoutpolicy_horizontal = expanding - - text = "COURT_POSITION_aptitude_description_position" - align = right|nobaseline - max_width = 180 - - tooltipwidget = { - court_position_aptitude_breakdown_tooltip = { - datacontext = "[CourtPosition.GetAptitudeTooltip]" - - blockoverride "header_text" { - text = "COURT_POSITION_aptitude_description_position" - } - - blockoverride "modifier_list" { - text = "[CourtPosition.GetEmployerBonuses]" - } - } - } - } - - ### ASTROLOGER SALARY ### - text_single = { - layoutpolicy_horizontal = expanding - max_width = 180 - - text = "COURT_POSITIONS_WINDOW_EMPLOYER_SALARY_SHORT" - align = right|nobaseline - - tooltip = "[CourtPosition.GetEmployerSalaryBreakdownTooltip]" - } - } - } - } - - ### ASTROLOGER PORTRAIT ### - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - texture = "gfx/interface/illustrations/event_scenes/ep2_feast_steppe.dds" - fittype = centercrop - using = Mask_Rough_Edges - alpha = 0.3 - } - - ### PREDICTION ### - vbox = { - visible = "[Character.IsValid]" - layoutpolicy_vertical = expanding - - margin = { 5 20 } - spacing = 15 - - background = { - using = Background_Area_ExtraDark - alpha = 0.7 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds" - blend_mode = alphamultiply - alpha = 0.9 - } - } - - ### SEASONAL BAR ### - widget = { - datacontext = "[SteppeWindow.GetSeasonPrediction( SteppeWindow.GetSelectedSubRegion.Self )]" - visible = "[And( CourtAstrologerPrediction.GetSituationPhaseFirst.IsValid, CourtAstrologerPrediction.GetSituationPhaseSecond.IsValid )]" - size = { 300 60 } - - progressbar = { - parentanchor = center - size = { 100% 130% } - using = Mask_Rough_Edges - - progresstexture = "[CourtAstrologerPrediction.GetSituationPhaseFirst.GetIcon]" - noprogresstexture = "[CourtAstrologerPrediction.GetSituationPhaseSecond.GetIcon]" - min = 0 - max = 1 - value = "[FixedPointToFloat( CourtAstrologerPrediction.GetPercentFirst )]" - - modify_texture = { - texture = "gfx/interface/component_masks/season_bar_mask.dds" - blend_mode = alphaMultiply - } - } - } - - ### SEASONAL PREDICITON CHANCE ### - text_single = { - datacontext = "[SteppeWindow.GetSeasonPrediction( SteppeWindow.GetSelectedSubRegion.Self )]" - layoutpolicy_horizontal = expanding - - text = "[SteppeWindow.GetSeasonPredictionDesc( CourtAstrologerPrediction.Self )]" - align = nobaseline - max_width = 300 - } - - expand = {} - } - - ### PREDICTION - NO ASTROLOGER ### - vbox = { - visible = "[Not( Character.IsValid )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 195 } - - background = { - using = Background_Area_ExtraDark - alpha = 0.7 - margin = { 24 24 } - - modify_texture = { - texture = "gfx/interface/window_county/mask_holding_illustration.dds" - blend_mode = alphamultiply - } - } - - expand = { layoutpolicy_vertical = expanding } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text = "THE_GREAT_STEPPE_WINDOW_NO_PREDICTION" - max_width = 200 - } - - expand = { layoutpolicy_vertical = expanding } - } - - ### ASTROLOGER - hbox = { - visible = "[Character.IsValid]" - - widget = { - size = { 210 195 } - - portrait_button = { - parentanchor = center - size = { 180 195 } - - portrait_texture = "[Character.GetAnimatedPortrait( 'environment_council', 'camera_shoulders', SteppeWindow.GetAstrologerAnimation, PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]" - mask = "gfx/portraits/portrait_mask_council.dds" - effectname = "NoHighlight" - using = portrait_base - } - - ### ASTROLOGER TASKS ### - fixedgridbox = { - name = "task_items" - datacontext = "[CourtPosition.GetPositionType]" - datamodel = "[CourtPositionType.GetTasks]" - parentanchor = bottom|right - position = { 0 -10 } - - addcolumn = 40 - addrow = 40 - setitemsizefromcell = yes - datamodel_wrap = 3 - - item = { - widget_court_position_task = { - blockoverride "on_click" - { - onclick = "[SteppeWindow.UpdateAstrologerAnimation( CourtPositionTaskType.Self )]" - } - } - } - } - } - } - - ### VACANT/EMPTY POSITION - HIRE BUTTON ### - widget = { - size = { 180 195 } - allow_outside = yes - scissor = yes - visible = "[And( SteppeWindow.IsParticipant, Not( Character.IsValid ) )]" - tooltip = "THE_GREAT_STEPPE_WINDOW_HIRE_ASTROLOGER" - tooltip_offset = { -100 10 } - - button = { - size = { 220 300 } - position = { -20 -100} - - allow_outside = yes - gfxtype = framedbuttongfx - effectname = "NoHighlight" - - texture = "gfx/portraits/unknown_portraits/button_unknown_small.dds" - framesize = { 564 780 } - upframe = 1 - overframe = 2 - - button_icon = { - parentanchor = center - size = { 48 48 } - position = { 0 92 } - - alwaystransparent = yes - texture = "gfx/interface/icons/flat_icons/plus.dds" - } - onclick = "[ShowCourtPositionAppointOrReplace( GetPlayer.GetID, 'court_astrologer_court_position' )]" - - } - } - } - } - } - } - - type vbox_herd_leaderboard_item = vbox { - margin_top = 2 - margin_left = 12 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ### ITEM NAME ### - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip|U]" - using = Font_Size_Medium - align = nobaseline - } - - ### ITEM LOCATION ### - text_single = { - datacontext = "[HerdLeaderboard.GetItemSubRegion( CharacterListItem.Self )]" - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_CHARACTER_LOCATION" - default_format = "#Weak" - align = nobaseline - } - - ### ITEM REALM SIZE ### - text_single = { - visible = "[NotEqualTo_int32(Character.GetPrimaryTitle.GetTierFrame, '(int32)2')]" #nonbaron - layoutpolicy_horizontal = expanding - - text = "REALM_WINDOW_SIZE" - align = nobaseline - tooltip = "REALM_WINDOW_SIZE_TT" - } - - hbox = { - layoutpolicy_horizontal = expanding - - ### ITEM HERD ### - text_single = { - layoutpolicy_horizontal = expanding - - text = "THE_GREAT_STEPPE_WINDOW_CHARACTER_HERD" - align = nobaseline - - tooltipwidget = { - herd_breakdown_hud_toolip = { - datacontext = "[Character.GetDomicile]" - - blockoverride "herd_limit_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdLimitBreakdown( Domicile.Self )]" - } - blockoverride "herd_change_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdChangeBreakdown( Character.Self )]" - } - blockoverride "herd_conversion_breakdown" - { - datacontext = "[SteppeWindow.AccessHerdConversionBreakdown( Domicile.Self )]" - } - } - } - } - - expand = {} - - ### ITEM MILITARY ### - hbox = { - datacontext = "[HerdLeaderboard.GetArmyComposition( CharacterListItem.Self )]" - spacing = 4 - - text_single = { - text = "THE_GREAT_STEPPE_WINDOW_CHARACTER_MILITARY_STRENGTH" - align = nobaseline - } - - icon = { - name = "icon_soldier" - texture = "gfx/interface/icons/icon_soldier.dds" - size = { 23 23 } - } - - text_single = { - text = "[ArmyComposition.GetSoldierCountString]" - align = nobaseline - } - - army_quality_icon = { - tooltip_visible = no - } - - tooltip = "[ArmyComposition.GetArmyCompositionTooltip]" - } - } - expand = {} - } - - type window_herd_leaderboard = window { - name = "herd_leaderboard_window" - widgetanchor = right - position = { 10 70 } - size = { 750 82% } - - layer = middle - movable = yes - - using = Window_Background - using = Window_Decoration_Spike - using = Window_Size_CharacterList - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "THE_GREAT_STEPPE_WINDOW_HERD_LEADERBOARD_BUTTON" - } - - blockoverride "button_close" - { - onclick = "[HerdLeaderboard.Close]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "filters_visible" { - visible = no - } - - blockoverride "sort_dropdown" { - dropdown_sort_characterlist = { - name = "herd_owners_sort_options" - } - } - } - } - - blockoverride "skill_sort_buttons" {} - - blockoverride "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[Not( CharacterSelectionList.HasItems )]" - text = "THE_GREAT_STEPPE_WINDOW_HERD_LEADERBOARD_EMPTY" - } - - blockoverride "container_implementation" - { - fixedgridbox = { - addcolumn = 630 - addrow = 100 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_character_list_item_finder = { - size = { 630 100 } - blockoverride "character_relation" {} - - background = { - using = Background_Area - } - } - } - } - } - - blockoverride "button_content" - { - vbox_herd_leaderboard_item = {} - } - } - } - } - - type situation_mini_map_mode = mini_map_mode { - parentanchor = bottom|left - widgetanchor = bottom|right - position = { -250 -25 } - - blockoverride "widget_size" - { - size = { 360 60 } - } - - blockoverride "map_mode_buttons" - { - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'realms' )]" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'situation' )]" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'migration_counties' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_19" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'cultures' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_2" - } - } - - icon_button_mapmode = { - blockoverride = "mm_datacontext" - { - datacontext = "[GetMapMode( 'landless_rulers' )]" - } - - blockoverride "mm_button" - { - shortcut = "map_mode_18" - } - } - } - } - - type widget_nomad_character = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 90 115 } - - vbox = { - portrait_head_small = {} - - text_single = { - text = "THE_GREAT_STEPPE_WINDOW_NOMAD_LABEL" - default_format = "#Weak" - align = nobaseline - } - } - } -} diff --git a/N3OW/gui/window_title.gui b/N3OW/gui/window_title.gui deleted file mode 100644 index 987aa78c..00000000 --- a/N3OW/gui/window_title.gui +++ /dev/null @@ -1,1423 +0,0 @@ -### TITLE WINDOW - -window = { - name = "title_view_window" - size = { 650 100% } - - movable = no - allow_outside = yes - layer = middle - - using = Window_Background_Sidebar - - state = { - name = _show - position = { 0 0 } - on_start = "[GetVariableSystem.Clear( 'display_allegiance' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - position_x = -60 - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - vbox = { - using = Window_Margins_Sidebar - - ###################################################### - #################### TITLE VIEW ###################### - ###################################################### - - datacontext = "[TitleViewWindow.GetTitle]" - - vbox = { - name = "title_view_main_tab" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - ### HEADER ### - hbox = { - name = "header_area" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - vbox = { - margin = { 10 5 } - layoutpolicy_vertical = expanding - - coa_title_big_crown = { - datacontext = "[TitleViewWindow.GetTitle]" - tooltip = "[Title.GetCOADeJureTooltip]" - - icon = { - name = "has_laws" - visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" - parentanchor = bottom|right - size = { 42 42 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - ignoreinvisible = yes - datacontext = "[TitleViewWindow.GetTitle]" - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - margin_top = 22 - - hbox = { - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - spacing = 5 - - text_multi = { - text = "[TitleViewWindow.GetTitle.GetNameNoTooltip|U]" - default_format = "#high" - max_width = 330 - autoresize = yes - using = Font_Size_Big - } - - button_edit_text = { - visible = "[TitleViewWindow.GetTitle.CanPlayerCustomizeTitle]" - onclick = "[OpenTitleCustomizationWindow(TitleViewWindow.GetTitle)]" - tooltip = "CUSTOMIZE_TITLE" - } - - expand = {} - } - - vbox_title_type_text = { - layoutpolicy_horizontal = expanding - - text_single = { - visible = "[TitleViewWindow.HasMeritPoolData]" - layoutpolicy_horizontal = expanding - - text = "[TitleViewWindow.GetMeritPoolDescription]" - } - datacontext = "[GuiScope.SetRoot( TitleViewWindow.GetTitle.MakeScope ).GetScriptValueBreakdown( 'appointment_title_value' )]" - using = tooltip_ne - - tooltip_visible = "[ValueBreakdown.HasTooltip]" - tooltipwidget = { - visible = "[ValueBreakdown.HasTooltip]" - widget_value_breakdown_tooltip = { - blockoverride "header" { - text_label_left = { - layoutpolicy_horizontal = expanding - text = prominence_breakdown_header - default_format = "#T" - } - } - } - } - } - } - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( TitleViewWindow.GetTitle.MakeScope )]" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - buttons_window_control = { - blockoverride "button_close" - { - onclick = "[TitleViewWindow.Close]" - onclick = "[TitleViewWindow.CloseHistory]" - onclick = "[TitleViewWindow.CloseClaimants]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" - } - } - - expand = {} - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 10 - spacing = 5 - - text_single = { - visible = "[Title.HasFaction]" - datacontext = "[Title.GetFaction]" - text = "TITLE_VIEW_FACTION" - max_width = 280 - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - name = "is_created" - visible = "[Not(Title.HasHolder)]" - text = "TV_NOT_CREATED" - } - - vbox = { - name = "existing_title" - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - visible = "[Title.HasHolder]" - spacing = 4 - - text_single = { - name = "my_title" - layoutpolicy_horizontal = expanding - visible = "[EqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID )]" - text = "TV_MY_TITLE" - } - - text_single = { - text = "TV_NO_CLAIM" - layoutpolicy_horizontal = expanding - visible = "[And(And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), Not(GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))),Title.CanHaveClaim)]" - } - - text_multi = { - name = "have_claim" - text = "[Title.GetClaimStateFor(GetPlayer)]" - layoutpolicy_horizontal = expanding - minimumsize = { 200 50 } - visible = "[And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))]" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_VIEW_DISABLED_BORDER_WARS" - visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_not_redirected_to_border_wars_law')]" - align = nobaseline - max_width = 340 - fontsize_min = 9 - } - text_multi = { - layoutpolicy_horizontal = expanding - text = "TITLE_VIEW_ENABLED_BORDER_WARS" - visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_redirected_to_border_wars_law')]" - align = nobaseline - max_width = 340 - fontsize_min = 9 - } - } - - expand = {} - - } - - flowcontainer = { - direction = vertical - ignoreinvisible = yes - spacing = 3 - - button_sidepanel_right = { - name = "view_claimants" - parentanchor = right - onclick = "[TitleViewWindow.ToggleClaimants]" - tooltip = "TITLE_CLAIMANTS_TOOLTIP" - visible = "[And(Title.CanHaveClaim, Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) )]" - enabled = "[GreaterThan_int32( TitleViewWindow.GetNumberOfClaimants, '(int32)0' )]" - - blockoverride "button_text" - { - text = "TITLE_VIEW_CLAIMANTS" - } - } - - button_sidepanel_right = { - name = "title history" - parentanchor = right - visible = "[And( Not( Title.IsBarony ), Not( Title.HasFaction ) )]" - onclick = "[TitleViewWindow.ToggleHistory]" - - tooltip = "SHOW_TITLE_HISTORY" - - blockoverride "button_text" - { - text = "TITLE_HISTORY" - } - } - - - text_single = { - align = right - parentanchor = right - visible = "[Not(Title.CanHaveClaim)]" - text = "TITLE_VIEW_NO_CLAIMANTS" - tooltip = "TITLE_VIEW_NO_CLAIMANTS_TOOLTIP" - default_format = "#weak" - max_width = 120 - fontsize_min = 5 - } - } - } - - ### COUNTY PART OF #### - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - margin_right = 10 - margin_bottom = 10 - - text_single = { - text = "TITLE_VIEW_DE_JURE_PART_OF" - visible = "[DataModelHasItems(TitleViewWindow.GetLiegeItems)]" - } - - fixedgridbox = { - name = "dejure_liege_grid" - datamodel = "[TitleViewWindow.GetLiegeItems]" - flipdirection = yes - addcolumn = 40 - addrow = 40 - maxverticalslots = 1 - setitemsizefromcell = yes - - item = { - widget = { - size = { 40 50 } - - coa_title_tiny_crown = { - datacontext = "[TitleItem.GetTitle]" - parentanchor = center - - using = tooltip_se - } - } - } - } - - expand = {} - - vbox = { - visible = "[And(TitleViewWindow.GetTitle.HasHolder,TitleViewWindow.GetTitle.IsLanded)]" - margin_left = 10 - margin_bottom = 5 - spacing = 5 - - text_single = { - margin_left = 5 - layoutpolicy_horizontal = expanding - align = center - max_width = 180 - raw_text = "[TitleViewWindow.GetTypeOfLanded]: " - } - - button_tertiary = { - datacontext = "[TitleViewWindow.GetHolding]" - tooltip = "TITLE_VIEW_GO_TO_HOLDING" - onclick = "[TitleViewWindow.GoToHolding]" - size = { 120 30 } - text = "[Holding.GetProvince.GetNameNoTooltip]" - } - } - } - } - - expand = {} - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[Title.GetHolder]" - - ### TABS ### - hbox = { - name = "tabs" - visible = "[Not(IsDataModelEmpty(TitleViewWindow.GetTitleAllegianceVassals))]" - layoutpolicy_horizontal = expanding - - button_tab = { - layoutpolicy_horizontal = expanding - name = "show_vassals" - text = "TITLE_VIEW_DE_JURE" - default_format = "#weak" - down = "[Not( GetVariableSystem.Exists( 'display_allegiance' ) )]" - onclick = "[GetVariableSystem.Clear( 'display_allegiance' )]" - } - - button_tab = { - layoutpolicy_horizontal = expanding - name = "show_allegiance" - text = "TITLE_VIEW_VASSALS" - default_format = "#weak" - down = "[GetVariableSystem.Exists( 'display_allegiance' )]" - onclick = "[GetVariableSystem.Set( 'display_allegiance', 'true' )]" - } - } - - vbox = { - name = "dejure_tab_contents" - datacontext = "[TitleViewWindow.GetTitle]" - visible = "[And(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), Not(Or(GetVariableSystem.Exists( 'display_allegiance' ), Or(Title.IsMercenaryCompany,Title.IsHolyOrder))))]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 15 - spacing = 10 - - text_label_center = { - text = "[TitleViewWindow.GetDeJureDescription]" - max_width = 550 - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 300 } - - background = { - using = Background_Area_Holding - } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[TitleViewWindow.GetVassalGroupItems]" - spacing = 10 - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - vbox = { - datamodel = "[DeJureVassalGroupItem.GetTitleItems]" - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[DeJureVassalGroupItem.GetOwnedBy]" - default_format = "#low" - max_width = 600 - margin = { 0 10 } - } - - item = { - button_standard_list = { - datacontext = "[TitleItem.GetTitle]" - layoutpolicy_horizontal = expanding - minimumsize = { 0 60 } - onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" - onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" - button_ignore = none - - tooltipwidget = { - using = LandedTitleTooltip - } - - coa_title_tiny_crown = { - parentanchor = left|vcenter - position = { 8 -3} - } - - hbox = { - margin_left = 50 - spacing = 5 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Title.GetNameNoTooltip|U]" - default_format = "#high" - max_width = 600 - align = nobaseline - } - } - } - } - } - } - } - } - } - } - } - - scrollbox = { - name = "tab_contents_empty" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not(Or(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), GetVariableSystem.Exists( 'display_allegiance' )))]" - - background = { - using = Background_Area_Holding - } - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_vertical = expanding - - container = { - visible = "[Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems))]" - - text_single = { - visible = "[Not(TitleViewWindow.GetTitle.IsBarony)]" - text = "TITLE_VIEW_TITULAR" - default_format = "#weak" - } - - text_single = { - visible = "[TitleViewWindow.GetTitle.IsBarony]" - text = "TITLE_VIEW_BARONY_NO_DEJURE" - default_format = "#weak" - } - } - } - } - } - - vbox = { - name = "vassals_tab_contents" - visible = "[GetVariableSystem.Exists( 'display_allegiance' )]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 10 - spacing = 15 - - text_label_center = { - text = "TITLE_ALLEGIANCE_VASSAL_LIST" - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 300 } - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[TitleViewWindow.GetTitleAllegianceVassals]" - layoutpolicy_horizontal = expanding - spacing = 3 - - item = { - button_standard_list = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 50 } - onclick = "[DefaultOnCharacterClick(Character.GetID)]" - onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" - button_ignore = none - - hbox = { - margin = { 5 0 } - position = {0 -2 } - - coa_realm_tiny_crown = {} - - text_single = { - text = "[Character.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - margin = { 10 0 } - } - } - } - } - } - } - } - } - - vbox_domicile_button = { - visible = "[And( Title.HasHolder, And( Title.HasDomicile, Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems)) ) )]" - } - - spacer = { - visible = "[TitleViewWindow.GetTitle.GetHolder.HasDomicile]" - size = { 10 10 } - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 20 10 } - datacontext = "[TitleViewWindow.GetTitle.GetPreferredCapital]" - visible = "[And( And( Title.IsValid, Not( TitleViewWindow.GetTitle.HasFaction ) ), Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) )]" - spacing = 5 - - background = { - using = Background_Area_Dark - alpha = 0.6 - } - - text_single = { - text = "TITLE_VIEW_DE_JURE_CAPITAL" - align = nobaseline - } - - widget = { - size = { 40 44 } - - coa_title_tiny_crown = { - parentanchor = center - position = { 0 -3 } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Title.GetName|U]" - align = nobaseline - } - - hbox = { - name = "buttons" - - spacing = 5 - visible = "[Not( Title.HasFaction )]" - - button_round = { - name = "toggle_find_vassal" - visible = "[And( And( ObjectsEqual( Title.GetHolder, GetPlayer ), Title.CanUseFindVassal( GetPlayer ) ), Not( Title.IsLeasedOut ) )]" - - onclick = "[TitleViewWindow.ToggleFindVassalListWindow]" - tooltip = "FIND_VASSAL_BUTTON_TOOLTIP" - - button_grant_title_to_vassal = { - parentanchor = center - alwaystransparent = yes - } - } - - hbox_title_shared_buttons = { - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - } - - hbox = { - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - visible = "[And( Title.HasHolder, Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder)))]" - ignoreinvisible = yes - spacing = 5 - - button_round = { - name = "remove_law" - visible = "[And( Character.IsLocalPlayer, TitleViewWindow.GetTitle.HasLaws )]" - enabled = "[IsValidCommand( TitleViewWindow.GetClearLaws )]" - onclick = "[CreateCommandPopup( TitleViewWindow.GetClearLaws )]" - tooltip = "[TitleViewWindow.GetClearLawsButtonTooltip]" - - button_remove_laws = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "open_laws" - visible = "[And( Character.IsLocalPlayer, TitleViewWindow.CanAddLaws )]" - onclick = "[TitleViewWindow.ToggleLaws]" - tooltip = "ADD_LAWS_TOOLTIP" - - button_add_laws = { - parentanchor = center - alwaystransparent = yes - } - } - } - - hbox = { - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[TitleViewWindow.GetTitle.GetHolder]" - visible = "[Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder))]" - spacing = 5 - - button_round = { - name = "destroy_title" - visible = "[TitleViewWindow.ShowDestroy]" - enabled = "[IsValidCommand( TitleViewWindow.GetDestroyTitle )]" - onclick = "[CreateCommandPopup( TitleViewWindow.GetDestroyTitle )]" - tooltip = "[TitleViewWindow.GetDestroyTitleButtonTooltip]" - - button_destroy_title = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "make_primary_title" - visible = "[And( And( Character.IsLocalPlayer, TitleViewWindow.CanMakePrimary ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_make_primary_title').GetValue, '(CFixedPoint)0' ) ))]" - onclick = "[TitleViewWindow.MakePrimary]" - tooltip = "TITLE_MAKE_PRIMARY_TOOLTIP" - - button_make_primary = { - parentanchor = center - alwaystransparent = yes - } - } - - button_round = { - name = "usurp_title" - visible = "[And( And( Not(Character.IsLocalPlayer), TitleViewWindow.ShowUsurp ), Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" - enabled = "[IsValidCommand( TitleViewWindow.GetUsurpTitle )]" - onclick = "[CreateCommandPopup( TitleViewWindow.GetUsurpTitle )]" - tooltip = "[TitleViewWindow.GetUsurpTitleButtonTooltip]" - - button_usurp_title = { - parentanchor = center - alwaystransparent = yes - } - } - } - } - } - - divider = { - layoutpolicy_horizontal = expanding - } - - vbox = { - name = "create_title" - visible = "[And( And( Not( Title.IsBarony ), And( Not( TitleViewWindow.GetTitle.HasHolder ), Not( Title.IsNobleFamilyTitle ) ) ), Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" - margin = { 0 25 } - spacing = 15 - - text_single = { - text = "TITLE_VIEW_NOT_CREATED" - using = Font_Size_Big - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - tooltip = "[TitleViewWindow.GetMinimumDeJureTooltip]" - - icon = { - name = "icon_yes" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - visible = "[TitleViewWindow.HasEnoughCounties]" - } - - icon = { - name = "icon_no" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - visible = "[Not(TitleViewWindow.HasEnoughCounties)]" - } - - text_single = { - text = "[TitleViewWindow.GetMinimumDeJureText]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" - tooltip = "[TitleViewWindow.GetMinimumGoldTooltip]" - icon = { - name = "icon_yes" - visible = "[TitleViewWindow.HasEnoughGold]" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - icon = { - name = "icon_no" - visible = "[Not(TitleViewWindow.HasEnoughGold)]" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - text_single = { - text = "[TitleViewWindow.GetMinimumGoldText]" - } - - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - tooltip = "[TitleViewWindow.GetMinimumPietyCostTooltip]" - visible = "[GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )]" - - text_single = { - text = "[TitleViewWindow.GetMinimumPietyText]" - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And( Not(GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )), Not( TitleViewWindow.HasTitlesOfTier ))]" - tooltip = "[TitleViewWindow.GetTitlesOfTierTooltip]" - - icon = { - name = "icon_yes" - visible = "[TitleViewWindow.HasTitlesOfTier]" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_check.dds" - } - - icon = { - name = "icon_no" - visible = "[Not( TitleViewWindow.HasTitlesOfTier )]" - size = { 25 25 } - texture = "gfx/interface/icons/symbols/icon_cross.dds" - } - - text_single = { - text = "[TitleViewWindow.GetTitlesOfTierText]" - } - - expand = {} - } - hbox = { - layoutpolicy_horizontal = expanding - visible = "[And( GreaterThan_int32( Title.GetTierFrame, '(int32)3' ), GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" - - text_single = { - text = "[TitleViewWindow.GetMinimumPietyLevelText]" - } - - expand = {} - } - } - - text_single = { - text = "[TitleViewWindow.GetGainText]" - } - - button_primary = { - enabled = "[IsValidCommand( TitleViewWindow.GetCreateTitle )]" - onclick = "[CreateCommandPopup( TitleViewWindow.GetCreateTitle )]" - tooltip = "[TitleViewWindow.GetCreateTitleButtonTooltip]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - expand = {} - - text_single = { - text = "TITLE_VIEW_CREATE_TITLE" - align = nobaseline - default_format = "#high" - } - - spacer = { - size = { 5 0 } - } - - icon = { - texture = "gfx/interface/icons/title_actions/create_title.dds" - size = { 25 25 } - alwaystransparent = yes - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 1 - } - } - - expand = {} - } - } - } - - vbox = { - name = "create_title_nomad" - visible = "[And( And( Not( Title.IsBarony ), Not( TitleViewWindow.GetTitle.HasHolder ) ), And( IsNomad( GetPlayer ), GreaterThan_int32( Title.GetTierFrame, GetPlayer.GetPrimaryTitle.GetTierFrame ) ) )]" - margin = { 0 25 } - spacing = 15 - - text_single = { - text = "TITLE_VIEW_NOT_CREATED" - using = Font_Size_Big - } - - button_primary = { - tooltip = "nomad_higher_tier_title_tooltip_desc" - datacontext = "[GetDecisionWithKey('nomad_higher_tier_title_decision')]" - onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - - expand = {} - - text_single = { - text = "TITLE_VIEW_CREATE_TITLE_NOMAD" - align = nobaseline - default_format = "#high" - } - - spacer = { - size = { 5 0 } - } - - icon = { - texture = "gfx/interface/icons/title_actions/create_title.dds" - size = { 25 25 } - alwaystransparent = yes - - modify_texture = { - texture = "gfx/interface/colors/gold.dds" - alpha = 1 - } - } - - expand = {} - } - } - } - - vbox_strength_info = { - visible = "[Title.IsMercenaryCompany]" - datacontext = "[Title.GetMercenaryCompany]" - - blockoverride "hired_troops_knights" { - text = "TITLE_VIEW_MERCENARY_NUMBER_OF_KNIGHTS" - } - - blockoverride "hired_troops_soldiers" { - text = "TITLE_VIEW_MERCENARY_NUMBER_OF_SOLDIERS" - } - - blockoverride "strength_values" { - value = "[CurrentAndMaxToProgressbarValueInt32( MercenaryCompany.GetCurrentSoldiers, MercenaryCompany.GetMaxSoldiers )]" - } - } - - vbox_strength_info = { - visible = "[Title.IsHolyOrder]" - datacontext = "[Title.GetHolyOrder]" - } - - expand = {} - - #### PORTRAITS ### - vbox = { - name = "succession_info" - visible = "[TitleViewWindow.GetTitle.HasHolder]" - layoutpolicy_vertical = preferred - layoutpolicy_horizontal = expanding - ignoreinvisible = yes - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - - vbox = { - layoutpolicy_vertical = expanding - datacontext = "[TitleViewWindow.GetTitle.GetHolder]" - margin_right = -12 - - text_label_center = { - text = "TITLE_VIEW_HOLDER" - layoutpolicy_horizontal = expanding - } - - expand = {} - - portrait_torso = {} - - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[Not( Title.HasFaction )]" - - - vbox = { - visible = "[Not(Title.IsHolyOrder)]" - layoutpolicy_horizontal = expanding - - text_label_center = { - text = "TITLE_VIEW_SUCCESSION" - layoutpolicy_horizontal = expanding - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_right = 20 - spacing = 10 - - text_multi = { - visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - size = { 0 100 } - raw_text = " [TitleViewWindow.GetSuccessionDescription]" - - icon = { - name = "has_laws" - size = { 25 25 } - texture = "gfx/interface/icons/title_status/icon_title_law.dds" - } - } - - text_multi = { - visible = "[Not(And( InDebugMode, TitleViewWindow.GetTitle.HasLaws))]" - text = "[TitleViewWindow.GetSuccessionDescription]" - layoutpolicy_horizontal = expanding - margin = { 5 5 } - size = { 0 80 } - } - - vbox = { - layoutpolicy_vertical = expanding - - button_round = { - name = "show_election_window" - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - visible = "[TitleViewWindow.GetTitle.HasSuccessionOrder('election')]" - size = { 60 60 } - tooltip = "TITLE_VIEW_SHOW_ELECTION_TT" - onclick = "[TitleViewWindow.OpenElection]" - - button_election_vote = { - alwaystransparent = yes - parentanchor = center - position = { 1 -1 } - size = { 40 40 } - } - } - expand = {} - } - } - - hbox = { - visible = "[Not( TitleViewWindow.ShowAppointment )]" - datamodel = "[TitleViewWindow.GetLineOfSuccession]" - item = { - portrait_head_small = {} - } - } - - hbox_admin_title_successor_candidates_list = { - visible = "[TitleViewWindow.ShowAppointment]" - datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" - - blockoverride "score_breakdown" { - datacontext = "[TitleViewWindow.GetSuccessionScoreBreakdown( Character.Self )]" - } - } - - hbox = { - visible = "[TitleViewWindow.ShowAppointment]" - margin_top = 8 - spacing = 22 - - button_standard = { - size = { 150 40 } - - text = "TITLE_VIEW_APPOINTMENT" - onclick = "[ToggleGameViewData( 'title_appointment', Title.GetID )]" - tooltip = "TITLE_VIEW_APPOINTMENT_TOOLTIP" - } - - # INVEST IN BEST LOCAL PLAYER CANDIDATE IF THEY EXIST - hbox = { - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" - datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)0' )]" - datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" - - visible = "[And( TitleViewWindow.ShowAppointment, AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) )]" - layoutpolicy_horizontal = expanding - - button_standard = { - visible = "[And( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown('influence_candidacy_interaction') )]" - enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" - size = { 180 40 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 4 } - - button_promote_candidate = { - alwaystransparent = yes - } - - text_single = { - text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON - align = nobaseline - default_format = "#clickable" - } - } - } - } - - # INVEST IN ANYONE (FALLBACK) - hbox = { - datacontext = "[TitleViewWindow.GetTitle]" - datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" - - visible = "[And( TitleViewWindow.ShowAppointment, Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) ) )]" - layoutpolicy_horizontal = expanding - - button_standard = { - visible = "[And( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown('influence_candidacy_interaction') )]" - enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" - onclick = "[Character.GetTopLiege.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" - size = { 180 40 } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 4 } - - button_promote_candidate = { - alwaystransparent = yes - } - - text_single = { - text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON - align = nobaseline - default_format = "#clickable" - } - } - } - } - - } - - expand = {} - } - - expand = {} - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - - -template title_view_window_side_pop_out -{ - position = { 0 80 } - - - state = { - name = _show - using = Animation_FadeIn_Standard - position_x = 630 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_x = 500 - } -} - -template Background_Area_Holding -{ - texture = "[GetIllustration( 'title_holding' ).GetTexture( Title.MakeScope )]" - alpha = 0.5 - fittype = centercrop - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - - using = Mask_Rough_Edges -} - -types Title -{ - type vbox_title_type_text = vbox { - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[StringIsEmpty(Title.GetSpecialDescription)]" - text = "TV_TIER_INFO" - } - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[Not(StringIsEmpty(Title.GetSpecialDescription))]" - text = "[Title.GetSpecialDescription]" - max_width = 390 - } - } - - # Requires Character & Title Datacontext - type hbox_title_shared_buttons = hbox { - ### GENERATE CLAIM ### - button_round = { - name = "toggle_generate_claim" - visible = "[And( And( GreaterThan_int32( Title.GetTierFrame, '(int32)3' ), Not( Title.HasLaws ) ), Character.IsPlayerInteractionValid( 'start_generate_claim_interaction' ) )]" - - enabled = "[Character.IsPlayerInteractionValid('start_generate_claim_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('start_generate_claim_interaction')]" - onclick = "[Character.OpenPlayerInteraction('start_generate_claim_interaction')]" - - button_generate_claim = { - parentanchor = center - alwaystransparent = yes - } - } - - ### FEUDALIZE HOLDING ### - button_round = { - visible = "[And( Character.IsLocalPlayer, Character.IsPlayerInteractionShownAndCanPickTitle('feudalize_holding_interaction', Title.Self) )]" - enabled = "[Character.IsPlayerInteractionWithTargetTitleValid('feudalize_holding_interaction', Title.Self)]" - tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip('feudalize_holding_interaction', Title.Self)]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('feudalize_holding_interaction', Title.Self)]" - - button_feudalize_holding = { - size = { 25 25 } - parentanchor = center - alwaystransparent = yes - } - } - - ### TRIBALIZE HOLDING ### - button_round = { - visible = "[And( Character.IsLocalPlayer, Character.IsPlayerInteractionShownAndCanPickTitle('tribalize_holding_interaction', Title.Self) )]" - enabled = "[Character.IsPlayerInteractionWithTargetTitleValid('tribalize_holding_interaction', Title.Self)]" - tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip('tribalize_holding_interaction', Title.Self)]" - oversound = "event:/SFX/UI/Generic/sfx_ui_generic_pointer_over" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_select" - onclick = "[Character.OpenPlayerInteractionWithTargetTitle('tribalize_holding_interaction', Title.Self)]" - - button_tribalize_holding = { - size = { 25 25 } - parentanchor = center - alwaystransparent = yes - } - } - - ### RAZE HOLDING ### - button_round = { - visible = "[And( And( ObjectsEqual( Title.GetHolder, GetPlayer ), Not(Title.IsLeasedOut) ), IsNomad( GetPlayer ) )]" - datacontext = "[Title.GetProvince]" - - onclick = "[CreateCommandPopup( Province.RazeHolding( GetPlayer ) )]" - enabled = "[IsValidCommand( Province.RazeHolding( GetPlayer ) )]" - tooltip = "[GetCommandDesc( Province.RazeHolding( GetPlayer ) )]" - - shortcut = "raze_selected_holding" - - button_icon = { - parentanchor = center - size = { 27 27 } - texture = "gfx/interface/icons/raid_intents/raze_intent.dds" - alwaystransparent = yes - } - } - } - - type vbox_domicile_button = vbox - { - datacontext = "[Character.GetDomicile]" - - margin = { 10 0 } - - layoutpolicy_horizontal = expanding - - background = { - fittype = centercrop - alpha = 0.7 - texture = "[Domicile.GetType.GetIllustration]" - margin = { -10 0 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - button_standard_clean = { - layoutpolicy_horizontal = expanding - size = { 0 80 } - - onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" - - background = { - using = Background_Button_Illustration - visible = "[IsGameViewOpen( 'domicile' )]" - } - - using = Background_Vignette_Button - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 0 - margin = { 10 0 } - - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - name = "domicile_header" - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - margin_left = 15 - margin_right = 25 - margin_top = 0 - margin_bottom = 5 - - texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" - spriteType = Corneredtiled - spriteborder = { 40 8 } - texture_density = 2 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - text_single = { - text = "[Domicile.GetMainLevelText]" - } - - expand = {} - } - } - - hbox = { - name = "domicile_construction_info" - - layoutpolicy_horizontal = expanding - - minimumsize = { 0 40 } - - vbox = { - tooltip = "[Domicile.GetBuildingUnderConstruction.GetConstructionTooltip( Character.Self )]" - using = tooltip_ne - - hbox = { - text_single = { - text = "[Domicile.GetConstructionStatusText]" - align = nobaseline - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - progressbar_standard = { - name = "building_progressbar" - visible = "[Domicile.IsConstructing]" - alwaystransparent = yes - - layoutpolicy_horizontal = expanding - maximumsize = { -1 15 } - value = "[Multiply_float( FixedPointToFloat( Domicile.GetConstructionProgress ), '(float)100' )]" - direction = horizontal - } - - expand = {} - } - } - - text_single = { - margin_right = 52 - visible = "[Domicile.CanUpgradeMain]" - text = "[Domicile.GetUpgradeMainText]" - default_format = "#P" - } - - expand = {} - } - } - - widget_access_domicile_button = { - visible = "[And( Character.HasDomicile, ObjectsEqual( Character.Self, GetPlayer ) )]" - } - - widget = { - size = { 12 0 } - } - - expand = {} - } - } - } -} diff --git a/N3OW/gui/window_title_add_law.gui b/N3OW/gui/window_title_add_law.gui deleted file mode 100644 index 4d9c52c0..00000000 --- a/N3OW/gui/window_title_add_law.gui +++ /dev/null @@ -1,247 +0,0 @@ -###################################################### -################## TITLE LAW WINDOW #################### -###################################################### - -window = { - name = "title_add_law_window" - parentanchor = bottom - position = { 590 -100 } # X Position is taken from the template title_view_window_side_pop_out - size = { 680 70% } - layer = middle - using = Window_Decoration - using = Window_Background - using = title_view_window_side_pop_out - - vbox = { - using = Window_Margins - restrictparent_min = yes - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TITLE_VIEW_TITLE_ADD_LAW_LABEL" - } - - blockoverride "button_close" - { - onclick = "[TitleAddLawWindow.Close]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - spacing = 15 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 15 } - - hbox = { - name = "title_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - datacontext = "[TitleAddLawWindow.GetTitle]" - - text_multi = { - text = "TITLE_VIEW_TITLE_ADD_LAW_INFO" - align = top|left - autoresize = yes - max_width = 250 - default_format = "#weak" - - text_occluder = { - size = { 85 110 } - position = { 0 -15 } - coa_title_medium_crown = { - size = { 100% 100% } - } - } - } - } - - vbox = { - margin = { 10 10 } - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_center = { - autoresize = yes - max_width = 245 - text = "TITLE_VIEW_TITLE_ADD_LAW_POSSIBLE_LAWS" - } - - spacer = { - size = { 5 5 } - } - - scrollarea = { - name = "laws" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 250 350 } - - scrollbarpolicy_vertical = as_needed - scrollbarpolicy_horizontal = always_off - - scrollbar_vertical = { - using = Scrollbar_Vertical - } - - scrollwidget = { - fixedgridbox = { - name = "laws_grid" - addcolumn = 250 - addrow = 48 - datamodel = "[TitleAddLawWindow.GetLawItems]" - - item = { - button_standard_list = { - name = "law_item" - datacontext = "[LawItem.GetLaw]" - - size = { 250 45 } - - gfxtype = togglepushbuttongfx - - down = "[LawItem.IsSelected]" - - button_normal = { - size = { 100% 100% } - onclick = "[PdxGuiTriggerAllAnimations('law_info_refresh')]" - visible = "[Not(LawItem.IsSelected)]" - - state = { - name = _mouse_click - delay = 0.15 - on_finish = "[LawItem.OnClick]" - } - } - - hbox = { - margin = { 10 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Law.GetNameNoTooltip]" - align = left|nobaseline - default_format = "#clickable" - autoresize = no - } - - text_single = { - align = nobaseline - size = { 80 40 } - text = "[Law.GetEnactCostForPlayer]" - tooltip = "[Law.GetEnactBreakdownForPlayer]" - margin = { 0 5 } - } - } - } - } - } - } - } - } - } - - vbox = { - name = "law_info" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - min_width = 380 - margin = { 15 15 } - spacing = 10 - datacontext = "[TitleAddLawWindow.GetSelectedLaw]" - - background = { - using = Background_Area - } - - background = { - texture = "gfx/interface/illustrations/council/bg_council_chancellor.dds" - alpha = 0.5 - fittype = end - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - mirror = vertical - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - state = { - name = "law_info_refresh" - alpha = 0 - duration = 0.15 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.15 - using = Animation_Curve_Default - } - - text_label_center = { - text = "[Law.GetNameNoTooltip]" - size = { 400 30 } - } - - text_label_center = { - text = "[Law.GetSubName]" - visible = "[Law.HasSubName]" - default_format = "#low" - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - text = "[Law.GetEffectDescription]" - } - - text_multi = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - text = "[Law.GetTitleEnactEffectDescriptionForPlayer( TitleAddLawWindow.GetTitle )]" - } - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - margin_bottom = 10 - spacing = 5 - - text_single = { - text = "[TitleAddLawWindow.GetSelectedLaw.GetEnactCostForPlayer]" - tooltip = "[TitleAddLawWindow.GetSelectedLaw.GetEnactBreakdownForPlayer]" - autoresize = yes - minimumsize = { 0 30 } - } - - button_primary_big = { - name = "add_law_button" - text = "TITLE_VIEW_TITLE_ADD_LAW_CONFIRM" - tooltip = "[TitleAddLawWindow.GetSelectTooltip]" - enabled = "[TitleAddLawWindow.CanSelect]" - onclick = "[TitleAddLawWindow.Select]" - } - } - } -} diff --git a/N3OW/gui/window_title_appointment.gui b/N3OW/gui/window_title_appointment.gui deleted file mode 100644 index 4243fcb3..00000000 --- a/N3OW/gui/window_title_appointment.gui +++ /dev/null @@ -1,494 +0,0 @@ -window = { - name = "title_appointment" - movable = no - allow_outside = yes - layer = windows_layer - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - } - - vbox = { - layoutpolicy_horizontal = expanding - using = Window_Margins_Sidebar - datacontext = "[SuccessionAppointmentWindow.GetTitle]" - - hbox = { - layoutpolicy_horizontal = expanding - margin_bottom = 10 - margin_left = 15 - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - coa_title_big_crown = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin_top = 20 - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Title.GetHolder.GetTopLiege.GetPrimaryTitle.GetName|U]" - default_format = "#weak" - max_width = 350 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_APPOINTMENT_HEADER" - max_width = 350 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "TITLE_APPOINTMENT_CURRENT_HOLDER" - max_width = 350 - } - - text_single = { - visible = "[SuccessionAppointmentWindow.HasMeritPoolData]" - layoutpolicy_horizontal = expanding - - text = "[SuccessionAppointmentWindow.GetMeritPoolDescription]" - } - - expand = {} - } - - vbox = { - layoutpolicy_vertical = expanding - - buttons_window_control = { - blockoverride "button_close" - { - onclick = "[SuccessionAppointmentWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - - blockoverride "button_me" - { - onclick = "[DefaultOnCharacterClick( GetPlayer.GetID )]" - } - } - - expand = {} - } - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - datacontext = "[SuccessionAppointmentWindow.GetMeritPool]" - layoutpolicy_horizontal = expanding - - ### SUCCESSION LAW ### - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "TITLE_APPOINTMENT_LAW" - max_width = 550 - } - - ### MERIT REALM INFO ### - text_single = { - visible = "[SuccessionAppointmentWindow.HasMeritPoolData]" - max_width = 550 - - layoutpolicy_horizontal = expanding - - text = "TITLE_APPOINTMENT_MERIT_CANDIDATE_DESC" - align = nobaseline - } - - text_single = { - visible = "[SuccessionAppointmentWindow.HasMeritPoolData]" - max_width = 550 - - layoutpolicy_horizontal = expanding - - text = "TITLE_APPOINTMENT_MERIT_CANDIDATE_RANK" - align = nobaseline - } - } - } - - expand = {} - } - - vbox_character_list = { - datacontext = "[SuccessionAppointmentWindow.GetCandidateWindow]" - datacontext = "[SuccessionAppointmentWindow.GetCandidateCharacterList]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "skill_sort_buttons" {} - - blockoverride "container_implementation" { - fixedgridbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - addcolumn = 560 - addrow = 125 - - item = { - widget_succession_candidate_item = { - datacontext = "[CharacterListItem.GetCharacter]" - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[SuccessionAppointmentWindow.GetCandidateWindow]" - datacontext = "[SuccessionAppointmentWindow.GetCandidateCharacterList]" - position = { 600 50 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_house_filter')]" - } - } - } - } - } -} - -types TitleAppointment -{ - type widget_succession_candidate_banner = widget - { - size = { 85 32 } - - background = { - texture = "gfx/interface/window_theme_administration/rating_banner.dds" - } - - tooltip = "TITLE_APPOINTMENT_RANK_TOOLTIP" - - text_single = { - parentanchor = center - position = { 0 -1 } - max_width = 250 - - block "banner_text" - { - text = "TITLE_APPOINTMENT_RANK" - } - default_format = "#light_background" - using = Font_Size_Tiny - align = nobaseline - } - } - - type widget_succession_candidate_banner_small = widget - { - size = { 60 24 } - - highlight_icon = { - size = { 60 24 } - - block "background_texture" - { - texture = "gfx/interface/window_theme_administration/rating_banner.dds" - } - } - - text_single = { - parentanchor = center - position = { 0 -1 } - max_width = 250 - - block "default_format" { - default_format = "#light_background" - } - using = Font_Size_Tiny - align = nobaseline - - block "banner_text" - { - text = "TITLE_APPOINTMENT_RANK_SMALL" - } - } - } - - type widget_succession_candidate_item = widget - { - size = { 560 122 } - - allow_outside = yes - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - background = { - visible = "[Not( SuccessionAppointmentWindow.IsTopCandidate( CharacterListItem.Self ) )]" - - using = Background_Frame - } - - background = { - visible = "[SuccessionAppointmentWindow.IsTopCandidate( CharacterListItem.Self )]" - - using = Background_Frame_Gold - } - - hbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - vbox = { - margin_left = 5 - allow_outside = yes - - widget = { - size = { 85 122 } - - portrait_head_small = { - allow_outside = yes - parentanchor = hcenter - position = { 0 2} - } - - widget_succession_candidate_banner = { - parentanchor = bottom|hcenter - position = { 0 -3 } - } - } - } - - vbox = { - margin_right = 10 - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 5 5 } - layoutpolicy_horizontal = expanding - - background = { - margin_right = 8 - margin_left = 6 - using = Background_Area_Dark - } - - ### NAME ### - text_single = { - max_width = 344 - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip|U]" - align = nobaseline - using = Font_Size_Medium - } - - expand = {} - - ### GOVERNOR EFFICIENCY ### - hbox = { - tooltip = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_TT" - using = tooltip_ne - - icon = { - name = "char_governor_efficiency_icon" - size = { 32 32 } - texture = "gfx/interface/icons/icon_skill_governor_efficiency.dds" - } - - text_single = { - name = "char_governor_efficiency_value" - text = "ADMIN_WINDOW_THEME_GOVERNOR_EFFICIENCY_VALUE" - align = nobaseline - } - } - } - - hbox = { - datacontext = "[Character.GetHouse]" - layoutpolicy_horizontal = expanding - - margin_bottom = 5 - - vbox = { - layoutpolicy_vertical = expanding - - ### RELATION TO YOU ### - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetRelationToString( GetPlayer )]" - align = nobaseline - default_format = "#low" - max_width = 390 - margin_left = 5 - - tooltip = "[Character.GetRelationToString( GetPlayer )]" - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - ### MERIT ### - hbox_merit_with_label = { - datacontext = "[AppointmentCandidateCharacterList.GetMeritItem( CharacterListItem.GetIndex )]" - - blockoverride "hbox_merit_with_label_background" {} - } - - ### CANDIDATE SCORE ### - text_single = { - text = "TITLE_APPOINTMENT_SCORE" - align = nobaseline - } - - ### INTERACTIONS ### - button_round = { - name = "support_candidacy" - visible = "[Character.IsPlayerInteractionShown('influence_candidacy_interaction')]" - size = { 32 32 } - - onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_candidacy_interaction', Title.Self )]" - enabled = "[Character.IsPlayerInteractionValid( 'influence_candidacy_interaction' )]" - - tooltip = "[Character.GetPlayerInteractionTooltip( 'influence_candidacy_interaction' )]" - - button_promote_candidate = { - parentanchor = center - size = { 24 24 } - alwaystransparent = yes - } - } - - expand = {} - } - } - - expand = {} - - ### House Coat of Arms - vbox = { - coa_house_small = { - powerful_family_bonus = { - parentanchor = bottom|right - position = { 5 1 } - - blockoverride "family_bonus_size" { - size = { 28 28 } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_title_claimants.gui b/N3OW/gui/window_title_claimants.gui deleted file mode 100644 index dad0e47b..00000000 --- a/N3OW/gui/window_title_claimants.gui +++ /dev/null @@ -1,195 +0,0 @@ -###################################################### -################# CLAIMANTS WINDOW ################### -###################################################### - -window = { - name = "claimants_window" - widgetanchor = top - size = { 580 90% } # X Position is taken from the template title_view_window_side_pop_out - resizable = no - layer = middle - - using = Window_Movable - using = title_view_window_side_pop_out - using = Window_Decoration - using = Window_Background - - # Sort dropdown - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TITLE_CLAIMANTS_HEADER" - } - - blockoverride "button_close" - { - onclick = "[ClaimantsWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" { - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 20 - margin_top = 5 - spacing = 5 - - text_single = { - text = "TITLE_SORT_BY" - align = nobaseline - } - - dropdown_menu_standard = - { - name = "sort_dropdown" - - blockoverride "dropdown_active_item_properties" - { - text = "[ClaimantSortOption.GetName]" - } - - blockoverride "dropdown_item_properties" - { - text = "[ClaimantSortOption.GetName]" - } - } - - expand = {} - } - } - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 470 - addrow = 160 - name = "claimants_scroll_area" - datamodel = "[ClaimantsWindow.GetClaimants]" - - item = { - widget = { - size = { 470 160 } - - vbox = { - datacontext = "[GuiClaimant.GetCharacter]" - - background = { - using = Background_Area_With_Header - } - - text_single = { - name = "holder_name" - layoutpolicy_horizontal = expanding - margin_left = 15 - margin_top = 3 - text = "[Character.GetUINameNotMeNoTooltip]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "unpressed" - visible = "[And(Not(GuiClaimant.IsPressed), Not(GuiClaimant.IsImplicit))]" - text = "WEAK_CLAIM" - } - - text_single = { - name = "pressed" - visible = "[And(GuiClaimant.IsPressed, Not(GuiClaimant.IsImplicit))]" - text = "STRONG_CLAIM" - } - - text_single = { - name = "implicit" - visible = "[GuiClaimant.IsImplicit]" - text = "IMPLICIT_CLAIM" - } - - icon = { - name = "not_threat" - visible = "[GuiClaimant.IsAlly]" - texture = "gfx/interface/icons/icon_retreat.dds" - size = { 30 30 } - tooltip = "CLAIMANT_NOT_A_THREAT" - using = tooltip_ne - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = -10 - margin_top = 10 - - strength_balance = { - name = "strength_balance" - datacontext = "[GuiClaimant.GetMilitaryStrengthInfo]" - using = tooltip_ne - } - - expand = {} - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 0 -1 } - margin_right = 10 - - visible = "[Character.HasDynasty]" - - coa_house_small = { - datacontext = "[Character.GetHouse]" - } - - text_multi = { - name = "type" - text = "[Character.GetHouse.GetNameNoTooltip]" - layoutpolicy_horizontal = expanding - align = top|hcenter - minimumsize = { 100 0 } - } - } - } - } - } - } - } - } - - blockoverride "character_count" {} - - #this window cannot be openend if there are no claimants - blockoverride "scrollbox_empty_visibility" {} - } - } - } -} diff --git a/N3OW/gui/window_title_customization.gui b/N3OW/gui/window_title_customization.gui deleted file mode 100644 index a77e37cb..00000000 --- a/N3OW/gui/window_title_customization.gui +++ /dev/null @@ -1,214 +0,0 @@ -window = { - name = "title_customization_window" - size = { 100% 100% } - movable = no - layer = middle - - using = Window_Background_No_Edge - - state = { - name = _show - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = CoatOfArmsDesignerAnimationResetState - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - } - - vbox = { - margin_top = 10 - - header_standard = { - datacontext = "[TitleCustomizationWindow.GetTitle]" - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "CUSTOMIZE_TITLE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TitleCustomizationWindow.Close]" - } - } - - background = { - using = Background_Area_Dark - margin_top = 7 - alpha = 0.3 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_inverse.dds" - blend_mode = alphamultiply - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 20 0 } - margin_bottom = 15 - spacing = 10 - - background = { - texture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" - fittype = centercrop - alpha = 0.35 - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick_vertical.dds" - blend_mode = alphamultiply - } - } - - hbox = { - name = "content" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - margin_top = 20 - margin_bottom = 25 - - vbox = { - name = "details_input" - - layoutpolicy_vertical = expanding - minimumsize = { 470 -1 } - spacing = 15 - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 3 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "CUSTOMIZATION_NAMING_HEADER" - using = Font_Size_Medium - } - } - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "TITLE_NAME_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[TitleCustomizationWindow.GetTitleNameText]" - focus_on_visible = yes - ontextedited = "[TitleCustomizationWindow.OnEditTitleNameText]" - } - } - - button_checkbox_label = { - name = "definite_form" - layoutpolicy_horizontal = expanding - - tooltip = "TITLE_CUSTOMIZATION_DEFINITE_FORM_TOOLTIP" - onclick = "[TitleCustomizationWindow.ToggleUsesDefiniteForm]" - - blockoverride "text" - { - text = "TITLE_CUSTOMIZATION_DEFINITE_FORM" - } - blockoverride "checkbox" - { - checked = "[TitleCustomizationWindow.UsesDefiniteForm]" - } - } - - - editbox_standard_with_label = { - layoutpolicy_horizontal = expanding - - blockoverride "editbox_label" - { - text = "TITLE_ADJECTIVE_FIELD" - } - - blockoverride "editbox_properties" - { - text = "[TitleCustomizationWindow.GetAdjectiveText]" - ontextedited = "[TitleCustomizationWindow.OnEditAdjectiveText]" - } - } - } - - vbox = { - visible = "[TitleCustomizationWindow.ShowMapColorPicker]" - layoutpolicy_horizontal = expanding - - spacing = 10 - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 3 - - text_label_left = { - layoutpolicy_horizontal = expanding - text = "MAP_COLOR_HEADER" - using = Font_Size_Medium - } - } - - colorpicker_simple = { - layoutpolicy_horizontal = expanding - color = "[TitleCustomizationWindow.GetMapColor]" - oncoloredited = "[TitleCustomizationWindow.SetMapColor]" - } - } - - expand = {} - } - - divider_light = { - layoutpolicy_vertical = expanding - } - - vbox_coa_designer = { - datacontext = "[TitleCustomizationWindow.GetCoatOfArmsDesigner]" - datacontext = "[TitleCustomizationWindow.GetTitle.GetHolder]" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - layoutpolicy_horizontal = expanding - using = Background_Area - margin = { 20 20 } - } - - button_primary = { - name = "finish_button" - text = "FINISH" - enabled = "[TitleCustomizationWindow.CanClickFinish]" - tooltip = "[TitleCustomizationWindow.GetCanClickFinishText]" - onclick = "[TitleCustomizationWindow.OnClickFinish]" - } - } - } - } -} diff --git a/N3OW/gui/window_title_election.gui b/N3OW/gui/window_title_election.gui deleted file mode 100644 index 15af005f..00000000 --- a/N3OW/gui/window_title_election.gui +++ /dev/null @@ -1,1204 +0,0 @@ - -###################################################### -################# ELECTION WINDOW #################### -###################################################### -window = { - name = "title_election" - movable = no - allow_outside = yes - layer = windows_layer - - using = Window_Size_Sidebar - using = Window_Background_Sidebar - - state = { - name = _show - position = { 0 0 } - on_start = "[GetVariableSystem.Clear( 'display_allegiance' )]" - on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - } - - state = { - name = _hide - position_x = -60 - on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - - } - - state = { - name = hide - next = _hide - position_x = 0 - trigger_when = "[GetVariableSystem.Exists( 'county_view_open' )]" - } - - vbox = { - datacontext = "[SuccessionElectionWindow.GetTitle.GetPlayerNominee]" - datacontext = "[SuccessionElectionWindow.GetTitle]" - using = Window_Margins_Sidebar - - spacing = 10 - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - ### Header - widget = { - minimumsize = { 0 140 } - - hbox = { - name = "header_area" - minimumsize = { 0 130 } - margin = { 10 10 } - - - coa_title_medium_crown = { - datacontext = "[SuccessionElectionWindow.GetTitle]" - tooltip = "[Title.GetCOADeJureTooltip]" - } - - background = { - using = Background_Window_Header - } - - background = { - using = Background_Window_Header_Pattern - } - - vbox = { - margin = { 10 5 } - layoutpolicy_horizontal = expanding - spacing = 5 - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "[SuccessionElectionWindow.GetTitle.GetNameNoTooltip|U]" - align = left - default_format = "#low" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_ELECTION_WINDOW_TITLE" - align = left - default_format = "#high" - using = Font_Size_Big - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_ELECTION_WINDOW_LAW" - align = left - default_format = "#low" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_ELECTION_WINDOW_RULES_ELECTORS" - tooltip = "[SuccessionElectionWindow.GetElectorsGroupingTooltip]" - align = left - default_format = "#low" - } - - text_single = { - layoutpolicy_horizontal = expanding - align = left - text = "SUCCESSION_ELECTION_WINDOW_RULES_CANDIDATES" - tooltip = "[SuccessionElectionWindow.GetCandidatesGroupingTooltip]" - default_format = "#low" - } - } - } - } - - buttons_window_control = { - parentanchor = top|right - - blockoverride "button_close" { - onclick = "[SuccessionElectionWindow.Close]" - } - - blockoverride "button_back" - { - visible = "[HasViewHistory]" - onclick = "[OpenFromViewHistory]" - tooltip = "[GetViewHistoryTooltip]" - } - } - } - - ### No Candidate is chosen - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_top = 20 - maximumsize = { 0 120 } - visible = "[And( Not( Character.IsValid ), Title.IsPlayerElector )]" - - spacing = 5 - - text_label_center = { - text = "ELECTION_NO_CANDIDATE" - default_format = "#low" - } - - expand = {} - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_SELECT_CANDIDATE_INFO" - default_format = "#I" - } - - hbox = { - tooltip = "[SuccessionElectionWindow.GetElectorVoteStrengthBreakdown( GetPlayer )]" - spacing = 5 - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_MY_VOTING_STRENGTH" - max_width = 180 - default_format = "#low" - } - - vote_strength_icon = {} - - text_single = { - text = "[SuccessionElectionWindow.GetVoteStrength( GetPlayer )|V]" - max_width = 30 - default_format = "#low" - using = Font_Size_Medium - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( Or( Character.IsValid, Title.IsPlayerElector ) )]" - margin_top = 20 - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_NOT_ELECTOR" - default_format = "#warning" - } - } - - ### My Candidate - hbox = { - name = "my_candidate" - datacontext = "[SuccessionElectionWindow.GetCandidateFromCharacter( Character.Self )]" - visible = "[Character.IsValid]" - layoutpolicy_horizontal = expanding - margin = { 70 0 } - margin_top = 20 - - state = { - name = _show - - duration = 0.2 - - animation = { - size = { 0 500 } - bezier = { 0 0.5 0.5 1 } - } - - animation = { - alpha = 1 - bezier = { 0.5 0 1 0.5 } - } - } - - state = { - name = _hide - size = { 0 0 } - alpha = 0 - } - - state = { - name = "add_candidate" - alpha = 0 - duration = 0.2 - next = "b" - using = Animation_Curve_Default - } - - state = { - name = "b" - alpha = 1 - duration = 0.2 - using = Animation_Curve_Default - } - - vbox = { - layoutpolicy_vertical = expanding - - vbox = { - spacing = 5 - - text_label_center = { - layoutpolicy_horizontal = expanding - text = "SUCCESSION_ELECTION_WINDOW_MY_CANDIDATE" - } - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_MY_CANDIDATE_INFO" - default_format = "#high" - using = Font_Size_Big - } - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_MY_CANDIDATE_STANCE" - } - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_MY_CANDIDATE_NOT_MY_DYNASTY" - visible = "[Not( ObjectsEqual( Character.GetDynasty, GetPlayer.GetDynasty ) )]" - } - - expand = { - minimumsize = { 0 10 } - } - - hbox = { - spacing = 20 - margin_top = 10 - - text_single = { - datacontext = "[SuccessionElectionWindow.GetCandidateFromCharacter( Character.Self )]" - text = "SUCCESSION_ELECTION_WINDOW_CANDIDATE_RANK" - using = Font_Size_Medium - } - - hbox = { - spacing = 4 - tooltip = "SUCCESSION_ELECTION_WINDOW_CANDIDATE_SCORE" - - vote_amount_icon = {} - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetScore|V]" - using = Font_Size_Medium - } - } - } - - hbox = { - tooltip = "[SuccessionElectionWindow.GetElectorVoteStrengthBreakdown( GetPlayer )]" - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_MY_VOTING_STRENGTH" - max_width = 180 - default_format = "#low" - } - - vote_strength_icon = {} - - text_single = { - text = "[SuccessionElectionWindow.GetVoteStrength( GetPlayer )|V]" - max_width = 30 - default_format = "#low" - using = Font_Size_Medium - } - } - } - } - - portrait_torso = { - state = { - name = "on_player_election_nomination" - next = "nomination_shown" - alpha = 0.5 - } - - state = { - name = "nomination_shown" - alpha = 1 - duration = 0.5 - using = Animation_Curve_Default - } - - blockoverride "opinion_box" {} - blockoverride "status_icons" {} - } - } - - ## Candidates list - hbox = { - layoutpolicy_horizontal = expanding - - button_tab = { - name = "show_candidate_button" - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Toggle('election_view_candidates')]" - down = "[Not(GetVariableSystem.Exists('election_view_candidates'))]" - - hbox = { - text_single = { - align = center - text = "SUCCESSION_ELECTION_WINDOW_CANDIDATES" - default_format = "#low" - } - } - } - - button_tab = { - name = "show_electors_button" - layoutpolicy_horizontal = expanding - onclick = "[GetVariableSystem.Toggle('election_view_candidates')]" - down = "[GetVariableSystem.Exists('election_view_candidates')]" - - hbox = { - text_single = { - align = center - text = "SUCCESSION_ELECTION_WINDOW_ELECTORS" - default_format = "#low" - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 5 - spacing = 10 - visible = "[Not(GetVariableSystem.Exists('election_view_candidates'))]" - datacontext = "[SuccessionElectionWindow.GetCandidates]" - - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - } - - scrollbox = { - name = "candiates_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - name = "candidates" - - fixedgridbox = { - datamodel = "[CharacterSelectionList.GetList]" - datacontext = "[SuccessionElectionWindow.GetTitle]" - addcolumn = 580 - addrow = 170 - setitemsizefromcell = yes - datamodel_reuse_widgets = yes - - item = { - widget = { - size = { 0 160 } - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[SuccessionElectionWindow.GetCandidateFromCharacter( Character.Self )]" - - vbox = { - name = "candidate" - margin_top = 5 - - background = { - using = Background_Area - margin_left = 10 - } - - background = { - visible = "[EqualTo_int32( SuccessionElectionWindowCandidate.GetElectionRank, '(int32)1' )]" - spriteType = Corneredstretched - spriteborder = { 15 15 } - using = Color_Blue - alpha = 0.6 - texture = "gfx/interface/component_masks/mask_frame.dds" - - margin = { 0 4 } - margin_left = 10 - - modify_texture = { - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - } - - modify_texture = { - mirror = vertical - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - - background = { - visible = "[EqualTo_int32( SuccessionElectionWindowCandidate.GetElectionRank, '(int32)1' )]" - spriteType = Corneredtiled - using = Color_Blue - alpha = 0.6 - texture = "gfx/interface/skinned/mask_pattern.dds" - texture_density = 3 - - margin = { 0 4 } - margin_left = 10 - margin_right = 50 - - modify_texture = { - blend_mode = alphamultiply - alpha = 0.9 - mirror = horizontal - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - } - - modify_texture = { - spriteType = Corneredtiled - spriteborder = { 15 15 } - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_texture_01.dds" - } - - modify_texture = { - mirror = vertical - blend_mode = alphamultiply - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - } - } - portrait_shoulders = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_left = 5 - spacing = 5 - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - - background = { - using = Background_Area - margin = { 0 5 } - margin_left = 10 - } - - container = { - visible = "[NotEqualTo_uint32( SuccessionElectionWindowCandidate.GetScore, '(uint32)0' )]" - #visible = "[EqualTo_int32( SuccessionElectionWindowCandidate.GetElectionRank, '(int32)0' )]" - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetElectionRank|V]" - default_format = "#bold" - using = Font_Size_Big - visible = "[EqualTo_int32( SuccessionElectionWindowCandidate.GetElectionRank, '(int32)1' )]" - align = top - } - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetElectionRank|V]" - default_format = "#bold" - visible = "[NotEqualTo_int32( SuccessionElectionWindowCandidate.GetElectionRank, '(int32)1' )]" - margin_bottom = 2 - } - } - - - - text_single = { - text = "[Character.GetUINameNotMeNoTooltip]" - layoutpolicy_horizontal = expanding - autoresize = no - default_format = "#low" - } - - #### SKILLS - hbox_skills_grid = { - margin_right = 20 - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - using = character_age_or_death_text - spacing = 2 - } - - text_single = { - name = "character_relation_to_you" - text = "[Character.GetRelationToString( GetPlayer )|E]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - max_width = 380 - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - layoutpolicy_horizontal = expanding - } - - text_single = { - raw_text = "#D Relevance: [SuccessionElectionWindowCandidate.GetRelevance]#!" - visible = "[InDebugMode]" - - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[SuccessionElectionWindow.GetRelevanceBreakdown( Character.Self )]" - } - } - } - - expand = {} - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - margin_left = 10 - margin_right = 20 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 5 5 } - - background = { - using = Background_Area_Dark - margin = { 3 3 } - alpha = 0.5 - } - - ### Vote button - widget = { - size = { 80 60 } - - button_round = { - visible = "[And( Title.IsPlayerElector, NotEqualTo_uint32( Title.GetPlayerNominee.GetID, Character.GetID ) )]" - size = { 60 60 } - parentanchor = center - - tooltip = NOMINATE_CANDIDATE_TOOLTIP - onclick = "[PdxGuiTriggerAllAnimations('add_candidate')]" - - state = { - name = _mouse_click - delay = 0.15 - on_finish = "[Title.OnPlayerNominatesSuccessor(Character.Self)]" - } - - button_election_vote = { - alwaystransparent = yes - parentanchor = center - position = { 1 -1 } - size = { 40 40 } - } - } - - text_multi = { - visible = "[EqualTo_uint32( Title.GetPlayerNominee.GetID, Character.GetID )]" - text = "SUCCESSION_ELECTION_WINDOW_MY_CANDIDATE" - parentanchor = center - align = center - default_format = "#low" - max_width = 80 - autoresize = yes - } - } - - # Dynasty - widget = { - layoutpolicy_vertical = expanding - size = { 45 40 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - parentanchor = center - scale = 0.7 - } - } - - # Traits - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 0 } - - fixedgridbox = { - name = "traits_grid_5" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - addcolumn = 30 - addrow = 28 - - block "gridbox_items" - { - datamodel_wrap = 5 - maxverticalslots = 2 - } - - item = { - icon_trait = { - visible = "[Trait.IsValid]" - - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - - expand = {} - } - - expand = {} - - divider_light = { - layoutpolicy_vertical = expanding - alpha = 0.5 - } - - hbox = { - margin = { 3 0 } - - hbox = { - visible = "[DataModelHasItems( SuccessionElectionWindowCandidate.GetElectors )]" - tooltip = "SUCCESSION_ELECTION_WINDOW_CANDIDATE_SCORE" - spacing = 2 - - vote_amount_icon = {} - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetScore|V]" - align = nobaseline - } - } - - hbox = { - visible = "[IsDataModelEmpty( SuccessionElectionWindowCandidate.GetElectors )]" - tooltip = "SUCCESSION_ELECTION_WINDOW_NO_ELECTORS" - spacing = 2 - alpha = 0.3 - - vote_amount_icon = {} - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetScore|V]" - } - } - } - - divider_light = { - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - layoutpolicy_vertical = expanding - alpha = 0.5 - } - - hbox = { - margin_left = 5 - - button_religion_icon = { - datacontext = "[Character.GetFaith]" - size = { 40 40 } - } - } - } - } - } - } - } - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_bottom = 5 - spacing = 10 - visible = "[GetVariableSystem.Exists('election_view_candidates')]" - - scrollbox = { - name = "electors_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" { - name = "electors" - - fixedgridbox = { - datacontext = "[SuccessionElectionWindow.GetElectors]" - datamodel = "[CharacterSelectionList.GetList]" - addcolumn = 580 - addrow = 150 - setitemsizefromcell = yes - datamodel_reuse_widgets = yes - - item = { - widget = { - vbox = { - datacontext = "[CharacterListItem.GetCharacter]" - datacontext = "[SuccessionElectionWindow.GetElectorFromCharacter( Character.Self )]" - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[Character.GetNameNoTooltip]" - align = nobaseline - max_width = 535 - } - - background = { - using = Background_Area - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head = {} - - portrait_head = { - datacontext = "[SuccessionElectionWindowElector.GetElectorCandidate.GetCandidate]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 10 - margin_bottom = -6 - - vbox = { - margin_left = 3 - - text_single = { - text = "SUCCESSION_ELECTION_WINDOW_CANDIDATE" - layoutpolicy_horizontal = expanding - align = left - } - - text_single = { - visible = "[SuccessionElectionWindowElector.GetElectorCandidate.GetCandidate.IsValid]" - text = "SUCCESSION_ELECTION_WINDOW_RANK" - layoutpolicy_horizontal = expanding - align = left - } - } - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[SuccessionElectionWindowElector.GetElectorCandidate.GetCandidate.IsValid]" - datacontext = "[SuccessionElectionWindow.GetCandidateFromCharacter( SuccessionElectionWindowElector.GetElectorCandidate.GetCandidate )]" - spacing = 4 - - tooltip = "SUCCESSION_ELECTION_WINDOW_CANDIDATE_SCORE" - - vote_amount_icon = {} - - text_single = { - text = "[SuccessionElectionWindowCandidate.GetScore|V]" - } - - expand = {} - } - } - - spacer = { - minimumsize = { 50 0 } - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - hbox = { - spacing = 15 - - hbox = { - spacing = 5 - tooltip = "[SuccessionElectionWindow.GetElectorVoteStrengthBreakdown(SuccessionElectionWindowElector.GetElector)]" - - vote_strength_icon = {} - - text_single = { - text = "[SuccessionElectionWindowElector.GetVoteStrength|V]" - align = nobaseline - } - } - - hbox = { - spacing = 5 - tooltipwidget = vote_reason_tooltip - - vote_chance_icon = {} - - text_single = { - text = "[SuccessionElectionWindowElector.GetScoreDiff|+]" - align = nobaseline - } - } - } - - button_standard = { - datacontext = "[SuccessionElectionWindowElector.GetElector]" - text = "SUCCESSION_ELECTION_WINDOW_FORCE_VOTE" - visible = "[And( Title.CanCharacterControlVote( Character.Self ), And( Title.IsPlayerElector, Character.IsPlayerInteractionShown( 'force_vote_in_succession_election_interaction' ) ) )]" - enabled = "[Character.IsPlayerInteractionValid('force_vote_in_succession_election_interaction')]" - tooltip = "[Character.GetPlayerInteractionTooltip('force_vote_in_succession_election_interaction')]" - onclick = "[Character.OpenPlayerInteraction('force_vote_in_succession_election_interaction')]" - } - } - } - } - } - } - } - } - } - } - } - } - - window_character_filter = { - datacontext = "[SuccessionElectionWindow.GetCandidates]" - position = { 600 50 } - - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('range_filter')]" - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - - datacontext = "[CharacterSelectionList.GetCategory('personal_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('adult_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('gender_filter')]" - } - - divider = { - layoutpolicy_horizontal = expanding - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('married_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('imprisoned_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('hook_filter')]" - } - } - } - - vbox_filter_group = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetCategory('membership_filter_category')]" - blockoverride "filters" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - - - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('dynasty_filter')]" - } - } - } - } - } -} - -###################################################### -################ TYPES AND TEMPLATES ################# -###################################################### - -types SuccessionWindowTypes -{ - type vote_strength_icon = icon_flat_standard - { - texture = "gfx/interface/icons/flat_icons/election_vote_strength.dds" - size = { 35 35 } - } - - type vote_chance_icon = icon_flat_standard - { - texture = "gfx/interface/icons/flat_icons/election_preference_over_my_candidate.dds" - size = { 35 35 } - } - - type vote_amount_icon = icon_flat_standard - { - texture = "gfx/interface/icons/flat_icons/election_window.dds" - size = { 40 40 } - } - - type vbox_strength_info = vbox { - name = "holy_order_strenght_info" - layoutpolicy_horizontal = expanding - spacing = 5 - margin = { 20 6 } - - background = { - using = Background_Area - } - - text_label_left = { - name = "strength" - layoutpolicy_horizontal = expanding - text = "HIRED_TROOPS_STRENGTH" - default_format = "#low" - } - - hbox = { - spacing = 50 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 3 - - text_single = { - name = "soldiers_count" - default_format = "#high" - using = Font_Size_Big - - block "hired_troops_soldiers" { - text = "TITLE_VIEW_HO_NUMBER_OF_SOLDIERS" - } - } - - progressbar_standard = { - name = "strength_bar" - size = { 145 25 } - - block "strength_values" { - value = "[CurrentAndMaxToProgressbarValueInt32( HolyOrder.GetCurrentSoldiers, HolyOrder.GetMaxSoldiers)]" - } - } - } - - text_single = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - name = "knights_count" - default_format = "#high" - using = Font_Size_Big - - block "hired_troops_knights" { - text = "TITLE_VIEW_HO_NUMBER_OF_KNIGHTS" - } - } - } - expand = { - size = { 1 40 } - } - } -} - -local_template vote_reason_tooltip -{ - container = { - alwaystransparent = no - - widget = { - name = "background" - using = Background_Tooltip - size = { 100% 100% } - alwaystransparent = no - } - - container = { - visible = "[And( Title.CanCharacterControlVote(Character.Self), SuccessionElectionWindow.GetTitle.GetPlayerNominee.IsValid )]" - - flowcontainer = { - visible = "[Not(Character.IsPlayer)]" - - direction = vertical - margin = { 10 10 } - ignoreinvisible = yes - - flowcontainer = { - direction = horizontal - ignoreinvisible = yes - - flowcontainer = { - margin = { 10 5 } - direction = vertical - - background = { - using = Background_Area - } - - text_multi = { - autoresize = yes - minimumsize = { 250 -1 } - maximumsize = { 250 -1 } - multiline = yes - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_NOMINEE_TT" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - autoresize = yes - minimumsize = { 250 -1 } - maximumsize = { 250 -1 } - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[SuccessionElectionWindow.GetVoteReasonBreakdown( SuccessionElectionWindow.GetElectorFromCharacter( Character.Self ).GetElectorCandidate.GetCandidate, Character.Self )]" - } - } - - widget = { - visible = "[Not( SuccessionElectionWindowElector.IsVoteForPlayer )]" - size = { 5 0 } - } - - flowcontainer = { - visible = "[Not( SuccessionElectionWindowElector.IsVoteForPlayer )]" - margin = { 10 5 } - direction = vertical - ignoreinvisible = yes - - background = { - using = Background_Area - } - - text_multi = { - autoresize = yes - minimumsize = { 250 -1 } - maximumsize = { 250 -1 } - multiline = yes - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_PLAYER_NOMINEE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - autoresize = yes - minimumsize = { 250 -1 } - maximumsize = { 250 -1 } - multiline = yes - fonttintcolor = "[TooltipInfo.GetTintColor]" - text = "[SuccessionElectionWindow.GetPlayerCandidateVoteReasonBreakdown( Character.Self )]" - } - } - } - - text_multi = { - margin = { 5 0 } - visible = "[SuccessionElectionWindow.CouldVoteForPlayerCandidateInstead( Character.Self )]" - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_PLAYER_NOMINEE_INFO" - autoresize = no - max_width = 520 - size = { 100% 50 } - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - text_multi = { - visible = "[Character.IsOtherPlayer]" - - margin = { 10 5 } - align = left|nobaseline - autoresize = yes - minimumsize = { 270 -1 } - maximumsize = { 270 -1 } - - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_IS_OTHER_PLAYER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_multi = { - visible = "[Character.IsLocalPlayer]" - - margin = { 10 5 } - align = left|nobaseline - autoresize = yes - minimumsize = { 270 -1 } - maximumsize = { 270 -1 } - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_IS_LOCAL_PLAYER" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - } - - text_multi = { - visible = "[Not( Title.CanCharacterControlVote( Character.Self ) )]" - - margin = { 10 5 } - align = left|nobaseline - autoresize = yes - minimumsize = { 270 -1 } - maximumsize = { 270 -1 } - text = "SUCCESSION_ELECTION_WINDOW_VOTE_BREAKDOWN_FORCED_VOTE" - fonttintcolor = "[TooltipInfo.GetTintColor]" - } - - text_single = { - visible = "[Not( SuccessionElectionWindow.GetTitle.GetPlayerNominee.IsValid )]" - margin = { 10 10 } - text = "SUCCESSION_ELECTION_WINDOW_NO_PLAYER_NOMINEE" - } - } -} diff --git a/N3OW/gui/window_title_history.gui b/N3OW/gui/window_title_history.gui deleted file mode 100644 index a3eeaf82..00000000 --- a/N3OW/gui/window_title_history.gui +++ /dev/null @@ -1,152 +0,0 @@ -###################################################### -################## HISTORY WINDOW #################### -###################################################### - -window = { - name = "title_history_window" - position = { 0 80 } # X Position is taken from the template title_view_window_side_pop_out - widgetanchor = top - size = { 580 90% } - layer = middle - - using = Window_Movable - using = title_view_window_side_pop_out - using = Window_Decoration - using = Window_Background - - vbox = { - using = Window_Margins - - hbox_title_history_heading = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "sort_buttons" {} - blockoverride "scrollbox_empty_visibility" {} - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 470 - addrow = 160 - name = "characters_grid" - - datamodel = "[TitleHistoryWindow.GetHistory]" - - item = { - widget_title_history_item = {} - } - } - } - - blockoverride "character_count" {} - } - } - } -} - -types TitleHistory -{ - type hbox_title_history_heading = hbox { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - allow_outside = yes - - widget = { - size = { 36 44 } - allow_outside = yes - - coa_title_tiny_crown = { - allow_outside = yes - datacontext = "[TitleHistoryWindow.GetTitle]" - } - } - - blockoverride "header_text" - { - datacontext = "[TitleHistoryWindow.GetTitle]" - text = "TITLE_VIEW_TITLE_HISTORY_LABEL" - } - - blockoverride "button_close" - { - onclick = "[TitleHistoryWindow.Close]" - } - } - } - - type widget_title_history_item = widget { - size = { 470 160 } - - vbox = { - datacontext = "[TitleHistory.GetCharacter]" - - background = { - using = Background_Area_With_Header - } - - text_single = { - name = "date" - layoutpolicy_horizontal = expanding - margin_left = 15 - margin_top = 3 - text = "[TitleHistory.GetDate.GetString]" - } - - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head = {} - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - text_multi = { - name = "holder_name" - layoutpolicy_horizontal = expanding - visible = "[Character.IsValid]" - text = "[Character.GetUINameNotMeNoTooltip]" - } - - ### APPOINTED / DESTROYED - text_single = { - name = "title_state" - layoutpolicy_horizontal = expanding - text = "[TitleHistory.GetTitleTransferName]" - } - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 0 -1 } - margin_right = 10 - - visible = "[Character.HasDynasty]" - - coa_house_small = { - datacontext = "[Character.GetHouse]" - } - - text_multi = { - name = "type" - text = "[Character.GetHouse.GetName]" - layoutpolicy_horizontal = expanding - align = top|hcenter - minimumsize = { 100 0 } - } - } - } - } - } -} diff --git a/N3OW/gui/window_travel_option_selection.gui b/N3OW/gui/window_travel_option_selection.gui deleted file mode 100644 index ac74e183..00000000 --- a/N3OW/gui/window_travel_option_selection.gui +++ /dev/null @@ -1,151 +0,0 @@ -window = { - name = "travel_option_selection_window" - datacontext = "[TravelOptionSelectionWindow.GetTravelPlanData]" - parentanchor = bottom|left - position = { 300 -20 } - size = { 400 520 } - movable = yes - layer = middle - - using = Window_Background_Subwindow - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { 520 -20 } - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - - position_x = 300 - } - - vbox = { - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TRAVEL_OPTIONS_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TravelOptionSelectionWindow.Close]" - } - } - - scrollbox = { - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - datamodel = "[TravelOptionSelectionWindow.GetShownOptions]" - - spacing = 4 - - item = { - travel_option_widget = { - blockoverride "background_button_overrides" - { - down = "[TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)]" - } - - blockoverride "overlay" - { - using = default_character_list_overlay - } - } - } - } - } - } - } -} - -types TravelOptions -{ - type travel_option_widget = widget - { - size = { 350 60 } - - button_standard_hover = { - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - size = { 100% 100%} - - enabled = "[TravelOptionSelectionWindow.CanSelect(TravelOption.Self)]" - onclick = "[TravelOptionSelectionWindow.OnClick(TravelOption.Self)]" - - tooltipwidget = "travel_option_tooltip" - - button_standard = { - size = { 50 50 } - position = { 5 5 } - alwaystransparent = yes - - icon_flat_standard = { - visible = "[TravelOption.IsValid]" - texture = "[TravelOption.GetIcon]" - parentanchor = center - size = { 40 40 } - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - parentanchor = left|top - position = { 62 6 } - - text = "[TravelOption.GetNameNoTooltip]" - default_format = "#clickable" - max_width = 260 - } - - text_single = { - text = "[TravelOption.GetCostString(TravelPlanData.Self)]" - parentanchor = left|bottom - position = { 0 -10} - - margin_left = 62 - - alwaystransparent = yes - - } - - text_single = { - visible = "[TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)]" - parentanchor = right - position = { 0 6 } - - text = "TRAVEL_OPTIONS_EQUIPPED" - default_format = "#weak" - align = left - max_width = 90 - - margin_right = 8 - - alwaystransparent = yes - - } - - block "overlay" {} - - block "background_button_overrides" {} - } - } -} diff --git a/N3OW/gui/window_travel_planner.gui b/N3OW/gui/window_travel_planner.gui deleted file mode 100644 index 7e52e81c..00000000 --- a/N3OW/gui/window_travel_planner.gui +++ /dev/null @@ -1,1412 +0,0 @@ -window = { - name = "travel_planner_window" - widgetid = "travel_planner_window" - size = { 100% 100% } - movable = no - layer = middle - - alwaystransparent = yes - - datacontext = "[GetVariableSystem]" - - # Either a TravelPlan or TravelPlanDraft is present at one time, not both - # - Use TravelPlanner.HasTravelPlanDraft to know which is present - # - Use TravelPlanData data context for shared info - datacontext = "[TravelPlanner.GetTravelPlan]" - datacontext = "[TravelPlanner.GetTravelPlanDraft]" - datacontext = "[TravelPlanner.GetTravelPlanData]" - - state = { - name = _show - - using = Animation_FadeIn_Standard - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - travel_planning_window = { - widgetid = "travel_planning_tutorial_uses_this_2" - - blockoverride "destination_text" { - text_single = { - visible = "[Not(TravelPlanData.GetActivity.IsValid)]" - align = nobaseline - text = "TRAVEL_PLAN_CURRENT_DESTINATION" - margin_left = 4 - } - - vbox = { - visible = "[TravelPlanData.GetActivity.IsValid]" - datacontext = "[TravelPlanData.GetActivity.GetType]" - - text_single = { - visible = "[TravelPlanData.GetActivity.GetType.IsSingleLocation]" - layoutpolicy_horizontal = expanding - - align = nobaseline - text = "TRAVEL_PLAN_CURRENT_DESTINATION" - margin_left = 4 - } - - text_multi = { - visible = "[Not(TravelPlanData.GetActivity.GetType.IsSingleLocation)]" - layoutpolicy_horizontal = expanding - - text = "[SelectLocalization( TravelPlanData.HasDeparted, 'TRAVEL_PLAN_NEXT_DESTINATION', 'TRAVEL_PLAN_FIRST_DESTINATION' )]" - align = nobaseline - min_width = 300 - margin_left = 4 - } - } - } - } - - widget = { - name = "bottom_right_area" - visible = "[And(Not( TravelPlanner.GetTravelPlan.IsValid ), TravelPlanner.IsLinked)]" - - allow_outside = yes - - parentanchor = bottom|right - position = { -392 -40 } - alwaystransparent = no - - state = { - name = _show - using = Animation_FadeIn_Standard - delay = 0.25 - position_y = -40 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_y = 200 - } - - travel_confirm_vbox = { - widgetanchor = bottom|left - layoutpolicy_vertical = expanding - } - } - - travel_entourage_list_window = { - visible_at_creation = no - visible = "[TravelPlanner.IsEntourageListWindowOpen]" - } - - error_horse = { - parentanchor = bottom|left - position = { 950 -10 } - visible = "[And( Not( IsPauseMenuShown ), Not(ReleaseMode) )]" - } -} - - -types TravelPlannerTypes -{ - type travel_confirm_vbox = vbox - { - datacontext = "[TravelPlanData.GetActivity]" - datacontext = "[Activity.GetType]" - - alwaystransparent = no - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - spacing = 8 - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 16 0 } - margin_bottom = 16 - margin_top = 8 - spacing = 8 - - text_single = { - visible = "[Activity.IsValid]" - text = "TRAVEL_PLANNER_INVITED_ACTIVITY_START" - max_width = 360 - } - - text_single = { - visible = "[TravelPlanData.HasNextDestination]" - text = "TRAVEL_PLANNER_INVITED_ACTIVITY_ESTIMATED_ARRIVAL" - max_width = 360 - } - - container = { - visible = "[TravelPlanData.HasNextDestination]" - - text_multi = { - visible = "[And( Activity.IsValid, IsDateAfter( TravelPlanData.GetNextDestination.GetEstimatedArrivalDate, Activity.GetActiveStartDate ) )]" - text = "TRAVEL_PLANNER_INVITED_WILL_NOT_ARRIVE_IN_TIME" - align = center - autoresize = yes - max_width = 360 - } - } - - vbox = { - visible = "[And( IsLandlessAdventurer( GetPlayer ), TravelPlanData.IsTravelWithDomicile )]" - - text_single = { - text = "[TravelPlanner.GetProvisionsCost]" - align = nobaseline - } - - tooltip = "[TravelPlanner.GetProvisionsCostBreakdown]" - using = tooltip_se - } - - cost_breakdown_vbox = { - name = "travel_cost" - datacontext = "[TravelPlanner.AccessCostBreakdown]" - visible = "[Not( TravelPlanData.IsTravelWithDomicile )]" - } - - container = { - visible = "[TravelPlanData.HasNextDestination]" - - button_primary = { - name = "progress_planning" - widgetid = "progress_planning" - text = "[TravelPlanner.GetStartTravelPlanText]" - onclick = "[TravelPlanner.StartTravelPlan]" - - enabled = "[Not( And( Activity.IsValid, IsDateAfter( TravelPlanData.GetNextDestination.GetEstimatedArrivalDate, Activity.GetActiveStartDate ) ) )]" - - size = { 360 40 } - } - } - - button_primary = { - name = "progress_planning" - text = "[TravelPlanner.GetStartTravelPlanText]" - onclick = "[TravelPlanner.StartTravelPlan]" - - visible = "[Not(TravelPlanData.HasNextDestination)]" - - size = { 360 40 } - } - } - } - - type icon_button_travel_option = widget - { - size = { 270 60 } - - tooltip = "TRAVEL_OPTION_TT" - - background = { - using = Background_Area - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - - button_standard = { - visible = "[Not(TravelPlanner.GetTravelPlan.IsValid)]" - parentanchor = left|vcenter - position = { 4 0 } - size = { 50 50 } - - enabled = "[Not( TravelPlanner.GetTravelPlan.IsValid )]" - onclick = "[TravelPlanner.OpenTravelOptionSelectionWindow]" - - icon_flat_standard = { - visible = "[TravelOption.IsValid]" - parentanchor = center - size = { 40 40 } - - texture = "[TravelOption.GetIcon]" - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - widget = { - visible = "[TravelPlanner.GetTravelPlan.IsValid]" - parentanchor = left|vcenter - size = { 56 56 } - - background = { - using = Background_Area - } - - icon_flat_standard = { - parentanchor = center - size = { 40 40 } - - texture = "[TravelOption.GetIcon]" - - blockoverride "master_color_frame" { - frame = 7 - } - } - } - - text_single = { - parentanchor = left|top - position = { 2 5 } - - text = "[TravelOption.GetNameNoTooltip]" - max_width = 230 - - margin_left = 60 - - alwaystransparent = yes - } - - text_single = { - parentanchor = left|bottom - position = { 2 -10 } - - text = "[TravelOption.GetCostString(TravelPlanData.Self)]" - - margin_left = 60 - alwaystransparent = yes - - } - - button = { - visible = "[And( TravelOption.IsValid, Not( TravelPlanner.GetTravelPlan.IsValid ) )]" - parentanchor = right|top - position = { -4 4 } - size = { 30 30 } - - onclick = "[TravelPlanData.RemoveTravelOption(TravelOption.Self)]" - - button_close = { - parentanchor = center - size = { 22 22 } - - alwaystransparent = yes - - tooltip = REMOVE_TRAVEL_OPTION - } - } - } - - type icon_button_empty_travel_option = widget - { - size = { 270 60 } - - button_standard = { - parentanchor = left|vcenter - position = { 4 0 } - size = { 50 50 } - - enabled = "[Not( TravelPlanner.GetTravelPlan.IsValid )]" - onclick = "[TravelPlanner.OpenTravelOptionSelectionWindow]" - - icon_flat_standard = { - parentanchor = center - size = { 30 30 } - texture = "gfx/interface/icons/flat_icons/plus.dds" - - blockoverride "master_color_frame" { - frame = 1 - } - } - } - - text_single = { - parentanchor = left|vcenter - position = { 2 -2 } - - text = "TRAVEL_OPTIONS_SELECT" - default_format = "#I" - max_width = 260 - alwaystransparent = yes - - margin_left = 60 - } - } - - type travel_leader_selection_widget = caravan_master_portrait_widget - { - blockoverride "filled_slot" - { - visible = "[Character.IsValid]" - - button_change = { - onclick = "[ShowCourtPositionAppointOrReplace( TravelPlanData.GetOwner.GetID, 'travel_leader_court_position' )]" - enabled = "[Not( TravelPlanner.GetTravelPlan.IsValid )]" - raw_tooltip = "COURT_POSITION_REPLACE" - tooltip = "CHANGE_CARAVAN_MASTER" - parentanchor = bottom|left - size = { 30 30 } - } - } - - blockoverride "empty_slot" - { - visible = "[Not( Character.IsValid )]" - enabled = "[Not( TravelPlanner.GetTravelPlan.IsValid )]" - onclick = "[ShowCourtPositionAppointOrReplace( TravelPlanData.GetOwner.GetID, 'travel_leader_court_position' )]" - } - } - - type travel_entourage_list_window = window - { - # Name used too find the window, don't change - name = "travel_entourage_list_window" - - size = { 700 900 } - parentanchor = center - - minimumsize = { 680 550 } - layer = middle - allow_outside = yes - - using = Window_Movable - using = Window_Size_CharacterList - using = Window_Background - using = Window_Decoration - - datacontext = "[TravelPlanner.GetEntourageList]" - - state = { - name = _show - using = Animation_FadeIn_Quick - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TRAVEL_ENTOURAGE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TravelPlanner.CloseEntourageListWindow]" - } - } - - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" { - fixedgridbox = { - addcolumn = 590 - addrow = 126 - - name = "characters_grid" - datamodel_reuse_widgets = yes - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - - item = { - widget_entourage_list_item = { - size = { 590 122 } - } - } - } - - text_single = { - visible = "[Not(CharacterSelectionList.HasItems)]" - layoutpolicy_vertical = expanding - name = "no_match" - text = "CHARACTER_FINDER_NO_MATCH" - } - } - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - margin_bottom = 15 - - button_primary = { - text = "CLOSE_LABEL" - onclick = "[TravelPlanner.CloseEntourageListWindow]" - } - } - } - - window_character_filter = { - blockoverride "addition_filter" { - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('ruler_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('religion_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('culture_filter')]" - } - filter_item = { - layoutpolicy_horizontal = expanding - datacontext = "[CharacterSelectionList.GetFilter('alive_filter')]" - } - } - } - } - - type travel_danger_summary_hbox = hbox - { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - text_single = { - layoutpolicy_horizontal = expanding - - text = "TRAVEL_DANGER_CRITICAL_HEADER" - max_width = 250 - align = left|nobaseline - - margin = { 4 4 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox = { - tooltip = "TRAVEL_PLAN_DANGER_HIGH" - - widget = { - size = { 30 30 } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/travel_danger_types/generic_icon.dds" - } - - icon = { - parentanchor = center - size = { 32 32 } - texture = "gfx/interface/icons/travel_danger_types/dangerous_glow.dds" - alpha = 0.7 - } - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/travel_danger_types/generic_icon.dds" - } - } - - text_single = { - text = "[TravelPlanner.GetVeryLikelyDangers]" - margin_right = 8 - } - } - - hbox = { - tooltip = "TRAVEL_PLAN_DANGER_MEDIUM" - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/travel_danger_types/generic_icon.dds" - } - - text_single = { - text = "[TravelPlanner.GetLikelyDangers]" - margin_right = 8 - } - } - - hbox = { - tooltip = "TRAVEL_PLAN_DANGER_LOW" - - icon = { - size = { 30 30 } - texture = "gfx/interface/icons/travel_danger_types/generic_icon_disabled.dds" - } - - text_single = { - text = "[TravelPlanner.GetUnlikelyDangers]" - } - } - } - } - - type travel_planning_window = widget - { - size = { 500 650 } - parentanchor = bottom|left - - alwaystransparent = no - allow_outside = yes - - state = { - name = _show - - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - using = Animation_FadeIn_BottomLeft - } - - state = { - name = _hide - - using = Animation_FadeOut_Standard - using = Sound_WindowHide_Standard - using = Animation_FadeOut_BottomLeft - } - - block "visible" - { - visible = "[TravelPlanData.HasNextDestination]" - } - - vbox = { - layoutpolicy_vertical = expanding - - expand = { - layoutpolicy_vertical = expanding - } - - # Window content - vbox = { - name = "window_content" - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_subwindow.dds" - spriteType = Corneredtiled - spriteborder = { 18 18 } - margin = { 16 16 } - texture_density = 2 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = TRAVEL_TITLE - parentanchor = center|vcenter - align = nobaseline - position = { 0 -5 } - - } - - blockoverride "button_close" - { - block "button_close_overload" - { - enabled = "[TravelPlanner.CanClose]" - tooltip = "[TravelPlanner.GetCanCloseTooltip]" - onclick = "[TravelPlanner.Close]" - } - } - } - } - - - # Destination - hbox = { - layoutpolicy_horizontal = expanding - margin = { 8 16} - - background = { - texture = "[TravelPlanner.GetDestinationTexture]" - fittype = centercrop - alpha = 0.4 - - using = Mask_Rough_Edges - } - - block "destination_text" {} - - expand = {} - - button_round = { - name = "change_destination" - - tooltip = "CHANGE_DESTINATION_TT" - - enabled = "[And(Not( TravelPlanner.GetTravelPlan.IsValid ), Not(TravelPlanner.IsLinked))]" - onclick = "[ActivityPlanner.StartLocationPicking]" - - button_replace = { - parentanchor = center - alwaystransparent = yes - } - } - } - - # Entourage - hbox = { - name = "entourage_tutorial_uses_this" - layoutpolicy_horizontal = expanding - margin = { 8 8 } - - background = { - using = Background_Area_Dark - } - - text_single = { - text = "[entourage|E]" - align = nobaseline - } - - expand = {} - - button_standard = { - onclick = "[TravelPlanner.ToggleEntourageListWindow]" - - text = "TRAVEL_ENTOURAGE_BUTTON_LABEL" - } - } - - # Caravan Master and Options - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - # Caravan Master - vbox = { - name = "caravan_master_tutorial_uses_this" - datacontext = "[TravelPlanData.GetTravelLeader]" - layoutpolicy_vertical = expanding - minimumsize = { 200 0 } - - margin = { 8 0 } - margin_bottom = 8 - - background = { - using = Background_Area - margin = { 4 0 } - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "[GetCourtPositionType('travel_leader_court_position').GetName()]" - align = left - max_width = 160 - } - - expand = {} - - text_single = { - visible = "[And(Character.IsValid, TravelPlanData.HasNextDestination)]" - - text = "[Character.GetTravelLeaderCost|U]" - max_width = 40 - - tooltip = "[Character.GetTravelLeaderCostBreakdown]" - } - - text_single = { - visible = "[And(Character.IsValid, Not(TravelPlanData.HasNextDestination))]" - text = "COST_RESULT_NOTHING" - align = nobaseline - tooltip = "TRAVEL_PLANNER_NO_TRAVEL_COST" - } - } - - travel_leader_selection_widget = { - name = "travel_leader_selection" - } - } - - vbox = { - layoutpolicy_vertical = expanding - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - # Travel Options - vbox = { - name = "travel_options_tutorial_uses_this" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 16 0 } - - text_label_left = { - layoutpolicy_horizontal = expanding - - text = "[travel_options|E]" - align = left - max_width = 190 - } - - expand = {} - - text_single = { - visible = "[TravelPlanData.HasNextDestination]" - text = "[TravelPlanData.GetTravelOptionsTotalCost|U]" - align = nobaseline - max_width = 80 - } - - text_single = { - visible = "[Not(TravelPlanData.HasNextDestination)]" - text = "COST_RESULT_NOTHING" - align = nobaseline - tooltip = "TRAVEL_PLANNER_NO_TRAVEL_COST" - max_width = 80 - } - } - - expand = {} - - widget = { - name = "travel_options" - size = { 270 140 } - - fixedgridbox = { - name = "current_options_draft" - visible = "[TravelPlanner.HasTravelPlanDraft]" - datamodel = "[TravelPlanData.GetTravelOptions]" - addcolumn = 270 - addrow = 80 - - item = { - icon_button_travel_option = { - datacontext = "[TravelPlanner.AccessTravelPlanDraftData]" - } - } - } - - fixedgridbox = { - name = "current_options" - datamodel = "[TravelPlanData.GetTravelOptions]" - visible = "[Not( TravelPlanner.HasTravelPlanDraft )]" - addcolumn = 270 - addrow = 80 - - item = { - icon_button_travel_option = { - datacontext = "[TravelPlanner.GetTravelPlanData]" - } - } - } - - widget = { - visible = "[And( Not( TravelPlanner.HasTravelPlanDraft ), LessThanOrEqualTo_int32( GetDataModelSize(TravelPlanData.GetTravelOptions), '(int32)0'))]" - parentanchor = center - size = { 270 40 } - - text_multi = { - parentanchor = hcenter - - text = "TRAVEL_OPTIONS_EMPTY" - align = center - autoresize = yes - default_format = "#weak" - } - } - - icon_button_empty_travel_option = { - visible = "[And( Not( TravelPlanner.GetTravelPlan.IsValid ), IsDataModelEmpty(TravelPlanData.GetTravelOptions))]" - parentanchor = top|hcenter - } - - ## Dividers - hbox = { - visible = "[TravelPlanner.HasTravelPlanDraft]" - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - hbox = { - visible = "[And( Not( TravelPlanner.HasTravelPlanDraft ), GreaterThanOrEqualTo_int32( GetDataModelSize(TravelPlanData.GetTravelOptions), '(int32)1'))]" - layoutpolicy_horizontal = expanding - - divider = { - layoutpolicy_horizontal = expanding - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" - blend_mode = alphamultiply - } - } - } - - icon_button_empty_travel_option = { - visible = "[And( Not( TravelPlanner.GetTravelPlan.IsValid ), LessThanOrEqualTo_int32( GetDataModelSize(TravelPlanData.GetTravelOptions), '(int32)1'))]" - parentanchor = bottom|hcenter - } - } - - expand = {} - } - } - - vbox = { - name = "speed_safety_tutorial_uses_this" - layoutpolicy_horizontal = expanding - - spacing = 8 - - # Travel Plan Modifiers - hbox = { - name = "modifiers_grid" - visible = "[TravelPlanner.GetTravelPlan.IsValid]" - layoutpolicy_horizontal = expanding - margin_left = 8 - - hbox = { - datamodel = "[TravelPlanner.GetTimedModifiers]" - - item = { - modifier_item_icon = { - blockoverride "size" - { - size = { 30 30 } - } - } - } - } - - text_single = { - visible = "[IsDataModelEmpty(TravelPlanner.GetTimedModifiers)]" - text = "TRAVEL_PLAN_NO_MODIFIERS" - default_format = "#weak" - } - - expand = {} - } - - # Travel Speed - hbox = { - layoutpolicy_horizontal = expanding - - margin_left = 8 - - # Speed icon - hbox = { - layoutpolicy_horizontal = expanding - tooltip = "[TravelPlanData.GetSpeedBreakdown]" - spacing = 8 - - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/travel/travel_speed_icon.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 4 - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 4 0 } - spacing = 4 - - background = { - spriteType = Corneredtiled - using = Color_Green - alpha = 0.15 - texture = "gfx/interface/colors/white.dds" - - margin = { 4 4 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - # Speed percentage - text_single = { - raw_text = "[TravelPlanData.GetSpeedMultiplierAsPercentage|0]%" - align = nobaseline - default_format = "#high" - } - - # Safety concept - text_single = { - text = "TRAVEL_SPEED" - align = nobaseline - } - - expand = {} - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "[SelectLocalization(TravelPlanData.HasNextDestination, 'ACTIVITY_DESTINATION_TOTAL_TRAVEL_TIME', 'ACTIVITY_DESTINATION_NO_TRAVEL_TIME')]" - align = nobaseline - margin = { 4 0 } - max_width = 350 - } - expand = {} - } - } - } - } - - # Travel Safety - hbox = { - layoutpolicy_horizontal = expanding - - margin_left = 8 - - tooltip = "[TravelPlanData.GetSafetyBreakdown]" - - hbox = { - spacing = 8 - - - - # Safety icon - icon = { - size = { 40 40 } - texture = "gfx/interface/icons/travel/travel_safety_icon.dds" - } - - vbox = { - layoutpolicy_horizontal = expanding - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 4 0 } - spacing = 4 - - background = { - texture = "gfx/interface/colors/white.dds" - spriteType = Corneredtiled - using = Color_Blue - alpha = 0.15 - - margin = { 4 4 } - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - # Safety value - text_single = { - text = "[TravelPlanData.GetSafetyValue|0]" - align = nobaseline - default_format = "#high" - } - - # Safety concept - text_single = { - text = "TRAVEL_SAFETY" - align = nobaseline - } - - expand ={} - } - - hbox = { - travel_danger_summary_hbox = {} - } - } - } - - expand = {} - } - } - - # Bottom buttons - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - margin = { 15 15 } - margin_left = 10 - - background = { - using = Background_Area - } - - expand = {} - - # Edit Route - button_standard = { - name = "edit_route_tutorial_uses_this" - size = { 230 30 } - - onclick = "[TravelPlanner.OpenTravelRouteEditWindow]" - - text = "TRAVEL_EDIT_ROUTE_HEADER" - - tooltip = "TRAVEL_EDIT_ROUTE_TT" - } - - button_primary = { - visible = "[And( TravelPlanner.GetTravelPlan.IsValid, Not( IsNomad( GetPlayer ) ) )]" - size = { 220 30 } - - enabled = "[TravelPlanner.CanCancelTravelPlan]" - onclick = "[TravelPlanner.CancelTravelPlan]" - - text = "[TravelPlanner.GetCancelTravelPlanText]" - - tooltip = "[TravelPlanner.GetCanCancelTravelPlanTooltip]" - } - - expand = {} - } - } - } - } - - type widget_entourage_list_item = widget - { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 590 122 } - - background = { - using = Background_Area_With_Header - } - - widget = { - parentanchor = top|right - position = { -8 2 } - size = { 160 30 } - - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - - item = { - widget_skill_item_no_icon = {} - } - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - layoutpolicy_vertical = expanding - - margin_top = 2 - - portrait_head = {} - - expand = {} - } - - vbox = { - layoutpolicy_horizontal = expanding - - margin_left = 4 - - ## Name - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 4 - margin_right = 8 - - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Character.GetUINameNoTooltip]" - align = nobaseline - alwaystransparent = yes - autoresize = no - max_width = 300 - - using = Font_Size_Medium - } - - expand = {} - } - - ## Age - hbox = { - layoutpolicy_horizontal = expanding - - margin_top = 4 - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - - ## Extra description - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "character_companion_description" - layoutpolicy_horizontal = expanding - raw_text = "[CharacterListItem.GetText('companion_desc')]" - default_format = "#weak" - autoresize = no - align = nobaseline - alwaystransparent = yes - } - } - - ## Dynasty, Traits, Culture and Religion - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - - margin_left = 8 - } - - hbox = { - ## Dynasty - widget = { - size = { 40 40 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - scale = 0.6 - } - } - - ## Traits - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - size = { 150 60 } - addcolumn = 30 - addrow = 30 - maxhorizontalslots = 8 - maxverticalslots = 1 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - } - - ## Realm - widget = { - size = {45 40 } - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - - block "claims_visibility" {} - - datacontext = "[CharacterListItem.GetFirstClaim]" - - coa_title_tiny_crown = { - datacontext = "[Claim.GetTitle]" - parentanchor = vcenter - position = { 0 -3 } - scale = 0.8 - - using = tooltip_ne - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - blockoverride "coa_tooltip" - { - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - text_single = { - align = right - minimumsize = { 15 0 } - parentanchor = vcenter|right - text = "[CharacterListItem.GetTitleItemCount]" - - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin = { 0 2 } - margin_right = 4 - - divider_light = { - layoutpolicy_vertical = expanding - } - } - - ## Religion - hbox = { - margin_right = 16 - - icon = { - name = "faith_button" - size = { 30 30 } - datacontext = "[Character.GetFaith]" - texture = "[Faith.GetIcon]" - - tooltipwidget = { - faith_tooltip = {} - } - } - - hbox = { - datacontext = "[Character.GetCulture]" - - tooltipwidget = { - culture_tooltip = {} - } - - using = tooltip_se - - hbox = { - spacing = 4 - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 30 30 } - } - - text_single = { - layoutpolicy_horizontal = expanding - max_width = 110 - align = nobaseline - text = "CULTURE_LISTS_WINDOW" - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_travel_route_edit.gui b/N3OW/gui/window_travel_route_edit.gui deleted file mode 100644 index 71165b91..00000000 --- a/N3OW/gui/window_travel_route_edit.gui +++ /dev/null @@ -1,416 +0,0 @@ -window = { - name = "travel_route_edit_window" - parentanchor = top|right - position = { 0 70 } - size = { 500 780 } - movable = no - - using = Window_Background - using = Window_Decoration - - datacontext = "[TravelRouteEditWindow.GetTravelPlanData]" - - state = { - name = _show - using = Animation_FadeIn_Quick - position_x = 0 - } - - state = { - name = _hide - using = Animation_FadeOut_Standard - position_x = 200 - } - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "TRAVEL_EDIT_ROUTE_HEADER" - } - - blockoverride "button_close" - { - onclick = "[TravelRouteEditWindow.Close]" - shortcut = "close_window" - } - } - - vbox = { - name = "contents" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - spacing = 10 - - text_multi = { - name = "instruction_text" - - text = "TRAVEL_EDIT_ROUTE_INSTRUCTION" - align = center|nobaseline - autoresize = yes - default_format = "#I" - max_width = 380 - - margin = { 15 10 } - - background = { - using = Background_Area_Dark - } - } - - scrollbox = { - name = "route_scroll" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - datamodel = "[TravelPlanData.GetDestinations]" - - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - button_fixed_departure = { - layoutpolicy_horizontal = expanding - } - } - - item = { - vbox = { - layoutpolicy_horizontal = expanding - spacing = 8 - - vbox = { - name = "detours_between_destinations" - visible = "[Not( IsDataModelEmpty( TravelPlanDestination.GetWaypoints ) )]" - - layoutpolicy_horizontal = expanding - datamodel = "[TravelPlanDestination.GetWaypoints]" - - item = { - vbox = { - layoutpolicy_horizontal = expanding - - hbox_add_detour_here = { - visible = "[TravelRouteEditWindow.IsSelectingProvinceAt( TravelPlanDestination.GetIndex, TravelPlanWaypoint.GetIndex )]" - - layoutpolicy_horizontal = expanding - } - - hbox_added_detour = { - layoutpolicy_horizontal = expanding - } - } - } - } - - hbox_add_detour_here = { - visible = "[Or( TravelRouteEditWindow.IsSelectingProvinceAtEnd( TravelPlanDestination.GetIndex ), And( TravelRouteEditWindow.IsSelectingProvinceAtBegin( TravelPlanDestination.GetIndex ), IsDataModelEmpty( TravelPlanDestination.GetWaypoints ) ) )]" - layoutpolicy_horizontal = expanding - } - - button_fixed_destination = { - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 15 0 } - margin_bottom = 15 - - spacing = 10 - - text_multi = { - name = "error_text" - visible = "[Not( TravelRouteEditWindow.IsRouteValid )]" - - text = "[TravelRouteEditWindow.GetRouteValidDesc]" - align = center|nobaseline - autoresize = yes - max_width = 380 - - margin = { 10 10 } - - background = { - using = Background_Area_Dark - } - } - - hbox = { - spacing = 10 - - button_standard = { - visible = "[TravelRouteEditWindow.HasTravelStarted]" - onclick = "[TravelRouteEditWindow.Close]" - text = CANCEL - } - - button_primary = { - enabled = "[TravelRouteEditWindow.IsRouteValid]" - onclick = "[TravelRouteEditWindow.ApplyChanges]" - onclick = "[TravelRouteEditWindow.Close]" - - text = "APPLY" - } - } - } - } - } -} - - -types TravelRouteEditTypes -{ - type hbox_add_detour_here = hbox { - margin_left = 32 - - hbox = { - margin = {4 4} - spacing = 4 - - layoutpolicy_horizontal = expanding - - background = { - using = Background_Frame - } - - text_single = { - margin = { 10 10 } - layoutpolicy_horizontal = expanding - text = "TRAVEL_EDIT_ROUTE_SELECT_PROVINCE" - default_format = "#I" - align = nobaseline - } - - button_cancel = { - size = { 30 30 } - onclick = "[TravelRouteEditWindow.StopProvinceSelection]" - } - } - } - - type button_fixed_departure = button { - datacontext = "[TravelPlanData.GetDepartureLocation]" - datacontext = "[Province.GetTitle]" - size = {0 60} - - using = State_Title_MouseEntry - - hbox = { - using = travel_stop_bg - - margin = { 10 10 } - spacing = 5 - - coa_title_tiny = { - datacontext = "[Province.GetCoATitle]" - using = tooltip_ws - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - text = "[Province.GetNameNoTooltip]" - align = nobaseline - default_format = "#V" - } - - text_single = { - layoutpolicy_horizontal = expanding - - text = "TRAVEL_EDIT_ROUTE_FIXED_SUB_LABEL_DEPARTURE" - - align = nobaseline - default_format = "#weak" - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - button_plus = { - visible = "[TravelRouteEditWindow.CanAddWaypointAfterDeparture]" - onclick = "[TravelRouteEditWindow.AddWaypointAfterDeparture]" - tooltip = TRAVEL_EDIT_ROUTE_ADD_DETOUR_TT - inherit_visual_state = no - - background = { - using = Background_Area_Dark - } - } - } - } - } - - - type button_fixed_destination = button { - datacontext = "[TravelPlanDestination.GetProvince]" - datacontext = "[Province.GetTitle]" - size = {0 60} - - using = State_Title_MouseEntry - - hbox = { - using = travel_stop_bg - - margin = { 10 10 } - margin_right = 10 - spacing = 5 - - coa_title_tiny = { - datacontext = "[Province.GetCoATitle]" - using = tooltip_ws - } - - vbox = { - text_single = { - layoutpolicy_horizontal = expanding - - text = "[Province.GetNameNoTooltip]" - align = nobaseline - default_format = "#V" - } - - text_single = { - datacontext = "[TravelPlanDestination.GetProvince]" - layoutpolicy_horizontal = expanding - - text = "TRAVEL_EDIT_ROUTE_FIXED_SUB_LABEL" - - align = nobaseline - default_format = "#weak" - } - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - button_plus = { - visible = "[TravelRouteEditWindow.CanAddWaypointAfterDestination( TravelPlanDestination.GetIndex )]" - onclick = "[TravelRouteEditWindow.AddWaypointAfterDestination( TravelPlanDestination.GetIndex )]" - tooltip = TRAVEL_EDIT_ROUTE_ADD_DETOUR_TT - inherit_visual_state = no - - background = { - using = Background_Area_Dark - } - } - } - } - } - - type hbox_added_detour = hbox { - margin_left = 32 - - button = { - datacontext = "[TravelPlanWaypoint.GetProvince]" - datacontext = "[Province.GetTitle]" - layoutpolicy_horizontal = expanding - size = {0 55} - - using = State_Title_MouseEntry - - hbox = { - using = travel_stop_bg - - hbox = { - layoutpolicy_horizontal = expanding - - margin = { 10 10 } - spacing = 5 - - coa_title_tiny = { - visible = "[Province.GetCoATitle.IsValid]" - datacontext = "[Province.GetCoATitle]" - using = tooltip_ws - } - - widget = { - visible = "[Not( Province.GetCoATitle.IsValid )]" - size = { 42 42 } - - icon = { - parentanchor = center - texture = "[Province.GetTerrain.GetIcon]" - position = { 1 0 } - size = { 35 35 } - } - } - - text_single = { - text = "TRAVEL_EDIT_ROUTE_DETOUR_LABEL" - align = nobaseline - max_width = 220 - } - - button_cancel = { - visible = "[TravelRouteEditWindow.CanRemoveWaypoint( TravelPlanDestination.GetIndex, TravelPlanWaypoint.GetIndex )]" - onclick = "[TravelRouteEditWindow.RemoveWaypoint( TravelPlanDestination.GetIndex, TravelPlanWaypoint.GetIndex )]" - - tooltip = TRAVEL_EDIT_ROUTE_REMOVE_DETOUR_TT - - inherit_visual_state = no - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - - button_plus = { - visible = "[TravelRouteEditWindow.CanAddWaypointAfterWaypoint( TravelPlanDestination.GetIndex, TravelPlanWaypoint.GetIndex )]" - onclick = "[TravelRouteEditWindow.AddWaypointAfterWaypoint( TravelPlanDestination.GetIndex, TravelPlanWaypoint.GetIndex )]" - tooltip = TRAVEL_EDIT_ROUTE_ADD_DETOUR_TT - inherit_visual_state = no - - background = { - using = Background_Area_Dark - } - } - } - } - } - } - } -} - -template travel_stop_bg -{ - # for some reason these appear outside bounding box - background = { - using = Background_Area_Dark - } - - background = { - texture = "[Province.GetIllustration]" - alpha = 0.6 - fittype = centercrop - - using = Mask_Rough_Edges - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } -} diff --git a/N3OW/gui/window_treasury_budget_change.gui b/N3OW/gui/window_treasury_budget_change.gui deleted file mode 100644 index 7f9fdd0e..00000000 --- a/N3OW/gui/window_treasury_budget_change.gui +++ /dev/null @@ -1,492 +0,0 @@ -###################################################### -############### CHANGE TREASURY BUDGET ############### -###################################################### - -window = { - name = "window_treasury_budget_change" - widgetid = "window_treasury_budget_change" - size = { 1200 875 } - parentanchor = center - layer = middle - - using = Window_Background - using = Window_Decoration - using = Animation_ShowHide_Standard - - datacontext = "[TreasuryBudgetChangeWindow.GetTitle]" - datacontext = "[Title.GetHolder]" - - - vbox = { - using = Window_Margins - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "WINDOW_TREASURY_BUDGET_CHANGE_TITLE" - } - - blockoverride "button_close" - { - onclick = "[TreasuryBudgetChangeWindow.Close]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - ## Left Side - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - minimumsize = { 0 312 } - margin = { 14 14 } - spacing = 10 - - background = { - using = Background_Area - } - - hbox = { - datacontext = "[TreasuryBudgetChangeWindow.GetTitle.GetHolder]" - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - background = { - using = Background_Area - } - - portrait_head = {} - - vbox = { - layoutpolicy_vertical = expanding - margin_left = 10 - margin_top = 5 - - text_single = { - min_width = 500 - text = "[Character.GetNameNoTooltip]" - align = left - default_format = "#high" - using = Font_Size_Medium - } - text_single = { - min_width = 500 - text = "WINDOW_TREASURY_BUDGET_CHANGE_TREASURY_LABEL" - align = left - } -# text_single = { -# min_width = 500 -# text = "WINDOW_TREASURY_BUDGET_CHANGE_MONTHLY_INCOME_LABEL" -# align = left -# } - - text_single = { - min_width = 500 - text = "WINDOW_TREASURY_BUDGET_CHANGE_PREVIOUS_BUDGET" - align = left - } - text_single = { - min_width = 500 - text = "WINDOW_TREASURY_BUDGET_CHANGE_BUDGET_CAPACITY" - align = left - } - - expand = {} - } - expand = {} - } - - - text_label_center = { - text = "WINDOW_TREASURY_BUDGET_CHANGE_ALLOCATED" - } - - vbox = { - layoutpolicy_horizontal = expanding - datamodel = "[TreasuryBudgetChangeWindow.AccessLawGroups]" - - hbox = { - layoutpolicy_horizontal = expanding - min_height = 40 - - background = { - using = Background_Area - } - - text_single = { - min_width = 160 - max_width = 160 - margin_left = 20 - text = "" - align = left - } - text_single = { - min_width = 100 - margin_left = 10 - text = "WINDOW_TREASURY_BUDGET_CHANGE_CHARACTERS_HEADER" - } - text_single = { - min_width = 110 - margin_right = 20 - - text = "WINDOW_TREASURY_BUDGET_CHANGE_ALLOCATION_HEADER" - } - text_single = { - min_width = 100 - text = "WINDOW_TREASURY_BUDGET_CHANGE_TOTAL_HEADER" - align = left - } - text_single = { - min_width = 100 - text = "WINDOW_TREASURY_BUDGET_CHANGE_BASE_RATE_HEADER" - align = left - } - text_single = { - min_width = 100 - text = "WINDOW_TREASURY_BUDGET_CHANGE_TREND_HEADER" - align = left - } - expand = {} - } - - item = { - hbox = { - layoutpolicy_horizontal = expanding - min_height = 40 - visible = "[TreasuryBudgetChangeWindow.AccessSelectedLaw( GuiLawGroup.AccessSelf ).GetLaw.IsValid]" - - text_single = { - layoutpolicy_vertical = expanding - min_width = 160 - max_width = 160 - min_height = 40 - margin_left = 20 - - text = "[Localize( Concatenate( 'WINDOW_TREASURY_BUDGET_CATEGORY_', TreasuryBudgetChangeWindow.GetBudgetCategoryKey( GuiLawGroup.Self ) ) )]" - align = left|nobaseline - - background = { - using = Background_Area - } - } - text_single = { - min_width = 100 - margin_left = 10 - text = "[TreasuryBudgetChangeWindow.GetNewBudgetReceiverCount( GuiLawGroup.Self )]" - align = left|nobaseline - tooltip = "WINDOW_TREASURY_BUDGET_CHANGE_RECEIVER_TOOLTIP" - using = tooltip_se - } - hbox = { - min_width = 110 - margin_right = 20 - button_round = { - raw_text = "<" - size = { 20 20 } - onclick = "[TreasuryBudgetChangeWindow.DecreaseBudgetGroupLaw( GuiLawGroup.AccessSelf )]" - enabled = "[TreasuryBudgetChangeWindow.CanDecreaseBudgetGroupLaw( GuiLawGroup.Self )]" - } - text_single = { - min_width = 50 - text = "[TreasuryBudgetChangeWindow.AccessSelectedLaw( GuiLawGroup.AccessSelf ).GetLaw.GetShortName]" - align = center|nobaseline - default_format = "#high" - } - button_round = { - raw_text = ">" - size = { 20 20 } - onclick = "[TreasuryBudgetChangeWindow.IncreaseBudgetGroupLaw( GuiLawGroup.AccessSelf )]" - enabled = "[TreasuryBudgetChangeWindow.CanIncreaseBudgetGroupLaw( GuiLawGroup.Self )]" - } - } - text_single = { - min_width = 100 - - raw_text = "[treasury_i] [TreasuryBudgetChangeWindow.GetNewBudgetTotal( GuiLawGroup.Self )|1L]" - align = left|nobaseline - default_format = "#high" - - using = tooltip_se - tooltipwidget = { - widget_value_breakdown_tooltip = { - datacontext = "[TreasuryBudgetChangeWindow.AccessNewBudgetTooltip( GuiLawGroup.Self )]" - } - } - } - text_single = { - min_width = 100 - raw_text = "[SelectLocalization( EqualTo_string( TreasuryBudgetChangeWindow.GetBudgetCategoryKey( GuiLawGroup.Self ), 'SALARY' ), 'WINDOW_TREASURY_BUDGET_CHANGE_CATEGORY_BASE_RATE_GOLD', 'WINDOW_TREASURY_BUDGET_CHANGE_CATEGORY_BASE_RATE_TREASURY')]" - align = left|nobaseline - } - text_single = { - min_width = 100 - text = "WINDOW_TREASURY_BUDGET_CHANGE_CATEGORY_TREND" - align = left|nobaseline - } - expand = {} - } - } - } - - divider_light = { - layoutpolicy_horizontal = expanding - } - - vbox = { - layoutpolicy_horizontal = expanding - - # Summary - hbox = { - layoutpolicy_horizontal = expanding - min_height = 40 - - text_single = { - layoutpolicy_vertical = expanding - min_width = 160 - max_width = 160 - min_height = 40 - margin_left = 20 - - text = "WINDOW_TREASURY_BUDGET_CHANGE_SUMMARY_TOTAL" - align = left|nobaseline - - background = { - using = Background_Area - } - } - text_single = { - min_width = 100 - margin_left = 10 - text = "" - align = left|nobaseline - } - hbox = { - min_width = 110 - margin_left = 20 - margin_right = 40 - - text_single = { - min_width = 50 - - text = "[TreasuryBudgetChangeWindow.GetNewAllocationTotalPercentage|%0]" - align = center|nobaseline - default_format = "#high" - } - } - text_single = { - min_width = 100 - - raw_text = "[treasury_i] [TreasuryBudgetChangeWindow.GetNewBudgetTotalSum|1]" - align = left|nobaseline - default_format = "#high" - } - text_single = { - min_width = 100 - text = "" - align = left|nobaseline - } - text_single = { - min_width = 100 - text = "[TreasuryBudgetChangeWindow.GetBudgetTotalSumDiff()|1+=]" - align = left|nobaseline - } - expand = {} - } - - # Summary - hbox = { - layoutpolicy_horizontal = expanding - min_height = 40 - - text_single = { - layoutpolicy_vertical = expanding - min_width = 160 - max_width = 160 - min_height = 40 - margin_left = 20 - - raw_text = "[SelectLocalization( LessThan_CFixedPoint( TreasuryBudgetChangeWindow.GetNewBudgetSurplus, '(CFixedPoint)0'), 'WINDOW_TREASURY_BUDGET_CHANGE_SUMMARY_DEFICIT', 'WINDOW_TREASURY_BUDGET_CHANGE_SUMMARY_UNALLOCATED')]" - align = left|nobaseline - - background = { - using = Background_Area - } - } - text_single = { - min_width = 100 - margin_left = 10 - text = "" - align = left|nobaseline - } - hbox = { - min_width = 110 - margin_left = 20 - margin_right = 40 - - text_single = { - min_width = 50 - - text = "[Subtract_CFixedPoint('(CFixedPoint)1.0', TreasuryBudgetChangeWindow.GetNewAllocationTotalPercentage)|%0]" - align = center|nobaseline - default_format = "#high" - } - } - text_single = { - min_width = 100 - - raw_text = "[treasury_i] [TreasuryBudgetChangeWindow.GetNewBudgetSurplus|1]" - align = left|nobaseline - default_format = "#high" - } - text_single = { - min_width = 100 - text = "" - align = left|nobaseline - } - text_single = { - min_width = 100 - text = "[TreasuryBudgetChangeWindow.GetBudgetSurplusDiff()|1+=]" - align = left|nobaseline - } - expand = {} - } - } - - - text_multi = { - layoutpolicy_horizontal = expanding - size = { 0 90 } - max_width = 630 - align = center - autoresize = yes - text = "WINDOW_TREASURY_BUDGET_CHANGE_EXPLANATION" - } - - text_multi = { - visible = "[LessThan_CFixedPoint( TreasuryBudgetChangeWindow.GetNewBudgetSurplus, '(CFixedPoint)0' )]" - layoutpolicy_horizontal = expanding - size = { 0 90 } - max_width = 450 - align = center - autoresize = yes - text = "WINDOW_TREASURY_BUDGET_CHANGE_DEFICIT_WARNING" - } - - expand = {} - } - - } - - ## Right Side - vbox_changes_desc = { - max_width = 300 - min_width = 300 - margin = { 15 15 } - spacing = 10 - - background = { - using = Background_Area - } - } - } - - # Buttons when character can change laws manually - vbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - margin_bottom = 12 - - text_single = { - text = "WINDOW_TREASURY_BUDGET_CHANGE_ENACT_COST" - tooltip = "WINDOW_TREASURY_BUDGET_CHANGE_ENACT_COST_TOOLTIP" - using = Font_Size_Medium - } - - hbox = { - spacing = 20 - - button_standard = { - onclick = "[TreasuryBudgetChangeWindow.Close]" - text = "CANCEL" - using = tooltip_above - } - - button_primary = { - visible = no - enabled = "[TreasuryBudgetChangeWindow.CanEnact]" - onclick = "[TreasuryBudgetChangeWindow.EnactBudgetLaws]" - - text = "WINDOW_TREASURY_BUDGET_CHANGE_ALLOCATION_LAWS" - - using = tooltip_above - } - - button_primary = { - enabled = "[TreasuryBudgetChangeWindow.CanEnact]" - onclick = "[TreasuryBudgetChangeWindow.EnactBudget]" - - text = "WINDOW_TREASURY_BUDGET_CHANGE_ENACT_BUDGET" - - using = tooltip_above - tooltip = "[TreasuryBudgetChangeWindow.GetCanEnactBudgetDescription]" - } - } - } - } - } -} - - -types TreasuryBudgetChangeLawTypes -{ - type vbox_changes_desc = vbox { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin = { 10 10 } - - vbox = { - text_single = { - text = "WINDOW_TREASURY_BUDGET_CHANGE_EFFECTS" - margin = { 10 10 } - } - } - - scrollbox = { - min_width = 350 - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - layoutpolicy_horizontal = expanding - - text_multi = { - layoutpolicy_horizontal = expanding - autoresize = yes - max_width = 350 - margin_right = 40 - text = "[TreasuryBudgetChangeWindow.GetBudgetEnactEffectDescription]" - } - } - } - } - - #expand = {} - - } -} diff --git a/N3OW/gui/window_tutorial.gui b/N3OW/gui/window_tutorial.gui deleted file mode 100644 index 15ae0698..00000000 --- a/N3OW/gui/window_tutorial.gui +++ /dev/null @@ -1,352 +0,0 @@ -types TutorialWindow { - type tutorial_window = window { - alwaystransparent = no - resizable = no - parentanchor = center - - state = { - name = _show - using = Animation_FadeIn_Quick - using = Sound_WindowShow_Standard - - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - using = Sound_WindowHide_Standard - } - - icon = { - parentanchor = center - size = { 180% 180% } - alwaystransparent = yes - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - color = { 0.1 0.1 0.1 1 } - alpha = 0.6 - } - - icon = { - parentanchor = center - size = { 160% 160% } - alwaystransparent = yes - - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - using = Color_Orange - - state = { - trigger_on_create = yes - name = a - next = b - - using = Animation_Curve_Default - duration = 1 - alpha = 0.7 - } - - state = { - name = b - next = a - - using = Animation_Curve_Default - duration = 2 - alpha = 0 - } - } - - state = { - name = center - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)0', '(float)0' )]" - } - - state = { - name = top_center - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)0', '(float)-20' )]" - } - - state = { - name = bottom_center - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)0', '(float)20' )]" - } - - state = { - name = bottom_left - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)-30', '(float)20' )]" - } - - state = { - name = far_bottom_left - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)-35', '(float)25' )]" - } - - state = { - name = top_left - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)-35', '(float)-20' )]" - } - - state = { - name = left - using = Animation_Curve_Default - duration = 0.5 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)-25', '(float)0' )]" - } - - state = { - name = far_left - using = Animation_Curve_Default - duration = 0.5 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)-35', '(float)0' )]" - } - - state = { - name = right - using = Animation_Curve_Default - duration = 0.5 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)25', '(float)0' )]" - } - - state = { - name = far_right - using = Animation_Curve_Default - duration = 0.5 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)35', '(float)0' )]" - } - - state = { - name = bottom_right - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)35', '(float)18' )]" - } - - state = { - name = bottom_right_min - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)25', '(float)15' )]" - } - - state = { - name = top_right - using = Animation_Curve_Default - duration = 0.3 - position = "[GetGuiPositionFromPercentCoordinates( PdxGuiWidget.Self, '(float)30', '(float)-15' )]" - } - - vbox = { - margin_top = 33 - margin_bottom = 35 - set_parent_size_to_minimum = yes - - using = Window_Background_NoDecoration - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - hbox = { - margin = { 15 0 } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - } - - text_single = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - text = "[Tutorial.GetStepName]" - max_width = 420 - align = nobaseline|center - - using = Font_Type_Flavor - using = Font_Size_Big - } - - button_standard = { - visible = "[InDebugMode]" - raw_text = "Debug" - default_format = "#D" - onclick = "[ExecuteConsoleCommand('tutorial.debugwindow')]" - max_width = 80 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - expand = { - visible = "[Not( Tutorial.HasTransition( 'read_later' ) )]" - } - - text_single = { - visible = "[Not( StringIsEmpty( Tutorial.GetStepHeaderInfo ) )]" - raw_text = "([Tutorial.GetStepHeaderInfo])" - default_format = "#weak" - align = nobaseline - - using = Font_Size_Medium - } - - expand = { - visible = "[Tutorial.HasTransition( 'read_later' )]" - } - } - } - - blockoverride "header_text" - { - text = "" - } - - blockoverride "button_back" - { - visible = no - } - - blockoverride "button_close" - { - visible = "[Tutorial.HasTransition('read_later')]" - enabled = "[Tutorial.IsTransitionEnabled('read_later')]" - tooltip = "tutorial_lesson_button_read_later" - onclick = "[Tutorial.OnClickTransition('read_later')]" - } - } - - scrollbox = { - autoresizescrollarea = yes - blockoverride "scrollbox_content" - { - # this might break with really, really long localizations - set_parent_size_to_minimum = yes - - text_multi = { - max_width = 490 - min_width = 490 - autoresize = yes - text = "[Tutorial.GetStepText]" - using = Font_Size_Medium - } - - vbox = { - visible = "[Tutorial.HasStepInstructions]" - layoutpolicy_vertical = preferred - - text_single = { - layoutpolicy_horizontal = expanding - margin_top = 20 - margin_bottom = 5 - - text = "TUTORIAL_STEP_INSTRUCTIONS" - using = Font_Size_Medium - } - - text_multi = { - max_width = 430 - min_width = 430 - - autoresize = yes - text = "[Tutorial.GetStepInstructions]" - using = Font_Size_Medium - } - - expand = {} - } - - - } - blockoverride "scrollbox_expand" - { - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - visible = "[Tutorial.HasTransition('full_tutorial_explanation')]" - max_width = 490 - min_width = 490 - - text_single = { - align = left - text = "[Tutorial.GetTransitionText('full_tutorial_explanation')]" - margin_left = 5 - } - - expand = {} - - text_single = { - align = right - text = "[Tutorial.GetTransitionText('quick_tutorial_explanation')]" - margin_right = 5 - } - - } - - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - spacing = 5 - - button_tertiary = { - size = { 150 33 } - visible = "[Tutorial.HasTransition('back')]" - enabled = "[Tutorial.IsTransitionEnabled('back')]" - text = "[Tutorial.GetTransitionText('back')]" - onclick = "[Tutorial.OnClickTransition('back')]" - } - - button_standard = { - size = { 150 33 } - visible = "[Tutorial.HasTransition('repeat')]" - enabled = "[Tutorial.IsTransitionEnabled('repeat')]" - text = "[Tutorial.GetTransitionText('repeat')]" - onclick = "[Tutorial.OnClickTransition('repeat')]" - } - - expand = {} - - button_tertiary = { - size = { 150 33 } - visible = "[Tutorial.HasTransition('skip')]" - enabled = "[Tutorial.IsTransitionEnabled('skip')]" - text = "[Tutorial.GetTransitionText('skip')]" - onclick = "[Tutorial.OnClickTransition('skip')]" - } - - button_primary = { - name = "tutorial_highlight_next_button" - size = { 150 33 } - visible = "[Tutorial.HasTransition('next')]" - enabled = "[Tutorial.IsTransitionEnabled('next')]" - text = "[Tutorial.GetTransitionText('next')]" - onclick = "[Tutorial.OnClickTransition('next')]" - } - } - } - } -} - -tutorial_window = { - name = "tutorial_window" - - using = Window_Movable - position = { 0 0 } - layer = tutorial - - visible = "[And( Tutorial.ShouldBeVisible, Not(IsGameViewOpen('barbershop')) )]" # hide the widget itself so as to avoid short single-frame glitches when hiding/showing the window -} diff --git a/N3OW/gui/window_war_declared_overview.gui b/N3OW/gui/window_war_declared_overview.gui deleted file mode 100644 index 324d0b32..00000000 --- a/N3OW/gui/window_war_declared_overview.gui +++ /dev/null @@ -1,127 +0,0 @@ - -###################################################### -############## DECLARED WAR OVERVIEW ################# -###################################################### -window = { - name = "war_declared_overview" - parentanchor = hcenter - size = { 615 550 } - resizable = no - layer = middle - - using = Window_Background - using = Window_Decoration_Warfare - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { 0 120 } - } - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = -50 - } - - state = { - name = dismiss - using = Animation_FadeOut_Quick - position_y = 50 - } - - vbox = { - using = Window_Margins - set_parent_size_to_minimum = yes - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "WAR_DECLARED" - } - - blockoverride "button_close" - { - onclick = "[WarDeclaredOverviewWindow.Close]" - } - } - - hbox = { - name = "attacker" - layoutpolicy_horizontal = expanding - margin = { 15 20 } - - portrait_head = { - datacontext = "[WarDeclaredOverviewWindow.GetMainAttacker]" - } - - vbox = { - text_multi = { - name = "flavor_text" - margin = { 15 0} - max_width = 400 - autoresize = yes - text = "[WarDeclaredOverviewWindow.GetFlavorText]" - } - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - background = { - using = Background_Area - } - - text_label_center = { - text = "[WarDeclaredOverviewWindow.GetWar.GetName]" - default_format = "#high" - } - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 25 5 } - - text_single = { - name = "attackers_text" - layoutpolicy_vertical = expanding - text = "ATTACKERS" - } - - expand = {} - - strength_balance = { - name = "strength_balance" - datacontext = "[WarDeclaredOverviewWindow.GetMilitaryStrengthInfo]" - } - } - - overlappingitembox = { - name = "attackers" - size = { 500 120 } - - datamodel = "[WarDeclaredOverviewWindow.GetAttackers]" - - item = { - portrait_head = { - using = tooltip_ne - } - } - } - } - - hbox = { - margin = { 0 10 } - - button_primary_big = { - name = "dismiss" - text = "WAR_DECLARED_OVERVIEW_DISMISS" - onclick = "[WarDeclaredOverviewWindow.Close]" - - } - } - } -} diff --git a/N3OW/gui/window_war_overview.gui b/N3OW/gui/window_war_overview.gui deleted file mode 100644 index 8670b088..00000000 --- a/N3OW/gui/window_war_overview.gui +++ /dev/null @@ -1,3602 +0,0 @@ -window = { - gfxtype = windowgfx - name = "war_overview_window" - widgetid = "war_overview_window" - parentanchor = bottom|hcenter - size = { 100% 280 } - movable = no - - layer = middle - allow_outside = yes - - state = { - name = _mouse_hierarchy_enter - start_sound = { - soundeffect = "event:/SFX/Snapshots/sfx_snapshots_WaroutcomeWindow" - } - } - - state = { - name = _mouse_hierarchy_leave - start_sound = { - soundeffect = "event:/SFX/Snapshots/sfx_snapshots_closeWarOutcome" - } - } - - state = { - name = _show - on_start = "[PdxGuiTriggerAllAnimations('war_overview_show')]" - using = Sound_WindowShow_Standard - start_sound = { - soundeffect = "event:/SFX/UI/War/sfx_ui_window_war_show" - } - } - - state = { - name = _hide - on_start = "[PdxGuiTriggerAllAnimations('war_overview_hide')]" - duration = 0.5 - using = Sound_WindowHide_Standard - start_sound = { - soundeffect = "event:/SFX/UI/War/sfx_ui_window_war_hide" - } - } - - widget = { - parentanchor = center - size = { 2250 295 } - allow_outside = yes - - hbox = { - widget = { - name = "left" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - flowcontainer = { - parentanchor = bottom|left - - ### FADE IN/OUT FROM LEFT ### - state = { - name = "war_overview_show" - next = b - position_x = -200 - alpha = 0 - } - - state = { ####### default #### - name = "b" - next = "c" - duration = 0.25 - delay = 0.15 - using = Animation_Curve_Default - - position_x = 0 - alpha = 1 - } - - state = { - name = "c" - next = "d" - duration = 0.05 - using = Animation_Curve_Default - - position_x = -1 - position_y = -1 - alpha = 1 - } - - state = { ####### default #### - name = "d" - duration = 0.25 - using = Animation_Curve_Default - - position_x = 0 - position_y = 0 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.25 - using = Animation_Curve_Default - position_x = -200 - alpha = 0 - } - - ### BOTTOM CORNER BACKGROUND LEFT ### - widget = { - name = "background_corner_left" - size = { 474 280 } - - background = { - using = Background_WarOverview - mirror = horizontal - } - - background = { - using = Background_WarOverview_Pattern - mirror = horizontal - } - - icon = { - size = { 100% 100% } - using = Background_WarOverview_Frame - mirror = horizontal - - icon = { - position = { 162 -5 } - size = { 20 20 } - texture = "gfx/interface/component_decoration/decoration_arch.dds" - mirror = horizontal - } - } - - icon_blood_splatter = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)25' )]" - mirror = horizontal - } - - icon_cloth_tears = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)25' )]" - mirror = horizontal - } - } - - ### BOTTOM RECTANGLE BACKGROUND LEFT ### - widget = { - name = "background_rectangle_left" - size = { 350 280 } - - background = { - using = Background_WarOverview_2 - mirror = horizontal - } - - background = { - using = Background_WarOverview_Pattern_2 - mirror = horizontal - } - - icon = { - size = { 100% 100% } - using = Background_WarOverview_Frame_2 - mirror = horizontal - } - - background = { - using = Background_Area_Dark - margin_top = -125 - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - icon_blood_splatter_2 = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)25' )]" - mirror = horizontal - } - - icon_cloth_tears_2 = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)25' )]" - mirror = horizontal - } - } - } - } - - widget = { - name = "right" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - flowcontainer = { - parentanchor = bottom|right - - state = { - name = "war_overview_show" - next = b - position_x = 200 - alpha = 0 - } - - state = { ####### default #### - name = "b" - next = "c" - duration = 0.25 - delay = 0.15 - using = Animation_Curve_Default - - position_x = 0 - alpha = 1 - } - - state = { - name = "c" - next = "d" - duration = 0.05 - using = Animation_Curve_Default - - position_x = -1 - position_y = -1 - alpha = 1 - } - - state = { ####### default #### - name = "d" - duration = 0.25 - using = Animation_Curve_Default - - position_x = 0 - position_y = 0 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.25 - using = Animation_Curve_Default - position_x = 200 - alpha = 0 - } - - ### BOTTOM RECTANGLE BACKGROUND RIGHT ### - widget = { - name = "background_rectangle_right" - size = { 350 280 } - - background = { - using = Background_WarOverview_2 - } - - background = { - using = Background_WarOverview_Pattern_2 - } - - icon = { - size = { 100% 100% } - using = Background_WarOverview_Frame_2 - } - - background = { - using = Background_Area_Dark - margin_top = -125 - mirror = horizontal - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_corner.dds" - blend_mode = alphamultiply - } - } - - icon_blood_splatter_2 = { - visible = "[GreaterThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)75' )]" - } - - icon_cloth_tears_2 = { - visible = "[GreaterThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)75' )]" - } - } - - ### BOTTOM CORNER BACKGROUND RIGHT ### - widget = { - name = "background_corner_right" - size = { 474 280 } - - background = { - using = Background_WarOverview - } - - background = { - using = Background_WarOverview_Pattern - } - - icon = { - size = { 100% 100% } - using = Background_WarOverview_Frame - - icon = { - parentanchor = right - position = { -162 -5 } - size = { 20 20 } - texture = "gfx/interface/component_decoration/decoration_arch.dds" - } - } - - icon_blood_splatter = { - visible = "[GreaterThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)75' )]" - } - - icon_cloth_tears = { - visible = "[GreaterThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)75' )]" - } - } - } - } - } - - hbox = { - allow_outside = yes - - widget = { - name = "left" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - size = { 0 295 } - allow_outside = yes - - hbox = { - allow_outside = yes - spacing = 50 - - expand = { - layoutpolicy_horizontal = expanding - } - - portrait_war_overview = { - datacontext = "[WarOverviewWindow.GetLeftSideLeaderItem]" - datacontext = "[WarParticipantItem.GetCharacter]" - margin_bottom = 65 - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetLeaderTooltip]" - } - - state = { - name = "war_overview_show" - next = b - alpha = 0 - } - - state = { - name = "b" - duration = 0.5 - delay = 0.1 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - - ### ATTACKERS INFO LEFT ### - vbox = { - name = "attackers_info_left" - margin_bottom = 65 - maximumsize = { 310 -1 } - - using = Background_WarOverview_3 - - state = { - name = "war_overview_show" - next = b - position_y = 300 - alpha = 0 - - delay = 0.1 - } - - state = { - name = "b" - next = "c" - duration = 0.3 - using = Animation_Curve_Default - - position_y = -2 - alpha = 1 - } - - state = { - name = "c" - duration = 0.05 - using = Animation_Curve_Default - - position_y = 0 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - - position_y = 300 - alpha = 0 - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Text_Label_Background - margin_top = -24 - margin_bottom = -15 - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[WarOverviewWindow.GetLeftSideHeader]" - default_format = "#high" - using = Font_Size_Big - align = center - autoresize = no - fontsize_min = 14 - max_width = 185 - } - - coa_realm_small_crown = { - datacontext = "[WarOverviewWindow.GetLeftSideLeaderItem]" - datacontext = "[WarParticipantItem.GetCharacter]" - } - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[WarOverviewWindow.GetWarStanceName( WarOverviewWindow.GetLeftSideLeaderItem.IsAttacker )]" - tooltip = "[WarOverviewWindow.GetWarStanceDesc( WarOverviewWindow.GetLeftSideLeaderItem.IsAttacker )]" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - autoresize = yes - max_width = 230 - margin_left = 7 - margin_bottom = 5 - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 5 0 } - - background = { - using = Background_Area_Dark - } - - text_single = { - text = "WAR_OVERVIEW_TOTAL_SOLDIERS" - layoutpolicy_horizontal = expanding - align = left - autoresize = no - margin_left = 7 - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox_soldiers_and_quality_small = { - datacontext = "[WarOverviewWindow.GetLeftSideComposition]" - } - - expand = {} - } - } - } - } - - vbox = { - layoutpolicy_vertical = expanding - - state = { - name = "war_overview_show" - next = b - alpha = 0 - } - - state = { - name = "b" - duration = 0.7 - delay = 0.3 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - - using = Background_WarOverview_Ally - - hbox = { - visible = "[GetVariableSystem.Exists( 'characterlist_left')]" - minimumsize = { 250 160 } - } - - expand = {} - - ### Multiple participants - hbox = { - minimumsize = { 250 160 } - visible = "[Not(GetVariableSystem.Exists( 'characterlist_left'))]" - - overlappingitembox = { - - datamodel = "[WarOverviewWindow.GetLeftSideMainParticipantItems]" - autoresize = yes - - item = { - portrait_shoulders = { - datacontext = "[WarParticipantItem.GetCharacter]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetParticipantTooltip]" - } - - } - } - } - } - - ### +Allies ### - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_group = { - onclick = "[GetVariableSystem.Toggle( 'characterlist_left' )]" - tooltip = "WAR_OVERVIEW_SHOW_ALLIES" - - hbox = { - set_parent_size_to_minimum = yes - minimumsize = { 0 30 } - margin = { 5 0 } - spacing = 3 - - background = { - using = Text_Label_Background - margin = { 5 0 } - } - - button_plus_small = { - onclick = "[GetVariableSystem.Toggle( 'characterlist_left' )]" - } - - text_single = { - text = "WAR_OVERVIEW_ALLIES_LEFT" - using = Font_Size_Small - align = nobaseline - } - } - } - } - - expand = {} - } - } - } - - ### EXPANDER FOR CENTER WIDGET ### - widget = { - size = { 790 300 } - } - - widget = { - name = "right" - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - size = { 0 295 } - allow_outside = yes - - hbox = { - allow_outside = yes - spacing = 50 - - vbox = { - layoutpolicy_vertical = expanding - - state = { - name = "war_overview_show" - next = b - alpha = 0 - } - - state = { - name = "b" - duration = 0.7 - delay = 0.3 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - - using = Background_WarOverview_Ally - - hbox = { - visible = "[GetVariableSystem.Exists( 'characterlist_right')]" - minimumsize = { 250 160 } - } - - expand = {} - - ### multiple participants - overlappingitembox = { - datamodel = "[WarOverviewWindow.GetRightSideMainParticipantItems]" - visible = "[Not(GetVariableSystem.Exists( 'characterlist_right'))]" - minimumsize = { 250 160 } - righttoleft = yes - - item = { - portrait_shoulders = { - datacontext = "[WarParticipantItem.GetCharacter]" - visible = "[Character.IsValid]" - - blockoverride "opinion_box" {} - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetParticipantTooltip]" - } - - - } - } - } - - ### +Allies ### - hbox = { - layoutpolicy_horizontal = expanding - - button_group = { - onclick = "[GetVariableSystem.Toggle( 'characterlist_right' )]" - tooltip = "WAR_OVERVIEW_SHOW_ALLIES" - - hbox = { - set_parent_size_to_minimum = yes - minimumsize = { 0 30 } - margin = { 5 0 } - spacing = 3 - - background = { - using = Text_Label_Background - margin = { 5 0 } - } - - button_plus_small = { - onclick = "[GetVariableSystem.Toggle( 'characterlist_right' )]" - } - text_single = { - text = "WAR_OVERVIEW_ALLIES_RIGHT" - using = Font_Size_Small - align = nobaseline - } - } - } - - expand = {} - } - - expand = {} - } - - portrait_war_overview = { - datacontext = "[WarOverviewWindow.GetRightSideLeaderItem]" - datacontext = "[WarParticipantItem.GetCharacter]" - margin_bottom = 65 - - blockoverride "portrait_transformation" - { - portrait_scale = { -1 1 } - portrait_offset = { 1 0 } - } - - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetLeaderTooltip]" - } - - state = { - name = "war_overview_show" - next = b - alpha = 0 - } - - state = { - name = "b" - duration = 0.5 - delay = 0.1 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - alpha = 0 - } - - ### DEFENDERS INFO RIGHT ### - vbox = { - name = "defenders_info_right" - margin_bottom = 65 - maximumsize = { 310 -1 } - - using = Background_WarOverview_3 - - state = { - name = "war_overview_show" - next = b - position_y = 300 - alpha = 0 - - delay = 0.1 - } - - state = { - name = "b" - next = "c" - duration = 0.3 - using = Animation_Curve_Default - - position_y = -2 - alpha = 1 - } - - state = { - name = "c" - duration = 0.05 - using = Animation_Curve_Default - - position_y = 0 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - - position_y = 300 - alpha = 0 - } - - expand = {} - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Text_Label_Background - margin_top = -24 - margin_bottom = -15 - } - - coa_realm_small_crown = { - datacontext = "[WarOverviewWindow.GetRightSideLeaderItem]" - datacontext = "[WarParticipantItem.GetCharacter]" - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[WarOverviewWindow.GetRightSideHeader]" - default_format = "#high" - using = Font_Size_Big - align = center - autoresize = no - fontsize_min = 14 - max_width = 185 - } - - expand = {} - } - - text_single = { - layoutpolicy_horizontal = expanding - text = "[WarOverviewWindow.GetWarStanceName( WarOverviewWindow.GetRightSideLeaderItem.IsAttacker )]" - tooltip = "[WarOverviewWindow.GetWarStanceDesc( WarOverviewWindow.GetRightSideLeaderItem.IsAttacker )]" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - autoresize = yes - max_width = 230 - margin_left = 7 - margin_bottom = 5 - } - - hbox = { - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area_Dark - } - - widget = { - size = { 55 60 } - - icon = { - parentanchor = right|vcenter - name = "icon_strength_balance" - datacontext = "[WarOverviewWindow.GetMilitaryStrengthInfo]" - texture = "gfx/interface/icons/icon_strength_balance.dds" - size = { 60 60 } - framesize = { 60 60 } - - frame = "[GuiMilitaryStrength.GetFrame]" - - tooltip = "[GuiMilitaryStrength.GetRatioDescription]" - using = tooltip_se - } - } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - text = "WAR_OVERVIEW_TOTAL_SOLDIERS" - layoutpolicy_horizontal = expanding - align = left - autoresize = no - margin_left = 7 - } - - hbox = { - layoutpolicy_horizontal = expanding - - hbox_soldiers_and_quality_small = { - datacontext = "[WarOverviewWindow.GetRightSideComposition]" - } - expand = {} - } - } - } - } - } - - expand = {} - } - } - } - - ### MAIN CENTER PANEL ### - widget = { - name = "main_center_panel" - size = { 622 0 } - allow_outside = yes - parentanchor = bottom|hcenter - minimumsize = { 600 315 } - - state = { - name = "war_overview_show" - next = b - position_y = 300 - alpha = 0 - } - - state = { - name = "b" - next = "c" - duration = 0.3 - using = Animation_Curve_Default - - position_y = -5 - alpha = 1 - } - - state = { - name = "c" - duration = 0.05 - using = Animation_Curve_Default - - position_y = 0 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.3 - using = Animation_Curve_Default - - position_y = 300 - alpha = 0 - } - - icon = { - name = "dust_cloud_left" - parentanchor = bottom|left - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - size = { 180 180 } - - using = Color_Grey - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - state = { - name = "war_overview_show" - next = d - duration = 0.25 - - delay = 0.1 - - animation = { - alpha = 1 - bezier = { 0 0 0.4 1 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -5 0 } - alpha = 1 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -5 0 } - alpha = 0.5 - } - - position_x = 0 - } - - state = { - name = d - next = e - - duration = 0.5 - using = Animation_Curve_Default - - animation = { - alpha = 0 - bezier = { 0.6 0 0.7 0.5 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -4.3 0 } - alpha = 1 - rotate_uv = 180 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -4.3 0 } - alpha = 0.3 - } - - - position_x = -200 - } - - state = { - name = e - - duration = 0.01 - - animation = { - alpha = 0 - bezier = { 0.6 0 0.7 0.5 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0 - rotate_uv = 360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 0 } - alpha = 0 - } - - position_x = 0 - } - } - - icon = { - name = "dust_cloud_right" - parentanchor = bottom|right - - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - size = { 180 180 } - - using = Color_Grey - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - modify_texture = { - name = "shimmer" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredTiled - } - - state = { - name = "war_overview_show" - next = d - duration = 0.25 - - delay = 0.1 - - animation = { - alpha = 1 - bezier = { 0 0 0.4 1 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -5 0 } - alpha = 1 - rotate_uv = 0 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -5 0 } - alpha = 0.5 - } - - position_x = 0 - } - - state = { - name = d - next = e - - duration = 0.5 - using = Animation_Curve_Default - - animation = { - alpha = 0 - bezier = { 0.6 0 0.7 0.5 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -4.3 0 } - alpha = 1 - rotate_uv = 180 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { -4.3 0 } - alpha = 0.3 - } - - - position_x = 200 - } - - state = { - name = e - - duration = 0.01 - - animation = { - alpha = 0 - bezier = { 0.6 0 0.7 0.5 } - } - - modify_texture = { - name = "shimmer" - translate_uv = { -0.1 0 } - alpha = 0 - rotate_uv = 360 - } - - modify_texture = { - name = "shimmer_2" - translate_uv = { 1 0 } - alpha = 0 - } - - position_x = 0 - } - } - - icon = { - texture = "gfx/interface/window_war/tile_frame_top_war_2.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - size = { 724 35 } - parentanchor = top|hcenter - position = { 0 54 } - } - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { 18 0 } - margin_top = -60 - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - widget = { - parentanchor = bottom|hcenter - - background = { - texture = "gfx/interface/component_tiles/tile_window_background_no_edge.dds" - spriteType = Corneredtiled - spriteborder = { 18 0 } - margin = { -3 0 } - texture_density = 2 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_effect.dds" - blend_mode = overlay - } - } - - ### FRAME DECORATION TOP ### - icon = { - visible = "[Not(WarOverviewWindow.IsGreatHolyWar)]" - texture = "gfx/interface/window_war/tile_frame_top_war.dds" - spriteType = Corneredtiled - spriteborder = { 100 0 } - size = { 754 22 } - parentanchor = top|hcenter - position = { -1 -14 } - } - - icon = { - name = "tile_frame_top_center_part" - texture = "gfx/interface/window_war/tile_frame_top.dds" - position = { 0 2 } - texture_density = 2 - - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - } - - ### GHW ### - widget = { - name = "title_frame_ghw" - visible = "[WarOverviewWindow.IsGreatHolyWar]" - size = { 630 80 } - using = GHW_Decoration - parentanchor = top|hcenter - widgetanchor = bottom|hcenter - } - - #### SIDEFRAMES #### - ### Right - background = { - texture = "gfx/interface/component_tiles/tile_frame_subwindow_01.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 0 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - rotate_uv = 180 - mirror = horizontal - } - } - - background = { - texture = "gfx/interface/component_tiles/tile_frame_subwindow_01.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 3 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - ### Left - background = { - name = "frame_border_left" - texture = "gfx/interface/component_tiles/tile_frame_subwindow_01.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 0 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - rotate_uv = 180 - mirror = horizontal - } - } - - background = { - name = "frame_border_right" - texture = "gfx/interface/component_tiles/tile_frame_subwindow_01.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 3 10 } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - mirror = horizontal - } - } - - #### MAIN CENTER PANEL CONTENTS #### - vbox = { - name = "center_panel_contents" - set_parent_size_to_minimum = yes - minimumsize = { 620 0 } - maximumsize = { 620 0 } - margin = { 10 0 } - - #### WAR OVERVIEW HEADER #### - vbox = { - name = "war_score_details" - layoutpolicy_horizontal = expanding - - ### CENTER PANEL HEADER ### - war_overview_center_panel_header = {} - - spacer = { - size = { 0 15 } - } - - ### CENTER PANEL WAR SCORE DETAILS ### - war_overview_center_panel_war_score_details = {} - - ### CENTER PANEL CONTRIBUTION AS ALLIED ### - war_overview_center_panel_contribution_as_allied = {} - } - - spacer = { - size = { 10 10 } - } - - ### CENTER PANEL WAR END TERMS ### - war_overview_center_panel_war_end_terms = {} - - ### SURRENDER | WHITE PEACE | ENFORCE DEMANDS ### - hbox = { - name = "tab_buttons" - ignoreinvisible = yes - margin = { 5 0 } - layoutpolicy_horizontal = expanding - - button_tab = { - name = "defeat_button" - layoutpolicy_horizontal = expanding - size = { 0 50 } - margin_left = 35 - mirror = vertical - - text = "TAB_DEFEAT" - - onclick = "[PdxGuiTriggerAllAnimations('war_end_terms_refresh')]" - onclick = "[WarOverviewWindow.SetEffectsTabDefeat]" - down = "[WarOverviewWindow.IsEffectsTabDefeat]" - - war_defeat = { - alwaystransparent = yes - parentanchor = left|vcenter - position = { 10 0 } - } - } - - button_tab = { - name = "white_peace_button" - layoutpolicy_horizontal = expanding - size = { 0 50 } - visible = "[WarOverviewWindow.GetWar.GetActiveCB.GetType.IsWhitePeacePossible]" - margin_left = 35 - mirror = vertical - - text = "TAB_WHITE_PEACE" - - onclick = "[PdxGuiTriggerAllAnimations('war_end_terms_refresh')]" - onclick = "[WarOverviewWindow.SetEffectsTabWhitePeace]" - down = "[WarOverviewWindow.IsEffectsTabWhitePeace]" - - war_peace = { - alwaystransparent = yes - parentanchor = left|vcenter - position = { 10 0 } - } - } - - button_tab = { - name = "victory_button" - layoutpolicy_horizontal = expanding - size = { 0 50 } - margin_left = 35 - mirror = vertical - - text = "TAB_VICTORY" - - onclick = "[PdxGuiTriggerAllAnimations('war_end_terms_refresh')]" - onclick = "[WarOverviewWindow.SetEffectsTabVictory]" - down = "[WarOverviewWindow.IsEffectsTabVictory]" - - war_victory = { - alwaystransparent = yes - parentanchor = left|vcenter - position = { 10 0 } - } - } - } - } - } - - #### STATUE LEFT #### - icon = { - name = "statue_left_defender" - texture = "gfx/interface/window_war/decoration_defender.dds" - visible = "[Not(WarOverviewWindow.IsLeftSideAttacker)]" - - size = { 120 270} - position = { -94 0 } - parentanchor = bottom|left - widgetanchor = bottom|left - } - - icon = { - name = "statue_left_attacker" - texture = "gfx/interface/window_war/decoration_attacker.dds" - visible = "[WarOverviewWindow.IsLeftSideAttacker]" - mirror = horizontal - - size = { 120 270} - position = { -94 0 } - parentanchor = bottom|left - widgetanchor = bottom|left - } - - #### STATUE RIGHT #### - icon = { - name = "statue_right_defender" - texture = "gfx/interface/window_war/decoration_attacker.dds" - visible = "[Not(WarOverviewWindow.IsLeftSideAttacker)]" - - size = { 120 270} - position = { 94 0 } - parentanchor = bottom|right - widgetanchor = bottom|right - } - - icon = { - name = "statue_right_attacker" - texture = "gfx/interface/window_war/decoration_defender.dds" - visible = "[WarOverviewWindow.IsLeftSideAttacker]" - mirror = horizontal - - size = { 120 270} - position = { 94 0 } - parentanchor = bottom|right - widgetanchor = bottom|right - } - } - - error_horse = { - parentanchor = bottom|left - position = { 610 -280 } - visible = "[And( Not( IsPauseMenuShown ), Not(ReleaseMode) )]" - } - } - - ### HOSTAGE EXCHANGE CHILD WINDOW ### - war_overview_exchange_hostage_window = {} - - #### ALLIES LIST LEFT #### - widget = { - name = "allies_list_left" - using = Window_Background_Subwindow - minimumsize = { 420 490 } - alwaystransparent = no - - position = { -310 0 } - parentanchor = hcenter - widgetanchor = right|vcenter - - focuspolicy = click - visible = "[GetVariableSystem.Exists( 'characterlist_left')]" - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'list_left_open', 'true' )]" - position_y = -35 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'list_left_open' )]" - position_y = 50 - } - - state = { - name = "ally_list_hide" - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'list_left_open' )]" - position_y = 50 - } - - vbox = { - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[WarOverviewWindow.GetLeftSideAlliesHeader]" - } - - blockoverride "button_close" - { - onclick = "[GetVariableSystem.Clear( 'characterlist_left')]" - } - } - - scrollbox = { - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - layoutpolicy_horizontal = expanding - - datamodel = "[WarOverviewWindow.GetLeftSideParticipantItems]" - - item = { - - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head_small = { - datacontext = "[WarParticipantItem.GetCharacter]" - blockoverride "opinion_box" {} - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetParticipantTooltip]" - } - } - - vbox = { - layoutpolicy_vertical = growing - layoutpolicy_horizontal = expanding - margin = { 10 5 } - - background = { - using = Background_Area_With_Header - } - - text_single = { - text = "[WarParticipantItem.GetCharacter.GetName]" - layoutpolicy_horizontal = expanding - align = left - autoresize = no - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - - hbox_soldiers_and_quality_small = { - datacontext = "[WarParticipantItem.GetComposition]" - } - - expand = { - layoutpolicy_vertical = growing - } - } - } - } - } - } - } - } - } - } - - #### ALLIES LIST RIGHT #### - widget = { - name = "allies_list_right" - using = Window_Background_Subwindow - minimumsize = { 420 490 } - alwaystransparent = no - - position = { 310 -50 } - parentanchor = hcenter - widgetanchor = left|vcenter - - focuspolicy = click - visible = "[GetVariableSystem.Exists( 'characterlist_right')]" - allow_outside = yes - - state = { - name = _show - using = Animation_FadeIn_Quick - on_start = "[GetVariableSystem.Set( 'list_right_open', 'true' )]" - position_y = -35 - } - - state = { - name = _hide - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'list_right_open' )]" - position_y = 50 - } - - state = { - name = "ally_list_hide" - using = Animation_FadeOut_Quick - on_start = "[GetVariableSystem.Clear( 'list_right_open' )]" - position_y = 50 - } - - vbox = { - margin = { 4 4 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" - { - text = "[WarOverviewWindow.GetRightSideAlliesHeader]" - } - - blockoverride "button_close" - { - onclick = "[GetVariableSystem.Clear( 'characterlist_right')]" - } - } - - scrollbox = { - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - blockoverride "scrollbox_content" { - vbox = { - datamodel = "[WarOverviewWindow.GetRightSideParticipantItems]" - layoutpolicy_horizontal = expanding - - item = { - hbox = { - layoutpolicy_horizontal = expanding - - portrait_head = { - datacontext = "[WarParticipantItem.GetCharacter]" - blockoverride "opinion_box" {} - blockoverride "portrait_button_template_tooltip" - { - tooltip = "[WarParticipantItem.GetParticipantTooltip]" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - margin = { 10 5 } - - background = { - using = Background_Area_With_Header - } - - text_single = { - text = "[WarParticipantItem.GetCharacter.GetName]" - autoresize = no - layoutpolicy_horizontal = expanding - align = left - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = growing - - hbox_soldiers_and_quality_small = { - datacontext = "[WarParticipantItem.GetComposition]" - } - - expand = { - layoutpolicy_vertical = growing - } - } - } - } - } - } - } - } - } - } -} - -template Background_WarOverview -{ - texture = "gfx/interface/window_war/window_background.dds" - spriteType = Corneredtiled - spriteborder_right = 410 - spriteborder_bottom = -10 -} - -template Background_WarOverview_2 -{ - texture = "gfx/interface/window_war/window_background_2.dds" - spriteType = Corneredtiled - spriteborder_bottom = -10 -} - -template Background_WarOverview_Pattern -{ - texture = "gfx/interface/component_masks/patterns/mask_pattern_03.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - texture_density = 0.6 - - modify_texture = { - texture = "gfx/interface/window_war/window_background.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - } -} - -template Background_WarOverview_Pattern_2 -{ - texture = "gfx/interface/component_masks/patterns/mask_pattern_03.dds" - spriteType = corneredtiled - color = { 0.1 0.1 0.12 1 } - texture_density = 0.6 - - modify_texture = { - texture = "gfx/interface/window_war/window_background_2.dds" - blend_mode = alphamultiply - } - - modify_texture = { - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - } -} - -template Background_WarOverview_Frame -{ - texture = "gfx/interface/window_war/window_frame.dds" - spriteType = Corneredtiled - spriteborder_right = 410 - spriteborder_bottom = -10 -} - -template Background_WarOverview_Frame_2 -{ - texture = "gfx/interface/window_war/window_frame_2.dds" - spriteType = Corneredtiled - spriteborder_bottom = -10 -} - -template Background_WarOverview_Ally -{ - - background = { - using = Background_Area_Solid - margin = { 10 0 } - margin_top = -145 - margin_bottom = -85 - } - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { 5 -5 } - margin_top = -150 - margin_bottom = -90 - - alpha = 0.4 - - spriteType = Corneredtiled - spriteborder = { 3 3 } - } -} - -template Background_WarOverview_3 -{ - background = { - name = "background" - texture = "gfx/interface/component_tiles/tile_window_background_no_edge.dds" - - spriteType = Corneredtiled - spriteborder = { 5 5 } - color = { 1.77 1.77 1.80 1 } - texture_density = 2 - - margin_top = -89 - alpha = 0.5 - - modify_texture = { - texture = "gfx/interface/component_overlay/overlay_window.dds" - blend_mode = overlay - } - } - - background = { - texture = "gfx/interface/component_tiles/tile_frame_subwindow_01.dds" - - spriteType = Corneredtiled - spriteborder = { 10 10 } - - margin = { 5 0} - margin_top = -84 - } -} - -### ANIMATIONS -template Animation_WarOverview_Blood -{ - state = { - name = "war_overview_show" - next = b - delay = 0.5 - alpha = 0 - } - - state = { - name = b - duration = 3.5 - alpha = 1 - } - - state = { - name = "war_overview_hide" - duration = 0.25 - using = Animation_Curve_Default - alpha = 0 - } -} - -types WarOverView -{ - type icon_blood_splatter = highlight_icon { - size = { 474 270 } - parentanchor = bottom|hcenter - - texture = "gfx/interface/window_war/blood.dds" - spriteType = Corneredtiled - spriteborder_right = 410 - - modify_texture = { - name = "mask" - texture = "gfx/interface/window_war/window_frame_broken.dds" - blend_mode = mask - } - - using = Animation_WarOverview_Blood - } - - type icon_blood_splatter_2 = highlight_icon { - size = { 350 270 } - parentanchor = bottom|hcenter - - texture = "gfx/interface/window_war/blood_2.dds" - spriteType = Corneredtiled - spriteborder = { 238 0 } - spriteborder_bottom = -10 - - modify_texture = { - name = "mask" - texture = "gfx/interface/component_masks/mask_fade_circle.dds" - blend_mode = mask - } - - using = Animation_WarOverview_Blood - } - - type icon_cloth_tears = highlight_icon { - size = { 474 280 } - parentanchor = bottom|hcenter - - texture = "gfx/interface/window_war/window_frame_broken.dds" - spriteType = Corneredtiled - spriteborder_right = 410 - spriteborder_bottom = -10 - - using = Animation_ShowHide_Standard - } - - type icon_cloth_tears_2 = highlight_icon { - size = { 350 280 } - parentanchor = bottom|hcenter - - texture = "gfx/interface/window_war/window_frame_broken_2.dds" - spriteType = Corneredtiled - spriteborder_bottom = -10 - - using = Animation_ShowHide_Standard - } - - type war_overview_center_panel_header = vbox { - name = "header_bar" - layoutpolicy_horizontal = expanding - margin_bottom = 5 - - background = { - texture = "gfx/interface/component_tiles/tile_background_window_header.dds" - spriteType = Corneredtiled - spriteborder = { 20 20 } - margin = { 5 0 } - margin_top = 3 - margin_bottom = 13 - } - - hbox = { - layoutpolicy_horizontal = expanding - maximumsize = { 600 0 } - - expand = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - } - - text_single = { - text = "[WarOverviewWindow.GetWar.GetName]" - using = Font_Type_Flavor - using = Font_Size_Big - default_format = "#high" - align = center|nobaseline - max_width = 500 - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutstretchfactor_horizontal = 1 - - expand = {} - - buttons_window_control = { - blockoverride "button_close" - { - onclick = "[WarOverviewWindow.Close]" - onclick = "[PdxGuiTriggerAllAnimations('ally_list_hide')]" - onclick = "[GetVariableSystem.Clear( 'characterlist_left' )]" - onclick = "[GetVariableSystem.Clear( 'characterlist_right' )]" - } - } - } - - watch_window_button = { - size = { 60 40 } - onclick = "[AddWatchWindow( WarOverviewWindow.GetWar.MakeScope )]" - } - } - - hbox = { - margin = { 15 0 } - spacing = 5 - - text_single = { - name = "start_date" - text = "WAR_OVERVIEW_STARTED" - using = Font_Size_Small - align = nobaseline - default_format = "#weak" - } - - icon = { - name = "cb_icon" - texture = "[WarOverviewWindow.GetWar.GetActiveCB.GetType.GetIcon]" - size = { 25 25 } - tooltip = "[WarOverviewWindow.GetWar.GetActiveCB.GetType.GetName]" - } - } - } - - type war_overview_center_panel_war_score_details = vbox { - name = "tutorial_highlight_war_score_details" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - background = { - using = Background_Area_Dark - } - - vbox = { - layoutpolicy_horizontal = expanding - tooltip = "[WarOverviewWindow.GetWarScoreTooltip]" - margin = { 0 5 } - spacing = 3 - - hbox = { - layoutpolicy_horizontal = expanding - margin = { 25 0 } - spacing = 10 - - text_single = { - name = "warscore_header" - text = "[war_score|E]" - using = Font_Size_Big - align = nobaseline - } - - text_single = { - name = "warscore" - text = "[WarOverviewWindow.GetWarScore]" - using = Font_Size_Big - align = nobaseline - } - - expand = {} - - hbox = { - name = "war_score_categories" - margin = { 15 0 } - spacing = 10 - - hbox = { - name = "warscore_objectives" - spacing = 3 - tooltip = "[WarOverviewWindow.GetTickingWarScoreTooltip]" - tooltip_offset = { 0 50 } - - icon = { - name = "icon_a" - size = { 30 30 } - texture = "gfx/interface/icons/war_score/icon_war_score_objectives.dds" - } - - text_single = { - name = "ticking_warscore" - min_width = 30 - align = nobaseline - text = "[WarOverviewWindow.GetTickingWarScore]" - } - } - - hbox = { - name = "warscore_battles" - spacing = 3 - tooltip = "[WarOverviewWindow.GetBattlesWarScoreTooltip]" - tooltip_offset = { 0 50 } - - icon = { - name = "icon_b" - - size = { 30 30 } - texture = "gfx/interface/icons/war_score/icon_war_score_battles.dds" - } - - text_single = { - name = "battles_warscore" - min_width = 30 - align = nobaseline - text = "[WarOverviewWindow.GetBattlesWarScore]" - } - - text_single = { - name = "battles_warscore_capped" - visible = "[WarOverviewWindow.IsBattlesWarScoreCapped]" - align = nobaseline - text = "BATTLES_WAR_SCORE_CAPPED" - default_format = "#N" - } - } - - hbox = { - name = "warscore_occupation" - spacing = 3 - tooltip = "[WarOverviewWindow.GetOccupationWarScoreTooltip]" - tooltip_offset = { 0 50 } - - icon = { - name = "icon_c" - size = { 30 30 } - texture = "gfx/interface/icons/icon_holding_castle.dds" - } - text_single = { - name = "occupation_warscore" - min_width = 30 - align = nobaseline - text = "[WarOverviewWindow.GetOccupationWarScore]" - } - } - - hbox = { - name = "warscore_prisoners" - spacing = 3 - tooltip = "[WarOverviewWindow.GetImprisonmentWarScoreTooltip]" - tooltip_offset = { 0 50 } - - icon = { - name = "icon_d" - size = { 30 30 } - texture = "gfx/interface/icons/war_score/icon_war_score_prisoners.dds" - } - - text_single = { - name = "prisoners_warscore" - min_width = 30 - align = nobaseline - text = "[WarOverviewWindow.GetImprisonmentWarScore]" - } - } - } - } - - hbox = { - name = "score_progress" - margin = { 0 4 } - spacing = 15 - - text_single = { - name = "max_warscore" - align = right|nobaseline - raw_text = "-100" - using = Font_Size_Medium - default_format = "#low" - } - - #### WAR SCORE PROGRESSBAR ### - widget = { - size = { 450 20 } - - widget = { - size = { 100% 100% } - scissor = yes - - hbox = { - - #### BAR FILL LEFT #### - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMax( WarOverviewWindow.GetProgressbarWarScore, '(float)100' )]" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/war_progress_blue.dds" - spriteType = Corneredtiled - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/gold.dds" - alpha = 0 - } - - state = { - trigger_on_create = yes - name = war_overview_show - next = a - delay = 0.5 - duration = 0.0 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { 1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.1 - } - } - - state = { - name = a - duration = 0.75 - bezier = { 0.5 0.1 1 1} - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.4 - } - } - } - - ### GHW BAR ### - icon = { - visible = "[WarOverviewWindow.IsGreatHolyWar]" - size = { 100% 100% } - texture = "gfx/interface/progressbars/war_progress_ghw.dds" - spriteType = Corneredtiled - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/gold.dds" - alpha = 0 - } - - state = { - trigger_on_create = yes - name = war_overview_show - next = a - delay = 0.5 - duration = 0.0 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { 1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.1 - } - } - - state = { - name = a - duration = 0.75 - bezier = { 0.5 0.1 1 1} - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.4 - } - } - } - - icon = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = right|vcenter - position = { 5 0 } - - size = { 20 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - icon = { - visible = "[GreaterThanOrEqualTo_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = right|vcenter - position = { 20 0 } - - size = { 80 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - ### PROGRESS BAR EFFECTS LEFT ### - widget = { - visible = "[GreaterThanOrEqualTo_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - size = { 100% 100% } - - widget = { - size = { 100% 100% } - scissor = yes - - icon = { - parentanchor = right - size = { 160 100% } - texture = "gfx/interface/colors/white.dds" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - alpha = 0.4 - - using = Color_Bright_Yellow - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 2 - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = a - duration = 4 - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - } - } - } - } - - #### BAR FILL RIGHT #### - widget = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - layoutstretchfactor_horizontal = "[GetProgressBarValueMaxOther( WarOverviewWindow.GetProgressbarWarScore, '(float)100' )]" - - icon = { - size = { 100% 100% } - texture = "gfx/interface/progressbars/war_progress_red.dds" - spriteType = Corneredtiled - - modify_texture = { - name = overlay - texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_solid.dds" - blend_mode = mask - } - - modify_texture = { - name = "flash" - texture = "gfx/interface/colors/gold.dds" - alpha = 0 - } - - state = { - trigger_on_create = yes - name = war_overview_show - next = a - delay = 0.5 - duration = 0.0 - using = Animation_Curve_Default - - modify_texture = { - name = overlay - translate_uv = { -1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.1 - } - } - - state = { - name = a - duration = 0.75 - bezier = { 0.5 0.1 1 1} - - modify_texture = { - name = overlay - translate_uv = { 1 0 } - } - - modify_texture = { - name = "flash" - alpha = 0.4 - } - } - } - - ### PROGRESS BAR EFFECTS RIGHT ### - icon = { - visible = "[GreaterThanOrEqualTo_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = left|vcenter - position = { -5 0 } - mirror = horizontal - - size = { 20 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - icon = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - using = Animation_ShowHide_Standard - parentanchor = left|vcenter - position = { -20 0 } - mirror = horizontal - - size = { 80 100% } - texture = "gfx/interface/progressbars/progressbar_center_glow.dds" - - state = { - name = a - next = b - trigger_on_create = yes - duration = 0.1 - alpha = 1 - } - - state = { - name = b - next = a - duration = 0.2 - alpha = 0.9 - } - } - - widget = { - visible = "[LessThan_float( WarOverviewWindow.GetProgressbarWarScore, '(float)50' )]" - using = Animation_ShowHide_Standard - size = { 100% 100% } - - widget = { - size = { 100% 100% } - scissor = yes - - icon = { - parentanchor = left - mirror = horizontal - - size = { 160 100% } - texture = "gfx/interface/colors/white.dds" - shaderfile = "gfx/FX/pdxgui_repeat_texture.shader" - alpha = 0.4 - - using = Color_Bright_Yellow - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" - blend_mode = alphamultiply - } - - modify_texture = { - name = "clouds" - texture = "gfx/interface/component_masks/mask_clouds.dds" - blend_mode = alphamultiply - spriteType = corneredtiled - texture_density = 2 - } - - state = { - name = a - next = b - trigger_on_create = yes - - modify_texture = { - name = "clouds" - translate_uv = { -1 0 } - } - } - - state = { - name = b - next = a - duration = 4 - - modify_texture = { - name = "clouds" - translate_uv = { 1 0 } - } - } - } - } - } - } - } - } - - widget = { - name = "power_bar_frame" - parentanchor = top - size = { 100% 100% } - alwaystransparent = yes - - background = { - texture = "gfx/interface/progressbars/progress_frame_war.dds" - spriteType = Corneredstretched - spriteborder = { 10 10 } - margin = { 5 4 } - } - } - } - - text_single = { - name = "min_warscore" - align = nobaseline - raw_text = "+100" - using = Font_Size_Medium - default_format = "#low" - } - } - } - } - - type war_overview_center_panel_contribution_as_allied = hbox { - layoutpolicy_horizontal = expanding - margin = { 10 0 } - spacing = 12 - - background = { - using = Background_Area - } - - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[WarOverviewWindow.GetPlayerParticipantItem]" - visible = "[WarParticipantItem.ShowContribution]" - visible_at_creation = no - margin = { 0 5 } - - text_single = { - text = "WAR_OVERVIEW_MY_CONTRIBUTION" - } - - hbox = { - layoutpolicy_horizontal = expanding - - text_single = { - align = center - text = "[WarParticipantItem.GetContribution]" - } - - text_single = { - align = center - text = "[WarParticipantItem.GetContributionPercentage|%]" - } - - text_single = { - visible = "[And( WarOverviewWindow.ShowContributionRank, EqualTo_int32( WarOverviewWindow.GetContributionRank(GetPlayer), '(int32)0' ) )]" - align = center - text = "WAR_OVERVIEW_CONTRIBUTION_NO_RANK" - } - - text_single = { - visible = "[And( WarOverviewWindow.ShowContributionRank, GreaterThan_int32( WarOverviewWindow.GetContributionRank(GetPlayer), '(int32)0' ) )]" - align = center - text = "WAR_OVERVIEW_CONTRIBUTION_RANK" - } - } - - tooltip = "[WarParticipantItem.GetContributionTooltip]" - } - - divider_light = { - layoutpolicy_vertical = expanding - visible = "[WarOverviewWindow.ShowBeneficiary]" - visible_at_creation = no - - } - - hbox = { - name = "ghw_info" - layoutpolicy_horizontal = expanding - visible = "[WarOverviewWindow.ShowBeneficiary]" - visible_at_creation = no - - margin = { 0 5 } - - vbox = { - layoutpolicy_horizontal = expanding - - text_single = { - name = "beneficiary" - layoutpolicy_horizontal = expanding - align = left - text = "WAR_OVERVIEW_BENEFICIARY" - } - - text_single = { - name = "beneficiary_name" - layoutpolicy_horizontal = expanding - align = left - text = "[WarOverviewWindow.GetBeneficiaryName]" - } - } - - button_round = { - name = "change_beneficiary" - alwaystransparent = no - - button_replace = { - onclick = "[OpenCharacterInteraction( 'select_ghw_beneficiary_interaction', GetPlayer )]" - parentanchor = center - } - - tooltip = "SELECT_GHW_BENEFICIARY" - } - } - } - - type war_overview_center_panel_war_end_terms = widget { - visible = "[WarOverviewWindow.IsPeaceTermsOpen]" - visible_at_creation = no - layoutpolicy_horizontal = expanding - size = { 0 680 } - scissor = yes - - state = { - name = _show - duration = 0.1 - using = Animation_Curve_Default - - alpha = 1 - size = { 0 480 } - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_show" - } - } - - state = { - name = _hide - duration = 0.3 - using = Animation_Curve_Default - - alpha = 0 - size = { 0 0 } - start_sound = { - soundeffect = "event:/SFX/UI/Generic/Windows/sfx_ui_generic_window_standard_hide" - } - } - - vbox = { - ### CENTER PANEL HOSTAGE EXCHANGE ### - spacer = { - size = { 0 4 } - } - war_overview_center_panel_hostage_exchange = {} - - ### CENTER PANEL WAR END TERMS ### - margin = { 5 0 } - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - spacing = 5 - margin = { 15 15 } - - background = { - using = Background_Tab_Area - mirror = vertical - } - - state = { - name = "war_end_terms_refresh" - next = "b" - using = Animation_Refresh_FadeOut - } - - state = { - name = "b" - using = Animation_Refresh_FadeIn - } - - scrollbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "scrollbox_content" - { - vbox = { - name = "effects_text" - - text_single = { - name = "main_end_war_effect" - autoresize = yes - maximumsize = { 520 -1 } - minimumsize = { 520 -1 } - text = "[WarOverviewWindow.GetCurrentTabMainOutputDescription]" - default_format = "#high" - multiline = yes - } - - text_single = { - name = "main_end_war_effect_spacing" - autoresize = yes - maximumsize = { 520 -1 } - minimumsize = { 520 -1 } - raw_text = " " - multiline = yes - } - - text_single = { - name = "other_end_war_effects" - autoresize = yes - maximumsize = { 520 -1 } - minimumsize = { 520 -1 } - text = "[WarOverviewWindow.GetCurrentTabEffectsDescription]" - multiline = yes - margin_bottom = 5 - } - } - } - } - - widget = { - name = "acceptance" - size = { 400 50 } - visible = "[And(WarOverviewWindow.IsPlayerParticipant, WarOverviewWindow.NeedsAnswer)]" - tooltip = "[WarOverviewWindow.GetAnswerReason]" - - progressbar_standard = { - name = "answer_chance" - size = { 300 35 } - position = { 0 6 } - value = "[WarOverviewWindow.GetAnswerScore]" - parentanchor = hcenter - } - - text_single = { - name = "answer" - size = { 100 40 } - position = { 0 10 } - align = center - text = "[WarOverviewWindow.GetAnswer]" - parentanchor = hcenter - } - } - - expand = { - visible = "[Not(And(WarOverviewWindow.IsPlayerParticipant, WarOverviewWindow.NeedsAnswer))]" - size = { 400 50 } - } - - ### SEND BUTTON - button_primary = { - name = "send_button" - visible = "[WarOverviewWindow.IsPlayerParticipant]" - size = { 400 42 } - text = "[WarOverviewWindow.GetSendButtonLabel]" - enabled = "[WarOverviewWindow.CanSend]" - onclick = "[WarOverviewWindow.Send]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_advance" - tooltip = "[WarOverviewWindow.GetSendButtonTooltip]" - - animation_aggressive = { - name = "vicotry_glow" - visible = "[WarOverviewWindow.CanSendVictoryDemand]" - } - } - } - } - } - - type war_overview_empty_hostage_portrait = widget { - size = { 85 90 } - - background = { - using = Background_Area_Solid - - modify_texture = { - texture = "gfx/interface/component_masks/mask_fade_vertical.dds" - blend_mode = alphamultiply - alpha = 0.2 - mirror = vertical - } - } - - widget = { - size = { 100% 100% } - - background = { - texture = "gfx/portraits/portrait_frame.dds" - using = Color_Grey - margin = { -4 -4 } - alpha = 0.5 - } - } - - button = { - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - size = { 100% 100% } - enabled = "[HostageExchangeWindow.CanExchangeHostage]" - - block "onclick_event" {} - - name = "position_portrait_tutorial_uses_this" - - highlight_icon = { - name = "portrait_unknown_head_small_glow" - parentanchor = center - position = { 3 -9 } - gfxtype = framedbuttongfx - effectname = "NoHighlight" - texture = "gfx/portraits/unknown_portraits/button_unknown_head.dds" - size = { 80 100 } - framesize = { 384 480 } - upframe = 1 - overframe = 2 - } - - button_plus = { - visible = "[HostageExchangeWindow.CanExchangeHostage]" - parentanchor = center - position = { 0 0 } - block "onclick_plus" {} - } - } - } - - type war_overview_center_panel_hostage_exchange = hbox { - name = "center_panel_hostage_exchange" - visible = "[Not( WarOverviewWindow.IsEffectsTabDefeat )]" - layoutpolicy_horizontal = expanding - margin = { 0 5 } - - background = { - using = Background_Area_Dark - } - - vbox = { - layoutpolicy_horizontal = expanding - visible = "[Not( WarOverviewWindow.DoesAllowHostages )]" - margin = { 24 5 } - - text_single = { - layoutpolicy_horizontal = expanding - text = "WAR_OVERVIEW_HOSTAGES_DISALLOWED" - default_format = "#weak" - } - text_single = { - layoutpolicy_horizontal = expanding - text = "WAR_OVERVIEW_HOSTAGES_DISALLOWED_LANDLESS_ADVENTURER" - default_format = "#weak" - } - } - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - visible = "[WarOverviewWindow.DoesAllowHostages]" - - text_single = { - layoutpolicy_horizontal = expanding - visible = "[And( WarOverviewWindow.DoesAllowHostages, WarOverviewWindow.GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' ))]" - margin = { 24 5 } - margin_top = 0 - text = "WAR_OVERVIEW_HOSTAGES_DISALLOWED_LANDLESS_ADVENTURER" - default_format = "#weak" - } - - hbox = { - name = "hostage_exchange" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - visible = "[And( WarOverviewWindow.DoesAllowHostages, Not( WarOverviewWindow.GetPlayer.GetGovernment.IsType( 'landless_adventurer_government' )))]" - - ### HOSTAGE PORTRAIT LEFT ### - vbox = { - margin_left = 24 - war_overview_empty_hostage_portrait = { - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - visible = "[Not( HostageExchangeWindow.HasSelectedOfferCharacter )]" - blockoverride "onclick_event" - { - onclick = "[HostageExchangeWindow.OpenOfferHostage]" - } - blockoverride "onclick_plus" - { - onclick = "[HostageExchangeWindow.OpenOfferHostage]" - } - tooltip = "WAR_OVERVIEW_HOSTAGE_PICK_OFFER" - } - portrait_head_small = { - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - datacontext = "[HostageExchangeWindow.GetOfferCharacter]" - visible = "[HostageExchangeWindow.HasSelectedOfferCharacter]" - - blockoverride "opinion_box" {} - blockoverride "portrait_button_template_onclick" { - onclick = "[HostageExchangeWindow.OpenOfferHostage]" - } - tooltip = "WAR_OVERVIEW_HOSTAGE_PICK_OFFER" - } - text_label_center = { - text = "WAR_OVERVIEW_HOSTAGE_OFFER" - } - } - - ### EXCHANGE HOSTAGE SUMMARY ### - vbox = { - margin_left = 15 - - hbox = { - layoutpolicy_horizontal = expanding - text_single = { - text = "exchange_hostage_interaction" - using = Font_Size_Medium - default_format = "#high" - align = nobaseline - } - expand = {} - } - text_single = { - autoresize = yes - maximumsize = { 360 -1 } - minimumsize = { 360 -1 } - text = "WAR_OVERVIEW_HOSTAGE_INFO" - multiline = yes - margin_bottom = 5 - } - } - - expand = {} - - ### HOSTAGE PORTRAIT RIGHT ### - vbox = { - margin_right = 24 - war_overview_empty_hostage_portrait = { - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - visible = "[Not( HostageExchangeWindow.HasSelectedDemandCharacter )]" - - blockoverride "onclick_event" - { - onclick = "[HostageExchangeWindow.OpenDemandHostage]" - } - blockoverride "onclick_plus" - { - onclick = "[HostageExchangeWindow.OpenDemandHostage]" - } - tooltip = "WAR_OVERVIEW_HOSTAGE_PICK_DEMAND" - } - portrait_head_small = { - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - datacontext = "[HostageExchangeWindow.GetDemandCharacter]" - visible = "[HostageExchangeWindow.HasSelectedDemandCharacter]" - - blockoverride "opinion_box" {} - blockoverride "portrait_button_template_onclick" { - onclick = "[HostageExchangeWindow.OpenDemandHostage]" - } - tooltip = "WAR_OVERVIEW_HOSTAGE_PICK_DEMAND" - } - - text_label_center = { - text = "WAR_OVERVIEW_HOSTAGE_DEMAND" - } - } - } - } - } - - type war_overview_exchange_hostage_window = window { - name = "window_exchange_hostages" - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - visible = "[HostageExchangeWindow.IsOpen]" - - using = Window_Background - using = Window_Decoration_Spike - - minimumsize = { 800 980 } - alwaystransparent = no - - position = { 0 -340 } - parentanchor = center - widgetanchor = center - - focuspolicy = click - movable = yes - allow_outside = yes - - vbox = { - using = Window_Margins - - header_pattern = { - layoutpolicy_horizontal = expanding - - icon = { - size = { 50 50 } - texture = "gfx/interface/icons/character_interactions/icon_hostage.dds" - } - - blockoverride "header_text" - { - text = "[HostageExchangeWindow.GetHeader]" - } - - blockoverride "button_close" - { - onclick = "[HostageExchangeWindow.Close]" - } - } - - war_overview_hostage_exchange_portraits = {} - - vbox = { - name = "action_information_bar" - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_bottom = 10 - - background = { - using = Background_Area - } - - text_single = { - name = "select_someone_label" - text = "[HostageExchangeWindow.GetActionInfo]" - default_format = "#I" - } - } - - war_overview_character_list = { - datacontext = "[HostageExchangeWindow.GetCharacterList]" - } - - vbox = { - name = "send_offer_window" - margin = { 0 10 } - - button_primary = { - size = { 400 42 } - block "button_content" {} - text = "CONFIRM" - onclick = "[HostageExchangeWindow.Send]" - enabled = "[HostageExchangeWindow.CanSend]" - clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_confirm" - } - } - - expand = {} - } - window_character_filter = { - datacontext = "[HostageExchangeWindow.GetCharacterList]" - } - } - - type war_overview_character_list = vbox { - name = "character_list" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - vbox = { - layoutpolicy_horizontal = expanding - margin_top = 5 - margin_bottom = 10 - - background = { - using = Background_Area - } - - text_single = { - name = "select_someone_label" - default_format = "#I" - } - } - - ### List - vbox_character_list = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - blockoverride "container_implementation" - { - vbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - - item = { - ### Character List Items ### - war_overview_hostage_list_item = { - block "item_size" { - size = { 650 110 } - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - } - - type war_overview_hostage_list = vbox { - name = "character_list" - spacing = 3 - - block "sort_buttons" - { - hbox_list_sort_buttons = { - layoutpolicy_horizontal = expanding - - blockoverride "margins" { - margin_left = 20 - margin_right = 23 - margin_top = 5 - spacing = 5 - } - } - } - - block "special_character" {} - - scrollbox = { - - name = "characters_scroll_area" - layoutpolicy_vertical = expanding - layoutpolicy_horizontal = expanding - - block "scrollbox_properties" - { - } - - blockoverride "scrollbox_content" { - - block "container_implementation" { - vbox = { - name = "characters_grid" - datamodel = "[CharacterSelectionList.GetList]" - visible = "[Not(CharacterSelectionList.IsBuildingList)]" - layoutpolicy_horizontal = expanding - - item = { - widget_character_list_item = { - block "item_size" { - size = { 650 110 } - layoutpolicy_horizontal = expanding - } - } - } - } - } - } - - blockoverride "scrollbox_empty" - { - block "scrollbox_empty_visibility" - { - layoutpolicy_vertical = expanding - visible = "[IsDataModelEmpty( CharacterSelectionList.GetList )]" - text = "NO_CHARACTERS_TO_SELECT" - } - } - } - - block "character_count" - { - hbox = { - layoutpolicy_horizontal = growing - margin = { 25 5 } - margin_bottom = 8 - spacing = 5 - - block "bottom_bar" {} - - expand = {} - - widget = { - size = { 20 15 } - - warning_icon = { - size = { 25 25 } - visible = "[Not( CharacterSelectionList.IsAllDefault )]" - tooltip = "CHARACTER_FINDER_FILTER_SET" - position = { -3 -5 } - } - } - - text_single = { - name = "character_count" - datacontext = "[CharacterSelectionList]" - text = "CHARACTER_FINDER_COUNT" - align = center|nobaseline - default_format = "#low" - } - } - } - } - - type war_overview_hostage_exchange_portraits = vbox { - name = "hostage_exchange_character_portraits" - datacontext = "[WarOverviewWindow.GetHostageExchangeWindow]" - - margin = { 10 10 } - layoutpolicy_horizontal = expanding - - background = { - texture = "gfx/interface/illustrations/event_scenes/study.dds" - alpha = 0.5 - fittype = centercrop - using = Mask_Rough_Edges - } - - hbox = { - layoutpolicy_horizontal = expanding - - ### Left - margin_left = 30 - portrait_shoulders = { - name = "left_background_portrait" - datacontext = "[HostageExchangeWindow.GetActor]" - visible = "[Character.IsValid]" - } - - expand = {} - - vbox = { - layoutpolicy_vertical = expanding - margin = { 10 10 } - - expand = {} - - portrait_head = { - datacontext = "[HostageExchangeWindow.GetSecondaryActor]" - } - } - - expand = {} - - ### Right - margin_right = 30 - portrait_shoulders = { - name = "right_background_portrait" - datacontext = "[HostageExchangeWindow.GetRecipient]" - visible = "[And( Character.IsValid, Not( ObjectsEqual( HostageExchangeWindow.GetActor, HostageExchangeWindow.GetRecipient ) ) )]" - } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 10 - allow_outside = yes - - hbox = { - minimumsize = { 190 0 } - text_label_center = { - text = "[HostageExchangeWindow.GetLabelLeft]" - } - } - - expand = {} - - ### CLEAR BUTTON - container = { - button_round = { - name = "clear_hostage_character" - alwaystransparent = no - tooltip = "CLEAR_MARRIED_CHARACTER" - using = tooltip_below - - block "button_clear" - { - enabled = "[HostageExchangeWindow.CanClear]" - onclick = "[HostageExchangeWindow.OnClear]" - } - - button_clear = { - alwaystransparent = yes - parentanchor = center - } - } - } - - expand = {} - - hbox = { - minimumsize = { 190 0 } - text_label_center = { - text = "[HostageExchangeWindow.GetLabelRight]" - } - } - } - } - - type war_overview_hostage_list_item = widget { - datacontext = "[CharacterListItem.GetCharacter]" - size = { 10 110 } - - block "divider" { - divider = { - parentanchor = bottom|hcenter - size = { 100% 3 } - } - } - - block "widget" {} - - hbox = { - margin = { 0 5 } - spacing = 15 - - portrait_head_small = {} - - button_standard = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - onclick = "[CharacterListItem.OnClick('character')]" - enabled = "[CharacterListItem.IsSelectable]" - tooltip = "[CharacterListItem.GetUnselectableReason]" - - framesize = { 252 80 } - spriteType = Corneredtiled - spriteborder = { 10 30 } - texture = "gfx/interface/buttons/button_entry_characterlist.dds" - - block "button" {} - - character_list_arrow = { - name = "character_list_arrow" - } - - block "overlay" { - using = default_character_list_overlay - } - - block "button_content" - { - hbox = { - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Name and age - vbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - text_single = { - layoutpolicy_horizontal = expanding - using = Font_Size_Medium - autoresize = no - alwaystransparent = yes - - text = "[Character.GetUINameNoTooltip]" - } - - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - using = character_age_or_death_text - blockoverride "list_layout" {} - - block "character_relation" - { - text_single = { - name = "character_relation" - layoutpolicy_horizontal = expanding - raw_text = "| [Character.GetRelationToString( GetPlayer )]" - tooltip = "EXTENDED_RELATIONS_TOOLTIP" - default_format = "#low" - autoresize = no - align = nobaseline - visible = "[Character.HasRelationTo( GetPlayer )]" - alwaystransparent = yes - } - - expand = { - visible = "[Not(Character.HasRelationTo( GetPlayer ))]" - } - } - } - block "character_description_extra" {} - } - - # Dynasty - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 5 - - widget = { - size = { 45 60 } - - coa_house_small = { - datacontext = "[Character.GetHouse]" - scale = 0.7 - } - } - - # Traits - - fixedgridbox = { - name = "traits_grid" - datamodel = "[CharacterListItem.GetTraits]" - flipdirection = yes - size = { 150 60 } - addcolumn = 30 - addrow = 45 - maxhorizontalslots = 8 - maxverticalslots = 1 - - item = { - container = { - visible = "[Trait.IsValid]" - - icon_trait = { - blockoverride "icon_size" - { - size = { 30 30 } - } - - blockoverride "tooltip_placement" - { - using = tooltip_se - } - - blockoverride "glow_radius" - { - glow_radius = 3 - } - } - } - } - } - - block "bottom_middle_box" { - expand = {} - } - - } - } - - vbox = { - minimumsize = { 200 0 } - datacontext = "[CharacterListItem.GetCharacter]" - layoutpolicy_vertical = expanding - margin_top = 5 - margin_right = 5 - - # Skills - hbox = { - name = "skills_grid" - layoutpolicy_horizontal = expanding - - expand = {} - - datamodel = "[CharacterListItem.GetSkillItems]" - margin_right = 5 - - item = { - widget_skill_item_no_icon = {} - } - } - - block "extra_skills" {} - - expand = {} - - block "bottom_right_box" - { - hbox = { - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - # Realm - widget = { - size = { 55 58 } - visible = "[Not( IsDataModelEmpty( CharacterListItem.GetTitleItems ) )]" - - block "claims_visibility" {} - - datacontext = "[CharacterListItem.GetFirstClaim]" - - coa_title_tiny_crown = { - using = tooltip_ne - datacontext = "[Claim.GetTitle]" - - highlight_icon = { - name = "pressed_claim" - visible = "[And(Claim.IsPressed, Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_pressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "unpressed_claim" - visible = "[And(Not(Claim.IsPressed), Not(Claim.IsImplicit))]" - texture = "gfx/interface/icons/title_status/icon_claim_unpressed.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - highlight_icon = { - name = "implicit_claim" - visible = "[Claim.IsImplicit]" - texture = "gfx/interface/icons/title_status/icon_claim_implicit.dds" - size = { 24 24 } - parentanchor = bottom|right - } - - blockoverride "coa_tooltip" - { - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - text_single = { - align = right - minimumsize = { 15 0 } - parentanchor = vcenter|right - text = "[CharacterListItem.GetTitleItemCount]" - tooltip = "CHARACTER_LIST_CLAIM_TOOLTIP" - } - } - - expand = {} - - # Religion - vbox = { - layoutpolicy_vertical = expanding - - margin_bottom = 20 - - expand = {} - - hbox = { - icon = { - name = "faith_button" - size = { 35 35 } - datacontext = "[Character.GetFaith]" - tooltipwidget = { faith_tooltip = {} } - texture = "[Faith.GetIcon]" - } - - widget = { - datacontext = "[Character.GetCulture]" - size = { 120 24 } - - tooltipwidget = { - culture_tooltip = {} - } - using = tooltip_se - - hbox = { - spacing = 3 - - icon = { - name = "culture" - texture = "gfx/interface/icons/icon_culture.dds" - size = { 24 24 } - } - - text_multi = { - layoutpolicy_horizontal = expanding - min_width = 95 - max_width = 95 - autoresize = yes - text = "CULTURE_LISTS_WINDOW" - } - } - } - } - } - - hbox = { - name = "ai_acceptance" - visible = "[Not(HostageExchangeWindow.GetRecipient.IsPlayer)]" - - ### Will Accept ### - icon = { - visible = "[HostageExchangeWindow.WouldPotentiallyAcceptHostage( CharacterListItem.Self )]" - size = { 45 45 } - - texture = "gfx/interface/icons/symbols/icon_check.dds" - - value = "[WarOverviewWindow.GetAnswerScore]" - tooltip = "[HostageExchangeWindow.GetAcceptanceTooltipBreakdown( CharacterListItem.Self )]" - } - - ### Will Not Accept ### - icon = { - visible = "[Not(HostageExchangeWindow.WouldPotentiallyAcceptHostage( CharacterListItem.Self ))]" - size = { 45 45 } - - texture = "gfx/interface/icons/symbols/icon_cross.dds" - - value = "[WarOverviewWindow.GetAnswerScore]" - tooltip = "[HostageExchangeWindow.GetAcceptanceTooltipBreakdown( CharacterListItem.Self )]" - } - } - } - } - } - } - } - } - } - } -} diff --git a/N3OW/gui/window_war_results.gui b/N3OW/gui/window_war_results.gui deleted file mode 100644 index 96d4b3bc..00000000 --- a/N3OW/gui/window_war_results.gui +++ /dev/null @@ -1,485 +0,0 @@ - -###################################################### -#################### WAR RESULTS ##################### -###################################################### -window = { - name = "war_results" - parentanchor = hcenter - layer = middle - allow_outside = yes - - using = Window_Decoration_Warfare - blockoverride "frame_bottom" {} - - background = { - texture = "gfx/interface/window_war_results/war_end_bg_center.dds" - spriteType = Corneredstretched - spriteborder_top = 10 - spriteborder_right = 8 - spriteborder_left = 8 - margin_top = -8 - - margin_bottom = 80 - - modify_texture = { - texture = "gfx/interface/illustrations/event_scenes/battlefield.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - spriteborder_top = 420 - alpha = 0.5 - } - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect.dds" - spriteType = Corneredstretched - blend_mode = overlay - alpha = 0.8 - } - - } - - state = { - name = _show - using = Animation_FadeIn_Quick - - position = { 0 120 } - } - state = { - name = _hide - using = Animation_FadeOut_Quick - position_y = -50 - } - - state = { - name = dismiss - using = Animation_FadeOut_Quick - position_y = 50 - } - - vbox = { - name = "war_results_center" - set_parent_size_to_minimum = yes - margin = { 49 20 } - spacing = 5 - minimumsize = { -1 700 } - - header_pattern = { - layoutpolicy_horizontal = expanding - - blockoverride "header_text" { - name = "outcome" - text = "[WarResultsWindow.GetOutcome]" - using = Font_Type_Flavor - fontsize = 30 - position = { 0 0 } - } - - blockoverride "button_close" - { - visible = no - } - - blockoverride "button_minimize" - { - onclick = "[WarResultsWindow.Close]" - } - } - - - header_with_divider = { - - blockoverride "header_with_divider_text_multi" { - max_width = 750 - text = "[WarResultsWindow.GetWarName]" - using = Font_Type_Flavor - using = Font_Size_Big - } - - blockoverride "header_with_divider_text_single" { - - text = "WAR_RESULTS_DATES" - - } - } - - - hbox = { - layoutpolicy_horizontal = expanding - - vbox = { - name = "portrait" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - margin_left = 10 - - vbox = { - layoutpolicy_horizontal = expanding - datacontext = "[WarResultsWindow.GetOpponent]" - margin_bottom = 10 - spacing = 25 - - background = { - visible = "[Or(WarResultsWindow.IsWhitePeace, WarResultsWindow.IsInvalidated)]" - texture = "gfx/interface/window_war_results/war_end_bg_default.dds" - spriteType = Corneredstretched - spriteborder_top = 5 - spriteborder_bottom = -300 - margin_bottom = 170 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect_frame.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - } - - background = { - visible = "[Not(WarResultsWindow.IsPlayerWon)]" - texture = "gfx/interface/window_war_results/war_end_bg_default.dds" - spriteType = Corneredstretched - spriteborder_top = 5 - spriteborder_bottom = -300 - margin_bottom = 170 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect_frame.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - } - - background = { - visible = "[WarResultsWindow.IsPlayerWon]" - texture = "gfx/interface/window_war_results/war_end_bg_defeat.dds" - spriteType = Corneredstretched - spriteborder_top = 0 - spriteborder_bottom = -300 - margin_bottom = 170 - - modify_texture = { - name = "overlay" - texture = "gfx/interface/component_overlay/overlay_effect_frame.dds" - spriteType = Corneredstretched - spriteborder = { 0 0 } - blend_mode = overlay - } - - } - - hbox = { - layoutpolicy_horizontal = expanding - minimumsize = { 0 30 } - - background = { - margin = { -10 5 } - - using = Background_Area - } - - text_single = { - text = "[SelectLocalization(WarResultsWindow.IsPlayerAttacker, 'DEFENDER', 'ATTACKER')]" - } - } - - portrait_body = { - name = "defender_portrait" - blockoverride "opinion_box" {} - blockoverride "portrait_texture" { - portrait_texture = "[Character.GetPortrait('environment_body', 'camera_body', WarResultsWindow.GetOpponentAnimationState, PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" - } - blockoverride "coa" { - coa_realm_medium_crown = { - visible = "[Character.HasLandedTitles]" - parentanchor = bottom|right - position = { -10 4 } - } - - portrait_opinion = { - parentanchor = bottom|hcenter - position = { 0 -2 } - } - } - } - } - - expand = {} - } - - vbox = { - name ="results" - layoutpolicy_horizontal = expanding - layoutpolicy_vertical = expanding - - margin = { 10 0 } - margin_bottom = 20 - spacing = 5 - - - container = { - scrollbox = { - name = "results_scrollarea" - autoresizescrollarea = yes - maximumsize = { -1 400 } - - blockoverride "scrollbox_content" - { - set_parent_size_to_minimum = yes - margin = { 10 10 } - spacing = 8 - - background = { - using = Background_Area - } - - vbox = { - visible = "[Not( WarResultsWindow.IsInvalidated )]" - margin = { 35 30 } - spacing = 8 - - using = Background_Letter - - text_multi = { - autoresize = yes - max_width = 430 - text = "[WarResultsWindow.GetMessage]" - using = Font_Size_Medium - layoutpolicy_horizontal = expanding - default_format = "#light_background" - format_override = { high light_background } - } - - hbox = { - layoutpolicy_horizontal = expanding - spacing = 5 - - text_single = { - name = "signature" - visible = "[Not( WarResultsWindow.IsSecondaryParticipant )]" - max_width = 430 - align = right - layoutpolicy_horizontal = expanding - default_format = "#light_background" - - text = "WAR_OVER_SIGNATURE" - using = Font_Type_Flavor - using = Font_Size_Medium - format_override = { high light_background } - } - - expand = {} - - coa_character_sigil = { - visible = "[Not( WarResultsWindow.IsSecondaryParticipant )]" - datacontext = "[WarResultsWindow.GetOpponent]" - } - } - - spacer = { - size = { 0 8 } - } - - } - - divider_light = { - layoutpolicy_horizontal = growing - } - - vbox = { - layoutpolicy_horizontal = expanding - margin = { 10 10 } - - text_multi = { - name = "simple_desc" - autoresize = yes - max_width = 430 - text = "[WarResultsWindow.GetSimpleDescription]" - using = Font_Size_Medium - } - } - - vbox = { - visible = "[Not( WarResultsWindow.IsInvalidated )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - divider_light = { - layoutpolicy_horizontal = growing - } - - vbox = { - visible = "[Not( WarResultsWindow.IsInvalidated )]" - layoutpolicy_horizontal = expanding - spacing = 10 - - text_multi = { - name = "main_end_war_effect" - autoresize = yes - max_width = 430 - text = "[WarResultsWindow.GetPeaceDescription]" - } - - - hbox = { - name = "beneficiary" - visible = "[WarResultsWindow.HasBeneficiary]" - layoutpolicy_horizontal = expanding - - background = { - using = Background_Area - } - - hbox = { - spacing = 5 - - portrait_head = { - name = "beneficiary_portrait" - datacontext = "[WarResultsWindow.GetBeneficiary]" - blockoverride "opinion_box" {} - } - - vbox = { - spacing = 5 - - text_label_left = { - name = "my_beneficiary" - layoutpolicy_horizontal = expanding - text = "WAR_RESULTS_GHW_MY_BENEFICIARY" - default_format = "#low" - } - - text_multi = { - name = "beneficiary_rank" - text = "[WarResultsWindow.GetGHWRank]" - autoresize = yes - max_width = 300 - } - } - } - } - - vbox = { - name = "war_contribution" - visible = "[And( Not( WarResultsWindow.HasGWHShare ), And( WarResultsWindow.IsSecondaryParticipant, WarResultsWindow.IsContributionShareSetup ))]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 5 - - background = { - using = Background_Area - } - - text_label_center = { - text = "WAR_RESULTS_MY_CONTRIBUTION" - default_format = "#low" - } - - vbox = { - text_single = { - text = "[WarResultsWindow.GetContributionScore]" - autoresize = yes - align = center - max_width = 400 - } - - text_multi = { - name = "contribution_share" - text = "[WarResultsWindow.GetContributionShare]" - autoresize = yes - align = center - max_width = 400 - } - } - } - - vbox = { - name = "ghw_contribution" - visible = "[And( WarResultsWindow.HasGWHShare, WarResultsWindow.IsSecondaryParticipant )]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - spacing = 5 - - background = { - using = Background_Area - } - - text_label_center = { - text = "WAR_RESULTS_MY_WAR_CHEST_SHARE" - default_format = "#low" - } - - vbox = { - text_single = { - text = "[WarResultsWindow.GetGHWScore]" - } - - text_multi = { - name = "contribution_share" - text = "[WarResultsWindow.GetGHWShare]" - autoresize = yes - align = center - max_width = 400 - } - } - } - - - hbox = { - visible = "[WarResultsWindow.IsInvalidated]" - layoutpolicy_horizontal = expanding - margin = { 0 10 } - - background = { - using = Background_Area - } - - text_multi = { - name = "contribution_share" - autoresize = yes - max_width = 400 - text = "WAR_RESULTS_INVALIDATED_DESC" - align = center - } - } - } - } - divider_light = { - layoutpolicy_horizontal = growing - } - } - } - } - - expand = {} - } - } - - hbox = { - layoutpolicy_horizontal = expanding - - expand = {} - - button_primary_big = { - name = "close_button" - text = "WAR_RESULTS_DISMISS" - onclick = "[WarResultsWindow.Dismiss]" - } - - expand = {} - } - expand = {} - - } -} - - - - -