This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-10 03:56:07 +08:00
parent 9157e123b6
commit 620bcd3e53
36 changed files with 3246 additions and 32 deletions

View File

@@ -0,0 +1,24 @@
import { _decorator, Component, Node } from 'cc';
import { app, JNGLayerBase } from '../../App';
import { EditBox } from 'cc';
import { API } from '../../consts/API';
const { ccclass, property } = _decorator;
@ccclass('NoviceNamingView')
export class NoviceNamingView extends JNGLayerBase {
@property(EditBox)
text:EditBox;
//保存名称
async onSave(){
if(this.text.string){
await API.SavePlayerInfo(this.text.string);
//关闭页面
app.layer.CloseNode(this.node);
}
}
}