阴影方向问题

This commit is contained in:
2025-06-13 17:55:39 +08:00
parent 5968ad0b48
commit 43e6d58acf

View File

@@ -47,7 +47,7 @@ export class Candy extends Laya.Script {
return
Laya.Render.canvas.style.cursor = "pointer"
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)
})
this.owner.on(Laya.Event.MOUSE_OUT, this, () => {
@@ -55,7 +55,7 @@ export class Candy extends Laya.Script {
return
Laya.Render.canvas.style.cursor = ""
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)
})
this.offset = this.owner.getChildByName("offset") as Laya.Box