WarmReminder.ts 857 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-04-18 19:10:06
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-04-28 16:29:31
  6. * @Description:
  7. */
  8. import { _decorator, Component, Node } from 'cc';
  9. import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
  10. import { UIID } from '../../common/config/GameUIConfig';
  11. import { oops } from 'db://oops-framework/core/Oops';
  12. import { GameEvent } from '../../common/config/GameEvent';
  13. const { ccclass, property } = _decorator;
  14. @ccclass('WarmReminder')
  15. export class WarmReminder extends GameComponent {
  16. start() {
  17. this.setButton();
  18. oops.message.dispatchEvent(GameEvent.updateGameState, "paused");
  19. }
  20. btn_confirm() {
  21. oops.gui.remove(UIID.WarmReminder);
  22. //打开福利一
  23. oops.gui.open(UIID.WelfareOne);
  24. }
  25. }