Jump to content

Recommended Posts

I have an issue with a health bar HUD I have made.  The texture changes based on the variable and the first time a texture is loaded the HUD flickers.  Once each texture has been called it no longer flickers, assuming it is now in memory.

_health = round ((1 - (damage player)) * 100);
((uiNamespace getVariable "Health_Status") displayCtrl 91997) ctrlSetStructuredText parseText format ["<img valign='middle' size='0.5' image='\Health_Status\data\health_%1.paa'/>", _health];

The texture files are 128x128 .paa converted from .png using ImageToPAA.

 

Is it possible to preload these textures?

 

I know you can preloadTitleRsc but the texture paths are loaded by the script and not the RscTitles class.

 

Any help please? 🙃

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×