UI_MergeGameUI.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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_taskEnd;
  18. public UI_MaterialItem m_rewardOne;
  19. public GTextField m_rewardNum;
  20. public UI_MaterialItem m_rewardTwo;
  21. public GLoader m_rewardIcon;
  22. public GButton m_rewardGet;
  23. public GGroup m_taskShow;
  24. public GButton m_shopBtn;
  25. public UI_NewMaterialShowView m_newMaterial;
  26. public UI_MergeGameItemUI m_guildDouBaoBtn;
  27. public UI_ButtonInValueBar m_btnProp;
  28. public GComponent m_valueBar;
  29. public const string URL = "ui://wgkh30qjqbf42v";
  30. public const string PACKAGE_NAME = "MiniGame";
  31. public const string RES_NAME = "MergeGameUI";
  32. private static UI_MergeGameUI _proxy;
  33. public static UI_MergeGameUI Create(GObject gObject = null)
  34. {
  35. var ui = new UI_MergeGameUI();
  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_MergeGameUI Proxy(GObject gObject = null)
  44. {
  45. if(_proxy == null)
  46. {
  47. _proxy = new UI_MergeGameUI();
  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_bg = (GLoader)comp.GetChild("bg");
  72. m_backBtn = (GLoader)comp.GetChild("backBtn");
  73. m_rangeTop = (GComponent)comp.GetChild("rangeTop");
  74. m_rangeDown = (GComponent)comp.GetChild("rangeDown");
  75. m_name = (GTextField)comp.GetChild("name");
  76. m_desc = (GTextField)comp.GetChild("desc");
  77. m_MergeTipBtn = (GButton)comp.GetChild("MergeTipBtn");
  78. m_sellBtn = (UI_Button11)UI_Button11.Create(comp.GetChild("sellBtn"));
  79. m_taskBg = (GLoader)comp.GetChild("taskBg");
  80. m_taskEnd = (GTextField)comp.GetChild("taskEnd");
  81. m_rewardOne = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardOne"));
  82. m_rewardNum = (GTextField)comp.GetChild("rewardNum");
  83. m_rewardTwo = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardTwo"));
  84. m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
  85. m_rewardGet = (GButton)comp.GetChild("rewardGet");
  86. m_taskShow = (GGroup)comp.GetChild("taskShow");
  87. m_shopBtn = (GButton)comp.GetChild("shopBtn");
  88. m_newMaterial = (UI_NewMaterialShowView)UI_NewMaterialShowView.Create(comp.GetChild("newMaterial"));
  89. m_guildDouBaoBtn = (UI_MergeGameItemUI)UI_MergeGameItemUI.Create(comp.GetChild("guildDouBaoBtn"));
  90. m_btnProp = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnProp"));
  91. m_valueBar = (GComponent)comp.GetChild("valueBar");
  92. }
  93. public void Dispose(bool disposeTarget = false)
  94. {
  95. m_bg = null;
  96. m_backBtn = null;
  97. m_rangeTop = null;
  98. m_rangeDown = null;
  99. m_name = null;
  100. m_desc = null;
  101. m_MergeTipBtn = null;
  102. m_sellBtn.Dispose();
  103. m_sellBtn = null;
  104. m_taskBg = null;
  105. m_taskEnd = null;
  106. m_rewardOne.Dispose();
  107. m_rewardOne = null;
  108. m_rewardNum = null;
  109. m_rewardTwo.Dispose();
  110. m_rewardTwo = null;
  111. m_rewardIcon = null;
  112. m_rewardGet = null;
  113. m_taskShow = null;
  114. m_shopBtn = null;
  115. m_newMaterial.Dispose();
  116. m_newMaterial = null;
  117. m_guildDouBaoBtn.Dispose();
  118. m_guildDouBaoBtn = null;
  119. m_btnProp.Dispose();
  120. m_btnProp = null;
  121. m_valueBar = null;
  122. if(disposeTarget && target != null)
  123. {
  124. target.RemoveFromParent();
  125. target.Dispose();
  126. }
  127. target = null;
  128. }
  129. }
  130. }