UI_DressUpUI.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 GGraph m_touchPad;
  10. public GLoader m_loaShow;
  11. public GButton m_btnShow;
  12. public GButton m_btnHide;
  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_btnAction;
  21. public GButton m_btnPhoto;
  22. public GButton m_btnLastStep;
  23. public GButton m_btnNextStep;
  24. public GButton m_btnDelete;
  25. public GButton m_btnSearch;
  26. public GButton m_btnSave;
  27. public GGroup m_grpContent;
  28. public const string URL = "ui://mbo439wbq08x0";
  29. public const string PACKAGE_NAME = "DressUp";
  30. public const string RES_NAME = "DressUpUI";
  31. private static UI_DressUpUI _proxy;
  32. public static UI_DressUpUI Create(GObject gObject = null)
  33. {
  34. var ui = new UI_DressUpUI();
  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_DressUpUI Proxy(GObject gObject = null)
  43. {
  44. if(_proxy == null)
  45. {
  46. _proxy = new UI_DressUpUI();
  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_c1 = comp.GetController("c1");
  71. m_touchPad = (GGraph)comp.GetChild("touchPad");
  72. m_loaShow = (GLoader)comp.GetChild("loaShow");
  73. m_btnShow = (GButton)comp.GetChild("btnShow");
  74. m_btnHide = (GButton)comp.GetChild("btnHide");
  75. m_btnBack = (GButton)comp.GetChild("btnBack");
  76. m_btnHome = (GButton)comp.GetChild("btnHome");
  77. m_comboBox = (GComboBox)comp.GetChild("comboBox");
  78. m_comListType1 = (UI_comListType)UI_comListType.Create(comp.GetChild("comListType1"));
  79. m_comListType2 = (UI_comListType)UI_comListType.Create(comp.GetChild("comListType2"));
  80. m_partsList = (UI_PartsList)UI_PartsList.Create(comp.GetChild("partsList"));
  81. m_partsList2 = (UI_PartsList)UI_PartsList.Create(comp.GetChild("partsList2"));
  82. m_btnAction = (GButton)comp.GetChild("btnAction");
  83. m_btnPhoto = (GButton)comp.GetChild("btnPhoto");
  84. m_btnLastStep = (GButton)comp.GetChild("btnLastStep");
  85. m_btnNextStep = (GButton)comp.GetChild("btnNextStep");
  86. m_btnDelete = (GButton)comp.GetChild("btnDelete");
  87. m_btnSearch = (GButton)comp.GetChild("btnSearch");
  88. m_btnSave = (GButton)comp.GetChild("btnSave");
  89. m_grpContent = (GGroup)comp.GetChild("grpContent");
  90. }
  91. public void Dispose(bool disposeTarget = false)
  92. {
  93. m_c1 = null;
  94. m_touchPad = null;
  95. m_loaShow = null;
  96. m_btnShow = null;
  97. m_btnHide = null;
  98. m_btnBack = null;
  99. m_btnHome = null;
  100. m_comboBox = null;
  101. m_comListType1.Dispose();
  102. m_comListType1 = null;
  103. m_comListType2.Dispose();
  104. m_comListType2 = null;
  105. m_partsList.Dispose();
  106. m_partsList = null;
  107. m_partsList2.Dispose();
  108. m_partsList2 = null;
  109. m_btnAction = null;
  110. m_btnPhoto = null;
  111. m_btnLastStep = null;
  112. m_btnNextStep = null;
  113. m_btnDelete = null;
  114. m_btnSearch = null;
  115. m_btnSave = null;
  116. m_grpContent = null;
  117. if(disposeTarget && target != null)
  118. {
  119. target.RemoveFromParent();
  120. target.Dispose();
  121. }
  122. target = null;
  123. }
  124. }
  125. }