Allow searching for groups.

Also make "group buttons" apply the filter to that group.
This commit is contained in:
kaeza
2014-01-19 14:34:44 -02:00
parent b69fc35c88
commit d560bcd6f0
3 changed files with 35 additions and 11 deletions

View File

@ -213,7 +213,8 @@ unified_inventory.register_page("craftguide", {
local group = string.sub(item, 7)
formspec = formspec.."image_button["
..(1.0 + x)..","..(0.0 + y)..";1.1,1.1;"
.."ui_group.png;;"
.."ui_group.png;"
.."item_group_"..minetest.formspec_escape(group)..";"
..minetest.formspec_escape(group).."]"
else
formspec = formspec.."item_image_button["