Commit graph

35 commits

Author SHA1 Message Date
Anonymissimus
6f48761f93 Fix a variable referenced out of its scope (bug #19803) 2012-06-13 21:58:01 +00:00
Anonymissimus
6f7e76cbac introduce [item]redraw=yes|no (def yes) parameter
This allows WML/lua authors to optionally skip [item]'s implicit redraw
call. shadowmaster was experiencing some negative
visual effects due to this.
2012-04-09 19:48:51 +00:00
Elvish_Hunter
b52b619482 Added [show_if] support to [objectives] [note] 2012-03-13 09:31:18 +00:00
Anonymissimus
590708a27b introduce inline SSF support in [show_objectives] 2012-03-07 19:36:34 +00:00
Anonymissimus
c0bac05285 introduce inline SSF support in [objectives]
No deprecation needed since it defaulted to the 'default
objectives' already. They are used for a side in case that that side
doesn't have side specific objctives set. Use a SSF which matches
no sides or all sides to set the default objectives, if a subset
of all sides match, the side specific objectives for these are set.
2012-03-07 19:36:14 +00:00
Steven Panek
b2bb325104 Removed support for the deprecated [removeitem]. 2012-02-07 00:16:29 +00:00
Alexander van Gessel
6eb9efd2fd Revert "Add a warning for empty [remove_item]"
This reverts commit 2012-02-05T16:05:43Z!ai0867@gmail.com.
2012-02-05 23:08:03 +01:00
Alexander van Gessel
86ef26478c Add a warning for empty [remove_item] 2012-02-05 17:05:43 +01:00
Anonymissimus
406d76e09c set team.objectives_changed differently (fix for bug #18927)
In multiplayer, scenarios have default objectives sent from the host
to the other clients as [scenario]objectives= t_string, and this doesn't
know about silent= but must be shown anyway.
2011-11-06 23:22:56 +00:00
Steven Panek
b194bf3724 Made it so that red=, blue=, and green= actually work for lose objectives. 2011-10-31 07:14:27 +00:00
Steven Panek
e1d7f56b7c Renamed r=, g=, and b=...
...in [objective], [gold_carryover], and [note] to red=, green=, and
blue= for consistency.
2011-10-28 23:04:45 +00:00
Steven Panek
f400ee4ac5 Implemented r=, g=, and b=...
...for [objective], [gold_carryover], and [note].
2011-10-28 22:31:04 +00:00
Steven Panek
f2c605e793 Implemented bullet=...
...in [objectives], [objective], [gold_carryover], and [note].
2011-10-28 22:10:02 +00:00
Anonymissimus
d3d0400ed0 revert part of 2011-09-08T19:16:01Z!thonsew@yahoo.com (resonless change to [item] behavior) 2011-09-27 23:01:26 +00:00
Anonymissimus
febb9da2ca Reverted 2011-09-21T21:44:58Z!thonsew@yahoo.com and 2011-09-20T21:21:21Z!thonsew@yahoo.com.
thonsew: The lua interface is not your playground. This is not the way
I want the lua files or its C++ interface to be modified. You are
invited to talk with me on IRC.

some of the main reasons:

-Your revisions contain lots of unneccessary changes, some of which
 break existing lua or wml without a reason. Do you ever look at the
 diffs?

-Your revisions pack a lot of unrelated stuff together into one.

2011-09-21T21:44:58Z!thonsew@yahoo.com makes sense in some parts and is what you should have
done in the first place.
2011-09-22 17:09:50 +00:00
Thonsew
e59dc97260 Added support for t_token to lua code.
1. Created a t_token metatable along with support code for indexing,
garbage collection, tostring, tonumber, comparison and concatenation.

2. Adjusted string comparison and lookup in lua code to work with
either t_token or string.

This addresses in part bug #18631, bug #18695.  Before this lua was
treating all t_token as either tstrings or strings.
2011-09-20 21:21:21 +00:00
Thonsew
2bf6377351 Changed config and vconfig to use a token representation...
...t_token in place of std::string.  t_token compares, copies, copy
constructs and hashes in 1 operation instead of proportional to the
length of the string.
2011-09-08 19:16:01 +00:00
Anonymissimus
e8f6531a86 Completely removed the old x,y=$x1,$y1 default in [remove_item],
since when running into this rare exception (if the SLF doesn't
matching anything) it could be hard to figure out what happens.

[remove_item] does nothing in this case now.
2011-09-01 19:06:56 +00:00
Anonymissimus
75bf37ed86 improved [store_items] to store only items on locs matching given SLF 2011-08-21 17:39:11 +00:00
Anonymissimus
fdb74894be added new wml tag store_items 2011-08-17 18:38:07 +00:00
Anonymissimus
e7688ed406 add SLF support to [event][remove_item] 2011-08-14 00:24:58 +00:00
Anonymissimus
38091cb48a add SLF support to [event][item] 2011-08-14 00:24:42 +00:00
Anonymissimus
0832173ddb made scenario objectives work even if [objective]description= is empty 2011-06-13 15:58:48 +00:00
Guillaume Melquiond
bec8a218da Preserved item orders at load and save time. (Fix for bug #16771.) 2010-12-24 10:00:20 +00:00
Lari Nieminen
a97209abc3 Applied patch #2201: show_turn_counter for win conditions. 2010-11-13 21:43:43 +00:00
Guillaume Melquiond
33db0a937e Added a public interface for functions handling WML tile overlays. 2010-11-01 18:32:50 +00:00
Guillaume Melquiond
6e222f37cb Modified [removeitem] deprecation message so that it is no longer fatal. 2010-10-03 13:30:39 +00:00
Steven Panek
3a6eb75ee8 Renamed [removeitem] to [remove_item]; deprecated [removeitem]. 2010-10-01 23:42:21 +00:00
Lari Nieminen
50a42c8346 Changed the objectives dialog's turn counter text from...
..."(turn_number/turn_limit)" to "(turns_left turns left)" and "(this
turn left)" on the last turn.
2010-09-05 08:58:00 +00:00
Guillaume Melquiond
bb47837b3b Fixed tag naming. 2010-08-28 18:59:21 +00:00
Guillaume Melquiond
cb92c6d196 Moved handling of toplevel [item] tags to Lua. 2010-08-28 18:56:15 +00:00
Guillaume Melquiond
05902d29eb Moved item-related tags to their own file. 2010-08-28 18:56:12 +00:00
Guillaume Melquiond
27ebcd04cc Added default handlers for load/save events. 2010-08-28 18:56:09 +00:00
Guillaume Melquiond
920727691d Simplified code a bit. 2010-08-28 18:56:07 +00:00
Guillaume Melquiond
500177683e Moved objectives-related tags to their own file. 2010-08-28 18:56:04 +00:00