Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PANEL = { }
- function PANEL:Init( )
- self:AddCategory( "Props", "application_view_detail.vmf", "PropPanel", list.Get( LIST_PROPS ) )
- self:AddCategory( "Weapons", "bomb.vtf", "WeaponPanel", list.Get( LIST_WEAPONS ) )
- self:AddCategory( "Powerups", "star.vtf", "PowerupPanel", list.Get( LIST_POWERUPS ) )
- self:AddCategiry( "Player Model", "star.vtf", "PlayerPanel", list.Get( LIST_PlAYER ) )
- end
- function PANEL:AddCategory( name, icon, class, contents )
- icon = "gui/silkicons/"..icon
- local category = vgui.Create( class, self )
- for k, v in ipairs( contents ) do
- category:AddModel( v )
- end
- self:AddSheet( name, category, icon )
- end
- vgui.Register( "BuyMenu", PANEL, "DPropertySheet" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement