Don't show party size in overlay when solo raiding

This commit is contained in:
Magic fTail
2018-09-12 06:43:07 +02:00
parent 1a14aa295e
commit d94e6566d5

View File

@@ -63,6 +63,7 @@ public class RaidsPointsOverlay extends Overlay
int totalPoints = client.getVar(Varbits.TOTAL_POINTS); int totalPoints = client.getVar(Varbits.TOTAL_POINTS);
int personalPoints = client.getVar(Varbits.PERSONAL_POINTS); int personalPoints = client.getVar(Varbits.PERSONAL_POINTS);
int partySize = client.getVar(Varbits.RAID_PARTY_SIZE);
panel.getChildren().clear(); panel.getChildren().clear();
panel.getChildren().add(LineComponent.builder() panel.getChildren().add(LineComponent.builder()
@@ -75,10 +76,13 @@ public class RaidsPointsOverlay extends Overlay
.right(POINTS_FORMAT.format(personalPoints)) .right(POINTS_FORMAT.format(personalPoints))
.build()); .build());
panel.getChildren().add(LineComponent.builder() if (partySize != 1)
.left("Party size:") {
.right(String.valueOf(client.getVar(Varbits.RAID_PARTY_SIZE))) panel.getChildren().add(LineComponent.builder()
.build()); .left("Party size:")
.right(String.valueOf(partySize))
.build());
}
return panel.render(graphics); return panel.render(graphics);
} }