UI_BagExchangeUI.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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_BagExchangeUI
  6. {
  7. public GComponent target;
  8. public GComponent m_comBg;
  9. public GTextField m_txtName;
  10. public GTextField m_txtOwned;
  11. public GLoader m_loaRarity;
  12. public GLoader m_loaIcon;
  13. public GTextField m_txtDesc;
  14. public UI_Button2 m_btnMinus;
  15. public UI_Button4 m_btnAdd;
  16. public UI_Button3 m_btnMax;
  17. public GTextField m_txtCostCount;
  18. public GButton m_btnCancle;
  19. public GButton m_btnConfirm;
  20. public GTextField m_txtTips;
  21. public GComponent m_comCost;
  22. public const string URL = "ui://2bsz6nelsi5zti8";
  23. public const string PACKAGE_NAME = "Bag";
  24. public const string RES_NAME = "BagExchangeUI";
  25. private static UI_BagExchangeUI _proxy;
  26. public static UI_BagExchangeUI Create(GObject gObject = null)
  27. {
  28. var ui = new UI_BagExchangeUI();
  29. if(gObject == null)
  30. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  31. else
  32. ui.target = (GComponent)gObject;
  33. ui.Init(ui.target);
  34. return ui;
  35. }
  36. public static UI_BagExchangeUI Proxy(GObject gObject = null)
  37. {
  38. if(_proxy == null)
  39. {
  40. _proxy = new UI_BagExchangeUI();
  41. }
  42. var ui = _proxy;
  43. if(gObject == null)
  44. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  45. else
  46. ui.target = (GComponent)gObject;
  47. ui.Init(ui.target);
  48. return ui;
  49. }
  50. public static void ProxyEnd()
  51. {
  52. if (_proxy != null)
  53. {
  54. _proxy.Dispose();
  55. }
  56. }
  57. public static void ClearProxy()
  58. {
  59. ProxyEnd();
  60. _proxy = null;
  61. }
  62. private void Init(GComponent comp)
  63. {
  64. m_comBg = (GComponent)comp.GetChild("comBg");
  65. m_txtName = (GTextField)comp.GetChild("txtName");
  66. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  67. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  68. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  69. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  70. m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
  71. m_btnAdd = (UI_Button4)UI_Button4.Create(comp.GetChild("btnAdd"));
  72. m_btnMax = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMax"));
  73. m_txtCostCount = (GTextField)comp.GetChild("txtCostCount");
  74. m_btnCancle = (GButton)comp.GetChild("btnCancle");
  75. m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
  76. m_txtTips = (GTextField)comp.GetChild("txtTips");
  77. m_comCost = (GComponent)comp.GetChild("comCost");
  78. }
  79. public void Dispose(bool disposeTarget = false)
  80. {
  81. m_comBg = null;
  82. m_txtName = null;
  83. m_txtOwned = null;
  84. m_loaRarity = null;
  85. m_loaIcon = null;
  86. m_txtDesc = null;
  87. m_btnMinus.Dispose();
  88. m_btnMinus = null;
  89. m_btnAdd.Dispose();
  90. m_btnAdd = null;
  91. m_btnMax.Dispose();
  92. m_btnMax = null;
  93. m_txtCostCount = null;
  94. m_btnCancle = null;
  95. m_btnConfirm = null;
  96. m_txtTips = null;
  97. m_comCost = null;
  98. if(disposeTarget && target != null)
  99. {
  100. target.RemoveFromParent();
  101. target.Dispose();
  102. }
  103. target = null;
  104. }
  105. }
  106. }