mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-01 09:10:18 -06:00
* Split default keybinds asset file into one file for the actions and one for the keybinds * Renaming the `default_actions.asset -> solarsystem_actions.asset` and then separating the `default_keybindings.asset` into `default_keybindings` and `default_actions` * Move time action to correct place in file * Update ESC -> Ctrl+Q for toggling a shutdown Also add comment to the clearKey lines to make the connection easier to see * Remove Alt+R keybinding * Add asset meta for keybindings asset --------- Co-authored-by: Alexander Bock <alexander.bock@liu.se>
64 lines
2.4 KiB
Lua
64 lines
2.4 KiB
Lua
-- This is a base scene that is included in most other scenes to set up defaults
|
|
-- loading this scene directly without any other elements added on top of it will
|
|
-- probably not work
|
|
|
|
asset.require("./base_blank")
|
|
|
|
-- We load the SDSS dataset first as that is the one that takes the longest, so the
|
|
-- earlier we start, the sooner the loading is done
|
|
asset.require("scene/digitaluniverse/sdss")
|
|
|
|
-- Specifying which other assets should be loaded in this scene
|
|
asset.require("scene/solarsystem/sun/sun")
|
|
asset.require("scene/solarsystem/sun/glare")
|
|
asset.require("scene/solarsystem/sun/habitablezone")
|
|
asset.require("scene/solarsystem/sun/default_layers")
|
|
asset.require("scene/solarsystem/planets/planets")
|
|
asset.require("scene/solarsystem/dwarf_planets/pluto/system")
|
|
asset.require("scene/solarsystem/dwarf_planets/pluto/default_layers")
|
|
asset.require("scene/solarsystem/dwarf_planets/pluto/charon/default_layers")
|
|
asset.require("scene/milkyway/milkyway/volume")
|
|
asset.require("scene/milkyway/constellations/constellation_art")
|
|
asset.require("scene/milkyway/constellations/constellation_keybinds")
|
|
|
|
-- Planet layers
|
|
local server = openspace.layerServer();
|
|
if (server == "All") then
|
|
asset.require("scene/solarsystem/planets/default_layers")
|
|
elseif (server == "NewYork") then
|
|
asset.require("scene/solarsystem/planets/newyork_layers")
|
|
elseif (server == "Sweden") then
|
|
asset.require("scene/solarsystem/planets/sweden_layers")
|
|
elseif (server == "Utah") then
|
|
asset.require("scene/solarsystem/planets/utah_layers")
|
|
elseif (server == "None") then
|
|
asset.require("scene/solarsystem/planets/base_layers")
|
|
else
|
|
openspace.printWarning("Did not recognize the specified Layer server, defaults to 'All'")
|
|
asset.require("scene/solarsystem/planets/default_layers")
|
|
end
|
|
|
|
asset.require("scene/digitaluniverse/digitaluniverse")
|
|
asset.require("nightsky/nightsky")
|
|
|
|
asset.require("customization/globebrowsing")
|
|
asset.require("actions/solarsystem_actions")
|
|
|
|
asset.require("modules/exoplanets/exoplanets")
|
|
asset.require("modules/skybrowser/skybrowser")
|
|
|
|
asset.onInitialize(function()
|
|
openspace.globebrowsing.loadWMSServersFromFile(
|
|
openspace.absPath("${DATA}/globebrowsing_servers.lua")
|
|
)
|
|
|
|
openspace.setGuiOrder(
|
|
"/",
|
|
{ "Solar System", "Milky Way", "Universe", "Night Sky", "Examples" }
|
|
)
|
|
openspace.setGuiOrder(
|
|
"/Solar System",
|
|
{ "Planets", "Dwarf Planets", "Sun", "Solar System Barycenter" }
|
|
)
|
|
end)
|