Rename indicators->infoboxes in boosts plugin config (#8405)
Closes #8402
This commit is contained in:
@@ -87,7 +87,7 @@ public class BoostIndicator extends InfoBox
|
|||||||
@Override
|
@Override
|
||||||
public boolean render()
|
public boolean render()
|
||||||
{
|
{
|
||||||
if (config.displayIndicators() && plugin.canShowBoosts() && plugin.getShownSkills().contains(getSkill()))
|
if (config.displayInfoboxes() && plugin.canShowBoosts() && plugin.getShownSkills().contains(getSkill()))
|
||||||
{
|
{
|
||||||
return client.getBoostedSkillLevel(skill) != client.getRealSkillLevel(skill);
|
return client.getBoostedSkillLevel(skill) != client.getRealSkillLevel(skill);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,11 +62,11 @@ public interface BoostsConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "displayIndicators",
|
keyName = "displayIndicators",
|
||||||
name = "Display as indicators",
|
name = "Display as infoboxes",
|
||||||
description = "Configures whether or not to display the boost as indicators",
|
description = "Configures whether or not to display the boost as infoboxes",
|
||||||
position = 3
|
position = 3
|
||||||
)
|
)
|
||||||
default boolean displayIndicators()
|
default boolean displayInfoboxes()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class BoostsOverlay extends Overlay
|
|||||||
@Override
|
@Override
|
||||||
public Dimension render(Graphics2D graphics)
|
public Dimension render(Graphics2D graphics)
|
||||||
{
|
{
|
||||||
if (config.displayIndicators())
|
if (config.displayInfoboxes())
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,6 @@ public class StatChangeIndicator extends InfoBox
|
|||||||
public boolean render()
|
public boolean render()
|
||||||
{
|
{
|
||||||
final int time = up ? plugin.getChangeUpTicks() : plugin.getChangeDownTicks();
|
final int time = up ? plugin.getChangeUpTicks() : plugin.getChangeDownTicks();
|
||||||
return config.displayIndicators() && time != -1;
|
return config.displayInfoboxes() && time != -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user