diff --git a/module/rdd-utility.js b/module/rdd-utility.js index f384aef9..5d690f0c 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -163,6 +163,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/partial-roll-surenc.html', 'systems/foundryvtt-reve-de-dragon/templates/partial-roll-enctotal.html', 'systems/foundryvtt-reve-de-dragon/templates/partial-roll-moral.html', + 'systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html', // Calendrier 'systems/foundryvtt-reve-de-dragon/templates/calendar-template.html', 'systems/foundryvtt-reve-de-dragon/templates/calendar-editor-template.html', diff --git a/styles/simple.css b/styles/simple.css index e5e83279..254dd5b0 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -528,6 +528,12 @@ section.sheet-body:after { text-align: left; width: 50px; } +.select-carac { + display: inline-block; + text-align: left; + width: 100%; + max-width: 90%; +} #vie-plus, #vie-moins, #endurance-plus, #endurance-moins, #fatigue-plus, #fatigue-moins, #ptreve-actuel-plus, #ptreve-actuel-moins, .monnaie-plus, .monnaie-moins { display: inline-block; diff --git a/templates/dialog-competence.html b/templates/dialog-competence.html index 1ed86065..46d45fec 100644 --- a/templates/dialog-competence.html +++ b/templates/dialog-competence.html @@ -3,15 +3,10 @@
+ {{competence.name}}
- - + + {{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}}
{{#if arme}} {{#if attackerRoll}} diff --git a/templates/dialog-roll-resolution.html b/templates/dialog-roll-resolution.html index bdaadae9..28573d76 100644 --- a/templates/dialog-roll-resolution.html +++ b/templates/dialog-roll-resolution.html @@ -1,29 +1,11 @@
-
- - - - - - +
+
+ + {{>"systems/foundryvtt-reve-de-dragon/templates/partial-select-carac.html"}} +
+ {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffLibre.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
diff --git a/templates/partial-select-carac.html b/templates/partial-select-carac.html new file mode 100644 index 00000000..672a717d --- /dev/null +++ b/templates/partial-select-carac.html @@ -0,0 +1,7 @@ +