Page 1 of 1
improved Healthbars widget
Posted: 21 Jan 2015, 23:44
by Floris
Visually improved healthbars.
A requirement is that your hardware supports shaders and you also have the shader support option enabled in your spring settings.
Healthbars for features are decolored, smaller and only display when zoomed in closely.
(Note that it's roots is the BA healthbars widget, which also handles antinuke/emp stock display)
(Included in BAR, but will not come to BA)
Re: improved Healthbars widget
Posted: 22 Jan 2015, 19:20
by jamerlan
[f=0021179] Loading: LuaUI/Widgets/gui_healthbars.lua
[f=0021179] Error: gl.CreateList: error(2) = [string "LuaUI/Widgets/gui_healthbars.lua"]:171: attempt to index field '?' (a nil value)
[f=0021179] Error: gl.CreateList: error(2) = [string "LuaUI/Widgets/gui_healthbars.lua"]:429: attempt to index field '?' (a nil value)
[f=0021258] [teh]decay added point: Com is being reclaimed
Re: improved Healthbars widget
Posted: 23 Jan 2015, 21:06
by Floris
fixed
Re: improved Healthbars widget
Posted: 08 Feb 2015, 15:33
by Jazcash
Maybe all widgets included with BAR should be automatically prefixed with BAR_ or something to make it easy to tell which are bundled widgets and which are custom?
Split discussion of widget naming out into http://springrts.com/phpbb/viewtopic.php?f=23&t=33033
Re: improved Healthbars widget
Posted: 18 Feb 2015, 20:11
by Floris
added perf improvement
(basicly using Spring.GetVisibleUnits() a lot less often)
Re: improved Healthbars widget
Posted: 18 Feb 2015, 20:49
by jK
zk's uses a custom cache-based Spring.GetVisibleUnits, that's why original one doesn't include any itself (the widget itself is already big enough).
Re: improved Healthbars widget
Posted: 18 Feb 2015, 22:50
by Floris
ahhh makes sense, all hail zk and screw the rest....
ps (I don't know how ba got its copy, or if healthbars was only meant for zk)
Re: improved Healthbars widget
Posted: 19 Feb 2015, 01:31
by smoth
IT wasn't. Gundam used healthbars. A while back a dev removed the internal health bars and we all had to move to the healthbars widget.
Re: improved Healthbars widget
Posted: 28 Mar 2015, 23:55
by Floris
- added the 'dgun charge' bar
Re: improved Healthbars widget
Posted: 31 Mar 2015, 09:36
by FabriceFABS
Nice, as usual.
Gives a modern look to our old squarred healthbars.