Przeglądaj źródła

调整剧情选关界面中,引导下一关特效的出现时机

leiyasi 1 rok temu
rodzic
commit
08e040a2c0

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_ListTravelAreaItem.cs

@@ -8,6 +8,7 @@ namespace UI.FieldGuide
     {
         public GComponent target;
         public GLoader m_loaIcon;
+        public Transition m_In;
         public const string URL = "ui://vqq9h9h4wono2l";
         public const string PACKAGE_NAME = "FieldGuide";
         public const string RES_NAME = "ListTravelAreaItem";
@@ -56,10 +57,12 @@ namespace UI.FieldGuide
         private void Init(GComponent comp)
         {
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
+            m_In = comp.GetTransition("In");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaIcon = null;
+            m_In = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/FieldGuide/UI_ListTravelLocationItem.cs

@@ -11,6 +11,7 @@ namespace UI.FieldGuide
         public UI_ComTravel m_comLocation;
         public GTextField m_txtName;
         public GTextField m_txtCount;
+        public Transition m_In;
         public const string URL = "ui://vqq9h9h4wono2m";
         public const string PACKAGE_NAME = "FieldGuide";
         public const string RES_NAME = "ListTravelLocationItem";
@@ -62,6 +63,7 @@ namespace UI.FieldGuide
             m_comLocation = (UI_ComTravel)UI_ComTravel.Create(comp.GetChild("comLocation"));
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
+            m_In = comp.GetTransition("In");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -70,6 +72,7 @@ namespace UI.FieldGuide
             m_comLocation = null;
             m_txtName = null;
             m_txtCount = null;
+            m_In = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -142,6 +142,8 @@ namespace GFGGame
             _compChapter = _ui.m_chapter.m_compChapterScroll.target;
             float starPosY = _ui.m_chapter.m_compChapterScroll.m_imgBegin.y;
             int lineGap = 4500 / list.Count;
+
+            _comEff.visible = false;
             for (int i = 0; i < 20; i++)
             {
                 GObject obj = _ui.m_chapter.m_compChapterScroll.target.GetChild("g" + (i + 1));
@@ -190,6 +192,7 @@ namespace GFGGame
                         MainStoryDataManager.currentLevelCfgId = levelCfg.id;
                         _unPasslevelItem = levelItem.target;
                         levelItem.target.AddChild(_comEff);
+                        _comEff.visible = true;
                     }
                     if (levelCfg.order > endLevel)
                     {

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

@@ -637,8 +637,10 @@ namespace GFGGame
 
         private void UpdatePic(string value)
         {
-            if (!IsTeaParty)
+            if(value.Length > 0 && !IsTeaParty)
+            {
                 SceneController.UpdateDialogPic(value, _sceneObject);
+            }
         }
 
         private void UpdateRoleObj(string value)

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


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