收藏功能&排行榜功能
This commit is contained in:
@@ -76,6 +76,7 @@ export class PreloadUI extends Component {
|
||||
private progressNode: Node;
|
||||
|
||||
private loginLabel: Label;
|
||||
private guestLoginLabel: Label;
|
||||
private desc: Label;
|
||||
|
||||
// 视频播放状态跟踪
|
||||
@@ -93,12 +94,14 @@ export class PreloadUI extends Component {
|
||||
this.loginBtn.active = false;
|
||||
|
||||
this.guestLoginBtn = this._nodeTab.guestBtnLogin;
|
||||
this.loginBtn.active = false;
|
||||
this.guestLoginBtn.active = false;
|
||||
|
||||
this.appVersion.string = `app version: ${prodConfig.appVersion}`;
|
||||
this.VideoPlayer = this._nodeTab.VideoPlayer.getComponent(VideoPlayer);
|
||||
|
||||
this.loginLabel = this._nodeTab.loginLabel.getComponent(Label);
|
||||
this.guestLoginLabel = this._nodeTab.guestloginLabel.getComponent(Label);
|
||||
|
||||
this.desc = this._nodeTab.Desc.getComponent(Label);
|
||||
|
||||
// 设置视频为静音,提高移动端自动播放成功率
|
||||
@@ -140,14 +143,19 @@ export class PreloadUI extends Component {
|
||||
switch (LanguageUtils.CurrentLanguage) {
|
||||
case LanguageType.CN:
|
||||
this.loginLabel.string = "登录";
|
||||
this.guestLoginLabel.string = "游客登陆";
|
||||
this.desc.string = "释放你的所有欲望";
|
||||
break;
|
||||
case LanguageType.EN:
|
||||
this.loginLabel.string = "LOG IN";
|
||||
this.guestLoginLabel.string = "GUEST LOG IN";
|
||||
|
||||
this.desc.string = "Unleash All Your Desires";
|
||||
break;
|
||||
case LanguageType.HI:
|
||||
this.loginLabel.string = "लॉग इन";
|
||||
this.guestLoginLabel.string = "ज़ियारती लॉगिन";
|
||||
|
||||
this.desc.string = "अपनी सारी इच्छाओं को मुक्त करें";
|
||||
break;
|
||||
default:
|
||||
@@ -310,7 +318,7 @@ export class PreloadUI extends Component {
|
||||
this.preloadFinish = true;
|
||||
|
||||
//TODO:获取当前有无账号信息
|
||||
this.loginBtn.active = true;
|
||||
this.loginBtn.active = false;
|
||||
this.guestLoginBtn.active = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user