ger_inner_circle_inlay_window = {

    window_name = ger_inner_circle_ui_window

    internal = yes
    visible = {
        NOT = { has_completed_focus = GER_oppose_hitler_ww }
        NOT = { has_completed_focus = GER_oppose_hitler }
        has_government = fascism
    }

    scripted_images = {
        #FUHRER
        fuhrer_portrait = {
            GFX_inner_circle_leader_fritz_todt = {
                has_country_leader = {
    				ruling_only = yes
				    character = GER_fritz_todt
			    }
            }
            GFX_inner_circle_leader_albert_speer = {
                has_country_leader = {
    				ruling_only = yes
	    			character = GER_albert_speer
			    }
            }
            GFX_inner_circle_leader_hermann_goring = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_hermann_goring
                }
            }
            GFX_inner_circle_leader_heinrich_himmler = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_heinrich_himmler
                }
            }
            GFX_inner_circle_leader_joseph_goebbels = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_joseph_goebbels
                }
            }
            GFX_inner_circle_leader_rudolf_hess = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_rudolf_hess
                }
            }
            GFX_inner_circle_leader_martin_bormann = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_martin_bormann
                }
            }
            GFX_inner_circle_leader_eva_braun = {
                has_country_leader = {
                    ruling_only = yes
                    character = GER_eva_braun
                }
            }
            GFX_inner_circle_leader_adolf_hitler = yes
        }

        #ASCENDED
        ascended_advisor_1_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { GER_ascended_advisor_1 = 0 }
            }
            GFX_portrait_GER_fritz_todt = {
       			check_variable = { GER_ascended_advisor_1 = 1 }
		    }
            GFX_portrait_GER_albert_speer = {
                check_variable = { GER_ascended_advisor_1 = 2 }
            }
            GFX_portrait_GER_hermann_goring = {
                check_variable = { GER_ascended_advisor_1 = 3 }
            }
            GFX_portrait_GER_heinrich_himmler = {
                check_variable = { GER_ascended_advisor_1 = 4 }
            }
            GFX_portrait_GER_joseph_goebbels = {
                check_variable = { GER_ascended_advisor_1 = 5 }
            }
            GFX_portrait_GER_rudolf_hess = {
                check_variable = { GER_ascended_advisor_1 = 6 }
            }
            GFX_portrait_GER_martin_bormann = {
                check_variable = { GER_ascended_advisor_1 = 7 }
            }
        }
        ascended_advisor_2_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { GER_ascended_advisor_2 = 0 }
            }
            GFX_portrait_GER_fritz_todt = {
       			check_variable = { GER_ascended_advisor_2 = 1 }
		    }
            GFX_portrait_GER_albert_speer = {
                check_variable = { GER_ascended_advisor_2 = 2 }
            }
            GFX_portrait_GER_hermann_goring = {
                check_variable = { GER_ascended_advisor_2 = 3 }
            }
            GFX_portrait_GER_heinrich_himmler = {
                check_variable = { GER_ascended_advisor_2 = 4 }
            }
            GFX_portrait_GER_joseph_goebbels = {
                check_variable = { GER_ascended_advisor_2 = 5 }
            }
            GFX_portrait_GER_rudolf_hess = {
                check_variable = { GER_ascended_advisor_2 = 6 }
            }
            GFX_portrait_GER_martin_bormann = {
                check_variable = { GER_ascended_advisor_2 = 7 }
            }
        }
        ascended_advisor_3_portrait = {
            GFX_blank_leader_portrait = {
                check_variable = { GER_ascended_advisor_3 = 0 }
            }
            GFX_portrait_GER_fritz_todt = {
       			check_variable = { GER_ascended_advisor_3 = 1 }
		    }
            GFX_portrait_GER_albert_speer = {
                check_variable = { GER_ascended_advisor_3 = 2 }
            }
            GFX_portrait_GER_hermann_goring = {
                check_variable = { GER_ascended_advisor_3 = 3 }
            }
            GFX_portrait_GER_heinrich_himmler = {
                check_variable = { GER_ascended_advisor_3 = 4 }
            }
            GFX_portrait_GER_joseph_goebbels = {
                check_variable = { GER_ascended_advisor_3 = 5 }
            }
            GFX_portrait_GER_rudolf_hess = {
                check_variable = { GER_ascended_advisor_3 = 6 }
            }
            GFX_portrait_GER_martin_bormann = {
                check_variable = { GER_ascended_advisor_3 = 7 }
            }
        }

        ascended_advisor_1_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_2_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }
        ascended_advisor_3_frame = {
            GFX_ascended_advisors_frame = {
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }	
            }
            GFX_ascended_advisors_unappointed_frame = yes
        }

        #ADVISOR
        advisor_todt_portrait = {
            GFX_fritz_todt_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 1 }
                    check_variable = { GER_ascended_advisor_2 = 1 }
                    check_variable = { GER_ascended_advisor_3 = 1 }
                }
            }
            GFX_fritz_todt_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_fritz_todt_available_small = yes
        }
        advisor_speer_portrait = {
            GFX_albert_speer_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 2 }
                    check_variable = { GER_ascended_advisor_2 = 2 }
                    check_variable = { GER_ascended_advisor_3 = 2 }
                }
            }
            GFX_albert_speer_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_albert_speer_available_small = yes
        }
        advisor_goring_portrait = {
            GFX_hermann_goring_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 3 }
                    check_variable = { GER_ascended_advisor_2 = 3 }
                    check_variable = { GER_ascended_advisor_3 = 3 }
                }
            }
            GFX_hermann_goring_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_hermann_goring_available_small = yes
        }
        advisor_himmler_portrait = {
            GFX_heinrich_himmler_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 4 }
                    check_variable = { GER_ascended_advisor_2 = 4 }
                    check_variable = { GER_ascended_advisor_3 = 4 }
                }
            }
            GFX_heinrich_himmler_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_heinrich_himmler_available_small = yes
        }
        advisor_goebbels_portrait = {
            GFX_joseph_goebbels_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 5 }
                    check_variable = { GER_ascended_advisor_2 = 5 }
                    check_variable = { GER_ascended_advisor_3 = 5 }
                }
            }
            GFX_joseph_goebbels_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_joseph_goebbels_available_small = yes
        }
        advisor_hess_portrait = {
            GFX_rudolf_hess_fo_small = {
                has_country_flag = flight_of_hess
            }
            GFX_rudolf_hess_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 6 }
                    check_variable = { GER_ascended_advisor_2 = 6 }
                    check_variable = { GER_ascended_advisor_3 = 6 }
                }
            }
            GFX_rudolf_hess_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_rudolf_hess_available_small = yes
        }
        advisor_bormann_portrait = {
            GFX_martin_bormann_selected_small = {
                OR = {
                    check_variable = { GER_ascended_advisor_1 = 7 }
                    check_variable = { GER_ascended_advisor_2 = 7 }
                    check_variable = { GER_ascended_advisor_3 = 7 }
                }
            }
            GFX_martin_bormann_unavailable_small = {
                check_variable = { GER_ascended_advisor_1 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_2 = 0 compare = not_equals }
                check_variable = { GER_ascended_advisor_3 = 0 compare = not_equals }
            }
            GFX_martin_bormann_available_small = yes
        }
    }
}