Register

Hourglass

An Add-on Module for Foundry Virtual Tabletop

Author: Octarine Project Source: Project URL Versions 0.8.0+ (Verified 12) Last Updated 5 months ago

Hourglass

Configurable animated graphical timers & round trackers for foundry VTT that can be shown by the GM to all players.

Hourglass Window Hourglass Window

Hourglass Options

To create a new hourglass, a Game Master may select the hourglass icon under the Token Controls.

Hourglass Window

This will open the options window for you to configure your hourglass.

Hourglass Window

Usage

The start hourglass button, once pressed, will cause a new hourglass window to appear on the screen of all players currently in the game session using the chosen options:

Hourglass Window

Once the duration has elapsed, the remaining time will dissapear and be replaced by the end message (if one has been entered):

Hourglass Window

Players can move the hourglass around the screen while it is counting down. They do also have the option of closing it, though they should only do this once the duration has elapsed.

Once an hourglass has been created, the module will retain the "last used" settings for the duration of the session. This means that you can create subsequent hourglasses using the same settings without having to re-enter them.

Multiple hourglasses can be opened by a GM at one time, should you wish to track multiple events simultaneously.

Manual "on click" control

Timers can be set to "manual" control by setting the Duration type to "Manual (user click) in the hourglass options.

Hourglass Window

The manual timers feature a forward and backward button that, when clicked, will decrease and increase the remaining increments respectively. This could potentially be used by GMs to include manually controlled/incremented event or round tracking within their games. Both forward and back buttons are only visible to users with the GM role.

Styles

As well as changing the sand colour, each timer has a range of different visual styles to choose from.

Hourglass Timer Round Stone Hourglass Timer Round Stone

Each style has all of the same functionality and customisation options as the default.

A heartfelt thankyou to artist Zael for creating some fantastic alternative timer styles with a range of themes.

Presets

Game Masters have the ability to save Hourglass Options as Presets. This will allow frequently used configurations to be quickly recalled and displayed.

Hourglass Window

End Sound

Games masters can choose to play a sound at the end of the timer duration by selecting it from the "End Sound" dropdown in the options window.
Hourglass Window
Once selected, the sound can be previewed (in the GM's client only) by pressing the "Play" button on the right of the dropdown.
 
There are a range of pre-loaded sounds to choose from. The GM may alternatively choose to add their own sound from a file by selecting "Select from audio file...". Once selected, the GM can use the file picker to select a previously uploaded audio file or upload a new one.
 
When an End Sound is selected, this sound will play in all clients where the timer window appears once the timer duration has elapsed.

Pausing

Once a timer has been created, the countdown can be paused by clicking the "pause" button in the top right of the timer window.
Hourglass Window
This will cause the animation to stop playing and for the words "(Paused)" to appear in the text area of the window. In the case where "Display time as text" has been selected, the "(Paused)" indicator will be appended to the remaining time.
Hourglass Window
To resume the countdown, the GM can simply press the "Resume" button (which has replaced the "Pause" button) in the top right of the window.

Both the "Pause" and "Resume" buttons are only visible for users with GM role.
 

Macro Support

From version 1.9 the ability to show and start Hourglass timer windows from macros has been introduced.

To access the new hourglass API, enter the following line as a **Script**:

`game.modules.get('hourglass').api`

The following methods are available:
  • showTimer(duration: number) - Displays and starts a default hourglass with the entered duration.
  • showTimerPreset(presetTitle: string, duration: number = null) - Displays and starts a previously saved preset timer with the matching title property. The duration for the preset timer can be overridden by entering a duration (in seconds) into the second optional parameter. For countdown timers, this property is set as the "duration seconds". For manual timers, this property is set as the "increments".
  • closeAllTimers() - Closes all open timers for all players.
As the Hourglass module is limited to use by GM and Assistant GM users, non-GM players will not have access to call these API methods.

Example Usage:

Macro Examples

Popout!

The Popout! module is disabled for Hourglass Timer windows due to compatibility issues.

Categories

Available Versions

  1. Version 1.9.0

    5 months ago
    Foundry Version 0.8.0+ (Verified 12) Manifest URL Read Notes
  2. Version 1.8.0

    5 months, 1 week ago
    Foundry Version 0.8.0+ (Verified 12) Manifest URL Read Notes
  3. Version 1.7.0

    1 year, 5 months ago
    Foundry Version 0.8.0+ (Verified 11) Manifest URL Read Notes
  4. Version 1.6.0

    Foundry Version 0.8.0+ (Verified 11) Manifest URL Read Notes
  5. Version 1.5.1

    Foundry Version 0.8.0+ (Verified 10) Manifest URL Read Notes
  6. Version 1.5.0

    Foundry Version 0.8.0+ (Verified 10) Manifest URL Read Notes
  7. Version 1.4.1

    Foundry Version 0.8.0+ (Verified 10) Manifest URL Read Notes
  8. Version 1.4.0

    Foundry Version 0.8.0+ (Verified 10) Manifest URL Read Notes
  9. Version 1.3.0

    Foundry Version 0.8.0+ (Verified 10) Manifest URL Read Notes
  10. Version 1.2.0

    Foundry Version 0.8.0+ (Verified 9) Manifest URL Read Notes
  11. Version 1.1.0

    Foundry Version 0.8.0+ (Verified 0.8.9) Manifest URL Read Notes
  12. Version 1.0.1

    Foundry Version 0.8.0+ (Verified 0.8.9) Manifest URL Read Notes
  13. Version 1.0.0

    Foundry Version 0.8.0+ (Verified 0.8.9) Manifest URL Read Notes