Page 2 of 2

Re: Resurrection halos widget

Posted: 07 Feb 2015, 14:15
by FLOZi
Silentwings wrote:
That uses gadget callins, unavailable at widget level... And widget:UnitDestroyed is only called with your own units...
All callins used in that gadget are available too widgets. Check the widget handler or https://springrts.com/wiki/Lua:Callins if you are ever confused about such things. Of course, you would have to handle the difficulty that LuaUI only has access to information that is available to the player running your widget; as such you cannot determine in every case whether a wreck was last owned by a friendly or enemy player, but in most cases you have enough information to make a reasonable guess.
Hasn't always been the case that all callins are available everywhere, only since lua split and even then there might be some that are only in one or the other

Re: Resurrection halos widget

Posted: 07 Feb 2015, 15:56
by Silentwings
I checked all the ones needed here, just to make sure that Floris hadn't unknowingly found into a bug in BAs widget handler.

Re: Resurrection halos widget

Posted: 07 Feb 2015, 16:00
by PicassoCT
Oh noes.. i dropped it.. it just lies there - at a Units feet... how unfortunate

Image


edit : Thank you floris, did see the new EnemySpotter-Widget 3.0 with textures just now.
http://widgets.springrts.de/index.php#256
Sorry for requesting allready implemented stuff.
Image

Looks great!

Re: Resurrection halos widget

Posted: 07 Feb 2015, 18:53
by Silentwings
This change should help you get better info http://imolarpg.dyndns.org/trac/balatest/changeset/3528

Re: Resurrection halos widget

Posted: 18 Feb 2015, 04:24
by Floris
- halos fade out at large camera distance
- fixed error