Got most of the previous UI tweaks back in, if those UI elements still exist

This commit is contained in:
TheLastScrub
2025-05-17 21:30:57 -07:00
parent a84456fd60
commit 32af07ef43
3 changed files with 30 additions and 8 deletions
+10
View File
@@ -182,3 +182,13 @@ Hooks.on("createActor", async (actor, options, userId) => {
console.log(ex);
}
});
Hooks.on("renderGamePause", function (_, html, options) {
if (options.cssClass !== "paused") return;
try {
let gamePausedOverrideText = game.i18n.translations.DG.MissionPaused;
html.querySelector("figcaption").textContent = gamePausedOverrideText;
html.querySelector("img").classList.remove("fa-spin"); // I don't like the logo spinning personally
} catch {}
});