add lottie-web

This commit is contained in:
2025-06-09 17:13:48 +08:00
parent 7089453139
commit f4f813f637
21 changed files with 67 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import { Stage } from "../views/Stage"
import { TopBar } from "../views/TopBar"
import { StorageManager } from "./StorageManager"
import { ResourceManager } from "./ResourceManager"
import Lottie from "lottie-web"
const { regClass, property } = Laya
@@ -47,6 +48,14 @@ export class UIManager extends Laya.Script {
StorageManager.getInstance().cleanAll()
})
this.btn_clean.visible = this.debug
// const lottie = Lottie.loadAnimation({
// container: document.getElementById("layaContainer") as Element,
// renderer: 'svg',
// loop: true,
// autoplay: true,
// path: 'effect/lottie_trophy_light/lottie_trophy_light.json'
// })
}
private UIRoot: Laya.Panel