Celtic Minstrel
82a98fd96e
Lua API: Revive mp_settings.active_mods and mp_settings.era_id
...
These were removed without deprecation in 0efd35acbcba45724be4737073dc7f77480ec781
This adds them back as deprecated.
Fixes #5941
2021-07-13 14:10:07 -04:00
Celtic Minstrel
8b05449bbc
Lua API: Deprecate helper.set_wml_action_metatable
...
wml.fire now supports the same syntax - both of the following work:
- wml.fire("message", {message = "Hello World"})
- wml.fire.message{message = "Hello World"}
2021-07-07 01:32:05 -04:00
Celtic Minstrel
1e42f80c13
Lua API: Use the named tuple idiom for WML tags
...
Instead of this:
for i,t in ipairs(cfg) do
if t[1] == 'foo' then
do_something(t[2])
end
end
You can now write this:
for i,t in ipairs(cfg) do
if t.tag == 'foo' then
do_something(t.value)
end
end
2021-07-07 01:32:05 -04:00
Celtic Minstrel
0ef4a86b7e
Fix wml.remove_children
2021-06-24 00:51:13 -04:00
Celtic Minstrel
5a1e38e99b
Add wesnoth.sync module for the synchronization-related commands ( #5862 )
2021-06-19 15:39:10 -04:00
Celtic Minstrel
1122ed00fb
Fix broken global_vars table
2021-05-17 20:35:27 -04:00
Celtic Minstrel
0970880910
whitespace fixes
2021-05-11 14:52:22 -04:00
Celtic Minstrel
1410b5cef9
Allow accessing variables through the new APIs in the mapgen kernel
...
This also reverses the deprecation of wml.tovconfig and friends in the mapgen kernel.
2021-05-11 14:52:20 -04:00
Celtic Minstrel
05b0b7a1df
Update uses of wesnoth.fire
2021-05-11 14:52:20 -04:00
Celtic Minstrel
2ea92baa13
Move some more functions to the wml module
...
- eval_conditional and fire
- the internal set|get_variable functions
2021-05-11 14:52:20 -04:00
Celtic Minstrel
1205e3fd25
Move the Lua global variable helpers from WC to a new "experimental" module
2021-05-11 14:52:19 -04:00
Pentarctagon
d203b061f9
Whitespace cleanup of lua files.
2021-04-25 15:11:09 -05:00
Celtic Minstrel
862668911a
Split core.lua up by module to make things easier to find
...
Core is now a directory instead of a file. The Lua kernel automatically loads all files in that directory when it starts up.
2021-02-20 21:32:29 -05:00