zhaoyang 2 years ago
parent
commit
6061c8afa8

+ 2 - 2
FGUIProject/assets/LuckyBox/LuckBoxBonusUI.xml

@@ -33,8 +33,8 @@
     </loader>
   </displayList>
   <transition name="t0">
-    <item time="0" type="Alpha" target="n14_ga16" tween="true" startValue="0" endValue="1" duration="24" ease="Linear"/>
-    <item time="0" type="Alpha" target="n15_ga16" tween="true" startValue="0" endValue="1" duration="24" ease="Linear"/>
+    <item time="0" type="Alpha" target="n14_ga16" tween="true" startValue="0" endValue="1" duration="12" ease="Linear"/>
+    <item time="0" type="Alpha" target="n15_ga16" tween="true" startValue="0" endValue="1" duration="12" ease="Linear"/>
   </transition>
   <transition name="t1">
     <item time="0" type="Alpha" target="n14_ga16" value="0"/>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckBoxBonusUI.cs

@@ -22,8 +22,8 @@ namespace UI.LuckyBox
         public UI_LuckyBoxBonusItem m_item8;
         public UI_LuckyBoxBonusItem m_item9;
         public GGroup m_grpItems;
-        public GLoader m_loaMask;
         public GButton m_btnPass;
+        public GLoader m_loaMask;
         public Transition m_t0;
         public Transition m_t1;
         public const string URL = "ui://drx9d1usfka7a";
@@ -88,8 +88,8 @@ namespace UI.LuckyBox
             m_item8 = (UI_LuckyBoxBonusItem)UI_LuckyBoxBonusItem.Create(comp.GetChild("item8"));
             m_item9 = (UI_LuckyBoxBonusItem)UI_LuckyBoxBonusItem.Create(comp.GetChild("item9"));
             m_grpItems = (GGroup)comp.GetChild("grpItems");
-            m_loaMask = (GLoader)comp.GetChild("loaMask");
             m_btnPass = (GButton)comp.GetChild("btnPass");
+            m_loaMask = (GLoader)comp.GetChild("loaMask");
             m_t0 = comp.GetTransition("t0");
             m_t1 = comp.GetTransition("t1");
         }
@@ -121,8 +121,8 @@ namespace UI.LuckyBox
             m_item9.Dispose();
             m_item9 = null;
             m_grpItems = null;
-            m_loaMask = null;
             m_btnPass = null;
+            m_loaMask = null;
             m_t0 = null;
             m_t1 = null;
             if(disposeTarget && target != null)

+ 7 - 4
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs

@@ -13,7 +13,8 @@ namespace GFGGame
         private int openCount = 0;
         private List<ItemData> newItemList = new List<ItemData>();
         private List<int> newCardList = new List<int>();
-        private List<int> openIndexList = new List<int>();
+        private int openIndex = 0;
+        // private List<int> openIndexList = new List<int>();
 
         private List<GameObject> _effects = new List<GameObject>();
         private List<GoWrapper> _wrappers = new List<GoWrapper>();
@@ -86,6 +87,7 @@ namespace GFGGame
             // _ui.m_itemOne.target.visible = false;
             _ui.m_t1.Play();
             openCount = 0;
+            openIndex = 0;
             Timers.inst.Remove(UpdateTime);
         }
 
@@ -262,18 +264,19 @@ namespace GFGGame
             }
             else
             {
-                Timers.inst.Add(0.5f, itemList.Count, UpdateTime);
+                Timers.inst.Add(0.3f, itemList.Count, UpdateTime);
             }
 
         }
         private void UpdateTime(object param)
         {
-            GComponent component = _ui.target.GetChild("item" + openCount).asCom;
+            GComponent component = _ui.target.GetChild("item" + openIndex).asCom;
             Transition transition = component.GetTransition("t1");
             GComponent comIcon = component.GetChild("comIcon").asCom;
             GImage imgNew = comIcon.GetChild("imgNew").asImage;
-            openCount++;
+            openIndex++;
             if (transition.playing || comIcon.skew == Vector2.zero) return;
+            openCount++;
             if (imgNew.visible)
             {
                 ItemData itemData = component.data as ItemData;

BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes