Anonymissimus
c1d8858c90
modified iterator function helper.get_sides...
...
...to return wesnoth.sides[side_number], side_number
TBH, I dont't fully understand the syntax, especially the one before
this, and it seems silene did experiment with it too...but this works
now at least.
2011-05-17 13:26:58 +00:00
Anonymissimus
24a8edb7bd
replaced a wesnoth.get_side -> wesnoth.sides
2010-12-19 20:34:47 +00:00
Guillaume Melquiond
bd24521d56
Modified get_sides so that it returns the actual side number. Renamed it.
2010-11-07 08:22:53 +00:00
Iurii Chernyi
c30997182e
standard side filter
2010-11-06 23:43:53 +00:00
Guillaume Melquiond
2992b40fca
Added helper for iterating over adjacent tiles.
2010-10-31 17:24:38 +00:00
Guillaume Melquiond
406383792f
Added a deprecation helper.
2010-10-03 13:30:37 +00:00
Anonymissimus
0e3b939658
Added a helper.rand function using wesnoth.set_variable(...rand=...)
...
...since math.rand was disabled in 2010-07-19T20:52:17Z!guillaume.melquiond@gmail.com.
2010-09-30 01:01:11 +00:00
Guillaume Melquiond
9a3728c327
Fixed usage of unqualified tovconfig.
...
Removed intermediate conversion to userdata since it is now up to the
caller to enable substitution.
2010-09-05 18:02:02 +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
ad61eba863
Added two helper functions parsed and literal...
...
...for handling uniformly WML tables and vconfig objects.
2010-07-18 21:39:06 +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
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
a41e13ddfd
Added a few more Lua helpers.
2009-12-24 13:59:18 +00:00
Guillaume Melquiond
29d9afb566
Removed package emulation.
2009-09-27 11:44:28 +00:00
Guillaume Melquiond
748c9dc883
Made some helper functions part of the interface.
2009-09-27 11:44:16 +00:00
Guillaume Melquiond
8a20afcc2f
Added Lua helper file.
2009-03-22 19:00:01 +00:00