tile indicators: add config sections
This commit is contained in:
@@ -29,39 +29,64 @@ 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.ConfigSection;
|
||||||
|
|
||||||
@ConfigGroup("tileindicators")
|
@ConfigGroup("tileindicators")
|
||||||
public interface TileIndicatorsConfig extends Config
|
public interface TileIndicatorsConfig extends Config
|
||||||
{
|
{
|
||||||
@Alpha
|
@ConfigSection(
|
||||||
@ConfigItem(
|
name = "Destination Tile",
|
||||||
keyName = "highlightDestinationColor",
|
description = "Destination tile configuration",
|
||||||
name = "Destination tile",
|
position = 0
|
||||||
description = "Configures the highlight color of current destination",
|
)
|
||||||
|
String destinationTile = "destinationTile";
|
||||||
|
|
||||||
|
@ConfigSection(
|
||||||
|
name = "Hovered Tile",
|
||||||
|
description = "Hovered tile configuration",
|
||||||
position = 1
|
position = 1
|
||||||
)
|
)
|
||||||
default Color highlightDestinationColor()
|
String hoveredTile = "hoveredTile";
|
||||||
{
|
|
||||||
return Color.GRAY;
|
@ConfigSection(
|
||||||
}
|
name = "Current Tile",
|
||||||
|
description = "Current tile configuration",
|
||||||
|
position = 2
|
||||||
|
)
|
||||||
|
String currentTile = "currentTile";
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "highlightDestinationTile",
|
keyName = "highlightDestinationTile",
|
||||||
name = "Highlight destination tile",
|
name = "Highlight destination tile",
|
||||||
description = "Highlights tile player is walking to",
|
description = "Highlights tile player is walking to",
|
||||||
position = 2
|
position = 1,
|
||||||
|
section = destinationTile
|
||||||
)
|
)
|
||||||
default boolean highlightDestinationTile()
|
default boolean highlightDestinationTile()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Alpha
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "highlightDestinationColor",
|
||||||
|
name = "Highlight color",
|
||||||
|
description = "Configures the highlight color of current destination",
|
||||||
|
position = 2,
|
||||||
|
section = destinationTile
|
||||||
|
)
|
||||||
|
default Color highlightDestinationColor()
|
||||||
|
{
|
||||||
|
return Color.GRAY;
|
||||||
|
}
|
||||||
|
|
||||||
@Alpha
|
@Alpha
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "destinationTileFillColor",
|
keyName = "destinationTileFillColor",
|
||||||
name = "Destination tile fill color",
|
name = "Fill color",
|
||||||
description = "Configures the fill color of destination tile",
|
description = "Configures the fill color of destination tile",
|
||||||
position = 3
|
position = 3,
|
||||||
|
section = destinationTile
|
||||||
)
|
)
|
||||||
default Color destinationTileFillColor()
|
default Color destinationTileFillColor()
|
||||||
{
|
{
|
||||||
@@ -70,44 +95,48 @@ public interface TileIndicatorsConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "destinationTileBorderWidth",
|
keyName = "destinationTileBorderWidth",
|
||||||
name = "Destination border width",
|
name = "Border width",
|
||||||
description = "Width of the destination tile marker border",
|
description = "Width of the destination tile marker border",
|
||||||
position = 4
|
position = 4,
|
||||||
|
section = destinationTile
|
||||||
)
|
)
|
||||||
default double destinationTileBorderWidth()
|
default double destinationTileBorderWidth()
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Alpha
|
|
||||||
@ConfigItem(
|
|
||||||
keyName = "highlightHoveredColor",
|
|
||||||
name = "Hovered tile",
|
|
||||||
description = "Configures the highlight color of hovered tile",
|
|
||||||
position = 5
|
|
||||||
)
|
|
||||||
default Color highlightHoveredColor()
|
|
||||||
{
|
|
||||||
return new Color(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "highlightHoveredTile",
|
keyName = "highlightHoveredTile",
|
||||||
name = "Highlight hovered tile",
|
name = "Highlight hovered tile",
|
||||||
description = "Highlights tile player is hovering with mouse",
|
description = "Highlights tile player is hovering with mouse",
|
||||||
position = 6
|
position = 1,
|
||||||
|
section = hoveredTile
|
||||||
)
|
)
|
||||||
default boolean highlightHoveredTile()
|
default boolean highlightHoveredTile()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Alpha
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "highlightHoveredColor",
|
||||||
|
name = "Highlight color",
|
||||||
|
description = "Configures the highlight color of hovered tile",
|
||||||
|
position = 2,
|
||||||
|
section = hoveredTile
|
||||||
|
)
|
||||||
|
default Color highlightHoveredColor()
|
||||||
|
{
|
||||||
|
return new Color(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
@Alpha
|
@Alpha
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "hoveredTileFillColor",
|
keyName = "hoveredTileFillColor",
|
||||||
name = "Hovered tile fill color",
|
name = "Fill color",
|
||||||
description = "Configures the fill color of hovered tile",
|
description = "Configures the fill color of hovered tile",
|
||||||
position = 7
|
position = 3,
|
||||||
|
section = hoveredTile
|
||||||
)
|
)
|
||||||
default Color hoveredTileFillColor()
|
default Color hoveredTileFillColor()
|
||||||
{
|
{
|
||||||
@@ -116,44 +145,48 @@ public interface TileIndicatorsConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "hoveredTileBorderWidth",
|
keyName = "hoveredTileBorderWidth",
|
||||||
name = "Hovered tile border width",
|
name = "Border width",
|
||||||
description = "Width of the hovered tile marker border",
|
description = "Width of the hovered tile marker border",
|
||||||
position = 8
|
position = 4,
|
||||||
|
section = hoveredTile
|
||||||
)
|
)
|
||||||
default double hoveredTileBorderWidth()
|
default double hoveredTileBorderWidth()
|
||||||
{
|
{
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Alpha
|
|
||||||
@ConfigItem(
|
|
||||||
keyName = "highlightCurrentColor",
|
|
||||||
name = "True tile",
|
|
||||||
description = "Configures the highlight color of current true tile",
|
|
||||||
position = 9
|
|
||||||
)
|
|
||||||
default Color highlightCurrentColor()
|
|
||||||
{
|
|
||||||
return Color.CYAN;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "highlightCurrentTile",
|
keyName = "highlightCurrentTile",
|
||||||
name = "Highlight true tile",
|
name = "Highlight true tile",
|
||||||
description = "Highlights true tile player is on as seen by server",
|
description = "Highlights true tile player is on as seen by server",
|
||||||
position = 10
|
position = 1,
|
||||||
|
section = currentTile
|
||||||
)
|
)
|
||||||
default boolean highlightCurrentTile()
|
default boolean highlightCurrentTile()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Alpha
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "highlightCurrentColor",
|
||||||
|
name = "Highlight color",
|
||||||
|
description = "Configures the highlight color of current true tile",
|
||||||
|
position = 2,
|
||||||
|
section = currentTile
|
||||||
|
)
|
||||||
|
default Color highlightCurrentColor()
|
||||||
|
{
|
||||||
|
return Color.CYAN;
|
||||||
|
}
|
||||||
|
|
||||||
@Alpha
|
@Alpha
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "currentTileFillColor",
|
keyName = "currentTileFillColor",
|
||||||
name = "True tile fill color",
|
name = "Fill color",
|
||||||
description = "Configures the fill color of current true tile",
|
description = "Configures the fill color of current true tile",
|
||||||
position = 11
|
position = 3,
|
||||||
|
section = currentTile
|
||||||
)
|
)
|
||||||
default Color currentTileFillColor()
|
default Color currentTileFillColor()
|
||||||
{
|
{
|
||||||
@@ -162,9 +195,10 @@ public interface TileIndicatorsConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "currentTileBorderWidth",
|
keyName = "currentTileBorderWidth",
|
||||||
name = "True tile border width",
|
name = "Border width",
|
||||||
description = "Width of the true tile marker border",
|
description = "Width of the true tile marker border",
|
||||||
position = 12
|
position = 4,
|
||||||
|
section = currentTile
|
||||||
)
|
)
|
||||||
default double currentTileBorderWidth()
|
default double currentTileBorderWidth()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user