-
Notifications
You must be signed in to change notification settings - Fork 209
Add 'Reset to Defaults' button for mod configs #364
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
Open
ryan-skabelund
wants to merge
28
commits into
satisfactorymodding:dev
Choose a base branch
from
ryan-skabelund:add-reset-config-button
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add 'Reset to Defaults' button for mod configs #364
ryan-skabelund
wants to merge
28
commits into
satisfactorymodding:dev
from
ryan-skabelund:add-reset-config-button
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryan-skabelund
commented
May 20, 2025
- Added a 'Reset to Defaults' button to each mod's config page
- Added a reset to default function to each ConfigProperty (C++)
- Properties requiring a world reload when in-game do not reset
- Fixed text flicker issue in textbox widgets during construction (notably when resetting, values appeared left-aligned briefly before centering).
- Adjusted section widget spacing slightly for more consistent layout
- Converted indentation to tabs for consistency
32df098
to
31818a1
Compare
6745cd6
to
d4be777
Compare
d4be777
to
66f297b
Compare
- Added a 'Reset to Defaults' button to each mod's config page - Added a reset to default function to each ConfigProperty (C++) - Properties requiring a world reload when in-game do not reset - Fixed text flicker issue in textbox widgets during construction (notably when resetting, values appeared left-aligned briefly before centering). - Adjusted section widget spacing slightly for more consistent layout
- Returns a bool from every ResetToDefault() to signal success or failure - Simplified ResetToDefault() so it no longer requires a default property argument - Added an Allow User Reset toggle on each config property - Added IsSetToDefaultValue() and GetDefaultValueAsString() in UConfigProperty - Added per-option reset buttons with tooltips showing default values and why reset is disabled if it is - Moved the Reset to Defaults button to the bottom right corner to match the game options button - Added confirmation popups. Shift+click skips confirmation
- Mod reset button now disables and shows a tooltip if all settings are set to their defaults. - Updated to latest dev commit
4f9e477
to
b7af332
Compare
…Reset as Transient
…tips. Change display name of ArrayProperty `DefaultValue` to `New Value Template`
…as it been showing all this time?!)
eae368c
to
601b096
Compare
…element as a demo of the tooltip showing it
This fixes integer enums not resetting properly and also aligns better with the overall design flow
…enabled. Hide default value when option is set to the default value. Expand array widget if collapsed on add/remove element.
- Clarified disabled mod/section tooltip when options require a world reload while in-game - Added array expansion on mod/section reset - Added section expansion on mod/section reset - Replaced 'Custom Construct' with 'Update Value' for mod/section resets
mircearoata
requested changes
Aug 22, 2025
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.
- Copying the Value to DefaultValue on load feels like the wrong way around to do it. It would make more sense for Value to be transient and DefaultValue to be the one set in the editor. The data would have to be migrated to the other field in PostLoad (a core redirect wouldn't work because it would hide the Value property from BP scripts)
!bAllowUserReset || !bParentSectionAllowsUserReset
andbAllowUserReset && bParentSectionAllowsUserReset
are used quite often both in cpp and in BP, so it would make sense to add a BlueprintCallable FORCEINLINEAllowsReset
function returningbAllowUserReset && bParentSectionAllowsUserReset
Mods/SML/Source/SML/Private/Configuration/Properties/ConfigPropertyArray.cpp
Outdated
Show resolved
Hide resolved
mircearoata
approved these changes
Oct 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.