feat: logo de pause Célestopol 1922

- Hook renderPause remplace le logo Foundry par assets/ui/logo_jeu.png
- CSS : suppression rotation, ombre dorée, texte 'PAUSED' masqué

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-31 00:58:19 +02:00
parent a316fb9c61
commit 6fa09cc27d
2 changed files with 24 additions and 0 deletions

View File

@@ -119,6 +119,16 @@ Hooks.once("init", () => {
/* ─── Ready hook ─────────────────────────────────────────────────────────── */ /* ─── Ready hook ─────────────────────────────────────────────────────────── */
// Remplace le logo de pause par celui du jeu
Hooks.on("renderPause", (_app, html) => {
const root = html instanceof HTMLElement ? html : html[0]
if (!root) return
const img = root.tagName === "IMG" ? root : root.querySelector("img")
if (img) img.src = "systems/fvtt-celestopol/assets/ui/logo_jeu.png"
})
/* ─── Ready hook ─────────────────────────────────────────────────────────── */
Hooks.once("ready", () => { Hooks.once("ready", () => {
console.log(`${SYSTEM_ID} | System ready`) console.log(`${SYSTEM_ID} | System ready`)

View File

@@ -337,3 +337,17 @@
} }
} }
// ─── Logo de pause ────────────────────────────────────────────────────────────
#pause {
figure {
img {
animation: none; // Supprime la rotation du logo Foundry par défaut
filter: drop-shadow(0 0 20px rgba(196, 154, 26, 0.7));
max-width: 480px;
width: 60vw;
}
figcaption { display: none; } // Le logo parle de lui-même
}
}