mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[language] automatically call text when they appear directly as a statement; remove autocalling of every text returned by a statement
The previous behavior, where any Text value returned by a line in a Block would be automatically called, may lead to unexpected Text event being written as it is not obvious which line can return a Text value after evaluation. The new behavior only triggers if a Text node directly appear in the original script as a statement.
This commit is contained in:
parent
991f9fed35
commit
b534a3c4a2
21 changed files with 80 additions and 40 deletions
|
|
@ -1,12 +1,14 @@
|
|||
:@choice = 1
|
||||
|
||||
:$ jump button
|
||||
1 # | A
|
||||
1 #
|
||||
| A
|
||||
*| Surprise choice!
|
||||
| ok
|
||||
|
||||
:$ move axis
|
||||
1 # | left
|
||||
1 #
|
||||
| left
|
||||
*| Surprise choice!
|
||||
| ok2
|
||||
return(" joystick")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue