• Gradient RoundedBox
    5 replies, posted
I was wondering how you can make a RoundedBox have a gradient background? Need this for my scoreboard :P Hope someone can help, as i got no idea.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/surface/DrawTexturedRect]surface.DrawTexturedRect[/url] The material for gradient is gui/gradient.
To get the rounded box shape I suggest using the rounded box function on a stencil then using the above mentioned function and material.
Thanks :) I will try
[QUOTE=James xX;49033054]To get the rounded box shape I suggest using the rounded box function on a stencil then using the above mentioned function and material.[/QUOTE] pretty sure that doesnt work, the rounded box draws a few textures for the rounded edges
[url]https://facepunch.com/threads/showthread.php?t=1051898[/url] Plus some magic maths so it "crop" the corners.
Sorry, you need to Log In to post a reply to this thread.