Updating TDLib
The latest version of TDLib had compatibility errors with other addons overwriting class functions. Now, you are required to call the :TDLib()
meta function on all of your new panels before using TDLib functions. You can also call the TDLib()
global function directly as a replacement for vgui.Create()
, which does this internally.
Example global function usage
local but = TDLib("DButton", parent)
but:Background(Color(255, 0, 0))
Example meta function usage
local pnl = vgui.Create("Panel")
pnl:TDLib()
:Outline(Color(0, 0, 255, 255))