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/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/actor-sheet.js b/module/actor-sheet.js index 9efb56ac..a8833fd9 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -32,9 +32,11 @@ export class RdDActorSheet extends ActorSheet { // Gestion du lock/unlock des zones éditables (carac+compétences) data.data.editCaracComp = this.options.editCaracComp; data.data.lockUnlockText = (this.options.editCaracComp) ? "Bloquer" : "Débloquer"; + data.data.lockUnlockIcon = (this.options.editCaracComp) ? "unlocked.svg" : "locked.svg"; // Gestion de l'affichage total/partiel des compétences data.data.cacherCompetencesNiveauBase = this.options.cacherCompetencesNiveauBase; data.data.showHideCompetenceText = (this.options.cacherCompetencesNiveauBase) ? "Montrer tout" : "Filtrer" ; + data.data.showHideCompetenceIcon = (this.options.cacherCompetencesNiveauBase) ? "no-filter.svg" : "filter.svg"; let compCategorieNiveau = RdDUtility.getLevelCategory(); // recup catégorie data.itemsByType = RdDUtility.buildItemsClassification(data.items); diff --git a/styles/simple.css b/styles/simple.css index 40a0efbd..670212f2 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -238,6 +238,19 @@ table {border: 1px solid #7a7971;} height: 8%; border-width: 0; } +.small-button-container { + height: 16px; + border: 0; +} + +.small-button-container img { + max-height: 100%; + max-width: 100%; +} +.small-button-img { + max-height: 24; + border-width: 0; +} .foundryvtt-reve-de-dragon .sheet-header .header-fields { -webkit-box-flex: 1; diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 7770e99d..177a2ce0 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -98,7 +98,7 @@
- {{data.lockUnlockText}} + blocker/débloquer{{data.lockUnlockText}}