@Override public int getAvatarCount() { if (FSkin.isLoaded()) { return FSkin.getAvatars().size(); } return 0; }
public void setAvatarIndex(int newAvatarIndex) { avatarIndex = newAvatarIndex; if (avatarIndex != -1) { avatarLabel.setIcon(new FTextureRegionImage(FSkin.getAvatars().get(newAvatarIndex))); } else { avatarLabel.setIcon(null); } }