UI_MergeGameUI.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.MiniGame
  4. {
  5. public partial class UI_MergeGameUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GLoader m_backBtn;
  10. public GComponent m_rangeTop;
  11. public GComponent m_rangeDown;
  12. public GTextField m_name;
  13. public GTextField m_desc;
  14. public GButton m_MergeTipBtn;
  15. public UI_Button11 m_sellBtn;
  16. public GLoader m_taskBg;
  17. public GTextField m_rewardNum;
  18. public UI_MaterialItem m_rewardOne;
  19. public UI_MaterialItem m_rewardTwo;
  20. public GLoader m_rewardIcon;
  21. public GButton m_rewardGet;
  22. public GButton m_shopBtn;
  23. public UI_NewMaterialShowView m_newMaterial;
  24. public UI_MergeGameItemUI m_guildDouBaoBtn;
  25. public const string URL = "ui://wgkh30qjqbf42v";
  26. public const string PACKAGE_NAME = "MiniGame";
  27. public const string RES_NAME = "MergeGameUI";
  28. private static UI_MergeGameUI _proxy;
  29. public static UI_MergeGameUI Create(GObject gObject = null)
  30. {
  31. var ui = new UI_MergeGameUI();
  32. if(gObject == null)
  33. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  34. else
  35. ui.target = (GComponent)gObject;
  36. ui.Init(ui.target);
  37. return ui;
  38. }
  39. public static UI_MergeGameUI Proxy(GObject gObject = null)
  40. {
  41. if(_proxy == null)
  42. {
  43. _proxy = new UI_MergeGameUI();
  44. }
  45. var ui = _proxy;
  46. if(gObject == null)
  47. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  48. else
  49. ui.target = (GComponent)gObject;
  50. ui.Init(ui.target);
  51. return ui;
  52. }
  53. public static void ProxyEnd()
  54. {
  55. if (_proxy != null)
  56. {
  57. _proxy.Dispose();
  58. }
  59. }
  60. public static void ClearProxy()
  61. {
  62. ProxyEnd();
  63. _proxy = null;
  64. }
  65. private void Init(GComponent comp)
  66. {
  67. m_bg = (GLoader)comp.GetChild("bg");
  68. m_backBtn = (GLoader)comp.GetChild("backBtn");
  69. m_rangeTop = (GComponent)comp.GetChild("rangeTop");
  70. m_rangeDown = (GComponent)comp.GetChild("rangeDown");
  71. m_name = (GTextField)comp.GetChild("name");
  72. m_desc = (GTextField)comp.GetChild("desc");
  73. m_MergeTipBtn = (GButton)comp.GetChild("MergeTipBtn");
  74. m_sellBtn = (UI_Button11)UI_Button11.Create(comp.GetChild("sellBtn"));
  75. m_taskBg = (GLoader)comp.GetChild("taskBg");
  76. m_rewardNum = (GTextField)comp.GetChild("rewardNum");
  77. m_rewardOne = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardOne"));
  78. m_rewardTwo = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardTwo"));
  79. m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
  80. m_rewardGet = (GButton)comp.GetChild("rewardGet");
  81. m_shopBtn = (GButton)comp.GetChild("shopBtn");
  82. m_newMaterial = (UI_NewMaterialShowView)UI_NewMaterialShowView.Create(comp.GetChild("newMaterial"));
  83. m_guildDouBaoBtn = (UI_MergeGameItemUI)UI_MergeGameItemUI.Create(comp.GetChild("guildDouBaoBtn"));
  84. }
  85. public void Dispose(bool disposeTarget = false)
  86. {
  87. m_bg = null;
  88. m_backBtn = null;
  89. m_rangeTop = null;
  90. m_rangeDown = null;
  91. m_name = null;
  92. m_desc = null;
  93. m_MergeTipBtn = null;
  94. m_sellBtn.Dispose();
  95. m_sellBtn = null;
  96. m_taskBg = null;
  97. m_rewardNum = null;
  98. m_rewardOne.Dispose();
  99. m_rewardOne = null;
  100. m_rewardTwo.Dispose();
  101. m_rewardTwo = null;
  102. m_rewardIcon = null;
  103. m_rewardGet = null;
  104. m_shopBtn = null;
  105. m_newMaterial.Dispose();
  106. m_newMaterial = null;
  107. m_guildDouBaoBtn.Dispose();
  108. m_guildDouBaoBtn = null;
  109. if(disposeTarget && target != null)
  110. {
  111. target.RemoveFromParent();
  112. target.Dispose();
  113. }
  114. target = null;
  115. }
  116. }
  117. }