I know this isn’t much of a release, but i personally think this is very useful for people who don’t know how to do this.
function:
[lua]
function draw.OutlinedRoundedBox(Bordersize, x, y, Width, Height, color, outlinew, outlinec)
for _x=-1, 1 do
for _y=-1, 1 do
draw.RoundedBox(Bordersize, x + (_xoutlinew), y + (_youtlinew), Width, Height, outlinec)
end
end
draw.RoundedBox(Bordersize, x, y, Width, Height, color)
end
[/lua]
and to use it. something like this
[lua]
draw.OutlinedRoundedBox(4, 0, 0, 300, 100, Color( 200,200,255,255), 2, Color(50,50,50,255))
[/lua]
This will produce something like this background:
I also made a similar function to make health bars:
[lua]
function draw.PlayerBar(Bordersize, x, y, Width, Height, color, outlinew, outlinec, BGW, BGH)
for _x=-1, 1 do
for _y=-1, 1 do
draw.RoundedBox(Bordersize, x + (_xoutlinew), y + (_youtlinew), BGW, BGH, outlinec)
end
end
draw.RoundedBox(Bordersize, x, y, Width +4, Height + 3, color)
end
[/lua]
[lua]
local health = LocalPlayer():Health()
draw.PlayerBar(4, x +4,y + 4, health * 2.88, 21, Color( 170,0,0,255), 2, Color(50,50,50,255), 292,25)
[/lua]
Will make the health bar in the screenshot.
PS:I didn’t intend for my name to be dave brown :), that is my family members name, just for a test
Thanks for reading