UI_ButtonModle1.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 Controller m_ProbabilityUpType;
  10. public GLoader m_icon0;
  11. public GGraph m_holder;
  12. public GGraph m_holder1;
  13. public GLoader m_icon1;
  14. public GLoader m_loaLockIcon;
  15. public GLoader m_loaLockIcon2;
  16. public GGroup m_loaLockIcons;
  17. public const string URL = "ui://mfvz4q8kq08xu";
  18. public const string PACKAGE_NAME = "Main";
  19. public const string RES_NAME = "ButtonModle1";
  20. private static UI_ButtonModle1 _proxy;
  21. public static UI_ButtonModle1 Create(GObject gObject = null)
  22. {
  23. var ui = new UI_ButtonModle1();
  24. if(gObject == null)
  25. ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  26. else
  27. ui.target = (GButton)gObject;
  28. ui.Init(ui.target);
  29. return ui;
  30. }
  31. public static UI_ButtonModle1 Proxy(GObject gObject = null)
  32. {
  33. if(_proxy == null)
  34. {
  35. _proxy = new UI_ButtonModle1();
  36. }
  37. var ui = _proxy;
  38. if(gObject == null)
  39. ui.target = (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  40. else
  41. ui.target = (GButton)gObject;
  42. ui.Init(ui.target);
  43. return ui;
  44. }
  45. public static void ProxyEnd()
  46. {
  47. if (_proxy != null)
  48. {
  49. _proxy.Dispose();
  50. }
  51. }
  52. public static void ClearProxy()
  53. {
  54. ProxyEnd();
  55. _proxy = null;
  56. }
  57. private void Init(GComponent comp)
  58. {
  59. m_c1 = comp.GetController("c1");
  60. m_ProbabilityUpType = comp.GetController("ProbabilityUpType");
  61. m_icon0 = (GLoader)comp.GetChild("icon0");
  62. m_holder = (GGraph)comp.GetChild("holder");
  63. m_holder1 = (GGraph)comp.GetChild("holder1");
  64. m_icon1 = (GLoader)comp.GetChild("icon1");
  65. m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
  66. m_loaLockIcon2 = (GLoader)comp.GetChild("loaLockIcon2");
  67. m_loaLockIcons = (GGroup)comp.GetChild("loaLockIcons");
  68. }
  69. public void Dispose(bool disposeTarget = false)
  70. {
  71. m_c1 = null;
  72. m_ProbabilityUpType = null;
  73. m_icon0 = null;
  74. m_holder = null;
  75. m_holder1 = null;
  76. m_icon1 = null;
  77. m_loaLockIcon = null;
  78. m_loaLockIcon2 = null;
  79. m_loaLockIcons = null;
  80. if(disposeTarget && target != null)
  81. {
  82. target.RemoveFromParent();
  83. target.Dispose();
  84. }
  85. target = null;
  86. }
  87. }
  88. }