Bolt-Scripts / MHR-InGame-ModMenu-API

A user-friendly IMGUI inspired API for drawing in-game settings menus for REF mods in MHRise
13 stars 4 forks source link

Occasional exception when clicking a button also changes its prompt. #10

Closed greydust closed 2 years ago

greydust commented 2 years ago

image

When a user clicks/hits the "Gamepad Trigger" button, the prompt will become "Press trigger" and the mod would try to get the next button the user presses and write it into the prompt field. However, occasionally this would throw the exception in the image and stop the prompt from updating. The other parts (getting the next button and setting up the trigger button) still works.

Code: https://github.com/greydust/mhrise-falbg/blob/f8bcf3d717d422258a31879f10d9925e665a5132/src/reframework/autorun/falbg/native_ui.lua#L19

Bolt-Scripts commented 2 years ago

Seems odd, do you have any more info on how to replicate this, because I wasn't able to make it happen in my few minutes of testing your script.

greydust commented 2 years ago

I can't make it happen today, either. I think I'll close the issue.