RC-90 | Add support for bar-input controls in item sheets
This commit is contained in:
parent
8d92040230
commit
5c78523791
12 changed files with 140 additions and 13 deletions
|
|
@ -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`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue