mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 01:39:47 -05:00
Cleanup core script extensions
Cleanup default scripts
This commit is contained in:
@@ -19,10 +19,10 @@ local DawnAsset = asset.require('scene/solarsystem/missions/dawn/dawn')
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2011 AUG 06 00:00:00")
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"Dawn", "Ceres", "Vesta"
|
||||
})
|
||||
|
||||
@@ -45,7 +45,7 @@ end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"Dawn", "Ceres", "Vesta"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -60,14 +60,14 @@ asset.onInitialize(function ()
|
||||
openspace.time.setTime(openspace.time.currentWallTime())
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
openspace.globebrowsing.loadWMSServersFromFile(
|
||||
openspace.absPath("${DATA}/globebrowsing_servers.lua")
|
||||
)
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"Earth", "Mars", "Moon"
|
||||
})
|
||||
|
||||
@@ -96,7 +96,7 @@ asset.onDeinitialize(function ()
|
||||
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"Earth", "Mars", "Moon"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -17,15 +17,15 @@ local junoAsset = asset.require('scene/solarsystem/missions/juno/juno')
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2016-07-01T10:05:00.00")
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"Jupiter", "Juno"
|
||||
})
|
||||
|
||||
@@ -49,7 +49,7 @@ end)
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"Jupiter", "Juno"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -133,7 +133,7 @@ asset.onInitialize(function ()
|
||||
openspace.time.setTime("2015-07-14T08:00:00.00")
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.dashboard.addDashboardItem({
|
||||
Type = "DashboardItemSpacing",
|
||||
Spacing = 25
|
||||
@@ -151,14 +151,14 @@ asset.onInitialize(function ()
|
||||
Type = "DashboardItemInstruments"
|
||||
})
|
||||
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 60, 120, 360, 540, 1080,
|
||||
2160, 4320, 8640
|
||||
})
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"Pluto", "NewHorizons", "Charon"
|
||||
})
|
||||
|
||||
@@ -183,7 +183,7 @@ asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"Pluto", "NewHorizons", "Charon"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -83,7 +83,7 @@ asset.onInitialize(function ()
|
||||
openspace.time.setTime("2016 SEP 8 23:00:00.500")
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.dashboard.addDashboardItem({
|
||||
Type = "DashboardItemSpacing",
|
||||
Spacing = 25
|
||||
@@ -101,14 +101,14 @@ asset.onInitialize(function ()
|
||||
Type = "DashboardItemInstruments"
|
||||
})
|
||||
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 60, 120, 360, 540, 1080,
|
||||
2160, 4320, 8640
|
||||
})
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"OsirisRex", "BennuBarycenter", "Earth"
|
||||
})
|
||||
|
||||
@@ -133,7 +133,7 @@ asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"OsirisRex", "BennuBarycenter", "Earth"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -84,7 +84,7 @@ asset.onInitialize(function ()
|
||||
openspace.time.setTime("2014-08-01T03:05:00.000")
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.dashboard.addDashboardItem({
|
||||
Type = "DashboardItemSpacing",
|
||||
Spacing = 25
|
||||
@@ -102,14 +102,14 @@ asset.onInitialize(function ()
|
||||
Type = "DashboardItemInstruments"
|
||||
})
|
||||
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"67P", "Rosetta", "Philae"
|
||||
})
|
||||
|
||||
@@ -136,7 +136,7 @@ asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"67PBarycenter", "Rosetta", "Philae"
|
||||
})
|
||||
end)
|
||||
|
||||
@@ -278,5 +278,6 @@ assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
VoyagerTrailCruiseSaturnUranus,
|
||||
VoyagerTrailEncounterUranus,
|
||||
VoyagerTrailCruiseUranusNeptune,
|
||||
VoyagerTrailEncounterNeptune
|
||||
VoyagerTrailEncounterNeptune,
|
||||
VoyagerTrailCruiseNeptuneInf
|
||||
})
|
||||
|
||||
@@ -24,15 +24,15 @@ local VoyagerAsset = asset.require('scene/solarsystem/missions/voyager/voyager1'
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("1977 SEP 10 12:00:00")
|
||||
|
||||
openspace.set_default_dashboard()
|
||||
openspace.set_default_gui_sorting()
|
||||
openspace.setDefaultDashboard()
|
||||
openspace.setDefaultGuiSorting()
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.mark_interesting_nodes({
|
||||
openspace.markInterestingNodes({
|
||||
"Earth", "Voyager 1", "Voyager 2", "Jupiter", "Saturn", "Uranus", "Neptune"
|
||||
})
|
||||
|
||||
@@ -55,7 +55,7 @@ end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeVirtualProperty("*Trail.renderable.Enabled")
|
||||
openspace.remove_interesting_nodes({
|
||||
openspace.removeInterestingNodes({
|
||||
"Earth", "Voyager 1", "Voyager 2", "Jupiter", "Saturn", "Uranus", "Neptune"
|
||||
})
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user