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:
@@ -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`)
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user