imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Pressing a button in :Draw presses it twice

Open amanitasolanaceae opened this issue 2 years ago • 1 comments

see title; i am not sure what kind of debug output would be more helpful/informative. i've been able to get around this by specifying a cooldown until the code in the condition runs again after pressing the button but this seems hacky.

amanitasolanaceae avatar Jan 04 '22 15:01 amanitasolanaceae

These cases are a bit tricky. What rendergroup does the entity have? It's possible that Draw is getting called twice per frame (opaque + translucent), in which case the event if might also trigger twice. Sometimes also having reflective surfaces (i.e. water) visible on screen can cause it, although imgui should have relatively good protections against that.

Cooldown is an ok solution in my books, if it's not a rendergroup related issue.

wyozi avatar Jan 07 '22 12:01 wyozi