Kaynağa Gözat

章节剧情特效添加

zhangyuqian 1 yıl önce
ebeveyn
işleme
02b974c59a

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

@@ -7,6 +7,7 @@ namespace UI.Main
     public partial class UI_CompChapterScroll
     {
         public GComponent target;
+        public GGraph m_nextEffect;
         public GLoader m_imgBegin;
         public UI_CompStoryLevelItem m_g20;
         public UI_CompStoryLevelItem m_g19;
@@ -75,6 +76,7 @@ namespace UI.Main
 
         private void Init(GComponent comp)
         {
+            m_nextEffect = (GGraph)comp.GetChild("nextEffect");
             m_imgBegin = (GLoader)comp.GetChild("imgBegin");
             m_g20 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g20"));
             m_g19 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g19"));
@@ -99,6 +101,7 @@ namespace UI.Main
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_nextEffect = null;
             m_imgBegin = null;
             m_g20.Dispose();
             m_g20 = null;

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

@@ -8,6 +8,7 @@ namespace UI.Main
     {
         public GComponent target;
         public GLoader m_loaBg;
+        public GGraph m_bgEffect;
         public UI_CompChapter m_chapter;
         public GComponent m_valueBar;
         public GButton m_btnBack;
@@ -72,6 +73,7 @@ namespace UI.Main
         private void Init(GComponent comp)
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
+            m_bgEffect = (GGraph)comp.GetChild("bgEffect");
             m_chapter = (UI_CompChapter)UI_CompChapter.Create(comp.GetChild("chapter"));
             m_valueBar = (GComponent)comp.GetChild("valueBar");
             m_btnBack = (GButton)comp.GetChild("btnBack");
@@ -92,6 +94,7 @@ namespace UI.Main
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
+            m_bgEffect = null;
             m_chapter.Dispose();
             m_chapter = null;
             m_valueBar = null;

+ 10 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -18,6 +18,8 @@ namespace GFGGame
         private GObject _endLevelItem;
         private EffectUI _effectUI1;
         private EffectUI _effectUI2;
+        private EffectUI _effectUI3;
+        private EffectUI _effectUI4;
         private GComponent _comEff;
         private GComponent _effFirst;
 
@@ -36,6 +38,10 @@ namespace GFGGame
             _effectUI1 = null;
             EffectUIPool.Recycle(_effectUI2);
             _effectUI2 = null;
+            EffectUIPool.Recycle(_effectUI3);
+            _effectUI3 = null;
+            EffectUIPool.Recycle(_effectUI4);
+            _effectUI4 = null;
             if (_comEff != null)
             {
                 _comEff.RemoveFromParent();
@@ -97,6 +103,8 @@ namespace GFGGame
 
             _effFirst = new GComponent();
             _effFirst = UIPackage.CreateObject(UI_MainUI.PACKAGE_NAME, "ComEff").asCom;
+            _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_bgEffect, "ui_zj", "ZX_BG_TX");
+            _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_chapter.m_compChapterScroll.m_nextEffect, "ui_zj", "ZX_Next_Boat");
 
         }
         protected override void AddEventListener()
@@ -132,6 +140,7 @@ namespace GFGGame
             indexY = 111.0f * Mathf.Max(0, (float)StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type, chapterCfg.subType, chapterCfg.id).Count - 5);
             gamey = GameObject.Find("Stage/GRoot/Window - StoryChapterUI/ContentPane/CompChapter/Container/Container");
             _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = false;
+            _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = false;
 
             Timers.inst.StartCoroutine(InitChapter());
 
@@ -237,6 +246,7 @@ namespace GFGGame
             if (lastLevelCfg != null && MainStoryDataManager.CheckLevelUnlock(lastLevelCfg.id) && LastChapterCfg != null)
             {
                 _ui.m_chapter.m_compChapterScroll.m_imgBegin.visible = true;
+                _ui.m_chapter.m_compChapterScroll.m_nextEffect.visible = true;
             }
             //_comEff.visible = false;
             //_effFirst.visible = false;

BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_2.png


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