diff --git a/icons/filter.svg b/icons/filter.svg new file mode 100644 index 00000000..cc87a0f6 --- /dev/null +++ b/icons/filter.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/locked.svg b/icons/locked.svg new file mode 100644 index 00000000..6033b6ce --- /dev/null +++ b/icons/locked.svg @@ -0,0 +1,60 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/moral-heureux.svg b/icons/moral-heureux.svg new file mode 100644 index 00000000..60be4967 --- /dev/null +++ b/icons/moral-heureux.svg @@ -0,0 +1,56 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/moral-malheureux.svg b/icons/moral-malheureux.svg new file mode 100644 index 00000000..d4b32e93 --- /dev/null +++ b/icons/moral-malheureux.svg @@ -0,0 +1,57 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/moral-neutre.svg b/icons/moral-neutre.svg new file mode 100644 index 00000000..e9361418 --- /dev/null +++ b/icons/moral-neutre.svg @@ -0,0 +1,57 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/no-filter.svg b/icons/no-filter.svg new file mode 100644 index 00000000..1d09e88c --- /dev/null +++ b/icons/no-filter.svg @@ -0,0 +1,63 @@ + + + + + + image/svg+xml + + + + + + + + + + diff --git a/icons/unlocked.svg b/icons/unlocked.svg new file mode 100644 index 00000000..f86c359c --- /dev/null +++ b/icons/unlocked.svg @@ -0,0 +1,64 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/module/rdd-roll.js b/module/rdd-roll.js index 05d92015..ac756586 100644 --- a/module/rdd-roll.js +++ b/module/rdd-roll.js @@ -238,20 +238,17 @@ export class RdDRoll extends Dialog { this.rollData.useMoral = !this.rollData.useMoral; const appelMoral = html.find('.icon-appel-moral')[0]; const tooltip = html.find('.tooltipAppelAuMoralText')[0]; - appelMoral.classList.remove('fa-grin-beam'); - appelMoral.classList.remove('fa-sad-tear'); - appelMoral.classList.remove('fa-meh'); if (this.rollData.useMoral) { if (this.rollData.moral > 0) { - appelMoral.classList.add('fa-grin-beam'); tooltip.innerHTML = "Appel au moral"; + appelMoral.src = "/systems/foundryvtt-reve-de-dragon/icons/moral-heureux.svg"; } else { - appelMoral.classList.add('fa-sad-tear'); tooltip.innerHTML = "Appel à l'énergie du désespoir"; + appelMoral.src = "/systems/foundryvtt-reve-de-dragon/icons/moral-malheureux.svg"; } } else { - appelMoral.classList.add('fa-meh'); tooltip.innerHTML = "Sans appel au moral"; + appelMoral.src = "/systems/foundryvtt-reve-de-dragon/icons/moral-neutre.svg"; } this.updateRollResult(); }); diff --git a/styles/simple.css b/styles/simple.css index ce6b5a85..ace91dcf 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -393,7 +393,7 @@ table {border: 1px solid #7a7971;} border-bottom: 1px solid #BBB; } -.fas-inactive{ +.blessure-inactive{ color:rgba(150, 150, 150, 0.4) } .blessure-active-legere{ @@ -900,6 +900,14 @@ ul, li { display: none !important; } +.imgAppelAuMoral { + height: 20px; + width: 20px; + border:none; + outline: none; + background-size: cover; +} + /* Tooltip container */ .tooltipAppelAuMoral { position: relative; diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 7381a734..35825de3 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -113,9 +113,9 @@
- - {{#if options.editCaracComp}}Verrouiller{{else}}Déverrouiller{{/if}} - + blocker/débloquer{{#if options.editCaracComp}}Verrouiller{{else}}Déverrouiller{{/if}}