Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
ym_013
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
ym_013
Commits
55218c95
Commit
55218c95
authored
Feb 15, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换lesson背景为图形
parent
74603626
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
play.component.ts
src/app/play/play.component.ts
+14
-4
No files found.
src/app/play/play.component.ts
View file @
55218c95
...
...
@@ -690,10 +690,10 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
renderArr
.
push
(
pic1
);
this
.
top_bg
=
pic1
;
const
lesson_bg
=
new
MySprite
();
lesson_bg
.
init
(
this
.
images
.
get
(
'
lesson_bg
'
))
;
lesson_bg
.
x
=
lesson_bg
.
width
/
2
+
70
;
lesson_bg
.
y
=
11
+
lesson_bg
.
height
/
2
;
const
lesson_bg
=
new
ShapeRectNew
();
lesson_bg
.
fillColor
=
"
#975833
"
;
lesson_bg
.
x
=
70
;
lesson_bg
.
y
=
11
;
this
.
renderArr
.
push
(
lesson_bg
);
this
.
lesson_bg
=
lesson_bg
;
...
...
@@ -715,6 +715,16 @@ export class PlayComponent implements OnInit, OnDestroy {
lesson_bg
.
addChild
(
lesson
);
if
(
lesson
.
width
+
48
<
190
){
lesson_bg
.
setSize
(
190
,
48
,
24
);
}
else
{
lesson_bg
.
setSize
(
lesson
.
width
+
48
,
48
,
24
);
}
//重新设置lesson的坐标
lesson
.
x
=
lesson_bg
.
width
/
2
;
lesson
.
y
=
lesson_bg
.
height
/
2
;
const
title_bg
=
new
ShapeRectNew
();
title_bg
.
y
=
-
24
;
title_bg
.
fillColor
=
"
#975833
"
;
...
...
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