feat: add German localization and wrap countdown visual elements for styling improvements.
This commit is contained in:
parent
d39c5e3568
commit
f4f549e018
5 changed files with 201 additions and 133 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue