UI_MergeGameUI.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 const string URL = "ui://wgkh30qjqbf42v";
  25. public const string PACKAGE_NAME = "MiniGame";
  26. public const string RES_NAME = "MergeGameUI";
  27. private static UI_MergeGameUI _proxy;
  28. public static UI_MergeGameUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_MergeGameUI();
  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_MergeGameUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_MergeGameUI();
  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_bg = (GLoader)comp.GetChild("bg");
  67. m_backBtn = (GLoader)comp.GetChild("backBtn");
  68. m_rangeTop = (GComponent)comp.GetChild("rangeTop");
  69. m_rangeDown = (GComponent)comp.GetChild("rangeDown");
  70. m_name = (GTextField)comp.GetChild("name");
  71. m_desc = (GTextField)comp.GetChild("desc");
  72. m_MergeTipBtn = (GButton)comp.GetChild("MergeTipBtn");
  73. m_sellBtn = (UI_Button11)UI_Button11.Create(comp.GetChild("sellBtn"));
  74. m_taskBg = (GLoader)comp.GetChild("taskBg");
  75. m_rewardNum = (GTextField)comp.GetChild("rewardNum");
  76. m_rewardOne = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardOne"));
  77. m_rewardTwo = (UI_MaterialItem)UI_MaterialItem.Create(comp.GetChild("rewardTwo"));
  78. m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
  79. m_rewardGet = (GButton)comp.GetChild("rewardGet");
  80. m_shopBtn = (GButton)comp.GetChild("shopBtn");
  81. m_newMaterial = (UI_NewMaterialShowView)UI_NewMaterialShowView.Create(comp.GetChild("newMaterial"));
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_bg = null;
  86. m_backBtn = null;
  87. m_rangeTop = null;
  88. m_rangeDown = null;
  89. m_name = null;
  90. m_desc = null;
  91. m_MergeTipBtn = null;
  92. m_sellBtn.Dispose();
  93. m_sellBtn = null;
  94. m_taskBg = null;
  95. m_rewardNum = null;
  96. m_rewardOne.Dispose();
  97. m_rewardOne = null;
  98. m_rewardTwo.Dispose();
  99. m_rewardTwo = null;
  100. m_rewardIcon = null;
  101. m_rewardGet = null;
  102. m_shopBtn = null;
  103. m_newMaterial.Dispose();
  104. m_newMaterial = null;
  105. if(disposeTarget && target != null)
  106. {
  107. target.RemoveFromParent();
  108. target.Dispose();
  109. }
  110. target = null;
  111. }
  112. }
  113. }