Added [remove_event] (equivalent to [event] id= remove=yes)
This commit is contained in:
parent
94006f7b02
commit
8a3572a62b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue