
defined_text = {
	name = Get_fopo_tab_name

	### DYNAMIC TITLES ###
	text = { # Oil Crisis, only Yemen
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
		}
		localization_key = GC_OilCrisis_just_yemen
	}
	text = { # Oil Crisis, only Yemen, Oman
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
		}
		localization_key = GC_OilCrisis_arabian_peninsula
	}

	text = { # Orungu Conflict
		trigger = {
			check_variable = { conflict_id = token:GC_Orungu }
			has_global_flag = orungu_conflict_CAF
		}
		localization_key = GC_Orungu_CAF
	}

	text = { # Puerto Plata Invasion, USA/MEX
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			NOT = {
				has_global_flag = PPI_landing_ongoing
				has_global_flag = PPI_ceasefire_happening
				has_global_flag = PPI_civil_war_ongoing
			}
			OR = {
				tag = USA
				tag = MEX
			}
		}
		localization_key = GC_PuertoPlata_USA
	}
	text = { # Puerto Plata Invasion, everyone else
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			NOT = {
				has_global_flag = PPI_landing_ongoing
				has_global_flag = PPI_ceasefire_happening
				has_global_flag = PPI_civil_war_ongoing
			}
			OR = {
				tag = GER
				tag = IBR
			}
		}
		localization_key = GC_PuertoPlata_else
	}
	text = { # Puerto Plata Invasion, invasion
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			has_global_flag = PPI_landing_ongoing
		}
		localization_key = GC_PuertoPlata_landing
	}
	text = { # Puerto Plata Invasion, ceasefire
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			has_global_flag = PPI_ceasefire_happening
			OR = {
				tag = USA
				tag = IBR
				tag = MEX
			}
		}
		localization_key = GC_PuertoPlata_ceasefire
	}
	text = { # Puerto Plata Invasion, ceasefire GER
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			has_global_flag = PPI_ceasefire_happening
			tag = GER
		}
		localization_key = GC_PuertoPlata_ceasefire_GER
	}
	text = { # Puerto Plata Invasion, ceasefire
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			has_global_flag = PPI_civil_war_ongoing
		}
		localization_key = GC_PuertoPlata_ceasefire_broken
	}

	text = { # Haitian Civil War
		trigger = {
			check_variable = { conflict_id = token:GC_Haitian_Civil_War }
			has_global_flag = HAITI_just_civil_war
			NOT = {
				has_global_flag = HIS_trujillo_blitz_ongoing
			}
		}
		localization_key = GC_Haitian_Civil_War
	}

	text = { # Haitian Blitz
		trigger = {
			check_variable = { conflict_id = token:GC_Haitian_Civil_War }
			has_global_flag = HIS_trujillo_blitz_ongoing
		}
		localization_key = GC_Haitian_Blitz
	}

	text = { # French Civil War, Reclamation of France (USA)
		trigger = {
			check_variable = { conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
			tag = USA
		}
		localization_key = GC_FranceCW_ffr
	}
	text = { # French Civil War, Reclamation of France (GER)
		trigger = {
			check_variable = { conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
			tag = GER
		}
		localization_key = GC_FranceCW_ffr_ger
	}

	### NORMAL TITLES ###
	text = {
		localization_key = "[?conflict_id.GetTokenLocalizedKey]"
	}
}

defined_text = {
	name = Get_fopo_tab_name_title
	text = {
		trigger = {
			check_variable = { selected_conflict_id = 0 }
		}
		localization_key = ""
	}
	text = {
		trigger = {
			set_temp_variable = { conflict_id = selected_conflict_id }
		}
		localization_key = "[Get_fopo_tab_name]"
	}
}

defined_text = {
	name = Get_TNO_fopo_conflict_guis
	text = {
		trigger = {
			OR = {
				check_variable = { selected_conflict_id = token:GC_WAC }
				check_variable = { selected_conflict_id = token:GC_SAW }
			}
			tag = USA
		}
		localization_key = "TNO_fopo_generic_conflict_topbar"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndonesiaCW } }
		localization_key = "TNO_Indonesian_Civil_War_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_JamaicanReferendum } }
		localization_key = "TNO_Jamaican_Referendum_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_JamaicanCrisis } }
		localization_key = "TNO_Jamaican_Crisis_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_TrinidadRev } }
		localization_key = "TNO_Trinidad_BPR_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_Turkestan } }
		localization_key = "TNO_CA_Conference_Unification_1_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PhilippinesWar } tag = JAP }
		localization_key = "TNO_Philippines_Prep_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWReconstruction } tag = USA }
		localization_key = "TNO_SAF_US_Reconstruction_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PhilippinesReconstruction } }
		localization_key = "TNO_Philippines_Reconstruction_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWWithdrawal } }
		localization_key = "TNO_SAW_Withdrawal_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WACReconstruction } }
		localization_key = "TNO_Free_France_Reconstruction_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PuertoPlata } tag = USA }
		localization_key = "TNO_Puerto_Plata_Invasion_GUI_USA"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PuertoPlata } tag = IBR }
		localization_key = "TNO_Puerto_Plata_Invasion_GUI_IBR"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PuertoPlata } tag = GER }
		localization_key = "TNO_Puerto_Plata_Invasion_GUI_GER"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_FranceCW } }
		localization_key = "TNO_FrenchReclamation_DecisionGUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IcelandElections } }
		localization_key = "TNO_Iceland_Congress_Mechanic"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_Haitian_Civil_War } tag = USA }
		localization_key = "TNO_Haitian_War_GUI_USA"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MalagasyCW } }
		localization_key = "TNO_Madagascar_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ChannelCrisis } }
		localization_key = "TNO_Channel_Crisis_GUI"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SubcontinentalCrisis } }
		localization_key = "TNO_Subcontinental_Crisis_GUI"
	}
	text = {
		trigger = {
			check_variable = { TNO_active_conflicts^num = 0 }
		}
		localization_key = "TNO_fopo_no_conflict"
	}
	text = {
		localization_key = "TNO_fopo_generic_conflict"
	}
}

defined_text = {
	name = GetBrandenburgerTooltip
	text = {
		trigger = { tag = GER }
		localization_key = pp_brandenburger_meter_tooltip_GER
	}
}
defined_text = {
	name = GetBrandenburgerTooltipDelayed
	text = {
		trigger = { tag = GER }
		localization_key = pp_brandenburger_meter_tooltip_delayed_GER
	}
}
defined_text = {
	name = GetPPCeasefireTension
	text = {
		trigger = { check_variable = { global.TNO_PPI_ceasefire_tension > 74.99 } }
		localization_key = "TNO_PPI_ceasefire_tension_critical"
	}
	text = {
		trigger = { check_variable = { global.TNO_PPI_ceasefire_tension > 49.99 } }
		localization_key = "TNO_PPI_ceasefire_tension_tense"
	}
	text = {
		trigger = { check_variable = { global.TNO_PPI_ceasefire_tension > 24.99 } }
		localization_key = "TNO_PPI_ceasefire_tension_stable"
	}
	text = {
		localization_key = "TNO_PPI_ceasefire_tension_relaxed"
	}
}
defined_text = {
	name = GetPPInvasionUSADesc
	text = {
		trigger = { has_global_flag = PPI_ceasefire_happening }
		localization_key = "USA_PP_ceasefire_desc"
	}
	text = {
		localization_key = "USA_PP_invasion_desc"
	}
}
defined_text = {
	name = GetPPInvasionIBRDesc
	text = {
		trigger = { has_global_flag = PPI_ceasefire_happening }
		localization_key = "IBR_PP_ceasefire_desc"
	}
	text = {
		localization_key = "IBR_PP_invasion_desc"
	}
}
defined_text = {
	name = GetPPInvasionGERDesc
	text = {
		trigger = { has_global_flag = PPI_ceasefire_happening }
		localization_key = "GER_PP_ceasefire_desc"
	}
	text = {
		localization_key = "GER_PP_invasion_desc"
	}
}

defined_text = {
	name = Get_fopo_desc
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_SAW }
			tag = BRA
		}
		localization_key = BRA_SAW_weapons_category_desc
	}
	text = {
		trigger = {
			check_variable = { TNO_fopo_selected_front = 1 }
			check_variable = { selected_conflict_id = token:GC_SAW }
			tag = USA
		}
		localization_key = USA_south_african_war_category_desc
	}
	text = {
		trigger = {
			check_variable = { TNO_fopo_selected_front = 2 }
			check_variable = { selected_conflict_id = token:GC_SAW }
			tag = USA
		}
		localization_key = USA_south_african_war_domestic_category_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_SAW }
			has_global_flag = german_civil_war_bormannvic
			tag = GER
		}
		localization_key = GER_Bormann_SAF_War_category_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_SAW }
			has_global_flag = german_civil_war_speervic
			tag = GER
		}
		localization_key = SGR_South_African_War_category_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_SAW }
			has_global_flag = german_civil_war_goeringvic
			tag = GER
		}
		localization_key = GER_Goring_SAF_War_category_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_IndonesiaCW }
			tag = USA
		}
		localization_key = USA_ICW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndonesiaCW }
		tag = JAP }
		localization_key = JAP_ICW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndonesiaCW } tag = GER }
		localization_key = SGR_pacific_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IranCW } tag = USA }
		localization_key = USA_IRCW_aid_iran_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IranCW } tag = GER }
		localization_key = SGR_ircw_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IranCW } tag = JAP }
		localization_key = JAP_ircw_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MalayanCW } tag = USA }
		localization_key = USA_MLY_aid_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MalayanCW } tag = JAP }
		localization_key = JAP_SHO_aid_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_CongoCW } tag = USA NOT = { has_global_flag = congo_mandate_collapsed } }
		localization_key = USA_congo_civil_war_desc
	}
	text = { # COG, USA with mandate collapse
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = USA has_global_flag = congo_mandate_collapsed }
		localization_key = OFN_congo_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_CongoCW } tag = JAP }
		localization_key = JAP_congo_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_CongoCW } tag = GER }
		localization_key = GER_congo_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = USA check_variable = { TNO_fopo_selected_front = 2 } }
		localization_key = USA_wac_desc_homefront
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = USA OR = { has_global_flag = WAC_scenario_1 has_global_flag = WAC_scenario_3 } }
		localization_key = USA_wac_desc_1
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = USA has_global_flag = WAC_scenario_2 }
		localization_key = USA_wac_desc_2
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = JAP }
		localization_key = JAP_wac_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = SAF }
		localization_key = SAF_wac_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_AngolaCW } tag = USA }
		localization_key = USA_angola_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_AngolaCW } tag = JAP }
		localization_key = JAP_angola_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_OilCrisis } tag = GER }
		localization_key = GER_Bormann_oil_crisis_support_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_OilCrisis } tag = USA }
		localization_key = USA_oil_crisis_support_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_OilCrisis } tag = JAP }
		localization_key = JAP_oil_crisis_support_category_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IberianWars } tag = GER }
		localization_key = GER_IBW_PW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IberianWars } tag = USA }
		localization_key = USA_IBW_PW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IberianWars } tag = JAP }
		localization_key = JAP_IBW_PW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MozambiqueCW } tag = USA USA = { has_country_flag = US_aid_mozambique_mondlane } }
		localization_key = USA_GZCW_PW_desc_mondlane
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MozambiqueCW } tag = USA USA = { has_country_flag = US_aid_mozambique_simango } }
		localization_key = USA_GZCW_PW_desc_simango
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_MozambiqueCW } tag = JAP }
		localization_key = JAP_GZCW_PW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_BalintawakBlitz } tag = USA }
		localization_key = USA_PHI_PW_1_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_BalintawakBlitz } tag = JAP }
		localization_key = JAP_PHI_PW_1_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PhilippinesWar } has_global_flag = PHI_proxy_war_preparation tag = JAP }
		localization_key = JAP_PHI_PW_2_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PhilippinesWar } has_global_flag = PHI_landing_ongoing tag = JAP }
		localization_key = JAP_PHI_PW_3_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_PhilippinesWar } tag = USA }
		localization_key = USA_PHI_PW_2_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWReconstruction } tag = USA }
		localization_key = USA_saf_aftermath
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWReconstruction } tag = GER }
		localization_key = GER_saf_aftermath
	}

	# free space

	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ManoCamapign } tag = USA }
		localization_key = USA_mano_campaign_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ManoCamapign } tag = JAP }
		localization_key = JAP_mano_campaign_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Orungu }
			tag = USA
			NOT = {
				has_global_flag = orungu_conflict_CAF
			}
		}
		localization_key = USA_orungu_alone_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Orungu }
			tag = USA
			has_global_flag = orungu_conflict_CAF
		}
		localization_key = USA_orungu_CAF_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Orungu }
			tag = USA
			NOT = {
				has_global_flag = orungu_conflict_CAF
			}
		}
		localization_key = JAP_orungu_alone_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Orungu }
			tag = USA
			has_global_flag = orungu_conflict_CAF
		}
		localization_key = JAP_orungu_CAF_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWWithdrawal } tag = GER }
		localization_key = GER_saf_withdrawal_desc
	}
	text = { # should actually be japan
		trigger = { check_variable = { selected_conflict_id = token:GC_WACReconstruction } tag = GER }
		localization_key = GER_wafr_reconstruction_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_WACReconstruction } tag = USA }
		localization_key = USA_wafr_reconstruction_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_PuertoPlata }
			tag = USA
		}
		localization_key = USA_puerto_plata_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_PuertoPlata }
			tag = IBR
		}
		localization_key = IBR_puerto_plata_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_PuertoPlata }
			tag = GER
		}
		localization_key = GER_puerto_plata_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Haitian_Civil_War }
			tag = USA
		}
		localization_key = USA_haitian_civil_war_desc
	}

	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
			tag = USA
		}
		localization_key = USA_ffr_reclamation_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
			tag = GER
		}
		localization_key = GER_ffr_reclamation_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
			tag = IBR
		}
		localization_key = IBR_ffr_reclamation_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_civil_war_happening
			tag = USA
		}
		localization_key = USA_french_civil_war_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_civil_war_happening
			tag = GER
		}
		localization_key = GER_french_civil_war_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_civil_war_happening
			tag = IBR
		}
		localization_key = IBR_french_civil_war_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } tag = USA }
		localization_key = USA_CCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } tag = JAP }
		localization_key = JAP_CCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } tag = IBR }
		localization_key = IBR_CCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } tag = GER }
		localization_key = GER_CCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } tag = BRA }
		localization_key = BRA_CCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_ReichsstaatCabal } }
		localization_key = GER_RAC_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_EnglandInfluenceBattle } tag = ENG }
		localization_key = ENG_IBC_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_EnglandInfluenceBattle } tag = GER }
		localization_key = GER_IBC_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_EnglandInfluenceBattle } tag = USA }
		localization_key = USA_IBC_desc
	}
	### 2WRW ###
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IranCW } tag = RUS }
		localization_key = rus_iran_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_PLU } tag = RUS }
		localization_key = rus_poland_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_PLU } tag = GER }
		localization_key = GER_krakow_uprising_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WG } tag = RUS }
		localization_key = rus_armenia_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WG } tag = GER }
		localization_key = GER_mountain_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WCW } tag = RUS }
		localization_key = rus_west_china_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WCW } tag = JAP }
		localization_key = jap_west_china_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_MU } tag = RUS }
		localization_key = rus_mongolia_war_desc_tt
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_MU } tag = JAP }
		localization_key = jap_mongolian_uprising_desc_tt
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
		}
		localization_key = RUS_Hungarian_civil_war_category_commie_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			OR = {
				RUS = { has_country_flag = RUS_generic_democratic_unifier }
				has_global_flag = RUS_shukshin_unification
			}
		}
		localization_key = RUS_Hungarian_civil_war_category_dem_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_HCW } tag = GER }
		localization_key = GER_Hungarian_civil_war_category_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:SWRW_GC_2GCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
		}
		localization_key = RUS_German_civil_war_category_commie_desc
	}
	text = {
		trigger = {
			check_variable = { selected_conflict_id = token:SWRW_GC_2GCW }
			tag = RUS
			OR = {
				RUS = { has_country_flag = RUS_generic_democratic_unifier }
				has_global_flag = RUS_shukshin_unification
			}
		}
		localization_key = RUS_German_civil_war_category_dem_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_2GCW } tag = USA }
		localization_key = USA_German_civil_war_category_desc
	}
	### END 2WRW ###
	#text = {
	#	trigger = { check_variable = { selected_conflict_id = token:GC_ChannelCrisis } tag = ENG }
	#	localization_key = ENG_Channel_Crisis_desc
	#}
	#text = {
	#	trigger = { check_variable = { selected_conflict_id = token:GC_ChannelCrisis } tag = GER }
	#	localization_key = GER_Channel_Crisis_desc
	#}
	#text = {
	#	trigger = { check_variable = { selected_conflict_id = token:GC_ChannelCrisis } tag = USA }
	#	localization_key = USA_Channel_Crisis_desc
	#}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndianCW } tag = USA }
		localization_key = USA_INDCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndianCW } tag = JAP }
		localization_key = JAP_INDCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndianCW } tag = SAF }
		localization_key = SAF_INDCW_desc
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_OperationBQ } tag = GER }
		localization_key = GER_OBQ_desc
	}
	text = {
		localization_key = ""
	}
}

