mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2025-12-31 00:10:44 -06:00
Feature/alex is flying (#729)
* Correctly specify maximum text sizes for grids * Use StaticScale transformations in grids and remove fixed radius * Fix Verifier to let grids accept non-integer min and max sizes * Add a new scale that changes it's value based on the current time and a reference time * Add a proper radiosphere that grows in real time (closes #728) * Add default globe customization folders to the assets (closes #724) * Add new dashboarditem that shows the current camera velocity (closes #702) * Add ability to add interesting times to a scene (closes #715) * Reenable keybindings gui element * Add ShortcutManager * Add ability to bind keyless keybinds to use as arbitrary shortcuts (closes #710)
This commit is contained in:
@@ -6,6 +6,12 @@ openspace.documentation = {
|
||||
"as interesting, which will provide shortcut access to focus buttons and " ..
|
||||
"featured properties."
|
||||
},
|
||||
{
|
||||
Name = "markInterestingTimes",
|
||||
Arguments = "List of { Name = '...', Time = '...' } or { '<name>', '<time>' }",
|
||||
Documentation = "This function marks interesting times for the current scene, " ..
|
||||
"which will create shortcuts for a quick access."
|
||||
},
|
||||
{
|
||||
Name = "removeInterestingNodes",
|
||||
Arguments = "List of nodes",
|
||||
@@ -44,6 +50,14 @@ openspace.markInterestingNodes = function(nodes)
|
||||
end
|
||||
end
|
||||
|
||||
openspace.markInterestingTimes = function(times)
|
||||
for _, n in pairs(times) do
|
||||
local name = n["Name"] or n[1]
|
||||
local time = n["Time"] or n[2]
|
||||
openspace.addInterestingTime(name, time)
|
||||
end
|
||||
end
|
||||
|
||||
openspace.removeInterestingNodes = function(nodes)
|
||||
for _, n in pairs(nodes) do
|
||||
if openspace.hasSceneGraphNode(n) then
|
||||
|
||||
Reference in New Issue
Block a user