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
9b57a4ec
Commit
9b57a4ec
authored
Jun 09, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 中间白板适配
parent
1a5159a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
play.component.ts
src/app/play/play.component.ts
+11
-20
No files found.
src/app/play/play.component.ts
View file @
9b57a4ec
...
@@ -901,26 +901,13 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -901,26 +901,13 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
juziBg
=
new
MySprite
();
this
.
juziBg
=
new
MySprite
();
this
.
juziBg
.
init
(
this
.
images
.
get
(
'
juzi
'
));
this
.
juziBg
.
init
(
this
.
images
.
get
(
'
juzi
'
));
// this.juziBg.lastClickedSentenceIndex = this.canvasWidth / 2.8;
const
sy2
=
(
this
.
canvasHeight
-
100
)
/
this
.
canvasBaseH
;
// this.juziBg.y = this.canvasHeight / 2 ;
const
j
=
Math
.
min
(
sx2
,
sy2
);
const
jx
=
sx
/
1.8
;
const
jy
=
sy
/
1.8
;
const
j
=
Math
.
min
(
jx
,
jy
);
console
.
log
(
j
+
"
s
"
);
this
.
juziBg
.
setScaleXY
(
j
);
this
.
juziBg
.
setScaleXY
(
j
);
this
.
juziBg
.
x
=
-
100
;
this
.
juziBg
.
x
=
this
.
canvasWidth
/
2
;
this
.
juziBg
.
y
=
20
;
this
.
juziBg
.
y
=
this
.
canvasHeight
/
2
;
this
.
startBorder
.
addChild
(
this
.
juziBg
);
// this.juziBg.y=-2;
// this.juziBg.addChild(this.t1Bg);
// this.t1Bg.x = -510;
// this.t1Bg.y = -340;
//句子方块
//句子方块
this
.
juzi_bg
=
new
ShapeRect
();
this
.
juzi_bg
=
new
ShapeRect
();
this
.
juzi_bg
.
fillColor
=
'
#ffffff
'
;
this
.
juzi_bg
.
fillColor
=
'
#ffffff
'
;
...
@@ -939,12 +926,12 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -939,12 +926,12 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
playButton
.
init
(
this
.
images
.
get
(
'
start
'
));
this
.
playButton
.
init
(
this
.
images
.
get
(
'
start
'
));
this
.
Btn
.
addChild
(
this
.
playButton
);
this
.
Btn
.
addChild
(
this
.
playButton
);
this
.
Btn
.
addChild
(
this
.
pauseButton
);
this
.
Btn
.
addChild
(
this
.
pauseButton
);
this
.
juziBg
.
addChild
(
this
.
Btn
);
//
this.juziBg.addChild(this.Btn);
this
.
playButton
.
setScaleXY
(
this
.
mapScale
);
this
.
playButton
.
setScaleXY
(
this
.
mapScale
);
this
.
pauseButton
.
setScaleXY
(
this
.
mapScale
);
this
.
pauseButton
.
setScaleXY
(
this
.
mapScale
);
this
.
Btn
.
x
=
65
0
;
this
.
Btn
.
x
=
this
.
canvasWidth
-
this
.
playButton
.
width
/
2
*
this
.
playButton
.
scaleX
-
1
0
;
this
.
Btn
.
y
=
24
0
;
this
.
Btn
.
y
=
this
.
canvasHeight
-
this
.
playButton
.
height
/
2
*
this
.
playButton
.
scaleY
-
1
0
;
this
.
hide
(
this
.
pauseButton
);
this
.
hide
(
this
.
pauseButton
);
if
(
this
.
data
.
wordArr
.
length
>
4
)
{
if
(
this
.
data
.
wordArr
.
length
>
4
)
{
...
@@ -1194,8 +1181,12 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1194,8 +1181,12 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
updateArr
(
this
.
renderArr
);
this
.
updateArr
(
this
.
renderArr
);
this
.
updateItem
(
this
.
juziBg
);
this
.
updateItem
(
this
.
t1Bg
);
this
.
updateItem
(
this
.
t1Bg
);
this
.
updateItem
(
this
.
title2
);
this
.
updateItem
(
this
.
title2
);
this
.
updateItem
(
this
.
Btn
);
}
}
...
...
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