UI_ComBox1.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 GLoader m_loaTitle;
  11. public GTextField m_txtTime;
  12. public GGroup m_grpTime;
  13. public GTextField m_txtTsyTime;
  14. public GGroup m_grpTitle;
  15. public GButton m_btnGiftBag;
  16. public UI_ComBagTime m_comBagTime;
  17. public GButton m_btnShop;
  18. public GButton m_btnReward;
  19. public GButton m_btnPreview;
  20. public GTextField m_txtOwned;
  21. public UI_comLuckBoxBtn m_comLuckBoxBtn;
  22. public GTextField m_txtCount;
  23. public const string URL = "ui://drx9d1usduuftcr";
  24. public const string PACKAGE_NAME = "LuckyBox";
  25. public const string RES_NAME = "ComBox1";
  26. private static UI_ComBox1 _proxy;
  27. public static UI_ComBox1 Create(GObject gObject = null)
  28. {
  29. var ui = new UI_ComBox1();
  30. if(gObject == null)
  31. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  32. else
  33. ui.target = (GComponent)gObject;
  34. ui.Init(ui.target);
  35. return ui;
  36. }
  37. public static UI_ComBox1 Proxy(GObject gObject = null)
  38. {
  39. if(_proxy == null)
  40. {
  41. _proxy = new UI_ComBox1();
  42. }
  43. var ui = _proxy;
  44. if(gObject == null)
  45. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  46. else
  47. ui.target = (GComponent)gObject;
  48. ui.Init(ui.target);
  49. return ui;
  50. }
  51. public static void ProxyEnd()
  52. {
  53. if (_proxy != null)
  54. {
  55. _proxy.Dispose();
  56. }
  57. }
  58. public static void ClearProxy()
  59. {
  60. ProxyEnd();
  61. _proxy = null;
  62. }
  63. private void Init(GComponent comp)
  64. {
  65. m_showActivityType = comp.GetController("showActivityType");
  66. m_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  67. m_loaTitle = (GLoader)comp.GetChild("loaTitle");
  68. m_txtTime = (GTextField)comp.GetChild("txtTime");
  69. m_grpTime = (GGroup)comp.GetChild("grpTime");
  70. m_txtTsyTime = (GTextField)comp.GetChild("txtTsyTime");
  71. m_grpTitle = (GGroup)comp.GetChild("grpTitle");
  72. m_btnGiftBag = (GButton)comp.GetChild("btnGiftBag");
  73. m_comBagTime = (UI_ComBagTime)UI_ComBagTime.Create(comp.GetChild("comBagTime"));
  74. m_btnShop = (GButton)comp.GetChild("btnShop");
  75. m_btnReward = (GButton)comp.GetChild("btnReward");
  76. m_btnPreview = (GButton)comp.GetChild("btnPreview");
  77. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  78. m_comLuckBoxBtn = (UI_comLuckBoxBtn)UI_comLuckBoxBtn.Create(comp.GetChild("comLuckBoxBtn"));
  79. m_txtCount = (GTextField)comp.GetChild("txtCount");
  80. }
  81. public void Dispose(bool disposeTarget = false)
  82. {
  83. m_showActivityType = null;
  84. m_comModel.Dispose();
  85. m_comModel = null;
  86. m_loaTitle = null;
  87. m_txtTime = null;
  88. m_grpTime = null;
  89. m_txtTsyTime = null;
  90. m_grpTitle = null;
  91. m_btnGiftBag = null;
  92. m_comBagTime.Dispose();
  93. m_comBagTime = null;
  94. m_btnShop = null;
  95. m_btnReward = null;
  96. m_btnPreview = null;
  97. m_txtOwned = null;
  98. m_comLuckBoxBtn.Dispose();
  99. m_comLuckBoxBtn = null;
  100. m_txtCount = null;
  101. if(disposeTarget && target != null)
  102. {
  103. target.RemoveFromParent();
  104. target.Dispose();
  105. }
  106. target = null;
  107. }
  108. }
  109. }