Added variables handler
p3lim-52096 [11-12-08 - 17:15]
Added variables handler
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@64 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap_Durability/pMinimap_Durability.lua b/pMinimap_Durability/pMinimap_Durability.lua
index 61cd994..dbe6b5b 100644
--- a/pMinimap_Durability/pMinimap_Durability.lua
+++ b/pMinimap_Durability/pMinimap_Durability.lua
@@ -1 +1 @@
-function pMinimap:UPDATE_INVENTORY_ALERTS()
local maxStatus = 0
for id in pairs(INVENTORY_ALERT_STATUS_SLOTS) do
local status = GetInventoryAlertStatus(id)
if(status > maxStatus) then
maxStatus = status
end
end
local color = INVENTORY_ALERT_COLORS[maxStatus]
if(color) then
Minimap:SetBackdropColor(color.r, color.g, color.b)
else
Minimap:SetBackdropColor(unpack(pMinimapDB2.colors))
end
end
pMinimap:RegisterEvent('UPDATE_INVENTORY_ALERTS')
pMinimap.UPDATE_INVENTORY_ALERTS()
DurabilityFrame:SetAlpha(0)
\ No newline at end of file
+function pMinimap:UPDATE_INVENTORY_ALERTS()
local maxStatus = 0
for id in pairs(INVENTORY_ALERT_STATUS_SLOTS) do
local status = GetInventoryAlertStatus(id)
if(status > maxStatus) then
maxStatus = status
end
end
local color = INVENTORY_ALERT_COLORS[maxStatus]
if(color) then
Minimap:SetBackdropColor(color.r, color.g, color.b)
else
Minimap:SetBackdropColor(unpack(pMinimapDB.colors))
end
end
pMinimap:RegisterEvent('UPDATE_INVENTORY_ALERTS')
pMinimap.UPDATE_INVENTORY_ALERTS()
DurabilityFrame:SetAlpha(0)
\ No newline at end of file