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
public void draw(ScrolledCanvas canvas, boolean devMode) {
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.GRAY);
if (devMode){
drawConnector(canvas);
drawWires(canvas, devMode);
}
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.GRAY);
canvas.drawRect(
new Rect(_left, _top,
_right, _bottom),
paint);
}
}
private void drawConnector(ScrolledCanvas canvas) {
Paint connectorPaint = new Paint(Paint.ANTI_ALIAS_FLAG);