Commit 5205da53 authored by Tt's avatar Tt

调整字号大小展示问题

parent 6f8602ef
......@@ -328,7 +328,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
node.x = targetData.pos.x;
node.y = targetData.pos.y;
pg.view.setColor(pg.view.find(node, 'text'), '#1D8B38')
let text = pg.view.find(node, 'text');
pg.view.setColor(text, '#1D8B38')
text.getComponent(cc.Label).fontSize = targetData.fontSize;
text.getComponent(cc.Label).overflow = cc.Label.Overflow.NONE;
let item = pg.view.clone(this.ani_star);
node.addChild(item);
......
export const defaultData =
{
"npcTitle": "",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/3b2c8fe71c2d8334e0f39bdd6ca7b920_l.mp3",
"npcAudioName": "把正确的单-迅捷文字转语音-1703127015594.mp3",
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/062790e2adc90579dc17b538b15afe8f_l.mp3",
"npcAudioEndName": "太棒了恭-迅捷文字转语音-1703127029111.mp3",
"questions": [
{
"options": [],
"hotZoneFontObj": {
"size": 50,
"name": "BRLNSR_1",
"color": "#8f3758"
},
"bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/f8742e7b03509739c2d623382d576b4d.png",
"rect": {
"x": 120.77634194831012,
"y": 0,
"width": 850.4473161033798,
"height": 355
}
},
"hotZoneItemArr": [
{
"index": 0,
"text": "child",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 272.96,
"y": 33.06,
"width": 133.99,
"height": 55.68
}
},
{
"index": 1,
"text": "curly",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 494.83,
"y": 18.27,
"width": 111.38,
"height": 69.61
}
},
{
"index": 2,
"text": "lady",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 327.77,
"y": 69.61,
"width": 174.02,
"height": 174.02
}
},
{
"index": 3,
"text": "straight",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 676.68,
"y": 60.91,
"width": 174.02,
"height": 174.02
}
},
{
"index": 4,
"text": "guy",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 252.95,
"y": 180.11,
"width": 174.02,
"height": 174.02
}
},
{
"index": 5,
"text": "colorful",
"itemType": "text",
"fontSize": 50,
"fontName": "BRLNSR_1",
"fontColor": "#8f3758",
"fontScale": 0.853125,
"imgScale": 1,
"mapScale": 0.853125,
"rect": {
"x": 520.07,
"y": 180.11,
"width": 174.02,
"height": 174.02
}
}
]
}
],
"bgItem": "",
"hotZoneItemArr": []
}
{"npcTitle":"","npcAudio":"http://teach.cdn.ireadabc.com/ae478b5350293109928af849f41dea0b_l.mp3","npcAudioName":"开始音频.mp3","npcAudioEnd":"http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3","npcAudioEndName":"结束音频.mp3","questions":[{"options":[],"hotZoneFontObj":{"size":50,"name":"BRLNSR_1","color":"#8f3758"},"bgItem":{"url":"http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png","rect":{"x":175.26254180602007,"y":2.842170943040401e-14,"width":742.4749163879599,"height":443.99999999999994}},"hotZoneItemArr":[{"index":0,"text":"extinction","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":84.24,"y":-32,"width":200,"height":200}},{"index":1,"text":"endangered","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":92.24,"y":55,"width":200,"height":200}},{"index":2,"text":"global warming","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":448.24,"y":-12,"width":200,"height":200}},{"index":3,"text":"threaten","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.85390625,"imgScale":1,"mapScale":0.85390625,"rect":{"x":439.24,"y":93,"width":200,"height":200}}]}],"bgItem":"","hotZoneItemArr":[]}
let mc = {
"npcTitle": "exit", "npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"npcAudioName": "boom_dg28_drag.mp3",
......
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