60 Commits

Author SHA1 Message Date
Andrey Bienkowski
5cb1790669 Cleanup wmllint: display on/off
https://github.com/wesnoth/wesnoth/pull/5481 removed the check that made
wmllint: display on and wmllint: display off necessary.
This PR removes now redundant wmllint comments.

find ./data/ -name '*.cfg' -exec sed -ri '/^ *# *wmllint *:? *display *(on|off) *$/d; s/ *# *wmllint *:? *display *(on|off) *$//' '{}' ';'
2021-02-02 18:36:28 +03:00
gfgtdf
b21c110f30 run wmlindent 2020-10-19 23:53:52 +02:00
Celtic Minstrel
639787e1c9 Merge pull request #2562 from wesnoth/schema 2018-11-11 13:52:19 -05:00
Celtic Minstrel
420afdf88e Deprecate {AI_CONTROLLER} and related macros (addresses #3668) 2018-11-02 23:54:53 -04:00
Celtic Minstrel
c2c540fa15 Fix error in AI control core macros 2018-10-23 22:39:49 -04:00
Gregory A Lundberg
8da524d984 AI Controller Fix bug: infinite recusion
Make a copy of just the header for use in sub-menus.
2016-10-23 03:04:42 -05:00
Gregory A Lundberg
bc67f01909 AI Controller Bug fix: deprecation message
[option]message= has been deprecated, use label=
2016-10-22 21:39:39 -05:00
ln-zookeeper
d2f528eec9 Prevent extraneous "="'s from appearing in some AI controller menus 2016-08-15 12:04:50 +03:00
fendrin
8544320b58 Replace FOREACH 2016-08-06 06:20:41 +02:00
Jyrki Vesterinen
1e2b6ba92d Revert the campaign changes of commit a74f1054
@zookeeper pointed out to me that spelling event names with spaces is the
standard in WML, especially when setting up event listeners. Thus, changing
spelling of the names of the events fired from WML made the codebase more
inconsistent, not less.
2016-08-05 12:11:11 +03:00
Jyrki Vesterinen
a74f1054ca Always use underscores in event names
Follow-up of 3cbf249b. This commit changes event names to be written with
underscores everywhere where events are fired (or every place I found in a
quick search, anyway).
2016-08-05 08:43:47 +03:00
Gregory A Lundberg
010f943a40 [option]message= deprecated, use label=
According to the Wiki, since 1.13.2 message= is an alias for label=.

Using message= provokes a warning about it being deprecated.

This replaces message= with label= in the entire mainline (where it had not already been changed).
2016-07-03 13:41:44 -05:00
Celtic Minstrel
28937124f3 Remove [goal]name=protect and add [goal]name=target_unit
- name=protect was a synonym for protect_location, which I consider confusing when name=target refers to a unit
- name=target_unit is of course a synonym for target, added for greater consistency of syntax
2016-03-22 07:22:22 -07:00
Charles Dang
f7ff591fe5 Use [clear_menu_item] instead of the [set_menu_item] workaround where applicable 2015-01-06 18:52:38 +11:00
ln-zookeeper
5a5368d6f0 Fixed some variables not being cleared 2014-02-18 19:39:22 +02:00
ln-zookeeper
a2e1c2c9e9 Fixed issues reported by mattsc. 2014-02-01 23:00:31 +02:00
mattsc
12c73569ca AI macros: update comments for display on wiki reference page
This is for the auto-generated page at
http://www.wesnoth.org/macro-reference.html
2013-12-26 20:00:45 -08:00
mattsc
51e1a3f56b Add AI_CONTROLLER_ALLOW_UNIT_CONTROL macro
... to allow control of non-leader units of allied AI sides.
2013-10-04 08:08:29 -07:00
mattsc
0ef41090c0 Move AI_CONTROLLER_ALLOW_LEADER_CONTROL macro
... from data/core/macros/ai.cfg to data/core/macros/ai_controller.cfg
2013-10-04 08:08:29 -07:00
mattsc
574714ad7c AI_CONTROLLER macro: use correct syntax for protecting side 2013-10-03 19:26:35 -07:00
flix
aafe86364b Convert a (unused) macro to use [goal] 2013-06-12 02:41:38 +03:00
Anonymissimus
0589aa3633 viewing_side -> side in mainline wml 2012-03-27 19:51:07 +00:00
Steven Panek
b397cbd473 Reworded it again. 2011-01-26 20:44:27 +00:00
Steven Panek
83f12d1d02 Reworded a string to avoid a grammatical error. 2011-01-26 20:41:19 +00:00
Eric S. Raymond
e7d337a676 Reindent mainline. 2010-09-23 13:04:56 +00:00
Eric S. Raymond
2c86fcf4f0 Fix small nits setected by wmllint, and wmllint itself. 2010-08-12 20:08:22 +00:00
Lari Nieminen
bc54ec0ab5 Fixed a few bugs in the AI controller. 2010-08-05 16:52:48 +00:00
Lari Nieminen
9a64421ba0 Converted {AI_CONTROLLER_NOTE} to use the new [note] tag...
...instead of the note= key.
2010-08-05 14:06:24 +00:00
Lari Nieminen
7c2b90259b A partial rewrite of the AI controller to make it more customizable. 2010-08-05 09:52:20 +00:00
Lari Nieminen
55c035027a Wired the AI controller in to all appropriate SotBE scenarios. 2010-05-20 08:53:15 +00:00
Iurii Chernyi
9649ed63f8 fix problem in ai_controller - focus on defeating enemy side...
...was not working as expected. [goal]name=protect expects a SLF, not
a SUF
2010-02-12 23:00:18 +00:00
Eric S. Raymond
75f2727548 More nacro argument type checking. No mismatches in mainline. 2010-02-11 22:45:04 +00:00
Eric S. Raymond
d72fb9cca7 More impprovements in macro type checking. No conflicts in mainline. 2010-02-11 20:26:35 +00:00
Eric S. Raymond
5b08325791 Whitespace tweaks indicated by a reindent pass. 2010-02-03 13:18:05 +00:00
Iurii Chernyi
acec714cdf a small bugfix for ai_controller -one case was not working correctly 2010-01-31 13:06:28 +00:00
Iurii Chernyi
44b5ffc614 Rework AI controller - use [modify_ai] tags. Beta. Works. 2010-01-31 13:03:46 +00:00
Iurii Chernyi
5f4a592c68 fix issue with invalid pango markup used in ai controller 2009-12-13 12:29:18 +00:00
Eric S. Raymond
a1605bd14f Hand-patch some Pango conversions that wmllint couldn't get right. 2009-11-23 14:28:29 +00:00
Eric S. Raymond
7c5e810e59 wmllint cleanup 2009-10-27 08:41:31 +00:00
Lari Nieminen
0fe6584034 Added necessary future strings for the upcoming special orders menu...
...and the leader-moving order.
2009-09-27 13:28:08 +00:00
Lari Nieminen
0d05ba1e8c Fixes a problem with the menus listing sides. 2009-09-21 10:42:21 +00:00
Ignacio R. Morelle
005acdedae Changed text back to normal color,
...use <span>s only to force linebreaks with a blackened dash
2009-08-21 17:27:05 +00:00
Ignacio R. Morelle
bfa8372bc8 Get rid of an invalid Pango markup error message.
Waiting for a better color choice from fendrin...
2009-08-21 17:19:44 +00:00
Eric S. Raymond
51c13fb819 Pre-1.6 reindent and whitespace cleanup. 2009-03-01 12:56:14 +00:00
Fabian Müller
48bebd086a Extended the ai_location stub with a label for the location. 2009-02-15 17:09:59 +00:00
Lari Nieminen
a540b05605 Fixed a filtering problem. 2009-02-08 15:50:41 +00:00
Lari Nieminen
3a3db9ee96 Ensure that the ai controller variables don't get carried over...
...to the next scenario.
2009-01-25 18:23:30 +00:00
Eric S. Raymond
db9b3aba17 wmllint pacification. 2009-01-18 04:00:51 +00:00
Lari Nieminen
d47ee300a5 Fixed the controller not getting fired for the right side...
...after selecting a location to protect.
2009-01-12 13:50:45 +00:00
Lari Nieminen
e4ca33de68 Fixed some bad ordering of stuff. 2009-01-01 19:36:53 +00:00