Resurrection halos widget - Page 2

Resurrection halos widget

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

Moderator: Moderators

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Resurrection halos widget

Post 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
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Resurrection halos widget

Post 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.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Resurrection halos widget

Post 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!
Attachments
why cant some guys accept no for an answer.jpg
(588.78 KiB) Downloaded 3 times
halo2.png
halo2.png (76.88 KiB) Viewed 986 times
Last edited by PicassoCT on 07 Feb 2015, 20:09, edited 1 time in total.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Resurrection halos widget

Post by Silentwings »

This change should help you get better info http://imolarpg.dyndns.org/trac/balatest/changeset/3528
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Resurrection halos widget

Post by Floris »

- halos fade out at large camera distance
- fixed error
Post Reply

Return to “Lua Scripts”