N3OW/N3OW/gui/interaction_declare_war.gui
2025-10-30 11:25:16 +00:00

1213 lines
45 KiB
Text

######################################################
#################### 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
}
}
}