diff --git a/assets/time-out.jpg b/assets/time-out.jpg new file mode 100644 index 0000000..a73f57f Binary files /dev/null and b/assets/time-out.jpg differ diff --git a/src/timer-screen.js b/src/timer-screen.js index b197e8b..11bea4a 100644 --- a/src/timer-screen.js +++ b/src/timer-screen.js @@ -31,6 +31,7 @@ export class TimerScreen extends FormApplication { const overrides = { height: "auto", + width: "33rem", id: "yet-another-timer", template: templatePath, title: game.i18n?.localize("YAT.title") || "Yet another timer", diff --git a/src/timer.js b/src/timer.js index 2b9df5a..82e4735 100644 --- a/src/timer.js +++ b/src/timer.js @@ -14,7 +14,7 @@ Hooks.on('init', function() { Hooks.on('ready', function(details) { logger.log('Timer module ready:', details); - // startTimers(); + startTimers(); isPaused = false; addSomeTimers(); diff --git a/templates/timer-complete.hbs b/templates/timer-complete.hbs index db6dc99..656539f 100644 --- a/templates/timer-complete.hbs +++ b/templates/timer-complete.hbs @@ -1 +1,3 @@

{{ localize "YAT.timer.your-timer-is-complete" name=name }}!

+ + diff --git a/templates/timer.hbs b/templates/timer.hbs index b8e8daf..b65a0ef 100644 --- a/templates/timer.hbs +++ b/templates/timer.hbs @@ -10,7 +10,7 @@ {{/if}} @@ -19,20 +19,22 @@
{{#each timers }} -
-

{{name}}

+
+

{{ name }}

-

{{ localize "YAT.duration" }}: {{duration}}

-

{{ localize "YAT.time-remaining" }}: {{formatRemainingTime durationSeconds elapsedTimeSeconds}}

+

{{ localize "YAT.duration" }}: {{ duration }}

+

{{ localize "YAT.time-remaining" }}: {{ formatRemainingTime durationSeconds elapsedTimeSeconds }}

- {{#if isPaused}} + + {{ isPaused }} + {{#if isPaused }} - {{else}} - - {{/if}} + {{ else }} + + {{/if }}
- {{/each}} + {{/each }}