-
Notifications
You must be signed in to change notification settings - Fork 632
Preset Manager #5459
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
Preset Manager #5459
Conversation
…s to InputOptions. Implement saving and loading of preset files.
Implement Apply. Implement Delete. Some json structure changes.
Pepe20129
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small things but nothing blocking.
Restore auto-resizing to new preset popup. Remove errant BeginDisabled in randomizer (merge artifact?).
Setup loops for all other same-ish situations (applying presets, setting up columns, etc) based on blockInfo.
Lay the groundwork for said restoration.
|
Tracker size and position restoration completed. |
Add race lockout to new and apply buttons.
…e manually-set default states).
da07420 to
4835ff1
Compare
|
Alright, built-in presets now reside in soh.otr, and they can't be deleted (though I added an option for hiding built-ins in the manager section itself). Also re-enabled the satellite rando selector and hooked it up to the manager system. |
Swap randomizer satellite picker to use the manager presets, only displays presets with randomizer section included. Move built-in presets to the asset archive, and remove delete button on them. Remove PresetEntries.cpp.
4835ff1 to
7a5c86d
Compare
…n satellite selectors.
* Add presets sidebar, proof of concept row-based listing. * Complete and unify section check/x drawing. * Add error state to InputString, and corresponding members and builders to InputOptions. Implement saving and loading of preset files. * Implement `Config::SetBlock()`. Implement Apply. Implement Delete. Some json structure changes. * Apply `CVarClear()` calls in CVar-prefixed widget functions. * Comment out satellite preset pickers for now. * clang * Fix ButtonOptions initializer list. * I hate clang... * Loop new preset checkbox creation. Restore auto-resizing to new preset popup. Remove errant BeginDisabled in randomizer (merge artifact?). * Add BlockInfo struct to make array with all info for each block. Setup loops for all other same-ish situations (applying presets, setting up columns, etc) based on blockInfo. * Save tracker windows info for later restoration. Lay the groundwork for said restoration. * Complete tracker window restoration on preset application. * Fix RadioButtonsOptions builder parameter type. Add race lockout to new and apply buttons. * Revert application of CVarClear on UIWidgets widgets (need to preserve manually-set default states). * Remove enhancements satellite picker. Swap randomizer satellite picker to use the manager presets, only displays presets with randomizer section included. Move built-in presets to the asset archive, and remove delete button on them. Remove PresetEntries.cpp. * Fix locations and tricks tabs not updating live when applying preset with new system. * Apply RandoGenerating lockout to rando preset Apply button. * Fix new presets not being properly filtered in satellite selectors. * Fix currently selected presets getting deleted still being selected in satellite selectors. * Change BigPoeTargetCount in preset files to 1.
Custom presets! What more needs to be said?!
Alright, here's a general breakdown:
This removes the satellite preset selector in Enhancements and converts the one in Rando Seed Settings to the new system. Not sure yet if it will even be necessary to make new versions of those, but am awaiting feedback on whether it's greatly desired.
Also, a point of todo: need to figure out how to read, store, and restore tracker window info from imgui.ini.Reqiures Kenix3/libultraship#868Build Artifacts