mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 08:49:20 -05:00
8b74493d96
- Remove the asset_helper file and call the onInitialize and onDeinitialize functions directly - Small compile fix on Windows - Removes the need for the registerIdentifierWithMeta function by automatically doing that for all asset.export statements - Allow the passing of either identifiers (as before) or entire tables to the removeSceneGraphNode, removeScreenSpaceRenderable, deleteLayer, removeAction, and export methods. In that case, the Identifier key from the table is extracted and used instead
27 lines
671 B
Lua
27 lines
671 B
Lua
local item = {
|
|
Type = "DashboardItemSimulationIncrement",
|
|
Identifier = "SimulationIncrement",
|
|
GuiName = "Simulation Increment"
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.dashboard.addDashboardItem(item)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.dashboard.removeDashboardItem(item)
|
|
end)
|
|
|
|
asset.export(item)
|
|
|
|
|
|
asset.meta = {
|
|
Name = "Dashboard - Simulation Increment",
|
|
Version = "1.0",
|
|
Description = [[ This asset provides a dashboard item that shows the simulation
|
|
increment, meaning how fast the in-game time progresses relative to the wall-clock.]],
|
|
Author = "OpenSpace Team",
|
|
URL = "http://openspaceproject.com",
|
|
License = "MIT license"
|
|
}
|