mirror of
https://gitee.com/dgflash/oops-game-kit.git
synced 2026-06-08 05:22:16 +08:00
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: dgflash
|
||||
* @Date: 2022-07-22 17:06:22
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2023-07-25 17:53:47
|
||||
* @LastEditors: bansomin
|
||||
* @LastEditTime: 2024-03-31 01:20:18
|
||||
*/
|
||||
import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { AsyncQueue, NextFunction } from "../../../../../extensions/oops-plugin-framework/assets/libs/collection/AsyncQueue";
|
||||
@@ -93,7 +93,7 @@ export class InitResSystem extends ecs.ComblockSystem implements ecs.IEntityEnte
|
||||
/** 加载完成进入游戏内容加载界面 */
|
||||
private onComplete(queue: AsyncQueue, e: Initialize) {
|
||||
queue.complete = async () => {
|
||||
ModuleUtil.addView(e, LoadingViewComp, UIID.Loading);
|
||||
ModuleUtil.addViewUi(e, LoadingViewComp, UIID.Loading);
|
||||
e.remove(InitResComp);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: dgflash
|
||||
* @Date: 2021-07-03 16:13:17
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-08-10 18:07:35
|
||||
* @LastEditors: bansomin
|
||||
* @LastEditTime: 2024-03-31 01:17:02
|
||||
*/
|
||||
import { _decorator } from "cc";
|
||||
import { oops } from "../../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
@@ -77,8 +77,8 @@ export class LoadingViewComp extends CCVMParentComp {
|
||||
private async onCompleteCallback() {
|
||||
// 获取用户信息的多语言提示文本
|
||||
this.data.prompt = oops.language.getLangByID("loading_load_player");
|
||||
await ModuleUtil.addViewAsync(smc.account, DemoViewComp, UIID.Demo);
|
||||
ModuleUtil.removeView(this.ent, LoadingViewComp, UIID.Loading);
|
||||
await ModuleUtil.addViewUiAsync(smc.account, DemoViewComp, UIID.Demo);
|
||||
ModuleUtil.removeViewUi(this.ent, LoadingViewComp, UIID.Loading);
|
||||
}
|
||||
|
||||
reset(): void { }
|
||||
|
||||
Reference in New Issue
Block a user