UI_CompDialogHead_old.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_CompDialogHead_old
  6. {
  7. public GComponent target;
  8. public GImage m_bg;
  9. public GTextField m_txtName;
  10. public UI_Component1 m_compDressUp;
  11. public UI_ComponentHead m_comphead;
  12. public GTextField m_txtContent;
  13. public UI_CompArrow m_iconNext;
  14. public const string URL = "ui://mfvz4q8knmnb31";
  15. public const string PACKAGE_NAME = "Main";
  16. public const string RES_NAME = "CompDialogHead_old";
  17. private static UI_CompDialogHead_old _proxy;
  18. public static UI_CompDialogHead_old Create(GObject gObject = null)
  19. {
  20. var ui = new UI_CompDialogHead_old();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_CompDialogHead_old Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_CompDialogHead_old();
  33. }
  34. var ui = _proxy;
  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 void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_bg = (GImage)comp.GetChild("bg");
  57. m_txtName = (GTextField)comp.GetChild("txtName");
  58. m_compDressUp = (UI_Component1)UI_Component1.Create(comp.GetChild("compDressUp"));
  59. m_comphead = (UI_ComponentHead)UI_ComponentHead.Create(comp.GetChild("comphead"));
  60. m_txtContent = (GTextField)comp.GetChild("txtContent");
  61. m_iconNext = (UI_CompArrow)UI_CompArrow.Create(comp.GetChild("iconNext"));
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_bg = null;
  66. m_txtName = null;
  67. m_compDressUp.Dispose();
  68. m_compDressUp = null;
  69. m_comphead.Dispose();
  70. m_comphead = null;
  71. m_txtContent = null;
  72. m_iconNext.Dispose();
  73. m_iconNext = null;
  74. if(disposeTarget && target != null)
  75. {
  76. target.RemoveFromParent();
  77. target.Dispose();
  78. }
  79. target = null;
  80. }
  81. }
  82. }