UI_NewYearRedEnvelopeUI.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.NewYearRedEnvelope
  4. {
  5. public partial class UI_NewYearRedEnvelopeUI
  6. {
  7. public GComponent target;
  8. public Controller m_titleImgType;
  9. public Controller m_openType;
  10. public GButton m_btnOpen;
  11. public GRichTextField m_txtTime;
  12. public UI_Button1 m_btnGet;
  13. public UI_Button1 m_btnDoubleGet;
  14. public GRichTextField m_textGetNum;
  15. public const string URL = "ui://pt3t9f1ujsko0";
  16. public const string PACKAGE_NAME = "NewYearRedEnvelope";
  17. public const string RES_NAME = "NewYearRedEnvelopeUI";
  18. private static UI_NewYearRedEnvelopeUI _proxy;
  19. public static UI_NewYearRedEnvelopeUI Create(GObject gObject = null)
  20. {
  21. var ui = new UI_NewYearRedEnvelopeUI();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_NewYearRedEnvelopeUI Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_NewYearRedEnvelopeUI();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_titleImgType = comp.GetController("titleImgType");
  58. m_openType = comp.GetController("openType");
  59. m_btnOpen = (GButton)comp.GetChild("btnOpen");
  60. m_txtTime = (GRichTextField)comp.GetChild("txtTime");
  61. m_btnGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnGet"));
  62. m_btnDoubleGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnDoubleGet"));
  63. m_textGetNum = (GRichTextField)comp.GetChild("textGetNum");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_titleImgType = null;
  68. m_openType = null;
  69. m_btnOpen = null;
  70. m_txtTime = null;
  71. m_btnGet.Dispose();
  72. m_btnGet = null;
  73. m_btnDoubleGet.Dispose();
  74. m_btnDoubleGet = null;
  75. m_textGetNum = null;
  76. if(disposeTarget && target != null)
  77. {
  78. target.RemoveFromParent();
  79. target.Dispose();
  80. }
  81. target = null;
  82. }
  83. }
  84. }