scripted_gui = {
	construction_speed_view_opener_menu = {
		context_type = player_context
		
		window_name = "cons_speed_opener_container"
		parent_window_token = construction_tab

		visible = {
			ai = no
		}
		
		ai_enabled = {
			always = no
		}
		
		effects = {
			construction_speed_open_click = {
				if = {
					limit = { NOT = { has_country_flag = cons_speed_on } }
					set_country_flag = cons_speed_on
				}
				else = { clr_country_flag = cons_speed_on }
			}
		}
	}
	
	construction_speed_view_menu = {
		context_type = player_context
		
		window_name = "cons_speed_container"
		parent_window_token = construction_tab

		visible = {
			NOT = { has_country_flag = cons_speed_on }
			ai = no
		}
		
		ai_enabled = {
			always = no
		}
	}
}
