ImageSelect could use removeImage, count()
Nifty GUI is a Java Library to create OpenGL based user interfaces.
Brought to you by:
void256
ImageSelect does not have a removeImage method nor does it have a "size()" Method which would return the number of images.
This methods would be handy, when the control is populated from code and not xml.
Suggestion:
/*
* Remoev Image.
* @param image image
/
@Override
public void addImage(final NiftyImage image) {
remove.add(image);
updateVisuals();
}
/
Number of images
@Return Number of images
@Override
public int getImageCount() {
return images.size();
}
fixed in 1.3 branch (for 1.3.2 release) with the following commit message:
3559302: ImageSelect could use removeImage, count()
added to new methods to the ImageSelect control