ground items: add option to deprioritize hidden item options
This commit is contained in:
@@ -132,6 +132,17 @@ public interface GroundItemsConfig extends Config
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "deprioritizeHiddenItems",
|
||||||
|
name = "Deprioritize Menu Hidden Items",
|
||||||
|
description = "Depriotizies the menu options for items which are hidden, requiring a right click to pick up.",
|
||||||
|
position = 5
|
||||||
|
)
|
||||||
|
default boolean deprioritizeHiddenItems()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "highlightTiles",
|
keyName = "highlightTiles",
|
||||||
name = "Highlight Tiles",
|
name = "Highlight Tiles",
|
||||||
|
|||||||
@@ -527,6 +527,11 @@ public class GroundItemsPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
lastEntry.setTarget(lastEntry.getTarget() + " (" + quantity + ")");
|
lastEntry.setTarget(lastEntry.getTarget() + " (" + quantity + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hidden != null && highlighted == null && config.deprioritizeHiddenItems())
|
||||||
|
{
|
||||||
|
lastEntry.setDeprioritized(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user