UI_ButtonModle1.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.Main
  4. {
  5. public partial class UI_ButtonModle1
  6. {
  7. public GButton target;
  8. public Controller m_c1;
  9. public GLoader m_icon0;
  10. public GGraph m_holder;
  11. public GGraph m_holder1;
  12. public GLoader m_icon1;
  13. public GLoader m_loaLockIcon;
  14. public GLoader m_loaLockIcon2;
  15. public GGroup m_loaLockIcons;
  16. public const string URL = "ui://mfvz4q8kq08xu";
  17. public const string PACKAGE_NAME = "Main";
  18. public const string RES_NAME = "ButtonModle1";
  19. private static UI_ButtonModle1 _proxy;
  20. public static UI_ButtonModle1 Create(GObject gObject = null)
  21. {
  22. var ui = new UI_ButtonModle1();
  23. if(gObject == null)
  24. ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  25. else
  26. ui.target = (GButton)gObject;
  27. ui.Init(ui.target);
  28. return ui;
  29. }
  30. public static UI_ButtonModle1 Proxy(GObject gObject = null)
  31. {
  32. if(_proxy == null)
  33. {
  34. _proxy = new UI_ButtonModle1();
  35. }
  36. var ui = _proxy;
  37. if(gObject == null)
  38. ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  39. else
  40. ui.target = (GButton)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_icon0 = (GLoader)comp.GetChild("icon0");
  60. m_holder = (GGraph)comp.GetChild("holder");
  61. m_holder1 = (GGraph)comp.GetChild("holder1");
  62. m_icon1 = (GLoader)comp.GetChild("icon1");
  63. m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
  64. m_loaLockIcon2 = (GLoader)comp.GetChild("loaLockIcon2");
  65. m_loaLockIcons = (GGroup)comp.GetChild("loaLockIcons");
  66. }
  67. public void Dispose(bool disposeTarget = false)
  68. {
  69. m_c1 = null;
  70. m_icon0 = null;
  71. m_holder = null;
  72. m_holder1 = null;
  73. m_icon1 = null;
  74. m_loaLockIcon = null;
  75. m_loaLockIcon2 = null;
  76. m_loaLockIcons = null;
  77. if(disposeTarget && target != null)
  78. {
  79. target.RemoveFromParent();
  80. target.Dispose();
  81. }
  82. target = null;
  83. }
  84. }
  85. }