diff --git a/trailer.html b/trailer.html
index 7c9863e..8c64969 100644
--- a/trailer.html
+++ b/trailer.html
@@ -996,11 +996,17 @@
return '
' + cast.map(function (c) {
+ var faceless = cast.filter(function (c) { return !c.head_url && c.id !== "Narrator" && !/no visible body/i.test(c.appearance || ""); }).length;
+ var castBar = faceless
+ ? '
' + faceless + ' of the cast have no face yet - the reference sheets are drawn with the first picture. '
+ + (PKG.cast_state ? 'Drawing the cast… ' : 'Draw the cast now (about $' + (faceless * 4 * 0.068).toFixed(2) + ', no shots, no video)') + '
'
+ : '';
+ var castHtml = castBar + '
' + cast.map(function (c) {
var nm = c.name || c.id;
var sheets = c.head_url
? '
' : '';
+ + '" src="' + esc(c.head_url) + '" alt="">
'
+ : (c.id !== "Narrator" && !/no visible body/i.test(c.appearance || "") ? '
no face drawn yet
' : '');
return '
' + sheets + '
' + esc(nm) + ' '
+ '
' + esc(c.role || "") + (c.voice_id ? " · voiced" : " · silent")
+ ' ' + esc((c.appearance || "").slice(0, 150)) + '
'
@@ -1499,6 +1505,12 @@
var el, r;
if ((el = hit("data-cancel"))) { EDITING = null; openTab(CUR); return; }
+ if ((el = hit("data-drawcast"))) {
+ el.disabled = true;
+ r = await act("draw_cast", { draft_id: el.getAttribute("data-drawcast") });
+ if (r) { showMsg("msg", "Drawing reference sheets for " + r.characters + " characters (about $" + r.usd + "). They appear as they finish.", "ok"); setTimeout(refresh, 20000); }
+ return;
+ }
if ((el = hit("data-add"))) { EDITING = "new:" + el.getAttribute("data-add"); openTab(CUR); return; }
if ((el = hit("data-edit"))) { EDITING = el.getAttribute("data-edit"); openTab(CUR); return; }