Ejemplo n.º 1
0
        public override void OnStart(StartState state)
        {
            storageView      = new ConvertibleStorageView();
            storageView.part = this.part;
            base.OnStart(state);
            hideEditorButtons();
            Events["ReconfigureStorage"].guiActiveUnfocused = fieldEVAConfigurable;
            Events["ReconfigureStorage"].guiActive          = fieldReconfigurable;

            //Kludge: make sure that if we're deflated then dump resources.
            //This is to compensate for KIS.
            if (isInflatable && isDeployed == false)
            {
                foreach (PartResource resource in this.part.Resources)
                {
                    resource.amount = 0;
                }
            }
        }