Commit f1840487 authored by 范雪寒's avatar 范雪寒

feat:

parent f3af96ba
......@@ -256,6 +256,7 @@ cc.Class({
this.loadLocalBundle(address, port);
this.showWaitingLetters();
this.hideUI();
this.showDebugUI();
});
const BtnStartOnline = cc.find('middleLayer/ui/BtnStartOnline');
......@@ -266,6 +267,7 @@ cc.Class({
const bundleName = nameText.getComponent(cc.EditBox).string;
cc.sys.localStorage.setItem('bundleName', bundleName);
this.loadOnlineBundle(bundleName);
this.showDebugUI();
});
const BtnStartCourseWare = cc.find('middleLayer/ui/BtnStartCourseWare');
......@@ -274,6 +276,7 @@ cc.Class({
const courseId = courseIdNode.getComponent(cc.EditBox).string;
cc.sys.localStorage.setItem('courseId', courseId);
this.loadOnlineCourseWare(courseId);
this.showDebugUI();
});
const BtnLoad = cc.find('middleLayer/ui/BtnLoad');
......@@ -442,12 +445,12 @@ cc.Class({
}
cc.audioEngine.stopAll();
cc.director.runScene(scene, null, () => {
this.hideMask();
console.log('sceneName = ' + sceneName);
const Canvas = cc.find('Canvas');
const middleLayer = cc.find('middleLayer');
cc.find('middleLayer/ExitBtn').active = true;
this.hideWaitingLetters();
this.hideMask();
Canvas.getComponent(cc.Widget).updateAlignment();
middleLayer.scale = Canvas.width / middleLayer.width;
// this.showLog('middleLayer.scale = ' + middleLayer.scale);
......@@ -523,7 +526,8 @@ cc.Class({
showWaitingLetters() {
const colorList = this.getRainbowColorList();
const layout = cc.find('middleLayer/layout');
// layout.active = true;
layout.removeAllChildren();
layout.active = true;
const str = 'Now Loading...';
str.split('').forEach((word, idx) => {
const node = new cc.Node();
......@@ -563,6 +567,10 @@ cc.Class({
}
},
showDebugUI() {
cc.find('middleLayer/ConsoleNode/BtnOpen').active = true;
},
showOneLog() {
const str = this.logList[0];
if (str === undefined) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment