Quantcast Rounded corners on backdrops - WoWInterface
Thread Tools Display Modes
10-18-16, 05:43 PM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 126
Rounded corners on backdrops

Hello all!

I've been trying to figure out how to make a frame with bevelled edges, but the backdrop background has corners sticking out. How would I go about getting rid of the corners?

  Reply With Quote
10-18-16, 05:52 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,110
Create the image with the background colour you want or create a second texture for the background and don't set a backdrop.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-18-16, 05:56 PM   #3
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 126
Just to clarify, are you talking about the part with the icon?
  Reply With Quote
10-18-16, 06:54 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,600
If you are using :SetBackdrop(), use insets to hide the corners.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-18-16, 06:56 PM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,110
I thought the border(s)/icon was a single image and you were using a backdrop for the background. What Seerah said.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-18-16, 07:36 PM   #6
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 126
That did it, thanks!
  Reply With Quote
10-18-16, 11:35 PM   #7
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 356
Hi all,

some weird question passing by...

Last time, I tried pretty much all of what I could do to see what differences the insets actually make on :SetBackdrop() function and I honestly could've not figured it out.
(I definitely had bgFile and edgeFile set as well as the size...)

So, could anyone please show me an example of the frame with insets?

Thank you!
  Reply With Quote
10-19-16, 06:12 AM   #8
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Code:
frame:SetBackdrop({
	bgFile = [[Interface\ChatFrame\ChatFrameBackground]],
	edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]],
	edgeSize = 14,
	insets = {left = 4, right = 4, top = 4, bottom = 4},
})
__________________
Grab your sword and fight the Horde!
  Reply With Quote

WoWInterface » Developer Discussions » Graphics Help » Rounded corners on backdrops

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