Make field separator thicker at higher resolutions

This commit is contained in:
drdev
2014-05-11 20:35:03 +00:00
parent 36230e137e
commit a9f99af688

View File

@@ -29,9 +29,11 @@ import forge.game.player.Player;
import forge.game.zone.ZoneType;
import forge.toolbox.FEvent;
import forge.toolbox.FEvent.FEventHandler;
import forge.util.Utils;
public class MatchScreen extends FScreen {
public static FSkinColor BORDER_COLOR = FSkinColor.get(Colors.CLR_BORDERS);
private static final float SEPARATOR_THICKNESS = Utils.scaleY(1);
private final Map<Player, VPlayerPanel> playerPanels = new HashMap<Player, VPlayerPanel>();
private final FMenuBar menuBar;
@@ -136,9 +138,11 @@ public class MatchScreen extends FScreen {
y++; //ensure border goes all the way across under avatar
}
g.drawLine(1, BORDER_COLOR, 0, y, w, y);
y = midField;
g.drawLine(1, BORDER_COLOR, 0, y, w, y);
y += bottomPlayerPanel.getField().getHeight();
y = (midField - SEPARATOR_THICKNESS) / 2;
g.drawLine(SEPARATOR_THICKNESS, BORDER_COLOR, 0, y, w, y);
y = midField + bottomPlayerPanel.getField().getHeight();
g.drawLine(1, BORDER_COLOR, 0, y, w, y);
}