Initial commit
This commit is contained in:
20
lua/vgui/dscrollbargrip.lua
Normal file
20
lua/vgui/dscrollbargrip.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
local PANEL = {}
|
||||
|
||||
function PANEL:Init()
|
||||
end
|
||||
|
||||
function PANEL:OnMousePressed()
|
||||
|
||||
self:GetParent():Grip( 1 )
|
||||
|
||||
end
|
||||
|
||||
function PANEL:Paint( w, h )
|
||||
|
||||
derma.SkinHook( "Paint", "ScrollBarGrip", self, w, h )
|
||||
return true
|
||||
|
||||
end
|
||||
|
||||
derma.DefineControl( "DScrollBarGrip", "A Scrollbar Grip", PANEL, "DPanel" )
|
||||
Reference in New Issue
Block a user