[feat] vnovel functionality

This commit is contained in:
kwaroran
2023-11-27 18:28:03 +09:00
parent b5914f2522
commit a1e0c8e1a4
2 changed files with 41 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
import VisualNovelChat from "./VisualNovelChat.svelte";
const wallPaper = `background-image: url(${defaultWallpaper})`
export let forceRender:() => void
let bgImg= ''
let lastBg = ''
$: (async () =>{
@@ -20,7 +20,9 @@
<div class="flex-grow h-full min-w-0 relative justify-center flex">
<SideBarArrow />
<BackgroundDom />
<div style={wallPaper} class="h-full w-full bg-cover">
<VisualNovelChat />
<div style={wallPaper} class="h-full w-full bg-cover" on:click={() => {
forceRender()
}}>
<VisualNovelChat bind:forceRender />
</div>
</div>