From dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 29 May 2023 07:11:21 +0100 Subject: Rename `OptionDescription#description` to `text` as well as relevant builder methods --- .../src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/src/main/java/dev/isxander/yacl/gui') diff --git a/common/src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java b/common/src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java index 9f0c642..fceb38a 100644 --- a/common/src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java +++ b/common/src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java @@ -81,7 +81,7 @@ public class OptionDescriptionWidget extends AbstractWidget { } if (wrappedText == null) - wrappedText = font.split(description.description().description(), getWidth()); + wrappedText = font.split(description.description().text(), getWidth()); descriptionY = y; for (var line : wrappedText) { @@ -188,7 +188,7 @@ public class OptionDescriptionWidget extends AbstractWidget { protected void updateWidgetNarration(NarrationElementOutput builder) { if (description != null) { builder.add(NarratedElementType.TITLE, description.name()); - builder.add(NarratedElementType.HINT, description.description().description()); + builder.add(NarratedElementType.HINT, description.description().text()); } } -- cgit