Removing the relationship popup - currently not used.

This commit is contained in:
Tyler Marques 2025-05-28 10:35:27 -07:00
parent a02594e3cc
commit cebfa8e980
No known key found for this signature in database
GPG key ID: CB99EDCF41D3016F
5 changed files with 0 additions and 11 deletions

View file

@ -16,7 +16,6 @@
<div>
<button id="load-btn">Load Game</button>
<button id="standings-btn">📊 Leaderboard</button>
<button id="relationships-btn">🔄 Relationships</button>
<button id="prev-btn" disabled>← Prev</button>
<button id="next-btn" disabled>Next →</button>
<button id="play-btn" disabled>▶ Play</button>

View file

@ -74,8 +74,6 @@ if (null === leaderboard) throw new Error("Element with ID 'leaderboard' not fou
export const standingsBtn = document.getElementById('standings-btn');
if (null === standingsBtn) throw new Error("Element with ID 'standings-btn' not found");
export const relationshipsBtn = document.getElementById('relationships-btn');
if (null === relationshipsBtn) throw new Error("Element with ID 'relationships-btn' not found");
// Add roundRect polyfill for browsers that don't support it

View file

@ -1,6 +1,5 @@
import * as THREE from "three"
import { updateRotatingDisplay } from "./components/rotatingDisplay";
import { updateRelationshipPopup } from "./domElements/relationshipPopup";
import { type CoordinateData, CoordinateDataSchema, PowerENUM } from "./types/map"
import type { GameSchemaType } from "./types/gameState";
import { GameSchema } from "./types/gameState";
@ -265,7 +264,6 @@ class GameState {
// Update rotating display and relationship popup with game data
if (this.gameData) {
updateRotatingDisplay(this.gameData, this.phaseIndex, this.currentPower);
updateRelationshipPopup();
updateGameIdDisplay();
}
})

View file

@ -6,7 +6,6 @@ import { logger } from "./logger";
import { loadBtn, prevBtn, nextBtn, speedSelector, fileInput, playBtn, mapView, loadGameBtnFunction } from "./domElements";
import { updateChatWindows } from "./domElements/chatWindows";
import { initStandingsBoard, hideStandingsBoard, showStandingsBoard } from "./domElements/standingsBoard";
import { initRelationshipPopup, hideRelationshipPopup, updateRelationshipPopup } from "./domElements/relationshipPopup";
import { displayPhaseWithAnimation, advanceToNextPhase, resetToPhase, nextPhase, previousPhase } from "./phase";
import { config } from "./config";
import { Tween, Group, Easing } from "@tweenjs/tween.js";
@ -29,9 +28,6 @@ function initScene() {
// Initialize standings board
initStandingsBoard();
// Initialize relationship popup
initRelationshipPopup();
// Load coordinate data, then build the map
gameState.loadBoardState().then(() => {
initMap(gameState.scene).then(() => {

View file

@ -4,7 +4,6 @@ import { updatePhaseDisplay } from "./domElements";
import { initUnits } from "./units/create";
import { updateSupplyCenterOwnership, updateLeaderboard, updateMapOwnership as _updateMapOwnership } from "./map/state";
import { updateChatWindows, addToNewsBanner } from "./domElements/chatWindows";
import { updateRelationshipPopup } from "./domElements/relationshipPopup";
import { createAnimationsForNextPhase } from "./units/animate";
import { speakSummary } from "./speech";
import { config } from "./config";
@ -86,7 +85,6 @@ export function displayPhase(skipMessages = false) {
// Update UI elements with smooth transitions
updateLeaderboard(currentPhase);
_updateMapOwnership();
updateRelationshipPopup();
// Add phase info to news banner if not already there
const phaseBannerText = `Phase: ${currentPhase.name}`;