private void CreateHideVesselCommands(CommandSet commands) { var vessels = FlightGlobals.Vessels; for (int i = 0; i < vessels.Count; i++) { var vessel = vessels[i]; var needCommand = m_configuration.HideVesselIcons | m_configuration.HideVesselOrbits; if (needCommand && m_vesselFilter.Accept(vessel)) { var command = new HideOrbitCommand(vessel.orbitRenderer, m_configuration.HideVesselIcons, m_configuration.HideVesselOrbits); commands.Add(command); } } }
private void CreateHideBodiesCommands(CommandSet commands) { var bodies = FlightGlobals.Bodies; for (int i = 0; i < bodies.Count; i++) { var body = bodies[i]; var needCommand = m_configuration.HideCelestialBodyIcons | m_configuration.HideCelestialBodyOrbits; if (needCommand && m_celestialBodyFilter.Accept(body)) { var command = new HideOrbitCommand(body.GetOrbitDriver().Renderer, m_configuration.HideCelestialBodyIcons, m_configuration.HideCelestialBodyOrbits); commands.Add(command); } } }