Additions
- new
ValdiatedCondition
validation wrapper. Gate the wrapped value behind conditional checks added viawithCondition
whenget
is called. If checks fail, a fallback will be supplied instead of the stored "live" value, and the setting will be locked in-GUI.- New methods
toCondition
inValidatedField
to convert one to a ValidatedCondition
- New methods
Text.isEmpty()
andText.isNotEmpty()
extension functions in FcTexttoLinebreakText
in FcText to convert a list of text into one text split by newlines
Changes
- Config settings with names that don't fit into the row (truncated with ellipses) will now have the full name appear in the tooltip
- Archived documentation versions below 0.4.0. If you need to reference a specific older version for some reason, feel free to contact me.
Fixes
- Translatable things now properly have their translations respected if they are wrapped with automatic validation.
- Fixed context menu (right click menu) showing under text in some cases
- Config entries ('rows') are better at compositing their tooltip information onto any native tooltip the containing widget wants to render.
- Improved narration of config entry tooltips; stacking action narrations after the tooltip narration as needed.
Additions
- New experimental Result Provider api; providing a framework for reflectively accessing any config value via string scopes
- Create result providers for any configurable type, providers soft fail to fallbacks given during creation
- Results are dynamically updated as the config changes, no need for relogging, reloading, etc.
- Built in argument handling system for performing actions on the scope requested - check the size of a list, check if a list contains a value, scale a result, anything you can dream up.
- Check the wiki article for an example use case.
Changes
- None.
Fixes
- Restart screen now properly shows when a restart-causing change is received.
- Pressing tab on suggestions now properly tabs the result into the setting text field instead of changing focus to the next widget (done button etc.)
ValidatedIdentifier.ofRegistryKey
now takes? extends Registry
like the other helper method types, instead of justRegistry
.
Additions
- New experimental Result Provider api; providing a framework for reflectively accessing any config value via string scopes
- Create result providers for any configurable type, providers soft fail to fallbacks given during creation
- Results are dynamically updated as the config changes, no need for relogging, reloading, etc.
- Built in argument handling system for performing actions on the scope requested - check the size of a list, check if a list contains a value, scale a result, anything you can dream up.
- Check the wiki article for an example use case.
Changes
- None.
Fixes
- Restart screen now properly shows when a restart-causing change is received.
- Pressing tab on suggestions now properly tabs the result into the setting text field instead of changing focus to the next widget (done button etc.)
ValidatedIdentifier.ofRegistryKey
now takes? extends Registry
like the other helper method types, instead of justRegistry
.- Fixed 1.20.1 forge c2s networking being broken.