mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Content store: Disable more details dialog for now (#8060)
* Content store: Disable more details dialog for now
This commit is contained in:
parent
f5de187b6c
commit
6169ecaa4a
@ -466,36 +466,43 @@ function store.get_formspec()
|
|||||||
formspec[#formspec + 1] = "]"
|
formspec[#formspec + 1] = "]"
|
||||||
|
|
||||||
-- description
|
-- description
|
||||||
|
if package.path and package.installed_release < package.release then
|
||||||
formspec[#formspec + 1] = "textarea[1.25,0.3;7.5,1;;;"
|
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] = core.formspec_escape(package.short_description)
|
||||||
formspec[#formspec + 1] = "]"
|
formspec[#formspec + 1] = "]"
|
||||||
|
|
||||||
-- buttons
|
-- buttons
|
||||||
if not package.path then
|
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] = tostring(i)
|
||||||
formspec[#formspec + 1] = ";"
|
formspec[#formspec + 1] = ";"
|
||||||
formspec[#formspec + 1] = fgettext("Install")
|
formspec[#formspec + 1] = fgettext("Install")
|
||||||
formspec[#formspec + 1] = "]"
|
formspec[#formspec + 1] = "]"
|
||||||
elseif package.installed_release < package.release then
|
else
|
||||||
|
if package.installed_release < package.release then
|
||||||
-- The install_ action also handles updating
|
-- The install_ action also handles updating
|
||||||
formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_"
|
formspec[#formspec + 1] = "button[8.4,0;1.5,1;install_"
|
||||||
formspec[#formspec + 1] = tostring(i)
|
formspec[#formspec + 1] = tostring(i)
|
||||||
formspec[#formspec + 1] = ";"
|
formspec[#formspec + 1] = ";"
|
||||||
formspec[#formspec + 1] = fgettext("Update")
|
formspec[#formspec + 1] = fgettext("Update")
|
||||||
formspec[#formspec + 1] = "]"
|
formspec[#formspec + 1] = "]"
|
||||||
else
|
end
|
||||||
formspec[#formspec + 1] = "button[8.4,0;1.5,1;uninstall_"
|
|
||||||
|
formspec[#formspec + 1] = "button[9.9,0;1.5,1;uninstall_"
|
||||||
formspec[#formspec + 1] = tostring(i)
|
formspec[#formspec + 1] = tostring(i)
|
||||||
formspec[#formspec + 1] = ";"
|
formspec[#formspec + 1] = ";"
|
||||||
formspec[#formspec + 1] = fgettext("Uninstall")
|
formspec[#formspec + 1] = fgettext("Uninstall")
|
||||||
formspec[#formspec + 1] = "]"
|
formspec[#formspec + 1] = "]"
|
||||||
end
|
end
|
||||||
formspec[#formspec + 1] = "button[9.9,0;1.5,1;view_"
|
|
||||||
formspec[#formspec + 1] = tostring(i)
|
--formspec[#formspec + 1] = "button[9.9,0;1.5,1;view_"
|
||||||
formspec[#formspec + 1] = ";"
|
--formspec[#formspec + 1] = tostring(i)
|
||||||
formspec[#formspec + 1] = fgettext("View")
|
--formspec[#formspec + 1] = ";"
|
||||||
formspec[#formspec + 1] = "]"
|
--formspec[#formspec + 1] = fgettext("View")
|
||||||
|
--formspec[#formspec + 1] = "]"
|
||||||
|
|
||||||
formspec[#formspec + 1] = "container_end[]"
|
formspec[#formspec + 1] = "container_end[]"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user