Commit Graph

209 Commits

Author SHA1 Message Date
Martin Prokoph
3db1c1eb23 fix: crash on servers
- This makes overriding the screen less flexible, but out of all options, this was the best way to do it. Previously, the `@EnvType` annotation took care of keeping this out of the server code, but NeoForge decided to break perfectly functional behaviour once again, requiring me to remove the annotations 🫠
2025-10-03 14:55:40 +02:00
Martin Prokoph
c07c466398 fix: make tooltip translation key respect custom entry names 2025-10-02 16:52:30 +02:00
Martin Prokoph
16710282ba feat: better UX and accessibility
Closes #118
Action buttons now show tooltips explaining their functionality. These will also be read by the narrator.
2025-10-01 18:18:05 +02:00
Martin Prokoph
98859fbc28 feat: support NeoForge on 1.21.9
`@Environment` annotations had to be removed because NeoForge doesn't like them. Also, this brings down file size :)
2025-10-01 17:50:18 +02:00
Martin Prokoph
72a403080c chore: update to 1.21.9-rc1 2025-09-27 16:26:08 +02:00
Martin Prokoph
44b92726ed clean: even more refactoring 2025-09-27 16:07:50 +02:00
Martin Prokoph
b8e5ab7907 fix: centered multiline comments
Closes #117
2025-09-27 16:05:32 +02:00
Martin Prokoph
bb18e1a00a clean: additional refactoring 2025-09-27 15:47:38 +02:00
Martin Prokoph
0020eb86b6 clean: extract inner classes 2025-09-26 20:57:23 +02:00
Martin Prokoph
284037cc6c clean: refactoring (less static methods/fields) 2025-09-26 20:03:59 +02:00
Martin Prokoph
58970157b4 feat: support for 1.21.9 (pre3) 2025-09-23 17:06:35 +02:00
Martin Prokoph
a3c92223d3 Merge pull request #116 from Jaffe2718/architectury-1.21.6
Fix bugs & Better test
2025-09-23 15:38:26 +02:00
Martin Prokoph
78d1ca8de4 Merge branch 'dev/1.21.9' into architectury-1.21.6 2025-09-23 15:37:51 +02:00
Martin Prokoph
bee3553498 chore: update gradle config for 1.21.9 2025-09-23 15:36:06 +02:00
Jaffe2718
c775a9d221 - fix: NullPointerException when the config class of mod updated
- alter: better test code in `common/src/test`, `neoforge/src/test` and `fabric/src/test`, run `Test Minecraft Client(:fabric)` or `Test Minecraft Client(:neoforge)` for testing
2025-09-11 11:48:26 +08:00
Martin Prokoph
78c462dc1c Merge pull request #108 from Texaliuz/patch-3
Update es_ar.json
2025-08-23 19:45:24 +02:00
Martin Prokoph
b0e4a44a16 Merge pull request #109 from Texaliuz/patch-4
Update es_ar.json
2025-08-23 19:44:41 +02:00
Texaliuz
66b3ffbceb Update es_ar.json 2025-07-16 00:47:30 -03:00
Texaliuz
0c83a0902c Update es_ar.json 2025-07-16 00:43:57 -03:00
Martin Prokoph
9602736335 fix: screen titles not showing 2025-06-17 23:44:21 +02:00
Martin Prokoph
30d213b92c feat: NeoForge 1.21.6 2025-06-17 18:00:22 +02:00
Martin Prokoph
b61b2cdf12 port: update to full 1.21.6 2025-06-17 17:55:20 +02:00
Martin Prokoph
bcde119f23 fix: correctly wrap option text labels 2025-06-17 17:54:53 +02:00
Martin Prokoph
b08e38ae11 port: 1.21.6 (pre1) 2025-05-28 23:28:03 +02:00
Martin Prokoph
a1ad6dd1f0 chore: bump version 2025-05-13 12:05:21 +02:00
Martin Prokoph
7ddfadd4ec clean: some code cleanup 2025-05-13 12:05:07 +02:00
Martin Prokoph
6bbaf1ab5d optimize: remove unchanged translations in es_ar 2025-05-12 22:58:22 +02:00
Martin Prokoph
f1fe868192 feat: remove checkbox widgets
- As voted on in a recent MidnightDust Discord Poll
2025-05-12 22:57:15 +02:00
Martin Prokoph
74d8800fa5 Merge pull request #102 from Texaliuz/patch-1
🌐 add Argentine Spanish localization (for example)
2025-05-12 22:48:52 +02:00
Martin Prokoph
3e2ceb09c6 Merge pull request #103 from Texaliuz/patch-2
🌐 add Argentine Spanish localization
2025-05-12 22:48:05 +02:00
Martin Prokoph
f1a3b2c634 Merge pull request #101 from joriskleiber/architectury-1.21.4
Respect TranslatableOption on enums
2025-05-12 22:47:11 +02:00
Martin Prokoph
f9fc657695 Merge branch 'architectury-1.21.4' into architectury-1.21.4 2025-05-12 22:46:51 +02:00
Martin Prokoph
7a15f1fb8d fix: conditions are not applied in default tab
- Closes #104
2025-05-12 18:53:54 +02:00
Martin Prokoph
b2c24010da fix: adjust option title position 2025-05-12 12:45:27 +02:00
Martin Prokoph
302728192f feat: new method to manually add widgets
- Also added a keybind widget as an example for this.
It will not be included in the base jar, but can be manually copied into mods that rely on it.
2025-05-12 12:35:20 +02:00
Texaliuz
3eb345ce3c Update es_ar.json
Minor corrections
2025-05-04 13:10:32 -03:00
Texaliuz
f986d10e1f Translation into Argentine Spanish (es_ar) for MidnightLib
Hello, I would appreciate if you could add the translation to my language (es_ar) for version 1.21.1 please and thank you.
2025-04-29 19:45:28 -03:00
Texaliuz
03223b8d9b Translation into Argentine Spanish (es_ar) for MidnightLib
Hello, I would appreciate if you could add the translation to my language (es_ar) for version 1.21.1 please and thank you.
2025-04-29 19:41:32 -03:00
Joris Kleiber
daec2a3187 feat: respect TranslatableOption on enums 2025-04-26 01:10:57 +02:00
Martin Prokoph
6693580cfa Merge pull request #99 from TeamMidnightDust/dev
MidnightLib 1.7.2 – Clickable URLs in Comments and added Checkbox buttons
2025-04-21 11:04:15 +02:00
Martin Prokoph
356064b052 chore: bump version 2025-04-21 10:46:02 +02:00
Martin Prokoph
06ef4fdcf7 clean: remove unused import 2025-04-21 10:45:02 +02:00
Martin Prokoph
82889b8c06 docs: improve JavaDocs 2025-04-21 10:43:40 +02:00
Martin Prokoph
e58c7fc0fd feat: improve URL handling
- Uses the `open` method of `ConfirmLinkScreen` instead of manually instantiating it
- Also re-add the `requiredMod` field for `@Comment` to prevent mods that haven't adjusted yet from outright crashing
2025-04-18 12:37:46 +02:00
Martin Prokoph
4def02af12 Merge pull request #98 from Jaffe2718/dev
1.7.2-rc.2
2025-04-18 12:20:15 +02:00
Jaffe2718
5905eed58f - feat: add clickable url for @Comment
- chore: bump version `1.7.2-rc.2`
2025-04-18 17:01:35 +08:00
Martin Prokoph
0297d91e70 feat: 'visibleButLocked' now applies for all buttons 2025-04-14 18:02:56 +02:00
Martin Prokoph
3e6a72cda4 feat: checkbox buttons next to boolean yes/no text buttons 2025-04-14 17:49:02 +02:00
Martin Prokoph
dcf0dbcaab fix: improve identifier crash fix
Now uses Minecraft's built-in Identifier.validate function to check validity before applying changes
2025-04-14 17:47:11 +02:00
Martin Prokoph
dd128bd2d0 Merge pull request #97 from Jaffe2718/architectury-1.21.4
1.7.2-rc.1
2025-04-14 16:39:58 +02:00