All pastes #730331 Raw Edit

Something

public text v1 · immutable
·published 2007-10-09 03:28 UTC
rendered paste body
/*

	Generated By:  VisualHUD
	v1.0.0.0
	Euphoric Software
	http://euphoracle.bounceme.net/blog/

*/
surface.CreateFont( "Arial", 14, 400, true, true, "Arial_8_400_normal_italic" )
local VGUI_steam_games_icon_hl2 = surface.GetTextureID( "VGUI/steam/games/icon_hl2" )
surface.CreateFont( "Tahoma", 14, 400, true, false, "Tahoma_8_400_normal" )

local function paintMyHud( )

	surface.SetDrawColor( 50, 50, 50, 180 )
	surface.DrawRect( ScrW( ) / 1280, ScrH( ) / 800, ScrW( ) / 1.002, ScrH( ) / 40 )

	surface.SetDrawColor( 0, 0, 0, 255 )
	surface.DrawOutlinedRect( 0, 0, ScrW( ) / 1.001, ScrH( ) / 38.095 )

	surface.SetDrawColor( 55, 55, 55, 180 )
	surface.DrawRect( ScrW( ) / 1280, ScrH( ) / 36.364, ScrW( ) / 5, ScrH( ) / 6.25 )

	surface.SetDrawColor( 0, 0, 0, 255 )
	surface.DrawOutlinedRect( 0, ScrH( ) / 38.095, ScrW( ) / 5, ScrH( ) / 6.25 )

	surface.SetDrawColor( 55, 55, 55, 180 )
	surface.DrawRect( ScrW( ) / 4.981, ScrH( ) / 36.364, ScrW( ) / 2, ScrH( ) / 40 )

	surface.SetDrawColor( 0, 0, 0, 255 )
	surface.DrawOutlinedRect( ScrW( ) / 5, ScrH( ) / 38.095, ScrW( ) / 2, ScrH( ) / 40 )

	surface.SetTextColor( 255, 255, 255, 255 )
	surface.SetTextPos( ScrW( ) / 640, ScrH( ) / 33.333 )
	surface.SetFont( "Arial_8_400_normal_italic" )
	surface.DrawText( "Chat will go HERE" )

	surface.SetDrawColor( 55, 55, 55, 180 )
	surface.DrawRect( ScrW( ) / 1.427, ScrH( ) / 36.364, ScrW( ) / 10, ScrH( ) / 6.25 )

	surface.SetDrawColor( 0, 0, 0, 255 )
	surface.DrawOutlinedRect( ScrW( ) / 1.429, ScrH( ) / 38.095, ScrW( ) / 10, ScrH( ) / 6.25 )

	surface.SetTexture( VGUI_steam_games_icon_hl2 )
	surface.DrawTexturedRect( ScrW( ) / 1.425, ScrH( ) / 33.333, ScrW( ) / 10.159, ScrH( ) / 8.333 )

	surface.SetDrawColor( 255, 255, 255, 180 )
	surface.DrawOutlinedRect( ScrW( ) / 1.427, ScrH( ) / 36.364, ScrW( ) / 10.159, ScrH( ) / 8.247 )

	surface.SetTextColor( 255, 255, 255, 255 )
	surface.SetTextPos( ScrW( ) / 1.424, ScrH( ) / 6.452 )
	surface.SetFont( "Tahoma_8_400_normal" )
	surface.DrawText( "First Name" )

	surface.SetTextColor( 255, 255, 255, 255 )
	surface.SetTextPos( ScrW( ) / 1.424, ScrH( ) / 5.97 )
	surface.SetFont( "Tahoma_8_400_normal" )
	surface.DrawText( "Last Name" )

	surface.SetTextColor( 255, 255, 255, 255 )
	surface.SetTextPos( ScrW( ) / 1280, ScrH( ) / 200 )
	surface.SetFont( "Arial_8_400_normal_italic" )
	surface.DrawText( "-----Player Information-----" )

	surface.SetTextColor( 255, 255, 255, 255 )
	surface.SetTextPos( ScrW( ) / 4.961, ScrH( ) / 32 )
	surface.SetFont( "Arial_8_400_normal_italic" )
	surface.DrawText( "Advert Ticker......." )

end
hook.Add( "HUDPaint", "myHud", paintMyHud )