Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pos_x, pos_y = 0, 0
- local subpanels = {}
- local col = Color( 200, 200, 200, 240 )
- local space = 8
- for i = 0, 30 do
- local p = vgui.Create( "DPanel" )
- p:SetSize( 32, 32 )
- p:SetPos( pos_x, pos_y )
- p:SetBackgroundColor( col )
- pos_x = pos_x + space
- if pos_x > 3 * space then
- pos_x = 0
- pos_y = pos_y + space
- end
- table.insert( subpanels, p )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement