mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[PR] [Feature] 590 - Daggerheart Menu (#1007)
* Added menu with refresh tools * Replaced menu icon
This commit is contained in:
parent
eefb28c312
commit
f1b6d3851d
53 changed files with 730 additions and 350 deletions
|
|
@ -199,8 +199,7 @@ export const typeConfig = {
|
|||
key: 'system.itemFeatures',
|
||||
label: 'DAGGERHEART.GENERAL.features',
|
||||
choices: () =>
|
||||
Object.entries(CONFIG.DH.ITEM.weaponFeatures)
|
||||
.map(([k, v]) => ({ value: k, label: v.label })),
|
||||
Object.entries(CONFIG.DH.ITEM.weaponFeatures).map(([k, v]) => ({ value: k, label: v.label })),
|
||||
operator: 'contains3'
|
||||
}
|
||||
]
|
||||
|
|
@ -241,8 +240,7 @@ export const typeConfig = {
|
|||
key: 'system.itemFeatures',
|
||||
label: 'DAGGERHEART.GENERAL.features',
|
||||
choices: () =>
|
||||
Object.entries(CONFIG.DH.ITEM.armorFeatures)
|
||||
.map(([k, v]) => ({ value: k, label: v.label })),
|
||||
Object.entries(CONFIG.DH.ITEM.armorFeatures).map(([k, v]) => ({ value: k, label: v.label })),
|
||||
operator: 'contains3'
|
||||
}
|
||||
]
|
||||
|
|
@ -372,14 +370,30 @@ export const typeConfig = {
|
|||
label: 'DAGGERHEART.ITEMS.Subclass.spellcastingTrait'
|
||||
}
|
||||
],
|
||||
filters: []
|
||||
},
|
||||
beastforms: {
|
||||
columns: [
|
||||
{
|
||||
key: 'system.tier',
|
||||
label: 'DAGGERHEART.GENERAL.Tiers.singular'
|
||||
},
|
||||
{
|
||||
key: 'system.mainTrait',
|
||||
label: 'DAGGERHEART.GENERAL.Trait.single'
|
||||
}
|
||||
],
|
||||
filters: [
|
||||
{
|
||||
key: 'system.linkedClass.uuid',
|
||||
label: 'Class',
|
||||
choices: (items) => {
|
||||
const list = items.map(item => ({ value: item.system.linkedClass.uuid, label: item.system.linkedClass.name }));
|
||||
return list.reduce((a,c) => {
|
||||
if(!(a.find(i => i.value === c.value))) a.push(c);
|
||||
choices: items => {
|
||||
const list = items.map(item => ({
|
||||
value: item.system.linkedClass.uuid,
|
||||
label: item.system.linkedClass.name
|
||||
}));
|
||||
return list.reduce((a, c) => {
|
||||
if (!a.find(i => i.value === c.value)) a.push(c);
|
||||
return a;
|
||||
}, []);
|
||||
}
|
||||
|
|
@ -417,7 +431,7 @@ export const compendiumConfig = {
|
|||
id: 'characters',
|
||||
keys: ['characters'],
|
||||
label: 'DAGGERHEART.UI.ItemBrowser.folders.characters',
|
||||
type: ['character'],
|
||||
type: ['character']
|
||||
// listType: 'characters'
|
||||
},
|
||||
adversaries: {
|
||||
|
|
@ -431,7 +445,7 @@ export const compendiumConfig = {
|
|||
id: 'ancestries',
|
||||
keys: ['ancestries'],
|
||||
label: 'DAGGERHEART.UI.ItemBrowser.folders.ancestries',
|
||||
type: ['ancestry'],
|
||||
type: ['ancestry']
|
||||
/* folders: {
|
||||
features: {
|
||||
id: 'features',
|
||||
|
|
@ -516,7 +530,7 @@ export const compendiumConfig = {
|
|||
id: 'communities',
|
||||
keys: ['communities'],
|
||||
label: 'DAGGERHEART.UI.ItemBrowser.folders.communities',
|
||||
type: ['community'],
|
||||
type: ['community']
|
||||
/* folders: {
|
||||
features: {
|
||||
id: 'features',
|
||||
|
|
@ -537,7 +551,7 @@ export const compendiumConfig = {
|
|||
keys: ['beastforms'],
|
||||
label: 'DAGGERHEART.UI.ItemBrowser.folders.beastforms',
|
||||
type: ['beastform'],
|
||||
listType: 'beastforms',
|
||||
listType: 'beastforms'
|
||||
/* folders: {
|
||||
features: {
|
||||
id: 'features',
|
||||
|
|
|
|||
|
|
@ -31,20 +31,20 @@ export const gameSettings = {
|
|||
};
|
||||
|
||||
export const actionAutomationChoices = {
|
||||
never: {
|
||||
id: "never",
|
||||
label: "Never"
|
||||
never: {
|
||||
id: 'never',
|
||||
label: 'Never'
|
||||
},
|
||||
showDialog: {
|
||||
id: "showDialog",
|
||||
label: "Show Dialog only"
|
||||
id: 'showDialog',
|
||||
label: 'Show Dialog only'
|
||||
},
|
||||
// npcOnly: {
|
||||
// id: "npcOnly",
|
||||
// label: "Always for non-characters"
|
||||
// id: "npcOnly",
|
||||
// label: "Always for non-characters"
|
||||
// },
|
||||
always: {
|
||||
id: "always",
|
||||
label: "Always"
|
||||
id: 'always',
|
||||
label: 'Always'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue