UI_MailUI.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Mail
  4. {
  5. public partial class UI_MailUI
  6. {
  7. public GComponent target;
  8. public GImage m_bg;
  9. public GGraph m_holderLeftTop;
  10. public GGraph m_holderRightDowm;
  11. public GList m_list;
  12. public GTextField m_txtTips;
  13. public GTextField m_txtCount;
  14. public GTextField m_txtMaxCount;
  15. public GButton m_btnDelete;
  16. public GButton m_btnGet;
  17. public const string URL = "ui://y44a413eehs9c";
  18. public const string PACKAGE_NAME = "Mail";
  19. public const string RES_NAME = "MailUI";
  20. private static UI_MailUI _proxy;
  21. public static UI_MailUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_MailUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_MailUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_MailUI();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_bg = (GImage)comp.GetChild("bg");
  60. m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
  61. m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
  62. m_list = (GList)comp.GetChild("list");
  63. m_txtTips = (GTextField)comp.GetChild("txtTips");
  64. m_txtCount = (GTextField)comp.GetChild("txtCount");
  65. m_txtMaxCount = (GTextField)comp.GetChild("txtMaxCount");
  66. m_btnDelete = (GButton)comp.GetChild("btnDelete");
  67. m_btnGet = (GButton)comp.GetChild("btnGet");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_bg = null;
  72. m_holderLeftTop = null;
  73. m_holderRightDowm = null;
  74. m_list = null;
  75. m_txtTips = null;
  76. m_txtCount = null;
  77. m_txtMaxCount = null;
  78. m_btnDelete = null;
  79. m_btnGet = null;
  80. if(disposeTarget && target != null)
  81. {
  82. target.RemoveFromParent();
  83. target.Dispose();
  84. }
  85. target = null;
  86. }
  87. }
  88. }