UI_ComItem.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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_ItemType;
  10. public Controller m_ViewType;
  11. public Controller m_TouchType;
  12. public Controller m_NewType;
  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 GTextField m_txtCount;
  20. public GTextField m_txtName;
  21. public GButton m_btnMinus;
  22. public GTextField m_txtDecomHasCount;
  23. public GTextField m_txtDecomCount;
  24. public const string URL = "ui://eg2y0ldpwet2tae";
  25. public const string PACKAGE_NAME = "CommonGame";
  26. public const string RES_NAME = "ComItem";
  27. private static UI_ComItem _proxy;
  28. public static UI_ComItem Create(GObject gObject = null)
  29. {
  30. var ui = new UI_ComItem();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_ComItem Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_ComItem();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_QualityType = comp.GetController("QualityType");
  67. m_ItemType = comp.GetController("ItemType");
  68. m_ViewType = comp.GetController("ViewType");
  69. m_TouchType = comp.GetController("TouchType");
  70. m_NewType = comp.GetController("NewType");
  71. m_imgSelect = (GImage)comp.GetChild("imgSelect");
  72. m_loaBg = (GLoader)comp.GetChild("loaBg");
  73. m_loaIcon = (GLoader)comp.GetChild("loaIcon");
  74. m_imgOnceBonus = (GImage)comp.GetChild("imgOnceBonus");
  75. m_loaRarity = (GLoader)comp.GetChild("loaRarity");
  76. m_holderReware = (GGraph)comp.GetChild("holderReware");
  77. m_txtCount = (GTextField)comp.GetChild("txtCount");
  78. m_txtName = (GTextField)comp.GetChild("txtName");
  79. m_btnMinus = (GButton)comp.GetChild("btnMinus");
  80. m_txtDecomHasCount = (GTextField)comp.GetChild("txtDecomHasCount");
  81. m_txtDecomCount = (GTextField)comp.GetChild("txtDecomCount");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_QualityType = null;
  86. m_ItemType = null;
  87. m_ViewType = null;
  88. m_TouchType = null;
  89. m_NewType = null;
  90. m_imgSelect = null;
  91. m_loaBg = null;
  92. m_loaIcon = null;
  93. m_imgOnceBonus = null;
  94. m_loaRarity = null;
  95. m_holderReware = null;
  96. m_txtCount = null;
  97. m_txtName = null;
  98. m_btnMinus = null;
  99. m_txtDecomHasCount = null;
  100. m_txtDecomCount = null;
  101. if(disposeTarget && target != null)
  102. {
  103. target.RemoveFromParent();
  104. target.Dispose();
  105. }
  106. target = null;
  107. }
  108. }
  109. }