Commit 97bfc7a5 authored by Tt's avatar Tt

结束按钮音频增加

parent 93cd0443
No preview for this file type
......@@ -106,18 +106,21 @@
},
{
"__id__": 214
},
{
"__id__": 240
}
],
"_active": true,
"_components": [
{
"__id__": 240
"__id__": 250
},
{
"__id__": 241
"__id__": 251
},
{
"__id__": 242
"__id__": 252
}
],
"_prefab": null,
......@@ -11474,6 +11477,485 @@
"_originalHeight": 1080,
"_id": "6fB2s/ivVDk5wqz8oiKP2R"
},
{
"__type__": "cc.Node",
"_name": "layout_xiaodi",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 241
},
{
"__id__": 243
}
],
"_active": false,
"_components": [
{
"__id__": 248
},
{
"__id__": 249
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "10ExnWNKlFHb853ayTcigG"
},
{
"__type__": "cc.Node",
"_name": "xiaodi_ske",
"_objFlags": 0,
"_parent": {
"__id__": 240
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 242
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 715,
"height": 943
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-763.697,
-258.151,
0,
0,
0,
0,
1,
0.5,
0.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4cho0sQDNIvoj4ojIYgF8l"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 241
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "d7e22480-212a-4046-a13c-d3e47671c571#2ed436ec-30f4-4e6d-9254-28dd8e873a94",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "d7e22480-212a-4046-a13c-d3e47671c571"
},
"_N$dragonAtlasAsset": {
"__uuid__": "2ed436ec-30f4-4e6d-9254-28dd8e873a94"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "0fbaIa555LLbbNM3lTk83h"
},
{
"__type__": "cc.Node",
"_name": "btn_go",
"_objFlags": 0,
"_parent": {
"__id__": 240
},
"_children": [
{
"__id__": 244
}
],
"_active": true,
"_components": [
{
"__id__": 246
},
{
"__id__": 247
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 257,
"height": 166
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-809.254,
53.652,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f7GS92cItEWrsQQHy6dDpj"
},
{
"__type__": "cc.Node",
"_name": "txt",
"_objFlags": 0,
"_parent": {
"__id__": 243
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 245
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 210,
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-8.677,
8.043,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "64tAVws9lAJ6BmBigyffjQ"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "离开",
"_N$string": "离开",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "fbdpkdJjpMJJb37lQUw1lx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ca2d006d-43bb-45e6-a710-8be1aa72b106"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fbxx90jhBFPIi0WacgBCrE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "a8fe2m4fVL5K4k1Bd6F21o"
},
{
"__type__": "d20b3PR3xdOhKc+EphyJ9PK",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 240
},
"_enabled": true,
"aniRole": {
"__id__": 241
},
"moveX": -500,
"_id": "bbcY+cfz1JV4GDr+KfbMbo"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 240
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 12,
"_left": 960,
"_right": 0,
"_top": 0,
"_bottom": 540,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "3faVB305RNIYm0piPqdF3H"
},
{
"__type__": "cc.Canvas",
"_name": "",
......
......@@ -2,6 +2,7 @@ import { asyncDelay, onHomeworkFinish, RandomInt } from "../script/util";
import { MyCocosSceneComponent } from "../script/MyCocosSceneComponent";
import Game, { GAME_STATE, Option, Question } from "./tool/dg10Game";
import pg from "./tool/pgdg10";
import dg_xiaodi from "./dg10_ty_xiaodi";
const { ccclass, property } = cc._decorator;
......@@ -142,6 +143,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
}
private onRestart() {
this.hideXiaodi();
this.playLocalAudio("btn");
this.layout_final.active = false;
this.label_time.getComponent(cc.Label).string = "00:00";
......@@ -359,6 +361,27 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.startSecond = false;
this.gameOver();
this.showFinal();
this.showXiaodi();
}
}
showXiaodi() {
if (!this.data.npcAudioEnd) return;
pg.view.touchOn(pg.view.find(this, 'layout_xiaodi/btn_go'), this.onTouchExit, this);
pg.view.setString(pg.view.find(this, 'layout_xiaodi/btn_go/txt'), this.data.npcAudioText)
pg.view.find(this, 'layout_xiaodi').active = true;
pg.view.find(this, 'layout_xiaodi').getComponent(dg_xiaodi).playOver(this.data.npcAudioEnd)
}
hideXiaodi() {
if (!this.data.npcAudioEnd) return;
pg.view.find(this, 'layout_xiaodi').active = false;
pg.view.find(this, 'layout_xiaodi').getComponent(dg_xiaodi).playOverEnd()
}
onTouchExit() {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.exitGame(null);
} else {
console.log("==触发返回事件==");
}
}
......
import pg from "./tool/pgdg10";
const { ccclass, property } = cc._decorator;
@ccclass
export default class dg_xiaodi extends cc.Component {
@property(cc.Node)
aniRole: cc.Node = null;
@property moveX: number = 500;
private defaultX: number;
onLoad() {
this.defaultX = this.aniRole.x;
}
private audioIdEnter: any;
playEnter(audioUrl) {
this.node.active = true;
let startX = this.defaultX + this.moveX;
this.aniRole.x = startX;
cc.tween(this.aniRole)
.call(() => {
pg.view.playDBAnimation(this.aniRole, 'run');
if (this.moveX < 0) {
this.aniRole.scaleX = -this.aniRole.scaleX;
}
})
.to(0.3, { x: this.defaultX })
.call(() => {
if (this.moveX < 0) {
this.aniRole.scaleX = -this.aniRole.scaleX;
}
pg.view.playDBAnimation(this.aniRole, 'talk');
pg.audio.playAudioByUrl(audioUrl, () => {
this.audioIdEnter = null;
pg.view.playDBAnimation(this.aniRole, 'normal');
}, audioId => {
this.audioIdEnter = audioId;
})
})
.start();
}
playEnterEnd() {
this.node.active = false;
if (this.audioIdEnter) {
cc.audioEngine.stopEffect(this.audioIdEnter)
}
}
private audioIdOver: any;
playOver(audioUrl) {
this.node.active = true;
pg.view.playDBAnimation(this.aniRole, 'talk');
pg.audio.playAudioByUrl(audioUrl, () => {
this.audioIdOver = null;
pg.view.playDBAnimation(this.aniRole, 'normal');
}, audioId => {
this.audioIdOver = audioId;
})
}
playOverEnd() {
this.node.active = false;
if (this.audioIdOver) {
cc.audioEngine.stopEffect(this.audioIdOver)
}
}
start() {
}
update(dt) {
}
}
{
"ver": "1.0.8",
"uuid": "d20b33d1-df17-4e84-a73e-12987227d3ca",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export const defaultData = {
"npcAudioText": "退出",
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/c14938125a52096dc0be9fbbf6638cb2_l.mp3",
"npcAudioEndName": "paomo_hy11_plp.mp3",
"title": "听音选择", "questions": [{
"audio": "http://staging-teach.cdn.ireadabc.com/c14938125a52096dc0be9fbbf6638cb2_l.mp3",
"time": null, "duration": "", "audioName": "进入下一题.mp3",
......
{
"ver": "1.1.2",
"uuid": "caf2b09f-abc5-486b-a9a9-eb9b0ca4f209",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0b02230b-0538-42eb-b07d-56231e24dca1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 265,
"height": 175,
"platformSettings": {},
"subMetas": {
"btn_go": {
"ver": "1.0.4",
"uuid": "ca2d006d-43bb-45e6-a710-8be1aa72b106",
"rawTextureUuid": "0b02230b-0538-42eb-b07d-56231e24dca1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -4,
"offsetY": 1.5,
"trimX": 0,
"trimY": 3,
"width": 257,
"height": 166,
"rawWidth": 265,
"rawHeight": 175,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "1.0.1",
"uuid": "d7e22480-212a-4046-a13c-d3e47671c571",
"subMetas": {}
}
\ No newline at end of file
{"width":2048,"height":2048,"name":"小迪","imagePath":"xiaodi_tex.png","SubTexture":[{"width":79,"y":210,"height":67,"name":"run/图层_73","x":1394},{"width":133,"y":810,"height":178,"name":"run/图层 61_0","x":1349},{"width":30,"y":1452,"height":71,"name":"run/图层_65","x":479},{"width":122,"y":1049,"height":99,"name":"run/图层44","x":1892},{"width":332,"y":1,"height":207,"name":"run/图层_64","x":1148},{"width":82,"y":670,"height":123,"name":"run/图层38(2)","x":1952},{"width":244,"y":210,"height":266,"name":"run/图层_68","x":1148},{"width":249,"y":1,"height":285,"name":"run/身体","x":897},{"width":71,"y":1526,"height":77,"name":"run/图层_66","x":156},{"width":87,"y":1607,"height":87,"name":"run/图层_72","x":156},{"width":241,"y":1295,"height":127,"name":"run/图层_61","x":1},{"width":454,"y":1,"height":413,"name":"run/头","x":1},{"width":48,"y":612,"height":47,"name":"run/嘴巴","x":1785},{"width":64,"y":664,"height":76,"name":"run/眼睛","x":1033},{"width":243,"y":428,"height":199,"name":"run/闭眼","x":441},{"width":64,"y":748,"height":76,"name":"run/半睁","x":1713},{"width":59,"y":1547,"height":15,"name":"run/图层_74","x":312},{"width":242,"y":1001,"height":130,"name":"run/眼镜","x":599},{"width":118,"y":928,"height":119,"name":"run/耳套","x":1892},{"width":126,"y":1355,"height":95,"name":"expect/左脚_0","x":390},{"width":126,"y":1165,"height":94,"name":"good/右脚","x":1420},{"width":196,"y":280,"height":263,"name":"expect/图层 45_0","x":1394},{"width":137,"y":734,"height":265,"name":"good/右腿","x":636},{"width":126,"y":1262,"height":95,"name":"expect/左脚","x":762},{"width":127,"y":1086,"height":94,"name":"good/左脚","x":1670},{"width":196,"y":478,"height":263,"name":"expect/图层_45","x":1127},{"width":143,"y":838,"height":265,"name":"good/左腿","x":255},{"width":153,"y":1424,"height":193,"name":"talk/图层_47","x":1},{"width":153,"y":743,"height":185,"name":"talk/右手前","x":1064},{"width":133,"y":930,"height":142,"name":"good/图层_46","x":1084},{"width":224,"y":798,"height":199,"name":"wave/图层43","x":838},{"width":167,"y":314,"height":176,"name":"expect/图层 37_2","x":1848},{"width":165,"y":670,"height":165,"name":"good/图层 35_0","x":1785},{"width":237,"y":314,"height":153,"name":"cheer/图层_37","x":1592},{"width":128,"y":1,"height":202,"name":"good/图层35_0","x":1909},{"width":199,"y":1137,"height":121,"name":"invite/图层_30","x":1219},{"width":219,"y":612,"height":134,"name":"cheer/图层 46_0","x":1564},{"width":197,"y":1033,"height":163,"name":"good/右手2_0","x":400},{"width":150,"y":1218,"height":104,"name":"good/图层34_0","x":1017},{"width":96,"y":1262,"height":110,"name":"expect/图层 39_1","x":890},{"width":71,"y":1374,"height":90,"name":"good/图层40","x":834},{"width":152,"y":915,"height":138,"name":"invite/图层 31_0","x":1484},{"width":80,"y":560,"height":102,"name":"good/图层_36","x":1033},{"width":88,"y":1421,"height":92,"name":"talk/图层42","x":608},{"width":100,"y":1165,"height":92,"name":"wave/图层42","x":1548},{"width":90,"y":1086,"height":87,"name":"cheer/图层42_0","x":1799},{"width":88,"y":1355,"height":92,"name":"cheer/图层42_1","x":518},{"width":193,"y":629,"height":236,"name":"good/图层 44_0","x":441},{"width":167,"y":492,"height":176,"name":"expect/图层 37_1","x":1848},{"width":132,"y":1074,"height":142,"name":"good/图层 46_0","x":1084},{"width":199,"y":1014,"height":121,"name":"invite/图层 30_0","x":1219},{"width":165,"y":748,"height":165,"name":"good/图层_35","x":1546},{"width":206,"y":1198,"height":155,"name":"talk/图层_46","x":400},{"width":128,"y":810,"height":202,"name":"good/图层35","x":1219},{"width":252,"y":838,"height":161,"name":"wave/图层43_0","x":1},{"width":219,"y":674,"height":134,"name":"cheer/图层_46","x":1325},{"width":231,"y":1001,"height":164,"name":"cheer/图层 37_0","x":1},{"width":197,"y":867,"height":164,"name":"good/右手2","x":400},{"width":76,"y":1505,"height":100,"name":"good/图层47_0","x":234},{"width":228,"y":288,"height":270,"name":"good/身体","x":897},{"width":149,"y":1105,"height":174,"name":"wave/图层_45","x":248},{"width":96,"y":1359,"height":110,"name":"expect/图层 39_2","x":736},{"width":193,"y":560,"height":236,"name":"good/图层_44","x":838},{"width":90,"y":1607,"height":84,"name":"cheer/图层42","x":245},{"width":79,"y":1449,"height":102,"name":"good/图层 36_0","x":518},{"width":152,"y":1133,"height":138,"name":"invite/图层_31","x":608},{"width":87,"y":1471,"height":91,"name":"cheer/图层42_2","x":390},{"width":84,"y":1182,"height":84,"name":"talk/图层40","x":1650},{"width":86,"y":1619,"height":84,"name":"wave/图层_44","x":1},{"width":71,"y":1324,"height":90,"name":"good/图层40_0","x":1062},{"width":29,"y":838,"height":20,"name":"wave/图层_25","x":400},{"width":438,"y":416,"height":420,"name":"good/头","x":1},{"width":221,"y":1564,"height":32,"name":"expect/眉毛","x":312},{"width":220,"y":1357,"height":23,"name":"invite/眉毛","x":1357},{"width":220,"y":1341,"height":25,"name":"good/眉毛","x":1135},{"width":220,"y":1330,"height":25,"name":"talk/眉毛","x":1415},{"width":43,"y":280,"height":32,"name":"wave/张嘴","x":1660},{"width":44,"y":1150,"height":17,"name":"good/闭嘴","x":1891},{"width":70,"y":1505,"height":40,"name":"cheer/张嘴","x":312},{"width":57,"y":902,"height":22,"name":"cheer/闭嘴","x":1954},{"width":70,"y":1133,"height":40,"name":"expect/张嘴","x":762},{"width":66,"y":280,"height":26,"name":"expect/闭嘴","x":1592},{"width":44,"y":990,"height":17,"name":"invite/闭嘴","x":1349},{"width":44,"y":1218,"height":26,"name":"invite/张嘴","x":1169},{"width":44,"y":1452,"height":17,"name":"talk/闭嘴","x":390},{"width":44,"y":990,"height":26,"name":"talk/张嘴","x":1420},{"width":44,"y":1018,"height":26,"name":"good/张嘴","x":1420},{"width":43,"y":1046,"height":26,"name":"wave/闭嘴","x":1420},{"width":44,"y":690,"height":26,"name":"good/张嘴_0","x":636},{"width":239,"y":837,"height":89,"name":"wave/闭眼","x":1713},{"width":252,"y":1007,"height":77,"name":"good/半睁","x":1638},{"width":245,"y":1167,"height":126,"name":"wave/睁眼_0","x":1},{"width":247,"y":1175,"height":30,"name":"good/闭眼","x":1799},{"width":237,"y":545,"height":127,"name":"wave/睁眼","x":1325},{"width":244,"y":1302,"height":37,"name":"cheer/闭眼","x":1169},{"width":253,"y":1183,"height":77,"name":"expect/睁眼","x":762},{"width":248,"y":1086,"height":77,"name":"good/睁眼","x":1420},{"width":244,"y":1261,"height":37,"name":"invite/闭眼","x":1403},{"width":252,"y":928,"height":77,"name":"good/睁眼_0","x":1638},{"width":39,"y":629,"height":59,"name":"expect/图层 36_0","x":636},{"width":39,"y":478,"height":59,"name":"expect/图层_36","x":1325},{"width":126,"y":1324,"height":95,"name":"point/左脚","x":608},{"width":150,"y":428,"height":304,"name":"point/左腿","x":686},{"width":125,"y":205,"height":103,"name":"point/右脚","x":1909},{"width":186,"y":1,"height":311,"name":"point/右腿","x":1721},{"width":87,"y":795,"height":105,"name":"point/图层42","x":1954},{"width":254,"y":469,"height":141,"name":"point/已插入图像_1","x":1592},{"width":76,"y":1424,"height":100,"name":"point/图层47","x":156},{"width":237,"y":1,"height":277,"name":"point/身体","x":1482},{"width":76,"y":1268,"height":92,"name":"point/图层34","x":1650},{"width":438,"y":1,"height":425,"name":"point/头","x":457},{"width":239,"y":1091,"height":90,"name":"point/睁眼","x":843},{"width":239,"y":999,"height":90,"name":"point/半睁","x":843},{"width":232,"y":1260,"height":40,"name":"point/闭眼","x":1169},{"width":223,"y":1300,"height":28,"name":"point/眉毛","x":1415},{"width":63,"y":1183,"height":30,"name":"point/嘴巴1","x":1017},{"width":24,"y":742,"height":41,"name":"point/嘴巴2","x":1033},{"width":144,"y":1295,"height":208,"name":"point/已插入图像","x":244},{"width":72,"y":1324,"height":90,"name":"point/已插入图像_0","x":988}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "2ed436ec-30f4-4e6d-9254-28dd8e873a94",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{
"ver": "2.3.5",
"uuid": "2e62d2ae-ce0a-4609-9ea6-e85ea2a0ad20",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 2048,
"platformSettings": {},
"subMetas": {
"xiaodi_tex": {
"ver": "1.0.4",
"uuid": "38669441-2a42-4371-9c96-22ffdde9c778",
"rawTextureUuid": "2e62d2ae-ce0a-4609-9ea6-e85ea2a0ad20",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 172,
"trimX": 1,
"trimY": 1,
"width": 2045,
"height": 1702,
"rawWidth": 2048,
"rawHeight": 2048,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -78,6 +78,22 @@
<div class="border-dashed" style="margin: 20px;width: 1000px;">
<span style="font-size: 20px;">标题文字: </span>
<input type="text" nz-input [(ngModel)]="item.title" (blur)="save()">
<span style="font-size: 20px;">结束按钮文字: </span>
<input type="text" nz-input [(ngModel)]="item.npcAudioText" (blur)="save()">
<span style="font-size: 20px;">结束音频: </span>
<div style="display:flex ;">
<div>
<app-audio-recorder [audioUrl]="item.npcAudioEnd"
(audioUploaded)="onAudioUploadSuccess($event, 'npcAudioEnd',item,'npcAudioEndName')">
</app-audio-recorder>
</div>
<div style="margin: 5px">
<span>{{ item.npcAudioEndName}}</span>
</div>
</div>
</div>
<!-- 题目区 -->
......
......@@ -16,6 +16,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
item: any = {
title: '听音选择',
questions: [],
npcAudioText: "",
npcAudioEnd: "",
npcAudioEndName: "",
};
isVisible = false;
......
......@@ -4,5 +4,6 @@
"name": "play",
"id": "9af72fd2-44a6-4131-8ea3-3e1b3fa22231",
"version": "2.4.5",
"isNew": false
"isNew": false,
"description": ""
}
\ No newline at end of file
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