feat: add follow mode command legend panel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user