Merge pull request #860 from Kyleeld/nmz-fix-4-sammich
NMZ total points added as config option
This commit is contained in:
@@ -36,13 +36,24 @@ public interface NightmareZoneConfig extends Config
|
||||
keyName = "moveoverlay",
|
||||
name = "Override NMZ overlay",
|
||||
description = "Overrides the overlay so it doesn't conflict with other RuneLite plugins",
|
||||
position = 1
|
||||
position = 0
|
||||
)
|
||||
default boolean moveOverlay()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showtotalpoints",
|
||||
name = "total points NMZ overlay",
|
||||
description = "shows total points to overlay",
|
||||
position = 1
|
||||
)
|
||||
default boolean showtotalpoints()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "powersurgenotification",
|
||||
name = "Power surge notification",
|
||||
|
||||
@@ -107,7 +107,12 @@ class NightmareZoneOverlay extends Overlay
|
||||
TableComponent tableComponent = new TableComponent();
|
||||
tableComponent.setColumnAlignments(TableAlignment.LEFT, TableAlignment.RIGHT);
|
||||
tableComponent.addRow("Points:", StackFormatter.formatNumber(client.getVar(Varbits.NMZ_POINTS)));
|
||||
tableComponent.addRow("Total:", StackFormatter.formatNumber(client.getVar(VarPlayer.NMZ_REWARD_POINTS) + client.getVar(Varbits.NMZ_POINTS)));
|
||||
|
||||
if (config.showtotalpoints())
|
||||
{
|
||||
tableComponent.addRow("Total:", StackFormatter.formatNumber(client.getVar(VarPlayer.NMZ_REWARD_POINTS) + client.getVar(Varbits.NMZ_POINTS)));
|
||||
}
|
||||
|
||||
panelComponent.getChildren().add(tableComponent);
|
||||
|
||||
return panelComponent.render(graphics);
|
||||
|
||||
Reference in New Issue
Block a user