Cleanup
This commit is contained in:
@@ -49,6 +49,7 @@ public class PlanetDialog extends BaseDialog{
|
|||||||
private final Mat3D mat = new Mat3D();
|
private final Mat3D mat = new Mat3D();
|
||||||
private final Vec3 camRelative = new Vec3();
|
private final Vec3 camRelative = new Vec3();
|
||||||
private final ResourcesDialog resources = new ResourcesDialog();
|
private final ResourcesDialog resources = new ResourcesDialog();
|
||||||
|
private final FrameBuffer buffer = new FrameBuffer(2, 2, true);
|
||||||
|
|
||||||
private float zoom = 1f, smoothZoom = 1f, selectAlpha = 1f;
|
private float zoom = 1f, smoothZoom = 1f, selectAlpha = 1f;
|
||||||
private Bloom bloom = new Bloom(Core.graphics.getWidth()/4, Core.graphics.getHeight()/4, true, false){{
|
private Bloom bloom = new Bloom(Core.graphics.getWidth()/4, Core.graphics.getHeight()/4, true, false){{
|
||||||
@@ -179,8 +180,6 @@ public class PlanetDialog extends BaseDialog{
|
|||||||
cont.rect((x, y, w, h) -> render()).grow();
|
cont.rect((x, y, w, h) -> render()).grow();
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameBuffer buffer = new FrameBuffer(2, 2, true);
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(){
|
public void draw(){
|
||||||
boolean doBuffer = color.a < 0.99f;
|
boolean doBuffer = color.a < 0.99f;
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public class Separator extends Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(progress >= 1f){
|
if(progress >= 1f){
|
||||||
progress = 0f;
|
progress %= 1f;
|
||||||
int sum = 0;
|
int sum = 0;
|
||||||
for(ItemStack stack : results) sum += stack.amount;
|
for(ItemStack stack : results) sum += stack.amount;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user