wesnoth/data/core/macros/deprecated-utils.cfg
Eric S. Raymond e5245aefb8 Change the DOT*/CROSS*/FLAG* macros to {NEW,OLD}_{JOURNEY_BATTLE_REST}.
Convert coordinates in DOT and CROSS to the centered version.
This commit makes no behavioral change at all -- it is pure mechanism,
no policy -- but will make it easier to restyle the tracking markers.

Also deprecates the old macros, and teaches wmllint to do the up-conversion.
2008-10-09 20:48:59 +00:00

105 lines
2.6 KiB
INI

#textdomain wesnoth
# These are clutter, scheduled to be removed.
# ! in comments is used for generating HTML documentation, ignore it otherwise.
#wmllint: markcheck off
#define DEPRECATE MACRO_NAME VERSION_NAME
# Tag macros for removal, the VERSION_NAME argument is the
# release where the message is shown the first time.
# The removal will be 2 versions later.
[deprecated_message]
message="Macro '" + {MACRO_NAME} + "' is scheduled for removal in Wesnoth " + {VERSION_NAME} + "."
[/deprecated_message]
#enddef
#wmllint: markcheck on
#
# Deprecate these in favor of the {NEW,OLD}_{JOURNEY,BATTLE,REST} maxros.
# That way we can restyle the markers without breaking content.
# wmllint does the up-conversion automatically
#
#define DOT X Y
# Mark the specified map hex with a dot.
{DEPRECATE DOT 1.5.5}
[image]
x,y={X},{Y}
file=misc/dot.png
delay=500
[/image]
#enddef
#define CROSS X Y
# Mark the specified map hex with a cross.
{DEPRECATE CROSS 1.5.5}
[image]
x,y={X},{Y}
file=misc/cross.png
delay=500
[/image]
#enddef
#define DOT_CENTERED X Y
# A centered version of {DOT X Y} for easier application
{DEPRECATE DOT_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/dot.png
delay=500
centered=yes
[/image]
#enddef
#define CROSS_CENTERED X Y
# A centered version of {CROSS X Y} for easier application
{DEPRECATE CROSS_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/cross.png
delay=500
centered=yes
[/image]
#enddef
#define DOT_WHITE_CENTERED X Y
# A centered white dot representing the movement in the past scenarios
{DEPRECATE DOT_WHITE_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/dot-white.png
centered=yes
[/image]
#enddef
#define CROSS_WHITE_CENTERED X Y
# A centered white cross representing the past battles
{DEPRECATE CROSS_WHITE_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/cross-white.png
centered=yes
[/image]
#enddef
#define FLAG_WHITE_CENTERED X Y
# A centered white flag representing the past non-combat scenarios
{DEPRECATE FLAG_WHITE_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/flag-white.png
centered=yes
[/image]
#enddef
#define FLAG_RED_CENTERED X Y
# A centered red flag representing the non-combat scenarios
{DEPRECATE FLAG_RED_CENTERED 1.5.5}
[image]
x,y={X},{Y}
file=misc/flag-red.png
delay=500
centered=yes
[/image]
#enddef