Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7772: Show destination on mouseover when vehicle stopped (and not in depot) #8236

merged 1 commit into from Jul 10, 2020


Copy link

@abmyii abmyii commented Jun 23, 2020

Closes #7772. Added the not in depot condition since newly created vehicles don't have a destination so nothing is shown.

src/vehicle_gui.cpp Outdated Show resolved Hide resolved
@abmyii abmyii force-pushed the show_dest_on_mouseover branch from ecece6a to ef6e162 Jun 24, 2020
Copy link

@LordAro LordAro commented Jun 27, 2020

As per original issue, why not use OnHover? Would be nice to actually make use of it :p

Copy link
Contributor Author

@abmyii abmyii commented Jun 27, 2020

As per original issue, why not use OnHover?

#7772 (comment)

Even with the returns disabled, there is no simple way to detect the mouse moving off (as far as I can see).

Would be nice to actually make use of it

It doesn't appear to be used at all - perhaps it's time to deprecate it!

Copy link

@nielsmh nielsmh commented Jun 28, 2020

As far as I know, OnHover is used for showing tooltips and nothing else. It also only activates after holding the mouse still for a little while, it's not a general "moved the mouse over" event.

LordAro approved these changes Jul 2, 2020
@LordAro LordAro merged commit 7d2db99 into OpenTTD:master Jul 10, 2020
8 checks passed
@abmyii abmyii deleted the show_dest_on_mouseover branch Jul 10, 2020
@abmyii abmyii restored the show_dest_on_mouseover branch Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants