Don't show party size in overlay when solo raiding
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user