czd_inner_circle_inlay_window = {

    window_name = czd_inner_circle_ui_window

    internal = yes
    visible = {
       has_government = communism
    }

    scripted_images = {
        #LEADER
        leader_portrait = {
            GFX_inner_circle_leader_great_general = {
                has_country_leader = {
                    ruling_only = yes
                    character = CZD_kim_il_sung
                }
            }
            GFX_inner_circle_leader_park_chung_hee = {
                has_country_leader = {
                    ruling_only = yes
                    character = CZD_park_chung_hee
                }
            }
            GFX_inner_circle_leader_choe_yong_gon = {
                has_country_leader = {
                    ruling_only = yes
                    character = CZD_choe_yong_gon
                }
            }
            GFX_inner_circle_leader_pak_hon_yong = {
                has_country_leader = {
                    ruling_only = yes
                    character = CZD_pak_hon_yong
                }
            }
            GFX_inner_circle_leader_nam_il = {
                has_country_leader = {
                    ruling_only = yes
                    character = CZD_nam_il
                }
            }
            GFX_inner_circle_leader_great_general = yes
        }

        #ASCENDED 位置 1 - 政治核心
        ascended_advisor_1_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { CZD_ascended_advisor_1 = 0 }
            }
            GFX_portrait_CZD_choe_yong_gon = {
                check_variable = { CZD_ascended_advisor_1 = 1 }
            }
            GFX_portrait_CZD_kim_chaek = {
                check_variable = { CZD_ascended_advisor_1 = 2 }
            }
            GFX_portrait_CZD_choe_hyon = {
                check_variable = { CZD_ascended_advisor_1 = 3 }
            }
            GFX_portrait_CZD_mu_jeong = {
                check_variable = { CZD_ascended_advisor_1 = 4 }
            }
            GFX_portrait_CZD_pak_hon_yong = {
                check_variable = { CZD_ascended_advisor_1 = 5 }
            }
            GFX_portrait_CZD_kang_kon = {
                check_variable = { CZD_ascended_advisor_1 = 6 }
            }
            GFX_portrait_CZD_nam_il = {
                check_variable = { CZD_ascended_advisor_1 = 7 }
            }
        }
        
        #ASCENDED 位置 2 - 军事核心
        ascended_advisor_2_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { CZD_ascended_advisor_2 = 0 }
            }
            GFX_portrait_CZD_choe_yong_gon = {
                check_variable = { CZD_ascended_advisor_2 = 1 }
            }
            GFX_portrait_CZD_kim_chaek = {
                check_variable = { CZD_ascended_advisor_2 = 2 }
            }
            GFX_portrait_CZD_choe_hyon = {
                check_variable = { CZD_ascended_advisor_2 = 3 }
            }
            GFX_portrait_CZD_mu_jeong = {
                check_variable = { CZD_ascended_advisor_2 = 4 }
            }
            GFX_portrait_CZD_pak_hon_yong = {
                check_variable = { CZD_ascended_advisor_2 = 5 }
            }
            GFX_portrait_CZD_kang_kon = {
                check_variable = { CZD_ascended_advisor_2 = 6 }
            }
            GFX_portrait_CZD_nam_il = {
                check_variable = { CZD_ascended_advisor_2 = 7 }
            }
        }
        
        #ASCENDED 位置 3 - 工业与参谋
        ascended_advisor_3_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { CZD_ascended_advisor_3 = 0 }
            }
            GFX_portrait_CZD_choe_yong_gon = {
                check_variable = { CZD_ascended_advisor_3 = 1 }
            }
            GFX_portrait_CZD_kim_chaek = {
                check_variable = { CZD_ascended_advisor_3 = 2 }
            }
            GFX_portrait_CZD_choe_hyon = {
                check_variable = { CZD_ascended_advisor_3 = 3 }
            }
            GFX_portrait_CZD_mu_jeong = {
                check_variable = { CZD_ascended_advisor_3 = 4 }
            }
            GFX_portrait_CZD_pak_hon_yong = {
                check_variable = { CZD_ascended_advisor_3 = 5 }
            }
            GFX_portrait_CZD_kang_kon = {
                check_variable = { CZD_ascended_advisor_3 = 6 }
            }
            GFX_portrait_CZD_nam_il = {
                check_variable = { CZD_ascended_advisor_3 = 7 }
            }
        }

        ascended_advisor_1_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_2_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_3_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }

        #ADVISOR
        advisor_choe_yong_gon_portrait = {
            GFX_portrait_CZD_choe_yong_gon_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 1 }
                    check_variable = { CZD_ascended_advisor_2 = 1 }
                    check_variable = { CZD_ascended_advisor_3 = 1 }
                }
            }
            GFX_portrait_CZD_choe_yong_gon_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_choe_yong_gon_available_small = yes
        }
        advisor_kim_chaek_portrait = {
            GFX_portrait_CZD_kim_chaek_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 2 }
                    check_variable = { CZD_ascended_advisor_2 = 2 }
                    check_variable = { CZD_ascended_advisor_3 = 2 }
                }
            }
            GFX_portrait_CZD_kim_chaek_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_kim_chaek_available_small = yes
        }
        advisor_choe_hyon_portrait = {
            GFX_portrait_CZD_choe_hyon_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 3 }
                    check_variable = { CZD_ascended_advisor_2 = 3 }
                    check_variable = { CZD_ascended_advisor_3 = 3 }
                }
            }
            GFX_portrait_CZD_choe_hyon_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_choe_hyon_available_small = yes
        }
        advisor_mu_jeong_portrait = {
            GFX_portrait_CZD_mu_jeong_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 4 }
                    check_variable = { CZD_ascended_advisor_2 = 4 }
                    check_variable = { CZD_ascended_advisor_3 = 4 }
                }
            }
            GFX_portrait_CZD_mu_jeong_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_mu_jeong_available_small = yes
        }
        advisor_pak_hon_yong_portrait = {
            GFX_portrait_CZD_pak_hon_yong_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 5 }
                    check_variable = { CZD_ascended_advisor_2 = 5 }
                    check_variable = { CZD_ascended_advisor_3 = 5 }
                }
            }
            GFX_portrait_CZD_pak_hon_yong_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_pak_hon_yong_available_small = yes
        }
        advisor_kang_kon_portrait = {
            GFX_portrait_CZD_kang_kon_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 6 }
                    check_variable = { CZD_ascended_advisor_2 = 6 }
                    check_variable = { CZD_ascended_advisor_3 = 6 }
                }
            }
            GFX_portrait_CZD_kang_kon_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_kang_kon_available_small = yes
        }
        advisor_nam_il_portrait = {
            GFX_portrait_CZD_nam_il_small = {
                OR = {
                    check_variable = { CZD_ascended_advisor_1 = 7 }
                    check_variable = { CZD_ascended_advisor_2 = 7 }
                    check_variable = { CZD_ascended_advisor_3 = 7 }
                }
            }
            GFX_portrait_CZD_nam_il_unavailable_small = {
                check_variable = { CZD_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { CZD_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_portrait_CZD_nam_il_available_small = yes
        }
    }

    scripted_localization = {
        # 位置1动态提示
        czd_ascended_advisor_1_tooltip = {
            text = "CZD_ascended_advisor_1_tooltip_empty"
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 1 } }
                text = "CZD_ascended_advisor_1_tooltip_choe"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 2 } }
                text = "CZD_ascended_advisor_1_tooltip_kim"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 3 } }
                text = "CZD_ascended_advisor_1_tooltip_choe_h"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 4 } }
                text = "CZD_ascended_advisor_1_tooltip_mu"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 5 } }
                text = "CZD_ascended_advisor_1_tooltip_pak"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 6 } }
                text = "CZD_ascended_advisor_1_tooltip_kang"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 7 } }
                text = "CZD_ascended_advisor_1_tooltip_nam"
            }
        }

        # 位置1动态特征名称
        czd_ascended_advisor_1_trait_text = {
            text = ""
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 1 } }
                text = "CZD_choe_yong_gon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 2 } }
                text = "CZD_kim_chaek_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 3 } }
                text = "CZD_choe_hyon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 4 } }
                text = "CZD_mu_jeong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 5 } }
                text = "CZD_pak_hon_yong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 6 } }
                text = "CZD_kang_kon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_1 = 7 } }
                text = "CZD_nam_il_trait"
            }
        }

        # 位置2动态提示
        czd_ascended_advisor_2_tooltip = {
            text = "CZD_ascended_advisor_2_tooltip_empty"
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 1 } }
                text = "CZD_ascended_advisor_2_tooltip_choe"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 2 } }
                text = "CZD_ascended_advisor_2_tooltip_kim"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 3 } }
                text = "CZD_ascended_advisor_2_tooltip_choe_h"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 4 } }
                text = "CZD_ascended_advisor_2_tooltip_mu"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 5 } }
                text = "CZD_ascended_advisor_2_tooltip_pak"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 6 } }
                text = "CZD_ascended_advisor_2_tooltip_kang"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 7 } }
                text = "CZD_ascended_advisor_2_tooltip_nam"
            }
        }

        # 位置2动态特征名称
        czd_ascended_advisor_2_trait_text = {
            text = ""
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 1 } }
                text = "CZD_choe_yong_gon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 2 } }
                text = "CZD_kim_chaek_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 3 } }
                text = "CZD_choe_hyon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 4 } }
                text = "CZD_mu_jeong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 5 } }
                text = "CZD_pak_hon_yong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 6 } }
                text = "CZD_kang_kon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_2 = 7 } }
                text = "CZD_nam_il_trait"
            }
        }

        # 位置3动态提示
        czd_ascended_advisor_3_tooltip = {
            text = "CZD_ascended_advisor_3_tooltip_empty"
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 1 } }
                text = "CZD_ascended_advisor_3_tooltip_choe"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 2 } }
                text = "CZD_ascended_advisor_3_tooltip_kim"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 3 } }
                text = "CZD_ascended_advisor_3_tooltip_choe_h"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 4 } }
                text = "CZD_ascended_advisor_3_tooltip_mu"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 5 } }
                text = "CZD_ascended_advisor_3_tooltip_pak"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 6 } }
                text = "CZD_ascended_advisor_3_tooltip_kang"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 7 } }
                text = "CZD_ascended_advisor_3_tooltip_nam"
            }
        }

        # 位置3动态特征名称
        czd_ascended_advisor_3_trait_text = {
            text = ""
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 1 } }
                text = "CZD_choe_yong_gon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 2 } }
                text = "CZD_kim_chaek_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 3 } }
                text = "CZD_choe_hyon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 4 } }
                text = "CZD_mu_jeong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 5 } }
                text = "CZD_pak_hon_yong_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 6 } }
                text = "CZD_kang_kon_trait"
            }
            triggered_desc = {
                trigger = { check_variable = { CZD_ascended_advisor_3 = 7 } }
                text = "CZD_nam_il_trait"
            }
        }
    }
}