Renommage templates options

prefix enum

Objectif long terme: faire le tri des templates partials vs autres
This commit is contained in:
Vincent Vandemeulebrouck 2022-11-01 00:30:43 +01:00
parent f6a3ec8634
commit ad9f04de4a
12 changed files with 14 additions and 21 deletions

View File

@ -194,20 +194,21 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/item-possession-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-possession-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html',
'systems/foundryvtt-reve-de-dragon/templates/competence-base.html', 'systems/foundryvtt-reve-de-dragon/templates/competence-base.html',
// partial enums
'systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-competence.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-competence.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-ingredient.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-ingredient.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-parade.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-parade.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-potion.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-vehicule.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-vehicule.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-competence.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-competence.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-herbesoin-ingredient.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-herbesoin-ingredient.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-categorie-potion.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-initpremierround.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-initpremierround.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-niveau-ethylisme.html',
'systems/foundryvtt-reve-de-dragon/templates/enum-rarete.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-rarete.html',
'systems/foundryvtt-reve-de-dragon/templates/sort-draconic.html', 'systems/foundryvtt-reve-de-dragon/templates/sort-draconic.html',
'systems/foundryvtt-reve-de-dragon/templates/sort-tmr.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-tmr-type.html',
'systems/foundryvtt-reve-de-dragon/templates/niveau-ethylisme.html', 'systems/foundryvtt-reve-de-dragon/templates/enum-tmr-effet.html',
'systems/foundryvtt-reve-de-dragon/templates/casetmr-specific-list.html',
// Dialogs // Dialogs
'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-resolution.html', 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-resolution.html',
'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-competence.html', 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-competence.html',

View File

@ -32,7 +32,7 @@
{{#if (eq compteur.label 'Ethylisme')}} {{#if (eq compteur.label 'Ethylisme')}}
<select class="description-value" name="system.compteurs.ethylisme.value" id="ethylisme" data-dtype="Number"> <select class="description-value" name="system.compteurs.ethylisme.value" id="ethylisme" data-dtype="Number">
{{#select compteur.value}} {{#select compteur.value}}
{{>"systems/foundryvtt-reve-de-dragon/templates/niveau-ethylisme.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-niveau-ethylisme.html"}}
{{/select}} {{/select}}
</select> </select>
{{else}} {{else}}

View File

@ -1,3 +1,3 @@
{{#each @root.competences as |competence key|}} {{#each (trier @root.competences) as |competence key|}}
<option value="{{competence.name}}">{{competence.name}}</option> <option value="{{competence.name}}">{{competence.name}}</option>
{{/each}} {{/each}}

View File

@ -10,7 +10,7 @@
<label for="niveau">Mode spécifique</label> <label for="niveau">Mode spécifique</label>
<select name="system.specific" id="specific" data-dtype="String"> <select name="system.specific" id="specific" data-dtype="String">
{{#select system.specific}} {{#select system.specific}}
{{>"systems/foundryvtt-reve-de-dragon/templates/casetmr-specific-list.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-tmr-effet.html"}}
{{/select}} {{/select}}
</select> </select>
</div> </div>

View File

@ -21,9 +21,7 @@
<label for="xp">Compétence</label> <label for="xp">Compétence</label>
<select name="system.competence" id="competenceselect" data-dtype="String"> <select name="system.competence" id="competenceselect" data-dtype="String">
{{#select system.competence}} {{#select system.competence}}
{{#each (trier competences) as |competence key|}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-competence.html"}}
<option value="{{competence.name}}">{{competence.name}}</option>
{{/each}}
{{/select}} {{/select}}
</select> </select>
</div> </div>

View File

@ -6,9 +6,7 @@
<label for="xp">Compétence</label> <label for="xp">Compétence</label>
<select name="system.competence" id="competenceselect" data-dtype="String"> <select name="system.competence" id="competenceselect" data-dtype="String">
{{#select system.competence}} {{#select system.competence}}
{{#each (trier competences) as |competence key|}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-competence.html"}}
<option value="{{competence.name}}">{{competence.name}}</option>
{{/each}}
{{/select}} {{/select}}
</select> </select>
</div> </div>
@ -44,7 +42,7 @@
<label for="xp">Case TMR</label> <label for="xp">Case TMR</label>
<select name="system.tmr" id="tmr" data-dtype="String"> <select name="system.tmr" id="tmr" data-dtype="String">
{{#select system.tmr}} {{#select system.tmr}}
{{>"systems/foundryvtt-reve-de-dragon/templates/sort-tmr.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-tmr-type.html"}}
{{/select}} {{/select}}
</select> </select>
</div> </div>

View File

@ -20,9 +20,7 @@
<label>Compétence</label> <label>Compétence</label>
<select name="system.competence" id="competenceselect" data-dtype="String"> <select name="system.competence" id="competenceselect" data-dtype="String">
{{#select system.competence}} {{#select system.competence}}
{{#each (trier competences) as |competence key|}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-competence.html"}}
<option value="{{competence.name}}">{{competence.name}}</option>
{{/each}}
{{/select}} {{/select}}
</select> </select>
</div> </div>

View File

@ -14,7 +14,7 @@
<label for="system.caseTMR">Case TMR</label> <label for="system.caseTMR">Case TMR</label>
<select name="system.caseTMR" id="caseTMR" data-dtype="String"> <select name="system.caseTMR" id="caseTMR" data-dtype="String">
{{#select system.caseTMR}} {{#select system.caseTMR}}
{{>"systems/foundryvtt-reve-de-dragon/templates/sort-tmr.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-tmr-type.html"}}
<option value="special">Case spéciale TMR (saisie ci-dessous)</option> <option value="special">Case spéciale TMR (saisie ci-dessous)</option>
{{/select}} {{/select}}
</select> </select>

View File

@ -17,9 +17,7 @@
<select name="system.competence" id="competenceselect" data-dtype="String"> <select name="system.competence" id="competenceselect" data-dtype="String">
{{#select system.competence}} {{#select system.competence}}
<option value="">Sans compétence</option> <option value="">Sans compétence</option>
{{#each (trier competences) as |competence key|}} {{>"systems/foundryvtt-reve-de-dragon/templates/enum-competence.html"}}
<option value="{{competence.name}}">{{competence.name}}</option>
{{/each}}
{{/select}} {{/select}}
</select> </select>
</div> </div>