scripted_gui = {
	internationale_button = {
		parent_window_name = MapmodesInterface_Ingame
		context_type = player_context
		window_name = "the_internationale_open_button_window"

		visible = {
			tag = FRA
		}
		effects = {
			the_internationale_open_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = the_internationale_open_once }
					}
					set_country_flag = the_internationale_open_once
				}
				else = {
					clr_country_flag = the_internationale_open_once
				}
			}
		}
	}
	internationale_window = {
		context_type = player_context
		window_name = "internationale_window"
		visible = {
			has_country_flag = the_internationale_open_once
		}
		
		effects = {
			button_close_click = {
				clr_country_flag = the_internationale_open_once
			}
			world_eco_help_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_eco_help_enable_once }
					}
					set_country_flag = FRA_eco_help_enable_once
				}
				else = {
					clr_country_flag = FRA_eco_help_enable_once
				}
			}
			world_invention_on_westeurope_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_western_eup_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_western_eup_enable_once
				}
				else = {				
					clr_country_flag = FRA_western_eup_enable_once
				}
			}
			world_invention_on_middleeurope_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_middle_eup_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_middle_eup_enable_once
				}
				else = {
					clr_country_flag = FRA_middle_eup_enable_once
				}
			}
			world_invention_on_northeurope_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_north_eup_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_north_eup_enable_once
				}
				else = {
					clr_country_flag = FRA_north_eup_enable_once
				}
			}
			world_invention_on_russia_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_russia_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_russia_enable_once
				}
				else = {
					clr_country_flag = FRA_russia_enable_once
				}
			}
			world_invention_on_eastasia_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_eastern_asia_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_eastern_asia_enable_once
				}
				else = {
					clr_country_flag = FRA_eastern_asia_enable_once
				}
			}
			world_invention_on_southasia_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_southern_asia_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_southern_asia_enable_once
				}
				else = {
					clr_country_flag = FRA_southern_asia_enable_once
				}
			}
			world_invention_on_southeast_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_southeast_asia_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_southeast_asia_enable_once
				}
				else = {
					clr_country_flag = FRA_southeast_asia_enable_once
				}
			}
			world_invention_on_iran_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_mideast_iran_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_mideast_iran_enable_once
				}
				else = {
					clr_country_flag = FRA_mideast_iran_enable_once
				}
			}
			world_invention_on_ottoman_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_mideast_ottoman_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_mideast_ottoman_enable_once
				}
				else = {
					clr_country_flag = FRA_mideast_ottoman_enable_once
				}
			}
			world_invention_on_egypt_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_mideast_egypt_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_mideast_egypt_enable_once
				}
				else = {
					clr_country_flag = FRA_mideast_egypt_enable_once
				}
			}
			world_invention_on_arab_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_mideast_arab_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_mideast_arab_enable_once
				}
				else = {
					clr_country_flag = FRA_mideast_arab_enable_once
				}
			}
			world_invention_on_ethiopia_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_mideast_ethiopia_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_mideast_ethiopia_enable_once
				}
				else = {
					clr_country_flag = FRA_mideast_ethiopia_enable_once
				}
			}
			world_invention_on_northafrica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_northern_afr_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_northern_afr_enable_once
				}
				else = {
					clr_country_flag = FRA_northern_afr_enable_once
				}
			}
			world_invention_on_middleafrica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_middle_afr_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_middle_afr_enable_once
				}
				else = {
					clr_country_flag = FRA_middle_afr_enable_once
				}
			}
			world_invention_on_southafrica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_southern_afr_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_southern_afr_enable_once
				}
				else = {
					clr_country_flag = FRA_southern_afr_enable_once
				}
			}
			world_invention_on_northamerica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_northern_amer_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_northern_amer_enable_once
				}
				else = {
					clr_country_flag = FRA_northern_amer_enable_once
				}
			}
			world_invention_on_middleamerica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_middle_amer_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_middle_amer_enable_once
				}
				else = {
					clr_country_flag = FRA_middle_amer_enable_once
				}
			}
			world_invention_on_southamerica_choose_button_click = {
				if = {
					limit = { 
						NOT = { has_country_flag = FRA_southern_amer_enable_once }
					}
					FRA_world_invention_clean = yes
					set_country_flag = FRA_southern_amer_enable_once
				}
				else = {
					clr_country_flag = FRA_southern_amer_enable_once
				}
			}
		}
		
	}

}