HudBarSetTexture

From GECK
Jump to: navigation, search
This article is incomplete. You can help by filling in any blank descriptions.
Further information might be found in a section of the discussion page. Please remove this message when no longer necessary.



A function added by the SUP NVSE Plugin.

Description

Sets textures for specified bar.

Syntax

[help]
(success:int) HudBarSetTexture barName:string iElement:int TexturePath:string iCalculateSize:int 

Or:

(success:int) HBSetTexture barName:string iElement:int TexturePath:string iCalculateSize:int

Example

HudBarSetTexture "BarName" 0 "Mymod\MyTexture.dds"

Will set "Mymod\MyTexture.dds" texture to Meter.

HudBarSetTexture "BarName" 1 "Mymod\MyTexture.dds"

Will set "Mymod\MyTexture.dds" texture to Frame.

HudBarSetTexture "BarName" 1 "Mymod\MyTexture.dds" 1

Will set "Mymod\MyTexture.dds" texture to Frame and automatically calculate and set texture size to Frame.

Elements

0 - Meter;
1 - Frame;
3 - ImageEx;

Notes

  • Calling this function with iCalculateSize parameter will remove the necessity of setting element size with HudBarSetSize.
  • Sometimes automatic texture calculation causes game to lag as game acceses files on disk(especially if you're initializing many bars at once. In this case you can use this parameter on game start(in menumode) or set size yourself with HudBarSetSize.

See Also