scripted_gui = {

	sov_anna_anderson_decisions_scripted_gui = {
		context_type = decision_category
		window_name = "sov_anna_anderson_decisions_gui_main"
        dirty = anna_anderson_legitimacy

		visible = {
            NOT = {
                has_country_flag = sov_anna_anderson_struggle_over
            }
            has_country_flag = sov_anna_anderson_returns_russia
            has_government = neutrality
            is_subject = no
            has_capitulated = no
            has_completed_focus = SOV_restoration_tsar
            OR = {
                has_country_leader = {
                    character = SOV_Kirill_vladimirovich
                    ruling_only = yes
                }
                has_country_leader = {
                    character = SOV_Vladimir_kirillovich
                    ruling_only = yes
                }
            }
            NOT = {
                has_completed_focus = SOV_the_emperor
                has_completed_focus = SOV_the_empress
                has_country_leader = {
                    character = SOV_Anastasia_nikolaevna
                    ruling_only = yes
                }
            }
        }

        ai_enabled = {
			always = no
		}

        properties = {
            anna_anderson_legitimacy = {
                frame = var:anna_anderson_legitimacy_gui
            }
        }
	}
}