Additions
- New
ConfigScreenWidget
for easily creating a textless 20x20 widget to open your config from another screen.- Pass in your config's base scope (mod_id usually)
- Define a position absolutely, or choose a corner to anchor the widget to, and an optional padding (default 4px)
- Remember to add your new widget to the screens drawable children!
Changes
TextlessButtonWidget
is no longer final; make a custom implementation if you want!
Fixes
- Fixed
ValidatedField.toSet(collection)
returning a list, not a set.- WARNING: This may potentially be a breaking change, if any mods have used
toSet
and accepted that it returns aValidatedList
instead, rather than raising an issue with me. Their field will now not match the type returned. - Not marking this as a major patch since any mods that did this were working with broken state, not stable API
- WARNING: This may potentially be a breaking change, if any mods have used
Additions
- Added a flag system
EntryFlag
toValidatedField
andConfigAction
. Currently only has one flagREQUIRES_WORLD
. A field marked with REQUIRES_WORLD marks that the player needs to be in-game for the setting to work properly. The config screen will show Not in Game instead of the setting, when not in game. - Added
ofDynamicKey
builder methods toValidatedIdentifier
. Use ofofRegistryKey
for non-synced dynamic registries (Loot registries, or modded dynamic registries that don't sync, primarily) is now deprecated and will log a warning.ofDynamicKey
handles synchronization of predicated registry lists more robustly. - Added zh_tw translations
Changes
ValidatedIdentifier
now automatically appliesREQUIRES_WORLD
to validation for dynamic registries, which require the world to be loaded. They will now not be available out of game.- Validation wrappers (lists, ValidatedCondition, etc.) will inherit their delegates flags automatically
- ConfigActions based on
ClickAction.RUN_COMMAND
orClickAction.SUGGEST_COMMAND
now automatically applyREQUIRES_WORLD
Fixes
ValidatedIdentifier
without validation no longer tries to "force" you to use the minecraft namespace in the text box- Enums revert to their proper default when automatically validated (plain field in the config)
- Config actions now respect permissions