Correction calendrier pour joueurs
This commit is contained in:
parent
fda822314f
commit
7aa9e197cd
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user