UI_BattlePassRewardUI.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Task
  4. {
  5. public partial class UI_BattlePassRewardUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GTextField m_LeftTime;
  10. public GButton m_tip;
  11. public UI_ExpProcess m_LevelProcess;
  12. public GButton m_btnBuyLevel;
  13. public GButton m_btnOpen;
  14. public GList m_RewardList;
  15. public GButton m_btnGetAll;
  16. public UI_BattlePassReward m_SpecialReward;
  17. public const string URL = "ui://5mpsibzznd173r";
  18. public const string PACKAGE_NAME = "Task";
  19. public const string RES_NAME = "BattlePassRewardUI";
  20. private static UI_BattlePassRewardUI _proxy;
  21. public static UI_BattlePassRewardUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_BattlePassRewardUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_BattlePassRewardUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_BattlePassRewardUI();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_c1 = comp.GetController("c1");
  60. m_LeftTime = (GTextField)comp.GetChild("LeftTime");
  61. m_tip = (GButton)comp.GetChild("tip");
  62. m_LevelProcess = (UI_ExpProcess)UI_ExpProcess.Create(comp.GetChild("LevelProcess"));
  63. m_btnBuyLevel = (GButton)comp.GetChild("btnBuyLevel");
  64. m_btnOpen = (GButton)comp.GetChild("btnOpen");
  65. m_RewardList = (GList)comp.GetChild("RewardList");
  66. m_btnGetAll = (GButton)comp.GetChild("btnGetAll");
  67. m_SpecialReward = (UI_BattlePassReward)UI_BattlePassReward.Create(comp.GetChild("SpecialReward"));
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_c1 = null;
  72. m_LeftTime = null;
  73. m_tip = null;
  74. m_LevelProcess.Dispose();
  75. m_LevelProcess = null;
  76. m_btnBuyLevel = null;
  77. m_btnOpen = null;
  78. m_RewardList = null;
  79. m_btnGetAll = null;
  80. m_SpecialReward.Dispose();
  81. m_SpecialReward = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }