Beispiel #1
0
 void OnGUI()
 {
     if (vessel == FlightGlobals.ActiveVessel && mouseAimActive && !MapView.MapIsEnabled)
     {
         MouseAimFlightSceneGUI.DisplayMouseAimReticles(mouseAimScreenLocation, vesselForwardScreenLocation);
     }
 }
 void Start()
 {
     instance = this;
     if (mouseCursorReticle == null)
     {
         mouseCursorReticle            = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/circle", false);
         mouseCursorReticle.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardCross == null)
     {
         vesselForwardCross            = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/cross", false);
         vesselForwardCross.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardDot == null)
     {
         vesselForwardDot            = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/dot", false);
         vesselForwardDot.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardBlank == null)
     {
         vesselForwardBlank            = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/blank", false);
         vesselForwardBlank.filterMode = FilterMode.Trilinear;
     }
     GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady);
     MouseAimSettings.Instance.SaveSettings();
     UpdateCursor(MouseAimSettings.Cursor);
 }
        //Commented out old GUI
        void OnGUI()
        {
            if (vessel == FlightGlobals.ActiveVessel && mouseAimActive && !MapView.MapIsEnabled)
            {
                MouseAimFlightSceneGUI.DisplayMouseAimReticles(mouseAimScreenLocation, vesselForwardScreenLocation);
            }

            /*    GUI.contentColor = Color.black;
             *  GUI.Label(new Rect(200, 200, 1200, 800), debugLabel);
             *
             * }
             * else if (vessel == FlightGlobals.ActiveVessel)
             *  debugRect = GUILayout.Window(this.GetHashCode(), debugRect, DebugPIDGUI, "");*/
        }
 void Start()
 {
     instance = this;
     if (mouseCursorReticle == null)
     {
         mouseCursorReticle = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/circle", false);
         mouseCursorReticle.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardCross == null)
     {
         vesselForwardCross = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/cross", false);
         vesselForwardCross.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardDot == null)
     {
         vesselForwardDot = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/dot", false);
         vesselForwardDot.filterMode = FilterMode.Trilinear;
     }
     if (vesselForwardBlank == null)
     {
         vesselForwardBlank = GameDatabase.Instance.GetTexture("MouseAimFlight/Assets/blank", false);
         vesselForwardBlank.filterMode = FilterMode.Trilinear;
     }
     GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady);
     MouseAimSettings.Instance.SaveSettings();
     UpdateCursor(MouseAimSettings.Cursor);
 }