NavballMarker#
NavballMarker
A marker drawn on the navball. Created using POST /drawing/add-navball-marker.
A NavballMarker object is passed and returned as its identifier, a number. A path that acts on
an object takes it as (id).
- GET /drawing/navball-marker/(id)/direction#
Direction that the marker is drawn at.
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (tuple<double, double, double>)
- PUT /drawing/navball-marker/(id)/direction#
Direction that the marker is drawn at.
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (tuple<double, double, double>) – The new value.
- GET /drawing/navball-marker/(id)/reference-frame#
Reference frame that the direction of the marker is in.
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (SpaceCenter.ReferenceFrame)
- PUT /drawing/navball-marker/(id)/reference-frame#
Reference frame that the direction of the marker is in.
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (SpaceCenter.ReferenceFrame) – The new value.
- GET /drawing/navball-marker/(id)/visible#
Whether the marker is visible.
Note
A visible marker is still hidden while it is on the far side of the navball.
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (bool)
- PUT /drawing/navball-marker/(id)/visible#
Whether the marker is visible.
Note
A visible marker is still hidden while it is on the far side of the navball.
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/navball-marker/(id)/color#
Set the color
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (StdLib.ColorRGB)
- PUT /drawing/navball-marker/(id)/color#
Set the color
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (StdLib.ColorRGB) – The new value.
- GET /drawing/navball-marker/(id)/icon#
The icon that the marker is drawn with. See
POST /drawing/navball-marker/available-iconsfor the icons that can be used.- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (string)
- PUT /drawing/navball-marker/(id)/icon#
The icon that the marker is drawn with. See
POST /drawing/navball-marker/available-iconsfor the icons that can be used.- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (string) – The new value.
- GET /drawing/navball-marker/(id)/image#
The image that the marker is drawn with in place of its icon, or null to draw the icon.
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (Drawing.Image?)
- PUT /drawing/navball-marker/(id)/image#
The image that the marker is drawn with in place of its icon, or null to draw the icon.
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (Drawing.Image?) – The new value.
- POST /drawing/navball-marker/available-icons#
A list of all available icons, taken from “GameData/Squad/Contracts/Icons/”.
- Response JSON Object:
value (list<string>)
- GET /drawing/navball-marker/(id)/size#
Size of the marker, relative to the size of the navball’s own markers.
- Parameters:
id – The identifier of the NavballMarker object.
- Response JSON Object:
value (float)
- PUT /drawing/navball-marker/(id)/size#
Size of the marker, relative to the size of the navball’s own markers.
- Parameters:
id – The identifier of the NavballMarker object.
- Request JSON Object:
value (float) – The new value.
- POST /drawing/navball-marker/(id)/remove#
Remove the marker.
- Parameters:
id – The identifier of the NavballMarker object.