UI_RoleLvUpUI.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.RoleLvUp
  4. {
  5. public partial class UI_RoleLvUpUI
  6. {
  7. public GComponent target;
  8. public GGroup m_downTipsText;
  9. public GGraph m_holderTitle;
  10. public GTextField m_txtLv;
  11. public GTextField m_txtLastLv;
  12. public GTextField m_txtCurLv;
  13. public GGraph m_holderNumber;
  14. public UI_Component1 m_com0;
  15. public UI_Component2 m_com1;
  16. public const string URL = "ui://ns2d6qb2mueb0";
  17. public const string PACKAGE_NAME = "RoleLvUp";
  18. public const string RES_NAME = "RoleLvUpUI";
  19. private static UI_RoleLvUpUI _proxy;
  20. public static UI_RoleLvUpUI Create(GObject gObject = null)
  21. {
  22. var ui = new UI_RoleLvUpUI();
  23. if(gObject == null)
  24. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GComponent)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_RoleLvUpUI Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_RoleLvUpUI();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GComponent)gObject;
  41. ui.Init(ui.target);
  42. return ui;
  43. }
  44. public static void ProxyEnd()
  45. {
  46. if (_proxy != null)
  47. {
  48. _proxy.Dispose();
  49. }
  50. }
  51. public static void ClearProxy()
  52. {
  53. ProxyEnd();
  54. _proxy = null;
  55. }
  56. private void Init(GComponent comp)
  57. {
  58. m_downTipsText = (GGroup)comp.GetChild("downTipsText");
  59. m_holderTitle = (GGraph)comp.GetChild("holderTitle");
  60. m_txtLv = (GTextField)comp.GetChild("txtLv");
  61. m_txtLastLv = (GTextField)comp.GetChild("txtLastLv");
  62. m_txtCurLv = (GTextField)comp.GetChild("txtCurLv");
  63. m_holderNumber = (GGraph)comp.GetChild("holderNumber");
  64. m_com0 = (UI_Component1)UI_Component1.Create(comp.GetChild("com0"));
  65. m_com1 = (UI_Component2)UI_Component2.Create(comp.GetChild("com1"));
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_downTipsText = null;
  70. m_holderTitle = null;
  71. m_txtLv = null;
  72. m_txtLastLv = null;
  73. m_txtCurLv = null;
  74. m_holderNumber = null;
  75. m_com0.Dispose();
  76. m_com0 = null;
  77. m_com1.Dispose();
  78. m_com1 = null;
  79. if(disposeTarget && target != null)
  80. {
  81. target.RemoveFromParent();
  82. target.Dispose();
  83. }
  84. target = null;
  85. }
  86. }
  87. }