Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
OP_18
Commits
d649e8db
Commit
d649e8db
authored
Mar 10, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 识别参数
parent
e62b0390
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
496 additions
and
362 deletions
+496
-362
.DS_Store
.DS_Store
+0
-0
OP_18.js
assets/OP_18/scene/OP_18.js
+426
-142
defaultData.js
assets/OP_18/script/defaultData.js
+1
-2
icon_1.png
assets/OP_18/textures/icon_1.png
+0
-0
icon_1.png.meta
assets/OP_18/textures/icon_1.png.meta
+0
-36
icon_2.png
assets/OP_18/textures/icon_2.png
+0
-0
icon_2.png.meta
assets/OP_18/textures/icon_2.png.meta
+0
-36
icon_3.png
assets/OP_18/textures/icon_3.png
+0
-0
icon_3.png.meta
assets/OP_18/textures/icon_3.png.meta
+0
-36
icon_4.png
assets/OP_18/textures/icon_4.png
+0
-0
icon_4.png.meta
assets/OP_18/textures/icon_4.png.meta
+0
-36
icon_5.png
assets/OP_18/textures/icon_5.png
+0
-0
icon_5.png.meta
assets/OP_18/textures/icon_5.png.meta
+0
-36
icon_6.png
assets/OP_18/textures/icon_6.png
+0
-0
icon_6.png.meta
assets/OP_18/textures/icon_6.png.meta
+0
-36
form.component.html
form/src/app/form/form.component.html
+48
-2
form.component.ts
form/src/app/form/form.component.ts
+21
-0
No files found.
.DS_Store
View file @
d649e8db
No preview for this file type
assets/OP_18/scene/OP_18.js
View file @
d649e8db
This diff is collapsed.
Click to expand it.
assets/OP_18/script/defaultData.js
View file @
d649e8db
export
const
defaultData
=
{
"
write_big_0_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/443413d501c007c9a05c8f93416b60e1.mp3
"
,
"
write_big_1_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7cd79c2e777bc1b7c916fdb5e5e326a8.mp3
"
,
"
write_big_2_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0fd3a090c37a2c11bb8503908a1326f2.mp3
"
,
"
write_small_0_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0b2bac3cae824af3ace9c183115fcd15.mp3
"
,
"
write_small_1_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/9b28f76d7966d2ade83a746b7ac1664c.mp3
"
,
"
write_small_2_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/908269df525600b866042ab473a0b879.mp3
"
,
"
finish_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7be3761deb1c904e68a0cd3b47cd28d1.mp3
"
,
"
tip_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/52824b6c66664de8ee7b3bef3af5593f.mp3
"
,
"
letter
"
:
"
A
"
}
export
const
defaultData
=
{
"
write_big_0_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/443413d501c007c9a05c8f93416b60e1.mp3
"
,
"
write_big_1_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7cd79c2e777bc1b7c916fdb5e5e326a8.mp3
"
,
"
write_big_2_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0fd3a090c37a2c11bb8503908a1326f2.mp3
"
,
"
write_small_0_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/0b2bac3cae824af3ace9c183115fcd15.mp3
"
,
"
write_small_1_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/9b28f76d7966d2ade83a746b7ac1664c.mp3
"
,
"
write_small_2_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/908269df525600b866042ab473a0b879.mp3
"
,
"
finish_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7be3761deb1c904e68a0cd3b47cd28d1.mp3
"
,
"
tip_audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/52824b6c66664de8ee7b3bef3af5593f.mp3
"
,
"
letter
"
:
"
A
"
,
"
animArr
"
:[{
"
key
"
:
"
letter_big_0
"
,
"
title
"
:
"
大写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/25c3e44a24d2558fdd9d21bd020a12f7.json
"
,
"
name
"
:
"
A_big_color_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/b9f338ed66c1d683e606f6e17db1208f.json
"
,
"
name
"
:
"
A_big_color_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/6f00f2443f7b598d82479e85d1507b82.png
"
,
"
name
"
:
"
A_big_color_tex.png
"
}},{
"
key
"
:
"
letter_big_1
"
,
"
title
"
:
"
大写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/b8f88524300ff0c56f8c29307dccd202.json
"
,
"
name
"
:
"
A_big_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/f7e98e5a8d50ed84e285e2c664747cc2.json
"
,
"
name
"
:
"
A_big_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/ad5527e45a30b44f8238743055d0ae2b.png
"
,
"
name
"
:
"
A_big_tex.png
"
}},{
"
key
"
:
"
letter_small_0
"
,
"
title
"
:
"
小写彩色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/d59a88955bbfac24b682aea5ffdb159c.json
"
,
"
name
"
:
"
a_small_color_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/8f865752a7c35f5e2a421851b072ae72.json
"
,
"
name
"
:
"
a_small_color_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/1092894cb5a02d2c2d96803166fd4e79.png
"
,
"
name
"
:
"
a_small_color_tex.png
"
}},{
"
key
"
:
"
letter_small_1
"
,
"
title
"
:
"
小写黑色动画
"
,
"
skeJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/485d26f6e36426e2431a2c9a5ae33e14.json
"
,
"
name
"
:
"
a_small_ske.json
"
},
"
texJsonData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/10aa01d5bcb4c35ad3a4ff3a41204a2d.json
"
,
"
name
"
:
"
a_small_tex.json
"
},
"
texPngData
"
:{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/fca78056f7c139918484443a9bf7cca8.png
"
,
"
name
"
:
"
a_small_tex.png
"
}}],
"
letter_small_pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/f7f72381d37bb389c2b277bc79a197c3.png
"
,
"
letter_big_pic_url
"
:
"
http://staging-teach.cdn.ireadabc.com/3decbe2e9d3537c8db340af67fc69f54.png
"
,
"
dot_big_1_url
"
:
"
http://staging-teach.cdn.ireadabc.com/88695b362c7fd57c51ec4cfd71ae2e73.png
"
,
"
dot_big_2_url
"
:
"
http://staging-teach.cdn.ireadabc.com/b46a06ca66b373cdf7e129b026a6248d.png
"
,
"
dot_small_1_url
"
:
"
http://staging-teach.cdn.ireadabc.com/f4733b392faae330311cf8e95ca3e21f.png
"
,
"
dot_small_2_url
"
:
"
http://staging-teach.cdn.ireadabc.com/d62ead9ca6ce1ed29f08a5d28e8dd2ea.png
"
}
\ No newline at end of file
assets/OP_18/textures/icon_1.png
deleted
100644 → 0
View file @
e62b0390
1.31 KB
assets/OP_18/textures/icon_1.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "6cfc27c3-5eb1-40be-b7e2-e85c1fd66642",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_1": {
"ver": "1.0.4",
"uuid": "1ad30604-b532-4332-81a5-2d07bffbc702",
"rawTextureUuid": "6cfc27c3-5eb1-40be-b7e2-e85c1fd66642",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP_18/textures/icon_2.png
deleted
100644 → 0
View file @
e62b0390
1.41 KB
assets/OP_18/textures/icon_2.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "fe41dd10-7ea6-426c-9742-0b65a2f6e9d6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_2": {
"ver": "1.0.4",
"uuid": "e385c97d-e4e6-4287-b908-bfd378a095ca",
"rawTextureUuid": "fe41dd10-7ea6-426c-9742-0b65a2f6e9d6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP_18/textures/icon_3.png
deleted
100644 → 0
View file @
e62b0390
1.48 KB
assets/OP_18/textures/icon_3.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "8c74bdca-9bc4-47c6-a6bd-4416ec612b86",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_3": {
"ver": "1.0.4",
"uuid": "61908aeb-79c3-4d79-be26-e0ddecb23f9c",
"rawTextureUuid": "8c74bdca-9bc4-47c6-a6bd-4416ec612b86",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP_18/textures/icon_4.png
deleted
100644 → 0
View file @
e62b0390
1.37 KB
assets/OP_18/textures/icon_4.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "f2e5ba6b-cd8d-4052-82f1-38183cf635b2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_4": {
"ver": "1.0.4",
"uuid": "071b1a39-408a-4c42-bac7-0ac0d2f0f2f6",
"rawTextureUuid": "f2e5ba6b-cd8d-4052-82f1-38183cf635b2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP_18/textures/icon_5.png
deleted
100644 → 0
View file @
e62b0390
1.4 KB
assets/OP_18/textures/icon_5.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "6ca2770a-224f-457d-8c97-ad96a323ebe5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_5": {
"ver": "1.0.4",
"uuid": "d7837a05-9648-4134-8e45-6a431bcb5efb",
"rawTextureUuid": "6ca2770a-224f-457d-8c97-ad96a323ebe5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OP_18/textures/icon_6.png
deleted
100644 → 0
View file @
e62b0390
1.46 KB
assets/OP_18/textures/icon_6.png.meta
deleted
100644 → 0
View file @
e62b0390
{
"ver": "2.3.5",
"uuid": "b75d9c0a-5baf-4982-b889-f44270cdb020",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 94,
"height": 96,
"platformSettings": {},
"subMetas": {
"icon_6": {
"ver": "1.0.4",
"uuid": "194462d0-cbaa-4d72-ba2d-70975222d9e3",
"rawTextureUuid": "b75d9c0a-5baf-4982-b889-f44270cdb020",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 94,
"height": 96,
"rawWidth": 94,
"rawHeight": 96,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
d649e8db
...
...
@@ -67,10 +67,56 @@
></app-audio-recorder>
</div>
<div
style=
"width: 200px; margin-top: 15px;"
>
<span>
字母:
</span>
<div
style=
"width: 200px; margin-top: 15px;
display: flex; align-items: center;
"
>
<span
style=
"width: 50px;"
>
字母:
</span>
<input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
letter
"
(
blur
)="
save
()"
>
</div>
<div
*
ngFor=
"let anim of item.animArr"
style=
"width: 500px; margin-top: 15px; display: flex; align-items: center;"
>
<span
style=
"margin-right: 10px;"
>
{{anim.title}}:
</span>
<app-upload-dragon-bone
[
skeJsonData
]="
anim
.
skeJsonData
||
{}"
[
texJsonData
]="
anim
.
texJsonData
||
{}"
[
texPngData
]="
anim
.
texPngData
||
{}
"
(
save
)="
saveAnimArr
($
event
,
anim
)"
>
</app-upload-dragon-bone>
</div>
<div
style=
"width: 300px; margin-top: 20px;"
align=
'center'
>
<span>
大写字母点1:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
dot_big_1_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
dot_big_1_url
')"
>
</app-upload-image-with-preview>
</div>
<div
style=
"width: 300px; margin-top: 20px;"
align=
'center'
>
<span>
大写字母点2:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
dot_big_2_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
dot_big_2_url
')"
>
</app-upload-image-with-preview>
</div>
<div
style=
"width: 300px; margin-top: 20px;"
align=
'center'
>
<span>
小写字母点1:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
dot_small_1_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
dot_small_1_url
')"
>
</app-upload-image-with-preview>
</div>
<div
style=
"width: 300px; margin-top: 20px;"
align=
'center'
>
<span>
小写字母点2:
</span>
<app-upload-image-with-preview
[
picUrl
]="
item
.
dot_small_2_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
dot_small_2_url
')"
>
</app-upload-image-with-preview>
</div>
<!-- <div style="width: 300px;" align='center'>
...
...
form/src/app/form/form.component.ts
View file @
d649e8db
...
...
@@ -14,6 +14,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
// 储存对象
item
;
animArr
=
[
{
key
:
'
letter_big_0
'
,
title
:
'
大写彩色动画
'
},
{
key
:
'
letter_big_1
'
,
title
:
'
大写黑色动画
'
},
{
key
:
'
letter_small_0
'
,
title
:
'
小写彩色动画
'
},
{
key
:
'
letter_small_1
'
,
title
:
'
小写黑色动画
'
},
]
constructor
(
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
)
{
}
...
...
@@ -60,6 +67,20 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
init
()
{
if
(
!
this
.
item
.
animArr
)
{
this
.
item
.
animArr
=
this
.
animArr
;
}
}
saveAnimArr
(
data
,
anim
)
{
console
.
log
(
'
data:
'
,
data
);
console
.
log
(
'
anim:
'
,
anim
);
anim
[
"
skeJsonData
"
]
=
data
.
skeJsonData
;
anim
[
"
texJsonData
"
]
=
data
.
texJsonData
;
anim
[
"
texPngData
"
]
=
data
.
texPngData
;
this
.
save
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment