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