Convert absurd buildtime values into seconds
Moderator: Moderators
Re: Convert absurd buildtime values into seconds
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)
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
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Convert absurd buildtime values into seconds
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.TradeMark wrote:no. it must work on every mod.Google_Frog wrote: * Write a very simple gadget to read unit selection, read tooltip and output a tooltip with your desired information.
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.Google_Frog wrote: * Use easily calculatable BT values in whichever game you think has the problem.
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
if the mod is already overriding the tooltip, default values won't matter...
Re: Convert absurd buildtime values into seconds
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.
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
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.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.
Re: Convert absurd buildtime values into seconds
so it won't be a problem if we fix this at the same time?zwzsg wrote:I know of no other way to know what command the mouse is hovering over.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Convert absurd buildtime values into seconds
Yay thanks, I like it. I will try it ingame...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.
Would be cool if the build time would also be displayed when hovering in the build menu.
Re: Convert absurd buildtime values into seconds
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 buildtimevery_bad_soldier wrote:Yay thanks, I like it. I will try it ingame...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.
Would be cool if the build time would also be displayed when hovering in the build menu.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Convert absurd buildtime values into seconds
I have to actually select a building from the menu and then hover it around on the map to see the build times.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 guess two images say more than 1000 words:


Re: Convert absurd buildtime values into seconds
Nice to have it in the tooltip but that box appearing next to your cursor is awful
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Convert absurd buildtime values into seconds
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
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
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.very_bad_soldier wrote:I have to actually select a building from the menu and then hover it around on the map to see the build times.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 guess two images say more than 1000 words:
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.