diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-01-06 15:54:22 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-01-06 16:54:22 +0100 |
commit | 6169ecaa4a1b55274fa0509cd610fc37a4723274 (patch) | |
tree | d2679aa11eb92bfeea6bee253c0cd68f76b327ad | |
parent | f5de187b6c76a4c7b30d565d73cfe51e159961c0 (diff) | |
download | minetest-6169ecaa4a1b55274fa0509cd610fc37a4723274.tar.gz minetest-6169ecaa4a1b55274fa0509cd610fc37a4723274.tar.bz2 minetest-6169ecaa4a1b55274fa0509cd610fc37a4723274.zip |
Content store: Disable more details dialog for now (#8060)
* Content store: Disable more details dialog for now
-rw-r--r-- | builtin/mainmenu/dlg_contentstore.lua | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index a050113e4..4c9f760b2 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -466,36 +466,43 @@ function store.get_formspec() formspec[#formspec + 1] = "]" -- description - formspec[#formspec + 1] = "textarea[1.25,0.3;7.5,1;;;" + if package.path and package.installed_release < package.release then + formspec[#formspec + 1] = "textarea[1.25,0.3;7.5,1;;;" + else + formspec[#formspec + 1] = "textarea[1.25,0.3;9,1;;;" + end formspec[#formspec + 1] = core.formspec_escape(package.short_description) formspec[#formspec + 1] = "]" -- buttons if not package.path then - formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_" + formspec[#formspec + 1] = "button[9.9,0;1.5,1;install_" formspec[#formspec + 1] = tostring(i) formspec[#formspec + 1] = ";" formspec[#formspec + 1] = fgettext("Install") formspec[#formspec + 1] = "]" - elseif package.installed_release < package.release then - -- The install_ action also handles updating - formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_" - formspec[#formspec + 1] = tostring(i) - formspec[#formspec + 1] = ";" - formspec[#formspec + 1] = fgettext("Update") - formspec[#formspec + 1] = "]" else - formspec[#formspec + 1] = "button[8.4,0;1.5,1;uninstall_" + if package.installed_release < package.release then + -- The install_ action also handles updating + formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_" + formspec[#formspec + 1] = tostring(i) + formspec[#formspec + 1] = ";" + formspec[#formspec + 1] = fgettext("Update") + formspec[#formspec + 1] = "]" + end + + formspec[#formspec + 1] = "button[9.9,0;1.5,1;uninstall_" formspec[#formspec + 1] = tostring(i) formspec[#formspec + 1] = ";" formspec[#formspec + 1] = fgettext("Uninstall") formspec[#formspec + 1] = "]" end - formspec[#formspec + 1] = "button[9.9,0;1.5,1;view_" - formspec[#formspec + 1] = tostring(i) - formspec[#formspec + 1] = ";" - formspec[#formspec + 1] = fgettext("View") - formspec[#formspec + 1] = "]" + + --formspec[#formspec + 1] = "button[9.9,0;1.5,1;view_" + --formspec[#formspec + 1] = tostring(i) + --formspec[#formspec + 1] = ";" + --formspec[#formspec + 1] = fgettext("View") + --formspec[#formspec + 1] = "]" formspec[#formspec + 1] = "container_end[]" end |