Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
peppa_pig_finger
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
peppa_pig_finger
Commits
ed1ffbec
Commit
ed1ffbec
authored
Sep 28, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
134d8b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
30 deletions
+42
-30
peppa_pig_finger.js
assets/peppa_pig_finger/scene/peppa_pig_finger.js
+42
-30
No files found.
assets/peppa_pig_finger/scene/peppa_pig_finger.js
View file @
ed1ffbec
...
...
@@ -675,10 +675,10 @@ initMask() {
this
.
isCheckPage
=
isCheckPage
;
this
.
getPhotoData
((
data
)
=>
{
this
.
photoEnd
(
data
);
},
isCheckPage
);
return
;
//
this.getPhotoData((data) => {
//
this.photoEnd(data);
//
}, isCheckPage);
//
return;
const
cw
=
window
.
courseware
;
if
(
!
cw
||
!
cw
.
openOsmoHandwriting
)
{
...
...
@@ -1889,8 +1889,8 @@ showStartLight() {
const
animNode
=
this
.
curQues
.
starAnimaArr
[
0
];
console
.
log
(
'
animNode:
'
,
animNode
);
playAudio
(
animNode
.
audioClip
,
()
=>
{
// this.testingFinger();
this
.
testingFinger
();
this
.
curQues
.
starAnimaArr
=
null
;
// this.curQuesVideoPlayEnd();
})
...
...
@@ -2766,15 +2766,15 @@ showStartLight() {
// if (true) {
this
.
setOneAnswerDataOption
(
colorDot
,
answerData
);
console
.
log
(
'
answerData:
'
,
answerData
);
this
.
showOptionAnswer
(
answerData
);
//
this.setOneAnswerDataOption(colorDot, answerData);
//
console.log('answerData:' , answerData);
//
this.showOptionAnswer(answerData);
// } else {
//
this.setOneAnswerDataStar(colorDot, answerData);
//
console.log('answerData:' , answerData);
//
this.showStarAnswer(answerData);
this
.
setOneAnswerDataStar
(
colorDot
,
answerData
);
console
.
log
(
'
answerData:
'
,
answerData
);
this
.
showStarAnswer
(
answerData
);
// }
...
...
@@ -2926,8 +2926,29 @@ showStartLight() {
},
showStar
(
anim
a
Node
)
{
showStar
(
animNode
)
{
console
.
log
(
'
show Star
'
);
if
(
animNode
.
isShowEnd
)
{
return
;
}
animNode
.
isShowEnd
=
true
;
const
rectNode
=
animNode
.
rectNode
;
this
.
playStarAnim
(
rectNode
);
playAudio
(
this
.
rightClip
,
()
=>
{
// this.playNextPageAudio();
if
(
this
.
isDestroy
)
{
return
;
}
this
.
curQuesVideoPlayEnd
();
})
this
.
stopTesting
();
},
...
...
@@ -3753,6 +3774,8 @@ showStartLight() {
}
animaNode
.
rectNode
=
rectNode
;
rectNode
.
addComponent
(
cc
.
Button
);
rectNode
.
on
(
'
click
'
,
()
=>
{
if
(
rectNode
.
isClicked
)
{
...
...
@@ -3762,28 +3785,17 @@ showStartLight() {
console
.
log
(
'
clicked
'
);
// if (animaNode.audioClip) {
// cc.audioEngine.stopAllEffects();
// cc.director.emit('STOP_ALL_AUDIO')
// cc.audioEngine.playEffect(animaNode.audioClip, false, 0.8);
// }
this
.
playStarAnim
(
rectNode
);
playAudio
(
this
.
rightClip
,
()
=>
{
// this.playNextPageAudio();
if
(
this
.
isDestroy
)
{
return
;
}
this
.
curQuesVideoPlayEnd
();
})
// delayCall(1, () => {
// this.playStarAnim(rectNode);
// playAudio(this.rightClip, () => {
// // this.playNextPageAudio();
// if(this.isDestroy) {
// return;
// }
// this.curQuesVideoPlayEnd();
// })
});
return
animaNode
;
...
...
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