Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM04-3
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
JM04-3
Commits
4eec376a
Commit
4eec376a
authored
Jul 28, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
270ada7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
play.component.ts
src/app/play/play.component.ts
+9
-4
resources.js
src/app/play/resources.js
+2
-1
sm_letterClick.mp3
src/assets/play/sound/sm_letterClick.mp3
+0
-0
No files found.
src/app/play/play.component.ts
View file @
4eec376a
...
...
@@ -270,9 +270,13 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
text
.
ref
.
fontWeight
=
900
text
.
ref
.
fontColor
=
"
#3e9b31
"
text
.
ref
.
setScaleXY
(
this
.
g_mapScale
);
text
.
ref
.
fontColor
=
"
#3e9b31
"
;
if
(
text
.
ref
.
width
>
1440
)
{
text
.
ref
.
setScaleXY
(
this
.
g_mapScale
*
1440
/
text
.
ref
.
width
);
text
.
ref
.
x
=
160
*
this
.
g_mapScale
+
1440
*
this
.
g_mapScale
/
2
;
}
else
{
text
.
ref
.
setScaleXY
(
this
.
g_mapScale
);
}
this
.
render
(
text
.
ref
)
}
...
...
@@ -460,7 +464,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_enableMapDown
=
true
;
return
}
this
.
g_cartoon
.
playAudio
(
"
sm_
switch
"
)
this
.
g_cartoon
.
playAudio
(
"
sm_
letterClick
"
)
let
target
=
this
.
g_cartoon
.
getCartoonElement
(
this
.
m_currentInput
)
if
(
this
.
m_openShift
)
{
target
.
setContentText
(
letttes
[
i
-
1
].
toUpperCase
())
...
...
@@ -511,6 +515,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_enableMapDown
=
true
;
return
;
}
this
.
g_cartoon
.
playAudio
(
"
sm_switch
"
)
this
.
m_openShift
=
!
this
.
m_openShift
;
if
(
this
.
m_openShift
)
{
allLetterRefs
.
forEach
(
le
=>
{
...
...
src/app/play/resources.js
View file @
4eec376a
...
...
@@ -95,7 +95,8 @@ const localAudios = {
'
sm_switch
'
:
'
assets/play/sound/sm_switch.mp3
'
,
'
sm_checkin
'
:
'
assets/play/sound/sm_checkin.mp3
'
,
'
sm_moreinfo
'
:
'
assets/play/sound/sm_moreinfo.mp3
'
,
'
sm_submit
'
:
'
assets/play/sound/sm_submit.mp3
'
'
sm_submit
'
:
'
assets/play/sound/sm_submit.mp3
'
,
'
sm_letterClick
'
:
'
assets/play/sound/sm_letterClick.mp3
'
};
...
...
src/assets/play/sound/sm_letterClick.mp3
0 → 100644
View file @
4eec376a
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