#82 : Affichage TMR sur fermeture sort

This commit is contained in:
2020-12-28 10:11:47 +01:00
parent 5e4557e6df
commit 7bea2e3b29
3 changed files with 10 additions and 7 deletions

View File

@ -1217,9 +1217,11 @@ export class RdDActor extends Actor {
coutreve: Array(20).fill().map((item, index) => 1 + index)
}
if ( this.currentTMR) this.currentTMR.minimize(); // Hide
if ( this.currentTMR ) this.currentTMR.minimize(); // Hide
const dialog = await RdDRoll.create(this, rollData,
{html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-sort.html'},
{ html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-sort.html',
close: html => { this.currentTMR.maximize() } // Re-display TMR
},
{
name: 'lancer-un-sort',
label: 'Lancer un sort',
@ -1235,7 +1237,7 @@ export class RdDActor extends Actor {
this.createCallbackExperience(),
{ action: r => this._rollUnSortResult(r, true) }
]
}
},
);
dialog.render(true);
}