defined_text = {
	name = Get_fopo_sidebar
	text = { # SAW
		trigger = { check_variable = { selected_conflict_id = token:GC_SAW } tag = BRA }
		localization_key = "GFX_fopo_south_africa_brazil_sidebar"
	}
	text = { # SAW
		trigger = { check_variable = { selected_conflict_id = token:GC_SAW } }
		localization_key = "GFX_fopo_south_africa_sidebar"
	}
	text = { # Indonesian Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_IndonesiaCW } }
		localization_key = "GFX_fopo_indonesia_sidebar"
	}
	text = { # Iran Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_IranCW } }
		localization_key = "GFX_fopo_iran_sidebar"
	}
	text = { # Malayan Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_MalayanCW } }
		localization_key = "GFX_fopo_malaysia_sidebar"
	}
	text = { # Congolese Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_CongoCW } }
		localization_key = "GFX_fopo_congo_sidebar"
	}
	text = { # WAC
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } }
		localization_key = "GFX_fopo_wac_sidebar"
	}
	text = { # Angola Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_AngolaCW } }
		localization_key = "GFX_fopo_angola_sidebar"
	}
	text = { # Oil Crisis, Yemen
		trigger = {
			check_variable = { selected_conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
		}
		localization_key = "GFX_fopo_yemen_sidebar"
	}
	text = { # Oil Crisis, Oman
		trigger = {
			check_variable = { selected_conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
		}
		localization_key = "GFX_fopo_oman_sidebar"
	}
	text = { # Oil Crisis, other
		trigger = {
			check_variable = { selected_conflict_id = token:GC_OilCrisis }
		}
		localization_key = "GFX_fopo_iraq_sidebar"
	}
	text = { # Turkes Kenes
		trigger = {
			check_variable = { selected_conflict_id = token:GC_Turkestan }
		}
		localization_key = "GFX_fopo_turkes_kenes_sidebar"
	}
	text = { # Mozambican Civil War
		trigger = {
			check_variable = { selected_conflict_id = token:GC_MozambiqueCW }
		}
		localization_key = "GFX_fopo_mozambican_civil_war_sidebar"
	}
	text = { # Iberian Wars
		trigger = {
			check_variable = { selected_conflict_id = token:GC_IberianWars }
		}
		localization_key = "GFX_fopo_iberian_wars_sidebar"
	}

	text = { # Philippines, Balintawak Blitz
		trigger = {
			check_variable = { selected_conflict_id = token:GC_BalintawakBlitz }
		}
		localization_key = "GFX_fopo_philippines_blitz_sidebar"
	}

	text = { # Philippines, Pre-Invasion
		trigger = {
			check_variable = { selected_conflict_id = token:GC_PhilippinesWar }
		}
		localization_key = "GFX_fopo_philippines_landing_sidebar"
	}
	text = { # South African War Aftermath
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWReconstruction } }
		localization_key = "GFX_fopo_congo_sidebar"
	}
	text = { # Madagascar
		trigger = { check_variable = { selected_conflict_id = token:GC_MalagasyCW } }
		localization_key = "GFX_fopo_congo_sidebar"
	}
	text = { # Mano Campaign
		trigger = { check_variable = { selected_conflict_id = token:GC_ManoCamapign } }
		localization_key = "GFX_fopo_mano_campaign_conflict_sidebar"
	}
	text = { # Orungu Campaign
		trigger = { check_variable = { selected_conflict_id = token:GC_Orungu } }
		localization_key = "GFX_fopo_orungu_conflict_sidebar"
	}
	text = { # SAW Withdrawal
		trigger = { check_variable = { selected_conflict_id = token:GC_SAWWithdrawal } }
		localization_key = "GFX_fopo_saw_withdrawal_sidebar"
	}
	text = { # West Africa Reconstruction
		trigger = { check_variable = { selected_conflict_id = token:GC_WACReconstruction } }
		localization_key = "GFX_fopo_wafr_reconstruction_sidebar"
	}
	text = { # Haitian Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_Haitian_Civil_War } NOT = { has_global_flag = HIS_trujillo_blitz_ongoing } }
		localization_key = "GFX_fopo_haitian_civil_war_sidebar"
	}
	text = { # Haitian Blitz
		trigger = { check_variable = { selected_conflict_id = token:GC_Haitian_Civil_War } has_global_flag = HIS_trujillo_blitz_ongoing }
		localization_key = "GFX_fopo_haitian_blitz_sidebar"
	}
	text = { # Puerto Plata
		trigger = { check_variable = { selected_conflict_id = token:GC_PuertoPlata } }
		localization_key = "GFX_fopo_puerto_plata_sidebar"
	}
	text = { # French Reclamation
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_happening
		}
		localization_key = "GFX_fopo_french_reclamation_sidebar"
	}
	text = { # French Civil War
		trigger = {
			check_variable = { selected_conflict_id = token:GC_FranceCW }
			has_global_flag = FFR_reclamation_civil_war_happening
		}
		localization_key = "GFX_fopo_french_civil_war_sidebar"
	}
	text = { # Colombia Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_ColombiaCW } }
		localization_key = "GFX_fopo_colombian_civil_war_sidebar"
	}
	text = { # Reichsstaat African Cabal
		trigger = { check_variable = { selected_conflict_id = token:GC_ReichsstaatCabal } }
		localization_key = "GFX_fopo_reichsstaat_african_cabal_sidebar"
	}
	text = { # England Influence Battle
		trigger = { check_variable = { selected_conflict_id = token:GC_EnglandInfluenceBattle } }
		localization_key = "GFX_fopo_england_influence_battle_sidebar"
	}
	text = { # Not intended to be used but will leave this here in case it does show up
		trigger = { check_variable = { selected_conflict_id = token:GC_ChannelCrisis } }
		localization_key = "GFX_fopo_england_influence_battle_sidebar"
	}
	text = { # Indian Civil War
		trigger = { check_variable = { selected_conflict_id = token:GC_IndianCW } }
		localization_key = "GFX_fopo_indian_civil_war_sidebar"
	}
	text = { # Operation Bin Qasim
		trigger = { check_variable = { selected_conflict_id = token:GC_OperationBQ } }
		localization_key = "GFX_fopo_operation_bin_qasim_sidebar"
	}
	### 2WRW ###

	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_PLU } tag = RUS }
		localization_key = GFX_krakow_uprising_picture_rus
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_PLU } tag = GER }
		localization_key = GFX_krakow_uprising_picture_ger
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WG } tag = RUS }
		localization_key = GFX_mountain_war_picture_rus
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WG } tag = GER }
		localization_key = GFX_mountain_war_picture_ger
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WCW } tag = RUS }
		localization_key = GFX_west_china_war_picture_rus
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_WCW } tag = JAP }
		localization_key = GFX_west_china_war_picture_rus
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_MU } tag = RUS }
		localization_key = GFX_mongolian_uprising_picture_rus
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_MU } tag = JAP }
		localization_key = GFX_mongolian_uprising_picture_jap
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_HCW } }
		localization_key = GFX_hungarian_civil_war_picture
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:SWRW_GC_2GCW } }
		localization_key = GFX_second_german_civil_war_picture
	}
	### END 2WRW ###
	text = {
		localization_key = ""
	}
}

defined_text = {
	name = Get_fopo_topbar
	text = { # SAW for the USA
		trigger = { check_variable = { selected_conflict_id = token:GC_SAW } tag = USA }
		localization_key = "GFX_fopo_south_africa_topbar"
	}
	text = { # WAC for the USA
		trigger = { check_variable = { selected_conflict_id = token:GC_WAC } tag = USA }
		localization_key = "GFX_fopo_wac_topbar_USA"
	}
}

