Merge pull request #5905 from deathbeam/raid-scouter-simplify
Move raid scouter layout to title
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user