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
2453fe55
Commit
2453fe55
authored
Apr 12, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
7c0c8b30
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
play.component.ts
src/app/play/play.component.ts
+7
-2
resources.js
src/app/play/resources.js
+1
-1
card-highlight_1.png
src/assets/play/card-highlight_1.png
+0
-0
No files found.
src/app/play/play.component.ts
View file @
2453fe55
...
...
@@ -367,10 +367,14 @@ export class PlayComponent implements OnInit, OnDestroy {
y
:
element
.
ref
.
y
}
})
let
hilightBackground
=
this
.
g_cartoon
.
createCartoonElementImage
(
`card-content-
${
index
}
-highlight`
,
"
card-highlight
"
,
310
,
320
,
-
3
*
this
.
g_mapScale
,
-
5
*
this
.
g_mapScale
,
false
);
cardContent
.
ref
.
addChild
(
hilightBackground
.
ref
)
hilightBackground
.
ref
.
visible
=
false
;
cardContent
.
parentID
=
`card-bckground-
${
index
}
`
cardContent
.
canMove
=
false
;
cardContent
.
clickTime
=
null
cardContent
.
handleClick
=
()
=>
{
this
.
g_cartoon
.
playAudio
(
"
sm-click
"
)
cardContent
.
canMove
=
true
;
...
...
@@ -384,6 +388,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
topOfRenderArray
(
cardContent
.
ref
)
element
.
baseClick_x
=
this
.
g_clickX
element
.
baseClick_y
=
this
.
g_clickY
hilightBackground
.
ref
.
visible
=
true
;
}
this
.
subscribeMapDownEvent
(
`card-content-
${
index
}
`
,
()
=>
{
if
(
cardContent
.
parentID
.
indexOf
(
"
hot
"
)
!=
-
1
){
...
...
@@ -450,8 +455,8 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
cardContent
.
parentID
){
this
.
g_cartoon
.
getCartoonElement
(
cardContent
.
parentID
).
setContent
(
cardContent
)
}
hilightBackground
.
ref
.
visible
=
false
;
}
this
.
render
(
cardContent
.
ref
,
999
)
//
...
...
src/app/play/resources.js
View file @
2453fe55
...
...
@@ -29,7 +29,7 @@ const localImages = {
'
box
'
:
'
assets/play/box.png
'
,
'
btn-go
'
:
'
assets/play/btn-go.png
'
,
'
btn-ok
'
:
'
assets/play/btn-ok.png
'
,
'
card-highlight
'
:
'
assets/play/card-highlight.png
'
,
'
card-highlight
'
:
'
assets/play/card-highlight
_1
.png
'
,
'
card
'
:
'
assets/play/card.png
'
,
'
dish-shaodw
'
:
'
assets/play/dish-shaodw.png
'
,
'
dish
'
:
'
assets/play/dish.png
'
,
...
...
src/assets/play/card-highlight_1.png
0 → 100644
View file @
2453fe55
41.7 KB
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