View Single Post
03-31-20, 03:51 AM   #10
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
May I ask a related follow-up question?

I would like to place a button divider texture in my frame:

Code:
local myFrame = CreateFrame("Frame", "cosFix_SetFactorFrame", UIparent, "ButtonFrameTemplate")
myFrame:SetPoint("TOPLEFT")
ButtonFrameTemplate_HidePortrait(myFrame)
myFrame:SetFrameStrata("HIGH")
myFrame:SetWidth(430)
myFrame:SetHeight(220)

myFrame.exportButton = CreateFrame("Button", nil, f, "UIPanelButtonTemplate")
myFrame.exportButton:SetPoint("TOPRIGHT", -20, 0)
myFrame.exportButton:SetText("Export")
myFrame.exportButton:SetWidth(70)

myFrame.exportButton.btnDivLeft = f.NineSlice:CreateTexture("cosFix_btnDivLeft", "BORDER")
myFrame.exportButton.btnDivLeft:SetPoint("RIGHT", f.exportButton, "LEFT", -10, 0)
myFrame.exportButton.btnDivLeft:SetAtlas("UI-Frame-BtnDivLeft", true)
It should look like this:



But what I get is:



(The -10 offset is there on purpose for testing.)
But how can I get on top of the NineSlice border texture??
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote