UI_CreateRoleUI.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.CreateRole
  4. {
  5. public partial class UI_CreateRoleUI
  6. {
  7. public GComponent target;
  8. public GLoader m_loaBg;
  9. public UI_EnvelopeModel m_envelopeModel;
  10. public GGraph m_BgEffectHolder;
  11. public GGraph m_mask;
  12. public Transition m_t_Open;
  13. public Transition m_t_In;
  14. public Transition m_t_AfterOpen;
  15. public const string URL = "ui://5al8chbdxt5s0";
  16. public const string PACKAGE_NAME = "CreateRole";
  17. public const string RES_NAME = "CreateRoleUI";
  18. private static UI_CreateRoleUI _proxy;
  19. public static UI_CreateRoleUI Create(GObject gObject = null)
  20. {
  21. var ui = new UI_CreateRoleUI();
  22. if(gObject == null)
  23. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  24. else
  25. ui.target = (GComponent)gObject;
  26. ui.Init(ui.target);
  27. return ui;
  28. }
  29. public static UI_CreateRoleUI Proxy(GObject gObject = null)
  30. {
  31. if(_proxy == null)
  32. {
  33. _proxy = new UI_CreateRoleUI();
  34. }
  35. var ui = _proxy;
  36. if(gObject == null)
  37. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  38. else
  39. ui.target = (GComponent)gObject;
  40. ui.Init(ui.target);
  41. return ui;
  42. }
  43. public static void ProxyEnd()
  44. {
  45. if (_proxy != null)
  46. {
  47. _proxy.Dispose();
  48. }
  49. }
  50. public static void ClearProxy()
  51. {
  52. ProxyEnd();
  53. _proxy = null;
  54. }
  55. private void Init(GComponent comp)
  56. {
  57. m_loaBg = (GLoader)comp.GetChild("loaBg");
  58. m_envelopeModel = (UI_EnvelopeModel)UI_EnvelopeModel.Create(comp.GetChild("envelopeModel"));
  59. m_BgEffectHolder = (GGraph)comp.GetChild("BgEffectHolder");
  60. m_mask = (GGraph)comp.GetChild("mask");
  61. m_t_Open = comp.GetTransition("t_Open");
  62. m_t_In = comp.GetTransition("t_In");
  63. m_t_AfterOpen = comp.GetTransition("t_AfterOpen");
  64. }
  65. public void Dispose(bool disposeTarget = false)
  66. {
  67. m_loaBg = null;
  68. m_envelopeModel.Dispose();
  69. m_envelopeModel = null;
  70. m_BgEffectHolder = null;
  71. m_mask = null;
  72. m_t_Open = null;
  73. m_t_In = null;
  74. m_t_AfterOpen = null;
  75. if(disposeTarget && target != null)
  76. {
  77. target.RemoveFromParent();
  78. target.Dispose();
  79. }
  80. target = null;
  81. }
  82. }
  83. }