소스 검색

套装优化

guodong 2 년 전
부모
커밋
a5f1835215

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/ArenaDressUpFightView.cs

@@ -363,6 +363,11 @@ namespace GFGGame
                 return;
                 return;
             }
             }
 
 
+            if (!DressUpMenuItemDataManager.CheckHasItem(id))
+            {
+                PromptController.Instance.ShowFloatTextPrompt("还未获得这件装扮");
+                return;
+            }
             MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
             UpdateStepBtn(true);
             UpdateStepBtn(true);

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -417,6 +417,11 @@ namespace GFGGame
                 return;
                 return;
             }
             }
 
 
+            if (!DressUpMenuItemDataManager.CheckHasItem(id))
+            {
+                PromptController.Instance.ShowFloatTextPrompt("还未获得这件装扮");
+                return;
+            }
             MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
             _ui.m_txtDressLimit.text = string.Format("饰品穿戴限制:{0}/{1}", MyDressUpHelper.GetCurrentOrnamentCount(), GlobalCfgArray.globalCfg.dressLimitCount);
             UpdateStepBtn(true);
             UpdateStepBtn(true);

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -3,6 +3,7 @@ using FairyGUI;
 using UnityEngine;
 using UnityEngine;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using ET;
 using ET;
+using static UnityEditor.Progress;
 
 
 namespace GFGGame
 namespace GFGGame
 {
 {
@@ -369,6 +370,11 @@ namespace GFGGame
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(id);
             if (itemCfg != null)
             if (itemCfg != null)
             {
             {
+                if(!DressUpMenuItemDataManager.CheckHasItem(itemCfg.id))
+                {
+                    PromptController.Instance.ShowFloatTextPrompt("还未获得这件装扮");
+                    return;
+                }
                 MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
                 MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             }
             }
             else
             else