scripted_gui = { ENG_devolution_gui_window = { window_name = "ENG_devolution_gui_window" context_type = player_context dirty = global.ENG_devolution_dirty_update_var visible = { has_country_flag = open_devolution_screen } triggers = { # Scotland Info ENG_scotland_menu_agitation_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } ENG_scotland_menu_parliament_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } ENG_scotland_menu_dependency_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } ENG_scottish_agitation_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } ENG_scotland_parliament_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } ENG_scotland_dependency_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 1 } } # North Ireland Info ENG_north_ireland_menu_agitation_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } ENG_north_ireland_menu_parliament_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } ENG_north_ireland_menu_dependency_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } ENG_north_ireland_agitation_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } ENG_north_ireland_parliament_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } ENG_north_ireland_dependency_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } # Wales Info ENG_wales_menu_agitation_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } ENG_wales_menu_parliament_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } ENG_wales_menu_dependency_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } ENG_wales_agitation_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } ENG_wales_parliament_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } ENG_wales_dependency_VAR_visible = { check_variable = { ENG_devolution_ui_selected = 3 } } # Information Icons GFX_ENG_agitation_info_visible = { OR = { check_variable = { ENG_devolution_ui_selected = 1 } check_variable = { ENG_devolution_ui_selected = 3 } } } GFX_ENG_parliament_info_visible = { check_variable = { ENG_devolution_ui_selected > 0 } } GFX_ENG_dependency_info_visible = { check_variable = { ENG_devolution_ui_selected > 0 } } GFX_ENG_irish_tension_info_visible = { check_variable = { ENG_devolution_ui_selected = 2 } } # Back button GFX_ENG_back_button_visible = { check_variable = { ENG_devolution_ui_selected > 0 } } ENG_scotland_map_button_right_click_enabled = { NOT = { country_exists = SCO } NOT = { has_country_flag = ENG_scottish_integrated } NOT = { has_country_flag = ENG_stop_cliking_me_headass_SCO } } ENG_north_ireland_map_button_right_click_enabled = { NOT = { country_exists = NIR } NOT = { has_country_flag = ENG_north_irish_integrated } NOT = { has_country_flag = ENG_stop_cliking_me_headass_NIR } } ENG_wales_map_button_right_click_enabled = { NOT = { country_exists = WAS } NOT = { has_country_flag = ENG_welsh_integrated } NOT = { has_country_flag = ENG_stop_cliking_me_headass_WAS } } ENG_scotland_map_button_shift_click_enabled = { NOT = { country_exists = SCO } NOT = { has_country_flag = ENG_scottish_integrated } } ENG_north_ireland_map_button_shift_click_enabled = { NOT = { country_exists = NIR } NOT = { has_country_flag = ENG_north_irish_integrated } } ENG_wales_map_button_shift_click_enabled = { NOT = { country_exists = WAS } NOT = { has_country_flag = ENG_welsh_integrated } } ENG_scotland_map_button_click_enabled = { NOT = { country_exists = SCO } } ENG_north_ireland_map_button_click_enabled = { NOT = { country_exists = NIR } } ENG_wales_map_button_click_enabled = { NOT = { country_exists = WAS } } } effects = { close_button_click = { clr_country_flag = open_devolution_screen update_eng_devolution_dirty_variable = yes } ENG_scotland_map_button_click = { set_variable = { ENG_devolution_ui_selected = 1 } update_eng_devolution_dirty_variable = yes } ENG_scotland_map_button_right_click = { set_country_flag = { flag = ENG_stop_cliking_me_headass_SCO days = 91 value = 1 } activate_decision = ENG_appease_scotland update_eng_devolution_dirty_variable = yes } ENG_scotland_map_button_shift_click = { if = { limit = { has_country_flag = ENG_auto_subsidy_SCO } clr_country_flag = ENG_auto_subsidy_SCO } else = { set_country_flag = ENG_auto_subsidy_SCO if = { limit = { NOT = { has_decision = ENG_appease_scotland } check_variable = { ENG_scottish_agitation > 9 } } activate_decision = ENG_appease_scotland } } update_eng_devolution_dirty_variable = yes } # North Ireland button ENG_north_ireland_map_button_click = { set_variable = { ENG_devolution_ui_selected = 2 } update_eng_devolution_dirty_variable = yes } ENG_north_ireland_map_button_right_click = { set_country_flag = { flag = ENG_stop_cliking_me_headass_NIR days = 91 value = 1 } activate_decision = ENG_appease_nireland update_eng_devolution_dirty_variable = yes } ENG_north_ireland_map_button_shift_click = { if = { limit = { has_country_flag = ENG_auto_subsidy_NIR } clr_country_flag = ENG_auto_subsidy_NIR } else = { set_country_flag = ENG_auto_subsidy_NIR if = { limit = { NOT = { has_decision = ENG_appease_nireland } check_variable = { ENG_north_irish_agitation > 9 } } activate_decision = ENG_appease_nireland } } update_eng_devolution_dirty_variable = yes } # Wales button ENG_wales_map_button_click = { set_variable = { ENG_devolution_ui_selected = 3 } update_eng_devolution_dirty_variable = yes } ENG_wales_map_button_right_click = { set_country_flag = { flag = ENG_stop_cliking_me_headass_WAS days = 91 value = 1 } activate_decision = ENG_appease_wales update_eng_devolution_dirty_variable = yes } ENG_wales_map_button_shift_click = { if = { limit = { has_country_flag = ENG_auto_subsidy_WAS } clr_country_flag = ENG_auto_subsidy_WAS } else = { set_country_flag = ENG_auto_subsidy_WAS if = { limit = { NOT = { has_decision = ENG_appease_wales } check_variable = { ENG_wales_agitation > 9 } } activate_decision = ENG_appease_wales } } update_eng_devolution_dirty_variable = yes } # Back GFX_ENG_back_button_click = { set_variable = { ENG_devolution_ui_selected = 0 } update_eng_devolution_dirty_variable = yes } } } open_devolution_main_button = { context_type = player_context window_name = "main_devolution_open_button" parent_window_name = "MapmodesInterface_Ingame" dirty = global.ENG_devolution_dirty_update_var visible = { original_tag = ENG NOT = { has_country_flag = ENG_devolution_purged } } effects = { open_devolution_main_screen_button_click = { if = { limit = { NOT = { has_country_flag = open_devolution_screen } } set_country_flag = open_devolution_screen if = { limit = { check_variable = { ENG_devolution_ui_selected = 0 } } set_variable = { ENG_devolution_ui_selected = 1 } } } else = { clr_country_flag = open_devolution_screen } update_eng_devolution_dirty_variable = yes } } } ENG_checklist_reunite_realm = { window_name = "ENG_checklist_reunite_realm_ui_window" context_type = decision_category triggers = { # Scotland Info ENG_x_econ_visible = { NOT = { has_country_flag = ENG_established_econ_heg } } ENG_check_econ_visible = { has_country_flag = ENG_established_econ_heg } ENG_x_military_visible = { NOT = { has_country_flag = ENG_established_military_heg } } ENG_check_military_visible = { has_country_flag = ENG_established_military_heg } ENG_x_political_visible = { NOT = { has_country_flag = ENG_established_political_heg } } ENG_check_political_visible = { has_country_flag = ENG_established_political_heg } } } }