added moon trails to toggle key

This commit is contained in:
Micah
2020-02-14 13:09:33 -05:00
parent ef7ff0adeb
commit 166eee8b28
2 changed files with 6 additions and 4 deletions

View File

@@ -57,9 +57,10 @@ local Keybindings = {
},
{
Key = "h",
Name="Toggle Planet Trails",
Command = "local list = openspace.getProperty('{planetTrail_solarSystem}.Renderable.Enabled'); for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end",
Documentation = "Toggles the visibility of planet trails",
Name="Toggle Trails",
Command = "local list = openspace.getProperty('{planetTrail_solarSystem}.Renderable.Enabled'); for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end\n" ..
"local moonlist = openspace.getProperty('{moonTrail_solarSystem}.Renderable.Enabled'); for _,v in pairs(moonlist) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end",
Documentation = "Toggles the visibility of planet and moon trails",
GuiPath = "/Rendering",
Local = false
},

View File

@@ -16,7 +16,8 @@ local MoonTrail = {
},
Color = { 0.5, 0.3, 0.3 },
Period = 27,
Resolution = 1000
Resolution = 1000,
Tag = { "moonTrail_solarSystem", "moonTrail_terrestrial", "moonTrail_earth" }
},
GUI = {
Name = "Moon Trail",