Ver código fonte

恭喜获得特效

zhaoyang 3 anos atrás
pai
commit
6d835d3024

+ 0 - 8
FGUIProject/assets/CommonGame/components/ListRewardItem.xml

@@ -4,12 +4,4 @@
     <component id="n2_m9wm" name="comRewardItem" src="wet2tae" fileName="components/ComRewardItem.xml" xy="98,109" pivot="0.5,0.45"/>
     <movieclip id="n10_kzte" name="effect" src="wet2td7" fileName="effect/MovieClip2.jta" xy="-16,-50" blend="add"/>
   </displayList>
-  <transition name="t0">
-    <item time="0" type="Animation" target="n10_kzte" value="-,p"/>
-    <item time="0" type="Scale" target="n2_m9wm" value="0,0"/>
-    <item time="0" type="Visible" target="n10_kzte" value="true"/>
-    <item time="2" type="Scale" target="n2_m9wm" tween="true" startValue="0,0" endValue="1,1" duration="3" ease="Linear"/>
-    <item time="54" type="Animation" target="n10_kzte" value="-,s"/>
-    <item time="54" type="Visible" target="n10_kzte" value="false"/>
-  </transition>
 </component>

+ 0 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ListRewardItem.cs

@@ -9,7 +9,6 @@ namespace UI.CommonGame
         public GComponent target;
         public UI_ComRewardItem m_comRewardItem;
         public GMovieClip m_effect;
-        public Transition m_t0;
         public const string URL = "ui://eg2y0ldpm9wm8u";
         public const string PACKAGE_NAME = "CommonGame";
         public const string RES_NAME = "ListRewardItem";
@@ -59,14 +58,12 @@ namespace UI.CommonGame
         {
             m_comRewardItem = (UI_ComRewardItem)UI_ComRewardItem.Create(comp.GetChild("comRewardItem"));
             m_effect = (GMovieClip)comp.GetChild("effect");
-            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_comRewardItem.Dispose();
             m_comRewardItem = null;
             m_effect = null;
-            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 4
GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

@@ -80,18 +80,17 @@ namespace GFGGame
             int childIndex = _ui.m_comListReward.m_listReward.ItemIndexToChildIndex(index);
             if (_effects.Count <= childIndex)
             {
-                // GameObject gameObject0;
-                // GoWrapper wrapper0;
-                // SceneController.AddObjectToView(null, null, item.m_holder, resPath, out gameObject0, out wrapper0);
                 _effects.Add(item.m_effect);
-                item.m_t0.Play();
+                item.m_effect.SetPlaySettings(0, -1, 1, -1);
             }
+
             if (item.m_comRewardItem.target.data == null)
             {
                 item.m_comRewardItem.target.onClick.Add(OnClickListReward);
             }
             item.m_comRewardItem.target.data = _listItemDatas[index];
         }
+
         private void OnClickListReward(EventContext context)
         {
             if (this.ShowTips)

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes