void A_OverlayPivotAlign (int layer, int halign, int valign)
A_OverlayPivotAlign
Availability
ZandroX only. Does not exist in Zandronum 3.2. Behaviour follows UZDoom's
A_OverlayPivotAlign.Works in netgames. A player's client runs its own layers and takes each layer's jumps from the server — see Psprite layers.
Usage
Picks the corner or edge of a layer's frame that its pivot is measured from. A layer starts at the top left.
Parameters
-
int layerThe layer.
0means the layer whose state is currently executing — see OverlayID. Does nothing if the layer does not exist. -
int halignPSPA_LEFT,PSPA_CENTERorPSPA_RIGHT. Any other value leaves it as it was. -
int valignPSPA_TOP,PSPA_CENTERorPSPA_BOTTOM. Any other value leaves it as it was.
Examples
A layer that shrinks toward the bottom of the screen, its bottom middle staying put:
GUNS A 0 A_OverlayPivotAlign(OverlayID(), PSPA_CENTER, PSPA_BOTTOM)
GUNS A 0 A_OverlayPivot(OverlayID(), 0, 0)
GUNS A 1 A_OverlayScale(OverlayID(), -0.05, 0, WOF_ADD)