UI_ActivityVIsitItemUI.cs 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ActivityAfternoonTea
  4. {
  5. public partial class UI_ActivityVIsitItemUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public UI_npcHead m_head;
  10. public GLoader m_rewardIcon;
  11. public GLoader m_lockIcon;
  12. public GTextField m_name;
  13. public GTextField m_lockTitle;
  14. public UI_Button22 m_visitBtn;
  15. public GGroup m_visitG;
  16. public GGroup m_unLock;
  17. public const string URL = "ui://wpsqkdbznjonl";
  18. public const string PACKAGE_NAME = "ActivityAfternoonTea";
  19. public const string RES_NAME = "ActivityVIsitItemUI";
  20. private static UI_ActivityVIsitItemUI _proxy;
  21. public static UI_ActivityVIsitItemUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_ActivityVIsitItemUI();
  24. if(gObject == null)
  25. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GComponent)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_ActivityVIsitItemUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_ActivityVIsitItemUI();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GComponent)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_c1 = comp.GetController("c1");
  60. m_head = (UI_npcHead)UI_npcHead.Create(comp.GetChild("head"));
  61. m_rewardIcon = (GLoader)comp.GetChild("rewardIcon");
  62. m_lockIcon = (GLoader)comp.GetChild("lockIcon");
  63. m_name = (GTextField)comp.GetChild("name");
  64. m_lockTitle = (GTextField)comp.GetChild("lockTitle");
  65. m_visitBtn = (UI_Button22)UI_Button22.Create(comp.GetChild("visitBtn"));
  66. m_visitG = (GGroup)comp.GetChild("visitG");
  67. m_unLock = (GGroup)comp.GetChild("unLock");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_c1 = null;
  72. m_head.Dispose();
  73. m_head = null;
  74. m_rewardIcon = null;
  75. m_lockIcon = null;
  76. m_name = null;
  77. m_lockTitle = null;
  78. m_visitBtn.Dispose();
  79. m_visitBtn = null;
  80. m_visitG = null;
  81. m_unLock = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }