• problem with derma
    4 replies, posted
so me and a friend are making a admin menu where u can config stuff with out breaking the gamemode but the problem is when using DCollapsibleCategory it wont open all the way or when you click on the tab it will look as a tab but click on it again it wont open at all and no clue why [CODE]local PlayerMangCollapsibleCategory = vgui.Create("DCollapsibleCategory") PlayerMangCollapsibleCategory:SetSize(690,50) PlayerMangCollapsibleCategory:SetExpanded(0) PlayerMangCollapsibleCategory:SetLabel("Player Manager")[/CODE] very simple as it but still dont work please help
The thing where it disappears is a bug in Gmod atm. Works on dev branch tho
so what would i use for now ??
1. Make your own 2. Look at how DarkRP F4 menu does by default as that works just fine in the current patch
there ? look at that and add on. local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50, 50 ) DermaPanel:SetSize( 310, 340 ) DermaPanel:SetTitle( "Test" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:ShowCloseButton( true ) DermaPanel:MakePopup() local DCollapsible = vgui.Create( "DCollapsibleCategory", DermaPanel ) DCollapsible:SetPos( 25, 50 ) DCollapsible:SetSize( 250, 100 ) DCollapsible:SetExpanded( 0 ) DCollapsible:SetLabel( "Collapsible Category" ) local DermaList = vgui.Create( "DPanelList", DermaPanel ) DermaList:SetSpacing( 5 ) DermaList:EnableHorizontal( false ) DermaList:EnableVerticalScrollbar( true ) DCollapsible:SetContents( DermaList ) local CategoryContentOne = vgui.Create( "DCheckBoxLabel" ) CategoryContentOne:SetText( "God mode" ) CategoryContentOne:SetConVar( "sbox_godmode" ) CategoryContentOne:SetValue( 0 ) CategoryContentOne:SizeToContents() DermaList:AddItem( CategoryContentOne )
Sorry, you need to Log In to post a reply to this thread.