Commit 2453fe55 authored by 李维's avatar 李维

dev commit

parent 7c0c8b30
......@@ -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)
//
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment