public void ShowGoodsInfo(ShopSingleGoodsBox_V2 SelectGoods, ShopInfoUIManager_V2 MyParent) { switch (SelectGoods.LocalGoodsData._GoodsClass) { case 1: if (shopContainerTips_EquipMent == null) { shopContainerTips_EquipMent = CreatObjectToNGUI.InstantiateObj(ShopContaienrTipsPrefab_Equipment, transform).GetComponent <EquipmentShopGoodsTips_V2>(); } if (shopContainerTips_Other != null) { shopContainerTips_Other.Close(); } shopContainerTips_EquipMent.Show(SelectGoods, MyParent); break; default: if (shopContainerTips_Other == null) { shopContainerTips_Other = CreatObjectToNGUI.InstantiateObj(ShopContaienrTipsPrefab_Other, transform).GetComponent <OtherShopGoodsTips_V2>(); } if (shopContainerTips_EquipMent != null) { shopContainerTips_EquipMent.Close(); } shopContainerTips_Other.Show(SelectGoods, MyParent); break; } }
public override void Show(ShopSingleGoodsBox_V2 SelectGoods, ShopInfoUIManager_V2 MyParent) { LevelNeed.SetText(string.Format("{0}{1}", SelectGoods.LocalGoodsData._AllowLevel, LanguageTextManager.GetString("IDS_H1_156"))); int currentLv = PlayerManager.Instance.FindHeroDataModel().UnitValues.sMsgPropCreateEntity_SC_UnitVisibleValue.UNIT_FIELD_LEVEL; LevelNeed.color = currentLv >= SelectGoods.LocalGoodsData._AllowLevel ? Color.green : Color.red; base.Show(SelectGoods, MyParent); Effect1.ShowEffect(SelectGoods.LocalGoodsData as EquipmentData, 0); Effect2.ShowEffect(SelectGoods.LocalGoodsData as EquipmentData, 1); }
public override void Show(ShopSingleGoodsBox_V2 SelectGoods, ShopInfoUIManager_V2 MyParent) { this.DesLabel.SetText(LanguageTextManager.GetString(SelectGoods.LocalGoodsData._szDesc)); this.LevelNeedLabel.SetText(SelectGoods.LocalGoodsData._AllowLevel); int currentLv = PlayerManager.Instance.FindHeroDataModel().UnitValues.sMsgPropCreateEntity_SC_UnitVisibleValue.UNIT_FIELD_LEVEL; LevelNeedLabel.color = currentLv >= SelectGoods.LocalGoodsData._AllowLevel ? Color.green : Color.red; this.OverlayLabel.SetText(SelectGoods.LocalGoodsData._PileQty); base.Show(SelectGoods, MyParent); }
public virtual void Show(ShopSingleGoodsBox_V2 SelectGoods, ShopInfoUIManager_V2 MyParent) { IsShow = true; this.MyParent = MyParent; this.SelectGoods = SelectGoods; this.GoodsTitle.Init(SelectGoods.sMsgTradeOpenShopGoodsInfo_SC, null); this.CostTypeICon.ChangeSprite(SelectGoods.sMsgTradeOpenShopGoodsInfo_SC.bType); this.CostNumber.SetText(SelectGoods.sMsgTradeOpenShopGoodsInfo_SC.dPrice.ToString()); CostNumber.color = CheckCanPay() ? Color.white : Color.red; transform.localPosition = Vector3.zero; }
public void OnShopGoodsSelect(ShopSingleGoodsBox_V2 SelectGoods) { shopSingleGoodsBoxList.ApplyAllItem(P => P.SetSelectStatus(false)); SelectGoods.SetSelectStatus(true); MyParent.shopContainerTips.ShowGoodsInfo(SelectGoods, MyParent); }