Commit 6a35ea4d authored by Chen Jiping's avatar Chen Jiping

fix:修复缺少阴影的问,及圆角不滑的问题

parent 8ccb5248
...@@ -95,13 +95,22 @@ export class Exercises { ...@@ -95,13 +95,22 @@ export class Exercises {
cardBg.alpha = 0; cardBg.alpha = 0;
this.cardBg = cardBg; this.cardBg = cardBg;
const bigCard1 = new ShapeRectNew();
bigCard1.setOutLine(outLineColor, 25 * scaleY);
bigCard1.setSize(width, height, 25 * scaleY);
bigCard1.x = -width / 2;
bigCard1.y = -height / 2;
bigCard1.fillColor = "#ffffff";
bigCard1.setShadow(0, 10 * this.scaleY , 20, 'rgba(0, 0, 0, 0.5)');
cardBg.addChild(bigCard1);
const bigCard = new ShapeRectNew(); const bigCard = new ShapeRectNew();
bigCard.setOutLine(outLineColor, 20 * scaleY); bigCard.setOutLine(outLineColor, 20 * scaleY);
bigCard.setSize(width, height, 25 * scaleY); bigCard.setSize(width, height, 25 * scaleY);
bigCard.x = -width / 2; bigCard.x = -width / 2;
bigCard.y = -height / 2; bigCard.y = -height / 2;
bigCard.fillColor = "#ffffff";
this.bigCard = bigCard; this.bigCard = bigCard;
cardBg.addChild(bigCard); cardBg.addChild(bigCard);
this.initBigCard1(bigCard, skin); this.initBigCard1(bigCard, skin);
...@@ -339,6 +348,7 @@ export class Exercises { ...@@ -339,6 +348,7 @@ export class Exercises {
constantBg.fillColor = '#ffffff'; constantBg.fillColor = '#ffffff';
constantBg.alpha = 1; constantBg.alpha = 1;
constantBg.visible = false; constantBg.visible = false;
constantBg.x = 20 * parent.scaleX; constantBg.x = 20 * parent.scaleX;
constantBg.y = 20 * parent.scaleY; constantBg.y = 20 * parent.scaleY;
parent.addChild(constantBg); parent.addChild(constantBg);
......
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