diff --git a/zcg/init.lua b/zcg/init.lua index d76e233..51d98e5 100644 --- a/zcg/init.lua +++ b/zcg/init.lua @@ -33,6 +33,9 @@ local table_copy = function(table) end zcg.add_craft = function(input, output, groups) + if minetest.get_item_group(output, "not_in_craft_guide") > 0 then + return + end if not groups then groups = {} end local c = {} c.width = input.width @@ -103,12 +106,12 @@ zcg.formspec = function(pn) local formspec = "size[8,7.5]" .. "button[0,0;2,.5;main;Back]" if zcg.users[pn].history.index > 1 then - formspec = formspec .. "image_button[0,1;1,1;zcg_previous.png;zcg_previous;]" + formspec = formspec .. "image_button[0,1;1,1;zcg_previous.png;zcg_previous;;false;false;zcg_previous_press.png]" else formspec = formspec .. "image[0,1;1,1;zcg_previous_inactive.png]" end if zcg.users[pn].history.index < #zcg.users[pn].history.list then - formspec = formspec .. "image_button[1,1;1,1;zcg_next.png;zcg_next;]" + formspec = formspec .. "image_button[1,1;1,1;zcg_next.png;zcg_next;;false;false;zcg_next_press.png]" else formspec = formspec .. "image[1,1;1,1;zcg_next_inactive.png]" end diff --git a/zcg/textures/zcg_next.png b/zcg/textures/zcg_next.png index 476068a..e6e496c 100644 Binary files a/zcg/textures/zcg_next.png and b/zcg/textures/zcg_next.png differ diff --git a/zcg/textures/zcg_next_inactive.png b/zcg/textures/zcg_next_inactive.png index 1b25d67..5ce9cd3 100644 Binary files a/zcg/textures/zcg_next_inactive.png and b/zcg/textures/zcg_next_inactive.png differ diff --git a/zcg/textures/zcg_next_press.png b/zcg/textures/zcg_next_press.png new file mode 100644 index 0000000..2bdaf86 Binary files /dev/null and b/zcg/textures/zcg_next_press.png differ diff --git a/zcg/textures/zcg_previous.png b/zcg/textures/zcg_previous.png index cb20cd2..232e8e7 100644 Binary files a/zcg/textures/zcg_previous.png and b/zcg/textures/zcg_previous.png differ diff --git a/zcg/textures/zcg_previous_inactive.png b/zcg/textures/zcg_previous_inactive.png index 09c8e0c..1c16fb2 100644 Binary files a/zcg/textures/zcg_previous_inactive.png and b/zcg/textures/zcg_previous_inactive.png differ diff --git a/zcg/textures/zcg_previous_press.png b/zcg/textures/zcg_previous_press.png new file mode 100644 index 0000000..81f3af1 Binary files /dev/null and b/zcg/textures/zcg_previous_press.png differ