Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug menu flags not redrawing correctly after PR 3796 #3916

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

ravepossum
Copy link

Description

After PR 3796 was merged, now the flag toggles in the debug menu now no longer reflect the current state of the flag when you toggle them. Basically when you toggle a flag on, it doesn't update the color to reflect it and it ends up "flipped" from what it really should be, because it's getting redrawn before the function runs to toggle the flag.

This PR changes when the redraw happens relative to the function itself depending on which option is selected. This way the menu renders properly both when toggling a flag and viewing all the flags/vars in the debug menu.

This is kind of a silly fix, but it's the best way I could think of. Let me know if y'all have a better way to write this in mind.

Images

No gif included because without inputs visible it doesn't make sense.

Discord contact info

Discord user: ravepossum

src/debug.c Outdated Show resolved Hide resolved
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
@Bassoonian Bassoonian merged commit e9e46d8 into rh-hideout:master Jan 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants