Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-6
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
YM5-6
Commits
a5ffeaea
Commit
a5ffeaea
authored
Jan 14, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
c0b350e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
play.component.ts
src/app/play/play.component.ts
+5
-5
No files found.
src/app/play/play.component.ts
View file @
a5ffeaea
...
...
@@ -751,8 +751,8 @@ export class PlayComponent implements OnInit, OnDestroy {
body_bg
;
initPic
()
{
this
.
body_bg
=
new
ShapeRoundRect
();
this
.
body_bg
.
setSize
(
1
083
*
this
.
mapScale
,
555
*
this
.
mapScale
,
30
*
this
.
mapScale
)
;
this
.
body_bg
.
x
=
(
this
.
canvasWidth
-
this
.
body_bg
.
width
)
/
2
-
100
*
this
.
mapScale
;
this
.
body_bg
.
setSize
(
1
280
*
this
.
mapScale
,
555
*
this
.
mapScale
,
30
*
this
.
mapScale
)
;
this
.
body_bg
.
x
=
(
this
.
canvasWidth
-
this
.
body_bg
.
width
)
/
2
;
//
- 100 * this.mapScale;
this
.
body_bg
.
y
=
this
.
canvasHeight
-
this
.
body_bg
.
height
-
(
this
.
canvasHeight
-
this
.
body_bg
.
height
)
/
3
;
this
.
renderArr
.
push
(
this
.
body_bg
);
...
...
@@ -760,14 +760,14 @@ export class PlayComponent implements OnInit, OnDestroy {
colorBlock_left
.
x
=
0
;
colorBlock_left
.
y
=
0
;
colorBlock_left
.
fillColor
=
"
#eef1f3
"
// `#${this.saveData.blockColor}`;
colorBlock_left
.
setSize
(
6
4
0
*
this
.
mapScale
,
500
*
this
.
mapScale
,
30
)
colorBlock_left
.
setSize
(
6
2
0
*
this
.
mapScale
,
500
*
this
.
mapScale
,
30
)
this
.
body_bg
.
addChild
(
colorBlock_left
)
let
colorBlock_right
=
new
ShapeRoundRect
()
colorBlock_right
.
x
=
680
*
this
.
mapScale
;
colorBlock_right
.
y
=
0
;
colorBlock_right
.
fillColor
=
"
#eef1f3
"
// `#${this.saveData.blockColor}`;
colorBlock_right
.
setSize
(
6
4
0
*
this
.
mapScale
,
500
*
this
.
mapScale
,
30
);
colorBlock_right
.
setSize
(
6
2
0
*
this
.
mapScale
,
500
*
this
.
mapScale
,
30
);
this
.
body_bg
.
addChild
(
colorBlock_right
);
// 初始化单词显示
...
...
@@ -819,7 +819,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let
letterFontSize
=
48
;
// 单词背景
let
word_bg_group
=
new
ShapeRoundRect
()
word_bg_group
.
width
=
6
4
0
;
word_bg_group
.
width
=
6
2
0
;
word_bg_group
.
height
=
57
;
word_bg_group
.
x
=
x
*
this
.
mapScale
;
word_bg_group
.
y
=
y
*
this
.
mapScale
;
...
...
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