Originally Posted by Vrul
|
Sorry, but I have absolutely no idea what I am supposed to do with SetDrawLayer!
All I could come up with was this work around.
Code:
local oldX, oldY = 12, 24
local shrinkFactor = 0.83
myFrame.exportButton.btnDivLeft = CreateFrame("Frame", nil, f.exportButton)
myFrame.exportButton.btnDivLeft:SetPoint("RIGHT", f.exportButton, "LEFT", 6, 0)
myFrame.exportButton.btnDivLeft:SetSize(oldX*shrinkFactor, oldY*shrinkFactor)
myFrame.exportButton.btnDivLeft:SetFrameStrata("DIALOG")
local texture = myFrame.exportButton.btnDivLeft:CreateTexture()
texture:SetAllPoints()
texture:SetAtlas("UI-Frame-BtnDivLeft")
But I would still be very interested in learning the mysteries of SetDrawLayer()...