diff options
-rw-r--r-- | build.gradle.kts | 2 | ||||
-rw-r--r-- | changelogs/3.0.0-beta.5+1.20.md | 16 | ||||
-rw-r--r-- | common/src/main/java/dev/isxander/yacl/api/PlaceholderCategory.java | 5 |
3 files changed, 21 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index af7c445..633e98f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ architectury { minecraft = libs.versions.minecraft.get() } -version = "3.0.0-beta.4+1.20" +version = "3.0.0-beta.5+1.20" val isBeta = "beta" in version.toString() val changelogText = rootProject.file("changelogs/${project.version}.md").takeIf { it.exists() }?.readText() ?: "No changelog provided." diff --git a/changelogs/3.0.0-beta.5+1.20.md b/changelogs/3.0.0-beta.5+1.20.md new file mode 100644 index 0000000..e28b36d --- /dev/null +++ b/changelogs/3.0.0-beta.5+1.20.md @@ -0,0 +1,16 @@ +# YetAnotherConfigLib 3.0 Beta 5 + +## API Changes + +- `OptionDescription.Builder#description` has been renamed to `text`, to make it more clear as it used to look like: + ```java + .description(OptionDescription.createBuilder() + .description(Component.literal("This is some text")) + .build()) + ``` +- `ListOption.createBuilder` now no longer takes a class parameter, to match with `Option`. This means you can no longer + do `ListOption.createBuilder(String.class)`, instead you should do `ListOption.<String>createBuilder()`. + +## Bug Fixes + +- Fixed option list entries sometimes appearing on top of the navbar. diff --git a/common/src/main/java/dev/isxander/yacl/api/PlaceholderCategory.java b/common/src/main/java/dev/isxander/yacl/api/PlaceholderCategory.java index 3641fad..417dd83 100644 --- a/common/src/main/java/dev/isxander/yacl/api/PlaceholderCategory.java +++ b/common/src/main/java/dev/isxander/yacl/api/PlaceholderCategory.java @@ -11,7 +11,10 @@ import java.util.function.BiFunction; /** * A placeholder category that actually just opens another screen, - * instead of displaying options + * instead of displaying options. + * <p> + * Use of this is discouraged, as it is not very user-friendly and navigating to a placeholder + * tab that opens another screen is not very intuitive, making keyboard navigation impossible. */ public interface PlaceholderCategory extends ConfigCategory { /** |