isXander / isXander/YetAnotherConfigLib
Reloading a screen?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 155
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
I'm using YACL for my mod's configuration and I have two related options; an item blacklist and an option to instead treat it as a whitelist. Ideally, I'd want to have the blacklist text change to use the word whitelist instead when that option is set, but with my current code it only updates the text when exiting and reentering the configuration. Is there a way to refresh/reload/replace the config screen to update the text in place?
The relevant file is here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked DropConfirmConfig.java file to understand how the related blacklist and whitelist options are used when building the configuration screen. Then inspect YACL's screen and text-update APIs to determine whether the label can refresh in place. Done means the displayed label changes when the option is toggled without leaving and reopening the configuration screen.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend, game-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100