Add the ScreenSpaceDashboard example that was deleted without a replacement

This commit is contained in:
Alexander Bock
2025-09-10 16:29:20 +02:00
parent 4fe270d055
commit 971350028c

View File

@@ -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)