diff --git a/common/buildings/holding_district_buildings/00_temple_citadel_district_buildings.txt b/common/buildings/holding_district_buildings/00_temple_citadel_district_buildings.txt new file mode 100644 index 000000000..bedbeb917 --- /dev/null +++ b/common/buildings/holding_district_buildings/00_temple_citadel_district_buildings.txt @@ -0,0 +1,1405 @@ +# Need Types Used In This File +# - trade_good: trade_good_incense +# - trade_good_category: trade_category_jewelry_materials +# +# Modifier Types Used In This File +# - defender_holding_advantage +# - fort_level +# - monthly_piety +# - monthly_piety_from_buildings_mult +# - monthly_religious_tax +# - religious_tax_mult +# - travel_danger +# +# Temple Citadel Tithe Collection +# Gives: province: religious_tax_mult; market: trade_category_jewelry_materials_sell_price_mult +# Needs: trade_category_jewelry_materials -> province: monthly_religious_tax +temple_citadel_tithe_collection_1 = { + type_icon = "duchy_buildings/tax_assessor.dds" + next_building = temple_citadel_tithe_collection_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + religious_tax_mult = 0.025 + } + market_modifier = { + trade_category_jewelry_materials_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = precious_stones_resource_need + not_rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + } + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = ascetic_basic_resource_need + rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = super_poor_building_tax_halved_tier_1 + } + } + } + ai_value = { + base = 10 + directive_to_build_economy_modifier = yes + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +# Temple Citadel Tithe Collection +# Gives: province: religious_tax_mult; market: trade_category_jewelry_materials_sell_price_mult +# Needs: trade_category_jewelry_materials x2 -> province: monthly_religious_tax +temple_citadel_tithe_collection_2 = { + next_building = temple_citadel_tithe_collection_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + religious_tax_mult = 0.05 + } + market_modifier = { + trade_category_jewelry_materials_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = precious_stones_resource_need + + can_be_filled_multiple_times = 2 + + not_rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + } + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = ascetic_basic_resource_need + + can_be_filled_multiple_times = 2 + + rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = super_poor_building_tax_halved_tier_1 + } + } + } + ai_value = { + base = 10 + directive_to_build_economy_modifier = yes + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +# Temple Citadel Tithe Collection +# Gives: province: religious_tax_mult; market: trade_category_jewelry_materials_sell_price_mult +# Needs: trade_category_jewelry_materials x3 -> province: monthly_religious_tax +temple_citadel_tithe_collection_3 = { + next_building = temple_citadel_tithe_collection_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + religious_tax_mult = 0.075 + } + market_modifier = { + trade_category_jewelry_materials_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = precious_stones_resource_need + + can_be_filled_multiple_times = 3 + + not_rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + } + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = ascetic_basic_resource_need + + can_be_filled_multiple_times = 3 + + rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = super_poor_building_tax_halved_tier_1 + } + } + } + ai_value = { + base = 10 + directive_to_build_economy_modifier = yes + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +# Temple Citadel Tithe Collection +# Gives: province: religious_tax_mult; market: trade_category_jewelry_materials_sell_price_mult +# Needs: trade_category_jewelry_materials x4 -> province: monthly_religious_tax +temple_citadel_tithe_collection_4 = { + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + religious_tax_mult = 0.1 + } + market_modifier = { + trade_category_jewelry_materials_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = precious_stones_resource_need + + can_be_filled_multiple_times = 4 + + not_rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + } + } + trade_good_need = { + trade_good_category = trade_category_jewelry_materials + amount = ascetic_basic_resource_need + + can_be_filled_multiple_times = 4 + + rite_parameter = poverty_luxury_modest + modifiers = { + province_modifier = { + monthly_religious_tax = super_poor_building_tax_halved_tier_1 + } + } + } + ai_value = { + base = 10 + directive_to_build_economy_modifier = yes + ai_general_building_modifier = yes + ai_economical_building_preference_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +# Temple Citadel Shrine +# Gives: character: monthly_piety; character_government (government_is_mandala): monthly_piety; market: trade_good_incense_sell_price_mult +# Needs: trade_good_incense -> character: monthly_piety +temple_citadel_shrine_1 = { + type_icon = "old_buildings/water_temples.dds" + next_building = temple_citadel_shrine_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct = { + } + can_construct_potential = { + scope:holder = { + faith = { NOT = { has_doctrine = special_doctrine_is_christian_faith } } + } + } + can_construct_showing_failures_only = { + } + character_modifier = { + monthly_piety = 0.1 + } + county_modifier = { + } + province_modifier = { + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + modifiers = { + character_modifier = { + monthly_piety = 0.05 + } + } + } + character_government_modifier = { + parameter = government_is_mandala + monthly_piety = 0.1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +# Temple Citadel Shrine +# Gives: character: monthly_piety; character_government (government_is_mandala): monthly_piety; market: trade_good_incense_sell_price_mult +# Needs: trade_good_incense x2 -> character: monthly_piety +temple_citadel_shrine_2 = { + next_building = temple_citadel_shrine_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct = { + } + can_construct_potential = { + scope:holder = { + faith = { NOT = { has_doctrine = special_doctrine_is_christian_faith } } + } + } + can_construct_showing_failures_only = { + } + character_modifier = { + monthly_piety = 0.2 + } + county_modifier = { + } + province_modifier = { + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + + can_be_filled_multiple_times = 2 + + modifiers = { + character_modifier = { + monthly_piety = 0.05 + } + } + } + character_government_modifier = { + parameter = government_is_mandala + monthly_piety = 0.1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +# Temple Citadel Shrine +# Gives: character: monthly_piety; character_government (government_is_mandala): monthly_piety, monthly_piety_from_buildings_mult; market: trade_good_incense_sell_price_mult +# Needs: trade_good_incense x3 -> character: monthly_piety +temple_citadel_shrine_3 = { + next_building = temple_citadel_shrine_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct = { + } + can_construct_potential = { + scope:holder = { + faith = { NOT = { has_doctrine = special_doctrine_is_christian_faith } } + } + } + can_construct_showing_failures_only = { + } + character_modifier = { + monthly_piety = 0.3 + } + county_modifier = { + } + province_modifier = { + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + + can_be_filled_multiple_times = 3 + + modifiers = { + character_modifier = { + monthly_piety = 0.05 + } + } + } + character_government_modifier = { + parameter = government_is_mandala + monthly_piety_from_buildings_mult = 0.1 + monthly_piety = 0.4 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +# Temple Citadel Shrine +# Gives: character: monthly_piety; character_government (government_is_mandala): monthly_piety, monthly_piety_from_buildings_mult; market: trade_good_incense_sell_price_mult +# Needs: trade_good_incense x4 -> character: monthly_piety +temple_citadel_shrine_4 = { + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct = { + } + can_construct_potential = { + scope:holder = { + faith = { NOT = { has_doctrine = special_doctrine_is_christian_faith } } + } + } + can_construct_showing_failures_only = { + } + character_modifier = { + monthly_piety = 0.4 + } + county_modifier = { + } + province_modifier = { + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + + can_be_filled_multiple_times = 4 + + modifiers = { + character_modifier = { + monthly_piety = 0.05 + } + } + } + character_government_modifier = { + parameter = government_is_mandala + monthly_piety_from_buildings_mult = 0.2 + monthly_piety = 0.6 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +# Temple Citadel Outer Wall +# Gives: province: defender_holding_advantage, travel_danger, religious_tax_mult, fort_level +temple_citadel_outer_wall_1 = { + type_icon = "regular_buildings/hill_forts.dds" + next_building = temple_citadel_outer_wall_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + defender_holding_advantage = 1 + travel_danger = -8 + religious_tax_mult = low_building_tax_mult_halved_tier_1 + fort_level = 1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + directive_to_fortify_modifier = yes + ai_defensive_need_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +# Temple Citadel Outer Wall +# Gives: province: defender_holding_advantage, travel_danger, religious_tax_mult, fort_level +temple_citadel_outer_wall_2 = { + next_building = temple_citadel_outer_wall_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + defender_holding_advantage = 2 + travel_danger = -8 + religious_tax_mult = low_building_tax_mult_halved_tier_2 + fort_level = 1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + directive_to_fortify_modifier = yes + ai_defensive_need_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +# Temple Citadel Outer Wall +# Gives: province: defender_holding_advantage, travel_danger, religious_tax_mult, fort_level +temple_citadel_outer_wall_3 = { + next_building = temple_citadel_outer_wall_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + defender_holding_advantage = 3 + travel_danger = -8 + religious_tax_mult = low_building_tax_mult_halved_tier_3 + fort_level = 2 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + directive_to_fortify_modifier = yes + ai_defensive_need_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +# Temple Citadel Outer Wall +# Gives: province: defender_holding_advantage, travel_danger, religious_tax_mult, fort_level +temple_citadel_outer_wall_4 = { + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct = { + } + can_construct_potential = { + } + can_construct_showing_failures_only = { + } + character_modifier = { + } + county_modifier = { + } + province_modifier = { + defender_holding_advantage = 4 + travel_danger = -8 + religious_tax_mult = low_building_tax_mult_halved_tier_4 + fort_level = 2 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + directive_to_fortify_modifier = yes + ai_defensive_need_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +# NEOW Christian and Greek Temple Citadel buildings +neow_citadel_cathedral_1 = { + type_icon = "holding_buildings/temple_citadel.dds" + next_building = neow_citadel_cathedral_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.075 + } + province_modifier = { + religious_tax_mult = 0.01 + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + modifiers = { + character_modifier = { + monthly_piety = 0.025 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_cathedral_2 = { + type_icon = "holding_buildings/temple_citadel.dds" + next_building = neow_citadel_cathedral_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.15 + } + province_modifier = { + religious_tax_mult = 0.02 + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + character_modifier = { + monthly_piety = 0.025 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_cathedral_3 = { + type_icon = "holding_buildings/temple_citadel.dds" + next_building = neow_citadel_cathedral_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.225 + } + province_modifier = { + religious_tax_mult = 0.03 + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + character_modifier = { + monthly_piety = 0.025 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_cathedral_4 = { + type_icon = "holding_buildings/temple_citadel.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.3 + } + province_modifier = { + religious_tax_mult = 0.04 + } + market_modifier = { + trade_good_incense_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_incense + amount = holding_district_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + character_modifier = { + monthly_piety = 0.025 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +neow_citadel_cloister_1 = { + type_icon = "special_buildings/jvari_monastery.dds" + next_building = neow_citadel_cloister_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.05 + } + county_modifier = { + monthly_popular_opinion_change = 0.1 + } + province_modifier = { + supply_limit_mult = 0.025 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_cloister_2 = { + type_icon = "special_buildings/jvari_monastery.dds" + next_building = neow_citadel_cloister_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.1 + } + county_modifier = { + monthly_popular_opinion_change = 0.2 + } + province_modifier = { + supply_limit_mult = 0.05 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_cloister_3 = { + type_icon = "special_buildings/jvari_monastery.dds" + next_building = neow_citadel_cloister_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.15 + } + county_modifier = { + monthly_popular_opinion_change = 0.3 + } + province_modifier = { + supply_limit_mult = 0.075 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_cloister_4 = { + type_icon = "special_buildings/jvari_monastery.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + character_modifier = { + monthly_piety = 0.2 + } + county_modifier = { + monthly_popular_opinion_change = 0.4 + } + province_modifier = { + supply_limit_mult = 0.1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +neow_citadel_pilgrim_house_1 = { + type_icon = "regular_buildings/caravanserai.dds" + next_building = neow_citadel_pilgrim_house_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + province_modifier = { + travel_danger = -3 + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + county_modifier = { + monthly_popular_opinion_change = 0.1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_pilgrim_house_2 = { + type_icon = "regular_buildings/caravanserai.dds" + next_building = neow_citadel_pilgrim_house_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + province_modifier = { + travel_danger = -6 + monthly_religious_tax = poor_building_tax_halved_tier_2 + } + county_modifier = { + monthly_popular_opinion_change = 0.2 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_pilgrim_house_3 = { + type_icon = "regular_buildings/caravanserai.dds" + next_building = neow_citadel_pilgrim_house_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + province_modifier = { + travel_danger = -9 + monthly_religious_tax = poor_building_tax_halved_tier_3 + } + county_modifier = { + monthly_popular_opinion_change = 0.3 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_pilgrim_house_4 = { + type_icon = "regular_buildings/caravanserai.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + } + } + province_modifier = { + travel_danger = -12 + monthly_religious_tax = poor_building_tax_halved_tier_4 + } + county_modifier = { + monthly_popular_opinion_change = 0.4 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +neow_citadel_icon_workshop_1 = { + type_icon = "old_buildings/workshops.dds" + next_building = neow_citadel_icon_workshop_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_piety = 0.05 + } + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_1 + } + market_modifier = { + trade_good_dyes_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_dyes + amount = holding_district_resource_need + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_icon_workshop_2 = { + type_icon = "old_buildings/workshops.dds" + next_building = neow_citadel_icon_workshop_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_piety = 0.1 + } + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_2 + } + market_modifier = { + trade_good_dyes_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_dyes + amount = holding_district_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_icon_workshop_3 = { + type_icon = "old_buildings/workshops.dds" + next_building = neow_citadel_icon_workshop_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_piety = 0.15 + } + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_3 + } + market_modifier = { + trade_good_dyes_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_dyes + amount = holding_district_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_icon_workshop_4 = { + type_icon = "old_buildings/workshops.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_piety = 0.2 + } + province_modifier = { + monthly_religious_tax = poor_building_tax_halved_tier_4 + } + market_modifier = { + trade_good_dyes_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_dyes + amount = holding_district_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +neow_citadel_chartophylakion_1 = { + type_icon = "regular_buildings/writing_offices.dds" + next_building = neow_citadel_chartophylakion_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_learning_lifestyle_xp_gain_mult = 0.02 + } + province_modifier = { + monthly_control_change_when_below_baseline_add = 0.05 + } + market_modifier = { + trade_good_books_paper_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_books_paper + amount = holding_district_resource_need + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_chartophylakion_2 = { + type_icon = "regular_buildings/writing_offices.dds" + next_building = neow_citadel_chartophylakion_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_learning_lifestyle_xp_gain_mult = 0.04 + } + province_modifier = { + monthly_control_change_when_below_baseline_add = 0.1 + } + market_modifier = { + trade_good_books_paper_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_books_paper + amount = holding_district_resource_need + can_be_filled_multiple_times = 2 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_chartophylakion_3 = { + type_icon = "regular_buildings/writing_offices.dds" + next_building = neow_citadel_chartophylakion_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_learning_lifestyle_xp_gain_mult = 0.06 + } + province_modifier = { + monthly_control_change_when_below_baseline_add = 0.15 + } + market_modifier = { + trade_good_books_paper_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_books_paper + amount = holding_district_resource_need + can_be_filled_multiple_times = 3 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_chartophylakion_4 = { + type_icon = "regular_buildings/writing_offices.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + character_modifier = { + monthly_learning_lifestyle_xp_gain_mult = 0.08 + } + province_modifier = { + monthly_control_change_when_below_baseline_add = 0.2 + } + market_modifier = { + trade_good_books_paper_sell_price_mult = price_holding_district_need + } + trade_good_need = { + trade_good = trade_good_books_paper + amount = holding_district_resource_need + can_be_filled_multiple_times = 4 + modifiers = { + province_modifier = { + religious_tax_mult = 0.01 + } + } + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + ai_pious_building_preference_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + +neow_citadel_akritai_1 = { + type_icon = "regular_buildings/watchtowers.dds" + next_building = neow_citadel_akritai_2 + cost_gold = regular_building_cost_tier_1 + construction_time = construction_time_6_months + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + province_modifier = { + levy_size = 0.025 + stationed_maa_toughness_mult = 0.025 + garrison_size = 0.05 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + directive_to_build_military_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 1 } + } +} + +neow_citadel_akritai_2 = { + type_icon = "regular_buildings/watchtowers.dds" + next_building = neow_citadel_akritai_3 + cost_gold = regular_building_cost_tier_2 + construction_time = construction_time_9_months + district_level_requirement = 2 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + province_modifier = { + levy_size = 0.05 + stationed_maa_toughness_mult = 0.05 + garrison_size = 0.1 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + directive_to_build_military_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 2 } + } +} + +neow_citadel_akritai_3 = { + type_icon = "regular_buildings/watchtowers.dds" + next_building = neow_citadel_akritai_4 + cost_gold = regular_building_cost_tier_3 + construction_time = construction_time_1_year + district_level_requirement = 3 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + province_modifier = { + levy_size = 0.075 + stationed_maa_toughness_mult = 0.075 + garrison_size = 0.15 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + directive_to_build_military_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 3 } + } +} + +neow_citadel_akritai_4 = { + type_icon = "regular_buildings/watchtowers.dds" + cost_gold = regular_building_cost_tier_4 + construction_time = construction_time_3_years + district_level_requirement = 4 + can_construct_potential = { + has_holding_type = temple_citadel_holding + scope:holder = { + faith = { has_doctrine = special_doctrine_is_christian_faith } + culture = { has_cultural_pillar = heritage_greek } + } + } + province_modifier = { + levy_size = 0.1 + stationed_maa_toughness_mult = 0.1 + garrison_size = 0.2 + } + ai_value = { + base = 10 + ai_general_building_modifier = yes + directive_to_build_military_modifier = yes + ai_capital_preference_modifier = yes + ai_holding_district_building_modifier = { LEVEL = 4 } + } +} + diff --git a/common/character_interactions/pam_interactions.txt b/common/character_interactions/pam_interactions.txt index b090e4d1d..23367c5a1 100644 --- a/common/character_interactions/pam_interactions.txt +++ b/common/character_interactions/pam_interactions.txt @@ -12001,6 +12001,17 @@ replace_ecclesiastical_title_holder_interaction = { cost = { piety = { value = pam_grant_ecclesiastical_title_cost_value + if = { + limit = { + scope:target.holder ?= { + culture = { has_cultural_parameter = priest_kings_familial_elective_enabled } + } + } + add = { + value = pam_grant_ecclesiastical_title_cost_value + desc = neow_priest_kings_deposition_cost_desc + } + } # A Head of Rites acting for a faith with no Head of Faith pays more if = { limit = { NOT = { exists = scope:actor.faith.religious_head } } @@ -12009,6 +12020,17 @@ replace_ecclesiastical_title_holder_interaction = { } treasury_or_gold = { value = pam_grant_ecclesiastical_title_gold_cost_value + if = { + limit = { + scope:target.holder ?= { + culture = { has_cultural_parameter = priest_kings_familial_elective_enabled } + } + } + add = { + value = pam_grant_ecclesiastical_title_gold_cost_value + desc = neow_priest_kings_deposition_cost_desc + } + } } } @@ -12283,6 +12305,17 @@ grant_ecclesiastical_title_interaction = { cost = { piety = { value = pam_grant_ecclesiastical_title_cost_value + if = { + limit = { + scope:target.holder ?= { + culture = { has_cultural_parameter = priest_kings_familial_elective_enabled } + } + } + add = { + value = pam_grant_ecclesiastical_title_cost_value + desc = neow_priest_kings_deposition_cost_desc + } + } # A Head of Rites acting for a faith with no Head of Faith pays more if = { limit = { NOT = { exists = scope:actor.faith.religious_head } } @@ -12291,6 +12324,17 @@ grant_ecclesiastical_title_interaction = { } treasury_or_gold = { value = pam_grant_ecclesiastical_title_gold_cost_value + if = { + limit = { + scope:target.holder ?= { + culture = { has_cultural_parameter = priest_kings_familial_elective_enabled } + } + } + add = { + value = pam_grant_ecclesiastical_title_gold_cost_value + desc = neow_priest_kings_deposition_cost_desc + } + } } } diff --git a/common/districts/holding_districts.txt b/common/districts/holding_districts.txt new file mode 100644 index 000000000..e791421c4 --- /dev/null +++ b/common/districts/holding_districts.txt @@ -0,0 +1,326 @@ +castle_holding_district = { + primary_building = castle_01 + + #East Asia + background = { + trigger = { + culture ?= { has_graphical_east_asia_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/tgp_chinese_corridor_day.dds" + } + + #India + background = { + trigger = { + culture ?= { has_graphical_india_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/bp1_corridor_indian_day.dds" + } + + #Iberian + background = { + trigger = { + culture ?= { has_graphical_iberian_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/fp2_corridor_day.dds" + } + + #MENA + background = { + trigger = { + OR = { + culture ?= { has_graphical_mena_culture_group_trigger = yes } + culture ?= { has_graphical_iranian_culture_group_trigger = yes } + culture ?= { has_graphical_african_culture_group_trigger = yes } + } + } + reference = "gfx/interface/illustrations/event_scenes/fp2_corridor_night.dds" + } + + #Western Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/corridor_day.dds" + } + + type = holding + + buildings = { + oath_faithful_building_01 + castle_court_1 + castle_citadel_1 + castle_larder_1 + oath_warriors_building_01 + oath_poor_building_01 + castle_garrison_1 + castle_great_hall_1 + castle_training_grounds_1 + city_local_shrine_1 + city_magistrate_1 + } +} + +tribal_holding_district = { + primary_building = tribe_01 + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/ep3_campfire.dds" + } + + type = holding + buildings = { + oath_faithful_building_01 + tribe_craftsmens_lodge_1 + oath_warriors_building_01 + oath_poor_building_01 + tribe_warriors_compound_1 + tribe_sacred_grove_1 + } +} + +city_holding_district = { + primary_building = city_01 + + #East Asia + background = { + trigger = { + culture ?= { has_graphical_east_asia_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/tgp_alley_day_asia.dds" + } + + #India + background = { + trigger = { + culture ?= { has_graphical_india_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/gdp_artisans_street_india.dds" + } + + #MENA + background = { + trigger = { + OR = { + culture ?= { has_graphical_mena_culture_group_trigger = yes } + culture ?= { has_graphical_iranian_culture_group_trigger = yes } + culture ?= { has_graphical_african_culture_group_trigger = yes } + } + } + reference = "gfx/interface/illustrations/event_scenes/market_east.dds" + } + + #Mediterranean + background = { + trigger = { + culture ?= { has_graphical_mediterranean_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/ep3_medi_market.dds" + } + + #Steppe + background = { + trigger = { + culture ?= { has_graphical_steppe_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/event_scenes/market_tribal.dds" + } + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/alley_day.dds" + } + + type = holding + buildings = { + oath_faithful_building_01 + city_town_market_1 + city_town_watch_1 + city_magistrate_1 + city_council_hall_1 + oath_warriors_building_01 + oath_poor_building_01 + city_local_shrine_1 + } +} + +temple_holding_district = { + primary_building = temple_01 + + #Vaticano + background = { + trigger = { + this = title:b_vaticano.title_province + } + reference = "gfx/interface/illustrations/event_scenes/pam_papal_throne_room.dds" + } + + #Islamic + background = { + trigger = { + faith ?= { religion = religion:islam_religion } + } + reference = "gfx/interface/illustrations/event_scenes/mosque.dds" + } + + #Christian + background = { + trigger = { + faith ?= { has_doctrine = special_doctrine_is_christian_faith } + } + reference = "gfx/interface/illustrations/event_scenes/church.dds" + } + + #East Asian + background = { + trigger = { + OR = { + faith ?= { religion = religion:shintoism_religion } + AND = { + faith ?= { + religion = { + OR = { + is_in_family = rf_eastern + is_in_family = rf_sinitic + } + } + } + culture ?= { has_graphical_east_asia_culture_group_trigger = yes } + } + } + } + reference = "gfx/interface/illustrations/event_scenes/tgp_temple_asia.dds" + } + + #Eastern/Sinitic + background = { + trigger = { + faith ?= { + religion = { + OR = { + is_in_family = rf_eastern + is_in_family = rf_sinitic + } + } + } + } + reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_indian.dds" + } + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/temple.dds" + } + + type = holding + buildings = { + oath_faithful_building_01 + temple_hostels_1 + temple_reliquary_1 + temple_religious_fairs_1 + oath_warriors_building_01 + oath_poor_building_01 + temple_hospices_1 + megalith_1 + } +} + +nomad_holding_district = { + primary_building = nomadic_camp_01 + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/mpo_campfire_steppe.dds" + } + + type = holding +} + +herder_holding_district = { + primary_building = herder_camp_01 + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/mpo_hunt_steppe.dds" + } + + type = holding +} + +temple_citadel_holding_district = { + primary_building = temple_citadel_01 + + #Islamic + background = { + trigger = { + faith ?= { religion = religion:islam_religion } + } + reference = "gfx/interface/illustrations/event_scenes/mosque.dds" + } + + #Christian + background = { + trigger = { + faith ?= { has_doctrine = special_doctrine_is_christian_faith } + } + reference = "gfx/interface/illustrations/event_scenes/fp2_temple.dds" + } + + #East Asian + background = { + trigger = { + OR = { + faith ?= { religion = religion:shintoism_religion } + AND = { + faith ?= { + religion = { + OR = { + is_in_family = rf_eastern + is_in_family = rf_sinitic + } + } + } + culture ?= { has_graphical_east_asia_culture_group_trigger = yes } + } + } + } + reference = "gfx/interface/illustrations/event_scenes/tgp_temple_asia.dds" + } + + #Eastern/Sinitic + background = { + trigger = { + faith ?= { + religion = { + OR = { + is_in_family = rf_eastern + is_in_family = rf_sinitic + } + } + } + } + reference = "gfx/interface/illustrations/event_scenes/ep2_holysite_indian.dds" + } + + #Fallback + background = { + reference = "gfx/interface/illustrations/event_scenes/temple.dds" + } + + type = holding + buildings = { + oath_faithful_building_01 + temple_citadel_tithe_collection_1 + temple_citadel_shrine_1 + oath_warriors_building_01 + oath_poor_building_01 + castle_training_grounds_1 + temple_citadel_outer_wall_1 + temple_hospices_1 + neow_citadel_cathedral_1 + neow_citadel_cloister_1 + neow_citadel_pilgrim_house_1 + neow_citadel_icon_workshop_1 + neow_citadel_chartophylakion_1 + neow_citadel_akritai_1 + } +} diff --git a/gui/window_title.gui b/gui/window_title.gui new file mode 100644 index 000000000..8fe8e4698 --- /dev/null +++ b/gui/window_title.gui @@ -0,0 +1,2943 @@ +### TITLE WINDOW + +window = { + name = "title_view_window" + size = { 628 100% } + + movable = no + allow_outside = yes + alwaystransparent = yes + layer = middle + + state = { + name = _show + position = { 0 0 } + on_start = "[GetVariableSystem.Clear( 'display_allegiance' )]" + on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" + + using = Animation_FadeIn_Quick + using = Sound_WindowShow_Standard + } + + state = { + name = _hide + position_x = -60 + on_start = "[GetVariableSystem.Clear( 'hide_bottom_left_HUD' )]" + + using = Animation_FadeOut_Quick + using = Sound_WindowHide_Standard + } + + ###################################################### + #################### TITLE VIEW ###################### + ###################################################### + vbox = { + datacontext = "[TitleViewWindow.GetTitle]" + + using = Window_Margins_Sidebar + + ### Widget to push down window when viewing a Clerical Region or Holy Order title + widget = { + visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" + layoutpolicy_vertical = expanding + layoutstretchfactor_vertical = 2 + } + + ### Window decoration that is only being used when viewing a Clerical Region or Holy Order title + widget = { + visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" + size = { 612 22 } + + icon = { + parentanchor = bottom|hcenter + position = { 0 5 } + size = { 660 100% } + spriteType = Corneredtiled + spriteborder = { 60 0 } + texture_density = 2 + texture = "gfx/interface/skinned/component_decoration/decoration_frame_top.dds" + } + + icon = { + parentanchor = hcenter + position = { 0 -33 } + size = { 142 60 } + texture = "gfx/interface/skinned/component_decoration/decoration_frame_top_center.dds" + } + } + + vbox = { + name = "title_view_main_tab" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + layoutstretchfactor_vertical = 1 + + alwaystransparent = no + + using = Window_Background_Sidebar + using = Window_Margins_Sidebar + + state = { + name = _show + using = Animation_FadeIn_Quick + } + + state = { + name = _hide + using = Animation_FadeOut_Quick + } + + ### HEADER ### + hbox_window_title_header = {} + + ### Rulers in region label and portraits + vbox = { + visible = "[And( DataModelHasItems( TitleViewWindow.GetRealmsInRegion ), Title.HasHolder )]" + layoutpolicy_horizontal = expanding + + margin_bottom = 5 + spacing = 5 + + text_label_center = { + text = "TITLE_VIEW_RULERS_IN_REGION" + max_width = 500 + } + + widget = { + layoutpolicy_horizontal = expanding + + scrollbox = { + layoutpolicy_horizontal = expanding + resizeparent = yes + maximumsize = { -1 220 } + + blockoverride "scrollbox_content" { + set_parent_size_to_minimum = yes + + widget = { + size = { 558 0 } # min width + } + + fixedgridbox = { + visible = "[Title.HasClericalRegion]" + layoutpolicy_horizontal = expanding + addcolumn = 90 + addrow = 124 + flipdirection = yes + datamodel_wrap = 6 + datamodel = "[TitleViewWindow.GetRealmsInRegion]" + + item = { + widget = { + size = { 90 120 } + + proportional_icon = { + parentanchor = center + position = { -2 4 } + size = { 90 120 } + framesize = { 148 220 } + frame = 3 + texture = "gfx/interface/icons/roco_tabs/banner_tab_rank_02.dds" + + modify_texture = { + texture = "gfx/interface/colors/black.dds" + blend_mode = normal + alpha = 0.9 + } + + modify_texture = { + visible = "[And( GetPlayer.IsValid, Not( ObjectsEqual( Character.GetRite.Self, GetPlayer.GetRite.Self ) ) )]" + texture = "gfx/interface/colors/orange.dds" + blend_mode = normal + alpha = 0.12 + } + } + + portrait_head_small = {} + + button_rite_icon = { + datacontext = "[Character.GetRite]" + parentanchor = hcenter|bottom + position = { -2 0 } + size = { 30 30 } + + glow = { + visible = "[And( GetPlayer.IsValid, Not( ObjectsEqual( Character.GetFaith.Self, GetPlayer.GetFaith.Self ) ) )]" + color = { 0.3 0.1 0.1 0.8 } + glow_radius = 3 + } + } + } + } + } + } + } + } + } + + spacer = { + visible = "[TitleViewWindow.GetTitle.GetHolder.HasDomicile]" + size = { 10 10 } + } + + vbox = { + datacontext = "[Title.GetHolder]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + ### TABS ### + hbox = { + name = "tabs" + visible = "[Not(IsDataModelEmpty(TitleViewWindow.GetTitleAllegianceVassals))]" + layoutpolicy_horizontal = expanding + + button_tab = { + name = "show_vassals" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_DE_JURE" + default_format = "#weak" + + down = "[Not( GetVariableSystem.Exists( 'display_allegiance' ) )]" + onclick = "[GetVariableSystem.Clear( 'display_allegiance' )]" + } + + button_tab = { + name = "show_allegiance" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_VASSALS" + default_format = "#weak" + + down = "[GetVariableSystem.Exists( 'display_allegiance' )]" + onclick = "[GetVariableSystem.Set( 'display_allegiance', 'true' )]" + } + } + + vbox = { + name = "dejure_tab_contents" + datacontext = "[TitleViewWindow.GetTitle]" + visible = "[And(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), Not(Or(GetVariableSystem.Exists( 'display_allegiance' ), Or(Title.IsMercenaryCompany,Title.IsHolyOrder))))]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + margin_top = 15 + spacing = 10 + + text_label_center = { + text = "[TitleViewWindow.GetDeJureDescription]" + max_width = 565 + } + + scrollbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + minimumsize = { 0 250 } + + background = { + using = Background_Area_Holding + } + + blockoverride "scrollbox_content" { + vbox = { + layoutpolicy_horizontal = expanding + datamodel = "[TitleViewWindow.GetVassalGroupItems]" + spacing = 10 + + item = { + vbox = { + layoutpolicy_horizontal = expanding + + vbox = { + datamodel = "[DeJureVassalGroupItem.GetTitleItems]" + layoutpolicy_horizontal = expanding + spacing = 5 + + text_single = { + layoutpolicy_horizontal = expanding + text = "[DeJureVassalGroupItem.GetOwnedBy]" + default_format = "#low" + max_width = 555 + margin = { 0 10 } + } + + item = { + button_standard_list = { + datacontext = "[TitleItem.GetTitle]" + layoutpolicy_horizontal = expanding + minimumsize = { 0 60 } + onclick = "[DefaultOnCoatOfArmsClick(Title.GetID)]" + onrightclick = "[DefaultOnCoatOfArmsRightClick(Title.GetID)]" + button_ignore = none + + tooltipwidget = { + using = LandedTitleTooltip + } + + coa_title_tiny_crown = { + parentanchor = left|vcenter + position = { 8 -3} + } + + hbox = { + margin_left = 50 + spacing = 5 + + text_single = { + layoutpolicy_horizontal = expanding + text = "TITLE_NAME_NO_TOOLTIP" + default_format = "#high" + max_width = 515 + align = nobaseline + } + } + } + } + } + } + } + } + } + } + } + + scrollbox = { + name = "tab_contents_empty" + visible = "[And(Not(Or(DataModelHasItems(TitleViewWindow.GetVassalGroupItems), GetVariableSystem.Exists( 'display_allegiance' ))), Not(Or(Title.HasClericalRegion, Title.IsHolyOrder)))]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + background = { + using = Background_Area_Holding + } + + blockoverride "scrollbox_content" { + vbox = { + layoutpolicy_vertical = expanding + + container = { + visible = "[Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems))]" + + text_single = { + visible = "[Not(TitleViewWindow.GetTitle.IsBarony)]" + text = "TITLE_VIEW_TITULAR" + default_format = "#weak" + } + + text_single = { + visible = "[TitleViewWindow.GetTitle.IsBarony]" + text = "TITLE_VIEW_BARONY_NO_DEJURE" + default_format = "#weak" + } + } + } + } + } + + vbox = { + name = "vassals_tab_contents" + visible = "[GetVariableSystem.Exists( 'display_allegiance' )]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + margin_top = 10 + spacing = 15 + + text_label_center = { + text = "TITLE_ALLEGIANCE_VASSAL_LIST" + max_width = 500 + } + + scrollbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + minimumsize = { 0 300 } + + blockoverride "scrollbox_content" { + vbox = { + datamodel = "[TitleViewWindow.GetTitleAllegianceVassals]" + layoutpolicy_horizontal = expanding + spacing = 3 + + item = { + button_standard_list = { + layoutpolicy_horizontal = expanding + minimumsize = { 0 50 } + onclick = "[DefaultOnCharacterClick(Character.GetID)]" + onrightclick = "[DefaultOnCharacterRightClick(Character.GetID)]" + button_ignore = none + + hbox = { + margin = { 5 0 } + position = {0 -2 } + + coa_realm_tiny_crown = {} + + text_single = { + text = "[Character.GetNameNoTooltip]" + layoutpolicy_horizontal = expanding + margin = { 10 0 } + autoresize = no + align = nobaseline + default_format = "#clickable" + } + + } + } + } + } + } + } + } + + vbox_domicile_button = { + name = "title_view_cathedral_complex_tutorial_uses_this" + visible = "[And( Title.HasHolder, And( Title.HasDomicile, Not(DataModelHasItems(TitleViewWindow.GetVassalGroupItems)) ) )]" + } + + spacer = { + visible = "[TitleViewWindow.GetTitle.GetHolder.HasDomicile]" + size = { 10 10 } + } + + hbox = { + layoutpolicy_horizontal = expanding + visible = "[Title.IsLeasedOut]" + datacontext = "[Title.GetLessee]" + spacing = 5 + margin = { 10 10 } + + background = { + using = Background_Area_Dark + alpha = 0.6 + } + + portrait_head_small = {} + + text_single = { + layoutpolicy_horizontal = expanding + text = "TITLE_VIEW_LEASED_OUT" + align = nobaseline + } + + expand = {} + } + + ### Military Section + vbox = { + datacontext = "[Title.GetHolyOrder]" + visible = "[And( Title.IsHolyOrder, HolyOrder.IsMilitary )]" + layoutpolicy_horizontal = expanding + + background = { + using = Background_Area_Dark + alpha = 0.6 + } + + ### Regiments type & size + hbox = { + datacontext = "[TitleViewWindow.GetHiredTroopsItem]" + layoutpolicy_horizontal = expanding + + margin_top = 10 + margin_bottom = 10 + margin_left = 15 + + text_single = { + min_width = 150 + max_width = 150 + + text = "FAITH_VIEW_HOLY_ORDER_DETAILS_MAA" + align = nobaseline + } + + overlappingitembox = { + layoutpolicy_horizontal = expanding + size = { -1 40 } + + datamodel = "[HiredTroopItem.GetRegiments]" + item = { + icon = { + name = "men_at_arms_icon" + datacontext = "[HiredTroopRegiment.GetRegiment]" + size = { 40 40 } + texture = "[Regiment.GetMAAType.GetIcon]" + + tooltipwidget = regiment_container_tooltip + using = tooltip_se + + } + } + } + + hbox_soldiers_and_quality_small = { + datacontext = "[HiredTroopItem.GetComposition]" + } + } + } + + hbox = { + datacontext = "[Title.GetHolyOrder]" + visible = "[And( Title.IsHolyOrder, HolyOrder.GetTenet.IsValid )]" + layoutpolicy_horizontal = expanding + margin = { 10 5 } + + hbox = { + spacing = 10 + + container_tenet_item_small = { + datacontext = "[HolyOrder.GetTenet]" + datacontext = "[HolyOrder.GetRite]" + } + + vbox = { + layoutpolicy_vertical = expanding + margin_top = 5 + + hbox = { + layoutpolicy_horizontal = expanding + + text_label_left = { + datacontext = "[HolyOrder.GetTenet]" + align = nobaseline + text = "[TenetType.GetName( HolyOrder.GetRite.Self )]" + using = Font_Size_Medium + max_width = 486 + } + + expand = {} + } + + text_multi = { + min_width = 486 + layoutpolicy_horizontal = expanding + text = "TITLE_VIEW_HOLY_ORDER_TENET_HEADING" + align = nobaseline + default_format = "#weak" + } + + expand = {} + } + + } + expand = {} + } + + ### Leased Holdings + # TODO_UX_PAM horizontal scrollarea is a temporary solution, we probably want a button that opens a title list subwindow + # but needs proper UX evaluation + hbox = { + visible = "[Title.IsHolyOrder]" + layoutpolicy_horizontal = expanding + margin = { 15 0 } + + background = { + using = Background_Area_Dark + alpha = 0.6 + } + + text_single = { + min_width = 150 + max_width = 150 + text = "FAITH_VIEW_HOLY_ORDER_DETAILS_LEASED_TITLES" + align = nobaseline + layoutpolicy_vertical = expanding + } + + + flowcontainer = { + datacontext = "[Title.GetHolyOrder]" + visible = "[Title.IsHolyOrder]" + layoutpolicy_horizontal = expanding + + margin = { 0 10 } + + wrap_count = 11 + + datamodel = "[HolyOrder.GetLeasedTitles]" + item = { + coa_title_tiny_crown_with_status_icons = { + allow_outside = yes + } + } + } + } + + hbox = { + datacontext = "[TitleViewWindow.GetTitle.GetPreferredCapital]" + visible = "[And( And( And( And( Title.IsValid, Not( TitleViewWindow.GetTitle.HasFaction ) ), Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) ), Or( Not( TitleViewWindow.GetTitle.IsClericalRegion ), Not( TitleViewWindow.GetTitle.HasHolder ) ) ), Not( TitleViewWindow.GetTitle.HasClericalElector ) ) ]" + layoutpolicy_horizontal = expanding + + margin = { 15 10 } + + background = { + using = Background_Area_Dark + alpha = 0.6 + } + + text_single = { + text = "[SelectLocalization( TitleViewWindow.GetTitle.HasClericalRegion, 'TITLE_VIEW_CLERICAL_REGION_CAPITAL', 'TITLE_VIEW_DE_JURE_CAPITAL' )]" + align = nobaseline + min_width = 150 + max_width = 150 + } + + hbox = { + datacontext = "[Title.GetCountyData.GetCount.GetFaith]" + visible = "[TitleViewWindow.GetTitle.IsClericalRegion]" + margin_left = 10 + + button_religion_icon = { + size = { 40 40 } + } + } + + widget = { + size = { 36 44 } + + coa_title_tiny_crown = { + parentanchor = center + position = { 0 -3 } + } + } + + text_single = { + layoutpolicy_horizontal = expanding + autoresize = no + text = "[Title.GetName|U]" + align = nobaseline + max_width = 245 + + margin_left = 5 + } + + expand = {} + + hbox = { + name = "buttons" + visible = "[Not( Title.HasFaction )]" + + divider_light = { + layoutpolicy_vertical = expanding + } + + spacer = { + size = { 10 0 } + } + + # character interactions + hbox = { + datacontext = "[TitleViewWindow.GetTitle.GetHolder]" + datacontext = "[TitleViewWindow.GetTitle]" + visible = "[And( Title.HasHolder, Not( Or( Title.IsMercenaryCompany, Title.IsHolyOrder ) ) )]" + spacing = 2 + + container_single_interaction = { + visible = "[Character.IsLocalPlayer]" + + blockoverride "interaction_name" { + name = "request_unformed_title_interaction" + } + + blockoverride "button_round_interaction" { + button_round_interaction = { + + blockoverride "icon" {} + + button_icon_highlight = { + parentanchor = center + size = { 27 27 } + texture = "gfx/interface/icons/flat_icons/ecclesiastical_bestow_title_interaction.dds" + } + } + } + } + + button_round_interaction = { + name = "ecclesiastical_bestow_title_interaction" + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/ecclesiastical_bestow_title_interaction.dds" + alwaystransparent = yes + } + } + } + + button_round_interaction = { + name = "demand_church_succession_interaction" + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/clerical_score.dds" + alwaystransparent = yes + } + } + } + + button_round_interaction = { + name = "demand_church_succession_religious_head_interaction" + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/clerical_score.dds" + alwaystransparent = yes + } + } + } + + button_round_interaction_title = { + name = "buy_claim_interaction" + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 30 30 } + texture = "gfx/interface/icons/flat_icons/buy_claim_interaction.dds" + alwaystransparent = yes + } + } + } + } + + hbox_title_shared_buttons = { + datacontext = "[TitleViewWindow.GetTitle]" + datacontext = "[Title.GetHolder]" + } + + button_round = { + name = "toggle_find_vassal" + visible = "[And( And( TitleViewWindow.GetTitle.GetHolder.IsValid, ObjectsEqual( TitleViewWindow.GetTitle.GetHolder, GetPlayer ) ), And( TitleViewWindow.GetTitle.CanUseFindVassal( GetPlayer ), Not( TitleViewWindow.GetTitle.IsLeasedOut ) ) )]" + + onclick = "[TitleViewWindow.ToggleFindVassalListWindow]" + tooltip = "FIND_VASSAL_BUTTON_TOOLTIP" + + button_grant_title_to_vassal = { + parentanchor = center + alwaystransparent = yes + } + } + + hbox = { + datacontext = "[TitleViewWindow.GetTitle]" + datacontext = "[Title.GetHolder]" + visible = "[And( Title.HasHolder, Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder)))]" + ignoreinvisible = yes + spacing = 3 + + button_round = { + name = "remove_law" + visible = "[And( Character.IsLocalPlayer, TitleViewWindow.GetTitle.HasLaws )]" + enabled = "[IsValidCommand( TitleViewWindow.GetClearLaws )]" + onclick = "[CreateCommandPopup( TitleViewWindow.GetClearLaws )]" + tooltip = "[TitleViewWindow.GetClearLawsButtonTooltip]" + + button_remove_laws = { + parentanchor = center + alwaystransparent = yes + } + } + + button_round = { + name = "open_laws" + visible = "[And( Character.IsLocalPlayer, TitleViewWindow.CanAddLaws )]" + onclick = "[TitleViewWindow.ToggleLaws]" + tooltip = "ADD_LAWS_TOOLTIP" + + button_add_laws = { + parentanchor = center + alwaystransparent = yes + } + } + } + + hbox = { + datacontext = "[TitleViewWindow.GetTitle]" + datacontext = "[TitleViewWindow.GetTitle.GetHolder]" + visible = "[Not(Or(Title.IsMercenaryCompany,Title.IsHolyOrder))]" + spacing = 3 + + button_round = { + name = "destroy_title" + visible = "[And( TitleViewWindow.ShowDestroy, And( Not( TitleViewWindow.GetTitle.IsClericalRegion ), Not( TitleViewWindow.GetTitle.HasClericalElector ) ) )]" + enabled = "[IsValidCommand( TitleViewWindow.GetDestroyTitle )]" + onclick = "[CreateCommandPopup( TitleViewWindow.GetDestroyTitle )]" + tooltip = "[TitleViewWindow.GetDestroyTitleButtonTooltip]" + + button_destroy_title = { + parentanchor = center + alwaystransparent = yes + } + } + + button_round = { + name = "make_primary_title" + visible = "[And( And( Character.IsLocalPlayer, TitleViewWindow.CanMakePrimary ), Not( GreaterThan_CFixedPoint( GetPlayer.MakeScope.Var('hide_make_primary_title').GetValue, '(CFixedPoint)0' ) ))]" + onclick = "[TitleViewWindow.MakePrimary]" + tooltip = "TITLE_MAKE_PRIMARY_TOOLTIP" + + button_make_primary = { + parentanchor = center + alwaystransparent = yes + } + } + + button_round = { + name = "usurp_title" + visible = "[And4( Not(Character.IsLocalPlayer), TitleViewWindow.ShowUsurp, Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ), Or( Not( IsRepublican( GetPlayer ) ), Not( LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) ) )]" + enabled = "[IsValidCommand( TitleViewWindow.GetUsurpTitle )]" + onclick = "[CreateCommandPopup( TitleViewWindow.GetUsurpTitle )]" + tooltip = "[TitleViewWindow.GetUsurpTitleButtonTooltip]" + + button_usurp_title = { + parentanchor = center + alwaystransparent = yes + } + } + } + } + } + + vbox = { + name = "create_title" + visible = "[And( Nor4( Title.IsBarony, TitleViewWindow.GetTitle.HasHolder, Title.IsNobleFamilyTitle, Title.HasClericalRegion ), Or( Not( IsNomad( GetPlayer ) ), GreaterThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" + margin = { 0 25 } + spacing = 15 + + text_single = { + text = "TITLE_VIEW_NOT_CREATED" + using = Font_Size_Big + } + + vbox = { + layoutpolicy_horizontal = expanding + + hbox = { + layoutpolicy_horizontal = expanding + tooltip = "[TitleViewWindow.GetMinimumDeJureTooltip]" + + icon = { + name = "icon_yes" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + visible = "[TitleViewWindow.HasEnoughCounties]" + } + + icon = { + name = "icon_no" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + visible = "[Not(TitleViewWindow.HasEnoughCounties)]" + } + + text_single = { + text = "[TitleViewWindow.GetMinimumDeJureText]" + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + visible = "[Not( GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" + tooltip = "[TitleViewWindow.GetMinimumGoldTooltip]" + icon = { + name = "icon_yes" + visible = "[TitleViewWindow.HasEnoughGold]" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + } + + icon = { + name = "icon_no" + visible = "[Not(TitleViewWindow.HasEnoughGold)]" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + } + + text_single = { + text = "[TitleViewWindow.GetMinimumGoldText]" + } + + expand = {} + } + hbox = { + layoutpolicy_horizontal = expanding + tooltip = "[TitleViewWindow.GetMinimumPietyCostTooltip]" + visible = "[GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )]" + + text_single = { + text = "[TitleViewWindow.GetMinimumPietyText]" + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + visible = "[And( Not(GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' )), Not( TitleViewWindow.HasTitlesOfTier ))]" + tooltip = "[TitleViewWindow.GetTitlesOfTierTooltip]" + + icon = { + name = "icon_yes" + visible = "[TitleViewWindow.HasTitlesOfTier]" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + } + + icon = { + name = "icon_no" + visible = "[Not( TitleViewWindow.HasTitlesOfTier )]" + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + } + + text_single = { + text = "[TitleViewWindow.GetTitlesOfTierText]" + } + + expand = {} + } + hbox = { + layoutpolicy_horizontal = expanding + visible = "[And( GreaterThan_int32( Title.GetTierFrame, '(int32)3' ), GetPlayer.GetGovernment.HasRule( 'considers_piety_for_title_creation' ))]" + + text_single = { + text = "[TitleViewWindow.GetMinimumPietyLevelText]" + } + + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[GetScriptedGui( 'empire_faith_gate_organized_faith_check' )]" + visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + } + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" + } + text_single = { + text = "empire_faith_gate_panel_organized_faith" + } + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[GetScriptedGui( 'empire_faith_gate_hof_check' )]" + visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + } + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" + } + text_single = { + text = "empire_faith_gate_panel_hof_approval" + } + expand = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[GetScriptedGui( 'empire_faith_gate_vassals_check' )]" + visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_check.dds" + visible = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End )]" + } + icon = { + size = { 25 25 } + texture = "gfx/interface/icons/symbols/icon_cross.dds" + visible = "[Not( ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).AddScope( 'landed_title', Title.MakeScope ).End ) )]" + } + text_single = { + text = "empire_faith_gate_panel_vassals_approve" + } + expand = {} + } + } + + text_single = { + text = "[TitleViewWindow.GetGainText]" + } + + button_primary = { + visible = "[Or( Not( IsRepublican( GetPlayer ) ), Not( LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) ) )]" + enabled = "[IsValidCommand( TitleViewWindow.GetCreateTitle )]" + onclick = "[CreateCommandPopup( TitleViewWindow.GetCreateTitle )]" + tooltip = "[TitleViewWindow.GetCreateTitleButtonTooltip]" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 10 0 } + + expand = {} + + text_single = { + text = "TITLE_VIEW_CREATE_TITLE" + align = nobaseline + default_format = "#high" + } + + spacer = { + size = { 5 0 } + } + + icon = { + texture = "gfx/interface/icons/title_actions/create_title.dds" + size = { 25 25 } + alwaystransparent = yes + + modify_texture = { + texture = "gfx/interface/colors/gold.dds" + alpha = 1 + } + } + + expand = {} + } + } + # Republic version: we disable creation of higher-tier titles, as republics may only create lower-tier titles + button_primary = { + visible = "[And( IsRepublican( GetPlayer ), LessThanOrEqualTo_int32( GetPlayer.GetPrimaryTitle.GetTierFrame, Title.GetTierFrame ) )]" + enabled = no + onclick = "[CreateCommandPopup( TitleViewWindow.GetCreateTitle )]" + tooltip = "republic_create_title_button_desc" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 10 0 } + + expand = {} + + text_single = { + text = "TITLE_VIEW_CREATE_TITLE" + align = nobaseline + default_format = "#high" + } + + spacer = { + size = { 5 0 } + } + + icon = { + texture = "gfx/interface/icons/title_actions/create_title.dds" + size = { 25 25 } + alwaystransparent = yes + + modify_texture = { + texture = "gfx/interface/colors/gold.dds" + alpha = 1 + } + } + + expand = {} + } + } + } + + vbox = { + name = "create_title_nomad" + datacontext = "[GetDecisionWithKey('nomad_higher_tier_title_decision')]" + visible = "[And( Decision.IsShownForPlayer, ObjectsEqual( Title.Self, GetPlayer.GetPrimaryTitle.GetDeJureLiege ) )]" + margin = { 0 25 } + spacing = 15 + + text_single = { + visible = "[Not( Title.HasHolder )]" + text = "TITLE_VIEW_NOT_CREATED" + using = Font_Size_Big + } + + button_primary = { + tooltip = "nomad_higher_tier_title_tooltip_desc" + onclick = "[OpenGameViewData( 'decision_detail', Decision.Self)]" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 10 0 } + + expand = {} + + text_single = { + text = "TITLE_VIEW_CREATE_TITLE_NOMAD" + align = nobaseline + default_format = "#high" + } + + spacer = { + size = { 5 0 } + } + + icon = { + texture = "gfx/interface/icons/title_actions/create_title.dds" + size = { 25 25 } + alwaystransparent = yes + + modify_texture = { + texture = "gfx/interface/colors/gold.dds" + alpha = 1 + } + } + + expand = {} + } + } + } + + vbox = { + name = "create_title_clerical_region" + datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount]" + datacontext = "[Character.GetFaith]" + visible = "[And( Not( Title.HasHolder ), Title.IsClericalRegion )]" + + layoutpolicy_horizontal = expanding + margin = { 10 5 } + spacing = 15 + + # capital holder + vbox = { + visible = "[Or( Not( Faith.HasParameterByKey( 'has_clerical_regions' ) ), Nor( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) ) )]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + spacing = 15 + margin_bottom = 15 + + background = { + using = Background_Area + margin = { 10 0 } + margin_top = 10 + } + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + portrait_head_small = {} + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + text_single = { + layoutpolicy_horizontal = expanding + text = "TITLE_VIEW_COUNT_FAITH" + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[Character.GetFaith]" + spacing = 15 + + hbox = { + spacing = 4 + margin_right = 10 + + background = { + visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.Self, Faith.Self ) )]" + using = Status_Bad + margin_top = 2 + alpha = 0.6 + } + + button_religion_icon = { + size = { 45 45 } + } + + text_single = { + max_width = 200 + text = "[Faith.GetName]" + align = nobaseline + } + } + + text_single = { + visible = "[Faith.HasParameterByKey( 'has_clerical_regions' )]" + layoutpolicy_horizontal = expanding + autoresize = no + + text = "FAITH_USES_CLERICAL_REGIONS" + align = nobaseline + } + + text_single = { + visible = "[Not( Faith.HasParameterByKey( 'has_clerical_regions' ) )]" + layoutpolicy_horizontal = expanding + autoresize = no + + text = "FAITH_DOESNT_USE_CLERICAL_REGIONS" + align = nobaseline + } + + expand = {} + } + } + + expand = {} + } + } + + vbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 5 + margin = { 10 5 } + + # you can't grant + text_multi = { + visible = "[Or( Not( Faith.HasParameterByKey( 'has_clerical_regions' ) ), Nor( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) ) )]" + layoutpolicy_horizontal = expanding + autoresize = yes + max_width = 550 + margin_bottom = 15 + + text = "TITLE_VIEW_CANNOT_GRANT_CLERICAL_REGION" + default_format = "#low" + } + + # you can grant + hbox = { + visible = "[Faith.HasParameterByKey( 'has_clerical_regions' )]" + + # you can grant it + hbox = { + visible = "[Or( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) )]" + layoutpolicy_horizontal = expanding + + text_multi = { + layoutpolicy_horizontal = expanding + autoresize = yes + max_width = 550 + + text = "TITLE_VIEW_YOU_CAN_GRANT_CLERICAL_REGION" + default_format = "#low" + } + } + } + + expand = {} + } + + # suggestions + # if you are HoF or HoR of the main rite with no HoF + vbox = { + visible = "[Or( ObjectsEqual( Faith.GetReligiousHead.Self, GetPlayer.Self ), And( Not( Faith.GetReligiousHead.IsValid ), ObjectsEqual( Faith.GetMainRite.GetHeadOfRite.Self, GetPlayer.Self ) ) )]" + layoutpolicy_horizontal = expanding + + spacing = 10 + + text_label_left = { + visible = "[GreaterThan_int32( PdxGuiWidget.AccessParent.FindChild('suggested').CountVisibleChildren, '(int32)0')]" + layoutpolicy_horizontal = expanding + text = "TITLE_VIEW_SUGGESTED_CLERGY" + } + + vbox = { + name = "suggested" + layoutpolicy_horizontal = expanding + spacing = 10 + + hbox_suggested_clergy_item = { + datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetCouncillor( 'councillor_court_chaplain' )]" + visible = "[And( Character.IsValid, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" + } + + hbox_suggested_clergy_item = { + datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.GetCouncillor( 'councillor_court_chaplain' )]" + visible = "[And3( Character.IsValid, Title.GetPreferredCapital.GetCountyData.GetCount.HasLiege, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" + } + + hbox_suggested_clergy_item = { + datacontext = "[Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.GetLiege.GetCouncillor( 'councillor_court_chaplain' )]" + visible = "[And3( Character.IsValid, Title.GetPreferredCapital.GetCountyData.GetCount.GetLiege.HasLiege, Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self ) )]" + } + } + } + } + } + + vbox_strength_info = { + visible = "[Title.IsMercenaryCompany]" + datacontext = "[Title.GetMercenaryCompany]" + + blockoverride "hired_troops_knights" { + text = "TITLE_VIEW_MERCENARY_NUMBER_OF_KNIGHTS" + } + + blockoverride "hired_troops_soldiers" { + text = "TITLE_VIEW_MERCENARY_NUMBER_OF_SOLDIERS" + } + + blockoverride "strength_values" { + value = "[CurrentAndMaxToProgressbarValueInt32( MercenaryCompany.GetCurrentSoldiers, MercenaryCompany.GetMaxSoldiers )]" + } + } + + #### PORTRAITS ### + vbox_title_associated_characters = { + visible = "[TitleViewWindow.GetTitle.HasHolder]" + layoutpolicy_horizontal = expanding + } + + ### Hire Buttons + vbox = { + datacontext = "[Title.GetHolyOrder]" + datacontext = "[TitleViewWindow.GetHiredTroopsItem]" + visible = "[And( Title.IsHolyOrder, HolyOrder.IsMilitary )]" + layoutpolicy_horizontal = expanding + + vbox_hired_troops_hire_buttons = {} + } + } + } + } +} + +###################################################### +################ TYPES AND TEMPLATES ################# +###################################################### + + +template title_view_window_side_pop_out +{ + position = { 0 80 } + + + state = { + name = _show + using = Animation_FadeIn_Standard + position_x = 630 + } + + state = { + name = _hide + using = Animation_FadeOut_Standard + position_x = 500 + } +} + +template Background_Area_Holding +{ + texture = "[GetIllustration( 'title_holding' ).GetTexture( Title.MakeScope )]" + alpha = 0.5 + fittype = centercrop + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_vertical.dds" + blend_mode = alphamultiply + mirror = vertical + } + + using = Mask_Rough_Edges +} + +types Title +{ + type vbox_title_type_text = vbox { + + text_single = { + layoutpolicy_horizontal = expanding + visible = "[StringIsEmpty(Title.GetSpecialDescription)]" + max_width = 340 + text = "TV_TIER_INFO" + } + + text_single = { + layoutpolicy_horizontal = expanding + visible = "[Not(StringIsEmpty(Title.GetSpecialDescription))]" + max_width = 340 + text = "[Title.GetSpecialDescription]" + align = nobaseline + } + } + + type vbox_domicile_button = vbox + { + datacontext = "[Character.GetDomicile]" + layoutpolicy_horizontal = expanding + margin = { 10 0 } + + background = { + fittype = centercrop + alpha = 0.4 + texture = "[Domicile.GetType.GetIllustration( Domicile.Self )]" + margin = { -10 0 } + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" + blend_mode = alphamultiply + } + + modify_texture = { + texture = "gfx/interface/component_overlay/overlay_effect.dds" + blend_mode = overlay + } + } + + button_standard_clean = { + layoutpolicy_horizontal = expanding + block "size" { + size = { 0 80 } + } + + onclick = "[ToggleGameViewData( 'domicile', Domicile.Self )]" + + background = { + visible = "[IsGameViewOpen( 'domicile' )]" + using = Background_Button_Illustration + } + + using = Background_Vignette_Button + + hbox = { + layoutpolicy_horizontal = expanding + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + margin = { 10 0 } + + hbox = { + name = "domicile_header" + layoutpolicy_horizontal = expanding + + hbox = { + layoutpolicy_horizontal = expanding + + background = { + margin_left = 15 + margin_right = 25 + margin_top = 0 + margin_bottom = 5 + + texture = "gfx/interface/component_tiles/tile_title_bg_01.dds" + spriteType = Corneredtiled + spriteborder = { 40 8 } + texture_density = 2 + + modify_texture = { + name = "mask" + texture = "gfx/interface/component_masks/mask_fade_horizontal.dds" + blend_mode = alphamultiply + mirror = horizontal + } + } + + text_single = { + layoutpolicy_horizontal = expanding + autoresize = no + text = "[Domicile.GetMainLevelText]" + max_width = 545 + } + + expand = {} + } + + block "header_extra" {} + } + + block "domicile_extra" {} + + hbox = { + name = "domicile_construction_info" + + layoutpolicy_horizontal = expanding + + minimumsize = { 0 40 } + + vbox = { + tooltip = "[Domicile.GetBuildingUnderConstruction.GetConstructionTooltip( Character.Self )]" + using = tooltip_ne + + text_single = { + max_width = 420 + text = "[Domicile.GetConstructionStatusText]" + align = nobaseline + } + + hbox = { + layoutpolicy_horizontal = expanding + + progressbar_standard = { + name = "building_progressbar" + visible = "[Domicile.IsConstructing]" + alwaystransparent = yes + + layoutpolicy_horizontal = expanding + maximumsize = { -1 15 } + value = "[Multiply_float( FixedPointToFloat( Domicile.GetConstructionProgress ), '(float)100' )]" + direction = horizontal + } + + expand = {} + } + } + + text_single = { + margin_right = 52 + visible = "[And( ObjectsEqual( Domicile.GetOwner.Self, GetPlayer ), Domicile.CanUpgradeMain )]" + text = "[Domicile.GetUpgradeMainText]" + default_format = "#P" + } + + expand = {} + } + } + + widget_access_domicile_button = { + block "big_button" { + visible = "[And( Character.HasDomicile, ObjectsEqual( Character.Self, GetPlayer ) )]" + } + } + + widget = { + size = { 12 0 } + } + + expand = {} + } + } + } + + + ### Widget that displays current holder, and line of succession, at the bottom of the title view. + # + # Holder | Line of Succession + # +---+ | + # |^ ^| | +-+ +-+ +-+ +-+ +-+ + # | _ | | | | | | | | | | | | + # +---+ | +-+ +-+ +-+ +-+ +-+ + # + type vbox_title_associated_characters = vbox { + ignoreinvisible = yes + margin_top = 6 + + hbox = { + layoutpolicy_horizontal = expanding + margin_left = 10 + margin_bottom = 10 + + vbox_title_current_holder = { + layoutpolicy_vertical = expanding + datacontext = "[TitleViewWindow.GetTitle.GetHolder]" + } + + vbox = { + visible = "[Title.IsHolyOrder]" + layoutpolicy_vertical = expanding + margin = { 10 10 } + margin_top = 42 + + divider_light = { + layoutpolicy_vertical = expanding + } + } + + vbox_title_line_of_succession = { + name = "title_view_succession_tutorial_uses_this" + visible = "[Not( Title.HasFaction )]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + } + + expand = {} + } + } + + + ## Current holder of the title (displayed in the bottom left of the title view) + type vbox_title_current_holder = vbox { + + background = { + visible = "[And( GetPlayer.IsValid, Title.HasClericalRegion )]" + texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" + spriteType = Corneredtiled + margin_top = -30 + margin_left = 10 + alpha = 0.2 + + modify_texture = { + visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ) )]" + using = Color_Grey + blend_mode = normal + } + + modify_texture = { + visible = "[And( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ), ObjectsEqual( GetPlayer.GetRite.Self, Character.GetRite.Self ) )]" + using = Color_Bright_Yellow + blend_mode = normal + } + + modify_texture = { + visible = "[And( ObjectsEqual( GetPlayer.GetFaith.GetReligion, Character.GetFaith.GetReligion ), Not( ObjectsEqual( GetPlayer.GetRite.Self, Character.GetRite.Self ) ) )]" + using = Color_Red + blend_mode = normal + } + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_corner.dds" + blend_mode = alphamultiply + mirror = horizontal|vertical + } + + modify_texture = { + texture = "gfx/interface/component_masks/mask_rough_edges.dds" + spriteType = Corneredtiled + spriteborder = { 20 20 } + texture_density = 2 + blend_mode = alphamultiply + } + } + + background = { + visible = "[And( GetPlayer.IsValid, Not( Title.HasClericalRegion ) )]" + texture = "gfx/interface/component_masks/patterns/mask_pattern_06.dds" + using = Color_Blue + spriteType = Corneredtiled + margin_top = -30 + margin_left = 10 + alpha = 0.3 + + modify_texture = { + texture = "gfx/interface/component_masks/mask_fade_corner.dds" + blend_mode = alphamultiply + mirror = horizontal|vertical + } + + modify_texture = { + texture = "gfx/interface/component_masks/mask_rough_edges.dds" + spriteType = Corneredtiled + spriteborder = { 20 20 } + texture_density = 2 + blend_mode = alphamultiply + } + } + + text_label_center = { + layoutpolicy_horizontal = expanding + text = "TITLE_VIEW_HOLDER" + max_width = 250 + } + + # Spacer that is only visible when viewing a Clerical Region to align with Succession portraits + spacer = { + visible = "[Title.HasClericalRegion]" + layoutpolicy_horizontal = expanding + alwaystransparent = yes + size = { 0 45 } + allow_outside = yes + + widget = { + size = { 75 75 } + scissor = yes + position = { -10 5 } + + widget = { + size = { 100% 100% } + background = { + texture = "gfx/interface/component_masks/mask_arrow.dds" + margin_bottom = 75 + mirror = horizontal + using = Color_Black + alpha = 0.65 + } + } + } + + button_rite_icon = { + datacontext = "[Character.GetRite]" + size = { 55 55 } + position = { -5 13 } + } + } + + expand = {} + + hbox = { + # Current Holder Portrait + widget = { + size = { 165 200 } + allow_outside = no + + portrait_torso = { + blockoverride "portrait_button_size" + { + size = { 300 280 } + } + + blockoverride "portrait_mask" + { + mask = "gfx/portraits/portrait_mask_body.dds" + } + + blockoverride "portrait_texture" + { + portrait_texture = "[Character.GetPortrait('environment_torso', 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" + } + + blockoverride "portrait_status_icons" { + portrait_status_icons = { + parentanchor = bottom|right + position = { -15 -5 } + scale = 0.85 + + background = { + using = Background_Area_Dark + margin = { 2 3 } + alpha = 0.8 + } + } + } + } + } + + # Patron small portrait, only visible for holy orders + vbox = { + datacontext = "[Title.GetHolyOrder]" + visible = "[Title.IsHolyOrder]" + layoutpolicy_vertical = expanding + + margin_top = 15 + + portrait_head_small = { + datacontext = "[HolyOrder.GetPatron]" + } + + text_label_center = { + text = "FAITH_VIEW_HOLY_ORDER_DETAILS_PATRON" + max_width = 85 + } + + expand = {} + + hbox = { + visible = "[And( Character.IsValid, Not( IsObserver ) )]" + layoutpolicy_horizontal = expanding + + button_round = { + onclick = "[ToggleFilteredCharacterInteractionMenu(Character.Self, 'interaction_category_religion')]" + tooltip = "RELIGIOUS_INTERACTIONS_BUTTON_TOOLTIP" + tooltip_visible = "[Not(IsInteractionMenuOpenForCharacterWithFilter(Character.Self, 'interaction_category_religion'))]" + + button_icon = { + alwaystransparent = yes + parentanchor = center + size = { 30 30 } + texture = "gfx/interface/icons/flat_icons/character_interactions.dds" + } + + text_single = { + position = { 0 3 } + parentanchor = bottom|hcenter + + background = { + margin = { 5 0 } + margin_top = -5 + using = Background_Area_Dark + } + + text = "[GetNumberOfValidInteractionsWithFilter( Character.Self, 'interaction_category_religion' )]" + default_format = "#glow_color:{0.1,0.1,0.1,1.0}" + } + } + expand = {} + } + } + } + + # interactions + hbox = { + visible = "[Title.IsClericalRegion]" + layoutpolicy_horizontal = expanding + allow_outside = yes + margin_top = 10 + margin_bottom = 4 + margin_left = 5 + + spacing = 6 + + expand = {} + + button_interactions_religion = { + glow = { + color = { 0 0 0 0.5 } + glow_radius = 8 + } + } + + container_single_interaction = { + visible = "[Title.GetHolder.IsLocalPlayer]" + blockoverride "interaction_name" { + name = "request_ecclesiastical_title_expansion_interaction" + } + + blockoverride "button_round_interaction" { + button_round_interaction = { + + blockoverride "icon" {} + + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/request_ecclesiastical_title_expansion_interaction.dds" + } + } + } + # we don't ask ourselves and ignore the archbishop check, jumping straight to religious authority + blockoverride "show_archbishop" { + visible = no + } + blockoverride "ignore_archbishop" {} + + blockoverride "show_interaction" { + visible = "[And3( Character.IsPlayerInteractionShown( PdxGuiWidget.GetName ), Character.IsValid, Character.IsPlayerInteractionValid( PdxGuiWidget.GetName ) )]" + } + } + + button_round_interaction = { + name = "expand_ecclesiastical_title_interaction" + + blockoverride "show_interaction" { + visible = "[And3( Character.IsPlayerInteractionShown( PdxGuiWidget.GetName ), Character.IsValid, Character.IsPlayerInteractionValid( PdxGuiWidget.GetName ) )]" + } + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/request_ecclesiastical_title_expansion_interaction.dds" + alwaystransparent = yes + } + } + } + + container_single_interaction = { + blockoverride "interaction_name" { + name = "request_elevation_interaction" + } + blockoverride "ignore_archbishop" {} + + blockoverride "button_round_interaction" { + button_round_interaction_title = { + + blockoverride "icon" { + button_icon_highlight = { + parentanchor = center + position = { 0 1 } + size = { 25 25 } + texture = "gfx/interface/icons/flat_icons/faith.dds" + alwaystransparent = yes + } + } + } + } + } + + # if you have a best candidate who isn't you, this lets you invest yourself + hbox = { + datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" + datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)0' )]" + datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" + + visible = "[And( And( TitleViewWindow.ShowAppointment, AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) ), Not( Character.IsLocalPlayer ) )]" + + button_round_interaction_title = { + name = "influence_clerical_candidacy_interaction" + datacontext = "[GetPlayer]" + + blockoverride "icon" { + button_promote_candidate = { + parentanchor = center + alwaystransparent = yes + } + } + } + } + } + } + + + ## Titles line of succession (displayed at the bottom right of the title view) + type vbox_title_line_of_succession = vbox { + datacontext = "[TitleViewWindow.GetTitle]" + + ### Title Destroyed + vbox = { + visible = "[Title.IsDestroyedOnSuccession]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + hbox = { + layoutpolicy_horizontal = expanding + + text_single = { + text = "TITLE_VIEW_SUCCESSION_NONE" + default_format = "#weak" + } + } + } + + ### Succession Exists + vbox = { + visible = "[Not( Title.IsDestroyedOnSuccession )]" + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + hbox = { + layoutpolicy_horizontal = expanding + + text_label_center = { + text = "TITLE_VIEW_SUCCESSION" + max_width = 330 + } + } + + expand = {} + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + hbox = { + layoutpolicy_horizontal = expanding + visible = "[Title.HasLaws]" + + vbox = { + layoutpolicy_vertical = expanding + margin_top = 2 + margin_left = 2 + + icon = { + name = "has_laws" + size = { 25 25 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + + expand = {} + } + + text_multi = { + layoutpolicy_horizontal = expanding + size = { 0 100 } + margin = { 4 5 } + max_width = 310 + + text = "[Title.GetSuccessionDescription]" + } + } + + text_multi = { + visible = "[Not( Title.HasLaws )]" + layoutpolicy_horizontal = expanding + size = { 0 80 } + margin = { 20 5 } + max_width = 310 + + text = "[Title.GetSuccessionDescription]" + align = center|nobaseline + } + + vbox = { + visible = "[Or( And( Title.HasSuccessionOrder( 'election' ), Not( Title.HasClericalRegion ) ), Title.HasElectionType( 'priest_kings_familial_elective' ) )]" + layoutpolicy_vertical = expanding + margin_right = 20 + + expand = {} + + # Round button in the top right that opens the election window + button_round = { + name = "show_election_window" + datacontext = "[Title.GetHolder]" + size = { 60 60 } + + tooltip = "TITLE_VIEW_SHOW_ELECTION_TT" + onclick = "[TitleViewWindow.OpenElection]" + + button_election_vote = { + alwaystransparent = yes + parentanchor = center + position = { 1 -1 } + size = { 40 40 } + } + } + expand = {} + } + } + + hbox = { + visible = "[Not( TitleViewWindow.ShowAppointment )]" + datamodel = "[TitleViewWindow.GetLineOfSuccession]" + + item = { + portrait_head_small = {} + } + } + + hbox = { + visible = "[And3( Not( TitleViewWindow.ShowAppointment ), ObjectsEqual( Title.GetHolder, GetTitleByKey( 'k_papal_state' ).GetHolder ), ObjectsEqual( GetPlayer.GetRite, Title.GetHolder.GetRite ) )]" + + margin_top = 10 + margin_right = 5 + + button_standard = { + size = { 250 40 } + text = "TITLE_VIEW_COLLEGE_OF_CARDINALS" + onclick = "[ToggleGameView( 'cardinals_window' )]" + tooltip = "TITLE_VIEW_COLLEGE_OF_CARDINALS_TOOLTIP" + } + } + + hbox = { + datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" + visible = "[TitleViewWindow.ShowAppointment]" + + blockoverride "score_breakdown" { + datacontext = "[TitleViewWindow.GetSuccessionScoreBreakdown( Character.Self )]" + } + + # default admin succession + hbox_admin_title_successor_candidates_list = { + visible = "[Not( Title.GetHolder.HasClericalRegion )]" + } + # clerical succession with bigger portraits, with one less for all numbers + hbox_admin_title_successor_candidates_list = { + visible = "[Title.GetHolder.HasClericalRegion]" + blockoverride "show_candidate" { + visible = "[AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)2' )]" + } + blockoverride "candidates_datamodel_small" { + datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)2')]" + } + blockoverride "candidate_datacontext" { + datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)2' )]" + } + blockoverride "not_show_candidate" { + visible = "[Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)2' ) )]" + datamodel = "[DataModelFirst( AdminVassalSuccessorCandidateList.GetSuccessorCandidates, '(int32)3')]" + } + } + } + + hbox = { + visible = "[And( TitleViewWindow.ShowAppointment, TitleViewWindow.ShouldShowFollowAppointment )]" + layoutpolicy_horizontal = expanding + + spacer = { size = { 30 0 } } + + vbox = { + datacontext = "[Title.GetHolder]" + + coa_title_small_crown = { + datacontext = "[TitleViewWindow.GetFollowAppointmentTitle]" + } + } + + text_multi = { + layoutpolicy_horizontal = expanding + size = { 0 80 } + text = "TITLE_VIEW_APPOINTMENT_FOLLOW" + align = center|nobaseline + } + + spacer = { size = { 10 0 } } + } + + hbox = { + name = "title_appointment" + visible = "[TitleViewWindow.ShowAppointment]" + margin_top = 10 + spacing = 5 + + button_standard = { + size = { 150 40 } + text = "TITLE_VIEW_APPOINTMENT" + + onclick = "[ToggleGameViewData( 'title_appointment', Title.GetID )]" + + tooltip = "TITLE_VIEW_APPOINTMENT_TOOLTIP" + } + + # INVEST IN BEST LOCAL PLAYER CANDIDATE IF THEY EXIST + hbox = { + datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" + datacontext = "[AdminVassalSuccessorCandidateList.GetBestLocalPlayerCandidate( '(int32)0' )]" + datacontext = "[AdminVassalSuccessorCandidate.GetCandidate]" + + visible = "[And( TitleViewWindow.ShowAppointment, AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) )]" + layoutpolicy_horizontal = expanding + + # appointment + # show for county or higher in japan and duchy or higher elsewhere + button_standard = { + visible = "[And3( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown( 'influence_candidacy_interaction' ), Not( Title.IsClericalRegion ) )]" + size = { 180 40 } + + enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" + onclick = "[Character.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" + + tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" + + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 8 4 } + + button_promote_candidate = { + alwaystransparent = yes + } + + text_single = { + text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON + align = nobaseline + default_format = "#clickable" + max_width = 130 + } + } + } + + # clerical appointment + button_standard = { + visible = "[And5( GetPlayer.GetGovernment.IsType( 'ecclesiastical_government' ), TitleViewWindow.ShowAppointment, Title.IsPrimary, Character.IsPlayerInteractionShown( 'influence_clerical_candidacy_interaction' ), Title.IsClericalRegion )]" + size = { 180 40 } + + onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_clerical_candidacy_interaction', Title.Self )]" + enabled = "[And( Character.IsPlayerInteractionWithTargetTitleValid( 'influence_clerical_candidacy_interaction', Title.Self ), Character.IsPlayerInteractionShownAndCanPickTitle( 'influence_clerical_candidacy_interaction', Title.Self ) )]" + tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'influence_clerical_candidacy_interaction', Title.Self )]" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 8 4 } + + button_promote_candidate = { + alwaystransparent = yes + } + + text_single = { + text = ADMIN_VASSAL_DETAILS_VOTE_FOR_SUCCESSOR_BUTTON + align = nobaseline + default_format = "#clickable" + max_width = 130 + } + } + } + } + + # INVEST IN ANYONE (FALLBACK) + hbox = { + datacontext = "[TitleViewWindow.GetSuccessorCandidateList]" + + visible = "[And( TitleViewWindow.ShowAppointment, Not( AdminVassalSuccessorCandidateList.ShowBestPlayerCandidateIndependently( '(int32)0' ) ) )]" + layoutpolicy_horizontal = expanding + + # appointment + button_standard = { + visible = "[And3( Or( And( GetPlayer.GetGovernment.IsType( 'japan_administrative_government' ), Not( Title.IsBarony) ), Not( Or( Title.IsCounty, Title.IsBarony) ) ), Character.IsPlayerInteractionShown( 'influence_candidacy_interaction' ), Not( Title.IsClericalRegion ) )]" + size = { 180 40 } + + enabled = "[Character.IsPlayerInteractionValid('influence_candidacy_interaction')]" + onclick = "[Character.GetTopLiege.OpenPlayerInteractionWithTargetTitle('influence_candidacy_interaction', Title.Self)]" + + tooltip = "[Character.GetPlayerInteractionTooltip('influence_candidacy_interaction')]" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 8 4 } + + button_promote_candidate = { + alwaystransparent = yes + } + + text_single = { + text = "influence_clerical_candidacy_interaction_short" + align = nobaseline + default_format = "#clickable" + } + } + } + + # clerical appointment + button_standard = { + datacontext = "[GetPlayer]" + visible = "[And5( GetPlayer.GetGovernment.IsType( 'ecclesiastical_government' ), TitleViewWindow.ShowAppointment, Title.IsPrimary, Character.IsPlayerInteractionShown( 'influence_clerical_candidacy_interaction' ), Title.IsClericalRegion )]" + size = { 180 40 } + + onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'influence_clerical_candidacy_interaction', Title.Self )]" + enabled = "[And( Character.IsPlayerInteractionWithTargetTitleValid( 'influence_clerical_candidacy_interaction', Title.Self ), Character.IsPlayerInteractionShownAndCanPickTitle( 'influence_clerical_candidacy_interaction', Title.Self ) )]" + tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'influence_clerical_candidacy_interaction', Title.Self )]" + + hbox = { + layoutpolicy_horizontal = expanding + margin = { 8 4 } + + button_promote_candidate = { + alwaystransparent = yes + } + + text_single = { + text = "influence_clerical_candidacy_interaction_short" + align = nobaseline + default_format = "#clickable" + max_width = 130 + } + } + } + } + } + } + } + + hbox = { + visible = "[Title.GetHolder.HasRealmTermEndDate]" + layoutpolicy_horizontal = expanding + margin = { 4 0 } + + progressbar_republic_term = { + value = "[Title.GetHolder.GetRealmTermProgressPercent]" + } + } + + expand = {} + } + + type hbox_suggested_clergy_item = hbox { + layoutpolicy_horizontal = expanding + spacing = 10 + + portrait_head_small = {} + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + background = { + using = Background_Area + margin = { 4 4 } + } + + text_single = { + layoutpolicy_horizontal = expanding + autoresize = no + text = "[Character.GetShortUINameNoTooltip]" + align = nobaseline + } + + expand = {} + + hbox = { + using = character_age_or_death_text + } + + hbox_skills_grid_character_model = {} + } + + hbox = { + layoutpolicy_horizontal = expanding + datacontext = "[Character.GetRite]" + spacing = 10 + + button_rite_icon = { + size = { 35 35 } + } + + text_single = { + layoutpolicy_horizontal = expanding + autoresize = no + + text = "[Character.GetRelationToString( Character.GetLiege.Self )]" + tooltip = "[Character.GetRelationToStringExtended( Character.GetLiege.Self )]" + align = nobaseline + } + + expand = {} + + hbox = { + spacing = 10 + + text_single = { + text = "TITLE_VIEW_GRANT" + default_format = "#clickable" + align = nobaseline + } + + button_round = { + datacontext = "[GetCharacterInteraction( 'grant_ecclesiastical_title_interaction' )]" + + enabled = "[Character.IsPlayerInteractionWithTargetTitleValid( 'grant_ecclesiastical_title_interaction', Title.Self )]" + onclick = "[Character.OpenPlayerInteractionWithTargetTitle( 'grant_ecclesiastical_title_interaction', Title.Self )]" + tooltip = "[Character.GetPlayerInteractionWithTargetTitleTooltip( 'grant_ecclesiastical_title_interaction', Title.Self )]" + + button = { + parentanchor = center + size = { 60% 60% } + alwaystransparent = yes + + texture = "[CharacterInteraction.GetIcon( Character.Self )]" + } + } + } + + } + } + + expand = {} + } + + type hbox_window_title_header = hbox { + name = "header_area" + layoutpolicy_horizontal = expanding + + # Two variations of the header background so it can adapt better to the amount of information in the + # header for Clerical Regions and Monastic Orders vs regular titles + background = { + visible = "[Not( Or( Title.HasClericalRegion, Title.IsHolyOrder ) )]" + using = Background_Header + margin = { 4 0 } + margin_bottom = 20 + } + + background = { + visible = "[Not( Or( Title.HasClericalRegion, Title.IsHolyOrder ) )]" + using = Background_Header_Pattern + margin = { 4 0 } + margin_bottom = 20 + } + + background = { + visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" + using = Background_Header + margin = { 4 0 } + margin_bottom = 5 + } + + background = { + visible = "[Or( Title.HasClericalRegion, Title.IsHolyOrder )]" + using = Background_Header_Pattern + margin = { 4 0 } + margin_bottom = 5 + } + + vbox = { + layoutpolicy_vertical = expanding + margin = { 5 0 } + + #Different sized widgets so crowns of each tier align with the header + #Hegemony and Empire Titles + widget = { + visible = "[GreaterThanOrEqualTo_int32(Title.GetTierFrame, '(int32)6')]" + size = { 96 150 } + + coa_title_big_crown = { + datacontext = "[TitleViewWindow.GetTitle]" + parentanchor = bottom|hcenter + scale = 0.9 + + tooltip = "[Title.GetCOADeJureTooltip]" + + icon = { + name = "has_laws" + visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" + parentanchor = bottom|right + position = { -5 0 } + size = { 42 42 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + } + } + + # Kingdom Titles + widget = { + visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)5')]" + size = { 96 142 } + + coa_title_big_crown = { + datacontext = "[TitleViewWindow.GetTitle]" + parentanchor = bottom|hcenter + scale = 0.9 + + tooltip = "[Title.GetCOADeJureTooltip]" + + icon = { + name = "has_laws" + visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" + parentanchor = bottom|right + position = { -5 0 } + size = { 42 42 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + } + } + + # Duchy Titles + widget = { + visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)4')]" + size = { 96 133 } + + coa_title_big_crown = { + datacontext = "[TitleViewWindow.GetTitle]" + parentanchor = bottom|hcenter + scale = 0.9 + + tooltip = "[Title.GetCOADeJureTooltip]" + + icon = { + name = "has_laws" + visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" + parentanchor = bottom|right + position = { -5 0 } + size = { 42 42 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + } + } + + # County Titles + widget = { + visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)3')]" + size = { 96 128 } + + coa_title_big_crown = { + datacontext = "[TitleViewWindow.GetTitle]" + parentanchor = bottom|hcenter + scale = 0.9 + + tooltip = "[Title.GetCOADeJureTooltip]" + + icon = { + name = "has_laws" + visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" + parentanchor = bottom|right + position = { -5 0 } + size = { 42 42 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + } + } + + # Barony Titles + widget = { + visible = "[EqualTo_int32(Title.GetTierFrame, '(int32)2')]" + size = { 96 110 } + + coa_title_big_crown = { + datacontext = "[TitleViewWindow.GetTitle]" + parentanchor = bottom|hcenter + scale = 0.9 + + tooltip = "[Title.GetCOADeJureTooltip]" + + icon = { + name = "has_laws" + visible = "[And( InDebugMode, TitleViewWindow.GetTitle.HasLaws) ]" + parentanchor = bottom|right + position = { -5 0 } + size = { 42 42 } + texture = "gfx/interface/icons/title_status/icon_title_law.dds" + } + } + } + + expand = {} + } + + vbox = { + layoutpolicy_horizontal = expanding + layoutpolicy_vertical = expanding + + vbox = { + datacontext = "[TitleViewWindow.GetTitle]" + layoutpolicy_horizontal = expanding + ignoreinvisible = yes + spacing = 5 + + hbox = { + layoutpolicy_horizontal = expanding + + vbox = { + margin_top = 5 + + hbox_title_name_text = {} + + vbox_title_type_text = { + datacontext = "[GuiScope.SetRoot( TitleViewWindow.GetTitle.MakeScope ).GetScriptValueBreakdown( 'appointment_title_value' )]" + layoutpolicy_horizontal = expanding + + text_single = { + visible = "[TitleViewWindow.HasMeritPoolData]" + layoutpolicy_horizontal = expanding + + text = "[TitleViewWindow.GetMeritPoolDescription]" + max_width = 330 + } + + using = tooltip_ne + tooltip_visible = "[ValueBreakdown.HasTooltip]" + tooltipwidget = { + visible = "[ValueBreakdown.HasTooltip]" + + widget_value_breakdown_tooltip = { + blockoverride "header" { + text_label_left = { + layoutpolicy_horizontal = expanding + text = prominence_breakdown_header + default_format = "#T" + } + } + } + } + } + } + + watch_window_button = { + size = { 60 40 } + onclick = "[AddWatchWindow( TitleViewWindow.GetTitle.MakeScope )]" + } + + expand = {} + + vbox = { + layoutpolicy_vertical = expanding + + buttons_window_control = { + blockoverride "extra_buttons" { + button_pin = { + shortcut = "pin" + tooltip = "TITLE_PIN_TT" + onclick = "[Title.ToggleTitlePinned]" + visible = "[Not(Title.IsPinned)]" + } + button_unpin = { + shortcut = "pin" + tooltip = "TITLE_PIN_TT" + onclick = "[Title.ToggleTitlePinned]" + visible = "[Title.IsPinned]" + } + } + + blockoverride "button_close" + { + onclick = "[TitleViewWindow.Close]" + onclick = "[TitleViewWindow.CloseHistory]" + onclick = "[TitleViewWindow.CloseClaimants]" + } + + blockoverride "button_back" + { + visible = "[HasViewHistory]" + onclick = "[OpenFromViewHistory]" + tooltip = "[GetViewHistoryTooltip]" + } + + blockoverride "button_me" + { + onclick = "[DefaultOnCharacterClick(GetPlayer.GetID)]" + } + } + + expand = {} + } + } + + divider_light = { + layoutpolicy_horizontal = expanding + } + + hbox = { + layoutpolicy_horizontal = expanding + margin_right = 10 + spacing = 5 + + text_single = { + visible = "[And( Title.IsHolyOrder, Not( Title.HasHolder ) )]" + layoutpolicy_horizontal = expanding + text = "TV_NOT_CREATED" + } + + text_single = { + visible = "[And( Title.HasClericalRegion, Not( Title.HasHolder ) )]" + layoutpolicy_horizontal = expanding + text = "TV_NO_HOLDER" + } + + text_single = { + datacontext = "[Title.GetFaction]" + visible = "[Title.HasFaction]" + text = "TITLE_VIEW_FACTION" + max_width = 280 + } + + hbox = { + name = "title_view_rite_button_tutorial_uses_this" + datacontext = "[Title.GetHolder.GetRite.GetFaith]" + visible = "[And( Or( Title.HasClericalRegion, Title.IsHolyOrder ), Title.HasHolder )]" + layoutpolicy_horizontal = expanding + spacing = 5 + + button_rite_icon = { + datacontext = "[Title.GetHolder.GetRite]" + visible = "[Not( Title.IsHolyOrder )]" + size = { 45 45 } + } + + button_rite_icon = { + datacontext = "[Title.GetHolyOrder.GetRite]" + visible = "[Title.IsHolyOrder]" + size = { 45 45 } + } + + vbox = { + layoutpolicy_vertical = expanding + layoutpolicy_horizontal = expanding + + text_single = { + visible = "[Title.IsHolyOrder]" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_HOLY_ORDER_RITE_NAME" + align = nobaseline + autoresize = no + max_width = 300 + + state = { + name = "faith_view_refresh" + using = Animation_Refresh_FadeOut + } + + state = { + using = Animation_Refresh_FadeIn + } + } + + text_single = { + visible = "[Not( Title.IsHolyOrder )]" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_RITE_NAME" + align = nobaseline + autoresize = no + max_width = 300 + + state = { + name = "faith_view_refresh" + using = Animation_Refresh_FadeOut + } + + state = { + using = Animation_Refresh_FadeIn + } + } + + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + + text_single = { + name = "my_clerical_region" + visible = "[And( Title.HasClericalRegion, Or( TitleViewWindow.IsPlayerInRegion, Title.GetHolder.IsLocalPlayer ) )]" + max_width = 200 + text = "TV_MY_CLERICAL_REGION" + } + + text_single = { + name = "holder_treasury" + visible = "[Title.GetHolder.HasTreasury]" + max_width = 70 + + tooltip = "[Title.GetHolder.GetTreasuryTooltipWithBalance]" + using = tooltip_ne + + text = "TITLE_VIEW_HOLDER_TREASURY" + align = nobaseline + } + + expand = {} + } + + text_single = { + datacontext = "[Title.GetHolyOrder]" + visible = "[Title.IsHolyOrder]" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_HOLY_ORDER_HEADING" + align = nobaseline + max_width = 300 + + state = { + name = "faith_view_refresh" + using = Animation_Refresh_FadeOut + } + + state = { + using = Animation_Refresh_FadeIn + } + } + } + expand = {} + } + + vbox = { + visible = "[Not( Title.HasClericalRegion )]" + layoutpolicy_vertical = expanding + + text_single = { + name = "is_created" + visible = "[Not(Title.HasHolder)]" + layoutpolicy_horizontal = expanding + text = "TV_NOT_CREATED" + } + + vbox = { + name = "existing_title" + visible = "[Title.HasHolder]" + layoutpolicy_horizontal = expanding + ignoreinvisible = yes + spacing = 5 + + text_single = { + name = "my_title" + visible = "[EqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID )]" + layoutpolicy_horizontal = expanding + + text = "TV_MY_TITLE" + max_width = 340 + } + + text_single = { + visible = "[And(And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), Not(GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))),Title.CanHaveClaim)]" + layoutpolicy_horizontal = expanding + + text = "TV_NO_CLAIM" + max_width = 340 + } + + text_multi = { + name = "have_claim" + visible = "[And(NotEqualTo_uint32( Title.GetHolder.GetID, GetPlayer.GetID ), GetPlayer.HasClaimOnTitle(TitleViewWindow.GetTitle ))]" + layoutpolicy_horizontal = expanding + + text = "[Title.GetClaimStateFor(GetPlayer)]" + align = nobaseline + minimumsize = { 200 50 } + max_width = 340 + autoresize = yes + } + + text_single = { + visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_not_redirected_to_border_wars_law')]" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_DISABLED_BORDER_WARS" + align = nobaseline + max_width = 340 + fontsize_min = 9 + } + + text_multi = { + visible = "[Title.GetHolder.GetTopLiege.HasRealmLaw('top_liege_redirected_to_border_wars_law')]" + layoutpolicy_horizontal = expanding + + text = "TITLE_VIEW_ENABLED_BORDER_WARS" + align = nobaseline + autoresize = yes + max_width = 340 + fontsize_min = 9 + } + } + + expand = {} + } + + expand = {} + + flowcontainer = { + direction = vertical + ignoreinvisible = yes + spacing = 3 + + button_sidepanel_right = { + name = "view_claimants" + visible = "[And(Title.CanHaveClaim, Not(TitleViewWindow.GetTitle.GetHolder.GetGovernment.IsType('landless_adventurer_government') ) )]" + parentanchor = right + + enabled = "[GreaterThan_int32( TitleViewWindow.GetNumberOfClaimants, '(int32)0' )]" + onclick = "[TitleViewWindow.ToggleClaimants]" + + tooltip = "TITLE_CLAIMANTS_TOOLTIP" + + blockoverride "button_text" + { + text = "TITLE_VIEW_CLAIMANTS" + max_width = 90 + } + } + + button_sidepanel_right = { + name = "title history" + visible = "[And( Not( Title.IsBarony ), Not( Title.HasFaction ) )]" + parentanchor = right + + onclick = "[TitleViewWindow.ToggleHistory]" + + tooltip = "SHOW_TITLE_HISTORY" + + blockoverride "button_text" + { + text = "TITLE_HISTORY" + max_width = 90 + } + } + + text_single = { + visible = "[Not(Title.CanHaveClaim)]" + parentanchor = right + + text = "TITLE_VIEW_NO_CLAIMANTS" + align = right|nobaseline + default_format = "#weak" + max_width = 110 + fontsize_min = 5 + + tooltip = "TITLE_VIEW_NO_CLAIMANTS_TOOLTIP" + } + } + } + + ### COUNTY PART OF #### + hbox = { + layoutpolicy_horizontal = expanding + spacing = 10 + margin_right = 10 + margin_bottom = 10 + + hbox = { + spacing = 5 + margin_top = 10 + + text_single = { + visible = "[DataModelHasItems(TitleViewWindow.GetLiegeItems)]" + text = "TITLE_VIEW_DE_JURE_PART_OF" + max_width = 180 + align = nobaseline + } + + fixedgridbox = { + name = "dejure_liege_grid" + datamodel = "[TitleViewWindow.GetLiegeItems]" + flipdirection = yes + addcolumn = 40 + addrow = 40 + maxverticalslots = 1 + setitemsizefromcell = yes + + item = { + widget = { + size = { 40 50 } + + coa_title_tiny_crown = { + datacontext = "[TitleItem.GetTitle]" + parentanchor = center + + using = tooltip_se + } + } + } + } + } + + expand = {} + + vbox = { + visible = "[And(TitleViewWindow.GetTitle.HasHolder,TitleViewWindow.GetTitle.IsLanded)]" + spacing = 5 + + text_single = { + layoutpolicy_horizontal = expanding + + align = center + max_width = 130 + raw_text = "[TitleViewWindow.GetTypeOfLanded]: " + } + + button_tertiary = { + datacontext = "[TitleViewWindow.GetHolding]" + + onclick = "[TitleViewWindow.GoToHolding]" + + size = { 120 30 } + text = "[Holding.GetProvince.GetTitle.GetNameNoTierNoTooltip]" + max_width = 130 + + tooltip = "TITLE_VIEW_GO_TO_HOLDING" + } + } + } + } + + expand = {} + } + } + + type hbox_title_name_text = hbox { + layoutpolicy_horizontal = expanding + ignoreinvisible = yes + spacing = 5 + + text_multi = { + text = "TITLE_NAME_NO_TOOLTIP" + default_format = "#high" + block "max_width" { + max_width = 330 + } + autoresize = yes + using = Font_Size_Big + } + + button_edit_text = { + visible = "[TitleViewWindow.GetTitle.CanPlayerCustomizeTitle]" + + onclick = "[OpenTitleCustomizationWindow(TitleViewWindow.GetTitle)]" + + tooltip = "CUSTOMIZE_TITLE" + } + + expand = {} + } +} diff --git a/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml b/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml index 0bad18ca7..e3919ffe8 100644 --- a/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml @@ -398,4 +398,5 @@ neow_maronite_patriarch_possessive:0 "Patriarch's" d_et_neow_wales:0 "Wales" d_et_neow_wales_adj:0 "Welsh" - et_2555_neow_wales_region:0 "Archbishop of Wales" \ No newline at end of file + et_2555_neow_wales_region:0 "Archbishop of Wales" + neow_priest_kings_deposition_cost_desc:0 "Deposing a Priest King" diff --git a/localization/english/replace/zz_NEOW_buildings_l_english.yml b/localization/english/replace/zz_NEOW_buildings_l_english.yml index cb5950a2b..82a218754 100644 --- a/localization/english/replace/zz_NEOW_buildings_l_english.yml +++ b/localization/english/replace/zz_NEOW_buildings_l_english.yml @@ -1742,3 +1742,113 @@ building_extensive_harbour_03_desc:0 "$extensive_harbour_03_desc$" building_type_extensive_harbour_01:0 "$extensive_harbour_01$" building_type_extensive_harbour_01_desc:0 "$extensive_harbour_01_desc$" + + # Temple Citadel buildings + building_type_neow_citadel_cathedral_1:0 "Citadel Churches" + building_type_neow_citadel_cathedral_1_desc:0 "A chapel within the walls offers the faithful a place of prayer in times of peace and peril alike." + neow_citadel_cathedral_1:0 "Citadel Chapel" + neow_citadel_cathedral_1_desc:0 "A chapel within the walls offers the faithful a place of prayer in times of peace and peril alike." + building_neow_citadel_cathedral_1:0 "$neow_citadel_cathedral_1$" + building_neow_citadel_cathedral_1_desc:0 "$neow_citadel_cathedral_1_desc$" + neow_citadel_cathedral_2:0 "Citadel Church" + neow_citadel_cathedral_2_desc:0 "A stone church stands at the heart of the citadel, its bells summoning the faithful to the daily offices." + building_neow_citadel_cathedral_2:0 "$neow_citadel_cathedral_2$" + building_neow_citadel_cathedral_2_desc:0 "$neow_citadel_cathedral_2_desc$" + neow_citadel_cathedral_3:0 "Great Basilica" + neow_citadel_cathedral_3_desc:0 "A spacious basilica houses numerous altars and receives the offerings of the surrounding parishes." + building_neow_citadel_cathedral_3:0 "$neow_citadel_cathedral_3$" + building_neow_citadel_cathedral_3_desc:0 "$neow_citadel_cathedral_3_desc$" + neow_citadel_cathedral_4:0 "Fortress Cathedral" + neow_citadel_cathedral_4_desc:0 "The great cathedral rises above the ramparts, a seat of worship whose bells can be heard far beyond the walls." + building_neow_citadel_cathedral_4:0 "$neow_citadel_cathedral_4$" + building_neow_citadel_cathedral_4_desc:0 "$neow_citadel_cathedral_4_desc$" + building_type_neow_citadel_cloister_1:0 "Fortified Cloisters" + building_type_neow_citadel_cloister_1_desc:0 "A handful of brethren tend their cells and keep the appointed hours of prayer behind a modest wall." + neow_citadel_cloister_1:0 "Walled Hermitage" + neow_citadel_cloister_1_desc:0 "A handful of brethren tend their cells and keep the appointed hours of prayer behind a modest wall." + building_neow_citadel_cloister_1:0 "$neow_citadel_cloister_1$" + building_neow_citadel_cloister_1_desc:0 "$neow_citadel_cloister_1_desc$" + neow_citadel_cloister_2:0 "Monastic Cloister" + neow_citadel_cloister_2_desc:0 "Covered walkways join the cells, refectory and chapel of a community devoted to prayer and labour." + building_neow_citadel_cloister_2:0 "$neow_citadel_cloister_2$" + building_neow_citadel_cloister_2_desc:0 "$neow_citadel_cloister_2_desc$" + neow_citadel_cloister_3:0 "Fortified Monastery" + neow_citadel_cloister_3_desc:0 "The monastery has its own storehouses and stout enclosure, giving the surrounding people refuge in times of strife." + building_neow_citadel_cloister_3:0 "$neow_citadel_cloister_3$" + building_neow_citadel_cloister_3_desc:0 "$neow_citadel_cloister_3_desc$" + neow_citadel_cloister_4:0 "Great Monastic Enclosure" + neow_citadel_cloister_4_desc:0 "Generations of benefactors have endowed this great monastery, whose extensive grounds shelter both the brethren and the faithful." + building_neow_citadel_cloister_4:0 "$neow_citadel_cloister_4$" + building_neow_citadel_cloister_4_desc:0 "$neow_citadel_cloister_4_desc$" + building_type_neow_citadel_pilgrim_house_1:0 "Pilgrim Houses" + building_type_neow_citadel_pilgrim_house_1_desc:0 "Travellers find a simple bed and shelter within the precinct of the citadel." + neow_citadel_pilgrim_house_1:0 "Pilgrim Shelter" + neow_citadel_pilgrim_house_1_desc:0 "Travellers find a simple bed and shelter within the precinct of the citadel." + building_neow_citadel_pilgrim_house_1:0 "$neow_citadel_pilgrim_house_1$" + building_neow_citadel_pilgrim_house_1_desc:0 "$neow_citadel_pilgrim_house_1_desc$" + neow_citadel_pilgrim_house_2:0 "Guesthouse" + neow_citadel_pilgrim_house_2_desc:0 "The clergy maintain a guesthouse for pilgrims, mendicants and those journeying far from home." + building_neow_citadel_pilgrim_house_2:0 "$neow_citadel_pilgrim_house_2$" + building_neow_citadel_pilgrim_house_2_desc:0 "$neow_citadel_pilgrim_house_2_desc$" + neow_citadel_pilgrim_house_3:0 "Pilgrim Hospice" + neow_citadel_pilgrim_house_3_desc:0 "A hospice and sheltered courtyard welcome the sick and weary who come to venerate the holy places." + building_neow_citadel_pilgrim_house_3:0 "$neow_citadel_pilgrim_house_3$" + building_neow_citadel_pilgrim_house_3_desc:0 "$neow_citadel_pilgrim_house_3_desc$" + neow_citadel_pilgrim_house_4:0 "Great Pilgrim Court" + neow_citadel_pilgrim_house_4_desc:0 "An extensive court of guesthouses receives pilgrims from distant lands, providing for their needs within the safety of the walls." + building_neow_citadel_pilgrim_house_4:0 "$neow_citadel_pilgrim_house_4$" + building_neow_citadel_pilgrim_house_4_desc:0 "$neow_citadel_pilgrim_house_4_desc$" + building_type_neow_citadel_icon_workshop_1:0 "Hagiography Workshops" + building_type_neow_citadel_icon_workshop_1_desc:0 "A skilled painter prepares wooden panels and pigments for the holy images that adorn the chapel." + neow_citadel_icon_workshop_1:0 "Icon Painter’s Cell" + neow_citadel_icon_workshop_1_desc:0 "A skilled painter prepares wooden panels and pigments for the holy images that adorn the chapel." + building_neow_citadel_icon_workshop_1:0 "$neow_citadel_icon_workshop_1$" + building_neow_citadel_icon_workshop_1_desc:0 "$neow_citadel_icon_workshop_1_desc$" + neow_citadel_icon_workshop_2:0 "Hagiography Workshop" + neow_citadel_icon_workshop_2_desc:0 "Apprentices learn to paint sacred images according to the traditions handed down by their masters." + building_neow_citadel_icon_workshop_2:0 "$neow_citadel_icon_workshop_2$" + building_neow_citadel_icon_workshop_2_desc:0 "$neow_citadel_icon_workshop_2_desc$" + neow_citadel_icon_workshop_3:0 "School of Iconography" + neow_citadel_icon_workshop_3_desc:0 "Masters of hagiography train a new generation of painters, supplying churches and monasteries with icons." + building_neow_citadel_icon_workshop_3:0 "$neow_citadel_icon_workshop_3$" + building_neow_citadel_icon_workshop_3_desc:0 "$neow_citadel_icon_workshop_3_desc$" + neow_citadel_icon_workshop_4:0 "Great Iconographers’ Court" + neow_citadel_icon_workshop_4_desc:0 "The workshops of the citadel are renowned for their sacred images, from humble household icons to the gilded panels of great churches." + building_neow_citadel_icon_workshop_4:0 "$neow_citadel_icon_workshop_4$" + building_neow_citadel_icon_workshop_4_desc:0 "$neow_citadel_icon_workshop_4_desc$" + building_type_neow_citadel_chartophylakion_1:0 "Chartophylakia" + building_type_neow_citadel_chartophylakion_1_desc:0 "A clerk preserves charters, registers and the correspondence of the local clergy." + neow_citadel_chartophylakion_1:0 "Clerical Record Room" + neow_citadel_chartophylakion_1_desc:0 "A clerk preserves charters, registers and the correspondence of the local clergy." + building_neow_citadel_chartophylakion_1:0 "$neow_citadel_chartophylakion_1$" + building_neow_citadel_chartophylakion_1_desc:0 "$neow_citadel_chartophylakion_1_desc$" + neow_citadel_chartophylakion_2:0 "Chartophylákio" + neow_citadel_chartophylakion_2_desc:0 "Under the care of a chartophylax, the records of the church are gathered and kept in good order." + building_neow_citadel_chartophylakion_2:0 "$neow_citadel_chartophylakion_2$" + building_neow_citadel_chartophylakion_2_desc:0 "$neow_citadel_chartophylakion_2_desc$" + neow_citadel_chartophylakion_3:0 "Ecclesiastical Archives" + neow_citadel_chartophylakion_3_desc:0 "Scribes preserve episcopal acts, legal records and ecclesiastical correspondence in purpose-built chambers." + building_neow_citadel_chartophylakion_3:0 "$neow_citadel_chartophylakion_3$" + building_neow_citadel_chartophylakion_3_desc:0 "$neow_citadel_chartophylakion_3_desc$" + neow_citadel_chartophylakion_4:0 "Great Chartophylákio" + neow_citadel_chartophylakion_4_desc:0 "The archives of the citadel house generations of synodal acts, charters and sacred manuscripts, safeguarding the rights and memory of the Church." + building_neow_citadel_chartophylakion_4:0 "$neow_citadel_chartophylakion_4$" + building_neow_citadel_chartophylakion_4_desc:0 "$neow_citadel_chartophylakion_4_desc$" + building_type_neow_citadel_akritai_1:0 "Akritic Guard Posts" + building_type_neow_citadel_akritai_1_desc:0 "A small watch keeps the approaches to the sacred precinct under observation." + neow_citadel_akritai_1:0 "Akritic Watchpost" + neow_citadel_akritai_1_desc:0 "A small watch keeps the approaches to the sacred precinct under observation." + building_neow_citadel_akritai_1:0 "$neow_citadel_akritai_1$" + building_neow_citadel_akritai_1_desc:0 "$neow_citadel_akritai_1_desc$" + neow_citadel_akritai_2:0 "Guard Barracks" + neow_citadel_akritai_2_desc:0 "The citadel’s guards have permanent quarters from which they patrol the roads and man the gates." + building_neow_citadel_akritai_2:0 "$neow_citadel_akritai_2$" + building_neow_citadel_akritai_2_desc:0 "$neow_citadel_akritai_2_desc$" + neow_citadel_akritai_3:0 "Fortified Guard Court" + neow_citadel_akritai_3_desc:0 "A fortified court houses the men entrusted with defending the walls and the people who seek refuge within them." + building_neow_citadel_akritai_3:0 "$neow_citadel_akritai_3$" + building_neow_citadel_akritai_3_desc:0 "$neow_citadel_akritai_3_desc$" + neow_citadel_akritai_4:0 "Akritic Stronghold" + neow_citadel_akritai_4_desc:0 "Drawing upon the old traditions of the Akritai, a permanent garrison keeps vigil over the citadel and its surrounding settlements." + building_neow_citadel_akritai_4:0 "$neow_citadel_akritai_4$" + building_neow_citadel_akritai_4_desc:0 "$neow_citadel_akritai_4_desc$"