scripted_gui = {

	sov_great_purge_decisions_scripted_gui = {
		context_type = decision_category
		window_name = "sov_great_purge_decisions_gui_main"
        dirty = sov_great_purge_completion

		visible = {
            has_government = communism
            is_subject = no
            has_idea = SOV_Great_purge_idea_russia2
        }

        ai_enabled = {
			always = no
		}

        properties = {
            great_purge_decisions_icon = {
                image = [THIS.GetCurrentPurgeScale]
            }

            great_purge_progress = {
                frame = var:sov_great_purge_completion
            }

            0_pin_mikhail_tukhachevsky_portrait = {
                frame = var:sov_great_purge_frame^0
            }

            1_pin_georgy_zhukov_portrait = {
                frame = var:sov_great_purge_frame^1
            }

            2_pin_mikhail_kalinin_portrait = {
                frame = var:sov_great_purge_frame^2
            }

            3_pin_kliment_voroshilov_portrait = {
                frame = var:sov_great_purge_frame^3
            }

            4_pin_lavrentiy_beria_portrait = {
                frame = var:sov_great_purge_frame^4
            }

            5_pin_genrikh_yagoda_portrait = {
                frame = var:sov_great_purge_frame^5
            }

            6_pin_nikolai_voznesensky_portrait = {
                frame = var:sov_great_purge_frame^6
            }

            7_pin_grigory_kulik_portrait = {
                frame = var:sov_great_purge_frame^7
            }

            8_pin_vsevolod_merkulov_portrait = {
                frame = var:sov_great_purge_frame^8
            }

            9_pin_ivan_maisky_portrait = {
                frame = var:sov_great_purge_frame^9
            }

            10_pin_vyacheslav_molotov_portrait = {
                frame = var:sov_great_purge_frame^10
            }

            11_pin_nikita_khruschev_portrait = {
                frame = var:sov_great_purge_frame^11
            }

            12_pin_semyon_timoshenko_portrait = {
                frame = var:sov_great_purge_frame^12
            }

            13_pin_alexander_yegorov_portrait = {
                frame = var:sov_great_purge_frame^13
            }

            14_pin_vasily_blucher_portrait = {
                frame = var:sov_great_purge_frame^14
            }

            15_pin_pyotr_smirnov_portrait = {
                frame = var:sov_great_purge_frame^15
            }

            16_pin_mikhail_frinovsky_portrait = {
                frame = var:sov_great_purge_frame^16
            }

            17_pin_nikolay_kuznetsov_portrait = {
                frame = var:sov_great_purge_frame^17
            }

            18_pin_ivan_yumashev_portrait = {
                frame = var:sov_great_purge_frame^18
            }

            19_pin_alexander_novikov_portrait = {
                frame = var:sov_great_purge_frame^19
            }

            20_pin_konstantin_vershinin_portrait = {
                frame = var:sov_great_purge_frame^20
            }

            21_pin_yakov_smushkevich_portrait = {
                frame = var:sov_great_purge_frame^21
            }

            22_pin_pavel_rychagov_portrait = {
                frame = var:sov_great_purge_frame^22
            }

            23_pin_ivan_konev_portrait = {
                frame = var:sov_great_purge_frame^23
            }

            24_pin_konstantin_rokossovsky_portrait = {
                frame = var:sov_great_purge_frame^24
            }

            25_pin_aleksandr_vasilevsky_portrait = {
                frame = var:sov_great_purge_frame^25
            }

            26_pin_pavel_zhigarev_portrait = {
                frame = var:sov_great_purge_frame^26
            }

            27_pin_sergei_khudyakov_portrait = {
                frame = var:sov_great_purge_frame^27
            }

            28_pin_stepan_krasovsky_portrait = {
                frame = var:sov_great_purge_frame^28
            }

            29_pin_vladimir_kasatonov_portrait = {
                frame = var:sov_great_purge_frame^29
            }

            30_pin_gordey_levchenko_portrait = {
                frame = var:sov_great_purge_frame^30
            }

            31_pin_arseniy_golovko_portrait = {
                frame = var:sov_great_purge_frame^31
            }

            32_pin_boris_shaposhnikov_portrait = {
                frame = var:sov_great_purge_frame^32
            }

            33_pin_sergey_gorshkov_portrait = {
                frame = var:sov_great_purge_frame^33
            }

            34_pin_vladimir_tributs_portrait = {
                frame = var:sov_great_purge_frame^34
            }

            35_pin_sergei_rudenko_portrait = {
                frame = var:sov_great_purge_frame^35
            }

            36_pin_alexander_golovanov_portrait = {
                frame = var:sov_great_purge_frame^36
            }

            37_pin_igor_kurchatov_portrait = {
                frame = var:sov_great_purge_frame^37
            }

            38_pin_sergei_korolev_portrait = {
                frame = var:sov_great_purge_frame^38
            }

            39_pin_leonid_govorov_portrait = {
                frame = var:sov_great_purge_frame^39
            }

            40_pin_nikolai_berzarin_portrait = {
                frame = var:sov_great_purge_frame^40
            }

            41_pin_alexander_gorbatov_portrait = {
                frame = var:sov_great_purge_frame^41
            }

            42_pin_yakov_agranov_portrait = {
                frame = var:sov_great_purge_frame^42
            }

            43_pin_aleskey_rykov_portrait = {
                frame = var:sov_great_purge_frame^43
            }

            44_pin_lev_kamenev_portrait = {
                frame = var:sov_great_purge_frame^44
            }

            45_pin_nikolay_bukharin_portrait = {
                frame = var:sov_great_purge_frame^45
            }

            46_pin_grigory_zinovyev_portrait = {
                frame = var:sov_great_purge_frame^46
            }

            Final_pin_leon_trotsky_portrait = {
                frame = var:sov_leon_trotsky_killed_frame
            }
        }
	}
}