Commit Graph

65 Commits

Author SHA1 Message Date
Zefram
b492701915 Show group ingredients visually in craft guide
Where a recipe specifies an ingredient by group, show a typical group
item pictorially, with a label flag to indicate that it's a group rather
than the single item.  This is the inverse of the previous arrangement,
which identified the group by label and dipicted groupiness pictorially.
The new arrangement is easier to interpret, and if the labels are ignored
it actually shows a correct input to the crafting grid.
2014-05-02 12:19:17 +02:00
Zefram
5d34b235dd Handle ingredient quantities in craft guide
Alloy cooking recipes have quantities for the ingredients, which need to
be shown.  The buttons on which the ingredients are shown don't natively
support showing an item count, so hack it up with the label facility.
Also, the button names, supporting clicking to see recipes recursively,
need to be based only on the item name part of the ingredient, dropping
the quantity part.
2014-05-02 12:14:48 +02:00
Zefram
d1e554b73d Cleaner display of lack of recipes
When the current craft guide item has no recipes, show the item and a
"No recipes" message, but suppress all other recipe UI elements.
2014-04-30 01:10:46 +01:00
Zefram
580a832fda Use appropriate grid shape for each craft type
New system of registration of craft types, recording for each a display
description and the appropriate grid shape.  Recipes of a registered type
are shown in the correct grid.  Recipes of unregistered craft types are
still displayed as before, using the default 3x3 grid.
2014-04-30 00:11:10 +01:00
Zefram
20cf474886 Fix formspec injection issues 2014-04-29 17:53:43 +01:00
ShadowNinja
26473a8346 Remove trailing whitespace 2014-01-19 13:27:52 -05:00
kaeza
d560bcd6f0 Allow searching for groups.
Also make "group buttons" apply the filter to that group.
2014-01-19 14:35:44 -02:00
ShadowNinja
d30b33ba24 Combine some concatenations 2013-12-20 23:45:59 -05:00
Vanessa Ezekowitz
ee93afd439 Fix incorrect background colors over inventory slots
caused by BlockMen's/kahrl's inventory #hexcolor patch
( 25edae00ea )
2013-11-05 10:46:49 -05:00
kaeza
2b5bf5fe95 Allow crafting from the craft guide. 2013-10-21 07:47:50 +02:00
ShadowNinja
7fb9cfa3c9 Remove trailing space 2013-10-05 23:51:49 -04:00
RealBadAngel
aec3cb2fc1 Fix textures aligment problems.
Some other tweaks.
2013-10-05 22:48:45 +02:00
ShadowNinja
04600f64d8 API tweaks 2013-10-02 23:25:07 -04:00
ShadowNinja
ec328d8270 Change craft guide input slots to buttons 2013-10-02 22:23:35 -04:00
ShadowNinja
f974fd8c2c Update 2013-09-28 18:15:37 -04:00