add Display Shop Item names option

- closes #3639
This commit is contained in:
Anthony Calosa
2023-09-22 13:31:40 +08:00
parent 1e116be3b0
commit d073bb94a5
15 changed files with 95 additions and 8 deletions

View File

@@ -380,6 +380,10 @@ public class Controls {
return newTextraLabel(name, getTextraFont());
}
public static TextraLabel newRewardLabel(String name) {
return newTextraLabel(name, getRewardHeaderFont());
}
public static String colorIdToTypingString(ColorSet color) {
return colorIdToTypingString(color, false);
}
@@ -425,6 +429,10 @@ public class Controls {
return Forge.getAssets().getTextraFont(getSkin().getFont("default"), Config.instance().getAtlas(Paths.ITEMS_ATLAS), Config.instance().getAtlas(Paths.PIXELMANA_ATLAS));
}
static public Font getRewardHeaderFont() {
return Forge.getAssets().getGenericHeaderFont(getSkin().getFont("default"));
}
static public Font getTextraFont(String name) {
return Forge.getAssets().getTextraFont(name, getSkin().getFont(name), Config.instance().getAtlas(Paths.ITEMS_ATLAS));
}