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