ResourceSetting class is used for a resource name setting represented by a text box and a browse button.
class ResourceSetting : public Setting
|Returns the resource name stored in the setting.
ResourceSetting(Type identifier, const char *title, const char *name, const char *picker,
const ResourceDescriptor *descriptor, const char *subdir = nullptr, uint32 flags = 0);
|The setting's unique identifier.
|The title of the setting.
|The initial resource name for the setting.
|The title of the file picker dialog.
|A pointer to the resource descriptor for the type of resource that can be chosen with the setting.
|A subdirectory within the main resource directory to which the resource selection should be restricted.
|Flags that affect the behavior of the setting.
ResourceSetting class represents a setting that displays a text box and has a resource name value. A button is also displayed that causes a file picker dialog to appear when clicked by the user. When a file is chosen through the file picker, the returned resource name is the virtual path to the resource if the
flags parameter is 0. If the following value is specified for the
flags parameter, then the generic path to the resource is returned.
|Return the generic resource path instead of the virtual resource path.
|Show files in the Import folder instead of the Data folder.
ResourceSetting is a specific type of setting.