Skip to content

Commit

Permalink
Added [remove_event] (equivalent to [event] id= remove=yes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 26, 2014
1 parent 94006f7 commit 8a3572a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/lua/wml-tags.lua
Expand Up @@ -1401,6 +1401,12 @@ function wml_actions.event(cfg)
end
end

function wml_actions.remove_event(cfg)
local id = cfg.id or helper.wml_error("[remove_event] missing required id= key")

wesnoth.remove_event_handler(id)
end

function wml_actions.inspect(cfg)
wesnoth.gamestate_inspector(cfg)
end
Expand Down

0 comments on commit 8a3572a

Please sign in to comment.