|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-19 16:23:51
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-30 18:33:30
|
|
|
+ * @LastEditTime: 2025-05-06 15:25:59
|
|
|
* @Description: loading界面
|
|
|
*/
|
|
|
import { _decorator, Toggle } from "cc";
|
|
|
@@ -126,7 +126,6 @@ export class LoadingViewComp extends CCVMParentComp {
|
|
|
private onProgressCallback(finished: number, total: number, item: any) {
|
|
|
this.data.finished = finished;
|
|
|
this.data.total = total;
|
|
|
-
|
|
|
var progress = finished / total;
|
|
|
if (progress > this.progress) {
|
|
|
this.progress = progress;
|
|
|
@@ -139,7 +138,6 @@ export class LoadingViewComp extends CCVMParentComp {
|
|
|
// 获取用户信息的多语言提示文本
|
|
|
this.data.prompt = oops.language.getLangByID("loading_load_player");
|
|
|
await ModuleUtil.addViewUiAsync(smc.account, EliminateViewComp, UIID.Eliminate);
|
|
|
- // await ModuleUtil.addViewUiAsync(smc.account, EliminateView, UIID.Eliminate);
|
|
|
ModuleUtil.removeViewUi(this.ent, LoadingViewComp, UIID.Loading);
|
|
|
}
|
|
|
|
|
|
@@ -167,12 +165,14 @@ export class LoadingViewComp extends CCVMParentComp {
|
|
|
if (wxNode) {
|
|
|
wxNode.active = state;
|
|
|
}
|
|
|
-
|
|
|
- //load条相反
|
|
|
const loadNode = this.node.getChildByName("pro_progress");
|
|
|
+ const tipsNode = this.node.getChildByPath("pro_progress/tipsNode");
|
|
|
if (loadNode) {
|
|
|
loadNode.active = !state;
|
|
|
}
|
|
|
+ if (tipsNode) {
|
|
|
+ tipsNode.active = !state;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|