UI Build Time Addition

UI Build Time Addition

Requests for features in the spring code.

Moderator: Moderators

Post Reply
polarstar_111
Posts: 30
Joined: 15 Mar 2008, 05:19

UI Build Time Addition

Post by polarstar_111 »

Hello everyone.

In most Spring games, I have noticed that the build time of units is shown when you put your mouse over their build previews by their builder.

Would it be possible to make it so that the build time is divided by the build rate, which is the time it takes in seconds for the unit to be built? One could then display this time, whether in seconds or minutes, on the UI.

If this is implemented, one can also divide the mass and energy cost by the build time (in seconds) to give the rate at which the resources are consumed.

The above few additions would make resource management much easier for newbies like me who are used to TA (and SupCom's) resource model.

Thanks in advance for having a read of this humble request. :mrgreen:
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: UI Build Time Addition

Post by Pxtl »

Spring has a feature called "Lua UI" which allows scripters to create downloadable custom UI elements with complex logic, without altering the mod or engine. You should look in the Lua forum for such a "widget".

However, in Balanced Annihliation it would not be useful, since BA relies heavily on assistance-based building.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: UI Build Time Addition

Post by thesleepless »

there's a lua widget for this already, it shows the ETA of the build.

gui_build_eta.lua

there's also a lua resource bar that shows how much will be consumed by the build

gui_adv_resbar.lua

you can find them in CA at least, if you want them for BA and any other mod, extract CA and copy them from LuaUI/Widgets to your spring/LuaUI/Widgets
polarstar_111
Posts: 30
Joined: 15 Mar 2008, 05:19

Re: UI Build Time Addition

Post by polarstar_111 »

Thanks for the help.

I'll have a look.
Ashnal
Posts: 104
Joined: 24 Jun 2008, 00:57

Re: UI Build Time Addition

Post by Ashnal »

You should give CA a try when you grab widgets from it. Resource management in CA is much easier than BA by a longshot due to 1:1:1 resource ratios of metal, energy, and build time.
Post Reply

Return to “Feature Requests”