Explorar o código

changed button labels and enhanced the visual representation of the current exhaustion effects

Warafear hai 10 meses
pai
achega
399d6c309b

+ 1 - 1
src/app/journal/journal-stats/attribute-panel/attribute-field/attribute-details/attribute-details.component.html

@@ -179,7 +179,7 @@
     <div class="vertical-buttons t-2">
       <ui-button
         [color]="'green'"
-        [type]="'apply'"
+        [type]="'save'"
         [width]="'w20'"
         (click)="close()"
       >

+ 2 - 2
src/app/journal/journal-stats/info-row/conditions/conditions-details/conditions-details.component.html

@@ -82,14 +82,14 @@
 <div class="vertical-buttons bottom">
   <ui-button
     [color]="'green'"
-    [type]="'edit'"
+    [type]="'save'"
     [width]="'w20'"
     (click)="close('update')"
   >
   </ui-button>
   <ui-button
     [color]="'red'"
-    [type]="'delete'"
+    [type]="'discard'"
     [width]="'w20'"
     (click)="close('cancel')"
   >

+ 9 - 5
src/app/journal/journal-stats/info-row/conditions/exhaustion-details/exhaustion-details.component.html

@@ -20,26 +20,30 @@
         <td>0</td>
         <td>{{ "exhaustion.0" | translate }}</td>
       </tr>
-      <tr [ngClass]="{ highlighted: exhaustion === 1 }">
+      <tr [ngClass]="{ highlighted: exhaustion > 0 }">
         <td>1</td>
         <td>{{ "exhaustion.1" | translate }}</td>
       </tr>
-      <tr [ngClass]="{ highlighted: exhaustion === 2 }">
+      <tr [ngClass]="{ highlighted: exhaustion > 1 }">
         <td>2</td>
         <td>{{ "exhaustion.2" | translate }}</td>
       </tr>
-      <tr [ngClass]="{ highlighted: exhaustion === 3 }">
+      <tr [ngClass]="{ highlighted: exhaustion > 2 }">
         <td>3</td>
         <td>{{ "exhaustion.3" | translate }}</td>
       </tr>
-      <tr [ngClass]="{ highlighted: exhaustion === 4 }">
+      <tr [ngClass]="{ highlighted: exhaustion > 3 }">
         <td>4</td>
         <td>{{ "exhaustion.4" | translate }}</td>
       </tr>
-      <tr [ngClass]="{ highlighted: exhaustion === 5 }">
+      <tr [ngClass]="{ highlighted: exhaustion > 4 }">
         <td>5</td>
         <td>{{ "exhaustion.5" | translate }}</td>
       </tr>
+      <tr [ngClass]="{ highlighted: exhaustion > 5 }">
+        <td>5</td>
+        <td>{{ "exhaustion.6" | translate }}</td>
+      </tr>
     </tbody>
   </table>
 </div>

+ 5 - 2
src/app/journal/journal-stats/weapons-container/spell-table/spell-table.component.html

@@ -203,8 +203,11 @@
     <div class="spell-range">
       @if (spell.isRanged) {
         <div>{{ spell.range }} ft.</div>
-      }
-      @if (!spell.isRanged && spell.range !== 0) {
+      } @else if (spell.range === 0) {
+        <div>
+          {{ "spells.self" | translate }}
+        </div>
+      } @else if (spell.range === 5) {
         <div>
           {{ "spells.touch" | translate }}
         </div>

+ 1 - 0
src/assets/i18n/de.json

@@ -567,6 +567,7 @@
     "emptyFavorites": "Noch keine Zauber vorbereitet.<br /> Dies kannst du im Menü <i><b>Zauber</b></i> tun.",
     "cantrip": "Trick",
     "touch": "Berührung",
+    "self": "Selbst",
     "empty": "Noch keine Zauber hinzugefügt",
     "concentrationAbbr": "K",
     "concentration": "Konzentration"

+ 1 - 0
src/assets/i18n/en.json

@@ -565,6 +565,7 @@
     "emptyFavorites": "No spells prepared yet.<br /> You can add the in the menu <i><b>Spells</b></i>.",
     "cantrip": "Cantrip",
     "touch": "Touch",
+    "self": "Self",
     "empty": "No spells added yet",
     "concentrationAbbr": "C",
     "concentration": "Concentration"