Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | List of all members
FlagNameManager Class Reference

Contains the names and display names for the flag parts. Names are organized by orientation, structural type, and name type. More...

Public Types

enum  NameType { NameType.SizeName, NameType.DisplayName }
 The Type of the Name. Whether it's the Size or Display text. More...
 

Public Member Functions

List< string > DisplayNames (FlagOrientation flagOrientation, int structureType)
 Returns the names of the different variants, e.g., small panel, medium panel, large panel Normally assigned to UI_ChooseOption.portraitDisplay (for example) More...
 
 FlagNameManager (List< FlagMesh > flagMeshes=null)
 
bool HasSizeNames (FlagOrientation flagOrientation, int strutureType)
 Indicates if the requested orientation and structure types contain flag size names. More...
 
void Initialize (List< FlagMesh > flagMeshes)
 Initialize the Flag dictionary from the list of FlagMeshes. More...
 
List< string > SizeNames (FlagOrientation flagOrientation, int structureType)
 Returns the names of the different flag sizes, e.g., small, medium, large. Normally assigned to UI_ChooseOption.portraitOptions (for example) More...
 

Public Attributes

const int NON_STRUCTURAL_PART = 0
 Differentiates non structural parts. More...
 
const int STRUCTURAL_PART = 1000
 Differentiates structural parts. More...
 

Detailed Description

Contains the names and display names for the flag parts. Names are organized by orientation, structural type, and name type.

Member Enumeration Documentation

The Type of the Name. Whether it's the Size or Display text.

Enumerator
SizeName 
DisplayName 

Constructor & Destructor Documentation

FlagNameManager.FlagNameManager ( List< FlagMesh flagMeshes = null)
inline

Member Function Documentation

List<string> FlagNameManager.DisplayNames ( FlagOrientation  flagOrientation,
int  structureType 
)
inline

Returns the names of the different variants, e.g., small panel, medium panel, large panel Normally assigned to UI_ChooseOption.portraitDisplay (for example)

bool FlagNameManager.HasSizeNames ( FlagOrientation  flagOrientation,
int  strutureType 
)
inline

Indicates if the requested orientation and structure types contain flag size names.

void FlagNameManager.Initialize ( List< FlagMesh flagMeshes)
inline

Initialize the Flag dictionary from the list of FlagMeshes.

Parameters
flagMeshes
List<string> FlagNameManager.SizeNames ( FlagOrientation  flagOrientation,
int  structureType 
)
inline

Returns the names of the different flag sizes, e.g., small, medium, large. Normally assigned to UI_ChooseOption.portraitOptions (for example)

Member Data Documentation

const int FlagNameManager.NON_STRUCTURAL_PART = 0

Differentiates non structural parts.

const int FlagNameManager.STRUCTURAL_PART = 1000

Differentiates structural parts.


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