protected override void OnSelect(UIRemodeModernizationShipTargetListChildNew view) { if (this.isShown && base.mState == UIScrollList <RemodeModernizationShipTargetListChildNew, UIRemodeModernizationShipTargetListChildNew> .ListState.Waiting) { base.RemoveFocus(); ShipModel selectedShipModel = null; if (view != null && view.GetModel() != null) { RemodeModernizationShipTargetListChildNew.ListItemOption mOption = view.GetModel().mOption; if (mOption != RemodeModernizationShipTargetListChildNew.ListItemOption.Model) { if (mOption == RemodeModernizationShipTargetListChildNew.ListItemOption.UnSet) { selectedShipModel = null; } } else { selectedShipModel = view.GetModel().mShipModel; } } this.Hide(); UserInterfaceRemodelManager.instance.SelectKindaikaKaishuSozai(selectedShipModel); } }
public RemodeModernizationShipTargetListChildNew(RemodeModernizationShipTargetListChildNew.ListItemOption option, ShipModel model) { this.mOption = option; this.mShipModel = model; if (model != null) { this.mType = ((0 >= model.PowUpKaryoku) ? 0 : 16) + ((0 >= model.PowUpRaisou) ? 0 : 8) + ((0 >= model.PowUpSoukou) ? 0 : 4) + ((0 >= model.PowUpTaikuu) ? 0 : 2) + ((0 >= model.PowUpLucky) ? 0 : 1); } else { this.mType = 0; } }