ajout pose et logos

This commit is contained in:
2026-04-02 13:36:14 +02:00
parent ee3aef1576
commit a0d88fa32a
7 changed files with 53 additions and 1 deletions

View File

@@ -166,3 +166,13 @@ Hooks.on("renderChatMessageHTML", (message, html) => {
// Inject Free Roll bar into the chat sidebar
Hooks.on("renderChatLog", (_chatLog, html) => injectFreeRollBar(_chatLog, html))
// Replace the Foundry pause image with the system logo
function _applyPauseLogo() {
const img = document.querySelector("#pause img")
if (!img) return
img.src = "systems/fvtt-oath-hammer/assets/logos/oath_hammer_pause_logo.webp"
img.classList.remove("fa-spin")
}
Hooks.on("pauseGame", (paused) => { if (paused) setTimeout(_applyPauseLogo, 50) })
Hooks.on("ready", () => { if (game.paused) _applyPauseLogo() })