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
671eabdf
Commit
671eabdf
authored
Jan 04, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 按钮状态调整
parent
cca8e0c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
.DS_Store
.DS_Store
+0
-0
OP_18.js
assets/OP_18/scene/OP_18.js
+27
-1
No files found.
.DS_Store
View file @
671eabdf
No preview for this file type
assets/OP_18/scene/OP_18.js
View file @
671eabdf
...
...
@@ -634,7 +634,7 @@ cc.Class({
const
layer
=
new
cc
.
Node
();
layer
.
x
=
-
this
.
canvas
.
width
/
2
+
10
;
layer
.
y
=
this
.
canvas
.
height
/
2
-
10
;
//
layer.active = false;
layer
.
active
=
false
;
const
sample
=
getSprNode
(
'
sample
'
);
sample
.
anchorX
=
0
;
...
...
@@ -777,6 +777,9 @@ cc.Class({
this
.
playAni
(
'
begin
'
,
0
)
//播放引导音频1
playAudioByUrl
(
this
.
data
.
write_big_0_audio_url
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
playEnd
();
})
},
...
...
@@ -815,6 +818,9 @@ cc.Class({
this
.
playAni
(
'
begin
'
,
0
)
//播放引导音频1
playAudioByUrl
(
this
.
data
.
write_big_1_audio_url
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
playEnd
();
})
},
...
...
@@ -829,6 +835,9 @@ cc.Class({
playAudio
(
this
.
audioTip3
.
clip
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
// })
//播放引导音频3
// this.playAudioByUrl(this.data.guideAudioUrl3, () => {
...
...
@@ -1056,6 +1065,9 @@ cc.Class({
this
.
playAudioByUrl
(
this
.
data
.
exercises
.
audioUrl
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
//停止监听动画
this
.
_stopAni
=
true
;
...
...
@@ -1167,6 +1179,10 @@ cc.Class({
//播放引导音频2
this
.
playAudioByUrl
(
this
.
data
.
guideAudioUrl2
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
state
.
stop
();
this
.
playAni
(
'
normal
'
,
0
);
...
...
@@ -1522,6 +1538,9 @@ cc.Class({
},
playAudioStep3
()
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
beginShowAudioSmall
();
},
...
...
@@ -1651,6 +1670,9 @@ cc.Class({
this
.
playAni
(
'
begin
'
,
0
)
playAudioByUrl
(
this
.
data
.
write_small_0_audio_url
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
playEnd
();
})
},
...
...
@@ -1687,6 +1709,9 @@ cc.Class({
this
.
playAni
(
'
begin
'
,
0
)
//播放引导音频1
playAudioByUrl
(
this
.
data
.
write_small_1_audio_url
,
()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
playEnd
();
})
},
...
...
@@ -3238,6 +3263,7 @@ cc.Class({
_intervalIds
:
null
,
// 生命周期
onDestroy
()
{
this
.
isDestroy
=
true
;
this
.
_timeoutIds
.
forEach
(
id
=>
{
clearTimeout
(
id
);
});
...
...
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