public void updateBannerWhenShipExist(bool openAnimation, bool isShutterHide = false) { if (!IsSet) { _shipFrame.SetActive(false); return; } SetShipFrameActive(active: true); StarManager.init(_ship.Srate); shipBanner.transform.gameObject.SetActive(true); shipBanner.SetShipData(_ship); _labelNumber.alpha = 1f; _gauge.alpha = 1f; SetHpGauge(); _labelLevel.alpha = 1f; _labelLevel.textInt = _ship.Level; _labelName.alpha = 1f; _labelName.text = _ship.Name; _labelName.color = ((!_ship.IsMarriage()) ? new Color(0f, 0f, 0f) : new Color(1f, 0.7f, 0f)); _labelName.effectColor = ((!_ship.IsMarriage()) ? new Color(1f, 1f, 1f) : new Color(0f, 0f, 0f)); _labelTaikyu.alpha = 1f; _labelTaikyu.text = _ship.NowHp + "/" + _ship.MaxHp; if (openAnimation) { CloseBanner(animation: false); OpenBanner(!isShutterHide); } }
public void Initialize(ShipModel shipModel) { mShipModel = shipModel; mLabel_Level.text = shipModel.Level.ToString(); mLabel_ShipName.text = shipModel.Name; mCommonShipBanner_ShipBanner.SetShipData(shipModel); }
public void Initialize(int slotIndex, ShipModel shipModel, ShipExpModel shipExpModel) { mSlotIndex = slotIndex; mShipModel = shipModel; mShipExpModel = shipExpModel; mLabel_Level.text = shipExpModel.LevelBefore.ToString(); mCommonShipBanner.SetShipData(mShipModel); }
public void Initialize(int position, ShipModel shipModel) { mLabel_ShipPosition.text = position.ToString(); mCommonShipBanner.SetShipData(shipModel); if (mCommonShipSupplyState != null) { mCommonShipSupplyState.setSupplyState(shipModel); } }
public override void SetBanner(ShipModel ship, int idx) { base.SetBanner(ship, idx); if (base.enabled) { _shipBanner.SetActive(isActive: true); _shipBanner.SetShipData(ship); } }
public void SetModel(RepairDockModel dock, int RepairKitNum) { ShipModel ship = dock.GetShip(); ShipName.text = ship.Name; ShipLV.textInt = ship.Level; NeedDay.textInt = dock.RemainingTurns; KitNumBefore.textInt = RepairKitNum; KitNumAfter.textInt = RepairKitNum - 1; shipBanner.SetShipData(ship); }
public void UpdateInfo(int ret) { _isBtnMaruUp = false; _clsRepair = rep.now_clsRepair(); sm = _clsRepair.GetDockData(ret).GetShip(); csb.SetShipData(sm); iTween.ScaleTo(base.gameObject, new Vector3(0.6f, 0.6f, 0.6f), 0f); ele_l = GameObject.Find("dialog2_top/dialog2/label_shipname").GetComponent <UILabel>(); ele_l.text = sm.Name; ele_l = GameObject.Find("dialog2_top/dialog2/label_lv").GetComponent <UILabel>(); ele_l.text = string.Empty + sm.Level; GameObject.Find("dialog2/label_param_1").GetComponent <UILabel>().text = _clsRepair.GetDockData(ret).RemainingTurns.ToString(); GameObject.Find("dialog2/label_param_2").GetComponent <UILabel>().text = rep.now_repairkit().ToString(); GameObject.Find("dialog2/label_param_3").GetComponent <UILabel>().text = (rep.now_repairkit() - 1).ToString(); shipid = sm.MstId; }
public void SetModel(ShipModel ship) { ShipName.text = ship.Name; ShipLV.textInt = ship.Level; UILabel steelNum = SteelNum; MaterialInfo resourcesForRepair = ship.GetResourcesForRepair(); steelNum.textInt = resourcesForRepair.Steel; UILabel fuelNum = FuelNum; MaterialInfo resourcesForRepair2 = ship.GetResourcesForRepair(); fuelNum.textInt = resourcesForRepair2.Fuel; NeedDay.textInt = ship.RepairTime; UseKit.text = "使用しない"; shipBanner.SetShipData(ship); }
public void Initialize(int realIndex, ShipModel model) { UITexture uITexture = CommonShipBanner.GetUITexture(); Texture releaseRequestTexture = uITexture.mainTexture; uITexture.mainTexture = null; UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture); mRealIndex = realIndex; mShipModel = model; CommonShipBanner.SetShipData(mShipModel); CommonShipBanner.StopParticle(); uITexture.alpha = 1f; shipName.text = mShipModel.Name; shipLevel.text = mShipModel.Level.ToString(); stars.init(mShipModel.Srate); mWidgetThis.alpha = 1f; }
public void Initialize(ShipModel baitShipModel) { UITexture uITexture = mCommonShipBanner.GetUITexture(); Texture releaseRequestTexture = uITexture.mainTexture; uITexture.mainTexture = null; UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture); mBaitShipModel = baitShipModel; if (baitShipModel == null) { mWidgetThis.alpha = 0.01f; return; } mCommonShipBanner.SetShipData(baitShipModel); mLabel_Level.text = baitShipModel.Level.ToString(); mWidgetThis.alpha = 1f; }
public void UpdateInfo(ShipModel value_ship) { ship = value_ship; csb.SetShipData(value_ship); Vector3 localPosition = base.gameObject.transform.localPosition; if (!(localPosition.y < 100f)) { ele_l = GameObject.Find("dialog/label_shipname").GetComponent <UILabel>(); ele_l.text = ship.Name; ele_l = GameObject.Find("dialog/label_lv").GetComponent <UILabel>(); ele_l.text = ship.Level + string.Empty; if (ship.DamageStatus != 0) { _isSmoked = true; } else { _isSmoked = false; csb_smokes = null; } if (ship.ConditionState == FatigueState.Exaltation) { _isKira = true; } else { _isKira = false; } MaterialInfo resourcesForRepair = ship.GetResourcesForRepair(); ele_l = GameObject.Find("dialog/label_param").GetComponent <UILabel>(); ele_l.text = resourcesForRepair.Steel + "\n" + resourcesForRepair.Fuel + "\n"; ele_l.text += ((!_sw) ? (ship.RepairTime + string.Empty) : "0"); ele_l.text += "\u3000\n使用"; if (_sw) { ele_l.text += "する"; before_hp = ship.NowHp; } else { ele_l.text += "しない"; } } }
public void Initialize(int deckInNumber, ShipModel shipModel) { mDeckInNumber = deckInNumber; mShipModel = shipModel; mLabel_DeckInNumber.text = deckInNumber.ToString(); mCommonShipBanner_Ship.SetShipData(shipModel); mLabel_ShipName.text = shipModel.Name; mLabel_ShipLevel.text = mShipModel.Level.ToString(); for (int i = 0; i < mSprites_RemodelLevel.Length; i++) { if (i <= mShipModel.Srate) { mSprites_RemodelLevel[i].spriteName = "star_on"; } else { mSprites_RemodelLevel[i].spriteName = "star"; } } mWidgetThis.alpha = 1f; }
public void UpdateEscortDeck(EscortDeckModel deck) { bool flag = Banner.ShipModel == null || Banner.ShipModel != deck.GetFlagShip(); Banner.SetShipData(deck.GetFlagShip()); for (int i = 0; i < shipTypeIcons.Length; i++) { ShipModel ship = deck.GetShip(i + 1); if (ship != null) { shipTypeIcons[i].spriteName = ShipTypeIconName[ship.ShipType]; ChangeColor(ship, shipTypeIcons[i]); } else { shipTypeIcons[i].spriteName = string.Empty; } } if (flag) { updateView(0.2f); } }
public void Initialize(int realIndex, RemodeModernizationShipTargetListChildNew model) { UITexture uITexture = mCommonShipBanner.GetUITexture(); Texture releaseRequestTexture = uITexture.mainTexture; uITexture.mainTexture = null; UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture); mWidgetThis.alpha = 1f; if (model.mOption == RemodeModernizationShipTargetListChildNew.ListItemOption.UnSet) { mRealIndex = realIndex; mModel = null; mCommonShipBanner.SetActive(isActive: false); mSprite_Karyoku.alpha = 0f; mSprite_Raisou.alpha = 0f; mSprite_Soukou.alpha = 0f; mSprite_Taikuu.alpha = 0f; mSprite_Luck.alpha = 0f; mLabel_Level.alpha = 0f; mLabel_Level.text = "はずす"; mLEVEL.localScale = Vector3.zero; mUNSET.localScale = Vector3.one; return; } mRealIndex = realIndex; mModel = model; mCommonShipBanner.SetActive(isActive: true); mSprite_Karyoku.alpha = 1f; mSprite_Raisou.alpha = 1f; mSprite_Soukou.alpha = 1f; mSprite_Taikuu.alpha = 1f; mSprite_Luck.alpha = 1f; mLabel_Level.alpha = 1f; mLEVEL.localScale = Vector3.one; mUNSET.localScale = Vector3.zero; if (0 < model.mShipModel.PowUpKaryoku) { mSprite_Karyoku.spriteName = "icon_1_on"; } else { mSprite_Karyoku.spriteName = "icon_1"; } if (0 < model.mShipModel.PowUpRaisou) { mSprite_Raisou.spriteName = "icon_2_on"; } else { mSprite_Raisou.spriteName = "icon_2"; } if (0 < model.mShipModel.PowUpSoukou) { mSprite_Soukou.spriteName = "icon_3_on"; } else { mSprite_Soukou.spriteName = "icon_3"; } if (0 < model.mShipModel.PowUpTaikuu) { mSprite_Taikuu.spriteName = "icon_4_on"; } else { mSprite_Taikuu.spriteName = "icon_4"; } if (0 < model.mShipModel.PowUpLucky) { mSprite_Luck.spriteName = "icon_5_on"; } else { mSprite_Luck.spriteName = "icon_5"; } mCommonShipBanner.SetShipData(model.mShipModel); mCommonShipBanner.GetUITexture().alpha = 1f; mCommonShipBanner.StopParticle(); mLabel_Level.text = model.mShipModel.Level.ToString(); }
public void SetDeckInfo(DeckModel model, IsGoCondition Condition) { ShipBanner.SetShipData(model.GetFlagShip()); DeckNumberIcon.spriteName = "icon_deck" + model.Id; ReasonLabel.text = Util.getCancelReason(Condition); }
private void SetShip(ShipModel shipModel) { Texture releaseRequestTexture = mCommonShipBanner.GetUITexture().mainTexture; mCommonShipBanner.GetUITexture().mainTexture = null; UserInterfaceRemodelManager.instance.ReleaseRequestBanner(ref releaseRequestTexture); mShipModel = shipModel; mCommonShipBanner.SetActive(isActive: true); mTransformLEVEL.SetActive(isActive: true); mSprite_Karyoku.alpha = 1f; mSprite_Raisou.alpha = 1f; mSprite_Soukou.alpha = 1f; mSprite_Taikuu.alpha = 1f; mSprite_Luck.alpha = 1f; mLabel_Level.alpha = 1f; mSprite_Add.alpha = 0f; if (0 < shipModel.PowUpKaryoku) { mSprite_Karyoku.spriteName = "icon_1_on"; } else { mSprite_Karyoku.spriteName = "icon_1"; } if (0 < shipModel.PowUpRaisou) { mSprite_Raisou.spriteName = "icon_2_on"; } else { mSprite_Raisou.spriteName = "icon_2"; } if (0 < shipModel.PowUpSoukou) { mSprite_Soukou.spriteName = "icon_3_on"; } else { mSprite_Soukou.spriteName = "icon_3"; } if (0 < shipModel.PowUpTaikuu) { mSprite_Taikuu.spriteName = "icon_4_on"; } else { mSprite_Taikuu.spriteName = "icon_4"; } if (0 < shipModel.PowUpLucky) { mSprite_Luck.spriteName = "icon_5_on"; } else { mSprite_Luck.spriteName = "icon_5"; } mCommonShipBanner.SetShipData(shipModel); mCommonShipBanner.StopParticle(); mLabel_Level.text = shipModel.Level.ToString(); mLabel_Name.text = shipModel.Name; }