Explorar o código

限时礼包特效加入

何晓捷 %!s(int64=2) %!d(string=hai) anos
pai
achega
d97ce2e683

+ 15 - 12
FGUIProject/assets/EnduringGiftBox/RushSaleGiftBoxUI.xml

@@ -2,12 +2,10 @@
 <component size="1080,958">
   <displayList>
     <image id="n1_yjmk" name="n1" src="yjmk2j" fileName="images/xsqg_db.png" xy="1,-72" group="n22_droi"/>
-    <image id="n0_yjmk" name="n0" src="yjmk2l" fileName="images/xsqg_lihui.png" xy="44,23" group="n22_droi" visible="false"/>
     <image id="n2_yjmk" name="n2" src="yjmk2i" fileName="images/wz_xsqg.png" xy="335,26" group="n22_droi"/>
     <component id="n19_droi" name="btnUp" src="droi3c" fileName="components/BtnUp.xml" xy="63,380" group="n22_droi"/>
     <component id="n20_droi" name="btnNext" src="droi3d" fileName="components/BtnNext.xml" xy="877,386" group="n22_droi"/>
     <component id="n21_droi" name="btnBack" src="qqhz26" fileName="components/BnBack.xml" xy="498,940" group="n22_droi"/>
-    <graph id="n24_droi" name="holderPaoBaby" xy="246,302" size="86,77" group="n22_droi"/>
     <group id="n22_droi" name="n22" xy="1,-72" size="1077,1231"/>
     <image id="n5_yjmk" name="n5" src="yjmk2m" fileName="images/xsqg_nr_db.png" xy="193,215" group="n23_droi"/>
     <text id="n4_yjmk" name="txtBoxItemName" xy="363,207" size="283,65" group="n23_droi" fontSize="40" color="#fffbf5" align="center" autoSize="none" strokeColor="#d69546" text="体力限时礼包"/>
@@ -20,16 +18,16 @@
     <image id="n12_yjmk" name="n12" src="yjmk2b" fileName="images/xsqg_zsx.png" xy="302,602" group="n23_droi"/>
     <text id="n13_yjmk" name="txtUrc" xy="453,623" size="224,68" group="n23_droi" fontSize="34" color="#b8857b" align="center" vAlign="middle" autoSize="shrink" text="今日限购0/1"/>
     <component id="n15_yjmk" name="btnBuyPink" src="yjmk2q" fileName="components/BtnBuyPink.xml" xy="408,693" group="n23_droi"/>
-    <graph id="n25_droi" name="holderBtnBy" xy="554,728" size="59,41" group="n23_droi"/>
+    <graph id="n25_droi" name="holderBtnBy" xy="570,735" size="46,29" group="n23_droi"/>
+    <graph id="n27_droi" name="holderZheKouChiXu" xy="394,692" size="33,33" group="n23_droi"/>
     <component id="n14_yjmk" name="comDiscount" src="yjmk2r" fileName="components/ComDiscount2.xml" xy="333,642" group="n23_droi"/>
-    <graph id="n27_droi" name="holderZheKouChiXu" xy="382,682" size="44,43" group="n23_droi"/>
-    <graph id="n26_droi" name="holderZheKou" xy="390,685" size="47,50" group="n23_droi"/>
+    <graph id="n26_droi" name="holderZheKou" xy="399,697" size="19,18" group="n23_droi"/>
     <text id="n16_yjmk" name="txtLrc" xy="379,787" size="380,46" group="n23_droi" fontSize="34" color="#b8857b" align="center" autoSize="shrink" text="可获得60充值经验"/>
-    <graph id="n28_droi" name="holderStar" xy="561,467" size="43,38" group="n23_droi"/>
+    <graph id="n28_droi" name="holderStar" xy="554,470" size="43,38" group="n23_droi"/>
     <group id="n23_droi" name="n23" xy="193,207" size="746,626"/>
