Commit bba94278 authored by 李维's avatar 李维

Test on platform

parent 38759fc4
...@@ -591,8 +591,7 @@ cc.Class({ ...@@ -591,8 +591,7 @@ cc.Class({
const bgNode = cc.instantiate(this.bgNode); const bgNode = cc.instantiate(this.bgNode);
bgNode.parent = letterNodeBase; bgNode.parent = letterNodeBase;
bgNode.zIndex = -1; bgNode.zIndex = -1;
bgNode.width = cc.winSize.width //this.node.width / letterNodeBase.scaleY; bgNode.width = this.node.width / letterNodeBase.scaleY;
bgNode.height = cc.winSize.height
bgNode.addComponent(cc.Button); bgNode.addComponent(cc.Button);
bgNode.on('click', () => { }); bgNode.on('click', () => { });
...@@ -604,10 +603,14 @@ cc.Class({ ...@@ -604,10 +603,14 @@ cc.Class({
for(let i=1; i<=5; i++) { for(let i=1; i<=5; i++) {
if(i==this._lastMainBg) { if(i==this._lastMainBg) {
bgNode.getChildByName(`bgMain (${i})`).active = true; bgNode.getChildByName(`bgMain (${i})`).active = true;
bgNode.getChildByName(`bgMain (${i})`).width = cc.winSize.width
bgNode.getChildByName(`bgMain (${i})`).height = cc.winSize.height
} else { } else {
bgNode.getChildByName(`bgMain (${i})`).active = false; bgNode.getChildByName(`bgMain (${i})`).active = false;
} }
} }
this._lastMainBg++; this._lastMainBg++;
if(this._lastMainBg==6) { if(this._lastMainBg==6) {
this._lastMainBg = 1; this._lastMainBg = 1;
......
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