UI_CompChapter20004.cs 4.2 KB

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