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