mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Make field separator thicker at higher resolutions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user