feat: add follow mode command legend panel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 16:26:15 +00:00
parent be97e74032
commit 09be11b3cc
+8
View File
@@ -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