HudS Align
Revision as of 19:38, 24 November 2008 by imported>Haama (Created)
A command for Pluggy.
Syntax:
For HudS (Surface/Image)
(X:float) HudS_Align HudID:long Alignment:long Relative:bool Global:bool
For HudT (Text)
(X:float) HudT_Align HudID:long Alignment:long Relative:bool Global:bool
Returns or sets the Alignment of the Hud.
Alignment Codes Add for combinations; i.e., Top-left would be 5, Center would be 15. 1: Left 2: Right 4: Top 8: Bottom
- If Alignment is not specified, it returns the Alignment of the Hud.
- If Alignment is specified, it sets the Alignment of the Hud.
- If Relative is set to non-0, the Alignment will be relative to the Hud's current Alignment.
- If you want to modify a Hud from another mod or "0" scripts (result scripts, console, batch scripts), you will need to set the Global flag to 1. If Global is 0 or unset the function will fail. If the Hud is protected the function will fail.
Notes[edit | edit source]
- Due to limitations of the Wiki software, the title of this article, and links to it, cannot display it correctly - there is an underscore (_) in the function's name.