UI_ComLoginItem.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.NewYearLogin
  4. {
  5. public partial class UI_ComLoginItem
  6. {
  7. public GComponent target;
  8. public Controller m_bgType;
  9. public GLoader m_loaIcon;
  10. public GTextField m_txtDay;
  11. public GTextField m_txtNum;
  12. public GTextField m_txtName;
  13. public GImage m_imgGot;
  14. public const string URL = "ui://euyo6bk3t2f05";
  15. public const string PACKAGE_NAME = "NewYearLogin";
  16. public const string RES_NAME = "ComLoginItem";
  17. private static UI_ComLoginItem _proxy;
  18. public static UI_ComLoginItem Create(GObject gObject = null)
  19. {
  20. var ui = new UI_ComLoginItem();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_ComLoginItem Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_ComLoginItem();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_bgType = comp.GetController("bgType");
  57. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  58. m_txtDay = (GTextField)comp.GetChild("txtDay");
  59. m_txtNum = (GTextField)comp.GetChild("txtNum");
  60. m_txtName = (GTextField)comp.GetChild("txtName");
  61. m_imgGot = (GImage)comp.GetChild("imgGot");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_bgType = null;
  66. m_loaIcon = null;
  67. m_txtDay = null;
  68. m_txtNum = null;
  69. m_txtName = null;
  70. m_imgGot = null;
  71. if(disposeTarget && target != null)
  72. {
  73. target.RemoveFromParent();
  74. target.Dispose();
  75. }
  76. target = null;
  77. }
  78. }
  79. }