Skip to content

Commit abb442f

Browse files
committed
changelog + no longer beta
1 parent 7879784 commit abb442f

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ architectury {
1212
minecraft = libs.versions.minecraft.get()
1313
}
1414

15-
version = "3.0.0-beta.7+1.20"
15+
version = "3.0.0+1.20"
1616

1717
val isBeta = "beta" in version.toString()
1818
val changelogText = rootProject.file("changelogs/${project.version}.md").takeIf { it.exists() }?.readText() ?: "No changelog provided."

changelogs/3.0.0+1.20.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# YetAnotherConfigLib v3
2+
3+
3.0 of YACL introduces a new UI layout, taking advantage of 1.19.4's new tab system!
4+
5+
## Description Panel
6+
7+
The description panel takes the place of the old category buttons, you can now interact with the text by clicking or hovering and the description can contain an animated WebP file or a static image. This can help you as a developer to portray what your option does with an actual example.
8+
Like the old tooltip system, these descriptions can dynamically change based on the value of the option, including the image.
9+
After a few seconds of hovering, the description will start to auto-scroll if necessary so inputs such as controller can still use the UI.
10+
11+
```java
12+
.description(OptionDescription.createBuilder()
13+
.text(Text.literal("Line 1"))
14+
.text(Text.literal("Line 2"))
15+
.webpImage(new Identifier("mymod", "config/screenshots/config_example.webp"))
16+
.build())
17+
```
18+
*the above is applicable to both groups and options*
19+
20+
## Tab System
21+
22+
YACL now uses a slightly modified version of 1.19.4's new create world screen, this adds tab overflow, so you can scroll through the tabs in case there are too many to fit on the screen.
23+
24+
## Controller Builders
25+
26+
Controllers now use a builder system, rather than using constructors. This allows for more flexibility in the future.
27+
You can still use your own controller implementations without creating a builder, using `.customController()`.
28+
29+
## For mod developers...
30+
31+
This update is for both 1.19.4 and 1.20, there is complete API parity. 1.20 is now the active branch,
32+
and 1.19.4 is now considered LTS and may receive features from 1.20 at a later date.
33+
34+
## For users/modpack developers...
35+
36+
YACL 3.0 includes the old 2.x inside the new JAR. So you can safely upgrade to 3.0 without breaking
37+
mods that have not yet updated. However, the old UI will still be present for this outdated mods.

0 commit comments

Comments
 (0)