DPropertySheet

From GMod Wiki

Jump to: navigation, search
Derma Control: DPropertySheet
Parent Class:Panel
Subclasses:
Description:
A control with tabs.

Examples

DescriptionCreates tabs so you can have multiple tabs in one frame with many items in them. Mainly used for organization.
Used onNewerClient.png
Code
 
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50, 50 )
DermaPanel:SetSize( 350, 400 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
 
local PropertySheet = vgui.Create( "DPropertySheet", DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )
 
local SheetItemOne = vgui.Create( "DCheckBoxLabel" )
SheetItemOne:SetText( "Use Props?" )
SheetItemOne:SetConVar( "some_convar" )
SheetItemOne:SetValue( 1 )
SheetItemOne:SizeToContents()
 
local SheetItemTwo = vgui.Create( "DCheckBoxLabel" , CategoryContentTwo )
SheetItemTwo:SetText( "Use SENTs?" )
SheetItemTwo:SetConVar( "some_convar" )
SheetItemTwo:SetValue( 1 )
SheetItemTwo:SizeToContents()
 
PropertySheet:AddSheet( "Some Menu", SheetItemOne, "gui/silkicons/user", 
false, false, "WOW It's a text box!!!" )
PropertySheet:AddSheet( "Super Menu", SheetItemTwo, "gui/silkicons/group", 
false, false, "Can I haz meh cheezburger now?" )
 
OutputDPropertySheet.PNG


Methods

NewerClient.png DPropertySheet.AddSheet
NewerClient.png DPropertySheet.CrossFade
NewerClient.png DPropertySheet.GetActiveTab
NewerClient.png DPropertySheet.GetDrawBackground
NewerClient.png DPropertySheet.GetFadeTime
NewerClient.png DPropertySheet.GetPadding
NewerClient.png DPropertySheet.GetShowIcons
NewerClient.png DPropertySheet.Init
NewerClient.png DPropertySheet.Paint
NewerClient.png DPropertySheet.PerformLayout
NewerClient.png DPropertySheet.SetActiveTab
NewerClient.png DPropertySheet.SetDrawBackground
NewerClient.png DPropertySheet.SetFadeTime
NewerClient.png DPropertySheet.SetPadding
NewerClient.png DPropertySheet.SetShowIcons
NewerClient.png DPropertySheet.SizeToContentWidth
NewerClient.png DPropertySheet.Think

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox