阴影方向问题
This commit is contained in:
@@ -47,7 +47,7 @@ export class Candy extends Laya.Script {
|
|||||||
return
|
return
|
||||||
Laya.Render.canvas.style.cursor = "pointer"
|
Laya.Render.canvas.style.cursor = "pointer"
|
||||||
Laya.Tween.to(this.bg_sprite, { alpha: 0.16 }, 200)
|
Laya.Tween.to(this.bg_sprite, { alpha: 0.16 }, 200)
|
||||||
Laya.Tween.to(this.bg_filter, { offX: 4, blur: 8 }, 200)
|
Laya.Tween.to(this.bg_filter, { offY: 4, blur: 8 }, 200)
|
||||||
Laya.Tween.to(this.mask_sprite, { alpha: 0.05 }, 200)
|
Laya.Tween.to(this.mask_sprite, { alpha: 0.05 }, 200)
|
||||||
})
|
})
|
||||||
this.owner.on(Laya.Event.MOUSE_OUT, this, () => {
|
this.owner.on(Laya.Event.MOUSE_OUT, this, () => {
|
||||||
@@ -55,7 +55,7 @@ export class Candy extends Laya.Script {
|
|||||||
return
|
return
|
||||||
Laya.Render.canvas.style.cursor = ""
|
Laya.Render.canvas.style.cursor = ""
|
||||||
Laya.Tween.to(this.bg_sprite, { alpha: 0.12 }, 200)
|
Laya.Tween.to(this.bg_sprite, { alpha: 0.12 }, 200)
|
||||||
Laya.Tween.to(this.bg_filter, { offX: 2, blur: 4 }, 200)
|
Laya.Tween.to(this.bg_filter, { offY: 2, blur: 4 }, 200)
|
||||||
Laya.Tween.to(this.mask_sprite, { alpha: 0 }, 200)
|
Laya.Tween.to(this.mask_sprite, { alpha: 0 }, 200)
|
||||||
})
|
})
|
||||||
this.offset = this.owner.getChildByName("offset") as Laya.Box
|
this.offset = this.owner.getChildByName("offset") as Laya.Box
|
||||||
|
|||||||
Reference in New Issue
Block a user