AGK 2019.05.22
AGKS Scene Editor v0.95
The autogenerated code in _cleanup() fails to delete Virtual buttons, resulting in an error message if you use SetErrorMode(2) and a failure to draw any Virtual Buttons after attempting to delete/recreate them if you use SetErrorMode(0)
See the attached project (It's an amended version of Imagination Engineers Scene Template project)
1. Run the exe
2. Press the Start virtual button
3. On the second screen, press the Orange back button or press Escape
Quote: "
Error Message:
---------------------------
Message
---------------------------
Error: Cannot add virtual button 1, a virtual button already exists at that index in title.scene at line 42
---------------------------
OK
---------------------------
"
This button should have been deleted when moving from title.scene to game.scene via title_cleanup(), ready to be created again in title_setup()
I think this is a bug in AppGameKit Core, not Studio; if I replace the virtual buttons with sprites and do a GetSprite() hit to simulate them as buttons, it works.
Can anyone confirm?