argument

Change size of a UI object

This example shows how you can change the length of a ui object (a slider object in this case) with the patching_rect message. You can use a scale object to get the range of width values you want, and control it with a single float, and then use the ‘$1’ argument in a message box to insert the width value into the patching_rect message.