defined_text = {
	name = Get_fopo_icon
	text = { # Malayan Civil War, USA
		trigger = { check_variable = { conflict_id = token:GC_MalayanCW } tag = USA }
		localization_key = "GFX_fopo_malaysia_civil_war_icon_us"
	}
	text = { # Malayan Civil War, Japan
		trigger = { check_variable = { conflict_id = token:GC_MalayanCW } tag = JAP }
		localization_key = "GFX_fopo_malaysia_civil_war_icon_jap"
	}
	text = { # Iran Civil War, USA post-coalition collapse
		trigger = { check_variable = { conflict_id = token:GC_IranCW } tag = USA has_global_flag = TNO_IRA_collapsed_coalition }
		localization_key = "GFX_fopo_iran_civil_war_icon_us"
	}
	text = { # Iran Civil War, USA pre-coalition collapse
		trigger = { check_variable = { conflict_id = token:GC_IranCW } tag = USA }
		localization_key = "GFX_fopo_iran_civil_war_icon_us_early"
	}
	text = { # Iran Civil War, Germany
		trigger = { check_variable = { conflict_id = token:GC_IranCW } tag = GER }
		localization_key = "GFX_fopo_iran_civil_war_icon_ger"
	}
	text = { # Iran Civil War, Japan
		trigger = { check_variable = { conflict_id = token:GC_IranCW } tag = JAP }
		localization_key = "GFX_fopo_iran_civil_war_icon_jap"
	}
	text = { # Jamaica Referendum
		trigger = { check_variable = { conflict_id = token:GC_JamaicanReferendum } }
		localization_key = "GFX_fopo_jamaica_icon"
	}
	text = { # Jamaican Crisis
		trigger = { check_variable = { conflict_id = token:GC_JamaicanCrisis } }
		localization_key = "GFX_fopo_jamaica_crisis_icon"
	}
	text = { # Indonesian Civil War, USA
		trigger = { check_variable = { conflict_id = token:GC_IndonesiaCW } tag = USA }
		localization_key = "GFX_fopo_indonesia_icon_us"
	}
	text = { # Indonesian Civil War, GER
		trigger = { check_variable = { conflict_id = token:GC_IndonesiaCW } tag = GER }
		localization_key = "GFX_fopo_indonesia_icon_us"
	}
	text = { # Indonesian Civil War, Japan
		trigger = { check_variable = { conflict_id = token:GC_IndonesiaCW } tag = JAP }
		localization_key = "GFX_fopo_indonesia_icon_jap"
	}
	text = { # SAW, USA
		trigger = { check_variable = { conflict_id = token:GC_SAW } tag = USA }
		localization_key = "GFX_fopo_saw_icon_us"
	}
	text = { # SAW, Germany
		trigger = { check_variable = { conflict_id = token:GC_SAW } tag = GER }
		localization_key = "GFX_fopo_saw_icon_ger"
	}
	text = { # SAW, BRA
		trigger = { check_variable = { conflict_id = token:GC_SAW } tag = BRA }
		localization_key = "GFX_fopo_saw_icon_us"
	}
	text = { # RAC, GER
		trigger = { check_variable = { conflict_id = token:GC_ReichsstaatCabal } tag = GER }
		localization_key = "GFX_fopo_reichsstaat_african_cabal_icon_GRO"
	}
	text = { # Channel Crisis, OFN
		trigger = {
			check_variable = { conflict_id = token:GC_ChannelCrisis }
			OR = {
				tag = USA
				tag = ENG
			}
		}
		localization_key = "GFX_fopo_channel_crisis_icon_ofn"
	}
	text = { # Channel Crisis, Pakt
		trigger = { check_variable = { conflict_id = token:GC_ChannelCrisis } tag = GER }
		localization_key = "GFX_fopo_channel_crisis_icon_pakt"
	}
	text = { # EIB, ENG
		trigger = { check_variable = { conflict_id = token:GC_EnglandInfluenceBattle } tag = ENG }
		localization_key = "GFX_fopo_england_influence_battle_icon_ENG"
	}
	text = { # EIB, USA
		trigger = { check_variable = { conflict_id = token:GC_EnglandInfluenceBattle } tag = USA }
		localization_key = "GFX_fopo_england_influence_battle_icon_ENG"
	}
	text = { # EIB, GER
		trigger = { check_variable = { conflict_id = token:GC_EnglandInfluenceBattle } tag = GER }
		localization_key = "GFX_fopo_england_influence_battle_icon_ENG"
	}
	text = { # COG, USA with mandate collapse
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = USA has_global_flag = congo_mandate_collapsed NOT = { has_global_flag = congo_PW_CAF_joined } }
		localization_key = "GFX_fopo_congo_icon_us_mzb"
	}
	text = { # COG, USA without mandate collapse
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = USA NOT = { has_global_flag = congo_PW_CAF_joined } }
		localization_key = "GFX_fopo_congo_icon_us"
	}
	text = { # COG, JAP with mandate collapse
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = JAP has_global_flag = congo_mandate_collapsed NOT = { has_global_flag = congo_PW_CAF_joined } }
		localization_key = "GFX_fopo_congo_icon_jap_mzb"
	}
	text = { # COG, JAP without mandate collapse
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = JAP NOT = { has_global_flag = congo_PW_CAF_joined } }
		localization_key = "GFX_fopo_congo_icon_jap"
	}
	text = { # COG, GER
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = GER NOT = { has_global_flag = congo_PW_CAF_joined } }
		localization_key = "GFX_fopo_congo_icon_ger"
	}
	text = { # COG, USA with mandate collapse and CAF
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = USA
			AND = {
				has_global_flag = congo_mandate_collapsed
				has_global_flag = congo_PW_CAF_joined
			}
		}
		localization_key = "GFX_fopo_congo_icon_us_mzb_CAF"
	}
	## COG with CAF
	text = { # COG, USA without mandate collapse and CAF
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = USA has_global_flag = congo_PW_CAF_joined }
		localization_key = "GFX_fopo_congo_icon_us_CAF"
	}
	text = { # COG, JAP with mandate collapse and CAF
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = JAP
			AND = {
				has_global_flag = congo_mandate_collapsed
				has_global_flag = congo_PW_CAF_joined
			}
		}
		localization_key = "GFX_fopo_congo_icon_jap_mzb_CAF"
	}
	text = { # COG, JAP without mandate collapse and CAF
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = JAP has_global_flag = congo_PW_CAF_joined }
		localization_key = "GFX_fopo_congo_icon_jap_CAF"
	}
	text = { # COG, GER and CAF
		trigger = { check_variable = { conflict_id = token:GC_CongoCW } tag = GER has_global_flag = congo_PW_CAF_joined }
		localization_key = "GFX_fopo_congo_icon_ger_CAF"
	}
	text = { # WAC Scenario 1, USA
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = USA has_global_flag = WAC_scenario_1 }
		localization_key = "GFX_fopo_wac_icon_us_1"
	}
	text = { # WAC Scenario 1, SAF
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = SAF has_global_flag = WAC_scenario_1 }
		localization_key = "GFX_fopo_wac_icon_us_1"
	}
	text = { # WAC Scenario 1, JAP
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = JAP has_global_flag = WAC_scenario_1 }
		localization_key = "GFX_fopo_wac_icon_jap_1"
	}
	text = { # WAC Scenario 2, USA
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = USA has_global_flag = WAC_scenario_2 }
		localization_key = "GFX_fopo_wac_icon_us_2"
	}
	text = { # WAC Scenario 2, SAF
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = SAF has_global_flag = WAC_scenario_2 }
		localization_key = "GFX_fopo_wac_icon_us_2"
	}
	text = { # WAC Scenario 2, JAP
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = JAP has_global_flag = WAC_scenario_2 }
		localization_key = "GFX_fopo_wac_icon_jap_2"
	}
	text = { # WAC Scenario 3, USA
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = USA has_global_flag = WAC_scenario_3 }
		localization_key = "GFX_fopo_wac_icon_us_3"
	}
	text = { # WAC Scenario 3, SAF
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = SAF has_global_flag = WAC_scenario_3 }
		localization_key = "GFX_fopo_wac_icon_us_3"
	}
	text = { # WAC Scenario 3, JAP
		trigger = { check_variable = { conflict_id = token:GC_WAC } tag = JAP has_global_flag = WAC_scenario_3 }
		localization_key = "GFX_fopo_wac_icon_jap_3"
	}
	text = { # Angola Civil War, USA
		trigger = { check_variable = { conflict_id = token:GC_AngolaCW } tag = USA }
		localization_key = "GFX_fopo_angola_civil_war_icon_us"
	}
	text = { # Angola Civil War, Japan
		trigger = { check_variable = { conflict_id = token:GC_AngolaCW } tag = JAP }
		localization_key = "GFX_fopo_angola_civil_war_icon_jap"
	}

	text = { # Oil Crisis, supporting Italy, only Yemen
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			is_in_faction_with = ITA
			OR = {
				tag = USA
				tag = JAP
			}
		}
		localization_key = GFX_fopo_oc_icon_proitaly_yemen
	}
	text = { # Oil Crisis, supporting Italy, Yemen and Oman
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			is_in_faction_with = ITA
			OR = {
				tag = USA
				tag = JAP
			}
		}
		localization_key = GFX_fopo_oc_icon_proitaly_yemen_oman
	}
	text = { # Oil Crisis, supporting Italy, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Egypt_CW
			}
			is_in_faction_with = ITA
			OR = {
				tag = USA
				tag = JAP
			}
		}
		localization_key = GFX_fopo_oc_icon_proitaly_no_egypt
	}
	text = { # Oil Crisis, supporting Italy, everything
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			is_in_faction_with = ITA
			OR = {
				tag = USA
				tag = JAP
			}
		}
		localization_key = GFX_fopo_oc_icon_proitaly_all
	}
	text = { # Oil Crisis, GER, only Yemen
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = GER
		}
		localization_key = GFX_fopo_oc_icon_ger_only_yemen
	}
	text = { # Oil Crisis, JAP, only Yemen
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = JAP
		}
		localization_key = GFX_fopo_oc_icon_jap_only_yemen
	}
	text = { # Oil Crisis, JAP, only Yemen
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Oman_CW
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = USA
		}
		localization_key = GFX_fopo_oc_icon_usa_yemen
	}
	text = { # Oil Crisis, GER, only Yemen Oman
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = GER
		}
		localization_key = GFX_fopo_oc_icon_ger_yemen_oman
	}
	text = { # Oil Crisis, JAP, only Yemen Oman
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = JAP
		}
		localization_key = GFX_fopo_oc_icon_jap_yemen_oman
	}
	text = { # Oil Crisis, USA, only Yemen Oman
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Iraq_CW
				has_global_flag = OC_Egypt_CW
			}
			tag = USA
		}
		localization_key = GFX_fopo_oc_icon_usa_yemen_oman
	}
	text = { # Oil Crisis, GER, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Egypt_CW
			}
			tag = GER
		}
		localization_key = GFX_fopo_oc_icon_ger_no_egypt
	}
	text = { # Oil Crisis, JAP, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Egypt_CW
			}
			tag = JAP
		}
		localization_key = GFX_fopo_oc_icon_jap_no_egypt
	}
	text = { # Oil Crisis, USA, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			NOT = {
				has_global_flag = OC_Egypt_CW
			}
			tag = USA
		}
		localization_key = GFX_fopo_oc_icon_usa_no_egypt
	}
	text = { # Oil Crisis, GER, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			tag = GER
		}
		localization_key = GFX_fopo_oc_icon_ger
	}
	text = { # Oil Crisis, JAP, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			tag = JAP
		}
		localization_key = GFX_fopo_oc_icon_jap
	}
	text = { # Oil Crisis, USA, no Egypt
		trigger = {
			check_variable = { conflict_id = token:GC_OilCrisis }
			tag = USA
		}
		localization_key = GFX_fopo_oc_icon_usa
	}
	text = { # IBW, Germany
		trigger = { check_variable = { conflict_id = token:GC_IberianWars } tag = GER }
		localization_key = "GFX_fopo_IBW_ger_1_icon"
	}
	text = { # IBW, America
		trigger = { check_variable = { conflict_id = token:GC_IberianWars } tag = USA }
		localization_key = "GFX_fopo_IBW_usa_1_icon"
	}
	text = { # IBW, Japan
		trigger = { check_variable = { conflict_id = token:GC_IberianWars } tag = JAP }
		localization_key = "GFX_fopo_IBW_jap_1_icon"
	}
	text = { # Trinidad BPR
		trigger = { check_variable = { conflict_id = token:GC_TrinidadRev } }
		localization_key = "GFX_fopo_trinidad_icon"
	}

	text = { # C.A Unification DC
		trigger = { check_variable = { conflict_id = token:GC_Turkestan } tag = USA }
		localization_key = "GFX_fopo_turkes_kenes_icon_USA"
	}
	text = { # C.A Unification DC
		trigger = { check_variable = { conflict_id = token:GC_Turkestan } tag = GER }
		localization_key = "GFX_fopo_turkes_kenes_icon_GER"
	}
	text = { # C.A Unification DC
		trigger = { check_variable = { conflict_id = token:GC_Turkestan } tag = JAP }
		localization_key = "GFX_fopo_turkes_kenes_icon_JAP"
	}

	text = {
		trigger = { check_variable = { conflict_id = token:GC_MozambiqueCW } tag = USA USA = { has_country_flag = US_aid_mozambique_simango } }
		localization_key = GFX_fopo_mozambique_3_way_icon_USA
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MozambiqueCW } tag = USA }
		localization_key = GFX_fopo_mozambique_2_way_icon_USA
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MozambiqueCW } tag = JAP USA = { has_country_flag = US_aid_mozambique_simango } }
		localization_key = GFX_fopo_mozambique_3_way_icon_JAP
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MozambiqueCW } tag = JAP }
		localization_key = GFX_fopo_mozambique_2_way_icon_JAP
	}

	text = { # Balintawak Blitz USA
		trigger = { check_variable = { conflict_id = token:GC_BalintawakBlitz } tag = USA }
		localization_key = "GFX_fopo_philippines_blitz_icon_us"
	}

	text = { # Balintawak Blitz JAP
		trigger = { check_variable = { conflict_id = token:GC_BalintawakBlitz } tag = JAP }
		localization_key = "GFX_fopo_philippines_blitz_icon_jap"
	}
	text = { # The War for the Philippines - USA
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesWar } tag = USA }
		localization_key = "GFX_fopo_philippines_prep_us"
	}
	text = { # The War for the Philippines - JAP
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesWar } tag = JAP }
		localization_key = "GFX_fopo_philippines_prep_jap"
	}

	text = { # The War for the Philippines - Landing - Huks friendly - USA
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesWar } tag = USA has_global_flag = PHI_landing_ongoing USA = { NOT = { has_country_flag = PHI_negotiations_failed } } }
		localization_key = "GFX_fopo_philippines_landing_us_1"
	}

	text = { # The War for the Philippines - Landing - Huks unfriendly - USA
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesWar } tag = USA has_global_flag = PHI_landing_ongoing USA = { has_country_flag = PHI_negotiations_failed } }
		localization_key = "GFX_fopo_philippines_landing_us_2"
	}


	text = { # The War for the Philippines - Landing - JAP
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesWar } tag = JAP has_global_flag = PHI_landing_ongoing }
		localization_key = "GFX_philippines_landing_jap"
	}

	text = {
		trigger = { check_variable = { conflict_id = token:GC_SAWReconstruction } }
		localization_key = "GFX_fopo_mandates_icon"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MalagasyCW } tag = USA }
		localization_key = "GFX_fopo_madagascar_icon"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MalagasyCW } tag = GER }
		localization_key = "GFX_fopo_madagascar_icon_ger"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_MalagasyCW } tag = JAP }
		localization_key = "GFX_fopo_madagascar_icon"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_PhilippinesReconstruction } }
		localization_key = "GFX_fopo_philippines_reconstruction"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_ManoCamapign } tag = JAP }
		localization_key = "GFX_fopo_mano_campaign_jap"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_ManoCamapign } tag = USA }
		localization_key = "GFX_fopo_mano_campaign_usa"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_Orungu }
			tag = USA
			NOT = {
				has_global_flag = orungu_conflict_CAF
			}
		}
		localization_key = "GFX_fopo_orungu_icon_USA"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_Orungu }
			tag = USA
			has_global_flag = orungu_conflict_CAF
		}
		localization_key = "GFX_fopo_orungu_CAF_icon_USA"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_Orungu }
			tag = USA
			NOT = {
				has_global_flag = orungu_conflict_CAF
			}
		}
		localization_key = "GFX_fopo_orungu_icon_JAP"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_Orungu }
			tag = USA
			has_global_flag = orungu_conflict_CAF
		}
		localization_key = "GFX_fopo_orungu_CAF_icon_JAP"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_SAWWithdrawal } tag = GER }
		localization_key = "GFX_fopo_saw_withdrawal"
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_WACReconstruction } }
		localization_key = "GFX_fopo_wafr_reconstruction_icon"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_Haitian_Civil_War }
			NOT = {
				has_global_flag = HIS_trujillo_blitz_ongoing
			}
			tag = USA
		}
		localization_key = "GFX_fopo_haitian_civil_war_icon_USA"
	}
	text = { # Haitian Blitz
		trigger = {
			check_variable = { conflict_id = token:GC_Haitian_Civil_War }
			has_global_flag = HIS_trujillo_blitz_ongoing
		}
		localization_key = "GFX_fopo_haitian_blitz_icon_USA"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			OR = {
				tag = USA
				tag = MEX
			}
		}
		localization_key = "GFX_fopo_puerto_plata_icon_USA"
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_PuertoPlata }
			OR = {
				tag = IBR
				tag = GER
			}
		}
		localization_key = "GFX_fopo_puerto_plata_icon_IBR"
	}
	text = { # French Reclamation
		trigger = {
			check_variable = { conflict_id = token:GC_FranceCW }
			OR = {
				has_global_flag = FFR_reclamation_happening
				has_global_flag = FFR_reclamation_civil_war_happening
			}
			OR = {
				tag = USA
				tag = IBR
			}
		}
		localization_key = "GFX_fopo_french_reclamation_usa_icon"
	}
	text = { # French Reclamation
		trigger = {
			check_variable = { conflict_id = token:GC_FranceCW }
			OR = {
				has_global_flag = FFR_reclamation_happening
				has_global_flag = FFR_reclamation_civil_war_happening
			}
			OR = {
				tag = GER
			}
		}
		localization_key = "GFX_fopo_french_reclamation_ger_icon"
	}
	text = { # French Civil War
		trigger = {
			check_variable = { conflict_id = token:GC_FranceCW }
		}
		localization_key = "GFX_fopo_french_civil_war_icon"
	}
	text = { # Colombia Civil War - COL
		trigger = {
			check_variable = { conflict_id = token:GC_ColombiaCW }
			check_variable = { COL_faction_support = COL.id }
		}
		localization_key = "GFX_fopo_colombian_civil_war_icon_COL"
	}
	text = { # Colombia Civil War - CLL
		trigger = {
			check_variable = { conflict_id = token:GC_ColombiaCW }
			check_variable = { COL_faction_support = CLL.id }
		}
		localization_key = "GFX_fopo_colombian_civil_war_icon_CLL"
	}
	text = { # Colombia Civil War - CLC
		trigger = {
			check_variable = { conflict_id = token:GC_ColombiaCW }
			check_variable = { COL_faction_support = CLC.id }
		}
		localization_key = "GFX_fopo_colombian_civil_war_icon_CLC"
	}
	text = { # Colombia Civil War - CLD
		trigger = {
			check_variable = { conflict_id = token:GC_ColombiaCW }
			check_variable = { COL_faction_support = CLD.id }
		}
		localization_key = "GFX_fopo_colombian_civil_war_icon_CLD"
	}
	# text = {
	# 	trigger = { check_variable = { conflict_id = token: } tag = BRA }
	# 	localization_key = "GFX_fopo_south_american_cold_war_bra"
	# }
	# text = {
	# 	trigger = { check_variable = { conflict_id = token: } tag = ARG }
	# 	localization_key = "GFX_fopo_south_american_cold_war_arg"
	# }
	text = { # Iceland - USA
		trigger = { check_variable = { conflict_id = token:GC_IcelandElections } tag = USA }
		localization_key = "GFX_fopo_iceland_ref_us"
	}
	text = { # Iceland - GER
		trigger = { check_variable = { conflict_id = token:GC_IcelandElections } tag = GER }
		localization_key = "GFX_fopo_iceland_ref_ger"
	}
	text = { # Haiti - USA
		trigger = { check_variable = { conflict_id = token:GC_Haitian_Civil_War } tag = USA }
		localization_key = "GFX_fopo_haitianwar_usa"
	}
	text = { # Operation Bin Qasim - Pakt
		trigger = { check_variable = { conflict_id = token:GC_OperationBQ } tag = GER }
		localization_key = "GFX_fopo_indian_civil_war_GER"
	}
	text = { # Indian Civil War - Japan
		trigger = { check_variable = { conflict_id = token:GC_IndianCW } tag = JAP }
		localization_key = "GFX_fopo_indian_civil_war_JAP"
	}
	text = { # Indian Civil War - USA
		trigger = { check_variable = { conflict_id = token:GC_IndianCW } tag = USA }
		localization_key = "GFX_fopo_indian_civil_war_USA"
	}
	text = { # Subcontinental Crisis - Pakt
		trigger = { check_variable = { conflict_id = token:GC_SubcontinentalCrisis } tag = GER }
		localization_key = "GFX_fopo_subcontinental_crisis_icon_pakt"
	}
	text = { # Subcontinental Crisis - Japan
		trigger = { check_variable = { conflict_id = token:GC_SubcontinentalCrisis } tag = JAP }
		localization_key = "GFX_fopo_subcontinental_crisis_icon_cps"
	}
	### 2WRW ###
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_IranCW }
			tag = RUS
			has_global_flag = TNO_IRA_collapsed_coalition
			has_country_flag = RUS_iranian_intervention_shadom
		}
		localization_key = GFX_iran_civil_war_icon_rus_shahdom
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_IranCW }
			tag = RUS
			has_global_flag = TNO_IRA_collapsed_coalition
			has_country_flag = RUS_iranian_intervention_liberals
		}
		localization_key = GFX_fopo_iran_civil_war_icon_us
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_IranCW }
			tag = RUS
			has_global_flag = TNO_IRA_collapsed_coalition
			has_country_flag = RUS_iranian_intervention_islam
		}
		localization_key = GFX_fopo_iran_civil_war_icon_jap
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:GC_IranCW }
			tag = RUS
			has_global_flag = TNO_IRA_collapsed_coalition
			has_country_flag = RUS_iranian_intervention_communist
		}
		localization_key = GFX_iran_civil_war_icon_rus_commie
	}
	text = {
		trigger = { check_variable = { conflict_id = token:GC_IranCW } tag = RUS }
		localization_key = GFX_fopo_iran_civil_war_icon_us_early
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_PLU } tag = RUS }
		localization_key = GFX_krakow_uprising_icon_rus
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_PLU } tag = GER }
		localization_key = GFX_krakow_uprising_icon_ger
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_WG } tag = RUS }
		localization_key = GFX_west_georgia_icon_rus
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_WG } tag = GER }
		localization_key = GFX_west_georgia_icon_ger
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_WCW } tag = RUS }
		localization_key = GFX_west_china_war_icon_rus
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_WCW } tag = JAP }
		localization_key = GFX_west_china_war_icon_jap
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_MU } tag = RUS }
		localization_key = GFX_mongolia_uprising_icon_rus
	}
	text = {
		trigger = { check_variable = { conflict_id = token:SWRW_GC_MU } tag = JAP }
		localization_key = GFX_mongolia_uprising_icon_jap
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = GER
		}
		localization_key = GFX_hungarian_civil_war_icon_ger
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
			has_global_flag = SWRW_HUN_owns_northern_transylvania
		}
		localization_key = GFX_hungarian_civil_war_icon_rus_transylvania_commie
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			OR = {
				RUS = { has_country_flag = RUS_generic_democratic_unifier }
				has_global_flag = RUS_shukshin_unification
			}
			has_global_flag = SWRW_HUN_owns_northern_transylvania
		}
		localization_key = GFX_hungarian_civil_war_icon_rus_transylvania_dem
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = GER
			has_global_flag = SWRW_HUN_owns_northern_transylvania
		}
		localization_key = GFX_hungarian_civil_war_icon_transylvania_ger
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
		}
		localization_key = GFX_hungarian_civil_war_icon_rus_commie
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_HCW }
			tag = RUS
			OR = {
				RUS = { has_country_flag = RUS_generic_democratic_unifier }
				has_global_flag = RUS_shukshin_unification
			}
		}
		localization_key = GFX_hungarian_civil_war_icon_rus_dem
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_2GCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
			NOT = { has_global_flag = REG_RPR_War }
		}
		localization_key = GFX_german_civil_war_icon_rus_commie_pre_truce_break
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_2GCW }
			tag = RUS
			RUS = { has_country_flag = RUS_generic_communist_unifier }
			has_global_flag = REG_RPR_War
		}
		localization_key = GFX_german_civil_war_icon_rus_commie_post_truce_break
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_2GCW }
			OR = {
				AND = {
					tag = RUS
					OR = {
						RUS = { has_country_flag = RUS_generic_democratic_unifier }
						has_global_flag = RUS_shukshin_unification
					}
				}
				tag = USA
			}
			NOT = { has_global_flag = REG_RPR_War }
		}
		localization_key = GFX_german_civil_war_icon_rus_dem_pre_truce_break
	}
	text = {
		trigger = {
			check_variable = { conflict_id = token:SWRW_GC_2GCW }
			OR = {
				AND = {
					tag = RUS
					OR = {
						RUS = { has_country_flag = RUS_generic_democratic_unifier }
						has_global_flag = RUS_shukshin_unification
					}
				}
				tag = USA
			}
			has_global_flag = REG_RPR_War
		}
		localization_key = GFX_german_civil_war_icon_rus_dem_post_truce_break
	}
	### END 2WRW ###
	text = {
		localization_key = "GFX_fopo_blank_icon"
	}
}

