UI_ClothingAnsweringUI.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ClothingUpgrade
  4. {
  5. public partial class UI_ClothingAnsweringUI
  6. {
  7. public GComponent target;
  8. public GLoader m_bg;
  9. public GTextField m_txtAnswerNum;
  10. public GTextField m_txtContent;
  11. public GList m_listResult;
  12. public GButton m_btnBack;
  13. public const string URL = "ui://n7cyoafqxfkih";
  14. public const string PACKAGE_NAME = "ClothingUpgrade";
  15. public const string RES_NAME = "ClothingAnsweringUI";
  16. private static UI_ClothingAnsweringUI _proxy;
  17. public static UI_ClothingAnsweringUI Create(GObject gObject = null)
  18. {
  19. var ui = new UI_ClothingAnsweringUI();
  20. if(gObject == null)
  21. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  22. else
  23. ui.target = (GComponent)gObject;
  24. ui.Init(ui.target);
  25. return ui;
  26. }
  27. public static UI_ClothingAnsweringUI Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_ClothingAnsweringUI();
  32. }
  33. var ui = _proxy;
  34. if(gObject == null)
  35. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  36. else
  37. ui.target = (GComponent)gObject;
  38. ui.Init(ui.target);
  39. return ui;
  40. }
  41. public static void ProxyEnd()
  42. {
  43. if (_proxy != null)
  44. {
  45. _proxy.Dispose();
  46. }
  47. }
  48. public static void ClearProxy()
  49. {
  50. ProxyEnd();
  51. _proxy = null;
  52. }
  53. private void Init(GComponent comp)
  54. {
  55. m_bg = (GLoader)comp.GetChild("bg");
  56. m_txtAnswerNum = (GTextField)comp.GetChild("txtAnswerNum");
  57. m_txtContent = (GTextField)comp.GetChild("txtContent");
  58. m_listResult = (GList)comp.GetChild("listResult");
  59. m_btnBack = (GButton)comp.GetChild("btnBack");
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_bg = null;
  64. m_txtAnswerNum = null;
  65. m_txtContent = null;
  66. m_listResult = null;
  67. m_btnBack = null;
  68. if(disposeTarget && target != null)
  69. {
  70. target.RemoveFromParent();
  71. target.Dispose();
  72. }
  73. target = null;
  74. }
  75. }
  76. }