Failing test case for intercut nameOnRight
This commit is contained in:
@@ -48,4 +48,21 @@ ADDCHARACTER "black" Right FacingLeft
|
||||
(withActor "white" actorLeft
|
||||
(assert (> actorRight.x actorLeft.x))))
|
||||
|
||||
// Speaker name not being bumped to right side for stage-right actors while intercutting:
|
||||
(preload
|
||||
(newFlxSet "intercutSet" AssetPaths.whiteBackground1280x720__png)
|
||||
(newSceneFromSet "intercutScene" "intercutSet"))
|
||||
|
||||
SETSCENE "intercutScene"
|
||||
ADDCHARACTER "black" right FacingLeft
|
||||
INTERCUT [=>"white" basicSceneKey "black" "intercutScene"]
|
||||
|
||||
(prop &mut speakerNameTextLeftX 0.0)
|
||||
{(delay 0.01 ->:Void (set speakerNameTextLeftX flxDirector.speakerNameText.x))(cc)}
|
||||
NORMALSPEECH "white" "" "Testing line one"
|
||||
{(delay 0.01 ->:Void {(assert (> flxDirector.speakerNameText.x speakerNameTextLeftX))})(cc)}
|
||||
NORMALSPEECH "black" "" "Testing line two"
|
||||
|
||||
ENDINTERCUT
|
||||
|
||||
(Sys.exit 0)
|
||||
Reference in New Issue
Block a user