UI_ProgressBar1.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_ProgressBar1
  6. {
  7. public GProgressBar target;
  8. public UI_Component2 m_comBar;
  9. public GGraph m_holder;
  10. public GGraph m_holder1;
  11. public GImage m_imgAni;
  12. public UI_ComScoreStage m_comFirstScore;
  13. public UI_ComScoreStage m_comSecondScore;
  14. public UI_ComScoreStage m_comThirdScore;
  15. public GTextField m_txtCount;
  16. public const string URL = "ui://mfvz4q8kvuz5bh";
  17. public const string PACKAGE_NAME = "Main";
  18. public const string RES_NAME = "ProgressBar1";
  19. private static UI_ProgressBar1 _proxy;
  20. public static UI_ProgressBar1 Create(GObject gObject = null)
  21. {
  22. var ui = new UI_ProgressBar1();
  23. if(gObject == null)
  24. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GProgressBar)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_ProgressBar1 Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_ProgressBar1();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GProgressBar)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GProgressBar)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static void ProxyEnd()
  45. {
  46. if (_proxy != null)
  47. {
  48. _proxy.Dispose();
  49. }
  50. }
  51. public static void ClearProxy()
  52. {
  53. ProxyEnd();
  54. _proxy = null;
  55. }
  56. private void Init(GComponent comp)
  57. {
  58. m_comBar = (UI_Component2)UI_Component2.Create(comp.GetChild("comBar"));
  59. m_holder = (GGraph)comp.GetChild("holder");
  60. m_holder1 = (GGraph)comp.GetChild("holder1");
  61. m_imgAni = (GImage)comp.GetChild("imgAni");
  62. m_comFirstScore = (UI_ComScoreStage)UI_ComScoreStage.Create(comp.GetChild("comFirstScore"));
  63. m_comSecondScore = (UI_ComScoreStage)UI_ComScoreStage.Create(comp.GetChild("comSecondScore"));
  64. m_comThirdScore = (UI_ComScoreStage)UI_ComScoreStage.Create(comp.GetChild("comThirdScore"));
  65. m_txtCount = (GTextField)comp.GetChild("txtCount");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_comBar.Dispose();
  70. m_comBar = null;
  71. m_holder = null;
  72. m_holder1 = null;
  73. m_imgAni = null;
  74. m_comFirstScore.Dispose();
  75. m_comFirstScore = null;
  76. m_comSecondScore.Dispose();
  77. m_comSecondScore = null;
  78. m_comThirdScore.Dispose();
  79. m_comThirdScore = null;
  80. m_txtCount = null;
  81. if(disposeTarget && target != null)
  82. {
  83. target.RemoveFromParent();
  84. target.Dispose();
  85. }
  86. target = null;
  87. }
  88. }
  89. }