From e763aeeba95afcc9efb63b1003f48c536b72d174 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 11 Sep 2023 20:09:37 +0200 Subject: [PATCH] Global pass over all actions to make most of them not local --- data/assets/actions/planets/mars_layers.asset | 12 ++++++------ .../actions/planets/scale_planets_and_moons.asset | 4 ++-- data/assets/actions/system/undo_event_fades.asset | 4 ++-- .../actions/trails/on_off_all_minor_moons.asset | 4 ++-- .../trails/toggle_all_dwarf_planet_trails.asset | 2 +- .../trails/toggle_all_minor_moon_trails.asset | 2 +- data/assets/actions/trails/toggle_all_trails.asset | 6 +++--- data/assets/actions/trails/toggle_trail.asset | 6 +++--- .../actions/trails/toggle_trails_planets_moons.asset | 6 +++--- data/assets/actions/trails/trail_appearance.asset | 10 +++++----- data/assets/default_keybindings.asset | 6 +++--- .../solarsystem/missions/apollo/insignias_map.asset | 4 ++-- .../solarsystem/missions/artemis/toggle_trail.asset | 2 +- .../solarsystem/planets/jupiter/major_moons.asset | 4 ++-- .../solarsystem/planets/jupiter/minor_moons.asset | 4 ++-- .../solarsystem/planets/neptune/major_moons.asset | 4 ++-- .../solarsystem/planets/neptune/minor_moons.asset | 4 ++-- .../solarsystem/planets/saturn/major_moons.asset | 4 ++-- .../solarsystem/planets/saturn/minor_moons.asset | 4 ++-- .../solarsystem/planets/uranus/major_moons.asset | 4 ++-- .../solarsystem/planets/uranus/minor_moons.asset | 4 ++-- .../solarsystem/telescopes/jwst/point_jwst.asset | 2 +- .../solarsystem/telescopes/jwst/toggle_trail.asset | 2 +- 23 files changed, 52 insertions(+), 52 deletions(-) diff --git a/data/assets/actions/planets/mars_layers.asset b/data/assets/actions/planets/mars_layers.asset index 554de5adee..303cf927ec 100644 --- a/data/assets/actions/planets/mars_layers.asset +++ b/data/assets/actions/planets/mars_layers.asset @@ -7,7 +7,7 @@ openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.CTX_b openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.CTX_blended_01.Settings.Opacity", 1.0, 2.0)]], Documentation = "Enables and fades in CTX layer for Mars", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } local CTXFadeOut = { @@ -16,7 +16,7 @@ local CTXFadeOut = { Command = [[openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.CTX_blended_01.Settings.Opacity", 0.0, 2.0)]], Documentation = "Fade out CTX", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } local HiriseFadeIn = { @@ -28,7 +28,7 @@ openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRIS openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-PSP.Settings.Opacity", 1.0, 2.0)]], Documentation = "Enables and fades in HiRise layer for Mars", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } local HiriseFadeOut = { @@ -37,7 +37,7 @@ local HiriseFadeOut = { Command = [[openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-PSP.Settings.Opacity", 0.0, 2.0)]], Documentation = "Fade out HiRISE layer for Mars", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } local LocalSetHiriseFadeIn = { @@ -50,7 +50,7 @@ openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRIS openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-LS.Settings.Opacity", 1.0, 2.0)]], Documentation = "Enables and fades in HiRise local set layers for Mars (including height)", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } local LocalSetHiriseFadeOut = { @@ -62,7 +62,7 @@ openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.HiRI ]], Documentation = "Fade out HiRISE local set layer for Mars", GuiPath = "/Solar System/Mars", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/planets/scale_planets_and_moons.asset b/data/assets/actions/planets/scale_planets_and_moons.asset index 7db5f9c182..e5f5ac9ccd 100644 --- a/data/assets/actions/planets/scale_planets_and_moons.asset +++ b/data/assets/actions/planets/scale_planets_and_moons.asset @@ -20,7 +20,7 @@ local function scaleAction(identifier, scale, name, speed) Command = scaleCommand(identifier, scale, speed), Documentation = "Scales " .. name .. " to " .. scale .. "x", GuiPath = "/Solar System/Scale", - IsLocal = true + IsLocal = false } end @@ -45,7 +45,7 @@ end ]], GuiPath = "/Solar System/Scale", Documentation = "Toggle the scale of " .. name, - IsLocal = true + IsLocal = false } end diff --git a/data/assets/actions/system/undo_event_fades.asset b/data/assets/actions/system/undo_event_fades.asset index 12ee3bb00e..4ce4ca7dbe 100644 --- a/data/assets/actions/system/undo_event_fades.asset +++ b/data/assets/actions/system/undo_event_fades.asset @@ -4,10 +4,10 @@ local UndoEventFade = { Command = [[ openspace.setPropertyValue("Scene.*.Renderable.Fade", 1.0, 0.5) ]], - Documentation = [[Sets the 'Fade' value of all renderables to 1. This internval values + Documentation = [[Sets the 'Fade' value of all renderables to 1. This internal values is managed by events]], GuiPath = "/System/Rendering", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/on_off_all_minor_moons.asset b/data/assets/actions/trails/on_off_all_minor_moons.asset index e0441c6ac4..6fa79297e3 100644 --- a/data/assets/actions/trails/on_off_all_minor_moons.asset +++ b/data/assets/actions/trails/on_off_all_minor_moons.asset @@ -20,7 +20,7 @@ local MinorMoonsOn = { ]], Documentation = "Turn ON minor moons and their trails for all planets in the solar system", GuiPath = "/Solar System/Minor Moons", - IsLocal = true + IsLocal = false } local MinorMoonsOff = { @@ -55,7 +55,7 @@ local MinorMoonsOff = { ]], Documentation = "Turn OFF minor moons and their trails for all planets in the solar system", GuiPath = "/Solar System/Minor Moons", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/toggle_all_dwarf_planet_trails.asset b/data/assets/actions/trails/toggle_all_dwarf_planet_trails.asset index d57b55886c..7813bc2adb 100644 --- a/data/assets/actions/trails/toggle_all_dwarf_planet_trails.asset +++ b/data/assets/actions/trails/toggle_all_dwarf_planet_trails.asset @@ -9,7 +9,7 @@ local ToggleDwarfPlanetTrails = { ]], Documentation = "Toggle on/off trails for all dwarf planets in the solar system", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/toggle_all_minor_moon_trails.asset b/data/assets/actions/trails/toggle_all_minor_moon_trails.asset index d86ff3c470..f587747417 100644 --- a/data/assets/actions/trails/toggle_all_minor_moon_trails.asset +++ b/data/assets/actions/trails/toggle_all_minor_moon_trails.asset @@ -9,7 +9,7 @@ local ToggleMinorMoonTrails = { ]], Documentation = "Toggle on/off minor moon trails for all planets in the solar system", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/toggle_all_trails.asset b/data/assets/actions/trails/toggle_all_trails.asset index 22bc7fdb68..9e129e055a 100644 --- a/data/assets/actions/trails/toggle_all_trails.asset +++ b/data/assets/actions/trails/toggle_all_trails.asset @@ -13,7 +13,7 @@ local FadeUpTrails = { ]], Documentation = "Fade up all enabled trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local FadeDownTrails = { @@ -31,7 +31,7 @@ local FadeDownTrails = { ]], Documentation = "Fade down all enabled trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local ToggleTrails = { @@ -60,7 +60,7 @@ local ToggleTrails = { ]], Documentation = "Toggle fade for all trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/toggle_trail.asset b/data/assets/actions/trails/toggle_trail.asset index 1acd99a14c..270520cac4 100644 --- a/data/assets/actions/trails/toggle_trail.asset +++ b/data/assets/actions/trails/toggle_trail.asset @@ -42,7 +42,7 @@ local ToggleTrail = { This action takes optional arguments to 1) determine which trail to hide (as the 'Node') and 2) the transition direction (as 'After' and 'Before')]], GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local HideTrail = { @@ -66,7 +66,7 @@ local HideTrail = { optional argument to determine whose trail to hide. If no argument is provided, the current focus node is used instead]], GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local ShowTrail = { @@ -90,7 +90,7 @@ local ShowTrail = { optional argument to determine whose trail to hide. If no argument is provided, the current focus node is used instead]], GuiPath = "/Trails", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/toggle_trails_planets_moons.asset b/data/assets/actions/trails/toggle_trails_planets_moons.asset index 7792fdbeb4..0a65d1618c 100644 --- a/data/assets/actions/trails/toggle_trails_planets_moons.asset +++ b/data/assets/actions/trails/toggle_trails_planets_moons.asset @@ -7,7 +7,7 @@ local FadeUpTrails = { ]], Documentation = "Fade up all planet and moon trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local FadeDownTrails = { @@ -19,7 +19,7 @@ local FadeDownTrails = { ]], Documentation = "Fade down all planet and moon trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } local ToggleTrails = { @@ -48,7 +48,7 @@ local ToggleTrails = { ]], Documentation = "Toggle fade for planet and moon trails in the Scene", GuiPath = "/Trails", - IsLocal = true + IsLocal = false } diff --git a/data/assets/actions/trails/trail_appearance.asset b/data/assets/actions/trails/trail_appearance.asset index 4c7cf6fabe..e28538be30 100644 --- a/data/assets/actions/trails/trail_appearance.asset +++ b/data/assets/actions/trails/trail_appearance.asset @@ -20,7 +20,7 @@ local function highlightAction(identifierString, value, nameString) Command = highlightCommand(identifierString, value), Documentation = "Animates the trail fade of " .. nameString .. "'s Trail", GuiPath = "/Trails/Appearance", - IsLocal = true + IsLocal = false } end @@ -43,7 +43,7 @@ else end]], Documentation = "Animates the trail fade of " .. nameString .. "'s trail", GuiPath = "/Trails/Appearance", - IsLocal = true + IsLocal = false } end @@ -57,7 +57,7 @@ local EnableTrailFading = { ]], Documentation = "Set orbits to fade out towards the end", GuiPath = "/Trails/Appearance", - IsLocal = true + IsLocal = false } local DisableTrailFading = { @@ -69,7 +69,7 @@ local DisableTrailFading = { ]], Documentation = "Sets trails not to fade out torwards end", GuiPath = "/Trails/Appearance", - IsLocal = true + IsLocal = false } local ToggleTrailFading = { @@ -95,7 +95,7 @@ local ToggleTrailFading = { ]], Documentation = "Toggle trails to fade out towards the end for all trails in the Scene", GuiPath = "/Trails/Appearance", - IsLocal = true + IsLocal = false } local HighlightEarthTrail = highlightAction("Scene.EarthTrail", 10, "Earth") diff --git a/data/assets/default_keybindings.asset b/data/assets/default_keybindings.asset index 06883e32b3..2b207fa0c1 100644 --- a/data/assets/default_keybindings.asset +++ b/data/assets/default_keybindings.asset @@ -53,7 +53,7 @@ local ToggleRotationFriction = { Command = propertyHelper.invert("NavigationHandler.OrbitalNavigator.Friction.RotationalFriction"), Documentation = "Toggles the rotational friction of the camera. If it is disabled, the camera rotates around the focus object indefinitely", GuiPath = "/Navigation", - IsLocal = false + IsLocal = true } local ToggleZoomFriction = { @@ -62,7 +62,7 @@ local ToggleZoomFriction = { Command = propertyHelper.invert("NavigationHandler.OrbitalNavigator.Friction.ZoomFriction"), Documentation = "Toggles the zoom friction of the camera. If it is disabled, the camera rises up from or closes in towards the focus object indefinitely", GuiPath = "/Navigation", - IsLocal = false + IsLocal = true } local ToggleRollFriction = { @@ -71,7 +71,7 @@ local ToggleRollFriction = { Command = propertyHelper.invert("NavigationHandler.OrbitalNavigator.Friction.RollFriction"), Documentation = "Toggles the roll friction of the camera. If it is disabled, the camera rolls around its own axis indefinitely", GuiPath = "/Navigation", - IsLocal = false + IsLocal = true } local FadeToBlack = { diff --git a/data/assets/scene/solarsystem/missions/apollo/insignias_map.asset b/data/assets/scene/solarsystem/missions/apollo/insignias_map.asset index e00120ffa5..0a3c9d7eb3 100644 --- a/data/assets/scene/solarsystem/missions/apollo/insignias_map.asset +++ b/data/assets/scene/solarsystem/missions/apollo/insignias_map.asset @@ -182,7 +182,7 @@ local ShowInsignias = { Command = [[openspace.setPropertyValue("Scene.Apollo*Insignia.Renderable.Opacity", 1, 0.5)]], Documentation = "Show patches of the Apollo missions on their respective landing sites", GuiPath = "/Missions/Apollo", - IsLocal = true + IsLocal = false } local HideInsignias = { @@ -191,7 +191,7 @@ local HideInsignias = { Command = [[openspace.setPropertyValue("Scene.Apollo*Insignia.Renderable.Opacity", 0, 0.5)]], Documentation = "Hide patches of the Apollo missions on their respective landing sites", GuiPath = "/Missions/Apollo", - IsLocal = true + IsLocal = false } asset.onInitialize(function() diff --git a/data/assets/scene/solarsystem/missions/artemis/toggle_trail.asset b/data/assets/scene/solarsystem/missions/artemis/toggle_trail.asset index b8f15cf8cc..bcb6a13ad7 100644 --- a/data/assets/scene/solarsystem/missions/artemis/toggle_trail.asset +++ b/data/assets/scene/solarsystem/missions/artemis/toggle_trail.asset @@ -46,7 +46,7 @@ local ToggleTrail = { node is currently in focus and only hide Artemis trails if it is in focus (as the 'Node') and 2) the transition direction (as 'Approaching' or 'Exiting')]], GuiPath = "/Artemis/Events", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/jupiter/major_moons.asset b/data/assets/scene/solarsystem/planets/jupiter/major_moons.asset index e0eb196004..98dccf15d3 100644 --- a/data/assets/scene/solarsystem/planets/jupiter/major_moons.asset +++ b/data/assets/scene/solarsystem/planets/jupiter/major_moons.asset @@ -27,7 +27,7 @@ local JupiterMajorMoonsOn = { ]], Documentation = "Turn ON Jupiter's major moons and their trails", GuiPath = "/Solar System/Jupiter", - IsLocal = true + IsLocal = false } local JupiterMajorMoonsOff = { @@ -62,7 +62,7 @@ local JupiterMajorMoonsOff = { ]], Documentation = "Turn OFF Jupiter's major moons and their trails", GuiPath = "/Solar System/Jupiter", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/jupiter/minor_moons.asset b/data/assets/scene/solarsystem/planets/jupiter/minor_moons.asset index 67292c4586..c071959616 100644 --- a/data/assets/scene/solarsystem/planets/jupiter/minor_moons.asset +++ b/data/assets/scene/solarsystem/planets/jupiter/minor_moons.asset @@ -31,7 +31,7 @@ local JupiterMinorMoonsOn = { ]], Documentation = "Turn ON Jupiter's minor moons and their trails", GuiPath = "/Solar System/Jupiter", - IsLocal = true + IsLocal = false } local JupiterMinorMoonsOff = { @@ -66,7 +66,7 @@ local JupiterMinorMoonsOff = { ]], Documentation = "Turn OFF Jupiter's minor moons and their trails", GuiPath = "/Solar System/Jupiter", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/neptune/major_moons.asset b/data/assets/scene/solarsystem/planets/neptune/major_moons.asset index d8040bb25b..190dd64267 100644 --- a/data/assets/scene/solarsystem/planets/neptune/major_moons.asset +++ b/data/assets/scene/solarsystem/planets/neptune/major_moons.asset @@ -26,7 +26,7 @@ local NeptuneMajorMoonsOn = { ]], Documentation = "Turn ON Neptune's major moons and their trails", GuiPath = "/Solar System/Neptune", - IsLocal = true + IsLocal = false } local NeptuneMajorMoonsOff = { @@ -61,7 +61,7 @@ local NeptuneMajorMoonsOff = { ]], Documentation = "Turn OFF Neptune's major moons and their trails", GuiPath = "/Solar System/Neptune", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/neptune/minor_moons.asset b/data/assets/scene/solarsystem/planets/neptune/minor_moons.asset index e30c04a6a1..c4c1511261 100644 --- a/data/assets/scene/solarsystem/planets/neptune/minor_moons.asset +++ b/data/assets/scene/solarsystem/planets/neptune/minor_moons.asset @@ -25,7 +25,7 @@ local NeptuneMinorMoonsOn = { ]], Documentation = "Turn ON Neptune's minor moons and their trails", GuiPath = "/Solar System/Neptune", - IsLocal = true + IsLocal = false } local NeptuneMinorMoonsOff = { @@ -60,7 +60,7 @@ local NeptuneMinorMoonsOff = { ]], Documentation = "Turn OFF Neptune's minor moons and their trails", GuiPath = "/Solar System/Neptune", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/saturn/major_moons.asset b/data/assets/scene/solarsystem/planets/saturn/major_moons.asset index 8f7aa38c72..5f7e9524ab 100644 --- a/data/assets/scene/solarsystem/planets/saturn/major_moons.asset +++ b/data/assets/scene/solarsystem/planets/saturn/major_moons.asset @@ -32,7 +32,7 @@ local SaturnMajorMoonsOn = { ]], Documentation = "Turn ON Saturn's major moons and their trails", GuiPath = "/Solar System/Saturn", - IsLocal = true + IsLocal = false } local SaturnMajorMoonsOff = { @@ -67,7 +67,7 @@ local SaturnMajorMoonsOff = { ]], Documentation = "Turn OFF Saturn's major moons and their trails", GuiPath = "/Solar System/Saturn", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/saturn/minor_moons.asset b/data/assets/scene/solarsystem/planets/saturn/minor_moons.asset index f2db6cfe5f..b1ba22ded4 100644 --- a/data/assets/scene/solarsystem/planets/saturn/minor_moons.asset +++ b/data/assets/scene/solarsystem/planets/saturn/minor_moons.asset @@ -28,7 +28,7 @@ local SaturnMinorMoonsOn = { ]], Documentation = "Turn ON Saturn's minor moons and their trails", GuiPath = "/Solar System/Saturn", - IsLocal = true + IsLocal = false } local SaturnMinorMoonsOff = { @@ -63,7 +63,7 @@ local SaturnMinorMoonsOff = { ]], Documentation = "Turn OFF Saturn's minor moons and their trails", GuiPath = "/Solar System/Saturn", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/uranus/major_moons.asset b/data/assets/scene/solarsystem/planets/uranus/major_moons.asset index 8b8d1c527b..53550d4f6c 100644 --- a/data/assets/scene/solarsystem/planets/uranus/major_moons.asset +++ b/data/assets/scene/solarsystem/planets/uranus/major_moons.asset @@ -371,7 +371,7 @@ local UranusMajorMoonsOn = { ]], Documentation = "Turn ON Uranus's major moons and their trails", GuiPath = "/Solar System/Uranus", - IsLocal = true + IsLocal = false } local UranusMajorMoonsOff = { @@ -406,7 +406,7 @@ local UranusMajorMoonsOff = { ]], Documentation = "Turn OFF Uranus's major moons and their trails", GuiPath = "/Solar System/Uranus", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/planets/uranus/minor_moons.asset b/data/assets/scene/solarsystem/planets/uranus/minor_moons.asset index 02e89109a3..ec8b985f20 100644 --- a/data/assets/scene/solarsystem/planets/uranus/minor_moons.asset +++ b/data/assets/scene/solarsystem/planets/uranus/minor_moons.asset @@ -26,7 +26,7 @@ local UranusMinorMoonsOn = { ]], Documentation = "Turn ON Uranus's minor moons and their trails", GuiPath = "/Solar System/Uranus", - IsLocal = true + IsLocal = false } local UranusMinorMoonsOff = { @@ -61,7 +61,7 @@ local UranusMinorMoonsOff = { ]], Documentation = "Turn OFF Uranus's minor moons and their trails", GuiPath = "/Solar System/Uranus", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/telescopes/jwst/point_jwst.asset b/data/assets/scene/solarsystem/telescopes/jwst/point_jwst.asset index ebe2b56876..bc2bd95d60 100644 --- a/data/assets/scene/solarsystem/telescopes/jwst/point_jwst.asset +++ b/data/assets/scene/solarsystem/telescopes/jwst/point_jwst.asset @@ -136,7 +136,7 @@ local PointJwst = { sky coordinate as arguments. ]], GuiPath = "/JWST/Events", - IsLocal = true + IsLocal = false } diff --git a/data/assets/scene/solarsystem/telescopes/jwst/toggle_trail.asset b/data/assets/scene/solarsystem/telescopes/jwst/toggle_trail.asset index 63c9afc1e0..36c89c61cc 100644 --- a/data/assets/scene/solarsystem/telescopes/jwst/toggle_trail.asset +++ b/data/assets/scene/solarsystem/telescopes/jwst/toggle_trail.asset @@ -53,7 +53,7 @@ local ToggleTrail = { node is currently in focus and only hide JWST trail if it is in focus (as the 'Node') and 2) the transition direction (as 'Approaching' or 'Exiting')]], GuiPath = "/JWST/Events", - IsLocal = true + IsLocal = false }