Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }