First working example with Svelte (the menu icon shows up on entering the game)
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<script lang="typescript">
|
||||
import MenuIcon from "./Menu/MenuIcon.svelte";
|
||||
import {menuIconVisible} from "../Stores/MenuStore";
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#if $menuIconVisible}
|
||||
<MenuIcon />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user