Garry's Mod Wiki

Revision Difference

DCollapsibleCategory:SetList#560617

<function name="SetList" parent="DCollapsibleCategory" type="panelfunc"> <description> <deprecated>Unused in the base game. What is this for?</deprecated>⤶ Sets a panel to call <page>Panel:UnselectAll</page> on, instead of calling it on itself.</description> Used internally by <page>DCategoryList</page> when it creates a <page>DCollapsibleCategory</page> during <page>DCategoryList:Add</page>.⤶ ⤶ If set, <page>Panel:UnselectAll</page> will be called on the list, instead of calling it on the category panel itself when a category is clicked.</description> <realm>Client and Menu</realm> <args> <arg name="pnl" type="Panel"></arg>⤶ <arg name="pnl" type="Panel">The <page>Panel:UnselectAll</page> that is the "parent" of this panel.</arg>⤶ </args> </function>