You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
|
|
//*********************
|
|
// create by 流云
|
|
// time: Tue Jan 13 2026
|
|
// desc:
|
|
//*********************
|
|
import { _decorator, Component, Node, find, ScrollView, RichText } from 'cc';
|
|
import { Auto_PopNotice } from './Auto_PopNotice';
|
|
import { sdkConfig } from '../../sdk/sdkConfig';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('UIPopNotice')
|
|
export class UIPopNotice extends Auto_PopNotice {
|
|
|
|
onLoad(): void {
|
|
super.onLoad();
|
|
}
|
|
|
|
onEnable(): void {
|
|
super.onEnable();
|
|
this.ui_bgMask.on(Node.EventType.TOUCH_END, this.onClickClose, this);
|
|
}
|
|
|
|
onDisable(): void {
|
|
super.onDisable();
|
|
this.ui_bgMask.off(Node.EventType.TOUCH_END, this.onClickClose, this);
|
|
}
|
|
|
|
onInit(): void {
|
|
this.showOpenCenterEff();
|
|
this.showOpenMaskEff(2);
|
|
this.lb_title.string = sdkConfig.config.vsion + gg.lang.get('版本更新公告');
|
|
this.node.getComponentInChildren(RichText).string = gg.lang.get('版本更新内容');
|
|
}
|
|
|
|
onClickClose(): void {
|
|
this.close(2);
|
|
}
|
|
}
|
|
|