UI_DressUpUI.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.DressUp
  4. {
  5. public partial class UI_DressUpUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public Controller m_c2;
  10. public GGraph m_touchPad;
  11. public GLoader m_loaShow;
  12. public GButton m_btnShow;
  13. public GButton m_btnBack;
  14. public GButton m_btnHome;
  15. public GComboBox m_comboBox;
  16. public UI_comListType m_comListType1;
  17. public UI_comListType m_comListType2;
  18. public UI_PartsList m_partsList;
  19. public UI_PartsList m_partsList2;
  20. public GButton m_btnSave;
  21. public GButton m_btnNext;
  22. public GButton m_btnAction;
  23. public GButton m_btnPhoto;
  24. public GButton m_btnLastStep;
  25. public GButton m_btnNextStep;
  26. public GButton m_btnHide;
  27. public GButton m_btnSearch;
  28. public GButton m_btnDelete;
  29. public GGroup m_grpContent;
  30. public const string URL = "ui://mbo439wbq08x0";
  31. public const string PACKAGE_NAME = "DressUp";
  32. public const string RES_NAME = "DressUpUI";
  33. private static UI_DressUpUI _proxy;
  34. public static UI_DressUpUI Create(GObject gObject = null)
  35. {
  36. var ui = new UI_DressUpUI();
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static UI_DressUpUI Proxy(GObject gObject = null)
  45. {
  46. if(_proxy == null)
  47. {
  48. _proxy = new UI_DressUpUI();
  49. }
  50. var ui = _proxy;
  51. if(gObject == null)
  52. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  53. else
  54. ui.target = (GComponent)gObject;
  55. ui.Init(ui.target);
  56. return ui;
  57. }
  58. public static void ProxyEnd()
  59. {
  60. if (_proxy != null)
  61. {
  62. _proxy.Dispose();
  63. }
  64. }
  65. public static void ClearProxy()
  66. {
  67. ProxyEnd();
  68. _proxy = null;
  69. }
  70. private void Init(GComponent comp)
  71. {
  72. m_c1 = comp.GetController("c1");
  73. m_c2 = comp.GetController("c2");
  74. m_touchPad = (GGraph)comp.GetChild("touchPad");
  75. m_loaShow = (GLoader)comp.GetChild("loaShow");
  76. m_btnShow = (GButton)comp.GetChild("btnShow");
  77. m_btnBack = (GButton)comp.GetChild("btnBack");
  78. m_btnHome = (GButton)comp.GetChild("btnHome");
  79. m_comboBox = (GComboBox)comp.GetChild("comboBox");
  80. m_comListType1 = (UI_comListType)UI_comListType.Create(comp.GetChild("comListType1"));
  81. m_comListType2 = (UI_comListType)UI_comListType.Create(comp.GetChild("comListType2"));
  82. m_partsList = (UI_PartsList)UI_PartsList.Create(comp.GetChild("partsList"));
  83. m_partsList2 = (UI_PartsList)UI_PartsList.Create(comp.GetChild("partsList2"));
  84. m_btnSave = (GButton)comp.GetChild("btnSave");
  85. m_btnNext = (GButton)comp.GetChild("btnNext");
  86. m_btnAction = (GButton)comp.GetChild("btnAction");
  87. m_btnPhoto = (GButton)comp.GetChild("btnPhoto");
  88. m_btnLastStep = (GButton)comp.GetChild("btnLastStep");
  89. m_btnNextStep = (GButton)comp.GetChild("btnNextStep");
  90. m_btnHide = (GButton)comp.GetChild("btnHide");
  91. m_btnSearch = (GButton)comp.GetChild("btnSearch");
  92. m_btnDelete = (GButton)comp.GetChild("btnDelete");
  93. m_grpContent = (GGroup)comp.GetChild("grpContent");
  94. }
  95. public void Dispose(bool disposeTarget = false)
  96. {
  97. m_c1 = null;
  98. m_c2 = null;
  99. m_touchPad = null;
  100. m_loaShow = null;
  101. m_btnShow = null;
  102. m_btnBack = null;
  103. m_btnHome = null;
  104. m_comboBox = null;
  105. m_comListType1.Dispose();
  106. m_comListType1 = null;
  107. m_comListType2.Dispose();
  108. m_comListType2 = null;
  109. m_partsList.Dispose();
  110. m_partsList = null;
  111. m_partsList2.Dispose();
  112. m_partsList2 = null;
  113. m_btnSave = null;
  114. m_btnNext = null;
  115. m_btnAction = null;
  116. m_btnPhoto = null;
  117. m_btnLastStep = null;
  118. m_btnNextStep = null;
  119. m_btnHide = null;
  120. m_btnSearch = null;
  121. m_btnDelete = null;
  122. m_grpContent = null;
  123. if(disposeTarget && target != null)
  124. {
  125. target.RemoveFromParent();
  126. target.Dispose();
  127. }
  128. target = null;
  129. }
  130. }
  131. }