UI_ComBox.cs 3.9 KB

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