increased API version for Thieves Guild

Kith [03-08-16 - 09:08]
increased API version for Thieves Guild
fixed bug with bind text not being hidden
fixed bug with ultimate overlay not updating on weapon swap
Filename
ActionBar.lua
Azurah.txt
Core.lua
diff --git a/ActionBar.lua b/ActionBar.lua
index 03d70a2..a70c4ee 100644
--- a/ActionBar.lua
+++ b/ActionBar.lua
@@ -4,6 +4,7 @@ local LMP			= LibStub('LibMediaProvider-1.0')
 -- UPVALUES --
 local POWERTYPE_ULTIMATE	= POWERTYPE_ULTIMATE
 local GetSlotAbilityCost	= GetSlotAbilityCost
+local GetUnitPower			= GetUnitPower
 local math_min				= math.min
 local math_max				= math.max
 local strformat				= string.format
@@ -45,11 +46,18 @@ local function OnPowerUpdate(_, unit, _, powerType, powerValue, powerMax, powerE
 	overlayUltPercent:SetText(FormatUltPercent(powerValue, powerMax, powerEffMax))
 end

+local function OnWeaponPairChanged()
+	overlayUltValue:SetText(FormatUlt(GetUnitPower('player', POWERTYPE_ULTIMATE)))
+end
+
 function Azurah:ConfigureUltimateOverlays()
 	if (db.ultValueShow or db.ultPercentShow) then -- showing overlay, enable tracking\
-		EVENT_MANAGER:RegisterForEvent(self.name .. 'Ultimate', EVENT_POWER_UPDATE, OnPowerUpdate)
+		EVENT_MANAGER:RegisterForEvent(self.name .. 'Ultimate', EVENT_POWER_UPDATE, 				OnPowerUpdate)
+		EVENT_MANAGER:RegisterForEvent(self.name .. 'Ultimate', EVENT_ACTIVE_WEAPON_PAIR_CHANGED,	OnWeaponPairChanged)
+
 	else -- no overlay being shown, disable tracking
 		EVENT_MANAGER:UnregisterForEvent(self.name .. 'Ultimate', EVENT_POWER_UPDATE)
+		EVENT_MANAGER:UnregisterForEvent(self.name .. 'Ultimate', EVENT_ACTIVE_WEAPON_PAIR_CHANGED)
 	end

 	local fontStr, value, max, maxEff
@@ -91,6 +99,7 @@ function Azurah:ConfigureActionBarElements()

 	for x = 3, 9 do
 		_G['ActionButton' .. x .. 'ButtonText']:SetAlpha(db.hideBindText and 0 or 1)
+		_G['ActionButton' .. x .. 'ButtonText']:SetHidden(db.hideBindText)
 	end
 end

@@ -111,6 +120,4 @@ function Azurah:InitializeActionBar()

 	-- Fix for scaling issue
 	ActionButton8Decoration:SetAnchor(CENTER, ActionButton8, CENTER, 0, 0)
-
-	self:ConfigureActionBarElements()
 end
diff --git a/Azurah.txt b/Azurah.txt
index 89e7ea5..f2adfa2 100644
--- a/Azurah.txt
+++ b/Azurah.txt
@@ -1,8 +1,8 @@
 ## Title: |c67b1e9A|c4779cezurah|r
 ## Description: Enhances the default interface with additional overlay details and customization options while retaining the stock theme.
-## Version: 2.2.1
+## Version: 2.2.2
 ## Author: Kith, |cEFEBBEGarkin|r, |c66ccffPhinix|r, |c68D2E8Sounomi|r
-## APIVersion: 100013
+## APIVersion: 100014
 ## SavedVariables: AzurahDB
 ## OptionalDependsOn: LibAddonMenu-2.0 LibMediaProvider-1.0

diff --git a/Core.lua b/Core.lua
index af4ad62..e20254b 100644
--- a/Core.lua
+++ b/Core.lua
@@ -5,7 +5,7 @@
 	* stock interface with optional components to provide
 	* additional information while maintaining the stock feel.
 	*
-	* Version 2.2.1
+	* Version 2.2.2
 	* Kith, Garkin, Phinix, Sounomi
 	*
 	*
@@ -15,7 +15,7 @@ local L				= Azurah:GetLocale()

 Azurah.name			= 'Azurah'
 Azurah.slash		= '/azurah'
-Azurah.version		= '2.2.1'
+Azurah.version		= '2.2.2'
 Azurah.versionDB	= 2

 Azurah.movers		= {}
@@ -66,6 +66,7 @@ function Azurah.OnPlayerActivated()
 	Azurah:ConfigureAttributeOverlays()		-- Player.lua
 	Azurah:ConfigureTargetOverlay()			-- Target.lua
 	Azurah:ConfigureBossbarOverlay()		-- Bossbar.lua
+	Azurah:ConfigureActionBarElements()		-- ActionBar.lua
 	Azurah:ConfigureUltimateOverlays()		-- ActionBar.lua
 	Azurah:ConfigureExperienceBarOverlay()	-- ExperienceBar.lua
 	Azurah:ConfigureBagWatcher()			-- BagWatcher.lua