Auto-import PNJ3
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,12 @@
|
||||
2026/07/07-18:58:28.911495 7f050a7fc6c0 Recovering log #293
|
||||
2026/07/07-18:58:28.922220 7f050a7fc6c0 Delete type=3 #291
|
||||
2026/07/07-18:58:28.922271 7f050a7fc6c0 Delete type=0 #293
|
||||
2026/07/07-19:03:48.608112 7f0509bff6c0 Level-0 table #301: started
|
||||
2026/07/07-19:03:48.662763 7f0509bff6c0 Level-0 table #301: 5087867 bytes OK
|
||||
2026/07/07-19:03:48.669559 7f0509bff6c0 Delete type=0 #299
|
||||
2026/07/07-19:11:01.854852 7f0509bff6c0 Level-0 table #303: started
|
||||
2026/07/07-19:11:01.894400 7f0509bff6c0 Level-0 table #303: 5140334 bytes OK
|
||||
2026/07/07-19:11:01.901086 7f0509bff6c0 Delete type=0 #300
|
||||
2026/07/07-20:58:07.663642 7f0509bff6c0 Level-0 table #305: started
|
||||
2026/07/07-20:58:07.704731 7f0509bff6c0 Level-0 table #305: 5207876 bytes OK
|
||||
2026/07/07-20:58:07.712290 7f0509bff6c0 Delete type=0 #302
|
||||
|
||||
Binary file not shown.
@@ -198,17 +198,18 @@ class BatchNpcDialog extends HandlebarsApplicationMixin(ApplicationV2) {
|
||||
|
||||
Hooks.on('renderActorDirectory', (app, html, data) => {
|
||||
if (!game.user?.isGM) return;
|
||||
if (html.find('.mgt2-batch-npc-btn').length) return;
|
||||
const $html = html instanceof jQuery ? html : $(html);
|
||||
if ($html.find('.mgt2-batch-npc-btn').length) return;
|
||||
|
||||
const btn = $(`<button class="mgt2-batch-npc-btn" style="margin:4px 8px;flex:0;background:#2c2c3e;color:#d9b24c;border:1px solid #c9a227;">
|
||||
<i class="fas fa-users"></i> Importer PNJs par lots
|
||||
</button>`);
|
||||
|
||||
const footer = html.find('.directory-footer');
|
||||
const footer = $html.find('.directory-footer');
|
||||
if (footer.length) {
|
||||
footer.append(btn);
|
||||
} else {
|
||||
html.find('.directory-header').after(btn);
|
||||
$html.find('.directory-header').after(btn);
|
||||
}
|
||||
|
||||
btn.on('click', () => {
|
||||
|
||||
@@ -12,7 +12,7 @@ function buildStartupNoticeHtml() {
|
||||
<div style="padding:6px 8px;border-left:4px solid #c9a227;background:#f5f0e8;color:#2c2c3e;line-height:1.45;">
|
||||
<strong>MgT2e – outils</strong>
|
||||
<span style="color:#6a5422;">·</span>
|
||||
<code>/commerce</code> <code>/pnj</code> <code>/rencontre</code> <code>/mission</code>
|
||||
<code>/commerce</code> <code>/pnj</code> <code>/rencontre</code> <code>/mission</code> <code>/sector</code> <code>/subsector</code>
|
||||
<div style="margin-top:2px;font-size:0.92em;color:#6a5422;">
|
||||
par <a href="https://www.uberwald.me" target="_blank" rel="noopener noreferrer">LeRatierBretonnien / Uberwald</a>
|
||||
</div>
|
||||
|
||||
+2
-20
@@ -1117,26 +1117,8 @@ a.mgt2-world-link:hover {
|
||||
/* === Batch NPC Creator =================================================== */
|
||||
|
||||
.mgt2-batch-npc-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
background: #f5f0e8;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.mgt2-batch-npc-form h3 {
|
||||
color: #5f4300;
|
||||
border-bottom: 2px solid #b78f26;
|
||||
padding-bottom: 6px;
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
.mgt2-batch-npc-form legend {
|
||||
color: #7a5c00;
|
||||
font-weight: 600;
|
||||
font-size: 0.95em;
|
||||
gap: 10px;
|
||||
padding: 14px 16px 12px;
|
||||
}
|
||||
|
||||
.mgt2-batch-npc-form .input-group {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<form class="mgt2-batch-npc-form">
|
||||
<form class="mgt2-npc-form mgt2-batch-npc-form">
|
||||
<h3><i class="fas fa-users"></i> Création de PNJs par lots</h3>
|
||||
<p class="npc-intro">Crée un PNJ pour chaque image trouvée dans un répertoire.</p>
|
||||
|
||||
<fieldset>
|
||||
<legend>Répertoire source</legend>
|
||||
<div class="form-group-row">
|
||||
<div class="form-group" style="flex:1">
|
||||
<div class="form-group">
|
||||
<label for="batch-directory">Chemin du répertoire</label>
|
||||
<div class="input-group">
|
||||
<input id="batch-directory" name="batch.directory" type="text" value="{{batch.directory}}" placeholder="worlds/mon-monde/images/pnjs">
|
||||
|
||||
Reference in New Issue
Block a user