UI_ComBox.cs 3.6 KB

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