mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-28 17:29:41 +00:00
Removing the relationship popup - currently not used.
This commit is contained in:
parent
a02594e3cc
commit
cebfa8e980
5 changed files with 0 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue