Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions client/src/UIScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class UIScene extends Phaser.Scene {
private controlsVisible = false;
private geneticsVisible = true; // NEW: Genetics panel visibility
private isCompletionPanel = false; // Track if level panel is showing completion
// Planning phase tracking removed - handled by GameScene
private isPlanningPhase = false; // Track if planning phase is active

// Current game state references
private gameData: any = {};
Expand Down Expand Up @@ -1015,6 +1015,7 @@ Other:

public showPlanningPanel() {
console.log('📝 Showing planning panel');
if (this.isPlanningPhase) return; // Avoid reopening if already active
this.isPlanningPhase = true;

if (this.planningPanel) {
Expand All @@ -1029,6 +1030,7 @@ Other:

public hidePlanningPanel() {
console.log('🚀 Hiding planning panel');
if (!this.isPlanningPhase) return; // Avoid redundant calls
this.isPlanningPhase = false;

if (this.planningPanel) {
Expand Down Expand Up @@ -1151,12 +1153,10 @@ Other:
}
}
}
}
}




// Orphaned code removed - migration results handled elsewhere
// Orphaned code removed - migration results handled elsewhere

public showCampaignCompletePanel(data: any) {
console.log('🎉 UIScene.showCampaignCompletePanel called:', data);
Expand Down
Loading