Create files

This commit is contained in:
Dapoolp 2025-08-03 21:55:10 +02:00
parent 497a0eebe0
commit 83523ba4c6
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,57 @@
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
/**
* A UI element which displays the Users defined for this world.
* Currently active users are always displayed, while inactive users can be displayed on toggle.
*
* @extends ApplicationV2
* @mixes HandlebarsApplication
*/
export default class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
constructor(options = {}) {
super(options);
}
/** @inheritDoc */
static DEFAULT_OPTIONS = {
id: 'itemBrowser',
classes: [],
tag: 'div',
// window: {
// frame: true,
// title: 'Item Browser',
// positioned: true,
// resizable: true
// },
actions: {
// setFear: FearTracker.setFear,
// increaseFear: FearTracker.increaseFear
},
/* position: {
width: 222,
height: 222
// top: "200px",
// left: "120px"
} */
};
/** @override */
static PARTS = {
resources: {
root: true,
template: 'systems/daggerheart/templates/ui/itemBrowser.hbs'
}
};
/* -------------------------------------------- */
/* Rendering */
/* -------------------------------------------- */
/** @override */
async _prepareContext(options) {
const data = await super._prepareContext(options);
return data;
}
}