浏览代码

商店物品名称显示

zhaoyang 2 年之前
父节点
当前提交
4fa9437f55
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Views/Store/ItemExchangeView.cs

+ 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;