Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM-42
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-42
Commits
1351afb0
Commit
1351afb0
authored
Sep 10, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决皮肤A长背景显示问题
parent
4d16d8d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
play.component.ts
src/app/play/play.component.ts
+16
-8
No files found.
src/app/play/play.component.ts
View file @
1351afb0
...
...
@@ -722,22 +722,23 @@ export class PlayComponent implements OnInit, OnDestroy {
let
midLen
=
this
.
data
.
exercisesArr
.
length
/
2
;
let
lBgArr
=
[];
//如果是A皮肤,则增加长的背景信息
if
(
this
.
data
.
skin
===
'
A
'
)
{
let
starty
=
startY
;
for
(
let
i
=
0
;
i
<
3
;
++
i
)
{
const
lBg
=
new
ShapeRectNew
();
lBg
.
fillColor
=
"
#E5E3E4
"
;
lBg
.
x
=
startX
;
lBg
.
y
=
starty
;
lBg
.
setSize
(
1100
*
this
.
mapScale
,
80
*
this
.
mapScale
,
40
*
this
.
mapScale
);
this
.
skinRenderArr
.
push
(
lBg
);
starty
=
starty
+
80
*
this
.
mapScale
+
78
*
this
.
mapScaleY
;
lBgArr
.
push
(
lBg
);
}
}
let
startYArr
=
[];
startYArr
.
push
(
startY
);
for
(
let
i
=
0
;
i
<
this
.
data
.
exercisesArr
.
length
;
++
i
)
{
let
index
=
i
+
1
;
...
...
@@ -768,7 +769,9 @@ export class PlayComponent implements OnInit, OnDestroy {
}
//到下一行增加高度
startY
=
tempStartY
startY
=
tempStartY
;
}
else
{
if
(
this
.
data
.
skin
===
'
A
'
)
{
...
...
@@ -778,15 +781,20 @@ export class PlayComponent implements OnInit, OnDestroy {
startY
=
startY
+
exercises
.
bg
.
height
+
65
*
this
.
mapScaleY
;
}
startYArr
.
push
(
startY
);
}
this
.
renderArr
.
push
(
exercises
.
bg
);
this
.
bigCardRenderArr
.
push
(
exercises
.
cardBg
);
}
console
.
log
(
startYArr
);
for
(
let
i
=
0
;
i
<
lBgArr
.
length
;
++
i
){
lBgArr
[
i
].
y
=
startYArr
[
i
];
}
let
minScale
=
1
;
//获取最小字体
...
...
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