Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config fixes v1.14 #75

Open
wants to merge 3 commits into
base: master-1.14
Choose a base branch
from

Conversation

kmcnaught
Copy link

@kmcnaught kmcnaught commented Mar 2, 2020

Hi,

I've been using your mod config UIs for my own mods, and fixed a few issues while I was at it.

  1. "back" from the top level now takes you back to the mods list, consistent with previous versions of forge, (i.e. previously went all the way back to the main menu)
  2. you can resize the window without losing the config changes (issue [1.14.4] Config UI values reset when resizing the window #70).
  3. there was a crash when using keyboard navigation due to stale button focus.

Thanks for sharing, it's been really helpful for reintroducing a config UI within 1.14.

- the 'focused' element was stale, i.e. still pointing to the button that
took you into the config page.
- when pressed (via enter key) it tried to load config with duplicated key,
e.g. config path was ["rendersettings", "rendersettings"] which led to an
exception being thrown in ConfigOptionList::setPath
- now we unfocus when reloading a ConfigOptionList
Going "back" from config screen is expected to
take you to the mod list screen you started at.
- Don't re-init the ConfigOptionList
- Add method to re-size the (existing) ConfigOptionList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant