MCPcopy Create free account
hub / github.com/GoodStartLabs/AI_Diplomacy / constructor

Method constructor

ai_animation/src/debug/debugMenu.ts:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 private isExpanded: boolean = false;
19
20 constructor() {
21 this.toggleBtn = document.getElementById('debug-toggle-btn') as HTMLButtonElement;
22 this.panel = document.getElementById('debug-panel') as HTMLElement;
23 this.closeBtn = document.getElementById('debug-close-btn') as HTMLButtonElement;
24
25 if (!this.toggleBtn || !this.panel || !this.closeBtn) {
26 throw new Error('Debug menu elements not found in DOM');
27 }
28
29 this.initEventListeners();
30
31 // Start with the menu open
32 this.toggle()
33 }
34
35 private initEventListeners(): void {
36 // Toggle button click

Callers

nothing calls this directly

Calls 2

initEventListenersMethod · 0.95
toggleMethod · 0.95

Tested by

no test coverage detected