Sfoglia il codice sorgente

副本动效调优

zhangyuqian 1 anno fa
parent
commit
581edd6e62

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Studio/UI_ListLevelItem.cs

@@ -16,8 +16,10 @@ namespace UI.Studio
         public GImage m_imgLockBg;
         public GImage m_imgLock;
         public GGroup m_grpLock;
+        public GGroup m_Panel;
         public Transition m_ToLeft;
         public Transition m_ToRight;
+        public Transition m_Left;
         public const string URL = "ui://xz8kxrecv4822p";
         public const string PACKAGE_NAME = "Studio";
         public const string RES_NAME = "ListLevelItem";
@@ -74,8 +76,10 @@ namespace UI.Studio
             m_imgLockBg = (GImage)comp.GetChild("imgLockBg");
             m_imgLock = (GImage)comp.GetChild("imgLock");
             m_grpLock = (GGroup)comp.GetChild("grpLock");
+            m_Panel = (GGroup)comp.GetChild("Panel");
             m_ToLeft = comp.GetTransition("ToLeft");
             m_ToRight = comp.GetTransition("ToRight");
+            m_Left = comp.GetTransition("Left");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -89,8 +93,10 @@ namespace UI.Studio
             m_imgLockBg = null;
             m_imgLock = null;
             m_grpLock = null;
+            m_Panel = null;
             m_ToLeft = null;
             m_ToRight = null;
+            m_Left = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs

@@ -194,7 +194,7 @@ namespace GFGGame
                 list.GetChildAt(i).visible = false;
             }
             _time = 0;
-            Timers.inst.Add(0.2f, list.numChildren, OnTimerUpdate, 1);
+            Timers.inst.Add(0.07f, list.numChildren, OnTimerUpdate, 1);
         }
         private void OnTimerUpdate(object param)
         {

+ 8 - 4
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingView.cs

@@ -134,7 +134,7 @@ namespace GFGGame
         {
             // int _index = _storyLevelCfgs.Count - index - 1;
             UI_ListLevelItem item = UI_ListLevelItem.Proxy(obj);
-            item.m_c1.selectedIndex = index % 2 == 0 ? 0 : 1;
+            //item.m_c1.selectedIndex = index % 2 == 0 ? 0 : 1;
             item.m_txtName.text = _storyLevelCfgs[index].name;
             bool isFight = string.IsNullOrEmpty(_storyLevelCfgs[index].storyStartID);
             string resBg = isFight ? "cyjd_di_1" : "cyjd_di_2";
@@ -265,21 +265,25 @@ namespace GFGGame
                 _ui.m_list.GetChildAt(i).visible = false;
             }
             itemIndex = 0;
-            Timers.inst.Add(0.2f, _ui.m_list.numChildren, AddItemUpdate, 1);
+            Timers.inst.Add(0.05f, _ui.m_list.numChildren, AddItemUpdate, 1);
         }
 
         private void AddItemUpdate(object param)
         {
             _ui.m_list.GetChildAt(itemIndex).visible = true;
             UI_ListLevelItem item = UI_ListLevelItem.Proxy(_ui.m_list.GetChildAt(itemIndex));
+            Vector3 position = item.target.position;
             if (itemIndex % 2 == 0)
             {
-                item.m_ToLeft.Play();
+                //item.m_ToLeft.Play();
             }
             else
             {
-                item.m_ToRight.Play();
+                position.x = 200;
+                item.target.position = position;
+                //item.m_ToRight.Play();
             }
+            item.m_Left.Play();
             itemIndex++;
             UI_ListLevelItem.ProxyEnd();
         }

BIN
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes