Alignments and anchors for positioning relative to the screen (or a panel)
and positioning relative to an anchor.
Namespace: NarayanaGames.Common.UIAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
TopLeft | -3 | Align to the top left of the screen. Position is interpreted as position.x normalized pixels right of left screen border, position.y normalized pixels below top screen border. | |
MiddleLeft | -2 | Align to the middle left of the screen. Position is interpreted as position.x normalized pixels right of left screen border, position.y normalized pixels below vertical middle of screen. | |
BottomLeft | -1 | Align to the bottom left of the screen. Position is interpreted as position.x normalized pixels right of left screen border, position.y normalized pixels above bottom screen border. | |
TopCenter | 0 | Align to the top center of the screen. Position is interpreted as position.x normalized pixels right of horizontal center of screen, position.y normalized pixels below top screen border. | |
MiddleCenter | 1 | Align to the middle center of the screen. Position is interpreted as position.x normalized pixels right of horizontal center of screen, position.y normalized pixels below vertical middle of screen. | |
BottomCenter | 2 | Align to the bottom center of the screen. Position is interpreted as position.x normalized pixels right of horizontal center of screen, position.y normalized pixels above bottom screen border. | |
TopRight | 6 | Align to the top right of the screen. Position is interpreted as position.x normalized pixels left of right screen border, position.y normalized pixels below top screen border. | |
MiddleRight | 7 | Align to the middle right of the screen. Position is interpreted as position.x normalized pixels left of right screen border, position.y normalized pixels below vertical middle of screen. | |
BottomRight | 8 | Align to the bottom right of the screen. Position is interpreted as position.x normalized pixels left of right screen border, position.y normalized pixels above bottom screen border. |
See Also