UI_CompChapter10002.cs 4.3 KB

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