dmm_is_installed = {
	always = yes
}

dmm_is_uninstalled = {
	always = no
}

# DMM_FLAG = unique (leader) flag across all mods
dmm_is_registered_mod = {
	exists = event_target:dmm_global_country
	event_target:dmm_global_country = {
		any_owned_leader = {
			has_leader_flag = $DMM_FLAG$
		}
	}
}

# This = leader scope
# root = country scope
dmm_should_hide_button = {
	calc_true_if = {
		amount = 1
		has_leader_flag = dmm_hide_all
		has_leader_flag = dmm_display_exception_for_@root
	}
}
