UI_LuckyBoxPreShowUI.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /** This is an automatically generated class by FairyGUI. Please do not modify it. **/
  2. using FairyGUI;
  3. namespace UI.LuckyBox
  4. {
  5. public partial class UI_LuckyBoxPreShowUI
  6. {
  7. public GComponent target;
  8. public Controller m_c1;
  9. public UI_ButtonTab1 m_btnItem;
  10. public UI_ButtonTab1 m_btnProb;
  11. public GList m_list;
  12. public UI_Component1 m_compText;
  13. public GTextField m_txtPlayTimes;
  14. public const string URL = "ui://drx9d1usga16e";
  15. public const string PACKAGE_NAME = "LuckyBox";
  16. public const string RES_NAME = "LuckyBoxPreShowUI";
  17. private static UI_LuckyBoxPreShowUI _proxy;
  18. public static UI_LuckyBoxPreShowUI Create(GObject gObject = null)
  19. {
  20. var ui = new UI_LuckyBoxPreShowUI();
  21. if(gObject == null)
  22. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  23. else
  24. ui.target = (GComponent)gObject;
  25. ui.Init(ui.target);
  26. return ui;
  27. }
  28. public static UI_LuckyBoxPreShowUI Proxy(GObject gObject = null)
  29. {
  30. if(_proxy == null)
  31. {
  32. _proxy = new UI_LuckyBoxPreShowUI();
  33. }
  34. var ui = _proxy;
  35. if(gObject == null)
  36. ui.target = (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
  37. else
  38. ui.target = (GComponent)gObject;
  39. ui.Init(ui.target);
  40. return ui;
  41. }
  42. public static void ProxyEnd()
  43. {
  44. if (_proxy != null)
  45. {
  46. _proxy.Dispose();
  47. }
  48. }
  49. public static void ClearProxy()
  50. {
  51. ProxyEnd();
  52. _proxy = null;
  53. }
  54. private void Init(GComponent comp)
  55. {
  56. m_c1 = comp.GetController("c1");
  57. m_btnItem = (UI_ButtonTab1)UI_ButtonTab1.Create(comp.GetChild("btnItem"));
  58. m_btnProb = (UI_ButtonTab1)UI_ButtonTab1.Create(comp.GetChild("btnProb"));
  59. m_list = (GList)comp.GetChild("list");
  60. m_compText = (UI_Component1)UI_Component1.Create(comp.GetChild("compText"));
  61. m_txtPlayTimes = (GTextField)comp.GetChild("txtPlayTimes");
  62. }
  63. public void Dispose(bool disposeTarget = false)
  64. {
  65. m_c1 = null;
  66. m_btnItem.Dispose();
  67. m_btnItem = null;
  68. m_btnProb.Dispose();
  69. m_btnProb = null;
  70. m_list = null;
  71. m_compText.Dispose();
  72. m_compText = null;
  73. m_txtPlayTimes = null;
  74. if(disposeTarget && target != null)
  75. {
  76. target.RemoveFromParent();
  77. target.Dispose();
  78. }
  79. target = null;
  80. }
  81. }
  82. }