mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
28
lua/vgui/dexpandbutton.lua
Normal file
28
lua/vgui/dexpandbutton.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
local PANEL = {}
|
||||
|
||||
AccessorFunc( PANEL, "m_bExpanded", "Expanded", FORCE_BOOL )
|
||||
Derma_Hook( PANEL, "Paint", "Paint", "ExpandButton" )
|
||||
|
||||
function PANEL:Init()
|
||||
|
||||
self:SetSize( 15, 15 )
|
||||
self:SetText( "" )
|
||||
|
||||
end
|
||||
|
||||
-- No example for this control
|
||||
function PANEL:GenerateExample( class, tabs, w, h )
|
||||
end
|
||||
|
||||
derma.DefineControl( "DExpandButton", "", PANEL, "DButton" )
|
||||
Reference in New Issue
Block a user