Browse Source

主界面默认动画

zhaoyang 2 years ago
parent
commit
152683168c

+ 11 - 5
FGUIProject/assets/Main/MainUI.xml

@@ -112,12 +112,18 @@
     <item time="24" type="Visible" target="n63_v95q" value="true"/>
   </transition>
   <transition name="t4">
-    <item time="1" type="Visible" target="n57_oju1" value="false"/>
-    <item time="1" type="Visible" target="n63_v95q" value="false"/>
-    <item time="1" type="Visible" target="n65_v95q" value="true"/>
-    <item time="1" type="XY" target="n59_oju1" value="-1080,-240"/>
+    <item time="0" type="Visible" target="n57_oju1" value="false"/>
+    <item time="0" type="Visible" target="n63_v95q" value="false"/>
+    <item time="0" type="Visible" target="n65_v95q" value="true"/>
+    <item time="0" type="XY" target="n59_oju1" value="-1080,-240"/>
   </transition>
-  <transition name="t3">
+  <transition name="t11">
+    <item time="0" type="Alpha" target="n52_qqat" tween="true" startValue="0" endValue="1" duration="1" ease="Linear"/>
+    <item time="0" type="Alpha" target="n57_oju1" tween="true" startValue="0" endValue="1" duration="1" ease="Linear"/>
+    <item time="0" type="Alpha" target="n58_oju1" tween="true" startValue="1" endValue="0" duration="1" ease="Linear"/>
+    <item time="0" type="Visible" target="n63_v95q" value="false"/>
+    <item time="0" type="Visible" target="n65_v95q" value="true"/>
+    <item time="0" type="XY" target="n59_oju1" value="0,-240"/>
     <item time="1" type="Visible" target="n57_oju1" value="true"/>
     <item time="1" type="Visible" target="n63_v95q" value="true"/>
     <item time="1" type="Visible" target="n65_v95q" value="false"/>

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

@@ -29,7 +29,7 @@ namespace UI.Main
         public Transition m_t1;
         public Transition m_t2;
         public Transition m_t4;
-        public Transition m_t3;
+        public Transition m_t11;
         public const string URL = "ui://mfvz4q8kq08x0";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "MainUI";
@@ -99,7 +99,7 @@ namespace UI.Main
             m_t1 = comp.GetTransition("t1");
             m_t2 = comp.GetTransition("t2");
             m_t4 = comp.GetTransition("t4");
-            m_t3 = comp.GetTransition("t3");
+            m_t11 = comp.GetTransition("t11");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -137,7 +137,7 @@ namespace UI.Main
             m_t1 = null;
             m_t2 = null;
             m_t4 = null;
-            m_t3 = null;
+            m_t11 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -239,13 +239,13 @@ namespace GFGGame
             if (MainDataManager.Instance.ViewType == 0)
             {
                 role.SetActive(true);
-                // _ui.m_t2.Play();
+                _ui.m_t11.Play();
                 _sceneObject.transform.position = Vector2.zero;
             }
             else if (MainDataManager.Instance.ViewType == 1)
             {
                 role.SetActive(false);
-                // _ui.m_t1.Play();
+                _ui.m_t4.Play();
                 _sceneObject.transform.position = new Vector2(-GRoot.inst.width / 100f, 0);
             }
         }

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