WoWInterface SVN OpenRDX

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/VFL
    from Rev 658 to Rev 663
    Reverse comparison

Rev 658 → Rev 663

UI/FrameClasses/Button.lua
385,19 → 385,26
--obj:SetFrameLevel(parent:GetFrameLevel() + 1);
--end
obj:Show();
local framesup = VFLUI.AcquireFrame("Frame");
framesup:SetParent(obj);
framesup:SetFrameStrata(obj:GetFrameStrata());
framesup:SetFrameLevel(obj:GetFrameLevel() + 2);
framesup:SetAllPoints(obj);
framesup:Show();
obj.framesup = framesup;
 
local _texBackdrop = VFLUI.CreateTexture(obj);
_texBackdrop:SetAllPoints(obj);
_texBackdrop:Hide();
obj._texBackdrop = _texBackdrop;
 
local _texBorder = VFLUI.CreateTexture(obj);
_texBorder:SetAllPoints(obj);
local _texBorder = VFLUI.CreateTexture(framesup);
_texBorder:SetAllPoints(framesup);
_texBorder:Hide();
obj._texBorder = _texBorder;
 
local _texFlash = VFLUI.CreateTexture(obj);
_texFlash:SetAllPoints(obj);
local _texFlash = VFLUI.CreateTexture(framesup);
_texFlash:SetAllPoints(framesup);
_texFlash:Hide();
obj._texFlash = _texFlash;
 
444,12 → 451,12
end
if border and desc.border then
VFLUI.SetTexture(self._texBorder, desc.border);
self._texBorder:SetDrawLayer("ARTWORK", 5);
self._texBorder:SetDrawLayer("ARTWORK", 6);
self._texBorder:Show();
end
if flash and desc.flash then
VFLUI.SetTexture(self._texFlash, desc.flash);
self._texFlash:SetDrawLayer("ARTWORK", 6);
self._texFlash:SetDrawLayer("ARTWORK", 7);
self._texFlash:Show();
end
if normal and desc.normal then
520,6 → 527,7
VFLUI.ReleaseRegion(s._texChecked); s._texChecked = nil;
VFLUI.ReleaseRegion(s._texHighlight); s._texHighlight = nil;
VFLUI.ReleaseRegion(s._texGloss); s._texGloss = nil;
s.framesup:Destroy(); s.framesup = nil;
end, obj.Destroy);
 
return obj;