Browse Source

商店物品名称显示

zhaoyang 2 năm trước cách đây
mục cha
commit
4fa9437f55

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

@@ -85,7 +85,7 @@ namespace GFGGame
         private void UpdateStaticView()
         {
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(_shopCfg.itemId);
-            _ui.m_comBg.m_txtTitle.text = itemCfg.name;
+            _ui.m_comBg.m_txtTitle.text = _shopCfg.itemName;
             _ui.m_txtDesc.text = string.IsNullOrEmpty(itemCfg.desc) ? "暂无描述" : itemCfg.desc;
             _ui.m_txtOwned.SetVar("count", ItemDataManager.GetItemNum(_shopCfg.itemId).ToString()).FlushVars();
             _ui.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
@@ -147,7 +147,7 @@ namespace GFGGame
             _ui.m_btnMax.target.touchable = _shopCfg.costType == CostType.RMB || _buyCount == _maxCanBuy ? false : true;
 
             _ui.m_txtShow.text = "选择购买数量";
-            _ui.m_txtTips.text = string.Format("确定购买{0}个{1}?", _buyCount, itemCfg.name);
+            _ui.m_txtTips.text = string.Format("确定购买{0}个【{1}】?", _buyCount, _shopCfg.itemName);
             if (_shopCfg.costType == CostType.RMB)
             {
                 _ui.m_comCost.target.visible = false;