From 8fc8179231248a97dd8fc38a7572fbe3787165de Mon Sep 17 00:00:00 2001 From: gator Date: Tue, 22 Sep 2026 21:09:18 +0000 Subject: [PATCH] Storyboard: the note on a shot feeds Make this shot - rewrite from the note, then draw, then film --- trailer.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/trailer.html b/trailer.html index ff109b5..a3749ef 100644 --- a/trailer.html +++ b/trailer.html @@ -1409,7 +1409,7 @@ if (s.writing) { return '
' + esc(s.id) + '
' + '

' + esc(s.title || "New scene") + '

' - + '

The writer is turning your note into a shot…

' + + '

' + (s.making ? 'Making this shot: ' + esc(s.making) + ' · the rewrite takes a minute or two, the picture about a minute, then the clip 3 to 5 minutes. This page refreshes itself.' : 'The writer is turning your note into a shot…') + '

' + '

' + esc(String(s.rough || "").slice(0, 300)) + '

'; } @@ -1485,9 +1485,9 @@ } var tools; - if (s.making && (s.drawing || stillFilming(s))) { + if (s.making && (s.writing || s.drawing || stillFilming(s))) { var since = Date.parse(s.making_since || "") || Date.now(), mins = Math.floor((Date.now() - since) / 60000), secs = Math.floor(((Date.now() - since) % 60000) / 1000); - var expect = /drawing/.test(s.making) ? "the picture takes about a minute, then the clip 3 to 5 minutes" : "the clip takes 3 to 5 minutes"; + var expect = /rewriting/.test(s.making) ? "the rewrite takes a minute or two, the picture about a minute, then the clip 3 to 5 minutes" : /drawing/.test(s.making) ? "the picture takes about a minute, then the clip 3 to 5 minutes" : "the clip takes 3 to 5 minutes"; tools = 'Making this shot: ' + esc(s.making) + ' · ' + mins + ':' + String(secs).padStart(2, "0") + ' elapsed · ' + expect + '. This page refreshes itself; the clip appears here when it is done.'; } else if (s.drawing) tools = 'drawing…'; @@ -1501,7 +1501,7 @@ } else { tools = (s.make_error ? '
' + esc(s.make_error) + '
' : '') + '' + + (NOTES[s.id] ? 'Apply my note, redraw and film' : s.clip_url ? 'Make this shot again' : (s.opening_url && !s.picture_stale ? 'Make this shot (film the picture)' : 'Make this shot')) + ' · about $' + ((s.opening_url && !s.picture_stale && !NOTES[s.id] ? 0 : 0.14) + filmCost(s)).toFixed(2) + '' + '' + '' @@ -1541,7 +1541,7 @@ + 'was charged.

' : '') + '' + ''; } @@ -1561,8 +1561,12 @@ if ((el = hit("data-make"))) { el.disabled = true; var msid = el.getAttribute("data-make"); - r = await act("make_shot", { draft_id: CUR, shot_id: msid }); - if (r) { showMsg("msg", "Making shot " + msid + (r.redraw ? ": picture first, then the clip" : ": filming the picture") + " - about $" + r.usd + ", roughly " + r.minutes + " minutes. The page refreshes itself.", "ok"); await refresh(); } + var nta = document.querySelector('[data-note="' + msid + '"]'); + var mnote = nta ? nta.value.trim() : (NOTES[msid] || ""); + r = await act("make_shot", { draft_id: CUR, shot_id: msid, note: mnote }); + if (r) { + if (mnote) { await api("add_shot_note", { draft_id: CUR, shot_id: msid, note: "" }); NOTES[msid] = ""; } + showMsg("msg", "Making shot " + msid + (r.rewrite ? ": rewriting from your note, then the picture, then the clip" : r.redraw ? ": picture first, then the clip" : ": filming the picture") + " - about $" + r.usd + ", roughly " + r.minutes + " minutes. The page refreshes itself.", "ok"); await refresh(); } else el.disabled = false; return; }