Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Expansions.Missions.Editor.MECrewAssignmentDialog Class Reference
Inheritance diagram for Expansions.Missions.Editor.MECrewAssignmentDialog:
KSP.UI.BaseCrewAssignmentDialog

Classes

class  VesselSituationManifest
 

Public Types

enum  CreateMode { CreateMode.Create, CreateMode.Edit }
 
enum  ManagementMode { ManagementMode.Vessel, ManagementMode.Global }
 
enum  TabEnum { TabEnum.Applicants, TabEnum.CreateEdit }
 

Public Member Functions

void Dismiss ()
 Destroy this dialog instance. More...
 
delegate void OkCallback (KerbalRoster crewRoster, VesselCrewManifest newCrew)
 
void RefreshCrewLists (List< VesselSituationManifest > vesselSituationManifests, bool setAsDefault, bool updateUI, Func< PartCrewManifest, bool > displayFilter=null)
 Called to initiate or refresh the gui contents. More...
 
MECrewAssignmentDialog Spawn (MissionCraft vessel, List< Crew > vesselCrew, OkCallback onDialogOk, Callback onDismiss)
 Creates a new instance of this dialog and initalize it. More...
 
MECrewAssignmentDialog Spawn (OkCallback onDialogOk, Callback onDismiss)
 Creates a new instance of this dialog in global mode and initalize it. More...
 
- Public Member Functions inherited from KSP.UI.BaseCrewAssignmentDialog
void ButtonClear ()
 
void ButtonFill ()
 
void ButtonReset ()
 
void ClearLists ()
 
VesselCrewManifest GetManifest (bool createClone=true)
 
void RefreshCrewLists (VesselCrewManifest crewManifest, bool setAsDefault, bool updateUI, Func< PartCrewManifest, bool > displayFilter=null)
 Called to initiate or refresh the gui contents. More...
 
void SetDefaultManifest (VesselCrewManifest manifest)
 Replaces the default manifest with the given one. The default manifest is used when pressing the Reset button. More...
 

Public Attributes

GameObject availableCrewTab
 Available crew members tab More...
 
CrewCreationDialog crewCreationDialog
 Crew creation dialog More...
 
int defaultRosterSize = 20
 Size of the default roster, used by the repopulate method More...
 
OkCallback OnDialogOk
 
Callback OnDismiss
 
ToggleGroup rosterToggleGroup
 
UIList scrollListTemp
 Scroll list that stores the displays the temporal kerbals More...
 
- Public Attributes inherited from KSP.UI.BaseCrewAssignmentDialog
UIList scrollListAvail
 
UIList scrollListCrew
 

Protected Member Functions

override CrewListItem AddItem (uint pUid, UIList list, ProtoCrewMember crew)
 
void AddVesselTitle (string text, Color textColor, object referenceObject)
 Adds a vessel title separator to the crew list More...
 
void ChangeKerbalEditorMode (CreateMode mode, CrewListItem entry)
 Change the kerbal editor mode (create/edit) More...
 
void CleanSelection ()
 
void CreateTempKerbalList ()
 Creates the temporal/applicants kerbal list More...
 
override void DropOnAvailList (UIList fromList, UIListItem insertItem, int insertIndex)
 
override void DropOnCrewList (UIList fromList, UIListItem insertItem, int insertIndex)
 
void DropOnTempList (UIList fromList, UIListItem insertItem, int insertIndex)
 
override KerbalRoster GetCurrentCrewRoster ()
 
void Hide ()
 
override void ListItemButtonClick (CrewListItem.ButtonTypes type, CrewListItem clickItem)
 
override void MoveCrewToAvail (UIList fromlist, UIList tolist, UIListItem itemToMove)
 
override void MoveCrewToEmptySeat (UIList fromlist, UIList tolist, UIListItem itemToMove, int index)
 
void OnButtonCancel ()
 
void OnButtonOk ()
 
void OnCrewEntrySelected (bool status)
 Triggered when a crew member is selected/deselected and updates the crew selection More...
 
void OnCrewMemberCreate (ProtoCrewMember kerbal)
 Triggered when the crew creation dialog finished the kerbal creation More...
 
void OnCrewMemberCreateDialogCancelled ()
 Triggered when the crew creation dialog is cancelled More...
 
void OnCrewSelectionChanged (CrewListItem entry)
 
override void Refresh ()
 
void RefreshCrewItem (CrewListItem cic, ProtoCrewMember crew)
 Refresh the UI values of a crew item More...
 
void RemoveCrewFromRoster (CrewListItem entry)
 Removes a kerbal from the roster and clean up the UI More...
 
override void SetCurrentCrewRoster (KerbalRoster newRoster)
 
