Allow customization of the default color for ground items
This commit is contained in:
@@ -115,11 +115,22 @@ public interface GroundItemsConfig extends Config
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "defaultColor",
|
||||||
|
name = "Default items color",
|
||||||
|
description = "Configures the color for default, non-highlighted items",
|
||||||
|
position = 8
|
||||||
|
)
|
||||||
|
default Color defaultColor()
|
||||||
|
{
|
||||||
|
return Color.WHITE;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "highlightedColor",
|
keyName = "highlightedColor",
|
||||||
name = "Highlighted items color",
|
name = "Highlighted items color",
|
||||||
description = "Configures the color for highlighted items",
|
description = "Configures the color for highlighted items",
|
||||||
position = 8
|
position = 9
|
||||||
)
|
)
|
||||||
default Color highlightedColor()
|
default Color highlightedColor()
|
||||||
{
|
{
|
||||||
@@ -130,7 +141,7 @@ public interface GroundItemsConfig extends Config
|
|||||||
keyName = "lowValueColor",
|
keyName = "lowValueColor",
|
||||||
name = "Low value items color",
|
name = "Low value items color",
|
||||||
description = "Configures the color for low value items",
|
description = "Configures the color for low value items",
|
||||||
position = 9
|
position = 10
|
||||||
)
|
)
|
||||||
default Color lowValueColor()
|
default Color lowValueColor()
|
||||||
{
|
{
|
||||||
@@ -141,7 +152,7 @@ public interface GroundItemsConfig extends Config
|
|||||||
keyName = "mediumValueColor",
|
keyName = "mediumValueColor",
|
||||||
name = "Medium value items color",
|
name = "Medium value items color",
|
||||||
description = "Configures the color for medium value items",
|
description = "Configures the color for medium value items",
|
||||||
position = 10
|
position = 11
|
||||||
)
|
)
|
||||||
default Color mediumValueColor()
|
default Color mediumValueColor()
|
||||||
{
|
{
|
||||||
@@ -152,7 +163,7 @@ public interface GroundItemsConfig extends Config
|
|||||||
keyName = "highValueColor",
|
keyName = "highValueColor",
|
||||||
name = "High value items color",
|
name = "High value items color",
|
||||||
description = "Configures the color for high value items",
|
description = "Configures the color for high value items",
|
||||||
position = 11
|
position = 12
|
||||||
)
|
)
|
||||||
default Color highValueColor()
|
default Color highValueColor()
|
||||||
{
|
{
|
||||||
@@ -163,7 +174,7 @@ public interface GroundItemsConfig extends Config
|
|||||||
keyName = "insaneValueColor",
|
keyName = "insaneValueColor",
|
||||||
name = "Insane value items color",
|
name = "Insane value items color",
|
||||||
description = "Configures the color for insane value items",
|
description = "Configures the color for insane value items",
|
||||||
position = 12
|
position = 13
|
||||||
)
|
)
|
||||||
default Color insaneValueColor()
|
default Color insaneValueColor()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
itemId = item.getLinkedNoteId();
|
itemId = item.getLinkedNoteId();
|
||||||
}
|
}
|
||||||
|
|
||||||
Color textColor = Color.WHITE; // Color to use when drawing the ground item
|
Color textColor = config.defaultColor(); // Color to use when drawing the ground item
|
||||||
ItemPrice itemPrice = itemManager.getItemPriceAsync(itemId);
|
ItemPrice itemPrice = itemManager.getItemPriceAsync(itemId);
|
||||||
if (itemPrice != null && config.showGEPrice())
|
if (itemPrice != null && config.showGEPrice())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user