UI_ComPary.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.League
  4. {
  5. public partial class UI_ComPary
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public GLoader m_LoaIcon;
  10. public GTextField m_txtName;
  11. public GComponent m_comGain;
  12. public GComponent m_comGain2;
  13. public GTextField m_txtCount;
  14. public UI_Button20 m_btnPray;
  15. public GComponent m_comFirstGain;
  16. public const string URL = "ui://tw70qm9drv0929";
  17. public const string PACKAGE_NAME = "League";
  18. public const string RES_NAME = "ComPary";
  19. private static UI_ComPary _proxy;
  20. public static UI_ComPary Create(GObject gObject = null)
  21. {
  22. var ui = new UI_ComPary();
  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_ComPary Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_ComPary();
  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_c1 = comp.GetController("c1");
  59. m_LoaIcon = (GLoader)comp.GetChild("LoaIcon");
  60. m_txtName = (GTextField)comp.GetChild("txtName");
  61. m_comGain = (GComponent)comp.GetChild("comGain");
  62. m_comGain2 = (GComponent)comp.GetChild("comGain2");
  63. m_txtCount = (GTextField)comp.GetChild("txtCount");
  64. m_btnPray = (UI_Button20)UI_Button20.Create(comp.GetChild("btnPray"));
  65. m_comFirstGain = (GComponent)comp.GetChild("comFirstGain");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_c1 = null;
  70. m_LoaIcon = null;
  71. m_txtName = null;
  72. m_comGain = null;
  73. m_comGain2 = null;
  74. m_txtCount = null;
  75. m_btnPray.Dispose();
  76. m_btnPray = null;
  77. m_comFirstGain = null;
  78. if(disposeTarget && target != null)
  79. {
  80. target.RemoveFromParent();
  81. target.Dispose();
  82. }
  83. target = null;
  84. }
  85. }
  86. }