Opened 11 years ago

Closed 11 years ago

#1904 closed defect (duplicate)

Mouse cursor doesn't reset when the "VICTORIOUS!" dialog appears

Reported by: sbte Owned by:
Priority: Nice to Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

When an opponent resigns, and the cursor is over something that changes the mouse cursor, the cursor will stay the same. If one then clicks "Yes", the cursor will also stay the same in the menus.

Example: You have a villager selected, the mouse over an animal, and the opponent resigns. The cursor will still show meat. If you then click "Yes" the cursor will also be the meaty cursor in the menus.

If, however, you move the cursor for instance to the top of the screen, to move the camera position, the cursor will reset. But then, when you move over a different object (say a tree) the cursor will then be wood, and other than that the story is the same.

I tried to look into it, but I have no idea where things go wrong (there are a lot of places where it can go wrong I believe). I suspect that it doesn't go wrong in the JS code, but that in the C++ code the mouse cursor position and state do not get updated correctly. But maybe someone with better understanding of the GUI code can look into this.

Change History (2)

comment:1 by Kieran P, 11 years ago

Milestone: BacklogAlpha 14
Priority: Should HaveNice to Have

comment:2 by historic_bruno, 11 years ago

Milestone: Alpha 14
Resolution: duplicate
Status: newclosed

This is a duplicate of #539, which also contains some discussions of what's going wrong and possible fixes. Thanks for bringing it to our attention again though, I honestly haven't noticed this problem much so I forget about it. Feel free to pick up the thread of discussion on that ticket, or drop by IRC to ask for advice fixing it.

Note: See TracTickets for help on using tickets.