Prechádzať zdrojové kódy

飞花令:段位晋级时动画

zhaoyang 2 rokov pred
rodič
commit
52d4c7a7ba

+ 9 - 6
FGUIProject/assets/Arena/ArenaDanUpUI.xml

@@ -7,8 +7,8 @@
   <displayList>
     <image id="n6_jcej" name="n6" src="jcej1p" fileName="images/pmts_ditu.png" xy="0,43"/>
     <image id="n4_jcej" name="n4" src="jcej40" fileName="images/dwjj_btbt.png" xy="67,-22"/>
-    <component id="n8_jcej" name="comLastDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="204,160" size="250,302"/>
-    <component id="n2_psph" name="comCurDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="623,160" size="250,250" aspect="true"/>
+    <component id="n8_jcej" name="comLastDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="204,160" pivot="0.5,0.5" size="250,302"/>
+    <component id="n2_psph" name="comCurDan" src="ofwu5q" fileName="components/ComDanIcon.xml" xy="623,160" pivot="0.5,0.5" size="250,302" aspect="true" controller="c1,1"/>
     <image id="n5_jcej" name="n5" src="jcej3z" fileName="images/pmts_ffbtbt.png" xy="422,540" group="n11_jcej"/>
     <list id="n1_psph" name="listFirstDanReward" xy="140,600" pivot="0.5,0" size="799,221" group="n11_jcej" layout="row" colGap="50" defaultItem="ui://eg2y0ldpj48o98" align="center" autoClearItems="true">
       <item/>
@@ -18,12 +18,15 @@
     <group id="n11_jcej" name="n11" xy="140,540" size="799,281" advanced="true">
       <gearDisplay controller="c1" pages="1"/>
     </group>
+    <image id="n12_ofwu" name="n12" src="ofwu5s" fileName="images/dwjs_jiantou.png" xy="465,257" size="149,69"/>
   </displayList>
   <transition name="t0">
-    <item time="0" type="Size" target="n2_psph" value="0,250"/>
-    <item time="0" type="Size" target="n8_jcej" tween="true" startValue="0,302" endValue="250,302" duration="9" ease="Linear"/>
+    <item time="0" type="Scale" target="n2_psph" value="0,0"/>
+    <item time="0" type="Scale" target="n8_jcej" tween="true" startValue="0,0" endValue="1,1" duration="6" ease="Linear"/>
+    <item time="0" type="Size" target="n12_ofwu" value="0,69"/>
     <item time="0" type="Visible" target="n11_jcej" value="false"/>
-    <item time="18" type="Size" target="n2_psph" tween="true" startValue="0,250" endValue="250,250" duration="9" ease="Linear"/>
-    <item time="30" type="Visible" target="n11_jcej" value="true"/>
+    <item time="6" type="Size" target="n12_ofwu" tween="true" startValue="0,69" endValue="149,69" duration="6" ease="Linear"/>
+    <item time="12" type="Scale" target="n2_psph" tween="true" startValue="0,0" endValue="1,1" duration="6" ease="Linear"/>
+    <item time="24" type="Visible" target="n11_jcej" value="true"/>
   </transition>
 </component>

+ 5 - 1
FGUIProject/assets/Arena/components/ComDanIcon.xml

@@ -1,7 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="250,302" overflow="hidden">
+  <controller name="c1" exported="true" pages="0,,1," selected="1"/>
   <displayList>
-    <text id="n8_jcej" name="txtDanTitle" xy="59,258" pivot="0.5,0" size="132,44" group="n9_jcej" fontSize="32" color="#fef7f6" text="段位名字"/>
+    <image id="n10_ofwu" name="n10" src="ofwu5r" fileName="images/dwjs_yz_db.png" xy="27,22" group="n9_jcej">
+      <gearDisplay controller="c1" pages="1"/>
+    </image>
+    <text id="n8_jcej" name="txtDanTitle" xy="59,258" pivot="0.5,0" size="132,44" group="n9_jcej" font="ui://eg2y0ldpa0cftkz" fontSize="32" color="#fef7f6" text="段位名字"/>
     <loader id="n7_jcej" name="loaDanIcon" xy="0,0" pivot="0.5,0.5" size="250,250" group="n9_jcej" aspect="true" url="ui://4lc5fhlbe0505p" fill="scale"/>
     <group id="n9_jcej" name="n9" xy="0,0" size="250,302" advanced="true"/>
   </displayList>

BIN
FGUIProject/assets/Arena/images/dwjs_jiantou.png


BIN
FGUIProject/assets/Arena/images/dwjs_yz_db.png


+ 2 - 0
FGUIProject/assets/Arena/package.xml

@@ -187,6 +187,8 @@
     <image id="e0505o" name="tb_yz_12.png" path="/images/" exported="true"/>
     <image id="e0505p" name="tb_yz_13.png" path="/images/" exported="true"/>
     <component id="ofwu5q" name="ComDanIcon.xml" path="/components/"/>
+    <image id="ofwu5r" name="dwjs_yz_db.png" path="/images/"/>
+    <image id="ofwu5s" name="dwjs_jiantou.png" path="/images/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Arena" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Arena/UI_ComDanIcon.cs

@@ -7,6 +7,7 @@ namespace UI.Arena
     public partial class UI_ComDanIcon
     {
         public GComponent target;
+        public Controller m_c1;
         public GTextField m_txtDanTitle;
         public GLoader m_loaDanIcon;
         public const string URL = "ui://4lc5fhlbofwu5q";
@@ -56,11 +57,13 @@ namespace UI.Arena
 
         private void Init(GComponent comp)
         {
+            m_c1 = comp.GetController("c1");
             m_txtDanTitle = (GTextField)comp.GetChild("txtDanTitle");
             m_loaDanIcon = (GLoader)comp.GetChild("loaDanIcon");
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_c1 = null;
             m_txtDanTitle = null;
             m_loaDanIcon = null;
             if(disposeTarget && target != null)

BIN
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Arena/Arena_fui.bytes