更新登录

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-08 02:32:54 +08:00
parent 0b9cf0ea9b
commit c4e2798430
34 changed files with 3330 additions and 53 deletions

View File

@@ -0,0 +1,35 @@
import { _decorator, Component, Node } from 'cc';
import JNLayerBase from '../../../../../extensions/ngame/assets/ngame/ui/base/JNLayerBase';
import { app } from '../../../App';
import { Label } from 'cc';
const { ccclass, property } = _decorator;
export interface TipsArgs{
text?:string; //内容
time?:number; //显示时间
}
@ccclass('TipsView')
export class TipsView extends JNLayerBase {
@property(Label)
text:Label;
onJNLoad(data: TipsArgs = {}): void {
if(!data) data = {};
data.text = data.text || "这是一个提示";
data.time = data.time || 3;
//显示弹窗内容
this.text.string = data.text;
this.scheduleOnce(() => {
this.onJNClose();
},data.time)
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "76584604-effd-4af6-b3ef-7246a8c37260",
"files": [],
"subMetas": {},
"userData": {}
}