Difference between revisions of "NewHudS"
Jump to navigation
Jump to search
Scale note and other corrections
imported>Haama (Flags) |
imported>Haama (Scale note and other corrections) |
||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
(HudID:long) NewHudS Filename:stringID ''RootID:short'' ''Show:short'' ''X:float'' ''Y:float'' '' | (HudID:long) NewHudS Filename:stringID ''RootID:short'' ''Show:short'' ''X:float'' ''Y:float'' ''Layer:long'' ''Scale:float'' ''Opacity:long'' ''Align:short'' ''AutoScale:bool'' ''Protected:bool'' ''EspID:long'' | ||
Create a new Hud Surface. | Create a new Hud Surface. | ||
Line 29: | Line 29: | ||
**The location is relative to the alignment. For instance, for a 1600x1200 resolution a center alignment would have coordinates from -800 to 800 (X) and -600 to 600 (Y) and a top-left alignment would have coordinates from 0 to 1600 (X) and 0 to 1200 (Y). | **The location is relative to the alignment. For instance, for a 1600x1200 resolution a center alignment would have coordinates from -800 to 800 (X) and -600 to 600 (Y) and a top-left alignment would have coordinates from 0 to 1600 (X) and 0 to 1200 (Y). | ||
* | *Layer is the "layer level" 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. | ||
*Scale is proportional to the original image. | |||
*Opacity is 0-100; 0 = transparent, 100 = opaque. 100 if assumed. | *Opacity is 0-100; 0 = transparent, 100 = opaque. 100 if assumed. | ||