scripted_gui = { open_protest_main_button = { context_type = player_context window_name = "protests_open_button" parent_window_token = politics_tab dirty = global.protest_ui_dirty ai_enabled = { always = no } effects = { open_protests_main_screen_button_click = { if = { limit = { NOT = { has_country_flag = open_protests_screen } } set_country_flag = open_protests_screen MD_protests_count_resisting_cores = yes MD_protests_recompute_display = yes } else = { clr_country_flag = open_protests_screen MD_protests_clear_display_vars = yes } update_protest_dirty_var = yes } } } protest_system_rework_gui = { context_type = player_context window_name = "protest_mechanic_decision_ui_window" dirty = global.protest_ui_dirty visible = { ROOT = { has_country_flag = open_protests_screen } } ai_enabled = { always = no } effects = { close_protest_screen_click = { clr_country_flag = open_protests_screen MD_protests_clear_display_vars = yes update_protest_dirty_var = yes } } properties = { adm_spending_1 = { frame = adm_spending_frames^1 } adm_spending_2 = { frame = adm_spending_frames^2 } adm_spending_3 = { frame = adm_spending_frames^3 } adm_spending_4 = { frame = adm_spending_frames^4 } adm_spending_5 = { frame = adm_spending_frames^5 } police_spending_1 = { frame = police_spending_frames^1 } police_spending_2 = { frame = police_spending_frames^2 } police_spending_3 = { frame = police_spending_frames^3 } police_spending_4 = { frame = police_spending_frames^4 } police_spending_5 = { frame = police_spending_frames^5 } edu_spending_1 = { frame = edu_spending_frames^1 } edu_spending_2 = { frame = edu_spending_frames^2 } edu_spending_3 = { frame = edu_spending_frames^3 } edu_spending_4 = { frame = edu_spending_frames^4 } edu_spending_5 = { frame = edu_spending_frames^5 } health_spending_1 = { frame = health_spending_frames^1 } health_spending_2 = { frame = health_spending_frames^2 } health_spending_3 = { frame = health_spending_frames^3 } health_spending_4 = { frame = health_spending_frames^4 } health_spending_5 = { frame = health_spending_frames^5 } health_spending_6 = { frame = health_spending_frames^6 } welfare_spending_1 = { frame = welfare_spending_frames^1 } welfare_spending_2 = { frame = welfare_spending_frames^2 } welfare_spending_3 = { frame = welfare_spending_frames^3 } welfare_spending_4 = { frame = welfare_spending_frames^4 } welfare_spending_5 = { frame = welfare_spending_frames^5 } welfare_spending_6 = { frame = welfare_spending_frames^6 } military_spending_1 = { frame = military_spending_frames^1 } military_spending_2 = { frame = military_spending_frames^2 } military_spending_3 = { frame = military_spending_frames^3 } military_spending_4 = { frame = military_spending_frames^4 } military_spending_5 = { frame = military_spending_frames^5 } military_spending_6 = { frame = military_spending_frames^6 } military_spending_7 = { frame = military_spending_frames^7 } military_spending_8 = { frame = military_spending_frames^8 } military_spending_9 = { frame = military_spending_frames^9 } military_spending_10 = { frame = military_spending_frames^10 } } } }