Severin Glöckner
ade6e5803a
fix macro comment
...
[ci_skip]
2023-06-24 21:32:37 +02:00
Tommy
2d37a13bb8
WML: Add macros for screen_fade, and modify FLASH to use it as well
...
New macros:
* SCREEN_FADE_OUT - to replace FADE_TO_BLACK in most cases
* SCREEN_FADE_IN - to replace FADE_IN in most cases
* SCREEN_FADE r g b duration
- convenience wrapper for [screen_fade] with 255 alpha
* SCREEN_UNFADE duration
- convenience wrapper for [screen_fade] with 0 alpha
* FLASH r g b actionWML
- like FLASH_WHITE etc but takes a colour
* FLASH_LIGHTNING actionWML
- flashes an appropriate colour and plays lightning.ogg
Modified macros:
* FLASH_WHITE/RED/GREEN/BLUE}
- these now use [screen_fade] not [color_adjust]
2022-08-07 23:11:21 +12:00
Pentarctagon
0e800d36a6
Fix schema validation.
2020-11-22 23:54:12 -06:00
Celtic Minstrel
059dabcb6a
Do a pass of macro documentation
...
- Adds a bunch of documentation
- Fixes some incorrect or inaccurate documentation
- Moves some documentation so that wmlscope actually picks it up
- Excludes some internal macros from being documented
2020-11-22 12:24:43 -05:00
josteph
801e1c6234
WML: {REMOVE_LABEL} now takes an optional EXTRA_WML argument.
2018-11-03 18:16:43 +00:00
gfgtdf
d98525d951
replace true/false with yes/no in mainline
2016-12-09 02:55:59 +01:00
Charles Dang
fd098e4b62
Simplify HIGHLIGHT_IMAGE using the new [repeat] tag
2015-10-04 04:30:38 +11:00
Charles Dang
95d7bcdce6
Deprecate MESSAGE
...
This was deprecated once before because of wmllint issues, then reverted. I don't know whether
said wmllint issues still exist, but this time it's being deprecated because we no longer
wish to support this kind of macro.
2015-03-29 08:08:36 +11:00
Ignacio R. Morelle
5b72fe99a5
Ensure complete darkness after FADE_TO_BLACK and FADE_TO_BLACK_HOLD
...
Add -256 and -512 color shifts to the FADE_TO_BLACK and
FADE_TO_BLACK_HOLD macros in order to account for ToD color shifts
greater than -31.
2013-08-20 18:07:48 -04:00
Steven Panek
3e17938245
Fixed an error in the SET_LABEL example.
2012-07-01 20:07:57 +00:00
J. Tyne
7a582e8d1d
Updating CLEAR_FOG and UNCLEAR_FOG for multiturn fog.
...
(Keeps them behaving as in 1.10, for compatibility.)
2012-04-10 23:22:03 +00:00
Anonymissimus
488ac13415
remove some garbage breaking the wml parser
2012-04-05 12:23:31 +00:00
Elvish_Hunter
fb9151430d
CLEAR_FOG and UNCLEAR_FOG retrofitted to use [lift_fog] and [reset_fog].
...
The Fog Clearer unit is now unused in mainline
2012-04-05 08:59:27 +00:00
Anonymissimus
791e90a2c9
Revert "Deprecate the macro MESSAGE."
...
This reverts 2012-01-29T22:52:34Z!anonymissimus@arcor.de.
Since I got beaten to it.
2012-01-29 23:41:31 +00:00
Anonymissimus
982aa77399
Deprecate the macro MESSAGE.
...
Translatable message strings passed to it cannot be spellchecked by
wmllint, and we don't wanna encourage this. Was already used nowhere in
mainline.
2012-01-29 22:52:34 +00:00
Anonymissimus
463ef77245
fix macro comment (bug #19128 )
2011-12-07 14:04:19 +00:00
Steven Panek
cc5198da7c
Deprecated REDRAW.
2010-11-28 11:22:44 +00:00
Steven Panek
180a84327a
Deprecated FLOATING_TEXT.
2010-11-24 07:07:49 +00:00
Anonymissimus
0d0d036ea0
3 more [wml_message] macros, overlooked to move...
2010-10-21 18:13:18 +00:00
Anonymissimus
537e899cd4
Moved the {DEBUG...} macro from interface-utils.cfg to debug-utils.cfg.
2010-10-21 16:09:20 +00:00
Steven Panek
3a6eb75ee8
Renamed [removeitem] to [remove_item]; deprecated [removeitem].
2010-10-01 23:42:21 +00:00
Steven Panek
2edd28418a
Deprecated SET_LABEL_PERSISTENT and SET_IMAGE_AND_LABEL_PERSISTENT.
2010-09-21 22:07:41 +00:00
Lari Nieminen
724e666ed6
Greatly simplify the CLEAR_FOG and UNCLEAR_FOG macros...
...
...now that [hide_unit] accepts a SUF.
2010-08-06 14:08:27 +00:00
Guillaume Melquiond
a1b37948b7
Fixed broken fog when multiple clearers are used.
...
Bug introduced by 2010-03-05T00:06:52Z!Majora700@gmail.com. (Patch #1796 by Anonymissimus.)
2010-08-02 05:39:25 +00:00
Eric S. Raymond
0ffe997718
[colour_adjust] -> [color_adjust]
...
colour= -> color
2010-06-19 06:50:26 +00:00
Steven Panek
e63a3cc167
Moved the [clear_variable] codeblocks in UNCLEAR_FOG to CLEAR_FOG.
2010-03-05 00:06:52 +00:00
Steven Panek
e751f11209
Made it so that UNCLEAR_FOG smites new_fog_clearer.
2010-03-04 23:52:42 +00:00
Eric S. Raymond
557370e9ae
Comment trips up wmllint in a way that demonstrates its not needed.
2010-03-03 15:21:34 +00:00
Eric S. Raymond
07ba362908
Address bug #15524 : spelling error: persistant -> persistent.
2010-03-03 14:16:15 +00:00
Eric S. Raymond
c62c55e1a2
More macro argument typechecking. No mismatches in mainline.
2010-02-12 00:25:20 +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
0aa99781cf
Reindent mainline.
2009-11-23 14:39:03 +00:00
Ignacio R. Morelle
d9c29930c6
Revert ([part] caption= in storyscreens)...
...
...and replace with the mainline CAPTION macro. Converted existing
mainline WML.
Reverts 2009-08-14T08:44:26Z!guillaume.melquiond@gmail.com, 2009-08-14T08:44:41Z!guillaume.melquiond@gmail.com, 2009-08-16T13:24:39Z!guillaume.melquiond@gmail.com
Also, replaced the former color (*green*!?) with the usual color used in
character messages.
2009-08-17 12:15:49 +00:00
Eric S. Raymond
770b17e98d
Encapsulate some Pango markup in WHISPER and ASIDE macros...
...
...so these conventions can be tweaked without changing translatable
strings.
2009-03-29 22:11:52 +00:00
Eric S. Raymond
1248d14605
Address bug #13007 .
...
Ordinarily I'd be worried about the risk of UMC breakage from renaming
macros, but one of these was broken for a long time until recently so
we're probably not increasing any lossage here.
2009-02-21 12:47:05 +00:00
Eric S. Raymond
a039554559
Address bug #13006 .
2009-02-16 18:12:51 +00:00
Ignacio R. Morelle
8ff15e743c
It may be better to mention that messages are output to the in-game chat...
...
...too (INFO, WARNING, ERROR and DEBUG documentation).
2009-01-12 18:36:10 +00:00
Ignacio R. Morelle
dd5263ee23
Mention usage of :log in the DEBUG, LOG and WARNING macros'
...
documentation, and remove useless indications in ERROR's documentation
(the 'error' log level cannot be cancelled).
2009-01-12 18:35:25 +00:00
Ignacio R. Morelle
7ebc1d69bd
Add the DEBUG macro to accompany LOG, ERROR and WARNING.
2009-01-12 18:32:35 +00:00
Ignacio R. Morelle
db120a6d4e
Updated the LOG, WARNING and ERROR macros' documentation...
...
...since the 'notifs' logdomain has been replaced with 'wml'.
2009-01-12 18:21:55 +00:00
Ignacio R. Morelle
171b224422
Upgraded WML after deprecation of [debug_message].
2009-01-12 18:10:02 +00:00
Lari Nieminen
6acba79288
Removed the hideously bloaty HIGHLIGHT_UNIT macro.
...
Might be added back in later if implemented in a more sane manner.
2009-01-11 15:03:42 +00:00
Steven Panek
8cd8bef5a0
Added macro REDRAW.
...
It is obviously used to replace [redraw] codeblocks. Yay for laziness.
2008-12-06 19:53:58 +00:00
Eric S. Raymond
011576c478
Use the new cave-in.ogg where appropriate.
...
Now that we have both rumble.ogg and cave-in.ogg as sound effects,
deprecate TREMOR and instead use a new QUAKE macro that is explicit
about the sound effect requested.
2008-11-30 13:41:29 +00:00
Ignacio R. Morelle
bfd012c729
Moved FAKE_UNIT_MOVE macro from scenario-utils.cfg to interface-utils.cfg
...
Removed excessive verbosity (and wiki non-awareness) from comments.
Renamed a few parameters
2008-11-12 09:50:42 +00:00
Eric S. Raymond
76abc35ca6
wmllint now does translation-mark and doublespace checks outside scenrio tags.
...
This diff fixes some glitches found that way and tells wmllint to ignore
various edge cases. A few cannot_use_message=NONE instances are removed,
as this simplifies the check and zookeeper says it's safe.
2008-10-09 17:46:10 +00:00
Eric S. Raymond
b31c324728
Fulfil the rest of bug #12180 . Reindent appropriately.
2008-08-28 23:07:44 +00:00
Eric S. Raymond
08f09eda6f
Give wmlindent a capability to declare indenters.
...
Pre-declare {FOREACH and {NEXT.
Write declarations in the one place they're presently needed, Sceptre of Fire.
Reindent the data tree accordingly.
This partly addresses the feature request in bug #12180 .
2008-08-28 20:19:50 +00:00
Ignacio R. Morelle
3a9c227a6f
Added LOG, ERROR and WARNING, [debug_message]-based macros
2008-08-10 20:58:08 +00:00
Lari Nieminen
836ad7d695
Cleaned up a few macro references.
2008-05-17 10:32:23 +00:00