Garry's Mod Wiki

Revision Difference

DFileBrowser:SetFileTypes#518100

<function name="SetFileTypes" parent="DFileBrowser" type="panelfunc"> <ispanel>yes</ispanel> <description> Sets the file type filter for the file list. This accepts the same file extension wildcards as <page>file.Find</page>. </description> <realm>Client</realm> <args> <arg name="fileTypes" type="string" default="*.*">A list of file types to display, separated by spaces e.g.&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;br&amp;amp;gt; <arg name="fileTypes" type="string" default="*.*">A list of file types to display, separated by spaces e.g.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; ``` &quot;*.lua *.txt *.mdl&quot;⤶ "*.lua *.txt *.mdl"⤶ ``` </arg> </args> </function>