Răsfoiți Sursa

词牌bug修改,任务界面调整

huangxiaoyue 1 an în urmă
părinte
comite
bb1d26c777

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Task/UI_TaskUI.cs

@@ -14,6 +14,7 @@ namespace UI.Task
         public GButton m_btnTask;
         public GButton m_btnWeekly;
         public UI_CombTaskUI m_taskInfoCom;
+        public GButton m_btnAchieve;
         public const string URL = "ui://5mpsibzzfqor2n";
         public const string PACKAGE_NAME = "Task";
         public const string RES_NAME = "TaskUI";
@@ -68,6 +69,7 @@ namespace UI.Task
             m_btnTask = (GButton)comp.GetChild("btnTask");
             m_btnWeekly = (GButton)comp.GetChild("btnWeekly");
             m_taskInfoCom = (UI_CombTaskUI)UI_CombTaskUI.Create(comp.GetChild("taskInfoCom"));
+            m_btnAchieve = (GButton)comp.GetChild("btnAchieve");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -79,6 +81,7 @@ namespace UI.Task
             m_btnWeekly = null;
             m_taskInfoCom.Dispose();
             m_taskInfoCom = null;
+            m_btnAchieve = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 11 - 6
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -144,21 +144,26 @@ namespace GFGGame
 
         private void RefLeftAndRight()
         {
-            _ui.m_btnRight.grayed = false;
-            _ui.m_btnRight.touchable = true;
-            _ui.m_btnLeft.grayed = false;
-            _ui.m_btnLeft.touchable = true;
-
             if (nowIndex <= 0)
             {
                 _ui.m_btnLeft.grayed = true;
                 _ui.m_btnLeft.touchable = false;
             }
-            else if (nowIndex >= cardList.Count - 1)
+            else {
+                _ui.m_btnLeft.grayed = false;
+                _ui.m_btnLeft.touchable = true;
+            }
+
+            if (nowIndex >= cardList.Count - 1)
             {
                 _ui.m_btnRight.grayed = true;
                 _ui.m_btnRight.touchable = false;
             }
+            else
+            {
+                _ui.m_btnRight.grayed = false;
+                _ui.m_btnRight.touchable = true;
+            }
         }
 
         private void OnClickBtnLeft()

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/Task/TaskView.cs

@@ -42,6 +42,7 @@ namespace GFGGame
             _valueBarController = new ValueBarController(_ui.m_comValueBar);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("quanping_moren_bg");
             _ui.m_c1.onChanged.Add(OnCtrlChange);
+            _ui.m_btnAchieve.onClick.Add(OnBtnAchieveClick);
             _combTaskController = new CombTaskController(_ui.m_taskInfoCom);
         }
 
@@ -52,6 +53,12 @@ namespace GFGGame
             ViewManager.GoBackFrom(typeof(TaskView).FullName);
         }
 
+        private void OnBtnAchieveClick()
+        { 
+            
+        
+        }
+            
         protected override void AddEventListener()
         {
             base.AddEventListener();

BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/Task/Task_fui.bytes