Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Gradient rounded box //
- local gradMat = Material( "gui/gradient_up" )
- local function GradientRoundedBox( x,y, w,h, col )
- render.SetScissorRect( x, y+(h*0.05), x+w, y+h, true )
- draw.RoundedBox( 4, x,y, w,h, col )
- render.SetScissorRect( 0,0,0,0, false )
- surface.SetDrawColor( col )
- surface.SetMaterial( gradMat )
- surface.DrawTexturedRect( x,y, w, (h*0.05) )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement