UI_CompChapter20001.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_CompChapter20001
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public UI_CompStoryLevelItem1 m_g1;
  10. public UI_CompStoryLevelItem1 m_g2;
  11. public UI_CompStoryLevelItem1 m_g3;
  12. public UI_CompStoryLevelItem1 m_g4;
  13. public UI_CompStoryLevelItem1 m_g5;
  14. public UI_CompStoryLevelItem1 m_g6;
  15. public const string URL = "ui://mfvz4q8kkpb08j";
  16. public const string PACKAGE_NAME = "Main";
  17. public const string RES_NAME = "CompChapter20001";
  18. private static UI_CompChapter20001 _proxy;
  19. public static UI_CompChapter20001 Create(GObject gObject = null)
  20. {
  21. var ui = new UI_CompChapter20001();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_CompChapter20001 Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_CompChapter20001();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_loaBg = (GLoader)comp.GetChild("loaBg");
  58. m_g1 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g1"));
  59. m_g2 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g2"));
  60. m_g3 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g3"));
  61. m_g4 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g4"));
  62. m_g5 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g5"));
  63. m_g6 = (UI_CompStoryLevelItem1)UI_CompStoryLevelItem1.Create(comp.GetChild("g6"));
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_loaBg = null;
  68. m_g1.Dispose();
  69. m_g1 = null;
  70. m_g2.Dispose();
  71. m_g2 = null;
  72. m_g3.Dispose();
  73. m_g3 = null;
  74. m_g4.Dispose();
  75. m_g4 = null;
  76. m_g5.Dispose();
  77. m_g5 = null;
  78. m_g6.Dispose();
  79. m_g6 = null;
  80. if(disposeTarget && target != null)
  81. {
  82. target.RemoveFromParent();
  83. target.Dispose();
  84. }
  85. target = null;
  86. }
  87. }
  88. }