View Issue Details

IDProjectCategoryLast Update
0025705AI War 2GUINov 17, 2021 7:07 pm
Reportertom.prince Assigned Totom.prince  
Status resolvedResolutionfixed 
Product VersionBeta 3.741 Clogging Holes 
Fixed in VersionBeta 3.753 Necromancer Externalizing 
Summary0025705: Tooltip of ships in selection info window are incorrect.
DescriptionWhen 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.
TagsNo tags attached.



Oct 29, 2021 2:40 pm

developer   ~0063035

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`.

Issue History

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