Fix nameOnRight for intercut scenes

This commit is contained in:
2023-03-08 10:21:12 -07:00
parent c6f79dffe6
commit 06931e61a1

View File

@@ -51,17 +51,21 @@ ADDCHARACTER "black" Right FacingLeft
// Speaker name not being bumped to right side for stage-right actors while intercutting: // Speaker name not being bumped to right side for stage-right actors while intercutting:
(preload (preload
(newFlxSet "intercutSet" AssetPaths.whiteBackground1280x720__png) (newFlxSet "intercutSet" AssetPaths.whiteBackground1280x720__png)
(newSceneFromSet "intercutScene" "intercutSet")) (newSceneFromSet "intercutScene" "intercutSet" Day Exterior))
SETSCENE "intercutScene" SETSCENE "intercutScene"
ADDCHARACTER "black" right FacingLeft ADDCHARACTER "black" Right FacingLeft
INTERCUT [=>"white" basicSceneKey "black" "intercutScene"] INTERCUT [=>"white" basicSceneKey =>"black" "intercutScene"]
(prop &mut speakerNameTextLeftX 0.0) (prop &mut speakerNameTextLeftX 0.0)
{(delay 0.01 ->:Void (set speakerNameTextLeftX flxDirector.speakerNameText.x))(cc)} {(delay 0.01 ->:Void (set speakerNameTextLeftX flxDirector.speakerNameText.x))(cc)}
NORMALSPEECH "white" "" "Testing line one" NORMALSPEECH "white" "" "Testing line one"
{(delay 0.01 ->:Void {(assert (> flxDirector.speakerNameText.x speakerNameTextLeftX))})(cc)} {(delay 0.01 ->:Void {(assert (> flxDirector.speakerNameText.x speakerNameTextLeftX))})(cc)}
NORMALSPEECH "black" "" "Testing line two" NORMALSPEECH "black" "" "Testing line two"
{(delay 0.01 ->:Void (set speakerNameTextLeftX flxDirector.speakerNameText.x))(cc)}
ONPHONESPEECH "white" "" "Testing line one"
{(delay 0.01 ->:Void {(assert (> flxDirector.speakerNameText.x speakerNameTextLeftX))})(cc)}
ONPHONESPEECH "black" "" "Testing line two"
ENDINTERCUT ENDINTERCUT