HudBarSetRotation

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Sets rotation of UI Element of Bar.

Syntax

[help]
(success:int) HudBarSetRotation barName:string iElement:int iRotationType:int fRotationValue:float 

Or:

(success:int) HBSetRotation barName:string iElement:int iRotationType:int fRotationValue:float

Example

HudBarSetRotation "Name" 0 0 1.5

Will set "RotateAngle" trait for Meter of bar "BarName" to 1.5

HudBarSetRotation "Name" 10 0 1.5

Will set "RotateAngle" trait for all UI elements of bar "BarName" to 1.5

Elements

0 - Meter;
1 - Frame;
2 - Text;
3 - ImageEx;
10 - All elements

Rotation type

0 - rotateangle;
1 - rotateaxisx;
2 - rotateaxisy;

Notes

  • fRotationValue can be from 0 to 3.14(360 degrees).

See Also