2021-05-11 17:37:21 +02:00
|
|
|
<script lang="typescript">
|
2021-05-12 18:32:55 +02:00
|
|
|
import MenuIcon from "./Menu/MenuIcon.svelte";
|
|
|
|
import {menuIconVisible} from "../Stores/MenuStore";
|
2021-05-28 09:31:04 +02:00
|
|
|
import {gameOverlayVisibilityStore} from "../Stores/MediaStore";
|
|
|
|
import CameraControls from "./CameraControls.svelte";
|
2021-05-28 15:48:58 +02:00
|
|
|
import MyCamera from "./MyCamera.svelte";
|
2021-05-31 12:06:11 +02:00
|
|
|
import SelectCompanionScene from "./SelectCompanion/SelectCompanionScene.svelte";
|
|
|
|
import {selectCompanionSceneVisibleStore} from "../Stores/SelectCompanionStore";
|
2021-05-31 17:50:14 +02:00
|
|
|
import {selectCharacterSceneVisibleStore} from "../Stores/SelectCharacterStore";
|
|
|
|
import SelectCharacterScene from "./selectCharacter/SelectCharacterScene.svelte";
|
|
|
|
import {customCharacterSceneVisibleStore} from "../Stores/CustomCharacterStore";
|
|
|
|
|
2021-05-31 12:06:11 +02:00
|
|
|
import {Game} from "../Phaser/Game/Game";
|
2021-05-31 17:50:14 +02:00
|
|
|
import CustomCharacterScene from "./CustomCharacterScene/CustomCharacterScene.svelte";
|
|
|
|
|
2021-05-31 12:06:11 +02:00
|
|
|
|
|
|
|
export let game: Game;
|
2021-05-11 17:37:21 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div>
|
2021-05-31 17:50:14 +02:00
|
|
|
{#if $selectCharacterSceneVisibleStore}
|
|
|
|
<SelectCharacterScene game={ game }></SelectCharacterScene>
|
|
|
|
{/if}
|
|
|
|
{#if $customCharacterSceneVisibleStore}
|
|
|
|
<CustomCharacterScene game={ game }></CustomCharacterScene>
|
|
|
|
{/if}
|
2021-05-31 12:06:11 +02:00
|
|
|
{#if $selectCompanionSceneVisibleStore}
|
2021-05-31 17:50:14 +02:00
|
|
|
<SelectCompanionScene game={ game }></SelectCompanionScene>
|
2021-05-31 12:06:11 +02:00
|
|
|
{/if}
|
2021-05-17 16:50:35 +02:00
|
|
|
<!-- {#if $menuIconVisible}
|
2021-05-12 18:32:55 +02:00
|
|
|
<MenuIcon />
|
2021-05-17 16:50:35 +02:00
|
|
|
{/if} -->
|
2021-05-31 12:06:11 +02:00
|
|
|
{#if $gameOverlayVisibilityStore}
|
2021-05-28 15:48:58 +02:00
|
|
|
<MyCamera></MyCamera>
|
2021-05-28 09:31:04 +02:00
|
|
|
<CameraControls></CameraControls>
|
|
|
|
{/if}
|
2021-05-11 17:37:21 +02:00
|
|
|
</div>
|