UI_EnduringGiftBoxUI.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.EnduringGiftBox
  4. {
  5. public partial class UI_EnduringGiftBoxUI
  6. {
  7. public GComponent target;
  8. public GGraph m_holderPaoMax;
  9. public GGraph m_holderPaoMin;
  10. public GGraph m_holderBaby;
  11. public GGraph m_holderFg;
  12. public GTextField m_txtPrompt;
  13. public GButton m_btnCancel;
  14. public GButton m_btnSub;
  15. public GTextField m_txtPromptExt;
  16. public UI_ComCurSupply m_curSupply;
  17. public UI_ComCurSupply m_weekSupply;
  18. public GImage m_btnBack;
  19. public Transition m_t1;
  20. public const string URL = "ui://bdi1qe15qqhz1";
  21. public const string PACKAGE_NAME = "EnduringGiftBox";
  22. public const string RES_NAME = "EnduringGiftBoxUI";
  23. private static UI_EnduringGiftBoxUI _proxy;
  24. public static UI_EnduringGiftBoxUI Create(GObject gObject = null)
  25. {
  26. var ui = new UI_EnduringGiftBoxUI();
  27. if(gObject == null)
  28. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  29. else
  30. ui.target = (GComponent)gObject;
  31. ui.Init(ui.target);
  32. return ui;
  33. }
  34. public static UI_EnduringGiftBoxUI Proxy(GObject gObject = null)
  35. {
  36. if(_proxy == null)
  37. {
  38. _proxy = new UI_EnduringGiftBoxUI();
  39. }
  40. var ui = _proxy;
  41. if(gObject == null)
  42. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  43. else
  44. ui.target = (GComponent)gObject;
  45. ui.Init(ui.target);
  46. return ui;
  47. }
  48. public static void ProxyEnd()
  49. {
  50. if (_proxy != null)
  51. {
  52. _proxy.Dispose();
  53. }
  54. }
  55. public static void ClearProxy()
  56. {
  57. ProxyEnd();
  58. _proxy = null;
  59. }
  60. private void Init(GComponent comp)
  61. {
  62. m_holderPaoMax = (GGraph)comp.GetChild("holderPaoMax");
  63. m_holderPaoMin = (GGraph)comp.GetChild("holderPaoMin");
  64. m_holderBaby = (GGraph)comp.GetChild("holderBaby");
  65. m_holderFg = (GGraph)comp.GetChild("holderFg");
  66. m_txtPrompt = (GTextField)comp.GetChild("txtPrompt");
  67. m_btnCancel = (GButton)comp.GetChild("btnCancel");
  68. m_btnSub = (GButton)comp.GetChild("btnSub");
  69. m_txtPromptExt = (GTextField)comp.GetChild("txtPromptExt");
  70. m_curSupply = (UI_ComCurSupply)UI_ComCurSupply.Create(comp.GetChild("curSupply"));
  71. m_weekSupply = (UI_ComCurSupply)UI_ComCurSupply.Create(comp.GetChild("weekSupply"));
  72. m_btnBack = (GImage)comp.GetChild("btnBack");
  73. m_t1 = comp.GetTransition("t1");
  74. }
  75. public void Dispose(bool disposeTarget = false)
  76. {
  77. m_holderPaoMax = null;
  78. m_holderPaoMin = null;
  79. m_holderBaby = null;
  80. m_holderFg = null;
  81. m_txtPrompt = null;
  82. m_btnCancel = null;
  83. m_btnSub = null;
  84. m_txtPromptExt = null;
  85. m_curSupply.Dispose();
  86. m_curSupply = null;
  87. m_weekSupply.Dispose();
  88. m_weekSupply = null;
  89. m_btnBack = null;
  90. m_t1 = null;
  91. if(disposeTarget && target != null)
  92. {
  93. target.RemoveFromParent();
  94. target.Dispose();
  95. }
  96. target = null;
  97. }
  98. }
  99. }