Move raid scouter layout to title

- Remove "Raid scouter" title
- Move raid layout to title instead

This change is because the raid scouter is quite big and now that it can
be persisted after raid starts, it is a bit annoying in fixed mode.
Also, the title is effectively useless as it is visible only in raid and
it is quite obvious what is it.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-10-10 15:56:35 +02:00
parent 6c739998c1
commit 14bd67c465

View File

@@ -51,7 +51,7 @@ public class RaidsOverlay extends Overlay
private boolean scoutOverlayShown = false; private boolean scoutOverlayShown = false;
@Inject @Inject
public RaidsOverlay(Client client, RaidsPlugin plugin, RaidsConfig config) private RaidsOverlay(Client client, RaidsPlugin plugin, RaidsConfig config)
{ {
setPosition(OverlayPosition.TOP_LEFT); setPosition(OverlayPosition.TOP_LEFT);
setPriority(OverlayPriority.LOW); setPriority(OverlayPriority.LOW);
@@ -80,10 +80,6 @@ public class RaidsOverlay extends Overlay
return panelComponent.render(graphics); return panelComponent.render(graphics);
} }
panelComponent.getChildren().add(TitleComponent.builder()
.text("Raid scouter")
.build());
Color color = Color.WHITE; Color color = Color.WHITE;
String layout = plugin.getRaid().getLayout().toCode().replaceAll("#", "").replaceAll("¤", ""); String layout = plugin.getRaid().getLayout().toCode().replaceAll("#", "").replaceAll("¤", "");
@@ -92,10 +88,9 @@ public class RaidsOverlay extends Overlay
color = Color.RED; color = Color.RED;
} }
panelComponent.getChildren().add(LineComponent.builder() panelComponent.getChildren().add(TitleComponent.builder()
.left("Layout") .text(layout)
.right(layout) .color(color)
.rightColor(color)
.build()); .build());
int bossMatches = 0; int bossMatches = 0;