defined_text = {
	name = Get_fopo_header
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_SAW } }
		localization_key = "GFX_decision_image_SAF_war"
	}
	text = {
		trigger = { check_variable = { selected_conflict_id = token:GC_IndonesiaCW } }
		localization_key = ""
	}
	text = {
		localization_key = ""
	}
}


defined_text = {
	name = Get_fopo_seal
	text = {
		trigger = { tag = JAP }
		localization_key = "GFX_fopo_gaimusho_seal"
	}
	text = {
		trigger = { tag = GER }
		localization_key = "GFX_fopo_reichsadler_seal"
	}
	text = {
		trigger = { tag = USA }
		localization_key = "GFX_fopo_dept_of_state_seal"
	}
	text = {
		trigger = { tag = BRA }
		localization_key = "GFX_fopo_brazil_seal"
	}
	text = {
		trigger = { tag = IBR }
		localization_key = "GFX_fopo_iberia_seal"
	}
	text = { # waiting on GFX
		trigger = { tag = ENG }
		localization_key = "GFX_fopo_britain_seal"
	}
	text = {
		trigger = { tag = SAF }
		localization_key = "GFX_fopo_SAF_seal"
	}
	### 2WRW ###
	text = {
		trigger = { tag = NOV }
		localization_key = "GFX_seal_of_the_russian_federation"
	}
	text = {
		trigger = { tag = RUS }
		localization_key = "GFX_seal_of_the_russian_federation"
	}
	### END 2WRW ###
	text = {
		localization_key = ""
	}
}

