UI_ComSpecialOfferGiftBoxItem.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.EnduringGiftBox
  4. {
  5. public partial class UI_ComSpecialOfferGiftBoxItem
  6. {
  7. public GComponent target;
  8. public GImage m_nczlb;
  9. public GTextField m_txtBoxItemName;
  10. public UI_BtnBuy m_btnBuy;
  11. public GTextField m_txtUrc;
  12. public GTextField m_txtGetJf;
  13. public UI_ComDiscount m_comDiscount;
  14. public GList m_list;
  15. public const string URL = "ui://bdi1qe15yjmk37";
  16. public const string PACKAGE_NAME = "EnduringGiftBox";
  17. public const string RES_NAME = "ComSpecialOfferGiftBoxItem";
  18. private static UI_ComSpecialOfferGiftBoxItem _proxy;
  19. public static UI_ComSpecialOfferGiftBoxItem Create(GObject gObject = null)
  20. {
  21. var ui = new UI_ComSpecialOfferGiftBoxItem();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_ComSpecialOfferGiftBoxItem Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_ComSpecialOfferGiftBoxItem();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_nczlb = (GImage)comp.GetChild("nczlb");
  58. m_txtBoxItemName = (GTextField)comp.GetChild("txtBoxItemName");
  59. m_btnBuy = (UI_BtnBuy)UI_BtnBuy.Create(comp.GetChild("btnBuy"));
  60. m_txtUrc = (GTextField)comp.GetChild("txtUrc");
  61. m_txtGetJf = (GTextField)comp.GetChild("txtGetJf");
  62. m_comDiscount = (UI_ComDiscount)UI_ComDiscount.Create(comp.GetChild("comDiscount"));
  63. m_list = (GList)comp.GetChild("list");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_nczlb = null;
  68. m_txtBoxItemName = null;
  69. m_btnBuy.Dispose();
  70. m_btnBuy = null;
  71. m_txtUrc = null;
  72. m_txtGetJf = null;
  73. m_comDiscount.Dispose();
  74. m_comDiscount = null;
  75. m_list = null;
  76. if(disposeTarget && target != null)
  77. {
  78. target.RemoveFromParent();
  79. target.Dispose();
  80. }
  81. target = null;
  82. }
  83. }
  84. }