MrCopyright 107 Posted December 27, 2014 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
dreadedentity 278 Posted December 27, 2014 You may be more interested in using a Progress Bar but I think you can use ctrlSetScale to achieve what you want also Share this post Link to post Share on other sites
MrCopyright 107 Posted December 27, 2014 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
Greenfist 1863 Posted December 27, 2014 ctrlSetPosition might be good too. Despite the name, it also sets width and height. Share this post Link to post Share on other sites
MrCopyright 107 Posted December 27, 2014 Thanks Greenfist, just what I wanted! <3 Share this post Link to post Share on other sites
zapat 56 Posted December 27, 2014 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
MrCopyright 107 Posted December 28, 2014 I noticed that you needed to use ctrlCommit from the wiki, but thanks anyway :) Share this post Link to post Share on other sites