UI_DailySupplyUI.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_DailySupplyUI
  6. {
  7. public GComponent target;
  8. public UI_ComSupplyBg m_comBg;
  9. public UI_ComSupply m_comSupply;
  10. public GGraph m_holder;
  11. public Transition m_t0;
  12. public const string URL = "ui://t8nwuj7iqik1t";
  13. public const string PACKAGE_NAME = "DailyWelfare";
  14. public const string RES_NAME = "DailySupplyUI";
  15. private static UI_DailySupplyUI _proxy;
  16. public static UI_DailySupplyUI Create(GObject gObject = null)
  17. {
  18. var ui = new UI_DailySupplyUI();
  19. if(gObject == null)
  20. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  21. else
  22. ui.target = (GComponent)gObject;
  23. ui.Init(ui.target);
  24. return ui;
  25. }
  26. public static UI_DailySupplyUI Proxy(GObject gObject = null)
  27. {
  28. if(_proxy == null)
  29. {
  30. _proxy = new UI_DailySupplyUI();
  31. }
  32. var ui = _proxy;
  33. if(gObject == null)
  34. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  35. else
  36. ui.target = (GComponent)gObject;
  37. ui.Init(ui.target);
  38. return ui;
  39. }
  40. public static void ProxyEnd()
  41. {
  42. if (_proxy != null)
  43. {
  44. _proxy.Dispose();
  45. }
  46. }
  47. public static void ClearProxy()
  48. {
  49. ProxyEnd();
  50. _proxy = null;
  51. }
  52. private void Init(GComponent comp)
  53. {
  54. m_comBg = (UI_ComSupplyBg)UI_ComSupplyBg.Create(comp.GetChild("comBg"));
  55. m_comSupply = (UI_ComSupply)UI_ComSupply.Create(comp.GetChild("comSupply"));
  56. m_holder = (GGraph)comp.GetChild("holder");
  57. m_t0 = comp.GetTransition("t0");
  58. }
  59. public void Dispose(bool disposeTarget = false)
  60. {
  61. m_comBg.Dispose();
  62. m_comBg = null;
  63. m_comSupply.Dispose();
  64. m_comSupply = null;
  65. m_holder = null;
  66. m_t0 = null;
  67. if(disposeTarget && target != null)
  68. {
  69. target.RemoveFromParent();
  70. target.Dispose();
  71. }
  72. target = null;
  73. }
  74. }
  75. }