public MsgData_BattleShop_buy(SItemData sItem, BuyingEquipType type, ShopInfo curShopInfo) { this.rItem = null; this.sItem = sItem; this.buyType = type; this.curShop = curShopInfo; this.CheckValid(); }
private void RefreshUI_item() { RItemData rItemData = this.RecommendItem; if (rItemData != null) { this.sprite_icon.spriteName = rItemData.Config.icon; this.label_name.text = LanguageManager.Instance.GetStringById(rItemData.Config.name); this.label_attri.text = BattleEquipTools_config.GetAttriDes(rItemData.Config, " ", 2); this.label_des.text = LanguageManager.Instance.GetStringById(rItemData.Config.recommend_describe); this.label_price.text = rItemData.RealPrice.ToString(); base.name = rItemData.ID; } }
private void OnMsg_BattleShop_clickRItem(MobaMessage msg) { RItemData rItemData = msg.Param as RItemData; ShopInfo curShopInfo; if (!BattleEquipTools_op.IsPlayerAlive()) { curShopInfo = rItemData.GetShopByType(BattleEquipTools_op.GetShopTypeByTeamType()); } else { curShopInfo = rItemData.GetAvailableShop(); } MsgData_BattleShop_buy buyInfo = new MsgData_BattleShop_buy(rItemData, BuyingEquipType.eRecommend, curShopInfo); this.DoBuy(buyInfo); }