public override void OnStart(StartState state) { opsManagerView = new OpsManagerView(); if (logoPanelTransforms != null) { opsManagerView.hasDecals = true; } opsManagerView.part = this.part; opsManagerView.storageView = this.storageView; opsManagerView.setActiveConverterCount = setActiveConverterCount; opsManagerView.isAssembled = (this.isInflatable && this.isDeployed) || !this.isInflatable; opsManagerView.fieldReconfigurable = this.fieldReconfigurable; base.OnStart(state); Events["ReconfigureStorage"].guiName = "Manage Operations"; Events["ReconfigureStorage"].active = getAssembledState(); }
protected void setupOpsView() { if (opsManagerView != null) { return; } opsManagerView = new OpsManagerView(); if (logoPanelTransforms != null) { opsManagerView.hasDecals = true; } opsManagerView.part = this.part; opsManagerView.storageView = this.storageView; opsManagerView.setActiveConverterCount = setActiveConverterCount; opsManagerView.fieldReconfigurable = this.fieldReconfigurable; opsManagerView.isAssembled = getAssembledState(); }