Determines the order of a panel, text, view, view entity, or sky entity, if
it overlaps with other objects. Normally, elements with higher layer value
will be placed over elements with lower layer value.
-999999...+999999 (default: 0)
The layer parameter can only be set in a definition.
For changing it during gameplay, use layer_sort.
- A7.06 Panels, texts, and
view entities with a positive layer value are placed above any view;
with a negative layer value they are placed below any view. This
can be used to define an image visible in the background of a
view that has no sky and a transparent sky_color.
View entities with same layer value are rendered together. View entities with different layer values are rendered separately so that the higher layer entity always covers the lower layer entity.
The view layer parameter can be evaluated in a material effect or shader through the fLayer variable.
PANEL* compass_pan =
bmap = "compass.pcx";
pos_x = 4;
pos_y = 4;
layer = 10;
flags = SHOW;
PANEL, TEXT, VIEW,