Global pass over all actions to make most of them not local

This commit is contained in:
Alexander Bock
2023-09-11 20:09:37 +02:00
parent 80ecc7d7e4
commit e763aeeba9
23 changed files with 52 additions and 52 deletions

View File

@@ -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
}

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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")

View File

@@ -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 = {

View File

@@ -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()

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -136,7 +136,7 @@ local PointJwst = {
sky coordinate as arguments.
]],
GuiPath = "/JWST/Events",
IsLocal = true
IsLocal = false
}

View File

@@ -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
}