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 = { ...@@ -58,7 +58,7 @@ local methods = {
image:SetTexture(path) image:SetTexture(path)
if image:GetTexture() then if image:GetTexture() then
local n = select('#', ...) local n = select("#", ...)
if n == 4 or n == 8 then if n == 4 or n == 8 then
image:SetTexCoord(...) image:SetTexCoord(...)
else else
...@@ -96,7 +96,7 @@ local methods = { ...@@ -96,7 +96,7 @@ local methods = {
Constructor Constructor
-------------------------------------------------------------------------------]] -------------------------------------------------------------------------------]]
local function Constructor() local function Constructor()
local frame = CreateFrame("Button",nil,UIParent) local frame = CreateFrame("Button", nil, UIParent)
frame:Hide() frame:Hide()
frame:EnableMouse(true) frame:EnableMouse(true)
......
...@@ -6,7 +6,7 @@ local AceGUI = LibStub and LibStub("AceGUI-3.0", 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 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
-- Lua APIs -- Lua APIs
local select, max, pairs = select, math.max, pairs local select, pairs = select, pairs
-- WoW APIs -- WoW APIs
local CreateFrame, UIParent = CreateFrame, UIParent local CreateFrame, UIParent = CreateFrame, UIParent
......
...@@ -69,7 +69,7 @@ local methods = { ...@@ -69,7 +69,7 @@ local methods = {
self.resizing = true self.resizing = true
-- height is set dynamically by the text and image size -- height is set dynamically by the text and image size
self:SetWidth(200) self:SetWidth(200)
self:SetText("") self:SetText()
self:SetImage(nil) self:SetImage(nil)
self:SetImageSize(16, 16) self:SetImageSize(16, 16)
self:SetColor() self:SetColor()
...@@ -88,7 +88,7 @@ local methods = { ...@@ -88,7 +88,7 @@ local methods = {
end, end,
["SetText"] = function(self, text) ["SetText"] = function(self, text)
self.label:SetText(text or "") self.label:SetText(text)
UpdateImageAnchor(self) UpdateImageAnchor(self)
end, 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