#48 : Zone de saisie privée pour le MJ
This commit is contained in:
parent
c09789abfa
commit
8361a90f32
@ -45,6 +45,7 @@ export class RdDActorCreatureSheet extends ActorSheet {
|
||||
data.data.nbLegeres = this.actor.countBlessures(data.data.blessures.legeres.liste );
|
||||
data.data.nbGraves = this.actor.countBlessures(data.data.blessures.graves.liste );
|
||||
data.data.nbCritiques = this.actor.countBlessures(data.data.blessures.critiques.liste );
|
||||
data.data.isGM = game.user.isGM;
|
||||
|
||||
data.data.competencecreature = data.itemsByType["competencecreature"];
|
||||
|
||||
|
@ -45,7 +45,8 @@ export class RdDActorEntiteSheet extends ActorSheet {
|
||||
|
||||
data.data.carac.taille.isTaille = true; // To avoid button link;
|
||||
data.data.competencecreature = data.itemsByType["competencecreature"];
|
||||
|
||||
data.data.isGM = game.user.isGM;
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,7 @@ export class RdDActorHumanoideSheet extends ActorSheet {
|
||||
data.data.nbGraves = this.actor.countBlessures(data.data.blessures.graves.liste );
|
||||
data.data.nbCritiques = this.actor.countBlessures(data.data.blessures.critiques.liste );
|
||||
data.data.competencecreature = data.itemsByType["competencecreature"];
|
||||
data.data.isGM = game.user.isGM;
|
||||
|
||||
RdDUtility.filterItemsPerTypeForSheet(data );
|
||||
RdDUtility.buildArbreDeConteneur( this, data );
|
||||
|
@ -156,7 +156,8 @@ export class RdDUtility {
|
||||
// Calendrier
|
||||
'systems/foundryvtt-reve-de-dragon/templates/calendar-template.html',
|
||||
// Conteneur/item in Actor sheet
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html'
|
||||
'systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html',
|
||||
'systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html'
|
||||
];
|
||||
|
||||
return loadTemplates(templatePaths);
|
||||
|
@ -2,10 +2,10 @@
|
||||
"name": "foundryvtt-reve-de-dragon",
|
||||
"title": "Rêve de Dragon",
|
||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||
"version": "0.9.97",
|
||||
"version": "1.1.0",
|
||||
"minimumCoreVersion": "0.7.5",
|
||||
"compatibleCoreVersion": "0.7.6",
|
||||
"templateVersion": 51,
|
||||
"compatibleCoreVersion": "0.7.7",
|
||||
"templateVersion": 52,
|
||||
"author": "LeRatierBretonnien",
|
||||
"esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ],
|
||||
"styles": ["styles/simple.css"],
|
||||
|
@ -3,11 +3,13 @@
|
||||
"types": ["personnage", "humanoide", "creature", "entite"],
|
||||
"templates": {
|
||||
"description": {
|
||||
"description": "Description ..."
|
||||
"description": "Description ...",
|
||||
"notesmj": "Notes du MJ"
|
||||
},
|
||||
"background": {
|
||||
"biographie": "Histoire personnelle...",
|
||||
"notes": "Notes",
|
||||
"notesmj": "Notes du MJ",
|
||||
"yeux": "",
|
||||
"cheveux": "",
|
||||
"poids": "",
|
||||
|
@ -210,6 +210,7 @@
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -92,6 +92,7 @@
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -214,6 +214,7 @@
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -649,6 +649,7 @@
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
|
6
templates/editor-notes-mj.html
Normal file
6
templates/editor-notes-mj.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{#if data.isGM}}
|
||||
<h3>Notes du MJ : </h3>
|
||||
<div class="form-group editor">
|
||||
{{editor content=data.notesmj target="data.notesmj" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
{{/if}}
|
Loading…
Reference in New Issue
Block a user