UI_StoryItem.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.OpenServerActivity
  4. {
  5. public partial class UI_StoryItem
  6. {
  7. public GComponent target;
  8. public Controller m_storyImageType;
  9. public Controller m_posType;
  10. public GTextField m_txtTitle;
  11. public GTextField m_txtNumber;
  12. public GTextField m_txtNotOpenTitle;
  13. public const string URL = "ui://b8ha2mnsebioi";
  14. public const string PACKAGE_NAME = "OpenServerActivity";
  15. public const string RES_NAME = "StoryItem";
  16. private static UI_StoryItem _proxy;
  17. public static UI_StoryItem Create(GObject gObject = null)
  18. {
  19. var ui = new UI_StoryItem();
  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_StoryItem Proxy(GObject gObject = null)
  28. {
  29. if(_proxy == null)
  30. {
  31. _proxy = new UI_StoryItem();
  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_storyImageType = comp.GetController("storyImageType");
  56. m_posType = comp.GetController("posType");
  57. m_txtTitle = (GTextField)comp.GetChild("txtTitle");
  58. m_txtNumber = (GTextField)comp.GetChild("txtNumber");
  59. m_txtNotOpenTitle = (GTextField)comp.GetChild("txtNotOpenTitle");
  60. }
  61. public void Dispose(bool disposeTarget = false)
  62. {
  63. m_storyImageType = null;
  64. m_posType = null;
  65. m_txtTitle = null;
  66. m_txtNumber = null;
  67. m_txtNotOpenTitle = null;
  68. if(disposeTarget && target != null)
  69. {
  70. target.RemoveFromParent();
  71. target.Dispose();
  72. }
  73. target = null;
  74. }
  75. }
  76. }