From 58227a39f8e61997915fa343b5b8b7e2e26606cd Mon Sep 17 00:00:00 2001 From: Hanusiak Piotr Date: Tue, 25 Jan 2022 17:13:52 +0100 Subject: [PATCH] destroy actionsMenu on RemotePlayer destroy() --- .../Components/ActionsMenu/ActionsMenu.svelte | 34 +++++++++++++++---- front/src/Phaser/Entity/RemotePlayer.ts | 21 +++++++++--- .../UserInput/GameSceneUserInputHandler.ts | 1 - front/src/Stores/GameStore.ts | 2 ++ 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/front/src/Components/ActionsMenu/ActionsMenu.svelte b/front/src/Components/ActionsMenu/ActionsMenu.svelte index 04e9c381..053502eb 100644 --- a/front/src/Components/ActionsMenu/ActionsMenu.svelte +++ b/front/src/Components/ActionsMenu/ActionsMenu.svelte @@ -1,13 +1,16 @@ -
+
-

Actions

+

{playerName}

{#each [...possibleActions] as [key, menuAction]}