UI_ComBox.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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_ComBox
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public UI_ComModel m_comModel;
  10. public GLoader m_btnOpenServer;
  11. public GTextField m_txtOpenServerOwned;
  12. public UI_Button3 m_btnPreview;
  13. public GTextField m_txtOwned;
  14. public GLoader m_imgActLuckyBox;
  15. public UI_ComCost2 m_comCostOne;
  16. public UI_ComCost2 m_comCostTen;
  17. public GButton m_btnBuyOne;
  18. public GButton m_btnBuyTen;
  19. public GTextField m_txtRemainTimes;
  20. public GGraph m_btnBuyTen_eff;
  21. public GGraph m_Special_eff;
  22. public GImage m_imgSpecial;
  23. public GGroup m_grpSpecial;
  24. public GTextField m_txtCount;
  25. public GTextField m_txtOpenServerCount;
  26. public GTextField m_txtSYJHCount;
  27. public const string URL = "ui://drx9d1usnjmn2p";
  28. public const string PACKAGE_NAME = "LuckyBox";
  29. public const string RES_NAME = "ComBox";
  30. private static UI_ComBox _proxy;
  31. public static UI_ComBox Create(GObject gObject = null)
  32. {
  33. var ui = new UI_ComBox();
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static UI_ComBox Proxy(GObject gObject = null)
  42. {
  43. if(_proxy == null)
  44. {
  45. _proxy = new UI_ComBox();
  46. }
  47. var ui = _proxy;
  48. if(gObject == null)
  49. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  50. else
  51. ui.target = (GComponent)gObject;
  52. ui.Init(ui.target);
  53. return ui;
  54. }
  55. public static void ProxyEnd()
  56. {
  57. if (_proxy != null)
  58. {
  59. _proxy.Dispose();
  60. }
  61. }
  62. public static void ClearProxy()
  63. {
  64. ProxyEnd();
  65. _proxy = null;
  66. }
  67. private void Init(GComponent comp)
  68. {
  69. m_c1 = comp.GetController("c1");
  70. m_comModel = (UI_ComModel)UI_ComModel.Create(comp.GetChild("comModel"));
  71. m_btnOpenServer = (GLoader)comp.GetChild("btnOpenServer");
  72. m_txtOpenServerOwned = (GTextField)comp.GetChild("txtOpenServerOwned");
  73. m_btnPreview = (UI_Button3)UI_Button3.Create(comp.GetChild("btnPreview"));
  74. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  75. m_imgActLuckyBox = (GLoader)comp.GetChild("imgActLuckyBox");
  76. m_comCostOne = (UI_ComCost2)UI_ComCost2.Create(comp.GetChild("comCostOne"));
  77. m_comCostTen = (UI_ComCost2)UI_ComCost2.Create(comp.GetChild("comCostTen"));
  78. m_btnBuyOne = (GButton)comp.GetChild("btnBuyOne");
  79. m_btnBuyTen = (GButton)comp.GetChild("btnBuyTen");
  80. m_txtRemainTimes = (GTextField)comp.GetChild("txtRemainTimes");
  81. m_btnBuyTen_eff = (GGraph)comp.GetChild("btnBuyTen_eff");
  82. m_Special_eff = (GGraph)comp.GetChild("Special_eff");
  83. m_imgSpecial = (GImage)comp.GetChild("imgSpecial");
  84. m_grpSpecial = (GGroup)comp.GetChild("grpSpecial");
  85. m_txtCount = (GTextField)comp.GetChild("txtCount");
  86. m_txtOpenServerCount = (GTextField)comp.GetChild("txtOpenServerCount");
  87. m_txtSYJHCount = (GTextField)comp.GetChild("txtSYJHCount");
  88. }
  89. public void Dispose(bool disposeTarget = false)
  90. {
  91. m_c1 = null;
  92. m_comModel.Dispose();
  93. m_comModel = null;
  94. m_btnOpenServer = null;
  95. m_txtOpenServerOwned = null;
  96. m_btnPreview.Dispose();
  97. m_btnPreview = null;
  98. m_txtOwned = null;
  99. m_imgActLuckyBox = null;
  100. m_comCostOne.Dispose();
  101. m_comCostOne = null;
  102. m_comCostTen.Dispose();
  103. m_comCostTen = null;
  104. m_btnBuyOne = null;
  105. m_btnBuyTen = null;
  106. m_txtRemainTimes = null;
  107. m_btnBuyTen_eff = null;
  108. m_Special_eff = null;
  109. m_imgSpecial = null;
  110. m_grpSpecial = null;
  111. m_txtCount = null;
  112. m_txtOpenServerCount = null;
  113. m_txtSYJHCount = null;
  114. if(disposeTarget && target != null)
  115. {
  116. target.RemoveFromParent();
  117. target.Dispose();
  118. }
  119. target = null;
  120. }
  121. }
  122. }