1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
Xeno333 2025-06-27 00:26:39 +03:00 committed by GitHub
commit 3ba74a41ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,17 @@ local mgv6_biomes = {
}, },
} }
local mapgens_descriptions = {
v7 = fgettext("Default mapgen with large complex mountains and plains"),
valleys = fgettext("Large valleys with complex terrain and rivers"),
carpathian = fgettext("Realistic looking world with vast plains"),
v5 = fgettext("Simple, but jagged landscape"),
flat = fgettext("Flat world terrain"),
fractal = fgettext("World with a fractal structure"),
singlenode = fgettext("Empty world, commonly used for Lua-defined mapgens"),
v6 = fgettext("Simple mapgen with few features"),
}
local function create_world_formspec(dialogdata) local function create_world_formspec(dialogdata)
local current_mg = dialogdata.mg local current_mg = dialogdata.mg
@ -289,10 +300,15 @@ local function create_world_formspec(dialogdata)
"label[0,2;" .. fgettext("Mapgen") .. "]".. "label[0,2;" .. fgettext("Mapgen") .. "]"..
"dropdown[0,2.5;6.3;dd_mapgen;" .. mglist .. ";" .. selindex .. "]" "dropdown[0,2.5;6.3;dd_mapgen;" .. mglist .. ";" .. selindex .. "]"
if mapgens_descriptions[current_mg] then
retval = retval ..
"textarea[0.5,3.2;6,2;;;" .. mapgens_descriptions[current_mg] .. "]"
end
-- Warning when making a devtest world -- Warning when making a devtest world
if game.id == "devtest" then if game.id == "devtest" then
retval = retval .. retval = retval ..
"container[0,3.5]" .. "container[0,4.7]" ..
"box[0,0;5.8,1.7;#ff8800]" .. "box[0,0;5.8,1.7;#ff8800]" ..
"textarea[0.4,0.1;6,1.8;;;".. "textarea[0.4,0.1;6,1.8;;;"..
fgettext("Development Test is meant for developers.") .. "]" .. fgettext("Development Test is meant for developers.") .. "]" ..