### New setup ###

### Active or non-active icons ###
## Column 1:
defined_text = {
   name = select_influence_action_button

	text = {
	   trigger = { ROOT = { has_political_power > 100 } }
	   localization_key = "GFX_influence_action_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_influence_action_button_inactive"
	}
}
defined_text = {
   name = influence_button_req

	text = {
	   trigger = { ROOT = { has_political_power > 100 } }
	   localization_key = influence_action_button_req_enable_TT
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = influence_action_button_req_disable_TT
	}
}
defined_text = {
   name = influence_action_gain
	
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier = 2 } } }
	   localization_key = influence_gain_superpower_TT
	}
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier = 1.6 } } }
	   localization_key = influence_gain_great_power_TT
	}
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier = 1.4 } } }
	   localization_key = influence_gain_major_power_TT
	}
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier = 1.2 } } }
	   localization_key = influence_gain_regional_power_TT
	}
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier = 1 } } }
	   localization_key = influence_gain_minor_power_TT
	}
	text = {
	   trigger = { ROOT = { check_variable = { influence_multiplier < 1 } } }
	   localization_key = influence_gain_non_power_TT
	}
}
defined_text = {
   name = select_aid_button

	text = {
	   trigger = { is_influencer = yes }
	   localization_key = "GFX_aid_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_aid_button_inactive"
	}
}
defined_text = {
   name = select_aid_military_button

	text = {
	   trigger = { is_influencer = yes }
	   localization_key = "GFX_aid_military_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_aid_military_button_inactive"
	}
}
defined_text = {
   name = select_target_other_button

	text = {
	   trigger = { is_influencer = yes }
	   localization_key = "GFX_target_other_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_target_other_button_inactive"
	}
}

#Column 2:
defined_text = {
   name = select_manipulate_politics_button

	text = {
	   trigger = { is_influencer = yes }
	   localization_key = "GFX_manipulate_politics_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_manipulate_politics_button_inactive"
	}
}
defined_text = {
   name = select_coup_button

	text = {
	   trigger = { is_influencer = yes }
	   localization_key = "GFX_stage_coup_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_stage_coup_button_inactive"
	}
}
defined_text = {
   name = select_economic_exploitation_button

	text = {
	   trigger = {
			check_variable = { influence_array^0 = ROOT }
			check_variable = { influence_array_calc^0 > 0.5 } #50%
	   }
	   localization_key = "GFX_economic_exploitation_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_economic_exploitation_button_inactive"
	}
}
defined_text = {
   name = select_make_puppet_button

	text = {
	   trigger = {
			check_variable = { influence_array^0 = ROOT }
			check_variable = { influence_array_calc^0 > 0.8 } #80%
	   }
	   localization_key = "GFX_make_puppet_button"
	}
	text = {
	   #trigger = { always = yes }
	   localization_key = "GFX_make_puppet_button_inactive"
	}
}

