add lottie-web
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user