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
Error message opening nowhere near my mouse #9029
Comments
I think error messages open in the corner furthest from the mouse, on the idea that they will have less risk of blocking something the player wanted to click to do the actual intended/would-work action. But that logic might not be appropriate any longer now resolutions are typically greater than 1024x768. |
thats not a bug, its a feature. (stemming from the original game!) sometimes, ive had it 'stick' to the same spot where the last one was displayed, ie: if i moved it to the top right corner, from then on, it would always popup there. (until the nxt install) |
Replacing the positioning logic in Line 224 in 6c33b4e
|
This logic is still appropriate. It would be very annoying if this information appeared right next to the cursor. Most of them are just a formality and the player knows perfectly well what is happening without this information, so bringing them closer will not help. Moreover it can be very difficult in situations where the player needs to do something as soon as possible, but cannot, because every now and then there is a "stupid" warning about nothing that covers the field of action.
Of course, this is only one of many possible situations. Even if this warning pops up a bit to the side, it will still be unnecessarily distracting and irritating with its intrusiveness and can still be the cause of a very unpleasant event. Here, optionally disabling messages would not be a good option, as sometimes they are actually useful. An alternative solution would be to specify a fixed position at which these messages would be displayed. I think that in the case of these messages, they could be more visible, and at the same time they would not be disturbing if they always appeared in the same, expected place. |
How about: If the error message window was see-through and not clickable, instead clicks went to whatever is below it. |
You want to close the window, because it bothers you after all, but you can't... You can do it anywhere, but not here? I think it would be better if hovering over them would just close them. But in either case, the warning appearing in the player's spotlight in most situations would be really irritating. Especially since it appears really often and usually about things that the player knows very well - see that screenshot above. Do you really need this? As an option? Ok. ("Approx the warning to mouse cursor" (0-100)?) But I believe that any fixed closering of these messages towards the center is a bad idea. |
Sorry @TrueBrain, this one seems to be "working as intended" and discussion about how we could do it differently doesn't belong in the bug tracker after two years. 😉 LordAro suggested a fix that could be a PR, if you still want to fix this. |
To put Discord here: it was argued that the "working as intended" was true for 640x480, but on a 4k it is hard to argue this is desired behaviour. It is 100% intended, but in 2024, I would really consider this a bug :) Not all bugs are equal; it seems :P |
So open "near the mouse" but also not so close that it will likely cover what the player was intending to work on. Perhaps have different logic depending on the game screen size. |
Version of OpenTTD
1.11.0
Expected result
Error message near my mouse. The reason for this is simple:
You are focused close to your mouse, as that is where you perform the action. So instead of the error appearing .. "somewhere", do it relative close to the mouse so it is seen by the user.
Focus should be localized, and while this wasn't an issue when screens were 640x480, with modern resolutions this is more of an issue.
Alternatively, another form of feedback that the action failed, so I know to look for the error message, works fine for me to. But I was just clicking and clicking being annoyed nothing happened.
Actual result
Error message somewhere on my screen, maybe in this corner? or this? No there? Owh, wait, here. Mostly caused by a 2k monitor and not scaling the UI (which works fine for most things except this).
It seems they mostly want to be in some corner, far away from you. Like it is scared of being seen.
Steps to reproduce
I have to admit this might be a me-problem, but I think/hope I am not alone in the frustration here.
The text was updated successfully, but these errors were encountered: