Quantcast
Overlapping NineSlice textures with ButtonFrameTemplate - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-28-20, 10:05 AM   #1
LudiusMaximus
A Chromatic Dragonspawn
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 194
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Overlapping NineSlice textures with ButtonFrameTemplate

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off