MCPcopy Create free account
hub / github.com/Card-Forge/forge / getAllSkins

Method getAllSkins

forge-gui-mobile/src/forge/assets/FSkin.java:610–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608 }
609
610 public static Iterable<String> getAllSkins() {
611 if (allSkins != null) {
612 allSkins.clear();
613 allSkins.add("Default"); //init default
614 final Array<String> skinDirectoryNames = getSkinDirectoryNames();
615 for (final String skinDirectoryName : skinDirectoryNames) {
616 allSkins.add(WordUtil.capitalize(skinDirectoryName.replace('_', ' ')));
617 }
618 allSkins.sort();
619 }
620 return allSkins;
621 }
622
623 public static Map<FSkinProp, FSkinImageInterface> getImages() {
624 return Forge.getAssets().images();

Callers 3

checkForUpdatesMethod · 0.95
SettingsPageMethod · 0.95
refreshSkinsListMethod · 0.95

Calls 6

getSkinDirectoryNamesMethod · 0.95
capitalizeMethod · 0.95
addMethod · 0.65
clearMethod · 0.45
replaceMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected