UI_CompChapter20004.cs 3.8 KB

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