aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
index b21127cb6..2ae427e19 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeBaseWidget.java
@@ -18,6 +18,7 @@ import java.util.List;
public class RecipeBaseWidget extends HighlightableWidget {
private static final Identifier CHEST_GUI_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer.png");
+ private static final Identifier CHEST_GUI_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/recipecontainer_dark.png");
private Rectangle bounds;
@@ -27,6 +28,14 @@ public class RecipeBaseWidget extends HighlightableWidget {
throw new IllegalArgumentException("Base too small, at least 8x8!");
}
+ public int getBlitOffset() {
+ return this.blitOffset;
+ }
+
+ public void setBlitOffset(int offset) {
+ this.blitOffset = offset;
+ }
+
@Override
public Rectangle getBounds() {
return bounds;
@@ -47,7 +56,7 @@ public class RecipeBaseWidget extends HighlightableWidget {
return;
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiLighting.disable();
- minecraft.getTextureManager().bindTexture(CHEST_GUI_TEXTURE);
+ minecraft.getTextureManager().bindTexture(RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme ? CHEST_GUI_TEXTURE_DARK : CHEST_GUI_TEXTURE);
int x = bounds.x, y = bounds.y, width = bounds.width, height = bounds.height;
int textureOffset = getTextureOffset();
@@ -76,7 +85,7 @@ public class RecipeBaseWidget extends HighlightableWidget {
}
protected int getInnerColor() {
- return -3750202;
+ return RoughlyEnoughItemsCore.getConfigManager().getConfig().darkTheme ? 0xFF2E2E2E : -3750202;
}
protected int getTextureOffset() {