Exemplo n.º 1
0
 public static void ClearStatics()
 {
     ShipListMod.Debug_Log("[ShipListMod] clearstatics called");
     SLStaticData.Clear();
     //SLStaticData.UpdateGameScene();
     AllVesselData.Clear();
     staticsInitialized = false;
 }
Exemplo n.º 2
0
 public void Awake()
 {
     createButton();
     if (!staticsInitialized)
     {
         initStyles();
         staticsInitialized = true;
     }
     windowPosition = new Rect(Screen.width - 40 - cfg.windowSize.x, (Screen.height - cfg.windowSize.y) / 2, cfg.windowSize.x, cfg.windowSize.y);
     SLStaticData.UpdateGameScene();
     SOIfilter = new SOIFilterUI();
     print("Loaded ShipListMod (" + ClassName + ").");
 }
Exemplo n.º 3
0
        // public void Start() { }

        public void Update()
        {
            SLStaticData.UpdateGameScene();
            if (clearButton)
            {
                ShipListMod.Debug_Log("[ShipListMod] clearButton activated.");
                AllVesselData.Clear();
                clearButton = false;
            }

            // while in-flight, track the active vessel even if the gui is closed
            if ((HighLogic.LoadedSceneIsFlight) && (!showWindow))
            {
                tryGetSingleVesselData(FlightGlobals.ActiveVessel);
            }
        }