Content patch import dialog & server support

This commit is contained in:
Anuken
2025-10-22 06:42:01 -04:00
parent 9f7817f70e
commit 9cc3105518
16 changed files with 373 additions and 28 deletions

View File

@@ -33,7 +33,7 @@ public class Fonts{
private static ObjectMap<String, String> stringIcons = new ObjectMap<>();
private static ObjectMap<String, TextureRegion> largeIcons = new ObjectMap<>();
public static Font def, outline, icon, iconLarge, tech, logic;
public static Font def, outline, icon, iconLarge, tech, logic, monospace;
public static int getUnicode(String content){
return unicodeIcons.get(content, 0);
@@ -66,6 +66,13 @@ public class Fonts{
Core.assets.load("default", Font.class, new FreeTypeFontLoaderParameter(mainFont, param)).loaded = f -> Fonts.def = f;
Core.assets.load("monospace", Font.class, new FreeTypeFontLoaderParameter("fonts/monospace.woff", new FreeTypeFontParameter(){{
size = 16;
incremental = true;
//most people will never see the monospace font, so don't pre-bake anything
characters = "\u0000 ";
}})).loaded = f -> Fonts.monospace = f;
Core.assets.load("icon", Font.class, new FreeTypeFontLoaderParameter("fonts/icon.ttf", new FreeTypeFontParameter(){{
size = 30;
incremental = true;