Skip to content

Déterrage de Topics; Passage de variable entre scènes #632

Answered by Raphwit
edejean asked this question in Q&A
Discussion options

You must be logged in to vote

Voici un exemple de la mécanique dont je parle dans mon message précédent :

SYNAPPS-STUDIO-SCENE|{"config":{"key":"scene123","name":"Scène 4","additionalDefs":{"prop123":{"type":"text"}}},"leadActor":{"type":"layout/stack","key":"stack1","children":[{"type":"display/screen","key":"screen1","additionals":{"prop1":"ma variable 2.0"},"additionalDefs":{"prop1":{"type":"text"},"prop2":{"type":"text"}}},{"type":"input/button","key":"button1","properties":{"content":"Button"},"events":{"onClick":["context.getActor('screen1').properties.sceneKey = \"scene2\"","context.getActor('screen1').additionals.prop1 = \"hello\""]}}],"bindings":{"properties.backgroundColor":"[email protected]"}}}
SY…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@edejean
Comment options

Answer selected by Raphwit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #631 on October 10, 2023 10:44.