mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Fixed browse dataSource
This commit is contained in:
parent
200349be3b
commit
4d5f066a38
1 changed files with 9 additions and 4 deletions
|
|
@ -115,10 +115,15 @@ export default class DHBeastform extends BaseDataItem {
|
|||
const tokenPath = usesDynamicToken ? beastform.system.tokenRingImg : beastform.system.tokenImg;
|
||||
const usesWildcard = tokenPath.includes('*');
|
||||
if (usesWildcard) {
|
||||
const { files } = await foundry.applications.apps.FilePicker.implementation.browse('data', tokenPath, {
|
||||
wildcard: true,
|
||||
type: 'image'
|
||||
});
|
||||
const filePicker = new foundry.applications.apps.FilePicker.implementation(tokenPath);
|
||||
const { files } = await foundry.applications.apps.FilePicker.implementation.browse(
|
||||
filePicker.activeSource,
|
||||
tokenPath,
|
||||
{
|
||||
wildcard: true,
|
||||
type: 'image'
|
||||
}
|
||||
);
|
||||
const selectedImage = await game.system.api.applications.dialogs.ImageSelectDialog.configure(
|
||||
game.i18n.localize('DAGGERHEART.APPLICATIONS.ImageSelect.title'),
|
||||
files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue