WoWInterface - View Single Post - Overlapping NineSlice textures with ButtonFrameTemplate
View Single Post
03-31-20, 07:44 AM   #13
A Cobalt Mageweaver
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 219
Actually, I am getting very indeterministic results...

As I am trying to find the right offset and size it is sometimes drawn on top and sometimes drawn below the NineSlice border...

myFrame.exportButton.btnDivLeft = myFrame.NineSlice:CreateTexture("cosFix_btnDivLeft", "BORDER")
myFrame.exportButton.btnDivLeft:SetPoint("RIGHT", myFrame.exportButton, "LEFT", 5, 0)
myFrame.exportButton.btnDivLeft:SetAtlas("UI-Frame-BtnDivLeft", true)
local oldX, oldY = myFrame.exportButton.btnDivLeft:GetSize()
local shrinkFactor = 0.854
myFrame.exportButton.btnDivLeft:SetSize(oldX*shrinkFactor, oldY*shrinkFactor)
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote