private void GetGUIShipList() { List <Dictionary <string, string> > guiExternListShipEditor = AHShipList.GetShipListAsList(true); guiExternListShipEditorVabAll = AHShipList.GetShipListAsList(true, false, "VAB"); guiExternListShipEditorVabRelay = AHShipList.GetShipListAsList(true, true, "VAB"); guiExternListShipEditorSphAll = AHShipList.GetShipListAsList(true, false, "SPH"); guiExternListShipEditorSphRelay = AHShipList.GetShipListAsList(true, true, "SPH"); guiExternListShipFlight = AHShipList.GetShipListAsList(false); }
public void Start() { if (HighLogic.CurrentGame.Mode == Game.Modes.MISSION_BUILDER) { Destroy(this); } if (!HighLogic.CurrentGame.Parameters.CustomParams <AntennaHelperSettings> ().enableInTrackingStation) { Destroy(this); return; } targetPid = ""; trackingStationLvl = ScenarioUpgradeableFacilities.GetFacilityLevel(SpaceCenterFacility.TrackingStation); dsnPower = GameVariables.Instance.GetDSNRange(trackingStationLvl); waitFor = new WaitForSeconds(.1f); GameEvents.onPlanetariumTargetChanged.Add(NewTarget); GameEvents.OnMapFocusChange.Add(NewTarget); GameEvents.CommNet.OnCommStatusChange.Add(CommNetUpdate); // if (AHShipList.visitFlightOnce) { // GetListsShip (); // CreateMarkers (); // } // GUI rectMainWindow = new Rect(0, 0, 150, 245); rectMainWindow.position = AHSettings.posTrackingStationMainWindow; mainWindowOn = false; rectEditorShipWindow = new Rect(0, 0, 350, 200); rectEditorShipWindow.position = AHSettings.posTrackingStationShipWindow; editorShipWindowOn = false; circleTypeSelected = GUICircleSelection.ACTIVE; editorShipVab = true; editorShipRelay = false; guiListEditorShipVabAll = AHShipList.GetShipListAsList(true, false, "VAB"); guiListEditorShipSphAll = AHShipList.GetShipListAsList(true, false, "SPH"); guiListEditorShipVabRelay = AHShipList.GetShipListAsList(true, true, "VAB"); guiListEditorShipSphRelay = AHShipList.GetShipListAsList(true, true, "SPH"); guiListEditorShipDisplay = guiListEditorShipVabAll; GameEvents.onGUIApplicationLauncherReady.Add(AddToolbarButton); GameEvents.onGUIApplicationLauncherDestroyed.Add(RemoveToolbarButton); }
private void GetGUIShipList() { List <Dictionary <string, string> > guiExternListShipEditor = AHShipList.GetShipListAsList(true); guiExternListShipEditorVabAll = AHShipList.GetShipListAsList(true, false, "VAB"); guiExternListShipEditorVabRelay = AHShipList.GetShipListAsList(true, true, "VAB"); guiExternListShipEditorSphAll = AHShipList.GetShipListAsList(true, false, "SPH"); guiExternListShipEditorSphRelay = AHShipList.GetShipListAsList(true, true, "SPH"); if (HighLogic.CurrentGame.Mode != Game.Modes.MISSION_BUILDER) { guiExternListShipFlight = AHShipList.GetShipListAsList(false); } }