mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Added checkboxes for muting the sounds of dice animations
This commit is contained in:
parent
4c2d31b2f4
commit
c11b479916
6 changed files with 47 additions and 6 deletions
|
|
@ -2857,6 +2857,7 @@
|
|||
"system": "Dice Preset",
|
||||
"font": "Font",
|
||||
"critical": "Duality Critical Animation",
|
||||
"muted": "Muted",
|
||||
"diceAppearance": "Dice Appearance",
|
||||
"animations": "Animations",
|
||||
"defaultAnimations": "Set Animations As Player Defaults",
|
||||
|
|
|
|||
|
|
@ -708,14 +708,14 @@ const getDiceSoNiceSFX = sfxOptions => {
|
|||
if (sfxOptions.critical && criticalAnimationData.class) {
|
||||
return {
|
||||
specialEffect: criticalAnimationData.class,
|
||||
options: {}
|
||||
options: { ...criticalAnimationData.options }
|
||||
};
|
||||
}
|
||||
|
||||
if (sfxOptions.higher && sfxOptions.data.higher) {
|
||||
return {
|
||||
specialEffect: sfxOptions.data.higher.class,
|
||||
options: {}
|
||||
options: { ...sfxOptions.data.higher.options }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ export default class DhAppearance extends foundry.abstract.DataModel {
|
|||
initial: null,
|
||||
blank: true,
|
||||
choices: CONFIG.DH.GENERAL.diceSoNiceSFXClasses
|
||||
}),
|
||||
options: new foundry.data.fields.SchemaField({
|
||||
muteSound: new foundry.data.fields.BooleanField()
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -68,5 +68,29 @@
|
|||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
color-picker {
|
||||
gap: 4px;
|
||||
background: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.animation-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.animation-inner-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: right;
|
||||
gap: 8px;
|
||||
|
||||
.animation-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,16 @@
|
|||
{{/if}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.critical"}}</label>
|
||||
|
||||
<div class="form-fields">
|
||||
{{formInput fields.diceSoNice.fields.sfx.fields.critical.fields.class value=setting.diceSoNice.sfx.critical.class blank="" localize=true}}
|
||||
</div>
|
||||
<div class="form-fields">
|
||||
{{formInput fields.diceSoNice.fields.sfx.fields.critical.fields.class value=setting.diceSoNice.sfx.critical.class blank="" localize=true}}
|
||||
</div>
|
||||
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.muted"}}</label>
|
||||
<div class="form-fields">
|
||||
{{formInput fields.diceSoNice.fields.sfx.fields.critical.fields.options.fields.muteSound value=setting.diceSoNice.sfx.critical.options.muteSound localize=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class='tab-navigation'>
|
||||
|
|
|
|||
|
|
@ -42,9 +42,15 @@
|
|||
|
||||
{{#if animations}}
|
||||
<h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.animations"}}</h3>
|
||||
<div class="label-container full-width">
|
||||
<div class="animation-container">
|
||||
<label>{{localize "DAGGERHEART.CONFIG.DaggerheartDiceAnimationEvents.higher.name"}}</label>
|
||||
{{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}}
|
||||
<div class="animation-inner-container">
|
||||
{{formInput fields.sfx.fields.higher.fields.class value=values.sfx.higher.class blank="" localize=true}}
|
||||
<div class="animation-control">
|
||||
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.muted"}}</label>
|
||||
{{formInput fields.sfx.fields.higher.fields.options.fields.muteSound value=values.sfx.higher.options.muteSound localize=true}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue