Craxy / ToggleTrafficLights

Mod for Cities:Skylines. Tool to remove or add traffic lights at intersections.
Other
33 stars 10 forks source link

Tooltip for button stays open #13

Closed Craxy closed 9 years ago

Craxy commented 9 years ago

This happens when button is clicked while tooltip is visible and mouse is fast moved out of button or kept pressed while moving the mouse out of button.

since commit 16981d3087c2da9321df5e916210fbe4665ffd69 before it was not the cause because of coroutine (delay) of destroying button. But with commit 16981d3087c2da9321df5e916210fbe4665ffd69 another method to detect clicks is used (via Button.containsMouse && Input.GetMouseButtonDown(button) ). Might cause the problem? Delaying of the destroying isn't enough. Also delay hiding and/or removing button does not work.