Переглянути джерело

章节界面添加入场动效

zhangyuqian 1 рік тому
батько
коміт
0ed3910e31

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_CompStoryLevelItem.cs

@@ -20,6 +20,7 @@ namespace UI.Main
         public UI_CompFlower2 m_flower;
         public GGraph m_holder;
         public Transition m_t0;
+        public Transition m_t1;
         public const string URL = "ui://mfvz4q8ko4m7fqd";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "CompStoryLevelItem";
@@ -80,6 +81,7 @@ namespace UI.Main
             m_flower = (UI_CompFlower2)UI_CompFlower2.Create(comp.GetChild("flower"));
             m_holder = (GGraph)comp.GetChild("holder");
             m_t0 = comp.GetTransition("t0");
+            m_t1 = comp.GetTransition("t1");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -98,6 +100,7 @@ namespace UI.Main
             m_flower = null;
             m_holder = null;
             m_t0 = null;
+            m_t1 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_StoryChapterUI.cs

@@ -25,6 +25,7 @@ namespace UI.Main
         public UI_CompBonusBox m_bonusBox1;
         public GTextField m_txtStarCount;
         public GLoader m_switchChapter;
+        public Transition m_t0;
         public const string URL = "ui://mfvz4q8km7n51u";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "StoryChapterUI";
@@ -90,6 +91,7 @@ namespace UI.Main
             m_bonusBox1 = (UI_CompBonusBox)UI_CompBonusBox.Create(comp.GetChild("bonusBox1"));
             m_txtStarCount = (GTextField)comp.GetChild("txtStarCount");
             m_switchChapter = (GLoader)comp.GetChild("switchChapter");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -115,6 +117,7 @@ namespace UI.Main
             m_bonusBox1 = null;
             m_txtStarCount = null;
             m_switchChapter = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -71,7 +71,7 @@ namespace GFGGame
             DoSpecialEffect();//初始化调用
             Timers.inst.AddUpdate(CheckGuide);
             _ui.m_openViewAction.Play();
-
+            
 
         }
 

+ 8 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -115,6 +115,7 @@ namespace GFGGame
         {
             base.OnShown();
             _ui.target.touchable = false;
+            GRoot.inst.touchable = false;
             SuitFosterProxy.SendGetSuitInfos().Coroutine();
             MusicManager.Instance.PlayCroutine(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
             if ((this.viewData as object[]) != null)
@@ -150,7 +151,12 @@ namespace GFGGame
 
             _valueBarController.OnShown();
 
-            _ui.target.touchable = true;
+            _ui.m_t0.Play(() =>
+            {
+                _ui.target.touchable = true;
+                GRoot.inst.touchable = true;
+            });
+            
 
             Timers.inst.AddUpdate(CheckGuide);
 
@@ -162,6 +168,7 @@ namespace GFGGame
             _unPasslevelItem = null;
             _endLevelItem = null;
             // _ui.m_chapter.RemoveChildren(0, 0, true);
+            GRoot.inst.touchable = true;
             _valueBarController.OnHide();
             Timers.inst.Remove(SetContainerY);
             Timers.inst.Remove(CheckGuide);

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes