Quantcast WoWInterface - View Single Post - Overlapping NineSlice textures with ButtonFrameTemplate
View Single Post
03-31-20, 08:20 AM   #14
LudiusMaximus
A Chromatic Dragonspawn
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 176
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.

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()...
__________________
~ 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