[label]: added SLF support when used inside an event
This commit is contained in:
parent
f69d0e07e7
commit
88c0eb33e7
2 changed files with 7 additions and 2 deletions
|
@ -27,6 +27,7 @@ Version 1.13.0+dev:
|
|||
* New or updated image path functions:
|
||||
* ~BW(): converts an image to black and white
|
||||
* ~NEG() now supports 0,1 or 3 arguments, allowing solarization effects
|
||||
* Added support for SLF in [label] when used inside an event
|
||||
* Miscellaneous and bug fixes:
|
||||
* Removed abandoned libana network API implementation.
|
||||
* Fixed bug#23201 Toggle icons display error in replay.
|
||||
|
|
|
@ -1430,8 +1430,12 @@ function wml_actions.kill(cfg)
|
|||
wesnoth.kill(cfg)
|
||||
end
|
||||
|
||||
function wml_actions.label(cfg)
|
||||
wesnoth.label(cfg)
|
||||
function wml_actions.label( cfg )
|
||||
local new_cfg = helper.parsed( cfg )
|
||||
for index, location in ipairs( wesnoth.get_locations( cfg ) ) do
|
||||
new_cfg.x, new_cfg.y = location[1], location[2]
|
||||
wesnoth.label( new_cfg )
|
||||
end
|
||||
end
|
||||
|
||||
function wml_actions.modify_side(cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue