mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds When there are no dependencies, it does not longer show an empty list. * Adjust the list height to avoid a scrollbar when possible * change minimum height and no dependencies message * Do not get depends for modpacks
This commit is contained in:
parent
bb35d06225
commit
3066d76e33
2 changed files with 40 additions and 11 deletions
|
@ -332,11 +332,11 @@ end
|
|||
--------------------------------------------------------------------------------
|
||||
function pkgmgr.get_dependencies(path)
|
||||
if path == nil then
|
||||
return "", ""
|
||||
return {}, {}
|
||||
end
|
||||
|
||||
local info = core.get_content_info(path)
|
||||
return table.concat(info.depends or {}, ","), table.concat(info.optional_depends or {}, ",")
|
||||
return info.depends or {}, info.optional_depends or {}
|
||||
end
|
||||
|
||||
----------- tests whether all of the mods in the modpack are enabled -----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue