GUIFilePicker

From Virtual World Web Wiki
Jump to: navigation, search

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