Hello everyone, I am trying to us the Panel:Init() hook, but i have no idea how to use it. The code is generated with Derma Designer so the variable names are useless
[LUA]
– Lua generated by DermaDesigner
local DButton92
local DFrame4
DFrame4 = vgui.Create(‘DFrame’)
DFrame4:SetSize(179, 157)
DFrame4:SetPos(49, 71)
DFrame4:SetTitle(‘Test’)
DFrame4:SetSizable(true)
DFrame4:SetDeleteOnClose(false)
DFrame4:MakePopup()
funtion DFrame4:Init()
DButton92 = vgui.Create(‘DButton’)
DButton92:SetParent(DFrame4)
DButton92:SetSize(70, 25)
DButton92:SetPos(29, 39)
DButton92:SetText(‘Test’)
end
[/LUA]
thank you in advance.