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)
improved Healthbars widget
Moderator: Moderators
improved Healthbars widget
- Attachments
-
- healthbars.zip
- 28 march 2015
- (42.04 KiB) Downloaded 18 times
-
- screen00030.jpg
- (223.77 KiB) Downloaded 4 times
Last edited by Floris on 28 Mar 2015, 23:54, edited 3 times in total.
Re: improved Healthbars widget
[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
[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
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
Split discussion of widget naming out into http://springrts.com/phpbb/viewtopic.php?f=23&t=33033
Re: improved Healthbars widget
added perf improvement
(basicly using Spring.GetVisibleUnits() a lot less often)
(basicly using Spring.GetVisibleUnits() a lot less often)
Re: improved Healthbars widget
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
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)
ps (I don't know how ba got its copy, or if healthbars was only meant for zk)
Re: improved Healthbars widget
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
- added the 'dgun charge' bar
- FabriceFABS
- Posts: 354
- Joined: 28 Jul 2010, 16:20
Re: improved Healthbars widget
Nice, as usual.
Gives a modern look to our old squarred healthbars.
Gives a modern look to our old squarred healthbars.