A_OverlayPivotAlign

From ZDoom Wiki
Jump to navigation Jump to search

A_OverlayPivotAlign (int layer, int halign, int valign)

Usage

Sets the starting alignment to one of the corners of the sprite for the pivot. A_OverlayPivot's offset is applied afterwards.

Parameters

  • layer - The layer to modify.
  • halign - Sets the horizontal alignment corner, which can be one of the following (not combinable). Set to -1 to keep the current alignment.
    • PSPA_LEFT - Default.
    • PSPA_CENTER
    • PSPA_RIGHT
  • valign - Same as halign but takes the following:
    • PSPA_TOP - Default.
    • PSPA_CENTER
    • PSPA_BOTTOM

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.

See Also