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
Settings GUI: Noise parameter setting fixes #13797
Conversation
I can't really make sense of the comment in the removed line. This *should* not break anything, not even in `generate_from_settingtypes.lua`. (That file uses `setting.default`, but only for settings which aren't noise parameter settings.)
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.
.
Co-authored-by: rubenwardy <rw@rubenwardy.com>
You can consider the concerns I expressed in the commit message of 3b9759e as resolved, I tested this PR against the |
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.
lgtm
This PR makes two small fixes regarding noise parameter settings to the settings GUI:
[Manual Squash] Redesign/unify mainmenu settings interface #12480 accidentally didn't copy over these lines from the deleted
dlg_settings_advanced.lua
to the newly addeddlg_change_mapgen_flags.lua
:minetest/builtin/mainmenu/dlg_settings_advanced.lua
Lines 963 to 967 in 1b95998
This means that if you change noise parameter flags using the checkboxes at the bottom of the noise parameter dialog, your changes won't be saved. This PR fixes that.
Also, noise parameter settings now show a reset button if they have been changed.
Of course, the noise parameter dialog could be improved a lot more, see #13476.
To do
This PR is a Ready for Review.
How to test
Verify that the noise parameter dialog saves your changes to the flags (aka the checkboxes).
Verify that a reset button is shown for changed noise parameter settings.