Pārlūkot izejas kodu

补充提交卡牌预制

leiyasi 1 gadu atpakaļ
vecāks
revīzija
49eba92126

+ 9 - 4
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ListCardItem.cs

@@ -9,11 +9,12 @@ namespace UI.CommonGame
         public GComponent target;
         public Controller m_starNumType;
         public Controller m_showType;
+        public Controller m_rarity;
         public UI_ComCardMask m_comCard;
         public GLoader m_loaBorder;
         public GLoader m_loaRarity;
-        public GGraph m_holderPurpleBg;
-        public GGraph m_holderGoldBg;
+        public UI_holderBg m_holderPurpleBg;
+        public UI_holderBg m_holderGoldBg;
         public GTextField m_txtLv;
         public GTextField m_txtName;
         public GLoader m_loaMainScore;
@@ -71,11 +72,12 @@ namespace UI.CommonGame
         {
             m_starNumType = comp.GetController("starNumType");
             m_showType = comp.GetController("showType");
+            m_rarity = comp.GetController("rarity");
             m_comCard = (UI_ComCardMask)UI_ComCardMask.Create(comp.GetChild("comCard"));
             m_loaBorder = (GLoader)comp.GetChild("loaBorder");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
-            m_holderPurpleBg = (GGraph)comp.GetChild("holderPurpleBg");
-            m_holderGoldBg = (GGraph)comp.GetChild("holderGoldBg");
+            m_holderPurpleBg = (UI_holderBg)UI_holderBg.Create(comp.GetChild("holderPurpleBg"));
+            m_holderGoldBg = (UI_holderBg)UI_holderBg.Create(comp.GetChild("holderGoldBg"));
             m_txtLv = (GTextField)comp.GetChild("txtLv");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_loaMainScore = (GLoader)comp.GetChild("loaMainScore");
@@ -89,11 +91,14 @@ namespace UI.CommonGame
         {
             m_starNumType = null;
             m_showType = null;
+            m_rarity = null;
             m_comCard.Dispose();
             m_comCard = null;
             m_loaBorder = null;
             m_loaRarity = null;
+            m_holderPurpleBg.Dispose();
             m_holderPurpleBg = null;
+            m_holderGoldBg.Dispose();
             m_holderGoldBg = null;
             m_txtLv = null;
             m_txtName = null;

+ 74 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_holderBg.cs

@@ -0,0 +1,74 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.CommonGame
+{
+    public partial class UI_holderBg
+    {
+        public GComponent target;
+        public GGraph m_used;
+        public GGraph m_holderBg;
+        public const string URL = "ui://eg2y0ldpjn3l9g0p";
+        public const string PACKAGE_NAME = "CommonGame";
+        public const string RES_NAME = "holderBg";
+        private static UI_holderBg _proxy;
+
+        public static UI_holderBg Create(GObject gObject = null)
+        {
+            var ui = new UI_holderBg();
+            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_holderBg Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_holderBg();
+            }
+            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_used = (GGraph)comp.GetChild("used");
+            m_holderBg = (GGraph)comp.GetChild("holderBg");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_used = null;
+            m_holderBg = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

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

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