Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_06
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_06
Commits
d75cd232
Commit
d75cd232
authored
Oct 28, 2020
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 正确音效;点击正确后其他选项播放动画;表单页单选框bug修复
parent
29107ec2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
3 deletions
+45
-3
form.component.ts
form/src/app/form/form.component.ts
+2
-0
right.mp3
play/assets/tmpGame/audios/right.mp3
+0
-0
right.mp3.meta
play/assets/tmpGame/audios/right.mp3.meta
+7
-0
FT_06.fire
play/assets/tmpGame/scene/FT_06.fire
+4
-1
FT_06.js
play/assets/tmpGame/scene/FT_06.js
+28
-2
MusicNode.js
play/assets/tmpGame/script/MusicNode.js
+4
-0
No files found.
form/src/app/form/form.component.ts
View file @
d75cd232
...
...
@@ -125,6 +125,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
radioClick
(
questionIdx
,
optionIdx
)
{
this
.
item
.
questionList
[
questionIdx
].
rightOptionIdx
=
optionIdx
;
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
this
.
save
();
}
...
...
play/assets/tmpGame/audios/right.mp3
0 → 100644
View file @
d75cd232
File added
play/assets/tmpGame/audios/right.mp3.meta
0 → 100644
View file @
d75cd232
{
"ver": "2.0.1",
"uuid": "180326fb-4b13-4101-b74b-5c5c191029d2",
"downloadMode": 0,
"duration": 1.044898,
"subMetas": {}
}
\ No newline at end of file
play/assets/tmpGame/scene/FT_06.fire
View file @
d75cd232
...
...
@@ -1675,7 +1675,7 @@
"array": [
0,
0,
70
9.2748056994553
,
70
7.5427548918864
,
0,
0,
0,
...
...
@@ -3908,6 +3908,9 @@
"wrong": {
"__uuid__": "cbec1a32-0bc0-4ac8-bfff-b72f9faf24b7"
},
"right": {
"__uuid__": "180326fb-4b13-4101-b74b-5c5c191029d2"
},
"_id": "f8MXmdg/FGCpZZnMxAL8RJ"
},
{
...
...
play/assets/tmpGame/scene/FT_06.js
View file @
d75cd232
...
...
@@ -10,6 +10,7 @@ import {
playEffect
,
stopEffect
,
loadImgByUrl
,
jelly
,
blinkNode
,
stopBlinkNode
,
asyncLoadImgByUrl
,
...
...
@@ -202,13 +203,25 @@ cc.Class({
const
btnFlower
=
cc
.
find
(
'
OptionSpeakerBtn/BtnFlower
'
,
optionNode
);
const
btnFlowerP
=
cc
.
find
(
'
OptionSpeakerBtn/BtnFlower_P
'
,
optionNode
);
addButtonListener
(
cc
.
find
(
'
OptionSpeakerBtn
'
,
optionNode
),
async
()
=>
{
const
optionSpeakerBtn
=
cc
.
find
(
'
OptionSpeakerBtn
'
,
optionNode
);
optionSpeakerBtn
.
on
(
'
click
'
,
async
()
=>
{
if
(
!
optionNode
.
canClick
)
{
return
;
}
if
(
optionSpeakerBtn
.
canNotClick
)
{
return
;
}
optionSpeakerBtn
.
canNotClick
=
true
;
playEffect
(
'
按钮
'
);
await
jelly
(
optionSpeakerBtn
);
blinkNode
(
optionNode
,
btnFlowerP
,
btnFlower
);
await
asyncPlayEffectByUrl
(
data
.
optionAudio
);
asyncPlayDragonBoneAnimation
(
animeNode
,
'
normal
'
,
1
);
stopBlinkNode
(
optionNode
,
btnFlowerP
,
btnFlower
);
optionSpeakerBtn
.
canNotClick
=
false
;
});
});
},
...
...
@@ -235,6 +248,8 @@ cc.Class({
const
optionList
=
this
.
data
.
questionList
[
this
.
status
.
currentQuestionIdx
].
optionList
;
const
posNode
=
cc
.
find
(
`Canvas/OptionPosListBase/OptionTarget_
${
optionList
.
length
}
_
${
idx
}
`
)
playEffect
(
'
right
'
);
cc
.
tween
(
optionNode
)
.
to
(
1
,
{
x
:
posNode
.
x
},
{
easing
:
'
quadIn
'
})
.
start
();
...
...
@@ -242,6 +257,17 @@ cc.Class({
.
to
(
1
,
{
y
:
posNode
.
y
,
scale
:
0.3
})
.
to
(
0.5
,
{
opacity
:
0
})
.
start
();
optionList
.
forEach
((
data
,
idx
)
=>
{
const
option
=
cc
.
find
(
`Canvas/optionNode_
${
idx
}
`
);
option
.
canClick
=
false
;
if
(
option
!=
optionNode
)
{
const
animeNode
=
cc
.
find
(
'
OptionDragonBoneBaseNode/animeNode
'
,
option
);
animeNode
.
color
=
cc
.
color
(
255
,
255
,
255
,
255
);
asyncPlayDragonBoneAnimation
(
animeNode
,
'
normal
'
,
-
1
);
}
});
},
async
questionBoardDown
()
{
...
...
play/assets/tmpGame/script/MusicNode.js
View file @
d75cd232
...
...
@@ -6,6 +6,10 @@ cc.Class({
default
:
null
,
type
:
cc
.
AudioClip
},
right
:
{
default
:
null
,
type
:
cc
.
AudioClip
},
},
start
()
{
...
...
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