Jelajahi Sumber

修改一些bug

lzx 10 jam lalu
induk
melakukan
bbc8f22ce7

+ 1 - 1
Assets/Res/UI/HeroInformainPanel/HeroBreakthroughPanel.prefab

@@ -3386,7 +3386,7 @@ RectTransform:
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
   m_AnchoredPosition: {x: 148, y: -22.3432}
-  m_SizeDelta: {x: 210, y: 43.2862}
+  m_SizeDelta: {x: 0, y: 43.2862}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &8334097589539832799
 CanvasRenderer:

+ 3 - 0
Assets/Res/UI/HeroInformainPanel/UseExpElixirPanel.prefab

@@ -346,6 +346,7 @@ MonoBehaviour:
     packgJsonPath: 
     packgSpritePath: 
     lasetJsonGUID: 
+  imageH: 419.0444
   useGradient: 0
   topOrLeftColor: {r: 1, g: 1, b: 1, a: 1}
   bottomOrRightColor: {r: 0, g: 0, b: 0, a: 1}
@@ -675,6 +676,7 @@ MonoBehaviour:
     packgJsonPath: 
     packgSpritePath: 
     lasetJsonGUID: 
+  imageH: 1624
   useGradient: 0
   topOrLeftColor: {r: 1, g: 1, b: 1, a: 1}
   bottomOrRightColor: {r: 0, g: 0, b: 0, a: 1}
@@ -808,6 +810,7 @@ MonoBehaviour:
     packgJsonPath: /Art/UIAssets/TextrueJson\jingjie.txt
     packgSpritePath: Assets/Res/UIAtlas/jingjie.spriteatlasv2
     lasetJsonGUID: a5790df98a45a640721da3160fc31d51
+  imageH: 104
   useGradient: 0
   topOrLeftColor: {r: 1, g: 1, b: 1, a: 1}
   bottomOrRightColor: {r: 0, g: 0, b: 0, a: 1}

+ 4 - 4
Assets/Res/UI/MainHeroPanel/FaBaoAttributeWidget.prefab

@@ -210,7 +210,7 @@ MonoBehaviour:
   m_FillOrigin: 0
   m_UseSpriteMesh: 0
   m_PixelsPerUnitMultiplier: 1
-  _icon_name: dec_fbjia
+  _icon_name: dec_fbjian
   isNotLoadDeftIcon: 0
   CurrSpriteAtlas: {fileID: 100100200, guid: 9ca71fa8b53209e4fbac2f9d8f60ce30, type: 3}
   packInfo:
@@ -330,7 +330,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 1
+  m_IsActive: 0
 --- !u!224 &1928020948802863893
 RectTransform:
   m_ObjectHideFlags: 0
@@ -371,7 +371,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.058823533, g: 0.9450981, b: 0.5882353, a: 1}
+  m_Color: {r: 0.9215687, g: 0.43137258, b: 0.427451, a: 1}
   m_RaycastTarget: 1
   m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
   m_Maskable: 1
@@ -381,7 +381,7 @@ MonoBehaviour:
   m_FontData:
     m_Font: {fileID: 12800000, guid: e588d93665211944387ec8c03c8726ae, type: 3}
     m_FontSize: 29
-    m_FontStyle: 0
+    m_FontStyle: 1
     m_BestFit: 0
     m_MinSize: 1
     m_MaxSize: 40

+ 7 - 0
Assets/Scripts/GameLogic/Bag/BagController.cs

@@ -4,6 +4,7 @@ using Common.Utility.CombatEvent;
 using Core.Utility;
 using Fort23.Core;
 using Fort23.UTool;
+using GameLogic.Hero;
 using UnityEngine;
 
 namespace GameLogic.Bag
@@ -197,6 +198,8 @@ namespace GameLogic.Bag
                     faaData.level = 1;
                     faaData.useIndex = -1;
                     AccountFileInfo.Instance.playerData.AllFaBaoDatas.Add(faaData);
+                    FaBaoInfo faBaoInfo = new FaBaoInfo(faaData);
+                    PlayerManager.Instance.FaBaoControl.AddFaBao(faBaoInfo);
                     return true;
 
                 }
