Update [...]

- Don't show items which have the group "not_in_craft_guide"
- Use a "pressed" texture for image buttons (requires a recent dev version)
master
Zeg9 2013-09-17 11:56:45 +02:00
parent 576436038f
commit 6bd997ecfc
7 changed files with 5 additions and 2 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 601 B

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 370 B

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B