Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.81k stars 501 forks source link

Fix tooltips for the new graphical auto-evo buttons #5527

Closed dligr closed 1 week ago

dligr commented 1 week ago

Brief Description of What This PR Does

Fixes the new auto-evo buttons' species preview tooltips behaving weirdly.

Related Issues

Fixes #5523

Based on my testing, it wasn't an engine issue. Rather, it happened because TooltipManager only hides 'previous' tooltips, while the species tooltip sometimes didn't become a 'previous' tooltip, causing it to not be hidden.

Progress Checklist

Note: before starting this checklist the PR should be marked as non-draft.

Before merging all CI jobs should finish on this PR without errors, if there are automatically detected style issues they should be fixed by the PR author. Merging must follow our styleguide.

hhyyrylainen commented 1 week ago

I think this improved things. I put one more commit on this branch to make this fully similar to how the rich text mouse leave is handled.