More tooltips

This commit is contained in:
Wuzzy 2022-04-21 00:31:26 +02:00
parent 5e3a0866f1
commit 9c5b97e05b

@ -1413,13 +1413,18 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
autogen_label = S("Disable mapgen")
else
autogen_label = S("Enable mapgen")
create_btn = "button[3.50,0;3,1;create;"..F(S("Apply and create")).."]"
create_btn = "button[3.50,0;3,1;create;"..F(S("Apply and create")).."]"..
"tooltip[create;"..F(S("Set these noise parameters and noise options as the “active noise” and create nodes at the given X/Y/Z coordinates with the given size")).."]"
xyzsize = [[
field[0.25,1.95;1.75,0.75;pos_x;]]..F(S("X"))..[[;]]..pos_x..[[]
field[2.10,1.95;1.75,0.75;pos_y;]]..F(S("Y"))..[[;]]..pos_y..[[]
field[3.95,1.95;1.75,0.75;pos_z;]]..F(S("Z"))..[[;]]..pos_z..[[]
tooltip[pos_x;]]..F(S("Coordinate for “Apply and create”"))..[[]
tooltip[pos_y;]]..F(S("Coordinate for “Apply and create”"))..[[]
tooltip[pos_z;]]..F(S("Coordinate for “Apply and create”"))..[[]
field[5.95,1.95;1.5,0.75;size;]]..F(S("Size"))..[[;]]..size..[[]
tooltip[size;]]..F(S("Size of area of nodes to generate (as a sidelength), used by “Apply and create”"))..[[]
field_close_on_enter[pos_x;false]
field_close_on_enter[pos_y;false]
@ -1468,6 +1473,10 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
field_close_on_enter[sidelen;false]
tooltip[set_random_seed;]]..F(S("Random seed"))..[[]
tooltip[add_np_profile;]]..F(S("Add the current noise parameter as a new profile into the profile list"))..[[]
tooltip[load_np_profile;]]..F(S("Load the selected profile from the profile list to replace the noise parameters"))..[[]
tooltip[delete_np_profile;]]..F(S("Delete the selected profile from the profile list (only works for user profiles)"))..[[]
tooltip[analyze;]]..F(S("Perform some basic mathematical analysis about these noise parameters"))..[[]
container_end[]
@ -1478,6 +1487,7 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
dropdown[0.25,0.7;1,0.75;dimensions;]]..F(S("2D"))..[[,]]..F(S("3D"))..[[;]]..dimensions_index..[[;true]
field[2.25,0.7;2,0.75;sidelen;]]..F(S("Pixelization"))..[[;]]..sidelen..[[]
button[6.25,0.7;2.0,0.6;statistics;]]..F(S("Statistics"))..[[]
tooltip[statistics;]]..F(S("Calculate a large amount of noise values under the current settings and show a statistical analysis of these values"))..[[]
tooltip[sidelen;]]..F(S("If higher than 1, Perlin values will be repeated along all axes every x nodes, for a pixelized effect."))..[[]
container_end[]
@ -1491,8 +1501,10 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
field[3.95,0.75;1.75,0.75;value_max;]]..F(S("High color at"))..[[;]]..value_max..[[]
button[5.95,0.75;1.00,0.75;autocolor;]]..F(S("Auto"))..[[]
dropdown[7.55,0.75;1.9,0.75;nodetype;]]..nodetypes_list_str..[[;]]..nodetype_index..[[;true]
tooltip[nodetype;]]..F(S("Node type: Specify the type of node that you want to generate here"))..[[]
]]..xyzsize..[[
dropdown[7.55,1.95;1.9,0.75;buildmode;]]..F(S("Auto"))..","..F(S("All"))..","..F(S("High only"))..","..F(S("Low only"))..[[;]]..buildmode..[[;true]
tooltip[buildmode;]]..F(S("Build mode: Specify whether to place nodes for high or low noise values, or all values. Auto = “All” in 2D mode or “Low only” in 3D mode"))..[[]
tooltip[value_mid;]]..F(S("Noise values equal to or higher than the midpoint are treated as high values, otherwise as low values. Used for node colorization."))..[[]
tooltip[value_min;]]..F(S("The lowest noise value to be represented by the node color gradient."))..[[]
tooltip[value_max;]]..F(S("The highest noise value to be represented by the node color gradient."))..[[]
@ -1505,8 +1517,10 @@ local show_noise_formspec = function(player, noiseparams, profile_id)
container[0,10.95]
button[0.25,0;3.15,1;apply;]]..F(S("Apply"))..[[]
]]..create_btn..[[
tooltip[apply;]]..F(S("Set these noise parameters and noise options as the “active noise”")).."]"..
create_btn..[[
button[6.60,0;3.15,1;toggle_autogen;]]..F(autogen_label)..[[]
tooltip[toggle_autogen;]]..F(S("Toggle the automatic map generator"))..[[]
container_end[]
]]
-- Hack to fix Minetest issue (see function comment)