DashboardItemInstruments

Inherits DashboardItem

This dashboard item shows information about the status of individual instruments onboard a spacecraft with regards to upcoming image capture. An image sequence has to be registered in order to be able to show the necessary information. The dashboard item shows a visual representation on how much time has passed since the previous image capture and how much time remains until the instrument captures the next image.

Members

Name

Documentation

Type

Description

Optional

ActiveColor

This value determines the color that the active instrument is rendered in. Shortly after activation, the used color is mixture of this and the flash color. The default value is (0.6, 1.0, 0.0).

Color3

Value of type ‘Color3’

Yes

FlashColor

This value determines the color that is used shortly after an instrument activation. The default value is (0.9, 1.0, 0.75).

Color3

Value of type ‘Color3’

Yes

FontName

This value is the name of the font that is used. It can either refer to an internal name registered previously, or it can refer to a path that is used.

String

Value of type ‘String’

Yes

FontSize

This value determines the size of the font that is used to render the distance.

Double

Value of type ‘Double’

Yes

Inherited members from DashboardItem

Name

Documentation

Type

Description

Optional

Identifier

The unique identifier for this DashboardItem.

Identifier

An identifier string. May not contain ‘.’, spaces, newlines, or tabs

No

Type

Determines the type of the DashbordItem that should be created.

String

Value of type ‘String’

No

Enabled

If this value is set to ‘true’ this dashboard item is shown in the dashboard. Otherwise it will be hidden.

Boolean

Value of type ‘Boolean’

Yes

GuiName

The name for the DashboardItem that is used when showing it in the user interface.

String

Value of type ‘String’

Yes

Asset Examples

 1asset.require("./model")
 2asset.require("./pluto")
 3
 4
 5
 6local Spacing = {
 7  Type = "DashboardItemSpacing",
 8  Identifier = "NewHorizonsSpacing",
 9  GuiName = "New Horizons Spacing",
10  Spacing = 25
11}
12
13local Distance = {
14  Type = "DashboardItemDistance",
15  Identifier = "NewHorizonsPlutoDistance",
16  GuiName = "New Horizons Pluto Distance",
17  SourceType = "Node",
18  SourceNodeIdentifier = "NewHorizons",
19  DestinationType = "Node Surface",
20  DestinationNodeIdentifier = "PlutoProjection"
21}
22
23local Instruments = {
24  Type = "DashboardItemInstruments",
25  Identifier = "NewHorizonsInstruments",
26  GuiName = "NewHorizons Instruments"
27}
28
29
30asset.onInitialize(function()
31  openspace.dashboard.addDashboardItem(Spacing)
32  openspace.dashboard.addDashboardItem(Distance)
33  openspace.dashboard.addDashboardItem(Instruments)
34end)
35
36asset.onDeinitialize(function()
37  openspace.dashboard.removeDashboardItem(Instruments)
38  openspace.dashboard.removeDashboardItem(Distance)
39  openspace.dashboard.removeDashboardItem(Spacing)
40end)