diff --git a/fvtt-celestopol.mjs b/fvtt-celestopol.mjs index 7ddc2f3..056ca76 100644 --- a/fvtt-celestopol.mjs +++ b/fvtt-celestopol.mjs @@ -119,6 +119,16 @@ Hooks.once("init", () => { /* ─── 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", () => { console.log(`${SYSTEM_ID} | System ready`) diff --git a/styles/global.less b/styles/global.less index 8b6a0c4..e13a543 100644 --- a/styles/global.less +++ b/styles/global.less @@ -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 + } +}