Actor sheet
This commit is contained in:
@@ -5,7 +5,7 @@ export class WarheroRollDialog extends Dialog {
|
||||
/* -------------------------------------------- */
|
||||
static async create(actor, rollData) {
|
||||
|
||||
let options = { classes: ["WarheroDialog"], width: 540, height: 340, 'z-index': 99999 };
|
||||
let options = { classes: ["WarheroDialog"], width: 320, height: 'fit-content', 'z-index': 99999 };
|
||||
let html = await renderTemplate('systems/fvtt-warhero/templates/roll-dialog-generic.html', rollData);
|
||||
|
||||
return new WarheroRollDialog(actor, rollData, html, options);
|
||||
@@ -76,8 +76,8 @@ export class WarheroRollDialog extends Dialog {
|
||||
html.find('#situational').change((event) => {
|
||||
this.rollData.situational = event.currentTarget.value
|
||||
})
|
||||
html.find('#distanceBonusDice').change((event) => {
|
||||
this.rollData.distanceBonusDice = Number(event.currentTarget.value)
|
||||
html.find('#bonusMalus').change((event) => {
|
||||
this.rollData.bonusMalus = Number(event.currentTarget.value)
|
||||
})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user