fix minimap generation, update textrafont property

This commit is contained in:
Anthony Calosa
2023-04-08 08:08:32 +08:00
parent c6cc9c60fc
commit daa46e969d
3 changed files with 11 additions and 6 deletions

View File

@@ -37,8 +37,8 @@ import java.util.function.Function;
*/
public class Controls {
static class LabelFix extends TextraLabel {
public LabelFix(String text) {
super(text, getSkin(), getTextraFont());
public LabelFix(String text, Font font) {
super(text, getSkin(), font);
}
@Override
@@ -356,11 +356,15 @@ public class Controls {
return Color.BLACK;
}
public static TextraLabel newTextraLabel(String name) {
TextraLabel ret = new LabelFix(name);
public static TextraLabel newTextraLabel(String name, Font font) {
TextraLabel ret = new LabelFix(name, font);
return ret;
}
public static TextraLabel newTextraLabel(String name) {
return newTextraLabel(name, getTextraFont());
}
public static String colorIdToTypingString(ColorSet color) {
return colorIdToTypingString(color, false);
}