SDL2 client: UI not refreshing when the turn ends
In SDL2 client, when the player's turn ends (as "Press Shift+Return" shows up in the bottom right box), the UI behaves weirdly.
1. The child dialogues of city dialogue (such as build selector and governor) cannot be opened. In fact, they will not show up when opened, but they will show up for a second when hitting Esc.
2. Tool-tips cannot disappear when the mouse leaves the hovering button.
i attached a temporary fix. Hope someone can come up with a better one.
This is free to take.
I'll have a look a bit later if nobody has taken it before.
I have not come up with anything better.
That's not to say that I think this solution particularly good looking. That leads me to think that eventually someone will see that call and think it really shouldn't be there, and remove it. So please add a comment describing why it is needed.
So please add a comment describing why it is needed.
Will you make a new version of the patch?
I agree this is a temporary fix and not perfect. Unfortunately I don't have time now to dig into it and find a better solution.
But the bug does exist in SDL2 client. I suggest to just leave the ticket open, and hope someone may come up with a better solution later.
I would be happy to have this temporary fix in place for now if it had the requested comment added. Do you have time to do at least that?
Sure. I added a comment before this show to show its function. See the new attachment.