Skip to content

Commit

Permalink
Advanced settings: Reformat noise parameter format example
Browse files Browse the repository at this point in the history
Previously the example ran off the edge of the formspec.
Also include 'lacunarity' in the format instead of treating it as an option.
  • Loading branch information
paramat committed Jul 11, 2017
1 parent 8299e4b commit 0b3a8de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builtin/mainmenu/dlg_settings_advanced.lua
Expand Up @@ -466,8 +466,9 @@ local function create_change_setting_formspec(dialogdata)
.. core.formspec_escape(setting.possible:gsub(",", ", ")) .. ","
elseif setting.type == "noise_params" then
formspec = formspec .. ",,"
.. "," .. fgettext("Format: <offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>), <seed>, <octaves>, <persistence>") .. ","
.. "," .. fgettext("Optionally the lacunarity can be appended with a leading comma.") .. ","
.. "," .. fgettext("Format:") .. ","
.. "," .. fgettext("<offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>),") .. ","
.. "," .. fgettext("<seed>, <octaves>, <persistence>, <lacunarity>") .. ","
elseif setting.type == "v3f" then
formspec = formspec .. ",,"
.. "," .. fgettext_ne("Format is 3 numbers separated by commas and inside brackets.") .. ","
Expand Down

0 comments on commit 0b3a8de

Please sign in to comment.