Эх сурвалжийг харах

恭喜获得界面列表增加遮罩,导出邮箱和活动充值界面 fugi动效

huangxiaoyue 2 жил өмнө
parent
commit
276762474c

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_RewardList.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.CommonGame
+{
+    public partial class UI_RewardList
+    {
+        public GComponent target;
+        public GList m_listReward;
+        public const string URL = "ui://eg2y0ldpgo1ltow";
+        public const string PACKAGE_NAME = "CommonGame";
+        public const string RES_NAME = "RewardList";
+        private static UI_RewardList _proxy;
+
+        public static UI_RewardList Create(GObject gObject = null)
+        {
+            var ui = new UI_RewardList();
+            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_RewardList Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_RewardList();
+            }
+            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_listReward = (GList)comp.GetChild("listReward");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_listReward = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_RewardList.cs.meta

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

+ 4 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_RewardUI.cs

@@ -9,8 +9,8 @@ namespace UI.CommonGame
         public GComponent target;
         public GGraph m_bg;
         public GGraph m_holderTitle;
-        public GList m_listReward;
         public GGroup m_downTipsText;
+        public UI_RewardList m_comList;
         public GGroup m_grp;
         public const string URL = "ui://eg2y0ldpm9wm8q";
         public const string PACKAGE_NAME = "CommonGame";
@@ -61,16 +61,17 @@ namespace UI.CommonGame
         {
             m_bg = (GGraph)comp.GetChild("bg");
             m_holderTitle = (GGraph)comp.GetChild("holderTitle");
-            m_listReward = (GList)comp.GetChild("listReward");
             m_downTipsText = (GGroup)comp.GetChild("downTipsText");
+            m_comList = (UI_RewardList)UI_RewardList.Create(comp.GetChild("comList"));
             m_grp = (GGroup)comp.GetChild("grp");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_bg = null;
             m_holderTitle = null;
-            m_listReward = null;
             m_downTipsText = null;
+            m_comList.Dispose();
+            m_comList = null;
             m_grp = null;
             if(disposeTarget && target != null)
             {

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

@@ -42,7 +42,7 @@ namespace GFGGame
             //viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
             isfullScreen = true;
 
-            _ui.m_listReward.itemRenderer = RenderListRewardItem;
+            _ui.m_comList.m_listReward.itemRenderer = RenderListRewardItem;
             _ui.m_bg.onClick.Add(this.Hide);
         }
         protected override void OnShown()
@@ -75,7 +75,7 @@ namespace GFGGame
             //_ui.m_listReward.SetVirtual();  //有虚拟列表的时候,没有办法居中显示列表
 
             _ui.m_downTipsText.visible = false;
-            _ui.m_listReward.numItems = 0;
+            _ui.m_comList.m_listReward.numItems = 0;
             counTime = 0;
             Timers.inst.Add(0.1f, 3, OnTimerUpdate, 1);
             //邊框左上角特效
@@ -91,12 +91,12 @@ namespace GFGGame
             }
             else if (counTime == 2)
             {
-                _ui.m_listReward.numItems = _listItemDatas.Count;
+                _ui.m_comList.m_listReward.numItems = _listItemDatas.Count;
 
-                _ui.m_listReward.ResizeToFit();
-                if (_ui.m_listReward.height > maxHeight)
+                _ui.m_comList.m_listReward.ResizeToFit();
+                if (_ui.m_comList.m_listReward.height > maxHeight)
                 {
-                    _ui.m_listReward.height = maxHeight;
+                    _ui.m_comList.m_listReward.height = maxHeight;
                 }
             }
             else if (counTime == 3)
@@ -161,7 +161,7 @@ namespace GFGGame
 
             item.m_comRewardItem.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
             //特效("ui_ck", "ui_ck_zl");
-            int childIndex = _ui.m_listReward.ItemIndexToChildIndex(index);
+            int childIndex = _ui.m_comList.m_listReward.ItemIndexToChildIndex(index);
             if (_effects.Count <= childIndex)
             {
                 EffectUI _effectUI = EffectUIPool.CreateEffectUI(item.m_holderReware, "ui_hd", "GXHD_WuPin");

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


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


BIN
GameClient/Assets/ResIn/UI/Mail/Mail_fui.bytes