Add Options: Slider page buttons, Completion progress bar fix #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR mainly adds 2 new options, but also includes a few small fixes, and adds more info to the repo.
Testing has been done with all new options toggled on/off. And the original 2 options have been retested to confirm that they are still working correctly.
There are a few other refactors I'd like to make (like use of
nameof
syntax for all patches, and using a namespace for extensions instead of pollutingglobal::
), but they aren't worth shoving into this PR, since it modifies a lot more files.Additions
Slider Page Buttons: Option to enable integer slider page button inputs. This allows moving slider controls in much larger increments (which is especially useful for other Centrifuge mods that add or make slider ranges very large).
Fix Completion Progress Bars: Option to sync ModeCompleteStatusMenuLogic components (the 0%-200% progress bars shown next to Arcade modes and Level Sets). This fixes an issue where scrolling one of these items into view would cause ALL components to restart from 0%, which created a ton of visual noise.
Fixes
PushGrid.cs
.ToUpper()
toToUpperInvariant()
for the hex color inCustomizeMenuCompoundData.cs
.Info
README.md
.1.0.0.0
to1.0.1.0
.Distance.ModTemplate
toDistance.MenuUtilities
.Refactors
RuntimePatcher.AutoPatch()
toRuntimePatcher.HarmonyInstance.PatchAll(Assembly.GetExecutingAssembly())
to avoid the silent catch-all.Harmony.PatchAll()
andCreateSettingsMenu()
, in order to log what threw an error during initialization.ConfigurationLogic
options now use private const string's for their property IDs to avoid code duplication (using the real property name wouldn't be the best, in-case we want to rename it).