Removed kills table color inside session accordion #630

This commit is contained in:
Rsl1122 2018-07-12 11:24:17 +03:00
parent 0456b53682
commit a7fd378ca8
2 changed files with 8 additions and 4 deletions

View File

@ -136,7 +136,7 @@ public class SessionAccordion extends AbstractAccordion {
.append(worldHtmlID).append("gmseries")
.append(");");
String leftBottom = new KillsTable(session.getValue(SessionKeys.PLAYER_KILLS).orElse(new ArrayList<>())).parseHtml();
String leftBottom = new KillsTable(session.getValue(SessionKeys.PLAYER_KILLS).orElse(new ArrayList<>()), null).parseHtml();
String link = PlanAPI.getInstance().getPlayerInspectPageLink(playerName);
String rightBottom = "<a target=\"_blank\" href=\"" + link + "\"><button href=\"" + link +
@ -207,7 +207,7 @@ public class SessionAccordion extends AbstractAccordion {
.append(worldHtmlID).append("gmseries")
.append(");");
String leftBottom = new KillsTable(session.getValue(SessionKeys.PLAYER_KILLS).orElse(new ArrayList<>())).parseHtml();
String leftBottom = new KillsTable(session.getValue(SessionKeys.PLAYER_KILLS).orElse(new ArrayList<>()), null).parseHtml();
addElement(new AccordionElement(htmlID, title)
.setColor(Theme.getValue(ThemeVal.PARSED_SESSION_ACCORDION))

View File

@ -20,9 +20,13 @@ import java.util.List;
public class KillsTable extends TableContainer {
public KillsTable(List<PlayerKill> playerKills) {
this(playerKills, "red");
}
public KillsTable(List<PlayerKill> playerKills, String color) {
super(Icon.called("clock").of(Family.REGULAR) + " Time", "Killed", "With");
setColor("red");
setColor(color);
if (playerKills.isEmpty()) {
addRow("No Kills");
} else {