show restricted build area when using schematic (#2109)
This commit is contained in:
@@ -97,7 +97,7 @@ public class OverlayRenderer{
|
|||||||
|
|
||||||
input.drawTop();
|
input.drawTop();
|
||||||
|
|
||||||
buildFade = Mathf.lerpDelta(buildFade, input.isPlacing() ? 1f : 0f, 0.06f);
|
buildFade = Mathf.lerpDelta(buildFade, input.isPlacing() || input.isUsingSchematic() ? 1f : 0f, 0.06f);
|
||||||
|
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
Lines.stroke(buildFade * 2f);
|
Lines.stroke(buildFade * 2f);
|
||||||
|
|||||||
@@ -202,6 +202,10 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isUsingSchematic(){
|
||||||
|
return !selectRequests.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
public OverlayFragment getFrag(){
|
public OverlayFragment getFrag(){
|
||||||
return frag;
|
return frag;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user