Commit Graph

57 Commits

Author SHA1 Message Date
Martin Prokoph
fdb4a1a528 feat: use enum variant name when missing translation
- Closes #79
2025-02-15 12:14:56 +01:00
Martin Prokoph
d73b9683f9 feat: support non-primitive fields
- Closes #69 (nice)
2025-02-15 12:01:44 +01:00
Martin Prokoph
fe6669e750 fix: crash on pure Wayland sessions
- Closes #84
2025-02-15 11:19:41 +01:00
Martin Prokoph
37fff5a9c5 clean: compactify tooltip code 2025-01-14 10:48:48 +01:00
Martin Prokoph
6f35fb5658 docs: improve javadocs 2025-01-14 10:35:14 +01:00
Martin Prokoph
a32593ede0 feat: improve label tooltip code
- Users can now define labels for text via this translation key pattern: "modid.midnightconfig.optionName.label.tooltip"
2025-01-14 10:27:35 +01:00
Martin Prokoph
d8952a6ad8 Merge pull request #80 from maloryware/architectury-1.21
Made Entry Titles Tooltip-able
2025-01-09 15:41:40 +01:00
Martin Prokoph
0b10a223c1 Merge pull request #73 from NumberSir/patch-1
Update zh_cn.json
2025-01-09 15:38:11 +01:00
maloryware
803607259e added javadocs for Server and Hidden annotations. 2024-12-31 20:11:04 +00:00
maloryware
00e080e715 bunp. 2024-12-31 18:57:42 +00:00
maloryware
7cdd7cdc73 Entry Title rendered as MultilineTextWidget
Added tooltip functionality for Entry Title
2024-12-31 18:56:47 +00:00
NuruTheDoomer
a90cb02b2f Add Malay and Malay (Jawi) translations 2024-12-05 15:26:52 +08:00
Martin Prokoph
a2c0a8afb0 Update to 1.21.4
Neoforge will follow as soon as it's released
2024-12-03 11:44:06 +01:00
Number_Sir
b4c4454ba8 Update zh_cn.json 2024-11-14 19:34:43 +08:00
Martin Prokoph
18209609cb MidnightLib 1.6.4 (Port to 1.21.2/3)
- Forgot to push this earlier, oops
2024-10-29 22:14:54 +01:00
Martin Prokoph
07e6049fa0 Allow Entries to be conditionally shown
- Define a required mod using `requiredMod = "modid"` in entries & comments
2024-10-11 00:08:45 +02:00
Martin Prokoph
765ad60d0b Fix crash on MacOS since v1.6.0
- Closes #67
- Temporarily disabled function popups on MacOS until a solution without non-headless java mode is found
- Also exposed a couple of fields for an upcoming Puzzle update
2024-09-06 12:00:06 +02:00
Martin Prokoph
b8a54e339a Run command registration after main method
- Fixes commands being missing for certain mods
- Possibly fix #67
2024-09-02 23:47:58 +02:00
Martin Prokoph
48390abf8f Open path from last location
- Also some gradle treats :)
2024-08-29 13:43:34 +02:00
Martin Prokoph
db32a41e2b Enable commands in all environments
- Many command-related fixes and improvements
- Added test environment for easier development
2024-08-29 13:38:38 +02:00
Martin Prokoph
545a845add Improved button injection 2024-08-28 12:28:51 +02:00
Martin Prokoph
8039bf3fec Improved automatic command registration 2024-08-28 11:38:35 +02:00
Martin Prokoph
64d26e38b5 Minify json files and images 2024-08-25 12:52:37 +02:00
Martin Prokoph
8aab796530 More compact code & finishing touches 2024-08-25 12:17:04 +02:00
Martin Prokoph
5fa635911f Show errors again and correctly handle closing 2024-08-23 21:35:29 +02:00
Martin Prokoph
3e20b904b7 Improved layout and lists
- Moved reset buttons right
- Added support for Identifiers
- Added isItem property to visually show items associated with Identifiers
- Lists can now also contain Identifiers and numbers
- Added method to get default values
- Added color chooser for color options
2024-08-23 21:08:16 +02:00
Jaffe2718
7deccf4199 - use fileChooser.showDialog(null, null) instead of fileChooser.showOpenDialog(null) 2024-08-22 18:09:43 +08:00
Jaffe2718
fbde598420 - add file chooser for String field in 1.6.0 2024-08-22 15:44:22 +08:00
Martin Prokoph
4c91779267 Merge pull request #61 from TeamMidnightDust/architectury
Update translations for 1.21
2024-08-10 09:45:30 +02:00
Mc_candycube6623
c16b9be9b2 Create zh_cn.json 2024-06-22 00:10:52 +08:00
Martin Prokoph
dfb53f391d NeoForge 1.21
- Added new method to get Modloader/Platform name in common classes
2024-06-17 15:17:07 +02:00
Martin Prokoph
86a665c41a Fix crash with multiple visible tabs 2024-06-13 20:23:53 +02:00
Martin Prokoph
f0c8895d74 Port to 1.21-pre4 2024-06-08 20:42:16 +02:00
Martin Prokoph
d75d34d675 MidnightLib 1.5.5
- Fixed button always being visible
- Various visual improvements
2024-05-04 17:59:06 +02:00
Martin Prokoph
ce23e811b5 Merge pull request #52 from TeamMidnightDust/architectury
Fixed #48
2024-04-21 14:34:49 +02:00
Martin Prokoph
afc3c09148 Fixed #48
Also reduced code complexity, nice :)
2024-04-04 17:25:53 +02:00
Martin Prokoph
0241f81235 Fix button positioning
- Overview button is now positioned correctly again
- Updated to 24w13a (also works on 24w14a)
2024-04-04 17:03:41 +02:00
Martin Prokoph
2f1bfbf44e Experimental 24w09a port
- Only the overview button position in the Options Screen is not quite right
2024-03-05 12:58:59 +01:00
Martin Prokoph
fb1c4c1158 MidnightLib 1.5.2 - NeoForge & more cleanness
- Native support for NeoForge (& dropped support for regular Forge)
- Cleanup of some code -> Overview button is now added via callbacks instead of a mixin
- Unify client & server classes
  - Minor breaking change only affecting mods using the hiding functionality
2023-12-11 19:28:04 +01:00
Martin Prokoph
29c8a9ccfe MidnightLib 1.5.1 for 1.20.4
- Port to 1.20.4
- Add back fancy list background
- File size optimizations
- Update tooling
2023-12-07 18:07:09 +01:00
Motschen
cbfaeb3c6f MidnightLib 1.5.0 - 1.20.2, slight redesign & cleanup
- Port to 1.20.2
- "Reset" button now uses a custom icon (closes #25)
- Config instances can now specify custom config change behavior (implement "writeChanges" method in your class; closes #33)
- Remove TexturedOverlayButtonWidget (replaced by vanilla's TextIconButtonWidget)
- Removed radialRainbow (used very rarely)
- Updated AutoCommand to support editing list and float config values via commands on serverside installs
- Reworded description
- Forge & Quilt temporarily disabled until they release, as always
2023-09-16 21:52:14 +02:00
Motschen
dbbf546551 MidnightLib 1.4.1 - Fix tabs & Re-enable Quilt and Forge
- Fix tabs not being visible
- Re-enable Forge and Quilt support
- Fix #28
2023-06-09 18:46:53 +02:00
Motschen
9074abc331 Previous commit had a typo, it's 1.20 ;)
This commit fixes unsaved options resetting when resizing the game window
2023-05-22 12:20:35 +02:00
Motschen
8109eeb74e Update to 1.19.4 & Fix invalid value tooltips 2023-05-18 21:33:17 +02:00
notlin4
b723253686 Create zh_tw.json 2023-04-04 23:16:14 +08:00
Motschen
8ab3b9fa7d MidnightLib 1.3.0 - No more hats
- Re-enable Quilt and Forge support
- Completely remove unnecessary bloat (Hat cosmetics)
- File size is now just around 55KB for the Fabric & Quilt version, 60KB for Forge
2023-04-02 14:58:04 +02:00
Motschen
c881db8be4 Fix <Ctrl>+<Number> keybinds not working for tabs 2023-03-09 21:10:01 +01:00
Motschen
920fb797e1 Minor improvements 2023-03-09 19:50:28 +01:00
Motschen
cacd3516c1 Port to 1.19.4, Add tab support & Large code cleanup 2023-03-08 21:27:41 +01:00
Martin Prokoph
b5052ff324 Merge pull request #24 from Amirhan-Taipovjan-Greatest-I/patch-1
Tatar Translation for MidnightLib
2023-03-08 16:43:38 +01:00