feat: fiche de Groupe - drag&drop de véhicules et dés de Réserve cliquables

- Dépôt d'un acteur Véhicule sur la fiche de Groupe : le véhicule est
  lié via system.ownerId (pas de duplication), apparaît dans la liste
  Véhicules de l'onglet Matériel et s'ouvre au clic (_onDropActor).
- Onglet Réserve : dés de Réserve hexagonaux cliquables (1..max),
  même comportement que les réserves du personnage (cocher/décocher).
- ESLint : fromUuid ajouté aux globals (corrige aussi 3 erreurs
  préexistantes dans base-actor-sheet.mjs).
This commit is contained in:
2026-08-05 18:05:13 +02:00
parent ef76ae1116
commit 75f39551f8
4 changed files with 51 additions and 1 deletions
+27
View File
@@ -368,6 +368,33 @@
}
}
// Fiche de Groupe : mêmes dés de Réserve cliquables (AppV2).
&.group div.hexa {
.hexa-style();
.transition();
margin: 0.2rem;
position: relative;
&:hover {
.hexa-style(rgba(255, 255, 255, 0.425), rgba(0, 0, 0, 0.288));
}
input {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
z-index: 1;
margin: 0;
cursor: pointer;
}
&.checked {
.hexa-style(rgb(0, 0, 0), rgba(0, 0, 0, 0.288));
&:hover { .hexa-style(rgb(43, 43, 43), rgba(0, 0, 0, 0.288)); }
}
}
.sheet-header-toggle {
text-align: right;
margin-bottom: 0.5rem;