Kerbal Space Program
1.12.4
|
Public Member Functions | |
override string | GetFooterText () |
Sets the text at the bottom of the GAP window More... | |
override void | Initialize (GAPCelestialBody newGapRef) |
override bool | IsActive () |
Checks if the current gizmo is being interacted with, it wil lreturn false if there is no gizmo selected or not area is being interacted with. More... | |
override void | OnGAPClick (double newLatitude, double newLongitude) |
Sets the new position of the Gizmo in the CelestialBody when clicked More... | |
override void | OnGAPDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude) |
If now edge of the circles is selected, drags the camera otherwise it increases the radius of the circle. More... | |
override void | OnGAPDragEnd () |
When a drag is finished, if a circle was being tweaked, saves the final value and displays it in the SAP More... | |
override void | OnGAPOver (double hoverLatitude, double hoverLongitude) |
Tests if the mouse is over any of the circles or handles and acts appropiately More... | |
override void | OnGizmoHandleSelected (GAPCelestialBodyGizmoHandle selectedHandle) |
An event when the handles of the gizmo are being selected. More... | |
override void | OnLoadPlanet (CelestialBody newCelestialBody) |
When a new CB is loaded adjusts the projectors values so they fit it the new CB size. More... | |
delegate void | OnRadiusChange (float newRadius) |
override void | OnUpdate () |
Updates the gizmo. More... | |
Public Member Functions inherited from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo | |
virtual Transform | GetFocusTarget () |
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 | OnGizmoHandleDrag (double dragStartLatitude, double dragStartLongitude, double dragLatitude, double dragLongitude) |
Called when a handle of the gizmo is getting dragged. More... | |
virtual void | OnGizmoHandleDragEnd () |
Called when the drag gesture over one of the handles has ended. More... | |
virtual void | OnGizmoHandleOver (double hoverLatitude, double hoverLongitude) |
Called when the mouse is over a gizmo object. 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 | |
Color | colorArea_Drag |
Color | colorArea_Idle |
Color | colorEdge_Highlight |
Color | colorEdge_Idle |
Transform | containerProjectors |
OnRadiusChange | OnGAPGizmoRadiusChange |
Projector | projectorArea |
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 | |
float | MaxRadius [get, set] |
The maximum radius the circle can grow to More... | |
float | Radius [get, set] |
The radius of the circle More... | |
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 |
|
inlinevirtual |
Sets the text at the bottom of the GAP window
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Checks if the current gizmo is being interacted with, it wil lreturn false if there is no gizmo selected or not area is being interacted with.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Sets the new position of the Gizmo in the CelestialBody when clicked
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
If now edge of the circles is selected, drags the camera otherwise it increases the radius of the circle.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
When a drag is finished, if a circle was being tweaked, saves the final value and displays it in the SAP
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
Tests if the mouse is over any of the circles or handles and acts appropiately
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
An event when the handles of the gizmo are being selected.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
|
inlinevirtual |
When a new CB is loaded adjusts the projectors values so they fit it the new CB size.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
delegate void Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnRadiusChange | ( | float | newRadius | ) |
|
inlinevirtual |
Updates the gizmo.
Reimplemented from Expansions.Missions.Editor.GAPCelestialBody_InteractiveSurfaceGizmo.
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorArea_Drag |
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorArea_Idle |
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorEdge_Highlight |
Color Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.colorEdge_Idle |
Transform Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.containerProjectors |
OnRadiusChange Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.OnGAPGizmoRadiusChange |
Projector Expansions.Missions.Editor.GAPCelestialBody_SurfaceGizmo_Area.projectorArea |
|
getset |
The maximum radius the circle can grow to
|
getset |
The radius of the circle