mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-01 17:20:09 -06:00
Add core script file that defines possibility of rebinding keyboard commands to a different key Enable the execution of global customization scripts Make `scene_helper.lua` a script automatically included in the ScriptScheduler
33 lines
1.0 KiB
Lua
33 lines
1.0 KiB
Lua
openspace.documentation = {
|
|
{
|
|
Name = "mark_interating_nodes",
|
|
Arguments = "List of nodes",
|
|
Documentation = "This function marks the scene graph nodes identified by name " ..
|
|
"as interesting, which will provide shortcut access to focus buttons and " ..
|
|
"featured properties."
|
|
},
|
|
{
|
|
Name = "set_default_gui_sorting",
|
|
Arguments = "",
|
|
Documentation = "This function sets the default GUI sorting for the space " ..
|
|
"environment to increasing size, from solar system, through Milky Way, " ..
|
|
"Universe and finishing with other elements"
|
|
}
|
|
}
|
|
|
|
openspace.mark_interesting_nodes = function(nodes)
|
|
for _, n in pairs(nodes) do
|
|
if openspace.hasSceneGraphNode(n) then
|
|
openspace.addTag(n, "GUI.Interesting")
|
|
end
|
|
end
|
|
end
|
|
|
|
openspace.set_default_gui_sorting = function()
|
|
openspace.setPropertyValueSingle(
|
|
'Global Properties.ImGUI.Main.Properties.Ordering',
|
|
{
|
|
"Solar System", "Milky Way", "Universe", "Other"
|
|
}
|
|
)
|
|
end |