Browse Source

添加图鉴锁住

leiyasi 1 year ago
parent
commit
d09a160125

+ 6 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_CompGuideItem.cs

@@ -8,8 +8,9 @@ namespace UI.FieldGuide
     {
         public GComponent target;
         public GLoader m_loaderPic;
-        public GTextField m_txtProgress;
         public GTextField m_progressSymbol;
+        public GTextField m_txtProgress;
+        public GGroup m_progressGroup;
         public GLoader m_lock;
         public Transition m_In;
         public Transition m_Init;
@@ -61,8 +62,9 @@ namespace UI.FieldGuide
         private void Init(GComponent comp)
         {
             m_loaderPic = (GLoader)comp.GetChild("loaderPic");
-            m_txtProgress = (GTextField)comp.GetChild("txtProgress");
             m_progressSymbol = (GTextField)comp.GetChild("progressSymbol");
+            m_txtProgress = (GTextField)comp.GetChild("txtProgress");
+            m_progressGroup = (GGroup)comp.GetChild("progressGroup");
             m_lock = (GLoader)comp.GetChild("lock");
             m_In = comp.GetTransition("In");
             m_Init = comp.GetTransition("Init");
@@ -70,8 +72,9 @@ namespace UI.FieldGuide
         public void Dispose(bool disposeTarget = false)
         {
             m_loaderPic = null;
-            m_txtProgress = null;
             m_progressSymbol = null;
+            m_txtProgress = null;
+            m_progressGroup = null;
             m_lock = null;
             m_In = null;
             m_Init = null;

+ 15 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs

@@ -114,6 +114,12 @@ namespace GFGGame
             listItem.m_loaderPic.url = "ui://FieldGuide/tujian_tup_" + id;
             listItem.target.data = id;
 
+            if(id == ConstFieldGuideId.CARD_GUIDE)
+            {
+                bool open = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
+                listItem.m_lock.visible = !open;
+                listItem.m_progressGroup.visible = open;
+            }
 
             if (_startInAnim)
             {
@@ -141,7 +147,15 @@ namespace GFGGame
                     ViewManager.Show<DressUpGuideView>(null, new object[] { typeof(FieldGuideView).FullName, this.viewData });
                     break;
                 case ConstFieldGuideId.CARD_GUIDE:
-                    ViewManager.Show<CardGuideView>(null, new object[] { typeof(FieldGuideView).FullName, this.viewData });
+                    bool open = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
+                    if (open)
+                    {
+                        ViewManager.Show<CardGuideView>(null, new object[] { typeof(FieldGuideView).FullName, this.viewData });
+                    }
+                    else
+                    {
+                        PromptController.Instance.ShowFloatTextPrompt("´Ë¹¦ÄÜ먦Æô~");
+                    }
                     break;
             }
         }

BIN
GameClient/Assets/ResIn/UI/FieldGuide/FieldGuide_fui.bytes