Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/array.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Array", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Array", PANEL, "tanktracktoolEditor_Generic" )

Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ function PANEL:Setup( editData )
self:GetRow().nonvar = true
end

derma.DefineControl( "tanktracktoolEditor_Bitfield", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Bitfield", PANEL, "tanktracktoolEditor_Generic" )
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Checkbox", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Checkbox", PANEL, "tanktracktoolEditor_Generic" )
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Color", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Color", PANEL, "tanktracktoolEditor_Generic" )
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/combo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,5 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Combo", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Combo", PANEL, "tanktracktoolEditor_Generic" )

2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/generic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Generic", "", PANEL, "Panel" )
vgui.Register( "tanktracktoolEditor_Generic", PANEL, "Panel" )

Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ end



derma.DefineControl( "tanktracktoolEditor_Instance", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Instance", PANEL, "tanktracktoolEditor_Generic" )
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/number.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Number", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Number", PANEL, "tanktracktoolEditor_Generic" )
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/controls/vector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ function PANEL:Setup( editData )
end
end

derma.DefineControl( "tanktracktoolEditor_Vector", "", PANEL, "tanktracktoolEditor_Generic" )
vgui.Register( "tanktracktoolEditor_Vector", PANEL, "tanktracktoolEditor_Generic" )
10 changes: 1 addition & 9 deletions lua/tanktracktool/client/derma/editor/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ tanktracktool.render.overlay = cv_overlay:GetBool()
]]

local PANEL = {}
PANEL.AllowAutoRefresh = true

function PANEL:GetEditorSkin()
return editor.skin
Expand All @@ -84,13 +83,6 @@ end
function PANEL:OnWindowStopDragging()
end

function PANEL:PreAutoRefresh()
end

function PANEL:PostAutoRefresh()
self:RebuildControls()
end

function PANEL:Init()
self:DockMargin( 0, 3, 0, 3 )
self.RootNode:DockMargin( 0, 0, 0, 0 )
Expand Down Expand Up @@ -394,4 +386,4 @@ function PANEL:WindowStopDragging()
self:OnWindowStopDragging()
end

derma.DefineControl( "tanktracktoolEditor", "", PANEL, "DTree" )
vgui.Register( "tanktracktoolEditor", PANEL, "DTree" )
2 changes: 1 addition & 1 deletion lua/tanktracktool/client/derma/editor/node.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ function PANEL:Setup( editData )
self.Inner.m_Editor = self.m_Editor
end

derma.DefineControl( "tanktracktoolEditor_Node", "", PANEL, "DTree_Node" )
vgui.Register( "tanktracktoolEditor_Node", PANEL, "DTree_Node" )
4 changes: 2 additions & 2 deletions lua/tanktracktool/client/derma/editor/node_category.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function PANEL:Paint( w, h )
end

function PANEL:AddNode( strName )
local pNode = tanktracktoolEditor_Node.AddNode( self, strName )
local pNode = vgui.GetControlTable( "tanktracktoolEditor_Node" ).AddNode( self, strName )

if not self.pNodeFirst then
self.pNodeFirst = pNode
Expand All @@ -62,4 +62,4 @@ function PANEL:OnNodeAdded( pNode )
self:GetRoot():OnNodeAdded( pNode )
end

derma.DefineControl( "tanktracktoolEditor_Category", "", PANEL, "DTree_Node" )
vgui.Register( "tanktracktoolEditor_Category", PANEL, "DTree_Node" )