UI_PhoneBindingUI.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.RoleInfo
  4. {
  5. public partial class UI_PhoneBindingUI
  6. {
  7. public GComponent target;
  8. public GImage m_bg;
  9. public GGraph m_holderLeftTop;
  10. public GGraph m_holderRightDowm;
  11. public GTextInput m_txtCode;
  12. public GTextInput m_inputPhoneNumber;
  13. public UI_Button19 m_btnSure;
  14. public GButton m_btnClose;
  15. public GButton m_btnSendCode;
  16. public const string URL = "ui://374k3dwvr8a09fze";
  17. public const string PACKAGE_NAME = "RoleInfo";
  18. public const string RES_NAME = "PhoneBindingUI";
  19. private static UI_PhoneBindingUI _proxy;
  20. public static UI_PhoneBindingUI Create(GObject gObject = null)
  21. {
  22. var ui = new UI_PhoneBindingUI();
  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_PhoneBindingUI Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_PhoneBindingUI();
  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_bg = (GImage)comp.GetChild("bg");
  59. m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
  60. m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
  61. m_txtCode = (GTextInput)comp.GetChild("txtCode");
  62. m_inputPhoneNumber = (GTextInput)comp.GetChild("inputPhoneNumber");
  63. m_btnSure = (UI_Button19)UI_Button19.Create(comp.GetChild("btnSure"));
  64. m_btnClose = (GButton)comp.GetChild("btnClose");
  65. m_btnSendCode = (GButton)comp.GetChild("btnSendCode");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_bg = null;
  70. m_holderLeftTop = null;
  71. m_holderRightDowm = null;
  72. m_txtCode = null;
  73. m_inputPhoneNumber = null;
  74. m_btnSure.Dispose();
  75. m_btnSure = null;
  76. m_btnClose = null;
  77. m_btnSendCode = null;
  78. if(disposeTarget && target != null)
  79. {
  80. target.RemoveFromParent();
  81. target.Dispose();
  82. }
  83. target = null;
  84. }
  85. }
  86. }