The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran on February 01, 2021, 01:08:49 PM

Title: Hack tooltips when the finance dialog is in the foreground
Post by: Ranran on February 01, 2021, 01:08:49 PM
I don't speak English, so please forgive me for explaining with images. (´・ω・`)

First of all, pay attention to what is displayed in the tooltip of the toolbar.
(https://imgur.com/Tf0gqH4.gif)
When you open the finance window and it is in the foreground, their contents are hacked by the finance window and all tooltips are replaced with the tooltip that should be in the Building HQ.

However, this bug will not be reproduced for some reason when the headquarter is built.
Also, some tooltips, such as removal tools, are protected from being hacked.
Title: Re: Hack tooltips when the finance dialog is in the foreground
Post by: prissi on February 02, 2021, 03:25:18 AM
This is due to a static string for all tooltips. It is usually no problem, until a later window overwrite an earlier tooltip. As a hack r9596 will use its own buffer for headquarter tools.
Title: Re: Hack tooltips when the finance dialog is in the foreground
Post by: Ranran on February 02, 2021, 09:21:36 AM
Thank you for fixing it. I was able to confirm that this was successfully fixed.