Don't show logic elements outside dev mode.

This commit is contained in:
kenkeiras 2018-01-25 00:00:12 +01:00
parent 168ed17fb2
commit bddc4f64a8

View File

@ -111,20 +111,19 @@ public class Ticker implements Part {
@Override @Override
public void draw(ScrolledCanvas canvas, boolean devMode) { public void draw(ScrolledCanvas canvas, boolean devMode) {
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.GRAY);
if (devMode){ if (devMode){
drawConnector(canvas); drawConnector(canvas);
drawWires(canvas, devMode); drawWires(canvas, devMode);
}
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.GRAY);
canvas.drawRect( canvas.drawRect(
new Rect(_left, _top, new Rect(_left, _top,
_right, _bottom), _right, _bottom),
paint); paint);
} }
}
private void drawConnector(ScrolledCanvas canvas) { private void drawConnector(ScrolledCanvas canvas) {
Paint connectorPaint = new Paint(Paint.ANTI_ALIAS_FLAG); Paint connectorPaint = new Paint(Paint.ANTI_ALIAS_FLAG);