diff --git a/App/sims/busfahrt/game.html b/App/sims/busfahrt/game.html index 5bd2705..24d980d 100644 --- a/App/sims/busfahrt/game.html +++ b/App/sims/busfahrt/game.html @@ -37,11 +37,14 @@ /* ===== Topbar ===== */ .ggs-topbar { - position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1001; + position: absolute; top: 8px; left: 8px; z-index: 1001; display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; + max-width: calc(100vw - 16px); pointer-events: none; /* leere Bereiche zur Karte durchlassen */ } + /* Auftrag-Nr im Stats-Panel (links, bei den Graphen) */ + .bf-stats__order { font-weight: 800; font-size: 14px; color: var(--bf-green); margin-bottom: 8px; } .ggs-topbar a { text-decoration: none; background: #f1ede2; color: var(--bf-ink); @@ -610,10 +613,7 @@

Busfahrt

- 💰 5.000 € - 🌙 Nachtfahrt -
🏠
@@ -632,6 +632,7 @@
+
Budget @@ -880,6 +881,7 @@ const map = L.map('map', { center: [40, 20], zoom: 3, minZoom: 2, maxZoom: 8, worldCopyJump: true, }); +map.zoomControl.setPosition('bottomleft'); // oben links ist die Marken-Pille L.control.scale({ position: 'bottomleft', imperial: false, metric: true, maxWidth: 160 }).addTo(map); let tileLayer = null; let blackMapManual = BLACK_MAP_INITIAL; // vom User per Toggle gesetzt @@ -1305,12 +1307,16 @@ async function boot() { function updateTopbar() { if (!game) return; - document.getElementById('topbar-budget').textContent = '💰 ' + formatEur(game.budget); + // Budget nur noch im Stats-Panel/Graph (live) — kein Widerspruch mehr + const sb = document.getElementById('stats-budget-val'); + if (sb) sb.textContent = formatEur(game.budget); const idx = Math.min(game.orderIndex + 1, totalOrders); - document.getElementById('topbar-counter').textContent = `Auftrag ${idx} / ${totalOrders}`; + const c = document.getElementById('topbar-counter'); + if (c) c.textContent = `Auftrag ${idx} / ${totalOrders}`; // Night-Pill const order = game.currentOrder || (game.tourOrders[game.orderIndex] || null); - document.getElementById('topbar-night').classList.toggle('show', !!(order && order.isNight)); + const n = document.getElementById('topbar-night'); + if (n) n.classList.toggle('show', !!(order && order.isNight)); } function startGame() {