Bladeren bron

竞技场段位提升动画

zhaoyang 2 jaren geleden
bovenliggende
commit
4ab8ba6bc4

+ 7 - 12
FGUIProject/assets/Arena/ArenaDanUpUI.xml

@@ -1,18 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,950" opaque="false" designImage="ui://4lc5fhlbpsphg" designImageOffsetX="-19" designImageAlpha="0">
-  <controller name="c1" pages="0,,1," selected="0">
+  <controller name="c1" pages="0,,1," selected="1">
     <remark page="0" value="非首次段位提升"/>
     <remark page="1" value="首次段位提升"/>
   </controller>
   <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"/>
-    <text id="n8_jcej" name="txtlastDanTitle" xy="474,419" pivot="0.5,0" size="132,44" group="n9_jcej" fontSize="32" color="#fef7f6" text="段位名字"/>
-    <loader id="n7_jcej" name="loaLastDanIcon" xy="415,161" pivot="0.5,0.5" size="250,250" group="n9_jcej" aspect="true" url="ui://4lc5fhlbe0505p" fill="scale" color="#666666"/>
-    <group id="n9_jcej" name="n9" xy="415,161" size="250,302" advanced="true"/>
-    <loader id="n2_psph" name="loaDanIcon" xy="415,161" size="250,250" group="n10_jcej" aspect="true" url="ui://4lc5fhlbe0505p" fill="scale"/>
-    <text id="n3_psph" name="txtDanTitle" xy="474,419" pivot="0.5,0" size="132,44" group="n10_jcej" fontSize="32" color="#fef7f6" text="段位名字"/>
-    <group id="n10_jcej" name="n10" xy="415,161" size="250,302" advanced="true"/>
+    <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"/>
     <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/>
@@ -24,11 +20,10 @@
     </group>
   </displayList>
   <transition name="t0">
-    <item time="0" type="Visible" target="n10_jcej" value="false"/>
+    <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="Visible" target="n11_jcej" value="false"/>
-    <item time="0" type="Visible" target="n9_jcej" value="true"/>
-    <item time="12" type="Visible" target="n10_jcej" value="true"/>
-    <item time="12" type="Visible" target="n9_jcej" value="false"/>
-    <item time="24" type="Visible" target="n11_jcej" value="true"/>
+    <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"/>
   </transition>
 </component>

+ 8 - 0
FGUIProject/assets/Arena/components/ComDanIcon.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="250,302" overflow="hidden">
+  <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="段位名字"/>
+    <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>
+</component>

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

@@ -186,6 +186,7 @@
     <image id="e0505n" name="tb_yz_11.png" path="/images/" exported="true"/>
     <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/"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/Arena" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 4 - 4
FGUIProject/assets/DressUp/DressUpFightUI.xml

@@ -17,17 +17,17 @@
         <item title="5"/>
       </ComboBox>
     </component>
-    <component id="n1_qsvd" name="btnBack" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="35,60" group="n38_8lqj">
+    <component id="n1_qsvd" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,60" group="n38_8lqj">
       <Button icon="ui://eg2y0ldpuyuxtj4"/>
     </component>
     <component id="n2_qsvd" name="btnHome" src="qp4l60" fileName="components/ButtonHome.xml" pkg="eg2y0ldp" xy="35,200" group="n38_8lqj" visible="false">
       <relation target="n1_qsvd" sidePair="left-left,top-top"/>
     </component>
     <image id="n50_f2bf" name="n50" src="f2bfey" fileName="images/dz_cdxzcdxz.png" xy="837,60" group="n51_f2bf"/>
-    <text id="n49_f2bf" name="txtDressLimit" xy="857,63" size="216,35" group="n51_f2bf" fontSize="25" color="#7a5e38" text="饰品穿戴限制:0/5"/>
+    <text id="n49_f2bf" name="txtDressLimit" xy="857,63" size="213,35" group="n51_f2bf" fontSize="25" color="#7a5e38" text="饰品穿戴限制:0/5"/>
     <group id="n51_f2bf" name="n51" xy="837,60" size="243,44" group="n38_8lqj"/>
     <image id="n16_8xpg" name="n16" src="j48o3z" fileName="images/dz_hz_fsk_1.png" xy="24,230" group="n33_j48o"/>
-    <loader id="n24_d4iw" name="scoreType" xy="23,232" size="50,50" group="n33_j48o" url="ui://eg2y0ldp842s6h" fill="scale"/>
+    <loader id="n24_d4iw" name="scoreType" xy="23,233" size="50,50" group="n33_j48o" url="ui://eg2y0ldp842s6h" fill="scale"/>
     <text id="n14_vxw5" name="txtScore" xy="78,232" size="124,54" group="n33_j48o" fontSize="28" color="#b08649" align="center" vAlign="middle" autoSize="none" autoClearText="true" text="9999"/>
     <group id="n33_j48o" name="n33" xy="23,230" size="204,57" group="n38_8lqj"/>
     <component id="n29_pjip" name="compNeed" src="pjip31" fileName="components/Component1.xml" xy="0,305" group="n38_8lqj"/>
