7.0.3 compatibility fixes

This commit is contained in:
Sandor Takacs
2016-07-19 22:36:49 +02:00
parent 152d61d84f
commit 7e13a47e52
2 changed files with 2 additions and 2 deletions

View File

@ -1465,7 +1465,7 @@ function MyBagsCore:LayoutBagFrame(bagFrame)
if self.isLive then if self.isLive then
local start, duration, enable = GetContainerItemCooldown(bagFrame:GetID(), slot) local start, duration, enable = GetContainerItemCooldown(bagFrame:GetID(), slot)
local cooldown = _G[itemButton:GetName() .. "Cooldown"] local cooldown = _G[itemButton:GetName() .. "Cooldown"]
CooldownFrame_SetTimer(cooldown, start, duration, enable) CooldownFrame_Set(cooldown, start, duration, enable)
if duration > 0 and enable == 0 then if duration > 0 and enable == 0 then
SetItemButtonTextureVertexColor(itemButton, 0.4, 0.4, 0.4) SetItemButtonTextureVertexColor(itemButton, 0.4, 0.4, 0.4)
end end

View File

@ -552,7 +552,7 @@ function MyEquipment:LayoutEquipmentFrame(self)
if self.isLive then if self.isLive then
local start,duration, enable = GetInventoryItemCooldown("player", slot) local start,duration, enable = GetInventoryItemCooldown("player", slot)
local cooldown = _G[itemButton:GetName() .. "Cooldown"] local cooldown = _G[itemButton:GetName() .. "Cooldown"]
CooldownFrame_SetTimer(cooldown,start,duration,enable) CooldownFrame_Set(cooldown,start,duration,enable)
if duration>0 and enable==0 then if duration>0 and enable==0 then
SetItemButtonTextureVertexColor(itemButton, 0.4,0.4,0.4) SetItemButtonTextureVertexColor(itemButton, 0.4,0.4,0.4)
end end