Deprecate SET_IMAGE, move PLACE_IMAGE.

This commit is contained in:
Eric S. Raymond 2008-03-16 19:11:26 +00:00
parent b1eac81170
commit f62d7491e0
3 changed files with 23 additions and 21 deletions

View file

@ -31,3 +31,16 @@
[/unit]
{DEPRECATE "UNIT" 1.4}
#enddef
#define SET_IMAGE X Y IMAGE
# Places an image at a given tile, shrinking it to fit the tile
#
# For example, let's put a tent on tile 14,5
#! {SET_IMAGE 14 5 "terrain/tent.png"}
[item]
x,y={X},{Y}
image={IMAGE}
[/item]
{DEPRECATE "SET_IMAGE" 1.4}
#enddef

View file

@ -112,6 +112,16 @@
[/item]
#enddef
#define REMOVE_IMAGE X Y
# Removes a previously set image from a tile.
#
# Example:
#! {REMOVE_IMAGE 14 5}
[removeitem]
x,y={X},{Y}
[/removeitem]
#enddef
#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR
# Override the team color of filtered units.
[object]

View file

@ -303,27 +303,6 @@
)}
#enddef
#define SET_IMAGE X Y IMAGE
# Places an image at a given tile, shrinking it to fit the tile
#
# For example, let's put a tent on tile 14,5
#! {SET_IMAGE 14 5 "terrain/tent.png"}
[item]
x,y={X},{Y}
image={IMAGE}
[/item]
#enddef
#define REMOVE_IMAGE X Y
# Removes a previously set image from a tile.
#
# Example:
#! {REMOVE_IMAGE 14 5}
[removeitem]
x,y={X},{Y}
[/removeitem]
#enddef
#define SET_IMAGE_AND_LABEL_PERSISTANT X Y IMAGE STRING
# Shorthand for setting both a persistant label and image at once.
{SET_LABEL_PERSISTANT {X} {Y} ({STRING}) }