Advertisement
my_hat_stinks

Untitled

Jun 18th, 2014
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. // Gradient rounded box //
  2. local gradMat = Material( "gui/gradient_up" )
  3. local function GradientRoundedBox( x,y, w,h, col )
  4.     render.SetScissorRect( x, y+(h*0.05), x+w, y+h, true )
  5.         draw.RoundedBox( 4, x,y, w,h, col )
  6.     render.SetScissorRect( 0,0,0,0, false )
  7.    
  8.     surface.SetDrawColor( col )
  9.     surface.SetMaterial( gradMat )
  10.     surface.DrawTexturedRect( x,y, w, (h*0.05) )
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement