View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0025705 | AI War 2 | GUI | Oct 29, 2021 12:53 am | Nov 17, 2021 7:07 pm | |
Reporter | tom.prince | Assigned To | tom.prince | ||
Status | resolved | Resolution | fixed | ||
Product Version | Beta 3.741 Clogging Holes | ||||
Fixed in Version | Beta 3.753 Necromancer Externalizing | ||||
Summary | 0025705: Tooltip of ships in selection info window are incorrect. | ||||
Description | When you hover over a ship (*not* a fleet) in the selection window, it shows the last tooltip that was displayed, *not* the one you are hovering over. To reproduce: 1. select a ship 2. hover over a different ship in the planet view 3. hover over the ship listed in the selection info window. I can fix this on my machine by change the theshold in `GameEntity_Base.CurrentlyHoveredOver` from 0.1f to 0.3f. It appears that by the time `Window_InGameHoverEntityInfo.GetTextToRender` is called, the selection set by `Window_InGameSelectionInfo.btnSelectedShipEntry.HandleMouseover` has already expired. | ||||
Tags | No tags attached. | ||||
|
It looks like if I save `Engine_Universal.GlobalUniqueFrameNumber` in `SetCurrentlyHoveredOver`, and check if the current values is more than one greater than that in the getter for `CurrentlyHoveredOver` (for the non-`FromSidebarType.NonSidebar_*` case), then it behaves correctly. It looks like it needs the `+ 1` because the mouseover is handled in `OnUpdateFromMainThread` which is called after `OnUpdateVolatileDataFromMainThread` which is when `Window_InGameHoverEntityInfo.GetTextToRender` is called and checks `SetCurrentlyHoveredOver`. |
Date Modified | Username | Field | Change |
---|---|---|---|
Oct 29, 2021 12:53 am | tom.prince | New Issue | |
Oct 29, 2021 2:40 pm | tom.prince | Note Added: 0063035 | |
Nov 17, 2021 7:07 pm | tom.prince | Assigned To | => tom.prince |
Nov 17, 2021 7:07 pm | tom.prince | Status | new => resolved |
Nov 17, 2021 7:07 pm | tom.prince | Resolution | open => fixed |
Nov 17, 2021 7:07 pm | tom.prince | Fixed in Version | => Beta 3.753 Necromancer Externalizing |