2026-10-25 15:07:40 +00:00
######################################################
################### FAITH WINDOW #####################
######################################################
@rite_button_width = 340
@rite_button_height = 40
@faith_action_margin = 10
window = {
name = "faith_window"
widgetid = "faith_window"
datacontext = "[FaithWindow.GetReligionSubWindow]"
datacontext = "[FaithWindow.GetRiteSubWindow]"
datacontext = "[FaithWindow.GetTenetSubWindow]"
datacontext = "[FaithWindow.GetChallengersWindow]"
datacontext = "[FaithWindow.GetFaith]"
datacontext = "[FaithWindow.GetSelectedRite]"
datacontext = "[GetVariableSystem]"
allow_outside = yes
movable = no
layer = middle
using = Window_Size_Sidebar
using = Window_Background_Sidebar
state = {
name = default_tab
trigger_on_create = yes
on_start = "[FaithWindow.SetActiveTab( 'tab_beliefs' )]"
}
state = {
name = _show
position = { 0 0 }
on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]"
using = Animation_FadeIn_Quick
using = Sound_WindowShow_Standard
}
state = {
name = _hide
position = { -60 0 }
on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]"
using = Animation_FadeOut_Quick
using = Sound_WindowHide_Standard
}
### Top Section (Above Tabs)
vbox = {
datacontext = "[FaithWindow.GetSelectedRite]"
using = Window_Margins_Sidebar
hbox = {
layoutpolicy_horizontal = expanding
margin_left = 5
spacing = 5
background = {
using = Background_Header
margin_top = 5
margin_left = 5
margin_right = 5
margin_bottom = 10
}
background = {
using = Background_Header_Pattern
margin_top = 5
margin_left = 5
margin_right = 5
margin_bottom = 10
}
background = {
using = Background_Area_Dark
margin_top = -80
margin_left = 0
margin_right = 4
margin_bottom = 10
alpha = 0.7
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds"
blend_mode = alphamultiply
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_textured_vertical_up.dds"
blend_mode = alphamultiply
}
}
widget_rite_and_banner = {}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_top = 4
### Header (Rite)
hbox = {
layoutpolicy_horizontal = expanding
margin_left = 5
background = {
using = Visible_Rite_Heresy
using = Status_Bad
alpha = 0.2
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_corner.dds"
mirror = horizontal
blend_mode = alphamultiply
}
}
### Rite Name
vbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
state = {
name = "faith_view_refresh"
using = Animation_Refresh_FadeOut
}
state = {
using = Animation_Refresh_FadeIn
}
text = "FAITH_VIEW_RITE_COOLTIP_GETNAME"
align = nobaseline
using = Font_Size_Big
using = Font_Type_Flavor
tooltipwidget = {
rite_tooltip = {}
}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 8
margin_left = 1
text_single = {
using = Visible_Rite_Not_Heresy
max_width = 170
text = "FAITH_VIEW_RITE_STATUS"
align = nobaseline
}
hbox = {
using = Visible_Rite_Heresy
spacing = 8
icon = {
size = { 20 20 }
alwaystransparent = yes
texture = "gfx/interface/icons/symbols/icon_warning.dds"
datacontext = "[FaithWindow.GetDivergenceBreakdown( FaithWindow.GetSelectedRite.Self )]"
tooltipwidget = {
widget_rite_divergence_tooltip = {}
}
}
text_single = {
max_width = 140
text = "FAITH_VIEW_RITE_HERESY"
align = nobaseline
}
}
hbox = {
visible = "[IsPlayerRite]"
spacing = 8
divider_light = {
layoutpolicy_vertical = expanding
}
text_single = {
max_width = 120
text = "RITE_COOLTIP_YOUR_RITE"
align = nobaseline
}
}
expand = {}
}
}
vbox = {
layoutpolicy_vertical = expanding
spacing = 4
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 4
expand = {}
buttons_window_control = {
margin = { 8 0 }
blockoverride "button_close"
{
onclick = "[FaithWindow.Close]"
}
blockoverride "button_back"
{
visible = "[HasViewHistory]"
onclick = "[OpenFromViewHistory]"
tooltip = "[GetViewHistoryTooltip]"
}
blockoverride "button_me"
{
onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]"
}
}
}
hbox = {
layoutpolicy_horizontal = expanding
expand = {}
widget = {
visible = "[Not( FaithWindow.IsActiveTab( 'tab_beliefs' ) )]"
size = { 0 36 }
}
button_standard_hover = {
visible = "[FaithWindow.IsActiveTab( 'tab_beliefs' )]"
minimumsize = { -1 20 }
onclick = "[GetVariableSystem.Toggle( 'compact_faith_window' )]"
down = "[GetVariableSystem.Exists( 'compact_faith_window' )]"
shortcut = "compact_faith_window"
tooltip = "FAITH_VIEW_EXPAND_DOCTRINES_TT"
using = tooltip_es
flowcontainer = {
resizeparent = yes
margin = { 3 3 }
margin_left = 7
text_single = {
max_width = 120
text = "FAITH_VIEW_EXPAND_DOCTRINES"
parentanchor = vcenter
align = nobaseline
default_format = "#clickable"
}
button_menu = {
alwaystransparent = yes
}
}
}
}
}
}
divider_light = {
layoutpolicy_horizontal = expanding
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds"
blend_mode = alphamultiply
}
}
### Sub-Header (Faith)
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 4
margin_right = 4
spacing = 25
hbox = {
layoutpolicy_horizontal = expanding
spacing = 2
widget = {
size = { 40 40 }
### Faith Icon
button = {
parentanchor = center
size = { 40 40 }
onclick = "[FaithWindow.SetSelectedRite( Faith.GetMainRite.Self )]"
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
texture = "[Faith.GetIcon]"
glow = {
color = { 0 0 0 0.2 }
glow_radius = 3
}
tooltipwidget = {
faith_tooltip = {}
}
}
}
hbox = {
spacing = 5
icon = {
visible = "[Not( Faith.IsUnreformed )]"
size = { 30 30 }
texture = "gfx/interface/icons/icon_organized_faith.dds"
text_single = {
size = { 100% 100% }
autoresize = no
alpha = 0
text = "[organized|E]"
}
}
icon = {
visible = "[Faith.IsUnreformed]"
size = { 30 30 }
texture = "gfx/interface/icons/icon_unreformed_faith.dds"
text_single = {
size = { 100% 100% }
autoresize = no
alpha = 0
text = "[GetDoctrineType('unreformed_faith_doctrine').GetBaseName]"
}
}
}
### Faith Name
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_PART_OF_FAITH"
align = nobaseline
autoresize = no
}
expand = {}
### Fervor
hbox = {
tooltip = "FERVOR_TT"
spacing = 4
margin_bottom = 4
icon = {
texture = "gfx/interface/icons/icon_fervor.dds"
size = { 22 22 }
}
text_single = {
text = "FAITH_WINDOW_FERVOR_SHORT"
default_format = "#high"
max_width = 60
margin_bottom = 1
}
container = {
icon = {
position = { 0 5 }
size = { 22 22 }
icon = {
visible = "[GreaterThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)0' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/aptitude_icons.dds"
framesize = { 26 26 }
frame = "[Select_int32( GreaterThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)1'), '(int32)5', '(int32)4' )]"
using = Color_Green
}
icon = {
visible = "[LessThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)0' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/aptitude_icons.dds"
framesize = { 26 26 }
frame = "[Select_int32( LessThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)-1'), '(int32)1', '(int32)2' )]"
using = Color_Red
}
}
}
}
}
### Other Rites
button_sidepanel_right = {
onclick = "[TenetWindow.Toggle]"
onclick = "[ReligionWindow.Close]"
onclick = "[RiteWindow.Close]"
down = "[TenetWindow.IsVisible]"
shortcut = faith_details
tooltip = "FAITH_VIEW_FAITH_DETAILS_TT"
using = tooltip_nw
blockoverride "button_text"
{
text = "FAITH_VIEW_FAITH_DETAILS"
max_width = 200
}
}
}
expand = {}
}
}
### Tabs
hbox = {
name = "tabs"
layoutpolicy_horizontal = expanding
button_tab = {
shortcut = "tab_1"
onclick = "[FaithWindow.SetActiveTab( 'tab_beliefs' )]"
down = "[FaithWindow.IsActiveTab( 'tab_beliefs' )]"
alwaystransparent = "[FaithWindow.IsActiveTab( 'tab_beliefs' )]"
blockoverride "tab_label"
{
text = "FAITH_BELIEFS"
max_width = 140
}
blockoverride "icon_visible" {}
blockoverride "tab_icon"
{
texture = "gfx/interface/icons/flat_icons/faith.dds"
down = "[FaithWindow.IsActiveTab( 'tab_beliefs' )]"
}
}
button_tab = {
shortcut = "tab_2"
onclick = "[FaithWindow.SetActiveTab( 'tab_holy_orders' )]"
down = "[FaithWindow.IsActiveTab( 'tab_holy_orders' )]"
alwaystransparent = "[FaithWindow.IsActiveTab( 'tab_holy_orders' )]"
blockoverride "tab_label"
{
text = "FAITH_HOLY_ORDERS"
max_width = 140
}
blockoverride "icon_visible" {}
blockoverride "tab_icon"
{
texture = "gfx/interface/icons/flat_icons/holy_order.dds"
down = "[FaithWindow.IsActiveTab( 'tab_holy_orders' )]"
}
}
button_tab = {
shortcut = "tab_3"
onclick = "[FaithWindow.SetActiveTab( 'tab_holy_sites' )]"
down = "[FaithWindow.IsActiveTab( 'tab_holy_sites' )]"
alwaystransparent = "[FaithWindow.IsActiveTab( 'tab_holy_sites' )]"
blockoverride "tab_label"
{
text = "FAITH_HOLY_SITES"
max_width = 140
}
blockoverride "icon_visible" {}
blockoverride "tab_icon"
{
texture = "gfx/interface/icons/flat_icons/holy_site.dds"
down = "[FaithWindow.IsActiveTab( 'tab_holy_sites' )]"
}
}
}
## BELIEFS
vbox = {
name = "tab_beliefs"
visible = "[FaithWindow.IsActiveTab( 'tab_beliefs' )]"
visible_at_creation = no
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
state = {
name = _show
using = Animation_FadeIn_Quick
on_start = "[SetMapMode( 'religions' )]"
}
state = {
name = _hide
alpha = 0
}
vbox = {
layoutpolicy_horizontal = expanding
datacontext = "[GetIllustration( 'religion_interior' )]"
### Top Area Background Texture
background = {
texture = "[Illustration.GetTexture( FaithWindow.GetFaith.MakeScope )]"
fittype = centercrop
alpha = 0.8
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
alpha = 0.7
}
}
### Divergence and opinion
hbox = {
layoutpolicy_horizontal = expanding
margin = { 15 10 }
margin_bottom = 10
background = {
margin = { 10 0 }
margin_top = 5
using = Background_Area_Light
alpha = 0.9
using = Mask_Rough_Edges
}
widget = {
layoutpolicy_horizontal = expanding
size = { 0 60 }
background = {
using = Visible_Rite_Heresy
margin_bottom = 14
margin_left = 15
using = Status_Bad
alpha = 0.35
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_corner.dds"
mirror = horizontal
blend_mode = alphamultiply
}
}
hbox = {
layoutpolicy_vertical = expanding
spacing = 5
### Divergence
vbox = {
visible = "[Not( Rite.IsMain )]"
margin = { 4 0 }
spacing = 2
tooltipwidget = {
widget_rite_divergence_tooltip = {
datacontext = "[FaithWindow.GetDivergenceBreakdown( FaithWindow.GetSelectedRite.Self )]"
}
}
using = tooltip_se
hbox = {
layoutpolicy_horizontal = expanding
spacing = 5
icon = {
size = { 22 22 }
texture = "gfx/interface/icons/icon_rite_divergence.dds"
}
text_single = {
max_width = 150
text = "FAITH_VIEW_DIVERGENCE_LABEL"
align = nobaseline
}
text_single = {
max_width = 40
using = Visible_Rite_Not_Heresy
text = "FAITH_VIEW_DIVERGENCE_VALUE"
using = Font_Size_Medium
default_format = "#high"
align = nobaseline
}
text_single = {
max_width = 40
using = Visible_Rite_Heresy
text = "FAITH_VIEW_DIVERGENCE_VALUE"
using = Font_Size_Medium
default_format = "#n"
align = nobaseline
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 0 6 }
spacing = 5
vbox = {
visible = no
margin_bottom = 10
button_rite_icon = {
datacontext = "[Faith.GetMainRite]"
size = { 30 30 }
}
}
widget = {
size = { 200 14 }
progressbar_red = {
size = { 100% 100% }
max = "[GetDefine( 'NRite', 'RITE_CREATION_DIVERGENCE_FAITH_THRESHOLD' )]"
value = "[CalcDivergenceScore( Rite.Self )]"
}
progressbar = {
size = { 100% 100% }
value = "[Rite.GetFaith.GetHeresyThreshold]"
max = "[GetDefine( 'NRite', 'RITE_CREATION_DIVERGENCE_FAITH_THRESHOLD' )]"
marker = {
widget = {
size = { 10 100% }
icon = {
parentanchor = vcenter
size = { 4 150% }
texture = "gfx/interface/window_factions/faction_progress_threshold.dds"
}
}
}
}
}
expand = {}
}
}
expand = {}
}
# Main Rite
hbox = {
visible = "[Rite.IsMain]"
layoutpolicy_horizontal = expanding
spacing = 4
button_challengers = {}
vbox = {
layoutpolicy_horizontal = expanding
expand = {}
margin_left = 6
spacing = 4
text_single = {
visible = "[GreaterThan_int32( GetDataModelSize( Faith.GetRites ), '(int32)1' )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_NUMBER_OF_RITES"
align = nobaseline
}
text_single = {
visible = "[EqualTo_int32( GetDataModelSize( Faith.GetRites ), '(int32)1' )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_NO_OTHER_RITES"
default_format = "#low"
align = nobaseline
}
hbox = {
layoutpolicy_horizontal = expanding
visible = no
### Doctrine No Head
text_single = {
datacontext = "[GetDoctrine( 'doctrine_no_head' )]"
visible = "[Faith.HasDoctrineByKey( 'doctrine_no_head' )]"
layoutpolicy_horizontal = expanding
text = "[DoctrineType.GetDescriptiveName( Faith.Self )]"
align = nobaseline
}
### Doctrine Spiritual Head
text_single = {
datacontext = "[GetDoctrine( 'doctrine_spiritual_head' )]"
visible = "[Faith.HasDoctrineByKey( 'doctrine_spiritual_head' )]"
layoutpolicy_horizontal = expanding
text = "[DoctrineType.GetDescriptiveName( Faith.Self )]"
align = nobaseline
}
### Doctrine Temporal Head
text_single = {
datacontext = "[GetDoctrine( 'doctrine_temporal_head' )]"
visible = "[Faith.HasDoctrineByKey( 'doctrine_temporal_head' )]"
layoutpolicy_horizontal = expanding
text = "[DoctrineType.GetDescriptiveName( Faith.Self )]"
align = nobaseline
}
}
text_single = {
visible = "[DataModelHasItems( Faith.GetChallengers )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_NUMBER_OF_CHALLENGERS"
align = nobaseline
}
expand = {}
}
expand = {}
}
}
container = {
ignoreinvisible = yes
### Head of Faith Doctrine
flowcontainer = {
ignoreinvisible = yes
datamodel = "[FaithWindow.GetDoctrineCategoryItems]"
item = {
flowcontainer = {
ignoreinvisible = yes
datamodel = "[DoctrineCategoryItem.GetDoctrineGroupItems]"
item = {
icon_main_doctrine = {
datacontext = "[DoctrineGroupItem.GetSelectedDoctrineItem]"
datacontext = "[DoctrineItem.GetDoctrine]"
visible = "[DoctrineGroupItem.GetGroupType.IsOnlyForMainRite]"
divider_light = {
size = { 20 4 }
position = { -20 30 }
}
divider_light = {
size = { 20 4 }
position = { 48 30 }
}
blockoverride "main_doctrine_banner_background" {}
blockoverride "main_doctrine_divergence" {
container_doctrine_divergence = {
parentanchor = top|right
position = { 8 -4 }
}
}
}
}
}
}
}
}
widget = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
# Rite Hostility
vbox = {
visible = "[And3( Not( ObjectsEqual( GetPlayer.GetFaith, Faith.Self ) ), GetPlayer.IsValid, Rite.IsVisibleInGui )]"
spacing = 4
expand = {}
hbox = {
layoutpolicy_horizontal = expanding
expand = {}
text_single = {
max_width = 220
text = "RITE_VIEW_OUR_VIEW"
align = right|nobaseline
elide = left
default_format = "#low"
}
}
hbox = {
layoutpolicy_horizontal = expanding
expand = {}
text_single = {
max_width = 220
text = "RITE_VIEW_THEIR_VIEW"
align = right|nobaseline
elide = left
default_format = "#low"
}
}
expand = {}
}
# Your faith
hbox = {
datacontext = "[GetPlayer]"
visible = "[ObjectsEqual( GetPlayer.GetFaith, Faith.Self )]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 10
background = {
visible = "[LessThan_CFixedPoint( GetPlayer.GetSpiritualFulfillment, '(CFixedPoint)0' )]"
margin_bottom = 12
margin_right = 15
using = Status_Bad
alpha = 0.3
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_corner.dds"
blend_mode = alphamultiply
}
}
background = {
visible = "[GreaterThan_CFixedPoint( GetPlayer.GetSpiritualFulfillment, '(CFixedPoint)0' )]"
margin_top = 12
margin_bottom = 12
margin_right = 15
using = Status_Good
color = { 0.2 0.5 0.7 0.12 }
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal.dds"
blend_mode = alphamultiply
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 4
expand = {}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[spiritual_fulfillment|E]"
align = right|nobaseline
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Character.GetSpiritualFulfillmentLevelWithTooltip]"
align = right|nobaseline
}
expand = {}
}
button_personal_beliefs = {}
}
}
}
### Characters
vbox = {
layoutpolicy_horizontal = expanding
widget = {
layoutpolicy_horizontal = expanding
size = "[Select_CVector2f( GetVariableSystem.Exists( 'compact_faith_window' ), '(CVector2f)0,140', '(CVector2f)0,185' )]" # when changing size, also adjust ANTIPOPE widget
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 15 5 }
margin_right = 0
spacing = 20
# Head of faith or challenger
hbox = {
spacer = {
visible = "[IsCompactFaith]"
size = { 15 0 }
}
hbox = {
spacing = 20
# HoF
hbox = {
datacontext = "[Faith.GetReligiousHead]"
# always shown in main rite and in others if there aren't challengers
visible = "[Or( Rite.IsMain, EqualTo_int32( PdxGuiWidget.AccessParent.AccessParent.FindChild('items').CountVisibleChildren, '(int32)0') )]"
# overwriting the same things for each widget
blockoverride "text" {
text = "[head_of_faith|E]"
}
blockoverride "head_of_faith" {
widget_empty_head_of_faith_button = {
visible = "[Not( Character.IsValid )]"
parentanchor = center
size = { 100% 100% }
}
}
blockoverride "interactions_extra" {
### College of Cardinals
button_round = {
visible = "[And4( Character.IsValid, ObjectsEqual( GetPlayer.GetFaith.Self, Faith.Self ), Faith.HasParameterByKey( 'has_clerical_electors' ), Faith.GetCollegeElectionTitle.HasElectionType( 'theocratic_elective' ) )]"
size = { 40 40 }
onclick = "[ToggleGameView( 'cardinals_window' )]"
tooltip = "FAITH_VIEW_COLLEGE_OF_CARDINALS"
using = tooltip_ne
button_icon= {
parentanchor = center
size = { 24 24 }
alwaystransparent = yes
texture = "gfx/interface/icons/flat_icons/college_of_cardinals.dds"
}
glow = {
color = { 0 0 0 0.5 }
glow_radius = 8
}
}
}
widget_faith_character = {
visible = "[Not( IsCompactFaith )]"
}
widget_faith_character_tiny = {
visible = "[IsCompactFaith]"
}
}
# Challenger
hbox = {
# show if there is a challenger of this rite
visible = "[Or( GreaterThan_int32( PdxGuiWidget.AccessParent.AccessParent.FindChild('items').CountVisibleChildren, '(int32)0'), And( Rite.IsMain, DataModelHasItems( Faith.GetChallengers ) ) )]"
# ANTIPOPE
widget = {
size = "[Select_CVector2f( GetVariableSystem.Exists( 'compact_faith_window' ), '(CVector2f)175,130', '(CVector2f)175,185' )]"
widget = {
size = { 180 100% }
flowcontainer = {
datamodel = "[Faith.GetChallengers]"
ignoreinvisible = yes
wrap_basedon = parent
scissor = yes
overflowed_items_visibility = hide
allow_outside = yes
item = {
container = {
visible = "[Or( ObjectsEqual( Character.GetRite.Self, Rite.Self ), Rite.IsMain )]"
datacontext = "[Challenger.GetChallengerTitle.GetHolder]"
ignoreinvisible = yes
blockoverride "text" {
text = "FAITH_VIEW_CHALLENGER_TITLE"
}
blockoverride "interactions_extra" {
container = {
visible = "[Not( Rite.IsMain )]"
button_challengers = {}
}
}
widget_faith_character = {
visible = "[Not( IsCompactFaith )]"
using = Background_Challenger
}
widget_faith_character_tiny = {
visible = "[IsCompactFaith]"
using = Background_Challenger
blockoverride "bg_fade" {
texture = "gfx/interface/component_masks/mask_fade_corner.dds"
mirror = horizontal
}
}
}
}
}
}
}
}
}
# are there antipopes of this rite?
hbox = {
name = "items"
datamodel = "[Faith.GetChallengers]"
item = {
hbox = {
datacontext = "[Challenger.GetChallengerTitle.GetHolder]"
visible = "[ObjectsEqual( Character.GetRite.Self, Rite.Self )]"
}
}
}
}
# Head of rite
# don't show if they are a challenger, they'll likely be on the left
hbox = {
datacontext = "[Rite.GetHeadOfRite]"
visible = "[And3( Not( IsHoF( Character ) ), Character.IsValid, Not( ObjectsEqual( Character.GetChallenger, Character.Self ) ) )]"
minimumsize = { 170 -1 }
blockoverride "text" {
text = "[head_of_rite|E]"
}
blockoverride "interactions_extra" {
### College of Cardinals
button_round = {
visible = "[And4( ObjectsEqual( Character.Self, Faith.GetCollegeElectionTitle.GetHolder.Self ), ObjectsEqual( GetPlayer.GetFaith.Self, Faith.Self ), Faith.HasParameterByKey( 'has_clerical_electors' ), Faith.GetCollegeElectionTitle.HasElectionType( 'theocratic_elective' ) )]"
size = { 40 40 }
onclick = "[ToggleGameView( 'cardinals_window' )]"
tooltip = "FAITH_VIEW_COLLEGE_OF_CARDINALS"
using = tooltip_ne
button_icon = {
parentanchor = center
size = { 24 24 }
alwaystransparent = yes
texture = "gfx/interface/icons/flat_icons/college_of_cardinals.dds"
}
glow = {
color = { 0 0 0 0.5 }
glow_radius = 8
}
}
}
widget_faith_character = {
visible = "[Not( IsCompactFaith )]"
}
widget_faith_character_tiny = {
visible = "[IsCompactFaith]"
}
}
# Archbishop
hbox = {
name = "archbishop"
visible = "[And3( GetPlayer.GetCapitalLocation.IsValid, IsPlayerRite, GetPlayer.GetFaith.HasParameterByKey( 'has_clerical_regions' ) )]"
hbox = {
datacontext = "[GetPlayer.GetCapitalLocation.GetClericalRegionHolder]"
# hide if they are in one of the other spots and if they are an antipope of this rite
visible = "[And3( Character.IsValid, Nor4( IsHoF( Character ), IsHoR( Character ), Character.IsLocalPlayer, And( ObjectsEqual( Character.GetChallenger, Character.Self ), ObjectsEqual( Character.GetRite, Rite.Self ) ) ), ObjectsEqual( Character.GetFaith, GetPlayer.GetFaith ) )]"
blockoverride "text" {
text = "FAITH_VIEW_YOUR_ARCHBISHOP"
}
widget_faith_character = {
visible = "[Not( IsCompactFaith )]"
}
widget_faith_character_tiny = {
visible = "[IsCompactFaith]"
}
}
}
expand = {}
}
}
divider = {
visible = "[Not( GetVariableSystem.Exists( 'compact_faith_window' ) )]"
parentanchor = bottom
position = { 0 1 }
size = { 100% 4 }
}
}
}
}
spacer = {
size = { 0 6 }
}
### Core Tenets
vbox = {
layoutpolicy_horizontal = expanding
margin = { 15 0 }
margin_bottom = 10
spacing = 10
button_standard_hover = {
layoutpolicy_horizontal = expanding
onclick = "[TenetWindow.Toggle]"
onclick = "[GetVariableSystem.Set( 'quick_access_tenets', 'yes' )]"
tooltip = "FAITH_VIEW_SUB_WINDOW_TENETS_BUTTON_TT"
button = {
size = { 100% 100% }
visible = "[TenetWindow.IsVisible]"
onclick = "[GetVariableSystem.Set( 'quick_access_tenets', 'yes' )]"
}
text_label_center = {
parentanchor = center
size = { 100% 26 }
autoresize = no
text = "FAITH_CORE_TENETS_HEADING"
alwaystransparent = yes
}
button_select_arrow = {
parentanchor = right|vcenter
position = { -5 0 }
size = { 20 20 }
alwaystransparent = yes
}
}
vbox = {
layoutpolicy_horizontal = expanding
state = {
name = "faith_view_refresh"
using = Animation_Refresh_FadeOut
}
state = {
using = Animation_Refresh_FadeIn
}
blockoverride "core_tenet_glow" {
visible = "[Faith.GetMainRite.HasTenet( TenetType.Self )]"
}
blockoverride "not_core_tenet_glow" {
visible = "[And( Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ), Not( Faith.HasTenetStatus( TenetType.Self, 'prohibited' ) ) )]"
}
flowcontainer = {
name = "doctrines_grid_core_tenets"
visible = "[Not( GetVariableSystem.Exists( 'compact_faith_window' ) )]"
margin_top = 10
datamodel = "[FaithWindow.GetCoreTenetItems]"
wrap_count = 3
item = {
flowcontainer = {
margin = { 25 0 }
widget_tenet_item = {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
blockoverride "popularity" {}
blockoverride "text_popularity" {
visible = no
}
blockoverride "margin_popularity_bg" {}
blockoverride "divergence_text" {}
}
}
}
background = {
using = Background_Area
margin = { 40 0 }
margin_top = -40
margin_bottom = -80
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds"
blend_mode = alphamultiply
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_short.dds"
blend_mode = alphamultiply
mirror = horizontal
}
}
}
flowcontainer = {
name = "doctrines_compact_grid_core_tenets"
visible = "[GetVariableSystem.Exists( 'compact_faith_window' )]"
datamodel = "[FaithWindow.GetCoreTenetItems]"
wrap_count = 3
item = {
flowcontainer = {
widget_tenet_item_compact = {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
}
}
}
}
}
}
### Sins & Virtues
widget_sins_virtues = {}
spacer = {
size = { 0 4 }
}
### Doctrines
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[FaithWindow.GetDoctrineCategoryItems]"
item = {
vbox_doctrine_category = {}
}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacer = {
size = { 0 8 }
visible = "[NotZero( PdxGuiWidget.AccessParent.FindChild( 'actions' ).CountVisibleChildren )]"
}
### Actions
hbox = {
name = "actions"
visible = "[GetPlayer.IsValid]"
layoutpolicy_horizontal = expanding
spacing = 10
margin = { 15 0 }
margin_top = -2
button_standard = {
name = "edit_rite"
visible = "[FaithWindow.CanEditRite]"
layoutpolicy_horizontal = expanding
maximumsize = { @rite_button_width -1 }
minimumsize = { 0 @rite_button_height }
onclick = "[OpenGameViewData( 'rite_creation', FaithWindow.GetSelectedRite )]"
text = "RITE_CREATION_VIEW_BUTTON_EDIT"
tooltip = "RITE_CREATION_VIEW_BUTTON_EDIT_TT"
using = tooltip_nw
}
button_standard = {
name = "convert_rite"
visible = "[And3( FaithWindow.ConvertButtonIsShown, Rite.IsVisibleInGui, Not( Rite.IsHistoricalOnly ) )]"
layoutpolicy_horizontal = expanding
maximumsize = { @rite_button_width -1 }
minimumsize = { 0 @rite_button_height }
onclick = "[OpenGameViewData( 'faith_conversion', FaithWindow.GetSelectedRite )]"
text = "FAITH_CONVERSION_CONVERT"
using = tooltip_nw
}
button_standard = {
name = "find_adherent"
visible = "[And3( Faith.CanStartFindCharacterOfFaithScheme, Rite.IsVisibleInGui, Not( Rite.IsHistoricalOnly ) )]"
layoutpolicy_horizontal = expanding
maximumsize = { @rite_button_width -1 }
minimumsize = { 0 @rite_button_height }
onclick = "[Faith.StartFindCharacterOfFaithScheme]"
text = "faith_find_adherent"
tooltip = "faith_find_adherent_tt"
using = tooltip_nw
}
button_standard = {
name = "create_rite"
visible = "[And( FaithWindow.CanCreateRite, Not( Or( IsActionEnabledByPuppet('puppet_trigger_can_create_rite'), IsActionEnabledByPuppet('puppet_trigger_can_create_faith') ) ) )]"
layoutpolicy_horizontal = expanding
maximumsize = { @rite_button_width -1 }
minimumsize = { 0 @rite_button_height }
onclick = "[OpenGameViewData( 'rite_creation', FaithWindow.GetSelectedRite )]"
text = "CREATE_REFORM_RITE_BUTTON"
tooltip = "CREATE_REFORM_RITE_BUTTON_TT"
using = tooltip_nw
}
button_standard_puppet = {
name = "create_rite_puppet"
visible = "[And( FaithWindow.CanCreateRite, Or( IsActionEnabledByPuppet('puppet_trigger_can_create_rite'), IsActionEnabledByPuppet('puppet_trigger_can_create_faith') ) )]"
layoutpolicy_horizontal = expanding
maximumsize = { @rite_button_width -1 }
minimumsize = { 280 @rite_button_height }
onclick = "[OpenGameViewData( 'rite_creation', FaithWindow.GetSelectedRite )]"
text = "CREATE_REFORM_RITE_BUTTON"
tooltip = "CREATE_REFORM_RITE_BUTTON_TT"
using = tooltip_nw
blockoverride "puppet_banner" {
puppet_action_flag_widget = {
parentanchor = right|vcenter
widgetanchor = right|vcenter
position = { -7 0 }
scale = 0.7
}
}
}
}
spacer = {
size = { 0 15 }
visible = "[NotZero( PdxGuiWidget.AccessParent.FindChild( 'actions' ).CountVisibleChildren )]"
}
}
}
## HOLY ORDERS
vbox = {
name = "tab_holy_orders"
datacontext = "[GetIllustration( 'religion_holding' )]"
visible = "[FaithWindow.IsActiveTab( 'tab_holy_orders' )]"
visible_at_creation = no
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
state = {
name = _show
on_start = "[SetMapMode( 'holy_orders' )]"
}
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_background" {}
blockoverride "scrollbox_background_fade" {}
state = {
name = _show
using = Animation_FadeIn_Quick
}
state = {
name = _hide
alpha = 0
}
background = {
using = Background_Area
}
background = {
alpha = 0.5
fittype = end
texture = "[Illustration.GetTexture( FaithWindow.GetFaith.MakeScope )]"
using = Mask_Rough_Edges
modify_texture = {
mirror = vertical
blend_mode = alphamultiply
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
}
}
blockoverride "scrollbox_content"
{
vbox = {
name = "holy_orders"
datacontext = "[GetPlayer]"
layoutpolicy_horizontal = expanding
vbox_holy_order_group = {
blockoverride "group_header" {
text = "FAITH_MONASTIC_HOLY_ORDERS_HEADER"
}
blockoverride "holy_order_filter" {
visible = "[Not( HiredTroopItem.GetHolyOrder.IsMilitary )]"
}
}
vbox_holy_order_group = {
blockoverride "group_header" {
text = "FAITH_MILITARY_HOLY_ORDERS_HEADER"
}
blockoverride "holy_order_filter" {
visible = "[HiredTroopItem.GetHolyOrder.IsMilitary]"
}
}
}
}
blockoverride "scrollbox_empty"
{
visible = "[IsDataModelEmpty( FaithWindow.GetHolyOrders )]"
text = "FAITH_NO_HOLY_ORDERS"
}
}
### Footer | Decision Shortcuts
hbox = {
visible = "[Or( GetDecisionWithKey( 'create_holy_order_monastic_decision' ).IsShownForPlayer, GetDecisionWithKey( 'create_holy_order_decision' ).IsShownForPlayer )]"
margin = { 10 10 }
layoutpolicy_horizontal = expanding
spacing = 10
button_decision_entry = {
datacontext = "[GetDecisionWithKey( 'create_holy_order_monastic_decision' )]"
visible = "[Decision.IsShownForPlayer]"
layoutpolicy_horizontal = expanding
size = { 1 @rite_button_height }
max_width = @rite_button_width
onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]"
using = tooltip_ne
}
button_decision_entry = {
datacontext = "[GetDecisionWithKey( 'create_holy_order_decision' )]"
visible = "[Decision.IsShownForPlayer]"
layoutpolicy_horizontal = expanding
size = { 1 @rite_button_height }
max_width = @rite_button_width
onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]"
using = tooltip_ne
}
}
}
## HOLY SITES
vbox = {
name = "tab_holy_sites"
datacontext = "[GetIllustration( 'religion_holding' )]"
visible = "[FaithWindow.IsActiveTab( 'tab_holy_sites' )]"
visible_at_creation = no
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
state = {
name = _show
on_start = "[SetMapMode( 'religions' )]"
}
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_background" {}
blockoverride "scrollbox_background_fade" {}
state = {
name = _show
using = Animation_FadeIn_Quick
}
state = {
name = _hide
alpha = 0
}
background = {
visible = "[Not( FaithWindow.HasAnyHolySites )]"
alpha = 0.5
fittype = end
texture = "[Illustration.GetTexture( FaithWindow.GetFaith.MakeScope )]"
modify_texture = {
mirror = vertical
blend_mode = alphamultiply
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
}
}
background = {
using = Background_Area
}
blockoverride "scrollbox_content"
{
vbox = {
name = "holy_sites"
layoutpolicy_horizontal = expanding
spacing = 5
### Holy Sites controlled by the selected Rite
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
datacontext = "[FaithWindow.GetFaith]"
datacontext = "[FaithWindow.GetSelectedRite]"
text_label_center = {
visible = "[Not( IsDataModelEmpty( FaithWindow.GetSelectedRiteHolySiteItems ) )]"
text = "FAITH_RITE_HOLY_SITES_HEADER"
max_width = 500
multiline = yes
using = Font_Size_Medium
}
text_single = {
visible = "[IsDataModelEmpty( FaithWindow.GetSelectedRiteHolySiteItems )]"
layoutpolicy_horizontal = expanding
autoresize = no
margin = { 0 5 }
text = "FAITH_RITE_HOLY_SITES_NONE"
default_format = "#weak"
align = center
}
holy_site_list = {
datamodel = "[FaithWindow.GetSelectedRiteHolySiteItems]"
}
}
### Holy Sites controlled by other Rites of the same Faith
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
datacontext = "[FaithWindow.GetFaith]"
visible = "[Not( IsDataModelEmpty( FaithWindow.GetOtherRiteHolySiteItems ) )]"
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]"
button_expandable_toggle_field = {
blockoverride "text"
{
max_width = 520
text = "FAITH_OTHER_RITES_HOLY_SITES_HEADER"
default_format = "#clickable"
}
}
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
spacing = 5
holy_site_list = {
datamodel = "[FaithWindow.GetOtherRiteHolySiteItems]"
}
}
}
### Holy Sites controlled by rulers outside the Faith
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
datacontext = "[FaithWindow.GetFaith]"
visible = "[Not( IsDataModelEmpty( FaithWindow.GetOtherFaithHolySiteItems ) )]"
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]"
button_expandable_toggle_field = {
blockoverride "text"
{
text = "FAITH_OTHER_FAITHS_HOLY_SITES_HEADER"
default_format = "#clickable"
}
}
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
spacing = 5
holy_site_list = {
datamodel = "[FaithWindow.GetOtherFaithHolySiteItems]"
}
}
}
}
}
}
### Footer | Decision Shortcuts
hbox = {
margin = { 10 10 }
layoutpolicy_horizontal = expanding
visible = "[And( ObjectsEqual( FaithWindow.GetFaith.Self, GetPlayer.GetFaith.Self ), GetScriptedGui( 'pam_can_create_holy_site_gui' ).IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End ) )]"
button_standard = {
datacontext = "[FaithWindow.GetFaith]"
visible = "[ObjectsEqual( FaithWindow.GetFaith.Self, GetPlayer.GetFaith.Self )]"
layoutpolicy_horizontal = expanding
max_width = @rite_button_width
size = { 0 @rite_button_height }
text = "FAITH_CREATE_HOLY_SITE_BUTTON"
onclick = "[OpenGameViewData( 'holy_site_creation', Faith.GetID )]"
}
}
}
}
window_religion_sub_window = {
visible = "[ReligionWindow.IsVisible]"
}
window_rite_sub_window = {
visible = "[RiteWindow.IsVisible]"
}
window_tenet_sub_window = {
visible = "[TenetWindow.IsVisible]"
}
window_challengers_sub_window = {
visible = "[ChallengersWindow.IsVisible]"
}
}
######################################################
################ TYPES AND TEMPLATES #################
######################################################
template head_of_faith_widget_background {
background = {
using = Background_Area_Solid
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
alpha = 0.2
mirror = vertical
}
}
background = {
texture = "gfx/portraits/portrait_frame.dds"
using = Color_Grey
margin = { -4 -4 }
alpha = 0.4
}
}
types FaithWindow
{
type widget_rite_and_banner = widget{
size = { 94 125 }
icon = {
parentanchor = top|hcenter
position = { 0 -5 }
size = { 94 132 }
texture = "gfx/interface/window_faith/faith_window_header_bg.dds"
}
widget_rite_icon = {
parentanchor = center
position = { 0 -7 }
}
}
type vbox_holy_order_group = vbox {
layoutpolicy_horizontal = expanding
text_label_center = {
visible = "[NotZero( PdxGuiWidget.AccessParent.FindChild( 'holy_orders_list' ).CountVisibleChildren )]"
align = nobaseline
margin = { 0 5 }
block "group_header" {}
using = Font_Size_Medium
}
flowcontainer = {
name = "holy_orders_list"
allow_outside = yes
direction = vertical
spacing = 3
ignoreinvisible = yes
layoutpolicy_horizontal = expanding
datamodel = "[FaithWindow.GetHolyOrders]"
item = {
button_holyorder_list_item = {
size = { 545 92 }
block "holy_order_filter" {}
blockoverride "holyorder_button_size" {
size = { 420 78 }
}
blockoverride "divergence_datacontext"
{
datacontext = "[FaithWindow.GetDivergenceBreakdown( HolyOrder.GetRite.Self )]"
}
blockoverride "rite_click" {
onclick = "[FaithWindow.SetActiveTab( 'tab_beliefs' )]"
}
}
}
}
}
type holy_site_list_item = vbox {
name = "faith_list_item"
datacontext = "[HolySiteItem.GetHolySite]"
datacontext = "[HolySite.GetBarony]"
datacontext = "[Title.GetProvince.GetHolding]"
layoutpolicy_horizontal = expanding
background = {
using = Background_Frame
margin = { 2 2 }
margin_top = -2
alpha = 0.7
}
# header
hbox = {
layoutpolicy_horizontal = expanding
margin = { 0 5 }
spacing = 5
background = {
using = Background_Area_Light
margin_bottom = 5
margin_right = 2
using = Mask_Rough_Edges
}
background = {
visible = "[And( HolySiteItem.IsEminent, And( HolySiteItem.GetHolySite.IsActive, HolySiteItem.IsHeldByFaith ) )]"
texture = "gfx/interface/window_military/military_banner_blue.dds"
alpha = 0.8
spriteType = Corneredtiled
spriteborder = { 0 14 }
texture_density = 1.5
margin_bottom = 5
}
background = {
visible = "[And( HolySiteItem.IsEminent, Not( HolySiteItem.IsHeldByFaith ) )]"
texture = "gfx/interface/window_military/military_banner_red.dds"
alpha = 0.8
spriteType = Corneredtiled
spriteborder = { 0 14 }
texture_density = 1.5
margin_bottom = 5
}
background = {
visible = "[And( HolySiteItem.IsEminent, And( Not( HolySiteItem.GetHolySite.IsActive ), HolySiteItem.IsHeldByFaith ) )]"
texture = "gfx/interface/window_military/military_banner_gray.dds"
spriteType = Corneredtiled
spriteborder = { 0 14 }
texture_density = 1.5
margin_bottom = 5
}
background = {
visible = "[And( Not( HolySiteItem.IsEminent ), Not( HolySiteItem.IsHeldByFaith ) )]"
alpha = 0.35
using = Status_Bad
margin_bottom = -2
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds"
blend_mode = alphamultiply
}
}
background = {
visible = "[And( Not( HolySiteItem.IsEminent ), And( Not( HolySiteItem.GetHolySite.IsActive ), HolySiteItem.IsHeldByFaith ) )]"
alpha = 0.3
using = Status_Highlight
margin_bottom = -2
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds"
blend_mode = alphamultiply
}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 8 10 }
spacing = 5
datacontext = "[HolySite.GetType]"
hbox = {
layoutpolicy_horizontal = expanding
margin_left = 8
hbox = {
layoutpolicy_horizontal = expanding
tooltip = "HOLY_SITE_TYPE_TOOLTIP"
datacontext = "[HolySiteItem.GetFaith]"
spacing = 12
coa_title_small = {
tooltip_visible = no
}
vbox = {
layoutpolicy_horizontal = expanding
text_single = {
name = "name"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_SITE_NAME"
align = nobaseline
using = Font_Size_Medium
}
text_single = {
name = "holy_site_tier"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_HOLY_SITE_TIER"
default_format = "#low"
align = nobaseline
using = Font_Size_Small
}
}
button_go_to_my_location = {
onclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]"
onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]"
onrightclick = "[ToggleGameViewData( 'holding_view', Holding.GetProvince.Self )]"
button_ignore = none
tooltip = "GOTO_OPEN_PROVINCE"
}
expand = {}
}
}
expand = {}
widget = {
size = { 200 60 }
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
datamodel = "[RepeatedItem( '(int32)3' )]"
spacing = 12
margin_right = 4
item = {
widget = {
size = { 55 55 }
background = { using = Background_Area_Border }
background = {
using = Background_Area_Border_Solid
margin = { -6 -6 }
}
}
}
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
datamodel = "[HolySite.GetInventory.GetArtifacts]"
spacing = 12
margin_right = 4
item = {
button_artifact = {
size = { 55 55 }
}
}
}
expand = {}
}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
datacontext = "[Title.GetProvince.GetHolding]"
background = {
visible = "[Not( Holding.IsEmpty )]"
texture = "[Holding.GetIllustration]"
alpha = 0.8
fittype = centercrop
margin_left = -300
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/window_county/mask_holding_illustration.dds"
blend_mode = alphamultiply
alpha = 0.6
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal.dds"
blend_mode = alphamultiply
}
}
background = {
visible = "[Holding.IsEmpty]"
texture = "[Holding.GetProvince.GetTerrain.GetIllustration]"
alpha = 0.7
fittype = centercrop
margin_left = -300
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/window_county/mask_holding_illustration.dds"
blend_mode = alphamultiply
alpha = 0.8
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal.dds"
blend_mode = alphamultiply
}
}
background = {
using = Background_Area
}
# faith
hbox = {
layoutpolicy_horizontal = expanding
margin = { 14 6 }
spacing = 10
background = {
using = Background_Area_Dark
alpha = 0.5
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds"
blend_mode = alphamultiply
mirror = horizontal
alpha = 0.5
}
}
hbox = {
datacontext = "[HolySite.GetCounty.GetHolder]"
visible = "[HolySite.GetCounty.HasHolder]"
spacing = 1
button_rite_icon = {
datacontext = "[HolySite.GetController.GetRite]"
size = { 50 50 }
onclick = "[FaithWindow.SetSelectedRite( Rite.Self )]"
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
}
widget = {
size = { 30 30 }
coa_realm_tiny_crown = {
parentanchor = center
position = { 0 -3 }
scale = 0.95
}
}
}
spacer = {}
hbox = {
layoutpolicy_horizontal = expanding
datacontext = "[HolySite.GetController.GetRite]"
text_multi = {
name = "held_by"
visible = "[HolySiteItem.IsHeldByFaith]"
layoutpolicy_horizontal = expanding
autoresize = yes
max_width = 200
max_height = 50
text = "HOLY_SITE_UNDER_CONTROL_UI"
align = nobaseline
}
text_multi = {
name = "not_held_by"
visible = "[Not( HolySiteItem.IsHeldByFaith )]"
layoutpolicy_horizontal = expanding
autoresize = yes
max_width = 200
max_height = 50
text = "HOLY_SITE_NOT_UNDER_CONTROL_UI"
align = nobaseline
default_format = "#x"
}
}
expand = {}
button_standard = {
size = { 205 33 }
onclick = "[ToggleGameViewData( 'holy_site', HolySite.Self )]"
text = "OPEN_HOLY_SITE_WINDOW"
}
}
# all effects
hbox = {
layoutpolicy_horizontal = expanding
margin = { 16 10 }
datacontext = "[HolySiteItem.GetHolySite]"
vbox = {
layoutpolicy_vertical = expanding
state = {
name = "faith_view_refresh"
using = Animation_Refresh_FadeOut
}
state = {
using = Animation_Refresh_FadeIn
}
# uses Faith datacontext of the window (except for holder effects)
vbox_holy_site_effects = {
spacing = 5
blockoverride "active_effects_format" {
align = nobaseline
default_format = "#emp;bold"
}
blockoverride "inactive_effects_format" {
align = nobaseline
default_format = "#emp;bold;low"
}
# hides a standalone line about a wrong faith, we already have it above
blockoverride "show_wrong_faith" {
visible = no
}
expand = {}
}
}
expand = {}
}
}
}
type holy_site_list = vbox {
layoutpolicy_horizontal = expanding
margin = { 0 5 }
spacing = 10
item = {
holy_site_list_item = {}
}
}
type widget_sins_virtues = widget {
size = { 592 94 }
layoutpolicy_horizontal = expanding
background = {
using = Background_Area
}
state = {
name = "faith_view_refresh"
using = Animation_Refresh_FadeOut
}
state = {
using = Animation_Refresh_FadeIn
}
### Banner
widget = {
size = { 100% 39 }
layoutpolicy_horizontal = expanding
icon = {
parentanchor = center
size = { 100% 100% }
texture = "gfx/interface/window_faith/sin_virtue_banner.dds"
}
icon = {
parentanchor = left|vcenter
position = { 15 0 }
size = { 60 60 }
texture = "gfx/interface/window_faith/sin_icon_background.dds"
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/traits/sin.dds"
alwaystransparent = yes
}
}
text_single = {
parentanchor = left|vcenter
position = { 80 -1 }
text = "FAITH_WINDOW_SINS"
using = Font_Size_Medium
align = nobaseline
}
text_single = {
parentanchor = right|vcenter
position = { -80 -1 }
text = "FAITH_WINDOW_VIRTUES"
using = Font_Size_Medium
align = nobaseline|left
}
icon = {
parentanchor = right|vcenter
position = { -15 0 }
size = { 60 60 }
texture = "gfx/interface/window_faith/virtue_icon_background.dds"
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/traits/virtue.dds"
alwaystransparent = yes
}
}
}
### Sins & Virtues | Traits
hbox = {
name = "sins_and_virtues"
margin_top = 40
margin_bottom = 5
spacing = 5
expand = {}
widget = {
size = { 285 45 }
hbox = {
expand = {}
### Sinful Traits
overlappingitembox = {
name = "sins"
maximumsize = { 285 45 }
minimumsize = { 0 45 }
autoresize = yes
ignoreinvisible = yes
righttoleft = yes
block "datamodel_sins"
{
datamodel = "[FaithWindow.GetSins]"
}
item = {
icon = {
datacontext = "[VirtueOrSinItem.GetTrait]"
size = { 45 45 }
alwaystransparent = yes
texture = "[Trait.GetIcon( GetPlayer )]"
tooltipwidget = {
using = faith_window_trait_tooltip
blockoverride "virtue_or_sin_description_text"
{
text = "[VirtueOrSinItem.GetFullDescription]"
}
}
block "tooltip_placement"
{
using = tooltip_ne
tooltip_offset = { 0 20 }
}
}
}
}
}
}
divider_light = {
size = { 4 45 }
}
widget = {
size = { 285 45 }
hbox = {
### Virtous Traits
overlappingitembox = {
name = "virtues"
maximumsize = { 285 45 }
minimumsize = { 0 45 }
autoresize = yes
ignoreinvisible = yes
block "datamodel_virtues"
{
datamodel = "[FaithWindow.GetVirtues]"
}
item = {
icon = {
datacontext = "[VirtueOrSinItem.GetTrait]"
size = { 45 45 }
alwaystransparent = yes
texture = "[Trait.GetIcon( GetPlayer )]"
tooltipwidget = {
using = faith_window_trait_tooltip
blockoverride "virtue_or_sin_description_text"
{
text = "[VirtueOrSinItem.GetFullDescription]"
}
}
block "tooltip_placement"
{
using = tooltip_ne
tooltip_offset = { 0 20 }
}
}
}
}
expand = {}
}
}
expand = {}
}
}
type widget_tenet_item = widget {
size = { 130 200 }
allow_outside = yes
block "tenet_enabled" {
enabled = "[Not( Faith.HasTenetStatus( TenetType.Self, 'unknown' ) )]"
}
tooltipwidget = {
using = tenet_type_tooltip
}
using = tooltip_es
using = Tenet_Glows
2026-10-25 16:20:03 +00:00
highlight_icon = {#default
name = "doctrine_group_bg_def"
visible = "[Not(Or(Faith.HasDoctrineByKey( 'special_doctrine_numenor' ),Faith.HasDoctrineByKey( 'special_doctrine_dionysian' )))]"
2026-10-25 15:07:40 +00:00
size = { 130 200 }
texture = "[Faith.GetTenetBackgroundIcon( Rite.Self, TenetType.Self )]"
}
2026-10-25 16:20:03 +00:00
highlight_icon = {#variant
name = "doctrine_group_bg_nov"
visible = "[Faith.HasDoctrineByKey( 'special_doctrine_numenor' )]"
size = { 130 200 }
texture = "gfx/interface/icons/faith_tenets/core_tenet_banner_novelist.dds"
}
highlight_icon = {#variant
name = "doctrine_group_bg_dion"
visible = "[Faith.HasDoctrineByKey( 'special_doctrine_dionysian' )]"
size = { 130 200 }
texture = "gfx/interface/icons/faith_tenets/core_tenet_banner_britannic.dds"
}
2026-10-25 15:07:40 +00:00
block "tenet_icon"
{
widget = {
position = { 0 -10 }
size = { 130 200 }
allow_outside = yes
alwaystransparent = yes
visible = "[TenetType.IsValid]"
highlight_icon = {
name = "doctrine_group_icon"
widgetanchor = center
parentanchor = center
size = { 130 200 }
texture = "[TenetItem.GetIcon]"
alpha = 0.85
}
}
}
block "tenet_add_icon"
{
button_plus = {
name = "doctrine_group_icon"
visible = "[Not( TenetType.IsValid )]"
position = { 35 70 }
size = { 60 60 }
}
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_bottom = 15
expand = {}
text_label_center = {
name = "tenet_name"
layoutpolicy_horizontal = expanding
maximumsize = { 130 44 }
visible = "[TenetType.IsValid]"
fontsize_min = 12
multiline = yes
align = center
elide = right
block "tenet_name" {
text = "[TenetType.GetBaseNameNoTooltip]"
}
default_format = "#high"
using = Font_Size_Medium
}
}
block "prohibited_warning" {}
widget = {
parentanchor = top|right
block "tenet_badges_layout"
{
size = { 25 50 }
}
vbox = {
container_tenet_divergence = {}
container_tenet_popularity = {}
expand = {}
}
}
block "divergence_text" {
icon = {
visible = "[And( TenetType.IsValid, Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ) )]"
parentanchor = bottom|hcenter
position = { 0 5 }
size = { 25 25 }
icon = {
parentanchor = center
size = { 20 20 }
texture = "gfx/interface/icons/icon_rite_divergence.dds"
tooltip = "RITE_CREATION_TENET_DIVERGENCE_TT"
}
}
}
}
type widget_tenet_creation_item = widget_tenet_item {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
blockoverride "tenet_enabled" {}
blockoverride "divergent_tenet" {
visible = no
}
blockoverride "divergence_change" {
hbox = {
layoutpolicy_horizontal = expanding
margin_left = 20
margin_bottom = 5
visible = "[TenetType.IsValid]"
text_label_left = {
text = "RITE_CREATION_TENET_DIVERGENCE_TT"
}
expand = {}
}
}
blockoverride "input_info_text_bottom"
{
visible = "[TenetType.IsValid]"
text = "RITE_CREATION_VIEW_TENET_CLICK_TO_SELECT"
tooltip = "[RiteCreationWindow.GetTenetCostTooltip( TenetType.Self )]"
}
blockoverride "divergence_text"
{
text_label_center = {
parentanchor = bottom|hcenter
layoutpolicy_horizontal = expanding
visible = "[TenetType.IsValid]"
position = { 0 7 }
text = "RITE_CREATION_TENET_DIVERGENCE"
tooltip = "RITE_CREATION_TENET_DIVERGENCE_TT"
}
}
}
type widget_tenet_item_compact = widget {
size = { 185 82 }
enabled = "[Not( Faith.HasTenetStatus( TenetType.Self, 'unknown' ) )]"
tooltipwidget = {
using = tenet_type_tooltip
}
using = tooltip_es
flowcontainer = {
visible = "[TenetType.IsValid]"
parentanchor = vcenter
position = { 65 -1 }
margin_left = 10
background = {
using = Background_Area_Dark
modify_texture = {
name = "mask"
texture = "gfx/interface/component_masks/mask_fade_horizontal_right.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = alphamultiply
}
}
text_multi = {
name = "doctrine_name"
size = { 110 64 }
margin_right = 5
margin_bottom = 2
margin_left = 6
block "tenet_name" {
text = "[TenetType.GetBaseNameNoTooltip]"
}
default_format = "#high"
align = vcenter|nobaseline
}
}
### Banner
highlight_icon = {
size = { 72 88 }
parentanchor = vcenter
texture = "[Faith.GetTenetBackgroundSmallIcon( Rite.Self, TenetType.Self )]"
using = Tenet_Glows_Small
### Sprite
proportional_icon = {
size = { 95% 95% }
parentanchor = top|hcenter
texture = "[TenetItem.GetIcon]"
alpha = 0.85
}
widget = {
size = { 25 50 }
parentanchor = top|right
position = { 6 -2 }
vbox = {
container_tenet_divergence = {}
container_tenet_popularity = {
blockoverride "text_popularity" {
visible = no
}
blockoverride "margin_popularity_bg" {}
}
expand = {}
}
}
}
}
type container_tenet_popularity = container {
block "popularity_visibility"
{
visible = "[Not( Faith.HasTenetStatus( TenetType.Self, 'unknown' ) )]"
}
ignoreinvisible = yes
block "popularity" {}
flowcontainer = {
datacontext = "[GetScriptedGui( 'using_tenet_popularity_gui' )]"
visible = "[And( TenetType.IsValid, IsUsingTenetPopularity( Faith ) )]"
ignoreinvisible = yes
tooltip = "FAITH_TENET_ITEM_POPULARITY_TT"
background = {
texture = "gfx/interface/component_tiles/tile_title_bg_01.dds"
spriteType = Corneredtiled
spriteborder = { 40 8 }
texture_density = 2
block "margin_popularity_bg" {
margin = { 10 0 }
}
margin_bottom = 2
modify_texture = {
name = "mask"
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = alphamultiply
}
}
icon_tenet_popularity = {
name = "tenet_popularity_value_very_popular"
datacontext = "[GetScriptedGui( 'tenet_popularity_gui_very_popular' )]"
frame = 4
}
icon_tenet_popularity = {
name = "tenet_popularity_value_popular"
datacontext = "[GetScriptedGui( 'tenet_popularity_gui_popular' )]"
frame = 3
}
icon_tenet_popularity = {
name = "tenet_popularity_value_neutral"
datacontext = "[GetScriptedGui( 'tenet_popularity_gui_neutral' )]"
frame = 2
}
icon_tenet_popularity = {
name = "tenet_popularity_value_unpopular"
datacontext = "[GetScriptedGui( 'tenet_popularity_gui_unpopular' )]"
frame = 1
}
text_single = {
text = "[Faith.GetTenetPopularityScore( TenetType.Self )]"
min_width = 30
block "text_popularity" {}
}
}
block "tenet_divergence" {}
}
# requires scripted gui datacontext
type icon_tenet_popularity = icon {
visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( TenetType.MakeScope ).AddScope( 'faith', Faith.MakeScope ).End )]"
alwaystransparent = yes
size = { 25 25 }
texture = "gfx/interface/icons/icon_tenet_popularity.dds"
framesize = { 60 60 }
}
type container_tenet_divergence = container {
block "divergence_visibility"
{
visible = "[And( TenetType.IsValid, Not( Faith.GetMainRite.HasTenet( TenetType.Self ) ) )]"
}
ignoreinvisible = yes
flowcontainer = {
tooltip = "RITE_CREATION_TENET_DIVERGENCE_TT"
using = Divergence_Marker
}
}
type widget_doctrine_divergence_tooltip = widget {
alwaystransparent = no
using = DefaultTooltipBackground
vbox = {
set_parent_size_to_minimum = yes
margin = { 18 18 }
spacing = 5
text_single = {
layoutpolicy_horizontal = expanding
text = "RITE_CREATION_DOCTRINE_DIVERGENCE_TT"
}
vbox = {
ignoreinvisible = yes
layoutpolicy_horizontal = expanding
datacontext = "[DoctrineItem.GetFaith]"
datamodel = "[Faith.GetDoctrines]"
item = {
text_single = {
visible = "[ObjectsEqual( DoctrineType.GetGroup, DoctrineItem.GetDoctrine.GetGroup )]"
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_MAINLINE_DOCTRINE"
}
}
}
textbox = {
visible = "[DoctrineItem.GetDoctrine.GetGroup.IsOnlyForMainRite]"
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
multiline = yes
autoresize = yes
max_width = 400
margin_top = 4
text = "FAITH_VIEW_HEAD_OF_FAITH_DOCTRINE_NOTE"
}
}
}
type container_doctrine_divergence = container {
visible = "[NotEqualTo_CFixedPoint( DoctrineItem.GetDivergence, '(CFixedPoint)0' )]"
ignoreinvisible = yes
flowcontainer = {
tooltipwidget = {
widget_doctrine_divergence_tooltip = {}
}
using = Divergence_Marker
}
}
type icon_divergent_doctrine_glow = icon {
name = "divergent_doctrine_glow"
visible = "[NotEqualTo_CFixedPoint( DoctrineItem.GetDivergence, '(CFixedPoint)0' )]"
texture = "gfx/interface/icons/faith_tenets/tenet_banner_glow_small.dds"
size = { 60 68 }
parentanchor = center
color = { 0.85 0.75 0.45 0.3 }
alpha = 0.2
using = Glow_Tenet_Animation
}
# simpler tenet container, doesn't support TenetItem
type container_tenet_item_small = widget {
size = { 72 88 }
tooltipwidget = {
container = {
datacontext = "[Rite.GetFaith]"
using = tenet_type_tooltip
alwaystransparent = no
}
}
using = tooltip_se
highlight_icon = {
name = "tenet_bg"
datacontext = "[Rite.GetFaith]"
visible = "[Rite.IsValid]"
size = { 100% 100% }
texture = "[Faith.GetTenetBackgroundSmallIcon( Rite.Self, TenetType.Self )]"
}
proportional_icon = {
name = "tenet_icon"
datacontext = "[Rite.GetFaith]"
visible = "[Rite.IsValid]"
parentanchor = center
alpha = 0.85
texture = "[TenetType.GetIcon( Faith.Self )]"
# Raw size = 260x400 (25%)
block "tenet_size" {
size = { 65 100 }
}
}
}
type vbox_tenet_group_foldout = vbox {
layoutpolicy_horizontal = expanding
spacing = 4
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.Unfold]"
button_expandable_toggle_field = {
blockoverride "text"
{
text = "[TenetGroupItem.GetGroupTitle]"
default_format = "#clickable"
}
}
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
fixedgridbox = {
name = "tenets_in_group"
visible = "[Not( GetVariableSystem.Exists( 'compact_tenets_faith' ) )]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
addcolumn = 150
addrow = 220
datamodel_wrap = 4
flipdirection = yes
datamodel = "[TenetGroupItem.GetTenets]"
item = {
widget_tenet_item = {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
blockoverride "divergence_text" {}
blockoverride "divergence_visibility" {
visible = no
}
blockoverride "tenet_badges_layout" {
size = { 70 50 }
position = { 0 10 }
}
}
}
}
fixedgridbox = {
name = "tenets_in_group_compact"
visible = "[GetVariableSystem.Exists( 'compact_tenets_faith' )]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
addcolumn = 205
addrow = 88
datamodel_wrap = 3
flipdirection = yes
datamodel = "[TenetGroupItem.GetTenets]"
item = {
widget_tenet_item_compact = {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
blockoverride "divergence_visibility" {
visible = no
}
}
}
}
spacer = {
size = { 0 8 }
block "bottom_margin_compact" {
visible = "[GetVariableSystem.Exists( 'compact_tenets_faith' )]"
}
}
}
}
type fervor_container_hbox = hbox {
name = "fervor_container"
tooltip = "FERVOR_TT"
spacing = 5
# Fervor
hbox = {
icon = {
texture = "gfx/interface/icons/icon_fervor.dds"
size = { 22 22 }
}
text_single = {
text = "FAITH_WINDOW_FERVOR"
default_format = "#high"
max_width = 180
}
}
text_single = {
name = "fervor_trend"
text = "[Faith.GetYearlyFervorChange|=+2]"
max_width = 110
default_format = "#low"
fontsize = 13
}
}
type widget_main_doctrine_item = flowcontainer {
direction = vertical
tooltipwidget = {
using = doctrine_type_tooltip
}
widget = {
parentanchor = hcenter
size = { 52 64 }
### Glow
block "doctrine_divergence_glow" {}
icon = {
# Raw size (132 x 160)
size = { 52 64 }
texture = "gfx/interface/icons/faith_doctrines/doctrine_banner.dds"
icon_doctrine = {
name = "doctrine_group_icon"
# Raw size (120 x 120)
size = { 40 40 }
parentanchor = center
block "doctrine_icon_texture"
{
texture = "[DoctrineType.GetIcon]"
}
}
block "doctrine_divergence_icon" {}
}
}
text_multi = {
parentanchor = hcenter
max_width = 105
min_width = 76
max_height = 46
autoresize = yes
text = "[DoctrineType.GetNameNoTooltip( Faith.Self )]"
align = hcenter|top
default_format = "#high"
background = {
texture = "gfx/interface/component_tiles/tile_title_bg_01.dds"
spriteType = Corneredtiled
spriteborder = { 40 8 }
texture_density = 2
alpha = 0.5
margin = { 10 5 }
modify_texture = {
name = "mask"
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = alphaMultiply
}
}
}
}
type widget_doctrine_group_item = widget {
datacontext = "[DoctrineGroupItem.GetSelectedDoctrineItem]"
datacontext = "[DoctrineItem.GetDoctrine]"
size = { 275 50 }
background = {
using = Background_Area
}
background = {
name = "divergent_doctrine_tint"
visible = "[NotEqualTo_CFixedPoint( DoctrineItem.GetDivergence, '(CFixedPoint)0' )]"
using = Background_Frame
alpha = 0.7
color = { 0.85 0.75 0.45 0.3 }
using = Glow_Tenet_Animation
}
tooltipwidget = {
using = doctrine_type_tooltip
}
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 10
margin = { 8 0 }
icon_doctrine = {
name = "doctrine_icon_main"
visible = "[DoctrineCategoryType.HasTag( 'main' )]"
texture = "[DoctrineType.GetIcon]"
size = { 40 40 }
}
icon_doctrine = {
name = "doctrine_icon_other"
visible = "[And( Not( DoctrineCategoryType.HasTag( 'main' ) ), Not( DoctrineCategoryType.HasTag( 'special' ) ) )]"
texture = "[DoctrineType.GetGroup.GetIcon]"
size = { 40 40 }
}
icon_doctrine = {
name = "doctrine_icon_special"
visible = "[DoctrineCategoryType.HasTag( 'special' )]"
texture = "[DoctrineType.GetIcon]"
size = { 40 40 }
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 0
vbox = {
layoutpolicy_horizontal = expanding
spacing = -4
text_single = {
visible = "[Not( DoctrineCategoryType.HasTag( 'special' ) )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_DOCTRINE_GROUP_NAME"
align = nobaseline
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_DOCTRINE_SELECTED_NAME"
align = nobaseline
}
}
expand = {}
container_doctrine_divergence = {
}
}
}
}
type icon_main_doctrine = icon {
# Raw size (132 x 160)
size = { 52 64 }
tooltipwidget = {
using = doctrine_type_tooltip
}
block "main_doctrine_banner_background"
{
texture = "gfx/interface/icons/faith_doctrines/doctrine_banner.dds"
}
icon_doctrine = {
name = "doctrine_group_icon"
# Raw size (120 x 120)
size = { 40 40 }
parentanchor = center
block "doctrine_icon_texture"
{
texture = "[DoctrineType.GetIcon]"
}
}
block "main_doctrine_divergence" {}
}
type text_doctrine_knowledge = text_single {
autoresize = no
text = "[SelectLocalization( GetPlayer.KnowsDoctrine( DoctrineType.Self ), 'doctrine_status_known', 'doctrine_status_unknown' )]"
alpha = "[Select_float( GetPlayer.KnowsDoctrine( DoctrineType.Self ), '(float)1.0', '(float)0.5' )]"
align = nobaseline|right
}
type hbox_doctrine_status_item = hbox {
layoutpolicy_horizontal = expanding
margin = { 5 0 }
margin_right = 10
background = {
using = Background_Area
alpha = 0.6
}
background = {
visible = "[Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self )]"
margin_bottom = 0
margin_top = -2
using = Status_Good
using = Color_Blue
alpha = 0.25
}
background = {
visible = "[And( Rite.HasDoctrine( DoctrineType.Self ), Not( Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ) ) )]"
margin_bottom = 0
margin_top = -2
using = Status_Good
using = Color_Bright_Yellow
alpha = 0.25
}
tooltipwidget = {
using = doctrine_type_tooltip
}
block "doctrine_tooltip_placement" {}
block "doctrine_name" {
text_single = {
visible = "[Rite.HasDoctrine( DoctrineType.Self )]"
layoutpolicy_horizontal = expanding
autoresize = no
min_height = 24
text = "[DoctrineType.GetNameNoTooltip( Faith.Self )|V]"
align = nobaseline
}
text_single = {
visible = "[And( Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ), Not( Rite.HasDoctrine( DoctrineType.Self ) ) )]"
layoutpolicy_horizontal = expanding
autoresize = no
min_height = 24
text = "[DoctrineType.GetNameNoTooltip( Faith.Self )]"
align = nobaseline
}
text_single = {
visible = "[Not( Or( Rite.HasDoctrine( DoctrineType.Self ), Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ) ) )]"
layoutpolicy_horizontal = expanding
autoresize = no
min_height = 24
text = "[DoctrineType.GetNameNoTooltip( Faith.Self )]"
alpha = "[Select_float( GetPlayer.KnowsDoctrine( DoctrineType.Self ), '(float)1.0', '(float)0.5' )]"
align = nobaseline
}
}
widget = {
size = { 140 24 }
block "doctrine_status_text"
{
text_single = {
visible = "[And( Rite.HasDoctrine( DoctrineType.Self ), Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ) )]"
size = { 100% 100% }
autoresize = no
text = "doctrine_status_rite_mainline"
default_format = "#high"
align = nobaseline|right
}
text_single = {
visible = "[And( Rite.HasDoctrine( DoctrineType.Self ), Not( Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ) ) )]"
size = { 100% 100% }
autoresize = no
text = "doctrine_status_rite"
default_format = "#high"
align = nobaseline|right
}
text_single = {
visible = "[And( Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ), Not( Rite.HasDoctrine( DoctrineType.Self ) ) )]"
size = { 100% 100% }
autoresize = no
text = "doctrine_status_mainline"
align = nobaseline|right
}
}
block "doctrine_status_knowledge" {
text_doctrine_knowledge = {
visible = "[Not( Or( Rite.HasDoctrine( DoctrineType.Self ), Rite.GetFaith.GetMainRite.HasDoctrine( DoctrineType.Self ) ) )]"
size = { 100% 100% }
}
}
}
block "main_doctrine_known" {}
}
type vbox_expanded_doctrine_group = vbox {
layoutpolicy_horizontal = expanding
margin = { 0 5 }
spacing = 2
hbox = {
layoutpolicy_horizontal = expanding
min_height = 35
background = {
using = Background_Area_Solid
}
spacer = { size = { 15 0 } }
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
margin_right = 5
text = "[DoctrineGroupItem.GetGroupType.GetName( GetPlayer.GetFaith )]"
default_format = "#S"
align = nobaseline
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 5
margin_left = 10
hbox = {
datacontext = "[DoctrineGroupItem.GetSelectedDoctrineItem]"
datacontext = "[DoctrineItem.GetDoctrine]"
margin = { 6 6 }
tooltipwidget = {
using = doctrine_type_tooltip
}
using = tooltip_ws
background = {
using = Background_Area
}
icon_doctrine = {
name = "doctrine_icon_main"
visible = "[DoctrineCategoryType.HasTag( 'main' )]"
texture = "[DoctrineType.GetIcon]"
}
icon_doctrine = {
name = "doctrine_icon_other"
visible = "[And( Not( DoctrineCategoryType.HasTag( 'main' ) ), Not( DoctrineCategoryType.HasTag( 'special' ) ) )]"
texture = "[DoctrineType.GetGroup.GetIcon]"
}
icon_doctrine = {
name = "doctrine_icon_special"
visible = "[DoctrineCategoryType.HasTag( 'special' )]"
texture = "[DoctrineType.GetIcon]"
}
}
vbox = {
layoutpolicy_vertical = expanding
margin = { 0 3 }
divider_light = {
layoutpolicy_vertical = expanding
}
}
spacer = {}
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
spacing = 3
datamodel = "[DoctrineGroupItem.GetDoctrineItems]"
item = {
hbox_doctrine_status_item = {
datacontext = "[DoctrineItem.GetDoctrine]"
datacontext = "[DoctrineItem.GetFaith]"
}
}
}
expand = {}
}
}
type vbox_expanded_doctrine_category = vbox {
datacontext = "[DoctrineCategoryItem.GetCategoryType]"
visible = "[DoctrineCategoryType.IsVisible]"
layoutpolicy_horizontal = expanding
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.Unfold]"
button_expandable_toggle_field = {
blockoverride "text"
{
text = "FAITH_VIEW_DOCTRINE_CATEGORY_TITLE"
default_format = "#T"
}
}
### Doctrine Groups with their selected Doctrine
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_left = 10
datamodel = "[DoctrineCategoryItem.GetDoctrineGroupItems]"
item = {
vbox_expanded_doctrine_group = {}
}
}
}
type vbox_doctrine_category = vbox {
datacontext = "[DoctrineCategoryItem.GetCategoryType]"
visible = "[DoctrineCategoryType.IsVisible]"
layoutpolicy_horizontal = expanding
### Main Group - Style
vbox = {
visible = "[DoctrineCategoryType.HasTag( 'main' )]"
layoutpolicy_horizontal = expanding
button_standard_hover = {
layoutpolicy_horizontal = expanding
onclick = "[TenetWindow.Toggle]"
onclick = "[GetVariableSystem.Set( 'quick_access_doctrines', 'yes' )]"
tooltip = "FAITH_VIEW_SUB_WINDOW_DOCTRINES_BUTTON_TT"
button = {
size = { 100% 100% }
visible = "[TenetWindow.IsVisible]"
onclick = "[GetVariableSystem.Set( 'quick_access_doctrines', 'yes' )]"
}
text_label_center = {
parentanchor = center
size = { 100% 26 }
autoresize = no
text = "FAITH_VIEW_DOCTRINE_CATEGORY_TITLE"
alwaystransparent = yes
}
button_select_arrow = {
parentanchor = right|vcenter
position = { -5 0 }
size = { 20 20 }
alwaystransparent = yes
}
}
### Doctrine Groups with their selected Doctrine
flowcontainer = {
ignoreinvisible = yes
spacing = 5
margin_top = 2
datamodel = "[DoctrineCategoryItem.GetDoctrineGroupItems]"
wrap_length = 560
item = {
widget_main_doctrine_item = {
datacontext = "[DoctrineGroupItem.GetSelectedDoctrineItem]"
datacontext = "[DoctrineItem.GetDoctrine]"
datacontext = "[DoctrineItem.GetFaith]"
visible = "[Nor3( ObjectsEqual( DoctrineType.Self, GetDoctrine( 'doctrine_spiritual_head' ).Self ), ObjectsEqual( DoctrineType.Self, GetDoctrine( 'doctrine_temporal_head' ).Self ), ObjectsEqual( DoctrineType.Self, GetDoctrine( 'doctrine_no_head' ).Self ) )]"
margin = { 4 0 }
blockoverride "doctrine_divergence_glow" {
icon_divergent_doctrine_glow = {}
}
blockoverride "doctrine_divergence_icon" {
container_doctrine_divergence = {
parentanchor = top|right
position = { 8 -4 }
}
}
}
}
}
}
### Default - Style
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Not( DoctrineCategoryType.HasTag( 'main' ) )]"
### Doctrine Category Title
text_label_center = {
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_DOCTRINE_CATEGORY_TITLE"
}
### Doctrine Groups with their selected Doctrine
fixedgridbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
addrow = 50
addcolumn = 275
datamodel_wrap = 2
flipdirection = yes
datamodel = "[DoctrineCategoryItem.GetDoctrineGroupItems]"
item = {
widget_doctrine_group_item = {}
}
}
}
}
type window_religion_sub_window = window {
name = "religion_window"
datacontext = "[ReligionWindow.GetReligion]"
size = { 590 80% }
position = { 620 75 }
layer = middle
movable = yes
using = Window_Background_Subwindow
state = {
name = _show
using = Animation_FadeIn_Quick
using = Sound_WindowShow_Standard
}
state = {
name = _hide
using = Animation_FadeOut_Quick
using = Sound_WindowHide_Standard
}
vbox = {
margin = { 4 4 }
header_pattern = {
layoutpolicy_horizontal = expanding
blockoverride "header_text"
{
text = "RELIGION_WINDOW_TITLE"
}
blockoverride "button_close"
{
onclick = "[ReligionWindow.Close]"
}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 15 0 }
margin_bottom = 5
spacing = 5
hbox = {
spacing = 5
text_single = {
text = "SORT_BY"
align = nobaseline
}
dropdown_sort_characterlist = {
datamodel = "[ReligionWindow.GetOrderByOptions]"
onselectionchanged = "[ReligionWindow.OnOrderBySelectionChanged]"
selectedindex = "[ReligionWindow.GetOrderBySelectedIndex]"
blockoverride "text_button_drop" {
text = "[OrderFaithOption.GetName]"
}
}
button_standard = {
name = "sort_order"
size = { 25 25 }
onclick = "[ReligionWindow.RevertSortOrder]"
tooltip = "FAITH_SORT_ORDER"
using = tooltip_nw
button_icon = {
alwaystransparent = yes
parentanchor = center
size = { 25 25 }
texture = "gfx/interface/icons/flat_icons/sort_icon.dds"
framesize = { 66 66 }
frame = "[BoolTo1And2(ReligionWindow.GetSortOrder)]"
blockoverride "button_frames"
{
effectname = "NoHighlight"
}
}
}
}
expand = {}
### Only Selected religion faiths
hbox = {
layoutpolicy_horizontal = expanding
max_width = 550
spacing = 5
expand = {}
button_checkbox_label = {
onclick = "[ReligionWindow.OnShowOnlyReligionFaiths]"
blockoverride "text"
{
text = "RELIGION_SHOW_ONLY"
max_width = 180
}
blockoverride "checkbox"
{
checked = "[ReligionWindow.ShowOnlyReligionFaiths]"
}
}
tooltip = "[ReligionWindow.GetShowOnlyReligionFaithsTooltip]"
using = tooltip_ne
}
}
scrollbox = {
name = "faiths_scroll_area"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
vbox = {
datamodel = "[ReligionWindow.GetFaiths]"
layoutpolicy_horizontal = expanding
item = {
button_standard_hover = {
name = "show_faith_info"
size = { 0 80 }
layoutpolicy_horizontal = expanding
state = {
name = _mouse_click
on_finish = "[OpenGameViewData( 'faith', Faith.Self )]"
}
background = {
visible = "[Faith.IsSelected]"
using = Background_Area
}
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
tooltipwidget = { faith_tooltip_click = {} }
using = tooltip_es
divider_light = {
alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]"
size = { 100% 3 }
parentanchor = bottom
position = { 0 1 }
}
hbox = {
margin = { 10 5 }
alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]"
icon = {
name = "faith_icon"
texture = "[Faith.GetIcon]"
size = { 60 60 }
}
vbox = {
margin_left = 10
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
text_single = {
name = "faith_name"
text = "FAITH_COOLTIP_GETNAME"
align = left|nobaseline
using = Font_Size_Medium
default_format = "#high"
max_width = 240
}
expand = {}
text_single = {
name = "religion_faith_name"
margin_right = 5
text = "FAITH_RELIGION"
min_width = 160
align = right|nobaseline
}
}
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
icon = {
texture = "gfx/interface/icons/icon_fervor.dds"
size = { 22 22 }
}
text_single = {
name = "fervor"
text = "FAITH_WINDOW_FERVOR"
using = Font_Size_Small
align = left|nobaseline
}
expand = {}
}
text_single = {
name = "counties"
layoutpolicy_horizontal = expanding
text = "FAITH_WINDOW_COUNTIES"
align = left|nobaseline
default_format = "#low"
autoresize = no
}
}
}
}
}
}
}
}
}
}
type widget_challenger_item = widget {
datacontext = "[CharacterListItem.GetCharacter]"
size = { 580 110 }
divider = {
parentanchor = bottom|hcenter
size = { 100% 3 }
}
hbox = {
spacing = 10
portrait_head_small = {}
button_standard = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
onclick = "[CharacterListItem.OnClick('character')]"
enabled = "[CharacterListItem.IsSelectable]"
tooltip = "[CharacterListItem.GetUnselectableReason]"
framesize = { 252 80 }
spriteType = Corneredtiled
spriteborder = { 10 30 }
block "button_texture"
{
texture = "gfx/interface/buttons/button_entry_characterlist.dds"
}
character_list_arrow = {
name = "character_list_arrow"
}
using = default_character_list_overlay
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 12 6 }
# Name and age
hbox = {
layoutpolicy_horizontal = expanding
spacing = 10
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
alwaystransparent = yes
text = "[Character.GetUINameNoTooltip|U]"
using = Font_Size_Medium
align = nobaseline
}
expand = {}
vbox = {
using = character_age_or_death_text
}
}
# Title, relation, rite
vbox = {
layoutpolicy_horizontal = expanding
datacontext = "[ChallengersWindow.GetChallengerItemForCharacter( Character.Self )]"
spacing = 6
text_single = {
name = "character_relation"
visible = "[Character.HasRelationTo( GetPlayer )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Character.GetRelationToString( GetPlayer )]"
tooltip = "EXTENDED_RELATIONS_TOOLTIP"
default_format = "#low"
align = nobaseline
alwaystransparent = yes
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 6
coa_realm_tiny = {
datacontext = "[Challenger.GetChallengerTitle]"
}
hbox = {
datacontext = "[Character.GetRite]"
layoutpolicy_horizontal = expanding
spacing = 5
button_rite_icon = {
size = { 35 35 }
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Rite.GetName]"
align = nobaseline
}
}
expand = {}
text_single = {
visible = "[ObjectsEqual( Challenger.GetChallengerTitle, Challenger.GetSponsorTitle )]"
layoutpolicy_horizontal = expanding
autoresize = no
margin_right = 5
text = "CHALLENGER_SELF_SPONSORED"
default_format = "#weak"
align = nobaseline|right
}
hbox = {
visible = "[Not( ObjectsEqual( Challenger.GetChallengerTitle, Challenger.GetSponsorTitle ) )]"
layoutpolicy_horizontal = expanding
spacing = 10
text_single = {
datacontext = "[Challenger.GetChallengerTitle]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "CHALLENGER_TITLE_SPONSORSHIP"
align = nobaseline|right
}
coa_realm_tiny = {
datacontext = "[Challenger.GetSponsorTitle]"
}
}
button_interactions_religion = {}
}
}
}
}
}
}
type widget_challenger_item_big = widget {
size = { 290 340 }
background = {
using = Background_Area
}
vbox = {
datacontext = "[CharacterListItem.GetCharacter]"
datacontext = "[ChallengersWindow.GetChallengerItemForCharacter( Character.Self )]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
margin = { 12 8 }
spacing = 14
background = {
using = Background_Area_Dark
}
widget = {
size = { 30 30 }
coa_realm_tiny = {
parentanchor = center
position = { 0 3 }
datacontext = "[Challenger.GetChallengerTitle]"
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 2
ignoreinvisible = no
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Character.GetTitledFirstNameNoTooltip]"
align = nobaseline
default_format = "#high"
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Character.GetPrimaryTitle.GetNameNoTooltip]"
align = nobaseline
}
}
expand = {}
vbox = {
using = character_age_or_death_text
blockoverride "list_layout" {}
}
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
datacontext = "[GetIllustration( 'character_view_bg' )]"
margin_top = 16
spacing = -4
portrait_torso = {
layoutpolicy_horizontal = expanding
background = {
texture = "[Illustration.GetTexture( Character.MakeScope )]"
fittype = centercrop
using = Mask_Rough_Edges
alpha = 0.4
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
mirror = vertical
}
}
allow_outside = yes
blockoverride "portrait_mask"
{
mask = "gfx/portraits/portrait_mask_council.dds"
}
blockoverride "portrait_texture"
{
portrait_texture = "[Character.GetAnimatedPortraitEvenIfDead('environment_torso', 'camera_torso', 'idle', PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]"
}
blockoverride "coa" {}
blockoverride "dead_icon" {}
blockoverride "grayscale" {}
blockoverride "opinion_box"
{
portrait_opinion = {
parentanchor = bottom|hcenter
position = { 0 -8 }
}
}
widget = {
parentanchor = right
size = { 60 100% }
alwaystransparent = no
button_interactions_religion = {
parentanchor = right
position = { -15 0 }
glow = {
color = { 0 0 0 0.3 }
glow_radius = 4
}
}
}
}
widget = {
layoutpolicy_horizontal = expanding
size = { 0 64 }
hbox = {
datacontext = "[Character.GetRite]"
layoutpolicy_horizontal = expanding
margin = { 12 8 }
spacing = 8
background = {
using = Background_Area_Dark
}
button_rite_icon = {
size = { 40 40 }
}
text_single = {
visible = "[ObjectsEqual( Challenger.GetChallengerTitle, Challenger.GetSponsorTitle )]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Rite.GetName]"
align = nobaseline
}
text_single = {
visible = "[ObjectsEqual( Challenger.GetChallengerTitle, Challenger.GetSponsorTitle )]"
max_width = 100
text = "CHALLENGER_SELF_SPONSORED"
align = nobaseline|right
default_format = "#weak"
}
hbox = {
visible = "[Not( ObjectsEqual( Challenger.GetChallengerTitle, Challenger.GetSponsorTitle ) )]"
layoutpolicy_horizontal = expanding
spacing = 14
datacontext = "[Challenger.GetSponsorTitle]"
widget = {
size = { 30 30 }
coa_realm_tiny = {
datacontext = "[Title.GetHolder]"
parentanchor = center
position = { 0 3 }
}
}
vbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "CHALLENGER_TITLE_SPONSORSHIP"
align = nobaseline
default_format = "#high"
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Title.GetNameNoTooltip]"
align = nobaseline
}
}
}
}
}
}
}
}
type window_challengers_sub_window = window {
name = "challengers_subwindow"
size = { 640 80% }
position = { 620 75 }
layer = middle
movable = yes
using = Window_Background_Subwindow
state = {
name = _show
using = Animation_FadeIn_Quick
using = Sound_WindowShow_Standard
position_x = 620
}
state = {
name = _hide
using = Animation_FadeOut_Quick
using = Sound_WindowHide_Standard
position_x = 580
}
vbox = {
margin = { 4 4 }
header_pattern = {
layoutpolicy_horizontal = expanding
blockoverride "header_text"
{
text = "challengers_window_title"
}
blockoverride "button_close"
{
onclick = "[ChallengersWindow.Close]"
}
}
vbox_character_list = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
datacontext = "[ChallengersWindow.GetChallengersList]"
blockoverride "filters_visible"
{
visible = no
}
blockoverride "sort_buttons" {}
blockoverride "skill_sort_buttons" {}
blockoverride "container_implementation"
{
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Not(CharacterSelectionList.IsBuildingList)]"
fixedgridbox = {
visible = "[GreaterThan_int32( GetDataModelSize( CharacterSelectionList.GetList ), '(int32)4' )]"
addcolumn = 580
addrow = 118
datamodel_reuse_widgets = yes
datamodel = "[CharacterSelectionList.GetList]"
item = {
widget_challenger_item = {}
}
}
fixedgridbox = {
layoutpolicy_horizontal = expanding
visible = "[LessThan_int32( GetDataModelSize( CharacterSelectionList.GetList ), '(int32)5' )]"
addcolumn = 300
addrow = 350
flipdirection = yes
datamodel_wrap = 2
datamodel_reuse_widgets = yes
datamodel = "[CharacterSelectionList.GetList]"
item = {
widget_challenger_item_big = {}
}
}
}
}
}
}
}
type window_rite_sub_window = window {
name = "rite_window"
datacontext = "[RiteWindow.GetReligion]"
size = { 590 80% }
position = { 620 75 }
layer = middle
movable = yes
using = Window_Background_Subwindow
state = {
name = _show
using = Animation_FadeIn_Quick
using = Sound_WindowShow_Standard
}
state = {
name = _hide
using = Animation_FadeOut_Quick
using = Sound_WindowHide_Standard
}
vbox = {
margin = { 4 4 }
header_pattern = {
layoutpolicy_horizontal = expanding
blockoverride "header_text"
{
text = "FAITH_VIEW_OTHER_RITES_TITLE"
}
blockoverride "button_close"
{
onclick = "[RiteWindow.Close]"
}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 15 0 }
margin_bottom = 5
spacing = 5
hbox = {
spacing = 5
text_single = {
text = "SORT_BY"
align = nobaseline
}
dropdown_sort_characterlist = {
datamodel = "[RiteWindow.GetOrderByOptions]"
onselectionchanged = "[RiteWindow.OnOrderBySelectionChanged]"
selectedindex = "[RiteWindow.GetOrderBySelectedIndex]"
blockoverride "text_button_drop" {
text = "[OrderRiteOption.GetName]"
}
}
button_standard = {
name = "sort_order"
size = { 25 25 }
onclick = "[RiteWindow.RevertSortOrder]"
tooltip = "RITE_SORT_ORDER"
using = tooltip_nw
button_icon = {
alwaystransparent = yes
parentanchor = center
size = { 25 25 }
texture = "gfx/interface/icons/flat_icons/sort_icon.dds"
framesize = { 66 66 }
frame = "[BoolTo1And2(RiteWindow.GetSortOrder)]"
blockoverride "button_frames"
{
effectname = "NoHighlight"
}
}
}
}
expand = {}
### Only Selected faith rites
hbox = {
layoutpolicy_horizontal = expanding
max_width = 550
spacing = 5
expand = {}
button_checkbox_label = {
onclick = "[RiteWindow.OnShowOnlyReligionFaiths]"
blockoverride "text"
{
text = "FAITH_VIEW_RITE_SHOW_ONLY_SAME_RELIGION"
max_width = 180
}
blockoverride "checkbox"
{
checked = "[RiteWindow.ShowOnlyReligionFaiths]"
}
}
tooltip = "[RiteWindow.GetShowOnlyReligionFaithsTooltip]"
using = tooltip_ne
}
}
scrollbox = {
name = "rites_scroll_area"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[RiteWindow.GetFaiths]"
item = {
vbox = {
layoutpolicy_horizontal = expanding
datacontext = "[FaithItem.GetFaith]"
visible = "[Faith.IsVisibleInGui]"
oncreate = "[BindFoldOutContext]"
button_expandable_toggle_field_content = {
size = { 550 80 }
blockoverride "foldout_button"
{
hbox = {
margin = { 20 0 }
layoutpolicy_horizontal = expanding
spacing = 5
icon = {
size = { 60 60 }
texture = "[Faith.GetIcon]"
}
vbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
text = "[Faith.GetNameNoTooltip]"
default_format = "#T"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_WINDOW_FERVOR"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_WINDOW_COUNTIES"
}
}
}
}
}
### Doctrine Groups with their selected Doctrine
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
datamodel = "[FaithItem.GetRites]"
item = {
button_standard_hover = {
name = "show_rite_info"
datacontext = "[RiteItem.GetRite]"
datacontext = "[Rite.GetFaith]"
layoutpolicy_horizontal = expanding
size = { 0 80 }
# Deliberately ungated. IsVisibleInGui is false both for a disabled rite and for every rite of a faith with no followers yet, so gating this row hides far more than the vestigial rites it would aim at. A disabled rite stays listed and inspectable; conversion is blocked by the scripted rules instead.
background = {
visible = "[ObjectsEqual( FaithWindow.GetSelectedRite.Self, Rite.Self )]"
using = Background_Area
}
onclick = "[FaithWindow.SetSelectedRite( Rite.Self )]"
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
divider_light = {
alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]"
size = { 100% 3 }
parentanchor = bottom
position = { 0 1 }
}
hbox = {
margin = { 10 5 }
alpha = "[Select_float(GreaterThan_int32(Rite.GetNumberOfCountiesOfRite,'(int32)0'), '(float)1.0','(float)0.5')]"
icon = {
name = "rite_icon"
texture = "[Rite.GetIcon]"
size = { 60 60 }
}
vbox = {
margin_left = 10
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
### Rite Name
text_single = {
name = "faith_name"
text = "FAITH_VIEW_RITE_COOLTIP_GETNAME"
align = left|nobaseline
using = Font_Size_Medium
default_format = "#high"
max_width = 240
}
expand = {}
### Parent Faith Name and Status (main)
text_single = {
datacontext = "[Rite.GetFaith]"
visible = "[Rite.IsMain]"
margin_right = 5
text = "FAITH_VIEW_RITE_FAITH_STATUS_MAIN"
min_width = 160
align = right|nobaseline
}
### Parent Faith Name and Status (branch)
text_single = {
datacontext = "[Rite.GetFaith]"
visible = "[Not( Rite.IsMain )]"
margin_right = 5
text = "FAITH_VIEW_RITE_FAITH_STATUS_BRANCH"
min_width = 160
align = right|nobaseline
}
}
### Rite Divergence
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
text = "faith_rite_item_fulfillment_delta"
align = left|nobaseline
}
expand = {}
icon = {
visible = "[Not( Rite.IsMain )]"
texture = "gfx/interface/icons/icon_rite_divergence.dds"
size = { 22 22 }
}
text_single = {
visible = "[Not( Rite.IsMain )]"
text = "FAITH_VIEW_OTHER_RITE_DIVERGENCE"
using = Font_Size_Small
align = left|nobaseline
using = tooltip_se
tooltipwidget = {
widget_rite_divergence_tooltip = {
datacontext = "[FaithWindow.GetDivergenceBreakdown( Rite.Self )]"
}
}
}
}
### Rite Followers
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_WINDOW_RITE_COUNTIES"
align = left|nobaseline
autoresize = no
}
}
}
}
}
}
}
}
}
}
}
}
}
type widget_saint_item = widget {
size = { 290 310 }
background = {
using = Background_Area
}
vbox = {
datacontext = "[SaintItem.GetSaint]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
margin = { 12 8 }
background = {
using = Background_Area_Dark
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 2
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "[Character.GetShortUIName]"
align = nobaseline
}
text_single = {
datacontext = "[SaintItem.GetLocation]"
visible = "[And(Province.IsValid, Not(Province.MakeScope.Var('hide_location_for_saint').IsSet))]"
layoutpolicy_horizontal = expanding
autoresize = no
text = "belief_saint_location"
default_format = "#weak"
align = nobaseline
}
}
expand = {}
button_round = {
datacontext = "[FaithWindow.GetFaith]"
datacontext = "[PdxGuiWidget.MakeDecisionTypeWithParam( 'pam_extract_relic_decision', 'selected_item', Character.MakeScope )]"
visible = "[And( DecisionTypeWithParams.GetDecisionType.IsShownForPlayer, Not( SaintItem.GetSaint.IsAlive ) )]"
block "extract_relic_availability" {
enabled = "[And( SaintItem.IsSaintActive( GetPlayer.Self ), GreaterThan_int32( SaintItem.GetAvailableRelics, '(int32)0' ) )]"
tooltip = "extract_relic_button_tt"
}
size = { 45 45 }
onclick = "[OpenGameViewData( 'decision_detail', DecisionTypeWithParams.Self )]"
onclick = "[TenetWindow.Close]"
using = tooltip_ne
button_icon = {
parentanchor = center
size = { 35 35 }
texture = "gfx/interface/icons/flat_icons/artifact.dds"
alwaystransparent = yes
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_top = 15
spacing = -5
portrait_torso = {
datacontext = "[GetIllustration( 'character_view_bg' )]"
layoutpolicy_horizontal = expanding
allow_outside = yes
background = {
texture = "[Illustration.GetTexture( Character.MakeScope )]"
fittype = centercrop
using = Mask_Rough_Edges
alpha = 0.3
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
mirror = vertical
}
}
blockoverride "portrait_mask"
{
mask = "gfx/portraits/portrait_mask_council.dds"
}
blockoverride "portrait_texture"
{
portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_torso', Select_CString( Character.IsAlive, 'idle', 'dead' ), PdxGetWidgetScreenSize( PdxGuiWidget.Self ) )]"
}
blockoverride "portrait_button" {}
blockoverride "coa" {}
blockoverride "dead_icon" {}
blockoverride "opinion_box" {}
blockoverride "status_icons" {}
blockoverride "grayscale" {}
}
expand = {}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 12 8 }
spacing = 10
background = {
using = Background_Area_Dark
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "belief_saint_relics"
tooltip = "belief_saint_remaining_relics"
align = nobaseline
default_format = "#low"
}
text_single = {
text = "[SaintItem.GetAvailableRelics]"
default_format = "#V"
align = nobaseline
alpha = "[Select_float( IsZero( SaintItem.GetAvailableRelics ), '(float)0.5', '(float)1.0' )]"
}
}
}
}
}
type window_tenet_sub_window = window {
name = "mainline_rite_tenets_window"
size = { 640 80% }
position = { 580 75 }
layer = middle
movable = yes
using = Window_Background_Subwindow
oncreate = "[BindTabsContext]"
oncreate = "[PdxGuiTabs.SetResetOnShown( '(bool)no' )]"
oncreate = "[PdxGuiTabs.AddTab( 'rites' )]"
oncreate = "[PdxGuiTabs.AddTab( 'tenets' )]"
oncreate = "[PdxGuiTabs.AddTab( 'doctrines' )]"
oncreate = "[PdxGuiTabs.AddTab( 'saints' )]"
datacontext = "[FaithWindow.GetFaith]"
state = {
name = _show
on_start = "[ChallengersWindow.Close]"
using = Animation_FadeIn_Quick
using = Sound_WindowShow_Standard
position_x = 620
}
state = {
name = _hide
using = Animation_FadeOut_Quick
using = Sound_WindowHide_Standard
position_x = 580
}
vbox = {
margin = { 4 4 }
margin_bottom = 8
header_pattern = {
layoutpolicy_horizontal = expanding
blockoverride "header_text" {
text = "FAITH_VIEW_FAITH_DETAILS"
}
blockoverride "button_close" {
onclick = "[TenetWindow.Close]"
}
}
### Tabs
hbox_tab_buttons = {
name = "tab_buttons"
state = {
name = "quick_access_tenets"
trigger_when = "[GetVariableSystem.Exists( 'quick_access_tenets' )]"
on_start = "[PdxGuiTabs.SetTabByKey( 'tenets' )]"
on_finish = "[GetVariableSystem.Clear( 'quick_access_tenets' )]"
}
state = {
name = "quick_access_doctrines"
trigger_when = "[GetVariableSystem.Exists( 'quick_access_doctrines' )]"
on_start = "[PdxGuiTabs.SetTabByKey( 'doctrines' )]"
on_finish = "[GetVariableSystem.Clear( 'quick_access_doctrines' )]"
}
blockoverride "icon_visible"
{
visible = no
}
blockoverride "tab_name" {}
blockoverride "tab_label"
{
text = "[Select_CString( EqualTo_string( PdxGuiTabItem.GetKey, 'saints' ), FaithWindow.GetFaith.Custom( 'PamSaintOrAncestorTitleNounPlural' ), PdxGuiTabItem.LocalizeTab( 'belief_tab' ) )]"
max_width = 120
}
blockoverride "on_click"
{
using = SubTabShortcut
}
blockoverride "extra_info" {
text_single = {
visible = "[EqualTo_string( PdxGuiTabItem.GetKey, 'saints' )]"
max_width = 40
margin_top = 3
text = "[FaithWindow.GetSaintCount]"
default_format = "#low"
align = nobaseline
}
}
}
### Rites
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
visible = "[PdxGuiTabs.IsTabSet( 'rites' )]"
hbox = {
layoutpolicy_horizontal = expanding
margin = { 15 5 }
spacing = 5
hbox = {
spacing = 5
text_single = {
max_width = 140
text = "SORT_BY"
align = nobaseline
}
dropdown_sort_characterlist = {
datamodel = "[RiteWindow.GetOrderByOptions]"
onselectionchanged = "[RiteWindow.OnOrderBySelectionChanged]"
selectedindex = "[RiteWindow.GetOrderBySelectedIndex]"
blockoverride "text_button_drop" {
text = "[OrderRiteOption.GetName]"
}
}
button_standard = {
name = "sort_order"
size = { 25 25 }
onclick = "[RiteWindow.RevertSortOrder]"
tooltip = "RITE_SORT_ORDER"
using = tooltip_nw
button_icon = {
alwaystransparent = yes
parentanchor = center
size = { 25 25 }
texture = "gfx/interface/icons/flat_icons/sort_icon.dds"
framesize = { 66 66 }
frame = "[BoolTo1And2(RiteWindow.GetSortOrder)]"
blockoverride "button_frames"
{
effectname = "NoHighlight"
}
}
}
}
expand = {}
### Only Selected faith rites
hbox = {
datacontext = "[FaithWindow.GetFaith.GetReligion]"
layoutpolicy_horizontal = expanding
max_width = 550
spacing = 5
expand = {}
button_checkbox_label = {
onclick = "[RiteWindow.OnShowOnlyReligionFaiths]"
blockoverride "text"
{
text = "FAITH_VIEW_RITE_SHOW_ONLY_SAME_RELIGION"
max_width = 180
}
blockoverride "checkbox"
{
checked = "[RiteWindow.ShowOnlyReligionFaiths]"
}
tooltip = "[RiteWindow.GetShowOnlyReligionFaithsTooltip]"
using = tooltip_ne
}
}
}
scrollbox = {
name = "rites_scroll_area"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[RiteWindow.GetFaiths]"
item = {
vbox = {
layoutpolicy_horizontal = expanding
datacontext = "[FaithItem.GetFaith]"
visible = "[Faith.IsVisibleInGui]"
oncreate = "[BindFoldOutContext]"
state = {
name = "auto-expand"
trigger_when = "[ObjectsEqual( Faith.Self, FaithWindow.GetFaith.Self )]"
on_finish = "[PdxGuiFoldOut.Unfold]"
}
button_expandable_toggle_field_content = {
size = { 550 80 }
blockoverride "foldout_button"
{
hbox = {
margin = { 20 0 }
margin_left = 28
layoutpolicy_horizontal = expanding
spacing = 5
alpha = "[Select_float( EqualTo_int32( Faith.GetNumberOfCountiesOfFaith, '(int32)0' ), '(float)0.5', '(float)1' )]"
background = {
visible = "[ObjectsEqual( Faith.Self, FaithWindow.GetFaith.Self )]"
using = Background_Frame_Gold
alpha = 0.6
}
icon = {
size = { 60 60 }
texture = "[Faith.GetIcon]"
tooltipwidget = {
faith_tooltip = {}
}
}
vbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 2
spacing = 3
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_HEADING"
default_format = "#T"
alwaystransparent = yes
}
expand = {}
text_single = {
max_width = 160
text = "FAITH_VIEW_RITE_LIST_NUMBER_OF_RITES"
align = right
default_format = "#low"
alwaystransparent = yes
}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 30
hbox = {
hbox = {
spacing = 5
tooltip = "FERVOR_TT"
icon = {
texture = "gfx/interface/icons/icon_fervor.dds"
size = { 22 22 }
}
text_single = {
text = "FAITH_WINDOW_FERVOR"
alwaystransparent = yes
max_width = 180
}
container = {
icon = {
position = { -2 5 }
size = { 22 22 }
icon = {
visible = "[GreaterThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)0' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/aptitude_icons.dds"
framesize = { 26 26 }
frame = "[Select_int32( GreaterThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)1'), '(int32)5', '(int32)4' )]"
using = Color_Green
}
icon = {
visible = "[LessThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)0' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/aptitude_icons.dds"
framesize = { 26 26 }
frame = "[Select_int32( LessThan_CFixedPoint( Faith.GetYearlyFervorChange, '(CFixedPoint)-1'), '(int32)1', '(int32)2' )]"
using = Color_Red
}
}
}
}
expand = {}
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_WINDOW_COUNTIES"
align = right
alwaystransparent = yes
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_WINDOW_FOLLOWERS"
align = right
alwaystransparent = yes
}
}
}
}
}
}
### Doctrine Groups with their selected Doctrine
vbox = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
margin_left = 20
datamodel = "[FaithItem.GetRites]"
item = {
button_standard_hover = {
name = "show_rite_info"
datacontext = "[RiteItem.GetRite]"
datacontext = "[Rite.GetFaith]"
layoutpolicy_horizontal = expanding
size = { 0 80 }
# Deliberately ungated. IsVisibleInGui is false both for a disabled rite and for every rite of a faith with no followers yet, so gating this row hides far more than the vestigial rites it would aim at. A disabled rite stays listed and inspectable; conversion is blocked by the scripted rules instead.
background = {
visible = "[ObjectsEqual( FaithWindow.GetSelectedRite.Self, Rite.Self )]"
using = Background_Area
}
background = {
using = Visible_RiteItem_Heresy
using = Status_Bad
alpha = 0.2
}
onclick = "[FaithWindow.SetSelectedRite( Rite.Self )]"
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
divider_light = {
alpha = "[Select_float(GreaterThan_int32(Faith.GetNumberOfCountiesOfFaith,'(int32)0'), '(float)1.0','(float)0.5')]"
size = { 100% 3 }
parentanchor = bottom
position = { 0 1 }
}
hbox = {
margin = { 10 5 }
alpha = "[Select_float(GreaterThan_int32(Rite.GetNumberOfCountiesOfRite,'(int32)0'), '(float)1.0','(float)0.5')]"
icon = {
name = "rite_icon"
texture = "[Rite.GetIcon]"
size = { 60 60 }
tooltipwidget = {
rite_tooltip = {}
}
}
vbox = {
layoutpolicy_horizontal = expanding
margin = { 10 0 }
spacing = 5
hbox = {
layoutpolicy_horizontal = expanding
### Rite Name
text_single = {
name = "faith_name"
text = "FAITH_VIEW_RITE_COOLTIP_GETNAME"
using = Font_Size_Medium
default_format = "#high"
max_width = 240
}
expand = {}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_RITE_FAITH"
default_format = "#low"
align = right
}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 40
widget = {
layoutpolicy_horizontal = expanding
size = { 0 22 }
# Main rite
text_single = {
visible = "[Rite.IsMain]"
datacontext = "[Rite.GetFaith]"
size = { 100% 100% }
autoresize = no
text = "FAITH_VIEW_RITE_STATUS"
align = nobaseline
}
### Rite Divergence
hbox = {
visible = "[Not( Rite.IsMain )]"
layoutpolicy_horizontal = expanding
spacing = 5
icon = {
size = { 22 22 }
texture = "gfx/interface/icons/icon_rite_divergence.dds"
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_DIVERGENCE_LABEL"
align = nobaseline
}
hbox = {
tooltipwidget = {
widget_rite_divergence_tooltip = {
datacontext = "[FaithWindow.GetDivergenceBreakdown( Rite.Self )]"
}
}
using = tooltip_se
text_single = {
using = Visible_RiteItem_Not_Heresy
text = "FAITH_VIEW_RITE_ITEM_DIVERGENCE_VALUE"
align = nobaseline
}
text_single = {
using = Visible_RiteItem_Heresy
text = "FAITH_VIEW_RITE_ITEM_DIVERGENCE_VALUE"
default_format = "#n"
align = nobaseline
}
}
expand = {}
}
}
### Rite Counties
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_WINDOW_RITE_COUNTIES"
align = nobaseline|right
}
### Rite Followers
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_WINDOW_RITE_ADHERENTS"
align = nobaseline|right
}
}
}
}
}
}
}
}
}
}
}
}
}
### Tenets
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
visible = "[PdxGuiTabs.IsTabSet( 'tenets' )]"
hbox = {
layoutpolicy_horizontal = expanding
margin = { 5 10 }
margin_left = 18
spacing = 10
background = {
using = Background_Area
}
button_rite_icon = {
size = { 40 40 }
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_SUB_WINDOW_TENETS_HEADER"
}
expand = {}
button_menu = {
onclick = "[GetVariableSystem.Toggle( 'compact_tenets_faith' )]"
shortcut = "compact_faith_window"
tooltip = "FAITH_VIEW_COMPACT_TENETS_TT"
}
}
hbox_sort_tenets = {
datacontext = "[TenetWindow.GetTenetSortController]"
}
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[FaithWindow.GetTenetGroupItems]"
item = {
vbox_tenet_group_foldout = {}
}
}
}
}
}
### Doctrines
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
visible = "[PdxGuiTabs.IsTabSet( 'doctrines' )]"
# used both here and in personal beliefs
vbox_expanded_doctrine_status = {
datacontext = "[FaithWindow.GetSelectedRite]"
blockoverride "doctrine_tooltip_placement" {
using = tooltip_ws
}
blockoverride "doctrine_status_knowledge" {}
blockoverride "main_doctrine_known" {
text_doctrine_knowledge = {
size = { 140 24 }
}
}
blockoverride "known_tenets" {
hbox = {
layoutpolicy_horizontal = expanding
datamodel = "[FaithWindow.GetCoreTenetItems]"
item = {
widget_tenet_item_compact = {
datacontext = "[TenetItem.GetTenet]"
datacontext = "[TenetItem.GetFaith]"
datacontext = "[TenetItem.GetRite]"
blockoverride "tenet_name" {
text = "[SelectLocalization( GetPlayer.KnowsTenet( TenetType.Self ), 'doctrine_status_known', 'doctrine_status_unknown' )]"
alpha = "[Select_float( GetPlayer.KnowsTenet( TenetType.Self ), '(float)1.0', '(float)0.5' )]"
}
}
}
}
}
}
}
### Saints
vbox = {
visible = "[PdxGuiTabs.IsTabSet( 'saints' )]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
margin = { 5 10 }
margin_left = 18
spacing = 10
background = {
using = Background_Area
}
button = {
size = { 40 40 }
onclick = "[FaithWindow.SetSelectedRite( Faith.GetMainRite.Self )]"
onclick = "[PdxGuiTriggerAllAnimations('faith_view_refresh')]"
texture = "[Faith.GetIcon]"
glow = {
color = { 0 0 0 0.2 }
glow_radius = 3
}
tooltipwidget = {
faith_tooltip = {}
}
}
text_single = {
max_width = 590
text = "FAITH_VIEW_SUB_WINDOW_SAINTS_HEADER"
}
expand = {}
}
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
spacing = 15
vbox = {
visible = "[DataModelHasItems( FaithWindow.GetSaintsInRealm )]"
layoutpolicy_horizontal = expanding
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]"
spacing = 5
button_expandable_toggle_field = {
blockoverride "text" {
text = "FAITH_VIEW_SAINTS_IN_YOUR_REALM"
}
}
flowcontainer = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
datamodel = "[FaithWindow.GetSaintsInRealm]"
spacing = 10
ignoreinvisible = yes
wrap_count = 2
item = {
widget_saint_item = {}
}
}
}
vbox = {
visible = "[DataModelHasItems( FaithWindow.GetSaintsOutsideRealm )]"
layoutpolicy_horizontal = expanding
oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.SetShownBehavior( 'unfolded' )]"
spacing = 5
button_expandable_toggle_field = {
blockoverride "text" {
text = "FAITH_VIEW_SAINTS_OUTSIDE_YOUR_REALM"
}
}
flowcontainer = {
visible = "[PdxGuiFoldOut.IsUnfolded]"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
datamodel = "[FaithWindow.GetSaintsOutsideRealm]"
spacing = 10
ignoreinvisible = yes
wrap_count = 2
item = {
widget_saint_item = {
blockoverride "extract_relic_availability" {
enabled = no
tooltip = "extract_relic_button_tt_outside_realm"
}
}
}
}
}
text_single = {
layoutpolicy_vertical = expanding
visible = "[EqualTo_int32( FaithWindow.GetSaintCount, '(int32)0' )]"
text = "SITUATION_PARTICIPANT_WINDOW_PARTICIPANT_EMPTY"
default_format = "#weak"
}
}
}
}
hbox = {
datacontext = "[GetDecisionWithKey( 'pam_canonize_saint_decision' )]"
visible = "[Decision.IsShownForPlayer]"
layoutpolicy_horizontal = expanding
margin = { 16 12 }
button_decision_entry = {
layoutpolicy_horizontal = expanding
size = { 280 45 }
onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]"
using = tooltip_ne
}
}
}
}
}
type button_holy_order_interactions_button = button_round {
visible = "[And( Character.IsValid, Not( IsObserver ) )]"
onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'holy_order')]"
tooltip_visible = "[Not( IsInteractionMenuOpenForCharacterWithFilter( Character.Self, 'holy_order' ) )]"
tooltip = "FAITH_VIEW_HOLY_ORDER_INTERACTIONS_BUTTON_TT"
using = tooltip_se
button_icon = {
alwaystransparent = yes
parentanchor = center
size = { 30 30 }
texture = "gfx/interface/icons/flat_icons/character_interactions.dds"
}
text_single = {
parentanchor = bottom|hcenter
position = { 0 3 }
text = "[GetNumberOfValidInteractionsWithFilter(Character.Self, 'holy_order')]"
default_format = "#glow_color:{0.1,0.1,0.1,1.0}"
background = {
margin = { 5 0 }
margin_top = -5
using = Background_Area_Dark
}
}
}
type widget_faith_character = widget {
size = { 175 185 }
widget = {
size = { 100% 100% }
allow_outside = yes
widget = {
size = { 150 100% }
widget = {
parentanchor = center
position = { 22 -5 }
size = { 100 100 }
block "head_of_faith" {}
}
portrait_torso = {
visible = "[Character.IsValid]"
size = { 100% 100% }
blockoverride "portrait_button_size" {
size = { 260 180 } # to not cut off their props
position = { 15 -5 }
}
blockoverride "portrait_mask" {
mask = "gfx/portraits/portrait_mask_solid.dds"
}
blockoverride "portrait_status_icons" {
portrait_status_icons = {
parentanchor = bottom|left
position = { 40 -40 }
scale = 0.85
background = {
using = Background_Area_Dark
margin = { 2 3 }
alpha = 0.8
}
}
}
blockoverride "coa" {}
blockoverride "schism_stance" {
widget_schism_stance = {}
}
blockoverride "opinion_box"
{
portrait_opinion = {
parentanchor = bottom|hcenter
position = { 15 -38 }
}
}
}
}
flowcontainer = {
parentanchor = bottom
position = { 48 -8 }
spacing = 5
ignoreinvisible = yes
text_label_center = {
max_width = 140
block "text" {
text = "LOREM_IPSUM_TITLE"
}
}
container_faith_positions = {}
}
widget = {
size = { 100% 40 }
alwaystransparent = no # to block character tooltips
allow_outside = yes
flowcontainer = {
parentanchor = right
position = { 0 5 }
spacing = 12
direction = vertical
button_interactions_religion = {
glow = {
color = { 0 0 0 0.5 }
glow_radius = 8
}
}
block "interactions_extra" {}
}
}
coa_title_tiny_crown = {
visible = "[And( Character.HasLandedTitles, IsHoF( Character ) )]"
datacontext = "[Faith.GetReligiousHeadTitle]"
parentanchor = bottom
position = { 2 -8 }
}
coa_realm_tiny_crown = {
visible = "[And( Character.HasLandedTitles, Not( IsHoF( Character ) ) )]"
parentanchor = bottom
position = { 2 -8 }
}
}
}
type widget_faith_character_tiny = widget {
size = { 170 130 }
vbox = {
layoutpolicy_vertical = expanding
spacing = 3
margin_top = 8
hbox = {
layoutpolicy_horizontal = expanding
spacing = 5
block "interactions_before_portrait" {}
widget = {
size = { 85 90 }
block "head_of_faith" {}
portrait_head_small = {
visible = "[Character.IsValid]"
}
}
vbox = {
block "interactions_visibility" {}
layoutpolicy_vertical = expanding
spacing = 6
button_interactions_religion = {
glow = {
color = { 0 0 0 0.5 }
glow_radius = 8
}
}
block "interactions_extra" {}
expand = {}
}
expand = {}
}
flowcontainer = {
block "text_layoutpolicy" {
layoutpolicy_horizontal = expanding
}
spacing = 5
text_label_center = {
max_width = 140
margin_left = 5
block "text" {
text = "LOREM_IPSUM_TITLE"
}
align = left
}
container_faith_positions = {}
}
}
}
type container_faith_positions = container {
visible = "[Character.IsValid]"
parentanchor = bottom
text_single = {
visible = "[GreaterThan_int32( PdxGuiWidget.AccessParent.FindChild( 'positions' ).CountVisibleChildren, '(int32)1' )]"
margin_bottom = 2
text = "FAITH_VIEW_NUM_FAITH_POSITIONS"
align = nobaseline
default_format = "#low"
using = tooltip_sw
tooltipwidget = {
container = {
using = DefaultTooltipBackground
alwaystransparent = no
flowcontainer = {
ignoreinvisible = yes
direction = vertical
margin = { 20 10 }
spacing = 5
margin_bottom = 20
text_single = {
visible = "[ObjectsEqual( Character.GetChallenger, Character.Self )]"
text = "FAITH_VIEW_CHALLENGER_TITLE"
}
text_single = {
visible = "[IsHoF( Character )]"
text = "[head_of_faith|E]"
}
text_single = {
visible = "[IsHoR( Character )]"
text = "[head_of_rite|E]"
}
text_single = {
visible = "[And3( ObjectsEqual( Character.Self, GetPlayer.GetCapitalLocation.GetClericalRegionHolder ), Not( Character.IsLocalPlayer ), Not( IsObserver ) )]"
text = "FAITH_VIEW_YOUR_ARCHBISHOP"
}
}
}
}
}
container = {
name = "positions"
container = {
visible = "[ObjectsEqual( Character.GetChallenger, Character.Self )]"
}
container = {
visible = "[IsHoF( Character )]"
}
container = {
visible = "[IsHoR( Character )]"
}
container = {
visible = "[And3( ObjectsEqual( Character.Self, GetPlayer.GetCapitalLocation.GetClericalRegionHolder ), Not( Character.IsLocalPlayer ), Not( IsObserver ) )]"
}
}
}
type button_interactions_religion = button_interactions {
name = "religion"
tooltip = "RELIGIOUS_INTERACTIONS_BUTTON_TOOLTIP"
}
# requires a name of the category and a Character
type button_interactions = button_round {
visible = "[And( Character.IsValid, Not( IsObserver ) )]"
onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.GetName ) )]"
tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.GetName ) ) )]"
button_icon = {
alwaystransparent = yes
parentanchor = center
size = { 30 30 }
texture = "gfx/interface/icons/flat_icons/character_interactions.dds"
}
text_single = {
position = { 0 3 }
parentanchor = bottom|hcenter
background = {
margin = { 5 0 }
margin_top = -5
using = Background_Area_Dark
}
text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, ConcatIfNeitherEmpty( 'interaction_category_', PdxGuiWidget.AccessParent.GetName ) )]"
default_format = "#glow_color:{0.1,0.1,0.1,1.0}"
}
}
type button_challengers = button_round {
visible = "[DataModelHasItems( Faith.GetChallengers )]"
size = { 40 40 }
onclick = "[TenetWindow.Close]"
onclick = "[ChallengersWindow.Toggle]"
tooltip = "toggle_challengers_view_tt"
using = tooltip_ne
button_icon = {
parentanchor = center
alwaystransparent = yes
texture = "gfx/interface/icons/flat_icons/challenge_status.dds"
down = "[ChallengersWindow.IsVisible]"
}
text_single = {
visible = "[Not( Rite.IsMain )]"
position = { 0 3 }
parentanchor = bottom|hcenter
background = {
margin = { 5 0 }
margin_top = -5
using = Background_Area_Dark
}
text = "[GetDataModelSize( Faith.GetChallengers )]"
default_format = "#glow_color:{0.1,0.1,0.1,1.0}"
}
}
type widget_empty_head_of_faith_button = widget {
datacontext = "[GetDecisionWithKey( 'create_hof_decision' )]"
size = { 110 120 }
using = head_of_faith_widget_background
button_standard = {
name = "create_head_of_faith"
size = { 75 80 }
parentanchor = center
onclick = "[OpenGameViewData( 'decision_detail', Decision.Self )]"
visible = "[And( Decision.IsShownForPlayer, ObjectsEqual( Faith.Self, GetPlayer.GetFaith ) )]"
tooltipwidget = {
decision_tooltip = {}
}
using = tooltip_es
highlight_icon = {
name = "not_possible"
visible = "[Not( Decision.IsPossibleForPlayer )]"
parentanchor = center
size = { 30 30 }
texture = "gfx/interface/icons/symbols/icon_cross.dds"
}
button_plus = {
visible = "[Decision.IsPossibleForPlayer]"
parentanchor = center
alwaystransparent = yes
}
}
margin_widget = {
visible = "[Not( And( Decision.IsShownForPlayer, ObjectsEqual( Faith.Self, GetPlayer.GetFaith ) ) )]"
size = { 100% 100% }
margin = { 8 8 }
text_multi = {
visible = "[Faith.HasDoctrineByKey( 'doctrine_no_head' )]"
size = { 100% 100% }
text = "FAITH_VIEW_HOF_NONE"
align = nobaseline|center
tooltip = "FAITH_VIEW_HOF_NONE_TT"
}
text_multi = {
visible = "[Not( Faith.HasDoctrineByKey( 'doctrine_no_head' ) )]"
size = { 100% 100% }
margin = { 4 12 }
text = "FAITH_VIEW_HOF_NOT_YET_CREATED"
align = nobaseline|center
tooltip = "FAITH_VIEW_HOF_NOT_YET_CREATED_TT"
}
}
coa_title_tiny = {
datacontext = "[Faith.GetReligiousHeadTitle]"
visible = "[And( Title.IsValid, Not( IsCompactFaith ) )]"
parentanchor = hcenter
position = { 0 -6 }
}
}
type vbox_doctrine_head_of_rite = vbox {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
tooltipwidget = {
using = doctrine_type_tooltip
}
background = { using = Background_Area }
background = {
using = Background_Frame
}
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 16 16 }
spacing = 8
minimumsize = { 250 -1 }
icon = {
# Raw size (132 x 160)
size = { 52 64 }
texture = "gfx/interface/icons/faith_doctrines/doctrine_banner.dds"
icon_doctrine = {
name = "doctrine_group_icon"
# Raw size (120 x 120)
size = { 54 54 }
parentanchor = center
block "doctrine_icon_texture"
{
texture = "[DoctrineType.GetIcon]"
}
}
}
vbox = {
spacing = 6
text_single = {
layoutpolicy_horizontal = expanding
text = "[DoctrineType.GetNameNoTooltip( Faith.Self )]"
align = nobaseline
max_width = 120
default_format = "#high"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[head_of_faith|E]"
align = nobaseline
max_width = 120
default_format = "#high"
}
}
expand = {}
}
}
type vbox_expanded_doctrine_status = vbox
{
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
margin = { 18 10 }
spacing = 10
background = {
using = Background_Area
}
button_rite_icon = {
size = { 40 40 }
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_SUB_WINDOW_DOCTRINES_HEADER"
}
divider_light = {
layoutpolicy_vertical = expanding
}
hbox = {
visible = "[GetPlayer.IsValid]"
layoutpolicy_horizontal = expanding
spacing = 5
text_single = {
layoutpolicy_horizontal = expanding
autoresize = no
text = "FAITH_VIEW_YOUR_KNOWLEDGE"
align = right
}
text_single = {
text = "[GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'rite', Rite.MakeScope ).ScriptValue( 'pam_knows_rite_level' )|V0%]"
}
}
}
scrollbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
blockoverride "scrollbox_content"
{
block "known_tenets" {}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
block "doctrine_categories_model"
{
datamodel = "[FaithWindow.GetDoctrineCategoryItems]"
}
item = {
vbox_expanded_doctrine_category = {}
}
}
}
}
}
type widget_rite_icon = widget {
size = { 80 80 }
tooltipwidget = {
rite_tooltip = {}
}
icon = {
using = Visible_Rite_Not_Heresy
size = { 100% 100% }
texture = "[Rite.GetIcon]"
glow = {
color = { 0 0 0 0.3 }
glow_radius = 4
}
}
icon = {
using = Visible_Rite_Heresy
size = { 100% 100% }
texture = "[Rite.GetIcon]"
glow = {
color = { 0.25 0 0 0.6 }
glow_radius = 8
glow_generation_rules= {
glow_alpha_mask = 0
glow_blur_passes = 10
glow_texture_downscale = 5.5f
glow_ignore_inside_pixels = yes
}
}
}
}
}
template Glow_Tenet_Animation {
state = {
name = "glow_animation_a"
next = "glow_animation_b"
trigger_on_create = yes
alpha = 0.8
using = Animation_Curve_Default
duration = 2
}
state = {
name = "glow_animation_b"
next = "glow_animation_a"
alpha = 0.5
using = Animation_Curve_Default
duration = 2
}
}
types FaithMessageTypes
{
type container_message_doctrine = container {
datacontext = "[GetPlayer]"
datacontext = "[Character.GetFaith]"
datacontext = "[Character.GetRite]"
tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP_WITH_FAITH"
using = tooltip_se
icon = {
name = "doctrine_banner_background"
datacontext = "[DoctrineType.GetGroup]"
datacontext = "[DoctrineGroupType.GetCategory]"
size = { 66 88 }
texture = "gfx/interface/icons/faith_doctrines/doctrine_banner.dds"
icon_doctrine = {
name = "doctrine_icon_main"
visible = "[DoctrineCategoryType.HasTag( 'main' )]"
parentanchor = center
position = { 0 -3 }
size = { 50 50 }
texture = "[DoctrineType.GetIcon]"
}
icon_doctrine = {
name = "doctrine_icon_other"
visible = "[And( Not( DoctrineCategoryType.HasTag( 'main' ) ), Not( DoctrineCategoryType.HasTag( 'special' ) ) )]"
parentanchor = center
position = { 0 -3 }
size = { 50 50 }
texture = "[DoctrineType.GetGroup.GetIcon]"
}
icon_doctrine = {
name = "doctrine_icon_special"
visible = "[DoctrineCategoryType.HasTag( 'special' )]"
parentanchor = center
position = { 0 -3 }
size = { 50 50 }
texture = "[DoctrineType.GetIcon]"
}
}
}
type container_message_faith = container {
tooltipwidget = {
faith_tooltip = {}
}
using = tooltip_se
highlight_icon = {
name = "icon"
texture = "[Faith.GetIcon]"
size = { 90 90 }
alpha = 0.85
}
}
type container_message_rite = container {
tooltipwidget = {
rite_tooltip = {}
}
using = tooltip_se
highlight_icon = {
name = "icon"
texture = "[Rite.GetIcon]"
size = { 90 90 }
alpha = 0.85
}
}
}
template Visible_Rite_Heresy
{
visible = "[GreaterThanOrEqualTo_CFixedPoint( CalcDivergenceScore( Rite.Self ), Rite.GetFaith.GetHeresyThreshold )]"
}
template Visible_Rite_Not_Heresy
{
visible = "[LessThan_CFixedPoint( CalcDivergenceScore( Rite.Self ), Rite.GetFaith.GetHeresyThreshold )]"
}
template Visible_RiteItem_Heresy
{
visible = "[GreaterThanOrEqualTo_CFixedPoint( RiteItem.GetDivergenceScore, RiteItem.GetHeresyThreshold )]"
}
template Visible_RiteItem_Not_Heresy
{
visible = "[LessThan_CFixedPoint( RiteItem.GetDivergenceScore, RiteItem.GetHeresyThreshold )]"
}
template Tenet_Glows {
icon = {
name = "core_tenet_glow"
block "core_tenet_glow" {
visible = "[Rite.HasTenet( TenetType.Self )]"
}
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_glow.dds"
color = { 0.45 0.5 0.55 1 }
alpha = 0.5
using = Glow_Tenet_Animation
}
icon = {
name = "not_core_tenet_glow"
block "not_core_tenet_glow" {
visible = no
}
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_heretical_glow.dds"
color = { 0.85 0.75 0.45 0.6 }
alpha = 0.2
using = Glow_Tenet_Animation
}
icon = {
name = "prohibited_tenet_glow"
visible = "[Faith.HasTenetStatus( TenetType.Self, 'prohibited' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_heretical_glow.dds"
color = { 0.85 0.5 0.3 1 }
alpha = 0.5
using = Glow_Tenet_Animation
}
}
template Tenet_Glows_Small {
icon = {
name = "core_tenet_glow"
block "core_tenet_glow" {
visible = "[Rite.HasTenet( TenetType.Self )]"
}
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_glow_small.dds"
color = { 0.45 0.5 0.55 1 }
alpha = 0.5
using = Glow_Tenet_Animation
}
icon = {
name = "not_core_tenet_glow"
block "not_core_tenet_glow" {
visible = no
}
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_heretical_glow_small.dds"
color = { 0.85 0.75 0.45 0.6 }
alpha = 0.2
using = Glow_Tenet_Animation
}
icon = {
name = "prohibited_tenet_glow"
visible = "[Faith.HasTenetStatus( TenetType.Self, 'prohibited' )]"
size = { 100% 100% }
texture = "gfx/interface/icons/faith_tenets/tenet_banner_heretical_glow_small.dds"
color = { 0.85 0.5 0.3 1 }
alpha = 0.5
using = Glow_Tenet_Animation
}
}
template Background_Challenger {
background = {
texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds"
using = Color_Red
spriteType = Corneredtiled
alpha = 0.35
block "bg_margins" {
margin_top = 15
margin_right = 5
margin_bottom = -4
}
modify_texture = {
block "bg_fade" {
texture = "gfx/interface/component_masks/mask_fade_halfcircle.dds"
mirror = vertical
}
blend_mode = alphamultiply
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_rough_edges.dds"
spriteType = Corneredtiled
spriteborder = { 20 20 }
texture_density = 2
blend_mode = alphamultiply
}
}
}
template Divergence_Marker {
background = {
texture = "gfx/interface/component_tiles/tile_title_bg_01.dds"
spriteType = Corneredtiled
spriteborder = { 40 8 }
texture_density = 2
margin_bottom = 2
modify_texture = {
name = "mask"
texture = "gfx/interface/component_masks/mask_fade_horizontal_middle_thick.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = alphamultiply
}
}
icon = {
size = { 25 25 }
texture = "gfx/interface/icons/icon_rite_divergence.dds"
}
}