2021-05-11 17:37:21 +02:00
|
|
|
<script lang="typescript">
|
2021-08-26 12:01:07 +02:00
|
|
|
import MenuIcon from "./Menu/MenuIcon.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { menuIconVisiblilityStore, menuVisiblilityStore } from "../Stores/MenuStore";
|
|
|
|
import { emoteMenuStore } from "../Stores/EmoteStore";
|
|
|
|
import { enableCameraSceneVisibilityStore } from "../Stores/MediaStore";
|
2021-05-28 09:31:04 +02:00
|
|
|
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";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { selectCompanionSceneVisibleStore } from "../Stores/SelectCompanionStore";
|
|
|
|
import { selectCharacterSceneVisibleStore } from "../Stores/SelectCharacterStore";
|
2021-05-31 17:50:14 +02:00
|
|
|
import SelectCharacterScene from "./selectCharacter/SelectCharacterScene.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { customCharacterSceneVisibleStore } from "../Stores/CustomCharacterStore";
|
|
|
|
import { errorStore } from "../Stores/ErrorStore";
|
2021-05-31 17:50:14 +02:00
|
|
|
import CustomCharacterScene from "./CustomCharacterScene/CustomCharacterScene.svelte";
|
2021-05-31 17:03:29 +02:00
|
|
|
import LoginScene from "./Login/LoginScene.svelte";
|
2021-07-07 18:07:58 +02:00
|
|
|
import Chat from "./Chat/Chat.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { loginSceneVisibleStore } from "../Stores/LoginSceneStore";
|
2021-05-31 17:49:41 +02:00
|
|
|
import EnableCameraScene from "./EnableCamera/EnableCameraScene.svelte";
|
2021-06-01 15:35:25 +02:00
|
|
|
import VisitCard from "./VisitCard/VisitCard.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { requestVisitCardsStore } from "../Stores/GameStore";
|
2021-05-31 17:50:14 +02:00
|
|
|
|
2021-12-06 16:12:37 +01:00
|
|
|
import type { Game } from "../Phaser/Game/Game";
|
|
|
|
import { chatVisibilityStore } from "../Stores/ChatStore";
|
|
|
|
import { helpCameraSettingsVisibleStore } from "../Stores/HelpCameraSettingsStore";
|
2021-06-01 09:08:02 +02:00
|
|
|
import HelpCameraSettingsPopup from "./HelpCameraSettings/HelpCameraSettingsPopup.svelte";
|
2021-06-02 16:46:28 +02:00
|
|
|
import AudioPlaying from "./UI/AudioPlaying.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { soundPlayingStore } from "../Stores/SoundPlayingStore";
|
2021-06-03 14:10:31 +02:00
|
|
|
import ErrorDialog from "./UI/ErrorDialog.svelte";
|
2021-08-26 12:01:07 +02:00
|
|
|
import Menu from "./Menu/Menu.svelte";
|
2021-09-10 16:57:21 +02:00
|
|
|
import EmoteMenu from "./EmoteMenu/EmoteMenu.svelte";
|
2021-06-11 11:29:36 +02:00
|
|
|
import VideoOverlay from "./Video/VideoOverlay.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { gameOverlayVisibilityStore } from "../Stores/GameOverlayStoreVisibility";
|
2021-07-22 16:14:27 +02:00
|
|
|
import AdminMessage from "./TypeMessage/BanMessage.svelte";
|
|
|
|
import TextMessage from "./TypeMessage/TextMessage.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { banMessageVisibleStore } from "../Stores/TypeMessageStore/BanMessageStore";
|
|
|
|
import { textMessageVisibleStore } from "../Stores/TypeMessageStore/TextMessageStore";
|
|
|
|
import { warningContainerStore } from "../Stores/MenuStore";
|
2021-07-29 18:02:36 +02:00
|
|
|
import WarningContainer from "./WarningContainer/WarningContainer.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { layoutManagerVisibilityStore } from "../Stores/LayoutManagerStore";
|
2021-08-03 11:13:08 +02:00
|
|
|
import LayoutManager from "./LayoutManager/LayoutManager.svelte";
|
2021-12-06 16:12:37 +01:00
|
|
|
import { audioManagerVisibilityStore } from "../Stores/AudioManagerStore";
|
|
|
|
import AudioManager from "./AudioManager/AudioManager.svelte";
|
2021-08-26 12:01:07 +02:00
|
|
|
import { showReportScreenStore, userReportEmpty } from "../Stores/ShowReportScreenStore";
|
|
|
|
import ReportMenu from "./ReportMenu/ReportMenu.svelte";
|
2021-12-19 12:51:19 +01:00
|
|
|
import { followStateStore, followRoleStore, followStates, followRoles } from "../Stores/FollowStore";
|
2021-12-15 14:57:44 +01:00
|
|
|
import FollowMenu from "./FollowMenu/FollowMenu.svelte";
|
2021-05-31 12:06:11 +02:00
|
|
|
|
|
|
|
export let game: Game;
|
2021-05-11 17:37:21 +02:00
|
|
|
</script>
|
|
|
|
|
2021-06-02 09:09:23 +02:00
|
|
|
<div>
|
2021-05-31 17:03:29 +02:00
|
|
|
{#if $loginSceneVisibleStore}
|
2021-06-02 10:44:36 +02:00
|
|
|
<div class="scrollable">
|
2021-12-06 16:12:37 +01:00
|
|
|
<LoginScene {game} />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-05-31 17:03:29 +02:00
|
|
|
{/if}
|
2021-05-31 17:50:14 +02:00
|
|
|
{#if $selectCharacterSceneVisibleStore}
|
2021-06-02 09:58:00 +02:00
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<SelectCharacterScene {game} />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-05-31 17:50:14 +02:00
|
|
|
{/if}
|
|
|
|
{#if $customCharacterSceneVisibleStore}
|
2021-06-02 09:58:00 +02:00
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<CustomCharacterScene {game} />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-05-31 17:50:14 +02:00
|
|
|
{/if}
|
2021-05-31 12:06:11 +02:00
|
|
|
{#if $selectCompanionSceneVisibleStore}
|
2021-06-02 09:58:00 +02:00
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<SelectCompanionScene {game} />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-05-31 12:06:11 +02:00
|
|
|
{/if}
|
2021-05-31 17:49:41 +02:00
|
|
|
{#if $enableCameraSceneVisibilityStore}
|
2021-06-02 10:44:36 +02:00
|
|
|
<div class="scrollable">
|
2021-12-06 16:12:37 +01:00
|
|
|
<EnableCameraScene {game} />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-07-22 16:14:27 +02:00
|
|
|
{#if $banMessageVisibleStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<AdminMessage />
|
2021-07-22 16:14:27 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{#if $textMessageVisibleStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<TextMessage />
|
2021-07-22 16:14:27 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-06-02 16:46:28 +02:00
|
|
|
{#if $soundPlayingStore}
|
2021-12-06 16:12:37 +01:00
|
|
|
<div>
|
|
|
|
<AudioPlaying url={$soundPlayingStore} />
|
|
|
|
</div>
|
2021-06-02 16:46:28 +02:00
|
|
|
{/if}
|
2021-08-06 09:11:17 +02:00
|
|
|
{#if $audioManagerVisibilityStore}
|
2021-12-06 16:12:37 +01:00
|
|
|
<div>
|
|
|
|
<AudioManager />
|
|
|
|
</div>
|
2021-08-06 09:11:17 +02:00
|
|
|
{/if}
|
2021-08-03 11:13:08 +02:00
|
|
|
{#if $layoutManagerVisibilityStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<LayoutManager />
|
2021-08-03 11:13:08 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-08-26 12:01:07 +02:00
|
|
|
{#if $showReportScreenStore !== userReportEmpty}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<ReportMenu />
|
2021-08-26 12:01:07 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-12-19 12:51:19 +01:00
|
|
|
{#if $followStateStore !== followStates.off || $followRoleStore === followRoles.open}
|
2021-12-12 16:56:26 +01:00
|
|
|
<div>
|
2021-12-15 14:57:44 +01:00
|
|
|
<FollowMenu />
|
2021-12-12 16:56:26 +01:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-08-26 12:01:07 +02:00
|
|
|
{#if $menuIconVisiblilityStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<MenuIcon />
|
2021-08-26 12:01:07 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{#if $menuVisiblilityStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<Menu />
|
2021-08-26 12:01:07 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-10-04 11:23:30 +02:00
|
|
|
{#if $emoteMenuStore}
|
2021-09-10 16:57:21 +02:00
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<EmoteMenu />
|
2021-09-10 16:57:21 +02:00
|
|
|
</div>
|
|
|
|
{/if}
|
2021-06-02 09:58:00 +02:00
|
|
|
{#if $gameOverlayVisibilityStore}
|
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<VideoOverlay />
|
|
|
|
<MyCamera />
|
|
|
|
<CameraControls />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-05-31 17:49:41 +02:00
|
|
|
{/if}
|
2021-06-01 17:07:56 +02:00
|
|
|
{#if $helpCameraSettingsVisibleStore}
|
2021-06-02 09:58:00 +02:00
|
|
|
<div>
|
2021-12-06 16:12:37 +01:00
|
|
|
<HelpCameraSettingsPopup />
|
2021-06-02 09:58:00 +02:00
|
|
|
</div>
|
2021-06-01 17:07:56 +02:00
|
|
|
{/if}
|
2021-06-01 15:35:25 +02:00
|
|
|
{#if $requestVisitCardsStore}
|
2021-12-06 16:12:37 +01:00
|
|
|
<VisitCard visitCardUrl={$requestVisitCardsStore} />
|
2021-06-01 15:35:25 +02:00
|
|
|
{/if}
|
2021-06-03 14:10:31 +02:00
|
|
|
{#if $errorStore.length > 0}
|
2021-12-06 16:12:37 +01:00
|
|
|
<div>
|
|
|
|
<ErrorDialog />
|
|
|
|
</div>
|
2021-06-03 14:10:31 +02:00
|
|
|
{/if}
|
2021-07-07 18:07:58 +02:00
|
|
|
{#if $chatVisibilityStore}
|
2021-12-06 16:12:37 +01:00
|
|
|
<Chat />
|
2021-07-07 18:07:58 +02:00
|
|
|
{/if}
|
2021-07-29 18:02:36 +02:00
|
|
|
{#if $warningContainerStore}
|
2021-12-06 16:12:37 +01:00
|
|
|
<WarningContainer />
|
2021-07-29 18:02:36 +02:00
|
|
|
{/if}
|
2021-05-11 17:37:21 +02:00
|
|
|
</div>
|