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

Public Member Functions

ulong GetSteamFileId ()
 Returns the steam fileId for this CraftEntry. Calling method should cater for Zero return value (not found). More...
 
void SetDirectoryController (DirectoryController directoryController)
 Required if you want the directory "highlight" behavior to occur on mouse over/out. Call after Create(). More...
 
void ShowPath (bool show)
 Tells the craft widget to display (or hide) the folder path to the craft file. Note, this is not the actual operating system path. This path starts at the game directory, and does not show the Ships/ or {editor}/ directories. More...
 
void Terminate ()
 
void UIUpdate ()
 
void UIUpdate (SteamCraftInfo steamCraftInfo)
 
void UIUpdateSteamField (SteamCraftInfo steamCraftInfo)
 

Static Public Member Functions

static CraftEntry Create (FileInfo fInfo, bool stock, Callback< CraftEntry > OnSelected)
 
static CraftEntry Create (FileInfo fInfo, bool stock, Callback< CraftEntry > OnSelected, bool steamItem, SteamCraftInfo steamCraftInfo)
 

Public Attributes

VersionCompareResult compatibility
 
string craftName
 
CraftProfileInfo craftProfileInfo
 Contains all the data sucked in from the loadmeta file. Has all the information needed by CraftEntry. More...
 
string fullFilePath
 
bool isStock
 
bool isValid
 
int partCount
 
int stageCount
 
SteamCraftInfo steamCraftInfo
 
bool steamItem
 
Texture2D thumbnail
 
string thumbURL
 

Protected Member Functions

void Init (FileInfo fInfo, bool stock)
 
void Init (FileInfo fInfo, bool stock, bool steamItem, SteamCraftInfo steamCraftInfo)
 
void onValueChanged (bool st)
 

Properties

ConfigNode configNode [get]
 ConfigNode for the ship represented by the the CraftEntry. Use craftProfileInfo instead if possible because it's better for performance. More...
 
ShipTemplate template [get]
 ShipTemplate for the ship represented by the the CraftEntry. Use craftProfileInfo instead if possible because it's better for performance. More...
 
Toggle Toggle [get]
 

Member Function Documentation

static CraftEntry KSP.UI.Screens.CraftEntry.Create ( FileInfo  fInfo,
bool  stock,
Callback< CraftEntry OnSelected 
)
inlinestatic
static CraftEntry KSP.UI.Screens.CraftEntry.Create ( FileInfo  fInfo,
bool  stock,
Callback< CraftEntry OnSelected,
bool  steamItem,
SteamCraftInfo  steamCraftInfo 
)
inlinestatic
ulong KSP.UI.Screens.CraftEntry.GetSteamFileId ( )
inline

Returns the steam fileId for this CraftEntry. Calling method should cater for Zero return value (not found).

Returns
Returns the file Id or Zero if not found.
void KSP.UI.Screens.CraftEntry.Init ( FileInfo  fInfo,
bool  stock 
)
inlineprotected
void KSP.UI.Screens.CraftEntry.Init ( FileInfo  fInfo,
bool  stock,
bool  steamItem,
SteamCraftInfo  steamCraftInfo 
)
inlineprotected
void KSP.UI.Screens.CraftEntry.onValueChanged ( bool  st)
inlineprotected
void KSP.UI.Screens.CraftEntry.SetDirectoryController ( DirectoryController  directoryController)
inline

Required if you want the directory "highlight" behavior to occur on mouse over/out. Call after Create().

void KSP.UI.Screens.CraftEntry.ShowPath ( bool  show)
inline

Tells the craft widget to display (or hide) the folder path to the craft file. Note, this is not the actual operating system path. This path starts at the game directory, and does not show the Ships/ or {editor}/ directories.

void KSP.UI.Screens.CraftEntry.Terminate ( )
inline
void KSP.UI.Screens.CraftEntry.UIUpdate ( )
inline
void KSP.UI.Screens.CraftEntry.UIUpdate ( SteamCraftInfo  steamCraftInfo)
inline
void KSP.UI.Screens.CraftEntry.UIUpdateSteamField ( SteamCraftInfo  steamCraftInfo)
inline

Member Data Documentation

VersionCompareResult KSP.UI.Screens.CraftEntry.compatibility
string KSP.UI.Screens.CraftEntry.craftName
CraftProfileInfo KSP.UI.Screens.CraftEntry.craftProfileInfo

Contains all the data sucked in from the loadmeta file. Has all the information needed by CraftEntry.

string KSP.UI.Screens.CraftEntry.fullFilePath
bool KSP.UI.Screens.CraftEntry.isStock
bool KSP.UI.Screens.CraftEntry.isValid
int KSP.UI.Screens.CraftEntry.partCount
int KSP.UI.Screens.CraftEntry.stageCount
SteamCraftInfo KSP.UI.Screens.CraftEntry.steamCraftInfo
bool KSP.UI.Screens.CraftEntry.steamItem
Texture2D KSP.UI.Screens.CraftEntry.thumbnail
string KSP.UI.Screens.CraftEntry.thumbURL

Property Documentation

ConfigNode KSP.UI.Screens.CraftEntry.configNode
get

ConfigNode for the ship represented by the the CraftEntry. Use craftProfileInfo instead if possible because it's better for performance.

ShipTemplate KSP.UI.Screens.CraftEntry.template
get

ShipTemplate for the ship represented by the the CraftEntry. Use craftProfileInfo instead if possible because it's better for performance.

Toggle KSP.UI.Screens.CraftEntry.Toggle
get

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