UI_ItemExchangeUI.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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_ItemExchangeUI
  6. {
  7. public GComponent target;
  8. public GComponent m_comBg;
  9. public GTextField m_txtOwned;
  10. public GTextField m_txtDesc;
  11. public GLoader m_loaRarity;
  12. public GLoader m_loaIcon;
  13. public GTextField m_txtExchangeCount;
  14. public GTextField m_txtGong;
  15. public GTextField m_txtShang;
  16. public GTextField m_txtJue;
  17. public GTextField m_txtZhi;
  18. public GGroup m_grpScore;
  19. public GList m_listTag;
  20. public GList m_listItem;
  21. public GTextField m_txtShow;
  22. public UI_Button2 m_btnMinus;
  23. public GButton m_btnAdd;
  24. public UI_Button3 m_btnMax;
  25. public GTextField m_txtCostCount;
  26. public GTextField m_txtTips;
  27. public GComponent m_comCost;
  28. public GTextField m_txtRmbCost;
  29. public GButton m_btnCancle;
  30. public GButton m_btnConfirm;
  31. public GGroup m_bgpBtn;
  32. public GGroup m_grpBtn;
  33. public const string URL = "ui://2bsz6nelm9eitml";
  34. public const string PACKAGE_NAME = "Bag";
  35. public const string RES_NAME = "ItemExchangeUI";
  36. private static UI_ItemExchangeUI _proxy;
  37. public static UI_ItemExchangeUI Create(GObject gObject = null)
  38. {
  39. var ui = new UI_ItemExchangeUI();
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static UI_ItemExchangeUI Proxy(GObject gObject = null)
  48. {
  49. if(_proxy == null)
  50. {
  51. _proxy = new UI_ItemExchangeUI();
  52. }
  53. var ui = _proxy;
  54. if(gObject == null)
  55. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  56. else
  57. ui.target = (GComponent)gObject;
  58. ui.Init(ui.target);
  59. return ui;
  60. }
  61. public static void ProxyEnd()
  62. {
  63. if (_proxy != null)
  64. {
  65. _proxy.Dispose();
  66. }
  67. }
  68. public static void ClearProxy()
  69. {
  70. ProxyEnd();
  71. _proxy = null;
  72. }
  73. private void Init(GComponent comp)
  74. {
  75. m_comBg = (GComponent)comp.GetChild("comBg");
  76. m_txtOwned = (GTextField)comp.GetChild("txtOwned");
  77. m_txtDesc = (GTextField)comp.GetChild("txtDesc");
  78. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  79. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  80. m_txtExchangeCount = (GTextField)comp.GetChild("txtExchangeCount");
  81. m_txtGong = (GTextField)comp.GetChild("txtGong");
  82. m_txtShang = (GTextField)comp.GetChild("txtShang");
  83. m_txtJue = (GTextField)comp.GetChild("txtJue");
  84. m_txtZhi = (GTextField)comp.GetChild("txtZhi");
  85. m_grpScore = (GGroup)comp.GetChild("grpScore");
  86. m_listTag = (GList)comp.GetChild("listTag");
  87. m_listItem = (GList)comp.GetChild("listItem");
  88. m_txtShow = (GTextField)comp.GetChild("txtShow");
  89. m_btnMinus = (UI_Button2)UI_Button2.Create(comp.GetChild("btnMinus"));
  90. m_btnAdd = (GButton)comp.GetChild("btnAdd");
  91. m_btnMax = (UI_Button3)UI_Button3.Create(comp.GetChild("btnMax"));
  92. m_txtCostCount = (GTextField)comp.GetChild("txtCostCount");
  93. m_txtTips = (GTextField)comp.GetChild("txtTips");
  94. m_comCost = (GComponent)comp.GetChild("comCost");
  95. m_txtRmbCost = (GTextField)comp.GetChild("txtRmbCost");
  96. m_btnCancle = (GButton)comp.GetChild("btnCancle");
  97. m_btnConfirm = (GButton)comp.GetChild("btnConfirm");
  98. m_bgpBtn = (GGroup)comp.GetChild("bgpBtn");
  99. m_grpBtn = (GGroup)comp.GetChild("grpBtn");
  100. }
  101. public void Dispose(bool disposeTarget = false)
  102. {
  103. m_comBg = null;
  104. m_txtOwned = null;
  105. m_txtDesc = null;
  106. m_loaRarity = null;
  107. m_loaIcon = null;
  108. m_txtExchangeCount = null;
  109. m_txtGong = null;
  110. m_txtShang = null;
  111. m_txtJue = null;
  112. m_txtZhi = null;
  113. m_grpScore = null;
  114. m_listTag = null;
  115. m_listItem = null;
  116. m_txtShow = null;
  117. m_btnMinus.Dispose();
  118. m_btnMinus = null;
  119. m_btnAdd = null;
  120. m_btnMax.Dispose();
  121. m_btnMax = null;
  122. m_txtCostCount = null;
  123. m_txtTips = null;
  124. m_comCost = null;
  125. m_txtRmbCost = null;
  126. m_btnCancle = null;
  127. m_btnConfirm = null;
  128. m_bgpBtn = null;
  129. m_grpBtn = null;
  130. if(disposeTarget && target != null)
  131. {
  132. target.RemoveFromParent();
  133. target.Dispose();
  134. }
  135. target = null;
  136. }
  137. }
  138. }