Tanoda
|
Public Member Functions | |
void | AddOnSaveListener (Callback< string > listener) |
void | AddOnCancelListener (Callback listener) |
void | SetDirectory (string directory) |
void | UpdateDirectoryContents () |
void | OpenParentDirectory () |
void | SetFile (string path) |
void | Back () |
void | Forward () |
void | Cancel () |
void | Save () |
Static Public Member Functions | |
static IEnumerable< string > | GetFiles (string path, string[] searchPatterns, SearchOption searchOption=SearchOption.TopDirectoryOnly) |
Public Attributes | |
bool | limitToCourses = false |
Only show training files. More... | |
GameObject | scrollContent |
Where to put current directory folder buttons. More... | |
Button | saveButton |
Save and cancel buttons. onClick delegates will automatically be added by this script. More... | |
Button | cancelButton |
InputField | directoryCrumbsField |
The input field that shows the directory path. More... | |
InputField | fileInputField |
The input field that allows user to type in file or folder name. More... | |
string | currentDirectory |
The directory currently being inspected. More... | |
Button | backButton |
Buttons to navigate folder structures. More... | |
Button | forwardButton |
Button | upButton |
pb_SaveDialogButton | rowButtonPrefab |
The prefab to populate scrollview contents with. More... | |
pb_GUIStyle | oddRowStyle |
pb_GUIStyle to apply to odd and even rows. More... | |
pb_GUIStyle | evenRowStyle |
Callback< string > | OnSave |
Callback | OnCancel |
Called if the user cancels this action. More... | |
CourseType | manualLogonCourseType = CourseType.Normal |
Properties | |
bool | isFileBrowser [get, set] |
string | filePattern [get, set] |
If isFileBrowser is true, this string my be used to filter file results (see https://msdn.microsoft.com/en-us/library/wz42302f(v=vs.110).aspx). More... | |
Implements a navigable directory window.
Definition at line 16 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.AddOnCancelListener | ( | Callback | listener | ) |
Add a callback when this window is canceled.
Definition at line 83 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.AddOnSaveListener | ( | Callback< string > | listener | ) |
Add a callback when this window is dismissed due to 'Save' being called.
Definition at line 72 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.Back | ( | ) |
If OpenParentDirectory() has been called, this opens the Directory that it came from.
Definition at line 361 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.Cancel | ( | ) |
Cancel this dialog. Calling script is responsible for closing the modal window in the OnCancel
callback.
Definition at line 385 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.Forward | ( | ) |
Definition at line 371 of file pb_FileDialog.cs.
|
static |
Definition at line 315 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.OpenParentDirectory | ( | ) |
Definition at line 342 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.Save | ( | ) |
Exit dialog and call OnSave
with the current file path. Calling script is responsible for closing the modal window in the OnCancel
callback.
Definition at line 397 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.SetDirectory | ( | string | directory | ) |
Set the currently displayed directory.
Definition at line 121 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.SetFile | ( | string | path | ) |
Definition at line 352 of file pb_FileDialog.cs.
void GILES.Interface.pb_FileDialog.UpdateDirectoryContents | ( | ) |
Update the contents in the scroll view with the available folders (and optionally files) in the currentDirectory
.
Definition at line 144 of file pb_FileDialog.cs.
Button GILES.Interface.pb_FileDialog.backButton |
Buttons to navigate folder structures.
Definition at line 41 of file pb_FileDialog.cs.
Button GILES.Interface.pb_FileDialog.cancelButton |
Definition at line 29 of file pb_FileDialog.cs.
string GILES.Interface.pb_FileDialog.currentDirectory |
The directory currently being inspected.
Definition at line 38 of file pb_FileDialog.cs.
InputField GILES.Interface.pb_FileDialog.directoryCrumbsField |
The input field that shows the directory path.
Definition at line 32 of file pb_FileDialog.cs.
pb_GUIStyle GILES.Interface.pb_FileDialog.evenRowStyle |
Definition at line 47 of file pb_FileDialog.cs.
InputField GILES.Interface.pb_FileDialog.fileInputField |
The input field that allows user to type in file or folder name.
Definition at line 35 of file pb_FileDialog.cs.
Button GILES.Interface.pb_FileDialog.forwardButton |
Definition at line 41 of file pb_FileDialog.cs.
bool GILES.Interface.pb_FileDialog.limitToCourses = false |
Only show training files.
Definition at line 23 of file pb_FileDialog.cs.
CourseType GILES.Interface.pb_FileDialog.manualLogonCourseType = CourseType.Normal |
Definition at line 67 of file pb_FileDialog.cs.
pb_GUIStyle GILES.Interface.pb_FileDialog.oddRowStyle |
pb_GUIStyle to apply to odd and even rows.
Definition at line 47 of file pb_FileDialog.cs.
Callback GILES.Interface.pb_FileDialog.OnCancel |
Called if the user cancels this action.
Definition at line 65 of file pb_FileDialog.cs.
Callback<string> GILES.Interface.pb_FileDialog.OnSave |
Called when the user hits the 'Save' button. The passed variable is not checked for validity.
Definition at line 62 of file pb_FileDialog.cs.
pb_SaveDialogButton GILES.Interface.pb_FileDialog.rowButtonPrefab |
The prefab to populate scrollview contents with.
Definition at line 44 of file pb_FileDialog.cs.
Button GILES.Interface.pb_FileDialog.saveButton |
Save and cancel buttons. onClick
delegates will automatically be added by this script.
Definition at line 29 of file pb_FileDialog.cs.
GameObject GILES.Interface.pb_FileDialog.scrollContent |
Where to put current directory folder buttons.
Definition at line 26 of file pb_FileDialog.cs.
Button GILES.Interface.pb_FileDialog.upButton |
Definition at line 41 of file pb_FileDialog.cs.
|
getset |
If isFileBrowser
is true, this string my be used to filter file results (see https://msdn.microsoft.com/en-us/library/wz42302f(v=vs.110).aspx).
Definition at line 56 of file pb_FileDialog.cs.
|
getset |
If true, files as well as folders will be displayed. If false, only folders will be shown. This also affects the string returned by OnSave
callback.
Definition at line 51 of file pb_FileDialog.cs.