aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl/gui
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2023-05-29 07:11:21 +0100
committerisXander <xander@isxander.dev>2023-05-29 07:11:21 +0100
commitdc8b14ee18c1d8737a836ac3c6c510e8f46f46eb (patch)
tree7f2a722fecdf2346eba60eeb770c856c737b3ced /common/src/main/java/dev/isxander/yacl/gui
parent0774170cda931fcee000d1ceeb633c28b73b43bd (diff)
downloadYetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.tar.gz
YetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.tar.bz2
YetAnotherConfigLib-dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb.zip
Rename `OptionDescription#description` to `text` as well as relevant builder methods
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl/gui')
-rw-r--r--common/src/main/java/dev/isxander/yacl/gui/OptionDescriptionWidget.java4
1 files changed, 2 insertions, 2 deletions
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());
}
}