优化home加载

This commit is contained in:
2025-06-03 19:47:45 +08:00
parent ce90518d06
commit 483df4cf34
3 changed files with 18 additions and 12 deletions

View File

@@ -150,6 +150,7 @@ export class TopBar extends Laya.Script {
}
onOver(evt: Laya.Event): void {
Laya.Render.canvas.style.cursor = "pointer"
const Box = evt.target as Laya.Box
const sprite = Box.getChildByName("Sprite") as Laya.Sprite
sprite.graphics.clear()
@@ -157,6 +158,7 @@ export class TopBar extends Laya.Script {
}
onOut(evt: Laya.Event): void {
Laya.Render.canvas.style.cursor = ""
const Box = evt.target as Laya.Box
const sprite = Box.getChildByName("Sprite") as Laya.Sprite
sprite.graphics.clear()