Fix: log erreur TMR en mode visu
En mode visualisation, les informations du personnage ne sont pas affichées
This commit is contained in:
parent
3b269b2baa
commit
bc169d931b
@ -298,11 +298,10 @@ export class RdDTMRDialog extends Dialog {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async updateValuesDisplay() {
|
async updateValuesDisplay() {
|
||||||
if (!this.rendered) {
|
if (this.viewOnly || !this.rendered) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const coord = this._getCoordActor();
|
const coord = this._getCoordActor();
|
||||||
|
|
||||||
HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));
|
HtmlUtility.showControlWhen(this.html.find(".lire-signe-draconique"), this.actor.isResonanceSigneDraconique(coord));
|
||||||
|
|
||||||
let ptsreve = document.getElementById("tmr-pointsreve-value");
|
let ptsreve = document.getElementById("tmr-pointsreve-value");
|
||||||
|
@ -21,49 +21,48 @@
|
|||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if (and isGM hasPlayerOwner)}}
|
{{#if (and isGM hasPlayerOwner)}}
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<h4>Le gardien gére les TMR du joueur, le joueur ne peut pas monter dans les TMR!</h4>
|
<h4>Le gardien gére les TMR du joueur, le joueur ne peut pas monter dans les TMR!</h4>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<img class="small-button-direction tmr-move" data-move="topleft" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-topleft.svg">
|
<img class="small-button-direction tmr-move" data-move="topleft" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-topleft.svg">
|
||||||
<img class="small-button-direction tmr-move" data-move="top" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-top.svg">
|
<img class="small-button-direction tmr-move" data-move="top" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-top.svg">
|
||||||
<img class="small-button-direction tmr-move" data-move="topright" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-topright.svg">
|
<img class="small-button-direction tmr-move" data-move="topright" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-topright.svg">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<label>Coordonnées : </label><span id="tmr-pos">0</span>
|
<label>Coordonnées : </label><span id="tmr-pos">0</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<img class="small-button-direction tmr-move" data-move="bottomleft" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottomleft.svg">
|
<img class="small-button-direction tmr-move" data-move="bottomleft" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottomleft.svg">
|
||||||
<img class="small-button-direction tmr-move" data-move="bottom" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottom.svg">
|
<img class="small-button-direction tmr-move" data-move="bottom" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottom.svg">
|
||||||
<img class="small-button-direction tmr-move" data-move="bottomright" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottomright.svg">
|
<img class="small-button-direction tmr-move" data-move="bottomright" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/dir-bottomright.svg">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink lire-signe-draconique">
|
<div class="flex-group-center flex-shrink lire-signe-draconique">
|
||||||
<a>Lire un signe draconique</a>
|
<a>Lire un signe draconique</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink lancer-sort">
|
<div class="flex-group-center flex-shrink lancer-sort">
|
||||||
<a>Lancer un Sort</a>
|
<a>Lancer un Sort</a>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<label>Carac. Rêve : </label><label>{{caracReve}}</label>
|
<label>Carac. Rêve : </label><label>{{caracReve}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<label>Rêve actuel : </label><span id="tmr-pointsreve-value">0</span>
|
<label>Rêve actuel : </label><span id="tmr-pointsreve-value">0</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<label>Etat général : </label><span id="tmr-etatgeneral-value">0</span>
|
<label>Etat général : </label><span id="tmr-etatgeneral-value">0</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-shrink">
|
<div class="flex-group-center flex-shrink">
|
||||||
<label>Refoulement : </label><span id="tmr-refoulement-value">0</span>
|
<label>Refoulement : </label><span id="tmr-refoulement-value">0</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-center flex-actions-bar appliquerFatigue">
|
<div class="flex-group-center flex-actions-bar appliquerFatigue">
|
||||||
Fatigue
|
Fatigue
|
||||||
<span id="tmr-fatigue-table">{{{fatigue.html}}}</span>
|
<span id="tmr-fatigue-table">{{{fatigue.html}}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="flex-group-center flex-grow">
|
<div class="flex-group-center flex-grow"></div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user