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

Bug fix

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