• [Take My Money] Make me a hud.
    12 replies, posted
I need a hud for my server, it goes in the top left corner and I need it to look nice, here are some pics of what it is right now. Here is my source code for the hud how it is. [code][lua] local boxw = 30 local boxh = 30 local boxc = Color( 100, 100, 100, 150 ) local ttpw = boxw + 50 local ttph = boxh + 10 local ttpc = Color( 255, 255, 255, 255 ) local txts = surface.GetTextSize( tostring( Points ) ) * 0.01 local ttrw = ttpw - txts local ttrh = ttph + 16 local ttrc = ttpc hook.Add( "HUDPaint", "PointsHUD", function( ) draw.RoundedBox( 0, boxw, boxh, 100, 40, boxc ) draw.SimpleText( "Money:", "ScoreboardText", ttpw, ttph, ttpc, 1, 1 ) draw.SimpleText( PointMod.Points, "ScoreboardText", ttrw, ttrh, ttrc, 1, 1 ) surface.SetDrawColor( ttpc ) surface.DrawOutlinedRect( boxw, boxh, 99, 39 ) end ) [/lua] [/code] [img]http://i.imgur.com/Gl3To.png[/img] I would just really like to see someone make it better, it looks really ugly right now lol... I will pay $2 via PayPal gift. - Thanks - Doodie -
It looks fine to me. If you want it to look any better you'll have to give us an idea of how you want it to look.
I would like it to look like this: [img]http://i.imgur.com/IQqcR.png[/img] But instead of "Health" I want "Money" I have had 3 lua coders bail on me so I want to get this done lol...
[QUOTE=michael bombrp;29415350]I would like it to look like this: [img_thumb]http://i.imgur.com/IQqcR.png[/img_thumb] But instead of "Health" I want "Money" I have had 3 lua coders bail on me so I want to get this done lol...[/QUOTE] I'll see if I can whip something up real quick.
Okay, Thank you so much!
Okay, I'm a Lua newbie. I took this as a practice challenge and I failed miserably. Sorry. It's late here, and I need to sleep.
Okay lol, thanks for trying :D
You'll need to use an VTF I believe to have that exact hud, I'm horrible with derma and huds so... sorry :(
Done, [img]http://dl.dropbox.com/u/15075155/Namnl%C3%B6s.jpg[/img] Give me a hint on steam when you see this.
[QUOTE=Donkie;29419683]Done, [img_thumb]http://dl.dropbox.com/u/15075155/Namnl%C3%B6s.jpg[/img_thumb] Give me a hint on steam when you see this.[/QUOTE] $5 says it dosent auto size.
[QUOTE=zzaacckk;29420050]$5 says it dosent auto size.[/QUOTE] Give me my 5 [img]http://dl.dropbox.com/u/15075155/Namnl%C3%B6s%20%282%29.jpg[/img]
If it had auto-sized the padding would have stayed the same.
Awesome dude, add me on Steam: doodieredd I will give ya 2 bucks.
Sorry, you need to Log In to post a reply to this thread.