Page 1 of 1

UI Build Time Addition

Posted: 02 Jan 2009, 05:13
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:

Re: UI Build Time Addition

Posted: 02 Jan 2009, 05:20
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.

Re: UI Build Time Addition

Posted: 02 Jan 2009, 05:34
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

Re: UI Build Time Addition

Posted: 02 Jan 2009, 05:48
by polarstar_111
Thanks for the help.

I'll have a look.

Re: UI Build Time Addition

Posted: 02 Jan 2009, 06:31
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.