diff --git a/mods/default/formspec.lua b/mods/default/formspec.lua index 17a6409..9d5bc40 100644 --- a/mods/default/formspec.lua +++ b/mods/default/formspec.lua @@ -26,6 +26,13 @@ default.ui.group_defaults = { stone = "default:stone", tree = "default:tree", } +default.ui.group_names = { + fuzzy = { S("Fuzzy"), S("Any fuzzy block") }, + planks = { S("Planks"), S("Any planks") }, + soil = { S("Soil"), S("Any soil") }, + stone = { S("Stone"), S("Any stone") }, + tree = { S("Tree"), S("Any tree") }, +} -- Itemslot backgrounds @@ -190,13 +197,19 @@ function default.ui.item_group(x, y, group, count, name) local result = "" if itemname ~= "" then - result = result .. "image_button["..x..","..y..";1,1;blank.png;" - ..name..";;false;false;blank.png]" - result = result .. "item_image["..x..","..y..";1,1;" + result = result + .."box["..x..","..y..";0.85,0.9;#00000040]" + .."item_image["..x..","..y..";1,1;" ..minetest.formspec_escape(itemname .. " " .. count).."]" - result = result .. "tooltip["..name..";".. - minetest.formspec_escape(S("Group: @1", group)).."]" + local group_prettyprint + if default.ui.group_names[group] then + group_prettyprint = minetest.colorize("#ffecb6", default.ui.group_names[group][2]) + else + group_prettyprint = S("Group: @1", minetest.colorize("#ffecb6", group)) + end + result = result .. "tooltip["..x..","..y..";1,1;".. + minetest.formspec_escape(group_prettyprint).."]" end return result diff --git a/mods/default/locale/default.de.tr b/mods/default/locale/default.de.tr index 66faba6..94c3f2c 100644 --- a/mods/default/locale/default.de.tr +++ b/mods/default/locale/default.de.tr @@ -142,3 +142,10 @@ Wrought Iron Shears=Schmiedeeisenschere Flint and Steel=Feuerstein und Stahl ""=„“ "@1"=„@1“ +Fuzzy=Flausch +Soil=Boden +Any fuzzy block=Beliebiger flauschiger Block +Any planks=Beliebige Planken +Any soil=Beliebiger Boden +Any stone=Beliebiger Stein +Any tree=Beliebiger Baum diff --git a/mods/default/locale/template.txt b/mods/default/locale/template.txt index be884a7..2cb6059 100644 --- a/mods/default/locale/template.txt +++ b/mods/default/locale/template.txt @@ -142,3 +142,10 @@ Wrought Iron Shears= Flint and Steel= ""= "@1"= +Fuzzy= +Soil= +Any fuzzy block= +Any planks= +Any soil= +Any stone= +Any tree=