gui fixes

This commit is contained in:
trashmasteruni 2026-10-07 22:20:15 +02:00
parent aa65f05b6a
commit 233f4d21dd
3 changed files with 366 additions and 3764 deletions

File diff suppressed because it is too large Load diff

View file

@ -348,6 +348,16 @@ texticon = {
} }
} }
texticon = {
icon = task_control_icon
iconsize = {
texture = "gfx/interface/icons/council_task_types/task_increase_control.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = { texticon = {
icon = soldier_icon icon = soldier_icon
iconsize = { iconsize = {
@ -1098,20 +1108,21 @@ texticon = {
} }
texticon = { texticon = {
icon = catholic_icon icon = worldliness_icon
iconsize = { iconsize = {
size = { 32 32 } texture = "gfx/interface/icons/icon_worldliness.dds"
offset = { -2 2 } size = { 25 25 }
texture = "gfx/interface/icons/faith/catholic.dds" offset = { 0 6 }
fontsize = 16 fontsize = 16
} }
} }
texticon = { texticon = {
icon = orthodox_icon icon = christian_faith_icon
iconsize = { iconsize = {
size = { 32 32 } size = { 25 25 }
offset = { -2 0 } offset = { 0 6 }
texture = "gfx/interface/icons/faith/orthodox.dds" texture = "gfx/interface/icons/faith/christian_faith.dds"
fontsize = 16 fontsize = 16
} }
} }
@ -3485,6 +3496,19 @@ texticon = {
} }
} }
texticon = {
icon = tenet_popularity
iconsize = {
texture = "gfx/interface/icons/icon_tenet_popularity.dds"
size = { 25 25 }
offset = { 0 6 }
framesize = { 60 60 }
fontsize = 16
uv = { 0.05 0.05 1 1 }
# color = "color_red"
}
}
texticon = { texticon = {
icon = change_indicator icon = change_indicator
iconsize = { iconsize = {
@ -4823,6 +4847,16 @@ texticon = {
} }
} }
texticon = {
icon = government_type_monastic_holy_order
iconsize = {
texture = "gfx/interface/icons/government_types/monastic_holy_order_government.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = { texticon = {
icon = government_type_mercenary icon = government_type_mercenary
iconsize = { iconsize = {
@ -4865,6 +4899,16 @@ texticon = {
} }
} }
texticon = {
icon = government_type_ecclesiastical
iconsize = {
texture = "gfx/interface/icons/government_types/ecclesiastical_government.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = { texticon = {
icon = government_type_wanua icon = government_type_wanua
iconsize = { iconsize = {
@ -4889,7 +4933,7 @@ texticon = {
texticon = { texticon = {
icon = rare_artifact_icon icon = rare_artifact_icon
iconsize = { iconsize = {
texture = "gfx/interface/icons/artifact/artefact_icons_unique_artifact_excalibur.dds" texture = "gfx/interface/icons/artifact/artifact_icons_unique_artifact_excalibur.dds"
size = { 28 28 } size = { 28 28 }
offset = { 0 6 } offset = { 0 6 }
fontsize = 16 fontsize = 16
@ -5270,6 +5314,16 @@ texticon = {
} }
} }
texticon = {
icon = grand_cathedral_gp
iconsize = {
texture = "gfx/interface/icons/great_projects/grand_cathedral_gp.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = { texticon = {
icon = government_type_ritsuryo icon = government_type_ritsuryo
iconsize = { iconsize = {
@ -5460,6 +5514,16 @@ texticon = {
} }
} }
texticon = {
icon = clerical_score
iconsize = {
texture = "gfx/interface/icons/clerical_score.dds"
size = { 28 28 }
offset = { 0 8 }
fontsize = 16
}
}
texticon = { texticon = {
icon = movement_power_icon icon = movement_power_icon
iconsize = { iconsize = {
@ -5774,3 +5838,174 @@ texticon = {
fontsize = 16 fontsize = 16
} }
} }
texticon = {
icon = divergence_icon
iconsize = {
texture = "gfx/interface/icons/icon_rite_divergence.dds"
size = { 24 24 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = badge_icon
iconsize = {
texture = "gfx/interface/icons/artifact/pilgrim_compostella.dds"
size = { 24 24 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = spiritual_fulfillment_icon
iconsize = {
texture = "gfx/interface/icons/spiritual_fulfillment_levels/spiritual_fulfillment_04.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = spiritual_fulfillment_gain_icon
iconsize = {
texture = "gfx/interface/icons/spiritual_fulfillment_levels/spiritual_fulfillment_06.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = spiritual_fulfillment_loss_icon
iconsize = {
texture = "gfx/interface/icons/spiritual_fulfillment_levels/spiritual_fulfillment_02.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = theological_agent_puppet_icon
iconsize = {
texture = "gfx/interface/icons/message_feed/theological_agent_puppet.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = external_theological_agent_puppet_icon
iconsize = {
texture = "gfx/interface/icons/message_feed/external_theological_agent_puppet.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = external_ruler_puppet_icon
iconsize = {
texture = "gfx/interface/icons/message_feed/external_ruler_puppet.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = election_icon
iconsize = {
texture = "gfx/interface/icons/succession_result_type/election.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = study_scripture_icon
iconsize = {
texture = "gfx/interface/icons/scheme_types/icon_scheme_study_scriptures.dds"
size = { 25 25 }
offset = { 0 6 }
fontsize = 16
}
}
# the christian church chapters
texticon = {
icon = pam_the_christian_church_fragile_unity_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/fragile_unity.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_saeculum_obscurum_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/saeculum_obscurum.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_conversion_phase_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/conversion.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_reform_phase_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/reform.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_investiture_crisis_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/investiture.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_crusade_phase_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/crusade.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}
texticon = {
icon = pam_the_christian_church_concord_icon
iconsize = {
texture = "gfx/interface/icons/the_christian_church/phase_type_icons/concord.dds"
size = { 28 28 }
offset = { 0 6 }
fontsize = 16
}
}

View file

@ -338,7 +338,7 @@ window = {
} }
} }
} }
window_mass_directives = {} window_mass_directives = {}
} }
@ -2146,7 +2146,7 @@ types MyRealmWindow
text = "MY_REALM_WINDOW_DESIGNATE_HEIR" text = "MY_REALM_WINDOW_DESIGNATE_HEIR"
enabled = "[MyRealmWindow.CanDesignateHeir]" enabled = "[MyRealmWindow.CanDesignateHeir]"
onclick = "[OpenDesignateHeirWindow]" onclick = "[OpenGameView( 'designate_heir' )]"
tooltip = "MRW_DESIGNATE_HEIR_TT" tooltip = "MRW_DESIGNATE_HEIR_TT"
} }
@ -2672,7 +2672,7 @@ types MyRealmWindow
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
text = "[Title.GetNameNoTooltip]" text = "TITLE_NAME_NO_TOOLTIP"
} }
hbox = { hbox = {
@ -2977,7 +2977,7 @@ types MyRealmWindow
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
text = "[Title.GetNameNoTooltip]" text = "TITLE_NAME_NO_TOOLTIP"
max_width = 180 max_width = 180
} }
@ -3456,33 +3456,33 @@ types MyRealmWindow
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
spacing = 10 spacing = 10
margin = { 10 0 } margin = { 10 0 }
button_standard = { button_standard = {
size = { 50 30 } size = { 50 30 }
onclick = "[GetVariableSystem.Toggle('mass_directives_window')]" onclick = "[GetVariableSystem.Toggle('mass_directives_window')]"
onclick = "[GetVariableSystem.Set('compact_vassal_list_realm', 'yes')]" onclick = "[GetVariableSystem.Set('compact_vassal_list_realm', 'yes')]"
shortcut = "mass_directives" shortcut = "mass_directives"
tooltip = "MY_REALM_MASS_DIRECTIVES" tooltip = "MY_REALM_MASS_DIRECTIVES"
down = "[GetVariableSystem.Exists('mass_directives_window')]" down = "[GetVariableSystem.Exists('mass_directives_window')]"
button_give_directive = { button_give_directive = {
# mirror = horizontal # mirror = horizontal
parentanchor = center parentanchor = center
size = { 30 30 } size = { 30 30 }
alwaystransparent = yes alwaystransparent = yes
} }
} }
button_menu = { button_menu = {
onclick = "[GetVariableSystem.Toggle('compact_vassal_list_realm')]" onclick = "[GetVariableSystem.Toggle('compact_vassal_list_realm')]"
onclick = "[GetVariableSystem.Clear('mass_directives_window')]" onclick = "[GetVariableSystem.Clear('mass_directives_window')]"
tooltip = "MY_REALM_COMPACT_SUBJECT_LIST" tooltip = "MY_REALM_COMPACT_SUBJECT_LIST"
shortcut = "compact_subject_list_realm" shortcut = "compact_subject_list_realm"
} }
expand = {} expand = {}
blockoverride "dropdown_size" blockoverride "dropdown_size"
{ {
size = { 210 32 } size = { 210 32 }
@ -3490,7 +3490,7 @@ types MyRealmWindow
blockoverride "dropdown_list_maxsize" blockoverride "dropdown_list_maxsize"
{ {
maximumsize = { 202 250 } maximumsize = { 202 250 }
} }
dropdown_menu_standard = { dropdown_menu_standard = {
name = "government_filters_dropdown" name = "government_filters_dropdown"
@ -3560,46 +3560,46 @@ types MyRealmWindow
margin = { 0 10 } margin = { 0 10 }
using = Animation_Tab_Switch using = Animation_Tab_Switch
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding layoutpolicy_vertical = expanding
visible = "[Not(GetVariableSystem.Exists('compact_vassal_list_realm'))]" visible = "[Not(GetVariableSystem.Exists('compact_vassal_list_realm'))]"
fixedgridbox = { fixedgridbox = {
datacontext = "[MyRealmWindow.GetPowerfulVassals]" datacontext = "[MyRealmWindow.GetPowerfulVassals]"
datamodel = "[CharacterSelectionList.GetList]" datamodel = "[CharacterSelectionList.GetList]"
visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]"
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
addcolumn = 538 addcolumn = 538
addrow = 176 addrow = 176
setitemsizefromcell = yes setitemsizefromcell = yes
item = { item = {
widget_vassal_list_item = { widget_vassal_list_item = {
datacontext = "[CharacterListItem.GetCharacter]" datacontext = "[CharacterListItem.GetCharacter]"
datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]" datacontext = "[MyRealmWindow.GetVassalInfo( Character.Self )]"
datacontext = "[MyRealmWindowVassalItem.GetContract]" datacontext = "[MyRealmWindowVassalItem.GetContract]"
background = { background = {
using = Background_Frame using = Background_Frame
} }
} }
} }
} }
fixedgridbox = { fixedgridbox = {
datacontext = "[MyRealmWindow.GetTributaries]" datacontext = "[MyRealmWindow.GetTributaries]"
datamodel = "[CharacterSelectionList.GetList]" datamodel = "[CharacterSelectionList.GetList]"
visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]"
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
addcolumn = 538 addcolumn = 538
addrow = 176 addrow = 176
setitemsizefromcell = yes setitemsizefromcell = yes
item = { item = {
widget_vassal_list_item = { widget_vassal_list_item = {
name = tutorial_highlight_vassal name = tutorial_highlight_vassal
@ -3609,17 +3609,17 @@ types MyRealmWindow
} }
} }
} }
fixedgridbox = { fixedgridbox = {
datacontext = "[MyRealmWindow.GetRegularVassals]" datacontext = "[MyRealmWindow.GetRegularVassals]"
datamodel = "[CharacterSelectionList.GetList]" datamodel = "[CharacterSelectionList.GetList]"
visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]"
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
addcolumn = 538 addcolumn = 538
addrow = 185 addrow = 185
setitemsizefromcell = yes setitemsizefromcell = yes
item = { item = {
widget_vassal_list_item = { widget_vassal_list_item = {
name = tutorial_highlight_vassal name = tutorial_highlight_vassal
@ -3629,16 +3629,16 @@ types MyRealmWindow
} }
} }
} }
expand = {} expand = {}
} }
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding layoutpolicy_vertical = expanding
visible = "[GetVariableSystem.Exists('compact_vassal_list_realm')]" visible = "[GetVariableSystem.Exists('compact_vassal_list_realm')]"
vbox_compact_subjects = { vbox_compact_subjects = {
datacontext = "[MyRealmWindow.GetPowerfulVassals]" datacontext = "[MyRealmWindow.GetPowerfulVassals]"
blockoverride "text" { blockoverride "text" {
@ -3660,7 +3660,7 @@ types MyRealmWindow
max_width = 510 max_width = 510
} }
} }
expand = {} expand = {}
} }
@ -3674,33 +3674,33 @@ types MyRealmWindow
expand = {} expand = {}
} }
type vbox_compact_subjects = vbox { type vbox_compact_subjects = vbox {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
visible = "[DataModelHasItems(CharacterSelectionList.GetList)]" visible = "[DataModelHasItems(CharacterSelectionList.GetList)]"
oncreate = "[BindFoldOutContext]" oncreate = "[BindFoldOutContext]"
oncreate = "[PdxGuiFoldOut.Unfold]" oncreate = "[PdxGuiFoldOut.Unfold]"
button_expandable_toggle_field = {} button_expandable_toggle_field = {}
blockoverride "show_portrait_status_icons" { blockoverride "show_portrait_status_icons" {
visible = "[Not(GetVariableSystem.Exists('mass_directives_window'))]" visible = "[Not(GetVariableSystem.Exists('mass_directives_window'))]"
} }
vbox = { vbox = {
margin_left = 5 margin_left = 5
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
visible = "[PdxGuiFoldOut.IsUnfolded]" visible = "[PdxGuiFoldOut.IsUnfolded]"
fixedgridbox_compact_subjects = {} fixedgridbox_compact_subjects = {}
} }
} }
type fixedgridbox_compact_subjects = fixedgridbox { type fixedgridbox_compact_subjects = fixedgridbox {
datamodel = "[CharacterSelectionList.GetList]" datamodel = "[CharacterSelectionList.GetList]"
visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]" visible = "[And( Not( CharacterSelectionList.IsBuildingList ), Not( IsDataModelEmpty( CharacterSelectionList.GetList ) ) )]"
block "gridbox_size" { block "gridbox_size" {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
addcolumn = 90 addcolumn = 90
@ -3708,11 +3708,11 @@ types MyRealmWindow
} }
datamodel_wrap = 6 datamodel_wrap = 6
flipdirection = yes flipdirection = yes
item = { item = {
widget_compact_vassal_list_item = { widget_compact_vassal_list_item = {
datacontext = "[CharacterListItem.GetCharacter]" datacontext = "[CharacterListItem.GetCharacter]"
widget = { widget = {
size = { 40 40 } size = { 40 40 }
parentanchor = bottom|right parentanchor = bottom|right
@ -3720,19 +3720,19 @@ types MyRealmWindow
block "directive_button" { block "directive_button" {
visible = "[GetVariableSystem.Exists('mass_directives_window')]" visible = "[GetVariableSystem.Exists('mass_directives_window')]"
} }
widget = { widget = {
visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]" visible = "[Character.IsPlayerInteractionShown('give_vassal_directive_interaction')]"
size = { 100% 100% } size = { 100% 100% }
button_round = { button_round = {
size = { 100% 100% } size = { 100% 100% }
enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]" enabled = "[Character.IsPlayerInteractionValid('give_vassal_directive_interaction')]"
onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]" onclick = "[Character.OpenPlayerInteraction('give_vassal_directive_interaction')]"
tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]" tooltip = "[Character.GetPlayerInteractionTooltip('give_vassal_directive_interaction')]"
using = tooltip_se using = tooltip_se
text_single = { text_single = {
parentanchor = center parentanchor = center
text = "[Character.Custom('vassal_directive_icon')]" text = "[Character.Custom('vassal_directive_icon')]"
@ -3740,8 +3740,8 @@ types MyRealmWindow
using = Font_Size_Tiny using = Font_Size_Tiny
alwaystransparent = yes alwaystransparent = yes
alpha = "[Select_float( Character.IsPlayerInteractionValid('give_vassal_directive_interaction') , '(float)1.0', '(float)0.25' )]" alpha = "[Select_float( Character.IsPlayerInteractionValid('give_vassal_directive_interaction') , '(float)1.0', '(float)0.25' )]"
tooltip = "VASSAL_DIRECTIVE_ICON_TOOLTIP" tooltip = "VASSAL_DIRECTIVE_ICON_TOOLTIP"
using = tooltip_se using = tooltip_se
} }
@ -3846,7 +3846,7 @@ types MyRealmWindow
text = "MY_REALM_WINDOW_SUCCESSION_DESIGNATE_HEIR" text = "MY_REALM_WINDOW_SUCCESSION_DESIGNATE_HEIR"
enabled = "[MyRealmWindow.CanDesignateHeir]" enabled = "[MyRealmWindow.CanDesignateHeir]"
onclick = "[OpenDesignateHeirWindow]" onclick = "[OpenGameView( 'designate_heir' )]"
tooltip = "MRW_DESIGNATE_HEIR_TT" tooltip = "MRW_DESIGNATE_HEIR_TT"
} }
@ -3943,7 +3943,7 @@ types MyRealmWindow
button_change = { button_change = {
size = { 24 24 } size = { 24 24 }
parentanchor = center parentanchor = center
onclick = "[OpenSuccessionLawChangeWindow( GuiLawGroup.Self )]" onclick = "[OpenGameViewData( 'succession_law_change', GuiLawGroup.Self )]"
} }
} }
} }
@ -4022,7 +4022,7 @@ types MyRealmWindow
button_election_vote = { button_election_vote = {
parentanchor = center parentanchor = center
onclick = "[OpenSuccessionElectionWindowForTitle(Title.Self)]" onclick = "[OpenGameViewData( 'title_election', Title.Self )]"
tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP"
} }
} }
@ -4146,7 +4146,7 @@ types MyRealmWindow
blockoverride "show_law" blockoverride "show_law"
{ {
visible = "[And( GuiLawGroup.IsAvailable, Or( GuiLawGroup.GetLawGroup.HasFlag( 'succession_order_laws' ), Or( GuiLawGroup.GetLawGroup.HasFlag( 'succession_gender_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'imperial_policy' ) ) ) )]" visible = "[And( GuiLawGroup.IsAvailable, Or4( GuiLawGroup.GetLawGroup.HasFlag( 'succession_order_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'succession_gender_laws' ), GuiLawGroup.GetLawGroup.HasFlag( 'imperial_policy' ), GuiLawGroup.GetLawGroup.HasFlag( 'church_policy' ) ) )]"
} }
} }
@ -4165,8 +4165,7 @@ types MyRealmWindow
visible = "[ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self )]" visible = "[ObjectsEqual( Title.Self, Character.GetPrimaryTitle.Self )]"
text = "MY_REALM_WINDOW_VOTE" text = "MY_REALM_WINDOW_VOTE"
onclick = "[OpenSuccessionElectionWindowForTitle(Title.Self)]" onclick = "[OpenGameViewData( 'title_election', Title.Self )]"
tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP" tooltip = "MY_REALM_WINDOW_VOTE_TOOLTIP"
} }
} }
@ -4245,7 +4244,7 @@ types MyRealmWindow
} }
button_standard = { button_standard = {
visible = "[And( Character.IsIndependentRuler, Character.HasTreasury )]" visible = "[And3( Character.IsIndependentRuler, Character.HasTreasury, Not( Character.GetGovernment.HasGovernmentFlag( 'government_is_ecclesiastical' ) ) )]"
size = { 320 44 } size = { 320 44 }
onclick = "[OpenGameViewData( 'treasury_budget_change', GetPlayer.Self )]" onclick = "[OpenGameViewData( 'treasury_budget_change', GetPlayer.Self )]"
@ -4415,76 +4414,76 @@ types MyRealmWindow
} }
} }
} }
type window_mass_directives = window { type window_mass_directives = window {
size = { 500 900 } size = { 500 900 }
parentanchor = right|vcenter parentanchor = right|vcenter
position = { -630 0 } position = { -630 0 }
using = Window_Background_Subwindow using = Window_Background_Subwindow
# visible = "[GetVariableSystem.Exists('mass_directives_window')]" # visible = "[GetVariableSystem.Exists('mass_directives_window')]"
visible = no visible = no
state = { state = {
name = _show name = _show
using = Animation_FadeIn_Quick using = Animation_FadeIn_Quick
position = { -630 0 } position = { -630 0 }
} }
state = { state = {
name = _hide name = _hide
using = Animation_FadeOut_Quick using = Animation_FadeOut_Quick
position_x = -620 position_x = -620
} }
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 4 4 } margin = { 4 4 }
header_pattern = { header_pattern = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
blockoverride "header_text" blockoverride "header_text"
{ {
text = "MASS_DIRECTIVES_TITLE" text = "MASS_DIRECTIVES_TITLE"
margin = { 30 0 } margin = { 30 0 }
} }
blockoverride "button_close" blockoverride "button_close"
{ {
onclick = "[GetVariableSystem.Clear('mass_directives_window')]" onclick = "[GetVariableSystem.Clear('mass_directives_window')]"
} }
} }
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 15 0 } margin = { 15 0 }
margin_top = 5 margin_top = 5
spacing = 10 spacing = 10
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
multiline = yes multiline = yes
text = "MASS_DIRECTIVES_TIP" text = "MASS_DIRECTIVES_TIP"
align = nobaseline|center align = nobaseline|center
} }
} }
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
spacing = 10 spacing = 10
# all the filters can be left for the future # all the filters can be left for the future
# visible = no # visible = no
button_standard_list = { button_standard_list = {
enabled = no enabled = no
size = { 0 40 } size = { 0 40 }
@ -4493,11 +4492,11 @@ types MyRealmWindow
using = Font_Type_Flavor using = Font_Type_Flavor
using = Font_Size_Medium using = Font_Size_Medium
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
blockoverride "dropdown_size" blockoverride "dropdown_size"
{ {
size = { 230 32 } size = { 230 32 }
@ -4505,67 +4504,67 @@ types MyRealmWindow
blockoverride "dropdown_list_maxsize" blockoverride "dropdown_list_maxsize"
{ {
maximumsize = { 222 250 } maximumsize = { 222 250 }
} }
# TODO Faith filter # TODO Faith filter
dropdown_menu_standard = { dropdown_menu_standard = {
blockoverride "dropdown_properties" blockoverride "dropdown_properties"
{ {
datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]"
onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]"
selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]"
} }
blockoverride "dropdown_active_item_properties" blockoverride "dropdown_active_item_properties"
{ {
text = "MRW_GOVERNMENT_FILTER" text = "MRW_GOVERNMENT_FILTER"
tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT"
} }
blockoverride "dropdown_item_properties" blockoverride "dropdown_item_properties"
{ {
text = "MRW_GOVERNMENT_FILTER" text = "MRW_GOVERNMENT_FILTER"
tooltip = "MRW_GOVERNMENT_FILTER_TT" tooltip = "MRW_GOVERNMENT_FILTER_TT"
} }
} }
expand = {} expand = {}
# TODO Culture filter # TODO Culture filter
dropdown_menu_standard = { dropdown_menu_standard = {
blockoverride "dropdown_properties" blockoverride "dropdown_properties"
{ {
datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]" datamodel = "[MyRealmWindow.GetGovernmentTypeFilters]"
onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]" onselectionchanged = "[MyRealmWindow.SelectActiveGovernmentTypeFilter]"
selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]" selectedindex = "[MyRealmWindow.GetActiveGovernmentTypeFilterIndex]"
} }
blockoverride "dropdown_active_item_properties" blockoverride "dropdown_active_item_properties"
{ {
text = "MRW_GOVERNMENT_FILTER" text = "MRW_GOVERNMENT_FILTER"
tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT" tooltip = "MRW_GOVERNMENT_FILTER_DROPDOWN_TT"
} }
blockoverride "dropdown_item_properties" blockoverride "dropdown_item_properties"
{ {
text = "MRW_GOVERNMENT_FILTER" text = "MRW_GOVERNMENT_FILTER"
tooltip = "MRW_GOVERNMENT_FILTER_TT" tooltip = "MRW_GOVERNMENT_FILTER_TT"
} }
} }
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
visible = "[GetPlayer.IsValid]" visible = "[GetPlayer.IsValid]"
margin_left = 3 margin_left = 3
spacing = 5 spacing = 5
button_checkbox_label = { button_checkbox_label = {
background = { using = Background_Area_Border } background = { using = Background_Area_Border }
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
@ -4580,7 +4579,7 @@ types MyRealmWindow
min_width = 190 min_width = 190
} }
} }
button_checkbox_label = { button_checkbox_label = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
background = { using = Background_Area_Border } background = { using = Background_Area_Border }
@ -4596,29 +4595,29 @@ types MyRealmWindow
} }
} }
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
# visible = has admin vassals # visible = has admin vassals
# datamodel = "[GetAllAdministrativeObligations]" # datamodel = "[GetAllAdministrativeObligations]"
datamodel = "[GetNullCharacterDataModel( '(int32)6')]" datamodel = "[GetNullCharacterDataModel( '(int32)6')]"
spacing = 5 spacing = 5
item = { item = {
button_standard_list = { button_standard_list = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
size = { 0 30 } size = { 0 30 }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 5 0 } margin = { 5 0 }
text_single = { text_single = {
raw_text = "@naval_administration!" raw_text = "@naval_administration!"
align = nobaseline align = nobaseline
alwaystransparent = yes alwaystransparent = yes
} }
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
@ -4629,52 +4628,52 @@ types MyRealmWindow
} }
} }
} }
expand = {} expand = {}
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin_left = 10 margin_left = 10
text_label_left = { text_label_left = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
margin = { 0 5 } margin = { 0 5 }
align = nobaseline align = nobaseline
text = "ACTIVE_DIRECTIVES_HEADER" text = "ACTIVE_DIRECTIVES_HEADER"
} }
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin_left = 5 margin_left = 5
dynamicgridbox = { dynamicgridbox = {
datamodel = "[GetNullCharacterDataModel( '(int32)10')]" datamodel = "[GetNullCharacterDataModel( '(int32)10')]"
flipdirection = yes flipdirection = yes
datamodel_wrap = 7 datamodel_wrap = 7
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
item = { item = {
widget = { widget = {
size = { 65 35 } size = { 65 35 }
button_standard_list = { button_standard_list = {
size = { 60 30 } size = { 60 30 }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 5 0 } margin = { 5 0 }
text_single = { text_single = {
raw_text = "@task_develop_county!" raw_text = "@task_develop_county!"
align = nobaseline align = nobaseline
alwaystransparent = yes alwaystransparent = yes
using = Font_Size_Tiny using = Font_Size_Tiny
} }
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
@ -4688,33 +4687,33 @@ types MyRealmWindow
} }
} }
} }
} }
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 10 5 } margin = { 10 5 }
background = { background = {
using = Background_Area_Dark using = Background_Area_Dark
alpha = 0.7 alpha = 0.7
margin_left = 16 margin_left = 16
margin_right = 10 margin_right = 10
modify_texture = { modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds" texture = "gfx/interface/component_masks/mask_fade_horizontal_extended.dds"
blend_mode = alphamultiply blend_mode = alphamultiply
} }
} }
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
margin = { 0 5 } margin = { 0 5 }
align = nobaseline align = nobaseline
text = "ISSUE_DIRECTIVES_HEADER" text = "ISSUE_DIRECTIVES_HEADER"
} }
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
@ -4727,33 +4726,33 @@ types MyRealmWindow
scrollbox = { scrollbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding layoutpolicy_vertical = expanding
blockoverride "scrollbox_content" { blockoverride "scrollbox_content" {
vbox = { vbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
datamodel = "[GetNullCharacterDataModel('(int32)10')]" datamodel = "[GetNullCharacterDataModel('(int32)10')]"
# datamodel = "all directives that can be applied to selected vassals, including No Directive" # datamodel = "all directives that can be applied to selected vassals, including No Directive"
spacing = 1 spacing = 1
item = { item = {
button_standard = { button_standard = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
size = { 0 38 } size = { 0 38 }
# onclick = " apply this directive to selected vassals" # onclick = " apply this directive to selected vassals"
hbox = { hbox = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
margin = { 10 0 } margin = { 10 0 }
margin_right = 15 margin_right = 15
spacing = 5 spacing = 5
text_single = { text_single = {
raw_text = "@task_develop_county!" raw_text = "@task_develop_county!"
align = nobaseline align = nobaseline
using = Font_Size_Tiny using = Font_Size_Tiny
} }
text_single = { text_single = {
layoutpolicy_horizontal = expanding layoutpolicy_horizontal = expanding
autoresize = no autoresize = no
@ -4761,9 +4760,9 @@ types MyRealmWindow
raw_text = "Directive name" raw_text = "Directive name"
alwaystransparent = yes alwaystransparent = yes
} }
expand = {} expand = {}
text_single = { text_single = {
autoresize = no autoresize = no
size = { 35 20 } size = { 35 20 }