Don't show logic elements outside dev mode.
This commit is contained in:
parent
168ed17fb2
commit
bddc4f64a8
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user