Commit 1bf0a326 authored by 李维's avatar 李维

Bug fix

parent 9613e171
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
"_mute": false, "_mute": false,
"_isFullscreen": false, "_isFullscreen": false,
"_N$isFullscreen": false, "_N$isFullscreen": false,
"_stayOnBottom": false, "_stayOnBottom": true,
"videoPlayerEvent": [], "videoPlayerEvent": [],
"_N$keepAspectRatio": true, "_N$keepAspectRatio": true,
"_id": "e7ihO31y5FqJ0/0nd7CE1N" "_id": "e7ihO31y5FqJ0/0nd7CE1N"
......
...@@ -79,7 +79,9 @@ export default class GameLogic { ...@@ -79,7 +79,9 @@ export default class GameLogic {
initBg() { initBg() {
console.log(this.g_formData.theme) console.log(this.g_formData.theme)
const bgNode_A = cc.find('Canvas/bgMain/bg_A'); const bgNode_A = cc.find('Canvas/bgMain/bg_A');
bgNode_A.scale = this.g_systemOption.mapScaleMin; // bgNode_A.scale = this.g_systemOption.mapScaleMin;
bgNode_A.width = cc.winSize.width
bgNode_A.height = cc.winSize.height
if(this.g_formData.theme == "A") { if(this.g_formData.theme == "A") {
bgNode_A.active = true; bgNode_A.active = true;
} else { } else {
...@@ -87,8 +89,10 @@ export default class GameLogic { ...@@ -87,8 +89,10 @@ export default class GameLogic {
} }
const bgNode_D = cc.find('Canvas/bgMain/bg_D'); const bgNode_D = cc.find('Canvas/bgMain/bg_D');
bgNode_D.scale = this.g_systemOption.mapScaleMin; // bgNode_D.scale = this.g_systemOption.mapScaleMin;
if(this.g_formData.theme == "A") { bgNode_D.width = cc.winSize.width
bgNode_D.height = cc.winSize.height
if(this.g_formData.theme == "D") {
bgNode_D.active = true; bgNode_D.active = true;
} else { } else {
bgNode_D.active = false; bgNode_D.active = false;
......
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