UI_PhoneBindingUI.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_inputName;
  12. public GTextInput m_inputPhoneNumber;
  13. public UI_Button19 m_btnSure;
  14. public GTextField m_inputConfirmCode;
  15. public GButton m_btnGetCode;
  16. public GLoader m_countTime;
  17. public GButton m_btnClose;
  18. public GLoader m_icon;
  19. public const string URL = "ui://374k3dwvr8a09fze";
  20. public const string PACKAGE_NAME = "RoleInfo";
  21. public const string RES_NAME = "PhoneBindingUI";
  22. private static UI_PhoneBindingUI _proxy;
  23. public static UI_PhoneBindingUI Create(GObject gObject = null)
  24. {
  25. var ui = new UI_PhoneBindingUI();
  26. if(gObject == null)
  27. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  28. else
  29. ui.target = (GComponent)gObject;
  30. ui.Init(ui.target);
  31. return ui;
  32. }
  33. public static UI_PhoneBindingUI Proxy(GObject gObject = null)
  34. {
  35. if(_proxy == null)
  36. {
  37. _proxy = new UI_PhoneBindingUI();
  38. }
  39. var ui = _proxy;
  40. if(gObject == null)
  41. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  42. else
  43. ui.target = (GComponent)gObject;
  44. ui.Init(ui.target);
  45. return ui;
  46. }
  47. public static void ProxyEnd()
  48. {
  49. if (_proxy != null)
  50. {
  51. _proxy.Dispose();
  52. }
  53. }
  54. public static void ClearProxy()
  55. {
  56. ProxyEnd();
  57. _proxy = null;
  58. }
  59. private void Init(GComponent comp)
  60. {
  61. m_bg = (GImage)comp.GetChild("bg");
  62. m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
  63. m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
  64. m_inputName = (GTextInput)comp.GetChild("inputName");
  65. m_inputPhoneNumber = (GTextInput)comp.GetChild("inputPhoneNumber");
  66. m_btnSure = (UI_Button19)UI_Button19.Create(comp.GetChild("btnSure"));
  67. m_inputConfirmCode = (GTextField)comp.GetChild("inputConfirmCode");
  68. m_btnGetCode = (GButton)comp.GetChild("btnGetCode");
  69. m_countTime = (GLoader)comp.GetChild("countTime");
  70. m_btnClose = (GButton)comp.GetChild("btnClose");
  71. m_icon = (GLoader)comp.GetChild("icon");
  72. }
  73. public void Dispose(bool disposeTarget = false)
  74. {
  75. m_bg = null;
  76. m_holderLeftTop = null;
  77. m_holderRightDowm = null;
  78. m_inputName = null;
  79. m_inputPhoneNumber = null;
  80. m_btnSure.Dispose();
  81. m_btnSure = null;
  82. m_inputConfirmCode = null;
  83. m_btnGetCode = null;
  84. m_countTime = null;
  85. m_btnClose = null;
  86. m_icon = null;
  87. if(disposeTarget && target != null)
  88. {
  89. target.RemoveFromParent();
  90. target.Dispose();
  91. }
  92. target = null;
  93. }
  94. }
  95. }