flags
Set of 'switches' to be set in a panel definition, separated
by " | ".
Individual flags can also be set or reset at runtime. All flags are
reset by default. The panel elements - buttons, digits and so on - 'inherit'
the flags from the panel. The following flags are supported:
VISIBLE
Makes the object visible on the screen.
OVERLAY
The background color (normally black) of the panel image will
become transparent,
and all parts above 50% transparency will be clipped away
so that the panel appears as an overlay. The transparency tolerance can be adjusted through d3d_alpharef. !!
This flag should only be used when the panel bitmap has no own alpha channel. Otherwise, the transparent parts of the bitmap are defined by the alpha channel.
TRANSLUCENT
The panel
gets uniform transparency
according to its alpha parameter.
FILTER
The panel's fonts and images will be filtered by 'blurring' single pixels.
This won't look good for small fonts, but can improve the look of huge fonts
or scaled images.
LIGHT
The panel's image and elements are modulated by the
it's blue, green, red color parameters.
CENTER_X
The panel's digits elements are horizontally centered around their x position.
A7.06C
CENTER_Y
The panel's digits elements are vertically centered around their y position
when they use bitmap fonts.
A7.06C
Remarks:
In C-Script, a flag is set or reset at runtime by assigning the ON
or OFF value (like panel.VISIBLE = ON;). In C, C++, or Lite-C,
a flag is set by or-ing the flags parameter with the flag (panel.flags
|= VISIBLE;) and reset by and-ing the flags parameter with the inverse
flag (panel.flags &= ~VISIBLE;). The predefined macros set, reset,
and toggle can also be used for manipulating individual flags.
Example:
PANEL* aircraft_pan =
{
bmap = "compass.pcx";
flags = VISIBLE | OVERLAY;
}
...
reset(aircraft_pan,VISIBLE);
...
See also:
PANEL, bmap,
layer, pos_x
► latest
version online