layer
Determines the order of a panel, text, view, view entity, or sky entity, if
it overlaps with other objects. Elements with higher layer value
will be placed over elements with lower layer value.
Range:
-999999...+99999 (default: 0)
Type:
var
Remarks:
-
The layer parameter can only be set in a definition.
For changing it during gameplay, use layer_sort.
- A7 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 sky-less
view.
- A7.08 The view layer parameter can be evaluated in a material effect or shader through the fLayer 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 sky-less view.
Example:
PANEL* compass_pan =
{
bmap = "compass.pcx";
pos_x = 4;
pos_y = 4;
layer = 10;
flags = VISIBLE;
}
See also:
PANEL, TEXT, VIEW, ENTITY, SKY, layer_sort , fLayer
► latest
version online