feat: Add localization support, inject 'Create Countdown' button into GM sidebar, display total countdown value, and enhance tracker styling and refresh handling.

This commit is contained in:
CPTN Cosmo 2025-12-21 21:40:06 +01:00
parent 1d9dc93605
commit a44724f506
6 changed files with 110 additions and 14 deletions

View file

@ -16,7 +16,7 @@ export class CountdownTrackerApp extends HandlebarsApplicationMixin(ApplicationV
static DEFAULT_OPTIONS = {
id: "dh-improved-countdowns-app",
tag: "aside",
tag: "div",
classes: ["dh-improved-countdowns"],
window: {
frame: false,
@ -53,7 +53,7 @@ export class CountdownTrackerApp extends HandlebarsApplicationMixin(ApplicationV
const isLocked = game.settings.get("dh-improved-countdowns", "locked");
// Fetch countdowns from system settings
const systemCountdownSetting = game.settings.get("daggerheart", "countdowns");
const systemCountdownSetting = game.settings.get("daggerheart", "Countdowns");
const countdowns = {};
if (systemCountdownSetting && systemCountdownSetting.countdowns) {