Hi, I'm quite new to LUA gui and am wondering how to make a line thicker than default.
[CODE]surface.DrawLine(10,h/2,1+surface.GetTextSize(v:Nick()) + 20,h/2)[/CODE]
That code draws a red line on the player's name in my custom scoreboard. I'm wondering how would I make that line thicker so it is more visible?
Sorry for the dumb question.
Thanks
seeing as it's a straight line, you could probably just use surface.DrawRect
[del]If it wasn't a straight line you could potentially loop and draw multiple lines on top of each other.[/del]
use bobbleheadbob's method
[url]http://www.glua.me/search/?keywords=surface.DrawTexturedRectRotated[/url]
That's good for almost any line.
Draw many lines. :D
(Just one pixel away 'like x+1')
Thanks guys. I'll test these now.
Sorry, you need to Log In to post a reply to this thread.