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
1a5159a2
Commit
1a5159a2
authored
Jun 08, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 标题样式修改
parent
21144371
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
play.component.ts
src/app/play/play.component.ts
+27
-13
No files found.
src/app/play/play.component.ts
View file @
1a5159a2
...
...
@@ -834,8 +834,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
title1
.
refreshSize
();
this
.
t1Bg
.
addChild
(
this
.
title1
);
this
.
title1
.
setMaxSize
(
52
);
this
.
title1
.
x
=
-
2
;
this
.
title1
.
y
=
1
;
this
.
title1
.
x
=
-
2
+
this
.
t1Bg
.
width
/
2
;
this
.
title1
.
y
=
1
+
this
.
t1Bg
.
height
/
2
;
//大标题
let
bgRect
=
new
ShapeRect
();
bgRect
.
setSize
(
1000
,
60
);
...
...
@@ -850,13 +850,14 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
title2
.
text
=
this
.
data
.
title
.
t_val2
;
this
.
title2
.
fontName
=
'
FUTURAB
'
;
this
.
title2
.
fontColor
=
'
#040404
'
;
this
.
title2
.
fontSize
=
30
;
this
.
title2
.
fontSize
=
50
*
this
.
t1Bg
.
scaleX
;
this
.
title2
.
textAlign
=
'
left
'
;
this
.
title2
.
refreshSize
();
bgRect
.
addChild
(
this
.
title2
);
//
bgRect.addChild(this.title2);
this
.
title2
.
setMaxSize
(
1000
);
this
.
title2
.
x
=
-
514
;
this
.
title2
.
y
=
0
;
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
.
renderArr
.
push
(
this
.
title2
);
this
.
bgRect
=
bgRect
;
}
...
...
@@ -880,10 +881,22 @@ export class PlayComponent implements OnInit, OnDestroy {
//标题一背景块
this
.
t1Bg
=
new
MySprite
();
this
.
t1Bg
.
init
(
this
.
images
.
get
(
'
title1
'
));
// this.t1Bg = new MySprite();
// this.t1Bg.init(this.images.get('title1'));
//
// this.t1Bg.setScaleXY(this.mapScale / 1.6);
const
bgRect2
=
new
ShapeRect
();
bgRect2
.
setSize
(
57
,
65
);
bgRect2
.
fillColor
=
'
#AB5B22
'
;
const
sx2
=
this
.
canvasWidth
/
this
.
canvasBaseW
;
bgRect2
.
setScaleXY
(
sx2
);
bgRect2
.
x
=
65
*
sx2
;
this
.
t1Bg
=
bgRect2
;
this
.
renderArr
.
push
(
bgRect2
);
this
.
t1Bg
.
setScaleXY
(
this
.
mapScale
/
1.6
);
//句子背景
this
.
juziBg
=
new
MySprite
();
this
.
juziBg
.
init
(
this
.
images
.
get
(
'
juzi
'
));
...
...
@@ -905,9 +918,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.juziBg.y=-2;
this
.
juziBg
.
addChild
(
this
.
t1Bg
);
this
.
t1Bg
.
x
=
-
510
;
this
.
t1Bg
.
y
=
-
340
;
//
this.juziBg.addChild(this.t1Bg);
//
this.t1Bg.x = -510;
//
this.t1Bg.y = -340;
//句子方块
this
.
juzi_bg
=
new
ShapeRect
();
this
.
juzi_bg
.
fillColor
=
'
#ffffff
'
;
...
...
@@ -1181,7 +1194,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
updateArr
(
this
.
renderArr
);
this
.
updateItem
(
this
.
t1Bg
);
this
.
updateItem
(
this
.
title2
);
}
...
...
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