mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
fix minimap generation, update textrafont property
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -510,6 +510,7 @@ public class World implements Disposable, SaveFileContent {
|
||||
notTowns.clear();
|
||||
otherPoints.clear();
|
||||
clearTerrain((int) (data.width * data.playerStartPosX), (int) (data.height * data.playerStartPosY), 10);
|
||||
storedInfo.clear();
|
||||
continue here;
|
||||
}
|
||||
continue;
|
||||
|
||||
@@ -348,7 +348,7 @@ public class Assets implements Disposable {
|
||||
if (textrafonts == null)
|
||||
textrafonts = new ObjectMap<>();
|
||||
if (!textrafonts.containsKey("textrafont")) {
|
||||
Font font = new Font(bitmapFont, 0f, 2f, 0f, 0f);
|
||||
Font font = new Font(bitmapFont, 0f, 2f, 0f, 1f);
|
||||
font.addAtlas(item_atlas, 0f, 6f, 0f);
|
||||
//problematic atlas since some buttons are small, and this is too big for some buttons, need a way to enable
|
||||
//this via property
|
||||
@@ -375,7 +375,7 @@ public class Assets implements Disposable {
|
||||
if (textrafonts == null)
|
||||
textrafonts = new ObjectMap<>();
|
||||
if (!textrafonts.containsKey(name)) {
|
||||
Font font = new Font(bitmapFont);
|
||||
Font font = new Font(bitmapFont, 0f, 2f, 0f, 1f);
|
||||
font.addAtlas(items_atlas, 0f, 6f, 0f);
|
||||
font.integerPosition = false;
|
||||
textrafonts.put(name, font);
|
||||
|
||||
Reference in New Issue
Block a user