void Show ()
 
void Start ()
 
- Protected Member Functions inherited from KSP.UI.BaseCrewAssignmentDialog
virtual void AddAvailItem (ProtoCrewMember crew, UIList list=null, CrewListItem.ButtonTypes type=CrewListItem.ButtonTypes.V)
 
virtual void AddAvailItem (ProtoCrewMember crew, out CrewListItem item, UIList list=null, CrewListItem.ButtonTypes type=CrewListItem.ButtonTypes.V)
 
void AddCrewItem (ProtoCrewMember crew, uint pUid)
 
void AddCrewItemEmpty (uint pUid, int index=-1)
 
void AddCrewListBorder (string text, Color textColor, bool expandHeight=false)
 
virtual void Awake ()
 
virtual void OnDestroy ()
 

Protected Attributes

KerbalRoster _currentCrewRoster
 
CrewListItem selectedEntry
 
UISkinDef skin
 
UISkinDefSO uiSkin
 
UIListItem widgetTitle
 
- Protected Attributes inherited from KSP.UI.BaseCrewAssignmentDialog
VesselCrewManifest defaultManifest
 
Sprite disabledCrewListSprite
 
bool listIsValid
 
VesselCrewManifest listManifest
 
UIListItem widgetBorder
 
CrewListItem widgetCrew
 
CrewListItem widgetCrewEmpty
 

Additional Inherited Members

- Static Public Attributes inherited from KSP.UI.BaseCrewAssignmentDialog
static EventData
< VesselCrewManifest
onCrewDialogChange = new EventData<VesselCrewManifest>("onCrewDialogChange")
 
- Static Protected Attributes inherited from KSP.UI.BaseCrewAssignmentDialog
static Color disabledColor = new Color(1, 1, 1, 0.5f)
 
- Properties inherited from KSP.UI.BaseCrewAssignmentDialog
KerbalRoster CurrentCrewRoster [get, set]
 
VesselCrewManifest CurrentManifestUnsafe [get]
 

Member Enumeration Documentation

Enumerator
Create 
Edit 
Enumerator
Vessel 
Global 
Enumerator
Applicants 
CreateEdit 

Member Function Documentation

