Garry's Mod Wiki

Revision Difference

vgui.RegisterTable#549691

<function name="RegisterTable" parent="vgui" type="libraryfunc"> <description>Registers a table to use as a panel, to be used with <page>vgui.CreateFromTable</page>. All this function does is assigns Base key to your table and returns the table.</description> <realm>Client and Menu</realm> <file line="97-107">lua/includes/extensions/client/panel/scriptedpanels.lua</file> <file line="101-L111">lua/includes/extensions/client/panel/scriptedpanels.lua</file> <args> <arg name="panel" type="table">The PANEL table.</arg> <arg name="base" type="string" default="Panel">A base for the panel.</arg> </args> <rets> <ret name="" type="table">The PANEL table</ret> </rets> </function>