feat: add German localization and wrap countdown visual elements for styling improvements.

This commit is contained in:
CPTN Cosmo 2025-12-22 15:17:54 +01:00
parent d39c5e3568
commit f4f549e018
5 changed files with 201 additions and 133 deletions

View file

@ -43,7 +43,11 @@ export class CountdownTrackerApp extends HandlebarsApplicationMixin(ApplicationV
static initialize() {
this.instance = new CountdownTrackerApp();
const pos = game.settings.get("dh-improved-countdowns", "position");
let pos = game.settings.get("dh-improved-countdowns", "position");
if (!pos || (!pos.top && !pos.left) || (pos.top === 0 && pos.left === 0 && !pos.width)) {
// Default to top-left if no valid position is stored
pos = { top: 100, left: 100 };
}
this.instance.render(true, { position: pos });
}