Commit a712afb2 authored by yu's avatar yu

1

parent 1504bddd
import ImgVoice from "../common/script/ImgVoice_hy14_pipei";
export let imageZize = {
width: 1100,
height: 572
width: 1300,
height: 700
}
......
This diff is collapsed.
......@@ -223,9 +223,10 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
cc.find("ScrollView", this.node).getComponent(cc.ScrollView).enabled = false;
this.layout_op.getComponent(cc.Layout).enabled = true;
let x = 0;
if (op.length > 12) x = 7680;
else if (op.length > 8) x = 5760;
else if (op.length > oplen) x = 3840;
// if (op.length > 12) x = 7680;
if (op.length > 12) x = 5760;
else if (op.length > 8) x = 3840;
else if (op.length > oplen) x = 1920;
let bottom = cc.find("bottom", this.node);
cc.tween(bottom).repeatForever(cc.tween().by(20, { x: -x })
.call(() => { bottom.x = -960 * scale; }))
......
......@@ -112,6 +112,31 @@ export const defaultData = {
"x": 721.31,
"y": 385.8
}
}, {
"id": "1689503722705",
"index": 3,
"text": "very big",
"audio_url": "http://staging-teach.cdn.ireadabc.com/bbeeed870b72301f4519e1750b7f34e7_l.mp3",
"itemType": "text",
"fontScale": 0.70625,
"imgScale": 1,
"imgSizeW": 0,
"imgSizeH": 0,
"mapScale": 0.70625,
"dragDot": {
"x": 452,
"y": 255.56541019955657
},
"gIdx": "0",
"fontSize": 50,
"fontName": "ahronbd-1",
"ontColor": "#8f3758",
"rect": {
"width": 137.03,
"height": 35.31,
"x": 721.31,
"y": 385.8
}
}
],
"npcTitle": "HY14",
......
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