RushSaleGiftBoxView.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using ET;
  5. using FairyGUI;
  6. using UI.EnduringGiftBox;
  7. using UnityEngine;
  8. namespace GFGGame
  9. {
  10. //圆形样式的限时礼包
  11. // 4类型-圆形样式:等级条件的数据
  12. // 5类型-圆形样式:时间条件的数据
  13. public class RushSaleGiftBoxView : BaseWindow
  14. {
  15. private UI_RushSaleGiftBoxUI _ui;
  16. private int _type; //决定数据的类型 --等级条件的数据,时间条件的数据
  17. protected override void OnInit()
  18. {
  19. base.OnInit();
  20. }
  21. public override void Dispose()
  22. {
  23. if (_ui != null)
  24. {
  25. _ui.Dispose();
  26. _ui = null;
  27. }
  28. base.Dispose();
  29. }
  30. protected override void OnShown()
  31. {
  32. base.OnShown();
  33. AddEffect();
  34. UpdateView();
  35. }
  36. protected override void AddEventListener()
  37. {
  38. base.AddEventListener();
  39. }
  40. protected override void RemoveEventListener()
  41. {
  42. base.RemoveEventListener();
  43. }
  44. private void AddEffect()
  45. {
  46. }
  47. private void UpdateView()
  48. {
  49. }
  50. private void ListItemRender(int index, GObject obj)
  51. {
  52. }
  53. private void ChildListItemRender(int index, GObject obj)
  54. {
  55. }
  56. protected override void OnHide()
  57. {
  58. this.RemoveEventListener();
  59. Dispose();
  60. base.Hide();
  61. }
  62. private void OnClickBtnCancel()
  63. {
  64. this.Hide();
  65. }
  66. }
  67. }