Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2023-05-30 20:08:53 -04:00
4 changed files with 30 additions and 4 deletions

View File

@@ -156,10 +156,29 @@ public class Fonts{
});
for(Team team : Team.baseTeams){
if(Core.atlas.has("team-" + team.name)){
team.emoji = stringIcons.get(team.name, "");
team.emoji = stringIcons.get(team.name, "");
}
}
public static void loadContentIconsHeadless(){
try(Scanner scan = new Scanner(Core.files.internal("icons/icons.properties").read(512))){
while(scan.hasNextLine()){
String line = scan.nextLine();
String[] split = line.split("=");
String[] nametex = split[1].split("\\|");
String character = split[0];
int ch = Integer.parseInt(character);
unicodeIcons.put(nametex[0], ch);
stringIcons.put(nametex[0], ((char)ch) + "");
}
}
stringIcons.put("alphachan", stringIcons.get("alphaaaa"));
for(Team team : Team.baseTeams){
team.emoji = stringIcons.get(team.name, "");
}
}
/** Called from a static context for use in the loading screen.*/