Commit 2fdee47b authored by yu's avatar yu

1

parent 42363167
...@@ -3589,7 +3589,7 @@ ...@@ -3589,7 +3589,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
6, 6.497,
0, 0,
0, 0,
0, 0,
......
...@@ -699,6 +699,7 @@ cc.Class({ ...@@ -699,6 +699,7 @@ cc.Class({
layout_card.removeAllChildren(); layout_card.removeAllChildren();
let r = [239, 0, 135]; let r = [239, 0, 135];
let l = [2, 171, 241]; let l = [2, 171, 241];
layout_card.getComponent(cc.Layout).spacingX = 15;
content.forEach((item) => { content.forEach((item) => {
let cCard = cc.instantiate(card); let cCard = cc.instantiate(card);
layout_card.addChild(cCard); layout_card.addChild(cCard);
...@@ -751,7 +752,11 @@ cc.Class({ ...@@ -751,7 +752,11 @@ cc.Class({
item.getComponent(cc.Sprite).enabled = false; item.getComponent(cc.Sprite).enabled = false;
// cc.tween(item).to(0.5, { opacity: 0 }).start(); // cc.tween(item).to(0.5, { opacity: 0 }).start();
}) })
layout_card.getComponent(cc.Layout).spacingX = -50;
layout_card.getComponent(cc.Layout).updateLayout();
setTimeout(() => {
card_bg2.width = layout_card.width;
}, 30);
}, },
setCardColor(progress) { setCardColor(progress) {
let layout_card = cc.find("card_group/layout_card", this.node); let layout_card = cc.find("card_group/layout_card", this.node);
......
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