message interaction

This commit is contained in:
2026-03-20 19:35:19 +08:00
parent c47b8d464d
commit db972c8387
6 changed files with 255 additions and 2 deletions

View File

@@ -13,7 +13,8 @@
import DebugBar from "./components/debug-bar.svelte";
import Neko from "./components/neko/neko.svelte";
import PetMenu from "./components/pet-menu/pet-menu.svelte";
import { createPetActions } from "./components/pet-menu/events";
import PetMessagePop from "./components/pet-message-pop.svelte";
import PetMessageSend from "./components/pet-message-send.svelte";
import type { UserBasicDto } from "$lib/bindings";
function getFriend(friendId: string): UserBasicDto | undefined {
@@ -50,6 +51,8 @@
initialY={position.raw.y}
>
<PetMenu user={friend!} ariaLabel={`Open ${friend?.name} actions`} />
<PetMessagePop userId={friendId} />
<PetMessageSend userId={friendId} userName={friend?.name ?? "Friend"} />
</Neko>
{/if}
{/each}