aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-04-28 01:18:48 +0800
committershedaniel <daniel@shedaniel.me>2020-04-28 01:18:48 +0800
commitd2c2d1353fae065a4d3a92451807fc161d914aca (patch)
treeb4f22fb1380b9fffefa839bb22483ecc31a2064c /src/main
parent2fba5f676ac34bf13092b81767b29825df759c6e (diff)
downloadRoughlyEnoughItems-d2c2d1353fae065a4d3a92451807fc161d914aca.tar.gz
RoughlyEnoughItems-d2c2d1353fae065a4d3a92451807fc161d914aca.tar.bz2
RoughlyEnoughItems-d2c2d1353fae065a4d3a92451807fc161d914aca.zip
Fixed Subsets Button being blocked by category icons
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
index 045cf0be0..9ae7775d8 100644
--- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
+++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
@@ -277,7 +277,7 @@ public class ContainerScreenOverlay extends WidgetWithBounds {
CollectionUtils.filterAndMap(Arrays.asList(GameMode.values()), mode -> mode != GameMode.NOT_SET, GameModeMenuEntry::new));
if (ConfigObject.getInstance().isLeftHandSidePanel())
this.gameModeMenu.menuStartPoint.x -= this.gameModeMenu.getBounds().width - this.gameModeButton.getBounds().width;
- this.wrappedGameModeMenu = InternalWidgets.wrapTranslate(InternalWidgets.wrapLateRenderable(gameModeMenu), 0, 0, 400);
+ this.wrappedGameModeMenu = InternalWidgets.wrapTranslate(InternalWidgets.wrapLateRenderable(gameModeMenu), 0, 0, 600);
AFTER_RENDER.add(() -> this.widgets.add(wrappedGameModeMenu));
} else {
removeGameModeMenu();
@@ -316,7 +316,7 @@ public class ContainerScreenOverlay extends WidgetWithBounds {
}
subsetsButtonBounds = getSubsetsButtonBounds();
if (ConfigObject.getInstance().isSubsetsEnabled()) {
- widgets.add(InternalWidgets.wrapLateRenderable(Widgets.createButton(subsetsButtonBounds, ((ClientHelperImpl) ClientHelper.getInstance()).isAprilFools.get() ? new TranslatableText("text.rei.tiny_potato") : new TranslatableText("text.rei.subsets"))
+ widgets.add(InternalWidgets.wrapLateRenderable(InternalWidgets.wrapTranslate(Widgets.createButton(subsetsButtonBounds, ((ClientHelperImpl) ClientHelper.getInstance()).isAprilFools.get() ? new TranslatableText("text.rei.tiny_potato") : new TranslatableText("text.rei.subsets"))
.onClick(button -> {
if (subsetsMenu == null) {
wrappedSubsetsMenu = InternalWidgets.wrapTranslate(InternalWidgets.wrapLateRenderable(this.subsetsMenu = SubsetsMenu.createFromRegistry(new Point(this.subsetsButtonBounds.x, this.subsetsButtonBounds.getMaxY()))), 0, 0, 400);
@@ -326,7 +326,7 @@ public class ContainerScreenOverlay extends WidgetWithBounds {
this.subsetsMenu = null;
this.wrappedSubsetsMenu = null;
}
- })));
+ }), 0, 0, 600)));
}
if (!ConfigObject.getInstance().isEntryListWidgetScrolled()) {
widgets.add(Widgets.createClickableLabel(new Point(bounds.x + (bounds.width / 2), bounds.y + (ConfigObject.getInstance().getSearchFieldLocation() == SearchFieldLocation.TOP_SIDE ? 24 : 0) + 10), NarratorManager.EMPTY, label -> {