aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-03-19 04:30:52 +0800
committershedaniel <daniel@shedaniel.me>2020-03-19 04:30:52 +0800
commit1f6fc41eaebc3c565bef12606ff98a076fc32e89 (patch)
tree33a5c1cd135f6c5ecd8b85fd602bd8c290cf9fb7 /src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java
parent1764648e4f536b2e6ac1b7d1cb3c3fb60e206b29 (diff)
downloadRoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.tar.gz
RoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.tar.bz2
RoughlyEnoughItems-1f6fc41eaebc3c565bef12606ff98a076fc32e89.zip
20w12a
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java
index e73b8aa8b..393ca7739 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/PanelWidget.java
@@ -101,21 +101,21 @@ public class PanelWidget extends WidgetWithBounds {
int yTextureOffset = getYTextureOffset();
//Four Corners
- this.blit(x, y, 106 + xTextureOffset, 124 + yTextureOffset, 4, 4);
- this.blit(x + width - 4, y, 252 + xTextureOffset, 124 + yTextureOffset, 4, 4);
- this.blit(x, y + height - 4, 106 + xTextureOffset, 186 + yTextureOffset, 4, 4);
- this.blit(x + width - 4, y + height - 4, 252 + xTextureOffset, 186 + yTextureOffset, 4, 4);
+ this.drawTexture(x, y, 106 + xTextureOffset, 124 + yTextureOffset, 4, 4);
+ this.drawTexture(x + width - 4, y, 252 + xTextureOffset, 124 + yTextureOffset, 4, 4);
+ this.drawTexture(x, y + height - 4, 106 + xTextureOffset, 186 + yTextureOffset, 4, 4);
+ this.drawTexture(x + width - 4, y + height - 4, 252 + xTextureOffset, 186 + yTextureOffset, 4, 4);
//Sides
for (int xx = 4; xx < width - 4; xx += 128) {
int thisWidth = Math.min(128, width - 4 - xx);
- this.blit(x + xx, y, 110 + xTextureOffset, 124 + yTextureOffset, thisWidth, 4);
- this.blit(x + xx, y + height - 4, 110 + xTextureOffset, 186 + yTextureOffset, thisWidth, 4);
+ this.drawTexture(x + xx, y, 110 + xTextureOffset, 124 + yTextureOffset, thisWidth, 4);
+ this.drawTexture(x + xx, y + height - 4, 110 + xTextureOffset, 186 + yTextureOffset, thisWidth, 4);
}
for (int yy = 4; yy < height - 4; yy += 50) {
int thisHeight = Math.min(50, height - 4 - yy);
- this.blit(x, y + yy, 106 + xTextureOffset, 128 + yTextureOffset, 4, thisHeight);
- this.blit(x + width - 4, y + yy, 252 + xTextureOffset, 128 + yTextureOffset, 4, thisHeight);
+ this.drawTexture(x, y + yy, 106 + xTextureOffset, 128 + yTextureOffset, 4, thisHeight);
+ this.drawTexture(x + width - 4, y + yy, 252 + xTextureOffset, 128 + yTextureOffset, 4, thisHeight);
}
fillGradient(x + 4, y + 4, x + width - 4, y + height - 4, getInnerColor(), getInnerColor());
}