Adjustments for PR #556

Setting text/condition, tooltip condition
This commit is contained in:
Jonathan G Rennison
2023-06-24 23:29:44 +01:00
parent 4fae774cb5
commit 9a5df29648
7 changed files with 20 additions and 7 deletions

View File

@@ -6703,3 +6703,14 @@ int GetSlopeTreeBrightnessAdjust(Slope slope)
return 0;
}
}
bool IsViewportMouseHoverActive()
{
if (_settings_client.gui.hover_delay_ms == 0) {
/* right click mode */
return _right_button_down || _settings_client.gui.instant_tile_tooltip;
} else {
/* normal mode */
return _mouse_hovering;
}
}