update Ace3

This commit is contained in:
Pinya
2018-07-24 18:46:37 +03:00
parent ec1ad46dd3
commit 11ea55b1a5
11 changed files with 59 additions and 82 deletions
@@ -45,12 +45,14 @@ local methods = {
-- ["OnRelease"] = nil,
["SetHighlight"] = function(self, ...)
self.highlight:SetTexture(unpack(arg))
self.highlight:SetTexture(arg[1], arg[2], arg[3], arg[4])
end,
["SetHighlightTexCoord"] = function(self, ...)
local c = arg.n
if c == 4 or c == 8 then
if c == 4 then
self.highlight:SetTexCoord(arg[1], arg[2], arg[3], arg[4])
elseif c == 8 then
self.highlight:SetTexCoord(unpack(arg))
else
self.highlight:SetTexCoord(0, 1, 0, 1)