Advanced settings: Reformat noise parameter format example
Previously the example ran off the edge of the formspec. Also include 'lacunarity' in the format instead of treating it as an option.master
parent
8299e4b67e
commit
0b3a8deb2c
|
@ -466,8 +466,9 @@ local function create_change_setting_formspec(dialogdata)
|
||||||
.. core.formspec_escape(setting.possible:gsub(",", ", ")) .. ","
|
.. core.formspec_escape(setting.possible:gsub(",", ", ")) .. ","
|
||||||
elseif setting.type == "noise_params" then
|
elseif setting.type == "noise_params" then
|
||||||
formspec = formspec .. ",,"
|
formspec = formspec .. ",,"
|
||||||
.. "," .. fgettext("Format: <offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>), <seed>, <octaves>, <persistence>") .. ","
|
.. "," .. fgettext("Format:") .. ","
|
||||||
.. "," .. fgettext("Optionally the lacunarity can be appended with a leading comma.") .. ","
|
.. "," .. fgettext("<offset>, <scale>, (<spreadX>, <spreadY>, <spreadZ>),") .. ","
|
||||||
|
.. "," .. fgettext("<seed>, <octaves>, <persistence>, <lacunarity>") .. ","
|
||||||
elseif setting.type == "v3f" then
|
elseif setting.type == "v3f" then
|
||||||
formspec = formspec .. ",,"
|
formspec = formspec .. ",,"
|
||||||
.. "," .. fgettext_ne("Format is 3 numbers separated by commas and inside brackets.") .. ","
|
.. "," .. fgettext_ne("Format is 3 numbers separated by commas and inside brackets.") .. ","
|
||||||
|
|
Loading…
Reference in New Issue