diff --git a/module/actor-entite-sheet.js b/module/actor-entite-sheet.js index 8508c7ee..aa836cbf 100644 --- a/module/actor-entite-sheet.js +++ b/module/actor-entite-sheet.js @@ -108,11 +108,11 @@ export class RdDActorEntiteSheet extends ActorSheet { this.actor.rollCompetence( compName ); }); - html.find('#endurance-plus').click((event) => { + html.find('.endurance-plus').click((event) => { this.actor.santeIncDec("endurance", 1); this.render(true); }); - html.find('#endurance-moins').click((event) => { + html.find('.endurance-moins').click((event) => { this.actor.santeIncDec("endurance", -1); this.render(true); }); diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 3306bb30..1eec4a57 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -468,10 +468,10 @@ export class RdDActorSheet extends ActorSheet { this.actor.jetEthylisme(); }); - html.find('#jet-vie').click(async event => { + html.find('.jet-vie').click(async event => { this.actor.jetVie(); }); - html.find('#jet-endurance').click(async event => { + html.find('.jet-endurance').click(async event => { this.actor.jetEndurance(); }); @@ -484,28 +484,28 @@ export class RdDActorSheet extends ActorSheet { this.actor.monnaieIncDec(li.data("item-id"), -1); }); - html.find('#vie-plus').click(async event => { + html.find('.vie-plus').click(async event => { this.actor.santeIncDec("vie", 1); }); - html.find('#vie-moins').click(async event => { + html.find('.vie-moins').click(async event => { this.actor.santeIncDec("vie", -1); }); - html.find('#endurance-plus').click(async event => { + html.find('.endurance-plus').click(async event => { this.actor.santeIncDec("endurance", 1); }); - html.find('#endurance-moins').click(async event => { + html.find('.endurance-moins').click(async event => { this.actor.santeIncDec("endurance", -1); }); - html.find('#ptreve-actuel-plus').click(async event => { + html.find('.ptreve-actuel-plus').click(async event => { this.actor.reveActuelIncDec(1); }); - html.find('#ptreve-actuel-moins').click(async event => { + html.find('.ptreve-actuel-moins').click(async event => { this.actor.reveActuelIncDec(-1); }); - html.find('#fatigue-plus').click(async event => { + html.find('.fatigue-plus').click(async event => { this.actor.santeIncDec("fatigue", 1); }); - html.find('#fatigue-moins').click(async event => { + html.find('.fatigue-moins').click(async event => { this.actor.santeIncDec("fatigue", -1); }); } diff --git a/styles/simple.css b/styles/simple.css index c9e26778..e3a37cbe 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -644,7 +644,7 @@ section.sheet-body:after { 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 { +.plus-moins { display: inline-block; width: 1.25rem; background: rgba(30, 25, 20, 1); diff --git a/templates/actor-sheet-inventaire-monnaie.html b/templates/actor-sheet-inventaire-monnaie.html index 58166551..d73224b2 100644 --- a/templates/actor-sheet-inventaire-monnaie.html +++ b/templates/actor-sheet-inventaire-monnaie.html @@ -5,7 +5,10 @@ {{piece.name}} {{piece.data.quantite}} - +- + + + + - +