Example #1
0
 /// <summary>
 /// Creates a new Meneuver Node Gizmo if needed
 /// </summary>
 internal static void CreateNodeGizmo(this ManeuverNode node)
 {
     if (node.attachedGizmo == null)
     {
         node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer);
     }
 }
Example #2
0
        /// <summary>
        /// Creates a new Meneuver Node Gizmo if needed
        /// </summary>
        public static void CreateNodeGizmo(ManeuverNode node)
        {
            if (node.attachedGizmo != null)
            {
                return;
            }
            PatchRendering pr = FlightGlobals.ActiveVessel.patchedConicRenderer.FindRenderingForPatch(node.patch);

            node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer, pr);
        }
Example #3
0
 /// <summary>
 /// Creates a new Meneuver Node Gizmo if needed
 /// </summary>
 public static void CreateNodeGizmo(ManeuverNode node)
 {
     if(node.attachedGizmo != null) { return; }
     PatchRendering pr = FlightGlobals.ActiveVessel.patchedConicRenderer.FindRenderingForPatch(node.patch);
     node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer, pr);
 }