@@ -33,14 +33,26 @@ local function get_formspec(data)
33
33
34
34
local hard_deps , soft_deps = pkgmgr .get_dependencies (mod .path )
35
35
36
+ if mod .is_modpack then
37
+ local info = minetest .formspec_escape (
38
+ core .get_content_info (mod .path ).description )
39
+ if info == " " then
40
+ info = fgettext (" No modpack description provided." )
41
+ end
42
+ retval = retval ..
43
+ " textarea[0.25,0.7;5.75,7.2;;" .. info .. " ;]"
44
+ else
45
+ retval = retval ..
46
+ " label[0,0.7;" .. fgettext (" Mod:" ) .. " ]" ..
47
+ " label[0.75,0.7;" .. mod .name .. " ]" ..
48
+ " label[0,1.25;" .. fgettext (" Dependencies:" ) .. " ]" ..
49
+ " textlist[0,1.75;5,2.125;world_config_depends;" .. hard_deps ..
50
+ " ;0]" ..
51
+ " label[0,3.875;" .. fgettext (" Optional dependencies:" ) .. " ]" ..
52
+ " textlist[0,4.375;5,1.8;world_config_optdepends;" ..
53
+ soft_deps .. " ;0]"
54
+ end
36
55
retval = retval ..
37
- " label[0,0.7;" .. fgettext (" Mod:" ) .. " ]" ..
38
- " label[0.75,0.7;" .. mod .name .. " ]" ..
39
- " label[0,1.25;" .. fgettext (" Dependencies:" ) .. " ]" ..
40
- " textlist[0,1.75;5,2.125;world_config_depends;" .. hard_deps .. " ;0]" ..
41
- " label[0,3.875;" .. fgettext (" Optional dependencies:" ) .. " ]" ..
42
- " textlist[0,4.375;5,1.8;world_config_optdepends;" ..
43
- soft_deps .. " ;0]" ..
44
56
" button[3.25,7;2.5,0.5;btn_config_world_save;" ..
45
57
fgettext (" Save" ) .. " ]" ..
46
58
" button[5.75,7;2.5,0.5;btn_config_world_cancel;" ..
0 commit comments