Permalink
Browse files

Fixed derma_controls concommand.

  • Loading branch information...
1 parent 8e2dd3a commit 585ddb0775e375c87fc548d6dfe8caa6981339ff @Bo98 Bo98 committed Feb 27, 2014
@@ -36,13 +36,16 @@ include( "vgui/DTree.lua" )
include( "vgui/DTree_Node.lua" )
include( "vgui/DTree_Node_Button.lua" )
include( "vgui/DExpandButton.lua" )
+include( "vgui/DNumberScratch.lua" )
include( "vgui/DNumSlider.lua" )
include( "vgui/DSlider.lua" )
include( "vgui/DProgress.lua" )
include( "vgui/DCategoryList.lua" )
include( "vgui/DSizeToContents.lua" )
include( "vgui/DIconBrowser.lua" )
include( "vgui/DIconLayout.lua" )
+include( "vgui/DColorButton.lua" )
+include( "vgui/DColorPalette.lua" )
include( "vgui/DColorMixer.lua" )
include( "vgui/DColorCube.lua" )
include( "vgui/DAlphaBar.lua" )
@@ -42,6 +42,12 @@ local PANEL =
// Do nothing!
+ end,
+
+ GenerateExample = function()
+
+ // Do nothing!
+
end
}
@@ -26,6 +26,12 @@ function PANEL:UpdateColours( skin )
end
+function PANEL:GenerateExample()
+
+ // Do nothing!
+
+end
+
derma.DefineControl( "DListViewLabel", "", PANEL, "DLabel" )
local PANEL = {}
@@ -98,7 +98,7 @@ function PANEL:GenerateExample( ClassName, PropertySheet, Width, Height )
local ctrl = pnl:Add( ClassName )
local m = ctrl:AddMenu( "File" )
m:AddOption( "New", function() Msg( "Chose New\n" ) end )
- m:AddOption( "File", function() Msg( "Chose File..\n" ) end )
+ m:AddOption( "File", function() Msg( "Chose File\n" ) end )
m:AddOption( "Exit", function() Msg( "Chose Exit\n" ) end )
local m = ctrl:AddMenu( "Edit" )
m:AddOption( "Copy", function() Msg( "Chose Copy\n" ) end )
@@ -193,6 +193,10 @@ function PANEL:PerformLayout()
end
+function PANEL:GenerateExample()
+ // Do nothing!
+
+end
derma.DefineControl( "DMenuOption", "Menu Option Line", PANEL, "DButton" )
@@ -337,6 +337,14 @@ function PANEL:OnValueChanged() end
PANEL.AllowAutoRefresh = true
+function PANEL:GenerateExample()
+
+ -- The concommand derma_controls currently runs in the menu realm
+ -- DNumberScratch uses the render library which is currently unavailable in this realm
+ -- Therefor we cannot generate an example without spitting errors
+
+end
+
derma.DefineControl( "DNumberScratch", "", PANEL, "DImageButton" )
@@ -131,6 +131,12 @@ function PANEL:DragHoverClick( HoverTime )
end
+function PANEL:GenerateExample()
+
+ // Do nothing!
+
+end
+
derma.DefineControl( "DTab", "A Tab for use on the PropertySheet", PANEL, "DButton" )
--[[ _
@@ -178,7 +178,7 @@ function PANEL:GenerateExample( ClassName, PropertySheet, Width, Height )
end
local cnode = node:AddNode( "Node 2.6" )
local node = ctrl:AddNode( "Node Three ( Maps Folder )" )
- node:MakeFolder( "maps", true )
+ node:MakeFolder( "maps", "GAME" )
local node = ctrl:AddNode( "Node Four" )
@@ -49,4 +49,10 @@ function PANEL:UpdateColours( skin )
end
+function PANEL:GenerateExample()
+
+ // Do nothing!
+
+end
+
derma.DefineControl( "DTree_Node_Button", "Tree Node Button", PANEL, "DButton" )

0 comments on commit 585ddb0

Please sign in to comment.