Bläddra i källkod

主界面切换按钮动效

zhaoyang 2 år sedan
förälder
incheckning
69ccf9b04d

+ 0 - 6
FGUIProject/assets/Main/MainUI.xml

@@ -117,10 +117,4 @@
     <item time="0" type="Visible" target="n52_qqat" value="false"/>
     <item time="0" type="Visible" target="n58_oju1" value="true"/>
   </transition>
-  <transition name="t16" autoPlay="true" autoPlayRepeat="-1">
-    <item time="0" type="XY" target="n69_weok" tween="true" startValue="930,1447" endValue="920,1447" duration="12" ease="Linear"/>
-    <item time="0" type="XY" target="n70_weok" tween="true" startValue="150,1447" endValue="160,1447" duration="12" ease="Linear"/>
-    <item time="12" type="XY" target="n69_weok" tween="true" startValue="920,1447" endValue="930,1447" duration="12" ease="Linear"/>
-    <item time="12" type="XY" target="n70_weok" tween="true" startValue="160,1447" endValue="150,1447" duration="12" ease="Linear"/>
-  </transition>
 </component>

+ 7 - 1
FGUIProject/assets/Main/components/Component7.xml

@@ -2,6 +2,12 @@
 <component size="200,234">
   <displayList>
     <loader id="n69_weok" name="loaRight" xy="100,117" pivot="0.5,0.5" anchor="true" size="200,234" scale="0.8,0.8" url="ui://mfvz4q8kv95qhx" autoSize="true"/>
-    <graph id="n70_weok" name="holder" xy="90,120" size="1,1"/>
+    <graph id="n70_weok" name="holder" xy="90,120" size="1,1">
+      <relation target="n69_weok" sidePair="right-right"/>
+    </graph>
   </displayList>
+  <transition name="t0" autoPlay="true" autoPlayRepeat="-1">
+    <item time="0" type="XY" target="n69_weok" tween="true" startValue="100,117" endValue="105,117" duration="15" ease="Linear"/>
+    <item time="15" type="XY" target="n69_weok" tween="true" startValue="105,117" endValue="100,117" duration="15" ease="Linear"/>
+  </transition>
 </component>

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

@@ -9,6 +9,7 @@ namespace UI.Main
         public GComponent target;
         public GLoader m_loaRight;
         public GGraph m_holder;
+        public Transition m_t0;
         public const string URL = "ui://mfvz4q8kweokii";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "Component7";
@@ -58,11 +59,13 @@ namespace UI.Main
         {
             m_loaRight = (GLoader)comp.GetChild("loaRight");
             m_holder = (GGraph)comp.GetChild("holder");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaRight = null;
             m_holder = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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

@@ -34,7 +34,6 @@ namespace UI.Main
         public Transition m_t2;
         public Transition m_t3;
         public Transition m_t4;
-        public Transition m_t16;
         public const string URL = "ui://mfvz4q8kq08x0";
         public const string PACKAGE_NAME = "Main";
         public const string RES_NAME = "MainUI";
@@ -109,7 +108,6 @@ namespace UI.Main
             m_t2 = comp.GetTransition("t2");
             m_t3 = comp.GetTransition("t3");
             m_t4 = comp.GetTransition("t4");
-            m_t16 = comp.GetTransition("t16");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -156,7 +154,6 @@ namespace UI.Main
             m_t2 = null;
             m_t3 = null;
             m_t4 = null;
-            m_t16 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

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