Commit 8d989163 authored by Tt's avatar Tt

效果处理

parent 30955449
This diff is collapsed.
...@@ -246,7 +246,9 @@ cc.Class({ ...@@ -246,7 +246,9 @@ cc.Class({
const optionNum = this.data.question_arr[questionIdx].option_arr.length; const optionNum = this.data.question_arr[questionIdx].option_arr.length;
//TODO:copy---start //TODO:copy---start
const maxOptionHeight = 400; const maxOptionHeight = 400;
const maxOptionWidth = (canvasWidth * 0.8) / optionNum; const maxOptionWidth = (canvasWidth * 0.8) / optionNum > 300 ? 300 : (canvasWidth * 0.8) / optionNum;
const box_mid = cc.find('Canvas/bg/box_mid');
box_mid.removeAllChildren();
//TODO:copy---end //TODO:copy---end
const arr = randomSortByArr(this.data.question_arr[questionIdx].option_arr); const arr = randomSortByArr(this.data.question_arr[questionIdx].option_arr);
...@@ -329,6 +331,11 @@ cc.Class({ ...@@ -329,6 +331,11 @@ cc.Class({
return; return;
} }
//copy-start 把物品的父节点换到中间的box上。
const box_mid = cc.find('Canvas/bg/box_mid');
optionNode.parent = box_mid;
//copy-end
cc.tween(optionNode) cc.tween(optionNode)
.to(0.2, { x: 0, y: 100 }, cc.easing.quadOut) .to(0.2, { x: 0, y: 100 }, cc.easing.quadOut)
.start(); .start();
...@@ -498,8 +505,6 @@ cc.Class({ ...@@ -498,8 +505,6 @@ cc.Class({
onAnswerRight() { onAnswerRight() {
//TODO:copy
this.showFlower();
this.coolCatSpeakRight(() => { this.coolCatSpeakRight(() => {
//TODO:copy //TODO:copy
...@@ -543,6 +548,9 @@ cc.Class({ ...@@ -543,6 +548,9 @@ cc.Class({
}, 0.1 * 1000) }, 0.1 * 1000)
); );
} else { } else {
//TODO:copy
this.showFlower();
this.coolCatSpeakEnd(() => { this.coolCatSpeakEnd(() => {
this.submitBtnMoveOut(); this.submitBtnMoveOut();
this.showNextBtn(); this.showNextBtn();
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": -3.5,
"offsetY": -19, "offsetY": -20.5,
"trimX": 0, "trimX": 60,
"trimY": 38, "trimY": 41,
"width": 386, "width": 259,
"height": 258, "height": 255,
"rawWidth": 386, "rawWidth": 386,
"rawHeight": 296, "rawHeight": 296,
"borderTop": 0, "borderTop": 0,
......
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