protected void findInventories()
        {
            WBIKISInventoryWrapper wrapper;

            foreach (PartModule partModule in this.part.Modules)
            {
                if (partModule.moduleName == "ModuleKISInventory")
                {
                    wrapper = new WBIKISInventoryWrapper(partModule);
                    if (wrapper.invType == WBIKISInventoryWrapper.InventoryType.Pod)
                    {
                        inventories.Add(wrapper);
                        wrapper.HideToggleInventory();
                    }
                }
            }

            inventoryView.inventories = this.inventories;
        }
Example #2
0
        public override void OnStart(StartState state)
        {
            base.OnStart(state);
            if (HighLogic.LoadedSceneIsFlight == false && HighLogic.LoadedSceneIsEditor == false)
            {
                return;
            }

            //Find all the seat inventories and hide their GUI.
            WBIKISInventoryWrapper wrapper;

            foreach (PartModule partModule in this.part.Modules)
            {
                if (partModule.moduleName == "ModuleKISInventory")
                {
                    wrapper = new WBIKISInventoryWrapper(partModule);
                    if (wrapper.invType == WBIKISInventoryWrapper.InventoryType.Pod)
                    {
                        inventories.Add(wrapper);
                        wrapper.HideToggleInventory();
                    }
                }
            }
        }