Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
ym-23
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-23
Commits
94b4ce15
Commit
94b4ce15
authored
Jun 09, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复标题点击区域异常
parent
3aa8995c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
play.component.ts
src/app/play/play.component.ts
+15
-8
No files found.
src/app/play/play.component.ts
View file @
94b4ce15
...
@@ -823,31 +823,36 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -823,31 +823,36 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
title1
.
x
=
-
2
+
this
.
t1Bg
.
width
/
2
;
this
.
title1
.
x
=
-
2
+
this
.
t1Bg
.
width
/
2
;
this
.
title1
.
y
=
1
+
this
.
t1Bg
.
height
/
2
;
this
.
title1
.
y
=
1
+
this
.
t1Bg
.
height
/
2
;
//大标题
//大标题
le
t
bgRect
=
new
ShapeRect
();
cons
t
bgRect
=
new
ShapeRect
();
bgRect
.
setSize
(
1000
,
60
);
bgRect
.
setSize
(
1000
,
60
);
bgRect
.
init
();
bgRect
.
init
();
bgRect
.
fillColor
=
'
#ffdb84
'
;
bgRect
.
fillColor
=
'
#ffdb84
'
;
this
.
juziBg
.
addChild
(
bgRect
);
bgRect
.
x
=
37
;
bgRect
.
y
=
-
333
;
// this.startBorder.addChild(bgRect, -1);
this
.
title2
=
new
Label
();
this
.
title2
=
new
Label
();
this
.
title2
.
text
=
this
.
data
.
title
.
t_val2
;
this
.
title2
.
text
=
this
.
data
.
title
.
t_val2
;
this
.
title2
.
fontName
=
'
FUTURAB
'
;
this
.
title2
.
fontName
=
'
FUTURAB
'
;
this
.
title2
.
fontColor
=
'
#040404
'
;
this
.
title2
.
fontColor
=
'
#040404
'
;
this
.
title2
.
fontSize
=
50
*
this
.
t1Bg
.
scaleX
;
this
.
title2
.
fontSize
=
50
*
this
.
t1Bg
.
scaleX
;
this
.
title2
.
textAlign
=
'
left
'
;
this
.
title2
.
refreshSize
();
// bgRect.addChild(this.title2);
this
.
title2
.
setMaxSize
(
1000
);
this
.
title2
.
setMaxSize
(
1000
);
this
.
title2
.
x
=
this
.
t1Bg
.
x
+
(
this
.
t1Bg
.
width
+
10
)
*
this
.
t1Bg
.
scaleX
;
this
.
title2
.
x
=
this
.
t1Bg
.
x
+
(
this
.
t1Bg
.
width
+
10
)
*
this
.
t1Bg
.
scaleX
;
this
.
title2
.
y
=
this
.
t1Bg
.
y
+
(
this
.
t1Bg
.
height
/
2
+
6
)
*
this
.
t1Bg
.
scaleY
;
this
.
title2
.
y
=
this
.
t1Bg
.
y
+
(
this
.
t1Bg
.
height
/
2
+
6
)
*
this
.
t1Bg
.
scaleY
;
this
.
title2
.
refreshSize
();
this
.
renderArr
.
push
(
this
.
title2
);
this
.
renderArr
.
push
(
this
.
title2
);
this
.
renderArr
.
push
(
bgRect
);
this
.
bgRect
=
bgRect
;
this
.
bgRect
=
bgRect
;
}
}
refreshTitleBg
()
{
this
.
title2
.
refreshSize
();
this
.
bgRect
.
width
=
this
.
title2
.
width
*
this
.
title2
.
scaleX
;
this
.
bgRect
.
height
=
this
.
title2
.
height
*
this
.
title2
.
scaleY
;
this
.
bgRect
.
x
=
this
.
title2
.
x
+
this
.
title2
.
width
/
2
;
this
.
bgRect
.
y
=
this
.
title2
.
y
;
}
initBg
()
{
initBg
()
{
...
@@ -981,6 +986,8 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -981,6 +986,8 @@ export class PlayComponent implements OnInit, OnDestroy {
return
;
return
;
}
}
this
.
refreshTitleBg
();
if
(
this
.
checkClickTarget
(
this
.
bgRect
))
{
//标题音
if
(
this
.
checkClickTarget
(
this
.
bgRect
))
{
//标题音
this
.
pauseFullAudio
();
this
.
pauseFullAudio
();
this
.
pauseSentenceAudio
();
this
.
pauseSentenceAudio
();
...
...
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