增加版本号配置
This commit is contained in:
@@ -45,6 +45,7 @@ import { PlayerDataService } from "../../chat18x/network/services/PlayerDataServ
|
||||
import proto from "db://assets/Scripts/proto/proto.pb.js";
|
||||
import { ViewManager } from "../../Main/Manager/ViewManager";
|
||||
import { MainScene } from "../MainScene";
|
||||
import { prodConfig } from "../../chat18x/config/env/prod";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -62,13 +63,16 @@ export class PreloadUI extends Component {
|
||||
private jinduBar: Node = null;
|
||||
private jinduFilled: Sprite = null;
|
||||
private VideoPlayer: VideoPlayer;
|
||||
|
||||
private appVersion: Label;
|
||||
start() {
|
||||
//Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt)
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
|
||||
this.appVersion = this._nodeTab.appVersion.getComponent(Label);
|
||||
this.loginBtn = this._nodeTab.btnLogin;
|
||||
this.loginBtn.active = false;
|
||||
|
||||
this.appVersion.string = `app version: ${prodConfig.appVersion}`;
|
||||
this.VideoPlayer = this._nodeTab.VideoPlayer.getComponent(VideoPlayer);
|
||||
|
||||
GButton.BandClick(this.loginBtn, this.onLogin, this);
|
||||
|
||||
Reference in New Issue
Block a user