[Scummvm-git-logs] scummvm master -> 08a475c318b568b189032271a2db6de9645911c4
sev-
sev at scummvm.org
Wed Nov 13 15:29:37 CET 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
08a475c318 DIRECTOR: Added broken 'if' statement test
Commit: 08a475c318b568b189032271a2db6de9645911c4
https://github.com/scummvm/scummvm/commit/08a475c318b568b189032271a2db6de9645911c4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-11-13T15:29:03+01:00
Commit Message:
DIRECTOR: Added broken 'if' statement test
Changed paths:
engines/director/lingo/tests/if.lingo
diff --git a/engines/director/lingo/tests/if.lingo b/engines/director/lingo/tests/if.lingo
index 8f1e239..cbf70f6 100644
--- a/engines/director/lingo/tests/if.lingo
+++ b/engines/director/lingo/tests/if.lingo
@@ -25,3 +25,24 @@ repeat with x = 1 to 6
if x = 4 then put 40
else put 50
end repeat
+
+
+macro checkKey
+ if the keyCode = 36 then -- return key goes to first menu
+ go to frame 1
+ else if the keyCode = 123 then -- left arrow goes to previous menu
+ dontPassEvent
+ go to marker(-1)
+ else if the keyCode = 124 then -- right arrow goes to next menu
+ dontPassEvent
+ go to marker(1)
+ else if the keyCode = 125 then -- down arrow goes to last (bottom) menu
+ dontPassEvent
+ go to frame "credits"
+ else if the keyCode = 126 then -- up arrow goes to first (top) menu
+ dontPassEvent
+ go to frame 1
+ end if
+
+-- specialized macros to determine which sub-menu to return to
+-- (these two files appear in two different menus)
More information about the Scummvm-git-logs
mailing list