WoWInterface - View Single Post - Overlapping NineSlice textures with ButtonFrameTemplate
View Single Post
03-31-20, 08:20 AM   #14
A Cobalt Mageweaver
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 219
Originally Posted by Vrul View Post
The region method SetDrawLayer is what you want to use.
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.

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)
local texture = myFrame.exportButton.btnDivLeft:CreateTexture()
But I would still be very interested in learning the mysteries of SetDrawLayer()...
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 03-31-20 at 08:23 AM.
  Reply With Quote