6439 lines
144 KiB
Text
6439 lines
144 KiB
Text
######################################################
|
|
#################### 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 = { 170 -60 }
|
|
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
|
|
text_single = {
|
|
name = "build_version_text"
|
|
position = { 5 5 }
|
|
visible = "[And( Not(IsGameViewOpen('barbershop')), Not(ReleaseMode))]"
|
|
|
|
tooltip = "[GetBuildVersionDescription]"
|
|
|
|
text = "VERSION_SHORT"
|
|
default_format = "#low"
|
|
max_width = 300
|
|
}
|
|
|
|
error_horse = {
|
|
parentanchor = bottom|left
|
|
position = { 610 -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
|
|
|
|
### Outliner Button
|
|
container = {
|
|
visible = "[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
|
|
}
|
|
|
|
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"
|
|
|
|
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"
|
|
|
|
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"
|
|
visible = "[Or( Not( IsLandlessAdventurer( GetPlayer ) ), GetPlayer.IsInAFaction)]"
|
|
|
|
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"
|
|
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_CONTAINER"
|
|
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_CONTAINER"
|
|
down = "[IsGameViewOpen('decisions')]"
|
|
}
|
|
}
|
|
|
|
widget_hud_main_tab = {
|
|
name = "tab_activities"
|
|
|
|
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 = {
|
|
datacontext = "[GetPlayer]"
|
|
datacontext = "[AccessLocalPlayerCachedData]"
|
|
datacontext = "[LocalPlayerCachedData.AccessNewArtifacts]"
|
|
datacontext = "[LocalPlayerCachedData.AccessCourtEvents]"
|
|
datacontext = "[Character.GetCourtGrandeurData]"
|
|
visible = "[And(And( And( Not( IsPauseMenuShown ), And(Or(Not(IsObserver), GetPlayer.IsValid), IsDefaultGUIMode)), HasDlcFeature( 'court_room_view' )), Not( IsLandlessAdventurer( GetPlayer ) ))]"
|
|
enabled = "[Character.HasRoyalCourt]"
|
|
|
|
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 = "[GetPlayer.GetGovernment.IsType( 'clan_government' )]"
|
|
|
|
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.GetTaxSlotsWithoutTaxCollectorCount, '(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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
widget_hud_main_tab = {
|
|
name = "tab_government_administration"
|
|
visible = "[GetPlayer.GetTopLiege.GetGovernment.HasRule( 'administrative' )]"
|
|
|
|
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 = {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
# 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 Left
|
|
widget = {
|
|
name = "bottom_bar"
|
|
visible = "[And( Not( IsPauseMenuShown ), IsDefaultGUIMode )]"
|
|
size = { 100% 100% }
|
|
layer = bottom
|
|
datacontext = "[GetPlayer]"
|
|
|
|
using = Animation_ShowHide_Quick
|
|
|
|
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_character').GetValue, '(CFixedPoint)0' ) ))]"
|
|
parentanchor = bottom|left
|
|
ignoreinvisible = yes
|
|
|
|
icon_hud_background = {
|
|
visible = "[GreaterThanOrEqualTo_int32( Character.GetHudOptionalItemsCount, '(int32)3' )]"
|
|
size = { 520 64 }
|
|
}
|
|
|
|
icon_hud_background = {
|
|
visible = "[EqualTo_int32( Character.GetHudOptionalItemsCount, '(int32)2' )]"
|
|
size = { 450 64 }
|
|
}
|
|
|
|
icon_hud_background = {
|
|
visible = "[LessThanOrEqualTo_int32( Character.GetHudOptionalItemsCount, '(int32)1' )]"
|
|
size = { 400 64 }
|
|
}
|
|
}
|
|
|
|
### BOTTOM LEFT CHARACTER 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
|
|
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 = { -10 -30 }
|
|
}
|
|
|
|
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 }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
## Bottom left 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
|
|
parentanchor = bottom|left
|
|
ignoreinvisible = yes
|
|
alwaystransparent = no
|
|
position = { -3 -100 }
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
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"
|
|
{}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
## 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 4 }
|
|
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)]"
|
|
}
|
|
}
|
|
|
|
### Lifestyle
|
|
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' ) ))]"
|
|
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
|
|
}
|
|
|
|
spacer = {
|
|
size = { 4 0 }
|
|
}
|
|
|
|
button_normal = {
|
|
name = "legitimacy_button"
|
|
parentanchor = vcenter
|
|
|
|
datacontext = "[Character.GetLegitimacyType]"
|
|
datacontext = "[Character.GetLegitimacyLevel]"
|
|
|
|
visible = "[And(LegitimacyType.IsValid, GetPlayer.GetGovernment.HasRule( 'legitimacy' ))]"
|
|
|
|
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 = "gfx/interface/icons/legitimacy_level_icon.dds"
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
spacer = {
|
|
size = { 4 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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
spacer = {
|
|
size = { 9 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 = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
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 = "[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 = { 55 55 }
|
|
|
|
icon = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
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 = { 55 55 }
|
|
|
|
button_open_inventory = {
|
|
name = "open_inventory_tutorial_uses_this"
|
|
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 = "[IsDiarchyVisible]"
|
|
tooltip = "DIARCHY_WINDOW_OPEN_TOOLTIP"
|
|
size = { 55 55 }
|
|
|
|
icon = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
button = {
|
|
size = { 40 40 }
|
|
alwaystransparent = yes
|
|
parentanchor = center
|
|
texture = "gfx/interface/icons/scale_of_power.dds"
|
|
}
|
|
}
|
|
|
|
button_round = {
|
|
name = "hud_camp_button"
|
|
widgetid = "hud_camp_button"
|
|
datacontext = "[Character.GetDomicile]"
|
|
visible = "[Character.HasDomicile]"
|
|
parentanchor = left
|
|
size = { 55 55 }
|
|
|
|
onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]"
|
|
tooltip = "[Domicile.GetMapPinTooltip( Character.Self )]"
|
|
|
|
icon = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
button_icon = {
|
|
size = { 40 40 }
|
|
position = { 0 -1 }
|
|
parentanchor = center
|
|
alwaystransparent = yes
|
|
texture = "[Domicile.GetType.GetIcon]"
|
|
}
|
|
}
|
|
}
|
|
|
|
spacer = {
|
|
size = { 6 0 }
|
|
}
|
|
|
|
widget_stress_sounds = {}
|
|
}
|
|
|
|
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
|
|
parentanchor = bottom|left
|
|
position = { 250 -70 }
|
|
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 = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.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"
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
######################################################
|
|
######### MAPMODES AND WARS AND INSPIRATIONS #########
|
|
######################################################
|
|
|
|
map_modes_debug = {
|
|
visible = "[And( InDebugMode, And(IsDefaultGUIMode, Not(IsRightWindowOpen)))]"
|
|
visible_at_creation = no
|
|
parentanchor = bottom|right
|
|
position = { 0 -240 }
|
|
|
|
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(IsDefaultGUIMode, Not(IsRightWindowOpen))]"
|
|
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'))]"
|
|
|
|
### Inspirations ###
|
|
flowcontainer = {
|
|
name = "player_inspirations"
|
|
datamodel = "[GetPlayer.GetSponsoredInspirations]"
|
|
parentanchor = vcenter
|
|
spacing = 5
|
|
margin = { 5 0 }
|
|
allow_outside = yes
|
|
|
|
item = {
|
|
button_normal = {
|
|
datacontext = "[Inspiration.GetOwner]"
|
|
size = { 60 60 }
|
|
tooltip = "TT_INSPIRATION_WIDGET"
|
|
using = tooltip_above
|
|
onclick = "[InGameBottomBar.ToggleSelectedInspiration( Inspiration.Self )]"
|
|
|
|
icon = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
# Glow pulse animation when you have a breach
|
|
icon = {
|
|
visible = no
|
|
parentanchor = center
|
|
position = { 0 4 }
|
|
size = { 100 114 }
|
|
texture = "gfx/interface/window_scheme/scheme_hud_bg_glow.dds"
|
|
using = Color_Red
|
|
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 = "[Culture.GetNameNoTooltip]"
|
|
}
|
|
}
|
|
}
|
|
|
|
# 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"
|
|
visible_at_creation = no
|
|
visible = "[Or( InGameBottomBar.HasGlobalNotificationEpidemic, Or( DataModelHasItems( InGameBottomBar.GetEpidemicsInRealm ), DataModelHasItems( InGameBottomBar.GetEpidemicsBorderingRealm ) ) )]"
|
|
}
|
|
|
|
### Raise/Disband armies ###
|
|
button_raise_disband_armies = {
|
|
name = "tutorial_highlight_raise_troops"
|
|
visible = "[And( And( Character.IsAtWar, Not(Character.HasRaisedRegiments)), Not(IsGameViewOpen('barbershop')))]"
|
|
visible_at_creation = no
|
|
|
|
enabled = "[PlayerCanRaiseAnyRallyPoint]"
|
|
onclick = "[PlayerRaiseAllRegiments]"
|
|
clicksound = "event:/SFX/UI/Unit/Army/sfx_ui_raise_army"
|
|
|
|
onclick = "[PdxGuiTriggerAllAnimations('button_army')]"
|
|
|
|
tooltip = "[GetPlayerRaiseAllTooltip]"
|
|
|
|
animation_aggressive = {}
|
|
}
|
|
|
|
button_raise_disband_armies = {
|
|
visible = "[And( PlayerShouldDisbandAll, Not(IsGameViewOpen('barbershop')))]"
|
|
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]"
|
|
}
|
|
|
|
spacer = {
|
|
datacontext = "[GetPlayer]"
|
|
visible = "[Or(And(Character.IsAtWar, Not(Character.HasRaisedRegiments)), PlayerShouldDisbandAll)]"
|
|
|
|
size = { 5 20 }
|
|
}
|
|
|
|
### Wars ###
|
|
flowcontainer = {
|
|
name = "wars"
|
|
parentanchor = vcenter
|
|
ignoreinvisible = yes
|
|
|
|
flowcontainer = {
|
|
name = "great_holy_wars"
|
|
parentanchor = vcenter
|
|
ignoreinvisible = yes
|
|
|
|
flowcontainer = {
|
|
datamodel = "[GetPlayer.GetFaith.GetDefensiveGreatHolyWars]"
|
|
ignoreinvisible = yes
|
|
parentanchor = vcenter
|
|
|
|
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 = {}
|
|
}
|
|
}
|
|
}
|
|
|
|
### Involved Struggles ###
|
|
flowcontainer = {
|
|
name = "involved_struggles"
|
|
datamodel = "[GetPlayer.GetInvolvedStruggles]"
|
|
parentanchor = vcenter
|
|
ignoreinvisible = yes
|
|
margin_top = -15
|
|
|
|
item = {
|
|
button_struggle_banner = {}
|
|
}
|
|
}
|
|
|
|
### Interloper Struggles ###
|
|
flowcontainer = {
|
|
name = "interloper_struggles"
|
|
datamodel = "[GetPlayer.GetInterloperStruggles]"
|
|
parentanchor = vcenter
|
|
ignoreinvisible = yes
|
|
margin_top = -15
|
|
|
|
item = {
|
|
button_struggle_banner = {}
|
|
}
|
|
}
|
|
}
|
|
|
|
## 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 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 12 }
|
|
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_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 = "[Struggle.IsInterloperCharacter(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')]"
|
|
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('dejure_counties')]"
|
|
shortcut = "map_mode_6"
|
|
}
|
|
|
|
button_normal = {
|
|
onclick = "[SetMapMode('court_languages')]"
|
|
shortcut = "map_mode_7"
|
|
}
|
|
|
|
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 = {
|
|
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"
|
|
}
|
|
}
|
|
|
|
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 }
|
|
|
|
widget = {
|
|
size = { 144 45 }
|
|
|
|
tooltipwidget = {
|
|
widget_gold_breakdown_tooltip = {
|
|
blockoverride "income"
|
|
{
|
|
datacontext = "[InGameTopbar.GetIncomeBalanceBreakdown]"
|
|
}
|
|
|
|
blockoverride "expenses"
|
|
{
|
|
datacontext = "[InGameTopbar.GetExpensesBalanceBreakdown]"
|
|
}
|
|
}
|
|
}
|
|
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(GetPlayerBalance, '(CFixedPoint)0')]"
|
|
text = "CURRENT_BALANCE"
|
|
max_width = 50
|
|
default_format = "#low"
|
|
}
|
|
|
|
text_single = {
|
|
name = "balance_negative"
|
|
visible = "[LessThan_CFixedPoint(GetPlayerBalance, '(CFixedPoint)0')]"
|
|
text = "CURRENT_BALANCE"
|
|
max_width = 50
|
|
default_format = "#N"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
spacer = {
|
|
size = { 10 1}
|
|
}
|
|
divider_light = {
|
|
layoutpolicy_vertical = expanding
|
|
alpha = 0.8
|
|
}
|
|
}
|
|
expand = {}
|
|
}
|
|
}
|
|
|
|
widget = {
|
|
name = "prestige"
|
|
datacontext = "[InGameTopbar.GetPrestigeItem]"
|
|
|
|
widget = {
|
|
size = { 112 45 }
|
|
|
|
tooltipwidget = {
|
|
widget_resource_value_tooltip = {}
|
|
}
|
|
using = tooltip_ne
|
|
}
|
|
|
|
background = {
|
|
texture = "gfx/interface/skinned/resource_panel_piece.dds"
|
|
}
|
|
size = { 112 70 }
|
|
|
|
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]"
|
|
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"
|
|
}
|
|
size = { 112 70 }
|
|
|
|
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( 'administrative_government' )]"
|
|
|
|
widget = {
|
|
size = { 112 45 }
|
|
|
|
tooltipwidget = {
|
|
widget_resource_value_tooltip = {}
|
|
}
|
|
using = tooltip_ne
|
|
}
|
|
|
|
background = {
|
|
texture = "gfx/interface/skinned/resource_panel_piece.dds"
|
|
}
|
|
size = { 112 70 }
|
|
|
|
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]"
|
|
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"
|
|
}
|
|
size = { 112 70 }
|
|
|
|
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 = {}
|
|
}
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
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 = "[ToggleGameView('my_realm')]"
|
|
|
|
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 = {
|
|
texture = "gfx/interface/buttons/button_lifestyles_base.dds"
|
|
size = { 100% 100% }
|
|
}
|
|
|
|
# icon = {
|
|
# 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 = "[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.GetTaxSlotsWithoutTaxCollectorCount, '(int32)0' ) )]"
|
|
|
|
icon = {
|
|
size = { 25 25 }
|
|
texture = "gfx/interface/icons/symbols/icon_warning.dds"
|
|
}
|
|
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
margin_left = 10
|
|
|
|
text_single = {
|
|
visible = "[GreaterThan_int32( Character.GetTaxSlotsWithoutTaxCollectorCount, '(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"
|
|
}
|
|
|
|
blockoverride "concept_link"
|
|
{
|
|
visible = no
|
|
}
|
|
|
|
blockoverride "main_description"
|
|
{
|
|
vbox = {
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 16
|
|
|
|
datacontext = "[GetPlayer]"
|
|
datacontext = "[Character.GetPromotedLegend]"
|
|
datacontext = "[AccessLocalPlayerCachedData]"
|
|
|
|
vbox = {
|
|
name = "promoted_legend"
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 16
|
|
|
|
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 legitimacy_hud_tooltip = object_tooltip_pop_out
|
|
{
|
|
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 }
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
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 }
|
|
}
|
|
|
|
hbox = {
|
|
name = "track_header"
|
|
layoutpolicy_horizontal = expanding
|
|
spacing = 5
|
|
margin_left = -10
|
|
|
|
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 = "[EqualTo_int32( Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex, PdxGuiWidget.GetIndexInDataModel )]"
|
|
|
|
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 = "gfx/interface/icons/flat_icons/legitimacy_small.dds"
|
|
}
|
|
|
|
icon_flat_standard = {
|
|
size = { 100% 100% }
|
|
visible = "[Not(LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex ))]"
|
|
texture = "gfx/interface/icons/flat_icons/legitimacy_small.dds"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
cooltip_paragraph = {
|
|
visible = "[LessThan_int32( LegitimacyLevel.GetIndex, Character.GetAveragePowerfulVassalLegitimacyExpectation.GetIndex )]"
|
|
text = "LEGITIMACY_BELOW_AVERAGE_EXPECTATIONS"
|
|
}
|
|
}
|
|
expand = {
|
|
layoutpolicy_horizontal = expanding
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|