ui替换
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
// 跳转到登录场景
|
||||
|
||||
Reference in New Issue
Block a user