Repository navigation
Breaking Change: Scenes
A scene now behaves the same way edits do in how it picks a device to run on. Scenes move out of
scenes/iphone/ and scenes/ipad/, which aren't read any more, into scenes/. Retake names any
scene left behind, in validate and record, and records nothing until it's moved.
- A scene names the device types it plays on,
devices, every one unless it says, and a
step's owndevicesthe types among those it plays on: on another it's skipped but keeps its
number, so the steps after it are numbered alike, and an anchor to it fails there. Anything at a
scene's top or in a step can be given again underiphoneoripad, laid over what it overrides,
as in an edit; an override or a step'sdevicesnaming a type the scene doesn't play on is
refused. composewrites the scene for the device it's on, keeping each step it doesn't change as the
file has it, its overrides anddeviceswith it.retake initstarts a project withscenes/and onelaunchscene for every type.- An edit's
devicesis every type unless it names some, as a scene's is. - To move a project, put each scene in
scenes/. Where a type's scene and the other's say the
same, keep one. Where they differ, keep one and give the other's differences under"iphone": { … }or"ipad": { … }, in a step or at the top, as in an edit; give a step only one type plays
"devices": ["ipad"]. A scene for only one type names it:"devices": ["iphone"]. - An edit that anchored by step number to a scene that now has a step for one type only should
anchor by the step'sid: the step keeps its number on both types, so the numbers after it don't
move, but nothing can anchor to it on the type that skips it.
New Feature: Taps and Drag offsets
- A tap or a drag's end on an element can be moved off it, by
offsetin points and
offsetPercentin percent of the element's width and height, from its activation point: for a
finger that has to touch or lift somewhere the element places rather than on it, such as a game
piece drawn above the finger. A tap or a drag's start with an offset is touched where Retake finds
it on the screen just before. Nothing breaks.
Bug Fix: Compose respects holds
retake composewaits out each step's hold before answering, asrecorddoes, rather than
only writing it into the scene: a tap's from when it's sent, any other step's from when it ends,
and the scene'sdefaultHoldfor a step that gives none. The next step no longer runs while the
app is still moving from the last, landing where it wouldn't in a take, and the screencompose
prints after a step, with itssuggestion, is the one once the hold is over. Nothing breaks.