Join GitHub today
Tooltip is on wrong side of cursor #2717
When close to the screen edge the tooltips are supposed to be on the left side of the cursor.
This code is responsible for that:
Unfortunately most of the time it doesn't work because the witdht of the tooltip gui (self.gui.size) is set to 0.
I haven't been able to find out what is supposed to set this size, but I hope that someone who knows could figure that out.
Sometimes it does actually work (randomly).
I explicitly disabled tooltip repositioning on mouse hover some time ago, because it would crash Python (and effectively the game) very often. It's unfortunate, but that was the quickest solution. Increasing the cooldown between ON and OFF states did not help back then.
Unfortunately, there is a couple of limitations in our GUI we have to live with, I think.