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