Page 5 of 5

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 07:10
by Niobium
So I ended up writing the widget to modify the tooltip text, just to see if it was possible, and apparently (haven't done too much testing) it is.

So here you go, a nicely written untested widget which adds the buildtime in seconds in brackets beside the raw buildtime (based on sum of selected buildspeeds)

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 08:33
by Google_Frog
TradeMark wrote:
Google_Frog wrote: * Write a very simple gadget to read unit selection, read tooltip and output a tooltip with your desired information.
no. it must work on every mod.
Google_Frog wrote: * Use easily calculatable BT values in whichever game you think has the problem.
i wont change every mod. waste of time, you could just make small patch like i said, but noo... need to whine here instead than do some work to improve the freaking default UI.
No system works in every mod. Take KP, the resource bar doesn't work there. SWIW is a good example with a tooltip that would be broken by this engine change.

So now we're at the core of the issue; You think this should be applied to every mod and basically everyone else thinks otherwise.

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 10:57
by aegis
if the mod is already overriding the tooltip, default values won't matter...

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 11:20
by zwzsg
It will when the mod fetch the values by regexping the default tooltip.

I agree it's a bad way, but I know of no other way to know what command the mouse is hovering over.

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 12:43
by TradeMark
zwzsg wrote:It will when the mod fetch the values by regexping the default tooltip.

I agree it's a bad way, but I know of no other way to know what command the mouse is hovering over.
wait, are you kidding me...? why would anyone parse the output strings from default UI? ... wtf is wrong with you guys... instead of fixing the real problem, you guys come to whine me "MAEK WIKKET" just to troll me because you think its funny, grow up.

Re: Convert absurd buildtime values into seconds

Posted: 28 May 2010, 13:23
by aegis
zwzsg wrote:I know of no other way to know what command the mouse is hovering over.
so it won't be a problem if we fix this at the same time?

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 02:30
by very_bad_soldier
Niobium wrote:So I ended up writing the widget to modify the tooltip text, just to see if it was possible, and apparently (haven't done too much testing) it is.
Yay thanks, I like it. I will try it ingame...
Would be cool if the build time would also be displayed when hovering in the build menu.

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 04:58
by Niobium
very_bad_soldier wrote:
Niobium wrote:So I ended up writing the widget to modify the tooltip text, just to see if it was possible, and apparently (haven't done too much testing) it is.
Yay thanks, I like it. I will try it ingame...
Would be cool if the build time would also be displayed when hovering in the build menu.
That is exactly what the thing I posted does? When hovering over the icon in the menu the tooltip has the buildtime in seconds added beside the raw buildtime

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 14:35
by very_bad_soldier
Niobium wrote: That is exactly what the thing I posted does? When hovering over the icon in the menu the tooltip has the buildtime in seconds added beside the raw buildtime
I have to actually select a building from the menu and then hover it around on the map to see the build times.

I guess two images say more than 1000 words:
Image
Image

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 15:11
by JohannesH
Nice to have it in the tooltip but that box appearing next to your cursor is awful

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 15:16
by very_bad_soldier
Yeah I should have deactivated that widget before taking those screenshots to avoid confusion. It is BuildCosts widget.

Re: Convert absurd buildtime values into seconds

Posted: 29 May 2010, 21:55
by KDR_11k
I think it's fine to show the time needed by the one unit whose build button is displayed (if multiple divergent ones are selected it just shows one of them, that's what the engine already does when you give different descriptions for the same icon) but anything more complex is widget territory.

Re: Convert absurd buildtime values into seconds

Posted: 30 May 2010, 07:15
by Niobium
very_bad_soldier wrote:
Niobium wrote: That is exactly what the thing I posted does? When hovering over the icon in the menu the tooltip has the buildtime in seconds added beside the raw buildtime
I have to actually select a building from the menu and then hover it around on the map to see the build times.

I guess two images say more than 1000 words:
The problem there is with Red UI. For some unknown reason the framework uses an internal tooltip variable which (when used) overrides what spring says the tooltip is, no matter what.

If you do '/tooltip 1' to show the default tooltip, you'll see that spring has the correct tooltip, with the added buildtime in seconds shown, and that Red UI is rendering it's own separate version of the tooltip text instead.