UI_MergeGameUI.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 UI_ButtonInValueBar m_btnProp;
  26. public const string URL = "ui://wgkh30qjqbf42v";
  27. public const string PACKAGE_NAME = "MiniGame";
  28. public const string RES_NAME = "MergeGameUI";
  29. private static UI_MergeGameUI _proxy;
  30. public static UI_MergeGameUI Create(GObject gObject = null)
  31. {
  32. var ui = new UI_MergeGameUI();
  33. if(gObject == null)
  34. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  35. else
  36. ui.target = (GComponent)gObject;
  37. ui.Init(ui.target);
  38. return ui;
  39. }
  40. public static UI_MergeGameUI Proxy(GObject gObject = null)
  41. {
  42. if(_proxy == null)
  43. {
  44. _proxy = new UI_MergeGameUI();
  45. }
  46. var ui = _proxy;
  47. if(gObject == null)
  48. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  49. else
  50. ui.target = (GComponent)gObject;
  51. ui.Init(ui.target);
  52. return ui;
  53. }
  54. public static void ProxyEnd()
  55. {
  56. if (_proxy != null)
  57. {
  58. _proxy.Dispose();
  59. }
  60. }
  61. public static void ClearProxy()
  62. {
  63. ProxyEnd();
  64. _proxy = null;
  65. }
  66. private void Init(GComponent comp)
  67. {
  68. m_bg = (GLoader)comp.GetChild("bg");
  69. m_backBtn = (GLoader)comp.GetChild("backBtn");
  70. m_rangeTop = (GComponent)comp.GetChild("rangeTop");
  71. m_rangeDown = (GComponent)comp.GetChild("rangeDown");
  72. m_name = (GTextField)comp.GetChild("name");
  73. m_desc = (GTextField)comp.GetChild("desc");
  74. m_MergeTipBtn = (GButton)comp.GetChild("MergeTipBtn");
  75. m_sellBtn = (UI_Button11)UI_Button11.Create(comp.GetChild("sellBtn"));
  76. m_taskBg = (GLoader)comp.GetChild("taskBg");
  77. m_rewardNum = (GTextField)comp.GetChild("rewardNum");
  78. m_rewardOne = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardOne"));
  79. m_rewardTwo = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardTwo"));
  80. m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
  81. m_rewardGet = (GButton)comp.GetChild("rewardGet");
  82. m_shopBtn = (GButton)comp.GetChild("shopBtn");
  83. m_newMaterial = (UI_NewMaterialShowView)UI_NewMaterialShowView.Create(comp.GetChild("newMaterial"));
  84. m_guildDouBaoBtn = (UI_MergeGameItemUI)UI_MergeGameItemUI.Create(comp.GetChild("guildDouBaoBtn"));
  85. m_btnProp = (UI_ButtonInValueBar)UI_ButtonInValueBar.Create(comp.GetChild("btnProp"));
  86. }
  87. public void Dispose(bool disposeTarget = false)
  88. {
  89. m_bg = null;
  90. m_backBtn = null;
  91. m_rangeTop = null;
  92. m_rangeDown = null;
  93. m_name = null;
  94. m_desc = null;
  95. m_MergeTipBtn = null;
  96. m_sellBtn.Dispose();
  97. m_sellBtn = null;
  98. m_taskBg = null;
  99. m_rewardNum = null;
  100. m_rewardOne.Dispose();
  101. m_rewardOne = null;
  102. m_rewardTwo.Dispose();
  103. m_rewardTwo = null;
  104. m_rewardIcon = null;
  105. m_rewardGet = null;
  106. m_shopBtn = null;
  107. m_newMaterial.Dispose();
  108. m_newMaterial = null;
  109. m_guildDouBaoBtn.Dispose();
  110. m_guildDouBaoBtn = null;
  111. m_btnProp.Dispose();
  112. m_btnProp = null;
  113. if(disposeTarget && target != null)
  114. {
  115. target.RemoveFromParent();
  116. target.Dispose();
  117. }
  118. target = null;
  119. }
  120. }
  121. }