/
self.overIcon:SetSize(w, h) |
if ... then |
self.overIcon:SetTexCoord(...) |
end |
end |
end |
]] |
end |
end |
function prototype:SetCooldownFormattedText(pattern, ...) |
-- do nothing, let OmniCC handle it |
-- Do nothing, let OmniCC handle it. |
end |
function prototype:SetCooldownTextShown() |
-- do nothing, let OmniCC handle it |
end |
function prototype:SetHighlighted(highlight) |
self[highlight and "LockHighlight" or "UnlockHighlight"](self) |
end |
end |
end |
function prototype:SetEquipState(inBags, isEquipped) |
if isEquipped then |
self.flash:SetVertexColor(0.1, 0.9, 0.15) |
self.flash:Show() |
elseif inBags then |
self.flash:SetVertexColor(1, 0.9, 0.2) |
self.flash:Show() |
else |
self.flash:Hide() |
end |
end |
local function Reskin() |
for _, button in pairs(buttons) do |
local r, g, b = button.glowTextures[1]:GetVertexColor() |