+    <graph id="n24_droi" name="holderPaoBaby" xy="263,282" size="86,77"/>
   </displayList>
   <transition name="t3">
-    <item time="0" type="Alpha" target="n0_yjmk" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
     <item time="0" type="Alpha" target="n11_yjmk" value="0"/>
     <item time="0" type="Alpha" target="n12_yjmk" value="0"/>
     <item time="0" type="Alpha" target="n13_yjmk" value="0"/>
@@ -39,26 +37,31 @@
     <item time="0" type="Alpha" target="n19_droi" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
     <item time="0" type="Alpha" target="n1_yjmk" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
     <item time="0" type="Alpha" target="n20_droi" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
-    <item time="0" type="Alpha" target="n21_droi" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
+    <item time="0" type="Alpha" target="n21_droi" tween="true" startValue="0" endValue="1" duration="27"/>
     <item time="0" type="Alpha" target="n2_yjmk" tween="true" startValue="0" endValue="1" duration="27" ease="Linear"/>
     <item time="0" type="Alpha" target="n4_yjmk" value="0"/>
     <item time="0" type="Alpha" target="n5_yjmk" value="0"/>
-    <item time="0" type="Alpha" target="n6_yjmk" value="1"/>
     <item time="0" type="Alpha" target="n6_yjmk" value="0"/>
+    <item time="0" type="Alpha" target="n6_yjmk" value="1"/>
     <item time="0" type="Alpha" target="n8_yjmk" value="1"/>
     <item time="0" type="Alpha" target="n8_yjmk" value="0"/>
-    <item time="0" type="Scale" target="n0_yjmk" tween="true" startValue="0.95,0.95" endValue="1,1" duration="10" ease="Linear"/>
-    <item time="0" type="XY" target="n0_yjmk" tween="true" startValue="55,20" endValue="44,23" duration="10" ease="Linear"/>
+    <item time="0" type="Scale" target="n24_droi" tween="true" startValue="0.95,0.95" endValue="1,1" duration="12" ease="Linear"/>
+    <item time="0" type="Visible" target="n24_droi" value="false"/>
+    <item time="0" type="Visible" target="n27_droi" value="false"/>
     <item time="0" type="XY" target="n19_droi" tween="true" startValue="70,380" endValue="63,380" duration="10" ease="Linear"/>
+    <item time="0" type="XY" target="n24_droi" tween="true" startValue="274,290" endValue="263,282" duration="12" ease="Linear"/>
     <item time="0" type="XY" target="n2_yjmk" tween="true" startValue="335,20" endValue="335,26" duration="11" ease="Linear"/>
+    <item time="6" type="Visible" target="n24_droi" value="true"/>
+    <item time="12" type="Visible" target="n27_droi" value="true"/>
     <item time="15" type="Alpha" target="n11_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n12_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n13_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n14_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n16_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
+    <item time="15" type="Alpha" target="n24_droi" tween="true" startValue="0" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n4_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="15" type="Alpha" target="n5_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
-    <item time="15" type="Alpha" target="n6_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
+    <item time="15" type="Alpha" target="n6_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Quint.Out"/>
     <item time="15" type="Alpha" target="n8_yjmk" tween="true" startValue="0.2" endValue="1" duration="19" ease="Linear"/>
     <item time="18" type="Alpha" target="n15_yjmk" tween="true" startValue="0.2" endValue="1" duration="16" ease="Linear"/>
   </transition>

+ 1 - 2
FGUIProject/assets/EnduringGiftBox/components/ComSpecialOfferGiftBoxItem.xml

@@ -8,8 +8,7 @@
     <text id="n5_yjmk" name="txtUrc" xy="714,13" size="216,42" group="n8_yjmk" rotation="-0.6" fontSize="28" color="#cc6960" align="center" leading="0" autoSize="none" text="今日限购1/1"/>
     <text id="n6_yjmk" name="txtGetJf" xy="660,165" size="269,33" group="n8_yjmk" fontSize="28" color="#c69652" align="center" autoSize="none" text="可获得120会员积分"/>
     <component id="n7_yjmk" name="comDiscount" src="qqhz1o" fileName="components/ComDiscount.xml" xy="629,59" size="78,66" group="n8_yjmk"/>
