Skip to main content

How to modify the mask maximum length of a SUICircularProgressBar by script using Java.md

In your Java class, do the following:

public class YourClass extends Component {

// to control the maximum length of the progress bar mask
public float maxlenght = 75f; // change the value by properties

// creates a new SUICircularProgressBar, @AutoWired selects component from object
@AutoWired
private SUICircularProgressBar progressBar;

@Override
public void start() {

}

@Override
public void repeat() {

// changes the maximum mask length of the SUICircularProgressBar
progressBar.setMaskMaxLenght(maxlenght);
}
}