UI_RoleLvUpUI.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.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 GGraph m_holderTitleUp;
  12. public GTextField m_txtLastLv;
  13. public GTextField m_txtCurLv;
  14. public GGraph m_holderNumber;
  15. public UI_Component1 m_com0;
  16. public UI_Component2 m_com1;
  17. public const string URL = "ui://ns2d6qb2mueb0";
  18. public const string PACKAGE_NAME = "RoleLvUp";
  19. public const string RES_NAME = "RoleLvUpUI";
  20. private static UI_RoleLvUpUI _proxy;
  21. public static UI_RoleLvUpUI Create(GObject gObject = null)
  22. {
  23. var ui = new UI_RoleLvUpUI();
  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_RoleLvUpUI Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_RoleLvUpUI();
  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_downTipsText = (GGroup)comp.GetChild("downTipsText");
  60. m_holderTitle = (GGraph)comp.GetChild("holderTitle");
  61. m_txtLv = (GTextField)comp.GetChild("txtLv");
  62. m_holderTitleUp = (GGraph)comp.GetChild("holderTitleUp");
  63. m_txtLastLv = (GTextField)comp.GetChild("txtLastLv");
  64. m_txtCurLv = (GTextField)comp.GetChild("txtCurLv");
  65. m_holderNumber = (GGraph)comp.GetChild("holderNumber");
  66. m_com0 = (UI_Component1)UI_Component1.Create(comp.GetChild("com0"));
  67. m_com1 = (UI_Component2)UI_Component2.Create(comp.GetChild("com1"));
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_downTipsText = null;
  72. m_holderTitle = null;
  73. m_txtLv = null;
  74. m_holderTitleUp = null;
  75. m_txtLastLv = null;
  76. m_txtCurLv = null;
  77. m_holderNumber = null;
  78. m_com0.Dispose();
  79. m_com0 = null;
  80. m_com1.Dispose();
  81. m_com1 = null;
  82. if(disposeTarget && target != null)
  83. {
  84. target.RemoveFromParent();
  85. target.Dispose();
  86. }
  87. target = null;
  88. }
  89. }
  90. }