-    <list id="n9_yjmk" name="list" xy="57,58" size="439,133" group="n8_yjmk" scale="1.05,1.05" layout="flow_vt" overflow="scroll" scroll="horizontal" scrollBarFlags="32" colGap="16" defaultItem="ui://bdi1qe15qqhz1g" align="center" autoClearItems="true">
-      <item/>
+    <list id="n9_yjmk" name="list" xy="57,58" size="439,133" group="n8_yjmk" scale="1.05,1.05" layout="flow_vt" overflow="scroll" scroll="horizontal" scrollBarFlags="32" colGap="16" defaultItem="ui://bdi1qe15qqhz1g" autoClearItems="true">
       <item/>
       <item/>
     </list>

+ 6 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/EnduringGiftBox/UI_RushSaleGiftBoxUI.cs

@@ -10,18 +10,18 @@ namespace UI.EnduringGiftBox
         public GComponent m_btnUp;
         public GComponent m_btnNext;
         public GComponent m_btnBack;
-        public GGraph m_holderPaoBaby;
         public GTextField m_txtBoxItemName;
         public GTextField m_txtBoxResidueTime;
         public GList m_list;
         public GTextField m_txtUrc;
         public UI_BtnBuyPink m_btnBuyPink;
         public GGraph m_holderBtnBy;
-        public UI_ComDiscount2 m_comDiscount;
         public GGraph m_holderZheKouChiXu;
+        public UI_ComDiscount2 m_comDiscount;
         public GGraph m_holderZheKou;
         public GTextField m_txtLrc;
         public GGraph m_holderStar;
+        public GGraph m_holderPaoBaby;
         public Transition m_t3;
         public const string URL = "ui://bdi1qe15yjmk29";
         public const string PACKAGE_NAME = "EnduringGiftBox";
@@ -73,18 +73,18 @@ namespace UI.EnduringGiftBox
             m_btnUp = (GComponent)comp.GetChild("btnUp");
             m_btnNext = (GComponent)comp.GetChild("btnNext");
             m_btnBack = (GComponent)comp.GetChild("btnBack");
-            m_holderPaoBaby = (GGraph)comp.GetChild("holderPaoBaby");
             m_txtBoxItemName = (GTextField)comp.GetChild("txtBoxItemName");
             m_txtBoxResidueTime = (GTextField)comp.GetChild("txtBoxResidueTime");
             m_list = (GList)comp.GetChild("list");
             m_txtUrc = (GTextField)comp.GetChild("txtUrc");
             m_btnBuyPink = (UI_BtnBuyPink)UI_BtnBuyPink.Create(comp.GetChild("btnBuyPink"));
             m_holderBtnBy = (GGraph)comp.GetChild("holderBtnBy");
-            m_comDiscount = (UI_ComDiscount2)UI_ComDiscount2.Create(comp.GetChild("comDiscount"));
             m_holderZheKouChiXu = (GGraph)comp.GetChild("holderZheKouChiXu");
+            m_comDiscount = (UI_ComDiscount2)UI_ComDiscount2.Create(comp.GetChild("comDiscount"));
             m_holderZheKou = (GGraph)comp.GetChild("holderZheKou");
             m_txtLrc = (GTextField)comp.GetChild("txtLrc");
             m_holderStar = (GGraph)comp.GetChild("holderStar");
+            m_holderPaoBaby = (GGraph)comp.GetChild("holderPaoBaby");
             m_t3 = comp.GetTransition("t3");
         }
         public void Dispose(bool disposeTarget = false)
