Switching Camera controls in Svelte

Moving Camera controls out of HTML + MediaManager and into Svelte components
This commit is contained in:
David Négrier 2021-05-28 09:31:04 +02:00
parent 474323b95f
commit 4b77e8c577
10 changed files with 121 additions and 16 deletions

View file

@ -1,11 +1,16 @@
<script lang="typescript">
import MenuIcon from "./Menu/MenuIcon.svelte";
import {menuIconVisible} from "../Stores/MenuStore";
import {gameOverlayVisibilityStore} from "../Stores/MediaStore";
import CameraControls from "./CameraControls.svelte";
</script>
<div>
{#if $gameOverlayVisibilityStore}
<!-- {#if $menuIconVisible}
<MenuIcon />
{/if} -->
<CameraControls></CameraControls>
{/if}
</div>