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

Public Member Functions

void ChangeSelectedPart (uint partID)
 Set the inital selected part More...
 
override void Clean ()
 Clean this GAP Display More...
 
override void Destroy ()
 Destroy this GAP Display More...
 
override void Setup (Camera displayCamera, int layerMask)
 Setup the Action Pane display More...
 
void SetupVessel (MissionCraft craft, VesselSituation situation, MEGUIParameterVessel parameter)
 Setup the vessel used in this display More...
 
- Public Member Functions inherited from Expansions.Missions.Editor.ActionPaneDisplay
Button AddToolbarButton (string id, string icon, string toolTip)
 Creates a gap toolbar button control More...
 
Toggle AddToolbarToggle (string id, string icon, string toolTip, bool startState=false)
 Creates a gap toolbar toggle control More...
 
void ClearToolbar ()
 Clean the GAP tool bar controls More...
 
bool GetMousePointOnCamera (Vector2 mousePosition, Camera canvasCamera, ref Vector2 point)
 Gets the mouse position relative to the GAP display camera, used for ray cast objects displayed in the render texture More...
 
Button GetToolbarButton (string id)
 Get a tool bar button More...
 
virtual void OnBeginDrag (PointerEventData eventData)
 Event triggered on drag begin More...
 
override void OnDeselect (BaseEventData eventData)
 Event triggered on UI selectable deselect More...
 
virtual void OnDisplayClickUp (RaycastHit?hit)
 
virtual void OnDisplayDragEnd (RaycastHit?hit)
 
virtual void OnDrag (PointerEventData eventData)
 Event triggered on pointer drag More...
 
virtual void OnEndDrag (PointerEventData eventData)
 Event triggered on drag end More...
 
virtual void OnPointerClick (PointerEventData eventData)
 Event triggered on pointer click this gameobject rect More...
 
override void OnPointerEnter (PointerEventData eventData)
 Event triggered on pointer enter this gameobject rect More...
 
override void OnPointerExit (PointerEventData eventData)
 Event triggered on pointer exit this gameobject rect More...
 
override void OnPointerUp (PointerEventData eventData)
 
override void OnSelect (BaseEventData eventData)
 Event triggered on UI selecteable select More...
 
bool Raycast (Vector3 cameraPoint, out RaycastHit hit, int layerMask=-1)
 Help function, makes a ray cast from the supplied camera point using the gap display camera, layer mask and hit distance values More...
 
void UpdateDisplayArea ()
 Updates the render texture display area maintaining the game aspect ratio More...
 

Protected Member Functions

void ChangeHoverPart (Part part)
 
void ChangeSelectedPart (Part part)
 
void DestroyCurrentVessel ()
 
void HideFairings (ShipConstruct vessel)
 Disable the fairings covers and color changer More...
 
void HideVessel (ShipConstruct ship)
 
void LoadVessel (MissionCraft vessel, VesselSituation situation)
 
override void OnDisplayClick (RaycastHit?hit)
 
override void OnMouseOver (Vector2 position)
 
void OnNextVessel ()
 
void OnPartCategoryChanged (PartCategories category, bool state)
 
void OnPrevVessel ()
 
void ShowFairings (ShipConstruct vessel)
 
void ShowVessel (ShipConstruct ship)
 
void UpdateFrameFooter ()
 
- Protected Member Functions inherited from Expansions.Missions.Editor.ActionPaneDisplay
override void Awake ()
 
void ClearToolbarEvents ()
 Clear the tool bar controls events More...
 
virtual void OnDisplayDrag (PointerEventData.InputButton button, Vector2 delta)
 
virtual void Update ()
 

Protected Attributes

MissionCraft currentCraft
 
Part currentHoveredPart
 
Part currentSelectedPart
 
ShipConstruct currentVessel
 
bool isReady = false
 
MEGUIParameterVessel parameter
 
GAPVesselCamera vesselCamera
 
GameObject vesselCameraSetup
 
GAPUtil_VesselFrame vesselFrame
 
- Protected Attributes inherited from Expansions.Missions.Editor.ActionPaneDisplay
Camera displayCamera
 
RenderTexture displayTexture
 
float hitDistance
 
bool isDragging = false
 
bool isMouseOver = false
 
bool isSelected = false
 
int layerMask
 
DictionaryValueList< string,
MonoBehaviour > 
toolbarControls
 

Additional Inherited Members

- Public Attributes inherited from Expansions.Missions.Editor.ActionPaneDisplay
RaycastEvent DisplayClick
 Event that triggers on the display click, sends a hitinfo if an object was clicked on More...
 
RaycastEvent DisplayClickUp
 Event that triggers on the display click when the button is up, sends a hitinfo if an object was clicked on More...
 
DragEvent DisplayDrag
 Event that triggers a mouse drag, sends the button and mouse delta information More...
 
RaycastEvent DisplayDragEnd
 Event that triggers on the display click when the button is up, sends a hitinfo if an object was clicked on More...
 
RawImage displayImage
 Raw image that displays the render texture More...
 
MouseOverEvent MouseOver
 Event that trigger when the mouse is over the GAP display image More...
 
RectTransform rectTransform
 Rect transform cache More...
 
- Properties inherited from Expansions.Missions.Editor.ActionPaneDisplay
RenderTexture DisplayTexture [get]
 

Member Function Documentation

void Expansions.Missions.Editor.GAPVesselDisplay.ChangeHoverPart ( Part  part)
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.ChangeSelectedPart ( uint  partID)
inline

Set the inital selected part

Parameters
partID
void Expansions.Missions.Editor.GAPVesselDisplay.ChangeSelectedPart ( Part  part)
inlineprotected
override void Expansions.Missions.Editor.GAPVesselDisplay.Clean ( )
inlinevirtual

Clean this GAP Display

Reimplemented from Expansions.Missions.Editor.ActionPaneDisplay.

override void Expansions.Missions.Editor.GAPVesselDisplay.Destroy ( )
inlinevirtual

Destroy this GAP Display

Reimplemented from Expansions.Missions.Editor.ActionPaneDisplay.

void Expansions.Missions.Editor.GAPVesselDisplay.DestroyCurrentVessel ( )
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.HideFairings ( ShipConstruct  vessel)
inlineprotected

Disable the fairings covers and color changer

Parameters
vessel
void Expansions.Missions.Editor.GAPVesselDisplay.HideVessel ( ShipConstruct  ship)
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.LoadVessel ( MissionCraft  vessel,
VesselSituation  situation 
)
inlineprotected
override void Expansions.Missions.Editor.GAPVesselDisplay.OnDisplayClick ( RaycastHit?  hit)
inlineprotectedvirtual
override void Expansions.Missions.Editor.GAPVesselDisplay.OnMouseOver ( Vector2  position)
inlineprotectedvirtual
void Expansions.Missions.Editor.GAPVesselDisplay.OnNextVessel ( )
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.OnPartCategoryChanged ( PartCategories  category,
bool  state 
)
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.OnPrevVessel ( )
inlineprotected
override void Expansions.Missions.Editor.GAPVesselDisplay.Setup ( Camera  displayCamera,
int  layerMask 
)
inlinevirtual

Setup the Action Pane display

Parameters
displayCameraCamera used to display the Action Pane contents
maskLayer mask used for the click raycast

Reimplemented from Expansions.Missions.Editor.ActionPaneDisplay.

void Expansions.Missions.Editor.GAPVesselDisplay.SetupVessel ( MissionCraft  craft,
VesselSituation  situation,
MEGUIParameterVessel  parameter 
)
inline

Setup the vessel used in this display

Parameters
craftCraft config node
void Expansions.Missions.Editor.GAPVesselDisplay.ShowFairings ( ShipConstruct  vessel)
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.ShowVessel ( ShipConstruct  ship)
inlineprotected
void Expansions.Missions.Editor.GAPVesselDisplay.UpdateFrameFooter ( )
inlineprotected

Member Data Documentation

MissionCraft Expansions.Missions.Editor.GAPVesselDisplay.currentCraft
protected
Part Expansions.Missions.Editor.GAPVesselDisplay.currentHoveredPart
protected
Part Expansions.Missions.Editor.GAPVesselDisplay.currentSelectedPart
protected
ShipConstruct Expansions.Missions.Editor.GAPVesselDisplay.currentVessel
protected
bool Expansions.Missions.Editor.GAPVesselDisplay.isReady = false
protected
MEGUIParameterVessel Expansions.Missions.Editor.GAPVesselDisplay.parameter
protected
GAPVesselCamera Expansions.Missions.Editor.GAPVesselDisplay.vesselCamera
protected
GameObject Expansions.Missions.Editor.GAPVesselDisplay.vesselCameraSetup
protected
GAPUtil_VesselFrame Expansions.Missions.Editor.GAPVesselDisplay.vesselFrame
protected

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