I have a problem testing my own derma control. I do a rounded box of 50x50 size at pos 100,100. I tested this code but nothing happens when I do vgui.Create(“testing”):
[lua]vguicontrols[“taskbar”] = {}
vguicontrols.taskbar._color = Color(36,93,219,255)
function vguicontrols.taskbar:Init()
self:SetPos(100,100)
self:SetSize(50,50)
end
function vguicontrols.taskbar:Paint()
local x,y = self:GetPos()
draw.RoundedBox( 1, x,y,self:GetWide(),self:GetTall(),self._color )
return true
end
vgui.Register( “testing”, vguicontrols.taskbar )[/lua]