@@ -92,7 +92,6 @@ namespace UI.EnduringGiftBox
             m_btnUp = null;
             m_btnNext = null;
             m_btnBack = null;
-            m_holderPaoBaby = null;
             m_txtBoxItemName = null;
             m_txtBoxResidueTime = null;
             m_list = null;
@@ -100,12 +99,13 @@ namespace UI.EnduringGiftBox
             m_btnBuyPink.Dispose();
             m_btnBuyPink = null;
             m_holderBtnBy = null;
+            m_holderZheKouChiXu = null;
             m_comDiscount.Dispose();
             m_comDiscount = null;
-            m_holderZheKouChiXu = null;
             m_holderZheKou = null;
             m_txtLrc = null;
             m_holderStar = null;
+            m_holderPaoBaby = null;
             m_t3 = null;
             if(disposeTarget && target != null)
             {

+ 25 - 3
GameClient/Assets/Game/HotUpdate/Views/EnduringGiftBox/RushSaleGiftBoxView.cs

@@ -21,17 +21,19 @@ namespace GFGGame
         private int _pageIndex; //当前页码,需要显示的数据的索引
         
         private List<GameObject>  _gameObjectList;
-        
         private GameObject _gameObject1;
         private GameObject _gameObject2;
         private GameObject _gameObject3;
         private GameObject _gameObject4;
+        private GameObject _gameObject5;
 
+        private List<GoWrapper> _wrapperList;
         private GoWrapper _wrapper1;
         private GoWrapper _wrapper2;
         private GoWrapper _wrapper3;
         private GoWrapper _wrapper4;
-
+        private GoWrapper _wrapper5;
+        
         protected override void OnInit()
         {
             base.OnInit();
@@ -54,6 +56,7 @@ namespace GFGGame
             base.OnShown();
             _type = (int)(this.viewData as object[])[0]; //ConstActivityType
             AddEffect();
+            _ui.m_t3.Play();
             LimitedTimeGiftBoxDataManager.Instance.UpLtgGbItemData4();
             LimitedTimeGiftBoxDataManager.Instance.UpLtgGbItemData5();
             InitPageInex();
@@ -78,7 +81,21 @@ namespace GFGGame
 
         private void AddEffect()
         {
-            
+            string resPath1 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_pepole");
+            SceneController.AddObjectToView(null, null, _ui.m_holderPaoBaby, resPath1,
+                out _gameObject1, out _wrapper1);
+            string resPath2 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_button");
+            SceneController.AddObjectToView(null, null, _ui.m_holderBtnBy, resPath2,
+                out _gameObject2, out _wrapper2);
+            string resPath3 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_discount_chixu");
+            SceneController.AddObjectToView(null, null, _ui.m_holderZheKouChiXu, resPath3,
+                out _gameObject3, out _wrapper3);
+            string resPath4 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_discount_baofa");
+            SceneController.AddObjectToView(null, null, _ui.m_holderZheKou, resPath4,
+                out _gameObject4, out _wrapper4);
+            string resPath5 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_star");
+            SceneController.AddObjectToView(null, null, _ui.m_holderStar, resPath5,
+                out _gameObject5, out _wrapper5);
         }
 
         //实例化索引
@@ -299,6 +316,11 @@ namespace GFGGame
 
         protected override void OnHide()
         {
+            SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
+            SceneController.DestroyObjectFromView(_gameObject2, _wrapper2);
+            SceneController.DestroyObjectFromView(_gameObject3, _wrapper3);
+            SceneController.DestroyObjectFromView(_gameObject4, _wrapper4);
+            SceneController.DestroyObjectFromView(_gameObject5, _wrapper5);
             this.RemoveEventListener();
             //Dispose();
             base.Hide();

BIN=BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_atlas0!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_atlas0.png


BIN=BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_atlas0_1!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_atlas0_1.png


BIN=BIN
GameClient/Assets/ResIn/UI/EnduringGiftBox/EnduringGiftBox_fui.bytes