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