Garry's Mod Wiki

Revision Difference

ContextBase:ControlValues#518250

<function name="ControlValues" parent="ContextBase" type="panelfunc"> <ispanel>yes</ispanel> <description>Called by spawnmenu functions (when creating a context menu) to fill this control with data.</description> <file line="20-L25">lua/vgui/contextbase.lua</file> <realm>Client</realm> <args> <arg name="contextData" type="table">A two-membered table:&#xA;* &lt;page&gt;string&lt;/page&gt; convar - The console variable to use. Calls &lt;page&gt;ContextBase:SetConVar.&lt;/page&gt;&#xA;* &lt;page&gt;string&lt;/page&gt; label - The text to display inside the control&#x27;s label.</arg>⤶ <arg name="contextData" type="table">A two-membered table:⤶ * <page>string</page> convar - The console variable to use. Calls <page>ContextBase:SetConVar.</page>⤶ * <page>string</page> label - The text to display inside the control's label.</arg>⤶ </args> </function>