Difference between revisions of "HudS L"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Haama m (Layer, not location) |
||
Line 11: | Line 11: | ||
*If Layer is not specified, it returns the Layer of the Hud. | *If Layer is not specified, it returns the Layer of the Hud. | ||
*If Layer is specified, it sets the Layer of the Hud. | *If Layer is specified, it sets the Layer of the Hud. | ||
***If ''Relative'' is set to non-0, the | ***If ''Relative'' is set to non-0, the Layer will be relative to the Hud's current Layer. | ||
*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. | *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. | ||
Revision as of 19:34, 24 November 2008
A command for Pluggy.
Syntax:
For HudS (Surface/Image)
(X:float) HudS_L HudID:long Layer:long Relative:bool Global:bool
For HudT (Text)
(X:float) HudT_L HudID:long Layer:long Relative:bool Global:bool
Returns or sets the "layer level" of the Hud. Levels are from 1 to 1000, 1000 being the "closest of the screen". It's mostly to be used when you want certain HudS to be on top on the others. 500 is assumed.
- If Layer is not specified, it returns the Layer of the Hud.
- If Layer is specified, it sets the Layer of the Hud.
- If Relative is set to non-0, the Layer will be relative to the Hud's current Layer.
- 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
- 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.