Commit graph

1127 commits

Author SHA1 Message Date
Derek Hoagland
1c35816740 Fixes many bugs that anonymissimus found...
...with my initial code for the [chat] tag.
2010-08-27 00:19:59 +00:00
Derek Hoagland
c5611e5bbb Adds [chat] WML tag 2010-08-26 01:04:11 +00:00
Lari Nieminen
cb32ca30c5 Fixed a bug causing turn counter to duplicate...
...when the objectives are viewed several times, and added a separate
string for zero gold carryover.
2010-08-25 21:15:51 +00:00
Guillaume Melquiond
8e8a4f9637 Removed objectives from WML variables and put them inside toplevel tags. 2010-08-22 21:16:23 +00:00
Guillaume Melquiond
90b9c39a69 Added vconfig conversion to wesnoth.fire.
(Compatibility fix for bug #16475.)
2010-08-18 05:12:23 +00:00
Lari Nieminen
5efa2f2dc6 Allowed a turn counter to be displayed next to an objective...
...by allowing a show_turn_counter=yes|no key in [objective], and made
the TURNS_RUN_OUT macro use that.
2010-08-15 13:40:50 +00:00
Guillaume Melquiond
79812fc751 Implemented [move_unit]. (Patch #1836 by Anonymissimus.) 2010-08-14 21:03:10 +00:00
Guillaume Melquiond
522898d80a Implemented [modify_unit] tag. (Patch #1808 by Anonymissimus.)
No changes to its semantic, but some simplifications and a few fixes
to [object] and [trait]: inner tags are no longer special, and more
than 10 units can use the outer tags.
2010-08-13 13:14:18 +00:00
Lari Nieminen
e3ec2ed503 Added a reminder note to also change the hardcoded default...
...multiplayer objectives if the [objectives] text formatting gets changed.
2010-08-08 09:16:33 +00:00
Lari Nieminen
0a76931dd6 Improvements to the objectives dialog:
...made each objective and other note be prefixed with a bullet, added
support for an optional caption= key to [objective], added a few new
helper macros for adding footnotes to objectives and converted all
current alternative and bonus objective texts accordingly.
2010-08-07 16:31:29 +00:00
Guillaume Melquiond
e8c2fcfab6 Fixed handling of numerical values in [case] statements. (Fix for bug #16370.) 2010-08-06 13:23:34 +00:00
Lari Nieminen
00255298d5 Added support for a [note] key in [objectives]...
...to make it easier to supply several notes.
2010-08-05 12:37:25 +00:00
Guillaume Melquiond
d82d68e1f1 Moved [hide_unit] and [unhide_unit] implementations to Lua.
Added support for standard unit filters along the way. (Partial fix
for bug #16358.)
2010-08-04 19:37:24 +00:00
Guillaume Melquiond
897a78b8e8 Fixed index in append mode. 2010-08-03 17:05:49 +00:00
Guillaume Melquiond
904ab069ca Moved [store_locations] implementation to Lua. 2010-08-03 17:05:42 +00:00
Nils Kneuper
9accef8411 add a texdomain marker...
...(currently not required, basically just a safeguard)
2010-07-27 09:07:07 +00:00
Lari Nieminen
efaa1acfaa Added support for a [gold_carryover] tag inside [objectives]...
...so that note= doesn't need to be abused for the carryover notes.
2010-07-27 08:29:58 +00:00
Guillaume Melquiond
992b045afc Moved implementation of [sound] to Lua. 2010-07-26 21:21:20 +00:00
Guillaume Melquiond
e2c80eee3d Moved implementation of [store_unit] to Lua. 2010-07-25 15:34:13 +00:00
Guillaume Melquiond
e5562a1b52 Added a ~lua: prefix for flagging non-WML errors. 2010-07-25 15:34:04 +00:00
Guillaume Melquiond
1487d54166 Moved implementation of [store_turns] to Lua. 2010-07-22 20:06:16 +00:00
Guillaume Melquiond
53ebcaa5fb Moved implementation of [unit_overlay]...
...and [remove_unit_overlay] to Lua.

Added support for standard unit filter along the way.
2010-07-22 14:04:34 +00:00
Guillaume Melquiond
c253313def Moved [scroll_to] and [scroll_to_unit] implementations to Lua. 2010-07-19 13:58:18 +00:00
Guillaume Melquiond
1ea42fde77 Removed [filter*] tags when handling sequence of commands. 2010-07-19 13:19:31 +00:00
Guillaume Melquiond
4857a03e02 Moved [switch] implementation to Lua. 2010-07-19 13:19:25 +00:00
Guillaume Melquiond
9b82345628 Added error message on missing tag. 2010-07-19 12:42:19 +00:00
Guillaume Melquiond
642ae51262 Moved [if] and [while] implementations to Lua. 2010-07-19 12:42:15 +00:00
Guillaume Melquiond
093c9996ee Moved [command] implementation to Lua. 2010-07-19 12:42:10 +00:00
Guillaume Melquiond
2000467e12 Moved [music] implementation to Lua and added test. 2010-07-19 12:42:06 +00:00
Guillaume Melquiond
02d939a5d7 Simplified code a bit. 2010-07-19 12:41:53 +00:00
Guillaume Melquiond
5e1a6e5c47 Updated LoW to new Lua idioms. 2010-07-19 12:41:35 +00:00
Guillaume Melquiond
b0d9e98fa4 Added __shallow_literal and __shallow_parsed...
...partial converters for optimizing code.  Added corresponding
helpers.
2010-07-19 06:59:46 +00:00
Guillaume Melquiond
0f6d59a86a Made WML actions more robust to Lua tables. 2010-07-18 21:39:10 +00:00
Guillaume Melquiond
ad61eba863 Added two helper functions parsed and literal...
...for handling uniformly WML tables and vconfig objects.
2010-07-18 21:39:06 +00:00
Guillaume Melquiond
3ef35edebe Removed wesnoth.fire and register_wml_action functions from the engine.
Delegated handling of WML actions to Lua.

Made WML action handler proxies into an associative table.

Added backward-compatible functions for accessing them.
2010-07-18 21:38:57 +00:00
Guillaume Melquiond
1c04edcc83 Removed wesnoth.get_unit_type* functions from engine.
Implemented unit_type proxies in an associative table.

Added backward-compatible functions.
2010-07-18 17:38:35 +00:00
Guillaume Melquiond
72f9514746 Removed wesnoth.get_side* functions from the engine.
Made side proxies into a simple array.

Added backward-compatible functions for accessing them.
2010-07-18 16:12:35 +00:00
Guillaume Melquiond
cddfc4cdfe Added compatibility hack to avoid executing the file twice. 2010-07-18 15:21:56 +00:00
Alexander van Gessel
4c9389454d Fix a nil dereference in the [unit_worth] tag...
...(due to looking up 'null' as a unit type)
2010-05-24 03:24:49 +01:00
Guillaume Melquiond
d473b4e7b1 Moved [unit_worth] to Lua. 2010-04-05 06:00:28 +00:00
Guillaume Melquiond
a0c0fde236 Moved [store_map_dimensions] to Lua. 2010-04-05 06:00:25 +00:00
Guillaume Melquiond
2857312da0 Moved [disallow_recruit] and [set_recruit] to Lua. 2010-04-05 06:00:12 +00:00
Guillaume Melquiond
b72831642a Moved [fire_event] to Lua. 2010-04-05 06:00:07 +00:00
Iurii Chernyi
fd25b0f537 improved error message for [store_gold] lua tag...
...when non-integer side attribute is given. Related to bug #15659
2010-03-20 23:26:52 +00:00
Nils Kneuper
0723abe7e3 add some (hackish!) attempt to make the po update routines scan .lua files...
...for strings, too

this is done by a) scanning for all .lua files additionally to all
.cfg files in FINDCFG and b) by adding the equivalent of a "commented
out" #textdomain DOMAIN declaration

next step: testing if it really does work as expected this should also
fix bug #15629 since the objectives are now *only* declared via some
lua magic
2010-03-15 20:22:28 +00:00
Guillaume Melquiond
6f9986d190 Beautified error message when passing an invalid side attribute to [gold].
(Subsumes patch #1477.)
2010-02-27 09:55:49 +00:00
Guillaume Melquiond
e7bd6d3440 Added helper for tile distance. 2010-02-20 11:17:28 +00:00
Guillaume Melquiond
0ae86b9018 Improved helpers a bit. 2010-01-31 19:08:18 +00:00
Guillaume Melquiond
b8cad207f8 Improved error message for a [gold] amount= failure,
...as it seems to happen quite frequently (three reports yet). (Fix
for bug #15010.)
2009-12-30 07:42:13 +00:00
Guillaume Melquiond
a41e13ddfd Added a few more Lua helpers. 2009-12-24 13:59:18 +00:00