Various fixes and enhancements
This commit is contained in:
@ -318,6 +318,16 @@
|
||||
{{!-- Equipement Tab --}}
|
||||
<div class="tab equipements" data-group="primary" data-tab="equipements">
|
||||
|
||||
<div class="form-group">
|
||||
{{#each system.fortune as |fortune key|}}
|
||||
<div class="flexrow">
|
||||
<label class="item-field item-field-label-medium">{{upperFirst key}}</label>
|
||||
<input type="text" class="input-numeric-short" name="system.fortune.{{key}}.value" value="{{fortune}}"
|
||||
data-dtype="Number" />
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<span class="item-name-label-header items-title-bg">
|
||||
<h3><label class="items-title-text">Zone libre</label></h3>
|
||||
</span>
|
||||
@ -355,9 +365,6 @@
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
</div>
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
@ -366,14 +373,19 @@
|
||||
<div class="grid grid-2col">
|
||||
<div>
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Genre</label>
|
||||
<input type="text" class="" name="system.genre" value="{{system.genre}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Lieu de naissance</label>
|
||||
<input type="text" class="" name="system.lieunaissance" value="{{system.biodata.lieunaissance}}"
|
||||
<input type="text" class="" name="system.lieunaissance" value="{{system.lieunaissance}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Age</label>
|
||||
<input type="text" class="" name="system.biodata.age" value="{{system.biodata.age}}"
|
||||
<input type="text" class="" name="system.age" value="{{system.age}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
</ul>
|
||||
@ -381,24 +393,53 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Statut social</label>
|
||||
<input type="text" class="" name="system.statutocial" value="{{system.biodata.residence}}"
|
||||
<label class="item-name-label-medium">Origine sociale</label>
|
||||
<input type="text" class="" name="system.statutocial" value="{{system.statutocial}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Charges et Titres</label>
|
||||
<input type="text" class="" name="system.chargestitre" value="{{system.biodata.nationalite}}"
|
||||
<input type="text" class="" name="system.chargestitre" value="{{system.chargestitre}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<label class="item-name-label-medium">Religion</label>
|
||||
<input type="text" class="" name="system.biodata.enfance" value="{{system.biodata.enfance}}"
|
||||
<input type="text" class="" name="system.religion" value="{{system.religion}}"
|
||||
data-dtype="String" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow list-item items-title-bg">
|
||||
<span class="item-field-label-long">
|
||||
<h3><label class="item-field-label-long">Education</label></h3>
|
||||
</span>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
</div>
|
||||
|
||||
</li>
|
||||
{{#each educations as |education key|}}
|
||||
<li class="item list-item flexrow list-item-shadow item-id" data-item-id="{{education._id}}">
|
||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||
src="{{education.img}}" /></a>
|
||||
<span class="item-name-label">{{ education.name}}</span>
|
||||
<span class="item-name-label">{{getEducationEtape education.system.etape}}</span>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control item-edit" title="Editer une éducation"><i class="fas fa-edit"></i></a>
|
||||
{{#if @root.isGM}}
|
||||
<a class="item-control item-delete" title="Supprimer une éducation"><i class="fas fa-trash"></i></a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
<span class="item-name-label-header items-title-bg">
|
||||
<h3><label class="items-title-text">Background</label></h3>
|
||||
|
17
templates/dialogs/character-creator-finished.hbs
Normal file
17
templates/dialogs/character-creator-finished.hbs
Normal file
@ -0,0 +1,17 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h3>Création de personnage terminée !</h3>
|
||||
|
||||
<div class="form-group">
|
||||
L'ensemble des choix a été appliqué sur la fiche de personnage nouvellement créée.
|
||||
|
||||
Le Trousseau issu de l'Age Viril a été copié dans zone d'équipement libre de la fiche de personnage, à vous de créer les objets de jeu nécessaires (armes, richesses, etc.).
|
||||
|
||||
Vous devez maintenant choisir un Grâce, en fonction des pré-requis de votre personnage, et l'appliquer sur la fiche de personnage.
|
||||
|
||||
Vous pouvez également choisir un nom pour votre personnage, et le renseigner dans la fiche de personnage.
|
||||
|
||||
Enfin, vous pouvez choisir un portrait pour votre personnage.
|
||||
|
||||
</div>
|
||||
</div>
|
@ -1,6 +1,7 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h2>{{title}}</h2>
|
||||
<h3>{{title}}</h3>
|
||||
<h4>{{subtitle}}</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<select name="sexe">
|
||||
|
@ -1,18 +1,14 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h2>{{title}}</h2>
|
||||
<div class="form-group">
|
||||
<select name="carac">
|
||||
{{selectOptions caracList valueAttr="id" labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
<h3>{{title}}</h3>
|
||||
<h4>{{subtitle}}</h4>
|
||||
|
||||
{{#each competences as |comp idx|}}
|
||||
{{#if comp.valid}}
|
||||
<div class="form-group">
|
||||
<label>Compétence +1 : {{comp.compName}}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
<div class="form-group">
|
||||
<select name="carac">
|
||||
{{selectOptions caracList valueAttr="id" labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-te-deum/templates/dialogs/partial-creator-status.hbs}}
|
||||
|
||||
</div>
|
22
templates/dialogs/character-creator-select-competences.hbs
Normal file
22
templates/dialogs/character-creator-select-competences.hbs
Normal file
@ -0,0 +1,22 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h3>{{title}}</h3>
|
||||
<h4>{{subtitle}}</h4>
|
||||
|
||||
{{#each fixedCompetences as |compName idx|}}
|
||||
<div class="form-group">
|
||||
<label>Compétence +1 : {{upperFirst compName}}</label>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{#if hasSelectCompetences}}
|
||||
<div class="form-group">
|
||||
<select name="selectedCompetence">
|
||||
{{selectOptions selectCompetences }}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{> systems/fvtt-te-deum/templates/dialogs/partial-creator-status.hbs}}
|
||||
|
||||
</div>
|
@ -1,12 +1,29 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h2>{{title}}</h2>
|
||||
<h3>{{title}}</h3>
|
||||
<h4>{{subtitle}}</h4>
|
||||
|
||||
<div class="form-group">
|
||||
{{question}}
|
||||
</div>
|
||||
|
||||
<div class="flexcol">
|
||||
{{radioBoxes 'responseKey' responsesRadio checked="reponse1" valueAttr="id" labelAttr="label"}}
|
||||
|
||||
<div class="questionnaire-reponse">
|
||||
{{#each responsesRadio as |response key|}}
|
||||
<div class="questionnaire-element">
|
||||
<input class="questionnaire-radio" type="radio" name="responseKey" data-response-key="{{key}}" value="{{key}}" {{#if response.selected}}checked{{/if}}>
|
||||
<label>{{response.label}}</label>
|
||||
{{#if response.competences}}
|
||||
<select class="questionnaire-select-competence" data-response-key="{{key}}">
|
||||
{{#each response.competences as |competence|}}
|
||||
<option value="{{competence.compName}}">{{upperFirst competence.compName}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-te-deum/templates/dialogs/partial-creator-status.hbs}}
|
||||
|
||||
</div>
|
@ -1,10 +1,14 @@
|
||||
<div class="fvtt-te-deum-character-creator">
|
||||
|
||||
<h2>{{title}}</h2>
|
||||
<h3>{{title}}</h3>
|
||||
<h4>{{subtitle}}</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<select name="selectedItem">
|
||||
{{selectOptions choices valueAttr="id" labelAttr="name"}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-te-deum/templates/dialogs/partial-creator-status.hbs}}
|
||||
|
||||
</div>
|
@ -1,90 +0,0 @@
|
||||
{{#if skill}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize skill.name}} : </span>
|
||||
<span class="roll-dialog-label">{{skill.value}}</span>
|
||||
</div>
|
||||
|
||||
{{#if impactMalus}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.impactmalus"}} : </span>
|
||||
<span class="roll-dialog-label">{{impactMalus}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.skilltranscendence"}} : </span>
|
||||
<select class="" id="roll-select-transcendence" data-type="Number">
|
||||
{{#select skillTranscendence}}
|
||||
{{#for 0 skill.value 1}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/for}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{#if forcedSpec}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.spec"}} : </span>
|
||||
<span class="roll-dialog-label">{{forcedSpec.name}} (+{{forcedSpec.system.bonus}})</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.spec"}} : </span>
|
||||
<select class="" id="roll-specialization" data-type="String" multiple>
|
||||
{{#each skill.spec as |spec idx|}}
|
||||
<option value="{{spec.id}}">{{spec.name}} (+{{spec.system.bonus}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if spleen}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.applyspleen"}} {{spleen.name}}</span>
|
||||
<input type="checkbox" class="item-field-label-short" id="roll-use-spleen" {{checked useSpleen}} />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if ideal}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.applyideal"}} {{ideal.name}}</span>
|
||||
<input type="checkbox" class="item-field-label-short" id="roll-use-ideal" {{checked useIdeal}} />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitbonus"}} : </span>
|
||||
<select class="" id="roll-trait-bonus" data-type="String" multiple>
|
||||
{{#each traits as | trait idx|}}
|
||||
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitmalus"}} : </span>
|
||||
<select class="" id="roll-trait-malus" data-type="String" multiple>
|
||||
{{#each traits as | trait idx|}}
|
||||
<option value="{{trait._id}}">{{trait.name}} ({{trait.system.level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Bonus/Malus : </span>
|
||||
<select id="bonusMalusPerso" name="bonusMalusPerso">
|
||||
{{#select bonusMalusPerso}}
|
||||
<option value="-3">-3</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">+1</option>
|
||||
<option value="2">+2</option>
|
||||
<option value="3">+3</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
15
templates/dialogs/partial-creator-status.hbs
Normal file
15
templates/dialogs/partial-creator-status.hbs
Normal file
@ -0,0 +1,15 @@
|
||||
<hr>
|
||||
<div class="status-section">
|
||||
<div>
|
||||
<label class="field-title">Caractéristiques : </label>
|
||||
{{#each caracBonus as |bonus key|}}
|
||||
<label class="">{{upperFirst key}} +{{bonus.value}} / </label>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div>
|
||||
<label class="field-title">Compétences : </label>
|
||||
{{#each competenceBonus as |bonus key|}}
|
||||
<label class="">{{upperFirst key}} +{{bonus.value}} /</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
@ -25,16 +25,22 @@
|
||||
</select>
|
||||
</li>
|
||||
|
||||
{{#each system.accessible as |access accId|}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">{{getConfigLabel "origineSociale" accId}}</label>
|
||||
<input type="checkbox" name="system.accessible.{{accId}}.isaccessible" {{checked access.isaccessible}} />
|
||||
</li>
|
||||
{{/each}}
|
||||
{{#if hasMultiplier}}
|
||||
|
||||
{{else}}
|
||||
|
||||
{{#each system.accessible as |access accId|}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">{{getConfigLabel "origineSociale" accId}}</label>
|
||||
<input type="checkbox" name="system.accessible.{{accId}}.isaccessible" {{checked access.isaccessible}} />
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Nombre de bonus de Caractéristiques</label>
|
||||
<input type="text" class="item-field-label-short " name="system.nbChoixCarac" value="{{system.nbChoixCarac}}" data-dtype="Number" />
|
||||
<input type="text" class="item-field-label-short " name="system.nbChoixCarac"
|
||||
value="{{system.nbChoixCarac}}" data-dtype="Number" />
|
||||
</li>
|
||||
{{#each system.caracteristiques as |carac caracKey|}}
|
||||
{{#if carac.valid}}
|
||||
@ -61,21 +67,47 @@
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
{{#if canCompetencesOpt}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Compétences à choisir ?</label>
|
||||
<input type="checkbox" name="system.hasCompetencesOpt" {{checked system.hasCompetencesOpt}} />
|
||||
</li>
|
||||
{{#if system.hasCompetencesOpt}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Nombre de compétences à choisir</label>
|
||||
<input type="text" class="item-field-label-short" name="system.competencesOptNumber"
|
||||
value="{{system.competencesOptNumber}}" data-dtype="Number" />
|
||||
</li>
|
||||
{{#each system.competencesOpt as |comp compKey|}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Compétence +1</label>
|
||||
<select name="system.competencesOpt.{{compKey}}.compName">
|
||||
{{selectOptions @root.competences selected=comp.compName labelAttr="name" blank=""}}
|
||||
</select>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#if hasMultiplier}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Multiplicateur de cagnotte</label>
|
||||
<input type="text" class="item-field-label-short"
|
||||
name="system.cagnotteMultiplier" value="{{system.cagnotteMultiplier}}"
|
||||
data-dtype="Number" />
|
||||
<input type="text" class="item-field-label-short" name="system.cagnotteMultiplier"
|
||||
value="{{system.cagnotteMultiplier}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Diviseur de cagnotte</label>
|
||||
<input type="text" class="item-field-label-short"
|
||||
name="system.cagnotteDivider" value="{{system.cagnotteDivider}}"
|
||||
data-dtype="Number" />
|
||||
<input type="text" class="item-field-label-short" name="system.cagnotteDivider"
|
||||
value="{{system.cagnotteDivider}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label>Trousseau</label>
|
||||
<textarea name="system.trousseau" cols="30" rows="5"/>{{system.trousseau}} </textarea>
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#if hasQuestionnaire}}
|
||||
{{#each system.questionnaire as |question quesKey|}}
|
||||
<hr>
|
||||
@ -89,17 +121,19 @@
|
||||
data-dtype="String" />
|
||||
|
||||
<label class="item-name-label-long">Choix multiple?</label>
|
||||
<input type="checkbox" name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.toSelect" {{checked reponse.toSelect}} />
|
||||
<input type="checkbox" name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.toSelect" {{checked
|
||||
reponse.toSelect}} />
|
||||
{{#if reponse.toSelect}}
|
||||
{{#each reponse.compList as |comp compKey|}}
|
||||
<select class="item-name-label-medium" name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.compList.{{compKey}}.compName">
|
||||
{{selectOptions @root.competences selected=comp.compName labelAttr="name" blank=""}}
|
||||
</select>
|
||||
{{/each}}
|
||||
{{#each reponse.compList as |comp compKey|}}
|
||||
<select class="item-name-label-medium"
|
||||
name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.compList.{{compKey}}.compName">
|
||||
{{selectOptions @root.competences selected=comp.compName labelAttr="name" blank=""}}
|
||||
</select>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<select class="item-name-label-medium" name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.compName">
|
||||
{{selectOptions @root.competences selected=reponse.compName labelAttr="name" blank=""}}
|
||||
</select>
|
||||
<select class="item-name-label-medium" name="system.questionnaire.{{quesKey}}.reponses.{{repKey}}.compName">
|
||||
{{selectOptions @root.competences selected=reponse.compName labelAttr="name" blank=""}}
|
||||
</select>
|
||||
{{/if}}
|
||||
<label class="item-name-label-short item-name-label-text-margin">+1</label>
|
||||
</li>
|
||||
@ -108,6 +142,16 @@
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
{{#if hasDebouches}}
|
||||
<label>Débouchés possibles à l'Age Viril</label>
|
||||
{{#each system.debouches as |debouche debKey|}}
|
||||
<li class="flexrow">
|
||||
<input type="text" name="system.debouches.{{debKey}}.debouche" value="{{debouche.debouche}}"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user