RPG/Worms style DPS display widget v1.1 - Page 2

RPG/Worms style DPS display widget v1.1

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

Moderator: Moderators

imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

zwzsg: that's called passing a callback. you pass a *function* as an argument, and the one that gets it applies it to arguments of it's choosing.

in Lua, a function is a value in the same way a integer or string is.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Is that actually a callback or more of a functional?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

A callback, functionals formally only have (a set of) functions as their domain if I RC.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Question, could you make a version of this that displays for everything taking damage? Friendly or enemy? Also, so that specs can see it?

Please? WOuld me much more useful to me.
Post Reply

Return to “Lua Scripts”