Garry's Mod Wiki

Revision Difference

DFileBrowser:OnSelect#513107

<function name="OnSelect" parent="DFileBrowser" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Called when a file is selected.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="filePath" type="string">The path to the file that was selected.</arg>⤶ <arg name="selectedPanel" type="Panel">The panel that was clicked to select this file.&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt;This will either be a &lt;page&gt;DListView_Line&lt;/page&gt; or &lt;page&gt;SpawnIcon&lt;/page&gt; depending on whether the model viewer mode is enabled. See &lt;page&gt;DFileBrowser:SetModels&lt;/page&gt;.</arg>⤶ </args>⤶ </function>⤶ ⤶