7fc8d2c09c
- batch NPC creator: import images from dir → actors (dedup, folder) - ally/enemy generator: data tables, D66 specials, tests (39 pass) - sector map sync: DialogV2 player view, socket v13/v14, sync click pos - actor/scene directory: shortcut buttons (Commerce, PNJ, Map, Sync vue) - closeImagePopout: GM closes player portraits via socket - canvasSync: force same canvas view on all players - FilePicker: v14 folder picker support with v13 fallback - cleanup: debug logs, template dedup, return guards
37 lines
1.8 KiB
Handlebars
37 lines
1.8 KiB
Handlebars
<form class="mgt2-npc-form mgt2-batch-npc-form">
|
|
|
|
<fieldset style="padding:8px 10px;margin:0 0 6px">
|
|
<div class="form-group-row" style="gap:8px">
|
|
<div class="form-group" style="flex:1;min-width:0">
|
|
<label for="batch-directory" style="font-size:0.88em">Répertoire des images</label>
|
|
<div class="input-group">
|
|
<input id="batch-directory" name="batch.directory" type="text" value="{{batch.directory}}" placeholder="worlds/mon-monde/images">
|
|
<button type="button" class="btn-small" data-action="browse-directory" title="Parcourir" style="flex:0 0 28px;padding:2px 4px"><i class="fas fa-folder-open"></i></button>
|
|
</div>
|
|
</div>
|
|
<div class="form-group" style="flex:0 0 180px">
|
|
<label for="batch-folderName" style="font-size:0.88em">Dossier Acteur</label>
|
|
<input id="batch-folderName" name="batch.folderName" type="text" value="{{batch.folderName}}" placeholder="PNJs importés">
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<div class="form-group checkbox-group" style="margin:0 0 6px;padding:0 10px">
|
|
<label>
|
|
<input type="checkbox" name="batch.openSheets" {{#if batch.openSheets}}checked{{/if}}>
|
|
Ouvrir la dernière fiche
|
|
</label>
|
|
</div>
|
|
|
|
<div id="batch-progress" class="batch-progress" style="display:none;margin:0 10px 6px">
|
|
<div class="batch-progress-bar"><div class="batch-progress-fill" id="batch-progress-fill"></div></div>
|
|
<div class="batch-progress-text" id="batch-progress-text" style="font-size:0.78em">Initialisation...</div>
|
|
</div>
|
|
|
|
<div class="form-footer" style="padding:6px 10px">
|
|
<button type="button" class="btn-calculate" data-action="batch-create" style="padding:4px 12px;font-size:0.85em">
|
|
<i class="fas fa-dice-d6"></i> Créer les PNJs
|
|
</button>
|
|
</div>
|
|
</form>
|