UI_NewYearRedEnvelopeUI.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 GGraph m_holderTitle;
  11. public GGraph m_holderdoubao1;
  12. public GGraph m_holderdoubao2;
  13. public GGraph m_holderAllBg;
  14. public GGraph m_holderAFu;
  15. public GLoader m_imgTitle;
  16. public GButton m_btnOpen;
  17. public GRichTextField m_txtTime;
  18. public UI_Button1 m_btnDoubleGet;
  19. public GGraph m_holderOpenBtn;
  20. public GComponent m_itemReward;
  21. public GRichTextField m_textGetNum;
  22. public GRichTextField m_txtGet;
  23. public Transition m_textShow;
  24. public const string URL = "ui://pt3t9f1ujsko0";
  25. public const string PACKAGE_NAME = "NewYearRedEnvelope";
  26. public const string RES_NAME = "NewYearRedEnvelopeUI";
  27. private static UI_NewYearRedEnvelopeUI _proxy;
  28. public static UI_NewYearRedEnvelopeUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_NewYearRedEnvelopeUI();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_NewYearRedEnvelopeUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_NewYearRedEnvelopeUI();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_titleImgType = comp.GetController("titleImgType");
  67. m_openType = comp.GetController("openType");
  68. m_holderTitle = (GGraph)comp.GetChild("holderTitle");
  69. m_holderdoubao1 = (GGraph)comp.GetChild("holderdoubao1");
  70. m_holderdoubao2 = (GGraph)comp.GetChild("holderdoubao2");
  71. m_holderAllBg = (GGraph)comp.GetChild("holderAllBg");
  72. m_holderAFu = (GGraph)comp.GetChild("holderAFu");
  73. m_imgTitle = (GLoader)comp.GetChild("imgTitle");
  74. m_btnOpen = (GButton)comp.GetChild("btnOpen");
  75. m_txtTime = (GRichTextField)comp.GetChild("txtTime");
  76. m_btnDoubleGet = (UI_Button1)UI_Button1.Create(comp.GetChild("btnDoubleGet"));
  77. m_holderOpenBtn = (GGraph)comp.GetChild("holderOpenBtn");
  78. m_itemReward = (GComponent)comp.GetChild("itemReward");
  79. m_textGetNum = (GRichTextField)comp.GetChild("textGetNum");
  80. m_txtGet = (GRichTextField)comp.GetChild("txtGet");
  81. m_textShow = comp.GetTransition("textShow");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_titleImgType = null;
  86. m_openType = null;
  87. m_holderTitle = null;
  88. m_holderdoubao1 = null;
  89. m_holderdoubao2 = null;
  90. m_holderAllBg = null;
  91. m_holderAFu = null;
  92. m_imgTitle = null;
  93. m_btnOpen = null;
  94. m_txtTime = null;
  95. m_btnDoubleGet.Dispose();
  96. m_btnDoubleGet = null;
  97. m_holderOpenBtn = null;
  98. m_itemReward = null;
  99. m_textGetNum = null;
  100. m_txtGet = null;
  101. m_textShow = null;
  102. if(disposeTarget && target != null)
  103. {
  104. target.RemoveFromParent();
  105. target.Dispose();
  106. }
  107. target = null;
  108. }
  109. }
  110. }