Skip to content

Config fixes v1.14#75

Open
kmcnaught wants to merge 3 commits intofeldim2425:master-1.14from
kmcnaught:configFixes1.14
Open

Config fixes v1.14#75
kmcnaught wants to merge 3 commits intofeldim2425:master-1.14from
kmcnaught:configFixes1.14

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