UI_ProgressBar2.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.DailyWelfare
  4. {
  5. public partial class UI_ProgressBar2
  6. {
  7. public GProgressBar target;
  8. public UI_ComProBonus2 m_comProBonus0;
  9. public UI_ComProBonus2 m_comProBonus1;
  10. public UI_ComProBonus2 m_comProBonus2;
  11. public UI_ComProBonus2 m_comProBonus3;
  12. public GGroup m_comProBonusGroup;
  13. public GGraph m_holder;
  14. public GGraph m_holderReward;
  15. public const string URL = "ui://t8nwuj7ievdh26";
  16. public const string PACKAGE_NAME = "DailyWelfare";
  17. public const string RES_NAME = "ProgressBar2";
  18. private static UI_ProgressBar2 _proxy;
  19. public static UI_ProgressBar2 Create(GObject gObject = null)
  20. {
  21. var ui = new UI_ProgressBar2();
  22. if(gObject == null)
  23. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GProgressBar)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_ProgressBar2 Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_ProgressBar2();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GProgressBar)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_comProBonus0 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus0"));
  58. m_comProBonus1 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus1"));
  59. m_comProBonus2 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus2"));
  60. m_comProBonus3 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus3"));
  61. m_comProBonusGroup = (GGroup)comp.GetChild("comProBonusGroup");
  62. m_holder = (GGraph)comp.GetChild("holder");
  63. m_holderReward = (GGraph)comp.GetChild("holderReward");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_comProBonus0.Dispose();
  68. m_comProBonus0 = null;
  69. m_comProBonus1.Dispose();
  70. m_comProBonus1 = null;
  71. m_comProBonus2.Dispose();
  72. m_comProBonus2 = null;
  73. m_comProBonus3.Dispose();
  74. m_comProBonus3 = null;
  75. m_comProBonusGroup = null;
  76. m_holder = null;
  77. m_holderReward = null;
  78. if(disposeTarget && target != null)
  79. {
  80. target.RemoveFromParent();
  81. target.Dispose();
  82. }
  83. target = null;
  84. }
  85. }
  86. }