Discord
Steam
/
Garry's Mod
/
Developers
/
DPropertySheet
Login/Join
Event Log
DPropertySheet
0 replies, posted
Search
In This Thread
Im currently using a DPorpertySheet and I'm trying to make it when you click the Commands tab it makes a DCategoryList I tried to add the code for it below the sheet:AddSheet but it didn't wor my code if it helps: [CODE] local frame = vgui.Create( "DFrame" ) frame:SetSize( 800, 900 ) frame:Center() frame:SetTitle("Main Menu") frame:SetVisible(true) frame:SetDraggable(true) frame:SetBackgroundBlur(true) frame:MakePopup() local sheet = vgui.Create( "DPropertySheet", frame ) sheet:Dock( FILL ) local CatList = vgui.Create( "DCategoryList", frame ) CatList:Dock( FILL ) local panel1 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Commands", panel1, "icon16/cog.png" ) panel1.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel2 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Jobs", panel2, "icon16/user.png" ) panel2.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel3 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Market", panel3, "icon16/cart.png" ) panel3.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel4 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Inventory", panel4, "icon16/application_view_tile.png" ) panel4.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel5 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Crafting", panel5, "icon16/wrench.png" ) panel5.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel6 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Party", panel6, "icon16/group.png" ) panel6.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end local panel7 = vgui.Create( "DPanel", sheet ) sheet:AddSheet( "Options", panel7, "icon16/table_edit.png" ) panel7.Paint = function( self, w, h ) draw.RoundedBox( 0, 0, 0, w, h, Color( 140, 144, 145, self:GetAlpha() ) ) end [/CODE]
Sorry, you need to
Log In
to post a reply to this thread.