defined_text = {
	name = new_position_1
	text = {
		trigger = {
			has_variable = influence_array^0
		}
		localization_key = "[?var:influence_array^0.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_2
	text = {
		trigger = {
			has_variable = influence_array^1
		}
		localization_key = "[?var:influence_array^1.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_3
	text = {
		trigger = {
			has_variable = influence_array^2
		}
		localization_key = "[?var:influence_array^2.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_4
	text = {
		trigger = {
			has_variable = influence_array^3
		}
		localization_key = "[?var:influence_array^3.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_5
	text = {
		trigger = {
			has_variable = influence_array^4
		}
		localization_key = "[?var:influence_array^4.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_6
	text = {
		trigger = {
			has_variable = influence_array^5
		}
		localization_key = "[?var:influence_array^5.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = new_position_7
	text = {
		trigger = {
			has_variable = influence_array^6
		}
		localization_key = "[?var:influence_array^6.GetNameWithFlag]"
	}
	text = {
	   localization_key = ""
	}
}


### For targeted desicions ###

defined_text = { 
	name = position_1_var_integer

	text = { trigger = { has_variable = influence_array^0 }
	   localization_key = "([?influence_array_val^0])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_2_var_integer

	text = { trigger = { has_variable = influence_array^1 }
	   localization_key = "([?influence_array_val^1])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_3_var_integer

	text = { trigger = { has_variable = influence_array^2 }
	   localization_key = "([?influence_array_val^2])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_4_var_integer

	text = { trigger = { has_variable = influence_array^3 }
	   localization_key = "([?influence_array_val^3])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_5_var_integer

	text = { trigger = { has_variable = influence_array^4 }
	   localization_key = "([?influence_array_val^4])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_6_var_integer

	text = { trigger = { has_variable = influence_array^5 }
	   localization_key = "([?influence_array_val^5])"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_7_var_integer

	text = { trigger = { has_variable = influence_array^6 }
	   localization_key = "([?influence_array_val^6])"
	}
	text = {
	   localization_key = ""
	}
}

### Pole pos:
defined_text = { 
	name = position_1_var_n

	text = { trigger = { has_variable = influence_array^0 }
	   localization_key = "1"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_2_var_n

	text = { trigger = { has_variable = influence_array^1 }
	   localization_key = "2"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_3_var_n

	text = { trigger = { has_variable = influence_array^2 }
	   localization_key = "3"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_4_var_n

	text = { trigger = { has_variable = influence_array^3 }
	   localization_key = "4"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_5_var_n

	text = { trigger = { has_variable = influence_array^4 }
	   localization_key = "5"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_6_var_n

	text = { trigger = { has_variable = influence_array^5 }
	   localization_key = "6"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_7_var_n

	text = { trigger = { has_variable = influence_array^6 }
	   localization_key = "7"
	}
	text = {
	   localization_key = ""
	}
}

### Display ###

defined_text = { 
	name = position_1_var

	text = { trigger = { has_variable = influence_array^0 }
	   localization_key = "[?influence_array_calc^0|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_2_var

	text = { trigger = { has_variable = influence_array^1 }
	   localization_key = "[?influence_array_calc^1|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_3_var

	text = { trigger = { has_variable = influence_array^2 }
	   localization_key = "[?influence_array_calc^2|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_4_var

	text = { trigger = { has_variable = influence_array^3 }
	   localization_key = "[?influence_array_calc^3|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_5_var

	text = { trigger = { has_variable = influence_array^4 }
	   localization_key = "[?influence_array_calc^4|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_6_var

	text = { trigger = { has_variable = influence_array^5 }
	   localization_key = "[?influence_array_calc^5|%0]"
	}
	text = {
	   localization_key = ""
	}
}

defined_text = { 
	name = position_7_var

	text = { trigger = { has_variable = influence_array^6 }
	   localization_key = "[?influence_array_calc^6|%0]"
	}
	text = {
	   localization_key = ""
	}
}
defined_text = {
	name = influencer_0
	text = {
		localization_key = "[?var:influence_array^0.GetFlag] Противостоять влияню [?var:influence_array^0.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_1
	text = {
		localization_key = "[?var:influence_array^1.GetFlag] Противостоять влияню [?var:influence_array^1.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_2
	text = {
		localization_key = "[?var:influence_array^2.GetFlag] Противостоять влияню [?var:influence_array^2.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_3
	text = {
		localization_key = "[?var:influence_array^3.GetFlag] Противостоять влияню [?var:influence_array^3.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_4
	text = {
		localization_key = "[?var:influence_array^4.GetFlag] Противостоять влияню [?var:influence_array^4.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_5
	text = {
		localization_key = "[?var:influence_array^5.GetFlag] Противостоять влияню [?var:influence_array^5.GetAdjectiveCap]"
	}
}
defined_text = {
	name = influencer_6
	text = {
		localization_key = "[?var:influence_array^6.GetFlag] Противостоять влияню [?var:influence_array^6.GetAdjectiveCap]"
	}
}

defined_text = {
	name = influencer_desc_0
	text = { trigger = { has_variable = influence_array^0 }
	   localization_key = "[?var:influence_array^0.GetNameWithFlag]: [?influence_array_calc^0|%2]"
	}
}
defined_text = {
	name = influencer_desc_1
	text = { trigger = { has_variable = influence_array^1 }
	   localization_key = "[?var:influence_array^1.GetNameWithFlag]: [?influence_array_calc^1|%2]"
	}
}
defined_text = {
	name = influencer_desc_2
	text = { trigger = { has_variable = influence_array^2 }
	   localization_key = "[?var:influence_array^2.GetNameWithFlag]: [?influence_array_calc^2|%2]"
	}
}
defined_text = {
	name = influencer_desc_3
	text = { trigger = { has_variable = influence_array^3 }
	   localization_key = "[?var:influence_array^3.GetNameWithFlag]: [?influence_array_calc^3|%2]"
	}
}
defined_text = {
	name = influencer_desc_4
	text = { trigger = { has_variable = influence_array^4 }
	   localization_key = "[?var:influence_array^4.GetNameWithFlag]: [?influence_array_calc^4|%2]"
	}
}
defined_text = {
	name = influencer_desc_5
	text = { trigger = { has_variable = influence_array^5 }
	   localization_key = "[?var:influence_array^5.GetNameWithFlag]: [?influence_array_calc^5|%2]"
	}
}
defined_text = {
	name = influencer_desc_6
	text = { trigger = { has_variable = influence_array^6 }
	   localization_key = "[?var:influence_array^6.GetNameWithFlag]: [?influence_array_calc^6|%2]"
	}
}
defined_text = {
   name = UAR_jordanian_operations
	text = {
	   localization_key = jor_uar_influence
	}
}

defined_text = {
   name = UAR_jordan_imperialist_influence
	text = {
		trigger = { check_variable = { JOR.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in Jordan"
	}
	text = {
		trigger = { check_variable = { JOR.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in Jordan"
	}
	text = {
		trigger = { check_variable = { JOR.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in Jordan"
	}
}

defined_text = {
   name = UAR_yemen_imperialist_influence
	text = {
		trigger = { check_variable = { YEM.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [YEM.GetNameDef]"
	}
	text = {
		trigger = { check_variable = { YEM.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [YEM.GetNameDef]"
	}
	text = {
		trigger = { check_variable = { YEM.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [YEM.GetNameDef]"
	}
}

defined_text = {
   name = UAR_LEB_imperialist_influence
	text = {
		trigger = { check_variable = { LEB.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [LEB.GetName]"
	}
	text = {
		trigger = { check_variable = { LEB.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [LEB.GetName]"
	}
	text = {
		trigger = { check_variable = { LEB.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [LEB.GetName]"
	}
}

defined_text = {
   name = UAR_ALG_imperialist_influence
	text = {
		trigger = { check_variable = { ALG.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [ALG.GetName]"
	}
	text = {
		trigger = { check_variable = { ALG.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [ALG.GetName]"
	}
	text = {
		trigger = { check_variable = { ALG.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [ALG.GetName]"
	}
}

defined_text = {
   name = UAR_BHR_imperialist_influence
	text = {
		trigger = { check_variable = { BHR.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [BHR.GetName]"
	}
	text = {
		trigger = { check_variable = { BHR.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [BHR.GetName]"
	}
	text = {
		trigger = { check_variable = { BHR.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [BHR.GetName]"
	}
}

defined_text = {
   name = UAR_DRY_imperialist_influence
	text = {
		trigger = { check_variable = { DRY.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [DRY.GetName]"
	}
	text = {
		trigger = { check_variable = { DRY.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [DRY.GetName]"
	}
	text = {
		trigger = { check_variable = { DRY.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [DRY.GetName]"
	}
}

defined_text = {
   name = UAR_IRQ_imperialist_influence
	text = {
		trigger = { check_variable = { IRQ.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [IRQ.GetName]"
	}
	text = {
		trigger = { check_variable = { IRQ.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [IRQ.GetName]"
	}
	text = {
		trigger = { check_variable = { IRQ.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [IRQ.GetName]"
	}
}

defined_text = {
   name = UAR_KUW_imperialist_influence
	text = {
		trigger = { check_variable = { KUW.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [KUW.GetName]"
	}
	text = {
		trigger = { check_variable = { KUW.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [KUW.GetName]"
	}
	text = {
		trigger = { check_variable = { KUW.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [KUW.GetName]"
	}
}
defined_text = {
   name = UAR_LBA_imperialist_influence
	text = {
		trigger = { check_variable = { LBA.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [LBA.GetName]"
	}
	text = {
		trigger = { check_variable = { LBA.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [LBA.GetName]"
	}
	text = {
		trigger = { check_variable = { LBA.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [LBA.GetName]"
	}
}
defined_text = {
   name = UAR_MOR_imperialist_influence
	text = {
		trigger = { check_variable = { MOR.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [MOR.GetName]"
	}
	text = {
		trigger = { check_variable = { MOR.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [MOR.GetName]"
	}
	text = {
		trigger = { check_variable = { MOR.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [MOR.GetName]"
	}
}
  defined_text = {
   name = UAR_SYR_imperialist_influence
	text = {
		trigger = { check_variable = { SYR.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [SYR.GetName]"
	}
	text = {
		trigger = { check_variable = { SYR.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [SYR.GetName]"
	}
	text = {
		trigger = { check_variable = { SYR.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [SYR.GetName]"
	}
}
 defined_text = {
   name = UAR_TUN_imperialist_influence
	text = {
		trigger = { check_variable = { TUN.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [TUN.GetName]"
	}
	text = {
		trigger = { check_variable = { TUN.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [TUN.GetName]"
	}
	text = {
		trigger = { check_variable = { TUN.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [TUN.GetName]"
	}
}
 
defined_text = {
   name = UAR_OMA_imperialist_influence
	text = {
		trigger = { check_variable = { OMA.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [OMA.GetName]"
	}
	text = {
		trigger = { check_variable = { OMA.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [OMA.GetName]"
	}
	text = {
		trigger = { check_variable = { OMA.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [OMA.GetName]"
	}
}

defined_text = {
   name = UAR_QAT_imperialist_influence
	text = {
		trigger = { check_variable = { QAT.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [QAT.GetName]"
	}
	text = {
		trigger = { check_variable = { QAT.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [QAT.GetName]"
	}
	text = {
		trigger = { check_variable = { QAT.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [QAT.GetName]"
	}
}
defined_text = {
   name = UAR_SAU_imperialist_influence
	text = {
		trigger = { check_variable = { SAU.influence_array^0 = ENG } }
		localization_key = "[ENG.GetAdjective] Influence in [SAU.GetName]"
	}
	text = {
		trigger = { check_variable = { SAU.influence_array^0 = FRA } }
		localization_key = "[FRA.GetNameDef] Influence in [SAU.GetName]"
	}
	text = {
		trigger = { check_variable = { SAU.influence_array^0 = SPR } }
		localization_key = "[SPR.GetNameDef] Influence in [SAU.GetName]"
	}
}
