![]() Fixed frequent crashes occurring in multiplayer matches (issue #6863).`wesnoth.remove_event_handler` renamed to `wesnoth.game_events.remove` for consistency with other event functions.`_context` now has an additional `data` attribute that contains the full event data, including the former owner in a village capture event (which was previously never exposed anywhere).`wesnoth.fire_event_by_id` is renamed to `wesnoth.game_events.fire_by_id`.`wesnoth.game_events.fire` (renamed from `wesnoth.fire_event`) now supports passing unusual event-specific data such as damage in an attack event or previous owner in a village capture event.The primary API is `wesnoth.game_event.add` - the others are shortcuts for common use-cases.All features of the `` tag are available. ![]() Both the action and the filter can now be a native Lua function, if needed.New functions have been added to register game events from Lua: `wesnoth.game_events.add`, `wesnoth.game_events.add_menu`, `wesnoth.game_events.add_repeating`, `wesnoth.game_events.add_wml`.New `_fade` function applies an overlay colour to the game display, fading over the given duration (PR #6864).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |