UI_ComCurSupplyItem.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.CommonGame
  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 GList m_list;
  16. public GComponent m_btnIcoWeekPromptTag;
  17. public const string URL = "ui://eg2y0ldpqqhz11";
  18. public const string PACKAGE_NAME = "CommonGame";
  19. public const string RES_NAME = "ComCurSupplyItem";
  20. private static UI_ComCurSupplyItem _proxy;
  21. public static UI_ComCurSupplyItem Create(GObject gObject = null)
  22. {
  23. var ui = new UI_ComCurSupplyItem();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_ComCurSupplyItem Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_ComCurSupplyItem();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_txtLrc = (GTextField)comp.GetChild("txtLrc");
  60. m_txtUrc = (GTextField)comp.GetChild("txtUrc");
  61. m_btnBuy = (UI_BtnBuy)UI_BtnBuy.Create(comp.GetChild("btnBuy"));
  62. m_btnCurReceive = (UI_BtnReceive)UI_BtnReceive.Create(comp.GetChild("btnCurReceive"));
  63. m_comLeftGiftBox = (UI_ComLeftGiftBox)UI_ComLeftGiftBox.Create(comp.GetChild("comLeftGiftBox"));
  64. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  65. m_txtWeekPrompt = (GTextField)comp.GetChild("txtWeekPrompt");
  66. m_list = (GList)comp.GetChild("list");
  67. m_btnIcoWeekPromptTag = (GComponent)comp.GetChild("btnIcoWeekPromptTag");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_txtLrc = null;
  72. m_txtUrc = null;
  73. m_btnBuy.Dispose();
  74. m_btnBuy = null;
  75. m_btnCurReceive.Dispose();
  76. m_btnCurReceive = null;
  77. m_comLeftGiftBox.Dispose();
  78. m_comLeftGiftBox = null;
  79. m_txtTitle = null;
  80. m_txtWeekPrompt = null;
  81. m_list = null;
  82. m_btnIcoWeekPromptTag = null;
  83. if(disposeTarget && target != null)
  84. {
  85. target.RemoveFromParent();
  86. target.Dispose();
  87. }
  88. target = null;
  89. }
  90. }
  91. }