mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-05 03:00:21 -06:00
- Make the SourceType and DestinationType parameters required in the DashboardItemAngle - Shift the "UTC" string in the DashboardDate from the FormatString to the TimeFormat - Make the SourceType and DestinationType parameters for the DashboardItemDistance required - Add new "Deltatime" option to the DashboardItemFramerate. Add examples for the DashboardItemFramerate - Fix issue where the inputstate would not update if no option was selected - Automatically disable simplification if a unit is requested in the asset for a DashboardItemSimulationIncrement or DashboardItemVelocity
35 lines
780 B
Lua
35 lines
780 B
Lua
-- Basic
|
|
-- This asset creates a scene graph node that only displays coordinate axes. The sizes of
|
|
-- coordinate axes are determined by executing a Lua file that returns the scaling
|
|
-- parameters to be used as a table.
|
|
--
|
|
-- ```{literalinclude} example.lua
|
|
-- :language: lua
|
|
-- :caption: The script file that is used in this example
|
|
-- ```
|
|
|
|
local Node = {
|
|
Identifier = "LuaScale_Example",
|
|
Transform = {
|
|
Scale = {
|
|
Type = "LuaScale",
|
|
Script = asset.resource("example.lua")
|
|
}
|
|
},
|
|
Renderable = {
|
|
Type = "RenderableCartesianAxes"
|
|
},
|
|
GUI = {
|
|
Name = "LuaScale - Basic",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|