UI_ComBox_2.cs 3.5 KB

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