mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 20:21:06 +01:00
Stuff
This commit is contained in:
parent
078334096c
commit
b80d42c815
6 changed files with 110 additions and 0 deletions
|
|
@ -92,6 +92,25 @@ export default class DhTemplateLayer extends foundry.canvas.layers.TemplateLayer
|
|||
|
||||
static handlePreset(event, active) {
|
||||
console.log("Preset handling goes here, event, active is: ", event, active);
|
||||
if (active) {
|
||||
ui.presetTemplates.open();
|
||||
// if (CONFIG.ux.TemplateManager.getActivePreview()) {
|
||||
// return;
|
||||
// }
|
||||
// const { width, height } = game.canvas.scene.dimensions;
|
||||
// const data = {
|
||||
// x: width / 2,
|
||||
// y: height / 2,
|
||||
// t: 'circle',
|
||||
// distance: 30,
|
||||
// fillColor: '#FF0000'
|
||||
// };
|
||||
|
||||
// CONFIG.ux.TemplateManager.createPreview(data);
|
||||
} else {
|
||||
ui.presetTemplates.close();
|
||||
// CONFIG.ux.TemplateManager.cancelActivePreview(event);
|
||||
}
|
||||
}
|
||||
|
||||
_onDragLeftStart(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue