mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-03 14:01:47 +01:00
Removed kills table color inside session accordion #630
This commit is contained in:
parent
0456b53682
commit
a7fd378ca8
@ -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))
|
||||
|
@ -20,8 +20,12 @@ 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");
|
||||
|
Loading…
Reference in New Issue
Block a user