Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-13
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
YM4-13
Commits
af7aa3af
Commit
af7aa3af
authored
Oct 13, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
0b726394
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
play.component.ts
src/app/play/play.component.ts
+13
-1
resources.js
src/app/play/resources.js
+1
-0
cuowu.mp3
src/assets/play/sound/cuowu.mp3
+0
-0
No files found.
src/app/play/play.component.ts
View file @
af7aa3af
...
...
@@ -859,12 +859,22 @@ export class PlayComponent implements OnInit, OnDestroy {
return
;
}
if
(
!
this
.
m_elementDraged
)
{
this
.
g_enableMapUp
=
true
;
return
;
}
if
(
dragElement
.
hotZoneSide
!=
side
)
{
this
.
g_cartoon
.
stopAllAudio
()
this
.
g_cartoon
.
playAudio
(
"
cuowu
"
)
this
.
g_enableMapUp
=
true
;
return
;
}
if
(
this
[
`m_currentQuestionIndex_
${
side
}
`
]
!=
element
.
questionIndex
)
{
this
.
g_cartoon
.
stopAllAudio
()
this
.
g_cartoon
.
playAudio
(
"
cuowu
"
)
this
.
g_enableMapUp
=
true
;
return
;
}
...
...
@@ -872,7 +882,6 @@ export class PlayComponent implements OnInit, OnDestroy {
for
(
let
index
=
0
;
index
<
answerIndex
.
length
;
index
++
)
{
let
textShow
=
this
.
g_cartoon
.
getCartoonElement
(
`word-part-
${
side
}
-
${
this
[
`m_currentQuestionIndex_
${
side
}
`
]}
-
${
dragElement
.
hotZoneIndex
}
-
${
index
}
`
)
if
(
dragElement
.
hotZoneIndex
==
answerIndex
[
index
]
&&
!
textShow
.
isShown
)
{
if
(
!
textShow
.
isShown
)
{
textShow
.
isShown
=
true
;
textShow
.
ref
.
alpha
=
1
;
...
...
@@ -880,6 +889,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_cartoon
.
playAudio
(
"
sm-choice-correct
"
)
break
;
}
}
else
{
this
.
g_cartoon
.
stopAllAudio
()
this
.
g_cartoon
.
playAudio
(
"
cuowu
"
)
}
}
...
...
src/app/play/resources.js
View file @
af7aa3af
...
...
@@ -77,6 +77,7 @@ const localAudios = {
'
sm-go
'
:
'
assets/default/audio/sm-go.mp3
'
,
'
sm-ready
'
:
'
assets/default/audio/sm-ready.mp3
'
,
'
cuowu
'
:
'
assets/play/sound/cuowu.mp3
'
};
const
multiSizeBackground
=
{
...
...
src/assets/play/sound/cuowu.mp3
0 → 100644
View file @
af7aa3af
File added
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