mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
the refactoring continues
This commit is contained in:
parent
370191407d
commit
d4aff92fda
84 changed files with 337 additions and 268 deletions
|
|
@ -952,22 +952,22 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
}
|
||||
}
|
||||
|
||||
protected void drawOverRequest(BuildPlan request){
|
||||
protected void drawOverPlan(BuildPlan request){
|
||||
boolean valid = validPlace(request.x, request.y, request.block, request.rotation);
|
||||
|
||||
Draw.reset();
|
||||
Draw.mixcol(!valid ? Pal.breakInvalid : Color.white, (!valid ? 0.4f : 0.24f) + Mathf.absin(Time.globalTime, 6f, 0.28f));
|
||||
Draw.alpha(1f);
|
||||
request.block.drawRequestConfigTop(request, allSelectLines);
|
||||
request.block.drawPlanConfigTop(request, allSelectLines);
|
||||
Draw.reset();
|
||||
}
|
||||
|
||||
protected void drawRequest(BuildPlan request){
|
||||
protected void drawPlan(BuildPlan request){
|
||||
request.block.drawPlan(request, allRequests(), validPlace(request.x, request.y, request.block, request.rotation));
|
||||
}
|
||||
|
||||
/** Draws a placement icon for a specific block. */
|
||||
protected void drawRequest(int x, int y, Block block, int rotation){
|
||||
protected void drawPlan(int x, int y, Block block, int rotation){
|
||||
brequest.set(x, y, rotation, block);
|
||||
brequest.animScale = 1f;
|
||||
block.drawPlan(brequest, allRequests(), validPlace(x, y, block, rotation));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue