mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Add the ScreenSpaceDashboard example that was deleted without a replacement
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
-- Basic
|
||||
-- This example shows how to display dashboard items in a screen space. In this specific
|
||||
-- example it is show the date in the simulation, but any #DashboardItem is supported.
|
||||
|
||||
local Object = {
|
||||
Type = "ScreenSpaceDashboard",
|
||||
Identifier = "ScreenSpaceDashboard_Example",
|
||||
Name = "ScreenSpaceDashboard Example - Basic",
|
||||
Items = {
|
||||
{
|
||||
Identifier = "ScreenSpaceDashboard_Example_Date",
|
||||
Type = "DashboardItemDate"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
asset.onInitialize(function()
|
||||
openspace.addScreenSpaceRenderable(Object)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeScreenSpaceRenderable(Object)
|
||||
end)
|
||||
Reference in New Issue
Block a user