Asked for in Discord: "raidplan.io bitte einbauen für die harten Dungeons". raidplan.io has no Aion 2
(only WoW, FFXIV, Lost Ark, New World), so the map tactics got what it offers.
- Dungeon maps: the in-game map textures of 11 expeditions, 7 transcendence dungeons, the 3 sanctuaries
(Ludra, Corroded Decontamination Facility, Chalice of Muspel), the 6 awakening towers and 3
subjugations, as published by the DPS meter Waffle-ens/waffle_meter (dotnet/Assets/Maps, pinned
commit). assets/map/dungeons/dungeons.json is kept by hand: groups, slugs (= tactics.map_slug),
German names from the Global client (aion2.app), KR/TW-only dungeons marked as unavailable, boss
hints for the awakening towers. scripts/download_dungeon_maps.py fetches the images, writes
dungeons/<slug>.webp (2048 px, about 3 MB in total, in Git) and the previews, and finds the dungeon
area (bounds) by comparing each map with the shared background of all maps. Two empty arenas
(round, square) are drawn in code.
- Viewer: image maps and arenas next to the tile maps (MapView.drawImageMap/drawArena, half zoom
steps, opens fitted to the dungeon beside the tactic panel), map picker with the tabs "Welt" and
"Dungeons & Raids", each area remembers its last map, no category panel without markers. The mouse
wheel zooms to the cursor.
- New page raidplan.php ("Raidplaner" in the menu, map.view) = map.php started in the dungeon area.
Location links on dungeon maps point to /raidplan.php and are recognized in texts and by the
calendar picker.
- Tokens (shape type 'token', TokenIcons.js): classes, roles, players 1-8, markers A-D and symbols,
boss, add, danger, stack, spread, tower, orb, bomb. Colour and size come from the toolbar, numbers
and letters count up while placing, tokens are drawn above areas. Server whitelist
TACTIC_TOKEN_ICONS.
- Move tool (✥) with label/delete actions above the selected shape, double click and Del; new action
shape_update in tactics_api.php (points and label, same permissions, snapshot before). Undo also
reverts moves and labels. Rectangle and cone tools, saved as areas.
- Step transitions: tactic_shapes.ref is kept by "Kopie dieses Schritts", tactic copies and restores
(existing shapes get s<id>), so the same shape glides to its new place when stepping or playing;
play button (and space) runs through all steps. 🔗 copies a link to the tactic and step
(?taktik=&schritt=), which opens it after loading.
- Live view: the bot relay only knows the old shape types and events, so placing tokens and moving
send "changed" and the others reload - no bot deploy needed.
- Schema version 60 (tactic_shapes.icon, .ref, enum 'token'; also in sql/schema.sql), tour step on the
dashboard, patch notes and README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
213 lines
No EOL
13 KiB
HTML
213 lines
No EOL
13 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
<title>Aion 2 – Interaktive Karte</title>
|
||
<link rel="stylesheet" href="styles.css">
|
||
</head>
|
||
<body>
|
||
<!-- Main map container -->
|
||
<div id="map-container">
|
||
<canvas id="map-canvas"></canvas>
|
||
|
||
<!-- Loading overlay -->
|
||
<div id="loading-overlay" class="hidden">
|
||
<div class="spinner"></div>
|
||
<p>Karte wird geladen …</p>
|
||
</div>
|
||
|
||
<!-- UI Overlay -->
|
||
<div id="ui-overlay">
|
||
<!-- Kartenwahl: Knopf mit aktueller Karte, oeffnet die Auswahl mit Vorschaubildern -->
|
||
<header id="title-bar" class="panel">
|
||
<button type="button" id="map-picker-btn" aria-haspopup="dialog" title="Karte wechseln">
|
||
<span class="map-picker-label">Karte</span>
|
||
<strong id="map-current-name">Lädt …</strong>
|
||
<span class="map-picker-chevron" aria-hidden="true">▾</span>
|
||
</button>
|
||
<div id="map-unavailable" class="hidden">⚠️ Diese Karte ist auf unserem Patch noch nicht verfügbar.</div>
|
||
</header>
|
||
|
||
<!-- Zoom controls -->
|
||
<aside id="zoom-controls" class="panel">
|
||
<button id="btn-toggle-ui" title="Fenster aus-/einblenden (H)" aria-pressed="false">👁</button>
|
||
<button id="btn-zoom-in" title="Hineinzoomen (+)">+</button>
|
||
<button id="btn-zoom-out" title="Herauszoomen (-)">−</button>
|
||
<button id="btn-reset-view" title="Ansicht zurücksetzen (0)">⟲</button>
|
||
</aside>
|
||
|
||
<!-- Category filter panel -->
|
||
<aside id="category-panel" class="panel">
|
||
<div class="tp-head">
|
||
<button type="button" class="tp-collapse" id="cp-collapse" title="Ein-/Ausklappen" aria-expanded="true">▾</button>
|
||
<h3>Kategorien</h3>
|
||
</div>
|
||
<div class="cp-body">
|
||
<div class="category-bulk">
|
||
<button type="button" id="btn-show-all">Alle anzeigen</button>
|
||
<button type="button" id="btn-hide-all">Alle verstecken</button>
|
||
</div>
|
||
<div id="categories-list"></div>
|
||
</div>
|
||
</aside>
|
||
|
||
<!-- Taktiken: Liste, Schritte der gewaehlten Taktik -->
|
||
<aside id="tactic-panel" class="panel hidden">
|
||
<div class="tp-head">
|
||
<button type="button" class="tp-collapse" id="tp-collapse" title="Ein-/Ausklappen" aria-expanded="true">▾</button>
|
||
<h3>Taktiken</h3>
|
||
<!-- Papierkorb: nur sichtbar, wenn es hier etwas gibt, das man wiederherstellen darf -->
|
||
<button type="button" class="tp-btn hidden" id="tp-trash" title="Gelöschte Taktiken wiederherstellen">Gelöschte</button>
|
||
<button type="button" class="tp-btn hidden" id="tp-new">+ Neu</button>
|
||
</div>
|
||
<!-- Zeichenwerkzeuge (eigene Taktiken; fremde oeffentliche mit map.tactics, offizielle mit map.tactics.highlight) -->
|
||
<div id="tactic-toolbar" class="hidden">
|
||
<button type="button" class="tool active" data-tool="pan" title="Karte verschieben (Esc)">✋</button>
|
||
<button type="button" class="tool" data-tool="move" title="Auswählen und verschieben: Figur oder Zeichnung ziehen, antippen zum Beschriften oder Löschen">✥</button>
|
||
<button type="button" class="tool" data-tool="token" title="Figur setzen: Klasse, Rolle, Spieler, Markierung oder Boss auswählen und auf die Karte klicken">♟</button>
|
||
<button type="button" class="tool" data-tool="pen" title="Stift: frei zeichnen">✏️</button>
|
||
<button type="button" class="tool" data-tool="arrow" title="Pfeil: ziehen">➜</button>
|
||
<button type="button" class="tool" data-tool="line" title="Linie: ziehen">╱</button>
|
||
<button type="button" class="tool" data-tool="circle" title="Kreis: von der Mitte aus ziehen">◯</button>
|
||
<button type="button" class="tool" data-tool="rect" title="Rechteck: von Ecke zu Ecke ziehen">▭</button>
|
||
<button type="button" class="tool" data-tool="cone" title="Kegel (z.B. Frontalangriff): von der Spitze in die Richtung ziehen">◭</button>
|
||
<button type="button" class="tool" data-tool="area" title="Fläche: Eckpunkte klicken, Doppelklick oder Enter schließt ab">⬠</button>
|
||
<button type="button" class="tool" data-tool="point" title="Punkt mit Beschriftung setzen">📍</button>
|
||
<button type="button" class="tool" data-tool="text" title="Text setzen">T</button>
|
||
<button type="button" class="tool" data-tool="eraser" title="Radierer: Zeichnung anklicken">⌫</button>
|
||
<button type="button" class="tool" id="tool-undo" title="Letzte eigene Änderung in diesem Schritt zurücknehmen (Strg+Z)">↶</button>
|
||
<input type="color" id="tool-color" value="#ffd700" title="Farbe">
|
||
<select id="tool-width" title="Strichstärke bzw. Größe der Figuren">
|
||
<option value="2">dünn</option>
|
||
<option value="4" selected>mittel</option>
|
||
<option value="7">dick</option>
|
||
<option value="12">sehr dick</option>
|
||
</select>
|
||
<select id="tool-angle" class="hidden" title="Öffnungswinkel des Kegels">
|
||
<option value="30">Kegel 30°</option>
|
||
<option value="60">Kegel 60°</option>
|
||
<option value="90" selected>Kegel 90°</option>
|
||
<option value="120">Kegel 120°</option>
|
||
<option value="180">Halbkreis</option>
|
||
</select>
|
||
</div>
|
||
<!-- Figuren zum Setzen (Werkzeug ♟) - gezeichnet von TokenIcons -->
|
||
<div id="token-palette" class="hidden"></div>
|
||
<div class="tp-body" id="tp-body">
|
||
<div id="tp-list"></div>
|
||
<p class="tp-message hidden" id="tp-message"></p>
|
||
<div class="tp-detail hidden" id="tp-detail">
|
||
<div class="tp-detail-head">
|
||
<strong id="tp-name"></strong>
|
||
<span class="tp-head-tools">
|
||
<!-- Teilen und Kopieren darf jeder, der die Taktik sieht -->
|
||
<button type="button" class="tp-icon" id="tp-share" title="Link zu dieser Taktik kopieren (öffnet sie beim aktuellen Schritt)">🔗</button>
|
||
<button type="button" class="tp-icon" id="tp-copy" title="Ganze Taktik als eigene Kopie anlegen">⧉</button>
|
||
<span class="tp-edit-only">
|
||
<button type="button" class="tp-icon" id="tp-history" title="Verlauf: früheren Stand wiederherstellen">🕘</button>
|
||
<button type="button" class="tp-icon" id="tp-edit" title="Taktik umbenennen/beschreiben">✎</button>
|
||
<button type="button" class="tp-icon tp-danger" id="tp-delete" title="Taktik löschen">🗑</button>
|
||
</span>
|
||
</span>
|
||
</div>
|
||
<p class="tp-meta" id="tp-meta"></p>
|
||
<!-- Live-Ansicht: wer gerade in dieser Taktik ist (Klick springt in dessen Schritt) -->
|
||
<div class="tp-live hidden" id="tp-live" aria-live="polite"></div>
|
||
<label class="tp-highlight hidden" id="tp-highlight">
|
||
Hervorhebung
|
||
<select id="tp-highlight-select">
|
||
<option value="none">keine</option>
|
||
<option value="recommended">👍 Empfohlen</option>
|
||
<option value="official">★ Offiziell</option>
|
||
</select>
|
||
</label>
|
||
<p class="tp-desc" id="tp-desc"></p>
|
||
<h4>Schritte</h4>
|
||
<ol class="tp-steps" id="tp-steps"></ol>
|
||
<div class="tp-step-actions tp-edit-only">
|
||
<button type="button" class="tp-btn" id="tp-step-add" title="Leeren Schritt am Ende anlegen">+ Schritt</button>
|
||
<button type="button" class="tp-btn" id="tp-step-copy" title="Neuen Schritt mit den Zeichnungen des aktuellen Schritts anlegen">+ Kopie dieses Schritts</button>
|
||
</div>
|
||
<label class="tp-check">
|
||
<input type="checkbox" id="tp-ghosts">
|
||
Vorherige Schritte blass zeigen
|
||
</label>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
|
||
<!-- Schritt-Leiste der gewaehlten Taktik -->
|
||
<div id="step-bar" class="panel hidden">
|
||
<button type="button" id="sb-prev" title="Vorheriger Schritt (←)">◀</button>
|
||
<div class="sb-text">
|
||
<div class="sb-title" id="sb-title"></div>
|
||
<div class="sb-live hidden" id="sb-live"></div>
|
||
<div class="sb-desc" id="sb-desc"></div>
|
||
</div>
|
||
<button type="button" id="sb-next" title="Nächster Schritt (→)">▶</button>
|
||
<!-- Abspielen: die Schritte laufen nacheinander ab, Figuren wandern an ihre neue Stelle -->
|
||
<button type="button" id="sb-play" title="Abspielen: alle Schritte nacheinander zeigen (Leertaste)" aria-pressed="false" aria-label="Abspielen"></button>
|
||
</div>
|
||
|
||
<!-- Aktionen fuer die mit ✥ ausgewaehlte Zeichnung -->
|
||
<div id="shape-actions" class="panel hidden">
|
||
<button type="button" data-shape-action="label" title="Beschriftung ändern">✎</button>
|
||
<button type="button" data-shape-action="delete" class="tp-danger" title="Löschen">🗑</button>
|
||
</div>
|
||
|
||
<!-- Zoom level indicator -->
|
||
<footer id="zoom-indicator" class="panel">
|
||
Zoom: <span id="zoom-level">2</span>
|
||
</footer>
|
||
</div>
|
||
|
||
<!-- Tooltip for marker hover -->
|
||
<div id="tooltip" class="hidden">
|
||
<div class="name"></div>
|
||
<div class="category"></div>
|
||
</div>
|
||
|
||
<!-- Kartenauswahl mit Vorschaubildern (data/previews, nur die Karte ohne Markierungen) -->
|
||
<div id="map-picker" class="hidden" role="dialog" aria-modal="true" aria-labelledby="map-picker-title">
|
||
<div class="map-picker-panel panel">
|
||
<div class="map-picker-head">
|
||
<h2 id="map-picker-title">Karte wählen</h2>
|
||
<div id="map-picker-tabs" class="hidden" role="tablist"></div>
|
||
<button type="button" id="map-picker-close" aria-label="Schließen">✕</button>
|
||
</div>
|
||
<div id="map-picker-list"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Eingabedialog fuer Namen, Beschreibungen und Beschriftungen -->
|
||
<div id="tactic-dialog" class="hidden">
|
||
<form class="panel" id="td-form">
|
||
<h3 id="td-title"></h3>
|
||
<div id="td-fields"></div>
|
||
<div class="td-actions">
|
||
<button type="submit" id="td-submit">Speichern</button>
|
||
<button type="button" id="td-cancel">Abbrechen</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div id="toast" class="hidden"></div>
|
||
</div>
|
||
|
||
<!-- Application scripts -->
|
||
<script src="js/config.js"></script>
|
||
<script src="js/models/MapData.js"></script>
|
||
<script src="js/services/TileService.js"></script>
|
||
<script src="js/services/MarkerService.js"></script>
|
||
<script src="js/views/MapView.js"></script>
|
||
<script src="js/controllers/MapController.js"></script>
|
||
<script src="js/services/TacticService.js"></script>
|
||
<script src="js/services/TacticLiveService.js"></script>
|
||
<script src="js/views/TokenIcons.js"></script>
|
||
<script src="js/views/TacticLayer.js"></script>
|
||
<script src="js/controllers/TacticController.js"></script>
|
||
<script src="js/controllers/LocationController.js"></script>
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html> |