(Moving this to an issue so it's not lost in Discord history)
Would it make sense to have access to the UI in the Context struct? I often get stuck when trying to implement lua functions because some logic is implemented directly in the UI. For instance, I'd like to implement runtime.exit() to stop the game, but the logic to do this requires access to variables in MainWindow that are not reachable in the Lua classes
(In the meantime, I implemented a dummy function that kills the process then makes libtas segfault, which was good enough for my purpose, but I'd like to make a proper PR)
(Moving this to an issue so it's not lost in Discord history)
Would it make sense to have access to the UI in the Context struct? I often get stuck when trying to implement lua functions because some logic is implemented directly in the UI. For instance, I'd like to implement runtime.exit() to stop the game, but the logic to do this requires access to variables in MainWindow that are not reachable in the Lua classes
(In the meantime, I implemented a dummy function that kills the process then makes libtas segfault, which was good enough for my purpose, but I'd like to make a proper PR)