View Single Post
03-28-20, 10:05 AM   #1
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Overlapping NineSlice textures with ButtonFrameTemplate

I am using ButtonFrameTemplate for a frame.
But as my frame has a low height I get overlapping NineSlice textures resulting in the frame shaddows adding up.



Lua Code:
  1. local myFrame = CreateFrame("Frame", "myFrame", UIparent, "ButtonFrameTemplate")
  2. myFrame:SetPoint("TOPLEFT")
  3. ButtonFrameTemplate_HidePortrait(myFrame)
  4. myFrame:SetFrameStrata("HIGH")
  5. myFrame:SetWidth(430)
  6. myFrame:SetHeight(220)
  7.  
  8. myFrame.NineSlice.LeftEdge:Hide()
  9. myFrame.NineSlice.RightEdge:Hide()

As you can see, I already removed NineSlice.LeftEdge and NineSlice.RightEdge but is it possible to crop the NineSlice corner textures somehow?

Or is there another solution like using the templates differently?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote