HudBarSetAutoPos

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Will try to auto-resolve position of Text UI element inside the bar so it doesn't clip with the images.

Syntax

[help]
HudBarSetAutoPos barName:string iRequest:int 

Or:

HBSetAutoPos barName:string iRequest:int

Example

HudBarSetAutoPos "BarName" 

Will auto-position Text of "BarName" to the right side of the images.

HudBarSetAutoPos "BarName" 1

Will auto-position Text of "BarName" below the images.

HudBarSetAutoPos "BarName" 2

Will auto-position Text of "BarName" above the images.

Notes

  • This command is optional. You can set position of each element yourself by using HudBarSetPos.
  • This command should be called after all elements have been added to the Bar and their size is set.
  • This command will not autoposition Images - you should position them yourself with HudBarSetPos.
  • For autopos to work correctly you should set Indent and Alt size for Frame OR don't set them both at all so Autopos only uses size which is set with HudBarSetSize or on bar creation.

See Also