Jump to content
Sign in to follow this  
MrCopyright

Redefining the width of a dialog in-game

Recommended Posts

Hello.

Is there a way I can redefine the width of an RscBackground dialog while the game is in progress? So for example, the width is 0.8 and then 5 seconds later it redefines itself to 0.7 and the dialog updates. This is for a health bar so the width value needs to be dynamic and able to be set from within an .sqf script. I don't want to manually define 100 different dialogs for 100%, 99%, 98% etc etc...

Thanks.

Share this post


Link to post
Share on other sites

Thanks for the reply, I was already aware of ctrlSetScale but I assumed it was for the whole scale and not a specific attribute (i.e the width) but I shall test it out. And with regards to the progress bar, I shall take a look.

Thanks again.

Share this post


Link to post
Share on other sites

And don't forget to ctrlCommit after ctrlSetPosition!!

I spent hours to debug why that command didn't work. And I still forget to add ctrlCommit sometimes.

Share this post


Link to post
Share on other sites

I noticed that you needed to use ctrlCommit from the wiki, but thanks anyway :)

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
Sign in to follow this  

×