Kerbal Space Program
1.12.4
|
Public Types | |
enum | InteractMode { InteractMode.TRANSLATION, InteractMode.ROTATION } |
Public Member Functions | |
void | AddTransformButtons () |
override string | GetFooterText () |
This method will prepara the top section of the text in the gap window. More... | |
override void | Initialize (GAPCelestialBody newGapRef) |
Called after the gizmo is instantiated to initialize its corresponding values. More... | |
override void | OnGizmoHandleDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude) |
Called when a handle of the gizmo is getting dragged. More... | |
override void | OnGizmoHandleDragEnd () |
Called when the drag gesture over one of the handles has ended. More... | |
override void | OnGizmoHandleSelected (GAPCelestialBodyGizmoHandle selectedHandle) |
Called when a gizmo has been clicked to be interacted with. More... | |
delegate void | OnPointRotate (Quaternion newRotation) |
override void | OnUpdate () |
Called every frame. More... | |
void | SetGizmoIcon (VesselGroundLocation.GizmoIcon gizmoIcon) |
void | SetGizmoRotation (Quaternion newRotation) |
Sets the rotation of the gizmo vessel model More... | |
void | SetMode (InteractMode mode) |
Public Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo | |
virtual Transform | GetFocusTarget () |
override bool | IsActive () |
Checks if the gizmo is enabled to be interacted with. More... | |
bool | IsDragReady () |
Checks if there is a gizmo handle selected. More... | |
void | OnButtonPressed_FocusTarget () |
The event executed when the Focus Target button is pressed. More... | |
virtual void | OnGAPClick (double newLatitude, double newLongitude) |
Called when GAP window is clicked. More... | |
virtual void | OnGAPDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude) |
Called when there is a drag gesture on the GAP window. More... | |
virtual void | OnGAPDragEnd () |
Called when the drag gesture over the gap window has ended. More... | |
virtual void | OnGAPOver (double hoverLatitude, double hoverLongitude) |
Called when the mouse is over the GAP window. More... | |
virtual void | OnGizmoHandleOver (double hoverLatitude, double hoverLongitude) |
Called when the mouse is over a gizmo object. More... | |
override void | OnLoadPlanet (CelestialBody newCelestialBody) |
Called when a new planet is loaded (To reset any values if needed) More... | |
delegate void | OnPointTranslate (double latitude, double longitude) |
override double | SetGizmoPosition (double newLatitude, double newLongitude, double newAltitude) |
Sets the GAP gizmo on the celestial body surface from the latitude and longitude values. Altitude is calculated automatically. More... | |
bool | TrySelectHandle (Collider handleCollider) |
A method to check the status of the gizmo handles. It will compare a collider to see if its a handle, and if it is it will select it if its intended. It uses a collider since the test method is a raycast to the surface of the planet. More... | |
Public Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo | |
virtual void | OnDestroy () |
Called before destroying the gizmo. More... | |
Public Attributes | |
List< GameObject > | gizmoIcons |
GameObject | gizmoRotate |
GameObject | gizmoTranslate |
List< GAPCelestialBodyGizmoHandle > | handlesRotation |
List< GAPCelestialBodyGizmoHandle > | handlesTranslation |
MeshRenderer | meshCenterGizmo |
OnPointRotate | OnGAPGizmoRotate |
Transform | pivotRotation |
Public Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo | |
List< GAPCelestialBodyGizmoHandle > | gizmoHandles |
OnPointTranslate | OnGAPGizmoTranslate |
Sprite | spriteFocusCelestialBody |
Sprite | spriteFocusTarget |
Public Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo | |
Transform | gizmoContainer |
Properties | |
Quaternion | Rotation [get] |
Properties inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo | |
double | Altitude [get] |
Returns the altitude of the terrain under the gizmo position. More... | |
double | Latitude [get] |
Returns the latitude of the gizmo in the celestial body. More... | |
double | Longitude [get] |
Returns the longitude of the gizmo in the celestial body. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo | |
void | SetInSurfaceFromPoint (Vector3d point) |
Sets a transform on the surface of the celestial body More... | |
void | SetInSurfaceFromPointAtSeaLevel (Vector3d point, double seaLevel) |
Sets a transform on the surface of the celestial body More... | |
Protected Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo | |
GAPCelestialBodyGizmoHandle | selectedHandle |
Protected Attributes inherited from Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo | |
double | altitude |
CelestialBody | celestialBody |
GAPCelestialBody | gapRef |
double | latitude |
double | longitude |
|
inline |
|
inlinevirtual |
This method will prepara the top section of the text in the gap window.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Called after the gizmo is instantiated to initialize its corresponding values.
newGapRef | The reference to the GAPCelestiaBody script, it handles the camera movement etc... |
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Called when a handle of the gizmo is getting dragged.
dragStartLatitude | The latitude position when the drag gesture started. |
dragStartLongitude | The longitude posiion when the drag gesture started. |
dragLatitude | The latitude position of the mouse corresponding to the surface of the planet. |
dragLongitude | The longiutde position of the mouse corresponding to the surface of the planet. |
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Called when the drag gesture over one of the handles has ended.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Called when a gizmo has been clicked to be interacted with.
selectedHandle | The handle that was selected. |
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
delegate void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.OnPointRotate | ( | Quaternion | newRotation | ) |
|
inlinevirtual |
Called every frame.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inline |
|
inline |
Sets the rotation of the gizmo vessel model
newRotation | The new rotation of the gizmo vessel |
|
inline |
List<GameObject> Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.gizmoIcons |
GameObject Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.gizmoRotate |
GameObject Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.gizmoTranslate |
List<GAPCelestialBodyGizmoHandle> Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.handlesRotation |
List<GAPCelestialBodyGizmoHandle> Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.handlesTranslation |
MeshRenderer Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.meshCenterGizmo |
OnPointRotate Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.OnGAPGizmoRotate |
Transform Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_PlaceVessel.pivotRotation |
|
get |