UI_PhotographUI.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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_PhotographUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_btnBg;
  10. public GLoader m_loaGuide;
  11. public GLoader m_loaGuide1;
  12. public UI_ComChecked m_comSelectBox;
  13. public GButton m_btnBack;
  14. public GButton m_btnPhotograph;
  15. public GButton m_btnChoose;
  16. public GButton m_btnUp;
  17. public GButton m_btnDown;
  18. public UI_ComItemList m_ComSelectRes;
  19. public GButton m_btnGalleryJoin;
  20. public GTextField m_txtCount;
  21. public const string URL = "ui://mbo439wbbe944a";
  22. public const string PACKAGE_NAME = "DressUp";
  23. public const string RES_NAME = "PhotographUI";
  24. private static UI_PhotographUI _proxy;
  25. public static UI_PhotographUI Create(GObject gObject = null)
  26. {
  27. var ui = new UI_PhotographUI();
  28. if(gObject == null)
  29. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  30. else
  31. ui.target = (GComponent)gObject;
  32. ui.Init(ui.target);
  33. return ui;
  34. }
  35. public static UI_PhotographUI Proxy(GObject gObject = null)
  36. {
  37. if(_proxy == null)
  38. {
  39. _proxy = new UI_PhotographUI();
  40. }
  41. var ui = _proxy;
  42. if(gObject == null)
  43. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  44. else
  45. ui.target = (GComponent)gObject;
  46. ui.Init(ui.target);
  47. return ui;
  48. }
  49. public static void ProxyEnd()
  50. {
  51. if (_proxy != null)
  52. {
  53. _proxy.Dispose();
  54. }
  55. }
  56. public static void ClearProxy()
  57. {
  58. ProxyEnd();
  59. _proxy = null;
  60. }
  61. private void Init(GComponent comp)
  62. {
  63. m_c1 = comp.GetController("c1");
  64. m_btnBg = (GLoader)comp.GetChild("btnBg");
  65. m_loaGuide = (GLoader)comp.GetChild("loaGuide");
  66. m_loaGuide1 = (GLoader)comp.GetChild("loaGuide1");
  67. m_comSelectBox = (UI_ComChecked)UI_ComChecked.Create(comp.GetChild("comSelectBox"));
  68. m_btnBack = (GButton)comp.GetChild("btnBack");
  69. m_btnPhotograph = (GButton)comp.GetChild("btnPhotograph");
  70. m_btnChoose = (GButton)comp.GetChild("btnChoose");
  71. m_btnUp = (GButton)comp.GetChild("btnUp");
  72. m_btnDown = (GButton)comp.GetChild("btnDown");
  73. m_ComSelectRes = (UI_ComItemList)UI_ComItemList.Create(comp.GetChild("ComSelectRes"));
  74. m_btnGalleryJoin = (GButton)comp.GetChild("btnGalleryJoin");
  75. m_txtCount = (GTextField)comp.GetChild("txtCount");
  76. }
  77. public void Dispose(bool disposeTarget = false)
  78. {
  79. m_c1 = null;
  80. m_btnBg = null;
  81. m_loaGuide = null;
  82. m_loaGuide1 = null;
  83. m_comSelectBox.Dispose();
  84. m_comSelectBox = null;
  85. m_btnBack = null;
  86. m_btnPhotograph = null;
  87. m_btnChoose = null;
  88. m_btnUp = null;
  89. m_btnDown = null;
  90. m_ComSelectRes.Dispose();
  91. m_ComSelectRes = null;
  92. m_btnGalleryJoin = null;
  93. m_txtCount = null;
  94. if(disposeTarget && target != null)
  95. {
  96. target.RemoveFromParent();
  97. target.Dispose();
  98. }
  99. target = null;
  100. }
  101. }
  102. }