/// <summary> /// Click handler for Orbital Logistics toolbar button. /// </summary> private void GuiOff() { if (_mainGui == null) { _mainGui = new OrbitalLogisticsGuiMain_Scenario(this); } _mainGui.SetVisible(false); }
/// <summary> /// Implementation of <see cref="MonoBehaviour"/>.Start /// </summary> void Start() { // Hook into the ScenarioModule for Orbital Logistics var scenario = HighLogic.FindObjectOfType <ScenarioOrbitalLogistics>(); if (!_hasInitStyles) { InitStyles(); _localLogistics = new ManualLocalLogistics(); _kolonyInventory = new KolonyInventory(); if (scenario != null) { _orbitalLogisticsGui = new OrbitalLogisticsGuiMain_Scenario(scenario); } } // Setup tab labels _tabLabels = new[] { "Kolony Statistics", "Local Logistics", "Planetary Logistics", "Kolony Inventory", "Orbital Logistics" }; }