scripted_gui = {
    yuzu_super_event_gui = {
        window_name = yuzu_super_event
        context_type = player_context
        visible = {
            or = {
                has_global_flag = yuzu_super_event_visible_flag
				has_country_flag = yuzu_super_event_private_visible_flag
            }
        }

        #图片

        triggers = {  #穗织的毁灭
            Super_event_destruction_of_hoori_visible = {
                has_global_flag  = show_nuke_hoori_spevt
            }
        }
        triggers = {
            Super_event_destruction_of_washizu_visible = {
                has_global_flag = show_nuke_washizu_spevt
            }
        }
        triggers = {
            Super_event_marry_kanna_visible = {
                has_country_flag = we_marry_with_kanna
            }
        }
        triggers = {
            Super_event_marry_mako_visible = {
                has_country_flag = we_marry_with_mako
            }
        }
        triggers = {
            Super_event_marry_murasame_visible = {
                has_country_flag = 	we_marry_with_murasame
            }
        }
        triggers = {
            Super_event_marry_hazuki_visible = {
                has_country_flag = we_marry_with_hazuki
            }
        }
        triggers = {
            Super_event_marry_daozhu_visible = {
                has_country_flag = we_marry_with_daozhu
            }
        }
        triggers = {
            Super_event_unite_the_world_n_visible = {
                has_country_flag = we_unite_the_world_n
            }
        }
        triggers = {
            Super_event_unite_the_world_d_visible = {
                has_country_flag = we_unite_the_world_d
            }
        }
        triggers = {
            Super_event_unite_the_world_c_visible = {
                has_country_flag = we_unite_the_world_c
            }
        }
        triggers = {
            Super_event_unite_the_world_f_visible = {
                has_country_flag = we_unite_the_world_f
            }
        }
        triggers = {
            Super_event_marry_yoshino_visible = {
                has_country_flag = we_marry_with_yoshino
            }
        }
        triggers = {
            Super_event_marry_mibu_visible = {
                has_country_flag = we_marry_with_mibu
            }
        }
        #超事件其实只有一个，每次都是用triggers来切换显示的图片和文本   伊尔诺，2025.8.4，17：37
        #triggers = {
        #	<super_event>_visible = {
        #		has_global_flag = <your flag>
        #	}
        #}

        #按钮

        effects = {#其实就是一个一个清掉
            yuzu_sp_event_close_button_click = {
				if = {
					limit = {
						has_global_flag = yuzu_super_event_visible_flag
					}
					clr_global_flag = yuzu_super_event_visible_flag
				}
				if = {
					limit = {
						has_country_flag = yuzu_super_event_private_visible_flag
					}
					clr_country_flag = yuzu_super_event_private_visible_flag
				}
                if = {
                    limit = {
                        has_global_flag = show_nuke_hoori_spevt
                    }
                    clr_global_flag = show_nuke_hoori_spevt
                }
                if = {
                    limit = {
                        has_global_flag = show_nuke_washizu_spevt
                    }
                    clr_global_flag = show_nuke_washizu_spevt
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_kanna
                    }
                    clr_country_flag = we_marry_with_kanna
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_mako
                    }
                    clr_country_flag = we_marry_with_mako
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_murasame
                    }
                    clr_country_flag = 	we_marry_with_murasame
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_hazuki
                    }
                    clr_country_flag = we_marry_with_hazuki
                }
                if = {
                    limit = {
                        has_country_flag = we_unite_the_world_n
                    }
                    clr_country_flag = we_unite_the_world_n
                }
                if = {
                    limit = {
                        has_country_flag = we_unite_the_world_d
                    }
                    clr_country_flag = we_unite_the_world_d
                }
                if = {
                    limit = {
                        has_country_flag = we_unite_the_world_c
                    }
                    clr_country_flag = we_unite_the_world_c
                }
                if = {
                    limit = {
                        has_country_flag = we_unite_the_world_f
                    }
                    clr_country_flag = we_unite_the_world_f
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_daozhu
                    }
                    clr_country_flag = we_marry_with_daozhu
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_yoshino
                    }
                    clr_country_flag = we_marry_with_yoshino
                }
                if = {
                    limit = {
                        has_country_flag = we_marry_with_mibu
                    }
                    clr_country_flag = we_marry_with_mibu
                }
            }
        }
    }
}