Storyboard: offer to film shots whose pictures or words changed
This commit is contained in:
parent
f892d3967b
commit
f522cc4fc3
1 changed files with 5 additions and 3 deletions
|
|
@ -580,7 +580,9 @@
|
|||
function barHtml(meta) {
|
||||
var shots = (PKG.shots || []), cast = (PKG.characters || []);
|
||||
var undrawn = shots.filter(function (s) { return !s.opening_url; }).length;
|
||||
var unfilmed = shots.filter(function (s) { return !s.clip_url; }).length;
|
||||
// A clip filmed from a picture or words that have since changed is not the shot any more.
|
||||
var unfilmed = shots.filter(function (s) { return !s.clip_url || s.clip_stale; }).length;
|
||||
var changed = shots.filter(function (s) { return s.clip_url && s.clip_stale; }).length;
|
||||
var filmed = shots.length - unfilmed;
|
||||
var imgs = boardImages(shots, cast);
|
||||
var s = String(meta.draw_state || "");
|
||||
|
|
@ -659,7 +661,7 @@
|
|||
|
||||
if (unfilmed && !undrawn)
|
||||
out.push('<button type="button" class="btn primary" data-film="' + esc(meta.id)
|
||||
+ '">Film ' + (filmed ? 'the ' + unfilmed + ' remaining shots' : 'all ' + shots.length + ' shots')
|
||||
+ '">Film ' + (changed ? 'the ' + unfilmed + ' shots that are new or have changed' : (filmed ? 'the ' + unfilmed + ' remaining shots' : 'all ' + shots.length + ' shots'))
|
||||
+ ' · $' + (unfilmed * 0.75).toFixed(2) + '</button>');
|
||||
if (filmed)
|
||||
out.push('<button type="button" class="btn primary" data-assemble="' + esc(meta.id)
|
||||
|
|
@ -1101,7 +1103,7 @@
|
|||
var ps = String(PKG.pics_state || "");
|
||||
var checking = ps && ps !== "ready";
|
||||
var reelReady = String(PKG.reel_state || "") === "ready";
|
||||
var unfilmed = shots.filter(function (x) { return !x.clip_url; }).length;
|
||||
var unfilmed = shots.filter(function (x) { return !x.clip_url || x.clip_stale; }).length;
|
||||
var objections = String((DRAFTNOW || {}).problems || "").split("\n").filter(Boolean).length;
|
||||
var price = function (n) { return "$" + n.toFixed(2); };
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue