Tanoda
|
Public Member Functions | |
void | AddOnSaveListener (Callback< GameObject > listener) |
void | AddOnCancelListener (Callback listener) |
void | UpdateDirectoryContents (string selected="") |
void | SetFile (string path) |
void | Cancel () |
void | Save () |
Public Attributes | |
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... | |
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< GameObject > | OnSave |
Callback | OnCancel |
Called if the user cancels this action. More... | |
GameObject | selectedGo = null |
GameObject | selectedLine = null |
Definition at line 12 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.AddOnCancelListener | ( | Callback | listener | ) |
Add a callback when this window is canceled.
Definition at line 59 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.AddOnSaveListener | ( | Callback< GameObject > | listener | ) |
Add a callback when this window is dismissed due to 'Save' being called.
Definition at line 48 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.Cancel | ( | ) |
Cancel this dialog. Calling script is responsible for closing the modal window in the OnCancel
callback.
Definition at line 148 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.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 160 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.SetFile | ( | string | path | ) |
Definition at line 129 of file pb_ToolDialog.cs.
void GILES.Interface.pb_ToolDialog.UpdateDirectoryContents | ( | string | selected = "" | ) |
Update the contents in the scroll view with the available folders (and optionally files) in the currentDirectory
.
Definition at line 89 of file pb_ToolDialog.cs.
Button GILES.Interface.pb_ToolDialog.cancelButton |
Definition at line 18 of file pb_ToolDialog.cs.
string GILES.Interface.pb_ToolDialog.currentDirectory |
The directory currently being inspected.
Definition at line 27 of file pb_ToolDialog.cs.
InputField GILES.Interface.pb_ToolDialog.directoryCrumbsField |
The input field that shows the directory path.
Definition at line 21 of file pb_ToolDialog.cs.
pb_GUIStyle GILES.Interface.pb_ToolDialog.evenRowStyle |
Definition at line 33 of file pb_ToolDialog.cs.
InputField GILES.Interface.pb_ToolDialog.fileInputField |
The input field that allows user to type in file or folder name.
Definition at line 24 of file pb_ToolDialog.cs.
pb_GUIStyle GILES.Interface.pb_ToolDialog.oddRowStyle |
pb_GUIStyle to apply to odd and even rows.
Definition at line 33 of file pb_ToolDialog.cs.
Callback GILES.Interface.pb_ToolDialog.OnCancel |
Called if the user cancels this action.
Definition at line 40 of file pb_ToolDialog.cs.
Callback<GameObject> GILES.Interface.pb_ToolDialog.OnSave |
Called when the user hits the 'Save' button. The passed variable is not checked for validity.
Definition at line 37 of file pb_ToolDialog.cs.
pb_SaveDialogButton GILES.Interface.pb_ToolDialog.rowButtonPrefab |
The prefab to populate scrollview contents with.
Definition at line 30 of file pb_ToolDialog.cs.
Button GILES.Interface.pb_ToolDialog.saveButton |
Save and cancel buttons. onClick
delegates will automatically be added by this script.
Definition at line 18 of file pb_ToolDialog.cs.
GameObject GILES.Interface.pb_ToolDialog.scrollContent |
Where to put current directory folder buttons.
Definition at line 15 of file pb_ToolDialog.cs.
GameObject GILES.Interface.pb_ToolDialog.selectedGo = null |
Definition at line 42 of file pb_ToolDialog.cs.
GameObject GILES.Interface.pb_ToolDialog.selectedLine = null |
Definition at line 43 of file pb_ToolDialog.cs.