scripted_gui = {
	VAT_vera_fides_expansion_corps_gui = {
		window_name = "vera_fides_expansion_corps_container_ui_window"
		context_type = decision_category

		triggers = {
			north_america_button_visible = {
				has_completed_focus = VAT_a_new_european_force
				# OR = {
				# 	is_debug = yes
				# 	has_completed_focus = VAT_the_north_american_branch_of_odd
				# }
			}
			south_america_button_visible = {
				has_completed_focus = VAT_a_new_european_force
				# OR = {
				# 	is_debug = yes
				# 	has_completed_focus = VAT_the_south_american_branch_of_odd
				# }
			}
			balkans_button_visible = {
				has_completed_focus = VAT_a_new_european_force
				# OR = {
				# 	is_debug = yes
				# 	has_completed_focus = VAT_the_balkan_branch_of_odd
				# }
			}

			#GERMANY
			germany_icon_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
			}

			german_relations_progressbar_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			german_relations_progressbar_bg_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			germany_relations_textbox_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			german_influence_progressbar_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			german_influence_progressbar_bg_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			germany_influence_textbox_visible = {
				has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
				NOT = {
					has_completed_focus = VAT_great_unificaation
					has_completed_focus = VAT_betrayal_of_the_century
				}
			}
			vichy_france_influence_icon_visible = {
				has_completed_focus = VAT_friendship_with_vichy
				# any_other_country = {
				# 	original_tag = FRA
				# 	has_focus_tree = vichy_french_focus
				# 	exists = yes
				# 	has_capitulated = no
				# 	NOT = { has_war_with = VAT has_war_with = GER }
				# }
			}
			balkans_reich_influence_icon_visible = {
				OR = {
					AND = {
						has_completed_focus = VAT_the_bulgarian_question
						BUL = { VAT_check_odd_reich_balkans_influence_visible = yes }
					}
					AND = {
						has_completed_focus = VAT_the_romanian_compromise
						ROM = { VAT_check_odd_reich_balkans_influence_visible = yes }
					}
				}
			}

			odd_top_secret_visible = {
				NOT = {
					has_completed_focus = VAT_a_new_european_force
					has_completed_focus = VAT_in_the_wake_of_the_nazi_rood
					has_completed_focus = VAT_the_politics_of_antifascism
				}
			}

			#BALKANS
			yugoslavia_support_icon_visible = {
				check_variable = {
					odd_selected_region = 3
				}
				has_completed_focus = VAT_the_uprising_in_yugoslavia
				VAT_trigger_odd_yugoslavia = yes
			}
			hungarian_support_icon_visible = {
				check_variable = {
					odd_selected_region = 3
				}
				HUN = { has_country_flag = VAT_declined_ultimatum }
				NOT = { has_country_flag = VAT_hungarian_operation_happend }
			}

			#Central America
			central_america_influence_icon_visible = {
				check_variable = {
                	odd_selected_region = 1
            	}
				has_completed_focus = VAT_impact_on_central_america
			}
			great_colombia_influence_icon_visible = {
				check_variable = {
                	odd_selected_region = 2
            	}
				has_completed_focus = VAT_the_takeover_of_grand_columbia
			}
			la_plata_influence_icon_visible = {
				check_variable = {
                	odd_selected_region = 2
            	}
				has_completed_focus = VAT_influence_on_the_south
			}
			brazilian_support_icon_visible = {
				check_variable = {
                	odd_selected_region = 2
            	}
				BRA = { has_country_flag = VAT_declined_ultimatum }
				NOT = { has_country_flag = VAT_brazilian_operation_happend }
			}

		}

		effects = {
			north_america_button_click = {
				if = {
					limit = { has_completed_focus = VAT_the_north_american_branch_of_odd }
					if = {
						limit = {
							check_variable = {
								odd_selected_region = 1
							}
						}
						set_variable = {
							odd_selected_region = 0
						}
					}
					else = {
						set_variable = {
							odd_selected_region = 1
						}
					}
				}
			}
			south_america_button_click = {
				if = {
					limit = { has_completed_focus = VAT_the_south_american_branch_of_odd }
					if = {
						limit = {
							check_variable = {
								odd_selected_region = 2
							}
						}
						set_variable = {
							odd_selected_region = 0
						}
					}
					else = {
						set_variable = {
							odd_selected_region = 2
						}
					}
				}
			}
			balkans_button_click = {
				if = {
					limit = { has_completed_focus = VAT_the_balkan_branch_of_odd }
					if = {
						limit = {
							check_variable = {
								odd_selected_region = 3
							}
						}
						set_variable = {
							odd_selected_region = 0
						}
					}
					else = {
						set_variable = {
							odd_selected_region = 3
						}
					}
				}
			}
		}

		properties = {
			#BUTTONS
			north_america_button = {
				image = "[vat_get_north_america_icon]"
			}
			south_america_button = {
				image = "[vat_get_south_america_icon]"
			}
			balkans_button = {
				image = "[vat_get_balkans_icon]"
			}

			#BALKANS
			yugoslavia_support_icon = {
				image = "[vat_get_yugoslavian_support_icon]"
			}
			hungarian_support_icon = {
				image = "[vat_get_hungarian_support_icon]"
			}
			brazilian_support_icon = {
				image = "[vat_get_brazilian_support_icon]"
			}

			#GERMANY
			germany_icon = {
				image = "[vat_get_reich_icon]"
			}
			german_relations_progressbar = {
				frame = vat_german_relations
			}
			german_influence_progressbar = {
				frame = vat_german_influence
			}
			balkans_reich_influence_icon = {
				image = "[vat_get_balkans_reich_influence_icon]"
			}

		}
	}
}