Pulverizer texture cleanup
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 281 B After Width: | Height: | Size: 216 B |
Binary file not shown.
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 306 B |
Binary file not shown.
|
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 114 B |
@@ -10,16 +10,19 @@ import mindustry.world.blocks.production.GenericCrafter.*;
|
|||||||
public class DrawLiquid extends DrawBlock{
|
public class DrawLiquid extends DrawBlock{
|
||||||
public TextureRegion liquid, top;
|
public TextureRegion liquid, top;
|
||||||
|
|
||||||
public void draw(GenericCrafterBuild entity){
|
@Override
|
||||||
Draw.rect(entity.block.region, entity.x, entity.y);
|
public void draw(GenericCrafterBuild build){
|
||||||
|
Draw.rect(build.block.region, build.x, build.y);
|
||||||
|
GenericCrafter type = (GenericCrafter)build.block;
|
||||||
|
|
||||||
if(entity.liquids.total() > 0.001f){
|
if(type.outputLiquid != null && build.liquids.get(type.outputLiquid.liquid) > 0){
|
||||||
Drawf.liquid(liquid, entity.x, entity.y,
|
Drawf.liquid(liquid, build.x, build.y,
|
||||||
entity.liquids.get(((GenericCrafter)entity.block).outputLiquid.liquid) / entity.block.liquidCapacity,
|
build.liquids.get(type.outputLiquid.liquid) / type.liquidCapacity,
|
||||||
((GenericCrafter)entity.block).outputLiquid.liquid.color);
|
type.outputLiquid.liquid.color
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(top.found()) Draw.rect(top, entity.x, entity.y);
|
if(top.found()) Draw.rect(top, build.x, build.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -28,6 +31,7 @@ public class DrawLiquid extends DrawBlock{
|
|||||||
liquid = Core.atlas.find(block.name + "-liquid");
|
liquid = Core.atlas.find(block.name + "-liquid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public TextureRegion[] icons(Block block){
|
public TextureRegion[] icons(Block block){
|
||||||
return top.found() ? new TextureRegion[]{block.region, top} : new TextureRegion[]{block.region};
|
return top.found() ? new TextureRegion[]{block.region, top} : new TextureRegion[]{block.region};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ public class DrawRotator extends DrawBlock{
|
|||||||
public TextureRegion rotator, top;
|
public TextureRegion rotator, top;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(GenericCrafterBuild entity){
|
public void draw(GenericCrafterBuild build){
|
||||||
Draw.rect(entity.block.region, entity.x, entity.y);
|
Draw.rect(build.block.region, build.x, build.y);
|
||||||
Draw.rect(rotator, entity.x, entity.y, entity.totalProgress * 2f);
|
Draw.rect(rotator, build.x, build.y, build.totalProgress * 2f);
|
||||||
if(top.found()) Draw.rect(top, entity.x, entity.y);
|
if(top.found()) Draw.rect(top, build.x, build.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user