scripted_gui = {

	TNO_GE_militarist_gui_open = {
		context_type = player_context
		window_name = "TNO_GE_militarist_gui_politics_icon"
		parent_window_token = politics_tab
		visible = {
			has_country_flag = country_has_gui
			has_global_flag = german_civil_war_goeringvic
			original_tag = GER
		}
		effects = {
			militarist_open_button_click = {
				if = {
					limit = { has_country_flag = GER_Army_GUI_open_flag }
					clr_country_flag = GER_Army_GUI_open_flag
				}
				else = {
					set_country_flag = GER_Army_GUI_open_flag
				}
			}
		}
	}

	TNO_GE_militarist_gui = {
		context_type = player_context
		window_name = "TNO_GE_militarist_gui_window"

		ai_enabled = {
			always = no
		}

		visible = {
			is_ai = no
			original_tag = GER
			has_country_flag = GER_Army_GUI_open_flag
		}

		triggers = {
			hawkishness_bar_1_visible = {
				Militarist_Hawkishness_Low = yes
			}
			hawkishness_bar_2_visible = {
				Militarist_Hawkishness_Low = yes
			}
			hawkishness_bar_3_visible = {
				Militarist_Hawkishness_Medium = yes
			}
			hawkishness_bar_4_visible = {
				Militarist_Hawkishness_High = yes
			}
			hawkishness_bar_5_visible = {
				Militarist_Hawkishness_Very_High = yes
			}
			hawkishness_bar_6_visible = {
				Militarist_Hawkishness_Max = yes
			}
			power_bar_1_visible = {
				Militarist_Power_Low = yes
			}
			power_bar_2_visible = {
				Militarist_Power_Low = yes
			}
			power_bar_3_visible = {
				Militarist_Power_Medium = yes
			}
			power_bar_4_visible = {
				Militarist_Power_High = yes
			}
			power_bar_5_visible = {
				Militarist_Power_Very_High = yes
			}
			power_bar_6_visible = {
				Militarist_Power_Max = yes
			}
			loyalty_bar_1_visible = {
				Militarist_Loyalty_Low = yes
			}
			loyalty_bar_2_visible = {
				Militarist_Loyalty_Low = yes
			}
			loyalty_bar_3_visible = {
				Militarist_Loyalty_Medium = yes
			}
			loyalty_bar_4_visible = {
				Militarist_Loyalty_High = yes
			}
			loyalty_bar_5_visible = {
				Militarist_Loyalty_Very_High = yes
			}
			loyalty_bar_6_visible = {
				Militarist_Loyalty_Max = yes
			}
		}
		
		effects = {
			close_button_click = {
				clr_country_flag = GER_Army_GUI_open_flag
			}
		}

		properties = {
			militarist_leader_portrait = {
				image = "[GetMilitaristLeaderPortrait]"
			}
			militarist_leader_name = {
				image = "[GetMilitaristLeaderName]"
			}
			signature = {
				image = "[GetMilitaristLeaderSignature]"
			}
			hawkishness_progress_bar = {
				frame = GER_Militarist_Hawkishness
			}
			power_progress_bar = {
				frame = GER_Militarist_Power
			}
			loyalty_progress_bar = {
				frame = GER_Militarist_Loyalty
			}
		}
	}
}