namespace = modmenu

# menu
country_event = {
	id = modmenu.1
	title = modmenu.1.name
	desc = modmenu.1.desc
	picture = GFX_evt_alien_city
	is_triggered_only = yes

	option = {
		name = modmenu.0
		custom_tooltip = modmenu.0.tooltip
		trigger = {
			has_global_flag = autobuild_installed
		}
		hidden_effect = {
			country_event = { id = autobuild.3 }
		}
	}
	option = {
		name = modmenu.1
		custom_tooltip = modmenu.1.tooltip
		trigger = {
			has_global_flag = board_that_ship_installed
		}
		hidden_effect = {
			country_event = { id = board_that_ship_menu.1 }
		}
	}
	option = {
		name = custom_crisis_strength
		custom_tooltip = custom_crisis_strength.tooltip
		trigger = {
			has_global_flag = custom_crisis_strength_installed
		}
		hidden_effect = {
			country_event = { id = CSS_menu.1 }
		}
	}
	option = {
		name = modmenu.2
		custom_tooltip = modmenu.2.tooltip
		trigger = {
			or = {
				has_global_flag = has_nsc_active
				has_global_flag = has_playable_guardians
			}
		}
		hidden_effect = {
			country_event = { id = NSC_features.1 }
		}
	}
	option = {
		name = modmenu.4
		custom_tooltip = modmenu.4.tooltip
		trigger = {
			has_global_flag = human_fallen_empires_installed
		}
		hidden_effect = {
			country_event = { id = human_fallen_empires_menu.1 }
		}
	}
	option = {
		name = terraforming_candidate_finder
		custom_tooltip = terraforming_candidate_finder.tooltip
		trigger = {
			has_global_flag = terraforming_candidate_finder_installed
		}
		hidden_effect = {
			country_event = { id = tcf_menu.1 }
		}
	}
	option = {
		name = modmenu_exit
	}
}

country_event = {
	id = modmenu.2
	hide_window = yes
	fire_only_once = yes

	immediate = {
		set_global_flag = mod_menu_installed
	}
}
