# This file defines the layer information - position, colour and when it
# should be displayed.
# They are drawn in order, starting from the top, so it is probably best to
# have the low down layers at the top of the list.
# 
# Each entry is of the form:
#
#LayerStart: Name
#YBottom: 100
#YTop: 100
#Colour: 0
#Rule: rule
#LayerEnd
#
# Name doesn't do anything at the moment, it is just for making our lives
# easier.
# YBottom and YTop control where that layer will be drawn and must be >=0.
# Colour controls what colour is used - it is the index of the palette from
# palette.txt.
# Rule controls the conditions under which the layer will be drawn.
# It is quite delicate as I'm not very clever :)
#
# Rules for Rules
# ===============
#
# The ! (NOT) && (AND) and || (OR) operators are supported.
# Up to two layers can be used in a rule.
# There must be a space between the operator and the layer.
# Brackets () aren't supported - precedent is left to right.
#
# If you need more complicated rules or can help improve the rule handling
# code (see layers.c check_rule()), please get in touch.
#
# Rule Examples
# =============
#
# Rule: A (only draw this layer if A is present)
# Rule: ! A (only draw this layer if A is not present)
# Rule: A && B (only draw this layer if both A and B are present)
# Rule: A || ! B (only draw this layer if A is present or B is not present)

LayerStart: NWELL
YBottom: 10
YTop: 200
Colour: 3
Rule: NTUBdrawing
LayerEnd

LayerStart: FOX
YBottom: 100
YTop: 200
Colour: 2
Rule: ! DIFFdrawing
LayerEnd

LayerStart: NPLUS
YBottom: 150
YTop: 200
Colour: 4
Rule: NPLUSdrawing && DIFFdrawing && ! POLYdrawing
LayerEnd

LayerStart: PPLUS
YBottom: 150
YTop: 200
Colour: 5
Rule: PPLUSdrawing && DIFFdrawing && ! POLYdrawing
LayerEnd

LayerStart: GOX
YBottom: 200
YTop: 210
Colour: 2
Rule: POLYdrawing && DIFFdrawing
LayerEnd

LayerStart: CONT_DIFF
YBottom: 200
YTop: 250
Colour: 7
Rule: CONTdrawing && DIFFdrawing
LayerEnd

LayerStart: CONT_POLY
YBottom: 220
YTop: 250
Colour: 7
Rule: CONTdrawing && POLYdrawing
LayerEnd

LayerStart: POLY
YBottom: 210
YTop: 220
Colour: 6
Rule: POLYdrawing
LayerEnd

LayerStart: M1
YBottom: 250
YTop: 300
Colour: 7
Rule: M1drawing
LayerEnd

LayerStart: V1
YBottom: 300
YTop: 350
Colour: 8
Rule: V1drawing
LayerEnd

LayerStart: M2
YBottom: 350
YTop: 400
Colour: 8
Rule: M2drawing
LayerEnd

LayerStart: V2
YBottom: 400
YTop: 450
Colour: 9
Rule: V2drawing
LayerEnd

LayerStart: M3
YBottom: 450
YTop: 500
Colour: 9
Rule: M3drawing
LayerEnd

LayerStart: V3
YBottom: 500
YTop: 550
Colour: 10
Rule: V3drawing
LayerEnd

LayerStart: M4
YBottom: 550
YTop: 600
Colour: 10
Rule: M4drawing
LayerEnd

