Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Unit info takes a while to show on mouseover

Open ghost opened this issue 12 years ago • 14 comments

When moving your cursor over a unit the information for that unit takes a second to display. This can be quite inconvenient when checking things like exact unit health in the heat of battle.

ghost avatar Sep 10 '14 16:09 ghost

It's a feature. See https://github.com/ZeroK-RTS/Zero-K/commits/3e1290096869ade5405c11c21dcd9c02f42d2d67/LuaUI/Widgets/gui_chili_selections_and_cursortip.lua

I've yet heard of anybody supporting this change though. Only plenty of complaints.

Skasi avatar Sep 10 '14 16:09 Skasi

Very few people seem to want a delay. This game requires instant information feedback and every split second you wait is painful. That's the reason I created the cursor tooltip in the first place. Decades ago, the game didn't even have it and you'd have to hover your mouse over something and literally read the info in the corner of the screen. Can you imagine?

wagonrepairer avatar Sep 10 '14 16:09 wagonrepairer

I agree, but wanted to hear the reason for the delay too. What is to accomplish with the delay?

xponen avatar Sep 10 '14 16:09 xponen

CR: Yeah I can imagine. I disabled tooltips some days ago. Can live fine without them.

Skasi avatar Sep 10 '14 16:09 Skasi

I don't know why people want a window that flashes open for a split second several times whenever you sweep your mouse across your screen. Fix tooltip delay to be based on what is underneath the mouse cursor instead of checking whether the cursor is perfectly still.

GoogleFrog avatar Sep 10 '14 16:09 GoogleFrog

Seems like we need a creative way to solve this. don't have idea yet

xponen avatar Sep 10 '14 16:09 xponen

How about decreasing the default delay to 0.01s or so for the time being? Until someone fixes the "mouse movement resets timer" bug.

Skasi avatar Sep 10 '14 16:09 Skasi

Oh, its a bug? lets fix it then!

xponen avatar Sep 10 '14 16:09 xponen

There's going to be a lot of pricey string check if tooltip delay is to be based on what it is pointing at. Checks from ShowTooltip() will have to be called every Update() frame to check for relevant string instead of some random ground coordinate tooltip. https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Widgets/gui_chili_selections_and_cursortip.lua#L2168

And it turn out to be more efficient with 0 (no) delay for 'independent tooltip' because it always redo those check until a tooltip is shown but once tooltip is show it just reposition the tooltip.

Additional discovery: this: https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Widgets/gui_chili_selections_and_cursortip.lua#L2172 should be replaced with variable: "showExtendedTip" (also indicate pressing spacebar).

xponen avatar Sep 10 '14 23:09 xponen

"I don't know why people want a window that flashes open for a split second several times whenever you sweep your mouse across your screen."

People don't want that. People want an instant tooltip to always show, in this fast-paced game where you often move the mouse really quickly to point at moving targets. I don't think there is a way to reconcile these two things:

  1. Show the tooltip instantly (0 seconds, not 0.1) when I point at something.
  2. Don't "flash" the tooltip if I'm running the mouse across the screen.

To have #-1 we have to give up the dream of #-2. Unless someone has a solution we haven't considered.

Edit: There was a solution, I believe years ago I did make the option that it only show the tooltip when holding spacebar. I can't even remember now.

wagonrepairer avatar Sep 11 '14 14:09 wagonrepairer

The tooltip will still instantly show over anything if spacebar is held. I think the solution would be to show the tooltip if nothing under it has changed in the required time. Currently it only shows if you hold your mouse still which is bad.

GoogleFrog avatar Nov 03 '14 09:11 GoogleFrog

Wasnt' it fixed? Mayby close then?

Orfelius avatar Feb 07 '15 19:02 Orfelius

No this was not fixed. Fix would be: "Fix tooltip delay to be based on what is underneath the mouse cursor instead of checking whether the cursor is perfectly still."

Skasi avatar Feb 08 '15 10:02 Skasi

https://github.com/ZeroK-RTS/Zero-K/commit/d79903a1c2475faf632fd32f7c614e1e31e16c0c

GoogleFrog avatar Feb 21 '15 01:02 GoogleFrog