Kerbal Space Program
1.12.4
|
Classes | |
class | ActiveCrewItem |
Class to hold the Active Crew. Kerbal or KerbalEVA reference must be set. If kerbal is set - its an IVA kerbal. More... | |
Public Types | |
enum | GalleryMode { GalleryMode.IVA, GalleryMode.EVA } |
Public Member Functions | |
void | Awake () |
void | ClearPortraits () |
void | DespawnInactivePortraits () |
void | DespawnPortrait (Kerbal crewMember) |
Destroys the portrait for the given crewmember, if it exists More... | |
void | DespawnPortrait (KerbalEVA crewMember) |
Destroys the portrait for the given crewmember, if it exists More... | |
void | DespawnPortrait (KerbalPortrait portrait) |
int | GetMaxGalleryCapacity (float leftEdge, float padding, float portraitWidth) |
KerbalPortrait | GetPortrait (Kerbal crew) |
KerbalPortrait | GetPortrait (KerbalEVA crew) |
void | HoverArea_onPointerEnter (XSelectable arg1, PointerEventData arg2) |
void | HoverArea_onPointerExit (XSelectable arg1, PointerEventData arg2) |
void | onBtnAddSlot () |
void | onBtnLeft () |
void | onBtnRemSlot () |
void | onBtnRight () |
void | OnCameraChange (CameraManager.CameraMode m) |
void | onCrewTransferred (GameEvents.HostedFromToAction< ProtoCrewMember, Part > data) |
void | OnDestroy () |
void | onIVAOverlayDismiss () |
Turns off the IVA Overlay button and refreshes the portraits for the active vessel after a 2 frame delay. Only works in Portrait Gallery Mode of IVA. More... | |
void | onIVAOverlayPress (bool st) |
Toggles the IVA overlay On or Off. Only works in Portrait Gallery Mode of IVA. More... | |
void | OnKerbalLevelUp (ProtoCrewMember pcm) |
void | onVesselWasModified (Vessel v) |
KerbalPortrait | RegisterActiveCrew (Kerbal crewMember) |
Register Active Kerbal crew Member. Adds them to ActiveCrew and spawns their portrait. More... | |
KerbalPortrait | RegisterActiveCrew (KerbalEVA crewMember) |
Register Active Kerbal crew Member. Spawns their portrait. More... | |
KerbalPortrait | RegisterActiveCrew (KerbalEVA crewMember, bool spawnPortrait) |
Register Active Kerbal crew Member. Spawns their portrait - ONLY if spawnPortrait is true. More... | |
void | SetActivePortraitsForVessel (Vessel v) |
Sets the Portrait Gallery Mode to EVA or IVA based on the Vessel passed in. Will then spawn and set portraits for kerbals on the vessel. More... | |
KerbalPortrait | SpawnPortrait (Kerbal crewMember) |
Spawn a KerbalPortrait for crewMember and add to Portraits List. More... | |
KerbalPortrait | SpawnPortrait (KerbalEVA crewMember) |
Spawn a KerbalPortrait for crewMember and add to Portraits List. More... | |
void | Start () |
void | StartRefresh (Vessel v) |
Starts a delayed check which only removes kerbals that no longer exist before refreshing the gallery. More... | |
void | StartReset (Vessel v) |
Starts a delayed check, removing all kerbals from the gallery, then refreshing it. More... | |
void | UIControlsUpdate () |
void | UnregisterActiveCrew (Kerbal crewMember) |
Despawn portrait and remove from ActiveCrew. More... | |
void | UnregisterActiveCrew (KerbalEVA crewMember) |
Despawn portrait More... | |
void | Update () |
void | UpdatePortrait (Kerbal kerbal) |
void | UpdatePortrait (KerbalEVA kerbal) |
void | UpdatePortraitScrolling (int pIndex) |
Static Public Member Functions | |
static void | ToggleIVAOverlay () |
Toggle the IVAOverlay mode Only works in Portrait Gallery Mode of IVA. More... | |
Public Attributes | |
KerbalPortrait | portraitPrefab |
Static Public Attributes | |
static int | GalleryCapacity = 3 |
static int | GalleryMaxSize = 3 |
Protected Attributes | |
List< ActiveCrewItem > | activeCrew = new List<ActiveCrewItem>() |
Lists all crewmembers which can be portraited at any given time More... | |
bool | areaHover |
Button | btnAddSlot |
TMPro.TextMeshProUGUI | btnAddText |
Button | btnLeft |
Button | btnRemSlot |
TMPro.TextMeshProUGUI | btnRemText |
Button | btnRight |
bool | dirty = false |
int | firstPortrait = 0 |
XSelectable | hoverArea |
InternalSpaceOverlay | ivaOverlay |
Toggle | IVAOverlayButton |
CameraManager.CameraMode | lastMode |
float | leftEdgePadding = 200f |
float | leftScreenEdge = 0.5f |
UIPanelTweener | portraitContainer |
float | PortraitHeight = 156f |
RectTransform | portraitLayoutParent |
List< KerbalPortrait > | portraits = new List<KerbalPortrait>() |
Lists the crew portraits currently displayed (may be only a subset of active crew) More... | |
LayoutElement | portraitViewport |
float | PortraitWidth = 128f |
Coroutine | refreshCoroutine |
Coroutine | resetCoroutine |
float | usableSpace |
Properties | |
List< Kerbal > | ActiveCrew [get, set] |
This is Deprecated. Please use ActiveCrewItems. More... | |
List< ActiveCrewItem > | ActiveCrewItems [get, set] |
List of the Active Crew. More... | |
bool | ContainerTransitioning [get] |
Indicates if the Portrait Container is transitioning (scrolling) or not. More... | |
static KerbalPortraitGallery | Instance [get, set] |
static bool | isIVAOverlayVisible [get] |
Is the IVAOverlay currently visible More... | |
int | lastPortrait [get] |
GalleryMode | portraitGalleryMode [get, set] |
GalleryMode | PortraitGalleryMode [get] |
The current Portrait Gallery Mode More... | |
List< KerbalPortrait > | Portraits [get, set] |
|
inline |
|
inline |
|
inline |
< also handles the remove
|
inline |
Destroys the portrait for the given crewmember, if it exists
crewMember |
|
inline |
Destroys the portrait for the given crewmember, if it exists
crewMember |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Turns off the IVA Overlay button and refreshes the portraits for the active vessel after a 2 frame delay. Only works in Portrait Gallery Mode of IVA.
|
inline |
Toggles the IVA overlay On or Off. Only works in Portrait Gallery Mode of IVA.
st |
|
inline |
|
inline |
|
inline |
Register Active Kerbal crew Member. Adds them to ActiveCrew and spawns their portrait.
crewMember |
|
inline |
|
inline |
Register Active Kerbal crew Member. Spawns their portrait - ONLY if spawnPortrait is true.
crewMember | KerbalEVA reference |
spawnPortrait | true to spawn and return the KerbalPortrait. False - will not spawn the KerbalPortrait. |
|
inline |
Sets the Portrait Gallery Mode to EVA or IVA based on the Vessel passed in. Will then spawn and set portraits for kerbals on the vessel.
v |
< start up however many portraits will fit in the gallery at once. Leave not-shown IVA spaces de-spawned until they are needed
< spawn portraits for crews which don't have one yet
|
inline |
|
inline |
|
inline |
|
inline |
Starts a delayed check which only removes kerbals that no longer exist before refreshing the gallery.
|
inline |
Starts a delayed check, removing all kerbals from the gallery, then refreshing it.
|
inlinestatic |
Toggle the IVAOverlay mode Only works in Portrait Gallery Mode of IVA.
|
inline |
|
inline |
Despawn portrait and remove from ActiveCrew.
crewMember |
|
inline |
Despawn portrait
crewMember |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Lists all crewmembers which can be portraited at any given time
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
KerbalPortrait KSP.UI.Screens.Flight.KerbalPortraitGallery.portraitPrefab |
|
protected |
Lists the crew portraits currently displayed (may be only a subset of active crew)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
getset |
This is Deprecated. Please use ActiveCrewItems.
|
getset |
List of the Active Crew.
|
get |
Indicates if the Portrait Container is transitioning (scrolling) or not.
|
staticgetset |
|
staticget |
Is the IVAOverlay currently visible
|
getprotected |
|
getsetprotected |
|
get |
The current Portrait Gallery Mode
|
getset |