[Commits] [wesnoth/wesnoth] ac717f: improve on_event.lua
GitHub
noreply at github.com
Mon Jul 11 12:01:05 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: ac717f70b8839120cc84ce6691308381f3f550a1
https://github.com/wesnoth/wesnoth/commit/ac717f70b8839120cc84ce6691308381f3f550a1
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2016-07-11 (Mon, 11 Jul 2016)
Changed paths:
M data/lua/on_event.lua
Log Message:
-----------
improve on_event.lua
Added some features:
1) on_event now supports a comma separated list of event names in its first parameter
2) on_event now supports a number as second parameter that specifies in which order the event handlers are called.
3) on_event now passes wesnoth.current.event_context to the handler function, since the handler function will most likeley need it.
More information about the Commits
mailing list