diff --git a/daggerheart.mjs b/daggerheart.mjs index 7bfdf874..a018caba 100644 --- a/daggerheart.mjs +++ b/daggerheart.mjs @@ -88,6 +88,7 @@ CONFIG.ui.actors = applications.sidebar.DhActorDirectory; CONFIG.ui.daggerheartMenu = applications.sidebar.DaggerheartMenu; CONFIG.ui.resources = applications.ui.DhFearTracker; CONFIG.ui.countdowns = applications.ui.DhCountdowns; +CONFIG.ui.pause = applications.ui.DhGamePause; CONFIG.ux.ContextMenu = applications.ux.DHContextMenu; CONFIG.ux.TooltipManager = documents.DhTooltipManager; CONFIG.ux.TokenManager = new TokenManager(); diff --git a/module/applications/ui/_module.mjs b/module/applications/ui/_module.mjs index 80d3ebe4..e30950b5 100644 --- a/module/applications/ui/_module.mjs +++ b/module/applications/ui/_module.mjs @@ -8,3 +8,4 @@ export { default as DhHotbar } from './hotbar.mjs'; export { default as DhSceneNavigation } from './sceneNavigation.mjs'; export { ItemBrowser } from './itemBrowser.mjs'; export { default as DhProgress } from './progress.mjs'; +export { default as DhGamePause } from './gamePause.mjs'; diff --git a/module/applications/ui/gamePause.mjs b/module/applications/ui/gamePause.mjs new file mode 100644 index 00000000..d0f3f6ed --- /dev/null +++ b/module/applications/ui/gamePause.mjs @@ -0,0 +1,10 @@ +export default class DhGamePause extends foundry.applications.ui.GamePause { + /** @override */ + async _prepareContext(options) { + const context = await super._prepareContext(options); + context.spin = false; + context.icon = 'systems/daggerheart/assets/logos/compatible_with_DH_logos-10.png'; + + return context; + } +} \ No newline at end of file diff --git a/styles/less/ui/game-pause/game-pause.less b/styles/less/ui/game-pause/game-pause.less new file mode 100644 index 00000000..097f2c55 --- /dev/null +++ b/styles/less/ui/game-pause/game-pause.less @@ -0,0 +1,9 @@ +@import '../../utils/mixin.less'; + +#pause.paused { + figcaption { + position: absolute; + margin-top: 24px; + animation: pause-pulse 3s ease-in-out infinite; + } +} \ No newline at end of file diff --git a/styles/less/ui/game-pause/index.less b/styles/less/ui/game-pause/index.less new file mode 100644 index 00000000..ad28855c --- /dev/null +++ b/styles/less/ui/game-pause/index.less @@ -0,0 +1 @@ +@import './game-pause.less'; \ No newline at end of file diff --git a/styles/less/ui/index.less b/styles/less/ui/index.less index 53a71b9b..af1614e4 100644 --- a/styles/less/ui/index.less +++ b/styles/less/ui/index.less @@ -2,6 +2,7 @@ @import './combat-sidebar/index.less'; @import './countdown/index.less'; @import './effects-display/index.less'; +@import './game-pause/index.less'; @import './item-browser/index.less'; @import './ownership-selection/index.less'; @import './resources/index.less'; diff --git a/styles/less/utils/colors.less b/styles/less/utils/colors.less index bb219ebb..ae23fa28 100755 --- a/styles/less/utils/colors.less +++ b/styles/less/utils/colors.less @@ -234,6 +234,20 @@ } } +@keyframes pause-pulse { + 0% { + filter: drop-shadow(0 0 5px @secondary-blue); + } + + 50% { + filter: drop-shadow(0 0 5px @golden); + } + + 100% { + filter: drop-shadow(0 0 5px @secondary-blue); + } +} + // LESS variable versions of core foundry color variables @color-border: var(--color-border); @color-fieldset-border: var(--color-fieldset-border);