Update to match core
p3lim-52096 [11-02-08 - 01:18]
Update to match core
git-svn-id: svn://svn.wowinterface.com/pMinimap-54/trunk@47 ae24c21f-2f0c-4c94-9256-0092abe71e0d
diff --git a/pMinimap_Durability/pMinimap_Durability.lua b/pMinimap_Durability/pMinimap_Durability.lua
index d9888d8..8d821f3 100644
--- a/pMinimap_Durability/pMinimap_Durability.lua
+++ b/pMinimap_Durability/pMinimap_Durability.lua
@@ -1 +1 @@
-function pMinimap.UPDATE_INVENTORY_ALERTS()
local db = pMinimapDB or {colors = {0, 0, 0, 1}}
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(db.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(pMinimapDB2))
end
end
pMinimap:RegisterEvent('UPDATE_INVENTORY_ALERTS')
pMinimap.UPDATE_INVENTORY_ALERTS()
DurabilityFrame:SetAlpha(0)
\ No newline at end of file