Fixed phase weaver blink / Fixed item image offset (again)
This commit is contained in:
@@ -14,7 +14,7 @@ public class ItemImage extends Stack{
|
|||||||
public ItemImage(TextureRegion region, Supplier<CharSequence> text){
|
public ItemImage(TextureRegion region, Supplier<CharSequence> text){
|
||||||
Table t = new Table().left().bottom();
|
Table t = new Table().left().bottom();
|
||||||
|
|
||||||
t.label(text).color(Color.DARK_GRAY).padBottom(-26).get().setFontScale(Unit.dp.scl(0.5f));
|
t.label(text).color(Color.DARK_GRAY).padBottom(-20).get().setFontScale(Unit.dp.scl(0.5f));
|
||||||
t.row();
|
t.row();
|
||||||
t.label(text).get().setFontScale(Unit.dp.scl(0.5f));
|
t.label(text).get().setFontScale(Unit.dp.scl(0.5f));
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ public class ItemImage extends Stack{
|
|||||||
public ItemImage(ItemStack stack){
|
public ItemImage(ItemStack stack){
|
||||||
Table t = new Table().left().bottom();
|
Table t = new Table().left().bottom();
|
||||||
|
|
||||||
t.add(stack.amount + "").color(Color.DARK_GRAY).padBottom(-26).get().setFontScale(Unit.dp.scl(0.5f));
|
t.add(stack.amount + "").color(Color.DARK_GRAY).padBottom(-20).get().setFontScale(Unit.dp.scl(0.5f));
|
||||||
t.row();
|
t.row();
|
||||||
t.add(stack.amount + "").get().setFontScale(Unit.dp.scl(0.5f));
|
t.add(stack.amount + "").get().setFontScale(Unit.dp.scl(0.5f));
|
||||||
|
|
||||||
|
|||||||
@@ -40,13 +40,11 @@ public class PhaseWeaver extends PowerSmelter{
|
|||||||
|
|
||||||
Draw.rect(bottomRegion, tile.drawx(), tile.drawy());
|
Draw.rect(bottomRegion, tile.drawx(), tile.drawy());
|
||||||
|
|
||||||
if(entity.heat > 0.001f){
|
|
||||||
float progress = 0.5f;
|
float progress = 0.5f;
|
||||||
|
|
||||||
Shaders.build.region = weaveRegion;
|
Shaders.build.region = weaveRegion;
|
||||||
Shaders.build.progress = progress;
|
Shaders.build.progress = progress;
|
||||||
Shaders.build.color.set(Palette.accent);
|
Shaders.build.color.set(Palette.accent);
|
||||||
Shaders.build.color.a = entity.heat;
|
|
||||||
Shaders.build.time = -entity.time / 10f;
|
Shaders.build.time = -entity.time / 10f;
|
||||||
|
|
||||||
Graphics.shader(Shaders.build, false);
|
Graphics.shader(Shaders.build, false);
|
||||||
@@ -63,7 +61,6 @@ public class PhaseWeaver extends PowerSmelter{
|
|||||||
size * Vars.tilesize / 2f);
|
size * Vars.tilesize / 2f);
|
||||||
|
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
}
|
|
||||||
|
|
||||||
Draw.rect(region, tile.drawx(), tile.drawy());
|
Draw.rect(region, tile.drawx(), tile.drawy());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user