Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
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
dg18_tianci
Commits
5205da53
Commit
5205da53
authored
Dec 26, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整字号大小展示问题
parent
6f8602ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
134 deletions
+5
-134
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+4
-1
defaultData_dg18_tianci.ts
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
+1
-133
No files found.
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
5205da53
...
...
@@ -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
);
...
...
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
View file @
5205da53
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.842170943040401
e
-
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
"
,
...
...
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