KindTipsView.ts 844 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * @Author: mojunshou 1637302775@qq.com
  3. * @Date: 2025-03-19 18:02:51
  4. * @LastEditors: mojunshou 1637302775@qq.com
  5. * @LastEditTime: 2025-03-19 18:34:59
  6. * @Description: 隐私政策弹窗
  7. */
  8. import { _decorator, Component, Node } from 'cc';
  9. import { oops } from 'db://oops-framework/core/Oops';
  10. import { GameComponent } from 'db://oops-framework/module/common/GameComponent';
  11. import { UIID } from '../config/GameUIConfig';
  12. const { ccclass, property } = _decorator;
  13. @ccclass('KindTipsView')
  14. export class KindTipsView extends GameComponent {
  15. start() {
  16. this.setButton();
  17. }
  18. update(deltaTime: number) {
  19. }
  20. private btn_agree() {
  21. console.log("同意");
  22. }
  23. private btn_disagree() {
  24. console.log("不同意");
  25. //打开新的挽留弹窗
  26. oops.gui.open(UIID.Retention);
  27. }
  28. }