diff --git a/front/src/Components/ActionsMenu/ActionsMenu.svelte b/front/src/Components/ActionsMenu/ActionsMenu.svelte
new file mode 100644
index 00000000..3f60e4d8
--- /dev/null
+++ b/front/src/Components/ActionsMenu/ActionsMenu.svelte
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/front/src/Components/App.svelte b/front/src/Components/App.svelte
index a1277ed2..ef097ce3 100644
--- a/front/src/Components/App.svelte
+++ b/front/src/Components/App.svelte
@@ -17,7 +17,7 @@
import { loginSceneVisibleStore } from "../Stores/LoginSceneStore";
import EnableCameraScene from "./EnableCamera/EnableCameraScene.svelte";
import VisitCard from "./VisitCard/VisitCard.svelte";
- import { requestVisitCardsStore } from "../Stores/GameStore";
+ import { requestVisitCardsStore, requestActionsMenuStore } from "../Stores/GameStore";
import type { Game } from "../Phaser/Game/Game";
import { chatVisibilityStore } from "../Stores/ChatStore";
@@ -48,6 +48,7 @@
import { followStateStore } from "../Stores/FollowStore";
import { peerStore } from "../Stores/PeerStore";
import FollowMenu from "./FollowMenu/FollowMenu.svelte";
+import ActionsMenu from './ActionsMenu/ActionsMenu.svelte';
export let game: Game;
@@ -152,6 +153,9 @@
{#if $requestVisitCardsStore}
{/if}
+ {#if $requestActionsMenuStore}
+
+ {/if}
{#if $errorStore.length > 0}
diff --git a/front/src/Phaser/Entity/RemotePlayer.ts b/front/src/Phaser/Entity/RemotePlayer.ts
index 1cd03d12..428bd8aa 100644
--- a/front/src/Phaser/Entity/RemotePlayer.ts
+++ b/front/src/Phaser/Entity/RemotePlayer.ts
@@ -2,7 +2,7 @@ import type { GameScene } from "../Game/GameScene";
import type { PointInterface } from "../../Connexion/ConnexionModels";
import { Character } from "../Entity/Character";
import type { PlayerAnimationDirections } from "../Player/Animation";
-import { requestVisitCardsStore } from "../../Stores/GameStore";
+import { requestVisitCardsStore, requestActionsMenuStore } from "../../Stores/GameStore";
/**
* Class representing the sprite of a remote player (a player that plays on another computer)
@@ -44,7 +44,8 @@ export class RemotePlayer extends Character {
this.on("pointerdown", (event: Phaser.Input.Pointer) => {
if (event.downElement.nodeName === "CANVAS") {
- requestVisitCardsStore.set(this.visitCardUrl);
+ // requestVisitCardsStore.set(this.visitCardUrl);
+ requestActionsMenuStore.set(true);
}
});
}
diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts
index 05c0483f..f530af81 100644
--- a/front/src/Phaser/Game/GameScene.ts
+++ b/front/src/Phaser/Game/GameScene.ts
@@ -1915,6 +1915,7 @@ ${escapedMessage}
}
const texturesPromise = lazyLoadPlayerCharacterTextures(this.load, addPlayerData.characterLayers);
+ console.log(addPlayerData);
const player = new RemotePlayer(
addPlayerData.userId,
this,
diff --git a/front/src/Stores/GameStore.ts b/front/src/Stores/GameStore.ts
index e5298b7c..a8000bab 100644
--- a/front/src/Stores/GameStore.ts
+++ b/front/src/Stores/GameStore.ts
@@ -4,6 +4,8 @@ export const userMovingStore = writable(false);
export const requestVisitCardsStore = writable(null);
+export const requestActionsMenuStore = writable(true);
+
export const userIsAdminStore = writable(false);
export const limitMapStore = writable(false);