1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 08:22:34 +01:00

Feature: [Linkgraph] Show a tooltip with statistics when hovering a link

This commit is contained in:
Nicolas Chappe
2021-08-18 16:52:42 +02:00
committed by Michael Lutz
parent 7c79a2a767
commit 864771ca09
5 changed files with 84 additions and 10 deletions

View File

@@ -435,6 +435,12 @@ struct MainWindow : Window
}
}
bool OnTooltip(Point pt, int widget, TooltipCloseCondition close_cond) override
{
if (widget != WID_M_VIEWPORT) return false;
return this->viewport->overlay->ShowTooltip(pt, close_cond);
}
/**
* Some data on this window has become invalid.
* @param data Information about the changed data.