class_filedialog.rst 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/FileDialog.xml.
  6. .. _class_FileDialog:
  7. FileDialog
  8. ==========
  9. **Inherits:** :ref:`ConfirmationDialog<class_ConfirmationDialog>` **<** :ref:`AcceptDialog<class_AcceptDialog>` **<** :ref:`Window<class_Window>` **<** :ref:`Viewport<class_Viewport>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A dialog for selecting files or directories in the filesystem.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **FileDialog** is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. **FileDialog** automatically sets its window title according to the :ref:`file_mode<class_FileDialog_property_file_mode>`. If you want to use a custom title, disable this by setting :ref:`mode_overrides_title<class_FileDialog_property_mode_overrides_title>` to ``false``.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  21. | :ref:`Access<enum_FileDialog_Access>` | :ref:`access<class_FileDialog_property_access>` | ``0`` |
  22. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  23. | :ref:`String<class_String>` | :ref:`current_dir<class_FileDialog_property_current_dir>` | |
  24. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`current_file<class_FileDialog_property_current_file>` | |
  26. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  27. | :ref:`String<class_String>` | :ref:`current_path<class_FileDialog_property_current_path>` | |
  28. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`deleting_enabled<class_FileDialog_property_deleting_enabled>` | ``true`` |
  30. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  31. | :ref:`bool<class_bool>` | dialog_hide_on_ok | ``false`` (overrides :ref:`AcceptDialog<class_AcceptDialog_property_dialog_hide_on_ok>`) |
  32. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  33. | :ref:`DisplayMode<enum_FileDialog_DisplayMode>` | :ref:`display_mode<class_FileDialog_property_display_mode>` | ``0`` |
  34. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  35. | :ref:`bool<class_bool>` | :ref:`favorites_enabled<class_FileDialog_property_favorites_enabled>` | ``true`` |
  36. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  37. | :ref:`bool<class_bool>` | :ref:`file_filter_toggle_enabled<class_FileDialog_property_file_filter_toggle_enabled>` | ``true`` |
  38. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  39. | :ref:`FileMode<enum_FileDialog_FileMode>` | :ref:`file_mode<class_FileDialog_property_file_mode>` | ``4`` |
  40. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  41. | :ref:`bool<class_bool>` | :ref:`file_sort_options_enabled<class_FileDialog_property_file_sort_options_enabled>` | ``true`` |
  42. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  43. | :ref:`String<class_String>` | :ref:`filename_filter<class_FileDialog_property_filename_filter>` | ``""`` |
  44. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  45. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`filters<class_FileDialog_property_filters>` | ``PackedStringArray()`` |
  46. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  47. | :ref:`bool<class_bool>` | :ref:`folder_creation_enabled<class_FileDialog_property_folder_creation_enabled>` | ``true`` |
  48. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  49. | :ref:`bool<class_bool>` | :ref:`hidden_files_toggle_enabled<class_FileDialog_property_hidden_files_toggle_enabled>` | ``true`` |
  50. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`layout_toggle_enabled<class_FileDialog_property_layout_toggle_enabled>` | ``true`` |
  52. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  53. | :ref:`bool<class_bool>` | :ref:`mode_overrides_title<class_FileDialog_property_mode_overrides_title>` | ``true`` |
  54. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`option_count<class_FileDialog_property_option_count>` | ``0`` |
  56. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  57. | :ref:`bool<class_bool>` | :ref:`overwrite_warning_enabled<class_FileDialog_property_overwrite_warning_enabled>` | ``true`` |
  58. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  59. | :ref:`bool<class_bool>` | :ref:`recent_list_enabled<class_FileDialog_property_recent_list_enabled>` | ``true`` |
  60. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  61. | :ref:`String<class_String>` | :ref:`root_subfolder<class_FileDialog_property_root_subfolder>` | ``""`` |
  62. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  63. | :ref:`bool<class_bool>` | :ref:`show_hidden_files<class_FileDialog_property_show_hidden_files>` | ``false`` |
  64. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  65. | :ref:`Vector2i<class_Vector2i>` | size | ``Vector2i(640, 360)`` (overrides :ref:`Window<class_Window_property_size>`) |
  66. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  67. | :ref:`String<class_String>` | title | ``"Save a File"`` (overrides :ref:`Window<class_Window_property_title>`) |
  68. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  69. | :ref:`bool<class_bool>` | :ref:`use_native_dialog<class_FileDialog_property_use_native_dialog>` | ``false`` |
  70. +---------------------------------------------------+-------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  71. .. rst-class:: classref-reftable-group
  72. Methods
  73. -------
  74. .. table::
  75. :widths: auto
  76. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | |void| | :ref:`add_filter<class_FileDialog_method_add_filter>`\ (\ filter\: :ref:`String<class_String>`, description\: :ref:`String<class_String>` = ""\ ) |
  78. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | |void| | :ref:`add_option<class_FileDialog_method_add_option>`\ (\ name\: :ref:`String<class_String>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`, default_value_index\: :ref:`int<class_int>`\ ) |
  80. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | |void| | :ref:`clear_filename_filter<class_FileDialog_method_clear_filename_filter>`\ (\ ) |
  82. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | |void| | :ref:`clear_filters<class_FileDialog_method_clear_filters>`\ (\ ) |
  84. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | |void| | :ref:`deselect_all<class_FileDialog_method_deselect_all>`\ (\ ) |
  86. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_favorite_list<class_FileDialog_method_get_favorite_list>`\ (\ ) |static| |
  88. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | :ref:`LineEdit<class_LineEdit>` | :ref:`get_line_edit<class_FileDialog_method_get_line_edit>`\ (\ ) |
  90. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | :ref:`int<class_int>` | :ref:`get_option_default<class_FileDialog_method_get_option_default>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  92. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | :ref:`String<class_String>` | :ref:`get_option_name<class_FileDialog_method_get_option_name>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  94. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_option_values<class_FileDialog_method_get_option_values>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  96. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_recent_list<class_FileDialog_method_get_recent_list>`\ (\ ) |static| |
  98. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | :ref:`Dictionary<class_Dictionary>` | :ref:`get_selected_options<class_FileDialog_method_get_selected_options>`\ (\ ) |const| |
  100. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | :ref:`VBoxContainer<class_VBoxContainer>` | :ref:`get_vbox<class_FileDialog_method_get_vbox>`\ (\ ) |
  102. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | |void| | :ref:`invalidate<class_FileDialog_method_invalidate>`\ (\ ) |
  104. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | :ref:`bool<class_bool>` | :ref:`is_customization_flag_enabled<class_FileDialog_method_is_customization_flag_enabled>`\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const| |
  106. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | |void| | :ref:`set_customization_flag_enabled<class_FileDialog_method_set_customization_flag_enabled>`\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ ) |
  108. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | |void| | :ref:`set_favorite_list<class_FileDialog_method_set_favorite_list>`\ (\ favorites\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |static| |
  110. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | |void| | :ref:`set_get_icon_callback<class_FileDialog_method_set_get_icon_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |static| |
  112. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | |void| | :ref:`set_get_thumbnail_callback<class_FileDialog_method_set_get_thumbnail_callback>`\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |static| |
  114. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. | |void| | :ref:`set_option_default<class_FileDialog_method_set_option_default>`\ (\ option\: :ref:`int<class_int>`, default_value_index\: :ref:`int<class_int>`\ ) |
  116. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  117. | |void| | :ref:`set_option_name<class_FileDialog_method_set_option_name>`\ (\ option\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
  118. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  119. | |void| | :ref:`set_option_values<class_FileDialog_method_set_option_values>`\ (\ option\: :ref:`int<class_int>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |
  120. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  121. | |void| | :ref:`set_recent_list<class_FileDialog_method_set_recent_list>`\ (\ recents\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |static| |
  122. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  123. .. rst-class:: classref-reftable-group
  124. Theme Properties
  125. ----------------
  126. .. table::
  127. :widths: auto
  128. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  129. | :ref:`Color<class_Color>` | :ref:`file_disabled_color<class_FileDialog_theme_color_file_disabled_color>` | ``Color(1, 1, 1, 0.25)`` |
  130. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  131. | :ref:`Color<class_Color>` | :ref:`file_icon_color<class_FileDialog_theme_color_file_icon_color>` | ``Color(1, 1, 1, 1)`` |
  132. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  133. | :ref:`Color<class_Color>` | :ref:`folder_icon_color<class_FileDialog_theme_color_folder_icon_color>` | ``Color(1, 1, 1, 1)`` |
  134. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  135. | :ref:`int<class_int>` | :ref:`thumbnail_size<class_FileDialog_theme_constant_thumbnail_size>` | ``64`` |
  136. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  137. | :ref:`Texture2D<class_Texture2D>` | :ref:`back_folder<class_FileDialog_theme_icon_back_folder>` | |
  138. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  139. | :ref:`Texture2D<class_Texture2D>` | :ref:`create_folder<class_FileDialog_theme_icon_create_folder>` | |
  140. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  141. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite<class_FileDialog_theme_icon_favorite>` | |
  142. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  143. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite_down<class_FileDialog_theme_icon_favorite_down>` | |
  144. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  145. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite_up<class_FileDialog_theme_icon_favorite_up>` | |
  146. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  147. | :ref:`Texture2D<class_Texture2D>` | :ref:`file<class_FileDialog_theme_icon_file>` | |
  148. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  149. | :ref:`Texture2D<class_Texture2D>` | :ref:`file_thumbnail<class_FileDialog_theme_icon_file_thumbnail>` | |
  150. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  151. | :ref:`Texture2D<class_Texture2D>` | :ref:`folder<class_FileDialog_theme_icon_folder>` | |
  152. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  153. | :ref:`Texture2D<class_Texture2D>` | :ref:`folder_thumbnail<class_FileDialog_theme_icon_folder_thumbnail>` | |
  154. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  155. | :ref:`Texture2D<class_Texture2D>` | :ref:`forward_folder<class_FileDialog_theme_icon_forward_folder>` | |
  156. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  157. | :ref:`Texture2D<class_Texture2D>` | :ref:`list_mode<class_FileDialog_theme_icon_list_mode>` | |
  158. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  159. | :ref:`Texture2D<class_Texture2D>` | :ref:`parent_folder<class_FileDialog_theme_icon_parent_folder>` | |
  160. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  161. | :ref:`Texture2D<class_Texture2D>` | :ref:`reload<class_FileDialog_theme_icon_reload>` | |
  162. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  163. | :ref:`Texture2D<class_Texture2D>` | :ref:`sort<class_FileDialog_theme_icon_sort>` | |
  164. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  165. | :ref:`Texture2D<class_Texture2D>` | :ref:`thumbnail_mode<class_FileDialog_theme_icon_thumbnail_mode>` | |
  166. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  167. | :ref:`Texture2D<class_Texture2D>` | :ref:`toggle_filename_filter<class_FileDialog_theme_icon_toggle_filename_filter>` | |
  168. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  169. | :ref:`Texture2D<class_Texture2D>` | :ref:`toggle_hidden<class_FileDialog_theme_icon_toggle_hidden>` | |
  170. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  171. .. rst-class:: classref-section-separator
  172. ----
  173. .. rst-class:: classref-descriptions-group
  174. Signals
  175. -------
  176. .. _class_FileDialog_signal_dir_selected:
  177. .. rst-class:: classref-signal
  178. **dir_selected**\ (\ dir\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_FileDialog_signal_dir_selected>`
  179. Emitted when the user selects a directory.
  180. .. rst-class:: classref-item-separator
  181. ----
  182. .. _class_FileDialog_signal_file_selected:
  183. .. rst-class:: classref-signal
  184. **file_selected**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_FileDialog_signal_file_selected>`
  185. Emitted when the user selects a file by double-clicking it or pressing the **OK** button.
  186. .. rst-class:: classref-item-separator
  187. ----
  188. .. _class_FileDialog_signal_filename_filter_changed:
  189. .. rst-class:: classref-signal
  190. **filename_filter_changed**\ (\ filter\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_FileDialog_signal_filename_filter_changed>`
  191. Emitted when the filter for file names changes.
  192. .. rst-class:: classref-item-separator
  193. ----
  194. .. _class_FileDialog_signal_files_selected:
  195. .. rst-class:: classref-signal
  196. **files_selected**\ (\ paths\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`๐Ÿ”—<class_FileDialog_signal_files_selected>`
  197. Emitted when the user selects multiple files.
  198. .. rst-class:: classref-section-separator
  199. ----
  200. .. rst-class:: classref-descriptions-group
  201. Enumerations
  202. ------------
  203. .. _enum_FileDialog_FileMode:
  204. .. rst-class:: classref-enumeration
  205. enum **FileMode**: :ref:`๐Ÿ”—<enum_FileDialog_FileMode>`
  206. .. _class_FileDialog_constant_FILE_MODE_OPEN_FILE:
  207. .. rst-class:: classref-enumeration-constant
  208. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_FILE** = ``0``
  209. The dialog allows selecting one, and only one file.
  210. .. _class_FileDialog_constant_FILE_MODE_OPEN_FILES:
  211. .. rst-class:: classref-enumeration-constant
  212. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_FILES** = ``1``
  213. The dialog allows selecting multiple files.
  214. .. _class_FileDialog_constant_FILE_MODE_OPEN_DIR:
  215. .. rst-class:: classref-enumeration-constant
  216. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_DIR** = ``2``
  217. The dialog only allows selecting a directory, disallowing the selection of any file.
  218. .. _class_FileDialog_constant_FILE_MODE_OPEN_ANY:
  219. .. rst-class:: classref-enumeration-constant
  220. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_ANY** = ``3``
  221. The dialog allows selecting one file or directory.
  222. .. _class_FileDialog_constant_FILE_MODE_SAVE_FILE:
  223. .. rst-class:: classref-enumeration-constant
  224. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_SAVE_FILE** = ``4``
  225. The dialog will warn when a file exists.
  226. .. rst-class:: classref-item-separator
  227. ----
  228. .. _enum_FileDialog_Access:
  229. .. rst-class:: classref-enumeration
  230. enum **Access**: :ref:`๐Ÿ”—<enum_FileDialog_Access>`
  231. .. _class_FileDialog_constant_ACCESS_RESOURCES:
  232. .. rst-class:: classref-enumeration-constant
  233. :ref:`Access<enum_FileDialog_Access>` **ACCESS_RESOURCES** = ``0``
  234. The dialog only allows accessing files under the :ref:`Resource<class_Resource>` path (``res://``).
  235. .. _class_FileDialog_constant_ACCESS_USERDATA:
  236. .. rst-class:: classref-enumeration-constant
  237. :ref:`Access<enum_FileDialog_Access>` **ACCESS_USERDATA** = ``1``
  238. The dialog only allows accessing files under user data path (``user://``).
  239. .. _class_FileDialog_constant_ACCESS_FILESYSTEM:
  240. .. rst-class:: classref-enumeration-constant
  241. :ref:`Access<enum_FileDialog_Access>` **ACCESS_FILESYSTEM** = ``2``
  242. The dialog allows accessing files on the whole file system.
  243. .. rst-class:: classref-item-separator
  244. ----
  245. .. _enum_FileDialog_DisplayMode:
  246. .. rst-class:: classref-enumeration
  247. enum **DisplayMode**: :ref:`๐Ÿ”—<enum_FileDialog_DisplayMode>`
  248. .. _class_FileDialog_constant_DISPLAY_THUMBNAILS:
  249. .. rst-class:: classref-enumeration-constant
  250. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **DISPLAY_THUMBNAILS** = ``0``
  251. The dialog displays files as a grid of thumbnails. Use :ref:`thumbnail_size<class_FileDialog_theme_constant_thumbnail_size>` to adjust their size.
  252. .. _class_FileDialog_constant_DISPLAY_LIST:
  253. .. rst-class:: classref-enumeration-constant
  254. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **DISPLAY_LIST** = ``1``
  255. The dialog displays files as a list of filenames.
  256. .. rst-class:: classref-item-separator
  257. ----
  258. .. _enum_FileDialog_Customization:
  259. .. rst-class:: classref-enumeration
  260. enum **Customization**: :ref:`๐Ÿ”—<enum_FileDialog_Customization>`
  261. .. _class_FileDialog_constant_CUSTOMIZATION_HIDDEN_FILES:
  262. .. rst-class:: classref-enumeration-constant
  263. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_HIDDEN_FILES** = ``0``
  264. Toggles visibility of the favorite button, and the favorite list on the left side of the dialog.
  265. Equivalent to :ref:`hidden_files_toggle_enabled<class_FileDialog_property_hidden_files_toggle_enabled>`.
  266. .. _class_FileDialog_constant_CUSTOMIZATION_CREATE_FOLDER:
  267. .. rst-class:: classref-enumeration-constant
  268. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_CREATE_FOLDER** = ``1``
  269. If enabled, shows the button for creating new directories (when using :ref:`FILE_MODE_OPEN_DIR<class_FileDialog_constant_FILE_MODE_OPEN_DIR>`, :ref:`FILE_MODE_OPEN_ANY<class_FileDialog_constant_FILE_MODE_OPEN_ANY>`, or :ref:`FILE_MODE_SAVE_FILE<class_FileDialog_constant_FILE_MODE_SAVE_FILE>`).
  270. Equivalent to :ref:`folder_creation_enabled<class_FileDialog_property_folder_creation_enabled>`.
  271. .. _class_FileDialog_constant_CUSTOMIZATION_FILE_FILTER:
  272. .. rst-class:: classref-enumeration-constant
  273. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_FILE_FILTER** = ``2``
  274. If enabled, shows the toggle file filter button.
  275. Equivalent to :ref:`file_filter_toggle_enabled<class_FileDialog_property_file_filter_toggle_enabled>`.
  276. .. _class_FileDialog_constant_CUSTOMIZATION_FILE_SORT:
  277. .. rst-class:: classref-enumeration-constant
  278. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_FILE_SORT** = ``3``
  279. If enabled, shows the file sorting options button.
  280. Equivalent to :ref:`file_sort_options_enabled<class_FileDialog_property_file_sort_options_enabled>`.
  281. .. _class_FileDialog_constant_CUSTOMIZATION_FAVORITES:
  282. .. rst-class:: classref-enumeration-constant
  283. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_FAVORITES** = ``4``
  284. If enabled, shows the toggle favorite button and favorite list on the left side of the dialog.
  285. Equivalent to :ref:`favorites_enabled<class_FileDialog_property_favorites_enabled>`.
  286. .. _class_FileDialog_constant_CUSTOMIZATION_RECENT:
  287. .. rst-class:: classref-enumeration-constant
  288. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_RECENT** = ``5``
  289. If enabled, shows the recent directories list on the left side of the dialog.
  290. Equivalent to :ref:`recent_list_enabled<class_FileDialog_property_recent_list_enabled>`.
  291. .. _class_FileDialog_constant_CUSTOMIZATION_LAYOUT:
  292. .. rst-class:: classref-enumeration-constant
  293. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_LAYOUT** = ``6``
  294. If enabled, shows the layout switch buttons (list/thumbnails).
  295. Equivalent to :ref:`layout_toggle_enabled<class_FileDialog_property_layout_toggle_enabled>`.
  296. .. _class_FileDialog_constant_CUSTOMIZATION_OVERWRITE_WARNING:
  297. .. rst-class:: classref-enumeration-constant
  298. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_OVERWRITE_WARNING** = ``7``
  299. If enabled, the **FileDialog** will warn the user before overwriting files in save mode.
  300. Equivalent to :ref:`overwrite_warning_enabled<class_FileDialog_property_overwrite_warning_enabled>`.
  301. .. _class_FileDialog_constant_CUSTOMIZATION_DELETE:
  302. .. rst-class:: classref-enumeration-constant
  303. :ref:`Customization<enum_FileDialog_Customization>` **CUSTOMIZATION_DELETE** = ``8``
  304. If enabled, the context menu will show the "Delete" option, which allows moving files and folders to trash.
  305. Equivalent to :ref:`deleting_enabled<class_FileDialog_property_deleting_enabled>`.
  306. .. rst-class:: classref-section-separator
  307. ----
  308. .. rst-class:: classref-descriptions-group
  309. Property Descriptions
  310. ---------------------
  311. .. _class_FileDialog_property_access:
  312. .. rst-class:: classref-property
  313. :ref:`Access<enum_FileDialog_Access>` **access** = ``0`` :ref:`๐Ÿ”—<class_FileDialog_property_access>`
  314. .. rst-class:: classref-property-setget
  315. - |void| **set_access**\ (\ value\: :ref:`Access<enum_FileDialog_Access>`\ )
  316. - :ref:`Access<enum_FileDialog_Access>` **get_access**\ (\ )
  317. The file system access scope.
  318. \ **Warning:** In Web builds, FileDialog cannot access the host file system. In sandboxed Linux and macOS environments, :ref:`use_native_dialog<class_FileDialog_property_use_native_dialog>` is automatically used to allow limited access to host file system.
  319. .. rst-class:: classref-item-separator
  320. ----
  321. .. _class_FileDialog_property_current_dir:
  322. .. rst-class:: classref-property
  323. :ref:`String<class_String>` **current_dir** :ref:`๐Ÿ”—<class_FileDialog_property_current_dir>`
  324. .. rst-class:: classref-property-setget
  325. - |void| **set_current_dir**\ (\ value\: :ref:`String<class_String>`\ )
  326. - :ref:`String<class_String>` **get_current_dir**\ (\ )
  327. The current working directory of the file dialog.
  328. \ **Note:** For native file dialogs, this property is only treated as a hint and may not be respected by specific OS implementations.
  329. .. rst-class:: classref-item-separator
  330. ----
  331. .. _class_FileDialog_property_current_file:
  332. .. rst-class:: classref-property
  333. :ref:`String<class_String>` **current_file** :ref:`๐Ÿ”—<class_FileDialog_property_current_file>`
  334. .. rst-class:: classref-property-setget
  335. - |void| **set_current_file**\ (\ value\: :ref:`String<class_String>`\ )
  336. - :ref:`String<class_String>` **get_current_file**\ (\ )
  337. The currently selected file of the file dialog.
  338. .. rst-class:: classref-item-separator
  339. ----
  340. .. _class_FileDialog_property_current_path:
  341. .. rst-class:: classref-property
  342. :ref:`String<class_String>` **current_path** :ref:`๐Ÿ”—<class_FileDialog_property_current_path>`
  343. .. rst-class:: classref-property-setget
  344. - |void| **set_current_path**\ (\ value\: :ref:`String<class_String>`\ )
  345. - :ref:`String<class_String>` **get_current_path**\ (\ )
  346. The currently selected file path of the file dialog.
  347. .. rst-class:: classref-item-separator
  348. ----
  349. .. _class_FileDialog_property_deleting_enabled:
  350. .. rst-class:: classref-property
  351. :ref:`bool<class_bool>` **deleting_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_deleting_enabled>`
  352. .. rst-class:: classref-property-setget
  353. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  354. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  355. If ``true``, the context menu will show the "Delete" option, which allows moving files and folders to trash.
  356. .. rst-class:: classref-item-separator
  357. ----
  358. .. _class_FileDialog_property_display_mode:
  359. .. rst-class:: classref-property
  360. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **display_mode** = ``0`` :ref:`๐Ÿ”—<class_FileDialog_property_display_mode>`
  361. .. rst-class:: classref-property-setget
  362. - |void| **set_display_mode**\ (\ value\: :ref:`DisplayMode<enum_FileDialog_DisplayMode>`\ )
  363. - :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **get_display_mode**\ (\ )
  364. Display mode of the dialog's file list.
  365. .. rst-class:: classref-item-separator
  366. ----
  367. .. _class_FileDialog_property_favorites_enabled:
  368. .. rst-class:: classref-property
  369. :ref:`bool<class_bool>` **favorites_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_favorites_enabled>`
  370. .. rst-class:: classref-property-setget
  371. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  372. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  373. If ``true``, shows the toggle favorite button and favorite list on the left side of the dialog.
  374. .. rst-class:: classref-item-separator
  375. ----
  376. .. _class_FileDialog_property_file_filter_toggle_enabled:
  377. .. rst-class:: classref-property
  378. :ref:`bool<class_bool>` **file_filter_toggle_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_file_filter_toggle_enabled>`
  379. .. rst-class:: classref-property-setget
  380. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  381. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  382. If ``true``, shows the toggle file filter button.
  383. .. rst-class:: classref-item-separator
  384. ----
  385. .. _class_FileDialog_property_file_mode:
  386. .. rst-class:: classref-property
  387. :ref:`FileMode<enum_FileDialog_FileMode>` **file_mode** = ``4`` :ref:`๐Ÿ”—<class_FileDialog_property_file_mode>`
  388. .. rst-class:: classref-property-setget
  389. - |void| **set_file_mode**\ (\ value\: :ref:`FileMode<enum_FileDialog_FileMode>`\ )
  390. - :ref:`FileMode<enum_FileDialog_FileMode>` **get_file_mode**\ (\ )
  391. The dialog's open or save mode, which affects the selection behavior.
  392. .. rst-class:: classref-item-separator
  393. ----
  394. .. _class_FileDialog_property_file_sort_options_enabled:
  395. .. rst-class:: classref-property
  396. :ref:`bool<class_bool>` **file_sort_options_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_file_sort_options_enabled>`
  397. .. rst-class:: classref-property-setget
  398. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  399. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  400. If ``true``, shows the file sorting options button.
  401. .. rst-class:: classref-item-separator
  402. ----
  403. .. _class_FileDialog_property_filename_filter:
  404. .. rst-class:: classref-property
  405. :ref:`String<class_String>` **filename_filter** = ``""`` :ref:`๐Ÿ”—<class_FileDialog_property_filename_filter>`
  406. .. rst-class:: classref-property-setget
  407. - |void| **set_filename_filter**\ (\ value\: :ref:`String<class_String>`\ )
  408. - :ref:`String<class_String>` **get_filename_filter**\ (\ )
  409. The filter for file names (case-insensitive). When set to a non-empty string, only files that contains the substring will be shown. :ref:`filename_filter<class_FileDialog_property_filename_filter>` can be edited by the user with the filter button at the top of the file dialog.
  410. See also :ref:`filters<class_FileDialog_property_filters>`, which should be used to restrict the file types that can be selected instead of :ref:`filename_filter<class_FileDialog_property_filename_filter>` which is meant to be set by the user.
  411. .. rst-class:: classref-item-separator
  412. ----
  413. .. _class_FileDialog_property_filters:
  414. .. rst-class:: classref-property
  415. :ref:`PackedStringArray<class_PackedStringArray>` **filters** = ``PackedStringArray()`` :ref:`๐Ÿ”—<class_FileDialog_property_filters>`
  416. .. rst-class:: classref-property-setget
  417. - |void| **set_filters**\ (\ value\: :ref:`PackedStringArray<class_PackedStringArray>`\ )
  418. - :ref:`PackedStringArray<class_PackedStringArray>` **get_filters**\ (\ )
  419. The available file type filters. Each filter string in the array should be formatted like this: ``*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg``. The description text of the filter is optional and can be omitted. Both file extensions and MIME type should be always set.
  420. \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
  421. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedStringArray<class_PackedStringArray>` for more details.
  422. .. rst-class:: classref-item-separator
  423. ----
  424. .. _class_FileDialog_property_folder_creation_enabled:
  425. .. rst-class:: classref-property
  426. :ref:`bool<class_bool>` **folder_creation_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_folder_creation_enabled>`
  427. .. rst-class:: classref-property-setget
  428. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  429. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  430. If ``true``, shows the button for creating new directories (when using :ref:`FILE_MODE_OPEN_DIR<class_FileDialog_constant_FILE_MODE_OPEN_DIR>`, :ref:`FILE_MODE_OPEN_ANY<class_FileDialog_constant_FILE_MODE_OPEN_ANY>`, or :ref:`FILE_MODE_SAVE_FILE<class_FileDialog_constant_FILE_MODE_SAVE_FILE>`), and the context menu will have the "New Folder..." option.
  431. .. rst-class:: classref-item-separator
  432. ----
  433. .. _class_FileDialog_property_hidden_files_toggle_enabled:
  434. .. rst-class:: classref-property
  435. :ref:`bool<class_bool>` **hidden_files_toggle_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_hidden_files_toggle_enabled>`
  436. .. rst-class:: classref-property-setget
  437. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  438. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  439. If ``true``, shows the toggle hidden files button.
  440. .. rst-class:: classref-item-separator
  441. ----
  442. .. _class_FileDialog_property_layout_toggle_enabled:
  443. .. rst-class:: classref-property
  444. :ref:`bool<class_bool>` **layout_toggle_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_layout_toggle_enabled>`
  445. .. rst-class:: classref-property-setget
  446. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  447. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  448. If ``true``, shows the layout switch buttons (list/thumbnails).
  449. .. rst-class:: classref-item-separator
  450. ----
  451. .. _class_FileDialog_property_mode_overrides_title:
  452. .. rst-class:: classref-property
  453. :ref:`bool<class_bool>` **mode_overrides_title** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_mode_overrides_title>`
  454. .. rst-class:: classref-property-setget
  455. - |void| **set_mode_overrides_title**\ (\ value\: :ref:`bool<class_bool>`\ )
  456. - :ref:`bool<class_bool>` **is_mode_overriding_title**\ (\ )
  457. If ``true``, changing the :ref:`file_mode<class_FileDialog_property_file_mode>` property will set the window title accordingly (e.g. setting :ref:`file_mode<class_FileDialog_property_file_mode>` to :ref:`FILE_MODE_OPEN_FILE<class_FileDialog_constant_FILE_MODE_OPEN_FILE>` will change the window title to "Open a File").
  458. .. rst-class:: classref-item-separator
  459. ----
  460. .. _class_FileDialog_property_option_count:
  461. .. rst-class:: classref-property
  462. :ref:`int<class_int>` **option_count** = ``0`` :ref:`๐Ÿ”—<class_FileDialog_property_option_count>`
  463. .. rst-class:: classref-property-setget
  464. - |void| **set_option_count**\ (\ value\: :ref:`int<class_int>`\ )
  465. - :ref:`int<class_int>` **get_option_count**\ (\ )
  466. The number of additional :ref:`OptionButton<class_OptionButton>`\ s and :ref:`CheckBox<class_CheckBox>`\ es in the dialog.
  467. .. rst-class:: classref-item-separator
  468. ----
  469. .. _class_FileDialog_property_overwrite_warning_enabled:
  470. .. rst-class:: classref-property
  471. :ref:`bool<class_bool>` **overwrite_warning_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_overwrite_warning_enabled>`
  472. .. rst-class:: classref-property-setget
  473. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  474. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  475. If ``true``, the **FileDialog** will warn the user before overwriting files in save mode.
  476. .. rst-class:: classref-item-separator
  477. ----
  478. .. _class_FileDialog_property_recent_list_enabled:
  479. .. rst-class:: classref-property
  480. :ref:`bool<class_bool>` **recent_list_enabled** = ``true`` :ref:`๐Ÿ”—<class_FileDialog_property_recent_list_enabled>`
  481. .. rst-class:: classref-property-setget
  482. - |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ )
  483. - :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const|
  484. If ``true``, shows the recent directories list on the left side of the dialog.
  485. .. rst-class:: classref-item-separator
  486. ----
  487. .. _class_FileDialog_property_root_subfolder:
  488. .. rst-class:: classref-property
  489. :ref:`String<class_String>` **root_subfolder** = ``""`` :ref:`๐Ÿ”—<class_FileDialog_property_root_subfolder>`
  490. .. rst-class:: classref-property-setget
  491. - |void| **set_root_subfolder**\ (\ value\: :ref:`String<class_String>`\ )
  492. - :ref:`String<class_String>` **get_root_subfolder**\ (\ )
  493. If non-empty, the given sub-folder will be "root" of this **FileDialog**, i.e. user won't be able to go to its parent directory.
  494. \ **Note:** This property is ignored by native file dialogs.
  495. .. rst-class:: classref-item-separator
  496. ----
  497. .. _class_FileDialog_property_show_hidden_files:
  498. .. rst-class:: classref-property
  499. :ref:`bool<class_bool>` **show_hidden_files** = ``false`` :ref:`๐Ÿ”—<class_FileDialog_property_show_hidden_files>`
  500. .. rst-class:: classref-property-setget
  501. - |void| **set_show_hidden_files**\ (\ value\: :ref:`bool<class_bool>`\ )
  502. - :ref:`bool<class_bool>` **is_showing_hidden_files**\ (\ )
  503. If ``true``, the dialog will show hidden files.
  504. \ **Note:** This property is ignored by native file dialogs on Android and Linux.
  505. .. rst-class:: classref-item-separator
  506. ----
  507. .. _class_FileDialog_property_use_native_dialog:
  508. .. rst-class:: classref-property
  509. :ref:`bool<class_bool>` **use_native_dialog** = ``false`` :ref:`๐Ÿ”—<class_FileDialog_property_use_native_dialog>`
  510. .. rst-class:: classref-property-setget
  511. - |void| **set_use_native_dialog**\ (\ value\: :ref:`bool<class_bool>`\ )
  512. - :ref:`bool<class_bool>` **get_use_native_dialog**\ (\ )
  513. If ``true``, and if supported by the current :ref:`DisplayServer<class_DisplayServer>`, OS native dialog will be used instead of custom one.
  514. \ **Note:** On Android, it is only supported for Android 10+ devices and when using :ref:`ACCESS_FILESYSTEM<class_FileDialog_constant_ACCESS_FILESYSTEM>`. For access mode :ref:`ACCESS_RESOURCES<class_FileDialog_constant_ACCESS_RESOURCES>` and :ref:`ACCESS_USERDATA<class_FileDialog_constant_ACCESS_USERDATA>`, the system will fall back to custom FileDialog.
  515. \ **Note:** On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
  516. \ **Note:** On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use :ref:`OS.get_granted_permissions()<class_OS_method_get_granted_permissions>` to get a list of saved bookmarks.
  517. \ **Note:** Native dialogs are isolated from the base process, file dialog properties can't be modified once the dialog is shown.
  518. .. rst-class:: classref-section-separator
  519. ----
  520. .. rst-class:: classref-descriptions-group
  521. Method Descriptions
  522. -------------------
  523. .. _class_FileDialog_method_add_filter:
  524. .. rst-class:: classref-method
  525. |void| **add_filter**\ (\ filter\: :ref:`String<class_String>`, description\: :ref:`String<class_String>` = ""\ ) :ref:`๐Ÿ”—<class_FileDialog_method_add_filter>`
  526. Adds a comma-separated file name ``filter`` option to the **FileDialog** with an optional ``description``, which restricts what files can be picked.
  527. A ``filter`` should be of the form ``"filename.extension"``, where filename and extension can be ``*`` to match any string. Filters starting with ``.`` (i.e. empty filenames) are not allowed.
  528. For example, a ``filter`` of ``"*.png, *.jpg"`` and a ``description`` of ``"Images"`` results in filter text "Images (\*.png, \*.jpg)".
  529. .. rst-class:: classref-item-separator
  530. ----
  531. .. _class_FileDialog_method_add_option:
  532. .. rst-class:: classref-method
  533. |void| **add_option**\ (\ name\: :ref:`String<class_String>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`, default_value_index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_FileDialog_method_add_option>`
  534. Adds an additional :ref:`OptionButton<class_OptionButton>` to the file dialog. If ``values`` is empty, a :ref:`CheckBox<class_CheckBox>` is added instead.
  535. \ ``default_value_index`` should be an index of the value in the ``values``. If ``values`` is empty it should be either ``1`` (checked), or ``0`` (unchecked).
  536. .. rst-class:: classref-item-separator
  537. ----
  538. .. _class_FileDialog_method_clear_filename_filter:
  539. .. rst-class:: classref-method
  540. |void| **clear_filename_filter**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_clear_filename_filter>`
  541. Clear the filter for file names.
  542. .. rst-class:: classref-item-separator
  543. ----
  544. .. _class_FileDialog_method_clear_filters:
  545. .. rst-class:: classref-method
  546. |void| **clear_filters**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_clear_filters>`
  547. Clear all the added filters in the dialog.
  548. .. rst-class:: classref-item-separator
  549. ----
  550. .. _class_FileDialog_method_deselect_all:
  551. .. rst-class:: classref-method
  552. |void| **deselect_all**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_deselect_all>`
  553. Clear all currently selected items in the dialog.
  554. .. rst-class:: classref-item-separator
  555. ----
  556. .. _class_FileDialog_method_get_favorite_list:
  557. .. rst-class:: classref-method
  558. :ref:`PackedStringArray<class_PackedStringArray>` **get_favorite_list**\ (\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_get_favorite_list>`
  559. Returns the list of favorite directories, which is shared by all **FileDialog** nodes. Useful to store the list of favorites between project sessions. This method can be called only from the main thread.
  560. .. rst-class:: classref-item-separator
  561. ----
  562. .. _class_FileDialog_method_get_line_edit:
  563. .. rst-class:: classref-method
  564. :ref:`LineEdit<class_LineEdit>` **get_line_edit**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_get_line_edit>`
  565. Returns the LineEdit for the selected file.
  566. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
  567. .. rst-class:: classref-item-separator
  568. ----
  569. .. _class_FileDialog_method_get_option_default:
  570. .. rst-class:: classref-method
  571. :ref:`int<class_int>` **get_option_default**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_FileDialog_method_get_option_default>`
  572. Returns the default value index of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  573. .. rst-class:: classref-item-separator
  574. ----
  575. .. _class_FileDialog_method_get_option_name:
  576. .. rst-class:: classref-method
  577. :ref:`String<class_String>` **get_option_name**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_FileDialog_method_get_option_name>`
  578. Returns the name of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  579. .. rst-class:: classref-item-separator
  580. ----
  581. .. _class_FileDialog_method_get_option_values:
  582. .. rst-class:: classref-method
  583. :ref:`PackedStringArray<class_PackedStringArray>` **get_option_values**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_FileDialog_method_get_option_values>`
  584. Returns an array of values of the :ref:`OptionButton<class_OptionButton>` with index ``option``.
  585. .. rst-class:: classref-item-separator
  586. ----
  587. .. _class_FileDialog_method_get_recent_list:
  588. .. rst-class:: classref-method
  589. :ref:`PackedStringArray<class_PackedStringArray>` **get_recent_list**\ (\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_get_recent_list>`
  590. Returns the list of recent directories, which is shared by all **FileDialog** nodes. Useful to store the list of recents between project sessions. This method can be called only from the main thread.
  591. .. rst-class:: classref-item-separator
  592. ----
  593. .. _class_FileDialog_method_get_selected_options:
  594. .. rst-class:: classref-method
  595. :ref:`Dictionary<class_Dictionary>` **get_selected_options**\ (\ ) |const| :ref:`๐Ÿ”—<class_FileDialog_method_get_selected_options>`
  596. Returns a :ref:`Dictionary<class_Dictionary>` with the selected values of the additional :ref:`OptionButton<class_OptionButton>`\ s and/or :ref:`CheckBox<class_CheckBox>`\ es. :ref:`Dictionary<class_Dictionary>` keys are names and values are selected value indices.
  597. .. rst-class:: classref-item-separator
  598. ----
  599. .. _class_FileDialog_method_get_vbox:
  600. .. rst-class:: classref-method
  601. :ref:`VBoxContainer<class_VBoxContainer>` **get_vbox**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_get_vbox>`
  602. Returns the vertical box container of the dialog, custom controls can be added to it.
  603. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
  604. \ **Note:** Changes to this node are ignored by native file dialogs, use :ref:`add_option()<class_FileDialog_method_add_option>` to add custom elements to the dialog instead.
  605. .. rst-class:: classref-item-separator
  606. ----
  607. .. _class_FileDialog_method_invalidate:
  608. .. rst-class:: classref-method
  609. |void| **invalidate**\ (\ ) :ref:`๐Ÿ”—<class_FileDialog_method_invalidate>`
  610. Invalidate and update the current dialog content list.
  611. \ **Note:** This method does nothing on native file dialogs.
  612. .. rst-class:: classref-item-separator
  613. ----
  614. .. _class_FileDialog_method_is_customization_flag_enabled:
  615. .. rst-class:: classref-method
  616. :ref:`bool<class_bool>` **is_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`\ ) |const| :ref:`๐Ÿ”—<class_FileDialog_method_is_customization_flag_enabled>`
  617. Returns ``true`` if the provided ``flag`` is enabled.
  618. .. rst-class:: classref-item-separator
  619. ----
  620. .. _class_FileDialog_method_set_customization_flag_enabled:
  621. .. rst-class:: classref-method
  622. |void| **set_customization_flag_enabled**\ (\ flag\: :ref:`Customization<enum_FileDialog_Customization>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`๐Ÿ”—<class_FileDialog_method_set_customization_flag_enabled>`
  623. Toggles the specified customization ``flag``, allowing to customize features available in this **FileDialog**. See :ref:`Customization<enum_FileDialog_Customization>` for options.
  624. .. rst-class:: classref-item-separator
  625. ----
  626. .. _class_FileDialog_method_set_favorite_list:
  627. .. rst-class:: classref-method
  628. |void| **set_favorite_list**\ (\ favorites\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_set_favorite_list>`
  629. Sets the list of favorite directories, which is shared by all **FileDialog** nodes. Useful to restore the list of favorites saved with :ref:`get_favorite_list()<class_FileDialog_method_get_favorite_list>`. This method can be called only from the main thread.
  630. \ **Note:** **FileDialog** will update its internal :ref:`ItemList<class_ItemList>` of favorites when its visibility changes. Be sure to call this method earlier if you want your changes to have effect.
  631. .. rst-class:: classref-item-separator
  632. ----
  633. .. _class_FileDialog_method_set_get_icon_callback:
  634. .. rst-class:: classref-method
  635. |void| **set_get_icon_callback**\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_set_get_icon_callback>`
  636. Sets the callback used by the **FileDialog** nodes to get a file icon, when :ref:`DISPLAY_LIST<class_FileDialog_constant_DISPLAY_LIST>` mode is used. The callback should take a single :ref:`String<class_String>` argument (file path), and return a :ref:`Texture2D<class_Texture2D>`. If an invalid texture is returned, the :ref:`file<class_FileDialog_theme_icon_file>` icon will be used instead.
  637. .. rst-class:: classref-item-separator
  638. ----
  639. .. _class_FileDialog_method_set_get_thumbnail_callback:
  640. .. rst-class:: classref-method
  641. |void| **set_get_thumbnail_callback**\ (\ callback\: :ref:`Callable<class_Callable>`\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_set_get_thumbnail_callback>`
  642. Sets the callback used by the **FileDialog** nodes to get a file icon, when :ref:`DISPLAY_THUMBNAILS<class_FileDialog_constant_DISPLAY_THUMBNAILS>` mode is used. The callback should take a single :ref:`String<class_String>` argument (file path), and return a :ref:`Texture2D<class_Texture2D>`. If an invalid texture is returned, the :ref:`file_thumbnail<class_FileDialog_theme_icon_file_thumbnail>` icon will be used instead.
  643. Thumbnails are usually more complex and may take a while to load. To avoid stalling the application, you can use :ref:`ImageTexture<class_ImageTexture>` to asynchronously create the thumbnail.
  644. ::
  645. func _ready():
  646. FileDialog.set_get_thumbnail_callback(thumbnail_method)
  647. func thumbnail_method(path):
  648. var image_texture = ImageTexture.new()
  649. make_thumbnail_async(path, image_texture)
  650. return image_texture
  651. func make_thumbnail_async(path, image_texture):
  652. var thumbnail_texture = await generate_thumbnail(path) # Some method that generates a thumbnail.
  653. image_texture.set_image(thumbnail_texture.get_image())
  654. .. rst-class:: classref-item-separator
  655. ----
  656. .. _class_FileDialog_method_set_option_default:
  657. .. rst-class:: classref-method
  658. |void| **set_option_default**\ (\ option\: :ref:`int<class_int>`, default_value_index\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_FileDialog_method_set_option_default>`
  659. Sets the default value index of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  660. .. rst-class:: classref-item-separator
  661. ----
  662. .. _class_FileDialog_method_set_option_name:
  663. .. rst-class:: classref-method
  664. |void| **set_option_name**\ (\ option\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`๐Ÿ”—<class_FileDialog_method_set_option_name>`
  665. Sets the name of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  666. .. rst-class:: classref-item-separator
  667. ----
  668. .. _class_FileDialog_method_set_option_values:
  669. .. rst-class:: classref-method
  670. |void| **set_option_values**\ (\ option\: :ref:`int<class_int>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`๐Ÿ”—<class_FileDialog_method_set_option_values>`
  671. Sets the option values of the :ref:`OptionButton<class_OptionButton>` with index ``option``.
  672. .. rst-class:: classref-item-separator
  673. ----
  674. .. _class_FileDialog_method_set_recent_list:
  675. .. rst-class:: classref-method
  676. |void| **set_recent_list**\ (\ recents\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |static| :ref:`๐Ÿ”—<class_FileDialog_method_set_recent_list>`
  677. Sets the list of recent directories, which is shared by all **FileDialog** nodes. Useful to restore the list of recents saved with :ref:`set_recent_list()<class_FileDialog_method_set_recent_list>`. This method can be called only from the main thread.
  678. \ **Note:** **FileDialog** will update its internal :ref:`ItemList<class_ItemList>` of recent directories when its visibility changes. Be sure to call this method earlier if you want your changes to have effect.
  679. .. rst-class:: classref-section-separator
  680. ----
  681. .. rst-class:: classref-descriptions-group
  682. Theme Property Descriptions
  683. ---------------------------
  684. .. _class_FileDialog_theme_color_file_disabled_color:
  685. .. rst-class:: classref-themeproperty
  686. :ref:`Color<class_Color>` **file_disabled_color** = ``Color(1, 1, 1, 0.25)`` :ref:`๐Ÿ”—<class_FileDialog_theme_color_file_disabled_color>`
  687. The color tint for disabled files (when the **FileDialog** is used in open folder mode).
  688. .. rst-class:: classref-item-separator
  689. ----
  690. .. _class_FileDialog_theme_color_file_icon_color:
  691. .. rst-class:: classref-themeproperty
  692. :ref:`Color<class_Color>` **file_icon_color** = ``Color(1, 1, 1, 1)`` :ref:`๐Ÿ”—<class_FileDialog_theme_color_file_icon_color>`
  693. The color modulation applied to the file icon.
  694. .. rst-class:: classref-item-separator
  695. ----
  696. .. _class_FileDialog_theme_color_folder_icon_color:
  697. .. rst-class:: classref-themeproperty
  698. :ref:`Color<class_Color>` **folder_icon_color** = ``Color(1, 1, 1, 1)`` :ref:`๐Ÿ”—<class_FileDialog_theme_color_folder_icon_color>`
  699. The color modulation applied to the folder icon.
  700. .. rst-class:: classref-item-separator
  701. ----
  702. .. _class_FileDialog_theme_constant_thumbnail_size:
  703. .. rst-class:: classref-themeproperty
  704. :ref:`int<class_int>` **thumbnail_size** = ``64`` :ref:`๐Ÿ”—<class_FileDialog_theme_constant_thumbnail_size>`
  705. The size of thumbnail icons when :ref:`DISPLAY_THUMBNAILS<class_FileDialog_constant_DISPLAY_THUMBNAILS>` is enabled.
  706. .. rst-class:: classref-item-separator
  707. ----
  708. .. _class_FileDialog_theme_icon_back_folder:
  709. .. rst-class:: classref-themeproperty
  710. :ref:`Texture2D<class_Texture2D>` **back_folder** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_back_folder>`
  711. Custom icon for the back arrow.
  712. .. rst-class:: classref-item-separator
  713. ----
  714. .. _class_FileDialog_theme_icon_create_folder:
  715. .. rst-class:: classref-themeproperty
  716. :ref:`Texture2D<class_Texture2D>` **create_folder** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_create_folder>`
  717. Custom icon for the create folder button.
  718. .. rst-class:: classref-item-separator
  719. ----
  720. .. _class_FileDialog_theme_icon_favorite:
  721. .. rst-class:: classref-themeproperty
  722. :ref:`Texture2D<class_Texture2D>` **favorite** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_favorite>`
  723. Custom icon for favorite folder button.
  724. .. rst-class:: classref-item-separator
  725. ----
  726. .. _class_FileDialog_theme_icon_favorite_down:
  727. .. rst-class:: classref-themeproperty
  728. :ref:`Texture2D<class_Texture2D>` **favorite_down** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_favorite_down>`
  729. Custom icon for button to move down a favorite entry.
  730. .. rst-class:: classref-item-separator
  731. ----
  732. .. _class_FileDialog_theme_icon_favorite_up:
  733. .. rst-class:: classref-themeproperty
  734. :ref:`Texture2D<class_Texture2D>` **favorite_up** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_favorite_up>`
  735. Custom icon for button to move up a favorite entry.
  736. .. rst-class:: classref-item-separator
  737. ----
  738. .. _class_FileDialog_theme_icon_file:
  739. .. rst-class:: classref-themeproperty
  740. :ref:`Texture2D<class_Texture2D>` **file** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_file>`
  741. Custom icon for files.
  742. .. rst-class:: classref-item-separator
  743. ----
  744. .. _class_FileDialog_theme_icon_file_thumbnail:
  745. .. rst-class:: classref-themeproperty
  746. :ref:`Texture2D<class_Texture2D>` **file_thumbnail** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_file_thumbnail>`
  747. Icon for files when in thumbnail mode.
  748. .. rst-class:: classref-item-separator
  749. ----
  750. .. _class_FileDialog_theme_icon_folder:
  751. .. rst-class:: classref-themeproperty
  752. :ref:`Texture2D<class_Texture2D>` **folder** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_folder>`
  753. Custom icon for folders.
  754. .. rst-class:: classref-item-separator
  755. ----
  756. .. _class_FileDialog_theme_icon_folder_thumbnail:
  757. .. rst-class:: classref-themeproperty
  758. :ref:`Texture2D<class_Texture2D>` **folder_thumbnail** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_folder_thumbnail>`
  759. Icon for folders when in thumbnail mode.
  760. .. rst-class:: classref-item-separator
  761. ----
  762. .. _class_FileDialog_theme_icon_forward_folder:
  763. .. rst-class:: classref-themeproperty
  764. :ref:`Texture2D<class_Texture2D>` **forward_folder** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_forward_folder>`
  765. Custom icon for the forward arrow.
  766. .. rst-class:: classref-item-separator
  767. ----
  768. .. _class_FileDialog_theme_icon_list_mode:
  769. .. rst-class:: classref-themeproperty
  770. :ref:`Texture2D<class_Texture2D>` **list_mode** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_list_mode>`
  771. Icon for the button that enables list mode.
  772. .. rst-class:: classref-item-separator
  773. ----
  774. .. _class_FileDialog_theme_icon_parent_folder:
  775. .. rst-class:: classref-themeproperty
  776. :ref:`Texture2D<class_Texture2D>` **parent_folder** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_parent_folder>`
  777. Custom icon for the parent folder arrow.
  778. .. rst-class:: classref-item-separator
  779. ----
  780. .. _class_FileDialog_theme_icon_reload:
  781. .. rst-class:: classref-themeproperty
  782. :ref:`Texture2D<class_Texture2D>` **reload** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_reload>`
  783. Custom icon for the reload button.
  784. .. rst-class:: classref-item-separator
  785. ----
  786. .. _class_FileDialog_theme_icon_sort:
  787. .. rst-class:: classref-themeproperty
  788. :ref:`Texture2D<class_Texture2D>` **sort** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_sort>`
  789. Custom icon for the sorting options menu.
  790. .. rst-class:: classref-item-separator
  791. ----
  792. .. _class_FileDialog_theme_icon_thumbnail_mode:
  793. .. rst-class:: classref-themeproperty
  794. :ref:`Texture2D<class_Texture2D>` **thumbnail_mode** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_thumbnail_mode>`
  795. Icon for the button that enables thumbnail mode.
  796. .. rst-class:: classref-item-separator
  797. ----
  798. .. _class_FileDialog_theme_icon_toggle_filename_filter:
  799. .. rst-class:: classref-themeproperty
  800. :ref:`Texture2D<class_Texture2D>` **toggle_filename_filter** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_toggle_filename_filter>`
  801. Custom icon for the toggle button for the filter for file names.
  802. .. rst-class:: classref-item-separator
  803. ----
  804. .. _class_FileDialog_theme_icon_toggle_hidden:
  805. .. rst-class:: classref-themeproperty
  806. :ref:`Texture2D<class_Texture2D>` **toggle_hidden** :ref:`๐Ÿ”—<class_FileDialog_theme_icon_toggle_hidden>`
  807. Custom icon for the toggle hidden button.
  808. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  809. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  810. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  811. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  812. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  813. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  814. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  815. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  816. .. |void| replace:: :abbr:`void (No return value.)`