improved Healthbars widget

improved Healthbars widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderators: Moderators, Moderators

Post Reply
User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

improved Healthbars widget

Post 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.

Image

(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)
Attachments
healthbars.zip
28 march 2015
(42.04 KiB) Downloaded 15 times
screen00030.jpg
(223.77 KiB) Downloaded 4 times
Last edited by Floris on 28 Mar 2015, 23:54, edited 3 times in total.
0 x

User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: improved Healthbars widget

Post 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
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: improved Healthbars widget

Post by Floris »

fixed
0 x

User avatar
Jazcash
Posts: 5302
Joined: 08 Dec 2007, 17:39

Re: improved Healthbars widget

Post 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
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: improved Healthbars widget

Post by Floris »

added perf improvement
(basicly using Spring.GetVisibleUnits() a lot less often)
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: improved Healthbars widget

Post 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).
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: improved Healthbars widget

Post 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)
0 x

User avatar
smoth
Posts: 22300
Joined: 13 Jan 2005, 00:46

Re: improved Healthbars widget

Post 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.
0 x

User avatar
Floris
Balanced Annihilation Developer
Posts: 599
Joined: 04 Jan 2011, 20:00

Re: improved Healthbars widget

Post by Floris »

- added the 'dgun charge' bar
0 x

User avatar
FabriceFABS
Posts: 345
Joined: 28 Jul 2010, 16:20

Re: improved Healthbars widget

Post by FabriceFABS »

Nice, as usual.
Gives a modern look to our old squarred healthbars.
0 x

Post Reply

Return to “Lua Scripts”

cron