UI_ComTab.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Store
  4. {
  5. public partial class UI_ComTab
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public UI_Button3 m_btn0;
  10. public UI_Button3 m_btn1;
  11. public UI_Button3 m_btn2;
  12. public UI_Button3 m_btn3;
  13. public UI_Button3 m_btn4;
  14. public const string URL = "ui://p9mtgheofqortb5";
  15. public const string PACKAGE_NAME = "Store";
  16. public const string RES_NAME = "ComTab";
  17. private static UI_ComTab _proxy;
  18. public static UI_ComTab Create(GObject gObject = null)
  19. {
  20. var ui = new UI_ComTab();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_ComTab Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_ComTab();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)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_c1 = comp.GetController("c1");
  57. m_btn0 = (UI_Button3)UI_Button3.Create(comp.GetChild("btn0"));
  58. m_btn1 = (UI_Button3)UI_Button3.Create(comp.GetChild("btn1"));
  59. m_btn2 = (UI_Button3)UI_Button3.Create(comp.GetChild("btn2"));
  60. m_btn3 = (UI_Button3)UI_Button3.Create(comp.GetChild("btn3"));
  61. m_btn4 = (UI_Button3)UI_Button3.Create(comp.GetChild("btn4"));
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_c1 = null;
  66. m_btn0.Dispose();
  67. m_btn0 = null;
  68. m_btn1.Dispose();
  69. m_btn1 = null;
  70. m_btn2.Dispose();
  71. m_btn2 = null;
  72. m_btn3.Dispose();
  73. m_btn3 = null;
  74. m_btn4.Dispose();
  75. m_btn4 = null;
  76. if(disposeTarget && target != null)
  77. {
  78. target.RemoveFromParent();
  79. target.Dispose();
  80. }
  81. target = null;
  82. }
  83. }
  84. }