Make new trail default and change the colors

This commit is contained in:
Malin E
2022-08-16 16:50:23 +02:00
parent b8a36c9845
commit 91513fafca
3 changed files with 7 additions and 8 deletions
@@ -16,7 +16,6 @@ local toggle_trail = {
local launchTrail = "JWSTTrailLaunch"
local cruiseTrail = "JWSTTrailCruise"
local orbitTrail = "JWSTTrailOrbit"
local coRotOrbitTrail = "JWSTTrailCoRotOrbit"
local visibility
@@ -32,7 +31,6 @@ local toggle_trail = {
visibility = not (
openspace.getPropertyValue("Scene." .. launchTrail .. ".Renderable.Enabled") or
openspace.getPropertyValue("Scene." .. cruiseTrail .. ".Renderable.Enabled") or
openspace.getPropertyValue("Scene." .. orbitTrail .. ".Renderable.Enabled") or
openspace.getPropertyValue("Scene." .. coRotOrbitTrail .. ".Renderable.Enabled")
)
end
@@ -45,10 +43,6 @@ local toggle_trail = {
"Scene." .. cruiseTrail .. ".Renderable.Enabled",
visibility
)
openspace.setPropertyValueSingle(
"Scene." .. orbitTrail .. ".Renderable.Enabled",
visibility
)
openspace.setPropertyValueSingle(
"Scene." .. coRotOrbitTrail .. ".Renderable.Enabled",
visibility
@@ -101,7 +101,7 @@ local JWSTTrailOrbit = {
Frame = 'GALACTIC',
Kernels = { kernels .. "webb.bsp" }
},
Color = { 0.9, 0.9, 0.0 },
Color = { 0.863, 0.0, 0.902 },
Period = 182.621099, -- About 6 months
Resolution = 183 -- About a sample rate of once per day
},
@@ -133,7 +133,7 @@ local JWSTTrailCoRotOrbit = {
Frame = 'L2_COROT',
Kernels = { kernels .. "webb.bsp" }
},
Color = { 0.9, 0.0, 0.9 },
Color = { 1.0, 0.663, 0.157 },
Period = 182.621099, -- About 6 months
Resolution = 183 -- About a sample rate of once per day
},
+5
View File
@@ -294,6 +294,11 @@
"type": "setPropertyValueSingle",
"value": "false"
},
{
"name": "Scene.JWSTTrailOrbit.Renderable.Enabled",
"type": "setPropertyValueSingle",
"value": "false"
},
{
"name": "Scene.JWSTSunTrail.Renderable.Enabled",
"type": "setPropertyValueSingle",