UI_GiftBoxSelectorUI.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Bag
  4. {
  5. public partial class UI_GiftBoxSelectorUI
  6. {
  7. public GComponent target;
  8. public GButton m_btnCancel;
  9. public GTextField m_txtItemDes;
  10. public GTextField m_txtName;
  11. public GTextField m_txtTotalNum;
  12. public GLoader m_loaIcon;
  13. public GList m_list;
  14. public GTextField m_txtSelRewardStr;
  15. public const string URL = "ui://2bsz6nelu85qtlv";
  16. public const string PACKAGE_NAME = "Bag";
  17. public const string RES_NAME = "GiftBoxSelectorUI";
  18. private static UI_GiftBoxSelectorUI _proxy;
  19. public static UI_GiftBoxSelectorUI Create(GObject gObject = null)
  20. {
  21. var ui = new UI_GiftBoxSelectorUI();
  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_GiftBoxSelectorUI Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_GiftBoxSelectorUI();
  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_btnCancel = (GButton)comp.GetChild("btnCancel");
  58. m_txtItemDes = (GTextField)comp.GetChild("txtItemDes");
  59. m_txtName = (GTextField)comp.GetChild("txtName");
  60. m_txtTotalNum = (GTextField)comp.GetChild("txtTotalNum");
  61. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  62. m_list = (GList)comp.GetChild("list");
  63. m_txtSelRewardStr = (GTextField)comp.GetChild("txtSelRewardStr");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_btnCancel = null;
  68. m_txtItemDes = null;
  69. m_txtName = null;
  70. m_txtTotalNum = null;
  71. m_loaIcon = null;
  72. m_list = null;
  73. m_txtSelRewardStr = null;
  74. if(disposeTarget && target != null)
  75. {
  76. target.RemoveFromParent();
  77. target.Dispose();
  78. }
  79. target = null;
  80. }
  81. }
  82. }