UI_ComBox1.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.LuckyBox
  4. {
  5. public partial class UI_ComBox1
  6. {
  7. public GComponent target;
  8. public Controller m_showActivityType;
  9. public UI_ComModel m_comModel;
  10. public UI_Button5 m_btnGiftBag;
  11. public UI_ComBagTime m_comBagTime;
  12. public UI_Button5 m_btnShop;
  13. public UI_Button5 m_btnReward;
  14. public UI_comLuckBoxBtn m_comLuckBoxBtn;
  15. public GTextField m_txtCount;
  16. public GTextField m_txtHasTime;
  17. public GGroup m_grpActivityTips;
  18. public GLoader m_ImgUp;
  19. public GTextField m_txtTsyTime;
  20. public GTextField m_txtTime;
  21. public GGroup m_grpTime;
  22. public GGroup m_grpTitle;
  23. public GButton m_btnPreview;
  24. public GTextField m_txtOwned;
  25. public const string URL = "ui://drx9d1usduuftcr";
  26. public const string PACKAGE_NAME = "LuckyBox";
  27. public const string RES_NAME = "ComBox1";
  28. private static UI_ComBox1 _proxy;
  29. public static UI_ComBox1 Create(GObject gObject = null)
  30. {
  31. var ui = new UI_ComBox1();
  32. if(gObject == null)
  33. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  34. else
  35. ui.target = (GComponent)gObject;
  36. ui.Init(ui.target);
  37. return ui;
  38. }
  39. public static UI_ComBox1 Proxy(GObject gObject = null)
  40. {
  41. if(_proxy == null)
  42. {
  43. _proxy = new UI_ComBox1();
  44. }
  45. var ui = _proxy;
  46. if(gObject == null)
  47. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  48. else
  49. ui.target = (GComponent)gObject;
  50. ui.Init(ui.target);
  51. return ui;
  52. }
  53. public static void ProxyEnd()
  54. {
  55. if (_proxy != null)
  56. {
  57. _proxy.Dispose();
  58. }
  59. }
  60. public static void ClearProxy()
  61. {
  62. ProxyEnd();
  63. _proxy = null;
  64. }
  65. private void Init(GComponent comp)
  66. {
  67. m_showActivityType = comp.GetController("showActivityType");
  68. m_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  69. m_btnGiftBag = (UI_Button5)UI_Button5.Create(comp.GetChild("btnGiftBag"));
  70. m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime"));
  71. m_btnShop = (UI_Button5)UI_Button5.Create(comp.GetChild("btnShop"));
  72. m_btnReward = (UI_Button5)UI_Button5.Create(comp.GetChild("btnReward"));
  73. m_comLuckBoxBtn = (UI_comLuckBoxBtn)UI_comLuckBoxBtn.Create(comp.GetChild("comLuckBoxBtn"));
  74. m_txtCount = (GTextField)comp.GetChild("txtCount");
  75. m_txtHasTime = (GTextField)comp.GetChild("txtHasTime");
  76. m_grpActivityTips = (GGroup)comp.GetChild("grpActivityTips");
  77. m_ImgUp = (GLoader)comp.GetChild("ImgUp");
  78. m_txtTsyTime = (GTextField)comp.GetChild("txtTsyTime");
  79. m_txtTime = (GTextField)comp.GetChild("txtTime");
  80. m_grpTime = (GGroup)comp.GetChild("grpTime");
  81. m_grpTitle = (GGroup)comp.GetChild("grpTitle");
  82. m_btnPreview = (GButton)comp.GetChild("btnPreview");
  83. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  84. }
  85. public void Dispose(bool disposeTarget = false)
  86. {
  87. m_showActivityType = null;
  88. m_comModel.Dispose();
  89. m_comModel = null;
  90. m_btnGiftBag.Dispose();
  91. m_btnGiftBag = null;
  92. m_comBagTime.Dispose();
  93. m_comBagTime = null;
  94. m_btnShop.Dispose();
  95. m_btnShop = null;
  96. m_btnReward.Dispose();
  97. m_btnReward = null;
  98. m_comLuckBoxBtn.Dispose();
  99. m_comLuckBoxBtn = null;
  100. m_txtCount = null;
  101. m_txtHasTime = null;
  102. m_grpActivityTips = null;
  103. m_ImgUp = null;
  104. m_txtTsyTime = null;
  105. m_txtTime = null;
  106. m_grpTime = null;
  107. m_grpTitle = null;
  108. m_btnPreview = null;
  109. m_txtOwned = null;
  110. if(disposeTarget && target != null)
  111. {
  112. target.RemoveFromParent();
  113. target.Dispose();
  114. }
  115. target = null;
  116. }
  117. }
  118. }