Skip to content

Accessing the UI in the Context struct #722

@Perdu

Description

@Perdu

(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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions