UI_ComItem.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_ComItem
  6. {
  7. public GComponent target;
  8. public Controller m_QualityType;
  9. public Controller m_ViewType;
  10. public Controller m_TouchType;
  11. public Controller m_NewType;
  12. public Controller m_ShowName;
  13. public GImage m_imgSelect;
  14. public GLoader m_loaBg;
  15. public GLoader m_loaIcon;
  16. public GImage m_imgOnceBonus;
  17. public GLoader m_loaRarity;
  18. public GGraph m_holderReware;
  19. public GImage m_imgNum;
  20. public GTextField m_txtCount;
  21. public GButton m_btnMinus;
  22. public GTextField m_txtDecomHasCount;
  23. public GTextField m_txtDecomCount;
  24. public GTextField m_txtName;
  25. public GImage m_imgHas;
  26. public GImage m_imgNotHas;
  27. public GImage m_imgShowTong;
  28. public GGroup m_grpGot;
  29. public const string URL = "ui://eg2y0ldpwet2tae";
  30. public const string PACKAGE_NAME = "CommonGame";
  31. public const string RES_NAME = "ComItem";
  32. private static UI_ComItem _proxy;
  33. public static UI_ComItem Create(GObject gObject = null)
  34. {
  35. var ui = new UI_ComItem();
  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 UI_ComItem Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_ComItem();
  48. }
  49. var ui = _proxy;
  50. if(gObject == null)
  51. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  52. else
  53. ui.target = (GComponent)gObject;
  54. ui.Init(ui.target);
  55. return ui;
  56. }
  57. public static void ProxyEnd()
  58. {
  59. if (_proxy != null)
  60. {
  61. _proxy.Dispose();
  62. }
  63. }
  64. public static void ClearProxy()
  65. {
  66. ProxyEnd();
  67. _proxy = null;
  68. }
  69. private void Init(GComponent comp)
  70. {
  71. m_QualityType = comp.GetController("QualityType");
  72. m_ViewType = comp.GetController("ViewType");
  73. m_TouchType = comp.GetController("TouchType");
  74. m_NewType = comp.GetController("NewType");
  75. m_ShowName = comp.GetController("ShowName");
  76. m_imgSelect = (GImage)comp.GetChild("imgSelect");
  77. m_loaBg = (GLoader)comp.GetChild("loaBg");
  78. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  79. m_imgOnceBonus = (GImage)comp.GetChild("imgOnceBonus");
  80. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  81. m_holderReware = (GGraph)comp.GetChild("holderReware");
  82. m_imgNum = (GImage)comp.GetChild("imgNum");
  83. m_txtCount = (GTextField)comp.GetChild("txtCount");
  84. m_btnMinus = (GButton)comp.GetChild("btnMinus");
  85. m_txtDecomHasCount = (GTextField)comp.GetChild("txtDecomHasCount");
  86. m_txtDecomCount = (GTextField)comp.GetChild("txtDecomCount");
  87. m_txtName = (GTextField)comp.GetChild("txtName");
  88. m_imgHas = (GImage)comp.GetChild("imgHas");
  89. m_imgNotHas = (GImage)comp.GetChild("imgNotHas");
  90. m_imgShowTong = (GImage)comp.GetChild("imgShowTong");
  91. m_grpGot = (GGroup)comp.GetChild("grpGot");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_QualityType = null;
  96. m_ViewType = null;
  97. m_TouchType = null;
  98. m_NewType = null;
  99. m_ShowName = null;
  100. m_imgSelect = null;
  101. m_loaBg = null;
  102. m_loaIcon = null;
  103. m_imgOnceBonus = null;
  104. m_loaRarity = null;
  105. m_holderReware = null;
  106. m_imgNum = null;
  107. m_txtCount = null;
  108. m_btnMinus = null;
  109. m_txtDecomHasCount = null;
  110. m_txtDecomCount = null;
  111. m_txtName = null;
  112. m_imgHas = null;
  113. m_imgNotHas = null;
  114. m_imgShowTong = null;
  115. m_grpGot = null;
  116. if(disposeTarget && target != null)
  117. {
  118. target.RemoveFromParent();
  119. target.Dispose();
  120. }
  121. target = null;
  122. }
  123. }
  124. }