Editor variant regions for wall blocks

This commit is contained in:
Anuken
2021-06-10 15:52:33 -04:00
parent af2830602d
commit 8d9d6385f9
5 changed files with 20 additions and 18 deletions

View File

@@ -863,6 +863,13 @@ public class Block extends UnlockableContent{
mapColor.set(image.get(image.width/2, image.height/2));
}
if(variants > 0){
for(int i = 0; i < variants; i++){
String rname = name + (i + 1);
packer.add(PageType.editor, "editor-" + rname, Core.atlas.getPixmap(rname));
}
}
Pixmap last = null;
var gen = icons();