aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/DisplayHelper.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-15 21:25:49 +0800
committershedaniel <daniel@shedaniel.me>2019-12-15 21:25:49 +0800
commitc961a0c3995d58137ff9dece986bd092a358f3b6 (patch)
tree52204d92ccc74e9dbfb084ae366d9cb6de04af0a /src/main/java/me/shedaniel/rei/api/DisplayHelper.java
parentfca848e6b4e5e78bd2bec39f5fa91be18d6316b3 (diff)
downloadRoughlyEnoughItems-c961a0c3995d58137ff9dece986bd092a358f3b6.tar.gz
RoughlyEnoughItems-c961a0c3995d58137ff9dece986bd092a358f3b6.tar.bz2
RoughlyEnoughItems-c961a0c3995d58137ff9dece986bd092a358f3b6.zip
3.2.22 Favorites
Close #127
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/DisplayHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/DisplayHelper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/DisplayHelper.java b/src/main/java/me/shedaniel/rei/api/DisplayHelper.java
index 05bf4653a..e2a152488 100644
--- a/src/main/java/me/shedaniel/rei/api/DisplayHelper.java
+++ b/src/main/java/me/shedaniel/rei/api/DisplayHelper.java
@@ -120,6 +120,11 @@ public interface DisplayHelper {
default Rectangle getItemListArea(Rectangle rectangle) {
return new Rectangle(rectangle.x + 1, rectangle.y + 2 + (ConfigObject.getInstance().getSearchFieldLocation() == SearchFieldLocation.TOP_SIDE ? 24 : 0) + (ConfigObject.getInstance().isEntryListWidgetScrolled() ? 0 : 22), rectangle.width - 2, rectangle.height - (ConfigObject.getInstance().getSearchFieldLocation() != SearchFieldLocation.CENTER ? 27 + 22 : 27) + (!ConfigObject.getInstance().isEntryListWidgetScrolled() ? 0 : 22));
}
+
+ default Rectangle getFavoritesListArea(Rectangle rectangle) {
+ int offset = 31 + (ConfigObject.getInstance().doesShowUtilsButtons() ? 25 : 0);
+ return new Rectangle(rectangle.x + 1, rectangle.y + 2 + offset, rectangle.width - 2, rectangle.height - 5- offset);
+ }
/**
* Checks if REI should recalculate the overlay bounds