UI_ClothingUpgradeUI.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.ClothingUpgrade
  4. {
  5. public partial class UI_ClothingUpgradeUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public Controller m_c2;
  10. public GLoader m_bg;
  11. public GComponent m_item0;
  12. public GComponent m_item1;
  13. public GComponent m_item2;
  14. public GTextField m_desc1Text;
  15. public GTextField m_desc2;
  16. public GTextField m_desc2Text;
  17. public GTextField m_desc3;
  18. public GTextField m_desc3Text;
  19. public GButton m_upgradeBtn;
  20. public GButton m_levelUpBtn;
  21. public GTextField m_finish;
  22. public GTextField m_unLockText;
  23. public GButton m_btnBack;
  24. public const string URL = "ui://n7cyoafqckqp4";
  25. public const string PACKAGE_NAME = "ClothingUpgrade";
  26. public const string RES_NAME = "ClothingUpgradeUI";
  27. private static UI_ClothingUpgradeUI _proxy;
  28. public static UI_ClothingUpgradeUI Create(GObject gObject = null)
  29. {
  30. var ui = new UI_ClothingUpgradeUI();
  31. if(gObject == null)
  32. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  33. else
  34. ui.target = (GComponent)gObject;
  35. ui.Init(ui.target);
  36. return ui;
  37. }
  38. public static UI_ClothingUpgradeUI Proxy(GObject gObject = null)
  39. {
  40. if(_proxy == null)
  41. {
  42. _proxy = new UI_ClothingUpgradeUI();
  43. }
  44. var ui = _proxy;
  45. if(gObject == null)
  46. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  47. else
  48. ui.target = (GComponent)gObject;
  49. ui.Init(ui.target);
  50. return ui;
  51. }
  52. public static void ProxyEnd()
  53. {
  54. if (_proxy != null)
  55. {
  56. _proxy.Dispose();
  57. }
  58. }
  59. public static void ClearProxy()
  60. {
  61. ProxyEnd();
  62. _proxy = null;
  63. }
  64. private void Init(GComponent comp)
  65. {
  66. m_c1 = comp.GetController("c1");
  67. m_c2 = comp.GetController("c2");
  68. m_bg = (GLoader)comp.GetChild("bg");
  69. m_item0 = (GComponent)comp.GetChild("item0");
  70. m_item1 = (GComponent)comp.GetChild("item1");
  71. m_item2 = (GComponent)comp.GetChild("item2");
  72. m_desc1Text = (GTextField)comp.GetChild("desc1Text");
  73. m_desc2 = (GTextField)comp.GetChild("desc2");
  74. m_desc2Text = (GTextField)comp.GetChild("desc2Text");
  75. m_desc3 = (GTextField)comp.GetChild("desc3");
  76. m_desc3Text = (GTextField)comp.GetChild("desc3Text");
  77. m_upgradeBtn = (GButton)comp.GetChild("upgradeBtn");
  78. m_levelUpBtn = (GButton)comp.GetChild("levelUpBtn");
  79. m_finish = (GTextField)comp.GetChild("finish");
  80. m_unLockText = (GTextField)comp.GetChild("unLockText");
  81. m_btnBack = (GButton)comp.GetChild("btnBack");
  82. }
  83. public void Dispose(bool disposeTarget = false)
  84. {
  85. m_c1 = null;
  86. m_c2 = null;
  87. m_bg = null;
  88. m_item0 = null;
  89. m_item1 = null;
  90. m_item2 = null;
  91. m_desc1Text = null;
  92. m_desc2 = null;
  93. m_desc2Text = null;
  94. m_desc3 = null;
  95. m_desc3Text = null;
  96. m_upgradeBtn = null;
  97. m_levelUpBtn = null;
  98. m_finish = null;
  99. m_unLockText = null;
  100. m_btnBack = null;
  101. if(disposeTarget && target != null)
  102. {
  103. target.RemoveFromParent();
  104. target.Dispose();
  105. }
  106. target = null;
  107. }
  108. }
  109. }