UI_ComCurSupplyItem.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_ComCurSupplyItem
  6. {
  7. public GComponent target;
  8. public GTextField m_txtLrc;
  9. public GTextField m_txtUrc;
  10. public UI_BtnBuy m_btnBuy;
  11. public UI_BtnReceive m_btnCurReceive;
  12. public UI_ComLeftGiftBox m_comLeftGiftBox;
  13. public GTextField m_txtTitle;
  14. public GTextField m_txtWeekPrompt;
  15. public GImage m_icoWeekPromptTag;
  16. public const string URL = "ui://bdi1qe15qqhz11";
  17. public const string PACKAGE_NAME = "EnduringGiftBox";
  18. public const string RES_NAME = "ComCurSupplyItem";
  19. private static UI_ComCurSupplyItem _proxy;
  20. public static UI_ComCurSupplyItem Create(GObject gObject = null)
  21. {
  22. var ui = new UI_ComCurSupplyItem();
  23. if(gObject == null)
  24. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GComponent)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_ComCurSupplyItem Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_ComCurSupplyItem();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static void ProxyEnd()
  45. {
  46. if (_proxy != null)
  47. {
  48. _proxy.Dispose();
  49. }
  50. }
  51. public static void ClearProxy()
  52. {
  53. ProxyEnd();
  54. _proxy = null;
  55. }
  56. private void Init(GComponent comp)
  57. {
  58. m_txtLrc = (GTextField)comp.GetChild("txtLrc");
  59. m_txtUrc = (GTextField)comp.GetChild("txtUrc");
  60. m_btnBuy = (UI_BtnBuy)UI_BtnBuy.Create(comp.GetChild("btnBuy"));
  61. m_btnCurReceive = (UI_BtnReceive)UI_BtnReceive.Create(comp.GetChild("btnCurReceive"));
  62. m_comLeftGiftBox = (UI_ComLeftGiftBox)UI_ComLeftGiftBox.Create(comp.GetChild("comLeftGiftBox"));
  63. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  64. m_txtWeekPrompt = (GTextField)comp.GetChild("txtWeekPrompt");
  65. m_icoWeekPromptTag = (GImage)comp.GetChild("icoWeekPromptTag");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_txtLrc = null;
  70. m_txtUrc = null;
  71. m_btnBuy.Dispose();
  72. m_btnBuy = null;
  73. m_btnCurReceive.Dispose();
  74. m_btnCurReceive = null;
  75. m_comLeftGiftBox.Dispose();
  76. m_comLeftGiftBox = null;
  77. m_txtTitle = null;
  78. m_txtWeekPrompt = null;
  79. m_icoWeekPromptTag = null;
  80. if(disposeTarget && target != null)
  81. {
  82. target.RemoveFromParent();
  83. target.Dispose();
  84. }
  85. target = null;
  86. }
  87. }
  88. }