Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local hide = {
- CHudHealth = true,
- CHudBattery = true,
- }
- hook.Add("HUDShouldShow","GarboHUDInit",function(name)
- if ( hide[ name ] ) then return false end
- end)
- hook.Add( "HUDPaint", "HUDPaint_DrawABox", function()
- local GarboBoxSize = 128*1.25
- draw.RoundedBox( 0, (ScrW()/40), ScrH()-ScreenScale(GarboBoxSize/1.75), ScreenScale(GarboBoxSize), GarboBoxSize, Color( 0, 0, 0, 128 ) )
- surface.CreateFont("TrashFont", {
- font = "Helvetica", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
- extended = false,
- size = 24,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = true,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = true,
- additive = false,
- outline = false,
- } )
- --Shadow
- surface.SetFont("TrashFont")
- surface.SetTextColor( 0, 142/2, 0, 255)
- surface.SetTextPos( (ScrW()/40)*2-2, ScrH()-ScreenScale(GarboBoxSize/1.75)+24+2 )
- surface.DrawText("Health: ")
- --Main Text
- surface.SetFont("TrashFont")
- surface.SetTextColor( 0, 142, 0, 255)
- surface.SetTextPos( (ScrW()/40)*2, ScrH()-ScreenScale(GarboBoxSize/1.75)+24 )
- surface.DrawText("Health: ")
- --Shadow
- surface.SetFont("TrashFont")
- surface.SetTextColor( 0, 0, 142/2, 255)
- surface.SetTextPos( (ScrW()/40)*2-2, ScrH()-ScreenScale(GarboBoxSize/1.75)+24*3+2 )
- surface.DrawText("Armor: ")
- --Main Text
- surface.SetFont("TrashFont")
- surface.SetTextColor( 0, 0, 142, 255)
- surface.SetTextPos( (ScrW()/40)*2, ScrH()-ScreenScale(GarboBoxSize/1.75)+24*3 )
- surface.DrawText("Armor: ")
- local TexturedQuadStructure = {
- texture = surface.GetTextureID( 'models/props_combine/tprings_globe' ),
- color = Color( 255, 0, 255, 255 ),
- x = (ScrW()/40)/2+50,
- y = ScrH()-ScreenScale(GarboBoxSize/1.75)+24*3,
- w = 128,
- h = 128/10
- }
- draw.TexturedQuad( TexturedQuadStructure )
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement