From 91023c6f702a0f6fd56f9105ace012a80e0f13a2 Mon Sep 17 00:00:00 2001 From: Lovisa Hassler Date: Wed, 23 Jan 2019 18:46:47 -0500 Subject: [PATCH] made individual shortcuts for the ground stations field of view --- data/assets/dsn.scene | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/data/assets/dsn.scene b/data/assets/dsn.scene index 5d5352b559..7ba5e6e7b9 100644 --- a/data/assets/dsn.scene +++ b/data/assets/dsn.scene @@ -108,17 +108,23 @@ local Keybindings = { Local = false }, { - Key = "v", - Command = [[ - local propertyValues = openspace.getProperty('Scene.*FOV.Renderable.Enabled') - - for _, propValue in pairs(propertyValues) do - openspace.setPropertyValue(propValue, not openspace.getPropertyValue(propValue)); - end - ]], - Documentation = "Toggles visibility of the stations field of view", + Key = "Shift+c", + Command = propertyHelper.invert('Scene.CanberraFOV.Renderable.Enabled'), + Documentation = "Toggles visibility of the Canberra ground station field of view", Local = false }, + { + Key = "Shift+m", + Command = propertyHelper.invert('Scene.MadridFOV.Renderable.Enabled'), + Documentation = "Toggles visibility of the Madrid ground station field of view", + Local = false + }, + { + Key = "Shift+g", + Command = propertyHelper.invert('Scene.GoldstoneFOV.Renderable.Enabled'), + Documentation = "Toggles visibility of the Goldstone ground station field of view", + Local = false + } } local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')