RC-90 | Add support for bar-input controls in item sheets

This commit is contained in:
Oliver-Akins 2025-01-12 00:19:39 -07:00
parent 8d92040230
commit 5c78523791
12 changed files with 140 additions and 13 deletions

View file

@ -87,12 +87,28 @@ export class WeaponData extends foundry.abstract.TypeDataModel {
value: this.damage,
min: 0,
},
// { type: `bar`, label: `Wear` },
{
type: `bar`,
label: `RipCrypt.common.wear`,
value: {
label: `RipCrypt.Apps.current-wear`,
path: `system.wear.value`,
value: this.wear.value,
min: 0, max: this.wear.max,
},
max: {
label: `RipCrypt.Apps.max-wear`,
path: `system.wear.max`,
value: this.wear.max,
min: 0,
},
},
{
type: `dropdown`,
label: `Access`,
path: `system.access`,
value: this.access,
limited: false,
options: [
{
label: `RipCrypt.common.empty`,