Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
KSP.UI.Screens.EditorSaveFolderItem Class Reference
Inheritance diagram for KSP.UI.Screens.EditorSaveFolderItem:

Public Member Functions

void Create (UICraftSaveFlyoutController controller, string saveFolderPath, string displayName)
 Create a folder item in the UI. More...
 
bool IsPath (string path)
 Indicates if this item represents the path provided. More...
 
void MouseInput_OnClick ()
 Save the craft or open the file-browser More...
 
void MouseInput_SelectDefault (bool value)
 Set the default save folder to this one. More...
 
void SaveCraft ()
 Saves the craft to the saveFolderPath. Saves the thumbnail with a filename that reflects the craft location. More...
 
void SetPath (string fullPath)
 Sets the actual file-system path that is used for saving the craft. This is not visible to the player. More...
 
void SetPathDisplay (string displayName)
 Sets the "save path" that the user sees for this item when the flyout is accessed. More...
 

Public Attributes

Button buttonSave = null
 
bool IsOpenFileBrowserRequest
 Indicates that this item is used to open the file browser, and does NOT hold a folder path. More...
 
string saveFolderPath
 
TMPro.TextMeshProUGUI textName = null
 
Toggle toggleSetDefault = null
 

Member Function Documentation

void KSP.UI.Screens.EditorSaveFolderItem.Create ( UICraftSaveFlyoutController  controller,
string  saveFolderPath,
string  displayName 
)
inline

Create a folder item in the UI.

Parameters
controllerReference to the controller script
saveFolderPathThe complete folder path for this item represents
displayNameThe visible name for this item represents
bool KSP.UI.Screens.EditorSaveFolderItem.IsPath ( string  path)
inline

Indicates if this item represents the path provided.

Parameters
pathA fully qualified directory path
void KSP.UI.Screens.EditorSaveFolderItem.MouseInput_OnClick ( )
inline

Save the craft or open the file-browser

void KSP.UI.Screens.EditorSaveFolderItem.MouseInput_SelectDefault ( bool  value)
inline

Set the default save folder to this one.

void KSP.UI.Screens.EditorSaveFolderItem.SaveCraft ( )
inline

Saves the craft to the saveFolderPath. Saves the thumbnail with a filename that reflects the craft location.

void KSP.UI.Screens.EditorSaveFolderItem.SetPath ( string  fullPath)
inline

Sets the actual file-system path that is used for saving the craft. This is not visible to the player.

Parameters
fullPathThe complete file-system path, e.g., D:/KSP/saves/my game/Ships/VAB
void KSP.UI.Screens.EditorSaveFolderItem.SetPathDisplay ( string  displayName)
inline

Sets the "save path" that the user sees for this item when the flyout is accessed.

Member Data Documentation

Button KSP.UI.Screens.EditorSaveFolderItem.buttonSave = null
bool KSP.UI.Screens.EditorSaveFolderItem.IsOpenFileBrowserRequest

Indicates that this item is used to open the file browser, and does NOT hold a folder path.

string KSP.UI.Screens.EditorSaveFolderItem.saveFolderPath
TMPro.TextMeshProUGUI KSP.UI.Screens.EditorSaveFolderItem.textName = null
Toggle KSP.UI.Screens.EditorSaveFolderItem.toggleSetDefault = null

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