So might I suggest something completely horrible to work around the lack of cooldown:GetSwipeColor? I've not actually tested this at all.
Lua Code:
do
local mt = getmetatable(_G['ActionButton1Cooldown']).__index
if not mt.GetSwipeColor then
local swipeColors = setmetatable({}, {
__index = function(t, cooldown)
local color = t[cooldown]
if not color then
color = { r = 0, g = 0, b = 0, a = 1 }
t[cooldown] = color
end
return color
end
})
mt.GetSwipeColor = function(self)
local color = swipeColors[self]
return color.r, color.g, color.b, color.a
end
hooksecurefunc(mt, 'SetSwipeColor', function(self, r, g, b, a)
local color = swipeColors[self]
color.r = r
color.g = g
color.b = b
color.a = a
end)
end
end