private void initializeData() { if (!initialized) { setupTankList(false); weightList = BDAcTools.ParseDoubles(tankMass); tankCostList = BDAcTools.ParseDoubles(tankCost); if (HighLogic.LoadedSceneIsFlight) { hasLaunched = true; } if (hasGUI) { Events["nextTankSetupEvent"].guiActive = availableInFlight; Events["nextTankSetupEvent"].guiActiveEditor = availableInEditor; Events["previousTankSetupEvent"].guiActive = availableInFlight; Events["previousTankSetupEvent"].guiActiveEditor = availableInEditor; } else { Events["nextTankSetupEvent"].guiActive = false; Events["nextTankSetupEvent"].guiActiveEditor = false; Events["previousTankSetupEvent"].guiActive = false; Events["previousTankSetupEvent"].guiActiveEditor = false; } if (HighLogic.CurrentGame == null || HighLogic.CurrentGame.Mode == Game.Modes.CAREER) { Fields["addedCost"].guiActiveEditor = displayCurrentTankCost; } initialized = true; } }