﻿movable_windows = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = movable_windows
	}

	effect = {
		if = {
			limit = {
				has_variable = movable_windows
			}
			remove_variable = movable_windows
		}
		else = {
			set_variable = {
				name = movable_windows
				value = 2
			}
		}
	}
}

small_province_view = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = small_province_view
	}

	effect = {
		if = {
			limit = {
				has_variable = small_province_view
			}
			remove_variable = small_province_view
		}
		else = {
			set_variable = small_province_view
		}
	}
}

topbar_research = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = topbar_research
	}

	effect = {
		if = {
			limit = {
				has_variable = topbar_research
			}
			remove_variable = topbar_research
		}
		else = {
			set_variable = {
				name = topbar_research
				value = 2
			}
		}
	}
}

diplo_button = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		NOT = {
			has_variable = diplo_button
		}
	}

	effect = {
		if = {
			limit = {
				has_variable = diplo_button
			}
			remove_variable = diplo_button
		}
		else = {
			set_variable = {
				name = diplo_button
				value = 2
			}
		}
	}
}

nation_button = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		NOT = {
			has_variable = nation_button
		}
	}

	effect = {
		if = {
			limit = {
				has_variable = nation_button
			}
			remove_variable = nation_button
		}
		else = {
			set_variable = {
				name = nation_button
				value = 2
			}
		}
	}
}

tiny_flag = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = tiny_flag
	}

	effect = {
		if = {
			limit = {
				has_variable = tiny_flag
			}
			remove_variable = tiny_flag
		}
		else = {
			set_variable = {
				name = tiny_flag
				value = 2
			}
		}
	}
}

bce_date = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = bce_date
	}

	effect = {
		if = {
			limit = {
				has_variable = bce_date
			}
			remove_variable = bce_date
		}
		else = {
			set_variable = {
				name = bce_date
				value = 2
			}
		}
	}
}


topbar_maintenance = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = topbar_maintenance
	}

	effect = {
		if = {
			limit = {
				has_variable = topbar_maintenance
			}
			remove_variable = topbar_maintenance
		}
		else = {
			set_variable = {
				name = topbar_maintenance
				value = 2
			}
		}
	}
}


topbar_pops = {
	scope = country

	ai_is_valid = {
		always = no
	}

	is_shown = {
		has_variable = topbar_pops
	}

	effect = {
		if = {
			limit = {
				has_variable = topbar_pops
			}
			remove_variable = topbar_pops
		}
		else = {
			set_variable = {
				name = topbar_pops
				value = 2
			}
		}
	}
}
