UI_CompGuideItem.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.FieldGuide
  4. {
  5. public partial class UI_CompGuideItem
  6. {
  7. public GComponent target;
  8. public GLoader m_loaderPic;
  9. public GTextField m_progressSymbol;
  10. public GTextField m_txtProgress;
  11. public GGroup m_progressGroup;
  12. public GLoader m_lock;
  13. public Transition m_In;
  14. public Transition m_Init;
  15. public const string URL = "ui://vqq9h9h4pjipe";
  16. public const string PACKAGE_NAME = "FieldGuide";
  17. public const string RES_NAME = "CompGuideItem";
  18. private static UI_CompGuideItem _proxy;
  19. public static UI_CompGuideItem Create(GObject gObject = null)
  20. {
  21. var ui = new UI_CompGuideItem();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_CompGuideItem Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_CompGuideItem();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_loaderPic = (GLoader)comp.GetChild("loaderPic");
  58. m_progressSymbol = (GTextField)comp.GetChild("progressSymbol");
  59. m_txtProgress = (GTextField)comp.GetChild("txtProgress");
  60. m_progressGroup = (GGroup)comp.GetChild("progressGroup");
  61. m_lock = (GLoader)comp.GetChild("lock");
  62. m_In = comp.GetTransition("In");
  63. m_Init = comp.GetTransition("Init");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_loaderPic = null;
  68. m_progressSymbol = null;
  69. m_txtProgress = null;
  70. m_progressGroup = null;
  71. m_lock = null;
  72. m_In = null;
  73. m_Init = null;
  74. if(disposeTarget && target != null)
  75. {
  76. target.RemoveFromParent();
  77. target.Dispose();
  78. }
  79. target = null;
  80. }
  81. }
  82. }