diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-04-30 01:08:07 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-04-30 02:27:38 +0800 |
| commit | be7b641955a197d55251c3cbd4a314476cf94fb3 (patch) | |
| tree | 1747230438e2daa7d8debd2f661a69ba11f4ea23 /src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java | |
| parent | 43614d50fe2d965246b8ee4522f0ece646031ae9 (diff) | |
| download | RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.gz RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.tar.bz2 RoughlyEnoughItems-be7b641955a197d55251c3cbd4a314476cf94fb3.zip | |
Update to 20w18a and add recipe exporter
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java | 16 |
1 files changed, 8 insertions, 8 deletions
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)) { |
