I'm setting up a loop, containing a routine with a button whose text is being set from a variable.
The button text is set to "set every repeat". This works in the Python version but the JS version produces the following code:
// update component parameters for each repeat
button.setText(foo);
// reset button to account for continued clicks & clear times on/off
button.reset()
The result is a button that's always empty.
I can work around this by setting the button text to "set every frame", but that seems to also affect the way response times are being recorded.
Attached a minimal example:
Archive.zip
I'm setting up a loop, containing a routine with a button whose text is being set from a variable.
The button text is set to "set every repeat". This works in the Python version but the JS version produces the following code:
The result is a button that's always empty.
I can work around this by setting the button text to "set every frame", but that seems to also affect the way response times are being recorded.
Attached a minimal example:
Archive.zip