mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 20:09:58 -05:00
e0df6d6c2e
* 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>
29 lines
882 B
Lua
29 lines
882 B
Lua
-- This is a blank scene that that just sets up the default menus/dasboard/keys, etc.
|
|
|
|
-- Specifying which other assets should be loaded in this scene
|
|
asset.require("spice/core")
|
|
|
|
asset.require("dashboard/default_dashboard")
|
|
|
|
-- Load default actions and key bindings applicable to most scenes
|
|
asset.require("actions/default_actions")
|
|
asset.require("./default_keybindings")
|
|
|
|
-- Load web gui
|
|
local webGui = asset.require("util/webgui")
|
|
|
|
-- Scale the different UI components based on the operating system's DPI scaling value
|
|
asset.require("util/dpiscaling")
|
|
|
|
-- Load the images required for the launcher to show up
|
|
asset.require("util/launcher_images")
|
|
|
|
-- Modules and component settings
|
|
asset.require("modules/touch/default_settings")
|
|
|
|
|
|
asset.onInitialize(function()
|
|
webGui.setCefRoute("onscreen")
|
|
openspace.setPropertyValueSingle("RenderEngine.VerticalLogOffset", 0.100000)
|
|
end)
|