Commit d26a7cb6 authored by nevcairiel's avatar nevcairiel
Browse files

AceGUI-3.0: Label: Reset Image Size and TexCoords on Acquire (Ticket #110)

git-svn-id: https://repos.wowace.com/wow/ace3/trunk@908 5debad98-a965-4143-8383-f471b3509dcf
parent dee8510f
......@@ -15,13 +15,14 @@ local CreateFrame, UIParent = CreateFrame, UIParent
--------------------------
do
local Type = "Label"
local Version = 11
local Version = 12
local function OnAcquire(self)
self:SetHeight(18)
self:SetWidth(200)
self:SetText("")
self:SetImage(nil)
self:SetImageSize(16, 16)
self:SetColor()
self:SetFontObject()
end
......@@ -96,6 +97,8 @@ do
local n = select('#', ...)
if n == 4 or n == 8 then
image:SetTexCoord(...)
else
image:SetTexCoord(0, 1, 0, 1)
end
else
self.imageshown = nil
......
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