Skip to main content

How to enable or disable SUICircularProgressBar masking by script using Java

In your Java class, do the following:

public class YourClass extends Component {

// boolean to control the activation of the SUICircularMask of the SUICircularProgressBar
public boolean value; // select the value (true or false) from the properties

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

@Override
public void start() {

}

@Override
public void repeat() {

// sets the activation of the SUICircularMask of the SUICircularProgressBar according to the value of the boolean (true or false) "value"
progressBar.setMaskEnabled(value);
}
}