update
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
|||||||
ProgressBar,
|
ProgressBar,
|
||||||
Sprite,
|
Sprite,
|
||||||
SpriteFrame,
|
SpriteFrame,
|
||||||
|
VideoPlayer,
|
||||||
} from "cc";
|
} from "cc";
|
||||||
import { GButton } from "../../Main/Common/GButton";
|
import { GButton } from "../../Main/Common/GButton";
|
||||||
import ResManager from "../../Main/Manager/ResManager";
|
import ResManager from "../../Main/Manager/ResManager";
|
||||||
@@ -60,7 +61,7 @@ export class PreloadUI extends Component {
|
|||||||
loginBtn: Node;
|
loginBtn: Node;
|
||||||
private jinduBar: Node = null;
|
private jinduBar: Node = null;
|
||||||
private jinduFilled: Sprite = null;
|
private jinduFilled: Sprite = null;
|
||||||
|
private VideoPlayer: VideoPlayer;
|
||||||
start() {
|
start() {
|
||||||
//Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt)
|
//Utils.addInnerEL(InnerMsgCode.UI_ShowPrompt, this, this.resiveShowPrompt)
|
||||||
Utils.parseNode(this.node, this._nodeTab);
|
Utils.parseNode(this.node, this._nodeTab);
|
||||||
@@ -68,6 +69,8 @@ export class PreloadUI extends Component {
|
|||||||
this.loginBtn = this._nodeTab.btnLogin;
|
this.loginBtn = this._nodeTab.btnLogin;
|
||||||
this.loginBtn.active = false;
|
this.loginBtn.active = false;
|
||||||
|
|
||||||
|
this.VideoPlayer = this._nodeTab.VideoPlayer.getComponent(VideoPlayer);
|
||||||
|
|
||||||
GButton.BandClick(this.loginBtn, this.onLogin, this);
|
GButton.BandClick(this.loginBtn, this.onLogin, this);
|
||||||
|
|
||||||
this.jinduBar = this.node.getChildByName("jinduBar");
|
this.jinduBar = this.node.getChildByName("jinduBar");
|
||||||
@@ -81,6 +84,8 @@ export class PreloadUI extends Component {
|
|||||||
|
|
||||||
this.jinduFilled.fillRange = 0;
|
this.jinduFilled.fillRange = 0;
|
||||||
|
|
||||||
|
if (!this.VideoPlayer.isPlaying) this.VideoPlayer.play();
|
||||||
|
|
||||||
// 初始化配置
|
// 初始化配置
|
||||||
ConfigManager.I.init();
|
ConfigManager.I.init();
|
||||||
//console.log(ConfigManager.tables.TbGlobalConfig.GameName);
|
//console.log(ConfigManager.tables.TbGlobalConfig.GameName);
|
||||||
@@ -254,10 +259,12 @@ export class PreloadUI extends Component {
|
|||||||
let res = await CommonService.I.reqResConfig(reqData);
|
let res = await CommonService.I.reqResConfig(reqData);
|
||||||
if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
|
if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
|
||||||
// 保存数据
|
// 保存数据
|
||||||
const aiCharacterData = DataManager.I.getDataById<AiCharacterData>(DataId.AiCharacter);
|
const aiCharacterData = DataManager.I.getDataById<AiCharacterData>(
|
||||||
|
DataId.AiCharacter
|
||||||
|
);
|
||||||
aiCharacterData.aiCharacter = res.data;
|
aiCharacterData.aiCharacter = res.data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private enterGame() {
|
private enterGame() {
|
||||||
this.mainScene.init();
|
this.mainScene.init();
|
||||||
|
|||||||
+1
-1
Submodule xchat_cfg updated: efa86a170d...cbc3df1ca2
Reference in New Issue
Block a user