UI_LuckBoxBonusShowUI.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.LuckyBox
  4. {
  5. public partial class UI_LuckBoxBonusShowUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_loaBg;
  10. public UI_LuckyBoxBonusShowItem m_itemOne;
  11. public UI_LuckyBoxBonusShowItem m_item0;
  12. public UI_LuckyBoxBonusShowItem m_item1;
  13. public UI_LuckyBoxBonusShowItem m_item2;
  14. public UI_LuckyBoxBonusShowItem m_item3;
  15. public UI_LuckyBoxBonusShowItem m_item4;
  16. public UI_LuckyBoxBonusShowItem m_item5;
  17. public UI_LuckyBoxBonusShowItem m_item6;
  18. public UI_LuckyBoxBonusShowItem m_item7;
  19. public UI_LuckyBoxBonusShowItem m_item8;
  20. public UI_LuckyBoxBonusShowItem m_item9;
  21. public GGroup m_grpItems;
  22. public Transition m_t0;
  23. public Transition m_t1;
  24. public const string URL = "ui://drx9d1use050tf3";
  25. public const string PACKAGE_NAME = "LuckyBox";
  26. public const string RES_NAME = "LuckBoxBonusShowUI";
  27. private static UI_LuckBoxBonusShowUI _proxy;
  28. public static UI_LuckBoxBonusShowUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_LuckBoxBonusShowUI();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_LuckBoxBonusShowUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_LuckBoxBonusShowUI();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_c1 = comp.GetController("c1");
  67. m_loaBg = (GLoader)comp.GetChild("loaBg");
  68. m_itemOne = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("itemOne"));
  69. m_item0 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item0"));
  70. m_item1 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item1"));
  71. m_item2 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item2"));
  72. m_item3 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item3"));
  73. m_item4 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item4"));
  74. m_item5 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item5"));
  75. m_item6 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item6"));
  76. m_item7 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item7"));
  77. m_item8 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item8"));
  78. m_item9 = (UI_LuckyBoxBonusShowItem)UI_LuckyBoxBonusShowItem.Create(comp.GetChild("item9"));
  79. m_grpItems = (GGroup)comp.GetChild("grpItems");
  80. m_t0 = comp.GetTransition("t0");
  81. m_t1 = comp.GetTransition("t1");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_loaBg = null;
  87. m_itemOne.Dispose();
  88. m_itemOne = null;
  89. m_item0.Dispose();
  90. m_item0 = null;
  91. m_item1.Dispose();
  92. m_item1 = null;
  93. m_item2.Dispose();
  94. m_item2 = null;
  95. m_item3.Dispose();
  96. m_item3 = null;
  97. m_item4.Dispose();
  98. m_item4 = null;
  99. m_item5.Dispose();
  100. m_item5 = null;
  101. m_item6.Dispose();
  102. m_item6 = null;
  103. m_item7.Dispose();
  104. m_item7 = null;
  105. m_item8.Dispose();
  106. m_item8 = null;
  107. m_item9.Dispose();
  108. m_item9 = null;
  109. m_grpItems = null;
  110. m_t0 = null;
  111. m_t1 = null;
  112. if(disposeTarget && target != null)
  113. {
  114. target.RemoveFromParent();
  115. target.Dispose();
  116. }
  117. target = null;
  118. }
  119. }
  120. }