Implemented #2177
This commit is contained in:
@@ -178,7 +178,10 @@ public class Block extends UnlockableContent{
|
||||
//TODO move
|
||||
protected TextureRegion[] generatedIcons;
|
||||
protected TextureRegion[] variantRegions, editorVariantRegions;
|
||||
|
||||
public TextureRegion region, editorIcon;
|
||||
public @Load("@-team") TextureRegion teamRegion;
|
||||
public TextureRegion[] teamRegions;
|
||||
|
||||
//TODO move
|
||||
public static TextureRegion[][] cracks;
|
||||
@@ -622,6 +625,16 @@ public class Block extends UnlockableContent{
|
||||
}
|
||||
|
||||
ContentRegions.loadRegions(this);
|
||||
|
||||
//load specific team regions
|
||||
teamRegions = new TextureRegion[Team.all.length];
|
||||
for(Team team : Team.all){
|
||||
if(team.hasPalette){
|
||||
teamRegions[team.uid] = Core.atlas.find(name + "-team-" + team.name);
|
||||
}else{
|
||||
teamRegions[team.uid] = teamRegion;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user