Added more options to Obj Indicators

This commit is contained in:
Ganom
2019-05-30 02:33:15 -04:00
committed by GitHub
parent 4fef4c7328
commit f8e9351b72

View File

@@ -26,16 +26,16 @@
package net.runelite.client.plugins.objectindicators; package net.runelite.client.plugins.objectindicators;
import java.awt.Color; import java.awt.Color;
import net.runelite.client.config.Alpha;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Range;
@ConfigGroup("objectindicators") @ConfigGroup("objectindicators")
public interface ObjectIndicatorsConfig extends Config public interface ObjectIndicatorsConfig extends Config
{ {
@Alpha
@ConfigItem( @ConfigItem(
position = 0,
keyName = "markerColor", keyName = "markerColor",
name = "Marker color", name = "Marker color",
description = "Configures the color of object marker" description = "Configures the color of object marker"
@@ -44,4 +44,34 @@ public interface ObjectIndicatorsConfig extends Config
{ {
return Color.YELLOW; return Color.YELLOW;
} }
@Range(
min = 0,
max = 10
)
@ConfigItem(
position = 1,
keyName = "stroke",
name = "Stroke Size",
description = "Configures the stroke size of object marker"
)
default int stroke()
{
return 2;
}
@Range(
min = 0,
max = 255
)
@ConfigItem(
position = 2,
keyName = "alpha",
name = "Alpha",
description = "Configures the opacity/alpha of object marker"
)
default int alpha()
{
return 20;
}
} }