From be7b641955a197d55251c3cbd4a314476cf94fb3 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 30 Apr 2020 01:08:07 +0800 Subject: Update to 20w18a and add recipe exporter Signed-off-by: shedaniel --- .../java/me/shedaniel/rei/impl/widgets/LabelWidget.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java') diff --git a/src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java b/src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java index 9cc48558d..b333adc55 100644 --- a/src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java +++ b/src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java @@ -183,7 +183,7 @@ public final class LabelWidget extends Label { @NotNull @Override public final Rectangle getBounds() { - int width = font.method_27525(text); + int width = font.getWidth(text); Point point = getPoint(); if (getHorizontalAlignment() == LEFT_ALIGNED) return new Rectangle(point.x - 1, point.y - 5, width + 2, 14); @@ -200,26 +200,26 @@ public final class LabelWidget extends Label { if (isClickable() && isHovered(mouseX, mouseY)) color = getHoveredColor(); Point pos = getPoint(); - int width = font.method_27525(getText()); + int width = font.getWidth(getText()); switch (getHorizontalAlignment()) { case LEFT_ALIGNED: if (hasShadow()) - font.method_27517(matrices, getText(), pos.x, pos.y, color); + font.drawWithShadow(matrices, getText(), pos.x, pos.y, color); else - font.method_27528(matrices, getText(), pos.x, pos.y, color); + font.draw(matrices, getText(), pos.x, pos.y, color); break; case RIGHT_ALIGNED: if (hasShadow()) - font.method_27517(matrices, getText(), pos.x - width, pos.y, color); + font.drawWithShadow(matrices, getText(), pos.x - width, pos.y, color); else - font.method_27528(matrices, getText(), pos.x - width, pos.y, color); + font.draw(matrices, getText(), pos.x - width, pos.y, color); break; case CENTER: default: if (hasShadow()) - font.method_27517(matrices, getText(), pos.x - width / 2f, pos.y, color); + font.drawWithShadow(matrices, getText(), pos.x - width / 2f, pos.y, color); else - font.method_27528(matrices, getText(), pos.x - width / 2f, pos.y, color); + font.draw(matrices, getText(), pos.x - width / 2f, pos.y, color); break; } if (isHovered(mouseX, mouseY)) { -- cgit