mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
29 lines
610 B
Lua
29 lines
610 B
Lua
|
|
--[[
|
||
|
|
| 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" )
|