Annotation Interface File
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.booleanDeprecated.No longer needed.Deprecated.booleanDeprecated.No longer needed.booleanSelect a directory instead of a file.A human-readable description for thetypes()filter, e.g.Deprecated.booleanDeprecated.No longer needed.Deprecated.booleanDeprecated.translation keys will be translated by default.Deprecated.booleanDeprecated.No longer needed.String[]The file extensions to filter the dialog by, e.g.
-
Element Details
-
title
String title -
titleTranslation
Deprecated.No longer needed. OneConfig now checks whether the given title is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the title and remove this flag.- Default:
false
-
titleKey
Deprecated.- Default:
""
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.No longer needed. OneConfig now checks whether the given description is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the description and remove this flag.- Default:
false
-
descriptionKey
Deprecated.- Default:
""
-
icon
String icon- Default:
""
-
types
String[] typesThe file extensions to filter the dialog by, e.g.{".png", ".jpg"}. Entries may be written as".png","png"or"*.png"; they are all normalised to the*.extform tinyfd expects. Leave empty to allow any file.- Default:
{}
-
filterName
String filterNameA human-readable description for thetypes()filter, e.g."Images".- Default:
""
-
directory
boolean directorySelect a directory instead of a file. Whentrue,types()is ignored.- Default:
false
-
category
String category- Default:
"General"
-
categoryKey
Deprecated.- Default:
""
-
categoryTranslation
Deprecated.No longer needed. OneConfig now checks whether the given category is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the category and remove this flag.- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryKey
Deprecated.- Default:
""
-
subcategoryTranslation
Deprecated.translation keys will be translated by default.- Default:
false
-
placeholder
- Default:
"oneconfig.filepicker.placeholder"
-
placeholderTranslation
Deprecated.No longer needed. OneConfig now checks whether the given placeholder is a translation key present in the active language, and translates it automatically when it is. Pass the translation key directly as the placeholder and remove this flag.- Default:
false
-
placeholderKey
Deprecated.- Default:
""
-