I installed Picotron v0.1.1e this morning and was not entirely surprised to find that a project of mine doesn't fully work with the current version. Seemed like buttons weren't working, but the project runs fine. After some testing around, I think the issue is that GUI mouse events aren't triggered when that GUI Element is inside of code that is loaded at runtime, using the load() function. (I'm also not getting any error popups for broken syntax, the cart just refuses to run, but this is unrelated.)
Here's a cart that demonstrates the issue I'm having, and I have confirmed that it works like I'd expect on 0.1.1d:
In the cart above, each button has code to draw a rectangle, but one is defined in the source code of the cart, and the other is defined in a string that is loaded in _init() using the load() function and passing it a table with the same contents as the _ENV table
[Please log in to post a comment]