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
2d021c88
Commit
2d021c88
authored
Apr 12, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
2453fe55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
play.component.ts
src/app/play/play.component.ts
+42
-0
No files found.
src/app/play/play.component.ts
View file @
2d021c88
...
...
@@ -513,6 +513,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_cartoon
.
getCartoonElement
(
card
.
parentID
).
content
=
null
;
}
element
.
setContent
(
this
.
g_cartoon
.
getCartoonElement
(
this
.
m_currentPickupCardID
))
this
.
g_cartoon
.
getCartoonElement
(
"
start-button
"
).
showHideCheck
()
this
.
m_currentPickupCardID
=
null
;
}
}
...
...
@@ -728,6 +729,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_cartoon
.
getCartoonElement
(
card
.
parentID
).
content
=
null
;
}
element
.
setContent
(
this
.
g_cartoon
.
getCartoonElement
(
this
.
m_currentPickupCardID
))
this
.
g_cartoon
.
getCartoonElement
(
"
start-button
"
).
showHideCheck
()
this
.
m_currentPickupCardID
=
null
;
}
}
...
...
@@ -751,6 +753,46 @@ export class PlayComponent implements OnInit, OnDestroy {
y
:
554
*
this
.
g_mapScale
+
(
h
/
2
)
*
this
.
g_mapScale
}
})
element
.
ref
.
scaleX
=
0
;
element
.
ref
.
scaleY
=
0
;
element
.
showStatus
=
false
;
element
.
getAllCards
=
()
=>
{
let
allSelectedCards
=
[]
this
.
m_allSelectedHotZone
.
forEach
(
id
=>
{
let
content_id
=
this
.
g_cartoon
.
getCartoonElement
(
id
).
content
?
this
.
g_cartoon
.
getCartoonElement
(
id
).
content
.
id
:
null
if
(
content_id
){
allSelectedCards
.
push
(
content_id
)
}
})
return
allSelectedCards
}
element
.
click
=
()
=>
{
tweenChange
(
element
.
ref
,
{
scaleX
:
element
.
ref
.
initScaleX
*
0.9
,
scaleY
:
element
.
ref
.
initScaleY
*
0.9
},
0.2
,
()
=>
{
tweenChange
(
element
.
ref
,
{
scaleX
:
element
.
ref
.
initScaleX
,
scaleY
:
element
.
ref
.
initScaleY
},
0.2
)
})
element
.
getAllCards
()
}
element
.
showHideCheck
=
()
=>
{
console
.
log
(
"
showHideCheck
"
,
element
.
getAllCards
())
if
(
element
.
getAllCards
().
length
>
0
&&
!
element
.
showStatus
){
tweenChange
(
element
.
ref
,
{
scaleX
:
element
.
ref
.
initScaleX
,
scaleY
:
element
.
ref
.
initScaleY
},
0.1
,
()
=>
{
jelly
(
element
.
ref
,
0.5
)
})
element
.
showStatus
=
true
;
}
else
if
(
element
.
getAllCards
().
length
==
0
&&
element
.
showStatus
){
element
.
showStatus
=
false
tweenChange
(
element
.
ref
,
{
scaleX
:
0
,
scaleY
:
0
},
0.1
)
}
}
this
.
subscribeMapDownEvent
(
"
start-button
"
,
()
=>
{
element
.
click
()
this
.
g_enableMapDown
=
true
;
})
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