Storyboard cast: a character with candidates drawn says so

This commit is contained in:
gator 2026-09-22 14:50:06 +00:00
parent b59d12c289
commit 0b9de99303

View file

@ -996,7 +996,8 @@
return '<li>' + esc(x) + '</li>'; }).join("") + '</ul></div>' return '<li>' + esc(x) + '</li>'; }).join("") + '</ul></div>'
: ""; : "";
var faceless = cast.filter(function (c) { return !c.head_url && c.id !== "Narrator" && !/no visible body/i.test(c.appearance || ""); }).length; var faceless = cast.filter(function (c) { return !c.head_url && c.id !== "Narrator" && !/no visible body/i.test(c.appearance || "")
&& !((c.look_candidates || {}).items || []).length; }).length;
var castBar = faceless var castBar = faceless
? '<p class="tiny" style="margin:6px 0 8px">' + faceless + ' of the cast have no face yet - the reference sheets are drawn with the first picture. ' ? '<p class="tiny" style="margin:6px 0 8px">' + faceless + ' of the cast have no face yet - the reference sheets are drawn with the first picture. '
+ (PKG.cast_state ? '<b>Drawing the cast&hellip;</b>' : '<button type="button" class="btn small" data-drawcast="' + esc(draft.id) + '">Draw the cast now</button> (about $' + (faceless * 4 * 0.068).toFixed(2) + ', no shots, no video)') + '</p>' + (PKG.cast_state ? '<b>Drawing the cast&hellip;</b>' : '<button type="button" class="btn small" data-drawcast="' + esc(draft.id) + '">Draw the cast now</button> (about $' + (faceless * 4 * 0.068).toFixed(2) + ', no shots, no video)') + '</p>'
@ -1006,7 +1007,7 @@
var sheets = c.head_url var sheets = c.head_url
? '<div class="sheets"><img data-zoom="' + esc(nm + " — the face every picture is drawn from") ? '<div class="sheets"><img data-zoom="' + esc(nm + " — the face every picture is drawn from")
+ '" src="' + esc(c.head_url) + '" alt=""></div>' + '" src="' + esc(c.head_url) + '" alt=""></div>'
: (c.id !== "Narrator" && !/no visible body/i.test(c.appearance || "") ? '<div class="sheets tiny" style="color:var(--muted)">no face drawn yet</div>' : ''); : (c.id !== "Narrator" && !/no visible body/i.test(c.appearance || "") ? '<div class="sheets tiny" style="color:var(--muted)">' + (((c.look_candidates || {}).items || []).length ? 'candidates drawn - choose one' : 'no face drawn yet') + '</div>' : '');
return '<div class="ch">' + sheets + '<b>' + esc(nm) + '</b>' return '<div class="ch">' + sheets + '<b>' + esc(nm) + '</b>'
+ '<span class="vo">' + esc(c.role || "") + (c.voice_id ? " · voiced" : " · silent") + '<span class="vo">' + esc(c.role || "") + (c.voice_id ? " · voiced" : " · silent")
+ '</span><div class="ap">' + esc((c.appearance || "").slice(0, 150)) + '</div>' + '</span><div class="ap">' + esc((c.appearance || "").slice(0, 150)) + '</div>'