Difference between revisions of "GUIFilePicker"
From Virtual World Web Wiki
(Documentation for the GUIFilePicker class) |
(Documentation for the GUIFilePicker class) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Component representing a text field you can use to browse for files from | Component representing a text field you can use to browse for files from | ||
− | *'''Inherits class: [[ | + | *'''Inherits class: [[GUIPanel]]''' |
* This is a JavaScript visible object | * This is a JavaScript visible object | ||
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIFilePicker Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ===Remarks <nowiki>[</nowiki>[{{fullurl:GUIFilePicker Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
Line 7: | Line 7: | ||
===Properties=== | ===Properties=== | ||
− | |||
− | |||
− | |||
− | |||
:{{CSharp|GUIButton Button {get;} }} | :{{CSharp|GUIButton Button {get;} }} | ||
:: | :: |
Latest revision as of 12:11, 30 April 2019
Component representing a text field you can use to browse for files from
- Inherits class: GUIPanel
- This is a JavaScript visible object
Remarks [edit]
Properties
- GUIButton Button {get;}
- Reference to the browse button
- bool CanReset {get; set;}
- Whether or not to allow the reset button to appear
- bool Enabled {get; set;}
- string FileFilter {get; set;}
- The file filter to use for which files to suggest to the user
- string FullPath {get; set;}
- Gets or sets the server-ready path for the file
- string InitialDir {get; set;}
- The initial directory to start searching form
- string Path {get; set;}
- The displayed value of the PathField
- GUITextField PathField {get;}
- Reference to the text field that holds the file path
- float Progress {get; set;}
- Sets a percentage progress to display for the file
- GUIPanel ProgressBar {get;}
- Reference to the containing progress bar for file uploads
- GUIPanel ProgressCompleted {get;}
- Reference to the completed part of the progress bar
- GUIPanel ProgressRemaining {get;}
- Reference to the remaining part of the progress bar
- GUIButton ResetButton {get;}
- Reference to the reset button to clear the current file
- ResourceValue ResourceUri {get; set;}
- The ResourceUri of the file (can be set with URLs or full ResourceValues)
Events
- OnFileChosen()
- Event fired when the user picks a new file
Methods
- void Reset()
- Resets the file picker to no file selected