Changed too many things to fit in commit log
This commit is contained in:
@@ -70,7 +70,7 @@ public class MinimapRenderer implements Disposable{
|
||||
if(!rect.contains(unit.x, unit.y)) return;
|
||||
|
||||
float rx = (unit.x - rect.x) / rect.width * w, ry = (unit.y - rect.y)/ rect.width * h;
|
||||
Draw.color(unit.team.color);
|
||||
Draw.color(unit.getTeam().color);
|
||||
Draw.rect("white", x + rx, y + ry, w/(sz*2), h/(sz*2));
|
||||
});
|
||||
Draw.color();
|
||||
|
||||
@@ -180,8 +180,8 @@ public class OverlayRenderer {
|
||||
void drawStats(Unit unit){
|
||||
if(unit.isDead()) return;
|
||||
|
||||
float x = unit.getDrawPosition().x;
|
||||
float y = unit.getDrawPosition().y;
|
||||
float x = unit.x;
|
||||
float y = unit.y;
|
||||
|
||||
if(unit == players[0] && players.length == 1 && snapCamera) {
|
||||
x = (int)x;
|
||||
@@ -189,7 +189,7 @@ public class OverlayRenderer {
|
||||
}
|
||||
|
||||
drawEncloser(x, y - 8f, 2f);
|
||||
drawBar(Color.SCARLET, x, y - 8f, unit.healthfrac());
|
||||
drawBar(Color.SCARLET, x, y - 8f, unit.healthf());
|
||||
drawBar(Color.valueOf("32cf6d"), x, y - 9f, unit.inventory.totalAmmo() / (float) unit.inventory.ammoCapacity());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user