From 6fa09cc27dd7355da490f0826a19a083fce54b71 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Tue, 31 Mar 2026 00:58:19 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20logo=20de=20pause=20C=C3=A9lestopol=201?= =?UTF-8?q?922?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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> --- fvtt-celestopol.mjs | 10 ++++++++++ styles/global.less | 14 ++++++++++++++ 2 files changed, 24 insertions(+) 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 + } +}