HudBarSetPos

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets position of HUD Bar UI Element on screen.

Syntax

[help]
(success:int) HudBarSetPos barName:string iElement:int fPosX:float fPosY:float 

Or:

(success:int) HBSetPos barName:string iElement:int fPosX:float fPosY:float

Example

HudBarSetPos "BarName" 10 600 600

Will set position of HUD Bar to X:600, Y:600

HudBarSetPos "BarName" 10 14 28

Will set position of Meter to X:14, Y:28

Elements

0 - Meter;
1 - Frame;
2 - Text;
3 - ImageEx;
10 - HUD Bar.

Notes

  • HUD Bar position is it's position on UI screen.
  • Elements positions are locused to HUD Bar position. i.e. HUD BAR position is X::100 and Y:100, if you set Meter position to X::5 and Y::9, Meter's real screen posisiton will be X::105 and Y:109.

See Also