getn(arg) -> arg.n

This commit is contained in:
Pinya
2018-07-22 16:20:16 +03:00
parent c3fa66a47d
commit 28ac998564
15 changed files with 33 additions and 38 deletions
@@ -7,7 +7,6 @@ if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
-- Lua APIs
local pairs, print, unpack = pairs, print, unpack
local getn = table.getn
-- WoW APIs
local CreateFrame, UIParent = CreateFrame, UIParent
@@ -59,7 +58,7 @@ local methods = {
image:SetTexture(path)
if image:GetTexture() then
local n = getn(arg)
local n = arg.n
if n == 4 or n == 8 then
image:SetTexCoord(unpack(arg))
else