UI_ProgressBar1.cs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_ProgressBar1
  6. {
  7. public GProgressBar target;
  8. public UI_ComProBonus m_comProBonus0;
  9. public UI_ComProBonus m_comProBonus1;
  10. public UI_ComProBonus m_comProBonus2;
  11. public UI_ComProBonus m_comProBonus3;
  12. public UI_ComProBonus m_comProBonus4;
  13. public GGraph m_holder;
  14. public GGraph m_holderReward;
  15. public GTextField m_txtSignCount;
  16. public const string URL = "ui://t8nwuj7ifqor7";
  17. public const string PACKAGE_NAME = "DailyWelfare";
  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_comProBonus0 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus0"));
  59. m_comProBonus1 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus1"));
  60. m_comProBonus2 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus2"));
  61. m_comProBonus3 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus3"));
  62. m_comProBonus4 = (UI_ComProBonus)UI_ComProBonus.Create(comp.GetChild("comProBonus4"));
  63. m_holder = (GGraph)comp.GetChild("holder");
  64. m_holderReward = (GGraph)comp.GetChild("holderReward");
  65. m_txtSignCount = (GTextField)comp.GetChild("txtSignCount");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_comProBonus0.Dispose();
  70. m_comProBonus0 = null;
  71. m_comProBonus1.Dispose();
  72. m_comProBonus1 = null;
  73. m_comProBonus2.Dispose();
  74. m_comProBonus2 = null;
  75. m_comProBonus3.Dispose();
  76. m_comProBonus3 = null;
  77. m_comProBonus4.Dispose();
  78. m_comProBonus4 = null;
  79. m_holder = null;
  80. m_holderReward = null;
  81. m_txtSignCount = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }