N3OW/gui/shared/cooltip.gui
2026-10-21 00:56:13 +02:00

11256 lines
232 KiB
Text

container = {
alwaystransparent = no
name = "DefaultTooltipWidget"
using = DefaultTooltipWidget
}
template game_concept_tooltip {
object_tooltip_pop_out = {
blockoverride "header_additions" {
hbox = {
visible = "[GameConceptTooltip.HasIcon]"
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[GameConceptTooltip.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
frame = "[GameConceptTooltip.GetFrame]"
framesize = "[GameConceptTooltip.GetFrameSize]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[GameConceptTooltip.GetOriginalAliasName]"
}
blockoverride "concept_link" {
text = "[GameConceptTooltip.GetParentText]"
}
blockoverride "description_text" {
text = "[GameConceptTooltip.GetDescription]"
max_width = 400
}
blockoverride "bg_texture"
{
texture = "gfx/interface/tooltips/tooltip_bg_gameconcept.dds"
}
blockoverride "subtitle_text" {}
blockoverride "extra_data" {}
blockoverride "extra_data_after_description" {}
}
}
container = {
name = "GameConceptTooltipDefault"
alwaystransparent = no
using = game_concept_tooltip
}
container = {
alwaystransparent = no
name = "GlossaryTooltip"
using = GlossaryTooltipWidget
}
template character_opinion_tooltip {
widget = {
using = GeneralTooltipSetup
using = DefaultTooltipBackground
alwaystransparent = no
vbox = {
set_parent_size_to_minimum = yes
margin = { 8 8 }
spacing = 2
hbox = {
name = "heading"
layoutpolicy_horizontal = expanding
margin = { 8 8 }
spacing = 6 #ugly hack to get a space between label and value
background = {
using = Background_Area
}
text_single = {
block "ott_heading_text"
{
raw_text = "@opinion_icon! [Character.GetOpinionHeadingText( GetPlayer )]"
}
using = Font_Size_Medium
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
background = {
name = "portrait_opinion_bg"
texture = "gfx/interface/component_tiles/solid_black_label.dds"
spritetype = Corneredtiled
spriteborder = { 20 20 }
texture_density = 2
margin = { 3 1 }
}
max_width = 45
align = nobaseline
block "ott_opinion_value_text"
{
text = "[Character.GetOpinionOf( GetPlayer )|=]"
fonttintcolor = "[Character.GetOpinionOfTint( GetPlayer )]"
}
default_format = "#true_white"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 8 0 }
visible = "[Character.IsPlayer]"
text_multi = {
datacontext = "[Character]"
visible = "[Not( Character.IsLocalPlayer )]"
autoresize = yes
max_width = 400
text = "PLAYER_OPINION_UNIMPORTANT"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_multi = {
datacontext = "[Character]"
visible = "[Character.IsLocalPlayer]"
autoresize = yes
max_width = 400
text = "PLAYER_OPINION_UNIMPORTANT_SELF"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 8 0 }
text_multi = {
block "ott_opinion_breakdown_text"
{
text = "[Character.GetOpinionBreakdownText( GetPlayer )]"
}
autoresize = yes
max_width = 400
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
}
template character_trait_tooltip {
object_tooltip_pop_out = {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
trait_icon_texture = {
blockoverride "icon_size"
{
size = { 52 52 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[Trait.GetNameNoTooltipWithDefault( Character.Self )]"
}
blockoverride "concept_link" {
text = "[Trait.GetTraitCategoryLabel]"
}
blockoverride "description_text" {
block "actual_description_text" {
text = "[Trait.GetFullDescription( Character.Self, Character.GetRite.Self )]"
}
}
blockoverride "extra_data_after_description"
{
vbox = {
name = "trait_level_tracks"
layoutpolicy_horizontal = expanding
visible = "[DataModelHasItems( Trait.GetLevelTracks )]"
allow_outside = yes
spacer = {
size = { 10 10 }
}
text_label_left = {
layoutpolicy_horizontal = expanding
text = "TRAIT_LEVEL_TRACKS_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[Trait.GetLevelTracks]"
spacing = 5
allow_outside = yes
item = {
hbox = {
layoutpolicy_horizontal = expanding
allow_outside = yes
spacing = 5
margin_right = 20
vbox = {
margin_top = 6
icon = {
size = { 30 30 }
texture = "[TraitLevelTrack.GetIcon( Trait.Self, Character.Self )]"
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
text_single = {
layoutpolicy_horizontal = expanding
text = "[TraitLevelTrack.GetName]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
widget = {
size = { 0 15 }
layoutpolicy_horizontal = expanding
allow_outside = yes
datacontext = "[Character.GetTraitTrackProgressBar( Trait.Self, TraitLevelTrack.Self )]"
hbox_complex_bar_progress_next = {
size = { 0 15 }
layoutpolicy_horizontal = expanding
tooltip = "TRAIT_LEVEL_TRACK_PROGRESS_TOOTLIP"
using = tooltip_se
}
hbox_complex_bar_levels = {
size = { 0 15 }
layoutpolicy_horizontal = expanding
blockoverride "marker"
{
widget_level_marker = {
scale = 0.75
datacontext = "[TraitLevelTrack.GetEntryForXp( ComplexBarItem.GetValue )]"
visible = "[GreaterThanOrEqualTo_int32( TraitLevelTrackEntry.GetLevel, '(int32)0' )]"
position = { -10 0 }
blockoverride "visible_active"
{
visible = "[EqualTo_int32( Character.GetTraitTrackLevel( Trait.Self, TraitLevelTrack.Self ), TraitLevelTrackEntry.GetLevel )]"
}
blockoverride "visible_inactive"
{
visible = "[Not( EqualTo_int32( Character.GetTraitTrackLevel( Trait.Self, TraitLevelTrack.Self ), TraitLevelTrackEntry.GetLevel ) )]"
}
blockoverride "marker_tooltip"
{
tooltip = "TRAIT_LEVEL_TRACK_TT"
using = tooltip_se
}
blockoverride "marker_text"
{
text = "[TraitLevelTrackEntry.GetLevel]"
}
}
}
}
}
}
}
}
}
}
}
}
}
container = {
alwaystransparent = no
name = "TraitTooltipDefault"
using = character_trait_tooltip
}
template doctrine_type_tooltip {
object_tooltip_pop_out = {
blockoverride "title_text" {
text = "[DoctrineType.GetDescriptiveNameNoTooltip( GetNullCharacter.GetFaith )]"
default_format = "#T"
}
blockoverride "subtitle_text" {
text = "[DoctrineType.GetHistoricalGlossary( Faith.Self )]"
}
blockoverride "description_text" {
text = "FAITH_DOCTRINE_GENERAL_TOOLTIP"
}
blockoverride "extra_data_after_description" {
vbox = {
layoutpolicy_horizontal = expanding
textbox_religion_flavor_description = {
text = "FAITH_DOCTRINE_GENERAL_TOOLTIP_DESCRIPTION"
}
block "doctrine_extra_data_after_description" {}
}
}
# Only shown where a window fills in input_info_text, such as the click hints in the rite creation window
blockoverride "input_info" {
textbox = {
name = "input_info"
layoutpolicy_horizontal = expanding
margin_top = 10
using = DefaultTooltipText
multiline = yes
block "input_info_text" {
visible = no
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
# Doctrines have no shortcuts, so drop the empty shortcut textbox and its margins
blockoverride "tooltip_text_shortcut" {
visible = no
}
# Minimum padding below the last line
blockoverride "call_to_action" {
vbox = {
margin_bottom = 15
}
}
blockoverride "concept_link" {
text = [doctrine|E]
}
blockoverride "header_additions" {
hbox = {
datacontext = "[DoctrineType.GetGroup]"
datacontext = "[DoctrineGroupType.GetCategory]"
margin_right = 10
margin_left = -5
icon_doctrine = {
name = "doctrine_icon_main"
visible = "[DoctrineCategoryType.HasTag( 'main' )]"
texture = "[DoctrineType.GetIcon]"
size = { 60 60 }
}
icon_doctrine = {
name = "doctrine_icon_other"
visible = "[And( Not( DoctrineCategoryType.HasTag( 'main' ) ), Not( DoctrineCategoryType.HasTag( 'special' ) ) )]"
texture = "[DoctrineType.GetGroup.GetIcon]"
size = { 60 60 }
}
icon_doctrine = {
name = "doctrine_icon_special"
visible = "[DoctrineCategoryType.HasTag( 'special' )]"
texture = "[DoctrineType.GetIcon]"
size = { 60 60 }
}
}
}
}
}
container = {
name = "DoctrineTypeTooltipDefault"
alwaystransparent = no
datacontext = "[GetPlayer.GetFaith]"
using = doctrine_type_tooltip
}
types TenetTooltipTypes
{
type vbox_tenet_popularity_and_status = vbox {
layoutpolicy_horizontal = expanding
text_single = {
datacontext = "[GetScriptedGui( 'using_tenet_popularity_gui' )]"
visible = "[And( Not( Faith.HasTenetStatus( TenetType.Self, 'unknown' ) ), IsUsingTenetPopularity( Faith ) )]"
layoutpolicy_horizontal = expanding
text = "FAITH_TENET_ITEM_POPULARITY_SHORT"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_TENET_ITEM_TENET_STATUS"
}
}
type textbox_religion_flavor_description = textbox {
layoutpolicy_horizontal = expanding
max_width = 420
margin_top = 15
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
type widget_tenet_trait_and_weight = widget {
size = { 45 60 }
icon = {
size = { 45 45 }
texture = "[Trait.GetIcon( GetPlayer )]"
tooltipwidget = {
using = faith_window_trait_tooltip
blockoverride "virtue_or_sin_description_text" {
text = "TENET_TOOLTIP_TRAIT_DESCRIPTION"
}
}
}
text_single = {
parentanchor = bottom|hcenter
margin = { 3 0 }
margin_bottom = 5
background = {
using = Background_Area_Dark
}
block "fulfillment_value_text" {
datacontext = "[GetGameConcept( 'virtue_weight' )]"
text = "TENET_TOOLTIP_TRAIT_FULFILLMENT_GAIN"
}
tooltipwidget = {
using = game_concept_tooltip
}
}
}
type vbox_tenet_sins_and_virtues = vbox {
visible = "[TenetType.IsValid]"
layoutpolicy_horizontal = expanding
margin_bottom = 10
background = {
using = Background_Area
}
hbox = {
margin = { 10 0 }
layoutpolicy_horizontal = expanding
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
text_label_left = {
datacontext = "[GetGameConcept( 'sins' )]"
max_width = 200
text = "TENET_TOOLTIP_SINS"
tooltipwidget = {
using = game_concept_tooltip
}
}
expand = {}
}
hbox = {
visible = "[DataModelHasItems( TenetType.GetSinTraits )]"
layoutpolicy_horizontal = expanding
fixedgridbox = {
addcolumn = 60
addrow = 55
flipdirection = yes
datamodel = "[TenetType.GetSinTraits]"
item = {
widget_tenet_trait_and_weight = {
blockoverride "fulfillment_value_text" {
datacontext = "[GetGameConcept( 'sin_weight' )]"
text = "TENET_TOOLTIP_TRAIT_FULFILLMENT_LOSS"
}
}
}
}
expand = {}
}
hbox = {
visible = "[IsDataModelEmpty( TenetType.GetSinTraits )]"
layoutpolicy_horizontal = expanding
text_multi = {
autoresize = yes
max_width = 200
default_format = "#weak"
text = "TENET_TOOLTIP_NO_SINS"
}
expand = {}
}
}
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
expand = {}
text_label_right = {
datacontext = "[GetGameConcept( 'virtues' )]"
max_width = 200
text = "TENET_TOOLTIP_VIRTUES"
tooltipwidget = {
using = game_concept_tooltip
}
}
}
hbox = {
visible = "[DataModelHasItems( TenetType.GetVirtueTraits )]"
layoutpolicy_horizontal = expanding
expand = {}
fixedgridbox = {
addcolumn = 60
addrow = 55
flipdirection = yes
datamodel = "[TenetType.GetVirtueTraits]"
item = {
# Right-anchored in its cell so the spacing falls on the left and the last item lines up with the right edge
widget = {
size = { 60 60 }
widget_tenet_trait_and_weight = {
parentanchor = right
}
}
}
}
}
hbox = {
visible = "[IsDataModelEmpty( TenetType.GetVirtueTraits )]"
layoutpolicy_horizontal = expanding
expand = {}
text_multi = {
autoresize = yes
max_width = 200
align = top|right
default_format = "#weak"
text = "TENET_TOOLTIP_NO_VIRTUES"
}
}
}
}
}
}
template tenet_type_tooltip {
scrollable_object_tooltip_pop_out = {
blockoverride "title_text" {
text = "[Select_CString( TenetType.IsValid, TenetType.GetBaseNameNoTooltip, 'Empty Tenet')]"
default_format = "#T"
}
blockoverride "subtitle_text" {
text = "[TenetType.GetHistoricalGlossary( Rite.Self )]"
}
blockoverride "description_text" {
text = "TENET_TYPE_GENERAL_TOOLTIP"
}
# Removes bottom margin used by click info
blockoverride "input_info" {}
blockoverride "tooltip_text_shortcut" {
visible = no
}
blockoverride "extra_data_after_description" {
text_single = {
visible = "[Not( StringIsEmpty( TenetType.GetPersonalTenetEffectsDescription( Rite.Self ) ) )]"
margin_top = 15
margin_left = 10
layoutpolicy_horizontal = expanding
text = "TENET_TOOLTIP_PERSONAL_EFFECTS"
tooltip = "TENET_TOOLTIP_PERSONAL_EFFECTS_TT"
}
textbox_religion_flavor_description = {
text = "TENET_TYPE_GENERAL_TOOLTIP_DESCRIPTION"
}
}
blockoverride "concept_link" {
text = [core_tenet|E]
}
blockoverride "header_additions"
{
widget = {
size = { 65 70 }
icon = {
size = { 65 100 }
position = { 0 -15 }
visible = "[TenetType.IsValid]"
texture = "[TenetType.GetIcon( Faith.Self )]"
}
}
}
blockoverride "extra_data" {
vbox_tenet_sins_and_virtues = {}
vbox = {
visible = "[TenetType.IsValid]"
margin_left = 10
margin_bottom = 15
layoutpolicy_horizontal = expanding
vbox_tenet_popularity_and_status = {}
block "divergence_change" {}
text_single = {
block "divergent_tenet" {
visible = "[Not( Faith.GetMainRite.HasTenet( TenetType.Self ) )]"
}
layoutpolicy_horizontal = expanding
text = "RITE_CREATION_TENET_DIVERGENCE_CALC_TT"
}
}
}
}
}
container = {
name = "TenetTypeTooltipDefault"
alwaystransparent = no
datacontext = "[GetPlayer]"
datacontext = "[Character.GetFaith]"
datacontext = "[Character.GetRite]"
using = tenet_type_tooltip
}
container = {
name = "RiteTypeTooltipDefault"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[RiteType.GetBaseNameNoTooltip]"
default_format = "#T"
}
}
}
container = {
name = "LifestyleTooltipDefault"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Lifestyle.GetNameNoTooltip]"
}
blockoverride "description_text" {
text = "[Lifestyle.GetDescription]"
}
blockoverride "concept_link" {
text = [lifestyle|E]
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Lifestyle.GetIcon]"
framesize = { 160 160 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
container_focus_cooltip = {
name = "FocusTooltipDefault"
}
template perk_tooltip_contents {
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Perk.GetNameNoTooltip( GetPlayer )]"
}
blockoverride "description_text" {
text = "[Perk.GetEffectDescription( GetPlayer )]"
}
blockoverride "concept_link" {
text = [perk|E]
}
}
}
container = {
alwaystransparent = no
name = "PerkTooltipDefault"
using = perk_tooltip_contents
}
template perk_tooltip_selection {
container = {
alwaystransparent = no
name = "PerkTooltipSelection"
using = perk_tooltip_contents
blockoverride "input_info_text" {
visible = "[CharacterLifestyleWindow.CanSelectPerk( Perk.Self )]"
text = "CHOOSE_PERK_UNLOCK_TEXT"
}
blockoverride "above_description_text" {
text = "[CharacterLifestyleWindow.CanSelectPerkDesc( Perk.Self )]"
}
}
}
container = {
name = "DynastyPerkTooltipDefault"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[DynastyPerk.GetNameNoTooltip]"
}
blockoverride "description_text" {
text = "[DynastyPerk.GetEffectDescription( GetPlayer )]"
}
blockoverride "concept_link" {
text = [dynasty_perk|E]
}
}
}
container = {
name = CharacterTooltip
alwaystransparent = no
container_character_tooltip = {}
}
types GameTooltipTypes
{
type object_tooltip_pop_out = widget {
name = "ObjectTooltipDefault"
using = GeneralTooltipSetup
alwaystransparent = no
using = DefaultTooltipBackground
vbox = {
set_parent_size_to_minimum = yes
margin = { 20 5 }
hbox = {
layoutpolicy_horizontal = expanding
spacing = 10
background = {
using = Background_Header
margin = { 15 0 }
margin_bottom = 10
}
background = {
using = Background_Header_Pattern
margin = { 15 0 }
margin_bottom = 10
}
block "header_tt" {
margin = { 0 10 }
}
hbox = {
layoutpolicy_horizontal = expanding
block "header_additions" {
hbox = {}
}
vbox = {
name = "FancyHeader"
layoutpolicy_horizontal = expanding
alwaystransparent = no
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
name = "title"
fontsize_min = 14
using = Font_Size_Medium
align = nobaseline
block "title_text" {
margin = { 0 4 }
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
# use subtitle_text blockoverride or replace this entire block
block "subheading"
{
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
block "fontsize_min" {
fontsize_min = 14
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = Font_Size_Small
align = nobaseline
block "subtitle_text"
{
text = ""
}
block "max_width"
{
max_width = 400
}
block "multiline" {}
}
}
}
}
expand = {}
vbox = {
layoutpolicy_vertical = expanding
text_single = {
name = "concept_link"
layoutpolicy_horizontal = expanding
block "concept_link" {
raw_text = "#D Missing concept link!#!"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
# Override main_description if you plan to build a fully custom pop out, otherwise override the components
block "main_description"
{
block "extra_data" {}
textbox = {
name = "warning_description"
using = DefaultTooltipText
layoutpolicy_horizontal = expanding
multiline = yes
block "warning_description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
name = "above_description"
max_width = 400
using = DefaultTooltipText
layoutpolicy_horizontal = expanding
multiline = yes
block "above_description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
# NOTE: This edit box is filled by TooltipInfo.GetTintColor from code in order to set the correct size when the tooltip is created and positioned and then it uses the text property specified here in the next frames
textbox = {
name = "Description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
block "description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
block "extra_data_after_description" {}
# Things like "click to X", hotkeys etc
block "input_info" {
textbox = {
name = "input_info"
layoutpolicy_horizontal = expanding
margin_top = 10
using = DefaultTooltipText
multiline = yes
block "input_info_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
textbox = {
name = "TooltipTextShortcut"
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
margin = { 10 10 }
margin_top = 10
block "tooltip_text_shortcut" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
block "call_to_action" {}
}
margin_widget = {
size = { 100% 100% }
margin = { 3 3 }
icon = {
name = "tooltip_locked"
visible = "[PdxGuiWidget.IsTooltipLocked]"
texture = "gfx/interface/skinned/tooltip_frame.dds"
spriteType = Corneredtiled
spriteborder = { 20 20 }
size = { 100% 100% }
texture_density = 2
tintcolor = "[TooltipInfo.GetTintColor]"
alpha = 1
state = {
name = _show
bezier = { 0.25 0.1 0.25 1 }
duration = 0.15
alpha = 1
}
state = {
name = _hide
alpha = 0
}
modify_texture = {
name = "overlay"
texture = "gfx/interface/component_overlay/overlay_window.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = overlay
}
}
block "progress"
{
progresspie = {
name = "tooltip_progress"
visible = "[And(UsesTimerLocking, Not(PdxGuiWidget.IsTooltipLocked))]"
parentanchor = top|right
position = { -3 3 }
size = { 20 20 }
min = 0
max = 1
tintcolor = "[TooltipInfo.GetTintColor]"
value = "[PdxGuiWidget.GetTooltipLockProgress]"
texture = "gfx/interface/progressbars/progress_circle.dds"
framesize = { 248 248 }
frame = 2
state = {
name = _show
alpha = 1
}
state = {
name = _hide
bezier = { 0.25 0.1 0.25 1 }
duration = 0.05
alpha = 0
}
}
}
}
}
type header_icon = hbox
{
margin_right = 13
margin_top = 8
margin_left = -4
icon = {
size = { 60 60 }
tintcolor = "[TooltipInfo.GetTintColor]"
block "header_texture"
{
}
}
}
type cooltip_type = widget {
name = "character_tooltip"
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
block "bg_visible" {
visible = yes
}
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 15 15 }
margin_top = 3
maximumsize = { 600 -1 }
## REAL CHARACTERS
vbox = {
visible = "[Character.IsValid]"
layoutpolicy_horizontal = expanding
vbox = {
name = "personal"
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
vbox = {
name = "name_etc"
layoutpolicy_horizontal = expanding
minimumsize = { 0 35 }
## Name
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 8
margin_right = 7
background = {
using = Background_Area
margin = { 15 0 }
margin_bottom = 7
}
vbox = {
layoutpolicy_vertical = expanding
margin_top = 3
portrait_opinion = {
visible = "[And( Character.IsAlive, Not( Character.IsPlayer ) )]"
}
expand = {}
}
spacer = {
visible = "[And( Character.IsAlive, Not( Character.IsPlayer ) )]"
size = { 8 5 }
}
text_multi = {
name = "character_name"
text = "CHARACTER_TT_NAME_AGE"
default_format = "#high"
using = Font_Size_Medium
max_width = 350
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_vertical = expanding
margin_left = 5
icon = {
visible = "[Not(Character.IsDeadAndValid)]"
size = { 23 23 }
framesize = { 60 60 }
frame = "[Character.GetHealthIconFrame]"
texture = "gfx/interface/icons/character_status/icon_health.dds"
tooltip = "[Character.GetHealthInfo]"
color = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
expand = {}
}
}
}
hbox = {
layoutpolicy_horizontal = expanding
text_multi = {
name = "character_relation_to_you"
margin_top = 10
max_width = 308
text = "[Character.GetRelationToString( GetPlayer )]"
tooltip = "EXTENDED_RELATIONS_TOOLTIP"
default_format = "#high"
align = nobaseline
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 10
margin_bottom = 10
hbox = {
name = "AI_personality"
layoutpolicy_horizontal = expanding
spacing = 2
text_single = {
visible = "[Not( Character.IsPlayer )]"
text = "[Character.GetAIPersonalityNoTooltip]"
default_format = "#L"
tooltip = "AI_PERSONALITY_TT"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
visible = "[Not(Character.IsFemale)]"
size = { 20 20 }
framesize = { 40 40 }
frame = "[Character.GetSexualityFrame]"
texture = "gfx/interface/icons/character_status/sexuality_icons_male.dds"
tooltip = "SEXUALITY_TT"
color = "[TooltipInfo.GetTintColor]"
}
icon = {
visible = "[Character.IsFemale]"
size = { 20 20 }
framesize = { 40 40 }
frame = "[Character.GetSexualityFrame]"
texture = "gfx/interface/icons/character_status/sexuality_icons_female.dds"
tooltip = "SEXUALITY_TT"
color = "[TooltipInfo.GetTintColor]"
}
portrait_status_icons = {
blockoverride "direction"
{
direction = horizontal
}
color = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
visible = "[Character.IsAlive]"
text = "[Character.Custom('CooltipSpouseListing')]"
layoutpolicy_horizontal = expanding
align = nobaseline
max_width = 350
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
text_single = {
visible = "[And( Character.IsAlive, Not( Character.IsImprisoned ) )]"
layoutpolicy_horizontal = expanding
text = "CHARACTER_LOCATION_TOOLTIP"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[And( Character.IsAlive, Character.IsImprisoned )]"
layoutpolicy_horizontal = expanding
text = "CHARACTER_IMPRISONED_TOOLTIP"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
# for people with regnal names, like the pope
text_single = {
visible = "[Character.HasRegnalName]"
layoutpolicy_horizontal = expanding
text = "CHARACTER_BIRTH_NAME_TOOLTIP"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 10
background = {
using = Background_Area
margin = { 15 0 }
}
hbox = {
name = "faith_and_culture"
button_rite_icon = {
name = "rite_button"
datacontext = "[Character.GetRite]"
size = { 45 45 }
}
vbox = {
margin_right = 10
margin_left = 3
text_single = {
datacontext = "[Character.GetRite]"
layoutpolicy_horizontal = expanding
text = "RITE_COOLTIP_WINDOW"
align = nobaseline
button_normal = {
size = { 100% 100% }
onclick = "[OpenGameViewData( 'faith', Rite.Self )]"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
datacontext = "[Character.GetCulture]"
layoutpolicy_horizontal = expanding
text = "CULTURE_COOLTIP_WINDOW"
align = nobaseline
button_normal = {
size = { 100% 100% }
onclick = "[OpenGameViewData( 'culture_window', Culture.GetID )]"
# shortcut = "innovations_window"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
hbox = {
name = "house"
datacontext = "[Character.GetHouse]"
margin = { 10 5 }
coa_house_small = {
# has no effect, sadly...
# color = "[TooltipInfo.GetTintColor]"
container = {
name = "characters_status_in_house"
parentanchor = bottom|right
icon = {
name = "bastard"
visible = "[Not(Character.IsLegitimateMemberOfHouse)]"
framesize = { 40 40 }
frame = 4
size = { 25 25 }
texture = "gfx/interface/icons/portraits/relation.dds"
tooltip = "CV_TT_BASTARD"
color = "[TooltipInfo.GetTintColor]"
}
icon = {
name = "head_icon"
size = { 20 20 }
visible = "[LessThan_int32(Character.GetDynastyHeadRelationFrame('(bool)no'), '(int32)9')]"
texture = "gfx/interface/icons/portraits/relation.dds"
framesize = { 40 40 }
frame = "[Character.GetDynastyHeadRelationFrame('(bool)no')]"
tooltip = "[Character.GetDynastyHeadTooltip]"
color = "[TooltipInfo.GetTintColor]"
}
}
}
text_multi = {
visible = "[Character.HasDynasty]"
margin = { 5 0 }
text = "HOUSE_VIEW_NAME_WITH_HOUSE"
max_width = 100
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
block "extra_info_post_faith" {}
}
hbox = {
visible = "[Character.HasLandedTitles]"
minimumsize = { 0 82 }
spacing = 5
layoutpolicy_horizontal = expanding
widget = {
size = { 52 82 }
coa_realm_small_crown = {
name = "realm_flag"
parentanchor = bottom
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
}
realm_name_and_type_vbox = {
datacontext = "[Character.GetPrimaryTitle]"
margin_top = 24
}
}
block "extra_info" { }
# Keep this here for now, may want something in character view
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
text = "[Character.GetHeirToDesc]"
}
spacer = {
size = { 10 10 }
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
text = "[Character.GetObscuredText]"
visible = "[Character.HasObscuredText]"
default_format = "#weak"
}
spacer = {
visible = "[Character.HasObscuredText]"
size = { 10 10 }
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
block "interaction_info" { }
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
text = "[Character.GetDebugTooltip]"
visible = "[InDebugMode]"
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
text = "CHARACTER_KILLER_TOOLTIP"
visible = "[And( InDebugMode, Character.GetKiller.IsValid )]"
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
raw_text = "[GetAnimationTooltip( PdxGuiWidget.Self, Character.Self )]"
visible = "[ShouldShowAnimationInfo]"
}
hbox = {
visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]"
layoutpolicy_horizontal = expanding
spacing = 5
text_single = {
text = "DNA_MODIFIERS_LINK"
fonttintcolor = "[TooltipInfo.GetTintColor]"
tooltipwidget = {
container = {
name = "DnaModifierTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
button_copy = {
size = { 52 52 }
onclick = "[Character.CopyDnaAccessoryToClipboard]"
raw_tooltip = "Copy DNA Modifiers"
}
}
}
blockoverride "title_text"
{
margin = { 0 8 }
text = "DNA_MODIFIERS"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "description_text"
{
max_width = 600
text = "[Character.GetDnaAccessoryTooltip]"
}
}
}
}
}
divider_light = {
layoutpolicy_vertical = expanding
}
text_single = {
text = "PORTRAIT_ANIMATION_LINK"
fonttintcolor = "[TooltipInfo.GetTintColor]"
tooltipwidget = {
container = {
name = "PortraitAnimationTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
button_copy = {
size = { 52 52 }
onclick = "[Character.CopyPortraitAnimationToClipboard]"
raw_tooltip = "Copy Animation Data"
}
}
}
blockoverride "title_text"
{
margin = { 0 8 }
text = "PORTRAIT_ANIMATION_TITLE"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "description_text"
{
max_width = 600
text = "[Character.GetPortraitAnimationTooltip( PdxGuiWidget.Self )]"
}
}
}
}
}
expand = {}
}
}
## NULL CHARACTER
vbox = {
visible = "[Not( Character.IsValid )]"
cooltip_paragraph = {
block "portrait_button_no_character_text"
{
text = "CHARACTER_TOOLTIP_NO_PORTRAIT"
}
}
}
}
}
type royal_court_character_tooltip = widget
{
name = "royal_court_character_tooltip"
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
alpha = 0.8
block "bg_visible"
{
visible = yes
}
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 15 15 }
margin_top = 3
maximumsize = { 600 -1 }
vbox = {
name = "personal_info"
visible = "[Character.IsValid]"
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
#### NAME ####
text_multi = {
name = "character_name"
text = "CHARACTER_TT_NAME"
default_format = "#high"
using = Font_Size_Medium
max_width = 335
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
#### RELATION ####
text_single = {
name = "character_relation_to_you"
max_width = 335
text = "[Character.GetRelationToString( GetPlayer )]"
tooltip = "EXTENDED_RELATIONS_TOOLTIP"
align = nobaseline
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 10
#### AGE ####
text_single = {
name = "character_age"
max_width = 335
text = "CHARACTER_TT_AGE"
align = nobaseline
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
vbox_character_debug_tooltip = {
visible = "[And( InDebugMode, Not( Character.AccessDenied ) )]"
}
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 10
visible = "[ShouldShowAnimationInfo]"
#### Animation ####
text_single = {
name = "debug_animation_info"
max_width = 335
raw_text = "[RoyalCourtWindow.GetAnimationInfo]"
align = nobaseline
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
block "interaction_info" { }
}
}
}
}
type cooltip_paragraph = textbox {
name = "cooltip_paragraph"
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
fonttintcolor = "[TooltipInfo.GetTintColor]"
multiline = yes
alwaystransparent = no
max_width = 400
}
type container_character_tooltip = container
{
alwaystransparent = no
using = DefaultTooltipBackground
flowcontainer = {
direction = vertical
widget = {
name = "portrait area"
size = { 100% 210 }
background = {
using = Background_Area_Dark
margin = { -3 -3 }
margin_bottom = 10
modify_texture = {
name = "mask"
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
mirror = vertical
}
}
datacontext = "[GetIllustration( 'character_view_bg' )]"
background = {
texture = "[Illustration.GetTexture( Character.MakeScope )]"
fittype = centercrop
#alpha = 0.7
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_fade_vertical.dds"
blend_mode = alphamultiply
mirror = vertical
alpha = 0.7
}
}
portrait_torso = {
name = "char"
parentanchor = bottom|hcenter
blockoverride "portrait_button_template_tooltip" {}
}
}
container = {
cooltip_type = {
blockoverride "bg_visible" {
visible = no
}
blockoverride "char_tooltip_opinion"
{
# don't show opinion again
}
}
}
}
}
type container_focus_cooltip = container {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[FocusType.GetNameNoTooltip]"
}
blockoverride "description_text" {
text = "FOCUS_TOOLTIP_TEXT_PLAYER"
}
blockoverride "concept_link" {
text = [focus|E]
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
texture = "[FocusType.GetIcon]"
size = { 35 35 }
using = Master_Button_Modify_Texture
}
}
}
}
}
type widget_maa_type_container_tooltip = widget
{
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 8 8 }
margin_bottom = 16
spacing = 4
vbox = {
layoutpolicy_horizontal = expanding
margin = { 10 4 }
background = {
name = "header"
using = Background_Area_Dark
margin = { 5 5 }
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
size = { 40 40 }
texture = "[MenAtArmsType.GetIcon]"
}
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
align = top|hcenter
text = "[MenAtArmsType.GetNameNoTooltip]"
maximumsize = { 400 -1 }
using = Font_Type_Flavor
using = Font_Size_Big
}
spacer = {
size = { 40 40 }
}
}
}
widget = {
minimumsize = { 294 174 }
layoutpolicy_horizontal = expanding
vbox = {
layoutpolicy_horizontal = expanding
margin = { 0 5 }
background = {
name = "image"
block "maa_texture"
{
texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]"
}
fittype = CenterCrop
using = Mask_Rough_Edges
}
expand = {}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 0 2 }
margin_left = 10
tooltip = "MV_CREATE_REGIMENT_MAX_SIZE_TT"
using = tooltip_ne
icon = {
name = "icon_soldier"
texture = "[MenAtArmsType.GetIcon]"
size = { 30 30 }
}
text_label_left = {
name = "soldier count"
text = "MV_CREATE_REGIMENT_SIZE"
default_format = "#high"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
vbox = {
layoutpolicy_horizontal = growing
vbox = {
layoutpolicy_horizontal = expanding
margin = { 20 10 }
spacing = 2
### INFO TEXT
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "MEN_AT_ARMS_TYPE_TOOLTIP_CREATION_COST"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "[MenAtArmsType.GetReinforcementCostString( GetPlayer )]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "[MenAtArmsType.GetFullStrengthMaintenanceCostForPlayerString]"
}
expand = {}
}
hbox = {
visible = "[IsLandlessAdventurer( GetPlayer )]"
layoutpolicy_horizontal = expanding
text_single = {
text = "[Regiment.GetProvisionsCostString]"
}
expand = {}
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox_maa_stats_numbers = {
layoutpolicy_horizontal = expanding
}
hbox_maa_type_text = {
layoutpolicy_horizontal = expanding
}
vbox_maa_info = {
layoutpolicy_horizontal = expanding
}
}
}
}
}
widget = {
alwaystransparent = no
name = "MaaTypeTooltipDefault"
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 8 8 }
margin_bottom = 16
spacing = 4
vbox = {
layoutpolicy_horizontal = expanding
margin = { 10 4 }
background = {
name = "header"
using = Background_Area_Dark
margin = { 5 5 }
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
size = { 40 40 }
texture = "[MenAtArmsType.GetIcon]"
}
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
align = top|hcenter
text = "[MenAtArmsType.GetNameNoTooltip]"
maximumsize = { 400 -1 }
using = Font_Type_Flavor
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = { 40 40 }
}
}
}
widget = {
minimumsize = { 352 208 }
layoutpolicy_horizontal = expanding
vbox = {
margin = { 0 5 }
background = {
name = "image"
texture = "[MenAtArmsType.GetHorizontalImage]"
fittype = CenterCrop
using = Mask_Rough_Edges
}
expand = {}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 0 2 }
margin_left = 10
tooltip = "MV_CREATE_REGIMENT_MAX_SIZE_TT"
using = tooltip_ne
icon = {
name = "icon_soldier"
texture = "[MenAtArmsType.GetIcon]"
size = { 30 30 }
}
text_label_left = {
name = "soldier count"
text = "MV_CREATE_REGIMENT_SIZE"
default_format = "#high"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
vbox = {
layoutpolicy_horizontal = growing
vbox = {
layoutpolicy_horizontal = expanding
margin = { 20 10 }
spacing = 2
### INFO TEXT
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "MEN_AT_ARMS_TYPE_TOOLTIP_CREATION_COST"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "[MenAtArmsType.GetReinforcementCostString( GetPlayer )]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "[MenAtArmsType.GetFullStrengthMaintenanceCostForPlayerString]"
}
expand = {}
}
hbox = {
visible = "[IsLandlessAdventurer( GetPlayer )]"
layoutpolicy_horizontal = expanding
text_single = {
text = "[MenAtArmsType.GetProvisionsCostString]"
}
expand = {}
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox_maa_stats_numbers = {
layoutpolicy_horizontal = expanding
}
hbox_maa_type_text = {
layoutpolicy_horizontal = expanding
}
vbox_maa_info = {
layoutpolicy_horizontal = expanding
}
}
}
datacontext = "[GetPlayer]"
}
container = {
alwaystransparent = no
name = "MaaTypeTooltipSpecific"
using = regiment_container_tooltip
datacontext = "[Regiment.GetMAAType]"
datacontext = "[Regiment.GetOwner]"
}
template regiment_container_tooltip
{
widget = {
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 8 8 }
margin_bottom = 16
spacing = 4
vbox = {
layoutpolicy_horizontal = expanding
margin = { 10 4 }
background = {
name = "header"
using = Background_Area_Dark
margin = { 5 5 }
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
size = { 40 40 }
texture = "[Regiment.GetMAAType.GetIcon]"
}
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
align = top|hcenter
text = "[Regiment.GetNameNoTooltip]"
maximumsize = { 400 -1 }
using = Font_Type_Flavor
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
coa_title_small = {
datacontext = "[Regiment.GetOwningTitle]"
visible = "[Title.IsValid]"
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
widget = {
minimumsize = { 294 174 }
datacontext = "[Regiment.GetMAAType]"
vbox = {
margin = { 0 5 }
background = {
name = "image"
texture = "[MenAtArmsType.GetHorizontalImageForCulture( Regiment.GetOwner.GetCulture )]"
using = Mask_Rough_Edges
fittype = CenterCrop
}
hbox = {
layoutpolicy_horizontal = expanding
expand = {}
text_label_right = {
text = "[SelectLocalization(Regiment.IsRaised, 'MAA_RAISED', 'MAA_UNRAISED')]"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = {10 0}
}
}
expand = {}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 6
margin = { 0 2 }
hbox = {
margin_left = 10
icon = {
name = "icon_soldier"
texture = "gfx/interface/icons/icon_soldier.dds"
size = { 30 30 }
}
text_label_left = {
text = "[Regiment.BuildCurrentRegimentCountString]"
default_format = "#high"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
text_label_right = {
text = "REGIMENT_CURRENT_SIZE"
default_format = "#high"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = {10 0}
}
}
}
}
}
vbox = {
datacontext = "[Regiment.GetMAAType]"
layoutpolicy_horizontal = growing
hbox_maa_location = {
layoutpolicy_horizontal = expanding
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Regiment.IsRegular]"
margin = { 20 10 }
spacing = 2
### INFO TEXT
text_single = {
layoutpolicy_horizontal = expanding
text = "MAA_REINFORCEMENT_COST_ENTRY"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "MAA_MAINTENANCE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[IsLandlessAdventurer( GetPlayer )]"
layoutpolicy_horizontal = expanding
text = "[MenAtArmsType.GetProvisionsCostString]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox_maa_active_regiment_stats_numbers = {
layoutpolicy_horizontal = expanding
}
hbox_maa_type_text = {
layoutpolicy_horizontal = expanding
}
vbox_maa_info = {
layoutpolicy_horizontal = expanding
}
}
block "extra_info" {}
}
}
}
template regiment_container_text_tooltip
{
widget = {
alwaystransparent = no
using = GeneralTooltipSetup
datacontext = "[Regiment.GetMAAType]"
datacontext = "[Regiment.GetOwner]"
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 8 8 }
margin_bottom = 16
spacing = 4
vbox = {
layoutpolicy_horizontal = expanding
margin = { 10 4 }
background = {
name = "header"
using = Background_Area_Dark
margin = { 5 5 }
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
size = { 40 40 }
texture = "[Regiment.GetMAAType.GetIcon]"
}
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
align = top|hcenter
text = "[Regiment.GetNameNoTooltip]"
maximumsize = { 400 -1 }
using = Font_Type_Flavor
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
coa_title_small = {
datacontext = "[Regiment.GetOwningTitle]"
visible = "[Title.IsValid]"
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
margin = { 15 0 }
margin_top = 5
spacing = 10
hbox = {
layoutpolicy_horizontal = expanding
text_label_left = {
text = "[SelectLocalization(Regiment.IsRaised, 'MAA_RAISED', 'MAA_UNRAISED')]"
using = Font_Size_Medium
align = right
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
icon = {
name = "icon_maa"
texture = [MenAtArmsType.GetIcon]
size = { 30 30 }
}
text_single = {
text = "[Regiment.BuildCurrentRegimentCountString]"
default_format = "#high"
# using = Font_Size_Medium
}
}
# expand = {}
text_single = {
raw_text = ", "
default_format = "#high"
# using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
text = "REGIMENT_CURRENT_SIZE"
default_format = "#high"
# using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
vbox = {
datacontext = "[Regiment.GetMAAType]"
layoutpolicy_horizontal = growing
hbox_maa_location = {
layoutpolicy_horizontal = expanding
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Regiment.IsRegular]"
spacing = 2
margin = { 15 5 }
### INFO TEXT
text_single = {
layoutpolicy_horizontal = expanding
text = "MAA_REINFORCEMENT_COST_ENTRY"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "MAA_MAINTENANCE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[IsLandlessAdventurer( GetPlayer )]"
layoutpolicy_horizontal = expanding
text = "[Regiment.GetProvisionsCostString]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox_maa_active_regiment_stats_numbers = {
layoutpolicy_horizontal = expanding
}
hbox_maa_type_text = {
layoutpolicy_horizontal = expanding
}
vbox_maa_info = {
layoutpolicy_horizontal = expanding
}
}
block "extra_info" {}
}
}
}
template unit_icon_item_tooltip {
widget = {
alwaystransparent = no
using = GeneralTooltipSetup
datacontext = "[UnitItem.GetArmy]"
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 5 5 }
spacing = 5
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 5 0 }
margin_top = 5
background = {
using = Background_Header
}
background = {
using = Background_Header_Pattern
}
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 5
widget = {
size = { 60 60 }
coa_realm_small = {
datacontext = "[UnitItem.GetOwner]"
parentanchor = center
position = { 0 5 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
vbox = {
layoutpolicy_vertical = expanding
text_single = {
name = "title"
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
align = top|left
raw_text = "[Army.GetNameNoTooltip] ([UnitItem.GetTooltipHeader])"
fonttintcolor = "[TooltipInfo.GetTintColor]"
margin_top = 5
margin_right = 20
}
hbox = {
layoutpolicy_horizontal = growing
hbox_soldiers_and_quality_small_core = {
datacontext = "[Army.GetComposition]"
spacing = 5
}
expand = {
layoutpolicy_horizontal = growing
}
}
expand = {
layoutpolicy_vertical = growing
}
}
expand = {
layoutpolicy_horizontal = growing
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
name = "troop_breakdown"
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
margin = { 10 10 }
margin_left = 15
background = {
using = Background_Area
}
dynamicgridbox = {
name = "troops"
datamodel = "[CalculateBreakdownItems(Army.Self)]"
datamodel_wrap = 4
flipdirection = yes
item = {
widget = {
hbox = {
margin_right = 15
set_parent_size_to_minimum = yes
tooltip = "ARMY_VIEW_TROOP_TT"
spacing = 4
icon = {
name = "men_at_arms_icon"
visible = "[TroopItem.IsMaa]"
size = { 35 35 }
texture = "[TroopItem.GetRegiment.GetRegiment.GetMAAType.GetIcon]"
}
widget = {
size = { 35 35 }
name = "levies_icon"
visible = "[TroopItem.IsLevies]"
icon = {
# the levies icon is larger than the MaA icons so it looks better if smaller
size = { 30 30 }
texture = "gfx/interface/icons/icon_soldier.dds"
parentanchor = center
}
}
icon = {
name = "knight_icon"
visible = "[TroopItem.IsKnight]"
size = { 35 35 }
texture = "gfx/interface/icons/icon_knight_small.dds"
}
text_single = {
layoutpolicy_horizontal = growing
text = "[TroopItem.GetCount|*V]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
highlight_icon = {
name = "levies_icon"
visible = "[TroopItem.IsLevies]"
size = { 35 35 }
texture = "gfx/interface/icons/icon_levies.dds"
}
highlight_icon = {
name = "knight_icon"
visible = "[TroopItem.IsKnight]"
size = { 35 35 }
texture = "gfx/interface/icons/icon_knight_small.dds"
}
}
}
}
expand = {
layoutpolicy_vertical = expanding
}
}
hbox = {
name ="commander"
datacontext = "[Army.GetCommander]"
layoutpolicy_horizontal = expanding
margin = { 15 10 }
background = {
using = Background_Area
}
hbox = {
visible = "[Character.IsValid]"
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_TOOLTIP_COMMANDER"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
tooltip = "[Character.GetCommanderAdvantageDesc]"
icon = {
name = "skill_icon"
texture = "gfx/interface/icons/icon_commander_advantage.dds"
size = { 30 30 }
}
text_single = {
text = "ARMY_TOOLTIP_COMMANDER_ADVANTAGE"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
text_single = {
name = "no_troop_commander"
visible = "[Not( Character.IsValid )]"
layoutpolicy_horizontal = expanding
text = "ARMY_TOOLTIP_NO_COMMANDER"
align = nobaseline
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[Army.IsRaidArmy]"
layoutpolicy_horizontal = expanding
margin = { 10 5 }
background = {
using = Background_Area
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_LOOT_INFO"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
vbox = {
name = "statuses"
layoutpolicy_horizontal = expanding
hbox = {
visible = "[UnitItem.IsRulerCommander]"
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5
spacing = 2
icon = {
texture = "gfx/interface/icons/map_icons/commander_is_leader.dds"
size = { 24 24 }
}
text_single = {
datacontext = "[UnitItem.GetUnitPortraitCharacter]"
layoutpolicy_horizontal = expanding
text = "COMMANDER_IS_LEADER"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[UnitItem.HasDisembarkPenalty]"
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5
spacing = 2
icon = {
name = "sea_sickness_icon"
size = { 24 24 }
texture = "gfx/interface/icons/map_icons/army_icon_disembarked.dds"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[Army.GetEmbarkInfoForTooltip]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[UnitItem.IsGathering]"
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5
spacing = 2
icon = {
texture = "gfx/interface/icons/map_icons/army_icon_gathering.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_TOOLTIP_IS_GATHERING"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[And( Army.IsRaidArmy, Army.IsLootCapped)]"
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5
spacing = 2
tooltip = ARMY_AT_LOOT_CAP_TOOLTIP
icon = {
texture = "gfx/interface/icons/map_icons/army_icon_at_loot_cap.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_AT_LOOT_CAP"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[UnitItem.IsRetreating]"
layoutpolicy_horizontal = expanding
margin = { 10 0 }
margin_bottom = 5
spacing = 2
icon = {
texture = "gfx/interface/icons/map_icons/army_icon_retreating.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_RETREATING"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
# #--------------------------------------
# | ¤ Attrition: 1%/month
# | & Well supplied (100) -10/month
# | -> Province, 17 days left (29 May yyyy)
# | () Movement locked
# #--------------------------------------
vbox = {
name = "involved_army_details"
visible = "[Not(Army.IsNeutralToPlayer)]"
layoutpolicy_horizontal = expanding
spacing = 5
margin = { 10 5 }
hbox = {
name = "involved_army_attrition_warning"
visible = "[Army.IsArmySufferingFromAttrition]"
layoutpolicy_horizontal = expanding
tooltip = "ARMY_ATTRITION_TT"
spacing = 2
icon = {
texture = "gfx/interface/icons/map_icons/attrition_icon.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
name = "attrition"
text = "ARMY_TOOLTIP_ATTRITION"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
name = "involved_army_supply_status"
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
text = "[Army.GetSupplyInfoForTooltip]"
tooltip = "[Army.GetSupplyStateTooltip]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
name = "involved_army_movement"
visible = "[Army.IsMoving]"
layoutpolicy_horizontal = expanding
spacing = 2
icon = {
name = "unit_moving"
visible = "[Not(UnitItem.IsRetreating)]"
texture = "gfx/interface/icons/combat_effects/moving_army.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[Army.GetMovementInfoForTooltip]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
name = "involved_army_movement_lock"
visible = "[UnitItem.IsMovementLocked]"
layoutpolicy_horizontal = expanding
spacing = 2
icon = {
texture = "gfx/interface/icons/map_icons/movement_locked.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_TOOLTIP_IS_MOVEMENT_LOCKED"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
block "extra_unit_info" {}
# PLAYER FACING AI INFO
vbox = {
visible = "[Or( Army.IsControlledByCompanionAI, UnitItem.IsUnitItemAlly)]"
layoutpolicy_horizontal = expanding
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox = {
margin = { 15 5 }
layoutpolicy_horizontal = expanding
hbox = {
visible = "[Army.IsControlledByCompanionAI]"
layoutpolicy_horizontal = expanding
spacing = 2
army_automation_on = {
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_IS_AUTOMATED"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
visible = "[UnitItem.IsUnitItemAlly]"
layoutpolicy_horizontal = expanding
spacing = 2
icon = {
texture = "gfx/interface/icons/message_feed/alliance.dds"
size = { 24 24 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "ARMY_IS_ALLY"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
spacing = 2
icon_ai_order = {}
text_multi = {
layoutpolicy_horizontal = expanding
autoresize = yes
text = "[Army.GetAIOrderDesc]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
# AI DEBUG INFO
vbox = {
visible = "[And( InDebugMode, Not(ReleaseMode) )]"
layoutpolicy_horizontal = expanding
text_single = {
# Deliberately unlocalized since this is debug functionality
layoutpolicy_horizontal = expanding
raw_text = "DEBUG:"
align = nobaseline
default_format = "#debug"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
# Deliberately unlocalized since this is debug functionality
layoutpolicy_horizontal = expanding
raw_text = "Army: [Army.GetArmyId] Unit: [Army.GetUnitId]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
# Deliberately unlocalized since this is debug functionality
layoutpolicy_horizontal = expanding
raw_text = "#E AI Coordinator: [Army.GetAiCoordinatorId]#!"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
raw_tooltip = "Stack: [Army.GetAiUnitStackId] Sub: [Army.GetAiSubUnitStackId]"
}
text_multi = {
layoutpolicy_horizontal = expanding
autoresize = yes
text = "[Army.GetDebugAIInfo]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
template unit_icon_tooltip {
container = {
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
alwaystransparent = no
flowcontainer = {
datamodel = "[UnitMapIcon.GetUnitItems]"
visible = "[GreaterThan_int32(GetDataModelSize(UnitMapIcon.GetUnitItems), '(int32)1')]"
direction = vertical
spacing = 5
margin = { 20 10 }
text_single = {
text = "ARMY_ICON_HEADER"
margin_bottom = 4
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
item = {
flowcontainer = {
spacing = 5
ignoreinvisible = yes
container_allied_unit_icon_item = {
blockoverride "unit_items" {}
blockoverride "multi_select" {}
blockoverride "onclick" {
onclick = "[UnitMapIcon.OnClickArmy( Army.Self )]"
}
min_width = 120
parentanchor = vcenter
}
container_hostile_unit_icon_item = {
blockoverride "unit_items" {}
blockoverride "multi_select" {}
min_width = 120
}
text_single = {
text = "ARMY_UNIT_COOLTIP_NAME"
align = nobaseline
margin_top = 4
margin_left = 16
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
tooltipwidget = {
using = unit_icon_item_tooltip
}
using = tooltip_es
}
}
}
container = {
visible = "[EqualTo_int32(GetDataModelSize(UnitMapIcon.GetUnitItems), '(int32)1')]"
datamodel = "[UnitMapIcon.GetUnitItems]"
item = {
using = unit_icon_item_tooltip
}
}
}
}
container = {
name = "UnitTooltipWidget"
using = unit_icon_item_tooltip
}
template faith_tooltip_click_default_extra_info
{
divider_light = {
layoutpolicy_horizontal = expanding
}
text_single = {
layoutpolicy_horizontal = expanding
text = "FAITH_ITEM_TOOLTIP"
margin = { 10 0 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
template core_tenets_extra_info
{
divider_light = {
layoutpolicy_horizontal = expanding
}
text_label_center = {
text = "FAITH_CORE_TENETS_HEADING"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
name = "tenets"
spacing = 10
datamodel = "[Rite.GetTenets]"
item = {
container_tenet_item_small = {}
}
}
}
template rite_tooltip_click_default_extra_info
{
divider_light = {
layoutpolicy_horizontal = expanding
}
text_single = {
layoutpolicy_horizontal = expanding
text = "RITE_ITEM_TOOLTIP"
margin = { 10 0 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
types HoldingTooltips
{
type holding_tooltip = widget
{
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 15 10 }
margin_bottom = 20
spacing = 5
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
background = {
using = Background_Header
margin = { 10 4 }
margin_bottom = 12
}
background = {
using = Background_Header_Pattern
margin = { 10 4 }
margin_bottom = 12
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 5 5 }
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
text = "[Holding.GetNameNoTooltip]"
align = top
using = Font_Type_Flavor
using = Font_Size_Big
min_width = 300
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
text = "[holding|E]"
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 2
margin = { 5 0 }
vbox = {
visible = "[Not(Holding.IsEmpty)]"
layoutpolicy_horizontal = expanding
spacing = 5
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_TYPE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_TITLE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_HOLDER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[Holding.GetProvince.GetTitle.IsLeasedOut]"
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_LEASED"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
text_single = {
visible = "[Holding.IsEmpty]"
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_EMPTY"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[Holding.GetTooltip]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
layoutpolicy_horizontal = growing
spacing = 10
datacontext = "[Holding.GetProvince.GetTerrain]"
tooltipwidget = terrain_tooltip
using = tooltip_ws
text_single = {
text = "HOLDING_TT_TERRAIN"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
icon = {
name = "terrain"
texture = "[Terrain.GetIcon]"
size = { 35 35 }
}
expand = {}
}
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLDING_TT_SUPPLY"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
block "extra_info" {}
}
}
}
type holding_tooltip_click = holding_tooltip
{
blockoverride "extra_info" {
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLDING_CLICK_TOOLTIP"
margin = { 0 10 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
template faith_sub_heading {
text_single = {
visible = "[And( Not( Faith.GetReligion.HasPaganRoots ), Not( Faith.IsUnreformed ) )]"
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_SUBHEADING"
align = top
}
text_single = {
visible = "[Faith.IsUnreformed]"
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_UNREFORMED_SUBHEADING"
align = top
}
text_single = {
visible = "[And( Faith.GetReligion.HasPaganRoots, Not( Faith.IsUnreformed ) )]"
layoutpolicy_horizontal = expanding
text = "FAITH_VIEW_REFORMED_SUBHEADING"
align = top
}
}
types FaithTooltips
{
type faith_tooltip = widget
{
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackgroundNoLockedFrame
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 10 15 }
spacing = 5
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_bottom = 10
background = {
using = Background_Header
margin = { 4 0 }
margin_top = 8
}
background = {
using = Background_Header_Pattern
margin = { 4 0 }
margin_top = 8
}
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 5
icon = {
size = { 60 60 }
texture = "[Faith.GetIcon]"
color = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_vertical = expanding
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
text = "FAITH_COOLTIP_GETNAME"
align = top
using = Font_Type_Flavor
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
using = faith_sub_heading
expand = {
layoutpolicy_vertical = growing
}
}
expand = {
layoutpolicy_horizontal = growing
}
}
}
vbox = {
spacing = 5
margin = { 10 0 }
vbox = {
layoutpolicy_horizontal = expanding
visible = "[And( GetPlayer.IsValid, Not(ObjectsEqual( GetPlayer.GetFaith, Faith.Self )))]"
text_single = {
name = "our_view"
layoutpolicy_horizontal = expanding
text = FAITH_VIEW_OUR_VIEW
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
name = "their_view"
layoutpolicy_horizontal = expanding
text = FAITH_VIEW_THEIR_VIEW
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
hbox = {
layoutpolicy_horizontal = expanding
fervor_container_hbox = {}
expand = {}
}
text_single = {
layoutpolicy_horizontal = growing
visible = "[Faith.HasDoctrineByKey( 'doctrine_no_head' )]"
text = "FAITH_TOOLTIP_DOCTRINE_NO_HEAD_OF_FAITH"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = growing
visible = "[And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), Not( Faith.GetReligiousHead.IsValid ) ) ]"
text = "FAITH_TOOLTIP_DOCTRINE_VACANT_HEAD_OF_FAITH"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = growing
visible = "[And( Not(Faith.HasDoctrineByKey( 'doctrine_no_head' )), Faith.GetReligiousHead.IsValid ) ]"
text = "FAITH_TOOLTIP_DOCTRINE_HEAD_OF_FAITH"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = { 0 5 }
}
divider_light = {
layoutpolicy_horizontal = growing
}
text_multi = {
max_width = 400
margin = { 0 5 }
text = "[Faith.GetFlavorDesc]"
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
block "extra_info" {}
}
}
widget = {
name = "locked_frame"
size = { 100% 100% }
using = TooltipLockedFrame
alwaystransparent = yes
}
}
type faith_tooltip_click = faith_tooltip
{
blockoverride "extra_info"
{
using = faith_tooltip_click_default_extra_info
}
}
type faith_tooltip_core_tenets = faith_tooltip
{
blockoverride "extra_info"
{
using = core_tenets_extra_info
}
}
type faith_tooltip_ruler_designer = faith_tooltip
{
blockoverride "extra_info"
{
spacer = {
size = { 0 4 }
}
divider_light = {
layoutpolicy_horizontal = expanding
}
text_single = {
layoutpolicy_horizontal = expanding
text = RULER_DESIGNER_LIST_FAITH_ENTRY_SELECT_TOOLTIP
align = nobaseline
}
}
}
}
container = {
alwaystransparent = no
name = "FaithTooltip"
faith_tooltip = {}
}
types RiteTooltips
{
type rite_tooltip = widget
{
alwaystransparent = no
using = GeneralTooltipSetup
widget = {
name = "background"
using = DefaultTooltipBackgroundNoLockedFrame
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 10 15 }
spacing = 5
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_bottom = 10
background = {
using = Background_Header
margin = { 4 0 }
margin_top = 8
}
background = {
using = Background_Header_Pattern
margin = { 4 0 }
margin_top = 8
}
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 5
spacing = 5
icon = {
size = { 60 60 }
texture = "[Rite.GetIcon]"
color = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_vertical = expanding
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
text = "RITE_COOLTIP_GETNAME"
align = top
using = Font_Type_Flavor
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[Rite.IsMain]"
layoutpolicy_horizontal = expanding
text = "RITE_COOLTIP_IS_MAINLINE"
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[Not( Rite.IsMain )]"
layoutpolicy_horizontal = expanding
text = "RITE_COOLTIP_IS_NOT_MAINLINE"
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
text_single = {
margin_right = 10
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
text = "[rite|E]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = vcenter|right
}
}
}
vbox = {
spacing = 5
margin = { 10 0 }
text_single = {
visible = "[ObjectsEqual( GetPlayer.GetRite.Self, Rite.Self )]"
layoutpolicy_horizontal = expanding
text = "RITE_COOLTIP_YOUR_RITE"
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[And( GetPlayer.IsValid, Not(ObjectsEqual( GetPlayer.GetRite.Self, Rite.Self ) ) )]"
name = "our_view"
layoutpolicy_horizontal = expanding
text = RITE_VIEW_OUR_AND_THEIR_VIEW
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[And( ObjectsEqual( GetPlayer.GetFaith.Self, Rite.GetFaith.Self ), Not( Rite.IsMain ) )]"
layoutpolicy_horizontal = expanding
text = "RITE_COOLTIP_DIVERGENCE"
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
layoutpolicy_horizontal = expanding
text_multi = {
max_width = 410
min_width = 340
margin_top = -7
margin_bottom = 5
text = "[Localize(Rite.GetDescription)]"
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
divider_light = {
layoutpolicy_horizontal = growing
}
hbox = {
datacontext = "[Rite.GetHeadOfRite]"
layoutpolicy_horizontal = growing
spacing = 10
portrait_head_small = {
name = "rite_head_portrait"
}
text_single = {
visible = "[Character.IsValid]"
layoutpolicy_horizontal = growing
layoutpolicy_vertical = growing
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "RITE_COOLTIP_HEAD"
align = top
max_width = 320
using = DefaultTooltipText
}
text_single = {
visible = "[Not( Character.IsValid )]"
layoutpolicy_horizontal = growing
layoutpolicy_vertical = growing
text = "RITE_COOLTIP_NO_HEAD"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = top
using = DefaultTooltipText
}
}
block "extra_info" {}
block "shortcut" {}
}
}
widget = {
name = "locked_frame"
size = { 100% 100% }
using = TooltipLockedFrame
alwaystransparent = yes
}
}
type rite_tooltip_click = rite_tooltip
{
blockoverride "extra_info"
{
using = rite_tooltip_click_default_extra_info
}
}
type rite_tooltip_ruler_designer = rite_tooltip
{
blockoverride "extra_info"
{
using = core_tenets_extra_info
spacer = {
size = { 0 4 }
}
divider_light = {
layoutpolicy_horizontal = expanding
}
text_single = {
layoutpolicy_horizontal = expanding
text = "RULER_DESIGNER_LIST_RITE_ENTRY_SELECT_TOOLTIP"
align = nobaseline
}
}
}
}
container = {
alwaystransparent = no
name = "RiteTooltip"
rite_tooltip = {}
}
template fulfillment_short_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "gfx/interface/icons/spiritual_fulfillment_levels/spiritual_fulfillment_04.dds"
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "game_concept_spiritual_fulfillment"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "description_text" {
text = "game_concept_spiritual_fulfillment_desc"
max_width = 400
}
blockoverride "bg_texture" {
texture = "gfx/interface/tooltips/tooltip_bg_gameconcept.dds"
}
}
}
}
template fulfillment_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon_placeholder = {
size = { 52 52 }
block "header_icon"
{
texture = "[SpiritualFulfillmentLevel.GetIcon]"
}
}
}
}
blockoverride "concept_link" {
text = "[spiritual_fulfillment|E]"
}
blockoverride "title_text" {
margin = { 0 5 }
block "title_text" {
text = "[SpiritualFulfillmentLevel.GetName]"
}
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[SpiritualFulfillmentLevel.GetSpiritualFulfillmentLevelEffects]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
}
}
}
}
}
container = {
name = "FulfillmentLevelTooltip"
alwaystransparent = no
using = fulfillment_tooltip
}
types ReligionCooltips {
type religion_tooltip = object_tooltip_pop_out {
blockoverride "title_text" {
text = "RELIGION_TITLE_TEXT"
}
blockoverride "concept_link" {
text = [religion|E]
}
blockoverride "above_description_text" {
text = "[Religion.GetType.GetVirtuesSinsDescription]"
}
blockoverride "description_text" {
text = "[Religion.GetFlavorDesc]"
}
}
type religion_tooltip_ruler_designer = religion_tooltip {
blockoverride "tooltip_text_shortcut" {
visible = no
}
blockoverride "call_to_action" {
vbox = {
margin_bottom = 10
spacing = 5
layoutpolicy_horizontal = expanding
spacer = {
size = { 0 4 }
}
divider_light = {
layoutpolicy_horizontal = expanding
}
text_single = {
layoutpolicy_horizontal = expanding
text = "RULER_DESIGNER_LIST_RELIGION_ENTRY_SELECT_TOOLTIP"
align = nobaseline
}
}
}
}
}
container = {
alwaystransparent = no
name = "ReligionTooltip"
religion_tooltip = {}
}
container = {
name = "ReligionFamilyTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[ReligionFamily.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [religious_family|E]
}
blockoverride "description_text" {
text = "RELIGION_FAMILY_TOOLTIP"
}
}
}
container = {
name = "SchemeTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Scheme.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [scheme|E]
}
blockoverride "description_text" {
text = "[Scheme.GetTypeDescription]"
}
}
}
container = {
name = "FactionTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Faction.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [faction|E]
}
blockoverride "description_text" {
text = "[Faction.GetDescription]"
}
}
}
container = {
alwaystransparent = no
name = "DynastyTooltip"
using = DynastyTooltip
}
template DynastyTooltip {
object_tooltip_pop_out = {
blockoverride "header_additions" {
margin_top = 6
margin_bottom = -10
coa_dynasty_small = {
blockoverride "coa_tooltip" {}
}
}
blockoverride "title_text" {
#margin = { 0 8 }
margin_right = 16
text = "[dynasty|E] [Dynasty.GetNameNoTooltip]"
align = nobaseline
}
blockoverride "concept_link" {
text = [dynasty|E]
}
blockoverride "extra_data" {
cooltip_paragraph = {
text = "DYNASTY_VIEW_MY_DYNASTY"
visible = "[Dynasty.IsMyDynasty(GetPlayer)]"
}
cooltip_paragraph = {
datacontext = [Dynasty]
text = "DYNASTY_TT_DYNAST"
}
cooltip_paragraph = {
datacontext = [Dynasty]
text = "DYNASTY_TT_MEMBERS"
}
cooltip_paragraph = {
datacontext = [Dynasty]
text = "DYNASTY_TT_SPLENDOR_LEVEL"
}
cooltip_paragraph = {
text = "DYNASTY_VIEW_PRESTIGE"
}
}
}
}
container = {
alwaystransparent = no
name = "BuildingTooltip"
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Building.GetNameNoTooltip]"
}
blockoverride "subtitle_text" {
text = "[Building.GetTypeName]"
default_format = "#weak"
}
blockoverride "concept_link" {
text = "[building|E]"
}
blockoverride "description_text" {
text = "BUILDING_TOOLTIP_TEXT"
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
texture = "[Building.GetTypeIcon]"
size = { 75 65 }
using = Master_Button_Modify_Texture
}
}
}
}
}
container = {
name = "ArmyTooltip"
using = unit_icon_item_tooltip
}
container = {
alwaystransparent = no
name = "HoldingTooltipDefault"
holding_tooltip = {}
}
types Cooltips
{
type LandedTitleTooltipBase = object_tooltip_pop_out {
blockoverride "header_additions" {
margin_top = -4
coa_title_small_crown = {
visible = "[Title.IsValid]"
size = { 40 50 }
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
}
blockoverride "title_text" {
text = "[Title.GetNameWithUnderlyingNoTooltip|U]"
}
blockoverride "subheading" {
margin_left = 6
vbox_title_type_text = {
layoutpolicy_horizontal = expanding
}
}
blockoverride "description_text" {
text = "[Title.GetCOADefaultTooltip]"
}
blockoverride "concept_link" {
text = [title|E]
}
blockoverride "extra_data" {
textbox = {
using = DefaultTooltipText
layoutpolicy_horizontal = expanding
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
block "highlight_text" {}
}
}
}
}
template LandedTitleTooltip {
LandedTitleTooltipBase = {
blockoverride "input_info_text" {
text = "[Title.GetClickInfo]"
}
}
}
template LandedTitleTooltipTextLink {
LandedTitleTooltipBase = {
blockoverride "input_info_text" {
text = "CLICK_TO_VIEW"
}
}
}
template ProvinceTooltip {
LandedTitleTooltipBase = {
datacontext = "[Province.GetCoATitle]"
blockoverride "input_info_text" {
text = "CLICK_TO_VIEW_HOLDING"
}
}
}
template CountyTitleTooltipLanguage
{
using = LandedTitleTooltip
blockoverride "highlight_text"
{
text = "COUNTY_LANGUAGE_TOOLTIP"
}
}
container = {
alwaystransparent = no
name = "LandedTitleTooltip"
using = LandedTitleTooltipTextLink
}
container = {
alwaystransparent = no
name = "ProvinceTooltip"
using = ProvinceTooltip
}
container = {
name = "GovernmentTypeTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
header_icon = {
blockoverride "header_texture"
{
texture = "[GovernmentType.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[GovernmentType.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [government|E]
}
blockoverride "description_text" {
text = GOVERNMENT_TYPE_DESCRIPTION
}
}
}
container = {
name = "ObligationlevelTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[ObligationLevel.GetName]"
}
blockoverride "concept_link" {
text = [vassal_contract|E]
}
blockoverride "above_description_text" {
text = "[ObligationLevel.GetEffectText]"
}
blockoverride "description_text" {
text = "[ObligationLevel.GetDesc]"
}
}
}
types StaticModifierTooltipTypes
{
type static_modifier_tooltip = object_tooltip_pop_out {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 32 32 }
texture = "[StaticModifier.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
visible = "[StaticModifier.HasValidIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[StaticModifier.GetName]"
}
blockoverride "concept_link" {
text = ""
}
blockoverride "description_text" {
block "description_text_data" {
text = "[StaticModifier.GetDescWithEffects]"
}
}
}
type scaled_static_modifier_tooltip = object_tooltip_pop_out {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 32 32 }
texture = "[StaticModifier.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[StaticModifier.GetName]"
}
blockoverride "concept_link" {
text = ""
}
blockoverride "main_description" {
vbox = {
layoutpolicy_horizontal = expanding
textbox = {
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
block "description_text_data" {
text = "[StaticModifier.GetDescOnly(StaticModifierTooltipData.GetMainLocalizationKey, StaticModifierTooltipData.GetMultiplier)]"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
vbox = {
layoutpolicy_horizontal = expanding
block "effects_datamodel" {
datamodel = "[StaticModifier.GetEffectsDesc(StaticModifierTooltipData.GetEffectLocaizationKey, StaticModifierTooltipData.GetMultiplier)]"
}
item = {
textbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
margin_left = 10
margin_right = 5
margin_bottom = 10
using = DefaultTooltipText
using = Background_Area
text = "[CString.GetString]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
block "expiration_date" {}
# Things like "click to X", hotkeys etc
textbox = {
name = "input_info"
layoutpolicy_horizontal = expanding
margin_top = 10
using = DefaultTooltipText
multiline = yes
block "input_info_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
container = {
name = "StaticModifierTooltip"
alwaystransparent = no
static_modifier_tooltip = {}
}
container = {
name = "ScaledStaticModifierTooltip"
alwaystransparent = no
scaled_static_modifier_tooltip = {}
}
types LawTooltipTypes
{
type law_tooltip_header_additions = hbox {
margin_right = 5
icon = {
datacontext = "[Law.GetLawGroup]"
visible = "[Law.HasIcon]"
size = { 60 60 }
texture = "[Law.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
modify_texture = {
visible = "[Not( Or( EqualTo_string( LawGroup.GetKey, 'camp_purpose'), EqualTo_string( LawGroup.GetKey, 'nomadic_authority') ) )]"
texture = "gfx/interface/colors/colors_textured.dds"
blend_mode = add
framesize = { 96 96 }
spritetype = corneredtiled
}
}
}
type pass_law_tooltip = container {
alwaystransparent = no
scrollable_object_tooltip_pop_out = {
blockoverride "header_additions" {
law_tooltip_header_additions = {}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "PASS_LAW_TOOLTIP_TITLE"
}
blockoverride "subtitle_text" {
text = "LAW_TOOLTIP_SUBTITLE"
}
blockoverride "concept_link" {
block "concept_link" {
text = "[law|E]"
}
}
blockoverride "extra_data" {
cooltip_paragraph = {
text = "[GuiLaw.GetCanEnactDescription]"
max_width = 440
}
cooltip_paragraph = {
text = "[Law.GetEffectDescription]"
max_width = 440
}
cooltip_paragraph = {
text = "[GuiLaw.GetEnactEffectDescription]"
max_width = 440
}
}
blockoverride "scrolltip_footer" {
vbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 20
cooltip_paragraph = {
visible = "[And( GuiLaw.HasCost, Not( GuiLaw.IsEnacted ) )]"
text = "LAW_COST"
max_width = 440
tooltip = "[GuiLaw.GetCostDescription]"
}
cooltip_paragraph = {
visible = "[GuiLaw.CanEnact]"
text = "CLICK_TO_PASS_LAW"
max_width = 440
}
}
}
}
}
type general_law_tooltip = object_tooltip_pop_out {
blockoverride "header_additions" {
law_tooltip_header_additions = {}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "LAW_TOOLTIP_TITLE"
}
blockoverride "subtitle_text" {
text = "LAW_TOOLTIP_SUBTITLE"
}
blockoverride "concept_link" {
text = [law|E]
}
blockoverride "extra_data" {
cooltip_paragraph = {
text = "[Law.GetEffectDescription]"
}
}
}
}
container = {
alwaystransparent = no
name = "LawTooltip"
general_law_tooltip = {}
}
template terrain_tooltip {
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Terrain.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [terrain|E]
}
blockoverride "description_text" {
text = "TERRAIN_DESCRIPTION"
}
}
}
container = {
alwaystransparent = no
name = "TerrainTooltip"
using = terrain_tooltip
}
template dynasty_house_tooltip {
object_tooltip_pop_out = {
datacontext = "[DynastyHouse]"
blockoverride "header_additions" {
margin_right = 10
margin_top = 5
margin_left = -5
coa_house_small = {
blockoverride "coa_tooltip" {}
}
}
blockoverride "title_text"
{
text = "HOUSE_TT_NAME"
}
blockoverride "fontsize_min" {
fontsize_min = 13
}
blockoverride "subtitle_text"
{
text = "HOUSE_VIEW_MOTTO"
default_format = "#weak"
}
blockoverride "multiline" {
multiline = yes
}
blockoverride "max_width"
{
max_width = 280
}
blockoverride "concept_link"
{
text = [house|E]
}
blockoverride "extra_data"
{
cooltip_paragraph = {
name = "my_house"
visible = "[DynastyHouse.IsPlayerMember]"
text = "HOUSE_VIEW_PLAYER_IS_MEMBER"
}
cooltip_paragraph = {
name = "house_head"
text = "DYNASTY_HOUSE_TT_HEAD_OF_HOUSE"
}
cooltip_paragraph = {
name = "living_members"
text = "DYNASTY_HOUSE_TT_LIVING_MEMBERS"
}
cooltip_paragraph = {
name = "house_relation"
visible = "[DynastyHouse.HasHouseRelationWith( GetPlayer.GetHouse )]"
text = "DYNASTY_HOUSE_TT_HOUSE_RELATION"
}
cooltip_paragraph = {
name = "dynasty"
text = "DYNASTY_HOUSE_TT_DYNASTY"
}
cooltip_paragraph = {
name = "dynasty_level"
text = "DYNASTY_HOUSE_TT_DYNASTY_LEVEL"
}
hbox = {
layoutpolicy_horizontal = expanding
datacontext = "[DynastyHouse.GetCurrentHouseUnityStage]"
visible = "[DynastyHouse.HasHouseUnity]"
spacing = 5
text_single = {
text = "HOUSE_UNITY_VALUE_TT_TITLE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
icon = {
size = { 30 30 }
texture = "[HouseUnityStage.GetIcon]"
tooltipwidget = {
house_unity_stage_tooltip = {
blockoverride "decisions_visibility" {
visible = "[DynastyHouse.IsPlayerMember]"
}
blockoverride "decisions_datamodel" {
datamodel = "[GetDecisionsForCharacter(GetPlayer)]"
}
}
}
}
text_single = {
text = "[DynastyHouse.GetHouseUnityValue|0]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
cooltip_paragraph = {
name = "click"
text = "VIEW_CLICK"
default_format = "#I"
}
}
}
}
container = {
alwaystransparent = no
name = "DynastyHouseTooltip"
using = dynasty_house_tooltip
}
### These templates can very likely be extended to most custom tooltips with header, blocker, effects, flavor, etc
local_template era_innov_blockers
{
minimumsize = { 100% 0 }
block "eib_visible"
{
visible = yes
}
text_multi = {
block "eib_text"
{
text = "..."
}
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
}
local_template era_innov_effects
{
flowcontainer = {
name = "effects"
minimumsize = { 100% 0 }
direction = vertical
ignoreinvisible = yes
text_single = {
text = "INNOVATION_ERA_TOOLTIP_EFFECTS"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
textbox = {
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
block "eie_effects"
{
text = "..."
}
}
}
}
# progress
local_template era_innov_flavor
{
textbox = {
name = "description"
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
multiline = yes
default_format = "#F"
block "eif_text"
{
text = "..."
}
}
}
template culture_innovation_tooltip_no_context {
container = {
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
flowcontainer = {
margin = { 20 20 }
spacing = 15
direction = vertical
ignoreinvisible = yes
widget = {
name = "header"
size = { 500 60 }
background = {
using = Background_Area_Dark
margin = { 15 10 }
}
hbox = {
layoutpolicy_horizontal = expanding
minimumsize = { 500 0 }
set_parent_size_to_minimum = yes
widget = {
size = { 90 60 }
icon = {
texture = "[CultureInnovationType.GetIcon]"
size = { 90 60 }
using = Mask_Rough_Edges
}
}
text_single = {
layoutpolicy_horizontal = expanding
margin = { 10 0 }
text = "[CultureInnovationType.GetName|T]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
vbox = {
text_single = {
layoutpolicy_horizontal = expanding
align = right
text = "INNOVATION_TOOLTIP_TYPE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
container = {
using = era_innov_effects
blockoverride "eie_label_visible"
{
visible = "[CultureInnovationType.HasEffects( GetPlayer.GetCulture, GetPlayer )]"
minimumsize = { 500 30 }
}
blockoverride "eie_effects"
{
text = "[CultureInnovationType.GetEffectsDesc( GetPlayer.GetCulture, GetPlayer )]"
}
}
container = {
using = era_innov_flavor
blockoverride "eif_text" {
text = "[CultureInnovationType.GetDescription]"
max_width = 500
}
}
}
}
}
template culture_innovation_tooltip {
container = {
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
flowcontainer = {
margin = { 20 20 }
spacing = 15
direction = vertical
ignoreinvisible = yes
datacontext = "[CultureInnovation.GetType]"
widget = {
name = "header"
size = { 500 60 }
background = {
margin = { 20 20 }
texture = "gfx/interface/skinned/tile_window_background_no_edge.dds"
alpha = 0.7
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/colors/white.dds"
blend_mode = overlay
alpha = 0.1
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_header.dds"
blend_mode = alphaMultiply
}
}
background = {
margin = { 14 14 }
texture = "gfx/interface/skinned/color_theme.dds"
spriteType = Corneredtiled
alpha = 1
using = Mask_Rough_Edges
modify_texture = {
texture = "gfx/interface/skinned/mask_pattern.dds"
texture_density = 3
spriteType = Corneredtiled
blend_mode = alphaMultiply
}
modify_texture = {
texture = "gfx/interface/component_masks/mask_header.dds"
blend_mode = alphaMultiply
}
}
hbox = {
minimumsize = { 500 0 }
set_parent_size_to_minimum = yes
widget = {
size = { 90 60 }
icon = {
texture = "[CultureInnovation.GetIcon]"
size = { 90 60 }
using = Mask_Rough_Edges
}
icon = {
visible = "[Not(CultureInnovation.CanGainProgress)]"
texture = "[CultureInnovation.GetIcon]"
tintcolor = { 0 0 0 0.5 }
size = { 90 60 }
using = Mask_Rough_Edges
}
}
text_single = {
layoutpolicy_horizontal = expanding
margin = { 10 0 }
text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME"
default_format = "#T"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
vbox = {
text_single = {
layoutpolicy_horizontal = expanding
align = right
text = "INNOVATION_TOOLTIP_TYPE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = { 5 5 }
}
text_single = {
layoutpolicy_horizontal = expanding
align = right
text = "INNOVATION_ERA_WITH_ERA_CONCEPT"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
container = {
name = "fascination"
using = era_innov_blockers
visible = "[CultureInnovation.IsFascination]"
minimumsize = { 500 0 }
background = {
using = Background_Area_Dark
margin = { 15 5 }
alpha = 0.6
}
blockoverride "eib_text"
{
text = "INNOVATION_FASCINATION_MARKER_TOOLTIP"
}
}
container = {
name = "spread"
using = era_innov_blockers
visible = "[CultureInnovation.HasSpreadMarker]"
minimumsize = { 500 0}
background = {
using = Background_Area_Dark
margin = { 15 5 }
alpha = 0.6
}
blockoverride "eib_text"
{
text = "INNOVATION_SPREAD_MARKER_TOOLTIP"
}
}
container = {
name = "blocked_for_government"
using = era_innov_blockers
blockoverride "eib_visible"
{
visible = "[CultureInnovation.GetCultureEra.GetType.IsInvalidForPlayerGovernment]"
}
blockoverride "eib_text"
{
text = "CULTURE_WINDOW_ERA_INNOVATION_BLOCKED_FOR_PLAYER_GOVERNMENT"
}
}
container = {
name = "blocker"
using = era_innov_blockers
blockoverride "eib_visible"
{
visible = "[Not(CultureInnovation.CanGainProgress)]"
}
blockoverride "eib_text"
{
text = "[CultureInnovation.GetCantGainProgressReason]"
}
}
container = {
using = era_innov_effects
blockoverride "eie_label_visible"
{
visible = "[CultureInnovationType.HasEffects( CultureInnovation.GetCulture, GetPlayer )]"
minimumsize = { 500 30 }
}
blockoverride "eie_effects"
{
text = "[CultureInnovationType.GetEffectsDesc( CultureInnovation.GetCulture, GetPlayer )]"
}
}
flowcontainer = {
minimumsize = { 100% 0 }
direction = vertical
ignoreinvisible = yes
text_single = {
text = "[CultureInnovation.GetInnovationState]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
progressbar_standard = {
visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]"
size = { 300 25 }
min = 0
max = 100
value = "[FixedPointToFloat(CultureInnovation.GetProgress)]"
text_single = {
parentanchor = hcenter|vcenter
widgetanchor = hcenter|vcenter
position = { 0 -2 }
text = "[CultureInnovation.GetProgress|%/0]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
background = {
using = Background_Area
margin = { 10 0 }
}
}
}
text_single = {
visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]"
text = "INNOVATION_TOOLTIP_PROGRESS"
autoresize = yes
max_width = 500
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
flowcontainer = {
minimumsize = { 500 0 }
direction = vertical
ignoreinvisible = yes
name = "progress"
visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]"
background = {
using = Background_Area
margin = { 10 10 }
}
widget = { size = { 0 5 } }
text_multi = {
text = "INNOVATION_TOOLTIP_GAIN"
autoresize = yes
max_width = 500
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
textbox = {
text = "[CultureInnovation.GetProgressGainBreakdownString]"
autoresize = yes
max_width = 500
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
widget = { size = { 0 5 } }
textbox = {
text = "[CultureInnovation.GetProgressChanceBreakdownString]"
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
}
container = {
using = era_innov_flavor
blockoverride "eif_text" {
text = "[CultureInnovation.GetDescription]"
max_width = 500
}
}
text_single = {
visible = "[InDebugMode]"
text = "[CultureInnovation.GetType.GetKey]"
default_format = "#debug"
}
block "AfterDescription" {}
}
}
}
container = {
alwaystransparent = no
name = "CultureInnovationTooltip"
using = culture_innovation_tooltip
}
template culture_era_tooltip {
container = {
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
flowcontainer = {
margin = { 20 20 }
spacing = 15
direction = vertical
ignoreinvisible = yes
datacontext = "[CultureEra.GetType]"
widget = {
size = { 500 50}
background = {
using = Background_Area_Dark
margin = { 15 0 }
margin_top = 10
}
text_single = {
parentanchor = vcenter|left
text = "[CultureEra.GetNameNoTooltip]"
default_format = "#T"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
parentanchor = vcenter|right
text = "[era|E]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
text_single = {
visible = "[Not(CultureEra.IsActive)]"
text = "CULTURE_ERA_BLOCKED_BLOCKED_TILE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
container = {
name = "blockers"
using = era_innov_blockers
blockoverride "eib_visible"
{
visible = "[And(Not(CultureEra.IsActive), Not(CultureEra.CanGainProgress))]"
}
blockoverride "eib_text"
{
text = "[CultureEra.GetCantGainProgressReason]"
}
}
flowcontainer = {
name = "progress"
visible = "[And(Not(CultureEra.IsActive), CultureEra.CanGainProgress)]"
minimumsize = { 100% 0 }
direction = vertical
ignoreinvisible = yes
text_single = {
text = "[CultureEra.GetProgressAndGainBreakdown]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
text_single = {
visible = "[CultureEra.IsActive]"
text = "CULTURE_ERA_TOOLTIP_REACHED"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
container = {
using = era_innov_effects
blockoverride "eie_label_visible"
{
visible = "[CultureEraType.HasEffects( CultureEra.GetCulture, GetPlayer )]"
minimumsize = { 500 30 }
}
blockoverride "eie_effects"
{
text = "[CultureEraType.GetEffectsDesc( CultureEra.GetCulture, GetPlayer )]"
}
}
container = {
using = era_innov_flavor
blockoverride "eif_text" {
text = "[CultureEraType.GetDescription]"
max_width = 500
}
}
block "cet_click_text"
{
text_single = {
default_format = "#I"
text = "VIEW_CLICK"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
container = {
alwaystransparent = no
name = "CultureEraTooltip"
using = culture_era_tooltip
blockoverride "cet_click_text"
{
#no text
}
}
types CultureTooltips
{
type culture_tooltip = widget
{
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackgroundNoLockedFrame
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 10 15 }
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 10 0 }
margin_bottom = 10
background = {
using = Background_Header
margin = { 4 0 }
margin_top = 8
}
background = {
using = Background_Header_Pattern
margin = { 4 0 }
margin_top = 8
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_bottom = 5
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
name = "header"
text = "CULTURE_COOLTIP_GETNAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = top
using = Font_Type_Flavor
using = Font_Size_Big
}
expand = {}
text_single = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
text = "[culture|E]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = vcenter|right
}
}
text_single = {
layoutpolicy_horizontal = expanding
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "[Culture.GetPlayerRelationString]"
align = nobaseline
}
expand = {
layoutpolicy_vertical = growing
}
hbox = {
visible = "[Not( ObjectsEqual( Culture.Self, GetPlayer.GetCulture ) )]"
layoutpolicy_horizontal = expanding
spacing = 5
margin_top = 1
margin_bottom = 3
tooltip = "CULTURE_ACCEPTANCE_TOOLTIP"
text_single = {
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "CULTURE_VIEW_ACCEPTANCE"
}
text_single = {
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "CULTURE_VIEW_ACCEPTANCE_DIFF_BRACKETS"
}
expand = {}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
spacing = 5
margin = { 10 0 }
margin_top = 5
hbox = {
layoutpolicy_horizontal = growing
spacing = 5
icon_doctrine = {
visible = "[ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage )]"
size = { 30 30 }
texture = "gfx/interface/icons/culture_pillars/heritage.dds"
color = "[TooltipInfo.GetTintColor]"
}
icon_doctrine = {
visible = "[Not(ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ))]"
size = { 30 30 }
texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds"
color = "[TooltipInfo.GetTintColor]"
}
text_single = {
datacontext = "[Culture.GetHeritage]"
layoutpolicy_horizontal = growing
text = "CULTURE_VIEW_HERITAGE_TEXT"
tooltipwidget = {
using = culture_pillar_tooltip
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = growing
spacing = 5
icon_doctrine = {
visible = "[ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage )]"
size = { 30 30 }
texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds"
color = "[TooltipInfo.GetTintColor]"
}
icon_doctrine = {
visible = "[Not(ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ))]"
size = { 30 30 }
texture = "gfx/interface/icons/culture_pillars/language_diverge.dds"
color = "[TooltipInfo.GetTintColor]"
}
text_single = {
datacontext = "[Culture.GetLanguage]"
layoutpolicy_horizontal = growing
text = "CULTURE_VIEW_LANGUAGE_TEXT"
tooltipwidget = {
using = culture_pillar_tooltip
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
text_single = {
layoutpolicy_horizontal = growing
text = "CULTURE_COOLTIP_ERA"
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
spacer = {
size = { 0 5 }
}
divider_light = {
layoutpolicy_horizontal = growing
}
hbox = {
datacontext = "[Culture.GetFascination]"
visible = "[Culture.HasFascination]"
layoutpolicy_horizontal = expanding
tooltipwidget = culture_innovation_tooltip
widget = {
size = { 65 45 }
icon_innovation = {
scale = 0.7
color = "[TooltipInfo.GetTintColor]"
}
}
vbox = {
layoutpolicy_horizontal = growing
spacing = 10
margin_left = 10
text_single = {
layoutpolicy_horizontal = growing
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
text = "CULTURE_COOLTIP_FASCINATION"
}
hbox = {
layoutpolicy_horizontal = growing
progressbar_standard = {
size = { 150 15 }
min = 0
max = 100
value = "[FixedPointToFloat(CultureInnovation.GetProgress)]"
}
expand = {}
}
expand = {}
}
}
text_single = {
visible = "[And( Culture.IsPlayerCultureHead, And( ObjectsEqual( GetPlayer.GetCulture, Culture.Self ), Culture.HasAvailableInnovation ) )]"
layoutpolicy_horizontal = growing
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "INGAME_TOPBAR_CULTURE_HEAD"
default_format = "#weak"
using = DefaultTooltipText
}
text_single = {
visible = "[And( ObjectsEqual( GetPlayer.GetCulture, Culture.Self ), Not( Culture.HasAvailableInnovation ) )]"
layoutpolicy_horizontal = growing
text = "CULTURE_COOLTIP_NO_AVAILABLE_INNOVATION"
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = DefaultTooltipText
}
divider_light = {
layoutpolicy_horizontal = growing
}
hbox = {
datacontext = "[Culture.GetCultureHead]"
layoutpolicy_horizontal = growing
spacing = 10
vbox = {
layoutpolicy_vertical = expanding
expand = {}
portrait_head_small = {
name = "culture_head_portrait"
}
}
text_single = {
visible = "[Culture.GetCultureHead.IsValid]"
layoutpolicy_horizontal = growing
layoutpolicy_vertical = growing
fonttintcolor = "[TooltipInfo.GetTintColor]"
text = "CULTURE_COOLTIP_HEAD"
align = top
max_width = 320
using = DefaultTooltipText
}
text_single = {
visible = "[Not( Culture.GetCultureHead.IsValid )]"
layoutpolicy_horizontal = growing
layoutpolicy_vertical = growing
text = "CULTURE_COOLTIP_NO_HEAD"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = top
using = DefaultTooltipText
}
}
block "extra_info"
{}
block "shortcut" {}
}
}
widget = {
name = "locked_frame"
size = { 100% 100% }
using = TooltipLockedFrame
alwaystransparent = yes
}
}
type ruler_designer_culture_tooltip = widget
{
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
set_parent_size_to_minimum = yes
margin = { 15 10 }
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 5 0 }
margin_bottom = 10
background = {
using = Background_Header
}
background = {
using = Background_Header_Pattern
}
hbox = {
layoutpolicy_horizontal = expanding
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
name = "header"
layoutpolicy_horizontal = expanding
text = "CULTURE_COOLTIP_GETNAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = Font_Type_Flavor
using = Font_Size_Big
}
expand = {}
text_single = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
text = "[culture|E]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = right
}
}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
margin = { 5 0 }
spacer = {
size = { 0 5 }
}
text_single = {
layoutpolicy_horizontal = expanding
text = "CULTURE_RD_TOOLTIP_ETHOS"
align = left
fonttintcolor = "[TooltipInfo.GetTintColor]"
margin = { 0 5 }
}
spacer = {
size = { 0 10 }
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 6
margin_bottom = 6
text_label_center = {
margin = { 10 2 }
text = "[culture_pillars|E]"
align = center|nobaseline
default_format = "#low"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
name = "cultural_pillars_block"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 60
margin_top = 4
vbox = {
name = "cultural_pillars_collumn_one"
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
hbox = {
name = "heritage"
layoutpolicy_horizontal = expanding
datacontext = "[Culture.GetHeritage]"
hbox = {
spacing = 4
tooltipwidget = {
using = culture_pillar_tooltip
}
icon_doctrine = {
visible = "[ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage )]"
size = { 44 44 }
texture = "gfx/interface/icons/culture_pillars/heritage.dds"
}
icon_doctrine = {
visible = "[Not( ObjectsEqual( Culture.GetHeritage, GetPlayer.GetCulture.GetHeritage ))]"
size = { 44 44 }
texture = "gfx/interface/icons/culture_pillars/heritage_diverge.dds"
}
text_multi = {
datacontext = "[Culture.GetHeritage]"
text = "CULTURE_VIEW_HERITAGE_TEXT"
autoresize = yes
max_width = 160
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
}
hbox = {
name = "martial"
datacontext = "[Culture.GetMartial]"
layoutpolicy_horizontal = expanding
hbox = {
spacing = 4
tooltipwidget = {
using = culture_pillar_tooltip
}
icon_doctrine = {
size = { 44 44 }
texture = "[CulturePillar.GetIcon]"
}
text_multi = {
text = "CULTURE_VIEW_MARTIAL_CUSTOM_TEXT"
autoresize = yes
max_width = 160
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
}
}
vbox = {
name = "cultural_pillars_collumn_two"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_left = 10
hbox = {
name = "language"
datacontext = "[Culture.GetLanguage]"
layoutpolicy_horizontal = expanding
hbox = {
spacing = 4
tooltipwidget = {
using = culture_pillar_tooltip
}
icon_culture_pillar = {
visible = "[ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage )]"
texture = "gfx/interface/icons/flat_icons/map_modes/court_languages.dds"
}
icon_culture_pillar = {
visible = "[Not( ObjectsEqual( Culture.GetLanguage, GetPlayer.GetCulture.GetLanguage ))]"
texture = "gfx/interface/icons/culture_pillars/language_diverge.dds"
}
text_multi = {
datacontext = "[Culture.GetLanguage]"
text = "CULTURE_VIEW_LANGUAGE_TEXT"
autoresize = yes
max_width = 160
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
spacing = 4
tooltip = "CULTURE_AESTHETICS_TOOLTIP"
icon_culture_pillar = {
texture = "gfx/interface/icons/culture_pillars/aesthetics.dds"
}
text_multi = {
text = "CULTURE_AESTHETICS"
autoresize = yes
max_width = 160
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
}
}
}
}
divider_light = {
layoutpolicy_horizontal = expanding
}
spacer = {
size = { 0 6 }
}
text_label_center = {
margin = { 10 2 }
text = "[traditions|E]"
align = center|nobaseline
default_format = "#low"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = { 0 10 }
}
vbox = {
margin_left = 20
fixedgridbox = {
name = "traditions_holder"
datamodel = "[Culture.GetTraditions]"
flipdirection = yes
addcolumn = 200
addrow = 124
datamodel_wrap = 2
item = {
container = {
using = tooltip_se
tooltipwidget = {
using = culture_tradition_tooltip
}
widget_tradition_icon = {
block "icon_size" {
size = { 178 89 }
}
}
text_label_center = {
name = "name"
parentanchor = bottom|hcenter
widgetanchor = center
position = { 0 14 }
maximumsize = { 144 44 } #x 5 smaller y 4 bigger
fontsize_min = 10
multiline = yes
align = center
elide = right
text = "[CultureTradition.GetNameNoTooltip]"
default_format = "#medium"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
}
}
type culture_tooltip_click = culture_tooltip
{
blockoverride "extra_info" {
spacer = {
size = { 0 4 }
}
divider_light = {
layoutpolicy_horizontal = growing
}
text_single = {
layoutpolicy_horizontal = growing
text = "CULTURE_COOLTIP_CLICK"
margin = { 10 0 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
container = {
alwaystransparent = no
name = "CultureTooltip"
culture_tooltip = {}
}
container = {
alwaystransparent = no
name = "SecretTooltip"
object_tooltip_pop_out = {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Secret.GetType.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[Secret.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [secret|E]
}
blockoverride "description_text" {
text = "[Secret.GetTooltipDesc]"
}
}
}
container = {
alwaystransparent = no
name = "SecretTypeTooltip"
object_tooltip_pop_out = {
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[SecretType.GetIcon]"
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[SecretType.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [secret|E]
}
blockoverride "description_text" {
text = "[SecretType.GetDesc]"
}
}
}
container = {
alwaystransparent = no
name = "GeographicalRegionTooltip"
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[GeographicalRegion.GetNameNoTooltip]"
}
blockoverride "concept_link" {
text = [region|E]
}
blockoverride "description_text" {
text = VIEW_CLICK
default_format = "#I"
}
}
}
template culture_pillar_tooltip {
container = {
alwaystransparent = no
block "datacontext" {}
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[CulturePillar.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "extra_data" {
vbox = {
visible = "[ObjectsEqual( Culture.GetHeritage, CulturePillar.Self )]"
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_SAME"
visible = "[ObjectsEqual( GetPlayer.GetCulture.GetHeritage, CulturePillar.Self )]"
}
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_DIFF"
visible = "[Not(ObjectsEqual( GetPlayer.GetCulture.GetHeritage, CulturePillar.Self ))]"
}
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_HERITAGE_EFFECT"
}
}
vbox = {
visible = "[ObjectsEqual( Culture.GetLanguage, CulturePillar.Self )]"
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_SAME"
visible = "[ObjectsEqual( GetPlayer.GetCulture.GetLanguage, CulturePillar.Self )]"
}
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_DIFF"
visible = "[Not(ObjectsEqual( GetPlayer.GetCulture.GetLanguage, CulturePillar.Self ))]"
}
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_COURT_LANGUAGE"
visible = "[ObjectsEqual( GetPlayer.GetCourtLanguage, CulturePillar.Self )]"
}
cooltip_paragraph = {
text = "CULTURE_PILLAR_TOOLTIP_LANGUAGE_EFFECT"
}
}
}
blockoverride "description_text" {
text = "CULTURE_PILLAR_GENERAL_TOOLTIP"
}
blockoverride "concept_link" {
text = "[CulturePillar.GetTypeName]"
}
}
}
}
template culture_pillar_tooltip_establishing {
container = {
alwaystransparent = no
datacontext = "[CultureReformation.GetNewPillar]"
using = culture_pillar_tooltip
blockoverride "main_description"
{
textbox = {
name = "establishment_description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
text = "CULTURE_PILLAR_ESTABLISHING_PROGRESS_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
name = "effect_description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
text = "CULTURE_PILLAR_ESTABLISHING_TOOLTIP"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
margin_bottom = 20
}
}
}
}
container = {
alwaystransparent = no
name = "CulturePillarTooltip"
datacontext = "[GetPlayer.GetCulture]"
using = culture_pillar_tooltip
}
template culture_tradition_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[CultureTradition.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "CULTURE_TRADITION_GENERAL_TOOLTIP"
}
blockoverride "concept_link" {
text = "[culture_tradition|E]"
}
blockoverride "input_info_text" {
text = "CULTURE_TRADITION_TOOLTIP_CLICKINFO"
}
}
}
}
template culture_tradition_tooltip_clickable {
using = culture_tradition_tooltip
blockoverride "input_info_text" {
text = CLICK_TO_SELECT
}
}
template culture_tradition_tooltip_establishing {
container = {
alwaystransparent = no
datacontext = "[CultureReformation.GetNewTradition]"
using = culture_tradition_tooltip
blockoverride "main_description"
{
textbox = {
name = "establishment_description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
text = "CULTURE_TRADITION_ESTABLISHING_PROGRESS_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
name = "effect_description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
text = "CULTURE_TRADITION_ESTABLISHING_TOOLTIP"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
margin_bottom = 20
}
}
}
}
container = {
alwaystransparent = no
name = "CultureTraditionTooltip"
datacontext = "[GetPlayer.GetCulture]"
using = culture_tradition_tooltip
}
template inspiration_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Inspiration.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "INSPIRATION_GENERAL_TOOLTIP"
}
blockoverride "concept_link" {
text = "[inspiration|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "InspirationTooltip"
using = inspiration_tooltip
}
template court_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[CourtType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "COURT_TYPE_GENERAL_TOOLTIP"
}
blockoverride "concept_link" {
text = "[court_type|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "CourtTypeTooltip"
using = court_type_tooltip
}
container = {
alwaystransparent = no
name = "CourtAmenitiesTooltip"
court_amenity_setting_tooltip_contents = {}
}
types CourtAmenitiesTooltips {
type court_amenity_setting_tooltip_contents = object_tooltip_pop_out {
blockoverride "title_text" {
margin = { 0 8 }
text = "[CourtAmenitiesSetting.GetNameNoTooltip]"
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[CourtAmenitiesSetting.GetIcon]"
}
}
}
blockoverride "above_description_text" {
text = "COURT_AMENITIES_COOLTIP_ABOVE_DESCRIPTION"
}
blockoverride "concept_link" {
text = [court_amenities|E]
}
blockoverride "description_text" {
text = "[CourtAmenitiesSetting.GetDescription|F]"
}
}
}
container = {
alwaystransparent = no
name = "ArtifactTooltip"
artifact_tooltip = {}
}
types InventoryTooltips
{
type artifact_tooltip = widget
{
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
vbox = {
set_parent_size_to_minimum = yes
margin = { 20 10 }
margin_bottom = 20
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin = { 5 5 }
margin_bottom = 15
background = {
using = Background_Header
margin = { 15 5 }
}
background = {
using = Background_Header_Pattern
margin = { 15 5 }
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 10
vbox = {
hbox = {
layoutpolicy_horizontal = expanding
spacing = 6
block "rarity_level" {}
text_single = {
layoutpolicy_horizontal = expanding
name = "rarity"
text = "[Artifact.GetRarityAndSlotType]"
using = Font_Size_Medium
fonttintcolor = "[TooltipInfo.GetTintColor]"
align = nobaseline
}
expand = {}
}
text_single = {
layoutpolicy_horizontal = expanding
name = "title"
text = "[Artifact.GetNameNoTooltip]"
align = top
using = Font_Size_Big
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
vbox = {
layoutpolicy_vertical = expanding
expand = {}
text_single = {
name = "artifact_category"
text = "[Artifact.GetCategory]"
align = right|nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 5
hbox = { #icon, durability and effects
layoutpolicy_horizontal = expanding
background = {
layoutpolicy_horizontal = expanding
using = Background_Area
margin = { 15 0 }
}
vbox = {
layoutpolicy_vertical = expanding
margin_bottom = 10
icon_artifact = {
size = { 160 160 }
blockoverride "tooltipwidget" {}
}
hbox_artifact_durability = {}
expand = {}
}
vbox = {
name = "main_text"
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
margin_top = 10
spacing = 5
hbox = {
name = "modifiers"
layoutpolicy_horizontal = expanding
text_multi = {
visible = "[Artifact.CanBenefitPlayer]"
max_width = 300
autoresize = yes
text = ARTIFACT_EFFECT
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_multi = {
visible = "[Not( Artifact.CanBenefitPlayer )]"
max_width = 300
autoresize = yes
text = ARTIFACT_EFFECT
default_format = "#low"
format_override = { P low }
format_override = { N low }
format_override = { E low }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
name = "fallback"
layoutpolicy_horizontal = expanding
visible = "[Not( Artifact.CanBenefitPlayer )]"
text_multi = {
max_width = 300
autoresize = yes
text = "ARTIFACT_FALLBACK_EFFECT"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
expand = {}
}
expand = {}
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 5
hbox = {
name = "current_holder"
layoutpolicy_horizontal = expanding
text_single = {
name = "imminent_claim"
visible = "[Artifact.HasImminentHouseClaim( Artifact.GetOwner.Self )]"
text = "IMMINENT_HOUSE_CLAIMANT"
max_width = 230
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
block "not_holy" {
hbox = {
name = "holy_relic"
layoutpolicy_horizontal = expanding
datacontext = "[GetPlayer.GetFaith]"
visible = "[And( Artifact.CanBeHolyRelic, GetPlayer.IsValid )]"
text_single = {
text = "ARTIFACT_IS_HOLY_RELIC"
max_width = 350
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
visible = "[Artifact.GetOwner.IsValid]"
text = "ARTIFACT_CURRENT_HOLDER"
max_width = 350
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[Artifact.GetHolySiteOwner.IsValid]"
text = "ARTIFACT_CURRENT_HOLY_SITE_OWNER"
max_width = 350
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
name = "artifact_creator"
visible = "[Artifact.HasCreator()]"
layoutpolicy_horizontal = expanding
text_single = {
name = "creator"
text = "ARTIFACT_CREATOR"
max_width = 350
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
datacontext = "[Artifact.GetAssociatedTitle]"
visible = "[Title.IsValid]"
layoutpolicy_horizontal = expanding
coa_title_tiny_crown = {
size = { 40 50 }
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
text_single = {
name = "association"
text = "ARTIFACT_TITLE_ASSOCIATION"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
text_multi = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
text = "[Artifact.GetDesc]"
align = left
autoresize = yes
default_format = "#F"
fonttintcolor = "[TooltipInfo.GetTintColor]"
max_width = 490
}
expand = {}
}
}
hbox = {
layoutpolicy_horizontal = expanding
block "extra_information"
{
text_multi = {
visible = "[Not( Artifact.CanPlayerEquip )]"
text = "[Artifact.GetCanPlayerEquipDesc]"
max_width = 300
autoresize = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
expand = {}
}
vbox = {
block "artifact_click_info" {
visible = no
}
layoutpolicy_horizontal = expanding
margin_top = 10
spacing = 10
divider_light = {
layoutpolicy_horizontal = expanding
}
hbox = {
layoutpolicy_horizontal = expanding
text_multi = {
block "artifact_click_text" {
text = "LOREM_IPSUM_TITLE"
}
max_width = 500
autoresize = yes
}
expand = {}
}
block "artifact_click_extra" {}
}
}
widget = {
name = "locked_frame"
size = { 100% 100% }
using = TooltipLockedFrame
alwaystransparent = yes
}
} # type artifact_tooltip = widget
}
template court_position_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
datacontext = "[CourtPosition.GetPositionType]"
blockoverride "header_additions"
{
header_icon = {
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[CourtPositionType.GetIcon]"
}
}
}
blockoverride "title_text"
{
text = "COURT_POSITION_NAME"
}
blockoverride "subheading"
{
text_single = {
layoutpolicy_horizontal = expanding
using = Font_Size_Tiny
text = "COURT_POSITION_FOR_EMPLOYER"
}
}
blockoverride "concept_link"
{
text = [court_position|E]
}
blockoverride "main_description"
{
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
spacing = 10
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
portrait_head_small = {
datacontext = "[CourtPosition.GetEmployer]"
}
vbox = {
layoutpolicy_vertical = expanding
tooltip = "[CourtPosition.GetEmployeeSalaryBreakdownTooltip]"
vbox = {
margin = { 10 0 }
margin_bottom = 8
background = {
using = Background_Area
}
text_single = {
layoutpolicy_horizontal = expanding
text = "COURT_POSITIONS_WINDOW_MONTHLY_SALARY_YOUR"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[CourtPosition.GetEmployeeSalaryText]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[CourtPosition.GetTimeOfService]"
default_format = "#weak"
}
}
expand = {}
}
expand = {}
}
### Effects on you
court_position_effect = {
blockoverride "position_title"
{
text = "COURT_POSITION_TOOLTIP_EFFECT_ON_YOU"
}
blockoverride "position_desc"
{
text = "[CourtPosition.GetEmployeeBonuses]"
}
}
### Active task
court_position_effect = {
visible = "[CourtPosition.HasActiveTask]"
blockoverride "position_title"
{
text = "[CourtPosition.GetActiveTask.GetName]"
}
blockoverride "position_desc"
{
text = "[CourtPosition.GetActiveTask.GetEmployeeModifierDescription]"
}
}
### Effects on your liege's court
court_position_effect = {
visible = "[CourtPosition.GetPositionType.HasLiegeCourtModifiers]"
datacontext = "[CourtPosition.GetEmployee]"
blockoverride "position_title"
{
text = "COURT_POSITION_EMPLOYER_COURT_EFFECTS"
}
blockoverride "position_desc"
{
visible = no
}
}
expand = {}
}
}
}
}
}
container = {
alwaystransparent = no
name = "CourtPositionTooltip"
using = court_position_tooltip
}
container = {
alwaystransparent = no
name = "CourtPositionTypeTooltip"
court_position_type_tooltip = {
blockoverride "time_of_service" {}
blockoverride "enable_task_button" {}
blockoverride "filled_position_tooltip_visibility" {
visible = no
}
blockoverride "empty_position_tooltip_visibility" {}
}
}
types CourtPositionTooltips {
type court_position_effect = vbox {
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
margin_bottom = 10
background = {
layoutpolicy_horizontal = expanding
using = Background_Area
margin = { 15 0 }
margin_top = 5
}
vbox = {
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
block "position_title" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
default_format = "#S"
}
vbox = {
margin = { 10 0 }
layoutpolicy_vertical = expanding
layoutpolicy_horizontal = expanding
textbox = {
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
block "position_desc" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
multiline = yes
}
}
}
}
# Tooltip when examining the court position type.
type court_position_type_tooltip = object_tooltip_pop_out {
blockoverride "title_text" {
block "title_text_inner" {
datacontext = "[GetPlayer]"
text = "[CourtPositionType.CalcTriggeredNameNoTooltip( Character.Self )]"
}
}
blockoverride "concept_link" {
text = "[SelectLocalization(IsLandlessAdventurer( GetPlayer ) , 'OFFICER', 'COURT_POISTION' )]"
}
blockoverride "header_additions"
{
header_icon = {
blockoverride "header_texture"
{
texture = "[CourtPositionType.GetIcon]"
}
}
}
blockoverride "main_description" {
vbox = {
spacing = 4
layoutpolicy_horizontal = expanding
vbox = {
name = "liege_info"
layoutpolicy_horizontal = expanding
spacing = 8
cooltip_paragraph = {
visible = "[CourtPositionType.HasLiegeModifiers]"
text = "COURT_POSITION_TOOLTIP_EFFECT_ON_LIEGE_WITH_HEADING"
layoutpolicy_horizontal = expanding
}
cooltip_paragraph = {
visible = "[CourtPositionType.HasLiegeCourtModifiers]"
text = "COURT_POSITION_TYPE_EMPLOYER_COURT_EFFECTS"
layoutpolicy_horizontal = expanding
}
vbox = {
name = "tasks"
layoutpolicy_horizontal = expanding
spacing = 4
visible = "[Not( IsDataModelEmpty( CourtPositionType.GetTasks ) )]"
cooltip_paragraph = {
text = "COURT_POSITION_TASK_HINT"
default_format = "#S"
}
hbox = {
layoutpolicy_horizontal = expanding
block "tasks" {
fixedgridbox = {
name = "task_items"
addcolumn = 38
addrow = 38
setitemsizefromcell = yes
datamodel_wrap = 4
flipdirection = yes
datamodel = "[CourtPositionType.GetTasks]"
item = {
widget_court_position_task_view = {
blockoverride "click_to_activate" {}
}
}
}
}
expand = {}
}
}
cooltip_paragraph = {
datacontext = "[CourtPositionType]"
text = "COURT_POSITION_TOOLTIP_LIEGE_REQUIREMENT_NESTED"
visible = "[CourtPositionType.HasLiegeRequirements]"
}
}
vbox = {
name = "cost_and_payments"
layoutpolicy_horizontal = expanding
margin = { 0 8 }
background = {
using = Background_Area
margin = { 16 0 }
}
cooltip_paragraph = {
text = "COURT_POSITION_TYPE_TOOLTIP_EMPLOYER_SALARY"
align = nobaseline
}
cooltip_paragraph = {
text = COURT_POSITION_TYPE_TOOLTIP_REVOKE_COST
align = nobaseline
}
cooltip_paragraph = {
name = "powerful_agent"
visible = "[CourtPositionType.IsPowerfulAgent]"
text = "COURT_POSITION_POWERFUL_AGENT"
align = nobaseline
}
}
vbox = {
name = "employee_info"
layoutpolicy_horizontal = expanding
spacing = 8
cooltip_paragraph = {
visible = "[CourtPositionType.HasEmployeeModifiers]"
text = "COURT_POSITION_TYPE_TOOLTIP_EFFECT_ON_EMPLOYEE_WITH_HEADING"
layoutpolicy_horizontal = expanding
}
cooltip_paragraph = {
text = COURT_POSITION_TOOLTIP_EMPLOYEE_REQUIREMENT_NESTED
visible = "[CourtPositionType.HasEmployeeRequirements]"
}
# overridden with empty block
block "time_of_service" {
cooltip_paragraph = {
visible = "[CourtPosition.IsValid]"
text = "[CourtPosition.GetTimeOfService]"
default_format = "#weak"
}
}
}
vbox = {
name = "flavor"
margin = { 0 8 }
background = {
using = Background_Area
margin = { 16 0 }
margin_bottom = 18
}
cooltip_paragraph = {
name = "flavor_text"
datacontext = "[GetPlayer]"
datacontext = "[CourtPositionType]"
text = "[CourtPositionType.CalcTriggeredDescription( Character.Self )]"
default_format = "#F"
}
}
}
}
}
}
container = {
name = "SchemeTypeTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[SchemeType.GetTypeNameNoTooltip]"
}
blockoverride "description_text" {
text = "[SchemeType.GetDetailedDescription]"
}
blockoverride "concept_link" {
text = "[SchemeType.GetCategoryName|E]"
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[SchemeType.GetIcon]"
framesize = { 160 160 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
container = {
name = "SchemeAgentSlotTypeTooltip"
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[AgentSlotType.GetNameNoTooltip]"
}
blockoverride "description_text" {
text = "[AgentSlotType.GetDesc]"
}
blockoverride "concept_link" {
text = "[agent|E]"
}
}
}
template nickname_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Character.GetNicknameNoTooltip()|U]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[Nickname.GetDescription( Character.Self )]"
}
blockoverride "concept_link" {
text = "[nickname|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "NicknameTooltip"
using = nickname_tooltip
}
types StruggleTooltipTypes {
type struggle_catalyst_history = vbox {
name = "catalyst_history"
layoutpolicy_horizontal = expanding
margin_top = 10
spacing = 10
background = {
using = Background_Area
margin_left = 16
margin_right = 16
margin_bottom = 16
}
text_single = {
layoutpolicy_horizontal = expanding
text = "STRUGGLE_TOOLTIP_CATALYST_HISTORY_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_horizontal = expanding
block "catalyst_datamodel"
{
datamodel = "[Struggle.GetLatestCatalystHistory]"
}
spacing = 3
item = {
hbox = {
layoutpolicy_horizontal = expanding
spacing = 20
margin_bottom = 5
icon = {
size = { 50 20 }
background = {
visible = "[ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase )]"
using = Background_Frame
using = Color_Green
alpha = 0.3
margin_left = 4
margin_right = 16
margin_top = 1
margin_bottom = 3
}
background = {
visible = "[ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase )]"
using = Background_Area_Dark
using = Color_Green
alpha = 0.1
margin_left = 4
margin_right = 16
margin_top = 1
margin_bottom = 3
}
background = {
visible = "[Not( ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase ) )]"
using = Background_Frame
using = Color_Grey
alpha = 0.5
margin_left = 4
margin_right = 16
margin_top = 1
margin_bottom = 3
}
background = {
visible = "[Not( ObjectsEqual( Struggle.GetCurrentLeadingPhase, CatalystHistory.GetStrugglePhase ) )]"
using = Background_Area_Light
alpha = 0.4
margin_left = 4
margin_right = 16
margin_top = 1
margin_bottom = 3
}
hbox = {
icon = {
size = { 25 25 }
texture = "[CatalystHistory.GetStrugglePhase.GetIcon]"
}
spacer = {
size = { 10 0 }
}
text_single = {
text = "[CatalystHistory.GetProgress|+=]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
margin_bottom = 5
}
}
}
text_single = {
text = STRUGGLE_TOOLTIP_CATALYST_HISTORY_ENTRY
align = top
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
}
type StrugglePhaseEffectWar = vbox {
container = {
name = "war_effect"
tooltipwidget = phase_effect_tooltip_war
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/war.dds"
}
}
text_single = {
layoutpolicy_horizontal = expanding
align = center
text = "STRUGGLE_EFFECT_LABEL_WAR"
}
}
type StrugglePhaseEffectCulture = vbox {
container = {
name = "culture_effect"
tooltipwidget = phase_effect_tooltip_culture
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/culture.dds"
}
}
text_single = {
layoutpolicy_horizontal = expanding
align = center
text = "STRUGGLE_EFFECT_LABEL_CULTURE"
}
}
type StrugglePhaseEffectFaith = vbox {
container = {
name = "faith_effect"
tooltipwidget = phase_effect_tooltip_faith
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/faith.dds"
}
}
text_single = {
layoutpolicy_horizontal = expanding
align = center
text = "STRUGGLE_EFFECT_LABEL_FAITH"
}
}
type StrugglePhaseEffectOther = vbox {
container = {
name = "other_effect"
tooltipwidget = phase_effect_tooltip_other
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/other.dds"
}
}
text_single = {
layoutpolicy_horizontal = expanding
align = center
text = "STRUGGLE_EFFECT_LABEL_OTHER"
}
}
}
template phase_effect_tooltip_war {
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
container = {
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/war.dds"
}
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "STRUGGLE_PHASE_EFFECTS_WAR_TT_HEADER"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "main_description" {
vbox = {
textbox = {
layoutpolicy_horizontal = expanding
text = "[Struggle.GetWarEffect(StrugglePhase.Self, Character.Self)]"
using = StruggleEffectTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
}
}
template phase_effect_tooltip_culture {
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
container = {
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/culture.dds"
}
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "STRUGGLE_PHASE_EFFECTS_CULTURE_TT_HEADER"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "main_description" {
vbox = {
textbox = {
layoutpolicy_horizontal = expanding
text = "[Struggle.GetCultureEffect(StrugglePhase.Self, Character.Self)]"
using = StruggleEffectTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
}
}
template phase_effect_tooltip_faith {
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
container = {
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/faith.dds"
}
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "STRUGGLE_PHASE_EFFECTS_FAITH_TT_HEADER"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "main_description" {
vbox = {
textbox = {
layoutpolicy_horizontal = expanding
text = "[Struggle.GetFaithEffect(StrugglePhase.Self, Character.Self)]"
using = StruggleEffectTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
}
}
template phase_effect_tooltip_other {
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
container = {
icon = {
parentanchor = center
size = { 55 55 }
texture = "gfx/interface/icons/struggle_banners/icon_background_01.dds"
}
icon = {
parentanchor = center
size = { 40 40 }
texture = "gfx/interface/icons/struggle_effects/other.dds"
}
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "STRUGGLE_PHASE_EFFECTS_OTHER_TT_HEADER"
default_format = "#T"
}
blockoverride "concept_link" {}
blockoverride "main_description" {
vbox = {
textbox = {
layoutpolicy_horizontal = expanding
text = "[Struggle.GetOtherEffect(StrugglePhase.Self, Character.Self)]"
using = StruggleEffectTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
}
}
template phase_effect {
vbox = {
layoutpolicy_horizontal = expanding
spacing = 12
margin_bottom = 15
background = {
using = Background_Area_With_Header
margin_left = 16
margin_right = 16
}
text_single = {
max_width = 400
margin = { 0 5 }
text = "STRUGGLE_TOOLTIP_EFFECTS_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
name = "phase_effects"
layoutpolicy_vertical = expanding
spacing = 15
StrugglePhaseEffectWar = {}
StrugglePhaseEffectCulture = {}
StrugglePhaseEffectFaith = {}
StrugglePhaseEffectOther = {}
}
}
}
template struggle_tooltip {
container = {
alwaystransparent = no
block "datacontext" {}
object_tooltip_pop_out = {
blockoverride "concept_link" {}
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Struggle.GetCurrentPhase.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[Struggle.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "current_phase_information"
datacontext = "[Struggle.GetCurrentPhase]"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "STRUGGLE_TOOLTIP_INVOLVEMENT"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
text = "STRUGGLE_TOOLTIP_CURRENT_PHASE"
}
spacer = {
size = { 0 10 }
}
vbox = {
layoutpolicy_horizontal = expanding
using = phase_effect
}
}
spacer = {
size = { 0 15 }
}
vbox = { # Next Phases Progress
name = "next_phases_progress"
visible = "[Not( Struggle.IsInTransitionPhase )]"
layoutpolicy_horizontal = expanding
spacing = 10
text_single = {
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
text = STRUGGLE_NEXT_PHASE_PROGRESS_LABEL
}
vbox = {
datamodel = "[Struggle.GetNextPhasesSorted]"
layoutpolicy_horizontal = expanding
spacing = 10
item = {
hbox = {
layoutpolicy_horizontal = expanding
background = {
using = Background_Area
margin = { 16 5 }
}
text_single = {
margin_right = 20
align = top
text = "STRUGGLE_TT_PHASE_PROGRESS"
tooltipwidget = {
struggle_phase_tooltip = {}
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
progressbar_standard = {
size = { 120 18 }
value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]"
progresstexture = "gfx/interface/progressbars/progress_orange.dds"
}
}
}
}
}
vbox = { # Next Phase Transition
name = "next_phase_transition"
visible = "[Struggle.IsInTransitionPhase]"
datacontext = "[Struggle.GetNextPhase]"
layoutpolicy_horizontal = expanding
spacing = 5
text_single = {
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
text = STRUGGLE_NEXT_PHASE_PROGRESS_LABEL
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
layoutpolicy_horizontal = expanding
background = {
using = Background_Area
margin = { 16 5 }
}
text_single = {
margin_right = 20
align = top
using = DefaultTooltipText
text = STRUGGLE_TT_PHASE_TRANSITION
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
progressbar_standard = {
size = { 120 18 }
value = "[CurrentAndMaxToProgressbarValueInt32(Struggle.GetPhaseValue(StrugglePhase.Self), Struggle.GetPhaseDurationValue)]"
progresstexture = "gfx/interface/progressbars/progress_orange.dds"
}
}
spacer = {
size = { 0 2 }
}
hbox = {
layoutpolicy_horizontal = expanding
icon = {
size = { 30 30 }
texture = "gfx/interface/icons/icon_time.dds"
}
text_single = {
align = top
using = DefaultTooltipText
text = STRUGGLE_TT_PHASE_TRANSITION_TIME_TO
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
spacer = {
size = { 0 15 }
}
struggle_catalyst_history = {}
}
}
}
}
template struggle_tooltip_light {
container = {
alwaystransparent = no
block "datacontext" {}
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Struggle.GetCurrentPhase.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[Struggle.GetCurrentPhase.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "current_phase_information"
datacontext = "[Struggle.GetCurrentPhase]"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[Struggle.GetPhaseDescription(StrugglePhase.Self)]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
vbox = {
layoutpolicy_horizontal = expanding
using = phase_effect
}
}
spacer = {
size = { 0 15 }
}
struggle_catalyst_history = {}
}
blockoverride "concept_link" {}
}
}
}
container = {
name = "StruggleTooltip"
alwaystransparent = no
datacontext = "[GetPlayer]"
using = struggle_tooltip
}
types StrugglePhaseTypes
{
type struggle_phase_tooltip = object_tooltip_pop_out {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[StrugglePhase.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[StrugglePhase.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
using = DefaultTooltipText
multiline = yes
text = STRUGGLE_PHASE_DESCRIPTION
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[StrugglePhase.IsContentVisible( GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ) )]"
hbox = {
layoutpolicy_horizontal = expanding
spacing = 5
margin = { 5 5 }
background = {
using = Background_Area_Light
tintcolor = { 0.8 0.5 0.5 2.0 }
margin = { -2 -2 }
}
background = {
using = Background_Frame
tintcolor = { 0.8 0.5 0.5 2.0 }
}
icon = {
size = { 30 30 }
texture = "gfx/interface/icons/struggle_types/ending_phase_icon.dds"
}
text_multi = {
layoutpolicy_horizontal = expanding
max_width = 330
margin_top = 5
margin_bottom = 15
using = DefaultTooltipText
text = STRUGGLE_ENDING_PHASE_WARNING_MESSAGE
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
vbox = {
visible = "[Not( StringIsEmpty( Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self ) ) )]"
layoutpolicy_horizontal = expanding
background = {
using = Background_Area
margin = { 16 4 }
}
hbox = {
layoutpolicy_horizontal = expanding
margin = { 0 10}
background = {
using = Background_Area
margin = { 16 0 }
}
text_single = {
text = STRUGGLE_ENDING_PHASE_EFFECTS_TITLE
max_width = 400
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
text_multi = {
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
margin_bottom = 15
using = DefaultTooltipText
text = "[Struggle.GetEndingPhaseEffectDesc( StrugglePhase.Self, Character.Self )]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
vbox = {
visible = "[Not( StrugglePhase.IsContentVisible( GetDefine( 'NStruggle', 'ENDING_PHASE_WIDGET_CONTENT' ) ) )]"
layoutpolicy_horizontal = expanding
using = phase_effect
}
vbox = {
name = "leading_next_phase"
layoutpolicy_horizontal = expanding
margin = { 0 10 }
text_single = {
layoutpolicy_horizontal = expanding
text = STRUGGLE_PHASE_TOOLTIP_TOTAL_PROGRESS
align = left
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = { size = { 0 10 } }
struggle_catalyst_history = {
blockoverride "catalyst_datamodel" {
datamodel = "[Struggle.GetCatalystHistoryForPhase( StrugglePhase.Self )]"
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[DataModelHasItems( StrugglePhase.GetEndingDecisions )]"
text_label_left = {
layoutpolicy_horizontal = expanding
text = "STRUGGLE_STAGE_DECISIONS_TITLE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[StrugglePhase.GetEndingDecisions]"
margin_bottom = 10
item = {
hbox = {
layoutpolicy_horizontal = expanding
datacontext = "[DeferredDecision.GetDecision]"
text_single = {
visible = "[Decision.IsValid]"
text = "DECISION_TOOLTIP_TITLE"
align = nobaseline
layoutpolicy_horizontal = expanding
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
blockoverride "concept_link" {}
}
}
container = {
name = "StrugglePhaseTooltip"
alwaystransparent = no
datacontext = "[GetPlayer]"
datacontext = "[StrugglePhase.GetStruggle]"
struggle_phase_tooltip = {}
}
template situation_tooltip {
container = {
alwaystransparent = no
block "datacontext" {}
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Situation.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[Situation.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "current_phase_information"
datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]"
layoutpolicy_horizontal = expanding
cooltip_paragraph = {
visible = "[Situation.GetParticipantGroupByCharacter( GetPlayer.Self ).IsValid]"
text = "SITUATION_TOOLTIP_INVOLVEMENT"
}
cooltip_paragraph = {
text = "SITUATION_TOOLTIP_CURRENT_PHASE"
}
cooltip_paragraph = {
text = "SITUATION_START_DATE"
}
cooltip_paragraph = {
margin_top = 10
text = "CLICK_TO_VIEW"
}
}
}
blockoverride "concept_link" {}
}
}
}
template situation_tooltip_hud {
container = {
alwaystransparent = no
block "datacontext" {}
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[Situation.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[Situation.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "current_phase_information"
datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "SITUATION_START_DATE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
text = "SITUATION_TOOLTIP_CURRENT_PHASE"
}
textbox = {
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
text = "CLICK_TO_VIEW"
}
}
}
blockoverride "concept_link" {}
}
}
}
template situation_info_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
block "header_icon"
{
}
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
block "title_text" {
text = "[Situation.GetNameNoTooltip]"
}
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "current_phase_information"
datacontext = "[Situation.GetTopSubRegion.GetCurrentPhase]"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
block "localization_text"
{
text = "SITUATION_INFO_WIDGET_DEBUG"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
}
}
blockoverride "concept_link" {}
}
}
}
container = {
name = "SituationTooltip"
alwaystransparent = no
using = situation_info_tooltip
blockoverride "title_text" {
text = "[Situation.GetNameNoTooltip]"
}
blockoverride "header_icon"
{
texture = "[Situation.GetIcon]"
}
blockoverride "localization_text"
{
text = "[Situation.GetDesc]"
}
}
### Situation Type Tooltip
template situation_type_tooltip {
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 5 }
text = "[SituationType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "situation_type_desc"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[SituationType.GetDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
}
}
blockoverride "concept_link" {
text = "SITUATION_TYPE_CONCEPT_LINK"
}
}
}
container = {
name = "SituationTypeTooltip"
alwaystransparent = no
using = situation_type_tooltip
}
### Situation Subregion Tooltip
template situation_sub_region_tooltip {
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 5 }
text = "[SituationSubRegion.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "situation_sub_region_desc"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[SituationSubRegion.GetTooltipDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
}
}
blockoverride "concept_link" {
text = "SITUATION_SUB_REGION_CONCEPT_LINK"
}
}
}
container = {
name = "SituationSubRegionTooltip"
alwaystransparent = no
using = situation_sub_region_tooltip
}
types SituationTooltipTypes
{
type cooltip_situation_phase_type = object_tooltip_pop_out {
blockoverride "header_additions"
{
header_icon = {
visible = "[SituationPhaseType.HasIcon]"
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[SituationPhaseType.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[SituationPhaseType.GetNameNoTooltip]"
align = nobaseline
default_format = "#T"
}
blockoverride "subtitle_text"
{
visible = "[ObjectsEqual( SituationPhaseType.GetParentSituationType.Self, GetSituationType( 'the_christian_church' ).Self )]"
text = "CHRISTIAN_CHURCH_PHASE_CHAPTER_TYPE"
}
blockoverride "main_description" {
vbox = {
name = "phase_type_desc"
datacontext = "[SituationPhaseType.GetParentSituationType]"
datacontext = "[GetSituationOfType( SituationType.Self )]"
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[SituationPhaseType.GetDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
expand = {}
}
block "participant_groups"
{
spacer = {
size = { 0 10 }
}
vbox = {
visible = "[And( SituationPhaseType.IsValid, Not( SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused ) )]"
layoutpolicy_horizontal = expanding
spacing = 8
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL"
default_format = "#bold;italic"
align = nobaseline
}
expand = {}
}
fixedgridbox = {
name = "task_items"
layoutpolicy_horizontal = expanding
addcolumn = 56
addrow = 48
setitemsizefromcell = yes
datamodel_wrap = 6
maxhorizontalslots = 6
maxverticalslots = 2
flipdirection = yes
layoutanchor = topleft
datamodel = "[SituationPhaseType.GetModifierNamedSets]"
item = {
icon_situation_phase_effect_item = {}
}
}
}
vbox = {
visible = "[And( SituationPhaseType.IsValid, SituationPhaseType.GetParentSituationType.IsGuiTooltipGroupFocused )]"
layoutpolicy_horizontal = expanding
spacing = 8
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "SITUATION_PHASE_TYPE_MODIFIERS_LABEL"
default_format = "#bold;italic"
align = nobaseline
}
expand = {}
}
fixedgridbox = {
name = "task_items"
layoutpolicy_horizontal = expanding
addcolumn = 56
addrow = 52
setitemsizefromcell = yes
datamodel_wrap = 7
maxhorizontalslots = 7
maxverticalslots = 2
flipdirection = yes
layoutanchor = topleft
datamodel = "[SituationPhaseType.GetParentSituationType.GetParticipantGroupTypes]"
item = {
icon_situation_phase_effect_participant_group_item = {
datacontext = "[Situation.GetTopSubRegion]"
}
}
}
}
}
}
}
blockoverride "concept_link" {
text = "SITUATION_PHASE_TYPE_CONCEPT_LINK"
}
}
}
### Situation Phase Type Tooltip
template situation_phase_type_tooltip {
container = {
alwaystransparent = no
cooltip_situation_phase_type = {}
}
}
container = {
name = "SituationPhaseTypeTooltip"
alwaystransparent = no
using = situation_phase_type_tooltip
}
### Situation Participant Group Tooltip
template situation_participant_group_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
header_icon = {
visible = "[SituationParticipantGroupType.HasIcon]"
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[SituationParticipantGroupType.GetIcon]"
using = Master_Button_Modify_Texture
}
}
}
blockoverride "title_text" {
margin = { 0 5 }
text = "[SituationParticipantGroupType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
name = "situation_participant_group_desc"
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "[SituationParticipantGroupType.GetDescription]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
blockoverride "concept_link" {
text = "SITUATION_PARTICIPANT_GROUP_TYPE_CONCEPT_LINK"
}
}
}
}
container = {
name = "SituationParticipantGroupTypeTooltip"
alwaystransparent = no
using = situation_participant_group_type_tooltip
}
### Effects of the current phase of the situation sub-region
template situation_modifier_named_set_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
header_icon = {
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[SituationModifierNamedSet.GetIcon]"
}
}
}
blockoverride "title_text"
{
text = "[SituationModifierNamedSet.GetNameNoTooltip]"
}
blockoverride "concept_link"
{
text = "[SituationModifierNamedSet.GetConceptLink]"
}
blockoverride "main_description"
{
hbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
textbox = {
max_width = 400
margin_top = 5
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
text = "[SituationModifierNamedSet.GetEffectTooltipBreakdown( Character.Self, Situation.Self )]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
multiline = yes
}
expand = {}
}
}
}
}
}
container = {
alwaystransparent = no
using = situation_modifier_named_set_tooltip
}
### Effects of the current phase of the situation sub-region on a participant group
template situation_participant_group_type_phase_effects_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
header_icon = {
visible = "[SituationSubRegion.GetSituation.GetType.UseSituationPhaseFlatIcons]"
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[SituationParticipantGroupType.GetIcon]"
using = Icon_Flat_Standard
}
}
header_icon = {
visible = "[Not( SituationSubRegion.GetSituation.GetType.UseSituationPhaseFlatIcons )]"
blockoverride "header_texture"
{
size = { 48 48 }
texture = "[SituationParticipantGroupType.GetIcon]"
}
}
}
blockoverride "title_text"
{
text = "[SituationParticipantGroupType.GetNameNoTooltip]"
}
blockoverride "concept_link"
{
text = "[situation_participant_group|E]"
}
blockoverride "subtitle_text"
{
text = "SITUATION_PARTICIPANT_GROUP_IN_PHASE_TYPE_SUBHEADER"
default_format = "#weak"
}
blockoverride "main_description"
{
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
textbox = {
visible = "[Not( StringIsEmpty( SituationPhaseType.GetParticipantGroupEffectTooltipBreakdown( SituationParticipantGroupType.Self ) ) )]"
max_width = 400
margin_top = 5
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
text = "[SituationPhaseType.GetParticipantGroupEffectTooltipBreakdown( SituationParticipantGroupType.Self )]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
multiline = yes
}
textbox = {
visible = "[StringIsEmpty( SituationPhaseType.GetParticipantGroupEffectTooltipBreakdown( SituationParticipantGroupType.Self ) )]"
max_width = 400
margin_top = 5
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
text = "SITUATION_PHASE_PARTICIPANT_GROUP_NO_EFFECTS"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
multiline = yes
}
textbox = {
visible = "[ObjectsEqual( SituationSubRegion.GetCharacterParticipantGroup( Character.Self ).GetName, SituationParticipantGroupType.GetName)]"
text = "SITUATION_PARTICIPANT_YOUR_GROUP"
max_width = 400
margin_top = 5
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
multiline = yes
}
expand = {}
}
}
}
}
}
container = {
alwaystransparent = no
using = situation_participant_group_type_phase_effects_tooltip
}
## House relation level tooltip
#
template house_relation_level_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[HouseRelationLevel.GetRenderedIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[HouseRelationLevel.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
text_multi = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
using = DefaultTooltipText
multiline = yes
text = "[HouseRelationLevel.GetDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
text_multi = {
name = "para,eter_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
using = DefaultTooltipText
multiline = yes
text = "[HouseRelationLevel.GetParameterDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
blockoverride "concept_link" {
text = "[house_relation|E]"
}
}
}
}
container = {
name = "HouseRelationLevelTooltip"
alwaystransparent = no
datacontext = "[GetPlayer]"
using = house_relation_level_tooltip
}
## House unity stage tooltip
#
template house_unity_stage_tooltip {
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[HouseUnityStage.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[HouseUnityStage.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "main_description" {
text_multi = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
using = DefaultTooltipText
multiline = yes
text = "[HouseUnityStage.GetDescription]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
blockoverride "concept_link" {
text = "[house_unity_level|E]"
}
}
}
container = {
name = "HouseUnityStageTooltip"
alwaystransparent = no
datacontext = "[GetPlayer]"
using = house_unity_stage_tooltip
}
types DecisionTypes
{
type decision_tooltip = object_tooltip_pop_out {
blockoverride "header_additions" {}
blockoverride "title_text" {
margin = { 0 8 }
text = "[Decision.GetTitleForPlayer]"
default_format = "#T"
}
blockoverride "main_description" {
text_multi = {
block "command_desc_for_player_visible"
{
visible = "[Not(StringIsEmpty(Decision.GetCommandDescForPlayer))]"
}
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
margin_bottom = 15
using = DefaultTooltipText
block "command_desc_for_player"
{
text = "[Decision.GetCommandDescForPlayer]"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
text_multi = {
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
margin_bottom = 15
using = DefaultTooltipText
text = "[Decision.GetShortDescForPlayer]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
block "custom_decision_data" {}
textbox = {
visible = "[Decision.IsShownForPlayer]"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 5
margin_bottom = 15
using = DefaultTooltipText
multiline = yes
text = "CLICK_TO_SELECT"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
blockoverride "concept_link" {}
}
}
container = {
name = "DecisionTooltip"
alwaystransparent = no
datacontext = "[GetPlayer]"
decision_tooltip = {}
}
template activity_tooltip {
container = {
alwaystransparent = no
datacontext = "[Activity.GetType]"
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[Activity.GetNameNoTooltip|U]"
default_format = "#T"
}
blockoverride "subtitle_text" {
text = "[Activity.GetType.GetName]"
default_format = "#weak"
}
blockoverride "description_text" {
text = "[Activity.GetInvolvementText( GetPlayer.Self, 'tooltip' )]"
}
blockoverride "concept_link" {
text = "ACTIVITY_TYPE_CONCEPT_SELECTOR"
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[ActivityType.GetIcon]"
framesize = { 160 160 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
container = {
alwaystransparent = no
name = "ActivityTooltip"
using = activity_tooltip
}
template activity_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[ActivityType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[ActivityType.GetDescription]"
}
blockoverride "concept_link" {
text = "ACTIVITY_TYPE_CONCEPT_SELECTOR"
}
}
}
}
container = {
alwaystransparent = no
name = "ActivityTypeTooltip"
using = activity_type_tooltip
}
template activity_locale_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[ActivityLocale.GetName]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[ActivityLocaleWindow.EnterLocaleTooltip( ActivityLocale.Self )]"
}
blockoverride "concept_link" {
text = ""
}
}
}
}
container = {
alwaystransparent = no
name = "ActivityLocaleTooltip"
using = activity_locale_tooltip
}
template travel_option_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "concept_link" {
text = "[travel_option|E]"
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[TravelOption.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[TravelOption.GetTooltipWithBlocker(TravelPlanData.Self)]"
}
blockoverride "extra_data_after_description" {
textbox = {
name = "effects"
layoutpolicy_horizontal = expanding
max_width = 400
margin_top = 10
using = DefaultTooltipText
multiline = yes
text = "[TravelOption.GetDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
blockoverride "input_info_text"
{
visible = "[IsGameViewOpen('travel_option_selection_window')]"
text_single = {
name = "click_add"
visible = "[And(Not(TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)), TravelOptionSelectionWindow.CanSelect(TravelOption.Self))]"
text = "TRAVEL_OPTION_TT_CLICK_TO_ADD"
default_format = "#I"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
name = "click_remove"
visible = "[TravelOptionSelectionWindow.HasOptionSelected(TravelOption.Self)]"
text = "TRAVEL_OPTION_TT_CLICK_TO_REMOVE"
default_format = "#I"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
container = {
alwaystransparent = no
name = "TravelOptionTooltip"
using = travel_option_tooltip
datacontext = "[GetPlayer.GetTravelPlan.GetData]"
}
template vassal_stance_tooltip
{
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[VassalStance.GetTextIconNoFormat][VassalStance.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[VassalStance.GetDescription]"
}
blockoverride "concept_link" {
text = "[vassal_stance|E]"
}
}
}
}
container = {
name = "VassalStanceTooltip"
alwaystransparent = no
using = vassal_stance_tooltip
}
template ai_personality_tooltip
{
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Character.GetAIPersonalityNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[Character.GetAIPersonalityExplanation]"
}
blockoverride "concept_link" {
text = "[personality|E]"
}
}
}
}
container = {
name = "AiPersonalityTooltip"
alwaystransparent = no
using = ai_personality_tooltip
}
template travel_plan_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[TravelPlan.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "TRAVEL_PLAN_TOOLTIP_DESC"
}
blockoverride "concept_link" {
text = "[travel|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "TravelPlanTooltip"
using = travel_plan_tooltip
}
template accolade_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Accolade.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "subtitle_text" {
text = "ACCOLADE_GLORY_AND_LEVEL"
}
blockoverride "main_description" {
hbox = {
layoutpolicy_horizontal = expanding
vbox = {
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "ACCOLADE_ACCLAIMED_KNIGHT_NAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
visible = "[Accolade.GetSuccessor.IsValid]"
text_single = {
text = "ACCOLADE_SUCCESSOR_NAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
hbox = {
layoutpolicy_horizontal = expanding
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[Accolade.GetObtainedAccoladeTypes]"
max_width = 30
text_single = {
text = "ACCOLADE_OBTAINED_TYPES_NAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
item = {
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "ACCOLADE_OBTAINED_TYPES_TYPE_NAME"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
}
expand = {}
}
hbox = {
margin_top = 20
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
visible = "[Accolade.HasActiveEffects]"
text_multi = {
text = "[Accolade.BuildActiveRankEffects]"
autoresize = yes
max_width = 500
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
}
}
expand = {}
}
}
blockoverride "concept_link" {
text = "[accolade|E]"
}
}
}
}
container = {
name = "HolyOrderTooltip"
alwaystransparent = no
using = holy_order_tooltip
}
template holy_order_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions" {
datacontext = "[HolyOrder.GetTitle]"
margin_top = -4
coa_title_small_crown = {
size = { 40 50 }
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
}
blockoverride "title_text" {
margin = { 6 8 }
text = "[HolyOrder.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "concept_link" {
text = "[holy_order|E]"
}
blockoverride "extra_data" {
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLY_ORDER_COOLTIP_LEADER"
align = nobaseline
}
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLY_ORDER_COOLTIP_PATRON"
align = nobaseline
}
text_single = {
layoutpolicy_horizontal = expanding
text = "HOLY_ORDER_COOLTIP_RITE"
align = nobaseline
}
text_single = {
margin_top = 4
layoutpolicy_horizontal = expanding
text = "HOLY_ORDER_COOLTIP_LEASED_TITLES"
align = nobaseline
}
hbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
margin_bottom = -15
fixedgridbox = {
addrow = 56
addcolumn = 38
flipdirection = yes
datamodel_wrap = 10
datamodel = "[HolyOrder.GetLeasedTitles]"
item = {
coa_title_tiny_crown = {
using = tooltip_ne
icon_title_has_laws_status = {}
icon = {
name = "is_nomad"
visible = "[Title.IsNomad]"
parentanchor = bottom|right
size = { 25 25 }
position = { 5 0 }
texture = "gfx/interface/icons/title_status/icon_title_nomad.dds"
}
}
}
}
expand = {}
}
block "click_to_view" {}
}
}
}
}
container = {
alwaystransparent = no
name = "AccoladeTooltip"
using = accolade_tooltip
}
template accolade_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[AccoladeType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "subheading" {
}
blockoverride "main_description" {
vbox = {
visible = "[Not(Accolade.IsValid)]"
layoutpolicy_horizontal = expanding
datamodel = "[AccoladeType.GetRanks]"
spacing = 5
item = {
vbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
text = "[AccoladeType.GetLevelOfRank( AccoladeRank.Self )]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
text_multi = {
layoutpolicy_horizontal = expanding
text = "[AccoladeRank.GetEffects]"
align = nobaseline
autoresize = yes
margin_top = 5
margin_left = 20
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
# current rank number
text_single = {
margin_top = 10
margin_bottom = 10
layoutpolicy_horizontal = expanding
visible = "[Accolade.IsValid]"
text = "CURRENT_ACCOLADE_GLORY_AND_LEVEL"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
background = {
margin_left = 10
margin_right = 10
margin_top = -5
margin_bottom = -5
using = Background_Area_Dark
alpha = 0.6
}
}
# breakdown of primary effects
vbox = {
visible = "[Accolade.IsValid]"
datamodel = "[AccoladeType.GetRanks]"
margin_bottom = 10
spacing = 5
item = {
widget = {
size = { 300 40 }
tooltip = "ACCOLADE_RANK_HEADER_AND_EFFECTS_TT"
using = tooltip_se
background = {
using = Background_Frame
margin = { 10 0 }
}
hbox = {
text_single = {
layoutpolicy_horizontal = expanding
text = "[AccoladeType.GetLevelAndGloryOfRank( AccoladeRank.Self )]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
blockoverride "concept_link" {
text = "[accolade_type|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "AccoladeTypeTooltip"
using = accolade_type_tooltip
}
template accolade_types_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "CREATE_ACCOLADE"
default_format = "#T"
}
blockoverride "subheading" {
}
blockoverride "main_description" {
text_single = {
layoutpolicy_horizontal = expanding
visible = "[Not( KnightsView.CanBeAcclaimedKnight( Character.Self ) )]"
text = "[KnightsView.CanBeAcclaimedKnightDesc( Character.Self )]"
align = nobaseline
margin_bottom = 10
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "CREATE_ACCOLADE_TYPES"
align = nobaseline
margin_bottom = 10
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
datamodel = "[KnightsView.GetPotentialAccoladeTypes( Character.Self )]"
spacing = 5
item = {
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
text = "BULLET"
align = nobaseline
margin = { 10 0 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
layoutpolicy_horizontal = expanding
text = "[AccoladeType.GetName]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
blockoverride "concept_link" {
}
}
}
}
template point_of_interest_tooltip {
container = {
alwaystransparent = no
name = "PointOfInterestTooltip"
datacontext = "[TravelPointsOfInterestIconData.GetProvince]"
datacontext = "[TravelPointsOfInterestIconData.GetProvince.GetTitle]"
object_tooltip_pop_out = {
blockoverride "header_additions" {
margin_top = 5
coa_title_small = {
visible = "[And( Not( Province.GetHolding.IsEmpty ), Title.IsValid )]"
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
widget = {
visible = "[Or( Province.GetHolding.IsEmpty, Not( Title.IsValid ) )]"
size = { 55 65 }
icon = {
parentanchor = center
texture = "[Province.GetTerrain.GetIcon]"
position = { 0 -2 }
size = { 55 55 }
}
}
}
blockoverride "title_text" {
margin_top = -10
margin_left = 5
text = "[Select_CString( Title.IsValid, Title.GetNameNoTierNoTooltip, Province.GetName )]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[TravelPointsOfInterestIconData.GetDescription]"
}
blockoverride "concept_link" {
margin_top = -2
text = "[point_of_interest|E]"
}
}
}
}
types GameTooltipTypes
{
type tax_slot_obligation_tooltip = object_tooltip_pop_out
{
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
texture = "[TaxSlotObligation.GetIcon]"
}
}
}
blockoverride "title_text" {
margin = { 0 8 }
text = "[TaxSlotObligation.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text"
{
text = "[TaxSlotObligation.GetFlavorDesc]"
}
blockoverride "extra_data_after_description"
{
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 15
text_label_left = {
layoutpolicy_horizontal = expanding
text = "TAX_OPTION_EFFECT_LABEL"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_multi = {
layoutpolicy_horizontal = expanding
margin_top = 5
using = DefaultTooltipText
multiline = yes
text = "[TaxSlotObligation.GetEffectText]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
}
}
blockoverride "concept_link" {
text = "[tax_decree|E]"
}
}
}
container = {
name = "TaxSlotObligation"
alwaystransparent = no
tax_slot_obligation_tooltip = {}
}
template epidemic_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text"
{
margin = { 0 8 }
raw_text = "[Epidemic.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "subtitle_text"
{
text = "[Epidemic.GetType.GetName]"
default_format = "#weak"
}
blockoverride "subheading"
{
hbox = {
layoutpolicy_horizontal = expanding
margin_top = -8
text_single = {
autoresize = yes
fontsize_min = 14
using = Font_Size_Small
align = left
text = "[Epidemic.GetIntensityName]"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
max_width = 200
margin_right = 4
}
text_single = {
autoresize = yes
fontsize_min = 14
using = Font_Size_Small
align = right
text = "[Epidemic.GetType.GetName]"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
max_width = 200
}
expand = {}
}
}
blockoverride "main_description"
{
vbox = {
layoutpolicy_horizontal = expanding
spacing = 16
datacontext = "[Epidemic.GetType]"
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Epidemic.IsInRealm( GetPlayer )]"
spacing = 3
cooltip_paragraph = {
text = "EPIDMIC_TOOLTIP_IN_REALM"
}
cooltip_paragraph = {
text = "EPIDMIC_TOOLTIP_DOMAIN_INFECTIONS"
}
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Epidemic.IsNearbyRealm( GetPlayer )]"
cooltip_paragraph = {
text = "EPIDMIC_TOOLTIP_NEARBY_REALM"
}
}
# Shared information
vbox = {
layoutpolicy_horizontal = expanding
cooltip_paragraph = {
text = "EPIDEMIC_TOOLTIP_HAS_INFECTION"
visible = "[GetPlayer.HasInfection( Epidemic.Self )]"
}
cooltip_paragraph = {
block "infection_chance_text"
{
text = "EPIDEMIC_TOOLTIP_CHANCE_OF_INFECTION_CHARACTER_LOCATION"
}
visible = "[Not( GetPlayer.HasInfection( Epidemic.Self ) )]"
}
cooltip_paragraph = {
text = "EPIDEMIC_TOOLTIP_OUTBREAK"
}
block "extra_data"
{
}
cooltip_paragraph = {
text = "EPIDEMIC_TOOLTIP_COURT_PHYSICIAN"
margin_top = 16
default_format = "#weak"
}
}
cooltip_paragraph = {
text = "CLICK_TO_VIEW"
}
}
}
blockoverride "concept_link" {
text = "[epidemic|E]"
}
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon_epidemic = {
blockoverride "icon_size"
{
size = { 52 52 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
}
container = {
alwaystransparent = no
name = "EpidemicTooltip"
using = epidemic_tooltip
}
template legend_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
raw_text = "[Legend.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "subheading"
{
hbox = {
layoutpolicy_horizontal = expanding
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
fontsize_min = 14
using = Font_Size_Small
align = left
text = "[Legend.GetQualityLevel]"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
max_width = 200
}
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
fontsize_min = 14
using = Font_Size_Small
align = right
text = "[Legend.GetType.GetName]"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
max_width = 200
}
}
}
blockoverride "extra_data"
{
cooltip_paragraph = {
visible = "[ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self )]"
text = "LEGEND_OWNING_LEGEND"
}
vbox = {
layoutpolicy_horizontal = expanding
visible = "[Not( ObjectsEqual( Legend.GetOwner.Self, GetPlayer.Self ) )]"
cooltip_paragraph = {
visible = "[Legend.IsCharacterPromotingLegend( GetPlayer )]"
text = "LEGEND_PROMOTING_LEGEND"
}
cooltip_paragraph = {
text = "LEGEND_OWNER_DESCRIPTION"
}
}
}
blockoverride "extra_data_after_description"
{
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 16
spacing = 16
cooltip_paragraph = {
visible = "[Legend.HasImpactModifiers( 'owner' )]"
text = "OWNER_MODIFIERS_SUBTEXT"
}
cooltip_paragraph = {
visible = "[Legend.HasImpactModifiers( 'promoter' )]"
text = "LEGEND_PROMOTER_MODIFIERS_SUBTEXT"
}
cooltip_paragraph = {
visible = "[Legend.HasImpactModifiers( 'county' )]"
text = "LEGEND_COUNTY_MODIFIERS_SUBTEXT"
}
cooltip_paragraph = {
visible = "[Legend.HasImpactModifiers( 'province' )]"
text = "LEGEND_PROVINCE_MODIFIERS_SUBTEXT"
}
block "province_details" {}
}
}
blockoverride "description_text"
{
default_format = "#F"
text = "[Legend.GetChapterDescriptionByIndex( '(int32)0' )]"
}
blockoverride "concept_link" {
text = "[legend|E]"
}
blockoverride "input_info_text" {
text = "CLICK_TO_VIEW"
}
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon_legend = {
datacontext = "[Legend.GetType]"
blockoverride "icon_size"
{
size = { 52 52 }
tintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
}
container = {
alwaystransparent = no
name = "LegendTooltip"
using = legend_tooltip
}
template task_contract_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[TaskContract.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "TASK_CONTRACT_TOOLTIP_DESC"
}
blockoverride "concept_link" {
text = "[task_contract|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "TaskContractTooltip"
using = task_contract_tooltip
}
template domicile_building_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon_building = {
datacontext = "[DomicileBuilding.GetRandomAsset]"
size = { 52 52 }
texture = "[DomicileBuildingAsset.GetIcon]"
}
}
}
blockoverride "title_text"
{
margin = { 0 8 }
text = "[DomicileBuilding.GetNameAndLevel]"
default_format = "#T"
}
blockoverride "concept_link" {
text = "[domicile_building|E]"
}
blockoverride "description_text"
{
text = "[DomicileBuilding.GetSingleBuildingTooltip]"
}
}
}
}
container = {
alwaystransparent = no
name = "DomicileBuildingTooltip"
using = domicile_building_tooltip
}
template title_troops_tooltip {
container = {
alwaystransparent = yes
position = { 25 25 }
visible = "[SelectTitleTroopAssignmentView.IsHoveringValidTitle]"
datacontext = "[SelectTitleTroopAssignmentView.GetHoveredTitle]"
object_tooltip_pop_out = {
alwaystransparent = yes
visible = "[SelectTitleTroopAssignmentView.IsAdministrativeTitle]"
blockoverride "progress" {}
blockoverride "header_additions" {
margin_top = -4
coa_title_small_crown = {
size = { 40 50 }
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible"
{
visible = no
}
}
}
blockoverride "title_text" {
text = "[Title.GetNameWithUnderlyingNoTooltip|U]"
}
blockoverride "subheading" {
text_single = {
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_MAPMODE_TOOLTIP_STATUS"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
blockoverride "concept_link" {}
blockoverride "main_description" {
text_single = {
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CURRENT_ARMY_SIZE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[Not(IsDataModelEmpty(SelectTitleTroopAssignmentView.GetHiredTitles))]"
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_MAPMODE_TOOLTIP_TROOPS_FROM"
default_format = "#weak"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = shrinking
datamodel = "[SelectTitleTroopAssignmentView.GetHiredTitles]"
item = {
coa_title_tiny_crown = {
blockoverride "coa_hover_glow_visible"
{
visible = no
}
icon = {
parentanchor = top|right
position = { 5 9 }
size = { 16 16 }
texture = "gfx/interface/icons/modifiers/icon_influence_01.dds"
visible = "[Title.HasDiscountedTitleMaa(GetPlayer.Self)]"
glow = {
color = { 0 0 0 0.8 }
glow_radius = 3
using = Glow_Standard
}
}
}
}
}
expand = {}
}
vbox = {
visible = "[Title.HasHolder]"
layoutpolicy_horizontal = expanding
text_single = {
visible = "[Not( SelectTitleTroopAssignmentView.IsSelectingTitleForTransfer )]"
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_MAPMODE_TOOLTIP_CLICK"
margin = { 0 10 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
vbox = {
visible = "[SelectTitleTroopAssignmentView.IsSelectingTitleForTransfer]"
layoutpolicy_horizontal = expanding
text_single = {
visible = "[Not( IsGameViewOpen( 'hired_troop_detail_view' ) )]"
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_REASSIGNMENT_TOOLTIP_CLICK"
margin = { 0 10 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
text_single = {
visible = "[IsGameViewOpen( 'hired_troop_detail_view' )]"
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_TOOLTIP_CLICK"
margin = { 0 10 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
text_single = {
visible = "[Not( Title.HasHolder )]"
layoutpolicy_horizontal = expanding
text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_NOT_CREATED"
margin = { 0 10 }
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
text_single = {
using = DefaultTooltipBackground
using = DefaultTooltipText
margin = { 20 10 }
margin_bottom = 20
visible = "[Not( SelectTitleTroopAssignmentView.IsAdministrativeTitle )]"
text = "TITLE_TROOPS_ASSIGNMENT_GUIMODE_NOT_ADMIN"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
# Widget name referenced in code. Do not change!
container = {
alwaystransparent = yes
filter_mouse = none
name = "TitleTroopsTooltip"
visible = "[IsMapMode( 'title_troops' )]"
using = title_troops_tooltip
}
template subject_contract_group_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[SubjectContractGroup.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "description_text" {
text = "[SubjectContractGroup.GetDescription]"
}
blockoverride "concept_link" {
text = "[vassal_contract|E]"
}
}
}
}
container = {
alwaystransparent = no
name = "SubjectContractGroupTooltip"
using = subject_contract_group_tooltip
}
template widget_obedience_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "concept_link" {}
blockoverride "title_text" {
margin = { 0 10 }
text = "[obedience|U]"
default_format = "#T"
}
blockoverride "header_additions" {
icon = {
size = { 42 42 }
texture = "gfx/interface/icons/icon_obedience.dds"
}
spacer = {
size = { 12 12 }
}
}
blockoverride "main_description" {
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
using = DefaultTooltipText
multiline = yes
text = "[Character.GetObedienceTooltipDesc]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
divider_light = {
layoutpolicy_horizontal = expanding
}
vbox = {
layoutpolicy_horizontal = expanding
margin_top = 5
hbox = {
layoutpolicy_horizontal = expanding
hbox = {
layoutpolicy_horizontal = expanding
spacing = 3
alwaystransparent = no
text_single = {
layoutpolicy_horizontal = expanding
text = "obedience_value"
}
text_single = {
datacontext = "[Character.GetObedienceBreakdown]"
text = "[ValueBreakdown.GetFixedPointValue|0]"
default_format = "#L"
margin = { 5 0 }
margin_right = 0
tooltip_visible = "[ValueBreakdown.HasTooltip]"
tooltipwidget = {
widget_value_breakdown_tooltip = {
blockoverride "header" {
text_label_left = {
layoutpolicy_horizontal = expanding
raw_text = "[obedience|E]"
default_format = "#T"
}
}
}
}
}
text_single = {
raw_text = "/"
}
text_single = {
datacontext = "[Character.GetObedienceThresholdBreakdown]"
text = "[ValueBreakdown.GetFixedPointValue|0]"
default_format = "#L"
margin = { 5 0 }
margin_left = 0
tooltip_visible = "[ValueBreakdown.HasTooltip]"
tooltipwidget = {
widget_value_breakdown_tooltip = {
blockoverride "header" {
text_label_left = {
layoutpolicy_horizontal = expanding
raw_text = "[obedience_threshold|E]"
default_format = "#T"
}
}
}
}
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 3
alwaystransparent = no
text_single = {
layoutpolicy_horizontal = expanding
raw_text = "[overlord|E]:"
}
text_single = {
text = "[Character.GetObedienceTarget.GetShortUIName|U]"
visible = "[Character.GetObedienceTarget.IsValid]"
margin = { 5 0 }
}
text_single = {
text = "NONE"
visible = "[Not( Character.GetObedienceTarget.IsValid )]"
margin = { 5 0 }
}
}
}
}
}
}
}
}
}
template innovation_icon_tooltip {
container = {
using = GeneralTooltipSetup
alwaystransparent = no
widget = {
name = "background"
using = DefaultTooltipBackground
size = { 100% 100% }
alwaystransparent = no
}
flowcontainer = {
margin = { 20 20 }
spacing = 15
direction = vertical
ignoreinvisible = yes
datacontext = "[CultureInnovation.GetType]"
widget = {
name = "header"
size = { 500 60 }
background = {
using = Background_Area_Dark
margin = { 15 10 }
}
hbox = {
minimumsize = { 500 0 }
set_parent_size_to_minimum = yes
widget = {
size = { 90 60 }
icon = {
texture = "[CultureInnovation.GetIcon]"
size = { 90 60 }
using = Mask_Rough_Edges
}
icon = {
visible = "[Not(CultureInnovation.CanGainProgress)]"
texture = "[CultureInnovation.GetIcon]"
tintcolor = { 0 0 0 0.5 }
size = { 90 60 }
using = Mask_Rough_Edges
}
}
text_single = {
layoutpolicy_horizontal = expanding
margin = { 10 0 }
text = "CULTURE_INNOVATION_NAME_NO_TOOLTIP_WITH_BASE_NAME"
default_format = "#T"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
vbox = {
text_single = {
layoutpolicy_horizontal = expanding
align = right
text = "INNOVATION_TOOLTIP_TYPE"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
spacer = {
size = { 5 5 }
}
text_single = {
layoutpolicy_horizontal = expanding
align = right
text = "INNOVATION_ERA_WITH_ERA_CONCEPT"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
container = {
name = "spread"
using = era_innov_blockers
visible = "[CultureInnovation.HasSpreadMarker]"
minimumsize = { 500 0}
background = {
using = Background_Area_Dark
margin = { 15 5 }
alpha = 0.6
}
blockoverride "eib_text"
{
text = "INNOVATION_SPREAD_MARKER_TOOLTIP"
}
}
container = {
name = "blocked_for_government"
using = era_innov_blockers
blockoverride "eib_visible"
{
visible = "[CultureInnovation.GetCultureEra.GetType.IsInvalidForPlayerGovernment]"
}
blockoverride "eib_text"
{
text = "CULTURE_WINDOW_ERA_INNOVATION_BLOCKED_FOR_PLAYER_GOVERNMENT"
}
}
container = {
name = "blocker"
using = era_innov_blockers
blockoverride "eib_visible"
{
visible = "[Not(CultureInnovation.CanGainProgress)]"
}
blockoverride "eib_text"
{
text = "[CultureInnovation.GetCantGainProgressReason]"
}
}
container = {
using = era_innov_effects
blockoverride "eie_label_visible"
{
visible = "[CultureInnovationType.HasEffects( CultureInnovation.GetCulture, GetPlayer )]"
minimumsize = { 500 30 }
}
blockoverride "eie_effects"
{
text = "[CultureInnovationType.GetEffectsDesc( CultureInnovation.GetCulture, GetPlayer )]"
}
}
flowcontainer = {
minimumsize = { 100% 0 }
direction = vertical
ignoreinvisible = yes
text_single = {
text = "[CultureInnovation.GetInnovationState]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
progressbar_standard = {
visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]"
size = { 300 25 }
min = 0
max = 100
value = "[FixedPointToFloat(CultureInnovation.GetProgress)]"
text_single = {
parentanchor = hcenter|vcenter
widgetanchor = hcenter|vcenter
position = { 0 -2 }
text = "[CultureInnovation.GetProgress|%/0]"
fonttintcolor = "[TooltipInfo.GetTintColor]"
background = {
using = Background_Area
margin = { 10 0 }
}
}
}
text_single = {
visible = "[And(CultureInnovation.CanGainProgress, Not(CultureInnovation.IsActive))]"
text = "INNOVATION_TOOLTIP_PROGRESS"
autoresize = yes
max_width = 500
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
template bazaar_building_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "[Building.GetNameNoTooltip]"
}
blockoverride "subtitle_text" {
text = "[Building.GetTypeName]"
default_format = "#weak"
}
blockoverride "concept_link" {
text = "[building|E]"
}
blockoverride "description_text" {
text = "CLICK_TO_SELECT"
}
}
}
}
template house_attribute_tooltip {
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 8 }
text = "ADMINISTRATIVE_GOVERNMENT_BONUS_TOOLTIP_HEADING"
}
blockoverride "concept_link" {
text = "[DynastyHouse.GetHouseAspirationFlavorName]"
}
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
powerful_family_bonus_icon = {}
}
}
blockoverride "description_text"
{
text = "[DynastyHouse.GetHouseAspirationBonusTooltip]"
}
}
}
template situation_phase_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "concept_link" {
text = "[situation_phase|E]"
}
blockoverride "title_text" {
margin = { 0 8 }
text = "CURRENT_PHASE_PROGRESS_HEADER"
}
blockoverride "main_description" {
vbox = {
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
vbox = {
layoutpolicy_horizontal = expanding
background = {
using = Background_Area
}
visible = "[Not( Or(SilkRoadWindow.IsBadPhase( SituationSubRegion.Self ), SilkRoadWindow.IsGoodPhase( SituationSubRegion.Self )))]"
datamodel = "[SituationPhase.GetFuturePhases]"
item = {
hbox = {
layoutpolicy_horizontal = expanding
margin_bottom = 5
text_single = {
text = "FUTURE_PHASE_PROGRESS_HEADER"
fonttintcolor = "[TooltipInfo.GetTintColor]"
margin_right = 10
}
expand = {}
}
}
expand = {}
}
vbox = {
layoutpolicy_horizontal = expanding
datamodel = "[SituationPhase.GetLatestCatalystHistory]"
text_label_center = {
layoutpolicy_horizontal = expanding
text = "RecentCatalystsHeader"
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
item = {
vbox = {
layoutpolicy_horizontal = expanding
margin = { 0 4 }
spacing = 4
divider_light = {
layoutpolicy_horizontal = expanding
}
hbox = {
layoutpolicy_horizontal = expanding
spacing = 4
text_single = {
text = "[SituationCatalystHistory.GetCatalystType.GetName]"
align = nobaseline
max_width = 300
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
expand = {}
text_single = {
text = "[SituationCatalystHistory.GetValue|+=]"
align = nobaseline
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
}
}
}
}
}
}
template confederation_tooltip {
object_tooltip_pop_out = {
datacontext = "[Confederation]"
datacontext = "[Confederation.GetType]"
blockoverride "header_additions" {
hbox = {
margin_right = 10
margin_top = 5
margin_left = -5
coa_bloc_small = {
visible = "[Confederation.GetType.IsHouseBasedConfederation]"
blockoverride "glow" {}
}
coa_confederation_small = {
visible = "[Not(Confederation.GetType.IsHouseBasedConfederation)]"
blockoverride "glow" {}
}
}
}
spacer = { size = { 40 0 } }
blockoverride "title_text"
{
text = "CONFEDERATION_TT_TOOLTIP"
}
blockoverride "fontsize_min" {
fontsize_min = 13
}
blockoverride "multiline" {
multiline = yes
}
blockoverride "max_width"
{
max_width = 280
}
blockoverride "concept_link"
{
text = "[SelectLocalization(ConfederationType.IsHouseBasedConfederation, 'CONFEDERATION_BLOC_CONCEPT', 'CONFEDERATION_CONCEPT')]"
}
blockoverride "extra_data"
{
cooltip_paragraph = {
name = "tooltip_from_code"
text = "[Confederation.GetConfederationTooltip]"
}
cooltip_paragraph = {
name = "click"
text = "VIEW_CLICK"
default_format = "#I"
}
}
}
}
container = {
name = "confederation_tooltip"
alwaystransparent = no
using = confederation_tooltip
}
template great_project_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions"
{
hbox = {
margin_right = 10
margin_top = 8
margin_left = -4
icon = {
size = { 52 52 }
block "header_icon"
{
texture = "[GreatProject.GetIcon]"
}
}
}
}
blockoverride "concept_link" {
text = "[great_project|E]"
}
blockoverride "title_text" {
margin = { 0 5 }
block "title_text" {
text = "[GreatProject.GetNameNoTooltip]"
}
default_format = "#T"
}
blockoverride "main_description" {
vbox = {
layoutpolicy_horizontal = expanding
textbox = {
name = "main_description"
layoutpolicy_horizontal = expanding
max_width = 400
margin = { 0 5 }
using = DefaultTooltipText
multiline = yes
text = "great_project_cooltip_desc"
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
spacer = {
size = { 0 10 }
}
}
}
}
}
}
container = {
name = "GreatProjectTooltip"
alwaystransparent = no
using = great_project_tooltip
}
template puppet_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "header_additions" {
icon = {
size = { 40 40 }
blockoverride "coa_tooltip" {}
blockoverride "coa_hover_glow_visible" { }
texture = "[PuppetType.GetIcon( GetNullCharacter )]"
}
}
blockoverride "title_text" {
margin = { 5 8 }
text = "[PuppetType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "concept_link"
{
text = "[puppet_type|E]"
align = nobaseline
}
blockoverride "main_description"
{
vbox = {
name = "actions_info"
spacing = 4
layoutpolicy_horizontal = expanding
layoutpolicy_vertical = expanding
cooltip_paragraph = {
text = "PUPPET_TYPE_DESCRIPTION_TEXT"
}
}
}
}
}
}
container = {
name = "PuppetTypeTooltipDefault"
alwaystransparent = no
using = puppet_type_tooltip
}
template lease_contract_type_tooltip {
container = {
alwaystransparent = no
object_tooltip_pop_out = {
blockoverride "title_text" {
margin = { 0 5 }
text = "[LeaseContractType.GetNameNoTooltip]"
default_format = "#T"
}
blockoverride "concept_link" {
text = "[lease_contract|E]"
}
blockoverride "description_text"
{
text = "[LeaseContractType.GetDesc]"
}
}
}
}
container = {
name = "LeaseContractTypeTooltip"
alwaystransparent = no
using = lease_contract_type_tooltip
}
template Scrolltip_Height {
max_height = 780
}
types ScrollableTooltipTypes {
# use inside a tooltipwidget
# scrolltip is a generic scrollable tooltip
# block scrolltip_text can take your tooltip text
# or replace these blocks: scrolltip_header, scrolltip_content, scrolltip_footer
# change scrolltip_width if your scrollbox is too thin, header won't resize it automatically
type scrolltip = widget {
using = GeneralTooltipSetup
alwaystransparent = no
size = { 0 0 }
using = DefaultTooltipBackground
vbox = {
name = "vbox"
set_parent_size_to_minimum = yes
margin = { 0 4 } # gives a little border when scrolling
vbox = {
layoutpolicy_horizontal = expanding
margin = { 20 0 }
block "scrolltip_header" {}
}
vbox = {
layoutpolicy_horizontal = expanding
margin = { 8 8 } # prevents scrollbar overlap
vbox = {
layoutpolicy_horizontal = expanding
widget = {
layoutpolicy_horizontal = expanding
scrollbox = {
resizeparent = yes
block "scrolltip_height" {
using = Scrolltip_Height
}
blockoverride "scrollbox_background" {}
blockoverride "scrollbox_background_fade" {}
blockoverride "scrollbox_content" {
set_parent_size_to_minimum = yes
widget = {
block "scrolltip_size" {
size = { 440 0 }
}
}
block "scrolltip_content" {
cooltip_paragraph = {
block "scrolltip_text" {
text = "LOREM_IPSUM_DESCRIPTION"
}
}
}
}
}
}
}
}
vbox = {
layoutpolicy_horizontal = expanding
margin_top = -15
block "scrolltip_footer" {}
hbox = {
layoutpolicy_horizontal = expanding
cooltip_paragraph = {
layoutpolicy_horizontal = expanding
margin = { 10 15 }
max_width = 440
block "input_info_text_bottom" {
visible = no
}
}
}
}
}
margin_widget = {
size = { 100% 100% }
margin = { 3 3 }
icon = {
name = "tooltip_locked"
visible = "[PdxGuiWidget.IsTooltipLocked]"
texture = "gfx/interface/skinned/tooltip_frame.dds"
spriteType = Corneredtiled
spriteborder = { 20 20 }
size = { 100% 100% }
texture_density = 2
tintcolor = "[TooltipInfo.GetTintColor]"
alpha = 1
state = {
name = _show
bezier = { 0.25 0.1 0.25 1 }
duration = 0.15
alpha = 1
}
state = {
name = _hide
alpha = 0
}
modify_texture = {
name = "overlay"
texture = "gfx/interface/component_overlay/overlay_window.dds"
spriteType = Corneredstretched
spriteborder = { 0 0 }
blend_mode = overlay
}
}
block "progress"
{
progresspie = {
name = "tooltip_progress"
visible = "[And(UsesTimerLocking, Not(PdxGuiWidget.IsTooltipLocked))]"
parentanchor = top|right
position = { -3 3 }
size = { 20 20 }
min = 0
max = 1
tintcolor = "[TooltipInfo.GetTintColor]"
value = "[PdxGuiWidget.GetTooltipLockProgress]"
texture = "gfx/interface/progressbars/progress_circle.dds"
framesize = { 248 248 }
frame = 2
state = {
name = _show
alpha = 1
}
state = {
name = _hide
bezier = { 0.25 0.1 0.25 1 }
duration = 0.05
alpha = 0
}
}
}
}
}
# copy of object_tooltip_pop_out
type scrollable_object_tooltip_pop_out = scrolltip {
blockoverride "scrolltip_header" {
hbox_header_tooltip = {}
margin_bottom = -10
}
blockoverride "scrolltip_content" {
# Override main_description if you plan to build a fully custom pop out, otherwise override the components
block "main_description"
{
block "extra_data" {}
textbox = {
name = "warning_description"
using = DefaultTooltipText
layoutpolicy_horizontal = expanding
multiline = yes
block "warning_description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
textbox = {
name = "above_description"
max_width = 420
using = DefaultTooltipText
layoutpolicy_horizontal = expanding
multiline = yes
block "above_description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
# NOTE: This edit box is filled by TooltipInfo.GetTintColor from code in order to set the correct size when the tooltip is created and positioned and then it uses the text property specified here in the next frames
textbox = {
name = "Description"
layoutpolicy_horizontal = expanding
max_width = 420
using = DefaultTooltipText
multiline = yes
block "description_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
alwaystransparent = no
}
block "extra_data_after_description" {}
block "call_to_action" {}
# Things like "click to X", hotkeys etc
block "input_info" {
textbox = {
name = "input_info"
layoutpolicy_horizontal = expanding
margin_top = 10
using = DefaultTooltipText
multiline = yes
block "input_info_text" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
textbox = {
name = "TooltipTextShortcut"
layoutpolicy_horizontal = expanding
using = DefaultTooltipText
margin = { 10 10 }
margin_top = 10
block "tooltip_text_shortcut" {}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}
type hbox_header_tooltip = hbox {
layoutpolicy_horizontal = expanding
spacing = 10
background = {
using = Background_Header
margin = { 15 0 }
margin_bottom = 10
}
background = {
using = Background_Header_Pattern
margin = { 15 0 }
margin_bottom = 10
}
block "header_tt" {
margin = { 0 10 }
}
hbox = {
layoutpolicy_horizontal = expanding
block "header_additions" {
hbox = {}
}
vbox = {
name = "FancyHeader"
layoutpolicy_horizontal = expanding
alwaystransparent = no
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
name = "title"
fontsize_min = 14
using = Font_Size_Medium
align = nobaseline
block "title_text" {
margin = { 0 4 }
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
# use subtitle_text blockoverride or replace this entire block
block "subheading"
{
text_single = {
layoutpolicy_horizontal = expanding
autoresize = yes
block "fontsize_min" {
fontsize_min = 14
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
using = Font_Size_Small
align = nobaseline
block "subtitle_text"
{
text = ""
}
block "max_width"
{
max_width = 400
}
block "multiline" {}
}
}
}
}
expand = {}
vbox = {
layoutpolicy_vertical = expanding
text_single = {
name = "concept_link"
layoutpolicy_horizontal = expanding
block "concept_link" {
raw_text = "#D Missing concept link!#!"
}
fonttintcolor = "[TooltipInfo.GetTintColor]"
}
}
}
}