Convert absurd buildtime values into seconds - Page 5

Convert absurd buildtime values into seconds

Requests for features in the spring code.

Moderator: Moderators

User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Convert absurd buildtime values into seconds

Post 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)
Attachments
exp_tooltip_bt_adj.lua
*Untested*
(2.14 KiB) Downloaded 15 times
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Convert absurd buildtime values into seconds

Post 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.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Convert absurd buildtime values into seconds

Post by aegis »

if the mod is already overriding the tooltip, default values won't matter...
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Convert absurd buildtime values into seconds

Post 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.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Convert absurd buildtime values into seconds

Post 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.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Convert absurd buildtime values into seconds

Post 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?
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Convert absurd buildtime values into seconds

Post 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.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Convert absurd buildtime values into seconds

Post 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
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Convert absurd buildtime values into seconds

Post 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
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Convert absurd buildtime values into seconds

Post by JohannesH »

Nice to have it in the tooltip but that box appearing next to your cursor is awful
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Convert absurd buildtime values into seconds

Post by very_bad_soldier »

Yeah I should have deactivated that widget before taking those screenshots to avoid confusion. It is BuildCosts widget.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Convert absurd buildtime values into seconds

Post 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.
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Convert absurd buildtime values into seconds

Post 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.
Post Reply

Return to “Feature Requests”