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 (#1781)
This commit is contained in:
parent
4c2d31b2f4
commit
fad830580c
6 changed files with 47 additions and 6 deletions
|
|
@ -2857,6 +2857,7 @@
|
||||||
"system": "Dice Preset",
|
"system": "Dice Preset",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"critical": "Duality Critical Animation",
|
"critical": "Duality Critical Animation",
|
||||||
|
"muted": "Muted",
|
||||||
"diceAppearance": "Dice Appearance",
|
"diceAppearance": "Dice Appearance",
|
||||||
"animations": "Animations",
|
"animations": "Animations",
|
||||||
"defaultAnimations": "Set Animations As Player Defaults",
|
"defaultAnimations": "Set Animations As Player Defaults",
|
||||||
|
|
|
||||||
|
|
@ -708,14 +708,14 @@ const getDiceSoNiceSFX = sfxOptions => {
|
||||||
if (sfxOptions.critical && criticalAnimationData.class) {
|
if (sfxOptions.critical && criticalAnimationData.class) {
|
||||||
return {
|
return {
|
||||||
specialEffect: criticalAnimationData.class,
|
specialEffect: criticalAnimationData.class,
|
||||||
options: {}
|
options: { ...criticalAnimationData.options }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sfxOptions.higher && sfxOptions.data.higher) {
|
if (sfxOptions.higher && sfxOptions.data.higher) {
|
||||||
return {
|
return {
|
||||||
specialEffect: sfxOptions.data.higher.class,
|
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,
|
initial: null,
|
||||||
blank: true,
|
blank: true,
|
||||||
choices: CONFIG.DH.GENERAL.diceSoNiceSFXClasses
|
choices: CONFIG.DH.GENERAL.diceSoNiceSFXClasses
|
||||||
|
}),
|
||||||
|
options: new foundry.data.fields.SchemaField({
|
||||||
|
muteSound: new foundry.data.fields.BooleanField()
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,5 +68,29 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
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,8 +9,15 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.critical"}}</label>
|
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.critical"}}</label>
|
||||||
|
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
{{formInput fields.diceSoNice.fields.sfx.fields.critical.fields.class value=setting.diceSoNice.sfx.critical.class blank="" localize=true}}
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,15 @@
|
||||||
|
|
||||||
{{#if animations}}
|
{{#if animations}}
|
||||||
<h3>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.animations"}}</h3>
|
<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>
|
<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>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue