Skip to content

Commit

Permalink
schematic size display
Browse files Browse the repository at this point in the history
  • Loading branch information
7003Mars committed Dec 11, 2023
1 parent a325dd2 commit cb1bd6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/mindustry/input/InputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import mindustry.net.Administration.*;
import mindustry.net.*;
import mindustry.type.*;
import mindustry.ui.*;
import mindustry.ui.fragments.*;
import mindustry.world.*;
import mindustry.world.blocks.*;
Expand Down Expand Up @@ -1324,6 +1325,12 @@ protected void drawSelection(int x1, int y1, int x2, int y2, int maxLength, Colo
Draw.color(col2, .3f);
Fill.crect(result.x, result.y, result.x2 - result.x, result.y2 - result.y);
}
Font font = Fonts.outline;
font.setColor(col2);
font.getData().setScale(1/(4*Scl.scl(1)));
font.draw((int)(result.x2-result.x)/8 + "," + (int)(result.y2-result.y)/8, result.x2, result.y);
font.setColor(Color.white);
font.getData().setScale(1);
}

protected void flushSelectPlans(Seq<BuildPlan> plans){
Expand Down

0 comments on commit cb1bd6b

Please sign in to comment.