defined_text = {
	name = Get_fopo_info_tooltip
	text = {
		trigger = {
			tag = USA
			check_variable = { selected_conflict_id = token:GC_WAC }
		}
		localization_key = "USA_WAC_info_tooltip"
	}
}

# Puerto Plata text
defined_text = {
	name = GetPPSpyTooltip
	text = {
		trigger = { tag = USA }
		localization_key = pp_spy_meter_tooltip_USA
	}
	text = {
		trigger = { tag = MEX }
		localization_key = pp_spy_meter_tooltip_MEX
	}
	text = {
		trigger = { tag = IBR }
		localization_key = pp_spy_meter_tooltip_IBR
	}
	text = {
		trigger = { tag = GER }
		localization_key = pp_spy_meter_tooltip_GER
	}
}
defined_text = {
	name = GetPPSpyTooltipDelayed
	text = {
		trigger = { tag = USA }
		localization_key = pp_spy_meter_tooltip_delayed_USA
	}
	text = {
		trigger = { tag = MEX }
		localization_key = pp_spy_meter_tooltip_delayed_MEX
	}
	text = {
		trigger = { tag = IBR }
		localization_key = pp_spy_meter_tooltip_delayed_IBR
	}
	text = {
		trigger = { tag = GER }
		localization_key = pp_spy_meter_tooltip_delayed_GER
	}
}
defined_text = {
	name = GetPPOperationalText
	text = {
		trigger = { tag = USA }
		localization_key = PP_spy_text_USA
	}
	text = {
		trigger = { tag = MEX }
		localization_key = PP_spy_text_MEX
	}
	text = {
		trigger = { tag = IBR }
		localization_key = PP_spy_text_IBR
	}
	text = {
		trigger = { tag = GER }
		localization_key = PP_spy_text_GER
	}
}
defined_text = {
	name = GetPPStrengthIncreaseCAL
	text = {
		trigger = { tag = USA }
		localization_key = TNO_PP_spy_strength_increase_CAL_USA_tt
	}
	text = {
		trigger = { tag = MEX }
		localization_key = TNO_PP_spy_strength_increase_CAL_MEX_tt
	}
}
defined_text = {
	name = GetPPStrengthDecreaseCAL
	text = {
		trigger = { tag = USA }
		localization_key = TNO_PP_spy_strength_decrease_CAL_USA_tt
	}
	text = {
		trigger = { tag = MEX }
		localization_key = TNO_PP_spy_strength_decrease_CAL_MEX_tt
	}
}
defined_text = {
	name = GetPPStrengthIncreaseDOM
	text = {
		trigger = { tag = IBR }
		localization_key = TNO_PP_spy_strength_increase_DOM_IBR_tt
	}
	text = {
		trigger = { tag = GER }
		localization_key = TNO_PP_spy_strength_increase_DOM_GER_tt
	}
}
defined_text = {
	name = GetPPStrengthDecreaseDOM
	text = {
		trigger = { tag = IBR }
		localization_key = TNO_PP_spy_strength_decrease_DOM_IBR_tt
	}
	text = {
		trigger = { tag = GER }
		localization_key = TNO_PP_spy_strength_decrease_DOM_GER_tt
	}
}

defined_text = {
	name = GetPPCustomizationBottom
	text = {
		trigger = { has_global_flag = PPI_landing_ongoing }
		localization_key = USA_PP_ongoing_bottom
	}
	text = {
		trigger = { has_global_flag = PPI_ceasefire_happening }
		localization_key = USA_PP_ceasefire_tooltip
	}
	text = {
		localization_key = USA_PP_preparations_bottom
	}
}
defined_text = {
	name = GetPPCustomizationTooltip
	text = {
		trigger = { has_global_flag = PPI_ceasefire_happening }
		localization_key = USA_PP_ceasefire_tooltip
	}
	text = {
		trigger = { has_global_flag = PPI_landing_ongoing }
		localization_key = USA_PP_ongoing_tooltip
	}
	text = {
		localization_key = USA_PP_preparations_tooltip
	}
}

defined_text = {
	name = GetPPInsurgencyStrengthInvasion
	text = {
		trigger = { has_global_flag = PPI_landing_ongoing }
		localization_key = PP_Insurgency_Strength_tooltip
	}
	text = {
		localization_key = PP_Insurgency_Strength_None_tooltip
	}
}

defined_text = {
	name = GetPPMexican_American_Cooperation
	text = {
		trigger = { check_variable = { MEX.PP_mexican_american_cooperation > 15 } }
		localization_key = "high_ma_pp_cooperation"
	}
	text = {
		trigger = { check_variable = { MEX.PP_mexican_american_cooperation > 10 } }
		localization_key = "decent_ma_pp_cooperation"
	}
	text = {
		trigger = { check_variable = { MEX.PP_mexican_american_cooperation > 5 } }
		localization_key = "poor_ma_pp_cooperation"
	}
	text = { localization_key = "no_ma_pp_cooperation" }
}

# Mozambique US Supported Faction
defined_text = {
	name = GetUSAMozambiqueSupportFlag
	text = {
		trigger = {
			has_country_flag = US_aid_mozambique_simango
		}
		localization_key = "[GZS.GetFlag]"
	}
	text = {
		trigger = {
			has_country_flag = US_aid_mozambique_mondlane
		}
		localization_key = "[GZO.GetFlag]"
	}
}

# Congo US Supported Faction
defined_text = {
	name = GetUSACongoSupportName
	text = {
		trigger = {
			has_country_flag = US_aid_CFS
		}
		localization_key = "[CFS.GetNameDefCap]"
	}
	text = {
		localization_key = "[COG.GetNameDefCap]"
	}
}
defined_text = {
	name = CFS_GetVictoryEventPic
	text = {
		trigger = {
			CFS = { has_country_leader = { character = CFS_Patrice_Lumumba ruling_only = yes } }
		}
		localization_key = "GFX_report_event_COG_lumumba_2"
	}
	text = {
		localization_key = "GFX_report_event_COG_congo_army"
	}
}

# USA Homefront Effects
defined_text = {
	name = GetTrustLevel
	text = {
		trigger = {
			check_variable = { tempTrust_tt < 5 }
		}
		localization_key = USA_homefront_small
	}
	text = {
		trigger = {
			check_variable = { tempTrust_tt > 7 }
		}
		localization_key = USA_homefront_large
	}
	text = {
		localization_key = USA_homefront_medium
	}
}
defined_text = {
	name = GetOpticsLevel
	text = {
		trigger = {
			check_variable = { tempOptics_tt < 5 }
		}
		localization_key = USA_homefront_small
	}
	text = {
		trigger = {
			check_variable = { tempOptics_tt > 7 }
		}
		localization_key = USA_homefront_large
	}
	text = {
		localization_key = USA_homefront_medium
	}
}
defined_text = {
	name = GetHawkishnessLevel
	text = {
		trigger = {
			check_variable = { tempHawkishness_tt < 7 }
		}
		localization_key = USA_homefront_small
	}
	text = {
		trigger = {
			check_variable = { tempHawkishness_tt > 9 }
		}
		localization_key = USA_homefront_large
	}
	text = {
		localization_key = USA_homefront_medium
	}
}

# Madagascar
defined_text = {
	name = Get_Madagascar_Desc
	text = {
		trigger = {
			original_tag = USA
		}
		localization_key = USA_Madagascar_desc
	}
	text = {
		trigger = {
			original_tag = JAP
		}
		localization_key = JAP_Madagascar_desc
	}
	text = {
		trigger = {
			original_tag = GER
		}
		localization_key = GER_Madagascar_desc
	}
}

defined_text = {
	name = 1857_Get_Madagascar_Controller
	text = {
		trigger = {
			1857 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1857.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1969_Get_Madagascar_Controller
	text = {
		trigger = {
			1969 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1969.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 944_Get_Madagascar_Controller
	text = {
		trigger = {
			944 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[944.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 945_Get_Madagascar_Controller
	text = {
		trigger = {
			945 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[945.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1970_Get_Madagascar_Controller
	text = {
		trigger = {
			1970 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1970.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1974_Get_Madagascar_Controller
	text = {
		trigger = {
			1974 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1974.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1975_Get_Madagascar_Controller
	text = {
		trigger = {
			1975 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1975.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1860_Get_Madagascar_Controller
	text = {
		trigger = {
			1860 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1860.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 946_Get_Madagascar_Controller
	text = {
		trigger = {
			946 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[946.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1864_Get_Madagascar_Controller
	text = {
		trigger = {
			1864 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1864.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1859_Get_Madagascar_Controller
	text = {
		trigger = {
			1859 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1859.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1971_Get_Madagascar_Controller
	text = {
		trigger = {
			1971 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1971.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1972_Get_Madagascar_Controller
	text = {
		trigger = {
			1972 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1972.controller.GetNameWithFlag]"
	}
}
defined_text = {
	name = 1861_Get_Madagascar_Controller
	text = {
		trigger = {
			1861 = {
				is_controlled_by = MDM
			}
		}
		localization_key = Madagascar_state_controller_no_one_tt
	}
	text = {
		localization_key = "[1861.controller.GetNameWithFlag]"
	}
}

defined_text = {
	name = MAD_proxy_color_1864
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1864 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1864 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1864_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1864 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1864 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1864_grn"
	}
	text = {
		trigger = {
			1864 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_trail_1864_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1859
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					AND = {
						MDG = { controls_province = 16171 }
						MDG = { controls_province = 13706 }
						MDG = { controls_province = 13726 }
					}
				}
				AND = {
					tag = GER
					AND = {
						MAD = { controls_province = 16171 }
						MAD = { controls_province = 13706 }
						MAD = { controls_province = 13726 }
					}
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1859_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					AND = {
						MAD = { controls_province = 16171 }
						MAD = { controls_province = 13706 }
						MAD = { controls_province = 13726 }
					}
				}
				AND = {
					tag = GER
					AND = {
						MDG = { controls_province = 16171 }
						MDG = { controls_province = 13706 }
						MDG = { controls_province = 13726 }
					}
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1859_grn"
	}
	text = {
		trigger = {
			AND = {
				MDM = { controls_province = 16171 }
				MDM = { controls_province = 13706 }
				MDM = { controls_province = 13726 }
			}
		}
		localization_key = "GFX_madagascar_trail_1859_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1971
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1971 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1971 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1971_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1971 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1971 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1971_grn"
	}
	text = {
		trigger = {
			1971 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_trail_1971_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1972
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1972 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1972 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1972_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1972 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1972 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1972_grn"
	}
	text = {
		trigger = {
			1972 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_trail_1972_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1861
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					AND = {
						MDG = { controls_province = 15964 }
						MDG = { controls_province = 15945 }
					}
				}
				AND = {
					tag = GER
					AND = {
						MAD = { controls_province = 15964 }
						MAD = { controls_province = 15945 }
					}
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1861_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					AND = {
						MAD = { controls_province = 15964 }
						MAD = { controls_province = 15945 }
					}
				}
				AND = {
					tag = GER
					AND = {
						MDG = { controls_province = 15964 }
						MDG = { controls_province = 15945 }
					}
				}
			}
		}
		localization_key = "GFX_madagascar_trail_1861_grn"
	}
	text = {
		trigger = {
			AND = {
				MDM = { controls_province = 15964 }
				MDM = { controls_province = 15945 }
			}
		}
		localization_key = "GFX_madagascar_trail_1861_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1857
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1857 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1857 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1857 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1857 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_grn"
	}
	text = {
		trigger = {
			1857 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_main_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1969
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1969 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1969 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1969 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1969 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_grn"
	}
	text = {
		trigger = {
			1969 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_mini_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_944
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					944 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					944 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					944 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					944 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_grn"
	}
	text = {
		trigger = {
			944 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_main_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_945
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					945 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					945 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					945 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					945 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_grn"
	}
	text = {
		trigger = {
			945 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_main_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1970
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1970 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1970 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1970 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1970 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_grn"
	}
	text = {
		trigger = {
			1970 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_mini_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1974
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1974 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1974 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1974 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1974 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_grn"
	}
	text = {
		trigger = {
			1974 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_mini_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1975
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1975 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1975 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1975 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1975 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_mini_grn"
	}
	text = {
		trigger = {
			1975 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_mini_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_1860
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1860 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					1860 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					1860 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					1860 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_grn"
	}
	text = {
		trigger = {
			1860 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_main_blank"
	}
}

defined_text = {
	name = MAD_proxy_color_946
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					946 = { is_controlled_by = MDG }
				}
				AND = {
					tag = GER
					946 = { is_controlled_by = MAD }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_red"
	}
	text = {
		trigger = {
			OR = {
				AND = {
					OR = {
						tag = USA
						tag = JAP
					}
					946 = { is_controlled_by = MAD }
				}
				AND = {
					tag = GER
					946 = { is_controlled_by = MDG }
				}
			}
		}
		localization_key = "GFX_madagascar_city_main_grn"
	}
	text = {
		trigger = {
			946 = { is_controlled_by = MDM }
		}
		localization_key = "GFX_madagascar_city_main_blank"
	}
}

defined_text = {
	name = Get_Madagascar_button_text_color_factionalism
	text = {
		trigger = {
			check_variable = { Madagascar_active_tab = 0 }
		}
		localization_key = Madagascar_W
	}
	text = {
		localization_key = Madagascar_D
	}
}

defined_text = {
	name = Get_Madagascar_button_text_color_regions
	text = {
		trigger = {
			check_variable = { Madagascar_active_tab = 0 }
		}
		localization_key = Madagascar_D
	}
	text = {
		localization_key = Madagascar_W
	}
}

defined_text = {
	name = Get_Madagascar_node_desc
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1857 }
		}
		localization_key = Madagascar_state_desc.1857
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1969 }
		}
		localization_key = Madagascar_state_desc.1969
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 944 }
		}
		localization_key = Madagascar_state_desc.944
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 945 }
		}
		localization_key = Madagascar_state_desc.945
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1970 }
		}
		localization_key = Madagascar_state_desc.1970
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1974 }
		}
		localization_key = Madagascar_state_desc.1974
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1975 }
		}
		localization_key = Madagascar_state_desc.1975
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 1860 }
		}
		localization_key = Madagascar_state_desc.1860
	}
	text = {
		trigger = {
			check_variable = { Madagascar_selected_city = 946 }
		}
		localization_key = Madagascar_state_desc.946
	}
}

defined_text = {
	name = GetHincheTitle
	text = {
		trigger = {
			has_country_flag = HCW_signal_lost
		}
		localization_key = ""
	}
	text = {
		trigger = {
			DOM = {
				owns_state = 1706
				NOT = {
					has_government = socialist
					has_government = communist
				}
			}
		}
		localization_key = "TNO_HCW_Hinche_tt_occupation"
	}
	text = {
		trigger = {
			DOM = {
				owns_state = 1706
				OR = {
					has_government = socialist
					has_government = communist
				}
			}
		}
		localization_key = TNO_HCW_Hinche_tt_socialist
	}
	text = {
		localization_key = TNO_HCW_Hinche_tt_haiti
	}
}

defined_text = {
	name = GetHCWHincheTooltip_delayed
	text = {
		trigger = {
			has_country_flag = HCW_signal_lost
		}
		localization_key = ""
	}
	text = {
		trigger = {
			DOM = {
				owns_state = 1706
				has_government = fascism
			}
		}
		localization_key = "TNO_HCW_Hinche_trujillo_delayed"
	}
	text = {
		trigger = {
			DOM = {
				owns_state = 1706
				OR = {
					has_government = socialist
					has_government = communist
				}
			}
		}
		localization_key = TNO_HCW_Hinche_socialist_delayed
	}
	text = {
		trigger = { DOM = { owns_state = 1706 } }
		localization_key = TNO_HCW_Hinche_democratic_delayed
	}
	text = {
		localization_key = TNO_HCW_Hinche_hinche_delayed
	}
}

defined_text = {
	name = GetHCWPhase
	text = {
		trigger = { TNO_HCW_Phase_Base = yes }
		localization_key = TNO_HCW_Phase_title_Base
	}
	text = {
		trigger = { TNO_HCW_Phase_Buildup = yes }
		localization_key = TNO_HCW_Phase_title_Buildup
	}
	text = {
		trigger = { TNO_HCW_Phase_Interventionism = yes }
		localization_key = TNO_HCW_Phase_title_Interventionism
	}
	text = {
		trigger = { TNO_HCW_Phase_Disengagement = yes }
		localization_key = TNO_HCW_Phase_title_Disengagement
	}
}

defined_text = {
	name = GetHAIConstructorLevel
	text = {
		trigger = { check_variable = { HAI_dev_program_strength = 0 } }
		localization_key = TNO_HAICW_one_star
	}
	text = {
		trigger = { check_variable = { HAI_dev_program_strength = 1 } }
		localization_key = TNO_HAICW_two_star
	}
	text = {
		trigger = { check_variable = { HAI_dev_program_strength = 2 } }
		localization_key = TNO_HAICW_three_star
	}
}

defined_text = {
	name = puertoplatamissiontitle
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_Invasion_Begins } }
		localization_key = USA_PPI_Invasion_Begins
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_CAL_training } }
		localization_key = USA_PPI_CAL_training
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_Invasion_Ends } }
		localization_key = USA_PPI_Invasion_Ends
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_DOM_CAL_Negotiations } }
		localization_key = USA_PPI_DOM_CAL_Negotiations
	}
}

defined_text = {
	name = puertoplatamissiontime
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_Invasion_Begins } }
		localization_key = ZZZ_PP_Mission_1
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_CAL_training } }
		localization_key = ZZZ_PP_Mission_2
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_Invasion_Ends } }
		localization_key = ZZZ_PP_Mission_3
	}
	text = {
		trigger = { ZZZ = { has_active_mission = ZZZ_PPI_DOM_CAL_Negotiations } }
		localization_key = ZZZ_PP_Mission_4
	}
}

defined_text = {
	name = GetLegionaryOffice
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 0 } } }
		localization_key = PPI_Office_1
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 1 } } }
		localization_key = PPI_Office_2
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 2 } } }
		localization_key = PPI_Office_3
	}
}

defined_text = {
	name = GetLegionaryOfficeDesc
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 0 } } }
		localization_key = PPI_Office_1_desc
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 1 } } }
		localization_key = PPI_Office_2_desc
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Office_Number = 2 } } }
		localization_key = PPI_Office_3_desc
	}
}

defined_text = {
	name = GetCubanColumnNumber
	text = {
		trigger = { MEX = { check_variable = { PPI_Cuban_Column_Number = 0 } } }
		localization_key = PPI_Cuban_Column_1
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Cuban_Column_Number = 1 } } }
		localization_key = PPI_Cuban_Column_2
	}
}

defined_text = {
	name = GetCubanColumnNumberDesc
	text = {
		trigger = { MEX = { check_variable = { PPI_Cuban_Column_Number = 0 } } }
		localization_key = PPI_Cuban_Column_1_desc
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Cuban_Column_Number = 1 } } }
		localization_key = PPI_Cuban_Column_2_desc
	}
}

defined_text = {
	name = GetColumnNumber
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 0 } } }
		localization_key = PPI_Column_1
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 1 } } }
		localization_key = PPI_Column_2
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 2 } } }
		localization_key = PPI_Column_3
	}
}

defined_text = {
	name = GetColumnNumberDesc
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 0 } } }
		localization_key = PPI_Column_1_desc
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 1 } } }
		localization_key = PPI_Column_2_desc
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Column_Number = 2 } } }
		localization_key = PPI_Column_3_desc
	}
}

defined_text = {
	name = GetTrainingColumnNumber
	text = {
		trigger = { MEX = { has_country_flag = MEX_PPI_Legion_4_trained } }
		localization_key = PPI_Column_3
	}
	text = {
		trigger = { MEX = { has_country_flag = MEX_PPI_Legion_3_trained } }
		localization_key = PPI_Column_2
	}
	text = {
		localization_key = PPI_Column_1
	}
}

defined_text = {
	name = GetTrainingColumnNumberDesc
	text = {
		trigger = { MEX = { has_country_flag = MEX_PPI_Legion_4_trained } }
		localization_key = PPI_Column_3_t_desc
	}
	text = {
		trigger = { MEX = { has_country_flag = MEX_PPI_Legion_3_trained } }
		localization_key = PPI_Column_2_t_desc
	}
	text = {
		localization_key = PPI_Column_1_t_desc
	}
}

defined_text = {
	name = GetLegionBase
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 0 } } }
		localization_key = PPI_Base_1
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 1 } } }
		localization_key = PPI_Base_2
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 2 } } }
		localization_key = PPI_Base_3
	}
}
defined_text = {
	name = GetLegionBaseDesc
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 0 } } }
		localization_key = PPI_BaseDesc_1
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 1 } } }
		localization_key = PPI_BaseDesc_2
	}
	text = {
		trigger = { MEX = { check_variable = { PPI_Base_Number = 2 } } }
		localization_key = PPI_BaseDesc_3
	}
}

defined_text = { # I put this here since there's no better file for it.
	name = GetDOMModernizingMilitaryDesc
	text = {
		trigger = { MEX = { has_country_flag = MEX_Trujillo_Conspiracy_34_happened } }
		localization_key = DOM_Modernizing_Military_pupo_roman_desc
	}
	text = {
		localization_key = DOM_Modernizing_Military_normal_desc
	}
}

defined_text = {
	name = GetChannelCrisisDesc
	text = {
		trigger = {
			tag = ENG
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = ENG_Channel_Crisis_buildup_desc
	}
	text = {
		trigger = {
			tag = GER
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = GER_Channel_Crisis_buildup_desc
	}
	text = {
		trigger = {
			tag = USA
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = USA_Channel_Crisis_buildup_desc
	}
	text = {
		trigger = {
			tag = ENG
		}
		localization_key = ENG_Channel_Crisis_confrontation_desc
	}
	text = {
		trigger = {
			tag = GER
		}
		localization_key = GER_Channel_Crisis_confrontation_desc
	}
	text = {
		trigger = {
			tag = USA
		}
		localization_key = USA_Channel_Crisis_confrontation_desc
	}
}

defined_text = {
	name = CC_current_phase_loc
	text = {
		trigger = {
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = channel_crisis_buildup
	}
	text = {
		localization_key = channel_crisis_confrontation
	}
}

defined_text = {
	name = Get_cc_display_image
	text = {
		trigger = {
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = "GFX_channel_crisis_topbar_image_1"
	}
	text = {
		localization_key = "GFX_channel_crisis_topbar_image_2"
	}
}

defined_text = {
	name = GetChannelCrisisRejectorDemand
	text = {
		trigger = {
			ROOT = { tag = GER }
		}
		localization_key = "Channel_Crisis_Demand_text"
	}
	text = {
		localization_key = "Channel_Crisis_Reject_text"
	}

}

defined_text = {
	name = Get_CC_Zeroes_Amount
	text = {
		trigger = {
			check_variable = { CC_display_two = 100 }
		}
		localization_key = ""
	}
	text = {
		trigger = {
			check_variable = {
				var = CC_display_two
				value = 9
				compare = less_than_or_equals
			}
		}
		localization_key = "00"
	}
	text = {
		localization_key = "0"
	}
}

defined_text = {
	name = GetChannelCrisis_nego_bg_text
	text = {
		trigger = {
			has_global_flag = channel_crisis_ongoing_buildup
		}
		localization_key = Channel_Crisis_Negotiations_not_yet_text
	}
	text = {
		localization_key = Channel_Crisis_Negotiations_none_active_text
	}
}

defined_text = {
	name = GetChannelCrisis_player_readiness_tt
	text = {
		trigger = {
			tag = GER
		}
		localization_key = CC_player_readiness_pakt_tt
	}
	text = {
		localization_key = CC_player_readiness_ofn_tt
	}
}

defined_text = {
	name = GetChannelCrisis_opposing_tt
	text = {
		trigger = {
			if = {
				limit = { tag = GER }
				check_variable = { GER.CC_current_uncertainty = 100 }
			}
			else = { check_variable = { ENG.CC_current_uncertainty = 100 } }
		}
		localization_key = CC_opposing_readiness_no_info_tt
	}
	text = {
		trigger = {
			tag = GER
			check_variable = { GER.CC_current_uncertainty = 0 }
		}
		localization_key = CC_opposing_readiness_full_info_pakt_tt
	}
	text = {
		trigger = {
			OR = {
				tag = ENG
				tag = USA
			}
			check_variable = { ENG.CC_current_uncertainty = 0 }
		}
		localization_key = CC_opposing_readiness_full_info_ofn_tt
	}
	text = {
		trigger = {
			tag = GER
		}
		localization_key = CC_opposing_readiness_for_pakt_tt
	}
	text = {
		localization_key = CC_opposing_readiness_for_ofn_tt
	}
}

defined_text = {
	name = Get_negotiations_tt
	text = {
		trigger = { has_global_flag = channel_crisis_ongoing_buildup }
		localization_key = Channel_Crisis_Negotiations_not_yet_text
	}
	text = {
		trigger = {
			tag = GER
			NOT = { has_global_flag = channel_crisis_ongoing_buildup }
		}
		localization_key = CC_negotiations_pakt_tt
	}
	text = {
		trigger = {
			NOT = {
				has_global_flag = channel_crisis_ongoing_buildup
				tag = GER
			}
		}
		localization_key = CC_negotiations_ofn_tt
	}
}

defined_text = {
	name = Get_CC_negotiations_concession_descrip
	text = {
		trigger = {
			ENG = {
				meta_trigger = {
					text = { set_temp_variable = { description_var = token:[TERM]_Desc } }
					TERM = "[?ENG.cc_negotiations_concessions_array_val.GetTokenKey]"
				}
			}
		}
		localization_key = "[?ENG.description_var.GetTokenLocalizedKey]"
	}
}

defined_text = {
	name = CC_getSAWconcession
	#text = { #needs too much to make it in the initial release, implementing later
	#	trigger = {
	#		has_global_flag = south_african_war_happening
	#	}
	#	localization_key = concession_saw
	#}
	text = {
		localization_key = concession_spy_exchange
	}
}

defined_text = {
	name = CC_getSAWconcession_desc
	#text = {
	#	trigger = {
	#		has_global_flag = south_african_war_happening
	#	}
	#	localization_key = concession_saw_desc
	#}
	text = {
		localization_key = concession_spy_exchange_desc
	}
}

# Subcontinental Crisis Scripted Loc
defined_text = {
	name = GetSubcontinentalCrisisDesc
	text = {
		trigger = { 
			tag = AZH
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = AZH_Subcontinental_Crisis_buildup_desc
	}
	text = {
		trigger = { 
			tag = PAK
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = PAK_Subcontinental_Crisis_buildup_desc
	}
	text = {
		trigger = { 
			tag = GER
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = GER_Subcontinental_Crisis_buildup_desc
	}
	text = {
		trigger = {
			tag = JAP
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = JAP_Subcontinental_Crisis_buildup_desc
	}
	text = {
		trigger = { 
			tag = AZH
		}
		localization_key = AZH_Subcontinental_Crisis_confrontation_desc
	}
	text = {
		trigger = { 
			tag = PAK
		}
		localization_key = PAK_Subcontinental_Crisis_confrontation_desc
	}
	text = {
		trigger = { 
			tag = GER
		}
		localization_key = GER_Subcontinental_Crisis_confrontation_desc
	}
	text = {
		trigger = { 
			tag = JAP
		}
		localization_key = JAP_Subcontinental_Crisis_confrontation_desc
	}
}

defined_text = {
	name = get_SC_current_phase_loc
	text = {
		trigger = {
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = subcontinental_crisis_buildup
	}
	text = {
		localization_key = subcontinental_crisis_confrontation
	}
}

defined_text = {
	name = Get_sc_display_image
	text = {
		trigger = {
			has_global_flag = subcontinental_crisis_ongoing_buildup
		}
		localization_key = "GFX_subcontinental_crisis_topbar_image_1"
	}
	text = {
		localization_key = "GFX_subcontinental_crisis_topbar_image_2"
	}
}

defined_text = {
	name = Get_SC_Zeroes_Amount
	text = {
		trigger = {
			check_variable = { SC_display_two = 100 }
		}
		localization_key = ""
	}
	text = {
		trigger = {
			check_variable = {
				var = SC_display_two
				value = 9
				compare = less_than_or_equals
			}
		}
		localization_key = "00"
	}
	text = {
		localization_key = "0"
	}
}

defined_text = {
	name = GetSubcontinentalCrisis_player_readiness_tt
	text = {
		trigger = {
			OR = {
				tag = GER
				tag = PAK
			}
		}
		localization_key = SC_player_readiness_pakt_tt
	}
	text = {
		localization_key = SC_player_readiness_cps_tt
	}
}

defined_text = {
	name = GetSubcontinentalCrisis_opposing_tt
	text = {
		trigger = {
			if = {
				limit = {
					OR = {
						tag = GER
						tag = PAK
					}
				}
				check_variable = { PAK.SC_current_uncertainty = 100 }
			}
			else = {
				check_variable = { JAP.SC_current_uncertainty = 100 }
			}
		}
		localization_key = SC_opposing_readiness_no_info_tt
	}
	text = {
		trigger = {
			OR = {
				tag = GER
				tag = PAK
			}
			check_variable = { PAK.SC_current_uncertainty = 0 }
		}
		localization_key = SC_opposing_readiness_full_info_pakt_tt
	}
	text = {
		trigger = {
			OR = {
				tag = AZH
				tag = JAP
			}
			check_variable = { JAP.SC_current_uncertainty = 0 }
		}
		localization_key = SC_opposing_readiness_full_info_cps_tt
	}
	text = {
		trigger = {
			OR = {
				tag = GER
				tag = PAK
			}
		}
		localization_key = SC_opposing_readiness_for_pakt_tt
	}
	text = {
		localization_key = SC_opposing_readiness_for_cps_tt
	}
}