Commit d717ba1c authored by nevcairiel's avatar nevcairiel
Browse files

AceGUI-3.0: Minor cleanups

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@936 5debad98-a965-4143-8383-f471b3509dcf
parent b3731753
......@@ -58,7 +58,7 @@ local methods = {
image:SetTexture(path)
if image:GetTexture() then
local n = select('#', ...)
local n = select("#", ...)
if n == 4 or n == 8 then
image:SetTexCoord(...)
else
......@@ -96,7 +96,7 @@ local methods = {
Constructor
-------------------------------------------------------------------------------]]
local function Constructor()
local frame = CreateFrame("Button",nil,UIParent)
local frame = CreateFrame("Button", nil, UIParent)
frame:Hide()
frame:EnableMouse(true)
......
......@@ -6,7 +6,7 @@ local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
-- Lua APIs
local select, max, pairs = select, math.max, pairs
local select, pairs = select, pairs
-- WoW APIs
local CreateFrame, UIParent = CreateFrame, UIParent
......
......@@ -69,7 +69,7 @@ local methods = {
self.resizing = true
-- height is set dynamically by the text and image size
self:SetWidth(200)
self:SetText("")
self:SetText()
self:SetImage(nil)
self:SetImageSize(16, 16)
self:SetColor()
......@@ -88,7 +88,7 @@ local methods = {
end,
["SetText"] = function(self, text)
self.label:SetText(text or "")
self.label:SetText(text)
UpdateImageAnchor(self)
end,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment