diff options
author | isXander <xander@isxander.dev> | 2023-05-29 07:19:54 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2023-05-29 07:19:54 +0100 |
commit | ef1ec56de07a247ae83731031d408dbbf69fe84c (patch) | |
tree | 510f6a024952e176417eb24d7b392bc8c9a57401 | |
parent | dc8b14ee18c1d8737a836ac3c6c510e8f46f46eb (diff) | |
download | YetAnotherConfigLib-ef1ec56de07a247ae83731031d408dbbf69fe84c.tar.gz YetAnotherConfigLib-ef1ec56de07a247ae83731031d408dbbf69fe84c.tar.bz2 YetAnotherConfigLib-ef1ec56de07a247ae83731031d408dbbf69fe84c.zip |
beta 5 + changelog
-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 { /** |