From 09be11b3cc969d56d50c8e23266581a73a4886bf Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Mar 2026 16:26:15 +0000 Subject: [PATCH] feat: add follow mode command legend panel Co-Authored-By: Claude Opus 4.6 --- client/src/scenes/GameScene.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/scenes/GameScene.ts b/client/src/scenes/GameScene.ts index f2fedec..c6657d9 100644 --- a/client/src/scenes/GameScene.ts +++ b/client/src/scenes/GameScene.ts @@ -30,6 +30,7 @@ export class GameScene extends Phaser.Scene { private npcInfoPanel!: NpcInfoPanel; private emojiManager!: InteractionEmojiManager; private commandPanel!: CommandPanel; + private followCommandPanel!: CommandPanel; constructor() { super({ key: 'GameScene' }); @@ -47,6 +48,11 @@ export class GameScene extends Phaser.Scene { this.emojiManager = new InteractionEmojiManager(); this.commandPanel = new CommandPanel('COMMANDS', [{ key: '1', label: 'Spawn NPC' }]); this.commandPanel.show(); // Start in camera mode, so show immediately + this.followCommandPanel = new CommandPanel('FOLLOW', [ + { key: '\u2190 \u2192', label: 'Cycle NPC' }, + { key: '1', label: 'Highlight' }, + { key: 'TAB', label: 'Camera Mode' }, + ]); // Draw tile grid this.drawWorld(); @@ -79,8 +85,10 @@ export class GameScene extends Phaser.Scene { if (this.mode === 'follow') { this.showFollowPanel(); this.commandPanel.hide(); + this.followCommandPanel.show(); } else if (prevMode === 'follow') { this.npcInfoPanel.hide(); + this.followCommandPanel.hide(); } // Command panel visibility