Sync
This commit is contained in:
@ -7,15 +7,12 @@ export class PegasusRollDialog extends Dialog {
|
||||
|
||||
let html
|
||||
let options = { classes: ["WotGdialog"], width: 420, height: 320, 'z-index': 99999 };
|
||||
if ( rollData.mode == "stat") {
|
||||
if ( rollData.mode == "stat" || rollData.mode == "MR") {
|
||||
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-stat.html', rollData);
|
||||
options.height = 320;
|
||||
} else if (rollData.mode == "spec") {
|
||||
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-spec.html', rollData);
|
||||
options.height = 360;
|
||||
} else if (rollData.mode == "technique") {
|
||||
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-technique.html', rollData);
|
||||
options.height = 380;
|
||||
} else if (rollData.mode == "weapon") {
|
||||
html = await renderTemplate('systems/fvtt-pegasus-rpg/templates/roll-dialog-weapon.html', rollData);
|
||||
options.height = 460;
|
||||
@ -64,7 +61,10 @@ export class PegasusRollDialog extends Dialog {
|
||||
function onLoad() {
|
||||
}
|
||||
$(function () { onLoad(); });
|
||||
|
||||
|
||||
html.find('#specList').change((event) => {
|
||||
this.rollData.selectedSpec = event.currentTarget.value;
|
||||
});
|
||||
html.find('#bonusDicesLevel').change((event) => {
|
||||
this.rollData.bonusDicesLevel = Number(event.currentTarget.value);
|
||||
});
|
||||
|
Reference in New Issue
Block a user