Skip to content

Show mod config as submenu, controller improvements#52

Merged
Alchyr merged 11 commits intoAlchyr:developfrom
exscape:modconfig-submenu
Mar 22, 2026
Merged

Show mod config as submenu, controller improvements#52
Alchyr merged 11 commits intoAlchyr:developfrom
exscape:modconfig-submenu

Conversation

@exscape
Copy link
Contributor

@exscape exscape commented Mar 21, 2026

Plenty of changes!

  • Add Control.AddThemeFontSizeOverrideAll (to set font_size, normal_font_size, font_size_bold, ... etc)
  • Move mod config to a proper, native-looking submenu instead of drawing above the game's NModdingScreen
  • Add full controller support for all controls and fix remaining focus issues
  • Show important errors in the main menu (e.g. corrupt JSON in a mod config that is likely due to the person editing it manually)

Our dropdown is actually nicer than the game's now: it restores the last selected position when opened (mostly for controllers).

Alchyr and others added 10 commits March 19, 2026 22:47
* Insert a native-looking submenu when the mod config icon is clicked
* Old ModConfigs are fully compatible
* Full controller support (after the next few commits)

The commits just after this one finish this feature up.
Implements the actual logic (save + autosave), and cleans up a bit.
Only show error popups for errors the user likely really cares about.
Includes nice things like acceleration when holding, etc.
* Focus last selected item on open (game always selects index 0)
* Force override focus neighbors to fix issue of left going to a random
  control; some code is overriding this after we set it up
@exscape exscape marked this pull request as draft March 21, 2026 20:40
@exscape
Copy link
Contributor Author

exscape commented Mar 21, 2026

I noticed a disposed object crash! Will fix and update the PR soon.

@exscape exscape marked this pull request as ready for review March 21, 2026 21:09
@Alchyr Alchyr changed the base branch from master to develop March 22, 2026 06:57
@Alchyr Alchyr merged commit b5f987f into Alchyr:develop Mar 22, 2026
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.

2 participants