7.0.3 compatibility fixes
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user