UI_ProgressBar2.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 GGraph m_holder;
  13. public GGraph m_holderReward;
  14. public const string URL = "ui://t8nwuj7ievdh26";
  15. public const string PACKAGE_NAME = "DailyWelfare";
  16. public const string RES_NAME = "ProgressBar2";
  17. private static UI_ProgressBar2 _proxy;
  18. public static UI_ProgressBar2 Create(GObject gObject = null)
  19. {
  20. var ui = new UI_ProgressBar2();
  21. if(gObject == null)
  22. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GProgressBar)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_ProgressBar2 Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_ProgressBar2();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GProgressBar)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_comProBonus0 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus0"));
  57. m_comProBonus1 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus1"));
  58. m_comProBonus2 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus2"));
  59. m_comProBonus3 = (UI_ComProBonus2)UI_ComProBonus2.Create(comp.GetChild("comProBonus3"));
  60. m_holder = (GGraph)comp.GetChild("holder");
  61. m_holderReward = (GGraph)comp.GetChild("holderReward");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_comProBonus0.Dispose();
  66. m_comProBonus0 = null;
  67. m_comProBonus1.Dispose();
  68. m_comProBonus1 = null;
  69. m_comProBonus2.Dispose();
  70. m_comProBonus2 = null;
  71. m_comProBonus3.Dispose();
  72. m_comProBonus3 = null;
  73. m_holder = null;
  74. m_holderReward = null;
  75. if(disposeTarget && target != null)
  76. {
  77. target.RemoveFromParent();
  78. target.Dispose();
  79. }
  80. target = null;
  81. }
  82. }
  83. }