|
@@ -1,74 +0,0 @@
|
|
|
-/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
|
|
|
-
|
|
|
-using FairyGUI;
|
|
|
-
|
|
|
-namespace UI.Bag
|
|
|
-{
|
|
|
- public partial class UI_ListItem
|
|
|
- {
|
|
|
- public GComponent target;
|
|
|
- public GLoader m_loaIcon;
|
|
|
- public GTextField m_txtCount;
|
|
|
- public const string URL = "ui://2bsz6nelsi5zti7";
|
|
|
- public const string PACKAGE_NAME = "Bag";
|
|
|
- public const string RES_NAME = "ListItem";
|
|
|
- private static UI_ListItem _proxy;
|
|
|
-
|
|
|
- public static UI_ListItem Create(GObject gObject = null)
|
|
|
- {
|
|
|
- var ui = new UI_ListItem();
|
|
|
- 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_ListItem Proxy(GObject gObject = null)
|
|
|
- {
|
|
|
- if(_proxy == null)
|
|
|
- {
|
|
|
- _proxy = new UI_ListItem();
|
|
|
- }
|
|
|
- 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_loaIcon = (GLoader)comp.GetChild("loaIcon");
|
|
|
- m_txtCount = (GTextField)comp.GetChild("txtCount");
|
|
|
- }
|
|
|
- public void Dispose(bool disposeTarget = false)
|
|
|
- {
|
|
|
- m_loaIcon = null;
|
|
|
- m_txtCount = null;
|
|
|
- if(disposeTarget && target != null)
|
|
|
- {
|
|
|
- target.RemoveFromParent();
|
|
|
- target.Dispose();
|
|
|
- }
|
|
|
- target = null;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|