Add transparency to highlighted player panel.

This commit is contained in:
rkfg 2016-03-21 21:48:57 +03:00
parent e4b0e3cc6c
commit 059b56e11a

View file

@ -105,7 +105,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
private static final Border GREEN_BORDER = new LineBorder(Color.green, 3);
private static final Border RED_BORDER = new LineBorder(Color.red, 2);
private static final Border EMPTY_BORDER = BorderFactory.createEmptyBorder(0, 0, 0, 0);
private final Color greenBackgroundColor = new Color(180, 255, 180);
private final Color greenBackgroundColor = new Color(180, 255, 180, 200);
private int avatarId = -1;
private String flagName;
@ -286,12 +286,10 @@ public class PlayerPanelExt extends javax.swing.JPanel {
private void resetBackgroundColor() {
panelBackground.resetBackgroundColor();
zonesPanel.setBackground(null);
}
private void setGreenBackgroundColor() {
panelBackground.setBackgroundColor(greenBackgroundColor);
zonesPanel.setBackground(greenBackgroundColor);
}
/**
@ -489,6 +487,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
zonesPanel.setPreferredSize(new Dimension(100, 20));
zonesPanel.setSize(100, 20);
zonesPanel.setLayout(null);
zonesPanel.setOpaque(false);
image = ImageHelper.getImageFromResources("/info/command_zone.png");
r = new Rectangle(21, 21);