UI_CompChapter10002.cs 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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_CompChapter10002
  6. {
  7. public GComponent target;
  8. public UI_CompStoryLevelItem m_g1;
  9. public UI_CompStoryLevelItem m_g2;
  10. public UI_CompStoryLevelItem m_g3;
  11. public UI_CompStoryLevelItem m_g4;
  12. public UI_CompStoryLevelItem m_g5;
  13. public UI_CompStoryLevelItem m_g6;
  14. public UI_CompStoryLevelItem m_g7;
  15. public UI_CompStoryLevelItem m_g8;
  16. public UI_CompStoryLevelItem m_g9;
  17. public UI_CompStoryLevelItem m_g10;
  18. public UI_CompStoryLevelItem m_g11;
  19. public UI_CompStoryLevelItem m_g12;
  20. public UI_CompStoryLevelItem m_g13;
  21. public UI_CompStoryLevelItem m_g14;
  22. public UI_CompStoryLevelItem m_g15;
  23. public UI_CompStoryLevelItem m_g16;
  24. public UI_CompStoryLevelItem m_g17;
  25. public UI_CompStoryLevelItem m_g18;
  26. public UI_CompStoryLevelItem m_g19;
  27. public UI_CompStoryLevelItem m_g20;
  28. public const string URL = "ui://mfvz4q8ktxgzdc";
  29. public const string PACKAGE_NAME = "Main";
  30. public const string RES_NAME = "CompChapter10002";
  31. private static UI_CompChapter10002 _proxy;
  32. public static UI_CompChapter10002 Create(GObject gObject = null)
  33. {
  34. var ui = new UI_CompChapter10002();
  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 UI_CompChapter10002 Proxy(GObject gObject = null)
  43. {
  44. if(_proxy == null)
  45. {
  46. _proxy = new UI_CompChapter10002();
  47. }
  48. var ui = _proxy;
  49. if(gObject == null)
  50. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  51. else
  52. ui.target = (GComponent)gObject;
  53. ui.Init(ui.target);
  54. return ui;
  55. }
  56. public static void ProxyEnd()
  57. {
  58. if (_proxy != null)
  59. {
  60. _proxy.Dispose();
  61. }
  62. }
  63. public static void ClearProxy()
  64. {
  65. ProxyEnd();
  66. _proxy = null;
  67. }
  68. private void Init(GComponent comp)
  69. {
  70. m_g1 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g1"));
  71. m_g2 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g2"));
  72. m_g3 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g3"));
  73. m_g4 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g4"));
  74. m_g5 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g5"));
  75. m_g6 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g6"));
  76. m_g7 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g7"));
  77. m_g8 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g8"));
  78. m_g9 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g9"));
  79. m_g10 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g10"));
  80. m_g11 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g11"));
  81. m_g12 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g12"));
  82. m_g13 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g13"));
  83. m_g14 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g14"));
  84. m_g15 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g15"));
  85. m_g16 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g16"));
  86. m_g17 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g17"));
  87. m_g18 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g18"));
  88. m_g19 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g19"));
  89. m_g20 = (UI_CompStoryLevelItem)UI_CompStoryLevelItem.Create(comp.GetChild("g20"));
  90. }
  91. public void Dispose(bool disposeTarget = false)
  92. {
  93. m_g1.Dispose();
  94. m_g1 = null;
  95. m_g2.Dispose();
  96. m_g2 = null;
  97. m_g3.Dispose();
  98. m_g3 = null;
  99. m_g4.Dispose();
  100. m_g4 = null;
  101. m_g5.Dispose();
  102. m_g5 = null;
  103. m_g6.Dispose();
  104. m_g6 = null;
  105. m_g7.Dispose();
  106. m_g7 = null;
  107. m_g8.Dispose();
  108. m_g8 = null;
  109. m_g9.Dispose();
  110. m_g9 = null;
  111. m_g10.Dispose();
  112. m_g10 = null;
  113. m_g11.Dispose();
  114. m_g11 = null;
  115. m_g12.Dispose();
  116. m_g12 = null;
  117. m_g13.Dispose();
  118. m_g13 = null;
  119. m_g14.Dispose();
  120. m_g14 = null;
  121. m_g15.Dispose();
  122. m_g15 = null;
  123. m_g16.Dispose();
  124. m_g16 = null;
  125. m_g17.Dispose();
  126. m_g17 = null;
  127. m_g18.Dispose();
  128. m_g18 = null;
  129. m_g19.Dispose();
  130. m_g19 = null;
  131. m_g20.Dispose();
  132. m_g20 = null;
  133. if(disposeTarget && target != null)
  134. {
  135. target.RemoveFromParent();
  136. target.Dispose();
  137. }
  138. target = null;
  139. }
  140. }
  141. }