How to modify the SUICircularProgressBar mask texture by script using Java
In your Java class, do the following:
public class YourClass extends Component {
// creates a new texture
public Texture texture; // select from Properties
// creates a new SUICircularMask, @AutoWired selects the component from this object
@AutoWired
private SUICircularMask mask;
@Override
public void start() {
}
@Override
public void repeat() {
// sets the texture of the SUICircularMask of the SUICicularProgressBar
mask.setImage(texture);
}
}