From 83a12f86f4f963b8a1e6741fd18a5f9dcbd60eb8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 12 十月 2024 16:08:01 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/player.js | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/zy-acs-flow/src/map/player.js b/zy-acs-flow/src/map/player.js index 63f6d2c..a4fd83b 100644 --- a/zy-acs-flow/src/map/player.js +++ b/zy-acs-flow/src/map/player.js @@ -21,14 +21,14 @@ this.showCoordinates(); this.startupTicker(); - const bunny = PIXI.Sprite.from('https://pixijs.com/assets/bunny.png'); - bunny.anchor.set(0.5); - bunny.x = 500; - bunny.y = 400; - this.mapContainer.addChild(bunny); - this.app.ticker.add((delta) => { - bunny.rotation += 0.1 * delta; - }); + // const bunny = PIXI.Sprite.from('https://pixijs.com/assets/bunny.png'); + // bunny.anchor.set(0.5); + // bunny.x = 500; + // bunny.y = 400; + // this.mapContainer.addChild(bunny); + // this.app.ticker.add((delta) => { + // bunny.rotation += 0.1 * delta; + // }); } @@ -390,6 +390,10 @@ this.app.destroy(true, { children: true }); } + setTheme = (themeMode) => { + this.app.renderer.background.color = themeMode === 'dark' ? 0x2f3542 : 0xf1f2f6; + } + } const generateApp = (dom, themeMode) => { -- Gitblit v1.9.1