Garry's Mod Wiki

Revision Difference

DMenuOption:AddSubMenu#561483

<function name="AddSubMenu" parent="DMenuOption" type="panelfunc"> <description>Creates a sub <page>DMenu</page> and returns it. Has no duplicate call protection.</description> <realm>Client and Menu</realm> <args>⤶ <arg name="Name" type="string">Name of the sub menu.</arg>⤶ <arg name="func" type="function" default="nil">Function to execute when this sub menu is clicked.</arg>⤶ </args>⤶ <rets> <ret name="" type="Panel">The created <page>DMenu</page> to add options to.</ret> </rets> </function>