Tanoda
GILES.Interface.pb_ToolDialog Class Reference
Inheritance diagram for GILES.Interface.pb_ToolDialog:

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
 

Detailed Description

Definition at line 12 of file pb_ToolDialog.cs.

Member Function Documentation

◆ AddOnCancelListener()

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.

◆ AddOnSaveListener()

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.

◆ Cancel()

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.

◆ Save()

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.

◆ SetFile()

void GILES.Interface.pb_ToolDialog.SetFile ( string  path)

Definition at line 129 of file pb_ToolDialog.cs.

◆ UpdateDirectoryContents()

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.

Member Data Documentation

◆ cancelButton

Button GILES.Interface.pb_ToolDialog.cancelButton

Definition at line 18 of file pb_ToolDialog.cs.

◆ currentDirectory

string GILES.Interface.pb_ToolDialog.currentDirectory

The directory currently being inspected.

Definition at line 27 of file pb_ToolDialog.cs.

◆ directoryCrumbsField

InputField GILES.Interface.pb_ToolDialog.directoryCrumbsField

The input field that shows the directory path.

Definition at line 21 of file pb_ToolDialog.cs.

◆ evenRowStyle

pb_GUIStyle GILES.Interface.pb_ToolDialog.evenRowStyle

Definition at line 33 of file pb_ToolDialog.cs.

◆ fileInputField

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.

◆ oddRowStyle

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.

◆ OnCancel

Callback GILES.Interface.pb_ToolDialog.OnCancel

Called if the user cancels this action.

Definition at line 40 of file pb_ToolDialog.cs.

◆ OnSave

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.

◆ rowButtonPrefab

pb_SaveDialogButton GILES.Interface.pb_ToolDialog.rowButtonPrefab

The prefab to populate scrollview contents with.

Definition at line 30 of file pb_ToolDialog.cs.

◆ saveButton

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.

◆ scrollContent

GameObject GILES.Interface.pb_ToolDialog.scrollContent

Where to put current directory folder buttons.

Definition at line 15 of file pb_ToolDialog.cs.

◆ selectedGo

GameObject GILES.Interface.pb_ToolDialog.selectedGo = null

Definition at line 42 of file pb_ToolDialog.cs.

◆ selectedLine

GameObject GILES.Interface.pb_ToolDialog.selectedLine = null

Definition at line 43 of file pb_ToolDialog.cs.


The documentation for this class was generated from the following file: