ukr_inner_circle_inlay_window = {

    window_name = ukr_inner_circle_ui_window

    internal = yes
    visible = {
		has_country_flag = UKR_socialist_inner_circle_is_active
		has_government = communism
		is_puppet = no
    }

    scripted_images = {
        #GENSEC
        gensec_portrait = {
            GFX_inner_circle_leader_vlas_chubar = {
                has_country_leader = {
    				ruling_only = yes
				    character = UKR_vlas_chubar
			    }
            }
            GFX_inner_circle_leader_mykola_khvylovy = {
                has_country_leader = {
    				ruling_only = yes
	    			character = UKR_mykola_khvylovy
			    }
            }
            GFX_inner_circle_leader_oleksander_shumskyi = {
                has_country_leader = {
                    ruling_only = yes
                    character = UKR_oleksander_shumskyi
                }
            }
            GFX_inner_circle_leader_sofia_sokolovska = {
                has_country_leader = {
                    ruling_only = yes
                    character = UKR_sofia_sokolovska
                }
            }
            GFX_inner_circle_leader_lev_trotsky = {
                has_country_leader = {
                    ruling_only = yes
                    character = UKR_lev_trotsky
                }
            }
            GFX_inner_circle_leader_isaak_mazepa = {
                has_country_leader = {
                    ruling_only = yes
                    character = UKR_isaak_mazepa
                }
            }
            GFX_inner_circle_leader_rozalia_vynnychenko = {
                has_country_leader = {
                    ruling_only = yes
                    character = UKR_rozalia_vynnychenko
                }
            }
            GFX_inner_circle_leader_volodymyr_vynnychenko = yes
        }

        #ASCENDED
        ascended_advisor_1_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { UKR_ascended_advisor_1 = 0 }
            }
            GFX_portrait_UKR_vlas_chubar = {
       			check_variable = { UKR_ascended_advisor_1 = 1 }
		    }
            GFX_portrait_UKR_mykola_khvylovy = {
                check_variable = { UKR_ascended_advisor_1 = 2 }
            }
            GFX_portrait_UKR_oleksander_shumskyi = {
                check_variable = { UKR_ascended_advisor_1 = 3 }
            }
            GFX_portrait_UKR_sofia_sokolovska = {
                check_variable = { UKR_ascended_advisor_1 = 4 }
            }
            GFX_portrait_UKR_lev_trotsky = {
                check_variable = { UKR_ascended_advisor_1 = 5 }
            }
            GFX_portrait_UKR_isaak_mazepa = {
                check_variable = { UKR_ascended_advisor_1 = 6 }
            }
        }
        ascended_advisor_2_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { UKR_ascended_advisor_2 = 0 }
            }
            GFX_portrait_UKR_vlas_chubar = {
       			check_variable = { UKR_ascended_advisor_2 = 1 }
		    }
            GFX_portrait_UKR_mykola_khvylovy = {
                check_variable = { UKR_ascended_advisor_2 = 2 }
            }
            GFX_portrait_UKR_oleksander_shumskyi = {
                check_variable = { UKR_ascended_advisor_2 = 3 }
            }
            GFX_portrait_UKR_sofia_sokolovska = {
                check_variable = { UKR_ascended_advisor_2 = 4 }
            }
            GFX_portrait_UKR_lev_trotsky = {
                check_variable = { UKR_ascended_advisor_2 = 5 }
            }
            GFX_portrait_UKR_isaak_mazepa = {
                check_variable = { UKR_ascended_advisor_2 = 6 }
            }
        }
        ascended_advisor_3_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { UKR_ascended_advisor_3 = 0 }
            }
            GFX_portrait_UKR_vlas_chubar = {
       			check_variable = { UKR_ascended_advisor_3 = 1 }
		    }
            GFX_portrait_UKR_mykola_khvylovy = {
                check_variable = { UKR_ascended_advisor_3 = 2 }
            }
            GFX_portrait_UKR_oleksander_shumskyi = {
                check_variable = { UKR_ascended_advisor_3 = 3 }
            }
            GFX_portrait_UKR_sofia_sokolovska = {
                check_variable = { UKR_ascended_advisor_3 = 4 }
            }
            GFX_portrait_UKR_lev_trotsky = {
                check_variable = { UKR_ascended_advisor_3 = 5 }
            }
            GFX_portrait_UKR_isaak_mazepa = {
                check_variable = { UKR_ascended_advisor_3 = 6 }
            }
        }

        ascended_advisor_1_frame = {
            GFX_soc_ascended_advisors_frame = {
                check_variable = { UKR_ascended_advisor_1 = 0 compare = not_equals }	
            }
            GFX_soc_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_2_frame = {
            GFX_soc_ascended_advisors_frame = {
                check_variable = { UKR_ascended_advisor_2 = 0 compare = not_equals }	
            }
            GFX_soc_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_3_frame = {
            GFX_soc_ascended_advisors_frame = {
                check_variable = { UKR_ascended_advisor_3 = 0 compare = not_equals }	
            }
            GFX_soc_ascended_advisors_unappointed_frame = yes
        }
    }
}
