Advanced settings: Reformat noise parameter format example
authorparamat <paramat@users.noreply.github.com>
Sun, 9 Jul 2017 20:09:41 +0000 (21:09 +0100)
committerparamat <mat.gregory@virginmedia.com>
Tue, 11 Jul 2017 00:15:01 +0000 (01:15 +0100)
Previously the example ran off the edge of the formspec.
Also include 'lacunarity' in the format instead of treating it as an option.

builtin/mainmenu/dlg_settings_advanced.lua

index 90b8d1e67d30685e344d5807c5fa8d492158ee5c..bbfeb2fbf5a99bdca53e62e232f481d93bb69393 100644 (file)
@@ -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.") .. ","