Correction calendrier pour joueurs

This commit is contained in:
sladecraven 2020-12-21 20:54:24 +01:00
parent fda822314f
commit 7aa9e197cd
3 changed files with 8 additions and 2 deletions

View File

@ -332,7 +332,11 @@ export class RdDCalendrier extends Application {
updateDisplay() {
let data = this.fillCalendrierData( );
// Rebuild data
document.getElementById("calendar--move-handle").innerHTML = `Jour ${data.jourMois} de ${data.nomMois} (${data.nomSaison})` + " - NA: "+this.getCurrentNombreAstral();
let dateHTML = `Jour ${data.jourMois} de ${data.nomMois} (${data.nomSaison})`;
if (game.user.isGM) {
dateHTML = dateHTML + " - NA: "+this.getCurrentNombreAstral();
}
document.getElementById("calendar--move-handle").innerHTML = dateHTML;
document.getElementById("calendar-heure-texte").innerHTML = `${data.nomHeure}`;
document.getElementById("calendar-time").innerHTML = `${data.heuresRelative}:${data.minutesRelative}`;
document.getElementById("calendar-heure-img").src = data.iconHeure;

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.1.16",
"version": "1.1.17",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8",
"templateVersion": 72,

View File

@ -1,7 +1,9 @@
<div id="calendar-time-container">
<div id="calendar">
{{#if isGM}}
<i id="calendar-btn-edit" class="fas fa-cog" title="Editer"></i>
<i id="astrologie-btn-edit" class="fas fa-cog" title="Astrologie"></i>
{{/if}}
<div id="calendar-hdr">
<p id="calendar--move-handle" class="calendar-date-rdd" title="Deplacer">Jour {{jourMois}} de {{nomMois}} ({{nomSaison}})</p>
</div>