@@ -219,6 +222,10 @@ namespace GameLogic.Bag
                     skillData.level = 1;
                     skillData.useIndex = -1;
                     AccountFileInfo.Instance.playerData.AllSkillDatas.Add(skillData);
+                    
+                    SkillInfo skillInfo = new SkillInfo(skillData);
+                    skillInfo.index = skillData.useIndex;
+                    PlayerManager.Instance.GongFaControl.AddSkillInfo(skillInfo);
                     return true;
                 }
 

+ 2 - 1
Assets/Scripts/GameLogic/Hero/SkillInfo.cs

@@ -97,7 +97,8 @@ namespace GameLogic.Hero
             {
                 for (int i = 0; i < skillConfig.intensifierIndex.Length; i++)
                 {
-                    int index = skillConfig.intensifierIndex[i] - 1;
+                    // int index = skillConfig.intensifierIndex[i] - 1;
+                    int index = skillConfig.intensifierIndex[i] ;
                     if (index >= 0 && index < effectValue.Length)
                     {
                         effectValue[index] = effectValue[index] * SkillPowerupConfig.SkillPower1 * 0.01f;

+ 5 - 2
Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

@@ -622,7 +622,9 @@ public class EventSystemManager : Singleton<EventSystemManager>
                 
                 AccountFileInfo.SmallPlacesData lastSmallPlacesData = PlayerManager.Instance.GetSmallPlacesData(eventConfig.SmallPlacesId - 1);
                 SmallPlacesConfig lastSmallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(eventConfig.SmallPlacesId - 1);
-                if (smallPlacesConfig.ID > 1 && (lastSmallPlacesData == null || lastSmallPlacesData.completionEventCount < lastSmallPlacesConfig.CompletionEventCount))
+                
+                SmallPlacesConfig currentSmallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(eventConfig.SmallPlacesId);
+                if (currentSmallPlacesConfig.ID > 1 && (lastSmallPlacesData == null || lastSmallPlacesData.completionEventCount < lastSmallPlacesConfig.CompletionEventCount))
                 {
                     TipMessagePanel.OpenTipMessagePanel("上一个关卡事件完成度不足,无法切换地图");
                     return;
@@ -665,7 +667,8 @@ public class EventSystemManager : Singleton<EventSystemManager>
                 
                 AccountFileInfo.SmallPlacesData lastSmallPlacesData = PlayerManager.Instance.GetSmallPlacesData(placesConfig.SmallPlacersIds[0] - 1);
                 SmallPlacesConfig lastSmallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(placesConfig.SmallPlacersIds[0] - 1);
-                if (smallPlacesConfig.ID > 1 && (lastSmallPlacesData == null || lastSmallPlacesData.completionEventCount < lastSmallPlacesConfig.CompletionEventCount))
+                SmallPlacesConfig currentSmallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(placesConfig.SmallPlacersIds[0] );
+                if (currentSmallPlacesConfig.ID > 1 && (lastSmallPlacesData == null || lastSmallPlacesData.completionEventCount < lastSmallPlacesConfig.CompletionEventCount))
                 {
                     TipMessagePanel.OpenTipMessagePanel("上一个关卡事件完成度不足,无法切换地图");
                     return;

+ 24 - 24
Assets/Scripts/GameUI/UI/GongFaUpgradePanel/GongFaUpgradePanel.cs

@@ -24,7 +24,7 @@ namespace Fort23.Mono
 
         List<ItemWidgetType1> _itemWidgetType1 = new List<ItemWidgetType1>();
 
-        List<EnergyWidget> _energyWidgets = new List<EnergyWidget>();
+        // List<EnergyWidget> _energyWidgets = new List<EnergyWidget>();
 
         bool isUpStar = false;
 
@@ -269,12 +269,12 @@ namespace Fort23.Mono
 
             _itemWidgetType1.Clear();
 
-            foreach (var energyWidget in _energyWidgets)
-            {
-                UIManager.Instance.DormancyGComponent(energyWidget);
-            }
-
-            _energyWidgets.Clear();
+            // foreach (var energyWidget in _energyWidgets)
+            // {
+            //     UIManager.Instance.DormancyGComponent(energyWidget);
+            // }
+            //
+            // _energyWidgets.Clear();
 
 
             if (isUpGrad)
@@ -303,7 +303,7 @@ namespace Fort23.Mono
 
 
                     Text_NextLevel.gameObject.SetActive(true);
-                    Text_NextLevel.text = $"{_skillInfo.skillConfig.level}级  →  {nextSkillInfo.skillConfig.level}级";
+                    Text_NextLevel.text = $"{_skillInfo.SkillPowerupConfig.ID}级  →  {nextSkillInfo.SkillPowerupConfig.ID}级";
 
 
                     Text_GongFaDesc.text = UtilTools.GetString(LanguageManager.Instance.Text(_skillInfo.skillConfig.dec), effs);
@@ -327,13 +327,13 @@ namespace Fort23.Mono
                             itemWidgetType1.CustomInit(_skillInfo.SkillPowerupConfig.LevelupItem[i], _skillInfo.SkillPowerupConfig.LevelupItemNum[i]);
                             _itemWidgetType1.Add(itemWidgetType1);
 
-                            EnergyWidget energyWidget =
-                                await UIManager.Instance.CreateGComponent<EnergyWidget>(null, EnergyRoot);
-                            energyWidget.CustomInit(_skillInfo.SkillPowerupConfig.LevelupItem[i]);
-                            _energyWidgets.Add(energyWidget);
+                            // EnergyWidget energyWidget =
+                            //     await UIManager.Instance.CreateGComponent<EnergyWidget>(null, EnergyRoot);
+                            // energyWidget.CustomInit(_skillInfo.SkillPowerupConfig.LevelupItem[i]);
+                            // _energyWidgets.Add(energyWidget);
                         }
 
-                        Text_GongFaDesc.text = UtilTools.GetString(LanguageManager.Instance.Text(_skillInfo.skillConfig.dec), _skillInfo.effectValue);
+                        // Text_GongFaDesc.text = UtilTools.GetString(LanguageManager.Instance.Text(_skillInfo.skillConfig.dec), _skillInfo.effectValue);
                     }
                 }
                 else
@@ -365,10 +365,10 @@ namespace Fort23.Mono
                     itemWidgetType1.CustomInit(_skillInfo.skillConfig.PieceID, count);
                     _itemWidgetType1.Add(itemWidgetType1);
 
-                    EnergyWidget energyWidget =
-                        await UIManager.Instance.CreateGComponent<EnergyWidget>(null, EnergyRoot);
-                    energyWidget.CustomInit(_skillInfo.skillConfig.PieceID);
-                    _energyWidgets.Add(energyWidget);
+                    // EnergyWidget energyWidget =
+                    //     await UIManager.Instance.CreateGComponent<EnergyWidget>(null, EnergyRoot);
+                    // energyWidget.CustomInit(_skillInfo.skillConfig.PieceID);
+                    // _energyWidgets.Add(energyWidget);
                 }
                 else
                 {
@@ -424,13 +424,13 @@ namespace Fort23.Mono
             {
                 UIManager.Instance.DormancyGComponent(itemWidgetType1);
             }
-
-            foreach (var energyWidget in _energyWidgets)
-            {
-                UIManager.Instance.DormancyGComponent(energyWidget);
-            }
-
-            _energyWidgets.Clear();
+            //
+            // foreach (var energyWidget in _energyWidgets)
+            // {
+            //     UIManager.Instance.DormancyGComponent(energyWidget);
+            // }
+            //
+            // _energyWidgets.Clear();
             _itemWidgetType1.Clear();
             _gongFaUpgradeInfoWidgets.Clear();
             isUpStar = false;

+ 9 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/HeroBreakthroughPanel.cs

@@ -27,7 +27,7 @@ namespace Fort23.Mono
 
         private void Init()
         {
-            isPopUi = true;
+            IsShowAppBar = true;
             isAddStack = false;
         }
 
@@ -234,6 +234,14 @@ namespace Fort23.Mono
             Text_NextJinfjie.text = LanguageManager.Instance.Text(nextHeroInfo.powerUpConfig.jingjieLanIDs[0]) +
                                     LanguageManager.Instance.Text(nextHeroInfo.powerUpConfig.jingjieLanIDs[1]) +
                                     LanguageManager.Instance.Text(nextHeroInfo.powerUpConfig.jingjieLanIDs[2]);
+            
+            
+            LevelbattleConfig  levelbattleConfig = ConfigComponent.Instance.Get<LevelbattleConfig>(heroPowerUpConfig.DujieLevelbattleID);
+            GroupConfig groupConfig = ConfigComponent.Instance.Get<GroupConfig>(levelbattleConfig.Group[0]);
+            HeroModelConfig heroModelConfig = ConfigComponent.Instance.Get<HeroModelConfig>(groupConfig.GroupMonster[0]);
+            MonsterPowerUpConfig monsterPowerUpConfig = ConfigComponent.Instance.Get<MonsterPowerUpConfig>(PlayerManager.Instance.myHero.level.Value);
+
+            Text_CombatTitle.text = $"{LanguageManager.Instance.Text(heroModelConfig.name)}   {LanguageManager.Instance.Text(monsterPowerUpConfig.jingjie1) }{ LanguageManager.Instance.Text(monsterPowerUpConfig.jingjie2) }{LanguageManager.Instance.Text(monsterPowerUpConfig.jingjie3)}";
 
             if (heroPowerUpConfig.jingjie1 != nextHeroInfo.powerUpConfig.jingjie1)
             {

+ 1 - 1
Assets/Scripts/GameUI/UI/HeroInformationPanel/UseExpElixirPanel.cs

@@ -34,7 +34,7 @@ namespace Fort23.Mono
         public async void CustomInit()
         {
             List<ItemConfig> itemConfigs = ConfigComponent.Instance.GetAll<ItemConfig>().ToList();
-            List<ItemConfig> itemConfigs2 = itemConfigs.Where(i => i.itemTag == 5).ToList();
+            List<ItemConfig> itemConfigs2 = itemConfigs.Where(i => i.itemTag == 5 && PlayerManager.Instance.BagController.IsEnough(i.ID,1)).ToList();
             foreach (var itemConfig in itemConfigs2)
             {
                 ExpElixirItemWidget elixirItemWidget =

+ 26 - 5
Assets/Scripts/GameUI/UI/MainHeroPnael/FaBaoAttributeWidget.cs

@@ -1,4 +1,5 @@
 using GameLogic.Hero;
+using UnityEngine;
 
 namespace Fort23.Mono
 {
@@ -37,6 +38,7 @@ namespace Fort23.Mono
         {
             Text_NextAttributeValue.text = $"+{nextFabaoInfo.attriButedIC[key] - faBaoInfo.attriButedIC[key]}";
             Text_NextAttributeValue.gameObject.SetActive(true);
+            Text_NextAttributeValue.color = new Color32(15,241,150,255);
         }
 
         public void EndUpGrade()
@@ -48,17 +50,36 @@ namespace Fort23.Mono
         {
             if (nextFabaoInfo == null || !nextFabaoInfo.attriButedIC.ContainsKey(key) || nextFabaoInfo.attriButedIC[key] < faBaoInfo.attriButedIC[key])
             {
-                Icon_Bj.gameObject.SetActive(true);
-                Icon_Bj.icon_name = "dec_fbjia";
+                
+                long nextValue = nextFabaoInfo.attriButedIC.ContainsKey(key) ? nextFabaoInfo.attriButedIC[key] : 0;
+                
+                Text_NextAttributeValue.text = $"+{ faBaoInfo.attriButedIC[key] - nextValue}";
+                Text_NextAttributeValue.gameObject.SetActive(true);
+                Text_NextAttributeValue.color = new Color32(15,241,150,255);
+                // Icon_Bj.gameObject.SetActive(true);
+                // Icon_Bj.icon_name = "dec_fbjia";
             }
             else if (nextFabaoInfo.attriButedIC[key] >faBaoInfo.attriButedIC[key])
             {
-                Icon_Bj.gameObject.SetActive(true);
-                Icon_Bj.icon_name = "dec_fbjian";
+                long nextValue = nextFabaoInfo.attriButedIC.ContainsKey(key) ? nextFabaoInfo.attriButedIC[key] : 0;
+                if (nextValue == 0)
+                {
+                    Text_NextAttributeValue.text = $"{nextValue - faBaoInfo.attriButedIC[key]}";
+                }
+                else
+                {
+                    Text_NextAttributeValue.text = $"-{nextValue - faBaoInfo.attriButedIC[key]}";
+                }
+               
+                Text_NextAttributeValue.gameObject.SetActive(true);
+                Text_NextAttributeValue.color = new Color32(235,110,109,255);
+                // Icon_Bj.gameObject.SetActive(true);
+                // Icon_Bj.icon_name = "dec_fbjian";
             }
             else
             {
-                Icon_Bj.gameObject.SetActive(false);
+                Text_NextAttributeValue.gameObject.SetActive(false);
+                // Icon_Bj.gameObject.SetActive(false);
             }
         }
 

+ 25 - 12
Assets/Scripts/GameUI/UI/MainHeroPnael/SelectFaBaoPanel.cs

@@ -146,6 +146,8 @@ namespace Fort23.Mono
 
                 Text_NextLv.text = "+1";
                 Text_NextPower.text = "+" + (nextFabaoInfo.qiangDu - selectedFaBaoInfo.qiangDu);
+                Text_NextLv.color = new Color32(15,241,150,255);
+                Text_NextPower.color = new Color32(15,241,150,255);
                 Text_NextLv.gameObject.SetActive(true);
                 Text_NextPower.gameObject.SetActive(true);
             }
@@ -169,32 +171,43 @@ namespace Fort23.Mono
                 {
                     if (currentFaBaoInfo == null || selectedFaBaoInfo.FabaoPowerupConfig.ID > currentFaBaoInfo.FabaoPowerupConfig.ID)
                     {
-                        Icon_LvBj.gameObject.SetActive(true);
-                        Icon_LvBj.icon_name = "dec_fbjia";
+                        Text_NextLv.gameObject.SetActive(true);
+                        Text_NextLv.text =
+                            $"+{selectedFaBaoInfo.FabaoPowerupConfig.ID - currentFaBaoInfo.FabaoPowerupConfig.ID}";
+                        Text_NextLv.color = new Color32(15,241,150,255);
+                       
+                        // Icon_LvBj.icon_name = "dec_fbjia";
                     }
                     else if (selectedFaBaoInfo.FabaoPowerupConfig.ID < currentFaBaoInfo.FabaoPowerupConfig.ID)
                     {
-                        Icon_LvBj.gameObject.SetActive(true);
-                        Icon_LvBj.icon_name = "dec_fbjian";
+                        Text_NextLv.text =
+                            $"{selectedFaBaoInfo.FabaoPowerupConfig.ID - currentFaBaoInfo.FabaoPowerupConfig.ID}";
+                        Text_NextLv.color = new Color32(235,110,109,255);
+                        Text_NextLv.gameObject.SetActive(true);
+                        // Icon_LvBj.icon_name = "dec_fbjian";
                     }
                     else
                     {
-                        Icon_LvBj.gameObject.SetActive(false);
+                        Text_NextLv.gameObject.SetActive(false);
                     }
 
                     if (currentFaBaoInfo == null || selectedFaBaoInfo.qiangDu > currentFaBaoInfo.qiangDu)
                     {
-                        Icon_PowrBj.gameObject.SetActive(true);
-                        Icon_PowrBj.icon_name = "dec_bjia";
+                        Text_NextPower.text = $"+{selectedFaBaoInfo.qiangDu - currentFaBaoInfo.qiangDu}";
+                        Text_NextPower.color = new Color32(15,241,150,255);
+                        Text_NextPower.gameObject.SetActive(true);
+                        // Icon_PowrBj.icon_name = "dec_bjia";
                     }
                     else if (selectedFaBaoInfo.qiangDu < currentFaBaoInfo.qiangDu)
                     {
-                        Icon_PowrBj.gameObject.SetActive(true);
-                        Icon_PowrBj.icon_name = "dec_fbjian";
+                        Text_NextPower.text = $"{ selectedFaBaoInfo.qiangDu - currentFaBaoInfo.qiangDu}";
+                        Text_NextPower.color = new Color32(235,110,109,255);
+                        Text_NextPower.gameObject.SetActive(true);
+                        // Icon_PowrBj.icon_name = "dec_fbjian";
                     }
                     else
                     {
-                        Icon_PowrBj.gameObject.SetActive(false);
+                        Text_NextPower.gameObject.SetActive(false);
                     }
 
                     foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
@@ -204,8 +217,8 @@ namespace Fort23.Mono
                 }
                 else
                 {
-                    Icon_LvBj.gameObject.SetActive(false);
-                    Icon_PowrBj.gameObject.SetActive(false);
+                    Text_NextPower.gameObject.SetActive(false);
+                    Text_NextLv.gameObject.SetActive(false);
                     foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
                     {
                         faBaoAttributeWidget.EndBj();

+ 27 - 5
Assets/Scripts/GameUI/UI/RewardsPanel/RewardsPanel.cs

@@ -27,16 +27,28 @@ namespace Fort23.Mono
         {
             btnDi.onClick.AddListener(OnclickClose);
         }
+        
+        List<WidgetItem> widgetItems = new List<WidgetItem>();
 
         private void OnclickClose()
         {
-            onClose?.Invoke();
+           
             UIManager.Instance.HideUIUIPanel(this);
-            UIManager.Instance.DormancyAllGComponent<WidgetItem>(rewardPool);
+    
+        }
+
+        public override void Close()
+        {
+            onClose?.Invoke();
+            foreach (var widgetItem in widgetItems)
+            {
+                UIManager.Instance.DormancyGComponent(widgetItem);
+            }
+            widgetItems.Clear();
+            base.Close();
         }
 
         private Action onClose;
-        private string rewardPool = "rewardPool";
 
         public override CTask Show()
         {
@@ -47,6 +59,11 @@ namespace Fort23.Mono
         public async void InitRewardsPanel(List<ItemInfo> rewards, Action onClose = null)
         {
             this.onClose = onClose;
+            foreach (var widgetItem in widgetItems)
+            {
+                UIManager.Instance.DormancyGComponent(widgetItem);
+            }
+            widgetItems.Clear();
             foreach (ItemInfo reward in rewards)
             {
                 GenerateWidget(reward);
@@ -62,6 +79,11 @@ namespace Fort23.Mono
         public async void InitRewardsPanel(Dictionary<string, ItemInfo> rewardsDic, Action onClose = null)
         {
             this.onClose = onClose;
+            foreach (var widgetItem in widgetItems)
+            {
+                UIManager.Instance.DormancyGComponent(widgetItem);
+            }
+            widgetItems.Clear();
             foreach (KeyValuePair<string, ItemInfo> keyValuePair in rewardsDic)
             {
                 GenerateWidget(keyValuePair.Value);
@@ -70,9 +92,9 @@ namespace Fort23.Mono
 
         private async void GenerateWidget(ItemInfo itemInfo)
         {
-            WidgetItem widgetItem = await UIManager.Instance.CreateGComponent<WidgetItem>(null,
-                poolName: rewardPool, root: itemRoot);
+            WidgetItem widgetItem = await UIManager.Instance.CreateGComponent<WidgetItem>(null, root: itemRoot);
             widgetItem.InitWidget(itemInfo);
+            widgetItems.Add(widgetItem);
         }
 
 

+ 2 - 1
Assets/Scripts/GameUI/UI/ShopPanel/ShopBuyItemPanel.cs

@@ -37,7 +37,8 @@ namespace Fort23.Mono
             _callback = callback;
             WidgetItem itemWidget = await UIManager.Instance.CreateGComponent<WidgetItem>(null, ItemRoot, poolName: _poolName);
             itemWidget.InitWidget(new ItemInfo(_shopItemConfig.itemId[0], _shopItemConfig.itemCount[0]));
-            Text_name.text = LanguageManager.Instance.Text(_shopItemConfig.shopName);
+            ItemConfig itemConfig = ConfigComponent.Instance.Get<ItemConfig>(_shopItemConfig.itemId[0]);
+            Text_name.text = LanguageManager.Instance.Text(itemConfig.itemName);
             Text_desc.text = LanguageManager.Instance.Text(itemWidget.itemInfo.config.itemName);
             Text_ItemCount.text = "当前持有:" + PlayerManager.Instance.BagController.GetItemCount(_shopItemConfig.itemId[0]);
             // UseSlider.value = 1;