public void ShowGoodsList(SMsgTradeOpenShop_SC sMsgTradeOpenShop_SC, ShopInfoUIManager_V2 MyParent) { this.sMsgTradeOpenShop_SC = sMsgTradeOpenShop_SC; this.MyParent = MyParent; CurrentPageNumber = 1; ResetPageInfo(); }
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) { 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 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 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 Show(SMsgTradeOpenShopGoodsInfo_SC sMsgTradeOpenShopGoodsInfo_SC, ShopInfoUIManager_V2 MyParent) { SelectNumberScoreBar.scrollValue = 1f / 99f; InputLabel.text = ""; this.ShopSingleGoodsBox.Init(sMsgTradeOpenShopGoodsInfo_SC, null); BuyNumber = 1; this.sMsgTradeOpenShopGoodsInfo_SC = sMsgTradeOpenShopGoodsInfo_SC; this.MyParent = MyParent; var PlayerData = PlayerManager.Instance.FindHeroDataModel().PlayerValues; this.m_BindMoney = PlayerData.PLAYER_FIELD_CURRENCY_COWRY; this.m_GoldMoney = PlayerData.PLAYER_FIELD_BINDPAY; this.m_CopperCoin = PlayerData.PLAYER_FIELD_HOLDMONEY; transform.localPosition = new Vector3(0, 0, -200); }