// Armor UI Handler.
// Worthless Bums 2013.


function initializeArmorUiButtons ()
{return;		// Disabled for now!
	LeaderFirearmReadoutShoot.tooltip = "Fire (" @ strreplace($PrimaryBind, "keyboard ", "") @ ")";
	LeaderFirearmReadoutShoot.tooltipprofile = "ItemToolTipProfile";
	LeaderFirearmReadoutReload.tooltip = "Reload (" @ strreplace($ReloadBind, "keyboard ", "") @ ")";
	LeaderFirearmReadoutReload.tooltipprofile = "ItemToolTipProfile";
	LeaderFirearmReadoutGuardMode.tooltip = getGuardModeTooltip();
	LeaderFirearmReadoutGuardMode.tooltipprofile = "ItemToolTipProfile";
	LeaderFirearmReadoutFlashlight.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	LeaderFirearmReadoutFlashlight.tooltipprofile = "ItemToolTipProfile";
	LeaderFirearmReadoutLaser.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	LeaderFirearmReadoutLaser.tooltipprofile = "ItemToolTipProfile";
	
	ScoutFirearmReadoutShoot.tooltip = "Fire (" @ strreplace($PrimaryBind, "keyboard ", "") @ ")";
	ScoutFirearmReadoutShoot.tooltipprofile = "ItemToolTipProfile";
	ScoutFirearmReadoutReload.tooltip = "Reload (" @ strreplace($ReloadBind, "keyboard ", "") @ ")";
	ScoutFirearmReadoutReload.tooltipprofile = "ItemToolTipProfile";
	ScoutFirearmReadoutGuardMode.tooltip = getGuardModeTooltip();
	ScoutFirearmReadoutGuardMode.tooltipprofile = "ItemToolTipProfile";
	ScoutFirearmReadoutFlashlight.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	ScoutFirearmReadoutFlashlight.tooltipprofile = "ItemToolTipProfile";
	ScoutFirearmReadoutLaser.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	ScoutFirearmReadoutLaser.tooltipprofile = "ItemToolTipProfile";
	
	GrenadierFirearmReadoutShoot.tooltip = "Fire (" @ strreplace($PrimaryBind, "keyboard ", "") @ ")";
	GrenadierFirearmReadoutShoot.tooltipprofile = "ItemToolTipProfile";
	GrenadierFirearmReadoutReload.tooltip = "Reload (" @ strreplace($ReloadBind, "keyboard ", "") @ ")";
	GrenadierFirearmReadoutReload.tooltipprofile = "ItemToolTipProfile";
	GrenadierFirearmReadoutGuardMode.tooltip = getGuardModeTooltip();
	GrenadierFirearmReadoutGuardMode.tooltipprofile = "ItemToolTipProfile";
	GrenadierFirearmReadoutFlashlight.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	GrenadierFirearmReadoutFlashlight.tooltipprofile = "ItemToolTipProfile";
	GrenadierFirearmReadoutLaser.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	GrenadierFirearmReadoutLaser.tooltipprofile = "ItemToolTipProfile";
	
	SupportFirearmReadoutShoot.tooltip = "Fire (" @ strreplace($PrimaryBind, "keyboard ", "") @ ")";
	SupportFirearmReadoutShoot.tooltipprofile = "ItemToolTipProfile";
	SupportFirearmReadoutReload.tooltip = "Reload (" @ strreplace($ReloadBind, "keyboard ", "") @ ")";
	SupportFirearmReadoutReload.tooltipprofile = "ItemToolTipProfile";
	SupportFirearmReadoutGuardMode.tooltip = getGuardModeTooltip();
	SupportFirearmReadoutGuardMode.tooltipprofile = "ItemToolTipProfile";
	SupportFirearmReadoutFlashlight.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	SupportFirearmReadoutFlashlight.tooltipprofile = "ItemToolTipProfile";
	SupportFirearmReadoutLaser.tooltip = "Cycle Attachment (" @ strreplace($WeaponAttachmentBind, "keyboard ", "") @ ")";
	SupportFirearmReadoutLaser.tooltipprofile = "ItemToolTipProfile";
}
function updateArmorUI ()
{
	LeaderArmorReadout.setVisible(false);
	ScoutArmorReadout.setVisible(false);
	GrenadierArmorReadout.setVisible(false);
	SupportArmorReadout.setVisible(false);
	%className = getCharacterClassName($playerSquad[$activeCharacter].characterClass);
	(%className @ "ArmorReadout").setVisible(true);
	(%className @ "ArmorReadoutHead").toolTip = $playerSquad[$activeCharacter].currentHealth @ "/" @ $playerSquad[$activeCharacter].maxHealth @ " Health";
	(%className @ "ArmorReadoutLegs").toolTip = $playerSquad[$activeCharacter].currentActionPoints @ "/" @ $playerSquad[$activeCharacter].maxACtionPoints @ " Action";
	(%className @ "ArmorReadoutChest").toolTip = $playerSquad[$activeCharacter].armor.armorRating @ " Armor";
	(%className @ "ArmorReadoutRightArm").toolTip = $playerSquad[$activeCharacter].weapon.accuracy @ "% Hit";
	(%className @ "ArmorReadoutLeftArm").toolTip = $playerSquad[$activeCharacter].weapon.range @ " Range";
	ArmorReadoutArmorCounter.text = $playerSquad[$activeCharacter].armor.armorRating @ " Armor";
	ArmorReadoutRepairCounter.text = $playerSquad[$activeCharacter].armor.repair @ " Repair";
}