mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Added a system setting (appearance) to remove the Countdown UI (#1265)
This commit is contained in:
parent
6408528319
commit
c4b227de41
4 changed files with 14 additions and 4 deletions
|
|
@ -167,12 +167,14 @@ Hooks.on('setup', () => {
|
|||
});
|
||||
|
||||
Hooks.on('ready', async () => {
|
||||
const appearanceSettings = game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.appearance);
|
||||
ui.resources = new CONFIG.ui.resources();
|
||||
if (game.settings.get(SYSTEM.id, SYSTEM.SETTINGS.gameSettings.appearance).displayFear !== 'hide')
|
||||
ui.resources.render({ force: true });
|
||||
if (appearanceSettings.displayFear !== 'hide') ui.resources.render({ force: true });
|
||||
|
||||
ui.countdowns = new CONFIG.ui.countdowns();
|
||||
ui.countdowns.render({ force: true });
|
||||
if (appearanceSettings.displayCountdownUI) {
|
||||
ui.countdowns = new CONFIG.ui.countdowns();
|
||||
ui.countdowns.render({ force: true });
|
||||
}
|
||||
|
||||
if (!(ui.compendiumBrowser instanceof applications.ui.ItemBrowser))
|
||||
ui.compendiumBrowser = new applications.ui.ItemBrowser();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue