MainBossLaiXiCtrl.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using XGame.Framework.UI;
  7. namespace FL.FGUI
  8. {
  9. /// <summary>
  10. /// UI逻辑处理类
  11. /// </summary>
  12. /// <typeparam name=""></typeparam>
  13. public partial class MainBossLaiXiCtrl : UIController<MainBossLaiXiVM>
  14. {
  15. //private ITimer _closeTimer;
  16. protected override void OnEnable(object intent)
  17. {
  18. AddUIListenres();
  19. //AutoClose();
  20. }
  21. protected override void OnDisable()
  22. {
  23. RemoveUIListenres();
  24. //_closeTimer?.Cancel();
  25. //_closeTimer = null;
  26. }
  27. #region UI事件
  28. private void AddUIListenres()
  29. {
  30. }
  31. private void RemoveUIListenres()
  32. {
  33. }
  34. #endregion
  35. //private void AutoClose()
  36. //{
  37. // _closeTimer = Context.Time.AddDelayTimer(1000, () =>
  38. // {
  39. // _closeTimer = null;
  40. // Context.UI.Close(UIKeys.MainBossLaiXi);
  41. // });
  42. //}
  43. }
  44. }