From 8dea766540560e05ff74e10f92cb9f248391a62c Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 21 Apr 2021 20:43:03 +0200 Subject: [PATCH] =?UTF-8?q?Rework=20m=C3=A9ditation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 24 ++++--- templates/dialog-roll-meditation.html | 99 ++++++++++++--------------- 2 files changed, 57 insertions(+), 66 deletions(-) diff --git a/module/actor.js b/module/actor.js index 54d52034..e1715786 100644 --- a/module/actor.js +++ b/module/actor.js @@ -2482,16 +2482,20 @@ export class RdDActor extends Actor { console.log("rollMeditation !!!", meditationData); - const dialog = await RdDRoll.create(this, meditationData, { html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html' }, { - name: 'jet-meditation', - label: 'Jet de Meditation ' + meditation.name, - height: 600, - callbacks: [ - this.createCallbackExperience(), - { condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) }, - { action: r => this._meditationResult(r) } - ] - }); + const dialog = await RdDRoll.create(this, meditationData, + { + html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html', + options: { height: 575, } + }, + { + name: 'jet-meditation', + label: "Jet de méditation", + callbacks: [ + this.createCallbackExperience(), + { condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) }, + { action: r => this._meditationResult(r) } + ] + }); dialog.render(true); } diff --git a/templates/dialog-roll-meditation.html b/templates/dialog-roll-meditation.html index 63475128..8e69969c 100644 --- a/templates/dialog-roll-meditation.html +++ b/templates/dialog-roll-meditation.html @@ -1,61 +1,48 @@
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • -
-
+

{{meditation.name}}

+
+
+ {{competence.name}} +
+ +
+ + + +
+ +
+
+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}} +
+
+
-
- -
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
- -
- - - - -
-
-
-
+
+
+ \ No newline at end of file