Feature: A setting to bring back old tile tooltip behavior.

If enabled, the setting allows tooltips for tiles, such as industries, to show instantly, when otherwise they would require a right-click.
This commit is contained in:
RoqueDeicide
2023-06-24 21:00:21 +04:00
parent cc22351ef4
commit 829db8e4f9
6 changed files with 15 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ public:
virtual void OnMouseOver(Point pt, int widget) override
{
if (pt.x != -1 && (_settings_client.gui.hover_delay_ms == 0 ? _right_button_down : _mouse_hovering)) {
if (pt.x != -1 && (_settings_client.gui.hover_delay_ms == 0 && (_right_button_down || _settings_client.gui.instant_tile_tooltip) || _mouse_hovering)) {
/* Show tooltip with last month production or town name */
const Point p = GetTileBelowCursor();
const TileIndex tile = TileVirtXY(p.x, p.y);