Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn19_read
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
sn19_read
Commits
b3a9e6f0
Commit
b3a9e6f0
authored
Nov 15, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理位置坐标等问题
parent
426ea164
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
sn19_read.fire
assets/sn19_read/scene/sn19_read.fire
+2
-2
sn19_read.ts
assets/sn19_read/scene/sn19_read.ts
+14
-7
bg_bg_sn19_read.jpg
assets/sn19_read/textures/sn19/bg_bg_sn19_read.jpg
+0
-0
No files found.
assets/sn19_read/scene/sn19_read.fire
View file @
b3a9e6f0
...
@@ -5215,7 +5215,7 @@
...
@@ -5215,7 +5215,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-
414.489
,
-
396.6
,
0,
0,
0,
0,
0,
0,
...
@@ -5288,7 +5288,7 @@
...
@@ -5288,7 +5288,7 @@
"_left": 0,
"_left": 0,
"_right": 0,
"_right": 0,
"_top": 0,
"_top": 0,
"_bottom":
75.11100000000005
,
"_bottom":
93
,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
...
assets/sn19_read/scene/sn19_read.ts
View file @
b3a9e6f0
...
@@ -58,7 +58,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -58,7 +58,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
public
layer_item_little
:
cc
.
Node
=
null
;
public
layer_item_little
:
cc
.
Node
=
null
;
_cantouch
=
null
;
_cantouch
=
null
;
private
list
:
Array
<
{
type
,
text
,
right
,
imgage
,
duration
,
content
,
audio
,
npcAudio
,
npcPlay
}
>
;
private
list
:
Array
<
{
rightPlay
,
type
,
text
,
right
,
imgage
,
duration
,
content
,
audio
,
npcAudio
,
npcPlay
}
>
;
private
recordFlag
:
number
;
//录音模式
private
recordFlag
:
number
;
//录音模式
private
score
:
number
;
private
score
:
number
;
private
scoreList
:
Array
<
number
>
;
private
scoreList
:
Array
<
number
>
;
...
@@ -322,16 +322,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -322,16 +322,23 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 播放文字内容
// 播放文字内容
this
.
label_word
.
active
=
true
;
this
.
label_word
.
active
=
true
;
pg
.
view
.
setString
(
this
.
label_word
,
this
.
recordAudioWord
);
pg
.
view
.
setString
(
this
.
label_word
,
this
.
recordAudioWord
);
// 播放鼓励
this
.
ani_good
.
active
=
true
;
pg
.
hw
.
playLocalAudio
(
"
right
"
)
pg
.
view
.
playDBAnimation
(
this
.
ani_good
,
'
newAnimation
'
,
1
);
this
.
_cantouch
=
false
;
this
.
_cantouch
=
false
;
this
.
scheduleOnce
(()
=>
{
// 播放鼓励
if
(
!
this
.
CurrentData
.
rightPlay
)
{
this
.
CurrentData
.
rightPlay
=
true
;
this
.
ani_good
.
active
=
true
;
pg
.
view
.
playDBAnimation
(
this
.
ani_good
,
'
newAnimation
'
,
1
);
pg
.
hw
.
playLocalAudio
(
"
right
"
)
this
.
scheduleOnce
(()
=>
{
this
.
_cantouch
=
true
;
this
.
ani_good
.
active
=
false
;
resolve
(
''
);
},
1
)
}
else
{
this
.
_cantouch
=
true
;
this
.
_cantouch
=
true
;
this
.
ani_good
.
active
=
false
;
this
.
ani_good
.
active
=
false
;
resolve
(
''
);
resolve
(
''
);
}
,
1
)
}
});
});
}
}
...
...
assets/sn19_read/textures/sn19/bg_bg_sn19_read.jpg
View replaced file @
426ea164
View file @
b3a9e6f0
15.4 KB
|
W:
|
H:
665 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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