override CrewListItem Expansions.Missions.Editor.MECrewAssignmentDialog.AddItem ( uint  pUid,
UIList  list,
ProtoCrewMember  crew 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

void Expansions.Missions.Editor.MECrewAssignmentDialog.AddVesselTitle ( string  text,
Color  textColor,
object  referenceObject 
)
inlineprotected

Adds a vessel title separator to the crew list

Parameters
text
textColor
referenceObjectReference object where we are building this section (Vessel or kerbal creation)
void Expansions.Missions.Editor.MECrewAssignmentDialog.ChangeKerbalEditorMode ( CreateMode  mode,
CrewListItem  entry 
)
inlineprotected

Change the kerbal editor mode (create/edit)

Parameters
modeNew mode
entryCurrent entry change
void Expansions.Missions.Editor.MECrewAssignmentDialog.CleanSelection ( )
inlineprotected
void Expansions.Missions.Editor.MECrewAssignmentDialog.CreateTempKerbalList ( )
inlineprotected

Creates the temporal/applicants kerbal list

void Expansions.Missions.Editor.MECrewAssignmentDialog.Dismiss ( )
inline

Destroy this dialog instance.

override void Expansions.Missions.Editor.MECrewAssignmentDialog.DropOnAvailList ( UIList  fromList,
UIListItem  insertItem,
int  insertIndex 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

override void Expansions.Missions.Editor.MECrewAssignmentDialog.DropOnCrewList ( UIList  fromList,
UIListItem  insertItem,
int  insertIndex 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

void Expansions.Missions.Editor.MECrewAssignmentDialog.DropOnTempList ( UIList  fromList,
UIListItem  insertItem,
int  insertIndex 
)
inlineprotected
override KerbalRoster Expansions.Missions.Editor.MECrewAssignmentDialog.GetCurrentCrewRoster ( )
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

void Expansions.Missions.Editor.MECrewAssignmentDialog.Hide ( )
inlineprotected
override void Expansions.Missions.Editor.MECrewAssignmentDialog.ListItemButtonClick ( CrewListItem.ButtonTypes  type,
CrewListItem  clickItem 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

override void Expansions.Missions.Editor.MECrewAssignmentDialog.MoveCrewToAvail ( UIList  fromlist,
UIList  tolist,
UIListItem  itemToMove 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

override void Expansions.Missions.Editor.MECrewAssignmentDialog.MoveCrewToEmptySeat ( UIList  fromlist,
UIList  tolist,
UIListItem  itemToMove,
int  index 
)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

delegate void Expansions.Missions.Editor.MECrewAssignmentDialog.OkCallback ( KerbalRoster  crewRoster,
VesselCrewManifest  newCrew 
)
void Expansions.Missions.Editor.MECrewAssignmentDialog.OnButtonCancel ( )
inlineprotected
void Expansions.Missions.Editor.MECrewAssignmentDialog.OnButtonOk ( )
inlineprotected
void Expansions.Missions.Editor.MECrewAssignmentDialog.OnCrewEntrySelected ( bool  status)
inlineprotected

Triggered when a crew member is selected/deselected and updates the crew selection

Parameters
status
void Expansions.Missions.Editor.MECrewAssignmentDialog.OnCrewMemberCreate ( ProtoCrewMember  kerbal)
inlineprotected

Triggered when the crew creation dialog finished the kerbal creation

Parameters
kerbal
void Expansions.Missions.Editor.MECrewAssignmentDialog.OnCrewMemberCreateDialogCancelled ( )
inlineprotected

Triggered when the crew creation dialog is cancelled

void Expansions.Missions.Editor.MECrewAssignmentDialog.OnCrewSelectionChanged ( CrewListItem  entry)
inlineprotected
override void Expansions.Missions.Editor.MECrewAssignmentDialog.Refresh ( )
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

void Expansions.Missions.Editor.MECrewAssignmentDialog.RefreshCrewItem ( CrewListItem  cic,
ProtoCrewMember  crew 
)
inlineprotected

Refresh the UI values of a crew item

Parameters
cic
crew
void Expansions.Missions.Editor.MECrewAssignmentDialog.RefreshCrewLists ( List< VesselSituationManifest vesselSituationManifests,
bool  setAsDefault,
bool  updateUI,
Func< PartCrewManifest, bool >  displayFilter = null 
)
inline

Called to initiate or refresh the gui contents.

void Expansions.Missions.Editor.MECrewAssignmentDialog.RemoveCrewFromRoster ( CrewListItem  entry)
inlineprotected

Removes a kerbal from the roster and clean up the UI

Parameters
entry
override void Expansions.Missions.Editor.MECrewAssignmentDialog.SetCurrentCrewRoster ( KerbalRoster  newRoster)
inlineprotectedvirtual

Reimplemented from KSP.UI.BaseCrewAssignmentDialog.

void Expansions.Missions.Editor.MECrewAssignmentDialog.Show ( )
inlineprotected
MECrewAssignmentDialog Expansions.Missions.Editor.MECrewAssignmentDialog.Spawn ( MissionCraft  vessel,
List< Crew vesselCrew,
OkCallback  onDialogOk,
Callback  onDismiss 
)
inline

Creates a new instance of this dialog and initalize it.

Parameters
vessel
vesselCrewCurrent crew of this vessel
onDialogOkCallback triggered when this dialog is closed
Returns
MECrewAssignmentDialog Expansions.Missions.Editor.MECrewAssignmentDialog.Spawn ( OkCallback  onDialogOk,
Callback  onDismiss 
)
inline

Creates a new instance of this dialog in global mode and initalize it.

Parameters
onDialogOk
Returns
void Expansions.Missions.Editor.MECrewAssignmentDialog.Start ( )
inlineprotected

Member Data Documentation

KerbalRoster Expansions.Missions.Editor.MECrewAssignmentDialog._currentCrewRoster
protected
GameObject Expansions.Missions.Editor.MECrewAssignmentDialog.availableCrewTab

Available crew members tab

CrewCreationDialog Expansions.Missions.Editor.MECrewAssignmentDialog.crewCreationDialog

Crew creation dialog

int Expansions.Missions.Editor.MECrewAssignmentDialog.defaultRosterSize = 20

Size of the default roster, used by the repopulate method

OkCallback Expansions.Missions.Editor.MECrewAssignmentDialog.OnDialogOk
Callback Expansions.Missions.Editor.MECrewAssignmentDialog.OnDismiss
ToggleGroup Expansions.Missions.Editor.MECrewAssignmentDialog.rosterToggleGroup
UIList Expansions.Missions.Editor.MECrewAssignmentDialog.scrollListTemp

Scroll list that stores the displays the temporal kerbals

CrewListItem Expansions.Missions.Editor.MECrewAssignmentDialog.selectedEntry
protected
UISkinDef Expansions.Missions.Editor.MECrewAssignmentDialog.skin
protected
UISkinDefSO Expansions.Missions.Editor.MECrewAssignmentDialog.uiSkin
protected
UIListItem Expansions.Missions.Editor.MECrewAssignmentDialog.widgetTitle
protected

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