Fix dommages

This commit is contained in:
2020-11-07 21:06:37 +01:00
parent bb82f139eb
commit c3ad3158b9
6 changed files with 145 additions and 62 deletions

View File

@ -0,0 +1,43 @@
/**
* Extend the base Dialog entity by defining a custom window to perform roll.
* @extends {Dialog}
*/
export class RdDEncaisser extends Dialog {
/* -------------------------------------------- */
constructor(mode, html, rollData, actor) {
let myButtons = { rollButton: {
label: "Lancer",
callback: html => this.performEncaisser(html, false)
} };
// Common conf
let dialogConf = {
content: html,
buttons: myButtons,
default: "rollButton"
}
let dialogOptions = { classes: [ "rdddialog"] }
// Select proper roll dialog template and stuff
dialogConf.title = "Jet d'Encaissement",
dialogOptions.width = 600;
dialogOptions.height = 360;
super(dialogConf, dialogOptions);
this.mode = mode;
this.rollData = rollData;
this.actor = actor;
}
/* -------------------------------------------- */
performEncaisser (html, isReserve=false) {
}
/* -------------------------------------------- */
activateListeners(html) {
super.activateListeners(html);
}
}