Эх сурвалжийг харах

关卡信息不显示道具数量

zhaoyang 2 жил өмнө
parent
commit
0dbc0a94f7

+ 9 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ItemView.cs

@@ -69,6 +69,7 @@ namespace GFGGame
             _imgShouTong.visible = false;
             // _grpCount.visible = true;
             _showTips = true;
+            _txtCount.visible = true;
 
             _txtName.text = itemCfg.name;
             _txtCount.SetVar("count", _itemData.num.ToString()).FlushVars();
@@ -228,6 +229,14 @@ namespace GFGGame
         {
             _txtCount.SetPosition(x, y, 0);
         }
+        public bool ShowTxtCount
+        {
+            set
+            {
+                _txtCount.visible = value;
+            }
+        }
+
         public void SetTxtNamePos(int x, int y)
         {
             _txtName.SetPosition(x, y, 0);

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs

@@ -173,6 +173,7 @@ namespace GFGGame
                 item.data = new ItemView(listItem.m_comItem as GComponent);
             }
             (item.data as ItemView).SetData(itemData);
+            (item.data as ItemView).ShowTxtCount = false;
             List<ItemData> bonusOnceData = StoryBonusDataCache.GetBonusData(_levelID).bonusOnce;
             (item.data as ItemView).ImgShouTongVisable = !InstanceZonesDataManager.CheckLevelPass(_levelID) && index < bonusOnceData.Count;
             UI_ListRewardItem.ProxyEnd();