mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[Feature] DiceSoNice Fonts (#1318)
* Added a font choice to system diceSoNice settings * .
This commit is contained in:
parent
87643dc662
commit
9f7554cdff
4 changed files with 14 additions and 7 deletions
|
|
@ -2445,7 +2445,8 @@
|
||||||
"texture": "Texture",
|
"texture": "Texture",
|
||||||
"colorset": "Theme",
|
"colorset": "Theme",
|
||||||
"material": "Material",
|
"material": "Material",
|
||||||
"system": "Dice Preset"
|
"system": "Dice Preset",
|
||||||
|
"font": "Font"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"variantRules": {
|
"variantRules": {
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ export default class DHAppearanceSettings extends HandlebarsApplicationMixin(App
|
||||||
context.diceSoNiceSystems = Object.fromEntries(
|
context.diceSoNiceSystems = Object.fromEntries(
|
||||||
[...game.dice3d.DiceFactory.systems].map(([k, v]) => [k, v.name])
|
[...game.dice3d.DiceFactory.systems].map(([k, v]) => [k, v.name])
|
||||||
);
|
);
|
||||||
|
context.diceSoNiceFonts = game.dice3d.exports.Utils.prepareFontList();
|
||||||
|
|
||||||
foundry.utils.mergeObject(
|
foundry.utils.mergeObject(
|
||||||
context.dsnTabs,
|
context.dsnTabs,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ export default class DhAppearance extends foundry.abstract.DataModel {
|
||||||
texture: new StringField({ initial: 'astralsea', required: true, blank: false }),
|
texture: new StringField({ initial: 'astralsea', required: true, blank: false }),
|
||||||
colorset: new StringField({ initial: 'inspired', required: true, blank: false }),
|
colorset: new StringField({ initial: 'inspired', required: true, blank: false }),
|
||||||
material: new StringField({ initial: 'metal', required: true, blank: false }),
|
material: new StringField({ initial: 'metal', required: true, blank: false }),
|
||||||
system: new StringField({ initial: 'standard', required: true, blank: false })
|
system: new StringField({ initial: 'standard', required: true, blank: false }),
|
||||||
|
font: new StringField({ initial: 'auto', required: true, blank: false })
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,11 @@
|
||||||
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.material"}}</label>
|
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.material"}}</label>
|
||||||
{{formInput fields.material value=values.material choices=@root.diceSoNiceMaterials localize=true}}
|
{{formInput fields.material value=values.material choices=@root.diceSoNiceMaterials localize=true}}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="label-container">
|
||||||
|
<label>{{localize "DAGGERHEART.SETTINGS.Menu.appearance.diceSoNice.font"}}</label>
|
||||||
|
{{formInput fields.font value=values.font choices=@root.diceSoNiceFonts localize=true}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="button-container">
|
<div class="button-container">
|
||||||
<button type="button" data-action="preview" data-key="{{dsnTab.id}}">
|
<button type="button" data-action="preview" data-key="{{dsnTab.id}}">
|
||||||
<i class="fa-solid fa-dice"></i>
|
<i class="fa-solid fa-dice"></i>
|
||||||
|
|
@ -60,7 +65,6 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue