Kerbal Space Program
1.12.4
|
Classes | |
class | DragEvent |
class | MouseOverEvent |
class | RaycastEvent |
Public Member Functions | |
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... | |
virtual void | Clean () |
Clean this GAP Display More... | |
void | ClearToolbar () |
Clean the GAP tool bar controls More... | |
virtual void | Destroy () |
Destroy this GAP Display 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... | |
virtual void | Setup (Camera displayCamera, int layerMask) |
Setups the Action Pane display More... | |
void | UpdateDisplayArea () |
Updates the render texture display area maintaining the game aspect ratio More... | |
Public Attributes | |
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... | |
Protected Member Functions | |
override void | Awake () |
void | ClearToolbarEvents () |
Clear the tool bar controls events More... | |
virtual void | OnDisplayClick (RaycastHit?hit) |
virtual void | OnDisplayDrag (PointerEventData.InputButton button, Vector2 delta) |
virtual void | OnMouseOver (Vector2 position) |
virtual void | Update () |
Protected Attributes | |
Camera | displayCamera |
RenderTexture | displayTexture |
float | hitDistance |
bool | isDragging = false |
bool | isMouseOver = false |
bool | isSelected = false |
int | layerMask |
DictionaryValueList< string, MonoBehaviour > | toolbarControls |
Properties | |
RenderTexture | DisplayTexture [get] |
|
inline |
Creates a gap toolbar button control
icon | Icon of this control |
toolTip | Tooltip of this control |
|
inline |
Creates a gap toolbar toggle control
icon | |
icon | Icon of this control |
toolTip | Tooltip of this control |
|
inlineprotected |
|
inlinevirtual |
Clean this GAP Display
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, Expansions.Missions.Editor.GAPVesselDisplay, Expansions.Missions.Editor.GAPPrefabDisplay, and Expansions.Missions.Editor.GAPPartPicker.
|
inline |
Clean the GAP tool bar controls
|
inlineprotected |
Clear the tool bar controls events
|
inlinevirtual |
Destroy this GAP Display
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, Expansions.Missions.Editor.GAPVesselDisplay, Expansions.Missions.Editor.GAPPrefabDisplay, and Expansions.Missions.Editor.GAPPartPicker.
|
inline |
Gets the mouse position relative to the GAP display camera, used for ray cast objects displayed in the render texture
mousePosition | |
canvasCamera | |
point |
|
inline |
Get a tool bar button
id |
|
inlinevirtual |
Event triggered on drag begin
eventData |
|
inline |
Event triggered on UI selectable deselect
eventData |
|
inlineprotectedvirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, and Expansions.Missions.Editor.GAPVesselDisplay.
|
inlinevirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody.
|
inlineprotectedvirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, and Expansions.Missions.Editor.GAPPrefabDisplay.
|
inlinevirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody.
|
inlinevirtual |
Event triggered on pointer drag
eventData |
|
inlinevirtual |
Event triggered on drag end
eventData |
|
inlineprotectedvirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, and Expansions.Missions.Editor.GAPVesselDisplay.
|
inlinevirtual |
Event triggered on pointer click this gameobject rect
eventData |
|
inline |
Event triggered on pointer enter this gameobject rect
eventData |
|
inline |
Event triggered on pointer exit this gameobject rect
eventData |
|
inline |
|
inline |
Event triggered on UI selecteable select
eventData |
|
inline |
Help function, makes a ray cast from the supplied camera point using the gap display camera, layer mask and hit distance values
cameraPoint | |
hit | |
layerMask | overrides the layer mask used to raycast in the GAP |
|
inlinevirtual |
Setups the Action Pane display
displayCamera | Camera used to display the Action Pane contents |
mask | Layer mask used for the click raycast |
Reimplemented in Expansions.Missions.Editor.GAPPrefabDisplay, and Expansions.Missions.Editor.GAPVesselDisplay.
|
inlineprotectedvirtual |
Reimplemented in Expansions.Missions.Editor.GAPCelestialBody, and Expansions.Missions.Editor.GAPPrefabDisplay.
|
inline |
Updates the render texture display area maintaining the game aspect ratio
|
protected |
RaycastEvent Expansions.Missions.Editor.ActionPaneDisplay.DisplayClick |
Event that triggers on the display click, sends a hitinfo if an object was clicked on
RaycastEvent Expansions.Missions.Editor.ActionPaneDisplay.DisplayClickUp |
Event that triggers on the display click when the button is up, sends a hitinfo if an object was clicked on
DragEvent Expansions.Missions.Editor.ActionPaneDisplay.DisplayDrag |
Event that triggers a mouse drag, sends the button and mouse delta information
RaycastEvent Expansions.Missions.Editor.ActionPaneDisplay.DisplayDragEnd |
Event that triggers on the display click when the button is up, sends a hitinfo if an object was clicked on
RawImage Expansions.Missions.Editor.ActionPaneDisplay.displayImage |
Raw image that displays the render texture
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
MouseOverEvent Expansions.Missions.Editor.ActionPaneDisplay.MouseOver |
Event that trigger when the mouse is over the GAP display image
RectTransform Expansions.Missions.Editor.ActionPaneDisplay.rectTransform |
Rect transform cache
|
protected |
|
get |