@@ -82,7 +82,7 @@
     <component id="n39_njn2" name="btnAutoPlay" src="jj0mdk" fileName="componentsDialog/Button2.xml" xy="355,1642" group="n38_8lqj">
       <relation target="" sidePair="left-left,bottom-bottom"/>
     </component>
-    <text id="n26_bx8o" name="txtRecommendCount" xy="305,1843" size="314,44" group="n38_8lqj" visible="false" fontSize="32" color="#f0eeee" align="center" vars="true" text="今日剩余次数:{v1=10}/{v2=10}">
+    <text id="n26_bx8o" name="txtRecommendCount" xy="305,1843" size="304,44" group="n38_8lqj" visible="false" fontSize="32" color="#f0eeee" align="center" vars="true" text="今日剩余次数:{v1=10}/{v2=10}">
       <relation target="" sidePair="bottom-bottom"/>
     </text>
     <group id="n38_8lqj" name="graContent" xy="0,0" size="1310,1920" advanced="true">

+ 8 - 12
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Arena/UI_ArenaDanUpUI.cs

@@ -8,10 +8,8 @@ namespace UI.Arena
     {
         public GComponent target;
         public Controller m_c1;
-        public GTextField m_txtlastDanTitle;
-        public GLoader m_loaLastDanIcon;
-        public GLoader m_loaDanIcon;
-        public GTextField m_txtDanTitle;
+        public UI_ComDanIcon m_comLastDan;
+        public UI_ComDanIcon m_comCurDan;
         public GList m_listFirstDanReward;
         public Transition m_t0;
         public const string URL = "ui://4lc5fhlbpsph8";
@@ -62,20 +60,18 @@ namespace UI.Arena
         private void Init(GComponent comp)
         {
             m_c1 = comp.GetController("c1");
-            m_txtlastDanTitle = (GTextField)comp.GetChild("txtlastDanTitle");
-            m_loaLastDanIcon = (GLoader)comp.GetChild("loaLastDanIcon");
-            m_loaDanIcon = (GLoader)comp.GetChild("loaDanIcon");
-            m_txtDanTitle = (GTextField)comp.GetChild("txtDanTitle");
+            m_comLastDan = (UI_ComDanIcon)UI_ComDanIcon.Create(comp.GetChild("comLastDan"));
+            m_comCurDan = (UI_ComDanIcon)UI_ComDanIcon.Create(comp.GetChild("comCurDan"));
             m_listFirstDanReward = (GList)comp.GetChild("listFirstDanReward");
             m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
-            m_txtlastDanTitle = null;
-            m_loaLastDanIcon = null;
-            m_loaDanIcon = null;
-            m_txtDanTitle = null;
+            m_comLastDan.Dispose();
+            m_comLastDan = null;
+            m_comCurDan.Dispose();
+            m_comCurDan = null;
             m_listFirstDanReward = null;
             m_t0 = null;
             if(disposeTarget && target != null)

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

@@ -0,0 +1,74 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.Arena
+{
+    public partial class UI_ComDanIcon
+    {
+        public GComponent target;
+        public GTextField m_txtDanTitle;
+        public GLoader m_loaDanIcon;
+        public const string URL = "ui://4lc5fhlbofwu5q";
+        public const string PACKAGE_NAME = "Arena";
+        public const string RES_NAME = "ComDanIcon";
+        private static UI_ComDanIcon _proxy;
+
+        public static UI_ComDanIcon Create(GObject gObject = null)
+        {
+            var ui = new UI_ComDanIcon();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_ComDanIcon Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ComDanIcon();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_txtDanTitle = (GTextField)comp.GetChild("txtDanTitle");
+            m_loaDanIcon = (GLoader)comp.GetChild("loaDanIcon");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_txtDanTitle = null;
+            m_loaDanIcon = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

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

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e98cc478cdc223a4eab67248613f32e8
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaDanUpView.cs

@@ -53,13 +53,13 @@ namespace GFGGame
             }
 
             cfg = ArenaRankCfgArray.Instance.GetCfg(curGrade);
-            _ui.m_txtDanTitle.text = cfg.gradeName;
-            ArenaViewManager.Instance.UpdateDanIcon(_ui.m_loaDanIcon, cfg.id);
+            _ui.m_comCurDan.m_txtDanTitle.text = cfg.gradeName;
+            ArenaViewManager.Instance.UpdateDanIcon(_ui.m_comCurDan.m_loaDanIcon, cfg.id);
 
 
             ArenaRankCfg lastCfg = ArenaRankCfgArray.Instance.GetCfg(lastGrade);
-            _ui.m_txtlastDanTitle.text = lastCfg.gradeName;
-            ArenaViewManager.Instance.UpdateDanIcon(_ui.m_loaLastDanIcon, lastCfg.id);
+            _ui.m_comLastDan.m_txtDanTitle.text = lastCfg.gradeName;
+            ArenaViewManager.Instance.UpdateDanIcon(_ui.m_comLastDan.m_loaDanIcon, lastCfg.id);
 
             _ui.m_t0.Play(() =>
             {

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


BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_fui.bytes