mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Create files
This commit is contained in:
parent
497a0eebe0
commit
83523ba4c6
2 changed files with 57 additions and 0 deletions
57
module/applications/ui/itemBrowser.mjs
Normal file
57
module/applications/ui/itemBrowser.mjs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
0
templates/ui/itemBrowser.hbs
Normal file
0
templates/ui/itemBrowser.hbs
Normal file
Loading…
Add table
Add a link
Reference in a new issue