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