MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowMeasurementTooltips

Function ShowMeasurementTooltips

src/viewport.cpp:2786–2790  ·  view source on GitHub ↗

* Displays the measurement tooltips when selecting multiple tiles * @param text String to be displayed */

Source from the content-addressed store, hash-verified

2784 * @param text String to be displayed
2785 */
2786static inline void ShowMeasurementTooltips(EncodedString &&text)
2787{
2788 if (!_settings_client.gui.measure_tooltip) return;
2789 GuiShowTooltips(_thd.GetCallbackWnd(), std::move(text), TCC_EXIT_VIEWPORT);
2790}
2791
2792static void HideMeasurementTooltips()
2793{

Callers 3

VpSetPresizeRangeFunction · 0.85
CalcRaildirsDrawstyleFunction · 0.85
VpSelectTilesWithMethodFunction · 0.85

Calls 2

GuiShowTooltipsFunction · 0.85
GetCallbackWndMethod · 0.80

Tested by

no test coverage detected