scripted_gui = {

	SBI_megacorp_decision_ui = {
		context_type = decision_category
		window_name = "SBI_megacorp_decision_ui_window"

		properties = {

			NOV_Fenix_power_Progressbar = {
				frame = NOV_Fenix_power_Progress
			}
			NOV_Fenix_loyalty_Progressbar = {
				frame = NOV_Fenix_loyalty_Progress
			}
			
			NOV_Sibir_power_Progressbar = {
				frame = NOV_Sibir_power_Progress
			}
			NOV_Sibir_loyalty_Progressbar = {
				frame = NOV_Sibir_loyalty_Progress
			}
			
			NOV_Titan_power_Progressbar = {
				frame = NOV_Titan_power_Progress
			}
			NOV_Titan_loyalty_Progressbar = {
				frame = NOV_Titan_loyalty_Progress
			}
			
			NOV_People_power_Progressbar = {
				frame = NOV_People_power_Progress
			}
			NOV_People_loyalty_Progressbar = {
				frame = NOV_People_loyalty_Progress
			}

		}
		
		visible = {
			AND = {
				original_tag = SBI
			}
		}
		
		triggers = {
			Feniks_button_power_minus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Feniks_button_power_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Feniks_button_loyalty_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_loyalty_plus }
				has_political_power > 10
			}
			
			Sibir_button_power_minus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Sibir_button_power_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Sibir_button_loyalty_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_loyalty_plus }
				has_political_power > 10
			}
			
			Titan_button_power_minus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Titan_button_power_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			Titan_button_loyalty_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_loyalty_plus }
				has_political_power > 10
			}
			
			People_button_power_minus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			People_button_power_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_power }
				has_political_power > 10
			}
			People_button_loyalty_plus_click_enabled = {
				NOT = { has_country_flag = has_clicked_button_loyalty_plus }
				has_political_power > 10
			}
		}
		effects = {
			Feniks_button_power_minus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Fenix_power_Progress = -2 }
				add_to_variable = { NOV_Fenix_loyalty_Progress = -1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				SBI_pokryshkin_PHOENIX_cons = yes
			}
			Feniks_button_power_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Fenix_power_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				add_to_variable = { NOV_People_power_Progress = -1 }
				add_to_variable = { NOV_People_loyalty_Progress = -1 }
				SBI_pokryshkin_PHOENIX_cons = yes
				SBI_pokryshkin_PEOPLE_cons = yes
			}
			Feniks_button_loyalty_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Fenix_loyalty_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_loyalty_plus
					days = 7
					value = 1
				}
				SBI_pokryshkin_PHOENIX_cons = yes
			}
			
			Sibir_button_power_minus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Sibir_power_Progress = -2 }
				add_to_variable = { NOV_Sibir_loyalty_Progress = -1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				SBI_pokryshkin_SIBIR_cons = yes
			}
			Sibir_button_power_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Sibir_power_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				add_to_variable = { NOV_People_power_Progress = -1 }
				add_to_variable = { NOV_People_loyalty_Progress = -1 }
				SBI_pokryshkin_SIBIR_cons = yes
				SBI_pokryshkin_PEOPLE_cons = yes
			}
			Sibir_button_loyalty_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Sibir_loyalty_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_loyalty_plus
					days = 7
					value = 1
				}
				SBI_pokryshkin_SIBIR_cons = yes
			}
			
			Titan_button_power_minus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Titan_power_Progress = -2 }
				add_to_variable = { NOV_Titan_loyalty_Progress = -1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				SBI_pokryshkin_TITAN_cons = yes
			}
			Titan_button_power_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Titan_power_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				add_to_variable = { NOV_People_power_Progress = -1 }
				add_to_variable = { NOV_People_loyalty_Progress = -1 }
				SBI_pokryshkin_TITAN_cons = yes
				SBI_pokryshkin_PEOPLE_cons = yes
			}
			Titan_button_loyalty_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_Titan_loyalty_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_loyalty_plus
					days = 7
					value = 1
				}
				SBI_pokryshkin_TITAN_cons = yes
			}
			
			People_button_power_minus_click = {
				add_political_power = -10
				add_to_variable = { NOV_People_power_Progress = -2 }
				add_to_variable = { NOV_People_loyalty_Progress = -1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				SBI_pokryshkin_PEOPLE_cons = yes
			}
			People_button_power_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_People_power_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_power
					days = 7
					value = 1
				}
				SBI_pokryshkin_PEOPLE_cons = yes
			}
			People_button_loyalty_plus_click = {
				add_political_power = -10
				add_to_variable = { NOV_People_loyalty_Progress = 1 }
				set_country_flag = {
					flag = has_clicked_button_loyalty_plus
					days = 7
					value = 1
				}
				SBI_pokryshkin_PEOPLE_cons = yes
			}
		}
	}
	
}