Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
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
FT_12
Commits
ff110393
Commit
ff110393
authored
Jan 28, 2021
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1cb73eba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+6
-6
Scene.js
play/assets/tmpGame/script/Scene.js
+0
-1
No files found.
play/assets/tmpGame/script/ItemAnswer.js
View file @
ff110393
...
@@ -251,17 +251,19 @@ cc.Class({
...
@@ -251,17 +251,19 @@ cc.Class({
},
},
playLabelGreen
(
cb
)
{
playLabelGreen
(
cb
)
{
GameData
.
audioCount
++
;
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
let
dragonbonesDone
=
false
;
let
dragonbonesDone
=
false
;
let
audioDone
=
false
;
let
audioDone
=
false
;
this
.
dragonBone
.
once
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
this
.
dragonBone
.
once
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
dragonbonesDone
=
true
;
dragonbonesDone
=
true
;
if
(
audioDone
)
{
if
(
audioDone
)
{
cb
&&
cb
();
cb
&&
cb
();
GameData
.
audioCount
--
;
}
}
});
});
this
.
playAudioOption
((
duration
)
=>
{
this
.
playAudioOption
((
duration
)
=>
{
if
(
!
cc
.
isValid
(
this
))
{
if
(
!
cc
.
isValid
(
this
))
{
return
;
return
;
}
}
this
.
scheduleStep
=
2
;
this
.
scheduleStep
=
2
;
...
@@ -282,9 +284,8 @@ cc.Class({
...
@@ -282,9 +284,8 @@ cc.Class({
},
()
=>
{
},
()
=>
{
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
GameData
.
isAudio
=
false
;
audioDone
=
true
;
audioDone
=
true
;
if
(
dragonbonesDone
)
{
if
(
dragonbonesDone
)
{
cb
&&
cb
();
cb
&&
cb
();
}
}
});
});
...
@@ -329,7 +330,6 @@ cc.Class({
...
@@ -329,7 +330,6 @@ cc.Class({
},
()
=>
{
},
()
=>
{
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
GameData
.
isAudio
=
false
;
});
});
},
},
...
...
play/assets/tmpGame/script/Scene.js
View file @
ff110393
...
@@ -493,7 +493,6 @@ cc.Class({
...
@@ -493,7 +493,6 @@ cc.Class({
this
.
playAudioPage
(
true
,()
=>
{
this
.
playAudioPage
(
true
,()
=>
{
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudio
[
1
];
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudio
[
1
];
GameData
.
isAudio
=
false
;
});
});
},
},
...
...
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