This commit is contained in:
2025-10-09 18:26:04 +08:00
parent 6f809504a7
commit db64aaedb3
567 changed files with 45488 additions and 21648 deletions
+4 -1
View File
@@ -15,6 +15,7 @@ import {
ProgressBar,
Sprite,
SpriteFrame,
Vec3,
VideoPlayer,
} from "cc";
import { GButton } from "../../Main/Common/GButton";
@@ -70,12 +71,13 @@ export class PreloadUI extends Component {
private VideoPlayer: VideoPlayer;
private appVersion: Label;
private progressNode: Node;
start() {
//Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt)
Utils.parseNode(this.node, this._nodeTab);
// 添加新的事件监听
this.progressNode = this._nodeTab.progress;
this.appVersion = this._nodeTab.appVersion.getComponent(Label);
this.loginBtn = this._nodeTab.btnLogin;
this.loginBtn.active = false;
@@ -191,6 +193,7 @@ export class PreloadUI extends Component {
//显示加载进度
showLoadProgress(percent) {
this.jinduFilled.fillRange = percent;
this.progressNode.setPosition(new Vec3(percent * 546, 0, 0));
}
// 跳转到登录场景