aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/widgets/LabelWidget.java
diff options
context:
space:
mode:
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.java16
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)) {