Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-11
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
YM4-11
Commits
880a1b97
Commit
880a1b97
authored
Oct 31, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
37117a2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
play.component.ts
src/app/play/play.component.ts
+12
-3
No files found.
src/app/play/play.component.ts
View file @
880a1b97
...
@@ -385,7 +385,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -385,7 +385,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let
elementDrag
=
null
let
elementDrag
=
null
elementDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-
"
+
index
,
"
"
+
item
.
media
.
text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#000
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
elementDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-
"
+
index
,
"
"
+
item
.
media
.
text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#000
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
this
.
render
(
element
.
ref
)
this
.
render
(
element
.
ref
)
this
.
render
(
elementDrag
.
ref
)
this
.
render
(
elementDrag
.
ref
,
10
)
element
.
timeoutID
=
null
element
.
timeoutID
=
null
this
.
subscribeMapDragEvent
(
element
.
id
,
()
=>
{
this
.
subscribeMapDragEvent
(
element
.
id
,
()
=>
{
...
@@ -406,6 +406,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -406,6 +406,9 @@ export class PlayComponent implements OnInit, OnDestroy {
elementDrag
.
ref
.
x
=
elementDrag
.
initX
,
elementDrag
.
ref
.
x
=
elementDrag
.
initX
,
elementDrag
.
ref
.
y
=
elementDrag
.
initY
elementDrag
.
ref
.
y
=
elementDrag
.
initY
this
.
m_elementDraged
=
element
.
id
;
this
.
m_elementDraged
=
element
.
id
;
setTimeout
(()
=>
{
this
.
m_elementDraged
=
null
;
},
100
);
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapDown
=
true
;
this
.
g_enableMapDown
=
true
;
})
})
...
@@ -436,7 +439,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -436,7 +439,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let
textDrag
=
null
let
textDrag
=
null
textDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-left-drag
"
,
"
"
+
this
.
g_formData
.
bgItem
.
wordLeft_text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#C8161E
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
textDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-left-drag
"
,
"
"
+
this
.
g_formData
.
bgItem
.
wordLeft_text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#C8161E
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
this
.
render
(
textDrag
.
ref
)
this
.
render
(
textDrag
.
ref
,
10
)
this
.
render
(
element
.
ref
)
this
.
render
(
element
.
ref
)
element
.
timeoutID
=
null
element
.
timeoutID
=
null
...
@@ -460,6 +463,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -460,6 +463,9 @@ export class PlayComponent implements OnInit, OnDestroy {
textDrag
.
ref
.
x
=
textDrag
.
initX
,
textDrag
.
ref
.
x
=
textDrag
.
initX
,
textDrag
.
ref
.
y
=
textDrag
.
initY
textDrag
.
ref
.
y
=
textDrag
.
initY
this
.
m_elementDraged
=
element
.
id
;
this
.
m_elementDraged
=
element
.
id
;
setTimeout
(()
=>
{
this
.
m_elementDraged
=
null
;
},
100
);
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapDown
=
true
;
this
.
g_enableMapDown
=
true
;
})
})
...
@@ -490,7 +496,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -490,7 +496,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let
textDrag
=
null
let
textDrag
=
null
textDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-right-drag
"
,
"
"
+
this
.
g_formData
.
bgItem
.
wordRight_text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#C8161E
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
textDrag
=
this
.
g_cartoon
.
createCartoonElementLabel
(
"
text-puzzle-right-drag
"
,
"
"
+
this
.
g_formData
.
bgItem
.
wordRight_text
+
"
"
,
"
MMTextBook-Bold
"
,
"
#C8161E
"
,
48
*
this
.
g_mapScale
,
-
500
,
-
500
)
this
.
render
(
textDrag
.
ref
)
this
.
render
(
textDrag
.
ref
,
10
)
this
.
render
(
element
.
ref
)
this
.
render
(
element
.
ref
)
element
.
timeoutID
=
null
element
.
timeoutID
=
null
...
@@ -514,6 +520,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -514,6 +520,9 @@ export class PlayComponent implements OnInit, OnDestroy {
textDrag
.
ref
.
x
=
textDrag
.
initX
,
textDrag
.
ref
.
x
=
textDrag
.
initX
,
textDrag
.
ref
.
y
=
textDrag
.
initY
textDrag
.
ref
.
y
=
textDrag
.
initY
this
.
m_elementDraged
=
element
.
id
;
this
.
m_elementDraged
=
element
.
id
;
setTimeout
(()
=>
{
this
.
m_elementDraged
=
null
;
},
100
);
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapDown
=
true
;
this
.
g_enableMapDown
=
true
;
})
})
...
...
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