scripted_gui = {
		
	tool_open= { 
		context_type = player_context
		window_name = "horsttool_open_container"
		visible = {	has_country_flag = host	}
		effects = {
			tool_open_click = {
				if = {
					limit = { ROOT = { NOT = { has_country_flag = transfer_enabled } } }
					ROOT = { set_country_flag = transfer_enabled }
				}
				else = {
					ROOT = { clr_country_flag = transfer_enabled }
				}
			}
		}
		triggers = {
			tool_open_click_enabled = {
				always = yes
			}
		}
	}
	
	
	st_country_powers = {	
		context_type = selected_state_context	
		window_name = "horsttool_container"	
		visible = {
			ROOT = {
				has_country_flag = host
				has_country_flag = transfer_enabled
			}
		}	
		effects = {

			States_resursed_steel_click = { 
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = steel
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}

			States_resursed_rubber_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = rubber
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_oil_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = oil
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_alu_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = aluminium
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_tungsten_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = tungsten
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_chromium_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = chromium
							amount = 5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_steel1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = steel
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}

			States_resursed_rubber1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = rubber
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_oil1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = oil
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_alu1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = aluminium
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_tungsten1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = tungsten
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			States_resursed_chromium1_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={ add_resource = {
							type = chromium
							amount = -5
						}
					}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}

			observer_click = {
				owner = { 				
				set_temp_variable = { ROOT.marks = this}	var:marks = { news_event = { id = news.4004 } }	DDR = {change_tag_from =var:marks}
				}			
			}
			change_host_nation_click = {
				ROOT = { clr_country_flag = host		}
				owner = { set_country_flag = host	news_event = { id = news.4005 }	  }
			}
			
			addpp_click = {
				owner={
					set_temp_variable = { ROOT.marks = this}
					var:marks = { add_political_power = 50 news_event = { id = news.4002 } }
				}
			}
			remove_addpp_click = {
				owner={
					set_temp_variable = { ROOT.marks = this}
					var:marks = { add_political_power = -50 news_event = { id = news.4008 } }
				}
			}
			
			whitepeace_click  = {
				owner={
					set_temp_variable = { ROOT.marks = this}
					var:marks = {
						declare_war_on = { target = COL type = annex_everything }
						every_enemy_country = { white_peace = FROM }
					}

				}
			}
			tpt_war_button_click = {

				owner={ set_variable = { ROOT.taker = this}}
				var:ROOT.marked_states^0={owner={set_variable={ROOT.target=this   } }}
				if={	limit={check_variable={ROOT.target=ROOT.taker}}	}
				else={
					var:ROOT.target={
							    declare_war_on = {
						            target = FROM
						            type = annex_everything
					            }
							}
						
				}
					
				ROOT = {
					for_each_scope_loop={
						array=marked_states
						clear_variable=mark_status
					}
					clear_array=marked_states
					clear_variable=target
					clear_variable=taker
					clear_variable=first_marked_state
				}
				
			}
		
			clear_all_markings_click = {
				ROOT = {
					for_each_scope_loop={
						array=marked_states
						clear_variable=mark_status
					}
					clear_array=marked_states
				}
			}
			
			add_cores_click = {
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={add_core_of=var:taker}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			add_compliance_click = { 
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state = { add_compliance = 100}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			add_compliance1_click = { 
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state = { add_compliance = -100}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			add_cover_click = { 
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state = { add_resistance = 75}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}
			add_cover1_click = { 
				owner={
					set_temp_variable = { ROOT.taker = this}
					for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state = { add_resistance = -75}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
						clear_variable=first_marked_state
					}
				}
			}

			fix_production_click = { owner = { news_event = { id = news.4003 } add_timed_idea = { idea = fix_production_idea days = 1 }}  }
			fix_xp_click = { owner = { news_event = { id = news.4113 } army_experience = 25 }  }
			fix_xp2_click = { owner = { news_event = { id = news.4114 } navy_experience = 25 }  }
			fix_xp3_click = { owner = { news_event = { id = news.4115 } air_experience = 25 }  }
			convoy48_click = { owner = { news_event = { id = news.4116 } add_equipment_to_stockpile = { type = convoy_1 amount = 50 } }  }
			manpower_add_click = { owner = { news_event = { id = news.4117 } add_manpower = 10000 }  }
			manpower_NO_add_click = { owner = { news_event = { id = news.4118 } add_manpower = -10000 }  }
			add_autonomy_ratio_click = { owner = { news_event = { id = news.4119 } add_autonomy_ratio = { value = 0.1 } }  } 
			add_NO_autonomy_ratio_click = { owner = { news_event = { id = news.4120 } add_autonomy_ratio = { value = -0.1 } }  }
			remove_fix_xp_click = { owner = { news_event = { id = news.4121 } army_experience = -25 }  }
			remove_fix_xp2_click = { owner = { news_event = { id = news.4122 } navy_experience = -25 }  }
			remove_fix_xp3_click = { owner = { news_event = { id = news.4123 } air_experience = -25 }  }
			remove_convoy48_click = { owner = { news_event = { id = news.4124 } add_equipment_to_stockpile = { type = convoy_1 amount = -50 } }  }


            add_autonomy_free_click = {
				owner={ set_variable = { ROOT.taker = this}}
				var:ROOT.marked_states^0={owner={set_variable={ROOT.target=this   }news_event = { id = news.4125 days = 0} }}
				if={	limit={check_variable={ROOT.target=ROOT.taker}}	}
				else={
					var:ROOT.target={
							    set_autonomy = {
							        target = PREV
							        autonomy_state = autonomy_free
						        }
							}
						
				}
					
				ROOT = {
					for_each_scope_loop={
						array=marked_states
						clear_variable=mark_status
					}
					clear_array=marked_states
					clear_variable=target
					clear_variable=taker
					clear_variable=first_marked_state
				}
			}

			award_states_click = {

				owner={
					news_event = { id = news.4006 }
					for_each_loop={
						array=ROOT.marked_states
						value=state
						transfer_state = state
					}
									for_each_loop={
						array=ROOT.marked_states
						value=state
						var:state={add_core_of=var:taker}
					}
					ROOT = {
						for_each_scope_loop={
							array=marked_states
							clear_variable=mark_status
						}
						clear_array=marked_states
					}
					
				}
			}

			add_cheat_click = {
				set_variable = { ROOT.taker = this}
				var:taker = {
				owner={
					set_variable={Root.target_country = this}
					if={limit={check_variable={Root.selected_cheat=1}} generic_bonus_1 = yes }
					if={limit={check_variable={Root.selected_cheat=2}} generic_bonus_3 = yes }
					if={limit={check_variable={Root.selected_cheat=3}} generic_bonus_2y = yes }
					if={limit={check_variable={Root.selected_cheat=4}} generic_bonus_999 = yes }
					if={limit={check_variable={Root.selected_cheat=5}} add_stability  = 0.01 }
					if={limit={check_variable={Root.selected_cheat=6}} add_war_support = 0.01 }
					if={limit={check_variable={Root.selected_cheat=7}} add_research_slot = 1 }
					if={limit={check_variable={Root.selected_cheat=10}} add_research_slot = -1 }
					if={limit={check_variable={Root.selected_cheat=11}} add_war_support = -0.01 }
					if={limit={check_variable={Root.selected_cheat=12}} add_stability  = -0.01 }
					}
				}
				GER={
					set_variable={this.target_country=Root.target_country}
					set_variable={this.selected_cheat=Root.selected_cheat}
					news_event={id=horsttool.1}
				}
				clear_variable = ROOT.taker
			}

			add_debuff_click = {
				set_variable = { ROOT.taker = this}
				var:taker = {
				   owner={
					   set_variable={Root.target_country = this}
					   if={owner={ news_event = { id = horsttool.14 days = 0}}limit={check_variable={Root.selected_debuff=1}} generic_debuff_1 = yes }
					   if={owner={ news_event = { id = horsttool.15 days = 0}}limit={check_variable={Root.selected_debuff=2}} generic_debuff_2 = yes }
				   }
				}
				GER={
					set_variable={this.target_country=Root.target_country}
					set_variable={this.selected_debuff=Root.selected_debuff}
				}
				clear_variable = ROOT.taker
			}
		
			annex_country_click = {
				
				owner={ set_variable = { ROOT.taker = this}}
				var:ROOT.marked_states^0={owner={set_variable={ROOT.target=this   } news_event = { id = news.4007 }  }}
				if={	limit={check_variable={ROOT.target=ROOT.taker}}	}
				else={
					var:ROOT.target={
						var:ROOT.taker={
							annex_country={	target=PREV	transfer_troops=yes	}
							add_to_variable = { paratrooper_div_cap = PREV.paratrooper_div_cap }
							}
						}
					}
					
				ROOT = {
					for_each_scope_loop={
						array=marked_states
						clear_variable=mark_status
					}
					clear_array=marked_states
					clear_variable=target
					clear_variable=taker
					clear_variable=first_marked_state
				}
			}	
			
			
			toogle_mark_click = {
				if={
					limit={check_variable={mark_status=0}}
					set_variable={mark_status=2}
					add_to_array={ROOT.marked_states=THIS}
				}
				else={clear_variable=mark_status
					remove_from_array={ROOT.marked_states=THIS}}
				set_variable={ROOT.first_marked_state=ROOT.marked_states^0}
			}




			pingtool_click = {  owner={ news_event = { id = horsttool.13 days = 0} add_offsite_building = { type = dockyard level = 1 }}}
			mill_add_click = { owner={ news_event = { id = horsttool.11 days = 0} add_offsite_building = { type = arms_factory level = 1 }}} 
			civ_add_click = { owner={ news_event = { id = horsttool.12 days = 0} add_offsite_building = { type = industrial_complex level = 1 }}}

			remove_pingtool_click = {  owner={ news_event = { id = horsttool.16 days = 0} add_offsite_building = { type = dockyard level = -1 }}}
			remove_mill_add_click = { owner={ news_event = { id = horsttool.18 days = 0} add_offsite_building = { type = arms_factory level = -1 }}} 
			remove_civ_add_click = { owner={ news_event = { id = horsttool.17 days = 0} add_offsite_building = { type = industrial_complex level = -1 }}}

			horsttool_helpbutton_click = { ROOT = { country_event = { id =  horsthelp.2 } } }

			pause_blocker_all_click = { COL =  { clear_variable = pause_blocker_variable set_variable = { var = pause_blocker_variable value = 1 } } ROOT={clr_global_flag=blocking_pauses} }#ALL CAN PAUSE
			pause_blocker_host_click = { COL =  { clear_variable = pause_blocker_variable set_variable = { var = pause_blocker_variable value = 2 } } ROOT={clr_global_flag=blocking_pauses } } #ONLY HOST CAN USE PAUSE BUTTON
			pause_blocker_major_click = {
				if={
					limit={
						ROOT={has_global_flag=blocking_pauses}
					} 
					COL =  { 
						clear_variable = pause_blocker_variable 
						set_variable = { var = pause_blocker_variable value = 3 } 
					}  
					ROOT={clr_global_flag=blocking_pauses}
				} 
				else = {
					ROOT={set_global_flag = blocking_pauses } 
				} 
			}
			
			wt_add_click = { COL = { add_threat = 1 } }
			wt_remove_click = { COL = { add_threat = -1 } }
			
			remove_debuff_click = { owner={remove_ideas = { debuff_tanks_idea debuff_aviation_idea } } }
			
			cb_red_click ={if={limit={Root={has_global_flag=colorblindness}} set_variable={Root.selected_color=1} ROOT={clr_global_flag=colorblindness}} else={ROOT={set_global_flag=colorblindness}}	}
			cb_orange_click={set_variable={Root.selected_color=2} ROOT={clr_global_flag=colorblindness}}
			cb_yellow_click={set_variable={Root.selected_color=3} ROOT={clr_global_flag=colorblindness}}
			cb_green_click={set_variable={Root.selected_color=4} ROOT={clr_global_flag=colorblindness}}
			cb_blue_click={set_variable={Root.selected_color=5} ROOT={clr_global_flag=colorblindness}}
			cb_purple_click={set_variable={Root.selected_color=6} ROOT={clr_global_flag=colorblindness}}
			cb_pink_click={set_variable={Root.selected_color=7} ROOT={clr_global_flag=colorblindness}}
			cb_teal_click={set_variable={Root.selected_color=8} ROOT={clr_global_flag=colorblindness}}
			cb_remove_click={set_variable={Root.selected_color=9} ROOT={clr_global_flag=colorblindness}}

			add_color_click = {
				set_variable = { ROOT.taker = this}
				var:taker = {
				   owner={
					   set_variable={Root.target_country = this}
					   if={limit={check_variable={Root.selected_color=1}} set_cosmetic_tag = COLORBLIND_RED   }
					   if={limit={check_variable={Root.selected_color=2}} set_cosmetic_tag = COLORBLIND_ORANGE }
					   if={limit={check_variable={Root.selected_color=3}} set_cosmetic_tag = COLORBLIND_YELLOW }
					   if={limit={check_variable={Root.selected_color=4}} set_cosmetic_tag = COLORBLIND_GREEN }
					   if={limit={check_variable={Root.selected_color=5}} set_cosmetic_tag = COLORBLIND_BLUE }
					   if={limit={check_variable={Root.selected_color=6}} set_cosmetic_tag = COLORBLIND_PURPLE }
					   if={limit={check_variable={Root.selected_color=7}} set_cosmetic_tag = COLORBLIND_PINK }
					   if={limit={check_variable={Root.selected_color=8}} set_cosmetic_tag = COLORBLIND_TEAL }	
					   if={limit={check_variable={Root.selected_color=9}} drop_cosmetic_tag = yes }	
				   }
				}
				GER={
					set_variable={this.target_country=Root.target_country}
					set_variable={this.selected_cheat=Root.selected_color}
					news_event={id=horsttool.31} #change
				}
				clear_variable = ROOT.taker
			}
		    cheat1_click={if={limit={Root={has_country_flag=cheating}} set_variable={Root.selected_cheat=1} ROOT={clr_country_flag=cheating}} else={ROOT={set_country_flag=cheating}}	}
			cheat2_click={set_variable={Root.selected_cheat=2} ROOT={clr_country_flag=cheating}}
			cheat3_click={set_variable={Root.selected_cheat=3} ROOT={clr_country_flag=cheating}}
			cheat4_click={set_variable={Root.selected_cheat=4} ROOT={clr_country_flag=cheating}}
			cheat5_click={set_variable={Root.selected_cheat=5} ROOT={clr_country_flag=cheating}}
			cheat6_click={set_variable={Root.selected_cheat=6} ROOT={clr_country_flag=cheating}}
			cheat7_click={set_variable={Root.selected_cheat=7} ROOT={clr_country_flag=cheating}}
			cheat10_click={set_variable={Root.selected_cheat=10} ROOT={clr_country_flag=cheating}}
			cheat11_click={set_variable={Root.selected_cheat=11} ROOT={clr_country_flag=cheating}}
			cheat12_click={set_variable={Root.selected_cheat=12} ROOT={clr_country_flag=cheating}}

				
			debuff1_click={if={limit={Root={has_country_flag=debuffing}} set_variable={Root.selected_debuff=1} ROOT={clr_country_flag=debuffing}} else={ROOT={set_country_flag=debuffing}}	}
			debuff2_click={set_variable={Root.selected_debuff=2} ROOT={clr_country_flag=debuffing}}
		}
			
			
		properties = {
			toogle_mark={ frame = mark_status }
		}
		
		triggers = {

			observer_click_enabled = { }	
			observer_visible = {	}	

			add_cheat_click_enabled = {check_variable={Root.selected_cheat>0}}

			add_debuff_click_enabled = {check_variable={Root.selected_debuff>0}}
			
			cb_red_visible ={	}
			cb_orange_visible={ ROOT={has_global_flag=colorblindness}}
			cb_yellow_visible={ROOT={has_global_flag=colorblindness}}
			cb_green_visible={ROOT={has_global_flag=colorblindness}}
			cb_blue_visible={ROOT={has_global_flag=colorblindness}}
			cb_purple_visible={ROOT={has_global_flag=colorblindness}}
			cb_pink_visible={ROOT={has_global_flag=colorblindness}}
			cb_teal_visible={ROOT={has_global_flag=colorblindness}}
			cb_remove_visible={ROOT={has_global_flag=colorblindness}}
				
			cb_red_text_visible ={	}
			cb_orange_text_visible={ ROOT={has_global_flag=colorblindness}}
			cb_yellow_text_visible={ ROOT={has_global_flag=colorblindness}}
			cb_green_text_visible={ ROOT={has_global_flag=colorblindness}}
			cb_blue_text_visible={ROOT={has_global_flag=colorblindness}}
			cb_purple_text_visible={ROOT={has_global_flag=colorblindness}}
			cb_pink_text_visible={ ROOT={has_global_flag=colorblindness}}
			cb_teal_text_visible={ROOT={has_global_flag=colorblindness}}
			cb_remove_text_visible={ROOT={has_global_flag=colorblindness}}

			pause_blocker_major_visible ={  }
			pause_blocker_all_visible ={ has_global_flag=blocking_pauses }
			pause_blocker_host_visible ={ has_global_flag=blocking_pauses }
			pause_blocker_major_text_visible ={  }	
			pause_blocker_major1_text_visible ={  }
			pause_blocker_all_text_visible ={ has_global_flag=blocking_pauses }
			pause_blocker_host_text_visible ={ has_global_flag=blocking_pauses }

			
			annex_country_click_enabled = {	check_variable = { ROOT.marked_states^num > 0 }	}
			tpt_war_button_click_enabled = {	check_variable = { ROOT.marked_states^num > 0 }	}
			add_autonomy_free_click_enabled = {	check_variable = { ROOT.marked_states^num > 0 }	}

			cheat1_visible={}
			cheat1_text_visible={}
			cheat2_visible={ROOT={has_country_flag=cheating}}
			cheat3_visible={ROOT={has_country_flag=cheating}}
			cheat4_visible={ROOT={has_country_flag=cheating}}
			cheat4_text_visible={ROOT={has_country_flag=cheating}}
			cheat2_text_visible={ROOT={has_country_flag=cheating}}
			cheat3_text_visible={ROOT={has_country_flag=cheating}}
			cheat5_visible={ROOT={has_country_flag=cheating}}
			cheat5_text_visible={ROOT={has_country_flag=cheating}}
			cheat6_visible={ROOT={has_country_flag=cheating}}
			cheat6_text_visible={ROOT={has_country_flag=cheating}}
			cheat7_visible={ROOT={has_country_flag=cheating}}
			cheat7_text_visible={ROOT={has_country_flag=cheating}}
			cheat10_visible={ROOT={has_country_flag=cheating}}
			cheat10_text_visible={ROOT={has_country_flag=cheating}}
			cheat11_visible={ROOT={has_country_flag=cheating}}
			cheat11_text_visible={ROOT={has_country_flag=cheating}}
			cheat12_visible={ROOT={has_country_flag=cheating}}
			cheat12_text_visible={ROOT={has_country_flag=cheating}}

			award_states_click_enabled = {	check_variable = { ROOT.marked_states^num > 0 }	}

			mill_add_click_enabled = { }
			civ_add_click_enabled = { }

			pingtool_click_enabled = { 	}

			change_host_nation_click_enabled ={  }

			fix_production_click_enabled ={  }

			fix_xp_click_enabled ={  }

			clear_all_markings_click_enabled = { check_variable = { ROOT.marked_states^num > 0 } }	

			add_cores_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}

			States_resursed_steel_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_rubber_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_oil_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_alu_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_tungsten_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_chromium_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_steel1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_rubber1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_oil1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_alu1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_tungsten1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}
			States_resursed_chromium1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 }	}

			add_compliance_click_enabled = { check_variable = { ROOT.marked_states^num > 0 } }
			add_cover_click_enabled = { check_variable = { ROOT.marked_states^num > 0 } }
			add_compliance1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 } }
			add_cover1_click_enabled = { check_variable = { ROOT.marked_states^num > 0 } }

			wt_add_click_enabled = {}
			wt_remove_click_enabled = {}

			debuff1_visible={}
			debuff2_visible={ROOT={has_country_flag=debuffing}}
			debuff1_text_visible={}
			debuff2_text_visible={ROOT={has_country_flag=debuffing}}

			remove_debuff_click_enabled = {}
		}
	}
		
	pause_is_blocked = {
		context_type = player_context
		window_name = "pause_block_window"
		parent_window_name = time_control_window
		visible = {
		    OR ={
			   AND = { COL = { check_variable = { pause_blocker_variable = 2    } } NOT = { has_country_flag = host }     } 
			   AND = { COL = { check_variable = { pause_blocker_variable = 3    } } NOT = { immune_to_pause_block = yes  }     } 
		    }
		}
	}
}
