Philippe Plantier b8c8434adb [[Graphics fixes]]
* Fixed some graphical glitches

* Cleaned the terrain-graphics.cfg file. Terrain graphics rule
  precedence is now deprecated, use terrain layers.
2004-07-25 18:31:45 +00:00

116 lines
1.7 KiB
INI

# This utility macro disables standard transitions on a given terrain type. It
# is used for castles and keeps, as those have custom transitions.
#define IMG LAYER NAME
[image]
name={NAME}
layer={LAYER}
[/image]
#enddef
#define IMG_NIGHT LAYER NAME NAME_NIGHT
[image]
name={NAME}
layer={LAYER}
[variant]
tod=dusk
name={NAME_NIGHT}
[/variant]
[variant]
tod=first_watch
name={NAME_NIGHT}
[/variant]
[variant]
tod=second_watch
name={NAME_NIGHT}
[/variant]
[variant]
tod=dawn
name={NAME_NIGHT}
[/variant]
[/image]
#enddef
#define DISABLE_TRANSITIONS LETTER
[terrain_graphics]
map="
1
6 2
7
5 3
4
"
[tile]
pos=1
set_flag=transition-s
[/tile]
[tile]
pos=2
set_flag=transition-sw
[/tile]
[tile]
pos=3
set_flag=transition-nw
[/tile]
[tile]
pos=4
set_flag=transition-n
[/tile]
[tile]
pos=5
set_flag=transition-ne
[/tile]
[tile]
pos=6
set_flag=transition-se
[/tile]
[tile]
pos=7
type={LETTER}
[/tile]
[/terrain_graphics]
#enddef
# This utility macro sets a flag on a given terrain, if it is adjacent to an
# other terrain.
# Example:
# {FLAG_IF_ADJACENT K C keep-of-castle} makes flags all K tiles adjacent to C
# tiles with the keep-of-castle flag
#
# Use this to make other rule depend on adjacent terrain
#define FLAG_IF_ADJACENT LETTER ADJACENT FLAG CLASS
[terrain_graphics]
[tile]
x=0
y=0
type={LETTER}
set_flag={FLAG},{CLASS}
no_flag={CLASS}
[/tile]
[tile]
x=0
y=1
type={ADJACENT}
[/tile]
rotations=x,x,x,x,x,x
[/terrain_graphics]
#enddef
#define FLAG_REMAINING LETTER FLAG CLASS
[terrain_graphics]
[tile]
x=0
y=0
type={LETTER}
set_flag={FLAG},{CLASS}
no_flag={CLASS}
[/tile]
[/terrain_graphics]
#enddef