This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 8064ba84d8
commit 6a58f406b1
7522 changed files with 4011896 additions and 15 deletions

View File

@@ -0,0 +1,47 @@
--[[
| 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 = {}
function PANEL:Init()
self:SetTextInset( 32, 0 )
self:SetContentAlignment( 4 )
end
function PANEL:Paint( w, h )
derma.SkinHook( "Paint", "TreeNodeButton", self, w, h )
--
-- Draw the button text
--
return false
end
function PANEL:UpdateColours( skin )
if ( self:IsSelected() ) then return self:SetTextStyleColor( skin.Colours.Tree.Selected ) end
if ( self.Hovered ) then return self:SetTextStyleColor( skin.Colours.Tree.Hover ) end
return self:SetTextStyleColor( skin.Colours.Tree.Normal )
end
function PANEL:GenerateExample()
-- Do nothing!
end
derma.DefineControl( "DTree_Node_Button", "Tree Node Button", PANEL, "DButton" )