Initial commit

This commit is contained in:
2026-03-15 14:54:49 +03:00
commit 64f8029c06
4027 changed files with 254888 additions and 0 deletions

25
lua/vgui/dprogress.lua Normal file
View File

@@ -0,0 +1,25 @@
local PANEL = {}
AccessorFunc( PANEL, "m_fFraction", "Fraction" )
Derma_Hook( PANEL, "Paint", "Paint", "Progress" )
function PANEL:Init()
self:SetMouseInputEnabled( false )
self:SetFraction( 0 )
end
function PANEL:GenerateExample( ClassName, PropertySheet, Width, Height )
local ctrl = vgui.Create( ClassName )
ctrl:SetFraction( 0.6 )
ctrl:SetSize( 300, 20 )
PropertySheet:AddSheet( ClassName, ctrl, nil, true, true )
end
derma.DefineControl( "DProgress", "", PANEL, "Panel" )