Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
East_L215
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
East_L215
Commits
dff26fd1
Commit
dff26fd1
authored
Apr 16, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
27d276db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
play.component.ts
src/app/play/play.component.ts
+9
-5
No files found.
src/app/play/play.component.ts
View file @
dff26fd1
...
...
@@ -354,7 +354,7 @@ export class PlayComponent implements OnInit, OnDestroy {
// 卡片容器(盘子 桌布)
initCardContainer
(){
let
pos
=
{
image
:
""
,
x
:
0
,
y
:
0
,
sx
:
0
,
sy
:
0
image
:
""
,
x
:
0
,
y
:
0
,
sx
:
0
,
sy
:
0
,
height
:
0
}
switch
(
this
.
g_formData
.
cardContainerSetting
.
type
){
case
"
A
"
:
...
...
@@ -362,7 +362,8 @@ export class PlayComponent implements OnInit, OnDestroy {
pos
.
x
=
this
.
g_canvasWidth
/
2
;
pos
.
y
=
660
*
this
.
g_mapScale
;
pos
.
sx
=
658
*
this
.
g_mapScale
;
pos
.
sy
=
228
*
this
.
g_mapScale
;
pos
.
sy
=
185
*
this
.
g_mapScale
;
pos
.
height
=
92.5
;
break
;
case
"
B
"
:
pos
.
image
=
"
box
"
;
...
...
@@ -370,6 +371,7 @@ export class PlayComponent implements OnInit, OnDestroy {
pos
.
y
=
720
*
this
.
g_mapScale
;
pos
.
sx
=
771
*
this
.
g_mapScale
*
0.8
;
pos
.
sy
=
282
*
this
.
g_mapScale
*
0.8
;
pos
.
height
=
141
;
break
;
case
"
C
"
:
pos
.
image
=
"
tablecloth
"
;
...
...
@@ -377,13 +379,15 @@ export class PlayComponent implements OnInit, OnDestroy {
pos
.
y
=
718
*
this
.
g_mapScale
;
pos
.
sx
=
918
*
this
.
g_mapScale
;
pos
.
sy
=
228
*
this
.
g_mapScale
;
pos
.
height
=
114
;
break
;
default
:
pos
.
image
=
this
.
g_formData
.
cardContainerSetting
.
image_url
;
pos
.
x
=
this
.
g_canvasWidth
/
2
;
pos
.
y
=
82
0
*
this
.
g_mapScale
;
pos
.
y
=
66
0
*
this
.
g_mapScale
;
pos
.
sx
=
658
*
this
.
g_mapScale
;
pos
.
sy
=
228
*
this
.
g_mapScale
;
pos
.
sy
=
185
*
this
.
g_mapScale
;
pos
.
height
=
92.5
;
break
;
}
let
element
=
this
.
g_cartoon
.
createCartoonElementImageFunc
(
'
card-container
'
,
pos
.
image
,
(
w
,
h
)
=>
{
...
...
@@ -394,7 +398,7 @@ export class PlayComponent implements OnInit, OnDestroy {
},
(
w
,
h
)
=>
{
return
{
x
:
pos
.
x
,
y
:
this
.
g_cartoon
.
getOrigin
().
y
-
(
h
/
2
)
*
this
.
g_mapScale
+
pos
.
y
y
:
this
.
g_cartoon
.
getOrigin
().
y
-
pos
.
height
*
this
.
g_mapScale
+
pos
.
y
}
})
this
.
render
(
element
.
ref
)
...
...
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