From 635529a4169be72c25c72fcf1217899ce8846992 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Thu, 2 Apr 2026 20:17:51 +0200 Subject: [PATCH] Fix logo --- css/fvtt-oath-hammer.css | 3 ++- less/base.less | 3 ++- module/documents/item.mjs | 2 +- oath-hammer.mjs | 9 --------- system.json | 4 ++-- 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/css/fvtt-oath-hammer.css b/css/fvtt-oath-hammer.css index 7371ab9..72867fc 100644 --- a/css/fvtt-oath-hammer.css +++ b/css/fvtt-oath-hammer.css @@ -320,7 +320,8 @@ font-weight: bold; color: #084a74; } -#pause img { +#pause > img { + content: url("../assets/logos/oath_hammer_pause_logo.webp"); animation: none; width: 260px; height: auto; diff --git a/less/base.less b/less/base.less index 40b4959..5fecbf2 100644 --- a/less/base.less +++ b/less/base.less @@ -270,7 +270,8 @@ // PAUSE OVERLAY — replace default Foundry spinner with system logo // ============================================================ #pause { - img { + & > img { + content: url("../assets/logos/oath_hammer_pause_logo.webp"); animation: none; width: 260px; height: auto; diff --git a/module/documents/item.mjs b/module/documents/item.mjs index f4fdc42..be268a0 100644 --- a/module/documents/item.mjs +++ b/module/documents/item.mjs @@ -5,7 +5,7 @@ const defaultItemImg = { equipment: "systems/fvtt-oath-hammer/assets/icons/icon_equipment.svg", spell: "systems/fvtt-oath-hammer/assets/icons/icon_spell.svg", miracle: "systems/fvtt-oath-hammer/assets/icons/icon_miracle.svg", - "magic-item": "systems/fvtt-oath-hammer/assets/icons/icon_magic_item.svg", + "magic-item": "systems/fvtt-oath-hammer/assets/icons/icon_magicitem.svg", trait: "systems/fvtt-oath-hammer/assets/icons/icon_ability.svg", oath: "systems/fvtt-oath-hammer/assets/icons/icon_oath.svg", building: "systems/fvtt-oath-hammer/assets/icons/icon_building.svg", diff --git a/oath-hammer.mjs b/oath-hammer.mjs index 6940d64..8aa3dc9 100644 --- a/oath-hammer.mjs +++ b/oath-hammer.mjs @@ -167,12 +167,3 @@ 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() }) diff --git a/system.json b/system.json index 69d64b2..18d9655 100644 --- a/system.json +++ b/system.json @@ -2,10 +2,10 @@ "id": "fvtt-oath-hammer", "title": "Oath Hammer RPG", "description": "Oath Hammer RPG System for FoundryVTT", - "version": "13.0.0", + "version": "14.0.0", "compatibility": { "minimum": "13", - "verified": "13" + "verified": "14" }, "esmodules": [ "oath-hammer.mjs"