Example #1
0
 public void Start()
 {
     if (!_hasInitStyles)
     {
         InitStyles();
         _localLogistics = new ManualLocalLogistics();
     }
 }
Example #2
0
 public void Start()
 {
     if (!_hasInitStyles)
     {
         InitStyles();
         _localLogistics  = new ManualLocalLogistics();
         _kolonyInventory = new KolonyInventory();
     }
 }
Example #3
0
        /// <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" };
        }